@a-company/sentinel 0.2.0 → 3.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/dist/adapters/express.d.ts +3 -1
- package/dist/adapters/fastify.d.ts +3 -1
- package/dist/adapters/hono.d.ts +3 -1
- package/dist/{chunk-KPMG4XED.js → chunk-FOF7CPJ6.js} +994 -2
- package/dist/chunk-VQ3SIN7S.js +422 -0
- package/dist/cli.js +6 -6
- package/dist/{commands-KIMGFR2I.js → commands-7PHRWGOB.js} +1791 -289
- package/dist/{dist-2F7NO4H4.js → dist-AG5JNIZU.js} +27 -2
- package/dist/{dist-BPWLYV4U.js → dist-TYG2XME3.js} +27 -2
- package/dist/index.d.ts +47 -5
- package/dist/index.js +141 -186
- package/dist/mcp.js +1040 -9
- package/dist/sdk-BTblv--p.d.ts +180 -0
- package/dist/server/index.d.ts +19 -3
- package/dist/server/index.js +581 -9
- package/dist/storage-BqCJqZat.d.ts +129 -0
- package/dist/transport-DqamniUy.d.ts +185 -0
- package/dist/transport.d.ts +2 -0
- package/dist/transport.js +10 -0
- package/dist/{sdk-B27_vK1g.d.ts → types-BmVoO1iF.d.ts} +196 -259
- package/package.json +15 -1
- package/ui/dist/assets/{index-DPxatSdT.css → index-9iUtfyBP.css} +1 -1
- package/ui/dist/assets/index-BfINPxlF.js +62 -0
- package/ui/dist/assets/index-BfINPxlF.js.map +1 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-BNgsn_C8.js +0 -62
- package/ui/dist/assets/index-BNgsn_C8.js.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
(function(){const x=document.createElement("link").relList;if(x&&x.supports&&x.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))d(m);new MutationObserver(m=>{for(const f of m)if(f.type==="childList")for(const S of f.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&d(S)}).observe(document,{childList:!0,subtree:!0});function a(m){const f={};return m.integrity&&(f.integrity=m.integrity),m.referrerPolicy&&(f.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?f.credentials="include":m.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function d(m){if(m.ep)return;m.ep=!0;const f=a(m);fetch(m.href,f)}})();function Us(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Ls={exports:{}},wr={},Ts={exports:{}},ee={};/**
|
|
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 Du;function cf(){if(Du)return ee;Du=1;var u=Symbol.for("react.element"),x=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),S=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),I=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.iterator;function L(v){return v===null||typeof v!="object"?null:(v=D&&v[D]||v["@@iterator"],typeof v=="function"?v:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,N={};function k(v,C,b){this.props=v,this.context=C,this.refs=N,this.updater=b||z}k.prototype.isReactComponent={},k.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,C,"setState")},k.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function M(){}M.prototype=k.prototype;function J(v,C,b){this.props=v,this.context=C,this.refs=N,this.updater=b||z}var q=J.prototype=new M;q.constructor=J,U(q,k.prototype),q.isPureReactComponent=!0;var ne=Array.isArray,we=Object.prototype.hasOwnProperty,K={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function Ce(v,C,b){var te,le={},oe=null,ce=null;if(C!=null)for(te in C.ref!==void 0&&(ce=C.ref),C.key!==void 0&&(oe=""+C.key),C)we.call(C,te)&&!ue.hasOwnProperty(te)&&(le[te]=C[te]);var ie=arguments.length-2;if(ie===1)le.children=b;else if(1<ie){for(var me=Array(ie),Ye=0;Ye<ie;Ye++)me[Ye]=arguments[Ye+2];le.children=me}if(v&&v.defaultProps)for(te in ie=v.defaultProps,ie)le[te]===void 0&&(le[te]=ie[te]);return{$$typeof:u,type:v,key:oe,ref:ce,props:le,_owner:K.current}}function st(v,C){return{$$typeof:u,type:v.type,key:C,ref:v.ref,props:v.props,_owner:v._owner}}function be(v){return typeof v=="object"&&v!==null&&v.$$typeof===u}function _e(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(b){return C[b]})}var ht=/\/+/g;function Ke(v,C){return typeof v=="object"&&v!==null&&v.key!=null?_e(""+v.key):C.toString(36)}function it(v,C,b,te,le){var oe=typeof v;(oe==="undefined"||oe==="boolean")&&(v=null);var ce=!1;if(v===null)ce=!0;else switch(oe){case"string":case"number":ce=!0;break;case"object":switch(v.$$typeof){case u:case x:ce=!0}}if(ce)return ce=v,le=le(ce),v=te===""?"."+Ke(ce,0):te,ne(le)?(b="",v!=null&&(b=v.replace(ht,"$&/")+"/"),it(le,C,b,"",function(Ye){return Ye})):le!=null&&(be(le)&&(le=st(le,b+(!le.key||ce&&ce.key===le.key?"":(""+le.key).replace(ht,"$&/")+"/")+v)),C.push(le)),1;if(ce=0,te=te===""?".":te+":",ne(v))for(var ie=0;ie<v.length;ie++){oe=v[ie];var me=te+Ke(oe,ie);ce+=it(oe,C,b,me,le)}else if(me=L(v),typeof me=="function")for(v=me.call(v),ie=0;!(oe=v.next()).done;)oe=oe.value,me=te+Ke(oe,ie++),ce+=it(oe,C,b,me,le);else if(oe==="object")throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return ce}function vt(v,C,b){if(v==null)return v;var te=[],le=0;return it(v,te,"","",function(oe){return C.call(b,oe,le++)}),te}function Ue(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(b){(v._status===0||v._status===-1)&&(v._status=1,v._result=b)},function(b){(v._status===0||v._status===-1)&&(v._status=2,v._result=b)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var ye={current:null},O={transition:null},X={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:O,ReactCurrentOwner:K};function V(){throw Error("act(...) is not supported in production builds of React.")}return ee.Children={map:vt,forEach:function(v,C,b){vt(v,function(){C.apply(this,arguments)},b)},count:function(v){var C=0;return vt(v,function(){C++}),C},toArray:function(v){return vt(v,function(C){return C})||[]},only:function(v){if(!be(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},ee.Component=k,ee.Fragment=a,ee.Profiler=m,ee.PureComponent=J,ee.StrictMode=d,ee.Suspense=P,ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,ee.act=V,ee.cloneElement=function(v,C,b){if(v==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+v+".");var te=U({},v.props),le=v.key,oe=v.ref,ce=v._owner;if(C!=null){if(C.ref!==void 0&&(oe=C.ref,ce=K.current),C.key!==void 0&&(le=""+C.key),v.type&&v.type.defaultProps)var ie=v.type.defaultProps;for(me in C)we.call(C,me)&&!ue.hasOwnProperty(me)&&(te[me]=C[me]===void 0&&ie!==void 0?ie[me]:C[me])}var me=arguments.length-2;if(me===1)te.children=b;else if(1<me){ie=Array(me);for(var Ye=0;Ye<me;Ye++)ie[Ye]=arguments[Ye+2];te.children=ie}return{$$typeof:u,type:v.type,key:le,ref:oe,props:te,_owner:ce}},ee.createContext=function(v){return v={$$typeof:S,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},v.Provider={$$typeof:f,_context:v},v.Consumer=v},ee.createElement=Ce,ee.createFactory=function(v){var C=Ce.bind(null,v);return C.type=v,C},ee.createRef=function(){return{current:null}},ee.forwardRef=function(v){return{$$typeof:j,render:v}},ee.isValidElement=be,ee.lazy=function(v){return{$$typeof:F,_payload:{_status:-1,_result:v},_init:Ue}},ee.memo=function(v,C){return{$$typeof:I,type:v,compare:C===void 0?null:C}},ee.startTransition=function(v){var C=O.transition;O.transition={};try{v()}finally{O.transition=C}},ee.unstable_act=V,ee.useCallback=function(v,C){return ye.current.useCallback(v,C)},ee.useContext=function(v){return ye.current.useContext(v)},ee.useDebugValue=function(){},ee.useDeferredValue=function(v){return ye.current.useDeferredValue(v)},ee.useEffect=function(v,C){return ye.current.useEffect(v,C)},ee.useId=function(){return ye.current.useId()},ee.useImperativeHandle=function(v,C,b){return ye.current.useImperativeHandle(v,C,b)},ee.useInsertionEffect=function(v,C){return ye.current.useInsertionEffect(v,C)},ee.useLayoutEffect=function(v,C){return ye.current.useLayoutEffect(v,C)},ee.useMemo=function(v,C){return ye.current.useMemo(v,C)},ee.useReducer=function(v,C,b){return ye.current.useReducer(v,C,b)},ee.useRef=function(v){return ye.current.useRef(v)},ee.useState=function(v){return ye.current.useState(v)},ee.useSyncExternalStore=function(v,C,b){return ye.current.useSyncExternalStore(v,C,b)},ee.useTransition=function(){return ye.current.useTransition()},ee.version="18.3.1",ee}var Mu;function Sr(){return Mu||(Mu=1,Ts.exports=cf()),Ts.exports}/**
|
|
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 Iu;function df(){if(Iu)return wr;Iu=1;var u=Sr(),x=Symbol.for("react.element"),a=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function S(j,P,I){var F,D={},L=null,z=null;I!==void 0&&(L=""+I),P.key!==void 0&&(L=""+P.key),P.ref!==void 0&&(z=P.ref);for(F in P)d.call(P,F)&&!f.hasOwnProperty(F)&&(D[F]=P[F]);if(j&&j.defaultProps)for(F in P=j.defaultProps,P)D[F]===void 0&&(D[F]=P[F]);return{$$typeof:x,type:j,key:L,ref:z,props:D,_owner:m.current}}return wr.Fragment=a,wr.jsx=S,wr.jsxs=S,wr}var Ou;function ff(){return Ou||(Ou=1,Ls.exports=df()),Ls.exports}var s=ff(),Q=Sr();const rc=Us(Q);var Rl={},Ps={exports:{}},Qe={},zs={exports:{}},Rs={};/**
|
|
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
|
+
*/var Au;function pf(){return Au||(Au=1,(function(u){function x(O,X){var V=O.length;O.push(X);e:for(;0<V;){var v=V-1>>>1,C=O[v];if(0<m(C,X))O[v]=X,O[V]=C,V=v;else break e}}function a(O){return O.length===0?null:O[0]}function d(O){if(O.length===0)return null;var X=O[0],V=O.pop();if(V!==X){O[0]=V;e:for(var v=0,C=O.length,b=C>>>1;v<b;){var te=2*(v+1)-1,le=O[te],oe=te+1,ce=O[oe];if(0>m(le,V))oe<C&&0>m(ce,le)?(O[v]=ce,O[oe]=V,v=oe):(O[v]=le,O[te]=V,v=te);else if(oe<C&&0>m(ce,V))O[v]=ce,O[oe]=V,v=oe;else break e}}return X}function m(O,X){var V=O.sortIndex-X.sortIndex;return V!==0?V:O.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;u.unstable_now=function(){return f.now()}}else{var S=Date,j=S.now();u.unstable_now=function(){return S.now()-j}}var P=[],I=[],F=1,D=null,L=3,z=!1,U=!1,N=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function q(O){for(var X=a(I);X!==null;){if(X.callback===null)d(I);else if(X.startTime<=O)d(I),X.sortIndex=X.expirationTime,x(P,X);else break;X=a(I)}}function ne(O){if(N=!1,q(O),!U)if(a(P)!==null)U=!0,Ue(we);else{var X=a(I);X!==null&&ye(ne,X.startTime-O)}}function we(O,X){U=!1,N&&(N=!1,M(Ce),Ce=-1),z=!0;var V=L;try{for(q(X),D=a(P);D!==null&&(!(D.expirationTime>X)||O&&!_e());){var v=D.callback;if(typeof v=="function"){D.callback=null,L=D.priorityLevel;var C=v(D.expirationTime<=X);X=u.unstable_now(),typeof C=="function"?D.callback=C:D===a(P)&&d(P),q(X)}else d(P);D=a(P)}if(D!==null)var b=!0;else{var te=a(I);te!==null&&ye(ne,te.startTime-X),b=!1}return b}finally{D=null,L=V,z=!1}}var K=!1,ue=null,Ce=-1,st=5,be=-1;function _e(){return!(u.unstable_now()-be<st)}function ht(){if(ue!==null){var O=u.unstable_now();be=O;var X=!0;try{X=ue(!0,O)}finally{X?Ke():(K=!1,ue=null)}}else K=!1}var Ke;if(typeof J=="function")Ke=function(){J(ht)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,vt=it.port2;it.port1.onmessage=ht,Ke=function(){vt.postMessage(null)}}else Ke=function(){k(ht,0)};function Ue(O){ue=O,K||(K=!0,Ke())}function ye(O,X){Ce=k(function(){O(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(O){O.callback=null},u.unstable_continueExecution=function(){U||z||(U=!0,Ue(we))},u.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"):st=0<O?Math.floor(1e3/O):5},u.unstable_getCurrentPriorityLevel=function(){return L},u.unstable_getFirstCallbackNode=function(){return a(P)},u.unstable_next=function(O){switch(L){case 1:case 2:case 3:var X=3;break;default:X=L}var V=L;L=X;try{return O()}finally{L=V}},u.unstable_pauseExecution=function(){},u.unstable_requestPaint=function(){},u.unstable_runWithPriority=function(O,X){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var V=L;L=O;try{return X()}finally{L=V}},u.unstable_scheduleCallback=function(O,X,V){var v=u.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?v+V:v):V=v,O){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=V+C,O={id:F++,callback:X,priorityLevel:O,startTime:V,expirationTime:C,sortIndex:-1},V>v?(O.sortIndex=V,x(I,O),a(P)===null&&O===a(I)&&(N?(M(Ce),Ce=-1):N=!0,ye(ne,V-v))):(O.sortIndex=C,x(P,O),U||z||(U=!0,Ue(we))),O},u.unstable_shouldYield=_e,u.unstable_wrapCallback=function(O){var X=L;return function(){var V=L;L=X;try{return O.apply(this,arguments)}finally{L=V}}}})(Rs)),Rs}var Uu;function mf(){return Uu||(Uu=1,zs.exports=pf()),zs.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 $u;function hf(){if($u)return Qe;$u=1;var u=Sr(),x=mf();function a(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 d=new Set,m={};function f(e,t){S(e,t),S(e+"Capture",t)}function S(e,t){for(m[e]=t,e=0;e<t.length;e++)d.add(t[e])}var j=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),P=Object.prototype.hasOwnProperty,I=/^[: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]*$/,F={},D={};function L(e){return P.call(D,e)?!0:P.call(F,e)?!1:I.test(e)?D[e]=!0:(F[e]=!0,!1)}function z(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 U(e,t,n,r){if(t===null||typeof t>"u"||z(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 N(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){k[e]=new N(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];k[t]=new N(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){k[e]=new N(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){k[e]=new N(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){k[e]=new N(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){k[e]=new N(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){k[e]=new N(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){k[e]=new N(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){k[e]=new N(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function J(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(M,J);k[t]=new N(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(M,J);k[t]=new N(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(M,J);k[t]=new N(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){k[e]=new N(e,1,!1,e.toLowerCase(),null,!1,!1)}),k.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){k[e]=new N(e,1,!1,e.toLowerCase(),null,!0,!0)});function q(e,t,n,r){var l=k.hasOwnProperty(t)?k[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(U(t,n,l,r)&&(n=null),r||l===null?L(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ne=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,we=Symbol.for("react.element"),K=Symbol.for("react.portal"),ue=Symbol.for("react.fragment"),Ce=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),vt=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),O=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=O&&e[O]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,v;function C(e){if(v===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);v=t&&t[1]||""}return`
|
|
34
|
+
`+v+e}var b=!1;function te(e,t){if(!e||b)return"";b=!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(w){var r=w}Reflect.construct(e,[],t)}else{try{t.call()}catch(w){r=w}e.call(t.prototype)}else{try{throw Error()}catch(w){r=w}e()}}catch(w){if(w&&r&&typeof w.stack=="string"){for(var l=w.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),i=l.length-1,c=o.length-1;1<=i&&0<=c&&l[i]!==o[c];)c--;for(;1<=i&&0<=c;i--,c--)if(l[i]!==o[c]){if(i!==1||c!==1)do if(i--,c--,0>c||l[i]!==o[c]){var p=`
|
|
37
|
+
`+l[i].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=i&&0<=c);break}}}finally{b=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?C(e):""}function le(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function oe(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 ue:return"Fragment";case K:return"Portal";case st:return"Profiler";case Ce:return"StrictMode";case Ke:return"Suspense";case it:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _e:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case ht:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vt:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}function ce(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 oe(t);case 8:return t===Ce?"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 ie(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=me(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jr(e){e._valueTracker||(e._valueTracker=Ye(e))}function $s(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=me(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kr(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 V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ie(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 Ws(e,t){t=t.checked,t!=null&&q(e,"checked",t,!1)}function Ml(e,t){Ws(e,t);var n=ie(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")?Il(e,t.type,n):t.hasOwnProperty("defaultValue")&&Il(e,t.type,ie(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bs(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 Il(e,t,n){(t!=="number"||kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ie(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Ol(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hs(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Mn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ie(n)}}function Qs(e,t){var n=ie(t.value),r=ie(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 Ks(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ys(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 Al(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ys(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Nr,Gs=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Nr=Nr||document.createElement("div"),Nr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function In(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var On={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},pc=["Webkit","ms","Moz","O"];Object.keys(On).forEach(function(e){pc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]})});function Xs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function Zs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var mc=V({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 Ul(e,t){if(t){if(mc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function $l(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 Vl=null;function Wl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,cn=null,dn=null;function Js(e){if(e=or(e)){if(typeof Bl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=Yr(t),Bl(e.stateNode,e.type,t))}}function qs(e){cn?dn?dn.push(e):dn=[e]:cn=e}function bs(){if(cn){var e=cn,t=dn;if(dn=cn=null,Js(e),t)for(e=0;e<t.length;e++)Js(t[e])}}function ei(e,t){return e(t)}function ti(){}var Hl=!1;function ni(e,t,n){if(Hl)return e(t,n);Hl=!0;try{return ei(e,t,n)}finally{Hl=!1,(cn!==null||dn!==null)&&(ti(),bs())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=Yr(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(a(231,t,typeof n));return n}var Ql=!1;if(j)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){Ql=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{Ql=!1}function hc(e,t,n,r,l,o,i,c,p){var w=Array.prototype.slice.call(arguments,3);try{t.apply(n,w)}catch(_){this.onError(_)}}var $n=!1,Er=null,Cr=!1,Kl=null,vc={onError:function(e){$n=!0,Er=e}};function gc(e,t,n,r,l,o,i,c,p){$n=!1,Er=null,hc.apply(vc,arguments)}function yc(e,t,n,r,l,o,i,c,p){if(gc.apply(this,arguments),$n){if($n){var w=Er;$n=!1,Er=null}else throw Error(a(198));Cr||(Cr=!0,Kl=w)}}function Xt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ri(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 li(e){if(Xt(e)!==e)throw Error(a(188))}function xc(e){var t=e.alternate;if(!t){if(t=Xt(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return li(l),e;if(o===r)return li(l),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,c=l.child;c;){if(c===n){i=!0,n=l,r=o;break}if(c===r){i=!0,r=l,n=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===n){i=!0,n=o,r=l;break}if(c===r){i=!0,r=o,n=l;break}c=c.sibling}if(!i)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function oi(e){return e=xc(e),e!==null?si(e):null}function si(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=si(e);if(t!==null)return t;e=e.sibling}return null}var ii=x.unstable_scheduleCallback,ai=x.unstable_cancelCallback,wc=x.unstable_shouldYield,Sc=x.unstable_requestPaint,Se=x.unstable_now,jc=x.unstable_getCurrentPriorityLevel,Yl=x.unstable_ImmediatePriority,ui=x.unstable_UserBlockingPriority,_r=x.unstable_NormalPriority,kc=x.unstable_LowPriority,ci=x.unstable_IdlePriority,Lr=null,gt=null;function Nc(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Lr,e,void 0,(e.current.flags&128)===128)}catch{}}var at=Math.clz32?Math.clz32:_c,Ec=Math.log,Cc=Math.LN2;function _c(e){return e>>>=0,e===0?32:31-(Ec(e)/Cc|0)|0}var Tr=64,Pr=4194304;function Vn(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 zr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~l;c!==0?r=Vn(c):(o&=i,o!==0&&(r=Vn(o)))}else i=n&~l,i!==0?r=Vn(i):o!==0&&(r=Vn(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-at(t),l=1<<n,r|=e[n],t&=~l;return r}function Lc(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 Tc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-at(o),c=1<<i,p=l[i];p===-1?((c&n)===0||(c&r)!==0)&&(l[i]=Lc(c,t)):p<=t&&(e.expiredLanes|=c),o&=~c}}function Gl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function di(){var e=Tr;return Tr<<=1,(Tr&4194240)===0&&(Tr=64),e}function Xl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function Pc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-at(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Zl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ae=0;function fi(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var pi,Jl,mi,hi,vi,ql=!1,Rr=[],Pt=null,zt=null,Rt=null,Bn=new Map,Hn=new Map,Ft=[],zc="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 gi(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Qn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=or(t),t!==null&&Jl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Rc(e,t,n,r,l){switch(t){case"focusin":return Pt=Qn(Pt,e,t,n,r,l),!0;case"dragenter":return zt=Qn(zt,e,t,n,r,l),!0;case"mouseover":return Rt=Qn(Rt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Bn.set(o,Qn(Bn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Hn.set(o,Qn(Hn.get(o)||null,e,t,n,r,l)),!0}return!1}function yi(e){var t=Zt(e.target);if(t!==null){var n=Xt(t);if(n!==null){if(t=n.tag,t===13){if(t=ri(n),t!==null){e.blockedOn=t,vi(e.priority,function(){mi(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 Fr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vl=r,n.target.dispatchEvent(r),Vl=null}else return t=or(n),t!==null&&Jl(t),e.blockedOn=n,!1;t.shift()}return!0}function xi(e,t,n){Fr(e)&&n.delete(t)}function Fc(){ql=!1,Pt!==null&&Fr(Pt)&&(Pt=null),zt!==null&&Fr(zt)&&(zt=null),Rt!==null&&Fr(Rt)&&(Rt=null),Bn.forEach(xi),Hn.forEach(xi)}function Kn(e,t){e.blockedOn===t&&(e.blockedOn=null,ql||(ql=!0,x.unstable_scheduleCallback(x.unstable_NormalPriority,Fc)))}function Yn(e){function t(l){return Kn(l,e)}if(0<Rr.length){Kn(Rr[0],e);for(var n=1;n<Rr.length;n++){var r=Rr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pt!==null&&Kn(Pt,e),zt!==null&&Kn(zt,e),Rt!==null&&Kn(Rt,e),Bn.forEach(t),Hn.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)yi(n),n.blockedOn===null&&Ft.shift()}var fn=ne.ReactCurrentBatchConfig,Dr=!0;function Dc(e,t,n,r){var l=ae,o=fn.transition;fn.transition=null;try{ae=1,bl(e,t,n,r)}finally{ae=l,fn.transition=o}}function Mc(e,t,n,r){var l=ae,o=fn.transition;fn.transition=null;try{ae=4,bl(e,t,n,r)}finally{ae=l,fn.transition=o}}function bl(e,t,n,r){if(Dr){var l=eo(e,t,n,r);if(l===null)yo(e,t,r,Mr,n),gi(e,r);else if(Rc(l,e,t,n,r))r.stopPropagation();else if(gi(e,r),t&4&&-1<zc.indexOf(e)){for(;l!==null;){var o=or(l);if(o!==null&&pi(o),o=eo(e,t,n,r),o===null&&yo(e,t,r,Mr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else yo(e,t,r,null,n)}}var Mr=null;function eo(e,t,n,r){if(Mr=null,e=Wl(r),e=Zt(e),e!==null)if(t=Xt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ri(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 Mr=e,null}function wi(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(jc()){case Yl:return 1;case ui:return 4;case _r:case kc:return 16;case ci:return 536870912;default:return 16}default:return 16}}var Dt=null,to=null,Ir=null;function Si(){if(Ir)return Ir;var e,t=to,n=t.length,r,l="value"in Dt?Dt.value:Dt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return Ir=l.slice(e,1<r?1-r:void 0)}function Or(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 Ar(){return!0}function ji(){return!1}function Ge(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ar:ji,this.isPropagationStopped=ji,this}return V(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=Ar)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},no=Ge(pn),Gn=V({},pn,{view:0,detail:0}),Ic=Ge(Gn),ro,lo,Xn,Ur=V({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:so,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!==Xn&&(Xn&&e.type==="mousemove"?(ro=e.screenX-Xn.screenX,lo=e.screenY-Xn.screenY):lo=ro=0,Xn=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:lo}}),ki=Ge(Ur),Oc=V({},Ur,{dataTransfer:0}),Ac=Ge(Oc),Uc=V({},Gn,{relatedTarget:0}),oo=Ge(Uc),$c=V({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),Vc=Ge($c),Wc=V({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bc=Ge(Wc),Hc=V({},pn,{data:0}),Ni=Ge(Hc),Qc={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kc={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"},Yc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gc(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yc[e])?!!t[e]:!1}function so(){return Gc}var Xc=V({},Gn,{key:function(e){if(e.key){var t=Qc[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Or(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kc[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:so,charCode:function(e){return e.type==="keypress"?Or(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Or(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zc=Ge(Xc),Jc=V({},Ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ei=Ge(Jc),qc=V({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:so}),bc=Ge(qc),ed=V({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),td=Ge(ed),nd=V({},Ur,{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}),rd=Ge(nd),ld=[9,13,27,32],io=j&&"CompositionEvent"in window,Zn=null;j&&"documentMode"in document&&(Zn=document.documentMode);var od=j&&"TextEvent"in window&&!Zn,Ci=j&&(!io||Zn&&8<Zn&&11>=Zn),_i=" ",Li=!1;function Ti(e,t){switch(e){case"keyup":return ld.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function sd(e,t){switch(e){case"compositionend":return Pi(t);case"keypress":return t.which!==32?null:(Li=!0,_i);case"textInput":return e=t.data,e===_i&&Li?null:e;default:return null}}function id(e,t){if(mn)return e==="compositionend"||!io&&Ti(e,t)?(e=Si(),Ir=to=Dt=null,mn=!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 Ci&&t.locale!=="ko"?null:t.data;default:return null}}var ad={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 zi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ad[e.type]:t==="textarea"}function Ri(e,t,n,r){qs(r),t=Hr(t,"onChange"),0<t.length&&(n=new no("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jn=null,qn=null;function ud(e){Zi(e,0)}function $r(e){var t=xn(e);if($s(t))return e}function cd(e,t){if(e==="change")return t}var Fi=!1;if(j){var ao;if(j){var uo="oninput"in document;if(!uo){var Di=document.createElement("div");Di.setAttribute("oninput","return;"),uo=typeof Di.oninput=="function"}ao=uo}else ao=!1;Fi=ao&&(!document.documentMode||9<document.documentMode)}function Mi(){Jn&&(Jn.detachEvent("onpropertychange",Ii),qn=Jn=null)}function Ii(e){if(e.propertyName==="value"&&$r(qn)){var t=[];Ri(t,qn,e,Wl(e)),ni(ud,t)}}function dd(e,t,n){e==="focusin"?(Mi(),Jn=t,qn=n,Jn.attachEvent("onpropertychange",Ii)):e==="focusout"&&Mi()}function fd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $r(qn)}function pd(e,t){if(e==="click")return $r(t)}function md(e,t){if(e==="input"||e==="change")return $r(t)}function hd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ut=typeof Object.is=="function"?Object.is:hd;function bn(e,t){if(ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!P.call(t,l)||!ut(e[l],t[l]))return!1}return!0}function Oi(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ai(e,t){var n=Oi(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=Oi(n)}}function Ui(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ui(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $i(){for(var e=window,t=kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kr(e.document)}return t}function co(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 vd(e){var t=$i(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ui(n.ownerDocument.documentElement,n)){if(r!==null&&co(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ai(n,o);var i=Ai(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 gd=j&&"documentMode"in document&&11>=document.documentMode,hn=null,fo=null,er=null,po=!1;function Vi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;po||hn==null||hn!==kr(r)||(r=hn,"selectionStart"in r&&co(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}),er&&bn(er,r)||(er=r,r=Hr(fo,"onSelect"),0<r.length&&(t=new no("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hn)))}function Vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vn={animationend:Vr("Animation","AnimationEnd"),animationiteration:Vr("Animation","AnimationIteration"),animationstart:Vr("Animation","AnimationStart"),transitionend:Vr("Transition","TransitionEnd")},mo={},Wi={};j&&(Wi=document.createElement("div").style,"AnimationEvent"in window||(delete vn.animationend.animation,delete vn.animationiteration.animation,delete vn.animationstart.animation),"TransitionEvent"in window||delete vn.transitionend.transition);function Wr(e){if(mo[e])return mo[e];if(!vn[e])return e;var t=vn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wi)return mo[e]=t[n];return e}var Bi=Wr("animationend"),Hi=Wr("animationiteration"),Qi=Wr("animationstart"),Ki=Wr("transitionend"),Yi=new Map,Gi="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 Mt(e,t){Yi.set(e,t),f(t,[e])}for(var ho=0;ho<Gi.length;ho++){var vo=Gi[ho],yd=vo.toLowerCase(),xd=vo[0].toUpperCase()+vo.slice(1);Mt(yd,"on"+xd)}Mt(Bi,"onAnimationEnd"),Mt(Hi,"onAnimationIteration"),Mt(Qi,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(Ki,"onTransitionEnd"),S("onMouseEnter",["mouseout","mouseover"]),S("onMouseLeave",["mouseout","mouseover"]),S("onPointerEnter",["pointerout","pointerover"]),S("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tr="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(" "),wd=new Set("cancel close invalid load scroll toggle".split(" ").concat(tr));function Xi(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yc(r,t,void 0,e),e.currentTarget=null}function Zi(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var c=r[i],p=c.instance,w=c.currentTarget;if(c=c.listener,p!==o&&l.isPropagationStopped())break e;Xi(l,c,w),o=p}else for(i=0;i<r.length;i++){if(c=r[i],p=c.instance,w=c.currentTarget,c=c.listener,p!==o&&l.isPropagationStopped())break e;Xi(l,c,w),o=p}}}if(Cr)throw e=Kl,Cr=!1,Kl=null,e}function fe(e,t){var n=t[No];n===void 0&&(n=t[No]=new Set);var r=e+"__bubble";n.has(r)||(Ji(t,e,2,!1),n.add(r))}function go(e,t,n){var r=0;t&&(r|=4),Ji(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function nr(e){if(!e[Br]){e[Br]=!0,d.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||go(n,!1,e),go(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,go("selectionchange",!1,t))}}function Ji(e,t,n,r){switch(wi(t)){case 1:var l=Dc;break;case 4:l=Mc;break;default:l=bl}n=l.bind(null,t,n,e),l=void 0,!Ql||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function yo(e,t,n,r,l){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var c=r.stateNode.containerInfo;if(c===l||c.nodeType===8&&c.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var p=i.tag;if((p===3||p===4)&&(p=i.stateNode.containerInfo,p===l||p.nodeType===8&&p.parentNode===l))return;i=i.return}for(;c!==null;){if(i=Zt(c),i===null)return;if(p=i.tag,p===5||p===6){r=o=i;continue e}c=c.parentNode}}r=r.return}ni(function(){var w=o,_=Wl(n),T=[];e:{var E=Yi.get(e);if(E!==void 0){var A=no,W=e;switch(e){case"keypress":if(Or(n)===0)break e;case"keydown":case"keyup":A=Zc;break;case"focusin":W="focus",A=oo;break;case"focusout":W="blur",A=oo;break;case"beforeblur":case"afterblur":A=oo;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":A=ki;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Ac;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=bc;break;case Bi:case Hi:case Qi:A=Vc;break;case Ki:A=td;break;case"scroll":A=Ic;break;case"wheel":A=rd;break;case"copy":case"cut":case"paste":A=Bc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Ei}var B=(t&4)!==0,je=!B&&e==="scroll",g=B?E!==null?E+"Capture":null:E;B=[];for(var h=w,y;h!==null;){y=h;var R=y.stateNode;if(y.tag===5&&R!==null&&(y=R,g!==null&&(R=An(h,g),R!=null&&B.push(rr(h,R,y)))),je)break;h=h.return}0<B.length&&(E=new A(E,W,null,n,_),T.push({event:E,listeners:B}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",E&&n!==Vl&&(W=n.relatedTarget||n.fromElement)&&(Zt(W)||W[jt]))break e;if((A||E)&&(E=_.window===_?_:(E=_.ownerDocument)?E.defaultView||E.parentWindow:window,A?(W=n.relatedTarget||n.toElement,A=w,W=W?Zt(W):null,W!==null&&(je=Xt(W),W!==je||W.tag!==5&&W.tag!==6)&&(W=null)):(A=null,W=w),A!==W)){if(B=ki,R="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(B=Ei,R="onPointerLeave",g="onPointerEnter",h="pointer"),je=A==null?E:xn(A),y=W==null?E:xn(W),E=new B(R,h+"leave",A,n,_),E.target=je,E.relatedTarget=y,R=null,Zt(_)===w&&(B=new B(g,h+"enter",W,n,_),B.target=y,B.relatedTarget=je,R=B),je=R,A&&W)t:{for(B=A,g=W,h=0,y=B;y;y=gn(y))h++;for(y=0,R=g;R;R=gn(R))y++;for(;0<h-y;)B=gn(B),h--;for(;0<y-h;)g=gn(g),y--;for(;h--;){if(B===g||g!==null&&B===g.alternate)break t;B=gn(B),g=gn(g)}B=null}else B=null;A!==null&&qi(T,E,A,B,!1),W!==null&&je!==null&&qi(T,je,W,B,!0)}}e:{if(E=w?xn(w):window,A=E.nodeName&&E.nodeName.toLowerCase(),A==="select"||A==="input"&&E.type==="file")var H=cd;else if(zi(E))if(Fi)H=md;else{H=fd;var Y=dd}else(A=E.nodeName)&&A.toLowerCase()==="input"&&(E.type==="checkbox"||E.type==="radio")&&(H=pd);if(H&&(H=H(e,w))){Ri(T,H,n,_);break e}Y&&Y(e,E,w),e==="focusout"&&(Y=E._wrapperState)&&Y.controlled&&E.type==="number"&&Il(E,"number",E.value)}switch(Y=w?xn(w):window,e){case"focusin":(zi(Y)||Y.contentEditable==="true")&&(hn=Y,fo=w,er=null);break;case"focusout":er=fo=hn=null;break;case"mousedown":po=!0;break;case"contextmenu":case"mouseup":case"dragend":po=!1,Vi(T,n,_);break;case"selectionchange":if(gd)break;case"keydown":case"keyup":Vi(T,n,_)}var G;if(io)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else mn?Ti(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(Ci&&n.locale!=="ko"&&(mn||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&mn&&(G=Si()):(Dt=_,to="value"in Dt?Dt.value:Dt.textContent,mn=!0)),Y=Hr(w,Z),0<Y.length&&(Z=new Ni(Z,e,null,n,_),T.push({event:Z,listeners:Y}),G?Z.data=G:(G=Pi(n),G!==null&&(Z.data=G)))),(G=od?sd(e,n):id(e,n))&&(w=Hr(w,"onBeforeInput"),0<w.length&&(_=new Ni("onBeforeInput","beforeinput",null,n,_),T.push({event:_,listeners:w}),_.data=G))}Zi(T,t)})}function rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=An(e,n),o!=null&&r.unshift(rr(e,o,l)),o=An(e,t),o!=null&&r.push(rr(e,o,l))),e=e.return}return r}function gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qi(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var c=n,p=c.alternate,w=c.stateNode;if(p!==null&&p===r)break;c.tag===5&&w!==null&&(c=w,l?(p=An(n,o),p!=null&&i.unshift(rr(n,p,c))):l||(p=An(n,o),p!=null&&i.push(rr(n,p,c)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Sd=/\r\n?/g,jd=/\u0000|\uFFFD/g;function bi(e){return(typeof e=="string"?e:""+e).replace(Sd,`
|
|
38
|
+
`).replace(jd,"")}function Qr(e,t,n){if(t=bi(t),bi(e)!==t&&n)throw Error(a(425))}function Kr(){}var xo=null,wo=null;function So(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 jo=typeof setTimeout=="function"?setTimeout:void 0,kd=typeof clearTimeout=="function"?clearTimeout:void 0,ea=typeof Promise=="function"?Promise:void 0,Nd=typeof queueMicrotask=="function"?queueMicrotask:typeof ea<"u"?function(e){return ea.resolve(null).then(e).catch(Ed)}:jo;function Ed(e){setTimeout(function(){throw e})}function ko(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Yn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Yn(t)}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ta(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yn=Math.random().toString(36).slice(2),yt="__reactFiber$"+yn,lr="__reactProps$"+yn,jt="__reactContainer$"+yn,No="__reactEvents$"+yn,Cd="__reactListeners$"+yn,_d="__reactHandles$"+yn;function Zt(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ta(e);e!==null;){if(n=e[yt])return n;e=ta(e)}return t}e=n,n=e.parentNode}return null}function or(e){return e=e[yt]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function Yr(e){return e[lr]||null}var Eo=[],wn=-1;function Ot(e){return{current:e}}function pe(e){0>wn||(e.current=Eo[wn],Eo[wn]=null,wn--)}function de(e,t){wn++,Eo[wn]=e.current,e.current=t}var At={},Fe=Ot(At),$e=Ot(!1),Jt=At;function Sn(e,t){var n=e.type.contextTypes;if(!n)return At;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ve(e){return e=e.childContextTypes,e!=null}function Gr(){pe($e),pe(Fe)}function na(e,t,n){if(Fe.current!==At)throw Error(a(168));de(Fe,t),de($e,n)}function ra(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,ce(e)||"Unknown",l));return V({},n,r)}function Xr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||At,Jt=Fe.current,de(Fe,e),de($e,$e.current),!0}function la(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ra(e,t,Jt),r.__reactInternalMemoizedMergedChildContext=e,pe($e),pe(Fe),de(Fe,e)):pe($e),de($e,n)}var kt=null,Zr=!1,Co=!1;function oa(e){kt===null?kt=[e]:kt.push(e)}function Ld(e){Zr=!0,oa(e)}function Ut(){if(!Co&&kt!==null){Co=!0;var e=0,t=ae;try{var n=kt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kt=null,Zr=!1}catch(l){throw kt!==null&&(kt=kt.slice(e+1)),ii(Yl,Ut),l}finally{ae=t,Co=!1}}return null}var jn=[],kn=0,Jr=null,qr=0,et=[],tt=0,qt=null,Nt=1,Et="";function bt(e,t){jn[kn++]=qr,jn[kn++]=Jr,Jr=e,qr=t}function sa(e,t,n){et[tt++]=Nt,et[tt++]=Et,et[tt++]=qt,qt=e;var r=Nt;e=Et;var l=32-at(r)-1;r&=~(1<<l),n+=1;var o=32-at(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Nt=1<<32-at(t)+l|n<<l|r,Et=o+e}else Nt=1<<o|n<<l|r,Et=e}function _o(e){e.return!==null&&(bt(e,1),sa(e,1,0))}function Lo(e){for(;e===Jr;)Jr=jn[--kn],jn[kn]=null,qr=jn[--kn],jn[kn]=null;for(;e===qt;)qt=et[--tt],et[tt]=null,Et=et[--tt],et[tt]=null,Nt=et[--tt],et[tt]=null}var Xe=null,Ze=null,he=!1,ct=null;function ia(e,t){var n=ot(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 aa(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,Ze=It(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qt!==null?{id:Nt,overflow:Et}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ot(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Ze=null,!0):!1;default:return!1}}function To(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Po(e){if(he){var t=Ze;if(t){var n=t;if(!aa(e,t)){if(To(e))throw Error(a(418));t=It(n.nextSibling);var r=Xe;t&&aa(e,t)?ia(r,n):(e.flags=e.flags&-4097|2,he=!1,Xe=e)}}else{if(To(e))throw Error(a(418));e.flags=e.flags&-4097|2,he=!1,Xe=e}}}function ua(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function br(e){if(e!==Xe)return!1;if(!he)return ua(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!So(e.type,e.memoizedProps)),t&&(t=Ze)){if(To(e))throw ca(),Error(a(418));for(;t;)ia(e,t),t=It(t.nextSibling)}if(ua(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ze=It(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ze=null}}else Ze=Xe?It(e.stateNode.nextSibling):null;return!0}function ca(){for(var e=Ze;e;)e=It(e.nextSibling)}function Nn(){Ze=Xe=null,he=!1}function zo(e){ct===null?ct=[e]:ct.push(e)}var Td=ne.ReactCurrentBatchConfig;function sr(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(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var c=l.refs;i===null?delete c[o]:c[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function el(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function da(e){var t=e._init;return t(e._payload)}function fa(e){function t(g,h){if(e){var y=g.deletions;y===null?(g.deletions=[h],g.flags|=16):y.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function l(g,h){return g=Yt(g,h),g.index=0,g.sibling=null,g}function o(g,h,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<h?(g.flags|=2,h):y):(g.flags|=2,h)):(g.flags|=1048576,h)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function c(g,h,y,R){return h===null||h.tag!==6?(h=js(y,g.mode,R),h.return=g,h):(h=l(h,y),h.return=g,h)}function p(g,h,y,R){var H=y.type;return H===ue?_(g,h,y.props.children,R,y.key):h!==null&&(h.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Ue&&da(H)===h.type)?(R=l(h,y.props),R.ref=sr(g,h,y),R.return=g,R):(R=Nl(y.type,y.key,y.props,null,g.mode,R),R.ref=sr(g,h,y),R.return=g,R)}function w(g,h,y,R){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=ks(y,g.mode,R),h.return=g,h):(h=l(h,y.children||[]),h.return=g,h)}function _(g,h,y,R,H){return h===null||h.tag!==7?(h=an(y,g.mode,R,H),h.return=g,h):(h=l(h,y),h.return=g,h)}function T(g,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=js(""+h,g.mode,y),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case we:return y=Nl(h.type,h.key,h.props,null,g.mode,y),y.ref=sr(g,null,h),y.return=g,y;case K:return h=ks(h,g.mode,y),h.return=g,h;case Ue:var R=h._init;return T(g,R(h._payload),y)}if(Mn(h)||X(h))return h=an(h,g.mode,y,null),h.return=g,h;el(g,h)}return null}function E(g,h,y,R){var H=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return H!==null?null:c(g,h,""+y,R);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case we:return y.key===H?p(g,h,y,R):null;case K:return y.key===H?w(g,h,y,R):null;case Ue:return H=y._init,E(g,h,H(y._payload),R)}if(Mn(y)||X(y))return H!==null?null:_(g,h,y,R,null);el(g,y)}return null}function A(g,h,y,R,H){if(typeof R=="string"&&R!==""||typeof R=="number")return g=g.get(y)||null,c(h,g,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case we:return g=g.get(R.key===null?y:R.key)||null,p(h,g,R,H);case K:return g=g.get(R.key===null?y:R.key)||null,w(h,g,R,H);case Ue:var Y=R._init;return A(g,h,y,Y(R._payload),H)}if(Mn(R)||X(R))return g=g.get(y)||null,_(h,g,R,H,null);el(h,R)}return null}function W(g,h,y,R){for(var H=null,Y=null,G=h,Z=h=0,Pe=null;G!==null&&Z<y.length;Z++){G.index>Z?(Pe=G,G=null):Pe=G.sibling;var se=E(g,G,y[Z],R);if(se===null){G===null&&(G=Pe);break}e&&G&&se.alternate===null&&t(g,G),h=o(se,h,Z),Y===null?H=se:Y.sibling=se,Y=se,G=Pe}if(Z===y.length)return n(g,G),he&&bt(g,Z),H;if(G===null){for(;Z<y.length;Z++)G=T(g,y[Z],R),G!==null&&(h=o(G,h,Z),Y===null?H=G:Y.sibling=G,Y=G);return he&&bt(g,Z),H}for(G=r(g,G);Z<y.length;Z++)Pe=A(G,g,Z,y[Z],R),Pe!==null&&(e&&Pe.alternate!==null&&G.delete(Pe.key===null?Z:Pe.key),h=o(Pe,h,Z),Y===null?H=Pe:Y.sibling=Pe,Y=Pe);return e&&G.forEach(function(Gt){return t(g,Gt)}),he&&bt(g,Z),H}function B(g,h,y,R){var H=X(y);if(typeof H!="function")throw Error(a(150));if(y=H.call(y),y==null)throw Error(a(151));for(var Y=H=null,G=h,Z=h=0,Pe=null,se=y.next();G!==null&&!se.done;Z++,se=y.next()){G.index>Z?(Pe=G,G=null):Pe=G.sibling;var Gt=E(g,G,se.value,R);if(Gt===null){G===null&&(G=Pe);break}e&&G&&Gt.alternate===null&&t(g,G),h=o(Gt,h,Z),Y===null?H=Gt:Y.sibling=Gt,Y=Gt,G=Pe}if(se.done)return n(g,G),he&&bt(g,Z),H;if(G===null){for(;!se.done;Z++,se=y.next())se=T(g,se.value,R),se!==null&&(h=o(se,h,Z),Y===null?H=se:Y.sibling=se,Y=se);return he&&bt(g,Z),H}for(G=r(g,G);!se.done;Z++,se=y.next())se=A(G,g,Z,se.value,R),se!==null&&(e&&se.alternate!==null&&G.delete(se.key===null?Z:se.key),h=o(se,h,Z),Y===null?H=se:Y.sibling=se,Y=se);return e&&G.forEach(function(uf){return t(g,uf)}),he&&bt(g,Z),H}function je(g,h,y,R){if(typeof y=="object"&&y!==null&&y.type===ue&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case we:e:{for(var H=y.key,Y=h;Y!==null;){if(Y.key===H){if(H=y.type,H===ue){if(Y.tag===7){n(g,Y.sibling),h=l(Y,y.props.children),h.return=g,g=h;break e}}else if(Y.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Ue&&da(H)===Y.type){n(g,Y.sibling),h=l(Y,y.props),h.ref=sr(g,Y,y),h.return=g,g=h;break e}n(g,Y);break}else t(g,Y);Y=Y.sibling}y.type===ue?(h=an(y.props.children,g.mode,R,y.key),h.return=g,g=h):(R=Nl(y.type,y.key,y.props,null,g.mode,R),R.ref=sr(g,h,y),R.return=g,g=R)}return i(g);case K:e:{for(Y=y.key;h!==null;){if(h.key===Y)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(g,h.sibling),h=l(h,y.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=ks(y,g.mode,R),h.return=g,g=h}return i(g);case Ue:return Y=y._init,je(g,h,Y(y._payload),R)}if(Mn(y))return W(g,h,y,R);if(X(y))return B(g,h,y,R);el(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(g,h.sibling),h=l(h,y),h.return=g,g=h):(n(g,h),h=js(y,g.mode,R),h.return=g,g=h),i(g)):n(g,h)}return je}var En=fa(!0),pa=fa(!1),tl=Ot(null),nl=null,Cn=null,Ro=null;function Fo(){Ro=Cn=nl=null}function Do(e){var t=tl.current;pe(tl),e._currentValue=t}function Mo(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 _n(e,t){nl=e,Ro=Cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(We=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(Ro!==e)if(e={context:e,memoizedValue:t,next:null},Cn===null){if(nl===null)throw Error(a(308));Cn=e,nl.dependencies={lanes:0,firstContext:e}}else Cn=Cn.next=e;return t}var en=null;function Io(e){en===null?en=[e]:en.push(e)}function ma(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Io(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ct(e,r)}function Ct(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 $t=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ha(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 _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(re&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ct(e,n)}return l=r.interleaved,l===null?(t.next=t,Io(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ct(e,n)}function rl(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,Zl(e,n)}}function va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ll(e,t,n,r){var l=e.updateQueue;$t=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var p=c,w=p.next;p.next=null,i===null?o=w:i.next=w,i=p;var _=e.alternate;_!==null&&(_=_.updateQueue,c=_.lastBaseUpdate,c!==i&&(c===null?_.firstBaseUpdate=w:c.next=w,_.lastBaseUpdate=p))}if(o!==null){var T=l.baseState;i=0,_=w=p=null,c=o;do{var E=c.lane,A=c.eventTime;if((r&E)===E){_!==null&&(_=_.next={eventTime:A,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var W=e,B=c;switch(E=t,A=n,B.tag){case 1:if(W=B.payload,typeof W=="function"){T=W.call(A,T,E);break e}T=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=B.payload,E=typeof W=="function"?W.call(A,T,E):W,E==null)break e;T=V({},T,E);break e;case 2:$t=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,E=l.effects,E===null?l.effects=[c]:E.push(c))}else A={eventTime:A,lane:E,tag:c.tag,payload:c.payload,callback:c.callback,next:null},_===null?(w=_=A,p=T):_=_.next=A,i|=E;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;E=c,c=E.next,E.next=null,l.lastBaseUpdate=E,l.shared.pending=null}}while(!0);if(_===null&&(p=T),l.baseState=p,l.firstBaseUpdate=w,l.lastBaseUpdate=_,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);rn|=i,e.lanes=i,e.memoizedState=T}}function ga(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(a(191,l));l.call(r)}}}var ir={},xt=Ot(ir),ar=Ot(ir),ur=Ot(ir);function tn(e){if(e===ir)throw Error(a(174));return e}function Ao(e,t){switch(de(ur,t),de(ar,e),de(xt,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Al(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Al(t,e)}pe(xt),de(xt,t)}function Ln(){pe(xt),pe(ar),pe(ur)}function ya(e){tn(ur.current);var t=tn(xt.current),n=Al(t,e.type);t!==n&&(de(ar,e),de(xt,n))}function Uo(e){ar.current===e&&(pe(xt),pe(ar))}var ve=Ot(0);function ol(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)!==0)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 $o=[];function Vo(){for(var e=0;e<$o.length;e++)$o[e]._workInProgressVersionPrimary=null;$o.length=0}var sl=ne.ReactCurrentDispatcher,Wo=ne.ReactCurrentBatchConfig,nn=0,ge=null,Ne=null,Le=null,il=!1,cr=!1,dr=0,Pd=0;function De(){throw Error(a(321))}function Bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ut(e[n],t[n]))return!1;return!0}function Ho(e,t,n,r,l,o){if(nn=o,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sl.current=e===null||e.memoizedState===null?Dd:Md,e=n(r,l),cr){o=0;do{if(cr=!1,dr=0,25<=o)throw Error(a(301));o+=1,Le=Ne=null,t.updateQueue=null,sl.current=Id,e=n(r,l)}while(cr)}if(sl.current=cl,t=Ne!==null&&Ne.next!==null,nn=0,Le=Ne=ge=null,il=!1,t)throw Error(a(300));return e}function Qo(){var e=dr!==0;return dr=0,e}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ge.memoizedState=Le=e:Le=Le.next=e,Le}function rt(){if(Ne===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Le===null?ge.memoizedState:Le.next;if(t!==null)Le=t,Ne=e;else{if(e===null)throw Error(a(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Le===null?ge.memoizedState=Le=e:Le=Le.next=e}return Le}function fr(e,t){return typeof t=="function"?t(e):t}function Ko(e){var t=rt(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Ne,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var c=i=null,p=null,w=o;do{var _=w.lane;if((nn&_)===_)p!==null&&(p=p.next={lane:0,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),r=w.hasEagerState?w.eagerState:e(r,w.action);else{var T={lane:_,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null};p===null?(c=p=T,i=r):p=p.next=T,ge.lanes|=_,rn|=_}w=w.next}while(w!==null&&w!==o);p===null?i=r:p.next=c,ut(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=p,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,ge.lanes|=o,rn|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Yo(e){var t=rt(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);ut(o,t.memoizedState)||(We=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function xa(){}function wa(e,t){var n=ge,r=rt(),l=t(),o=!ut(r.memoizedState,l);if(o&&(r.memoizedState=l,We=!0),r=r.queue,Go(ka.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,pr(9,ja.bind(null,n,r,l,t),void 0,null),Te===null)throw Error(a(349));(nn&30)!==0||Sa(n,t,l)}return l}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ja(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ea(e)}function ka(e,t,n){return n(function(){Na(t)&&Ea(e)})}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ut(e,n)}catch{return!0}}function Ea(e){var t=Ct(e,1);t!==null&&mt(t,e,1,-1)}function Ca(e){var t=wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:e},t.queue=e,e=e.dispatch=Fd.bind(null,ge,e),[t.memoizedState,e]}function pr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.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 _a(){return rt().memoizedState}function al(e,t,n,r){var l=wt();ge.flags|=e,l.memoizedState=pr(1|t,n,void 0,r===void 0?null:r)}function ul(e,t,n,r){var l=rt();r=r===void 0?null:r;var o=void 0;if(Ne!==null){var i=Ne.memoizedState;if(o=i.destroy,r!==null&&Bo(r,i.deps)){l.memoizedState=pr(t,n,o,r);return}}ge.flags|=e,l.memoizedState=pr(1|t,n,o,r)}function La(e,t){return al(8390656,8,e,t)}function Go(e,t){return ul(2048,8,e,t)}function Ta(e,t){return ul(4,2,e,t)}function Pa(e,t){return ul(4,4,e,t)}function za(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 Ra(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,4,za.bind(null,t,e),n)}function Xo(){}function Fa(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Da(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ma(e,t,n){return(nn&21)===0?(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n):(ut(n,t)||(n=di(),ge.lanes|=n,rn|=n,e.baseState=!0),t)}function zd(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Wo.transition;Wo.transition={};try{e(!1),t()}finally{ae=n,Wo.transition=r}}function Ia(){return rt().memoizedState}function Rd(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oa(e))Aa(t,n);else if(n=ma(e,t,n,r),n!==null){var l=Ae();mt(n,e,r,l),Ua(n,t,r)}}function Fd(e,t,n){var r=Qt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oa(e))Aa(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,c=o(i,n);if(l.hasEagerState=!0,l.eagerState=c,ut(c,i)){var p=t.interleaved;p===null?(l.next=l,Io(t)):(l.next=p.next,p.next=l),t.interleaved=l;return}}catch{}finally{}n=ma(e,t,l,r),n!==null&&(l=Ae(),mt(n,e,r,l),Ua(n,t,r))}}function Oa(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Aa(e,t){cr=il=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ua(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zl(e,n)}}var cl={readContext:nt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Dd={readContext:nt,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:La,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();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=Rd.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:Ca,useDebugValue:Xo,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=Ca(!1),t=e[0];return e=zd.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,l=wt();if(he){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Te===null)throw Error(a(349));(nn&30)!==0||Sa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,La(ka.bind(null,r,o,e),[e]),r.flags|=2048,pr(9,ja.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=wt(),t=Te.identifierPrefix;if(he){var n=Et,r=Nt;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Pd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Md={readContext:nt,useCallback:Fa,useContext:nt,useEffect:Go,useImperativeHandle:Ra,useInsertionEffect:Ta,useLayoutEffect:Pa,useMemo:Da,useReducer:Ko,useRef:_a,useState:function(){return Ko(fr)},useDebugValue:Xo,useDeferredValue:function(e){var t=rt();return Ma(t,Ne.memoizedState,e)},useTransition:function(){var e=Ko(fr)[0],t=rt().memoizedState;return[e,t]},useMutableSource:xa,useSyncExternalStore:wa,useId:Ia,unstable_isNewReconciler:!1},Id={readContext:nt,useCallback:Fa,useContext:nt,useEffect:Go,useImperativeHandle:Ra,useInsertionEffect:Ta,useLayoutEffect:Pa,useMemo:Da,useReducer:Yo,useRef:_a,useState:function(){return Yo(fr)},useDebugValue:Xo,useDeferredValue:function(e){var t=rt();return Ne===null?t.memoizedState=e:Ma(t,Ne.memoizedState,e)},useTransition:function(){var e=Yo(fr)[0],t=rt().memoizedState;return[e,t]},useMutableSource:xa,useSyncExternalStore:wa,useId:Ia,unstable_isNewReconciler:!1};function dt(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Zo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dl={isMounted:function(e){return(e=e._reactInternals)?Xt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),l=Qt(e),o=_t(r,l);o.payload=t,n!=null&&(o.callback=n),t=Vt(e,o,l),t!==null&&(mt(t,e,l,r),rl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),l=Qt(e),o=_t(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Vt(e,o,l),t!==null&&(mt(t,e,l,r),rl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Qt(e),l=_t(n,r);l.tag=2,t!=null&&(l.callback=t),t=Vt(e,l,r),t!==null&&(mt(t,e,r,n),rl(t,e,r))}};function $a(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!bn(n,r)||!bn(l,o):!0}function Va(e,t,n){var r=!1,l=At,o=t.contextType;return typeof o=="object"&&o!==null?o=nt(o):(l=Ve(t)?Jt:Fe.current,r=t.contextTypes,o=(r=r!=null)?Sn(e,l):At),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wa(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&&dl.enqueueReplaceState(t,t.state,null)}function Jo(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Oo(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=nt(o):(o=Ve(t)?Jt:Fe.current,l.context=Sn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Zo(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&dl.enqueueReplaceState(l,l.state,null),ll(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Tn(e,t){try{var n="",r=t;do n+=le(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function qo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Od=typeof WeakMap=="function"?WeakMap:Map;function Ba(e,t,n){n=_t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yl||(yl=!0,ms=r),bo(e,t)},n}function Ha(e,t,n){n=_t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){bo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bo(e,t),typeof r!="function"&&(Bt===null?Bt=new Set([this]):Bt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Qa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Od;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Jd.bind(null,e,t,n),t.then(e,e))}function Ka(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 Ya(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_t(-1,1),t.tag=2,Vt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Ad=ne.ReactCurrentOwner,We=!1;function Oe(e,t,n,r){t.child=e===null?pa(t,null,n,r):En(t,e.child,n,r)}function Ga(e,t,n,r,l){n=n.render;var o=t.ref;return _n(t,l),r=Ho(e,t,n,r,o,l),n=Qo(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Lt(e,t,l)):(he&&n&&_o(t),t.flags|=1,Oe(e,t,r,l),t.child)}function Xa(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ss(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Za(e,t,o,r,l)):(e=Nl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&l)===0){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:bn,n(i,r)&&e.ref===t.ref)return Lt(e,t,l)}return t.flags|=1,e=Yt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Za(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(bn(o,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=o,(e.lanes&l)!==0)(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Lt(e,t,l)}return es(e,t,n,r,l)}function Ja(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(zn,Je),Je|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(zn,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,de(zn,Je),Je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,de(zn,Je),Je|=r;return Oe(e,t,l,n),t.child}function qa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function es(e,t,n,r,l){var o=Ve(n)?Jt:Fe.current;return o=Sn(t,o),_n(t,l),n=Ho(e,t,n,r,o,l),r=Qo(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Lt(e,t,l)):(he&&r&&_o(t),t.flags|=1,Oe(e,t,n,l),t.child)}function ba(e,t,n,r,l){if(Ve(n)){var o=!0;Xr(t)}else o=!1;if(_n(t,l),t.stateNode===null)pl(e,t),Va(t,n,r),Jo(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var p=i.context,w=n.contextType;typeof w=="object"&&w!==null?w=nt(w):(w=Ve(n)?Jt:Fe.current,w=Sn(t,w));var _=n.getDerivedStateFromProps,T=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function";T||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==r||p!==w)&&Wa(t,i,r,w),$t=!1;var E=t.memoizedState;i.state=E,ll(t,r,i,l),p=t.memoizedState,c!==r||E!==p||$e.current||$t?(typeof _=="function"&&(Zo(t,n,_,r),p=t.memoizedState),(c=$t||$a(t,n,c,r,E,p,w))?(T||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=w,r=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ha(e,t),c=t.memoizedProps,w=t.type===t.elementType?c:dt(t.type,c),i.props=w,T=t.pendingProps,E=i.context,p=n.contextType,typeof p=="object"&&p!==null?p=nt(p):(p=Ve(n)?Jt:Fe.current,p=Sn(t,p));var A=n.getDerivedStateFromProps;(_=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==T||E!==p)&&Wa(t,i,r,p),$t=!1,E=t.memoizedState,i.state=E,ll(t,r,i,l);var W=t.memoizedState;c!==T||E!==W||$e.current||$t?(typeof A=="function"&&(Zo(t,n,A,r),W=t.memoizedState),(w=$t||$a(t,n,w,r,E,W,p)||!1)?(_||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,W,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,W,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=W),i.props=r,i.state=W,i.context=p,r=w):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),r=!1)}return ts(e,t,n,r,o,l)}function ts(e,t,n,r,l,o){qa(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&la(t,n,!1),Lt(e,t,o);r=t.stateNode,Ad.current=t;var c=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=En(t,e.child,null,o),t.child=En(t,null,c,o)):Oe(e,t,c,o),t.memoizedState=r.state,l&&la(t,n,!0),t.child}function eu(e){var t=e.stateNode;t.pendingContext?na(e,t.pendingContext,t.pendingContext!==t.context):t.context&&na(e,t.context,!1),Ao(e,t.containerInfo)}function tu(e,t,n,r,l){return Nn(),zo(l),t.flags|=256,Oe(e,t,n,r),t.child}var ns={dehydrated:null,treeContext:null,retryLane:0};function rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function nu(e,t,n){var r=t.pendingProps,l=ve.current,o=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(l&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),de(ve,l&1),e===null)return Po(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=i):o=El(i,r,0,null),e=an(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=rs(n),t.memoizedState=ns,e):ls(t,i));if(l=e.memoizedState,l!==null&&(c=l.dehydrated,c!==null))return Ud(e,t,i,r,c,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,c=l.sibling;var p={mode:"hidden",children:r.children};return(i&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=p,t.deletions=null):(r=Yt(l,p),r.subtreeFlags=l.subtreeFlags&14680064),c!==null?o=Yt(c,o):(o=an(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?rs(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=ns,r}return o=e.child,e=o.sibling,r=Yt(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(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 ls(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fl(e,t,n,r){return r!==null&&zo(r),En(t,e.child,null,n),e=ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ud(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=qo(Error(a(422))),fl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=El({mode:"visible",children:r.children},l,0,null),o=an(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&En(t,e.child,null,i),t.child.memoizedState=rs(i),t.memoizedState=ns,o);if((t.mode&1)===0)return fl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var c=r.dgst;return r=c,o=Error(a(419)),r=qo(o,r,void 0),fl(e,t,i,r)}if(c=(i&e.childLanes)!==0,We||c){if(r=Te,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|i))!==0?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Ct(e,l),mt(r,e,l,-1))}return ws(),r=qo(Error(a(421))),fl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=qd.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Ze=It(l.nextSibling),Xe=t,he=!0,ct=null,e!==null&&(et[tt++]=Nt,et[tt++]=Et,et[tt++]=qt,Nt=e.id,Et=e.overflow,qt=t),t=ls(t,r.children),t.flags|=4096,t)}function ru(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mo(e.return,t,n)}function os(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function lu(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(Oe(e,t,r.children,n),r=ve.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ru(e,n,t);else if(e.tag===19)ru(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(de(ve,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ol(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),os(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ol(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}os(t,!0,n,null,o);break;case"together":os(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Yt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $d(e,t,n){switch(t.tag){case 3:eu(t),Nn();break;case 5:ya(t);break;case 1:Ve(t.type)&&Xr(t);break;case 4:Ao(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;de(tl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ve,ve.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?nu(e,t,n):(de(ve,ve.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);de(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return lu(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),de(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,Ja(e,t,n)}return Lt(e,t,n)}var ou,ss,su,iu;ou=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}},ss=function(){},su=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,tn(xt.current);var o=null;switch(n){case"input":l=Dl(e,l),r=Dl(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=Ol(e,l),r=Ol(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}Ul(n,r);var i;n=null;for(w in l)if(!r.hasOwnProperty(w)&&l.hasOwnProperty(w)&&l[w]!=null)if(w==="style"){var c=l[w];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else w!=="dangerouslySetInnerHTML"&&w!=="children"&&w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(m.hasOwnProperty(w)?o||(o=[]):(o=o||[]).push(w,null));for(w in r){var p=r[w];if(c=l!=null?l[w]:void 0,r.hasOwnProperty(w)&&p!==c&&(p!=null||c!=null))if(w==="style")if(c){for(i in c)!c.hasOwnProperty(i)||p&&p.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in p)p.hasOwnProperty(i)&&c[i]!==p[i]&&(n||(n={}),n[i]=p[i])}else n||(o||(o=[]),o.push(w,n)),n=p;else w==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,c=c?c.__html:void 0,p!=null&&c!==p&&(o=o||[]).push(w,p)):w==="children"?typeof p!="string"&&typeof p!="number"||(o=o||[]).push(w,""+p):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&(m.hasOwnProperty(w)?(p!=null&&w==="onScroll"&&fe("scroll",e),o||c===p||(o=[])):(o=o||[]).push(w,p))}n&&(o=o||[]).push("style",n);var w=o;(t.updateQueue=w)&&(t.flags|=4)}},iu=function(e,t,n,r){n!==r&&(t.flags|=4)};function mr(e,t){if(!he)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 Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vd(e,t,n){var r=t.pendingProps;switch(Lo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Ve(t.type)&&Gr(),Me(t),null;case 3:return r=t.stateNode,Ln(),pe($e),pe(Fe),Vo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ct!==null&&(gs(ct),ct=null))),ss(e,t),Me(t),null;case 5:Uo(t);var l=tn(ur.current);if(n=t.type,e!==null&&t.stateNode!=null)su(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Me(t),null}if(e=tn(xt.current),br(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[yt]=t,r[lr]=o,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(l=0;l<tr.length;l++)fe(tr[l],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Vs(r,o),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},fe("invalid",r);break;case"textarea":Hs(r,o),fe("invalid",r)}Ul(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="children"?typeof c=="string"?r.textContent!==c&&(o.suppressHydrationWarning!==!0&&Qr(r.textContent,c,e),l=["children",c]):typeof c=="number"&&r.textContent!==""+c&&(o.suppressHydrationWarning!==!0&&Qr(r.textContent,c,e),l=["children",""+c]):m.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&fe("scroll",r)}switch(n){case"input":jr(r),Bs(r,o,!0);break;case"textarea":jr(r),Ks(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ys(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[yt]=t,e[lr]=r,ou(e,t,!1,!1),t.stateNode=e;e:{switch(i=$l(n,r),n){case"dialog":fe("cancel",e),fe("close",e),l=r;break;case"iframe":case"object":case"embed":fe("load",e),l=r;break;case"video":case"audio":for(l=0;l<tr.length;l++)fe(tr[l],e);l=r;break;case"source":fe("error",e),l=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),l=r;break;case"details":fe("toggle",e),l=r;break;case"input":Vs(e,r),l=Dl(e,r),fe("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Hs(e,r),l=Ol(e,r),fe("invalid",e);break;default:l=r}Ul(n,l),c=l;for(o in c)if(c.hasOwnProperty(o)){var p=c[o];o==="style"?Zs(e,p):o==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,p!=null&&Gs(e,p)):o==="children"?typeof p=="string"?(n!=="textarea"||p!=="")&&In(e,p):typeof p=="number"&&In(e,""+p):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(m.hasOwnProperty(o)?p!=null&&o==="onScroll"&&fe("scroll",e):p!=null&&q(e,o,p,i))}switch(n){case"input":jr(e),Bs(e,r,!1);break;case"textarea":jr(e),Ks(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ie(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?un(e,!!r.multiple,o,!1):r.defaultValue!=null&&un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Kr)}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 Me(t),null;case 6:if(e&&t.stateNode!=null)iu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(a(166));if(n=tn(ur.current),tn(xt.current),br(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(o=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:Qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r}return Me(t),null;case 13:if(pe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&Ze!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ca(),Nn(),t.flags|=98560,o=!1;else if(o=br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(a(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(a(317));o[yt]=t}else Nn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),o=!1}else ct!==null&&(gs(ct),ct=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ve.current&1)!==0?Ee===0&&(Ee=3):ws())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Ln(),ss(e,t),e===null&&nr(t.stateNode.containerInfo),Me(t),null;case 10:return Do(t.type._context),Me(t),null;case 17:return Ve(t.type)&&Gr(),Me(t),null;case 19:if(pe(ve),o=t.memoizedState,o===null)return Me(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)mr(o,!1);else{if(Ee!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ol(e),i!==null){for(t.flags|=128,mr(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ve,ve.current&1|2),t.child}e=e.sibling}o.tail!==null&&Se()>Rn&&(t.flags|=128,r=!0,mr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ol(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!he)return Me(t),null}else 2*Se()-o.renderingStartTime>Rn&&n!==1073741824&&(t.flags|=128,r=!0,mr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Se(),t.sibling=null,n=ve.current,de(ve,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return xs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Je&1073741824)!==0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Wd(e,t){switch(Lo(t),t.tag){case 1:return Ve(t.type)&&Gr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),pe($e),pe(Fe),Vo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Uo(t),null;case 13:if(pe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ve),null;case 4:return Ln(),null;case 10:return Do(t.type._context),null;case 22:case 23:return xs(),null;case 24:return null;default:return null}}var ml=!1,Ie=!1,Bd=typeof WeakSet=="function"?WeakSet:Set,$=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function is(e,t,n){try{n()}catch(r){xe(e,t,r)}}var au=!1;function Hd(e,t){if(xo=Dr,e=$i(),co(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,c=-1,p=-1,w=0,_=0,T=e,E=null;t:for(;;){for(var A;T!==n||l!==0&&T.nodeType!==3||(c=i+l),T!==o||r!==0&&T.nodeType!==3||(p=i+r),T.nodeType===3&&(i+=T.nodeValue.length),(A=T.firstChild)!==null;)E=T,T=A;for(;;){if(T===e)break t;if(E===n&&++w===l&&(c=i),E===o&&++_===r&&(p=i),(A=T.nextSibling)!==null)break;T=E,E=T.parentNode}T=A}n=c===-1||p===-1?null:{start:c,end:p}}else n=null}n=n||{start:0,end:0}}else n=null;for(wo={focusedElem:e,selectionRange:n},Dr=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var W=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var B=W.memoizedProps,je=W.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?B:dt(t.type,B),je);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(R){xe(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return W=au,au=!1,W}function hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&is(t,n,o)}l=l.next}while(l!==r)}}function hl(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 as(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 uu(e){var t=e.alternate;t!==null&&(e.alternate=null,uu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[lr],delete t[No],delete t[Cd],delete t[_d])),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 cu(e){return e.tag===5||e.tag===3||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cu(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 us(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=Kr));else if(r!==4&&(e=e.child,e!==null))for(us(e,t,n),e=e.sibling;e!==null;)us(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}var ze=null,ft=!1;function Wt(e,t,n){for(n=n.child;n!==null;)fu(e,t,n),n=n.sibling}function fu(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Lr,n)}catch{}switch(n.tag){case 5:Ie||Pn(n,t);case 6:var r=ze,l=ft;ze=null,Wt(e,t,n),ze=r,ft=l,ze!==null&&(ft?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(ft?(e=ze,n=n.stateNode,e.nodeType===8?ko(e.parentNode,n):e.nodeType===1&&ko(e,n),Yn(e)):ko(ze,n.stateNode));break;case 4:r=ze,l=ft,ze=n.stateNode.containerInfo,ft=!0,Wt(e,t,n),ze=r,ft=l;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&is(n,t,i),l=l.next}while(l!==r)}Wt(e,t,n);break;case 1:if(!Ie&&(Pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){xe(n,t,c)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Wt(e,t,n),Ie=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function pu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bd),t.forEach(function(r){var l=bd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 5:ze=c.stateNode,ft=!1;break e;case 3:ze=c.stateNode.containerInfo,ft=!0;break e;case 4:ze=c.stateNode.containerInfo,ft=!0;break e}c=c.return}if(ze===null)throw Error(a(160));fu(o,i,l),ze=null,ft=!1;var p=l.alternate;p!==null&&(p.return=null),l.return=null}catch(w){xe(l,t,w)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pt(t,e),St(e),r&4){try{hr(3,e,e.return),hl(3,e)}catch(B){xe(e,e.return,B)}try{hr(5,e,e.return)}catch(B){xe(e,e.return,B)}}break;case 1:pt(t,e),St(e),r&512&&n!==null&&Pn(n,n.return);break;case 5:if(pt(t,e),St(e),r&512&&n!==null&&Pn(n,n.return),e.flags&32){var l=e.stateNode;try{In(l,"")}catch(B){xe(e,e.return,B)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,c=e.type,p=e.updateQueue;if(e.updateQueue=null,p!==null)try{c==="input"&&o.type==="radio"&&o.name!=null&&Ws(l,o),$l(c,i);var w=$l(c,o);for(i=0;i<p.length;i+=2){var _=p[i],T=p[i+1];_==="style"?Zs(l,T):_==="dangerouslySetInnerHTML"?Gs(l,T):_==="children"?In(l,T):q(l,_,T,w)}switch(c){case"input":Ml(l,o);break;case"textarea":Qs(l,o);break;case"select":var E=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var A=o.value;A!=null?un(l,!!o.multiple,A,!1):E!==!!o.multiple&&(o.defaultValue!=null?un(l,!!o.multiple,o.defaultValue,!0):un(l,!!o.multiple,o.multiple?[]:"",!1))}l[lr]=o}catch(B){xe(e,e.return,B)}}break;case 6:if(pt(t,e),St(e),r&4){if(e.stateNode===null)throw Error(a(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(B){xe(e,e.return,B)}}break;case 3:if(pt(t,e),St(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yn(t.containerInfo)}catch(B){xe(e,e.return,B)}break;case 4:pt(t,e),St(e);break;case 13:pt(t,e),St(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(ps=Se())),r&4&&pu(e);break;case 22:if(_=n!==null&&n.memoizedState!==null,e.mode&1?(Ie=(w=Ie)||_,pt(t,e),Ie=w):pt(t,e),St(e),r&8192){if(w=e.memoizedState!==null,(e.stateNode.isHidden=w)&&!_&&(e.mode&1)!==0)for($=e,_=e.child;_!==null;){for(T=$=_;$!==null;){switch(E=$,A=E.child,E.tag){case 0:case 11:case 14:case 15:hr(4,E,E.return);break;case 1:Pn(E,E.return);var W=E.stateNode;if(typeof W.componentWillUnmount=="function"){r=E,n=E.return;try{t=r,W.props=t.memoizedProps,W.state=t.memoizedState,W.componentWillUnmount()}catch(B){xe(r,n,B)}}break;case 5:Pn(E,E.return);break;case 22:if(E.memoizedState!==null){gu(T);continue}}A!==null?(A.return=E,$=A):gu(T)}_=_.sibling}e:for(_=null,T=e;;){if(T.tag===5){if(_===null){_=T;try{l=T.stateNode,w?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(c=T.stateNode,p=T.memoizedProps.style,i=p!=null&&p.hasOwnProperty("display")?p.display:null,c.style.display=Xs("display",i))}catch(B){xe(e,e.return,B)}}}else if(T.tag===6){if(_===null)try{T.stateNode.nodeValue=w?"":T.memoizedProps}catch(B){xe(e,e.return,B)}}else if((T.tag!==22&&T.tag!==23||T.memoizedState===null||T===e)&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===e)break e;for(;T.sibling===null;){if(T.return===null||T.return===e)break e;_===T&&(_=null),T=T.return}_===T&&(_=null),T.sibling.return=T.return,T=T.sibling}}break;case 19:pt(t,e),St(e),r&4&&pu(e);break;case 21:break;default:pt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cu(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(In(l,""),r.flags&=-33);var o=du(e);cs(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,c=du(e);us(e,c,i);break;default:throw Error(a(161))}}catch(p){xe(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qd(e,t,n){$=e,hu(e)}function hu(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var l=$,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||ml;if(!i){var c=l.alternate,p=c!==null&&c.memoizedState!==null||Ie;c=ml;var w=Ie;if(ml=i,(Ie=p)&&!w)for($=l;$!==null;)i=$,p=i.child,i.tag===22&&i.memoizedState!==null?yu(l):p!==null?(p.return=i,$=p):yu(l);for(;o!==null;)$=o,hu(o),o=o.sibling;$=l,ml=c,Ie=w}vu(e)}else(l.subtreeFlags&8772)!==0&&o!==null?(o.return=l,$=o):vu(e)}}function vu(e){for(;$!==null;){var t=$;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ie||hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ie)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ga(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ga(t,i,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var p=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":p.autoFocus&&n.focus();break;case"img":p.src&&(n.src=p.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var w=t.alternate;if(w!==null){var _=w.memoizedState;if(_!==null){var T=_.dehydrated;T!==null&&Yn(T)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Ie||t.flags&512&&as(t)}catch(E){xe(t,t.return,E)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function gu(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function yu(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hl(4,t)}catch(p){xe(t,n,p)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(p){xe(t,l,p)}}var o=t.return;try{as(t)}catch(p){xe(t,o,p)}break;case 5:var i=t.return;try{as(t)}catch(p){xe(t,i,p)}}}catch(p){xe(t,t.return,p)}if(t===e){$=null;break}var c=t.sibling;if(c!==null){c.return=t.return,$=c;break}$=t.return}}var Kd=Math.ceil,vl=ne.ReactCurrentDispatcher,ds=ne.ReactCurrentOwner,lt=ne.ReactCurrentBatchConfig,re=0,Te=null,ke=null,Re=0,Je=0,zn=Ot(0),Ee=0,vr=null,rn=0,gl=0,fs=0,gr=null,Be=null,ps=0,Rn=1/0,Tt=null,yl=!1,ms=null,Bt=null,xl=!1,Ht=null,wl=0,yr=0,hs=null,Sl=-1,jl=0;function Ae(){return(re&6)!==0?Se():Sl!==-1?Sl:Sl=Se()}function Qt(e){return(e.mode&1)===0?1:(re&2)!==0&&Re!==0?Re&-Re:Td.transition!==null?(jl===0&&(jl=di()),jl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:wi(e.type)),e)}function mt(e,t,n,r){if(50<yr)throw yr=0,hs=null,Error(a(185));Wn(e,n,r),((re&2)===0||e!==Te)&&(e===Te&&((re&2)===0&&(gl|=n),Ee===4&&Kt(e,Re)),He(e,r),n===1&&re===0&&(t.mode&1)===0&&(Rn=Se()+500,Zr&&Ut()))}function He(e,t){var n=e.callbackNode;Tc(e,t);var r=zr(e,e===Te?Re:0);if(r===0)n!==null&&ai(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ai(n),t===1)e.tag===0?Ld(wu.bind(null,e)):oa(wu.bind(null,e)),Nd(function(){(re&6)===0&&Ut()}),n=null;else{switch(fi(r)){case 1:n=Yl;break;case 4:n=ui;break;case 16:n=_r;break;case 536870912:n=ci;break;default:n=_r}n=Lu(n,xu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xu(e,t){if(Sl=-1,jl=0,(re&6)!==0)throw Error(a(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=zr(e,e===Te?Re:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=kl(e,r);else{t=r;var l=re;re|=2;var o=ju();(Te!==e||Re!==t)&&(Tt=null,Rn=Se()+500,on(e,t));do try{Xd();break}catch(c){Su(e,c)}while(!0);Fo(),vl.current=o,re=l,ke!==null?t=0:(Te=null,Re=0,t=Ee)}if(t!==0){if(t===2&&(l=Gl(e),l!==0&&(r=l,t=vs(e,l))),t===1)throw n=vr,on(e,0),Kt(e,r),He(e,Se()),n;if(t===6)Kt(e,r);else{if(l=e.current.alternate,(r&30)===0&&!Yd(l)&&(t=kl(e,r),t===2&&(o=Gl(e),o!==0&&(r=o,t=vs(e,o))),t===1))throw n=vr,on(e,0),Kt(e,r),He(e,Se()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:sn(e,Be,Tt);break;case 3:if(Kt(e,r),(r&130023424)===r&&(t=ps+500-Se(),10<t)){if(zr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=jo(sn.bind(null,e,Be,Tt),t);break}sn(e,Be,Tt);break;case 4:if(Kt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-at(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kd(r/1960))-r,10<r){e.timeoutHandle=jo(sn.bind(null,e,Be,Tt),r);break}sn(e,Be,Tt);break;case 5:sn(e,Be,Tt);break;default:throw Error(a(329))}}}return He(e,Se()),e.callbackNode===n?xu.bind(null,e):null}function vs(e,t){var n=gr;return e.current.memoizedState.isDehydrated&&(on(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Be,Be=n,t!==null&&gs(t)),e}function gs(e){Be===null?Be=e:Be.push.apply(Be,e)}function Yd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!ut(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Kt(e,t){for(t&=~fs,t&=~gl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function wu(e){if((re&6)!==0)throw Error(a(327));Fn();var t=zr(e,0);if((t&1)===0)return He(e,Se()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var r=Gl(e);r!==0&&(t=r,n=vs(e,r))}if(n===1)throw n=vr,on(e,0),Kt(e,t),He(e,Se()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sn(e,Be,Tt),He(e,Se()),null}function ys(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Rn=Se()+500,Zr&&Ut())}}function ln(e){Ht!==null&&Ht.tag===0&&(re&6)===0&&Fn();var t=re;re|=1;var n=lt.transition,r=ae;try{if(lt.transition=null,ae=1,e)return e()}finally{ae=r,lt.transition=n,re=t,(re&6)===0&&Ut()}}function xs(){Je=zn.current,pe(zn)}function on(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kd(n)),ke!==null)for(n=ke.return;n!==null;){var r=n;switch(Lo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gr();break;case 3:Ln(),pe($e),pe(Fe),Vo();break;case 5:Uo(r);break;case 4:Ln();break;case 13:pe(ve);break;case 19:pe(ve);break;case 10:Do(r.type._context);break;case 22:case 23:xs()}n=n.return}if(Te=e,ke=e=Yt(e.current,null),Re=Je=t,Ee=0,vr=null,fs=gl=rn=0,Be=gr=null,en!==null){for(t=0;t<en.length;t++)if(n=en[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}en=null}return e}function Su(e,t){do{var n=ke;try{if(Fo(),sl.current=cl,il){for(var r=ge.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}il=!1}if(nn=0,Le=Ne=ge=null,cr=!1,dr=0,ds.current=null,n===null||n.return===null){Ee=1,vr=t,ke=null;break}e:{var o=e,i=n.return,c=n,p=t;if(t=Re,c.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){var w=p,_=c,T=_.tag;if((_.mode&1)===0&&(T===0||T===11||T===15)){var E=_.alternate;E?(_.updateQueue=E.updateQueue,_.memoizedState=E.memoizedState,_.lanes=E.lanes):(_.updateQueue=null,_.memoizedState=null)}var A=Ka(i);if(A!==null){A.flags&=-257,Ya(A,i,c,o,t),A.mode&1&&Qa(o,w,t),t=A,p=w;var W=t.updateQueue;if(W===null){var B=new Set;B.add(p),t.updateQueue=B}else W.add(p);break e}else{if((t&1)===0){Qa(o,w,t),ws();break e}p=Error(a(426))}}else if(he&&c.mode&1){var je=Ka(i);if(je!==null){(je.flags&65536)===0&&(je.flags|=256),Ya(je,i,c,o,t),zo(Tn(p,c));break e}}o=p=Tn(p,c),Ee!==4&&(Ee=2),gr===null?gr=[o]:gr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Ba(o,p,t);va(o,g);break e;case 1:c=p;var h=o.type,y=o.stateNode;if((o.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Bt===null||!Bt.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var R=Ha(o,c,t);va(o,R);break e}}o=o.return}while(o!==null)}Nu(n)}catch(H){t=H,ke===n&&n!==null&&(ke=n=n.return);continue}break}while(!0)}function ju(){var e=vl.current;return vl.current=cl,e===null?cl:e}function ws(){(Ee===0||Ee===3||Ee===2)&&(Ee=4),Te===null||(rn&268435455)===0&&(gl&268435455)===0||Kt(Te,Re)}function kl(e,t){var n=re;re|=2;var r=ju();(Te!==e||Re!==t)&&(Tt=null,on(e,t));do try{Gd();break}catch(l){Su(e,l)}while(!0);if(Fo(),re=n,vl.current=r,ke!==null)throw Error(a(261));return Te=null,Re=0,Ee}function Gd(){for(;ke!==null;)ku(ke)}function Xd(){for(;ke!==null&&!wc();)ku(ke)}function ku(e){var t=_u(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?Nu(e):ke=t,ds.current=null}function Nu(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Vd(n,t,Je),n!==null){ke=n;return}}else{if(n=Wd(n,t),n!==null){n.flags&=32767,ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ee=6,ke=null;return}}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);Ee===0&&(Ee=5)}function sn(e,t,n){var r=ae,l=lt.transition;try{lt.transition=null,ae=1,Zd(e,t,n,r)}finally{lt.transition=l,ae=r}return null}function Zd(e,t,n,r){do Fn();while(Ht!==null);if((re&6)!==0)throw Error(a(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Pc(e,o),e===Te&&(ke=Te=null,Re=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||xl||(xl=!0,Lu(_r,function(){return Fn(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=lt.transition,lt.transition=null;var i=ae;ae=1;var c=re;re|=4,ds.current=null,Hd(e,n),mu(n,e),vd(wo),Dr=!!xo,wo=xo=null,e.current=n,Qd(n),Sc(),re=c,ae=i,lt.transition=o}else e.current=n;if(xl&&(xl=!1,Ht=e,wl=l),o=e.pendingLanes,o===0&&(Bt=null),Nc(n.stateNode),He(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(yl)throw yl=!1,e=ms,ms=null,e;return(wl&1)!==0&&e.tag!==0&&Fn(),o=e.pendingLanes,(o&1)!==0?e===hs?yr++:(yr=0,hs=e):yr=0,Ut(),null}function Fn(){if(Ht!==null){var e=fi(wl),t=lt.transition,n=ae;try{if(lt.transition=null,ae=16>e?16:e,Ht===null)var r=!1;else{if(e=Ht,Ht=null,wl=0,(re&6)!==0)throw Error(a(331));var l=re;for(re|=4,$=e.current;$!==null;){var o=$,i=o.child;if(($.flags&16)!==0){var c=o.deletions;if(c!==null){for(var p=0;p<c.length;p++){var w=c[p];for($=w;$!==null;){var _=$;switch(_.tag){case 0:case 11:case 15:hr(8,_,o)}var T=_.child;if(T!==null)T.return=_,$=T;else for(;$!==null;){_=$;var E=_.sibling,A=_.return;if(uu(_),_===w){$=null;break}if(E!==null){E.return=A,$=E;break}$=A}}}var W=o.alternate;if(W!==null){var B=W.child;if(B!==null){W.child=null;do{var je=B.sibling;B.sibling=null,B=je}while(B!==null)}}$=o}}if((o.subtreeFlags&2064)!==0&&i!==null)i.return=o,$=i;else e:for(;$!==null;){if(o=$,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:hr(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,$=g;break e}$=o.return}}var h=e.current;for($=h;$!==null;){i=$;var y=i.child;if((i.subtreeFlags&2064)!==0&&y!==null)y.return=i,$=y;else e:for(i=h;$!==null;){if(c=$,(c.flags&2048)!==0)try{switch(c.tag){case 0:case 11:case 15:hl(9,c)}}catch(H){xe(c,c.return,H)}if(c===i){$=null;break e}var R=c.sibling;if(R!==null){R.return=c.return,$=R;break e}$=c.return}}if(re=l,Ut(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Lr,e)}catch{}r=!0}return r}finally{ae=n,lt.transition=t}}return!1}function Eu(e,t,n){t=Tn(n,t),t=Ba(e,t,1),e=Vt(e,t,1),t=Ae(),e!==null&&(Wn(e,1,t),He(e,t))}function xe(e,t,n){if(e.tag===3)Eu(e,e,n);else for(;t!==null;){if(t.tag===3){Eu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r))){e=Tn(n,e),e=Ha(t,e,1),t=Vt(t,e,1),e=Ae(),t!==null&&(Wn(t,1,e),He(t,e));break}}t=t.return}}function Jd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Re&n)===n&&(Ee===4||Ee===3&&(Re&130023424)===Re&&500>Se()-ps?on(e,0):fs|=n),He(e,t)}function Cu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Pr,Pr<<=1,(Pr&130023424)===0&&(Pr=4194304)));var n=Ae();e=Ct(e,t),e!==null&&(Wn(e,t,n),He(e,n))}function qd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cu(e,n)}function bd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Cu(e,n)}var _u;_u=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)We=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return We=!1,$d(e,t,n);We=(e.flags&131072)!==0}else We=!1,he&&(t.flags&1048576)!==0&&sa(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var l=Sn(t,Fe.current);_n(t,n),l=Ho(null,t,r,e,l,n);var o=Qo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(o=!0,Xr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Oo(t),l.updater=dl,t.stateNode=l,l._reactInternals=t,Jo(t,r,e,n),t=ts(null,t,r,!0,o,n)):(t.tag=0,he&&o&&_o(t),Oe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=tf(r),e=dt(r,e),l){case 0:t=es(null,t,r,e,n);break e;case 1:t=ba(null,t,r,e,n);break e;case 11:t=Ga(null,t,r,e,n);break e;case 14:t=Xa(null,t,r,dt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),es(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),ba(e,t,r,l,n);case 3:e:{if(eu(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ha(e,t),ll(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Tn(Error(a(423)),t),t=tu(e,t,r,n,l);break e}else if(r!==l){l=Tn(Error(a(424)),t),t=tu(e,t,r,n,l);break e}else for(Ze=It(t.stateNode.containerInfo.firstChild),Xe=t,he=!0,ct=null,n=pa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nn(),r===l){t=Lt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return ya(t),e===null&&Po(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,So(r,l)?i=null:o!==null&&So(r,o)&&(t.flags|=32),qa(e,t),Oe(e,t,i,n),t.child;case 6:return e===null&&Po(t),null;case 13:return nu(e,t,n);case 4:return Ao(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=En(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),Ga(e,t,r,l,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,de(tl,r._currentValue),r._currentValue=i,o!==null)if(ut(o.value,i)){if(o.children===l.children&&!$e.current){t=Lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){i=o.child;for(var p=c.firstContext;p!==null;){if(p.context===r){if(o.tag===1){p=_t(-1,n&-n),p.tag=2;var w=o.updateQueue;if(w!==null){w=w.shared;var _=w.pending;_===null?p.next=p:(p.next=_.next,_.next=p),w.pending=p}}o.lanes|=n,p=o.alternate,p!==null&&(p.lanes|=n),Mo(o.return,n,t),c.lanes|=n;break}p=p.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(a(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Mo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Oe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,_n(t,n),l=nt(l),r=r(l),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,l=dt(r,t.pendingProps),l=dt(r.type,l),Xa(e,t,r,l,n);case 15:return Za(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),pl(e,t),t.tag=1,Ve(r)?(e=!0,Xr(t)):e=!1,_n(t,n),Va(t,r,l),Jo(t,r,l,n),ts(null,t,r,!0,e,n);case 19:return lu(e,t,n);case 22:return Ja(e,t,n)}throw Error(a(156,t.tag))};function Lu(e,t){return ii(e,t)}function ef(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 ot(e,t,n,r){return new ef(e,t,n,r)}function Ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tf(e){if(typeof e=="function")return Ss(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ht)return 11;if(e===vt)return 14}return 2}function Yt(e,t){var n=e.alternate;return n===null?(n=ot(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 Nl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ss(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ue:return an(n.children,l,o,t);case Ce:i=8,l|=8;break;case st:return e=ot(12,n,t,l|2),e.elementType=st,e.lanes=o,e;case Ke:return e=ot(13,n,t,l),e.elementType=Ke,e.lanes=o,e;case it:return e=ot(19,n,t,l),e.elementType=it,e.lanes=o,e;case ye:return El(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:i=10;break e;case _e:i=9;break e;case ht:i=11;break e;case vt:i=14;break e;case Ue:i=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=ot(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=ot(22,e,r,t),e.elementType=ye,e.lanes=n,e.stateNode={isHidden:!1},e}function js(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function ks(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nf(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ns(e,t,n,r,l,o,i,c,p){return e=new nf(e,t,n,c,p),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ot(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function rf(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Tu(e){if(!e)return At;e=e._reactInternals;e:{if(Xt(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(Ve(n))return ra(e,n,t)}return t}function Pu(e,t,n,r,l,o,i,c,p){return e=Ns(n,r,!0,e,l,o,i,c,p),e.context=Tu(null),n=e.current,r=Ae(),l=Qt(n),o=_t(r,l),o.callback=t??null,Vt(n,o,l),e.current.lanes=l,Wn(e,l,r),He(e,r),e}function Cl(e,t,n,r){var l=t.current,o=Ae(),i=Qt(l);return n=Tu(n),t.context===null?t.context=n:t.pendingContext=n,t=_t(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vt(l,t,i),e!==null&&(mt(e,l,i,o),rl(e,l,i)),i}function _l(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 zu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Es(e,t){zu(e,t),(e=e.alternate)&&zu(e,t)}function lf(){return null}var Ru=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cs(e){this._internalRoot=e}Ll.prototype.render=Cs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Cl(e,t,null,null)},Ll.prototype.unmount=Cs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ln(function(){Cl(null,e,null,null)}),t[jt]=null}};function Ll(e){this._internalRoot=e}Ll.prototype.unstable_scheduleHydration=function(e){if(e){var t=hi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&yi(e)}};function _s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fu(){}function of(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var w=_l(i);o.call(w)}}var i=Pu(t,r,e,0,null,!1,!1,"",Fu);return e._reactRootContainer=i,e[jt]=i.current,nr(e.nodeType===8?e.parentNode:e),ln(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var c=r;r=function(){var w=_l(p);c.call(w)}}var p=Ns(e,0,!1,null,null,!1,!1,"",Fu);return e._reactRootContainer=p,e[jt]=p.current,nr(e.nodeType===8?e.parentNode:e),ln(function(){Cl(t,p,n,r)}),p}function Pl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var c=l;l=function(){var p=_l(i);c.call(p)}}Cl(t,i,e,l)}else i=of(n,t,e,l,r);return _l(i)}pi=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vn(t.pendingLanes);n!==0&&(Zl(t,n|1),He(t,Se()),(re&6)===0&&(Rn=Se()+500,Ut()))}break;case 13:ln(function(){var r=Ct(e,1);if(r!==null){var l=Ae();mt(r,e,1,l)}}),Es(e,1)}},Jl=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Ae();mt(t,e,134217728,n)}Es(e,134217728)}},mi=function(e){if(e.tag===13){var t=Qt(e),n=Ct(e,t);if(n!==null){var r=Ae();mt(n,e,t,r)}Es(e,t)}},hi=function(){return ae},vi=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}},Bl=function(e,t,n){switch(t){case"input":if(Ml(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Yr(r);if(!l)throw Error(a(90));$s(r),Ml(r,l)}}}break;case"textarea":Qs(e,n);break;case"select":t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}},ei=ys,ti=ln;var sf={usingClientEntryPoint:!1,Events:[or,xn,Yr,qs,bs,ys]},xr={findFiberByHostInstance:Zt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},af={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oi(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||lf,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 zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Lr=zl.inject(af),gt=zl}catch{}}return Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sf,Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_s(t))throw Error(a(200));return rf(e,t,null,n)},Qe.createRoot=function(e,t){if(!_s(e))throw Error(a(299));var n=!1,r="",l=Ru;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ns(e,1,!1,null,null,n,!1,r,l),e[jt]=t.current,nr(e.nodeType===8?e.parentNode:e),new Cs(t)},Qe.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(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=oi(t),e=e===null?null:e.stateNode,e},Qe.flushSync=function(e){return ln(e)},Qe.hydrate=function(e,t,n){if(!Tl(t))throw Error(a(200));return Pl(null,e,t,!0,n)},Qe.hydrateRoot=function(e,t,n){if(!_s(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=Ru;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Pu(t,null,e,1,n??null,l,!1,o,i),e[jt]=t.current,nr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ll(t)},Qe.render=function(e,t,n){if(!Tl(t))throw Error(a(200));return Pl(null,e,t,!1,n)},Qe.unmountComponentAtNode=function(e){if(!Tl(e))throw Error(a(40));return e._reactRootContainer?(ln(function(){Pl(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0):!1},Qe.unstable_batchedUpdates=ys,Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Tl(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Pl(e,t,n,!1,r)},Qe.version="18.3.1-next-f1338f8080-20240426",Qe}var Vu;function vf(){if(Vu)return Ps.exports;Vu=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(x){console.error(x)}}return u(),Ps.exports=hf(),Ps.exports}var Wu;function gf(){if(Wu)return Rl;Wu=1;var u=vf();return Rl.createRoot=u.createRoot,Rl.hydrateRoot=u.hydrateRoot,Rl}var yf=gf();const xf=Us(yf),wf={},Bu=u=>{let x;const a=new Set,d=(F,D)=>{const L=typeof F=="function"?F(x):F;if(!Object.is(L,x)){const z=x;x=D??(typeof L!="object"||L===null)?L:Object.assign({},x,L),a.forEach(U=>U(x,z))}},m=()=>x,P={setState:d,getState:m,getInitialState:()=>I,subscribe:F=>(a.add(F),()=>a.delete(F)),destroy:()=>{(wf?"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."),a.clear()}},I=x=u(d,m,P);return P},Sf=u=>u?Bu(u):Bu;var Fs={exports:{}},Ds={},Ms={exports:{}},Is={};/**
|
|
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 Hu;function jf(){if(Hu)return Is;Hu=1;var u=Sr();function x(D,L){return D===L&&(D!==0||1/D===1/L)||D!==D&&L!==L}var a=typeof Object.is=="function"?Object.is:x,d=u.useState,m=u.useEffect,f=u.useLayoutEffect,S=u.useDebugValue;function j(D,L){var z=L(),U=d({inst:{value:z,getSnapshot:L}}),N=U[0].inst,k=U[1];return f(function(){N.value=z,N.getSnapshot=L,P(N)&&k({inst:N})},[D,z,L]),m(function(){return P(N)&&k({inst:N}),D(function(){P(N)&&k({inst:N})})},[D]),S(z),z}function P(D){var L=D.getSnapshot;D=D.value;try{var z=L();return!a(D,z)}catch{return!0}}function I(D,L){return L()}var F=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?I:j;return Is.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:F,Is}var Qu;function kf(){return Qu||(Qu=1,Ms.exports=jf()),Ms.exports}/**
|
|
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 Ku;function Nf(){if(Ku)return Ds;Ku=1;var u=Sr(),x=kf();function a(I,F){return I===F&&(I!==0||1/I===1/F)||I!==I&&F!==F}var d=typeof Object.is=="function"?Object.is:a,m=x.useSyncExternalStore,f=u.useRef,S=u.useEffect,j=u.useMemo,P=u.useDebugValue;return Ds.useSyncExternalStoreWithSelector=function(I,F,D,L,z){var U=f(null);if(U.current===null){var N={hasValue:!1,value:null};U.current=N}else N=U.current;U=j(function(){function M(K){if(!J){if(J=!0,q=K,K=L(K),z!==void 0&&N.hasValue){var ue=N.value;if(z(ue,K))return ne=ue}return ne=K}if(ue=ne,d(q,K))return ue;var Ce=L(K);return z!==void 0&&z(ue,Ce)?(q=K,ue):(q=K,ne=Ce)}var J=!1,q,ne,we=D===void 0?null:D;return[function(){return M(F())},we===null?void 0:function(){return M(we())}]},[F,D,L,z]);var k=m(I,U[0],U[1]);return S(function(){N.hasValue=!0,N.value=k},[k]),P(k),k},Ds}var Yu;function Ef(){return Yu||(Yu=1,Fs.exports=Nf()),Fs.exports}var Cf=Ef();const _f=Us(Cf),lc={},{useDebugValue:Lf}=rc,{useSyncExternalStoreWithSelector:Tf}=_f;let Gu=!1;const Pf=u=>u;function zf(u,x=Pf,a){(lc?"production":void 0)!=="production"&&a&&!Gu&&(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"),Gu=!0);const d=Tf(u.subscribe,u.getState,u.getServerState||u.getInitialState,x,a);return Lf(d),d}const Xu=u=>{(lc?"production":void 0)!=="production"&&typeof u!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const x=typeof u=="function"?Sf(u):u,a=(d,m)=>zf(x,d,m);return Object.assign(a,x),a},Dn=u=>u?Xu(u):Xu,Zu={x:0,y:0,zoom:1},Ju=.1,qu=5,oc=Dn(u=>({viewport:Zu,isDragging:!1,dragStart:null,setViewport:x=>u({viewport:x}),pan:(x,a)=>u(d=>({viewport:{...d.viewport,x:d.viewport.x+x,y:d.viewport.y+a}})),zoom:(x,a=0,d=0)=>u(m=>{const f=Math.max(Ju,Math.min(qu,m.viewport.zoom*x)),S=f/m.viewport.zoom,j=a-(a-m.viewport.x)*S,P=d-(d-m.viewport.y)*S;return{viewport:{x:j,y:P,zoom:f}}}),setZoom:x=>u(a=>({viewport:{...a.viewport,zoom:Math.max(Ju,Math.min(qu,x))}})),resetViewport:()=>u({viewport:Zu}),startDrag:(x,a)=>u({isDragging:!0,dragStart:{x,y:a}}),endDrag:()=>u({isDragging:!1,dragStart:null})})),Rf={"#":"component",$:"flow","^":"gate","!":"signal","~":"aspect"};function Fl(u){if(u.length<2)return null;const x=u[0],a=u.slice(1),d=Rf[x];return d?{type:d,name:a}:null}function Ff(){return{entries:new Map,byType:new Map,bySource:new Map,timestamp:0}}function Df(u,x){return`${{component:"#",flow:"$",gate:"^",signal:"!",aspect:"~"}[u]}${x}`}const Mf=["component","flow","gate","signal","aspect"];function If(u){const S=Math.ceil(Math.sqrt(u.length*1.5));return u.map((j,P)=>({id:j.id,symbol:j.symbol,type:j.type,source:j.source||"purpose",filePath:j.filePath,data:j.data||{},description:j.description,references:j.references||[],referencedBy:j.referencedBy||[],tags:j.tags||[],position:{x:100+P%S*240,y:100+Math.floor(P/S)*160}}))}const bu={component:1,flow:2,gate:3,signal:4,aspect:5},qe=Dn((u,x)=>({nodes:[],selectedId:null,hoveredId:null,isLoading:!0,loadError:null,projectName:null,visibleTypes:Mf,filterTags:[],searchQuery:"",layoutMode:"grid",sortOption:"type",setNodes:a=>u({nodes:a}),loadFromApi:async()=>{u({isLoading:!0,loadError:null});try{const a=await fetch("/api/symbols");if(!a.ok)throw new Error(`API error: ${a.status}`);const d=await a.json(),m=If(d.symbols||[]),f=await fetch("/api/info"),S=f.ok?await f.json():{};u({nodes:m,isLoading:!1,projectName:S.projectName||null})}catch(a){console.error("Failed to load symbols from API:",a),u({isLoading:!1,loadError:a instanceof Error?a.message:"Failed to load",nodes:[]})}},selectNode:a=>u({selectedId:a}),hoverNode:a=>u({hoveredId:a}),updateNodePosition:(a,d)=>u(m=>({nodes:m.nodes.map(f=>f.id===a?{...f,position:d}:f)})),updateNode:(a,d)=>u(m=>{const f=m.nodes.find(j=>j.id===a);if(!f)return m;let S={...d};if(d.type&&d.type!==f.type){const j=Fl(f.symbol);if(j){const P=j.name,I=Df(d.type,P);S.symbol=I}}if(d.symbol&&d.symbol!==f.symbol){const j=Fl(d.symbol);j&&(S.type=j.type)}return S.modified=new Date().toISOString(),{nodes:m.nodes.map(j=>j.id===a?{...j,...S}:j)}}),addNode:a=>u(d=>({nodes:[...d.nodes,a]})),removeNode:a=>u(d=>({nodes:d.nodes.filter(m=>m.id!==a),selectedId:d.selectedId===a?null:d.selectedId})),addTag:(a,d)=>u(m=>({nodes:m.nodes.map(f=>f.id===a?{...f,tags:[...f.tags||[],d]}:f)})),removeTag:(a,d)=>u(m=>({nodes:m.nodes.map(f=>f.id===a?{...f,tags:(f.tags||[]).filter(S=>S!==d)}:f)})),setVisibleTypes:a=>{u({visibleTypes:a}),setTimeout(()=>{x().reorganizeVisibleNodes()},50)},toggleType:a=>{u(d=>({visibleTypes:d.visibleTypes.includes(a)?d.visibleTypes.filter(m=>m!==a):[...d.visibleTypes,a]})),setTimeout(()=>{x().reorganizeVisibleNodes()},50)},setFilterTags:a=>u({filterTags:a}),setSearchQuery:a=>u({searchQuery:a}),setLayoutMode:a=>{u({layoutMode:a}),a==="canvas"&&setTimeout(()=>x().reorganizeVisibleNodes(),50)},setSortOption:a=>{u({sortOption:a}),x().layoutMode==="canvas"&&setTimeout(()=>x().reorganizeVisibleNodes(),50)},reorganizeVisibleNodes:()=>{const a=x(),d=a.getFilteredNodes();if(d.length===0)return;const m=200,f=120,S=40,j=100,P=100,I=Math.ceil(Math.sqrt(d.length*1.5)),F=a.nodes.map(D=>{const L=d.findIndex(k=>k.id===D.id);if(L===-1)return D;const z=L%I,U=Math.floor(L/I),N={x:j+z*(m+S),y:P+U*(f+S)};return{...D,position:N}});u({nodes:F})},getFilteredNodes:()=>{const a=x();let d=a.nodes;if(d=d.filter(m=>a.visibleTypes.includes(m.type)),a.filterTags.length>0&&(d=d.filter(m=>a.filterTags.some(f=>{var S;return(S=m.tags)==null?void 0:S.includes(f)}))),a.searchQuery){const m=a.searchQuery.toLowerCase();d=d.filter(f=>{var S;return f.symbol.toLowerCase().includes(m)||((S=f.description)==null?void 0:S.toLowerCase().includes(m))})}return d},getSortedNodes:()=>{const a=x();return[...a.getFilteredNodes()].sort((f,S)=>{switch(a.sortOption){case"alpha":return f.symbol.localeCompare(S.symbol);case"type":const j=bu[f.type]-bu[S.type];return j!==0?j:f.symbol.localeCompare(S.symbol);case"updated":const P=f.modified?new Date(f.modified).getTime():0;return(S.modified?new Date(S.modified).getTime():0)-P;case"stale":const F=f.modified?new Date(f.modified).getTime():0,D=S.modified?new Date(S.modified).getTime():0;return F-D;default:return 0}})},getSelectedNode:()=>{const a=x();return a.nodes.find(d=>d.id===a.selectedId)}}));function Of({viewport:u}){const x={backgroundPosition:`${u.x}px ${u.y}px`,backgroundSize:`
|
|
57
|
+
${20*u.zoom}px ${20*u.zoom}px,
|
|
58
|
+
${20*u.zoom}px ${20*u.zoom}px,
|
|
59
|
+
${100*u.zoom}px ${100*u.zoom}px,
|
|
60
|
+
${100*u.zoom}px ${100*u.zoom}px
|
|
61
|
+
`};return s.jsx("div",{className:"canvas-grid",style:x})}const Af={component:"#",flow:"$",gate:"^",signal:"!",aspect:"~"};function Uf(u){return u.slice(1)}function $f(u){return Af[u]}function Vf({node:u}){const{selectedId:x,selectNode:a,hoverNode:d}=qe(),m=x===u.id,f=$f(u.type),S=Uf(u.symbol),j=u.position||{x:Math.random()*400,y:Math.random()*400},P=Q.useCallback(F=>{F.stopPropagation(),a(u.id)},[u.id,a]),I=["node",`node--${u.type}`,m?"selected":""].filter(Boolean).join(" ");return s.jsxs("div",{className:I,style:{left:j.x,top:j.y},onClick:P,onMouseEnter:()=>d(u.id),onMouseLeave:()=>d(null),children:[s.jsxs("div",{className:"node-header",children:[s.jsx("span",{className:"node-symbol",children:f}),s.jsx("span",{className:"node-name",children:S})]}),u.description&&s.jsx("div",{className:"node-description",children:u.description}),u.tags&&u.tags.length>0&&s.jsxs("div",{className:"node-tags",children:[u.tags.slice(0,3).map(F=>s.jsx("span",{className:"node-tag",children:F},F)),u.tags.length>3&&s.jsxs("span",{className:"node-tag",children:["+",u.tags.length-3]})]})]})}function Wf({nodes:u}){const x=new Map;for(const d of u)d.position&&x.set(d.symbol,d.position);const a=[];for(const d of u)if(d.position)for(const m of d.references){const f=x.get(m);f&&a.push({from:{x:d.position.x+60,y:d.position.y+20},to:{x:f.x+60,y:f.y+20},key:`${d.symbol}-${m}`})}return a.length===0?null:s.jsxs("svg",{className:"connections-layer",children:[s.jsx("defs",{children:s.jsx("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto",children:s.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})})}),a.map(({from:d,to:m,key:f})=>{const S=m.x-d.x,j=d.x+S*.5,P=d.y,I=d.x+S*.5,F=m.y;return s.jsx("path",{className:"connection-line",d:`M ${d.x} ${d.y} C ${j} ${P}, ${I} ${F}, ${m.x} ${m.y}`,markerEnd:"url(#arrowhead)"},f)})]})}function Bf(){const u=Q.useRef(null),{viewport:x,isDragging:a,dragStart:d,pan:m,zoom:f,startDrag:S,endDrag:j}=oc(),{getFilteredNodes:P,selectNode:I}=qe(),F=P(),D=Q.useCallback(k=>{k.preventDefault();const M=k.deltaY>0?.9:1.1;f(M,k.clientX,k.clientY)},[f]),L=Q.useCallback(k=>{const M=k.target,J=M.closest(".node"),q=k.button===1,ne=k.button===0&&k.altKey,we=k.button===0&&!J&&(M===u.current||M.classList.contains("canvas-content")||M.classList.contains("canvas-grid")||M.classList.contains("connections-layer")||M.tagName==="svg"||M.tagName==="path");q||ne||we?(k.preventDefault(),S(k.clientX,k.clientY),we&&I(null)):k.button===0&&!J&&M===u.current&&I(null)},[S,I]),z=Q.useCallback(k=>{if(a&&d){const M=k.clientX-d.x,J=k.clientY-d.y;m(M,J),S(k.clientX,k.clientY)}},[a,d,m,S]),U=Q.useCallback(()=>{a&&j()},[a,j]);Q.useEffect(()=>{const k=u.current;if(k)return k.addEventListener("wheel",D,{passive:!1}),()=>{k.removeEventListener("wheel",D)}},[D]),Q.useEffect(()=>{if(a)return window.addEventListener("mousemove",z),window.addEventListener("mouseup",U),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",U)}},[a,z,U]);const N=`translate(${x.x}px, ${x.y}px) scale(${x.zoom})`;return s.jsxs("div",{ref:u,className:`canvas-container ${a?"dragging":""}`,onMouseDown:L,children:[s.jsx(Of,{viewport:x}),s.jsxs("div",{className:"canvas-content",style:{transform:N},children:[s.jsx(Wf,{nodes:F}),F.map(k=>s.jsx(Vf,{node:k},k.id))]})]})}const sc={component:{prefix:"#",label:"Components",color:"var(--color-component)"},flow:{prefix:"$",label:"Flows",color:"var(--color-flow)"},gate:{prefix:"^",label:"Gates",color:"var(--color-gate)"},signal:{prefix:"!",label:"Signals",color:"var(--color-signal)"},aspect:{prefix:"~",label:"Aspects",color:"var(--color-aspect)"}},Hf=["component","flow","gate","signal","aspect"];function Qf({node:u,isSelected:x,onClick:a}){const d=sc[u.type],m=u.symbol.slice(1);return s.jsxs("div",{className:`grid-card grid-card--${u.type} ${x?"selected":""}`,onClick:a,children:[s.jsxs("div",{className:"grid-card-header",children:[s.jsx("span",{className:"grid-card-symbol",style:{color:d.color},children:d.prefix}),s.jsx("span",{className:"grid-card-name",children:m})]}),u.description&&s.jsx("div",{className:"grid-card-description",children:u.description}),u.tags&&u.tags.length>0&&s.jsxs("div",{className:"grid-card-tags",children:[u.tags.slice(0,2).map(f=>s.jsx("span",{className:"grid-card-tag",children:f},f)),u.tags.length>2&&s.jsxs("span",{className:"grid-card-tag",children:["+",u.tags.length-2]})]})]})}function Kf(){const{getSortedNodes:u,selectedId:x,selectNode:a,visibleTypes:d}=qe(),m=u(),f=Q.useMemo(()=>{const j={component:[],flow:[],gate:[],signal:[],aspect:[]};return m.forEach(P=>{j[P.type]&&j[P.type].push(P)}),j},[m]),S=Hf.filter(j=>d.includes(j)&&f[j].length>0);return m.length===0?s.jsx("div",{className:"grid-view grid-view--empty",children:s.jsx("p",{children:"No symbols match the current filters"})}):s.jsx("div",{className:"grid-view",children:s.jsx("div",{className:"grid-columns",style:{gridTemplateColumns:`repeat(${S.length}, 1fr)`},children:S.map(j=>{const P=sc[j],I=f[j];return s.jsxs("div",{className:"grid-column",children:[s.jsxs("div",{className:"grid-column-header",style:{borderColor:P.color},children:[s.jsx("span",{className:"grid-column-prefix",style:{color:P.color},children:P.prefix}),s.jsx("span",{className:"grid-column-label",children:P.label}),s.jsx("span",{className:"grid-column-count",children:I.length})]}),s.jsx("div",{className:"grid-column-content",children:I.map(F=>s.jsx(Qf,{node:F,isSelected:x===F.id,onClick:()=>a(F.id)},F.id))})]},j)})})})}const Yf={component:{prefix:"#",label:"Component",color:"var(--color-component)"},flow:{prefix:"$",label:"Flow",color:"var(--color-flow)"},gate:{prefix:"^",label:"Gate",color:"var(--color-gate)"},signal:{prefix:"!",label:"Signal",color:"var(--color-signal)"},aspect:{prefix:"~",label:"Aspect",color:"var(--color-aspect)"}};function Gf({node:u,isSelected:x,onClick:a}){const d=Yf[u.type],m=u.symbol.slice(1),f=u.modified?new Date(u.modified).toLocaleDateString():"-";return s.jsxs("tr",{className:`list-row ${x?"selected":""}`,onClick:a,children:[s.jsxs("td",{className:"list-cell list-cell--symbol",children:[s.jsx("span",{className:"list-symbol",style:{color:d.color},children:d.prefix}),s.jsx("span",{className:"list-name",children:m})]}),s.jsx("td",{className:"list-cell list-cell--type",children:s.jsx("span",{className:"list-type-badge",style:{backgroundColor:d.color},children:d.label})}),s.jsx("td",{className:"list-cell list-cell--description",children:u.description||s.jsx("span",{className:"list-empty",children:"-"})}),s.jsx("td",{className:"list-cell list-cell--tags",children:u.tags&&u.tags.length>0?s.jsxs("div",{className:"list-tags",children:[u.tags.slice(0,3).map(S=>s.jsx("span",{className:"list-tag",children:S},S)),u.tags.length>3&&s.jsxs("span",{className:"list-tag-more",children:["+",u.tags.length-3]})]}):s.jsx("span",{className:"list-empty",children:"-"})}),s.jsx("td",{className:"list-cell list-cell--modified",children:f})]})}function Os({label:u,sortKey:x,currentSort:a,onSort:d}){const m=a===x;return s.jsxs("th",{className:`list-header ${m?"list-header--active":""}`,onClick:()=>d(x),children:[u,m&&s.jsx("span",{className:"list-sort-indicator",children:"↓"})]})}function Xf(){const{getSortedNodes:u,selectedId:x,selectNode:a,sortOption:d,setSortOption:m}=qe(),f=u();return f.length===0?s.jsx("div",{className:"list-view list-view--empty",children:s.jsx("p",{children:"No symbols match the current filters"})}):s.jsx("div",{className:"list-view",children:s.jsx("div",{className:"list-table-container",children:s.jsxs("table",{className:"list-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx(Os,{label:"Symbol",sortKey:"alpha",currentSort:d,onSort:m}),s.jsx(Os,{label:"Type",sortKey:"type",currentSort:d,onSort:m}),s.jsx("th",{className:"list-header",children:"Description"}),s.jsx("th",{className:"list-header",children:"Tags"}),s.jsx(Os,{label:"Modified",sortKey:"updated",currentSort:d,onSort:m})]})}),s.jsx("tbody",{children:f.map(S=>s.jsx(Gf,{node:S,isSelected:x===S.id,onClick:()=>a(S.id)},S.id))})]})})})}const Zf=Dn((u,x)=>({index:Ff(),isLoading:!1,error:null,lastUpdated:null,setIndex:a=>u({index:a,lastUpdated:Date.now(),error:null}),setLoading:a=>u({isLoading:a}),setError:a=>u({error:a,isLoading:!1}),search:a=>{var S;const{index:d}=x(),m=a.toLowerCase(),f=[];for(const j of d.entries.values())(j.symbol.toLowerCase().includes(m)||(S=j.description)!=null&&S.toLowerCase().includes(m))&&f.push(j);return f.slice(0,20)},getAutocomplete:a=>{const{index:d}=x();if(!a)return[];const m=a.toLowerCase(),f=[];for(const S of d.entries.values())S.symbol.toLowerCase().startsWith(m)&&f.push(S);return f.sort((S,j)=>{const P=S.symbol.toLowerCase()===m,I=j.symbol.toLowerCase()===m;return P&&!I?-1:!P&&I?1:S.symbol.localeCompare(j.symbol)}),f.slice(0,10)}})),Jf={component:"var(--color-component)",flow:"var(--color-flow)",gate:"var(--color-gate)",signal:"var(--color-signal)",aspect:"var(--color-aspect)"};function qf({suggestions:u,selectedIndex:x,onSelect:a,onHover:d}){return s.jsx("div",{className:"autocomplete-dropdown",children:u.map((m,f)=>s.jsxs("div",{className:`autocomplete-item ${f===x?"selected":""}`,onClick:()=>a(m),onMouseEnter:()=>d(f),children:[s.jsx("span",{className:"autocomplete-item-symbol",style:{color:Jf[m.type]},children:m.symbol}),m.description&&s.jsx("span",{className:"autocomplete-item-desc",children:m.description})]},m.id))})}function bf(){const[u,x]=Q.useState(""),[a,d]=Q.useState(!1),[m,f]=Q.useState(0),S=Q.useRef(null),{getAutocomplete:j}=Zf(),{addNode:P,selectNode:I}=qe(),F=u.length>0?j(u):[],D=Q.useCallback(N=>{const k=N.target.value;x(k),d(k.length>0),f(0)},[]),L=Q.useCallback(()=>{if(!u.trim())return;if(F.length>0&&m<F.length){const J=F[m];I(J.id),x(""),d(!1);return}const N=u.trim().split(/\s+/),k=N[0],M=Fl(k);if(M){const J=k,q=N.slice(1).join(" "),ne={id:`premise-${Date.now()}`,symbol:J,type:M.type,source:"premise",filePath:".premise",data:{content:q},description:q||void 0,references:[],referencedBy:[],position:{x:200+Math.random()*200,y:200+Math.random()*200},tags:[],created:new Date().toISOString()};P(ne),I(ne.id),x(""),d(!1)}},[u,F,m,I,P]),z=Q.useCallback(N=>{var k;if(N.key==="Enter")N.preventDefault(),L();else if(N.key==="ArrowDown")N.preventDefault(),f(M=>Math.min(M+1,F.length-1));else if(N.key==="ArrowUp")N.preventDefault(),f(M=>Math.max(M-1,0));else if(N.key==="Escape")d(!1),(k=S.current)==null||k.blur();else if(N.key==="Tab"&&F.length>0){N.preventDefault();const M=F[m];M&&(x(M.symbol+" "),f(0))}},[L,F,m]),U=Q.useCallback(N=>{I(N.id),x(""),d(!1)},[I]);return Q.useEffect(()=>{const N=k=>{var M;k.key==="/"&&document.activeElement!==S.current&&(k.preventDefault(),(M=S.current)==null||M.focus())};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[]),s.jsxs("div",{className:"command-input-container",children:[a&&F.length>0&&s.jsx(qf,{suggestions:F,selectedIndex:m,onSelect:U,onHover:f}),s.jsxs("div",{className:"command-input",children:[s.jsx("span",{className:"command-input-prefix",children:">"}),s.jsx("input",{ref:S,type:"text",value:u,onChange:D,onKeyDown:z,onFocus:()=>d(u.length>0),onBlur:()=>setTimeout(()=>d(!1),200),placeholder:"Type @ # ^ ! ? to create nodes, or search..."}),s.jsx("span",{className:"command-input-hint",children:"Press / to focus"})]})]})}const As={component:"Component",flow:"Flow",gate:"Gate",signal:"Signal",aspect:"Aspect"},ep={purpose:"Purpose",gate:"Gate",dream:"Dream"};function tp(){const{getSelectedNode:u,selectNode:x,addTag:a,removeTag:d,updateNode:m}=qe(),f=u(),[S,j]=Q.useState(null),[P,I]=Q.useState({});if(Q.useEffect(()=>{j(null),I({})},[f==null?void 0:f.id]),!f)return null;const F=Q.useCallback((N,k)=>{j(N),I({[N]:k})},[]),D=Q.useCallback(async(N,k)=>{try{const M=await fetch(`/api/symbols/${N}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)});if(!M.ok){const J=await M.json();return console.error("Failed to save:",J.error),!1}return!0}catch(M){return console.error("Failed to save:",M),!1}},[]),L=Q.useCallback(async N=>{if(!f)return;const k=P[N];if(k===void 0){j(null);return}if(N==="symbol"&&typeof k=="string"&&!Fl(k)){alert("Invalid symbol format. Must start with #, $, ^, !, or ~ (v2 symbols)");return}m(f.id,{[N]:k}),N==="description"&&await D(f.id,{description:k}),j(null),I({})},[f,P,m,D]),z=Q.useCallback(()=>{j(null),I({})},[]),U=Q.useCallback((N,k)=>{N.key==="Enter"&&!N.shiftKey?(N.preventDefault(),L(k)):N.key==="Escape"&&(N.preventDefault(),z())},[L,z]);return s.jsxs("aside",{className:"properties-panel",children:[s.jsxs("header",{className:"properties-header",children:[S==="symbol"?s.jsx("input",{type:"text",className:"properties-title-input",value:P.symbol??f.symbol,onChange:N=>I({symbol:N.target.value}),onBlur:()=>L("symbol"),onKeyDown:N=>U(N,"symbol"),autoFocus:!0}):s.jsx("h2",{className:"properties-title properties-title-editable",onClick:()=>F("symbol",f.symbol),title:"Click to edit",children:f.symbol}),s.jsx("button",{className:"properties-close",onClick:()=>x(null),"aria-label":"Close panel",children:"×"})]}),s.jsxs("div",{className:"properties-content",children:[s.jsxs("section",{className:"properties-section",children:[s.jsx("h3",{className:"properties-section-title",children:"Details"}),s.jsxs("div",{className:"properties-field",children:[s.jsx("div",{className:"properties-field-label",children:"Type"}),S==="type"?s.jsx("select",{className:"properties-field-input",value:P.type??f.type,onChange:N=>{const k=N.target.value;I({type:k}),m(f.id,{type:k}),j(null)},onBlur:()=>j(null),autoFocus:!0,children:Object.keys(As).map(N=>s.jsx("option",{value:N,children:As[N]},N))}):s.jsx("div",{className:"properties-field-value properties-field-value-editable",onClick:()=>F("type",f.type),title:"Click to edit",children:As[f.type]})]}),s.jsxs("div",{className:"properties-field",children:[s.jsx("div",{className:"properties-field-label",children:"Source"}),s.jsx("div",{className:"properties-field-value",children:ep[f.source]})]}),s.jsxs("div",{className:"properties-field",children:[s.jsx("div",{className:"properties-field-label",children:"Description"}),S==="description"?s.jsx("textarea",{className:"properties-field-textarea",value:P.description??f.description??"",onChange:N=>I({description:N.target.value}),onBlur:()=>L("description"),onKeyDown:N=>U(N,"description"),placeholder:"Enter description...",rows:3,autoFocus:!0}):s.jsx("div",{className:"properties-field-value properties-field-value-editable",onClick:()=>F("description",f.description??""),title:"Click to edit",children:f.description||s.jsx("span",{style:{color:"var(--text-muted)",fontStyle:"italic"},children:"No description (click to add)"})})]}),s.jsxs("div",{className:"properties-field",children:[s.jsx("div",{className:"properties-field-label",children:"File"}),s.jsxs("a",{href:"#",className:"properties-source-link",children:[f.filePath,s.jsx("span",{children:"↗"})]})]})]}),s.jsxs("section",{className:"properties-section",children:[s.jsx("h3",{className:"properties-section-title",children:"Tags"}),s.jsxs("div",{className:"properties-tags",children:[(f.tags||[]).map(N=>s.jsxs("span",{className:"properties-tag",onClick:async()=>{d(f.id,N);const k=(f.tags||[]).filter(M=>M!==N);await D(f.id,{tags:k})},title:"Click to remove",style:{cursor:"pointer"},children:[N," ×"]},N)),s.jsx("button",{className:"properties-tag",style:{background:"transparent",border:"1px dashed var(--input-border)"},onClick:async()=>{const N=prompt("Enter tag name:");if(N){a(f.id,N);const k=[...f.tags||[],N];await D(f.id,{tags:k})}},children:"+ Add"})]})]}),(f.references.length>0||f.referencedBy.length>0)&&s.jsxs("section",{className:"properties-section",children:[s.jsx("h3",{className:"properties-section-title",children:"References"}),f.references.length>0&&s.jsxs("div",{className:"properties-field",children:[s.jsxs("div",{className:"properties-field-label",children:["References (",f.references.length,")"]}),s.jsx("div",{className:"properties-field-value properties-field-value--mono",children:f.references.join(", ")})]}),f.referencedBy.length>0&&s.jsxs("div",{className:"properties-field",children:[s.jsxs("div",{className:"properties-field-label",children:["Referenced by (",f.referencedBy.length,")"]}),s.jsx("div",{className:"properties-field-value properties-field-value--mono",children:f.referencedBy.join(", ")})]})]}),f.position&&s.jsxs("section",{className:"properties-section",children:[s.jsx("h3",{className:"properties-section-title",children:"Position"}),s.jsx("div",{className:"properties-field",children:s.jsxs("div",{className:"properties-field-value properties-field-value--mono",children:["x: ",Math.round(f.position.x),", y: ",Math.round(f.position.y)]})})]}),(f.created||f.modified)&&s.jsxs("section",{className:"properties-section",children:[s.jsx("h3",{className:"properties-section-title",children:"Timeline"}),f.created&&s.jsxs("div",{className:"properties-field",children:[s.jsx("div",{className:"properties-field-label",children:"Created"}),s.jsx("div",{className:"properties-field-value",children:new Date(f.created).toLocaleString()})]}),f.modified&&s.jsxs("div",{className:"properties-field",children:[s.jsx("div",{className:"properties-field-label",children:"Modified"}),s.jsx("div",{className:"properties-field-value",children:new Date(f.modified).toLocaleString()})]})]}),s.jsxs("section",{className:"properties-section",children:[s.jsx("h3",{className:"properties-section-title",children:"Raw Data"}),s.jsx("pre",{style:{fontSize:"11px",fontFamily:"var(--font-mono)",background:"var(--input-bg)",padding:"12px",borderRadius:"8px",overflow:"auto",maxHeight:"200px"},children:JSON.stringify(f.data,null,2)})]})]})]})}const np=()=>{if(typeof window>"u")return"focus";const u=localStorage.getItem("paradigm-theme");return u==="spectrum"||u==="focus"||u==="deep"?u:u==="morning"?"spectrum":u==="daytime"?"focus":u==="nighttime"?"deep":"focus"},ic=u=>{typeof document<"u"&&(document.documentElement.setAttribute("data-theme",u),localStorage.setItem("paradigm-theme",u))},ac=np();ic(ac);const uc=Dn(u=>({theme:ac,setTheme:x=>{u({theme:x}),ic(x)}})),rp=()=>s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),s.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),s.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),s.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),lp=()=>s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("rect",{x:"3",y:"3",width:"5",height:"18",rx:"1"}),s.jsx("rect",{x:"10",y:"3",width:"5",height:"18",rx:"1"}),s.jsx("rect",{x:"17",y:"3",width:"5",height:"18",rx:"1"})]}),op=()=>s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),s.jsx("circle",{cx:"4",cy:"6",r:"1",fill:"currentColor"}),s.jsx("circle",{cx:"4",cy:"12",r:"1",fill:"currentColor"}),s.jsx("circle",{cx:"4",cy:"18",r:"1",fill:"currentColor"})]}),sp={component:"var(--color-component)",flow:"var(--color-flow)",gate:"var(--color-gate)",signal:"var(--color-signal)",aspect:"var(--color-aspect)"};function ip({projectName:u}){const{nodes:x,visibleTypes:a,toggleType:d,setVisibleTypes:m,layoutMode:f,setLayoutMode:S,sortOption:j,setSortOption:P}=qe(),{viewport:I,setZoom:F,resetViewport:D}=oc(),{theme:L,setTheme:z}=uc(),U=x.reduce((M,J)=>(M[J.type]=(M[J.type]||0)+1,M),{}),N=[{mode:"canvas",icon:s.jsx(rp,{}),title:"Canvas view"},{mode:"grid",icon:s.jsx(lp,{}),title:"Grid view (by type)"},{mode:"list",icon:s.jsx(op,{}),title:"List view"}],k=[{value:"type",label:"Sort by Type"},{value:"alpha",label:"Sort A-Z"},{value:"updated",label:"Recently Updated"},{value:"stale",label:"Stale First"}];return s.jsxs("header",{className:"toolbar",children:[s.jsx("div",{className:"toolbar-left",children:u&&s.jsx("span",{className:"toolbar-project-name",children:u})}),s.jsx("div",{className:"toolbar-center",children:s.jsxs("div",{className:"toolbar-stats",children:[s.jsx("button",{className:"toolbar-toggle-all",onClick:()=>{const M=Object.keys(U).length;if(a.length===M)m([]);else{const q=Object.keys(U);m(q)}},title:a.length===Object.keys(U).length?"Hide all types":(a.length===0,"Show all types"),children:(()=>{const M=Object.keys(U).length,J=a.length===M,q=a.length===0;return J?s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]}):q?s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("path",{d:"M12 9v6"}),s.jsx("path",{d:"M9 12h6"})]})})()}),Object.entries(U).map(([M,J])=>{const q=a.includes(M);return s.jsxs("button",{className:`toolbar-stat ${q?"toolbar-stat--active":"toolbar-stat--inactive"}`,onClick:()=>d(M),style:{cursor:"pointer",background:"none",border:"none",color:"inherit",font:"inherit"},title:`Toggle ${M} visibility`,children:[s.jsx("span",{className:`toolbar-stat-icon-wrapper ${q?"toolbar-stat-icon-wrapper--active":"toolbar-stat-icon-wrapper--inactive"}`,children:s.jsx("span",{className:`toolbar-stat-icon ${q?"toolbar-stat-icon--active":"toolbar-stat-icon--inactive"}`,style:{background:q?sp[M]:"transparent"}})}),s.jsx("span",{className:q?"toolbar-stat-count--active":"toolbar-stat-count--inactive",children:J})]},M)})]})}),s.jsxs("div",{className:"toolbar-right",children:[s.jsxs("div",{className:"layout-controls",children:[s.jsx("div",{className:"layout-toggle",children:N.map(({mode:M,icon:J,title:q})=>s.jsx("button",{className:`layout-btn ${f===M?"active":""}`,onClick:()=>S(M),title:q,children:J},M))}),f!=="canvas"&&s.jsx("select",{className:"sort-select",value:j,onChange:M=>P(M.target.value),children:k.map(({value:M,label:J})=>s.jsx("option",{value:M,children:J},M))})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsxs("div",{className:"theme-toggle",children:[s.jsx("button",{onClick:()=>z("spectrum"),className:`theme-btn ${L==="spectrum"?"active":""}`,title:"Spectrum theme","aria-label":"Spectrum theme",children:"S"}),s.jsx("button",{onClick:()=>z("focus"),className:`theme-btn ${L==="focus"?"active":""}`,title:"Focus theme","aria-label":"Focus theme",children:"F"}),s.jsx("button",{onClick:()=>z("deep"),className:`theme-btn ${L==="deep"?"active":""}`,title:"Deep theme","aria-label":"Deep theme",children:"D"})]}),f==="canvas"&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>F(I.zoom/1.2),style:{background:"var(--input-bg)",border:"1px solid var(--input-border)",borderRadius:"4px",padding:"4px 8px",color:"var(--text-secondary)",cursor:"pointer"},children:"-"}),s.jsxs("span",{style:{fontSize:"12px",color:"var(--text-muted)",minWidth:"50px",textAlign:"center"},children:[Math.round(I.zoom*100),"%"]}),s.jsx("button",{onClick:()=>F(I.zoom*1.2),style:{background:"var(--input-bg)",border:"1px solid var(--input-border)",borderRadius:"4px",padding:"4px 8px",color:"var(--text-secondary)",cursor:"pointer"},children:"+"}),s.jsx("button",{onClick:D,style:{background:"var(--input-bg)",border:"1px solid var(--input-border)",borderRadius:"4px",padding:"4px 8px",color:"var(--text-secondary)",cursor:"pointer",fontSize:"12px"},children:"Reset"})]})]})]})]})}const ap=[{key:"Click + Drag",description:"Pan the canvas",category:"navigation"},{key:"Wheel",description:"Zoom in/out",category:"navigation"},{key:"Click Node",description:"Select a node",category:"interaction"},{key:"Drag Node",description:"Move a node",category:"interaction"},{key:"/",description:"Focus command input",category:"general"},{key:"?",description:"Toggle this help panel",category:"general"},{key:"Esc",description:"Deselect / Close panels",category:"general"}],up={navigation:"Navigation",interaction:"Interaction",general:"Keyboard Shortcuts"};function cp(){const[u,x]=Q.useState(!1),a=Q.useCallback(()=>{x(m=>!m)},[]);if(Q.useEffect(()=>{const m=f=>{const S=document.activeElement,j=(S==null?void 0:S.tagName)==="INPUT"||(S==null?void 0:S.tagName)==="TEXTAREA";f.key==="?"&&!j&&!f.ctrlKey&&!f.metaKey&&!f.altKey&&(f.preventDefault(),a()),f.key==="Escape"&&u&&!j&&x(!1)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[a,u]),!u)return s.jsx("button",{className:"help-toggle",onClick:a,title:"Show help (?)","aria-label":"Show help",children:"?"});const d=ap.reduce((m,f)=>(m[f.category]||(m[f.category]=[]),m[f.category].push(f),m),{});return s.jsxs("div",{className:"help-panel",children:[s.jsxs("div",{className:"help-panel-header",children:[s.jsx("h3",{children:"Help & Shortcuts"}),s.jsx("button",{className:"help-panel-close",onClick:a,"aria-label":"Close help",children:"×"})]}),s.jsx("div",{className:"help-panel-content",children:Object.entries(d).map(([m,f])=>s.jsxs("div",{className:"help-category",children:[s.jsx("h4",{children:up[m]}),s.jsx("div",{className:"help-hotkeys",children:f.map((S,j)=>s.jsxs("div",{className:"help-hotkey",children:[s.jsx("kbd",{className:"help-key",children:S.key}),s.jsx("span",{className:"help-description",children:S.description})]},j))})]},m))}),s.jsx("div",{className:"help-panel-footer",children:s.jsxs("span",{className:"help-hint",children:["Press ",s.jsx("kbd",{children:"?"})," to toggle"]})})]})}function dp(){const u=qe(j=>j.selectedId),x=qe(j=>j.isLoading),a=qe(j=>j.loadError),d=qe(j=>j.projectName),m=qe(j=>j.loadFromApi),f=qe(j=>j.layoutMode);Q.useEffect(()=>{m()},[m]);const S=()=>{switch(f){case"grid":return s.jsx(Kf,{});case"list":return s.jsx(Xf,{});case"canvas":default:return s.jsx(Bf,{})}};return x?s.jsx("div",{className:"design-view loading-state",children:s.jsxs("div",{className:"loading-content",children:[s.jsx("div",{className:"loading-spinner"}),s.jsx("p",{children:"Loading symbols..."})]})}):a?s.jsx("div",{className:"design-view error-state",children:s.jsxs("div",{className:"error-content",children:[s.jsx("h2",{children:"Failed to load symbols"}),s.jsx("p",{children:a}),s.jsx("button",{onClick:()=>m(),children:"Retry"})]})}):s.jsxs("div",{className:"design-view",children:[s.jsx(ip,{projectName:d}),s.jsxs("div",{className:"design-content",children:[S(),u&&s.jsx(tp,{})]}),f==="canvas"&&s.jsx(bf,{}),s.jsx(cp,{})]})}const fp=Dn((u,x)=>({incidents:[],patterns:[],selectedIncidentId:null,isLoading:!1,error:null,statusFilter:"all",environmentFilter:null,symbolFilter:null,loadIncidents:async()=>{u({isLoading:!0,error:null});try{const a=await fetch("/api/incidents");if(!a.ok)throw new Error(`API error: ${a.status}`);const d=await a.json();u({incidents:d.incidents||[],isLoading:!1})}catch(a){console.error("Failed to load incidents:",a),u({isLoading:!1,error:a instanceof Error?a.message:"Failed to load incidents",incidents:[]})}},loadPatterns:async()=>{try{const a=await fetch("/api/patterns");if(!a.ok)throw new Error(`API error: ${a.status}`);const d=await a.json();u({patterns:d.patterns||[]})}catch(a){console.error("Failed to load patterns:",a)}},selectIncident:a=>u({selectedIncidentId:a}),setStatusFilter:a=>u({statusFilter:a}),setEnvironmentFilter:a=>u({environmentFilter:a}),setSymbolFilter:a=>u({symbolFilter:a}),resolveIncident:async a=>{try{const d=await fetch(`/api/incidents/${a}/resolve`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!d.ok)throw new Error(`API error: ${d.status}`);await x().loadIncidents()}catch(d){throw console.error("Failed to resolve incident:",d),d}},getFilteredIncidents:()=>{const a=x();let d=a.incidents;return a.statusFilter!=="all"&&(d=d.filter(m=>m.status===a.statusFilter)),a.environmentFilter&&(d=d.filter(m=>m.environment===a.environmentFilter)),a.symbolFilter&&(d=d.filter(m=>{const f=m.symbols;return f.feature===a.symbolFilter||f.component===a.symbolFilter||f.flow===a.symbolFilter||f.gate===a.symbolFilter||f.signal===a.symbolFilter})),d},getSelectedIncident:()=>{const a=x();return a.incidents.find(d=>d.id===a.selectedIncidentId)}})),ec={open:"#ef4444",investigating:"#f59e0b",resolved:"#22c55e","wont-fix":"#6b7280"},tc={open:"Open",investigating:"Investigating",resolved:"Resolved","wont-fix":"Won't Fix"};function pp(){const{isLoading:u,error:x,statusFilter:a,selectedIncidentId:d,loadIncidents:m,loadPatterns:f,selectIncident:S,setStatusFilter:j,getFilteredIncidents:P,getSelectedIncident:I,resolveIncident:F}=fp(),D=P(),L=I();return Q.useEffect(()=>{m(),f()},[m,f]),u?s.jsx("div",{className:"incidents-view loading-state",children:s.jsxs("div",{className:"loading-content",children:[s.jsx("div",{className:"loading-spinner"}),s.jsx("p",{children:"Loading incidents..."})]})}):x?s.jsx("div",{className:"incidents-view error-state",children:s.jsxs("div",{className:"error-content",children:[s.jsx("h2",{children:"Failed to load incidents"}),s.jsx("p",{children:x}),s.jsx("button",{onClick:()=>m(),children:"Retry"})]})}):s.jsxs("div",{className:"incidents-view",children:[s.jsxs("div",{className:"incidents-filters",children:[s.jsxs("div",{className:"filter-group",children:[s.jsx("label",{children:"Status:"}),s.jsxs("select",{value:a,onChange:z=>j(z.target.value),children:[s.jsx("option",{value:"all",children:"All"}),s.jsx("option",{value:"open",children:"Open"}),s.jsx("option",{value:"investigating",children:"Investigating"}),s.jsx("option",{value:"resolved",children:"Resolved"}),s.jsx("option",{value:"wont-fix",children:"Won't Fix"})]})]}),s.jsxs("div",{className:"filter-stats",children:[D.length," incident",D.length!==1?"s":""]})]}),s.jsxs("div",{className:"incidents-content",children:[s.jsx("div",{className:"incidents-list",children:D.length===0?s.jsxs("div",{className:"incidents-empty",children:[s.jsx("p",{children:"No incidents found."}),s.jsx("p",{className:"hint",children:"Incidents are recorded when errors occur in your application."})]}):D.map(z=>s.jsxs("div",{className:`incident-card ${d===z.id?"selected":""}`,onClick:()=>S(z.id),children:[s.jsxs("div",{className:"incident-header",children:[s.jsx("span",{className:"incident-id",children:z.id}),s.jsx("span",{className:"incident-status",style:{color:ec[z.status]},children:tc[z.status]})]}),s.jsx("div",{className:"incident-error",children:z.error.message}),s.jsxs("div",{className:"incident-meta",children:[s.jsx("span",{className:"incident-env",children:z.environment}),s.jsx("span",{className:"incident-time",children:new Date(z.timestamp).toLocaleString()})]}),z.symbols&&Object.keys(z.symbols).length>0&&s.jsxs("div",{className:"incident-symbols",children:[z.symbols.feature&&s.jsxs("span",{className:"symbol-tag feature",children:["@",z.symbols.feature]}),z.symbols.component&&s.jsxs("span",{className:"symbol-tag component",children:["#",z.symbols.component]}),z.symbols.flow&&s.jsxs("span",{className:"symbol-tag flow",children:["$",z.symbols.flow]}),z.symbols.gate&&s.jsxs("span",{className:"symbol-tag gate",children:["^",z.symbols.gate]}),z.symbols.signal&&s.jsxs("span",{className:"symbol-tag signal",children:["!",z.symbols.signal]})]}),z.patternMatches&&z.patternMatches.length>0&&s.jsx("div",{className:"incident-patterns",children:s.jsxs("span",{className:"pattern-match",children:["Matched: ",z.patternMatches[0].patternName,"(",Math.round(z.patternMatches[0].confidence),"%)"]})})]},z.id))}),L&&s.jsxs("div",{className:"incident-detail",children:[s.jsxs("div",{className:"detail-header",children:[s.jsx("h2",{children:L.id}),s.jsx("button",{className:"detail-close",onClick:()=>S(null),children:"×"})]}),s.jsxs("div",{className:"detail-content",children:[s.jsxs("section",{className:"detail-section",children:[s.jsx("h3",{children:"Error"}),s.jsx("div",{className:"error-message",children:L.error.message}),L.error.type&&s.jsxs("div",{className:"error-type",children:["Type: ",L.error.type]})]}),s.jsxs("section",{className:"detail-section",children:[s.jsx("h3",{children:"Context"}),s.jsxs("div",{className:"detail-field",children:[s.jsx("label",{children:"Status"}),s.jsx("span",{className:"status-badge",style:{backgroundColor:ec[L.status]},children:tc[L.status]})]}),s.jsxs("div",{className:"detail-field",children:[s.jsx("label",{children:"Environment"}),s.jsx("span",{children:L.environment})]}),s.jsxs("div",{className:"detail-field",children:[s.jsx("label",{children:"Timestamp"}),s.jsx("span",{children:new Date(L.timestamp).toLocaleString()})]})]}),L.symbols&&Object.keys(L.symbols).length>0&&s.jsxs("section",{className:"detail-section",children:[s.jsx("h3",{children:"Symbols"}),s.jsx("div",{className:"symbols-list",children:Object.entries(L.symbols).map(([z,U])=>U&&s.jsxs("div",{className:"symbol-item",children:[s.jsx("label",{children:z}),s.jsx("span",{className:`symbol-value ${z}`,children:U})]},z))})]}),L.patternMatches&&L.patternMatches.length>0&&s.jsxs("section",{className:"detail-section",children:[s.jsx("h3",{children:"Pattern Matches"}),s.jsx("div",{className:"patterns-list",children:L.patternMatches.map(z=>s.jsxs("div",{className:"pattern-item",children:[s.jsx("div",{className:"pattern-name",children:z.patternName}),s.jsxs("div",{className:"pattern-confidence",children:[Math.round(z.confidence),"% confidence"]})]},z.patternId))})]}),L.status==="open"&&s.jsx("section",{className:"detail-actions",children:s.jsx("button",{className:"action-btn resolve",onClick:()=>F(L.id),children:"Mark Resolved"})})]})]})]})]})}const cc=Dn((u,x)=>({logs:[],services:[],flowEvents:[],isLoading:!1,error:null,isLive:!1,ws:null,levelFilter:"all",serviceFilter:null,symbolFilter:null,searchQuery:"",loadLogs:async()=>{u({isLoading:!0,error:null});try{const a=new URLSearchParams,d=x();d.levelFilter!=="all"&&a.set("level",d.levelFilter),d.serviceFilter&&a.set("service",d.serviceFilter),d.symbolFilter&&a.set("symbol",d.symbolFilter),d.searchQuery&&a.set("search",d.searchQuery),a.set("limit","200");const m=await fetch(`/api/logs?${a}`);if(!m.ok)throw new Error(`API error: ${m.status}`);const f=await m.json();u({logs:f.logs||[],isLoading:!1})}catch(a){u({isLoading:!1,error:a instanceof Error?a.message:"Failed to load logs",logs:[]})}},loadServices:async()=>{try{const a=await fetch("/api/services");if(!a.ok)return;const d=await a.json();u({services:d.services||[]})}catch{}},connectWebSocket:()=>{const a=x().ws;if(a&&a.readyState===WebSocket.OPEN)return;const d=window.location.protocol==="https:"?"wss:":"ws:",m=new WebSocket(`${d}//${window.location.host}`);m.onopen=()=>{m.send(JSON.stringify({method:"subscribe",id:1})),u({isLive:!0,ws:m})},m.onmessage=f=>{try{const S=JSON.parse(f.data);S.type==="log"&&S.entry&&u(j=>({logs:[S.entry,...j.logs].slice(0,500)})),S.type==="flow_event"&&u(j=>({flowEvents:[S,...j.flowEvents].slice(0,200)}))}catch{}},m.onclose=()=>{u({isLive:!1,ws:null})},m.onerror=()=>{u({isLive:!1,ws:null})}},disconnectWebSocket:()=>{const a=x().ws;a&&(a.close(),u({isLive:!1,ws:null}))},setLevelFilter:a=>u({levelFilter:a}),setServiceFilter:a=>u({serviceFilter:a}),setSymbolFilter:a=>u({symbolFilter:a}),setSearchQuery:a=>u({searchQuery:a}),clearLogs:()=>u({logs:[],flowEvents:[]}),getFilteredLogs:()=>{const a=x();let d=a.logs;if(a.levelFilter!=="all"&&(d=d.filter(m=>m.level===a.levelFilter)),a.serviceFilter&&(d=d.filter(m=>m.service===a.serviceFilter)),a.symbolFilter&&(d=d.filter(m=>m.symbol.includes(a.symbolFilter))),a.searchQuery){const m=a.searchQuery.toLowerCase();d=d.filter(f=>f.message.toLowerCase().includes(m)||f.symbol.toLowerCase().includes(m))}return d}})),mp={debug:"#94a3b8",info:"#3b82f6",warn:"#f59e0b",error:"#ef4444"},nc={component:"var(--color-component)",gate:"#f59e0b",signal:"var(--color-signal)",flow:"var(--color-flow)",aspect:"var(--color-aspect)",raw:"var(--text-muted)"};function hp(u){return new Date(u).toLocaleTimeString("en-US",{hour12:!1,fractionalSecondDigits:3})}function vp({entry:u,isExpanded:x,onToggle:a}){const d=nc[u.symbolType]||nc.raw;return s.jsxs("div",{className:`log-row log-row--${u.level}`,onClick:a,children:[s.jsx("span",{className:"log-time",children:hp(u.timestamp)}),s.jsx("span",{className:"log-level",style:{color:mp[u.level]},children:u.level.toUpperCase().padEnd(5)}),s.jsx("span",{className:"log-symbol",style:{color:d},children:u.symbol}),s.jsx("span",{className:"log-service",children:u.service}),s.jsx("span",{className:"log-message",children:u.message}),u.durationMs!==void 0&&s.jsxs("span",{className:"log-duration",children:[u.durationMs.toFixed(1),"ms"]}),x&&u.data&&s.jsx("div",{className:"log-data",onClick:m=>m.stopPropagation(),children:s.jsx("pre",{children:JSON.stringify(u.data,null,2)})})]})}function gp(){const{isLoading:u,error:x,isLive:a,services:d,levelFilter:m,serviceFilter:f,searchQuery:S,loadLogs:j,loadServices:P,connectWebSocket:I,disconnectWebSocket:F,setLevelFilter:D,setServiceFilter:L,setSearchQuery:z,getFilteredLogs:U,clearLogs:N}=cc(),k=U(),M=Q.useRef(null),[J,q]=Q.useState(null),[ne,we]=Q.useState(!0);return Q.useEffect(()=>(j(),P(),I(),()=>F()),[j,P,I,F]),Q.useEffect(()=>{ne&&M.current&&M.current.scrollIntoView({behavior:"smooth"})},[k.length,ne]),u&&k.length===0?s.jsx("div",{className:"logs-view loading-state",children:s.jsxs("div",{className:"loading-content",children:[s.jsx("div",{className:"loading-spinner"}),s.jsx("p",{children:"Loading logs..."})]})}):x&&k.length===0?s.jsx("div",{className:"logs-view error-state",children:s.jsxs("div",{className:"error-content",children:[s.jsx("h2",{children:"Failed to load logs"}),s.jsx("p",{children:x}),s.jsx("button",{onClick:()=>j(),children:"Retry"})]})}):s.jsxs("div",{className:"logs-view",children:[s.jsxs("div",{className:"logs-toolbar",children:[s.jsxs("div",{className:"logs-filters",children:[s.jsxs("select",{value:m,onChange:K=>D(K.target.value),className:"logs-select",children:[s.jsx("option",{value:"all",children:"All Levels"}),s.jsx("option",{value:"debug",children:"Debug"}),s.jsx("option",{value:"info",children:"Info"}),s.jsx("option",{value:"warn",children:"Warn"}),s.jsx("option",{value:"error",children:"Error"})]}),s.jsxs("select",{value:f||"",onChange:K=>L(K.target.value||null),className:"logs-select",children:[s.jsx("option",{value:"",children:"All Services"}),d.map(K=>s.jsx("option",{value:K.name,children:K.name},K.name))]}),s.jsx("input",{type:"text",placeholder:"Search logs...",value:S,onChange:K=>z(K.target.value),className:"logs-search"})]}),s.jsxs("div",{className:"logs-actions",children:[s.jsxs("span",{className:"logs-count",children:[k.length," entries"]}),s.jsxs("button",{className:`logs-live-btn ${a?"active":""}`,onClick:()=>a?F():I(),title:a?"Streaming live":"Click to connect",children:[s.jsx("span",{className:`live-dot ${a?"live":""}`}),a?"Live":"Paused"]}),s.jsx("button",{className:`logs-scroll-btn ${ne?"active":""}`,onClick:()=>we(!ne),title:"Auto-scroll to new logs",children:ne?"Auto":"Manual"}),s.jsx("button",{className:"logs-clear-btn",onClick:N,title:"Clear log buffer",children:"Clear"})]})]}),s.jsxs("div",{className:"logs-table",children:[s.jsxs("div",{className:"logs-header",children:[s.jsx("span",{className:"log-time",children:"Time"}),s.jsx("span",{className:"log-level",children:"Level"}),s.jsx("span",{className:"log-symbol",children:"Symbol"}),s.jsx("span",{className:"log-service",children:"Service"}),s.jsx("span",{className:"log-message",children:"Message"})]}),s.jsxs("div",{className:"logs-body",children:[k.length===0?s.jsxs("div",{className:"logs-empty",children:[s.jsx("p",{children:"No logs yet."}),s.jsxs("p",{className:"hint",children:["POST structured logs to ",s.jsx("code",{children:"/api/logs"})," or connect an app with the Sentinel client SDK."]})]}):k.map(K=>s.jsx(vp,{entry:K,isExpanded:J===K.id,onToggle:()=>q(J===K.id?null:K.id)},K.id)),s.jsx("div",{ref:M})]})]})]})}const dc={gate:"#f59e0b",action:"var(--color-component)",signal:"var(--color-signal)"},yp={gate:"^",action:"#",signal:"!"};function fc(u,x){const a=Date.now();return x.some(d=>d.nodeSymbol===u&&a-new Date(d.timestamp).getTime()<5e3)}function xp({flow:u,flowEvents:x,isSelected:a,onSelect:d}){return s.jsxs("div",{className:`flow-card ${a?"selected":""}`,onClick:d,children:[s.jsxs("div",{className:"flow-card-header",children:[s.jsx("span",{className:"flow-card-id",children:u.id}),u.trigger&&s.jsx("span",{className:"flow-card-trigger",children:u.trigger})]}),s.jsx("div",{className:"flow-card-name",children:u.name}),s.jsx("div",{className:"flow-card-steps",children:u.steps.map((m,f)=>{const S=fc(m.symbol,x);return s.jsxs("div",{className:"flow-step-mini",children:[f>0&&s.jsx("span",{className:"flow-arrow",children:"→"}),s.jsx("span",{className:`flow-step-dot ${S?"active pulse":""}`,style:{backgroundColor:S?dc[m.type]:"var(--text-muted)"},title:`${m.symbol} (${m.type})`})]},f)})})]})}function wp({flow:u,flowEvents:x}){return s.jsxs("div",{className:"flow-diagram",children:[s.jsx("h3",{children:u.name}),u.trigger&&s.jsxs("div",{className:"flow-trigger-label",children:["Trigger: ",s.jsx("code",{children:u.trigger})]}),s.jsx("div",{className:"flow-steps",children:u.steps.map((a,d)=>{const m=fc(a.symbol,x),f=x.find(S=>S.nodeSymbol===a.symbol);return s.jsxs("div",{className:"flow-step-container",children:[d>0&&s.jsx("div",{className:"flow-connector",children:s.jsx("div",{className:`flow-line ${m?"active":""}`})}),s.jsxs("div",{className:`flow-step-node ${m?"active":""}`,style:{borderColor:dc[a.type]},children:[s.jsx("span",{className:"flow-step-icon",children:yp[a.type]}),s.jsx("span",{className:"flow-step-symbol",children:a.symbol}),s.jsx("span",{className:"flow-step-type",children:a.type}),m&&f&&s.jsxs("span",{className:"flow-step-live",children:[f.service," · ",new Date(f.timestamp).toLocaleTimeString()]})]})]},d)})})]})}function Sp({symbols:u,onSave:x,onCancel:a}){const[d,m]=Q.useState(""),[f,S]=Q.useState(""),[j,P]=Q.useState([]),I=Q.useCallback(U=>{P(N=>[...N,{type:U,symbol:""}])},[]),F=Q.useCallback((U,N,k)=>{P(M=>M.map((J,q)=>q===U?{...J,[N]:k}:J))},[]),D=Q.useCallback(U=>{P(N=>N.filter((k,M)=>M!==U))},[]),L=()=>{if(!d||j.length===0)return;const U=`$${d.toLowerCase().replace(/\s+/g,"-")}`;x({id:U,name:d,trigger:f||void 0,steps:j})},z=U=>U==="gate"?u.filter(N=>N.type==="gate"):U==="signal"?u.filter(N=>N.type==="signal"):u.filter(N=>N.type==="component");return s.jsxs("div",{className:"flow-composer",children:[s.jsx("h3",{children:"New Flow"}),s.jsxs("div",{className:"composer-field",children:[s.jsx("label",{children:"Flow Name"}),s.jsx("input",{type:"text",placeholder:"e.g. Checkout Flow",value:d,onChange:U=>m(U.target.value)})]}),s.jsxs("div",{className:"composer-field",children:[s.jsx("label",{children:"Trigger (optional)"}),s.jsx("input",{type:"text",placeholder:"e.g. POST /api/checkout",value:f,onChange:U=>S(U.target.value)})]}),s.jsxs("div",{className:"composer-steps",children:[s.jsx("label",{children:"Steps"}),j.map((U,N)=>s.jsxs("div",{className:"composer-step",children:[s.jsxs("select",{value:U.type,onChange:k=>F(N,"type",k.target.value),children:[s.jsx("option",{value:"gate",children:"Gate (^)"}),s.jsx("option",{value:"action",children:"Action (#)"}),s.jsx("option",{value:"signal",children:"Signal (!)"})]}),s.jsxs("select",{value:U.symbol,onChange:k=>F(N,"symbol",k.target.value),children:[s.jsx("option",{value:"",children:"Select symbol..."}),z(U.type).map(k=>s.jsx("option",{value:k.symbol,children:k.symbol},k.symbol))]}),s.jsx("button",{className:"composer-remove",onClick:()=>D(N),children:"×"})]},N)),s.jsxs("div",{className:"composer-add-buttons",children:[s.jsx("button",{onClick:()=>I("gate"),children:"+ Gate"}),s.jsx("button",{onClick:()=>I("action"),children:"+ Action"}),s.jsx("button",{onClick:()=>I("signal"),children:"+ Signal"})]})]}),s.jsxs("div",{className:"composer-actions",children:[s.jsx("button",{className:"action-btn",onClick:L,disabled:!d||j.length===0,children:"Save Flow"}),s.jsx("button",{className:"action-btn cancel",onClick:a,children:"Cancel"})]})]})}function jp(){const{flowEvents:u,connectWebSocket:x,disconnectWebSocket:a,isLive:d}=cc(),[m,f]=Q.useState([]),[S,j]=Q.useState([]),[P,I]=Q.useState(null),[F,D]=Q.useState(!1),[L,z]=Q.useState(!0),U=m.find(k=>k.id===P);Q.useEffect(()=>{async function k(){try{const M=await fetch("/api/symbols");if(!M.ok){z(!1);return}const J=await M.json(),q=(J.symbols||[]).map(K=>({symbol:K.symbol,type:K.type}));j(q);const we=(J.symbols||[]).filter(K=>K.type==="flow").map(K=>{var Ce,st,be;const ue=[];if((Ce=K.data)!=null&&Ce.steps&&Array.isArray(K.data.steps))for(const _e of K.data.steps)ue.push({type:_e.type||"action",symbol:_e.symbol||"",label:_e.label});if(ue.length===0&&K.references)for(const _e of K.references)_e.startsWith("^")?ue.push({type:"gate",symbol:_e}):_e.startsWith("!")?ue.push({type:"signal",symbol:_e}):_e.startsWith("#")&&ue.push({type:"action",symbol:_e});return{id:K.symbol,name:((st=K.data)==null?void 0:st.name)||K.symbol.replace("$",""),trigger:(be=K.data)==null?void 0:be.trigger,steps:ue}});f(we),z(!1)}catch{z(!1)}}k()},[]),Q.useEffect(()=>(x(),()=>a()),[x,a]);const N=k=>{f(M=>[...M,k]),D(!1),I(k.id)};return L?s.jsx("div",{className:"flows-view loading-state",children:s.jsxs("div",{className:"loading-content",children:[s.jsx("div",{className:"loading-spinner"}),s.jsx("p",{children:"Loading flows..."})]})}):s.jsxs("div",{className:"flows-view",children:[s.jsxs("div",{className:"flows-toolbar",children:[s.jsxs("div",{className:"flows-toolbar-left",children:[s.jsxs("span",{className:"flows-count",children:[m.length," flow",m.length!==1?"s":""]}),s.jsxs("button",{className:`logs-live-btn ${d?"active":""}`,onClick:()=>d?a():x(),children:[s.jsx("span",{className:`live-dot ${d?"live":""}`}),d?"Live":"Paused"]})]}),s.jsx("div",{className:"flows-toolbar-right",children:s.jsx("button",{className:"action-btn",onClick:()=>{D(!0),I(null)},children:"+ New Flow"})})]}),s.jsxs("div",{className:"flows-content",children:[s.jsx("div",{className:"flows-list",children:m.length===0&&!F?s.jsxs("div",{className:"flows-empty",children:[s.jsx("p",{children:"No flows defined."}),s.jsxs("p",{className:"hint",children:["Define flows in ",s.jsx("code",{children:".purpose"})," files or use the composer to create one."]})]}):m.map(k=>s.jsx(xp,{flow:k,flowEvents:u,isSelected:P===k.id,onSelect:()=>{I(k.id),D(!1)}},k.id))}),s.jsx("div",{className:"flows-detail",children:F?s.jsx(Sp,{symbols:S,onSave:N,onCancel:()=>D(!1)}):U?s.jsx(wp,{flow:U,flowEvents:u}):s.jsx("div",{className:"flows-empty-detail",children:s.jsx("p",{children:"Select a flow to visualize or create a new one."})})})]})]})}function kp(){const[u,x]=Q.useState("design"),[a,d]=Q.useState(null),[m,f]=Q.useState(null),[S,j]=Q.useState(!0),[P,I]=Q.useState(null),F=uc(D=>D.theme);return Q.useEffect(()=>{document.documentElement.setAttribute("data-theme",F)},[F]),Q.useEffect(()=>{async function D(){try{const L=await fetch("/api/info");if(L.ok){const z=await L.json();d(z.projectName||null),f(z.projectDir||null)}j(!1)}catch(L){console.error("Failed to load project info:",L),I(L instanceof Error?L.message:"Failed to connect to server"),j(!1)}}D()},[]),S?s.jsx("div",{className:"app loading-state",children:s.jsxs("div",{className:"loading-content",children:[s.jsx("div",{className:"loading-spinner"}),s.jsx("p",{children:"Connecting to Sentinel..."})]})}):P?s.jsx("div",{className:"app error-state",children:s.jsxs("div",{className:"error-content",children:[s.jsx("h2",{children:"Failed to connect"}),s.jsx("p",{children:P}),s.jsxs("p",{className:"hint",children:["Make sure you're running ",s.jsx("code",{children:"paradigm sentinel"})," from your project directory."]}),s.jsx("button",{onClick:()=>window.location.reload(),children:"Retry"})]})}):s.jsxs("div",{className:"app",children:[s.jsxs("header",{className:"view-tabs-header",children:[s.jsx("div",{className:"view-tabs-left",children:s.jsxs("div",{className:"toolbar-logo",children:[s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[s.jsx("rect",{width:"32",height:"32",rx:"8",fill:"#0f172a"}),s.jsx("path",{d:"M16 6L6 26h20L16 6z",fill:"none",stroke:"url(#sentinel-grad)",strokeWidth:"2"}),s.jsx("path",{d:"M4 14L14 16",stroke:"#f8fafc",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M18 17L28 12",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M18 18L28 16",stroke:"#f59e0b",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M18 19L28 20",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M18 20L28 24",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"sentinel-grad",x1:"6",y1:"26",x2:"26",y2:"6",children:[s.jsx("stop",{offset:"0%",stopColor:"#818cf8"}),s.jsx("stop",{offset:"100%",stopColor:"#c084fc"})]})})]}),s.jsx("span",{children:"Sentinel"}),a&&s.jsx("span",{className:"toolbar-title",children:a})]})}),s.jsxs("div",{className:"view-tabs",children:[s.jsxs("button",{className:`view-tab ${u==="design"?"active":""}`,onClick:()=>x("design"),children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M12 1v6m0 6v6M1 12h6m6 0h6"}),s.jsx("path",{d:"M4.93 4.93l4.24 4.24m5.66 5.66l4.24 4.24M4.93 19.07l4.24-4.24m5.66-5.66l4.24-4.24"})]}),"Design"]}),s.jsxs("button",{className:`view-tab ${u==="logs"?"active":""}`,onClick:()=>x("logs"),children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"}),s.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),s.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),s.jsx("polyline",{points:"10 9 9 9 8 9"})]}),"Logs"]}),s.jsxs("button",{className:`view-tab ${u==="incidents"?"active":""}`,onClick:()=>x("incidents"),children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"}),s.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),s.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),"Incidents"]}),s.jsxs("button",{className:`view-tab ${u==="flows"?"active":""}`,onClick:()=>x("flows"),children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("circle",{cx:"5",cy:"12",r:"3"}),s.jsx("circle",{cx:"19",cy:"6",r:"3"}),s.jsx("circle",{cx:"19",cy:"18",r:"3"}),s.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"6"}),s.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"18"})]}),"Flows"]})]}),s.jsxs("div",{className:"view-tabs-right",children:[m&&s.jsx("div",{className:"project-dir-badge",title:m,children:m}),s.jsxs("div",{className:"version-badge-inline",children:["v","0.1.1"]})]})]}),s.jsxs("main",{className:"main-content",children:[u==="design"&&s.jsx(dp,{}),u==="logs"&&s.jsx(gp,{}),u==="incidents"&&s.jsx(pp,{}),u==="flows"&&s.jsx(jp,{})]})]})}xf.createRoot(document.getElementById("root")).render(s.jsx(rc.StrictMode,{children:s.jsx(kp,{})}));
|
|
62
|
+
//# sourceMappingURL=index-BfINPxlF.js.map
|