@rigour-labs/cli 3.0.6 → 4.0.1
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/cli.js +55 -5
- package/dist/commands/check.d.ts +7 -0
- package/dist/commands/check.js +287 -61
- package/dist/commands/init.js +83 -1
- package/dist/commands/settings.d.ts +13 -0
- package/dist/commands/settings.js +143 -0
- package/dist/commands/setup.js +110 -19
- package/dist/commands/studio.js +37 -0
- package/package.json +2 -2
- package/studio-dist/assets/index-B2pKEIQ0.js +296 -0
- package/studio-dist/assets/{index-B3y-dtOQ.css → index-WNovVfFN.css} +1 -1
- package/studio-dist/index.html +2 -2
- package/studio-dist/assets/index-C0TtM2OR.js +0 -291
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},Hs={},Df={exports:{}},B={};/**
|
|
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 fi=Symbol.for("react.element"),Lg=Symbol.for("react.portal"),Rg=Symbol.for("react.fragment"),_g=Symbol.for("react.strict_mode"),Vg=Symbol.for("react.profiler"),zg=Symbol.for("react.provider"),Og=Symbol.for("react.context"),Ig=Symbol.for("react.forward_ref"),Fg=Symbol.for("react.suspense"),Bg=Symbol.for("react.memo"),$g=Symbol.for("react.lazy"),qu=Symbol.iterator;function Ug(e){return e===null||typeof e!="object"?null:(e=qu&&e[qu]||e["@@iterator"],typeof e=="function"?e:null)}var Lf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rf=Object.assign,_f={};function or(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Lf}or.prototype.isReactComponent={};or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vf(){}Vf.prototype=or.prototype;function xl(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Lf}var wl=xl.prototype=new Vf;wl.constructor=xl;Rf(wl,or.prototype);wl.isPureReactComponent=!0;var Yu=Array.isArray,zf=Object.prototype.hasOwnProperty,Sl={current:null},Of={key:!0,ref:!0,__self:!0,__source:!0};function If(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)zf.call(t,r)&&!Of.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:fi,type:e,key:s,ref:o,props:i,_owner:Sl.current}}function Wg(e,t){return{$$typeof:fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jl(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi}function Hg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xu=/\/+/g;function go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Hg(""+e.key):t.toString(36)}function Gi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case fi:case Lg:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+go(o,0):r,Yu(i)?(n="",e!=null&&(n=e.replace(Xu,"$&/")+"/"),Gi(i,t,n,"",function(c){return c})):i!=null&&(jl(i)&&(i=Wg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Xu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Yu(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+go(s,a);o+=Gi(s,t,n,l,i)}else if(l=Ug(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+go(s,a++),o+=Gi(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ki(e,t,n){if(e==null)return e;var r=[],i=0;return Gi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function bg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Te={current:null},Qi={transition:null},Kg={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:Qi,ReactCurrentOwner:Sl};function Ff(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:ki,forEach:function(e,t,n){ki(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ki(e,function(){t++}),t},toArray:function(e){return ki(e,function(t){return t})||[]},only:function(e){if(!jl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=or;B.Fragment=Rg;B.Profiler=Vg;B.PureComponent=xl;B.StrictMode=_g;B.Suspense=Fg;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kg;B.act=Ff;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Rf({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Sl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)zf.call(t,l)&&!Of.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:fi,type:e.type,key:i,ref:s,props:r,_owner:o}};B.createContext=function(e){return e={$$typeof:Og,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zg,_context:e},e.Consumer=e};B.createElement=If;B.createFactory=function(e){var t=If.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:Ig,render:e}};B.isValidElement=jl;B.lazy=function(e){return{$$typeof:$g,_payload:{_status:-1,_result:e},_init:bg}};B.memo=function(e,t){return{$$typeof:Bg,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=Qi.transition;Qi.transition={};try{e()}finally{Qi.transition=t}};B.unstable_act=Ff;B.useCallback=function(e,t){return Te.current.useCallback(e,t)};B.useContext=function(e){return Te.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};B.useEffect=function(e,t){return Te.current.useEffect(e,t)};B.useId=function(){return Te.current.useId()};B.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Te.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};B.useRef=function(e){return Te.current.useRef(e)};B.useState=function(e){return Te.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Te.current.useTransition()};B.version="18.3.1";Df.exports=B;var k=Df.exports;const ze=Dg(k);/**
|
|
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 Gg=k,Qg=Symbol.for("react.element"),qg=Symbol.for("react.fragment"),Yg=Object.prototype.hasOwnProperty,Xg=Gg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zg={key:!0,ref:!0,__self:!0,__source:!0};function Bf(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Yg.call(t,r)&&!Zg.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Qg,type:e,key:s,ref:o,props:i,_owner:Xg.current}}Hs.Fragment=qg;Hs.jsx=Bf;Hs.jsxs=Bf;Af.exports=Hs;var u=Af.exports,la={},$f={exports:{}},Ue={},Uf={exports:{}},Wf={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(C,A){var _=C.length;C.push(A);e:for(;0<_;){var R=_-1>>>1,z=C[R];if(0<i(z,A))C[R]=A,C[_]=z,_=R;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var A=C[0],_=C.pop();if(_!==A){C[0]=_;e:for(var R=0,z=C.length,ae=z>>>1;R<ae;){var X=2*(R+1)-1,ot=C[X],en=X+1,ji=C[en];if(0>i(ot,_))en<z&&0>i(ji,ot)?(C[R]=ji,C[en]=_,R=en):(C[R]=ot,C[X]=_,R=X);else if(en<z&&0>i(ji,_))C[R]=ji,C[en]=_,R=en;else break e}}return A}function i(C,A){var _=C.sortIndex-A.sortIndex;return _!==0?_:C.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,h=null,f=3,v=!1,x=!1,y=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=C)r(c),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(c)}}function j(C){if(y=!1,g(C),!x)if(n(l)!==null)x=!0,W(w);else{var A=n(c);A!==null&&H(j,A.startTime-C)}}function w(C,A){x=!1,y&&(y=!1,m(N),N=-1),v=!0;var _=f;try{for(g(A),h=n(l);h!==null&&(!(h.expirationTime>A)||C&&!$());){var R=h.callback;if(typeof R=="function"){h.callback=null,f=h.priorityLevel;var z=R(h.expirationTime<=A);A=e.unstable_now(),typeof z=="function"?h.callback=z:h===n(l)&&r(l),g(A)}else r(l);h=n(l)}if(h!==null)var ae=!0;else{var X=n(c);X!==null&&H(j,X.startTime-A),ae=!1}return ae}finally{h=null,f=_,v=!1}}var S=!1,T=null,N=-1,L=5,M=-1;function $(){return!(e.unstable_now()-M<L)}function F(){if(T!==null){var C=e.unstable_now();M=C;var A=!0;try{A=T(!0,C)}finally{A?de():(S=!1,T=null)}}else S=!1}var de;if(typeof p=="function")de=function(){p(F)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,O=Ee.port2;Ee.port1.onmessage=F,de=function(){O.postMessage(null)}}else de=function(){P(F,0)};function W(C){T=C,S||(S=!0,de())}function H(C,A){N=P(function(){C(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,W(w))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var _=f;f=A;try{return C()}finally{f=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,A){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var _=f;f=C;try{return A()}finally{f=_}},e.unstable_scheduleCallback=function(C,A,_){var R=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?R+_:R):_=R,C){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=_+z,C={id:d++,callback:A,priorityLevel:C,startTime:_,expirationTime:z,sortIndex:-1},_>R?(C.sortIndex=_,t(c,C),n(l)===null&&C===n(c)&&(y?(m(N),N=-1):y=!0,H(j,_-R))):(C.sortIndex=z,t(l,C),x||v||(x=!0,W(w))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var A=f;return function(){var _=f;f=A;try{return C.apply(this,arguments)}finally{f=_}}}})(Wf);Uf.exports=Wf;var Jg=Uf.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 ey=k,Be=Jg;function E(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 Hf=new Set,Ur={};function Sn(e,t){Yn(e,t),Yn(e+"Capture",t)}function Yn(e,t){for(Ur[e]=t,e=0;e<t.length;e++)Hf.add(t[e])}var jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ua=Object.prototype.hasOwnProperty,ty=/^[: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]*$/,Zu={},Ju={};function ny(e){return ua.call(Ju,e)?!0:ua.call(Zu,e)?!1:ty.test(e)?Ju[e]=!0:(Zu[e]=!0,!1)}function ry(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 iy(e,t,n,r){if(t===null||typeof t>"u"||ry(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 Ne(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Ne(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){ye[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var kl=/[\-:]([a-z])/g;function Cl(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(kl,Cl);ye[t]=new Ne(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(kl,Cl);ye[t]=new Ne(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(kl,Cl);ye[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pl(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(iy(t,n,i,r)&&(n=null),r||i===null?ny(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Nt=ey.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ci=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),Tn=Symbol.for("react.fragment"),Tl=Symbol.for("react.strict_mode"),ca=Symbol.for("react.profiler"),bf=Symbol.for("react.provider"),Kf=Symbol.for("react.context"),Nl=Symbol.for("react.forward_ref"),da=Symbol.for("react.suspense"),fa=Symbol.for("react.suspense_list"),El=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Gf=Symbol.for("react.offscreen"),ec=Symbol.iterator;function dr(e){return e===null||typeof e!="object"?null:(e=ec&&e[ec]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,yo;function wr(e){if(yo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yo=t&&t[1]||""}return`
|
|
34
|
-
`+yo+e}var vo=!1;function xo(e,t){if(!e||vo)return"";vo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
35
|
-
`),s=r.stack.split(`
|
|
36
|
-
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
|
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{vo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wr(e):""}function sy(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=xo(e.type,!1),e;case 11:return e=xo(e.type.render,!1),e;case 1:return e=xo(e.type,!0),e;default:return""}}function ha(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 Tn:return"Fragment";case Pn:return"Portal";case ca:return"Profiler";case Tl:return"StrictMode";case da:return"Suspense";case fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kf:return(e.displayName||"Context")+".Consumer";case bf:return(e._context.displayName||"Context")+".Provider";case Nl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case El:return t=e.displayName||null,t!==null?t:ha(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return ha(e(t))}catch{}}return null}function oy(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 ha(t);case 8:return t===Tl?"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 bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ay(e){var t=Qf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){e._valueTracker||(e._valueTracker=ay(e))}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ls(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 pa(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bt(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 Yf(e,t){t=t.checked,t!=null&&Pl(e,"checked",t,!1)}function ma(e,t){Yf(e,t);var n=bt(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")?ga(e,t.type,n):t.hasOwnProperty("defaultValue")&&ga(e,t.type,bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nc(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 ga(e,t,n){(t!=="number"||ls(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sr=Array.isArray;function Wn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ya(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Sr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bt(n)}}function Xf(e,t){var n=bt(t.value),r=bt(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 ic(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zf(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 va(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ti,Jf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ti=Ti||document.createElement("div"),Ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={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},ly=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){ly.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function eh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function th(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=eh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uy=ne({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 xa(e,t){if(t){if(uy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function wa(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 Sa=null;function Ml(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,Hn=null,bn=null;function sc(e){if(e=mi(e)){if(typeof ja!="function")throw Error(E(280));var t=e.stateNode;t&&(t=qs(t),ja(e.stateNode,e.type,t))}}function nh(e){Hn?bn?bn.push(e):bn=[e]:Hn=e}function rh(){if(Hn){var e=Hn,t=bn;if(bn=Hn=null,sc(e),t)for(e=0;e<t.length;e++)sc(t[e])}}function ih(e,t){return e(t)}function sh(){}var wo=!1;function oh(e,t,n){if(wo)return e(t,n);wo=!0;try{return ih(e,t,n)}finally{wo=!1,(Hn!==null||bn!==null)&&(sh(),rh())}}function Hr(e,t){var n=e.stateNode;if(n===null)return null;var r=qs(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(E(231,t,typeof n));return n}var ka=!1;if(jt)try{var fr={};Object.defineProperty(fr,"passive",{get:function(){ka=!0}}),window.addEventListener("test",fr,fr),window.removeEventListener("test",fr,fr)}catch{ka=!1}function cy(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Mr=!1,us=null,cs=!1,Ca=null,dy={onError:function(e){Mr=!0,us=e}};function fy(e,t,n,r,i,s,o,a,l){Mr=!1,us=null,cy.apply(dy,arguments)}function hy(e,t,n,r,i,s,o,a,l){if(fy.apply(this,arguments),Mr){if(Mr){var c=us;Mr=!1,us=null}else throw Error(E(198));cs||(cs=!0,Ca=c)}}function jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ah(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 oc(e){if(jn(e)!==e)throw Error(E(188))}function py(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return oc(i),e;if(s===r)return oc(i),t;s=s.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function lh(e){return e=py(e),e!==null?uh(e):null}function uh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uh(e);if(t!==null)return t;e=e.sibling}return null}var ch=Be.unstable_scheduleCallback,ac=Be.unstable_cancelCallback,my=Be.unstable_shouldYield,gy=Be.unstable_requestPaint,oe=Be.unstable_now,yy=Be.unstable_getCurrentPriorityLevel,Al=Be.unstable_ImmediatePriority,dh=Be.unstable_UserBlockingPriority,ds=Be.unstable_NormalPriority,vy=Be.unstable_LowPriority,fh=Be.unstable_IdlePriority,bs=null,ct=null;function xy(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(bs,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:jy,wy=Math.log,Sy=Math.LN2;function jy(e){return e>>>=0,e===0?32:31-(wy(e)/Sy|0)|0}var Ni=64,Ei=4194304;function jr(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 fs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=jr(a):(s&=o,s!==0&&(r=jr(s)))}else o=n&~i,o!==0?r=jr(o):s!==0&&(r=jr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function ky(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 Cy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-rt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=ky(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Pa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hh(){var e=Ni;return Ni<<=1,!(Ni&4194240)&&(Ni=64),e}function So(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Py(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-rt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Dl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var b=0;function ph(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mh,Ll,gh,yh,vh,Ta=!1,Mi=[],zt=null,Ot=null,It=null,br=new Map,Kr=new Map,Lt=[],Ty="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 lc(e,t){switch(e){case"focusin":case"focusout":zt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function hr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=mi(t),t!==null&&Ll(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ny(e,t,n,r,i){switch(t){case"focusin":return zt=hr(zt,e,t,n,r,i),!0;case"dragenter":return Ot=hr(Ot,e,t,n,r,i),!0;case"mouseover":return It=hr(It,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return br.set(s,hr(br.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Kr.set(s,hr(Kr.get(s)||null,e,t,n,r,i)),!0}return!1}function xh(e){var t=ln(e.target);if(t!==null){var n=jn(t);if(n!==null){if(t=n.tag,t===13){if(t=ah(n),t!==null){e.blockedOn=t,vh(e.priority,function(){gh(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 qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Na(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Sa=r,n.target.dispatchEvent(r),Sa=null}else return t=mi(n),t!==null&&Ll(t),e.blockedOn=n,!1;t.shift()}return!0}function uc(e,t,n){qi(e)&&n.delete(t)}function Ey(){Ta=!1,zt!==null&&qi(zt)&&(zt=null),Ot!==null&&qi(Ot)&&(Ot=null),It!==null&&qi(It)&&(It=null),br.forEach(uc),Kr.forEach(uc)}function pr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ta||(Ta=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,Ey)))}function Gr(e){function t(i){return pr(i,e)}if(0<Mi.length){pr(Mi[0],e);for(var n=1;n<Mi.length;n++){var r=Mi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zt!==null&&pr(zt,e),Ot!==null&&pr(Ot,e),It!==null&&pr(It,e),br.forEach(t),Kr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)xh(n),n.blockedOn===null&&Lt.shift()}var Kn=Nt.ReactCurrentBatchConfig,hs=!0;function My(e,t,n,r){var i=b,s=Kn.transition;Kn.transition=null;try{b=1,Rl(e,t,n,r)}finally{b=i,Kn.transition=s}}function Ay(e,t,n,r){var i=b,s=Kn.transition;Kn.transition=null;try{b=4,Rl(e,t,n,r)}finally{b=i,Kn.transition=s}}function Rl(e,t,n,r){if(hs){var i=Na(e,t,n,r);if(i===null)Do(e,t,r,ps,n),lc(e,r);else if(Ny(i,e,t,n,r))r.stopPropagation();else if(lc(e,r),t&4&&-1<Ty.indexOf(e)){for(;i!==null;){var s=mi(i);if(s!==null&&mh(s),s=Na(e,t,n,r),s===null&&Do(e,t,r,ps,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Do(e,t,r,null,n)}}var ps=null;function Na(e,t,n,r){if(ps=null,e=Ml(r),e=ln(e),e!==null)if(t=jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ah(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 ps=e,null}function wh(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(yy()){case Al:return 1;case dh:return 4;case ds:case vy:return 16;case fh:return 536870912;default:return 16}default:return 16}}var _t=null,_l=null,Yi=null;function Sh(){if(Yi)return Yi;var e,t=_l,n=t.length,r,i="value"in _t?_t.value:_t.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Yi=i.slice(e,1<r?1-r:void 0)}function Xi(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 Ai(){return!0}function cc(){return!1}function We(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ai:cc,this.isPropagationStopped=cc,this}return ne(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=Ai)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),t}var ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vl=We(ar),pi=ne({},ar,{view:0,detail:0}),Dy=We(pi),jo,ko,mr,Ks=ne({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zl,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!==mr&&(mr&&e.type==="mousemove"?(jo=e.screenX-mr.screenX,ko=e.screenY-mr.screenY):ko=jo=0,mr=e),jo)},movementY:function(e){return"movementY"in e?e.movementY:ko}}),dc=We(Ks),Ly=ne({},Ks,{dataTransfer:0}),Ry=We(Ly),_y=ne({},pi,{relatedTarget:0}),Co=We(_y),Vy=ne({},ar,{animationName:0,elapsedTime:0,pseudoElement:0}),zy=We(Vy),Oy=ne({},ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Iy=We(Oy),Fy=ne({},ar,{data:0}),fc=We(Fy),By={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$y={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"},Uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uy[e])?!!t[e]:!1}function zl(){return Wy}var Hy=ne({},pi,{key:function(e){if(e.key){var t=By[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$y[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zl,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),by=We(Hy),Ky=ne({},Ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hc=We(Ky),Gy=ne({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zl}),Qy=We(Gy),qy=ne({},ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yy=We(qy),Xy=ne({},Ks,{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}),Zy=We(Xy),Jy=[9,13,27,32],Ol=jt&&"CompositionEvent"in window,Ar=null;jt&&"documentMode"in document&&(Ar=document.documentMode);var ev=jt&&"TextEvent"in window&&!Ar,jh=jt&&(!Ol||Ar&&8<Ar&&11>=Ar),pc=" ",mc=!1;function kh(e,t){switch(e){case"keyup":return Jy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function tv(e,t){switch(e){case"compositionend":return Ch(t);case"keypress":return t.which!==32?null:(mc=!0,pc);case"textInput":return e=t.data,e===pc&&mc?null:e;default:return null}}function nv(e,t){if(Nn)return e==="compositionend"||!Ol&&kh(e,t)?(e=Sh(),Yi=_l=_t=null,Nn=!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 jh&&t.locale!=="ko"?null:t.data;default:return null}}var rv={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 gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rv[e.type]:t==="textarea"}function Ph(e,t,n,r){nh(r),t=ms(t,"onChange"),0<t.length&&(n=new Vl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dr=null,Qr=null;function iv(e){zh(e,0)}function Gs(e){var t=An(e);if(qf(t))return e}function sv(e,t){if(e==="change")return t}var Th=!1;if(jt){var Po;if(jt){var To="oninput"in document;if(!To){var yc=document.createElement("div");yc.setAttribute("oninput","return;"),To=typeof yc.oninput=="function"}Po=To}else Po=!1;Th=Po&&(!document.documentMode||9<document.documentMode)}function vc(){Dr&&(Dr.detachEvent("onpropertychange",Nh),Qr=Dr=null)}function Nh(e){if(e.propertyName==="value"&&Gs(Qr)){var t=[];Ph(t,Qr,e,Ml(e)),oh(iv,t)}}function ov(e,t,n){e==="focusin"?(vc(),Dr=t,Qr=n,Dr.attachEvent("onpropertychange",Nh)):e==="focusout"&&vc()}function av(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gs(Qr)}function lv(e,t){if(e==="click")return Gs(t)}function uv(e,t){if(e==="input"||e==="change")return Gs(t)}function cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:cv;function qr(e,t){if(st(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ua.call(t,i)||!st(e[i],t[i]))return!1}return!0}function xc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wc(e,t){var n=xc(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=xc(n)}}function Eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mh(){for(var e=window,t=ls();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ls(e.document)}return t}function Il(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 dv(e){var t=Mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eh(n.ownerDocument.documentElement,n)){if(r!==null&&Il(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=wc(n,s);var o=wc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fv=jt&&"documentMode"in document&&11>=document.documentMode,En=null,Ea=null,Lr=null,Ma=!1;function Sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ma||En==null||En!==ls(r)||(r=En,"selectionStart"in r&&Il(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}),Lr&&qr(Lr,r)||(Lr=r,r=ms(Ea,"onSelect"),0<r.length&&(t=new Vl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=En)))}function Di(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mn={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionend:Di("Transition","TransitionEnd")},No={},Ah={};jt&&(Ah=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function Qs(e){if(No[e])return No[e];if(!Mn[e])return e;var t=Mn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ah)return No[e]=t[n];return e}var Dh=Qs("animationend"),Lh=Qs("animationiteration"),Rh=Qs("animationstart"),_h=Qs("transitionend"),Vh=new Map,jc="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 Yt(e,t){Vh.set(e,t),Sn(t,[e])}for(var Eo=0;Eo<jc.length;Eo++){var Mo=jc[Eo],hv=Mo.toLowerCase(),pv=Mo[0].toUpperCase()+Mo.slice(1);Yt(hv,"on"+pv)}Yt(Dh,"onAnimationEnd");Yt(Lh,"onAnimationIteration");Yt(Rh,"onAnimationStart");Yt("dblclick","onDoubleClick");Yt("focusin","onFocus");Yt("focusout","onBlur");Yt(_h,"onTransitionEnd");Yn("onMouseEnter",["mouseout","mouseover"]);Yn("onMouseLeave",["mouseout","mouseover"]);Yn("onPointerEnter",["pointerout","pointerover"]);Yn("onPointerLeave",["pointerout","pointerover"]);Sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="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(" "),mv=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function kc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hy(r,t,void 0,e),e.currentTarget=null}function zh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;kc(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;kc(i,a,c),s=l}}}if(cs)throw e=Ca,cs=!1,Ca=null,e}function Q(e,t){var n=t[_a];n===void 0&&(n=t[_a]=new Set);var r=e+"__bubble";n.has(r)||(Oh(t,e,2,!1),n.add(r))}function Ao(e,t,n){var r=0;t&&(r|=4),Oh(n,e,r,t)}var Li="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[Li]){e[Li]=!0,Hf.forEach(function(n){n!=="selectionchange"&&(mv.has(n)||Ao(n,!1,e),Ao(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Li]||(t[Li]=!0,Ao("selectionchange",!1,t))}}function Oh(e,t,n,r){switch(wh(t)){case 1:var i=My;break;case 4:i=Ay;break;default:i=Rl}n=i.bind(null,t,n,e),i=void 0,!ka||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Do(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=ln(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}oh(function(){var c=s,d=Ml(n),h=[];e:{var f=Vh.get(e);if(f!==void 0){var v=Vl,x=e;switch(e){case"keypress":if(Xi(n)===0)break e;case"keydown":case"keyup":v=by;break;case"focusin":x="focus",v=Co;break;case"focusout":x="blur",v=Co;break;case"beforeblur":case"afterblur":v=Co;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":v=dc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Ry;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Qy;break;case Dh:case Lh:case Rh:v=zy;break;case _h:v=Yy;break;case"scroll":v=Dy;break;case"wheel":v=Zy;break;case"copy":case"cut":case"paste":v=Iy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=hc}var y=(t&4)!==0,P=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var p=c,g;p!==null;){g=p;var j=g.stateNode;if(g.tag===5&&j!==null&&(g=j,m!==null&&(j=Hr(p,m),j!=null&&y.push(Xr(p,j,g)))),P)break;p=p.return}0<y.length&&(f=new v(f,x,null,n,d),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",f&&n!==Sa&&(x=n.relatedTarget||n.fromElement)&&(ln(x)||x[kt]))break e;if((v||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=c,x=x?ln(x):null,x!==null&&(P=jn(x),x!==P||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=c),v!==x)){if(y=dc,j="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=hc,j="onPointerLeave",m="onPointerEnter",p="pointer"),P=v==null?f:An(v),g=x==null?f:An(x),f=new y(j,p+"leave",v,n,d),f.target=P,f.relatedTarget=g,j=null,ln(d)===c&&(y=new y(m,p+"enter",x,n,d),y.target=g,y.relatedTarget=P,j=y),P=j,v&&x)t:{for(y=v,m=x,p=0,g=y;g;g=Cn(g))p++;for(g=0,j=m;j;j=Cn(j))g++;for(;0<p-g;)y=Cn(y),p--;for(;0<g-p;)m=Cn(m),g--;for(;p--;){if(y===m||m!==null&&y===m.alternate)break t;y=Cn(y),m=Cn(m)}y=null}else y=null;v!==null&&Cc(h,f,v,y,!1),x!==null&&P!==null&&Cc(h,P,x,y,!0)}}e:{if(f=c?An(c):window,v=f.nodeName&&f.nodeName.toLowerCase(),v==="select"||v==="input"&&f.type==="file")var w=sv;else if(gc(f))if(Th)w=uv;else{w=av;var S=ov}else(v=f.nodeName)&&v.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=lv);if(w&&(w=w(e,c))){Ph(h,w,n,d);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&ga(f,"number",f.value)}switch(S=c?An(c):window,e){case"focusin":(gc(S)||S.contentEditable==="true")&&(En=S,Ea=c,Lr=null);break;case"focusout":Lr=Ea=En=null;break;case"mousedown":Ma=!0;break;case"contextmenu":case"mouseup":case"dragend":Ma=!1,Sc(h,n,d);break;case"selectionchange":if(fv)break;case"keydown":case"keyup":Sc(h,n,d)}var T;if(Ol)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Nn?kh(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(jh&&n.locale!=="ko"&&(Nn||N!=="onCompositionStart"?N==="onCompositionEnd"&&Nn&&(T=Sh()):(_t=d,_l="value"in _t?_t.value:_t.textContent,Nn=!0)),S=ms(c,N),0<S.length&&(N=new fc(N,e,null,n,d),h.push({event:N,listeners:S}),T?N.data=T:(T=Ch(n),T!==null&&(N.data=T)))),(T=ev?tv(e,n):nv(e,n))&&(c=ms(c,"onBeforeInput"),0<c.length&&(d=new fc("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=T))}zh(h,t)})}function Xr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ms(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Hr(e,n),s!=null&&r.unshift(Xr(e,s,i)),s=Hr(e,t),s!=null&&r.push(Xr(e,s,i))),e=e.return}return r}function Cn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Hr(n,s),l!=null&&o.unshift(Xr(n,l,a))):i||(l=Hr(n,s),l!=null&&o.push(Xr(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var gv=/\r\n?/g,yv=/\u0000|\uFFFD/g;function Pc(e){return(typeof e=="string"?e:""+e).replace(gv,`
|
|
38
|
-
`).replace(yv,"")}function Ri(e,t,n){if(t=Pc(t),Pc(e)!==t&&n)throw Error(E(425))}function gs(){}var Aa=null,Da=null;function La(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 Ra=typeof setTimeout=="function"?setTimeout:void 0,vv=typeof clearTimeout=="function"?clearTimeout:void 0,Tc=typeof Promise=="function"?Promise:void 0,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof Tc<"u"?function(e){return Tc.resolve(null).then(e).catch(wv)}:Ra;function wv(e){setTimeout(function(){throw e})}function Lo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Gr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Gr(t)}function Ft(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 Nc(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 lr=Math.random().toString(36).slice(2),ut="__reactFiber$"+lr,Zr="__reactProps$"+lr,kt="__reactContainer$"+lr,_a="__reactEvents$"+lr,Sv="__reactListeners$"+lr,jv="__reactHandles$"+lr;function ln(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Nc(e);e!==null;){if(n=e[ut])return n;e=Nc(e)}return t}e=n,n=e.parentNode}return null}function mi(e){return e=e[ut]||e[kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function An(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function qs(e){return e[Zr]||null}var Va=[],Dn=-1;function Xt(e){return{current:e}}function q(e){0>Dn||(e.current=Va[Dn],Va[Dn]=null,Dn--)}function K(e,t){Dn++,Va[Dn]=e.current,e.current=t}var Kt={},ke=Xt(Kt),De=Xt(!1),gn=Kt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Le(e){return e=e.childContextTypes,e!=null}function ys(){q(De),q(ke)}function Ec(e,t,n){if(ke.current!==Kt)throw Error(E(168));K(ke,t),K(De,n)}function Ih(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,oy(e)||"Unknown",i));return ne({},n,r)}function vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,gn=ke.current,K(ke,e),K(De,De.current),!0}function Mc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Ih(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,q(De),q(ke),K(ke,e)):q(De),K(De,n)}var mt=null,Ys=!1,Ro=!1;function Fh(e){mt===null?mt=[e]:mt.push(e)}function kv(e){Ys=!0,Fh(e)}function Zt(){if(!Ro&&mt!==null){Ro=!0;var e=0,t=b;try{var n=mt;for(b=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Ys=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),ch(Al,Zt),i}finally{b=t,Ro=!1}}return null}var Ln=[],Rn=0,xs=null,ws=0,Ke=[],Ge=0,yn=null,gt=1,yt="";function rn(e,t){Ln[Rn++]=ws,Ln[Rn++]=xs,xs=e,ws=t}function Bh(e,t,n){Ke[Ge++]=gt,Ke[Ge++]=yt,Ke[Ge++]=yn,yn=e;var r=gt;e=yt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var s=32-rt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,gt=1<<32-rt(t)+i|n<<i|r,yt=s+e}else gt=1<<s|n<<i|r,yt=e}function Fl(e){e.return!==null&&(rn(e,1),Bh(e,1,0))}function Bl(e){for(;e===xs;)xs=Ln[--Rn],Ln[Rn]=null,ws=Ln[--Rn],Ln[Rn]=null;for(;e===yn;)yn=Ke[--Ge],Ke[Ge]=null,yt=Ke[--Ge],Ke[Ge]=null,gt=Ke[--Ge],Ke[Ge]=null}var Ie=null,Oe=null,Z=!1,nt=null;function $h(e,t){var n=Qe(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 Ac(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,Ie=e,Oe=Ft(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yn!==null?{id:gt,overflow:yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,Oe=null,!0):!1;default:return!1}}function za(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Oa(e){if(Z){var t=Oe;if(t){var n=t;if(!Ac(e,t)){if(za(e))throw Error(E(418));t=Ft(n.nextSibling);var r=Ie;t&&Ac(e,t)?$h(r,n):(e.flags=e.flags&-4097|2,Z=!1,Ie=e)}}else{if(za(e))throw Error(E(418));e.flags=e.flags&-4097|2,Z=!1,Ie=e}}}function Dc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function _i(e){if(e!==Ie)return!1;if(!Z)return Dc(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!La(e.type,e.memoizedProps)),t&&(t=Oe)){if(za(e))throw Uh(),Error(E(418));for(;t;)$h(e,t),t=Ft(t.nextSibling)}if(Dc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Oe=Ft(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=Ie?Ft(e.stateNode.nextSibling):null;return!0}function Uh(){for(var e=Oe;e;)e=Ft(e.nextSibling)}function Zn(){Oe=Ie=null,Z=!1}function $l(e){nt===null?nt=[e]:nt.push(e)}var Cv=Nt.ReactCurrentBatchConfig;function gr(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(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lc(e){var t=e._init;return t(e._payload)}function Wh(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=Wt(m,p),m.index=0,m.sibling=null,m}function s(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,g,j){return p===null||p.tag!==6?(p=Bo(g,m.mode,j),p.return=m,p):(p=i(p,g),p.return=m,p)}function l(m,p,g,j){var w=g.type;return w===Tn?d(m,p,g.props.children,j,g.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Lc(w)===p.type)?(j=i(p,g.props),j.ref=gr(m,p,g),j.return=m,j):(j=is(g.type,g.key,g.props,null,m.mode,j),j.ref=gr(m,p,g),j.return=m,j)}function c(m,p,g,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=$o(g,m.mode,j),p.return=m,p):(p=i(p,g.children||[]),p.return=m,p)}function d(m,p,g,j,w){return p===null||p.tag!==7?(p=hn(g,m.mode,j,w),p.return=m,p):(p=i(p,g),p.return=m,p)}function h(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Bo(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ci:return g=is(p.type,p.key,p.props,null,m.mode,g),g.ref=gr(m,null,p),g.return=m,g;case Pn:return p=$o(p,m.mode,g),p.return=m,p;case At:var j=p._init;return h(m,j(p._payload),g)}if(Sr(p)||dr(p))return p=hn(p,m.mode,g,null),p.return=m,p;Vi(m,p)}return null}function f(m,p,g,j){var w=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return w!==null?null:a(m,p,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ci:return g.key===w?l(m,p,g,j):null;case Pn:return g.key===w?c(m,p,g,j):null;case At:return w=g._init,f(m,p,w(g._payload),j)}if(Sr(g)||dr(g))return w!==null?null:d(m,p,g,j,null);Vi(m,g)}return null}function v(m,p,g,j,w){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(g)||null,a(p,m,""+j,w);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ci:return m=m.get(j.key===null?g:j.key)||null,l(p,m,j,w);case Pn:return m=m.get(j.key===null?g:j.key)||null,c(p,m,j,w);case At:var S=j._init;return v(m,p,g,S(j._payload),w)}if(Sr(j)||dr(j))return m=m.get(g)||null,d(p,m,j,w,null);Vi(p,j)}return null}function x(m,p,g,j){for(var w=null,S=null,T=p,N=p=0,L=null;T!==null&&N<g.length;N++){T.index>N?(L=T,T=null):L=T.sibling;var M=f(m,T,g[N],j);if(M===null){T===null&&(T=L);break}e&&T&&M.alternate===null&&t(m,T),p=s(M,p,N),S===null?w=M:S.sibling=M,S=M,T=L}if(N===g.length)return n(m,T),Z&&rn(m,N),w;if(T===null){for(;N<g.length;N++)T=h(m,g[N],j),T!==null&&(p=s(T,p,N),S===null?w=T:S.sibling=T,S=T);return Z&&rn(m,N),w}for(T=r(m,T);N<g.length;N++)L=v(T,m,N,g[N],j),L!==null&&(e&&L.alternate!==null&&T.delete(L.key===null?N:L.key),p=s(L,p,N),S===null?w=L:S.sibling=L,S=L);return e&&T.forEach(function($){return t(m,$)}),Z&&rn(m,N),w}function y(m,p,g,j){var w=dr(g);if(typeof w!="function")throw Error(E(150));if(g=w.call(g),g==null)throw Error(E(151));for(var S=w=null,T=p,N=p=0,L=null,M=g.next();T!==null&&!M.done;N++,M=g.next()){T.index>N?(L=T,T=null):L=T.sibling;var $=f(m,T,M.value,j);if($===null){T===null&&(T=L);break}e&&T&&$.alternate===null&&t(m,T),p=s($,p,N),S===null?w=$:S.sibling=$,S=$,T=L}if(M.done)return n(m,T),Z&&rn(m,N),w;if(T===null){for(;!M.done;N++,M=g.next())M=h(m,M.value,j),M!==null&&(p=s(M,p,N),S===null?w=M:S.sibling=M,S=M);return Z&&rn(m,N),w}for(T=r(m,T);!M.done;N++,M=g.next())M=v(T,m,N,M.value,j),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?N:M.key),p=s(M,p,N),S===null?w=M:S.sibling=M,S=M);return e&&T.forEach(function(F){return t(m,F)}),Z&&rn(m,N),w}function P(m,p,g,j){if(typeof g=="object"&&g!==null&&g.type===Tn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ci:e:{for(var w=g.key,S=p;S!==null;){if(S.key===w){if(w=g.type,w===Tn){if(S.tag===7){n(m,S.sibling),p=i(S,g.props.children),p.return=m,m=p;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Lc(w)===S.type){n(m,S.sibling),p=i(S,g.props),p.ref=gr(m,S,g),p.return=m,m=p;break e}n(m,S);break}else t(m,S);S=S.sibling}g.type===Tn?(p=hn(g.props.children,m.mode,j,g.key),p.return=m,m=p):(j=is(g.type,g.key,g.props,null,m.mode,j),j.ref=gr(m,p,g),j.return=m,m=j)}return o(m);case Pn:e:{for(S=g.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=i(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=$o(g,m.mode,j),p.return=m,m=p}return o(m);case At:return S=g._init,P(m,p,S(g._payload),j)}if(Sr(g))return x(m,p,g,j);if(dr(g))return y(m,p,g,j);Vi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,g),p.return=m,m=p):(n(m,p),p=Bo(g,m.mode,j),p.return=m,m=p),o(m)):n(m,p)}return P}var Jn=Wh(!0),Hh=Wh(!1),Ss=Xt(null),js=null,_n=null,Ul=null;function Wl(){Ul=_n=js=null}function Hl(e){var t=Ss.current;q(Ss),e._currentValue=t}function Ia(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 Gn(e,t){js=e,Ul=_n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function Ye(e){var t=e._currentValue;if(Ul!==e)if(e={context:e,memoizedValue:t,next:null},_n===null){if(js===null)throw Error(E(308));_n=e,js.dependencies={lanes:0,firstContext:e}}else _n=_n.next=e;return t}var un=null;function bl(e){un===null?un=[e]:un.push(e)}function bh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,bl(t)):(n.next=i.next,i.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 Dt=!1;function Kl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kh(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 xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ct(e,n)}return i=r.interleaved,i===null?(t.next=t,bl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ct(e,n)}function Zi(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,Dl(e,n)}}function Rc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ks(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;o=0,d=c=l=null,a=s;do{var f=a.lane,v=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(f=t,v=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){h=x.call(v,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,f=typeof x=="function"?x.call(v,h,f):x,f==null)break e;h=ne({},h,f);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=v,l=h):d=d.next=v,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);xn|=o,e.lanes=o,e.memoizedState=h}}function _c(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var gi={},dt=Xt(gi),Jr=Xt(gi),ei=Xt(gi);function cn(e){if(e===gi)throw Error(E(174));return e}function Gl(e,t){switch(K(ei,t),K(Jr,e),K(dt,gi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:va(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=va(t,e)}q(dt),K(dt,t)}function er(){q(dt),q(Jr),q(ei)}function Gh(e){cn(ei.current);var t=cn(dt.current),n=va(t,e.type);t!==n&&(K(Jr,e),K(dt,n))}function Ql(e){Jr.current===e&&(q(dt),q(Jr))}var J=Xt(0);function Cs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=[];function ql(){for(var e=0;e<_o.length;e++)_o[e]._workInProgressVersionPrimary=null;_o.length=0}var Ji=Nt.ReactCurrentDispatcher,Vo=Nt.ReactCurrentBatchConfig,vn=0,te=null,ue=null,fe=null,Ps=!1,Rr=!1,ti=0,Pv=0;function ve(){throw Error(E(321))}function Yl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function Xl(e,t,n,r,i,s){if(vn=s,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ji.current=e===null||e.memoizedState===null?Mv:Av,e=n(r,i),Rr){s=0;do{if(Rr=!1,ti=0,25<=s)throw Error(E(301));s+=1,fe=ue=null,t.updateQueue=null,Ji.current=Dv,e=n(r,i)}while(Rr)}if(Ji.current=Ts,t=ue!==null&&ue.next!==null,vn=0,fe=ue=te=null,Ps=!1,t)throw Error(E(300));return e}function Zl(){var e=ti!==0;return ti=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?te.memoizedState=fe=e:fe=fe.next=e,fe}function Xe(){if(ue===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ue.next;var t=fe===null?te.memoizedState:fe.next;if(t!==null)fe=t,ue=e;else{if(e===null)throw Error(E(310));ue=e,e={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},fe===null?te.memoizedState=fe=e:fe=fe.next=e}return fe}function ni(e,t){return typeof t=="function"?t(e):t}function zo(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ue,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((vn&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,o=r):l=l.next=h,te.lanes|=d,xn|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,st(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,te.lanes|=s,xn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oo(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);st(s,t.memoizedState)||(Ae=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Qh(){}function qh(e,t){var n=te,r=Xe(),i=t(),s=!st(r.memoizedState,i);if(s&&(r.memoizedState=i,Ae=!0),r=r.queue,Jl(Zh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||fe!==null&&fe.memoizedState.tag&1){if(n.flags|=2048,ri(9,Xh.bind(null,n,r,i,t),void 0,null),he===null)throw Error(E(349));vn&30||Yh(n,t,i)}return i}function Yh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xh(e,t,n,r){t.value=n,t.getSnapshot=r,Jh(t)&&ep(e)}function Zh(e,t,n){return n(function(){Jh(t)&&ep(e)})}function Jh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function ep(e){var t=Ct(e,1);t!==null&&it(t,e,1,-1)}function Vc(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:e},t.queue=e,e=e.dispatch=Ev.bind(null,te,e),[t.memoizedState,e]}function ri(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.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 tp(){return Xe().memoizedState}function es(e,t,n,r){var i=lt();te.flags|=e,i.memoizedState=ri(1|t,n,void 0,r===void 0?null:r)}function Xs(e,t,n,r){var i=Xe();r=r===void 0?null:r;var s=void 0;if(ue!==null){var o=ue.memoizedState;if(s=o.destroy,r!==null&&Yl(r,o.deps)){i.memoizedState=ri(t,n,s,r);return}}te.flags|=e,i.memoizedState=ri(1|t,n,s,r)}function zc(e,t){return es(8390656,8,e,t)}function Jl(e,t){return Xs(2048,8,e,t)}function np(e,t){return Xs(4,2,e,t)}function rp(e,t){return Xs(4,4,e,t)}function ip(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 sp(e,t,n){return n=n!=null?n.concat([e]):null,Xs(4,4,ip.bind(null,t,e),n)}function eu(){}function op(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ap(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lp(e,t,n){return vn&21?(st(n,t)||(n=hh(),te.lanes|=n,xn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function Tv(e,t){var n=b;b=n!==0&&4>n?n:4,e(!0);var r=Vo.transition;Vo.transition={};try{e(!1),t()}finally{b=n,Vo.transition=r}}function up(){return Xe().memoizedState}function Nv(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cp(e))dp(t,n);else if(n=bh(e,t,n,r),n!==null){var i=Pe();it(n,e,r,i),fp(n,t,r)}}function Ev(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cp(e))dp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,bl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=bh(e,t,i,r),n!==null&&(i=Pe(),it(n,e,r,i),fp(n,t,r))}}function cp(e){var t=e.alternate;return e===te||t!==null&&t===te}function dp(e,t){Rr=Ps=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dl(e,n)}}var Ts={readContext:Ye,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Mv={readContext:Ye,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:zc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,es(4194308,4,ip.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();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=Nv.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Vc,useDebugValue:eu,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Vc(!1),t=e[0];return e=Tv.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,i=lt();if(Z){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),he===null)throw Error(E(349));vn&30||Yh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,zc(Zh.bind(null,r,s,e),[e]),r.flags|=2048,ri(9,Xh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=he.identifierPrefix;if(Z){var n=yt,r=gt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ti++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Pv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Av={readContext:Ye,useCallback:op,useContext:Ye,useEffect:Jl,useImperativeHandle:sp,useInsertionEffect:np,useLayoutEffect:rp,useMemo:ap,useReducer:zo,useRef:tp,useState:function(){return zo(ni)},useDebugValue:eu,useDeferredValue:function(e){var t=Xe();return lp(t,ue.memoizedState,e)},useTransition:function(){var e=zo(ni)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:Qh,useSyncExternalStore:qh,useId:up,unstable_isNewReconciler:!1},Dv={readContext:Ye,useCallback:op,useContext:Ye,useEffect:Jl,useImperativeHandle:sp,useInsertionEffect:np,useLayoutEffect:rp,useMemo:ap,useReducer:Oo,useRef:tp,useState:function(){return Oo(ni)},useDebugValue:eu,useDeferredValue:function(e){var t=Xe();return ue===null?t.memoizedState=e:lp(t,ue.memoizedState,e)},useTransition:function(){var e=Oo(ni)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:Qh,useSyncExternalStore:qh,useId:up,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zs={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=Ut(e),s=xt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Zi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=Ut(e),s=xt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Zi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=Ut(e),i=xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Bt(e,i,r),t!==null&&(it(t,e,r,n),Zi(t,e,r))}};function Oc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!qr(n,r)||!qr(i,s):!0}function hp(e,t,n){var r=!1,i=Kt,s=t.contextType;return typeof s=="object"&&s!==null?s=Ye(s):(i=Le(t)?gn:ke.current,r=t.contextTypes,s=(r=r!=null)?Xn(e,i):Kt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Ic(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&&Zs.enqueueReplaceState(t,t.state,null)}function Ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Kl(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ye(s):(s=Le(t)?gn:ke.current,i.context=Xn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Fa(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zs.enqueueReplaceState(i,i.state,null),ks(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function tr(e,t){try{var n="",r=t;do n+=sy(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
-
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Io(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $a(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Lv=typeof WeakMap=="function"?WeakMap:Map;function pp(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Es||(Es=!0,Xa=r),$a(e,t)},n}function mp(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){$a(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){$a(e,t),typeof r!="function"&&($t===null?$t=new Set([this]):$t.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Fc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Lv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Kv.bind(null,e,t,n),t.then(e,e))}function Bc(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 $c(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var Rv=Nt.ReactCurrentOwner,Ae=!1;function Ce(e,t,n,r){t.child=e===null?Hh(t,null,n,r):Jn(t,e.child,n,r)}function Uc(e,t,n,r,i){n=n.render;var s=t.ref;return Gn(t,i),r=Xl(e,t,n,r,s,i),n=Zl(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(Z&&n&&Fl(t),t.flags|=1,Ce(e,t,r,i),t.child)}function Wc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!lu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,gp(e,t,s,r,i)):(e=is(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:qr,n(o,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Wt(s,r),e.ref=t.ref,e.return=t,t.child=e}function gp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(qr(s,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return Ua(e,t,n,r,i)}function yp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(zn,_e),_e|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(zn,_e),_e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,K(zn,_e),_e|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,K(zn,_e),_e|=r;return Ce(e,t,i,n),t.child}function vp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ua(e,t,n,r,i){var s=Le(n)?gn:ke.current;return s=Xn(t,s),Gn(t,i),n=Xl(e,t,n,r,s,i),r=Zl(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(Z&&r&&Fl(t),t.flags|=1,Ce(e,t,n,i),t.child)}function Hc(e,t,n,r,i){if(Le(n)){var s=!0;vs(t)}else s=!1;if(Gn(t,i),t.stateNode===null)ts(e,t),hp(t,n,r),Ba(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ye(c):(c=Le(n)?gn:ke.current,c=Xn(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Ic(t,o,r,c),Dt=!1;var f=t.memoizedState;o.state=f,ks(t,r,o,i),l=t.memoizedState,a!==r||f!==l||De.current||Dt?(typeof d=="function"&&(Fa(t,n,d,r),l=t.memoizedState),(a=Dt||Oc(t,n,a,r,f,l,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Kh(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:et(t.type,a),o.props=c,h=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ye(l):(l=Le(n)?gn:ke.current,l=Xn(t,l));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||f!==l)&&Ic(t,o,r,l),Dt=!1,f=t.memoizedState,o.state=f,ks(t,r,o,i);var x=t.memoizedState;a!==h||f!==x||De.current||Dt?(typeof v=="function"&&(Fa(t,n,v,r),x=t.memoizedState),(c=Dt||Oc(t,n,c,r,f,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Wa(e,t,n,r,s,i)}function Wa(e,t,n,r,i,s){vp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Mc(t,n,!1),Pt(e,t,s);r=t.stateNode,Rv.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Jn(t,e.child,null,s),t.child=Jn(t,null,a,s)):Ce(e,t,a,s),t.memoizedState=r.state,i&&Mc(t,n,!0),t.child}function xp(e){var t=e.stateNode;t.pendingContext?Ec(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ec(e,t.context,!1),Gl(e,t.containerInfo)}function bc(e,t,n,r,i){return Zn(),$l(i),t.flags|=256,Ce(e,t,n,r),t.child}var Ha={dehydrated:null,treeContext:null,retryLane:0};function ba(e){return{baseLanes:e,cachePool:null,transitions:null}}function wp(e,t,n){var r=t.pendingProps,i=J.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(J,i&1),e===null)return Oa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=to(o,r,0,null),e=hn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ba(n),t.memoizedState=Ha,e):tu(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return _v(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Wt(a,s):(s=hn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?ba(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Ha,r}return s=e.child,e=s.sibling,r=Wt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function tu(e,t){return t=to({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zi(e,t,n,r){return r!==null&&$l(r),Jn(t,e.child,null,n),e=tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _v(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Io(Error(E(422))),zi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=to({mode:"visible",children:r.children},i,0,null),s=hn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Jn(t,e.child,null,o),t.child.memoizedState=ba(o),t.memoizedState=Ha,s);if(!(t.mode&1))return zi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(E(419)),r=Io(s,r,void 0),zi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ae||a){if(r=he,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ct(e,i),it(r,e,i,-1))}return au(),r=Io(Error(E(421))),zi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Gv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Oe=Ft(i.nextSibling),Ie=t,Z=!0,nt=null,e!==null&&(Ke[Ge++]=gt,Ke[Ge++]=yt,Ke[Ge++]=yn,gt=e.id,yt=e.overflow,yn=t),t=tu(t,r.children),t.flags|=4096,t)}function Kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ia(e.return,t,n)}function Fo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Sp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ce(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kc(e,n,t);else if(e.tag===19)Kc(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(K(J,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Cs(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Cs(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fo(t,!0,n,null,s);break;case"together":Fo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ts(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vv(e,t,n){switch(t.tag){case 3:xp(t),Zn();break;case 5:Gh(t);break;case 1:Le(t.type)&&vs(t);break;case 4:Gl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(Ss,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?wp(e,t,n):(K(J,J.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);K(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Sp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,yp(e,t,n)}return Pt(e,t,n)}var jp,Ka,kp,Cp;jp=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}};Ka=function(){};kp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,cn(dt.current);var s=null;switch(n){case"input":i=pa(e,i),r=pa(e,r),s=[];break;case"select":i=ne({},i,{value:void 0}),r=ne({},r,{value:void 0}),s=[];break;case"textarea":i=ya(e,i),r=ya(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gs)}xa(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ur.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ur.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Q("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Cp=function(e,t,n,r){n!==r&&(t.flags|=4)};function yr(e,t){if(!Z)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 xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zv(e,t,n){var r=t.pendingProps;switch(Bl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Le(t.type)&&ys(),xe(t),null;case 3:return r=t.stateNode,er(),q(De),q(ke),ql(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_i(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(el(nt),nt=null))),Ka(e,t),xe(t),null;case 5:Ql(t);var i=cn(ei.current);if(n=t.type,e!==null&&t.stateNode!=null)kp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return xe(t),null}if(e=cn(dt.current),_i(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[Zr]=s,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<kr.length;i++)Q(kr[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":tc(r,s),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Q("invalid",r);break;case"textarea":rc(r,s),Q("invalid",r)}xa(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ri(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ri(r.textContent,a,e),i=["children",""+a]):Ur.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Q("scroll",r)}switch(n){case"input":Pi(r),nc(r,s,!0);break;case"textarea":Pi(r),ic(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=gs)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Zr]=r,jp(e,t,!1,!1),t.stateNode=e;e:{switch(o=wa(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Q(kr[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":tc(e,r),i=pa(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ne({},r,{value:void 0}),Q("invalid",e);break;case"textarea":rc(e,r),i=ya(e,r),Q("invalid",e);break;default:i=r}xa(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?th(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Jf(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Wr(e,l):typeof l=="number"&&Wr(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ur.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Q("scroll",e):l!=null&&Pl(e,s,l,o))}switch(n){case"input":Pi(e),nc(e,r,!1);break;case"textarea":Pi(e),ic(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Wn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Wn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=gs)}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 xe(t),null;case 6:if(e&&t.stateNode!=null)Cp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=cn(ei.current),cn(dt.current),_i(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:Ri(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ri(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return xe(t),null;case 13:if(q(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Oe!==null&&t.mode&1&&!(t.flags&128))Uh(),Zn(),t.flags|=98560,s=!1;else if(s=_i(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(E(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(E(317));s[ut]=t}else Zn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),s=!1}else nt!==null&&(el(nt),nt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ce===0&&(ce=3):au())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return er(),Ka(e,t),e===null&&Yr(t.stateNode.containerInfo),xe(t),null;case 10:return Hl(t.type._context),xe(t),null;case 17:return Le(t.type)&&ys(),xe(t),null;case 19:if(q(J),s=t.memoizedState,s===null)return xe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)yr(s,!1);else{if(ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Cs(e),o!==null){for(t.flags|=128,yr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(J,J.current&1|2),t.child}e=e.sibling}s.tail!==null&&oe()>nr&&(t.flags|=128,r=!0,yr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Cs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Z)return xe(t),null}else 2*oe()-s.renderingStartTime>nr&&n!==1073741824&&(t.flags|=128,r=!0,yr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=oe(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return ou(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_e&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Ov(e,t){switch(Bl(t),t.tag){case 1:return Le(t.type)&&ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return er(),q(De),q(ke),ql(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ql(t),null;case 13:if(q(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(J),null;case 4:return er(),null;case 10:return Hl(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var Oi=!1,Se=!1,Iv=typeof WeakSet=="function"?WeakSet:Set,D=null;function Vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Ga(e,t,n){try{n()}catch(r){ie(e,t,r)}}var Gc=!1;function Fv(e,t){if(Aa=hs,e=Mh(),Il(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(v=h.firstChild)!==null;)f=h,h=v;for(;;){if(h===e)break t;if(f===n&&++c===i&&(a=o),f===s&&++d===r&&(l=o),(v=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Da={focusedElem:e,selectionRange:n},hs=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,P=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:et(t.type,y),P);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(j){ie(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Gc,Gc=!1,x}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ga(t,n,s)}i=i.next}while(i!==r)}}function Js(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 Qa(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 Pp(e){var t=e.alternate;t!==null&&(e.alternate=null,Pp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Zr],delete t[_a],delete t[Sv],delete t[jv])),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 Tp(e){return e.tag===5||e.tag===3||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tp(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 qa(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=gs));else if(r!==4&&(e=e.child,e!==null))for(qa(e,t,n),e=e.sibling;e!==null;)qa(e,t,n),e=e.sibling}function Ya(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(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}var pe=null,tt=!1;function Et(e,t,n){for(n=n.child;n!==null;)Np(e,t,n),n=n.sibling}function Np(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(bs,n)}catch{}switch(n.tag){case 5:Se||Vn(n,t);case 6:var r=pe,i=tt;pe=null,Et(e,t,n),pe=r,tt=i,pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?Lo(e.parentNode,n):e.nodeType===1&&Lo(e,n),Gr(e)):Lo(pe,n.stateNode));break;case 4:r=pe,i=tt,pe=n.stateNode.containerInfo,tt=!0,Et(e,t,n),pe=r,tt=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ga(n,t,o),i=i.next}while(i!==r)}Et(e,t,n);break;case 1:if(!Se&&(Vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ie(n,t,a)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Et(e,t,n),Se=r):Et(e,t,n);break;default:Et(e,t,n)}}function qc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Iv),t.forEach(function(r){var i=Qv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:pe=a.stateNode,tt=!1;break e;case 3:pe=a.stateNode.containerInfo,tt=!0;break e;case 4:pe=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(pe===null)throw Error(E(160));Np(s,o,i),pe=null,tt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ie(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ep(t,e),t=t.sibling}function Ep(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),at(e),r&4){try{_r(3,e,e.return),Js(3,e)}catch(y){ie(e,e.return,y)}try{_r(5,e,e.return)}catch(y){ie(e,e.return,y)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&Vn(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&Vn(n,n.return),e.flags&32){var i=e.stateNode;try{Wr(i,"")}catch(y){ie(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Yf(i,s),wa(a,o);var c=wa(a,s);for(o=0;o<l.length;o+=2){var d=l[o],h=l[o+1];d==="style"?th(i,h):d==="dangerouslySetInnerHTML"?Jf(i,h):d==="children"?Wr(i,h):Pl(i,d,h,c)}switch(a){case"input":ma(i,s);break;case"textarea":Xf(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Wn(i,!!s.multiple,v,!1):f!==!!s.multiple&&(s.defaultValue!=null?Wn(i,!!s.multiple,s.defaultValue,!0):Wn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Zr]=s}catch(y){ie(e,e.return,y)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){ie(e,e.return,y)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gr(t.containerInfo)}catch(y){ie(e,e.return,y)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(iu=oe())),r&4&&qc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(c=Se)||d,Ze(t,e),Se=c):Ze(t,e),at(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(h=D=d;D!==null;){switch(f=D,v=f.child,f.tag){case 0:case 11:case 14:case 15:_r(4,f,f.return);break;case 1:Vn(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){ie(r,n,y)}}break;case 5:Vn(f,f.return);break;case 22:if(f.memoizedState!==null){Xc(h);continue}}v!==null?(v.return=f,D=v):Xc(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=eh("display",o))}catch(y){ie(e,e.return,y)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){ie(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ze(t,e),at(e),r&4&&qc(e);break;case 21:break;default:Ze(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Tp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wr(i,""),r.flags&=-33);var s=Qc(e);Ya(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Qc(e);qa(e,a,o);break;default:throw Error(E(161))}}catch(l){ie(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bv(e,t,n){D=e,Mp(e)}function Mp(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Oi;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Se;a=Oi;var c=Se;if(Oi=o,(Se=l)&&!c)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?Zc(i):l!==null?(l.return=o,D=l):Zc(i);for(;s!==null;)D=s,Mp(s),s=s.sibling;D=i,Oi=a,Se=c}Yc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):Yc(e)}}function Yc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||Js(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&_c(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_c(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Gr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}Se||t.flags&512&&Qa(t)}catch(f){ie(t,t.return,f)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Xc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Zc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Js(4,t)}catch(l){ie(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ie(t,i,l)}}var s=t.return;try{Qa(t)}catch(l){ie(t,s,l)}break;case 5:var o=t.return;try{Qa(t)}catch(l){ie(t,o,l)}}}catch(l){ie(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var $v=Math.ceil,Ns=Nt.ReactCurrentDispatcher,nu=Nt.ReactCurrentOwner,qe=Nt.ReactCurrentBatchConfig,U=0,he=null,le=null,ge=0,_e=0,zn=Xt(0),ce=0,ii=null,xn=0,eo=0,ru=0,Vr=null,Me=null,iu=0,nr=1/0,pt=null,Es=!1,Xa=null,$t=null,Ii=!1,Vt=null,Ms=0,zr=0,Za=null,ns=-1,rs=0;function Pe(){return U&6?oe():ns!==-1?ns:ns=oe()}function Ut(e){return e.mode&1?U&2&&ge!==0?ge&-ge:Cv.transition!==null?(rs===0&&(rs=hh()),rs):(e=b,e!==0||(e=window.event,e=e===void 0?16:wh(e.type)),e):1}function it(e,t,n,r){if(50<zr)throw zr=0,Za=null,Error(E(185));hi(e,n,r),(!(U&2)||e!==he)&&(e===he&&(!(U&2)&&(eo|=n),ce===4&&Rt(e,ge)),Re(e,r),n===1&&U===0&&!(t.mode&1)&&(nr=oe()+500,Ys&&Zt()))}function Re(e,t){var n=e.callbackNode;Cy(e,t);var r=fs(e,e===he?ge:0);if(r===0)n!==null&&ac(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ac(n),t===1)e.tag===0?kv(Jc.bind(null,e)):Fh(Jc.bind(null,e)),xv(function(){!(U&6)&&Zt()}),n=null;else{switch(ph(r)){case 1:n=Al;break;case 4:n=dh;break;case 16:n=ds;break;case 536870912:n=fh;break;default:n=ds}n=Op(n,Ap.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ap(e,t){if(ns=-1,rs=0,U&6)throw Error(E(327));var n=e.callbackNode;if(Qn()&&e.callbackNode!==n)return null;var r=fs(e,e===he?ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=As(e,r);else{t=r;var i=U;U|=2;var s=Lp();(he!==e||ge!==t)&&(pt=null,nr=oe()+500,fn(e,t));do try{Hv();break}catch(a){Dp(e,a)}while(!0);Wl(),Ns.current=s,U=i,le!==null?t=0:(he=null,ge=0,t=ce)}if(t!==0){if(t===2&&(i=Pa(e),i!==0&&(r=i,t=Ja(e,i))),t===1)throw n=ii,fn(e,0),Rt(e,r),Re(e,oe()),n;if(t===6)Rt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Uv(i)&&(t=As(e,r),t===2&&(s=Pa(e),s!==0&&(r=s,t=Ja(e,s))),t===1))throw n=ii,fn(e,0),Rt(e,r),Re(e,oe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:sn(e,Me,pt);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=iu+500-oe(),10<t)){if(fs(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ra(sn.bind(null,e,Me,pt),t);break}sn(e,Me,pt);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-rt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$v(r/1960))-r,10<r){e.timeoutHandle=Ra(sn.bind(null,e,Me,pt),r);break}sn(e,Me,pt);break;case 5:sn(e,Me,pt);break;default:throw Error(E(329))}}}return Re(e,oe()),e.callbackNode===n?Ap.bind(null,e):null}function Ja(e,t){var n=Vr;return e.current.memoizedState.isDehydrated&&(fn(e,t).flags|=256),e=As(e,t),e!==2&&(t=Me,Me=n,t!==null&&el(t)),e}function el(e){Me===null?Me=e:Me.push.apply(Me,e)}function Uv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!st(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rt(e,t){for(t&=~ru,t&=~eo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Jc(e){if(U&6)throw Error(E(327));Qn();var t=fs(e,0);if(!(t&1))return Re(e,oe()),null;var n=As(e,t);if(e.tag!==0&&n===2){var r=Pa(e);r!==0&&(t=r,n=Ja(e,r))}if(n===1)throw n=ii,fn(e,0),Rt(e,t),Re(e,oe()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sn(e,Me,pt),Re(e,oe()),null}function su(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(nr=oe()+500,Ys&&Zt())}}function wn(e){Vt!==null&&Vt.tag===0&&!(U&6)&&Qn();var t=U;U|=1;var n=qe.transition,r=b;try{if(qe.transition=null,b=1,e)return e()}finally{b=r,qe.transition=n,U=t,!(U&6)&&Zt()}}function ou(){_e=zn.current,q(zn)}function fn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vv(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(Bl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ys();break;case 3:er(),q(De),q(ke),ql();break;case 5:Ql(r);break;case 4:er();break;case 13:q(J);break;case 19:q(J);break;case 10:Hl(r.type._context);break;case 22:case 23:ou()}n=n.return}if(he=e,le=e=Wt(e.current,null),ge=_e=t,ce=0,ii=null,ru=eo=xn=0,Me=Vr=null,un!==null){for(t=0;t<un.length;t++)if(n=un[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}un=null}return e}function Dp(e,t){do{var n=le;try{if(Wl(),Ji.current=Ts,Ps){for(var r=te.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ps=!1}if(vn=0,fe=ue=te=null,Rr=!1,ti=0,nu.current=null,n===null||n.return===null){ce=1,ii=t,le=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=ge,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Bc(o);if(v!==null){v.flags&=-257,$c(v,o,a,s,t),v.mode&1&&Fc(s,c,t),t=v,l=c;var x=t.updateQueue;if(x===null){var y=new Set;y.add(l),t.updateQueue=y}else x.add(l);break e}else{if(!(t&1)){Fc(s,c,t),au();break e}l=Error(E(426))}}else if(Z&&a.mode&1){var P=Bc(o);if(P!==null){!(P.flags&65536)&&(P.flags|=256),$c(P,o,a,s,t),$l(tr(l,a));break e}}s=l=tr(l,a),ce!==4&&(ce=2),Vr===null?Vr=[s]:Vr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=pp(s,l,t);Rc(s,m);break e;case 1:a=l;var p=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&($t===null||!$t.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var j=mp(s,a,t);Rc(s,j);break e}}s=s.return}while(s!==null)}_p(n)}catch(w){t=w,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function Lp(){var e=Ns.current;return Ns.current=Ts,e===null?Ts:e}function au(){(ce===0||ce===3||ce===2)&&(ce=4),he===null||!(xn&268435455)&&!(eo&268435455)||Rt(he,ge)}function As(e,t){var n=U;U|=2;var r=Lp();(he!==e||ge!==t)&&(pt=null,fn(e,t));do try{Wv();break}catch(i){Dp(e,i)}while(!0);if(Wl(),U=n,Ns.current=r,le!==null)throw Error(E(261));return he=null,ge=0,ce}function Wv(){for(;le!==null;)Rp(le)}function Hv(){for(;le!==null&&!my();)Rp(le)}function Rp(e){var t=zp(e.alternate,e,_e);e.memoizedProps=e.pendingProps,t===null?_p(e):le=t,nu.current=null}function _p(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ov(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ce=6,le=null;return}}else if(n=zv(n,t,_e),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ce===0&&(ce=5)}function sn(e,t,n){var r=b,i=qe.transition;try{qe.transition=null,b=1,bv(e,t,n,r)}finally{qe.transition=i,b=r}return null}function bv(e,t,n,r){do Qn();while(Vt!==null);if(U&6)throw Error(E(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Py(e,s),e===he&&(le=he=null,ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ii||(Ii=!0,Op(ds,function(){return Qn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=qe.transition,qe.transition=null;var o=b;b=1;var a=U;U|=4,nu.current=null,Fv(e,n),Ep(n,e),dv(Da),hs=!!Aa,Da=Aa=null,e.current=n,Bv(n),gy(),U=a,b=o,qe.transition=s}else e.current=n;if(Ii&&(Ii=!1,Vt=e,Ms=i),s=e.pendingLanes,s===0&&($t=null),xy(n.stateNode),Re(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Es)throw Es=!1,e=Xa,Xa=null,e;return Ms&1&&e.tag!==0&&Qn(),s=e.pendingLanes,s&1?e===Za?zr++:(zr=0,Za=e):zr=0,Zt(),null}function Qn(){if(Vt!==null){var e=ph(Ms),t=qe.transition,n=b;try{if(qe.transition=null,b=16>e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,Ms=0,U&6)throw Error(E(331));var i=U;for(U|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(D=c;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:_r(8,d,s)}var h=d.child;if(h!==null)h.return=d,D=h;else for(;D!==null;){d=D;var f=d.sibling,v=d.return;if(Pp(d),d===c){D=null;break}if(f!==null){f.return=v,D=f;break}D=v}}}var x=s.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var P=y.sibling;y.sibling=null,y=P}while(y!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:_r(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var p=e.current;for(D=p;D!==null;){o=D;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,D=g;else e:for(o=p;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Js(9,a)}}catch(w){ie(a,a.return,w)}if(a===o){D=null;break e}var j=a.sibling;if(j!==null){j.return=a.return,D=j;break e}D=a.return}}if(U=i,Zt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(bs,e)}catch{}r=!0}return r}finally{b=n,qe.transition=t}}return!1}function ed(e,t,n){t=tr(n,t),t=pp(e,t,1),e=Bt(e,t,1),t=Pe(),e!==null&&(hi(e,1,t),Re(e,t))}function ie(e,t,n){if(e.tag===3)ed(e,e,n);else for(;t!==null;){if(t.tag===3){ed(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($t===null||!$t.has(r))){e=tr(n,e),e=mp(t,e,1),t=Bt(t,e,1),e=Pe(),t!==null&&(hi(t,1,e),Re(t,e));break}}t=t.return}}function Kv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,he===e&&(ge&n)===n&&(ce===4||ce===3&&(ge&130023424)===ge&&500>oe()-iu?fn(e,0):ru|=n),Re(e,t)}function Vp(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Pe();e=Ct(e,t),e!==null&&(hi(e,t,n),Re(e,n))}function Gv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vp(e,n)}function Qv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Vp(e,n)}var zp;zp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,Vv(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,Z&&t.flags&1048576&&Bh(t,ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ts(e,t),e=t.pendingProps;var i=Xn(t,ke.current);Gn(t,n),i=Xl(null,t,r,e,i,n);var s=Zl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(s=!0,vs(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Kl(t),i.updater=Zs,t.stateNode=i,i._reactInternals=t,Ba(t,r,e,n),t=Wa(null,t,r,!0,s,n)):(t.tag=0,Z&&s&&Fl(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Yv(r),e=et(r,e),i){case 0:t=Ua(null,t,r,e,n);break e;case 1:t=Hc(null,t,r,e,n);break e;case 11:t=Uc(null,t,r,e,n);break e;case 14:t=Wc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ua(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Hc(e,t,r,i,n);case 3:e:{if(xp(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Kh(e,t),ks(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=tr(Error(E(423)),t),t=bc(e,t,r,n,i);break e}else if(r!==i){i=tr(Error(E(424)),t),t=bc(e,t,r,n,i);break e}else for(Oe=Ft(t.stateNode.containerInfo.firstChild),Ie=t,Z=!0,nt=null,n=Hh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),r===i){t=Pt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Gh(t),e===null&&Oa(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,La(r,i)?o=null:s!==null&&La(r,s)&&(t.flags|=32),vp(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Oa(t),null;case 13:return wp(e,t,n);case 4:return Gl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Uc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,K(Ss,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!De.current){t=Pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ia(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ia(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gn(t,n),i=Ye(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Wc(e,t,r,i,n);case 15:return gp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),ts(e,t),t.tag=1,Le(r)?(e=!0,vs(t)):e=!1,Gn(t,n),hp(t,r,i),Ba(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return Sp(e,t,n);case 22:return yp(e,t,n)}throw Error(E(156,t.tag))};function Op(e,t){return ch(e,t)}function qv(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 Qe(e,t,n,r){return new qv(e,t,n,r)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yv(e){if(typeof e=="function")return lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Nl)return 11;if(e===El)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Qe(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 is(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")lu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tn:return hn(n.children,i,s,t);case Tl:o=8,i|=8;break;case ca:return e=Qe(12,n,t,i|2),e.elementType=ca,e.lanes=s,e;case da:return e=Qe(13,n,t,i),e.elementType=da,e.lanes=s,e;case fa:return e=Qe(19,n,t,i),e.elementType=fa,e.lanes=s,e;case Gf:return to(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bf:o=10;break e;case Kf:o=9;break e;case Nl:o=11;break e;case El:o=14;break e;case At:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function hn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function to(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Bo(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function $o(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=So(0),this.expirationTimes=So(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,i,s,o,a,l){return e=new Xv(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Qe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(s),e}function Zv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ip(e){if(!e)return Kt;e=e._reactInternals;e:{if(jn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Le(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(Le(n))return Ih(e,n,t)}return t}function Fp(e,t,n,r,i,s,o,a,l){return e=uu(n,r,!0,e,i,s,o,a,l),e.context=Ip(null),n=e.current,r=Pe(),i=Ut(n),s=xt(r,i),s.callback=t??null,Bt(n,s,i),e.current.lanes=i,hi(e,i,r),Re(e,r),e}function no(e,t,n,r){var i=t.current,s=Pe(),o=Ut(i);return n=Ip(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bt(i,t,o),e!==null&&(it(e,i,o,s),Zi(e,i,o)),o}function Ds(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 td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cu(e,t){td(e,t),(e=e.alternate)&&td(e,t)}function Jv(){return null}var Bp=typeof reportError=="function"?reportError:function(e){console.error(e)};function du(e){this._internalRoot=e}ro.prototype.render=du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));no(e,t,null,null)};ro.prototype.unmount=du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wn(function(){no(null,e,null,null)}),t[kt]=null}};function ro(e){this._internalRoot=e}ro.prototype.unstable_scheduleHydration=function(e){if(e){var t=yh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&xh(e)}};function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nd(){}function e0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Ds(o);s.call(c)}}var o=Fp(t,r,e,0,null,!1,!1,"",nd);return e._reactRootContainer=o,e[kt]=o.current,Yr(e.nodeType===8?e.parentNode:e),wn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Ds(l);a.call(c)}}var l=uu(e,0,!1,null,null,!1,!1,"",nd);return e._reactRootContainer=l,e[kt]=l.current,Yr(e.nodeType===8?e.parentNode:e),wn(function(){no(t,l,n,r)}),l}function so(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ds(o);a.call(l)}}no(t,o,e,i)}else o=e0(n,t,e,i,r);return Ds(o)}mh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jr(t.pendingLanes);n!==0&&(Dl(t,n|1),Re(t,oe()),!(U&6)&&(nr=oe()+500,Zt()))}break;case 13:wn(function(){var r=Ct(e,1);if(r!==null){var i=Pe();it(r,e,1,i)}}),cu(e,1)}};Ll=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Pe();it(t,e,134217728,n)}cu(e,134217728)}};gh=function(e){if(e.tag===13){var t=Ut(e),n=Ct(e,t);if(n!==null){var r=Pe();it(n,e,t,r)}cu(e,t)}};yh=function(){return b};vh=function(e,t){var n=b;try{return b=e,t()}finally{b=n}};ja=function(e,t,n){switch(t){case"input":if(ma(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=qs(r);if(!i)throw Error(E(90));qf(r),ma(r,i)}}}break;case"textarea":Xf(e,n);break;case"select":t=n.value,t!=null&&Wn(e,!!n.multiple,t,!1)}};ih=su;sh=wn;var t0={usingClientEntryPoint:!1,Events:[mi,An,qs,nh,rh,su]},vr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},n0={bundleType:vr.bundleType,version:vr.version,rendererPackageName:vr.rendererPackageName,rendererConfig:vr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lh(e),e===null?null:e.stateNode},findFiberByHostInstance:vr.findFiberByHostInstance||Jv,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 Fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fi.isDisabled&&Fi.supportsFiber)try{bs=Fi.inject(n0),ct=Fi}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t0;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(t))throw Error(E(200));return Zv(e,t,null,n)};Ue.createRoot=function(e,t){if(!fu(e))throw Error(E(299));var n=!1,r="",i=Bp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=uu(e,1,!1,null,null,n,!1,r,i),e[kt]=t.current,Yr(e.nodeType===8?e.parentNode:e),new du(t)};Ue.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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=lh(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return wn(e)};Ue.hydrate=function(e,t,n){if(!io(t))throw Error(E(200));return so(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!fu(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Bp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Fp(t,null,e,1,n??null,i,!1,s,o),e[kt]=t.current,Yr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ro(t)};Ue.render=function(e,t,n){if(!io(t))throw Error(E(200));return so(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!io(e))throw Error(E(40));return e._reactRootContainer?(wn(function(){so(null,null,e,!1,function(){e._reactRootContainer=null,e[kt]=null})}),!0):!1};Ue.unstable_batchedUpdates=su;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!io(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return so(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function $p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($p)}catch(e){console.error(e)}}$p(),$f.exports=Ue;var r0=$f.exports,rd=r0;la.createRoot=rd.createRoot,la.hydrateRoot=rd.hydrateRoot;/**
|
|
41
|
-
* @license lucide-react v0.441.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const i0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Up=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
46
|
-
* @license lucide-react v0.441.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var s0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
-
* @license lucide-react v0.441.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const o0=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>k.createElement("svg",{ref:l,...s0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Up("lucide",i),...a},[...o.map(([c,d])=>k.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
|
|
56
|
-
* @license lucide-react v0.441.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const I=(e,t)=>{const n=k.forwardRef(({className:r,...i},s)=>k.createElement(o0,{ref:s,iconNode:t,className:Up(`lucide-${i0(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
|
|
61
|
-
* @license lucide-react v0.441.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const Ls=I("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
|
-
* @license lucide-react v0.441.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const id=I("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
71
|
-
* @license lucide-react v0.441.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const a0=I("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
76
|
-
* @license lucide-react v0.441.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const l0=I("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
81
|
-
* @license lucide-react v0.441.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const u0=I("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
86
|
-
* @license lucide-react v0.441.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const oo=I("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
91
|
-
* @license lucide-react v0.441.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const c0=I("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
96
|
-
* @license lucide-react v0.441.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const pn=I("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
101
|
-
* @license lucide-react v0.441.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const si=I("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
106
|
-
* @license lucide-react v0.441.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Uo=I("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
111
|
-
* @license lucide-react v0.441.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const Rs=I("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
116
|
-
* @license lucide-react v0.441.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const d0=I("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
121
|
-
* @license lucide-react v0.441.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const f0=I("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
126
|
-
* @license lucide-react v0.441.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const Wp=I("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
131
|
-
* @license lucide-react v0.441.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const h0=I("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
136
|
-
* @license lucide-react v0.441.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const p0=I("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
141
|
-
* @license lucide-react v0.441.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const vt=I("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
146
|
-
* @license lucide-react v0.441.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const Hp=I("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
151
|
-
* @license lucide-react v0.441.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const tl=I("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/**
|
|
156
|
-
* @license lucide-react v0.441.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const m0=I("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
161
|
-
* @license lucide-react v0.441.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const ao=I("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
166
|
-
* @license lucide-react v0.441.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const g0=I("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
171
|
-
* @license lucide-react v0.441.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const sd=I("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
176
|
-
* @license lucide-react v0.441.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const y0=I("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
181
|
-
* @license lucide-react v0.441.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const od=I("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
186
|
-
* @license lucide-react v0.441.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const qn=I("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
191
|
-
* @license lucide-react v0.441.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const bp=I("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
196
|
-
* @license lucide-react v0.441.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const v0=I("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
201
|
-
* @license lucide-react v0.441.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const _s=I("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
206
|
-
* @license lucide-react v0.441.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const hu=I("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
211
|
-
* @license lucide-react v0.441.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const Kp=I("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
216
|
-
* @license lucide-react v0.441.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const Wo=I("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
221
|
-
* @license lucide-react v0.441.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const Ho=I("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
226
|
-
* @license lucide-react v0.441.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const x0=I("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
231
|
-
* @license lucide-react v0.441.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const Vs=I("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
236
|
-
* @license lucide-react v0.441.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const w0=I("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
241
|
-
* @license lucide-react v0.441.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const S0=I("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
|
|
246
|
-
* @license lucide-react v0.441.0 - ISC
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the ISC license.
|
|
249
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/const j0=I("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
251
|
-
* @license lucide-react v0.441.0 - ISC
|
|
252
|
-
*
|
|
253
|
-
* This source code is licensed under the ISC license.
|
|
254
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const Gt=I("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
256
|
-
* @license lucide-react v0.441.0 - ISC
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the ISC license.
|
|
259
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const nl=I("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
261
|
-
* @license lucide-react v0.441.0 - ISC
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the ISC license.
|
|
264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const pu=I("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
266
|
-
* @license lucide-react v0.441.0 - ISC
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the ISC license.
|
|
269
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const Bi=I("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),mu=k.createContext({});function gu(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const lo=k.createContext(null),yu=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class k0 extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function C0({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),i=k.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=k.useContext(yu);return k.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:c}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
271
|
-
[data-motion-pop-id="${n}"] {
|
|
272
|
-
position: absolute !important;
|
|
273
|
-
width: ${o}px !important;
|
|
274
|
-
height: ${a}px !important;
|
|
275
|
-
top: ${l}px !important;
|
|
276
|
-
left: ${c}px !important;
|
|
277
|
-
}
|
|
278
|
-
`),()=>{document.head.removeChild(d)}},[t]),u.jsx(k0,{isPresent:t,childRef:r,sizeRef:i,children:k.cloneElement(e,{ref:r})})}const P0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=gu(T0),l=k.useId(),c=k.useCallback(h=>{a.set(h,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),d=k.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:h=>(a.set(h,!1),()=>a.delete(h))}),s?[Math.random(),c]:[n,c]);return k.useMemo(()=>{a.forEach((h,f)=>a.set(f,!1))},[n]),k.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=u.jsx(C0,{isPresent:n,children:e})),u.jsx(lo.Provider,{value:d,children:e})};function T0(){return new Map}function Gp(e=!0){const t=k.useContext(lo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=k.useId();k.useEffect(()=>{e&&i(s)},[e]);const o=k.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const $i=e=>e.key||"";function ad(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const vu=typeof window<"u",Qp=vu?k.useLayoutEffect:k.useEffect,N0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=Gp(o),c=k.useMemo(()=>ad(e),[e]),d=o&&!a?[]:c.map($i),h=k.useRef(!0),f=k.useRef(c),v=gu(()=>new Map),[x,y]=k.useState(c),[P,m]=k.useState(c);Qp(()=>{h.current=!1,f.current=c;for(let j=0;j<P.length;j++){const w=$i(P[j]);d.includes(w)?v.delete(w):v.get(w)!==!0&&v.set(w,!1)}},[P,d.length,d.join("-")]);const p=[];if(c!==x){let j=[...c];for(let w=0;w<P.length;w++){const S=P[w],T=$i(S);d.includes(T)||(j.splice(w,0,S),p.push(S))}s==="wait"&&p.length&&(j=p),m(ad(j)),y(c);return}const{forceRender:g}=k.useContext(mu);return u.jsx(u.Fragment,{children:P.map(j=>{const w=$i(j),S=o&&!a?!1:c===P||d.includes(w),T=()=>{if(v.has(w))v.set(w,!0);else return;let N=!0;v.forEach(L=>{L||(N=!1)}),N&&(g==null||g(),m(f.current),o&&(l==null||l()),r&&r())};return u.jsx(P0,{isPresent:S,initial:!h.current||n?void 0:!1,custom:S?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:S?void 0:T,children:j},w)})})},Fe=e=>e;let qp=Fe;function xu(e){let t;return()=>(t===void 0&&(t=e()),t)}const rr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,E0={useManualTiming:!1};function M0(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,h=!1)=>{const v=h&&r?t:n;return d&&s.add(c),v.has(c)||v.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(o=c,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const Ui=["read","resolveKeyframes","update","preRender","render","postRender"],A0=40;function Yp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ui.reduce((m,p)=>(m[p]=M0(s),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:d,render:h,postRender:f}=o,v=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,A0),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Ui.reduce((m,p)=>{const g=o[p];return m[p]=(j,w=!1,S=!1)=>(n||x(),g.schedule(j,w,S)),m},{}),cancel:m=>{for(let p=0;p<Ui.length;p++)o[Ui[p]].cancel(m)},state:i,steps:o}}const{schedule:Y,cancel:Qt,state:me,steps:bo}=Yp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0),Xp=k.createContext({strict:!1}),ld={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ir={};for(const e in ld)ir[e]={isEnabled:t=>ld[e].some(n=>!!t[n])};function D0(e){for(const t in e)ir[t]={...ir[t],...e[t]}}const L0=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function zs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||L0.has(e)}let Zp=e=>!zs(e);function R0(e){e&&(Zp=t=>t.startsWith("on")?!zs(t):e(t))}try{R0(require("@emotion/is-prop-valid").default)}catch{}function _0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Zp(i)||n===!0&&zs(i)||!t&&!zs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function V0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const uo=k.createContext({});function oi(e){return typeof e=="string"||Array.isArray(e)}function co(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const wu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Su=["initial",...wu];function fo(e){return co(e.animate)||Su.some(t=>oi(e[t]))}function Jp(e){return!!(fo(e)||e.variants)}function z0(e,t){if(fo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||oi(n)?n:void 0,animate:oi(r)?r:void 0}}return e.inherit!==!1?t:{}}function O0(e){const{initial:t,animate:n}=z0(e,k.useContext(uo));return k.useMemo(()=>({initial:t,animate:n}),[ud(t),ud(n)])}function ud(e){return Array.isArray(e)?e.join(" "):e}const I0=Symbol.for("motionComponentSymbol");function On(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function F0(e,t,n){return k.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):On(n)&&(n.current=r))},[t])}const ju=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),B0="framerAppearId",em="data-"+ju(B0),{schedule:ku}=Yp(queueMicrotask,!1),tm=k.createContext({});function $0(e,t,n,r,i){var s,o;const{visualElement:a}=k.useContext(uo),l=k.useContext(Xp),c=k.useContext(lo),d=k.useContext(yu).reducedMotion,h=k.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,v=k.useContext(tm);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&U0(h.current,n,i,v);const x=k.useRef(!1);k.useInsertionEffect(()=>{f&&x.current&&f.update(n,c)});const y=n[em],P=k.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return Qp(()=>{f&&(x.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ku.render(f.render),P.current&&f.animationState&&f.animationState.animateChanges())}),k.useEffect(()=>{f&&(!P.current&&f.animationState&&f.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,y)}),P.current=!1))}),f}function U0(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&On(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function nm(e){if(e)return e.options.allowProjection!==!1?e.projection:nm(e.parent)}function W0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&D0(e);function a(c,d){let h;const f={...k.useContext(yu),...c,layoutId:H0(c)},{isStatic:v}=f,x=O0(c),y=r(c,v);if(!v&&vu){b0();const P=K0(f);h=P.MeasureLayout,x.visualElement=$0(i,y,f,t,P.ProjectionNode)}return u.jsxs(uo.Provider,{value:x,children:[h&&x.visualElement?u.jsx(h,{visualElement:x.visualElement,...f}):null,n(i,c,F0(y,x.visualElement,d),y,v,x.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=k.forwardRef(a);return l[I0]=i,l}function H0({layoutId:e}){const t=k.useContext(mu).id;return t&&e!==void 0?t+"-"+e:e}function b0(e,t){k.useContext(Xp).strict}function K0(e){const{drag:t,layout:n}=ir;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const G0=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cu(e){return typeof e!="string"||e.includes("-")?!1:!!(G0.indexOf(e)>-1||/[A-Z]/u.test(e))}function cd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pu(e,t,n,r){if(typeof t=="function"){const[i,s]=cd(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=cd(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const rl=e=>Array.isArray(e),Q0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),q0=e=>rl(e)?e[e.length-1]||0:e,je=e=>!!(e&&e.getVelocity);function ss(e){const t=je(e)?e.get():e;return Q0(t)?t.toValue():t}function Y0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:X0(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const rm=e=>(t,n)=>{const r=k.useContext(uo),i=k.useContext(lo),s=()=>Y0(e,t,r,i);return n?s():gu(s)};function X0(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=ss(s[f]);let{initial:o,animate:a}=e;const l=fo(e),c=Jp(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;if(h&&typeof h!="boolean"&&!co(h)){const f=Array.isArray(h)?h:[h];for(let v=0;v<f.length;v++){const x=Pu(e,f[v]);if(x){const{transitionEnd:y,transition:P,...m}=x;for(const p in m){let g=m[p];if(Array.isArray(g)){const j=d?g.length-1:0;g=g[j]}g!==null&&(i[p]=g)}for(const p in y)i[p]=y[p]}}}return i}const ur=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kn=new Set(ur),im=e=>t=>typeof t=="string"&&t.startsWith(e),sm=im("--"),Z0=im("var(--"),Tu=e=>Z0(e)?J0.test(e.split("/*")[0].trim()):!1,J0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,om=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tt=(e,t,n)=>n>t?t:n<e?e:n,cr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ai={...cr,transform:e=>Tt(0,1,e)},Wi={...cr,default:1},yi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=yi("deg"),ft=yi("%"),V=yi("px"),e1=yi("vh"),t1=yi("vw"),dd={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},n1={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},r1={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:Wi,scaleX:Wi,scaleY:Wi,scaleZ:Wi,skew:Mt,skewX:Mt,skewY:Mt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ai,originX:dd,originY:dd,originZ:V},fd={...cr,transform:Math.round},Nu={...n1,...r1,zIndex:fd,size:V,fillOpacity:ai,strokeOpacity:ai,numOctaves:fd},i1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s1=ur.length;function o1(e,t,n){let r="",i=!0;for(let s=0;s<s1;s++){const o=ur[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=om(a,Nu[o]);if(!l){i=!1;const d=i1[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Eu(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(kn.has(l)){o=!0;continue}else if(sm(l)){i[l]=c;continue}else{const d=om(c,Nu[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=o1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}const a1={offset:"stroke-dashoffset",array:"stroke-dasharray"},l1={offset:"strokeDashoffset",array:"strokeDasharray"};function u1(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?a1:l1;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function hd(e,t,n){return typeof e=="string"?e:V.transform(t+n*e)}function c1(e,t,n){const r=hd(t,e.x,e.width),i=hd(n,e.y,e.height);return`${r} ${i}`}function Mu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},d,h){if(Eu(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:v,dimensions:x}=e;f.transform&&(x&&(v.transform=f.transform),delete f.transform),x&&(i!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=c1(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&u1(f,o,a,l,!1)}const Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),am=()=>({...Au(),attrs:{}}),Du=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const um=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cm(e,t,n,r){lm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(um.has(i)?i:ju(i),t.attrs[i])}const Os={};function d1(e){Object.assign(Os,e)}function dm(e,{layout:t,layoutId:n}){return kn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Os[e]||e==="opacity")}function Lu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(je(i[o])||t.style&&je(t.style[o])||dm(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function fm(e,t,n){const r=Lu(e,t,n);for(const i in e)if(je(e[i])||je(t[i])){const s=ur.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function f1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const pd=["x","y","width","height","cx","cy","r"],h1={useVisualState:rm({scrapeMotionValuesFromProps:fm,createRenderState:am,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(kn.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<pd.length;a++){const l=pd[a];e[l]!==t[l]&&(o=!0)}o&&Y.read(()=>{f1(n,r),Y.render(()=>{Mu(r,i,Du(n.tagName),e.transformTemplate),cm(n,r)})})}})},p1={useVisualState:rm({scrapeMotionValuesFromProps:Lu,createRenderState:Au})};function hm(e,t,n){for(const r in t)!je(t[r])&&!dm(r,n)&&(e[r]=t[r])}function m1({transformTemplate:e},t){return k.useMemo(()=>{const n=Au();return Eu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function g1(e,t){const n=e.style||{},r={};return hm(r,n,e),Object.assign(r,m1(e,t)),r}function y1(e,t){const n={},r=g1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function v1(e,t,n,r){const i=k.useMemo(()=>{const s=am();return Mu(s,t,Du(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};hm(s,e.style,e),i.style={...s,...i.style}}return i}function x1(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Cu(n)?v1:y1)(r,s,o,n),c=_0(r,typeof n=="string",e),d=n!==k.Fragment?{...c,...l,ref:i}:{},{children:h}=r,f=k.useMemo(()=>je(h)?h.get():h,[h]);return k.createElement(n,{...d,children:f})}}function w1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Cu(r)?h1:p1,preloadedFeatures:e,useRender:x1(i),createVisualElement:t,Component:r};return W0(o)}}function pm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ho(e,t,n){const r=e.getProps();return Pu(r,t,n!==void 0?n:r.custom,e)}const S1=xu(()=>window.ScrollTimeline!==void 0);class j1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(S1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class k1 extends j1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ru(e,t){return e?e[t]||e.default||e:void 0}const il=2e4;function mm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<il;)t+=n,r=e.next(t);return t>=il?1/0:t}function _u(e){return typeof e=="function"}function md(e,t){e.timeline=t,e.onfinish=null}const Vu=e=>Array.isArray(e)&&typeof e[0]=="number",C1={linearEasing:void 0};function P1(e,t){const n=xu(e);return()=>{var r;return(r=C1[t])!==null&&r!==void 0?r:n()}}const Is=P1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(rr(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function ym(e){return!!(typeof e=="function"&&Is()||!e||typeof e=="string"&&(e in sl||Is())||Vu(e)||Array.isArray(e)&&e.every(ym))}const Cr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cr([0,.65,.55,1]),circOut:Cr([.55,0,1,.45]),backIn:Cr([.31,.01,.66,-.59]),backOut:Cr([.33,1.53,.69,.99])};function vm(e,t){if(e)return typeof e=="function"&&Is()?gm(e,t):Vu(e)?Cr(e):Array.isArray(e)?e.map(n=>vm(n,t)||sl.easeOut):sl[e]}const Je={x:!1,y:!1};function xm(){return Je.x||Je.y}function T1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function wm(e,t){const n=T1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gd(e){return t=>{t.pointerType==="touch"||xm()||e(t)}}function N1(e,t,n={}){const[r,i,s]=wm(e,n),o=gd(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const d=gd(h=>{c(h),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Sm=(e,t)=>t?e===t?!0:Sm(e,t.parentElement):!1,zu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,E1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function M1(e){return E1.has(e.tagName)||e.tabIndex!==-1}const Pr=new WeakSet;function yd(e){return t=>{t.key==="Enter"&&e(t)}}function Ko(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const A1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yd(()=>{if(Pr.has(n))return;Ko(n,"down");const i=yd(()=>{Ko(n,"up")}),s=()=>Ko(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function vd(e){return zu(e)&&!xm()}function D1(e,t,n={}){const[r,i,s]=wm(e,n),o=a=>{const l=a.currentTarget;if(!vd(a)||Pr.has(l))return;Pr.add(l);const c=t(a),d=(v,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!vd(v)||!Pr.has(l))&&(Pr.delete(l),typeof c=="function"&&c(v,{success:x}))},h=v=>{d(v,n.useGlobalTarget||Sm(l,v.target))},f=v=>{d(v,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{!M1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",c=>A1(c,i),i)}),s}function L1(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const jm=new Set(["width","height","top","left","right","bottom",...ur]);let os;function R1(){os=void 0}const ht={now:()=>(os===void 0&&ht.set(me.isProcessing||E0.useManualTiming?me.timestamp:performance.now()),os),set:e=>{os=e,queueMicrotask(R1)}};function Ou(e,t){e.indexOf(t)===-1&&e.push(t)}function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Fu{constructor(){this.subscriptions=[]}add(t){return Ou(this.subscriptions,t),()=>Iu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function km(e,t){return t?e*(1e3/t):0}const xd=30,_1=e=>!isNaN(parseFloat(e));class V1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Fu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xd);return km(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function li(e,t){return new V1(e,t)}function z1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,li(n))}function O1(e,t){const n=ho(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=q0(s[o]);z1(e,o,a)}}function I1(e){return!!(je(e)&&e.add)}function ol(e,t){const n=e.getValue("willChange");if(I1(n))return n.add(t)}function Cm(e){return e.props[em]}const Pm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F1=1e-7,B1=12;function $1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Pm(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>F1&&++a<B1);return o}function vi(e,t,n,r){if(e===t&&n===r)return Fe;const i=s=>$1(s,0,1,e,n);return s=>s===0||s===1?s:Pm(i(s),t,r)}const Tm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Nm=e=>t=>1-e(1-t),Em=vi(.33,1.53,.69,.99),Bu=Nm(Em),Mm=Tm(Bu),Am=e=>(e*=2)<1?.5*Bu(e):.5*(2-Math.pow(2,-10*(e-1))),$u=e=>1-Math.sin(Math.acos(e)),Dm=Nm($u),Lm=Tm($u),Rm=e=>/^0[^.\s]+$/u.test(e);function U1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rm(e):!0}const Or=e=>Math.round(e*1e5)/1e5,Uu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W1(e){return e==null}const H1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wu=(e,t)=>n=>!!(typeof n=="string"&&H1.test(n)&&n.startsWith(e)||t&&!W1(n)&&Object.prototype.hasOwnProperty.call(n,t)),_m=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Uu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},b1=e=>Tt(0,255,e),Go={...cr,transform:e=>Math.round(b1(e))},dn={test:Wu("rgb","red"),parse:_m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Go.transform(e)+", "+Go.transform(t)+", "+Go.transform(n)+", "+Or(ai.transform(r))+")"};function K1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const al={test:Wu("#"),parse:K1,transform:dn.transform},In={test:Wu("hsl","hue"),parse:_m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Or(t))+", "+ft.transform(Or(n))+", "+Or(ai.transform(r))+")"},we={test:e=>dn.test(e)||al.test(e)||In.test(e),parse:e=>dn.test(e)?dn.parse(e):In.test(e)?In.parse(e):al.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dn.transform(e):In.transform(e)},G1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Q1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(G1))===null||n===void 0?void 0:n.length)||0)>0}const Vm="number",zm="color",q1="var",Y1="var(",wd="${}",X1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ui(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(X1,l=>(we.test(l)?(r.color.push(s),i.push(zm),n.push(we.parse(l))):l.startsWith(Y1)?(r.var.push(s),i.push(q1),n.push(l)):(r.number.push(s),i.push(Vm),n.push(parseFloat(l))),++s,wd)).split(wd);return{values:n,split:a,indexes:r,types:i}}function Om(e){return ui(e).values}function Im(e){const{split:t,types:n}=ui(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Vm?s+=Or(i[o]):a===zm?s+=we.transform(i[o]):s+=i[o]}return s}}const Z1=e=>typeof e=="number"?0:e;function J1(e){const t=Om(e);return Im(e)(t.map(Z1))}const qt={test:Q1,parse:Om,createTransformer:Im,getAnimatableNone:J1},ex=new Set(["brightness","contrast","saturate","opacity"]);function tx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uu)||[];if(!r)return e;const i=n.replace(r,"");let s=ex.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const nx=/\b([a-z-]*)\(.*?\)/gu,ll={...qt,getAnimatableNone:e=>{const t=e.match(nx);return t?t.map(tx).join(" "):e}},rx={...Nu,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:ll,WebkitFilter:ll},Hu=e=>rx[e];function Fm(e,t){let n=Hu(e);return n!==ll&&(n=qt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ix=new Set(["auto","none","0"]);function sx(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!ix.has(s)&&ui(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Fm(n,i)}const Sd=e=>e===cr||e===V,jd=(e,t)=>parseFloat(e.split(", ")[t]),kd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return jd(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?jd(s[1],e):0}},ox=new Set(["x","y","z"]),ax=ur.filter(e=>!ox.has(e));function lx(e){const t=[];return ax.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:kd(4,13),y:kd(5,14)};sr.translateX=sr.x;sr.translateY=sr.y;const mn=new Set;let ul=!1,cl=!1;function Bm(){if(cl){const e=Array.from(mn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=lx(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cl=!1,ul=!1,mn.forEach(e=>e.complete()),mn.clear()}function $m(){mn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cl=!0)})}function ux(){$m(),Bm()}class bu{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(mn.add(this),ul||(ul=!0,Y.read($m),Y.resolveKeyframes(Bm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),mn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,mn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Um=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dx(e){const t=cx.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Wm(e,t,n=1){const[r,i]=dx(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Um(o)?parseFloat(o):o}return Tu(i)?Wm(i,t,n+1):i}const Hm=e=>t=>t.test(e),fx={test:e=>e==="auto",parse:e=>e},bm=[cr,V,ft,Mt,t1,e1,fx],Cd=e=>bm.find(Hm(e));class Km extends bu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Tu(c))){const d=Wm(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!jm.has(r)||t.length!==2)return;const[i,s]=t,o=Cd(i),a=Cd(s);if(o!==a)if(Sd(o)&&Sd(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)U1(t[i])&&r.push(i);r.length&&sx(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=sr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Pd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qt.test(e)||e==="0")&&!e.startsWith("url("));function hx(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function px(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Pd(i,t),a=Pd(s,t);return!o||!a?!1:hx(e)||(n==="spring"||_u(n))&&r}const mx=e=>e!==null;function po(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(mx),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const gx=40;class Gm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ht.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>gx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ux(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!px(t,r,i,s))if(o)this.options.duration=0;else{l&&l(po(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ee=(e,t,n)=>e+(t-e)*n;function Qo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Qo(l,a,e+1/3),s=Qo(l,a,e),o=Qo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Fs(e,t){return n=>n>0?t:e}const qo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},vx=[al,dn,In],xx=e=>vx.find(t=>t.test(e));function Td(e){const t=xx(e);if(!t)return!1;let n=t.parse(e);return t===In&&(n=yx(n)),n}const Nd=(e,t)=>{const n=Td(e),r=Td(t);if(!n||!r)return Fs(e,t);const i={...n};return s=>(i.red=qo(n.red,r.red,s),i.green=qo(n.green,r.green,s),i.blue=qo(n.blue,r.blue,s),i.alpha=ee(n.alpha,r.alpha,s),dn.transform(i))},wx=(e,t)=>n=>t(e(n)),xi=(...e)=>e.reduce(wx),dl=new Set(["none","hidden"]);function Sx(e,t){return dl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jx(e,t){return n=>ee(e,t,n)}function Ku(e){return typeof e=="number"?jx:typeof e=="string"?Tu(e)?Fs:we.test(e)?Nd:Px:Array.isArray(e)?Qm:typeof e=="object"?we.test(e)?Nd:kx:Fs}function Qm(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Ku(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function kx(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ku(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Cx(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const Px=(e,t)=>{const n=qt.createTransformer(t),r=ui(e),i=ui(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?dl.has(e)&&!i.values.length||dl.has(t)&&!r.values.length?Sx(e,t):xi(Qm(Cx(r,i),i.values),n):Fs(e,t)};function qm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Ku(e)(e,t)}const Tx=5;function Ym(e,t,n){const r=Math.max(t-Tx,0);return km(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yo=.001;function Nx({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let i,s,o=1-t;o=Tt(re.minDamping,re.maxDamping,o),e=Tt(re.minDuration,re.maxDuration,St(e)),o<1?(i=c=>{const d=c*o,h=d*e,f=d-n,v=fl(c,o),x=Math.exp(-h);return Yo-f/v*x},s=c=>{const h=c*o*e,f=h*n+n,v=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-h),y=fl(Math.pow(c,2),o);return(-i(c)+Yo>0?-1:1)*((f-v)*x)/y}):(i=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-Yo+d*h},s=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const a=5/e,l=Mx(i,s,a);if(e=wt(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ex=12;function Mx(e,t,n){let r=n;for(let i=1;i<Ex;i++)r=r-e(r)/t(r);return r}function fl(e,t){return e*Math.sqrt(1-t*t)}const Ax=["duration","bounce"],Dx=["stiffness","damping","mass"];function Ed(e,t){return t.some(n=>e[n]!==void 0)}function Lx(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!Ed(e,Dx)&&Ed(e,Ax))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:re.mass,stiffness:i,damping:s}}else{const n=Nx(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Xm(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:v}=Lx({...n,velocity:-St(n.velocity||0)}),x=f||0,y=c/(2*Math.sqrt(l*d)),P=o-s,m=St(Math.sqrt(l/d)),p=Math.abs(P)<5;r||(r=p?re.restSpeed.granular:re.restSpeed.default),i||(i=p?re.restDelta.granular:re.restDelta.default);let g;if(y<1){const w=fl(m,y);g=S=>{const T=Math.exp(-y*m*S);return o-T*((x+y*m*P)/w*Math.sin(w*S)+P*Math.cos(w*S))}}else if(y===1)g=w=>o-Math.exp(-m*w)*(P+(x+m*P)*w);else{const w=m*Math.sqrt(y*y-1);g=S=>{const T=Math.exp(-y*m*S),N=Math.min(w*S,300);return o-T*((x+y*m*P)*Math.sinh(N)+w*P*Math.cosh(N))/w}}const j={calculatedDuration:v&&h||null,next:w=>{const S=g(w);if(v)a.done=w>=h;else{let T=0;y<1&&(T=w===0?wt(x):Ym(g,w,S));const N=Math.abs(T)<=r,L=Math.abs(o-S)<=i;a.done=N&&L}return a.value=a.done?o:S,a},toString:()=>{const w=Math.min(mm(j),il),S=gm(T=>j.next(w*T).value,w,30);return w+"ms "+S}};return j}function Md({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},v=N=>a!==void 0&&N<a||l!==void 0&&N>l,x=N=>a===void 0?l:l===void 0||Math.abs(a-N)<Math.abs(l-N)?a:l;let y=n*t;const P=h+y,m=o===void 0?P:o(P);m!==P&&(y=m-h);const p=N=>-y*Math.exp(-N/r),g=N=>m+p(N),j=N=>{const L=p(N),M=g(N);f.done=Math.abs(L)<=c,f.value=f.done?m:M};let w,S;const T=N=>{v(f.value)&&(w=N,S=Xm({keyframes:[f.value,x(f.value)],velocity:Ym(g,N,f.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return T(0),{calculatedDuration:null,next:N=>{let L=!1;return!S&&w===void 0&&(L=!0,j(N),T(N)),w!==void 0&&N>=w?S.next(N-w):(!L&&j(N),f)}}}const Rx=vi(.42,0,1,1),_x=vi(0,0,.58,1),Zm=vi(.42,0,.58,1),Vx=e=>Array.isArray(e)&&typeof e[0]!="number",zx={linear:Fe,easeIn:Rx,easeInOut:Zm,easeOut:_x,circIn:$u,circInOut:Lm,circOut:Dm,backIn:Bu,backInOut:Mm,backOut:Em,anticipate:Am},Ad=e=>{if(Vu(e)){qp(e.length===4);const[t,n,r,i]=e;return vi(t,n,r,i)}else if(typeof e=="string")return zx[e];return e};function Ox(e,t,n){const r=[],i=n||qm,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Fe:t;a=xi(l,a)}r.push(a)}return r}function Ix(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(qp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ox(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=rr(e[h],e[h+1],d);return a[h](f)};return n?d=>c(Tt(e[0],e[s-1],d)):c}function Fx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rr(0,t,r);e.push(ee(n,1,i))}}function Bx(e){const t=[0];return Fx(t,e.length-1),t}function $x(e,t){return e.map(n=>n*t)}function Ux(e,t){return e.map(()=>t||Zm).splice(0,e.length-1)}function Bs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Vx(r)?r.map(Ad):Ad(r),s={done:!1,value:t[0]},o=$x(n&&n.length===t.length?n:Bx(t),e),a=Ix(o,t,{ease:Array.isArray(i)?i:Ux(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Wx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Qt(t),now:()=>me.isProcessing?me.timestamp:ht.now()}},Hx={decay:Md,inertia:Md,tween:Bs,keyframes:Bs,spring:Xm},bx=e=>e/100;class Gu extends Gm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||bu,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=_u(n)?n:Hx[n]||Bs;let l,c;a!==Bs&&typeof t[0]!="number"&&(l=xi(bx,qm(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=mm(d));const{calculatedDuration:h}=d,f=h+i,v=f*(r+1)-i;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:N}=this.options;return{done:!0,value:N[N.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:v,repeatType:x,repeatDelay:y,onUpdate:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let g=this.currentTime,j=s;if(v){const N=Math.min(this.currentTime,d)/h;let L=Math.floor(N),M=N%1;!M&&N>=1&&(M=1),M===1&&L--,L=Math.min(L,v+1),!!(L%2)&&(x==="reverse"?(M=1-M,y&&(M-=y/h)):x==="mirror"&&(j=o)),g=Tt(0,1,M)*h}const w=p?{done:!1,value:l[0]}:j.next(g);a&&(w.value=a(w.value));let{done:S}=w;!p&&c!==null&&(S=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&i!==void 0&&(w.value=po(l,this.options,i)),P&&P(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Wx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Kx=new Set(["opacity","clipPath","filter","transform"]);function Gx(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=vm(a,i);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Qx=xu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$s=10,qx=2e4;function Yx(e){return _u(e.type)||e.type==="spring"||!ym(e.ease)}function Xx(e,t){const n=new Gu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<qx;)r=n.sample(s),i.push(r.value),s+=$s;return{times:void 0,keyframes:i,duration:s-$s,ease:"linear"}}const Jm={anticipate:Am,backInOut:Mm,circInOut:Lm};function Zx(e){return e in Jm}class Dd extends Gm{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Km(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Is()&&Zx(s)&&(s=Jm[s]),Yx(this.options)){const{onComplete:h,onUpdate:f,motionValue:v,element:x,...y}=this.options,P=Xx(t,y);t=P.keyframes,t.length===1&&(t[1]=t[0]),r=P.duration,i=P.times,s=P.ease,o="keyframes"}const d=Gx(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(md(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;a.set(po(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Fe;const{animation:r}=n;md(r,t)}return Fe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:h,element:f,...v}=this.options,x=new Gu({...v,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),y=wt(this.time);c.setWithVelocity(x.sample(y-$s).value,x.sample(y).value,$s)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Qx()&&r&&Kx.has(r)&&!l&&!c&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Jx={type:"spring",stiffness:500,damping:25,restSpeed:10},ew=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tw={type:"keyframes",duration:.8},nw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rw=(e,{keyframes:t})=>t.length>2?tw:kn.has(e)?e.startsWith("scale")?ew(t[1]):Jx:nw;function iw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Qu=(e,t,n,r={},i,s)=>o=>{const a=Ru(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-wt(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};iw(a)||(d={...d,...rw(e,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!s&&t.get()!==void 0){const f=po(d.keyframes,a);if(f!==void 0)return Y.update(()=>{d.onUpdate(f),d.onComplete()}),new k1([])}return!s&&Dd.supports(d)?new Dd(d):new Gu(d)};function sw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function eg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const f=e.getValue(h,(s=e.latestValues[h])!==null&&s!==void 0?s:null),v=l[h];if(v===void 0||d&&sw(d,h))continue;const x={delay:n,...Ru(o||{},h)};let y=!1;if(window.MotionHandoffAnimation){const m=Cm(e);if(m){const p=window.MotionHandoffAnimation(m,h,Y);p!==null&&(x.startTime=p,y=!0)}}ol(e,h),f.start(Qu(h,f,v,e.shouldReduceMotion&&jm.has(h)?{type:!1}:x,e,y));const P=f.animation;P&&c.push(P)}return a&&Promise.all(c).then(()=>{Y.update(()=>{a&&O1(e,a)})}),c}function hl(e,t,n={}){var r;const i=ho(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(eg(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=s;return ow(e,t,d+c,h,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,d]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function ow(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(aw).forEach((c,d)=>{c.notify("AnimationStart",t),o.push(hl(c,t,{...s,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function aw(e,t){return e.sortNodePosition(t)}function lw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>hl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=hl(e,t,n);else{const i=typeof t=="function"?ho(e,t,n.custom):t;r=Promise.all(eg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uw=Su.length;function tg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?tg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uw;n++){const r=Su[n],i=e.props[r];(oi(i)||i===!1)&&(t[r]=i)}return t}const cw=[...wu].reverse(),dw=wu.length;function fw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lw(e,n,r)))}function hw(e){let t=fw(e),n=Ld(),r=!0;const i=l=>(c,d)=>{var h;const f=ho(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:v,transitionEnd:x,...y}=f;c={...c,...y,...x}}return c};function s(l){t=l(e)}function o(l){const{props:c}=e,d=tg(e.parent)||{},h=[],f=new Set;let v={},x=1/0;for(let P=0;P<dw;P++){const m=cw[P],p=n[m],g=c[m]!==void 0?c[m]:d[m],j=oi(g),w=m===l?p.isActive:null;w===!1&&(x=P);let S=g===d[m]&&g!==c[m]&&j;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),p.protectedKeys={...v},!p.isActive&&w===null||!g&&!p.prevProp||co(g)||typeof g=="boolean")continue;const T=pw(p.prevProp,g);let N=T||m===l&&p.isActive&&!S&&j||P>x&&j,L=!1;const M=Array.isArray(g)?g:[g];let $=M.reduce(i(m),{});w===!1&&($={});const{prevResolvedValues:F={}}=p,de={...F,...$},Ee=H=>{N=!0,f.has(H)&&(L=!0,f.delete(H)),p.needsAnimating[H]=!0;const C=e.getValue(H);C&&(C.liveStyle=!1)};for(const H in de){const C=$[H],A=F[H];if(v.hasOwnProperty(H))continue;let _=!1;rl(C)&&rl(A)?_=!pm(C,A):_=C!==A,_?C!=null?Ee(H):f.add(H):C!==void 0&&f.has(H)?Ee(H):p.protectedKeys[H]=!0}p.prevProp=g,p.prevResolvedValues=$,p.isActive&&(v={...v,...$}),r&&e.blockInitialAnimation&&(N=!1),N&&(!(S&&T)||L)&&h.push(...M.map(H=>({animation:H,options:{type:m}})))}if(f.size){const P={};f.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),P[m]=p??null}),h.push({animation:P})}let y=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(h):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var v;return(v=f.animationState)===null||v===void 0?void 0:v.setActive(l,c)}),n[l].isActive=c;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ld(),r=!0}}}function pw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pm(t,e):!1}function tn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ld(){return{animate:tn(!0),whileInView:tn(),whileHover:tn(),whileTap:tn(),whileDrag:tn(),whileFocus:tn(),exit:tn()}}class Jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mw extends Jt{constructor(t){super(t),t.animationState||(t.animationState=hw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();co(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gw=0;class yw extends Jt{constructor(){super(...arguments),this.id=gw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const vw={animation:{Feature:mw},exit:{Feature:yw}};function ci(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wi(e){return{point:{x:e.pageX,y:e.pageY}}}const xw=e=>t=>zu(t)&&e(t,wi(t));function Ir(e,t,n,r){return ci(e,t,xw(n),r)}const Rd=(e,t)=>Math.abs(e-t);function ww(e,t){const n=Rd(e.x,t.x),r=Rd(e.y,t.y);return Math.sqrt(n**2+r**2)}class ng{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Zo(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,v=ww(h.offset,{x:0,y:0})>=3;if(!f&&!v)return;const{point:x}=h,{timestamp:y}=me;this.history.push({...x,timestamp:y});const{onStart:P,onMove:m}=this.handlers;f||(P&&P(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Xo(f,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Zo(h.type==="pointercancel"?this.lastMoveEventInfo:Xo(f,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,P),x&&x(h,P)},!zu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=wi(t),a=Xo(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=me;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Zo(a,this.history)),this.removeListeners=xi(Ir(this.contextWindow,"pointermove",this.handlePointerMove),Ir(this.contextWindow,"pointerup",this.handlePointerUp),Ir(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qt(this.updatePoint)}}function Xo(e,t){return t?{point:t(e.point)}:e}function _d(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zo({point:e},t){return{point:e,delta:_d(e,rg(t)),offset:_d(e,Sw(t)),velocity:jw(t,.1)}}function Sw(e){return e[0]}function rg(e){return e[e.length-1]}function jw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ig=1e-4,kw=1-ig,Cw=1+ig,sg=.01,Pw=0-sg,Tw=0+sg;function $e(e){return e.max-e.min}function Nw(e,t,n){return Math.abs(e-t)<=n}function Vd(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kw&&e.scale<=Cw||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pw&&e.translate<=Tw||isNaN(e.translate))&&(e.translate=0)}function Fr(e,t,n,r){Vd(e.x,t.x,n.x,r?r.originX:void 0),Vd(e.y,t.y,n.y,r?r.originY:void 0)}function zd(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function Ew(e,t,n){zd(e.x,t.x,n.x),zd(e.y,t.y,n.y)}function Od(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function Br(e,t,n){Od(e.x,t.x,n.x),Od(e.y,t.y,n.y)}function Mw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function Id(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Aw(e,{top:t,left:n,bottom:r,right:i}){return{x:Id(e.x,n,i),y:Id(e.y,t,r)}}function Fd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Dw(e,t){return{x:Fd(e.x,t.x),y:Fd(e.y,t.y)}}function Lw(e,t){let n=.5;const r=$e(e),i=$e(t);return i>r?n=rr(t.min,t.max-r,e.min):r>i&&(n=rr(e.min,e.max-i,t.min)),Tt(0,1,n)}function Rw(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const pl=.35;function _w(e=pl){return e===!1?e=0:e===!0&&(e=pl),{x:Bd(e,"left","right"),y:Bd(e,"top","bottom")}}function Bd(e,t,n){return{min:$d(e,t),max:$d(e,n)}}function $d(e,t){return typeof e=="number"?e:e[t]||0}const Ud=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fn=()=>({x:Ud(),y:Ud()}),Wd=()=>({min:0,max:0}),se=()=>({x:Wd(),y:Wd()});function be(e){return[e("x"),e("y")]}function og({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zw(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jo(e){return e===void 0||e===1}function ml({scale:e,scaleX:t,scaleY:n}){return!Jo(e)||!Jo(t)||!Jo(n)}function on(e){return ml(e)||ag(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ag(e){return Hd(e.x)||Hd(e.y)}function Hd(e){return e&&e!=="0%"}function Us(e,t,n){const r=e-n,i=t*r;return n+i}function bd(e,t,n,r,i){return i!==void 0&&(e=Us(e,i,r)),Us(e,n,r)+t}function gl(e,t=0,n=1,r,i){e.min=bd(e.min,t,n,r,i),e.max=bd(e.max,t,n,r,i)}function lg(e,{x:t,y:n}){gl(e.x,t.translate,t.scale,t.originPoint),gl(e.y,n.translate,n.scale,n.originPoint)}const Kd=.999999999999,Gd=1.0000000000001;function Ow(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&$n(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,lg(e,o)),r&&on(s.latestValues)&&$n(e,s.latestValues))}t.x<Gd&&t.x>Kd&&(t.x=1),t.y<Gd&&t.y>Kd&&(t.y=1)}function Bn(e,t){e.min=e.min+t,e.max=e.max+t}function Qd(e,t,n,r,i=.5){const s=ee(e.min,e.max,i);gl(e,t,n,s,r)}function $n(e,t){Qd(e.x,t.x,t.scaleX,t.scale,t.originX),Qd(e.y,t.y,t.scaleY,t.scale,t.originY)}function ug(e,t){return og(zw(e.getBoundingClientRect(),t))}function Iw(e,t,n){const r=ug(e,n),{scroll:i}=t;return i&&(Bn(r.x,i.offset.x),Bn(r.y,i.offset.y)),r}const cg=({current:e})=>e?e.ownerDocument.defaultView:null,Fw=new WeakMap;class Bw{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=se(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wi(d).point)},s=(d,h)=>{const{drag:f,dragPropagation:v,onDragStart:x}=this.getProps();if(f&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=L1(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),be(P=>{let m=this.getAxisMotionValue(P).get()||0;if(ft.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[P];g&&(m=$e(g)*(parseFloat(m)/100))}}this.originPoint[P]=m}),x&&Y.postRender(()=>x(d,h)),ol(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:x,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:P}=h;if(v&&this.currentDirection===null){this.currentDirection=$w(P),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,P),this.updateAxis("y",h.point,P),this.visualElement.render(),y&&y(d,h)},a=(d,h)=>this.stop(d,h),l=()=>be(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ng(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:cg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Y.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Hi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Mw(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&On(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Aw(i.layoutBox,n):this.constraints=!1,this.elastic=_w(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&be(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Rw(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!On(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Iw(r,i.root,this.visualElement.getTransformPagePoint());let o=Dw(i.layout.layoutBox,s);if(n){const a=n(Vw(o));this.hasMutatedConstraints=!!a,a&&(o=og(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=be(d=>{if(!Hi(d,n,this.currentDirection))return;let h=l&&l[d]||{};o&&(h={min:0,max:0});const f=i?200:1e6,v=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ol(this.visualElement,t),r.start(Qu(t,r,0,n,this.visualElement,!1))}stopAnimation(){be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){be(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){be(n=>{const{drag:r}=this.getProps();if(!Hi(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-ee(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!On(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};be(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Lw({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),be(o=>{if(!Hi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(ee(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Fw.set(this.visualElement,this);const t=this.visualElement.current,n=Ir(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();On(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Y.read(r);const o=ci(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(be(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=pl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Hi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $w(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Uw extends Jt{constructor(t){super(t),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new Bw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}unmount(){this.removeGroupControls(),this.removeListeners()}}const qd=e=>(t,n)=>{e&&Y.postRender(()=>e(t,n))};class Ww extends Jt{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(t){this.session=new ng(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:qd(t),onStart:qd(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Y.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ir(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const as={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Yd(e,t.target.x),r=Yd(e,t.target.y);return`${n}% ${r}%`}},Hw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qt.parse(e);if(i.length>5)return r;const s=qt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=ee(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class bw extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;d1(Kw),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),as.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Y.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ku.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dg(e){const[t,n]=Gp(),r=k.useContext(mu);return u.jsx(bw,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(tm),isPresent:t,safeToRemove:n})}const Kw={borderRadius:{...xr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xr,borderTopRightRadius:xr,borderBottomLeftRadius:xr,borderBottomRightRadius:xr,boxShadow:Hw};function Gw(e,t,n){const r=je(e)?e:li(e);return r.start(Qu("",r,t,n)),r.animation}function Qw(e){return e instanceof SVGElement&&e.tagName!=="svg"}const qw=(e,t)=>e.depth-t.depth;class Yw{constructor(){this.children=[],this.isDirty=!1}add(t){Ou(this.children,t),this.isDirty=!0}remove(t){Iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qw),this.isDirty=!1,this.children.forEach(t)}}function Xw(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Qt(r),e(s-t))};return Y.read(r,!0),()=>Qt(r)}const fg=["TopLeft","TopRight","BottomLeft","BottomRight"],Zw=fg.length,Xd=e=>typeof e=="string"?parseFloat(e):e,Zd=e=>typeof e=="number"||V.test(e);function Jw(e,t,n,r,i,s){i?(e.opacity=ee(0,n.opacity!==void 0?n.opacity:1,eS(r)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,tS(r))):s&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Zw;o++){const a=`border${fg[o]}Radius`;let l=Jd(t,a),c=Jd(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Zd(l)===Zd(c)?(e[a]=Math.max(ee(Xd(l),Xd(c),r),0),(ft.test(c)||ft.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function Jd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eS=hg(0,.5,Dm),tS=hg(.5,.95,Fe);function hg(e,t,n){return r=>r<e?0:r>t?1:n(rr(e,t,r))}function ef(e,t){e.min=t.min,e.max=t.max}function He(e,t){ef(e.x,t.x),ef(e.y,t.y)}function tf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nf(e,t,n,r,i){return e-=t,e=Us(e,1/n,r),i!==void 0&&(e=Us(e,1/i,r)),e}function nS(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=ee(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ee(s.min,s.max,r);e===s&&(a-=t),e.min=nf(e.min,t,n,a,i),e.max=nf(e.max,t,n,a,i)}function rf(e,t,[n,r,i],s,o){nS(e,t[n],t[r],t[i],t.scale,s,o)}const rS=["x","scaleX","originX"],iS=["y","scaleY","originY"];function sf(e,t,n,r){rf(e.x,t,rS,n?n.x:void 0,r?r.x:void 0),rf(e.y,t,iS,n?n.y:void 0,r?r.y:void 0)}function of(e){return e.translate===0&&e.scale===1}function pg(e){return of(e.x)&&of(e.y)}function af(e,t){return e.min===t.min&&e.max===t.max}function sS(e,t){return af(e.x,t.x)&&af(e.y,t.y)}function lf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mg(e,t){return lf(e.x,t.x)&&lf(e.y,t.y)}function uf(e){return $e(e.x)/$e(e.y)}function cf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oS{constructor(){this.members=[]}add(t){Ou(this.members,t),t.scheduleRender()}remove(t){if(Iu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:h,rotateY:f,skewX:v,skewY:x}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),v&&(r+=`skewX(${v}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const an={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tr=typeof window<"u"&&window.MotionDebug!==void 0,ea=["","X","Y","Z"],lS={visibility:"hidden"},df=1e3;let uS=0;function ta(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Cm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gg(r)}function yg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=uS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tr&&(an.totalNodes=an.resolvedTargetDeltas=an.recalculatedProjection=0),this.nodes.forEach(fS),this.nodes.forEach(yS),this.nodes.forEach(vS),this.nodes.forEach(hS),Tr&&window.MotionDebug.record(an)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yw)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Fu),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Qw(o),this.instance=o;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Xw(f,250),as.hasAnimatedSinceResize&&(as.hasAnimatedSinceResize=!1,this.nodes.forEach(hf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||kS,{onLayoutAnimationStart:P,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!mg(this.targetLayout,x)||v,g=!f&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const j={...Ru(y,"layout"),onPlay:P,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else f||hf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ff);return}this.isUpdating||this.nodes.forEach(mS),this.isUpdating=!1,this.nodes.forEach(gS),this.nodes.forEach(cS),this.nodes.forEach(dS),this.clearAllSnapshots();const a=ht.now();me.delta=Tt(0,1e3/60,a-me.timestamp),me.timestamp=a,me.isProcessing=!0,bo.update.process(me),bo.preRender.process(me),bo.render.process(me),me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ku.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pS),this.sharedNodes.forEach(wS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!pg(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&(a||on(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),CS(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return se();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(PS))){const{scroll:d}=this.root;d&&(Bn(l.x,d.offset.x),Bn(l.y,d.offset.y))}return l}removeElementScroll(o){var a;const l=se();if(He(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&He(l,o),Bn(l.x,h.offset.x),Bn(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=se();He(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&$n(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),on(d.latestValues)&&$n(l,d.latestValues)}return on(this.latestValues)&&$n(l,this.latestValues),l}removeTransform(o){const a=se();He(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!on(c.latestValues))continue;ml(c.latestValues)&&c.updateSnapshot();const d=se(),h=c.measurePageBox();He(d,h),sf(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return on(this.latestValues)&&sf(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=me.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=se(),this.relativeTargetOrigin=se(),Br(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=se(),this.targetWithTransforms=se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ew(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):He(this.target,this.layout.layoutBox),lg(this.target,this.targetDelta)):He(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=se(),this.relativeTargetOrigin=se(),Br(this.relativeTargetOrigin,this.target,v.target),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Tr&&an.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ml(this.parent.latestValues)||ag(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===me.timestamp&&(c=!1),c)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;He(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,v=this.treeScale.y;Ow(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=se());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tf(this.prevProjectionDelta.x,this.projectionDelta.x),tf(this.prevProjectionDelta.y,this.projectionDelta.y)),Fr(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==v||!cf(this.projectionDelta.x,this.prevProjectionDelta.x)||!cf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Tr&&an.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fn(),this.projectionDelta=Fn(),this.projectionDeltaWithTransform=Fn()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},h=Fn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=se(),v=l?l.source:void 0,x=this.layout?this.layout.source:void 0,y=v!==x,P=this.getStack(),m=!P||P.members.length<=1,p=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(jS));this.animationProgress=0;let g;this.mixTargetDelta=j=>{const w=j/1e3;pf(h.x,o.x,w),pf(h.y,o.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Br(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SS(this.relativeTarget,this.relativeTargetOrigin,f,w),g&&sS(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=se()),He(g,this.relativeTarget)),y&&(this.animationValues=d,Jw(d,c,this.latestValues,w,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{as.hasAnimatedSinceResize=!0,this.currentAnimation=Gw(0,df,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(df),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&vg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||se();const h=$e(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=$e(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}He(a,l),$n(a,d),Fr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oS),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ta("z",o,c,this.animationValues);for(let d=0;d<ea.length;d++)ta(`rotate${ea[d]}`,o,c,this.animationValues),ta(`skew${ea[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lS;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ss(o==null?void 0:o.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=ss(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!on(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=aS(this.projectionDeltaWithTransform,this.treeScale,f),d&&(c.transform=d(f,c.transform));const{x:v,y:x}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Os){if(f[y]===void 0)continue;const{correct:P,applyTo:m}=Os[y],p=c.transform==="none"?f[y]:P(f[y],h);if(m){const g=m.length;for(let j=0;j<g;j++)c[m[j]]=p}else c[y]=p}return this.options.layoutId&&(c.pointerEvents=h===this?ss(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ff),this.root.sharedNodes.clear()}}}function cS(e){e.updateLayout()}function dS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?be(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],v=$e(f);f.min=r[h].min,f.max=f.min+v}):vg(s,n.layoutBox,r)&&be(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],v=$e(r[h]);f.max=f.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const a=Fn();Fr(a,r,n.layoutBox);const l=Fn();o?Fr(l,e.applyTransform(i,!0),n.measuredBox):Fr(l,r,n.layoutBox);const c=!pg(a);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:v}=h;if(f&&v){const x=se();Br(x,n.layoutBox,f.layoutBox);const y=se();Br(y,r,v.layoutBox),mg(x,y)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fS(e){Tr&&an.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pS(e){e.clearSnapshot()}function ff(e){e.clearMeasurements()}function mS(e){e.isLayoutDirty=!1}function gS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yS(e){e.resolveTargetDelta()}function vS(e){e.calcProjection()}function xS(e){e.resetSkewAndRotation()}function wS(e){e.removeLeadSnapshot()}function pf(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mf(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function SS(e,t,n,r){mf(e.x,t.x,n.x,r),mf(e.y,t.y,n.y,r)}function jS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kS={duration:.45,ease:[.4,0,.1,1]},gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yf=gf("applewebkit/")&&!gf("chrome/")?Math.round:Fe;function vf(e){e.min=yf(e.min),e.max=yf(e.max)}function CS(e){vf(e.x),vf(e.y)}function vg(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nw(uf(t),uf(n),.2)}function PS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TS=yg({attachResizeListener:(e,t)=>ci(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),na={current:void 0},xg=yg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!na.current){const e=new TS({});e.mount(window),e.setOptions({layoutScroll:!0}),na.current=e}return na.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),NS={pan:{Feature:Ww},drag:{Feature:Uw,ProjectionNode:xg,MeasureLayout:dg}};function xf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Y.postRender(()=>s(t,wi(t)))}class ES extends Jt{mount(){const{current:t}=this.node;t&&(this.unmount=N1(t,n=>(xf(this.node,n,"Start"),r=>xf(this.node,r,"End"))))}unmount(){}}class MS extends Jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xi(ci(this.node.current,"focus",()=>this.onFocus()),ci(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function wf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Y.postRender(()=>s(t,wi(t)))}class AS extends Jt{mount(){const{current:t}=this.node;t&&(this.unmount=D1(t,n=>(wf(this.node,n,"Start"),(r,{success:i})=>wf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yl=new WeakMap,ra=new WeakMap,DS=e=>{const t=yl.get(e.target);t&&t(e)},LS=e=>{e.forEach(DS)};function RS({root:e,...t}){const n=e||document;ra.has(n)||ra.set(n,{});const r=ra.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(LS,{root:e,...t})),r[i]}function _S(e,t,n){const r=RS(t);return yl.set(e,n),r.observe(e),()=>{yl.delete(e),r.unobserve(e)}}const VS={some:0,all:1};class zS extends Jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:VS[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=c?d:h;f&&f(l)};return _S(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OS(t,n))&&this.startObserver()}unmount(){}}function OS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IS={inView:{Feature:zS},tap:{Feature:AS},focus:{Feature:MS},hover:{Feature:ES}},FS={layout:{ProjectionNode:xg,MeasureLayout:dg}},vl={current:null},wg={current:!1};function BS(){if(wg.current=!0,!!vu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vl.current=e.matches;e.addListener(t),t()}else vl.current=!1}const $S=[...bm,we,qt],US=e=>$S.find(Hm(e)),Sf=new WeakMap;function WS(e,t,n){for(const r in t){const i=t[r],s=n[r];if(je(i))e.addValue(r,i);else if(je(s))e.addValue(r,li(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,li(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const jf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class HS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=ht.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Y.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=fo(n),this.isVariantNode=Jp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in f){const x=f[v];l[v]!==void 0&&je(x)&&x.set(l[v],!1)}}mount(t){this.current=t,Sf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),wg.current||BS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Sf.delete(this.current),this.projection&&this.projection.unmount(),Qt(this.notifyUpdate),Qt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=kn.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ir){const n=ir[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<jf.length;r++){const i=jf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=WS(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=li(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Um(i)||Rm(i))?i=parseFloat(i):!US(i)&&qt.test(n)&&(i=Fm(t,n)),this.setBaseTarget(t,je(i)?i.get():i)),je(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Pu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!je(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Fu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sg extends HS{constructor(){super(...arguments),this.KeyframeResolver=Km}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function bS(e){return window.getComputedStyle(e)}class KS extends Sg{constructor(){super(...arguments),this.type="html",this.renderInstance=lm}readValueFromInstance(t,n){if(kn.has(n)){const r=Hu(n);return r&&r.default||0}else{const r=bS(t),i=(sm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ug(t,n)}build(t,n,r){Eu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lu(t,n,r)}}class GS extends Sg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(kn.has(n)){const r=Hu(n);return r&&r.default||0}return n=um.has(n)?n:ju(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fm(t,n,r)}build(t,n,r){Mu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){cm(t,n,r,i)}mount(t){this.isSVGTag=Du(t.tagName),super.mount(t)}}const QS=(e,t)=>Cu(e)?new GS(t):new KS(t,{allowProjection:e!==k.Fragment}),qS=w1({...vw,...IS,...NS,...FS},QS),nn=V0(qS);function kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YS(e){if(Array.isArray(e))return e}function XS(e,t,n){return(t=i2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function JS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
279
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cf(Object(n),!0).forEach(function(r){XS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e2(e,t){if(e==null)return{};var n,r,i=t2(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function t2(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function n2(e,t){return YS(e)||ZS(e,t)||s2(e,t)||JS()}function r2(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i2(e){var t=r2(e,"string");return typeof t=="symbol"?t:t+""}function s2(e,t){if(e){if(typeof e=="string")return kf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kf(e,t):void 0}}function o2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){o2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(i,s){return s(i)},r)}}function Nr(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function Ws(e){return{}.toString.call(e).includes("Object")}function l2(e){return!Object.keys(e).length}function di(e){return typeof e=="function"}function u2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c2(e,t){return Ws(t)||Ht("changeType"),Object.keys(t).some(function(n){return!u2(e,n)})&&Ht("changeField"),t}function d2(e){di(e)||Ht("selectorType")}function f2(e){di(e)||Ws(e)||Ht("handlerType"),Ws(e)&&Object.values(e).some(function(t){return!di(t)})&&Ht("handlersType")}function h2(e){e||Ht("initialIsRequired"),Ws(e)||Ht("initialType"),l2(e)&&Ht("initialContent")}function p2(e,t){throw new Error(e[t]||e.default)}var m2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ht=Nr(p2)(m2),bi={changes:c2,selector:d2,handler:f2,initial:h2};function g2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};bi.initial(e),bi.handler(t);var n={current:e},r=Nr(x2)(n,t),i=Nr(v2)(n),s=Nr(bi.changes)(e),o=Nr(y2)(n);function a(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return bi.selector(c),c(n.current)}function l(c){a2(r,i,s,o)(c)}return[a,l]}function y2(e,t){return di(t)?t(e.current):t}function v2(e,t){return e.current=Nf(Nf({},e.current),t),t}function x2(e,t,n){return di(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var w2={create:g2},S2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function j2(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function k2(e){return{}.toString.call(e).includes("Object")}function C2(e){return e||Ef("configIsRequired"),k2(e)||Ef("configType"),e.urls?(P2(),{paths:{vs:e.urls.monacoBase}}):e}function P2(){console.warn(jg.deprecation)}function T2(e,t){throw new Error(e[t]||e.default)}var jg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
280
|
-
You are using deprecated way of configuration.
|
|
281
|
-
|
|
282
|
-
Instead of using
|
|
283
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
284
|
-
use
|
|
285
|
-
monaco.config({ paths: { vs: '...' } })
|
|
286
|
-
|
|
287
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
288
|
-
`},Ef=j2(T2)(jg),N2={config:C2},E2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(s,o){return o(s)},i)}};function kg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],kg(e[n],t[n]))}),Pf(Pf({},e),t)}var M2={type:"cancelation",msg:"operation is manually canceled"};function ia(e){var t=!1,n=new Promise(function(r,i){e.then(function(s){return t?i(M2):r(s)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var A2=["monaco"],D2=w2.create({config:S2,isInitialized:!1,resolve:null,reject:null,monaco:null}),Cg=n2(D2,2),Si=Cg[0],mo=Cg[1];function L2(e){var t=N2.config(e),n=t.monaco,r=e2(t,A2);mo(function(i){return{config:kg(i.config,r),monaco:n}})}function R2(){var e=Si(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(mo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ia(sa);if(window.monaco&&window.monaco.editor)return Pg(window.monaco),e.resolve(window.monaco),ia(sa);E2(_2,z2)(O2)}return ia(sa)}function _2(e){return document.body.appendChild(e)}function V2(e){var t=document.createElement("script");return e&&(t.src=e),t}function z2(e){var t=Si(function(r){var i=r.config,s=r.reject;return{config:i,reject:s}}),n=V2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function O2(){var e=Si(function(n){var r=n.config,i=n.resolve,s=n.reject;return{config:r,resolve:i,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Pg(r),e.resolve(r)},function(n){e.reject(n)})}function Pg(e){Si().monaco||mo({monaco:e})}function I2(){return Si(function(e){var t=e.monaco;return t})}var sa=new Promise(function(e,t){return mo({resolve:e,reject:t})}),Tg={config:L2,init:R2,__getMonacoInstance:I2},F2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},oa=F2,B2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},$2=B2;function U2({children:e}){return ze.createElement("div",{style:$2.container},e)}var W2=U2,H2=W2;function b2({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:s,wrapperProps:o}){return ze.createElement("section",{style:{...oa.wrapper,width:e,height:t},...o},!n&&ze.createElement(H2,null,r),ze.createElement("div",{ref:i,style:{...oa.fullWidth,...!n&&oa.hide},className:s}))}var K2=b2,Ng=k.memo(K2);function G2(e){k.useEffect(e,[])}var Eg=G2;function Q2(e,t,n=!0){let r=k.useRef(!0);k.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Ve=Q2;function $r(){}function Un(e,t,n,r){return q2(e,r)||Y2(e,t,n,r)}function q2(e,t){return e.editor.getModel(Mg(e,t))}function Y2(e,t,n,r){return e.editor.createModel(t,n,r?Mg(e,r):void 0)}function Mg(e,t){return e.Uri.parse(t)}function X2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:d="Loading...",options:h={},height:f="100%",width:v="100%",className:x,wrapperProps:y={},beforeMount:P=$r,onMount:m=$r}){let[p,g]=k.useState(!1),[j,w]=k.useState(!0),S=k.useRef(null),T=k.useRef(null),N=k.useRef(null),L=k.useRef(m),M=k.useRef(P),$=k.useRef(!1);Eg(()=>{let O=Tg.init();return O.then(W=>(T.current=W)&&w(!1)).catch(W=>(W==null?void 0:W.type)!=="cancelation"&&console.error("Monaco initialization: error:",W)),()=>S.current?Ee():O.cancel()}),Ve(()=>{if(S.current&&T.current){let O=S.current.getOriginalEditor(),W=Un(T.current,e||"",r||n||"text",s||"");W!==O.getModel()&&O.setModel(W)}},[s],p),Ve(()=>{if(S.current&&T.current){let O=S.current.getModifiedEditor(),W=Un(T.current,t||"",i||n||"text",o||"");W!==O.getModel()&&O.setModel(W)}},[o],p),Ve(()=>{let O=S.current.getModifiedEditor();O.getOption(T.current.editor.EditorOption.readOnly)?O.setValue(t||""):t!==O.getValue()&&(O.executeEdits("",[{range:O.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),O.pushUndoStop())},[t],p),Ve(()=>{var O,W;(W=(O=S.current)==null?void 0:O.getModel())==null||W.original.setValue(e||"")},[e],p),Ve(()=>{let{original:O,modified:W}=S.current.getModel();T.current.editor.setModelLanguage(O,r||n||"text"),T.current.editor.setModelLanguage(W,i||n||"text")},[n,r,i],p),Ve(()=>{var O;(O=T.current)==null||O.editor.setTheme(c)},[c],p),Ve(()=>{var O;(O=S.current)==null||O.updateOptions(h)},[h],p);let F=k.useCallback(()=>{var H;if(!T.current)return;M.current(T.current);let O=Un(T.current,e||"",r||n||"text",s||""),W=Un(T.current,t||"",i||n||"text",o||"");(H=S.current)==null||H.setModel({original:O,modified:W})},[n,t,i,e,r,s,o]),de=k.useCallback(()=>{var O;!$.current&&N.current&&(S.current=T.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...h}),F(),(O=T.current)==null||O.editor.setTheme(c),g(!0),$.current=!0)},[h,c,F]);k.useEffect(()=>{p&&L.current(S.current,T.current)},[p]),k.useEffect(()=>{!j&&!p&&de()},[j,p,de]);function Ee(){var W,H,C,A;let O=(W=S.current)==null?void 0:W.getModel();a||((H=O==null?void 0:O.original)==null||H.dispose()),l||((C=O==null?void 0:O.modified)==null||C.dispose()),(A=S.current)==null||A.dispose()}return ze.createElement(Ng,{width:v,height:f,isEditorReady:p,loading:d,_ref:N,className:x,wrapperProps:y})}var Z2=X2,J2=k.memo(Z2);function ej(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var tj=ej,Ki=new Map;function nj({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:s,theme:o="light",line:a,loading:l="Loading...",options:c={},overrideServices:d={},saveViewState:h=!0,keepCurrentModel:f=!1,width:v="100%",height:x="100%",className:y,wrapperProps:P={},beforeMount:m=$r,onMount:p=$r,onChange:g,onValidate:j=$r}){let[w,S]=k.useState(!1),[T,N]=k.useState(!0),L=k.useRef(null),M=k.useRef(null),$=k.useRef(null),F=k.useRef(p),de=k.useRef(m),Ee=k.useRef(),O=k.useRef(r),W=tj(s),H=k.useRef(!1),C=k.useRef(!1);Eg(()=>{let R=Tg.init();return R.then(z=>(L.current=z)&&N(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>M.current?_():R.cancel()}),Ve(()=>{var z,ae,X,ot;let R=Un(L.current,e||r||"",t||i||"",s||n||"");R!==((z=M.current)==null?void 0:z.getModel())&&(h&&Ki.set(W,(ae=M.current)==null?void 0:ae.saveViewState()),(X=M.current)==null||X.setModel(R),h&&((ot=M.current)==null||ot.restoreViewState(Ki.get(s))))},[s],w),Ve(()=>{var R;(R=M.current)==null||R.updateOptions(c)},[c],w),Ve(()=>{!M.current||r===void 0||(M.current.getOption(L.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(C.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),C.current=!1))},[r],w),Ve(()=>{var z,ae;let R=(z=M.current)==null?void 0:z.getModel();R&&i&&((ae=L.current)==null||ae.editor.setModelLanguage(R,i))},[i],w),Ve(()=>{var R;a!==void 0&&((R=M.current)==null||R.revealLine(a))},[a],w),Ve(()=>{var R;(R=L.current)==null||R.editor.setTheme(o)},[o],w);let A=k.useCallback(()=>{var R;if(!(!$.current||!L.current)&&!H.current){de.current(L.current);let z=s||n,ae=Un(L.current,r||e||"",t||i||"",z||"");M.current=(R=L.current)==null?void 0:R.editor.create($.current,{model:ae,automaticLayout:!0,...c},d),h&&M.current.restoreViewState(Ki.get(z)),L.current.editor.setTheme(o),a!==void 0&&M.current.revealLine(a),S(!0),H.current=!0}},[e,t,n,r,i,s,c,d,h,o,a]);k.useEffect(()=>{w&&F.current(M.current,L.current)},[w]),k.useEffect(()=>{!T&&!w&&A()},[T,w,A]),O.current=r,k.useEffect(()=>{var R,z;w&&g&&((R=Ee.current)==null||R.dispose(),Ee.current=(z=M.current)==null?void 0:z.onDidChangeModelContent(ae=>{C.current||g(M.current.getValue(),ae)}))},[w,g]),k.useEffect(()=>{if(w){let R=L.current.editor.onDidChangeMarkers(z=>{var X;let ae=(X=M.current.getModel())==null?void 0:X.uri;if(ae&&z.find(ot=>ot.path===ae.path)){let ot=L.current.editor.getModelMarkers({resource:ae});j==null||j(ot)}});return()=>{R==null||R.dispose()}}return()=>{}},[w,j]);function _(){var R,z;(R=Ee.current)==null||R.dispose(),f?h&&Ki.set(s,M.current.saveViewState()):(z=M.current.getModel())==null||z.dispose(),M.current.dispose()}return ze.createElement(Ng,{width:v,height:x,isEditorReady:w,loading:l,_ref:$,className:y,wrapperProps:P})}var rj=nj,ij=k.memo(rj);const sj=e=>{var r;const t=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",rb:"ruby",rs:"rust",go:"go",json:"json",yaml:"yaml",yml:"yaml",md:"markdown",css:"css",scss:"scss",html:"html",xml:"xml",sql:"sql",sh:"shell",bash:"shell",zsh:"shell"}[t||""]||"plaintext"},oj=new Set(["md","mdx","markdown"]);function aj(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return oj.has(t)}function lj(e){let t=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/^### (.+)$/gm,"<h3>$1</h3>").replace(/^## (.+)$/gm,"<h2>$1</h2>").replace(/^# (.+)$/gm,"<h1>$1</h1>").replace(/\*\*\*(.+?)\*\*\*/g,"<strong><em>$1</em></strong>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/`([^`]+)`/g,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener">$1</a>').replace(/^---+$/gm,"<hr />").replace(/^> (.+)$/gm,"<blockquote>$1</blockquote>").replace(/^[*-] (.+)$/gm,"<li>$1</li>").replace(/\n\n/g,"</p><p>");return t=t.replace(/(<li>.*<\/li>(\n)?)+/g,n=>`<ul>${n}</ul>`),t=t.replace(/```(\w*)\n([\s\S]*?)```/g,(n,r,i)=>`<pre><code>${i.trim()}</code></pre>`),`<p>${t}</p>`}const uj=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:i="dark",violations:s=[]})=>{const o=t!==n,a=sj(e),l=i==="dark"?"vs-dark":"light",c=aj(e)&&!o,d=k.useMemo(()=>c?lj(n):"",[c,n]),h=f=>{if(!s.length||!f)return;const v=window.monaco;if(!v)return;const x=s.filter(y=>y.line).map(y=>({range:new v.Range(y.line,1,y.endLine||y.line,1),options:{isWholeLine:!0,className:"violation-line-highlight",glyphMarginClassName:"violation-glyph",glyphMarginHoverMessage:{value:`**[${y.id}] ${y.title}**
|
|
289
|
-
|
|
290
|
-
${y.details}`},overviewRuler:{color:"#f87171",position:v.editor.OverviewRulerLane.Full}}}));f.deltaDecorations([],x)};return u.jsx("div",{className:"diff-viewer-overlay",children:u.jsxs("div",{className:"diff-viewer-window",children:[u.jsxs("div",{className:"diff-viewer-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(vt,{size:18}),u.jsx("span",{children:e}),o&&u.jsx("span",{className:"diff-badge",children:"Modified"}),s.length>0&&u.jsxs("span",{className:"diff-badge",style:{background:"rgba(248, 113, 113, 0.12)",color:"#f87171",borderColor:"rgba(248, 113, 113, 0.3)"},children:[s.length," violation",s.length!==1?"s":""]})]}),u.jsx("button",{onClick:r,className:"close-btn",children:u.jsx(pu,{size:20})})]}),c?u.jsx("div",{className:"markdown-viewer",dangerouslySetInnerHTML:{__html:d}}):u.jsx("div",{className:"diff-editor-container",children:o?u.jsx(J2,{height:"100%",language:a,original:t,modified:n,theme:l,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):u.jsx(ij,{height:"100%",language:a,value:n,theme:l,onMount:h,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",glyphMargin:s.length>0}})})]})})},cj=(e,t)=>{const n=[];e.forEach(i=>{const s=i.split("/");let o=n,a="";s.forEach((l,c)=>{a=a?`${a}/${l}`:l;const d=c<s.length-1;let h=o.find(f=>f.name===l);h||(h={name:l,path:a,isDirectory:d,children:[],isViolated:t.some(f=>f===a||f.startsWith(`${a}/`))},o.push(h)),o=h.children})});const r=i=>{i.sort((s,o)=>s.isDirectory&&!o.isDirectory?-1:!s.isDirectory&&o.isDirectory?1:s.name.localeCompare(o.name)),i.forEach(s=>r(s.children))};return r(n),n},Ag=({node:e,level:t,onSelect:n,activeFile:r})=>{const[i,s]=k.useState(t===0),o=r===e.path,a=l=>{l.stopPropagation(),e.isDirectory?s(!i):n(e.path)};return u.jsxs("div",{className:"tree-node-container",children:[u.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:a,children:[e.isDirectory?u.jsxs(u.Fragment,{children:[i?u.jsx(u0,{size:14,className:"chevron"}):u.jsx(oo,{size:14,className:"chevron"}),i?u.jsx(m0,{size:14,className:"folder-icon"}):u.jsx(ao,{size:14,className:"folder-icon"})]}):u.jsx(vt,{size:14,className:"file-icon"}),u.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&u.jsx(c0,{size:12,className:"violation-icon"})]}),e.isDirectory&&i&&u.jsx("div",{className:"tree-children",children:e.children.map(l=>u.jsx(Ag,{node:l,level:t+1,onSelect:n,activeFile:r},l.path))})]})},Mf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const i=k.useMemo(()=>cj(e,r),[e,r]);return u.jsxs("div",{className:"file-tree",children:[u.jsxs("div",{className:"tree-header",children:[u.jsx(ao,{size:14}),u.jsx("span",{children:"Project Explorer"})]}),u.jsx("div",{className:"tree-list",children:i.length===0?u.jsx("div",{className:"empty-tree-state",children:"No files found"}):i.map(s=>u.jsx(Ag,{node:s,level:0,onSelect:t,activeFile:n},s.path))})]})},aa=e=>typeof e=="string"?e:JSON.stringify(e,null,2),dj=()=>{const[e,t]=k.useState({memories:{}}),[n,r]=k.useState(null),[i,s]=k.useState(""),[o,a]=k.useState(!0),[l,c]=k.useState(!1),d=async()=>{a(!0);try{const p=await(await fetch("/api/memory")).json();p.memories?t(p):t({memories:p})}catch(m){console.error("Failed to fetch memory:",m)}finally{a(!1)}};k.useEffect(()=>{d()},[]);const h=Object.entries(e.memories||{}),f=h.filter(([m])=>m.toLowerCase().includes(i.toLowerCase())),v=n?e.memories[n]:null,x=m=>{try{return new Date(m).toLocaleString()}catch{return m}},y=()=>{v&&(navigator.clipboard.writeText(aa(v.value)),c(!0),setTimeout(()=>c(!1),2e3))},P=m=>{const p=aa(m);if(p.includes("1)")&&p.includes("2)")){const g=p.split(/(\d+\))/);return u.jsx("div",{className:"formatted-content",children:g.map((j,w)=>{if(/^\d+\)$/.test(j))return u.jsx("div",{className:"section-marker",children:j},w);if(j.trim().startsWith("Priority:")){const[S,T]=j.split("Priority:");return u.jsxs(ze.Fragment,{children:[S.trim()&&u.jsx("div",{className:"section-body",children:S.trim()}),u.jsx("div",{className:"priority-box",children:T.trim()})]},w)}return j.trim()?u.jsx("div",{className:"section-body",children:j.trim()},w):null})})}return u.jsx("pre",{children:p})};return u.jsxs("div",{className:"memory-bank",children:[u.jsxs("div",{className:"memory-header",children:[u.jsxs("div",{className:"memory-title",children:[u.jsx(id,{size:24}),u.jsx("h2",{children:"Memory Bank"}),u.jsxs("span",{className:"memory-count",children:[h.length," entries"]})]}),u.jsxs("div",{className:"memory-actions",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(hu,{size:16}),u.jsx("input",{type:"text",placeholder:"Search memories...",value:i,onChange:m=>s(m.target.value)})]}),u.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:u.jsx(_s,{size:16,className:o?"spinning":""})})]})]}),u.jsxs("div",{className:"memory-content",children:[u.jsx("div",{className:"memory-list",children:o?u.jsx("div",{className:"memory-loading",children:"Loading memories..."}):f.length===0?u.jsxs("div",{className:"memory-empty",children:[u.jsx(Wp,{size:48}),u.jsx("h3",{children:"No Memories Stored"}),u.jsxs("p",{children:["Use ",u.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):f.map(([m,p])=>u.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[u.jsxs("div",{className:"memory-item-header",children:[u.jsx(od,{size:14}),u.jsx("span",{className:"memory-key",children:m}),u.jsx(oo,{size:14,className:"chevron"})]}),u.jsxs("div",{className:"memory-item-meta",children:[u.jsx(Rs,{size:12}),u.jsx("span",{children:x(p.timestamp)})]}),u.jsx("div",{className:"memory-item-preview",children:(()=>{const g=aa(p.value);return g.slice(0,100)+(g.length>100?"...":"")})()})]},m))}),u.jsx("div",{className:"memory-detail",children:v?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"detail-header",children:[u.jsx(od,{size:18}),u.jsx("h3",{children:n})]}),u.jsxs("div",{className:"detail-meta",children:[u.jsxs("div",{className:"meta-left",children:[u.jsx(Rs,{size:14}),u.jsxs("span",{children:["Stored: ",x(v.timestamp)]})]}),u.jsxs("button",{className:`copy-btn ${l?"copied":""}`,onClick:y,children:[l?u.jsx(l0,{size:14}):u.jsx(d0,{size:14}),u.jsx("span",{children:l?"Copied":"Copy"})]})]}),u.jsx("div",{className:"detail-content",children:P(v.value)})]}):u.jsxs("div",{className:"detail-placeholder",children:[u.jsx(id,{size:48}),u.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},fj=()=>{var w;const[e,t]=k.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=k.useState(null),[i,s]=k.useState(""),[o,a]=k.useState("all"),[l,c]=k.useState(!0),[d,h]=k.useState(!1),[f,v]=k.useState([]),[x,y]=k.useState(!1),P=async()=>{c(!0);try{const T=await(await fetch("/api/index-stats")).json();t(T)}catch(S){console.error("Failed to fetch pattern index:",S)}finally{c(!1)}};k.useEffect(()=>{P()},[]),k.useEffect(()=>{if(!d||i.length<3){v([]);return}const S=setTimeout(async()=>{y(!0);try{const N=await(await fetch(`/api/index-search?q=${encodeURIComponent(i)}`)).json();v(N)}catch(T){console.error("Semantic search failed:",T)}finally{y(!1)}},500);return()=>clearTimeout(S)},[i,d]);const m=d&&i.length>=3?f:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},g=d&&i.length>=3?m:m.filter(S=>{const T=S.name.toLowerCase().includes(i.toLowerCase())||S.file.toLowerCase().includes(i.toLowerCase()),N=o==="all"||S.type===o;return T&&N}),j=Object.keys(p.byType||{});return u.jsxs("div",{className:"pattern-index",children:[u.jsxs("div",{className:"pattern-header",children:[u.jsxs("div",{className:"pattern-title",children:[u.jsx(qn,{size:24}),u.jsx("h2",{children:"Pattern Index"}),u.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),u.jsxs("div",{className:"pattern-actions",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(hu,{size:16}),u.jsx("input",{type:"text",placeholder:"Search patterns...",value:i,onChange:S=>s(S.target.value)})]}),u.jsxs("div",{className:"filter-box",children:[u.jsx(Hp,{size:16}),u.jsxs("select",{value:o,onChange:S=>a(S.target.value),children:[u.jsx("option",{value:"all",children:"All Types"}),j.map(S=>u.jsxs("option",{value:S,children:[S," (",p.byType[S],")"]},S))]})]}),u.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>h(!d),title:"Semantic Search (v2)",children:[u.jsx(sd,{size:16}),u.jsx("span",{children:"AI Search"})]}),u.jsx("button",{className:"refresh-btn",onClick:P,disabled:l,children:u.jsx(_s,{size:16,className:l?"spinning":""})})]})]}),u.jsxs("div",{className:"pattern-stats",children:[u.jsxs("div",{className:"stat-card",children:[u.jsx(a0,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsx("span",{className:"stat-value",children:p.totalPatterns}),u.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),u.jsxs("div",{className:"stat-card",children:[u.jsx(vt,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsx("span",{className:"stat-value",children:p.totalFiles}),u.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),u.jsxs("div",{className:"stat-card",children:[u.jsx(sd,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsx("span",{className:"stat-value",children:j.length}),u.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&u.jsxs("div",{className:"stat-card",children:[u.jsx(Rs,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),u.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),u.jsxs("div",{className:"pattern-content",children:[u.jsxs("div",{className:"pattern-list",children:[x&&u.jsxs("div",{className:"searching-indicator",children:[u.jsx(_s,{size:14,className:"spinning"}),u.jsx("span",{children:"AI is analyzing your query..."})]}),l?u.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):g.length===0?u.jsxs("div",{className:"pattern-empty",children:[u.jsx(qn,{size:48}),u.jsx("h3",{children:"No Patterns Indexed"}),u.jsxs("p",{children:["Run ",u.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):g.map(S=>u.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===S.id?"active":""}`,onClick:()=>r(S),children:[S.similarity&&u.jsxs("div",{className:"similarity-badge",children:[(S.similarity*100).toFixed(0),"% Match"]}),u.jsxs("div",{className:"pattern-item-header",children:[u.jsx("span",{className:"pattern-type-badge",children:S.type}),u.jsx("span",{className:"pattern-name",children:S.name}),u.jsx(oo,{size:14,className:"chevron"})]}),u.jsxs("div",{className:"pattern-item-file",children:[u.jsx(vt,{size:12}),u.jsxs("span",{children:[S.file,":",S.line]})]}),S.exported&&u.jsx("span",{className:"exported-badge",children:"exported"})]},S.id))]}),u.jsx("div",{className:"pattern-detail",children:n?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"detail-header",children:[u.jsx("span",{className:"pattern-type-badge large",children:n.type}),u.jsx("h3",{children:n.name})]}),u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Location"}),u.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Signature"}),u.jsx("pre",{children:n.signature})]}),n.description&&u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Description"}),u.jsx("p",{children:n.description})]}),((w=n.keywords)==null?void 0:w.length)>0&&u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Keywords"}),u.jsx("div",{className:"keywords-list",children:n.keywords.map((S,T)=>u.jsx("span",{className:"keyword-tag",children:S},T))})]}),u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Usage"}),u.jsxs("p",{children:["Imported in ",u.jsx("strong",{children:n.usageCount})," files"]})]})]}):u.jsxs("div",{className:"detail-placeholder",children:[u.jsx(qn,{size:48}),u.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},hj=()=>{var v,x,y,P,m;const[e,t]=k.useState(null),[n,r]=k.useState(""),[i,s]=k.useState(null),[o,a]=k.useState(!0),[l,c]=k.useState("visual"),d=async()=>{a(!0);try{const g=await(await fetch("/api/config")).text();r(g);const j=h(g);t(j)}catch(p){console.error("Failed to fetch config:",p)}try{const p=await fetch("/api/report-stats");if(p.ok){const g=await p.json();s(g)}}catch{}a(!1)},h=p=>{var g;try{const j=p.split(`
|
|
291
|
-
`),w={};let S=null,T=null;for(const N of j){if(N.startsWith("#")||!N.trim())continue;const L=N.search(/\S/),M=N.trim();if(L===0&&M.includes(":")){const[$]=M.split(":");S=$.trim(),T=null;const F=(g=M.split(":")[1])==null?void 0:g.trim();F&&F!=="{}"&&F!=="[]"?w[S]=isNaN(Number(F))?F:Number(F):w[S]={}}else if(L===2&&S&&M.includes(":")){const[$]=M.split(":");T=$.trim();const F=M.split(":").slice(1).join(":").trim();if(F&&F!=="{}"&&F!=="[]"){typeof w[S]!="object"&&(w[S]={});const de=F==="true"?!0:F==="false"?!1:isNaN(Number(F))?F:Number(F);w[S][T]=de}else typeof w[S]!="object"&&(w[S]={}),w[S][T]={}}else if(L===4&&S&&T&&M.includes(":")){const[$]=M.split(":"),F=M.split(":").slice(1).join(":").trim();typeof w[S][T]!="object"&&(w[S][T]={});const de=F==="true"?!0:F==="false"?!1:isNaN(Number(F))?F:Number(F);w[S][T][$.trim()]=de}}return w}catch{return{}}};k.useEffect(()=>{d()},[]);const f=(e==null?void 0:e.gates)||{};return u.jsxs("div",{className:"quality-gates",children:[u.jsxs("div",{className:"gates-header",children:[u.jsxs("div",{className:"gates-title",children:[u.jsx(Ho,{size:24}),u.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&u.jsx("span",{className:"preset-badge",children:e.preset})]}),u.jsxs("div",{className:"gates-actions",children:[u.jsxs("div",{className:"view-toggle",children:[u.jsxs("button",{className:l==="visual"?"active":"",onClick:()=>c("visual"),children:[u.jsx(qn,{size:16})," Visual"]}),u.jsxs("button",{className:l==="raw"?"active":"",onClick:()=>c("raw"),children:[u.jsx(vt,{size:16})," YAML"]})]}),u.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:u.jsx(_s,{size:16,className:o?"spinning":""})})]})]}),o?u.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):l==="raw"?u.jsx("div",{className:"gates-raw",children:u.jsx("pre",{children:n})}):u.jsxs("div",{className:"gates-content",children:[u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(vt,{size:18}),u.jsx("h3",{children:"Code Quality"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(G,{label:"Max File Lines",value:f.max_file_lines,icon:u.jsx(vt,{size:16})}),u.jsx(G,{label:"Forbid TODOs",value:f.forbid_todos,icon:f.forbid_todos?u.jsx(si,{size:16}):u.jsx(pn,{size:16})}),u.jsx(G,{label:"Forbid FIXMEs",value:f.forbid_fixme,icon:f.forbid_fixme?u.jsx(si,{size:16}):u.jsx(pn,{size:16})})]})]}),f.ast&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(g0,{size:18}),u.jsx("h3",{children:"AST Limits"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(G,{label:"Complexity",value:f.ast.complexity}),u.jsx(G,{label:"Max Methods",value:f.ast.max_methods}),u.jsx(G,{label:"Max Params",value:f.ast.max_params}),u.jsx(G,{label:"Max Nesting",value:f.ast.max_nesting}),u.jsx(G,{label:"Max Function Lines",value:f.ast.max_function_lines}),u.jsx(G,{label:"Max Inheritance",value:f.ast.max_inheritance_depth})]})]}),f.safety&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(bp,{size:18}),u.jsx("h3",{children:"File Guard"})]}),u.jsx("div",{className:"gate-grid",children:u.jsx(G,{label:"Max Files/Cycle",value:f.safety.max_files_changed_per_cycle})}),f.safety.protected_paths&&f.safety.protected_paths.length>0&&u.jsxs("div",{className:"protected-paths",children:[u.jsx("h4",{children:"Protected Paths"}),u.jsx("div",{className:"path-list",children:f.safety.protected_paths.map((p,g)=>u.jsx("span",{className:"path-tag",children:p},g))})]})]}),f.required_files&&f.required_files.length>0&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Gt,{size:18}),u.jsx("h3",{children:"Required Files"})]}),u.jsx("div",{className:"file-list",children:f.required_files.map((p,g)=>u.jsxs("div",{className:"file-item",children:[u.jsx(vt,{size:14}),u.jsx("span",{children:p})]},g))})]}),f.context&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Bi,{size:18}),u.jsx("h3",{children:"Context Mining"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(G,{label:"Enabled",value:f.context.enabled}),u.jsx(G,{label:"Sensitivity",value:f.context.sensitivity}),u.jsx(G,{label:"Mining Depth",value:f.context.mining_depth})]})]}),f.retry_loop_breaker&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Kp,{size:18}),u.jsx("h3",{children:"Retry Loop Breaker"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(G,{label:"Enabled",value:f.retry_loop_breaker.enabled}),u.jsx(G,{label:"Max Retries",value:f.retry_loop_breaker.max_retries})]})]}),u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Bi,{size:18}),u.jsx("h3",{children:"AI-Native Gates"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(G,{label:"Duplication Drift",value:((v=f.duplication_drift)==null?void 0:v.enabled)??!0,icon:u.jsx(pn,{size:16})}),u.jsx(G,{label:"Hallucinated Imports",value:((x=f.hallucinated_imports)==null?void 0:x.enabled)??!0,icon:u.jsx(Gt,{size:16})}),u.jsx(G,{label:"Error Handling",value:((y=f.inconsistent_error_handling)==null?void 0:y.enabled)??!0,icon:u.jsx(Ho,{size:16})}),u.jsx(G,{label:"Context Artifacts",value:((P=f.context_window_artifacts)==null?void 0:P.enabled)??!0,icon:u.jsx(qn,{size:16})}),u.jsx(G,{label:"Async Safety",value:((m=f.promise_safety)==null?void 0:m.enabled)??!0,icon:u.jsx(Bi,{size:16})})]})]}),i&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Ho,{size:18}),u.jsx("h3",{children:"Latest Scores"})]}),u.jsxs("div",{className:"gate-grid",children:[i.score!==void 0&&u.jsx(G,{label:"Overall Score",value:`${i.score}/100`}),i.ai_health_score!==void 0&&u.jsx(G,{label:"AI Health",value:`${i.ai_health_score}/100`,icon:u.jsx(Bi,{size:16})}),i.structural_score!==void 0&&u.jsx(G,{label:"Structural",value:`${i.structural_score}/100`,icon:u.jsx(qn,{size:16})})]}),i.severity_breakdown&&u.jsxs("div",{className:"severity-breakdown",children:[u.jsx("h4",{children:"Severity Breakdown"}),u.jsx("div",{className:"gate-grid",children:Object.entries(i.severity_breakdown).filter(([,p])=>p>0).map(([p,g])=>u.jsx(G,{label:p.charAt(0).toUpperCase()+p.slice(1),value:g},p))})]}),i.provenance_breakdown&&u.jsxs("div",{className:"provenance-breakdown",children:[u.jsx("h4",{children:"Provenance Breakdown"}),u.jsx("div",{className:"gate-grid",children:Object.entries(i.provenance_breakdown).filter(([,p])=>p>0).map(([p,g])=>u.jsx(G,{label:p,value:g},p))})]})]})]})]})},G=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return u.jsxs("div",{className:"gate-card",children:[n&&u.jsx("div",{className:"gate-icon",children:n}),u.jsxs("div",{className:"gate-info",children:[u.jsx("span",{className:"gate-value",children:r}),u.jsx("span",{className:"gate-label",children:e})]})]})},pj=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[i,s]=k.useState(""),[o,a]=k.useState("all"),[l,c]=k.useState("all"),d=ze.useMemo(()=>{const y={};return e.forEach(P=>{const m=P.requestId||P.id;y[m]?y[m]={...y[m],...P}:y[m]={...P}}),Object.values(y).sort((P,m)=>new Date(m.timestamp).getTime()-new Date(P.timestamp).getTime())},[e]),h=ze.useMemo(()=>{const y=new Set;return d.forEach(P=>P.tool&&y.add(P.tool)),Array.from(y)},[d]),f=ze.useMemo(()=>d.filter(y=>{var g;const P=!i||((g=y.tool)==null?void 0:g.toLowerCase().includes(i.toLowerCase()))||JSON.stringify(y.arguments||{}).toLowerCase().includes(i.toLowerCase()),m=o==="all"||y.status===o,p=l==="all"||y.tool===l;return P&&m&&p}),[d,i,o,l]),v=ze.useMemo(()=>({total:d.length,success:d.filter(y=>y.status==="success").length,error:d.filter(y=>y.status==="error").length,pending:d.filter(y=>!y.status||y.status==="pending").length}),[d]),x=()=>{const y=JSON.stringify(f,null,2),P=new Blob([y],{type:"application/json"}),m=URL.createObjectURL(P),p=document.createElement("a");p.href=m,p.download=`rigour-audit-${new Date().toISOString().split("T")[0]}.json`,p.click()};return u.jsxs("div",{className:"audit-log",children:[u.jsxs("div",{className:"audit-header",children:[u.jsxs("div",{className:"audit-title",children:[u.jsx(Ls,{size:24}),u.jsx("h2",{children:"Audit Trail"}),u.jsxs("span",{className:"log-count",children:[f.length," events"]})]}),u.jsxs("div",{className:"audit-actions",children:[u.jsxs("button",{className:"btn-secondary",onClick:t,children:[u.jsx(w0,{size:16})," Clear"]}),u.jsxs("button",{className:"btn-primary",onClick:x,children:[u.jsx(h0,{size:16})," Export"]})]})]}),u.jsxs("div",{className:"audit-stats",children:[u.jsxs("div",{className:"stat-pill",children:[u.jsx(Ls,{size:14}),u.jsxs("span",{children:[v.total," Total"]})]}),u.jsxs("div",{className:"stat-pill success",children:[u.jsx(pn,{size:14}),u.jsxs("span",{children:[v.success," Success"]})]}),u.jsxs("div",{className:"stat-pill error",children:[u.jsx(si,{size:14}),u.jsxs("span",{children:[v.error," Failed"]})]}),u.jsxs("div",{className:"stat-pill pending",children:[u.jsx(Gt,{size:14}),u.jsxs("span",{children:[v.pending," Pending"]})]})]}),u.jsxs("div",{className:"audit-filters",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(hu,{size:16}),u.jsx("input",{type:"text",placeholder:"Search logs...",value:i,onChange:y=>s(y.target.value)})]}),u.jsxs("div",{className:"filter-box",children:[u.jsx(Hp,{size:16}),u.jsxs("select",{value:o,onChange:y=>a(y.target.value),children:[u.jsx("option",{value:"all",children:"All Status"}),u.jsx("option",{value:"success",children:"Success"}),u.jsx("option",{value:"error",children:"Error"}),u.jsx("option",{value:"pending",children:"Pending"})]})]}),u.jsxs("div",{className:"filter-box",children:[u.jsx(Vs,{size:16}),u.jsxs("select",{value:l,onChange:y=>c(y.target.value),children:[u.jsx("option",{value:"all",children:"All Tools"}),h.map(y=>u.jsx("option",{value:y,children:y},y))]})]})]}),u.jsxs("div",{className:"audit-content",children:[u.jsx("div",{className:"log-list",children:f.length===0?u.jsxs("div",{className:"empty-state",children:[u.jsx(Vs,{size:48}),u.jsx("h3",{children:"No Interactions Detected"}),u.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):f.map(y=>u.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===y.id?"active":""} ${y._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===y.id?null:y),children:[u.jsxs("div",{className:"log-header",children:[u.jsx("span",{className:`status-dot ${y.status||"pending"}`}),u.jsx("span",{className:"log-tool",children:y.tool}),u.jsxs("span",{className:"log-time",children:[u.jsx(Rs,{size:12}),new Date(y.timestamp).toLocaleTimeString()]}),y._rigour_report&&u.jsxs("span",{className:"report-badge",children:[u.jsx(p0,{size:12})," Report"]}),y.arbitrated&&u.jsx("span",{className:`arbitrated-badge ${y.decision}`,children:y.decision==="approve"?"Approved":"Rejected"}),u.jsx(oo,{size:14,className:"chevron"})]}),y.requestId&&u.jsxs("div",{className:"log-request-id",children:["ID: ",y.requestId.slice(0,12),"..."]})]},y.id))}),u.jsx("div",{className:"log-detail",children:r?u.jsx(mj,{log:r,onClose:()=>n(null)}):u.jsxs("div",{className:"detail-placeholder",children:[u.jsx(vt,{size:48}),u.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},mj=({log:e,onClose:t})=>{var s,o,a,l,c,d,h;const n=!!e._rigour_report||["rigour_checkpoint","rigour_agent_register","rigour_handoff"].includes(e.tool),[r,i]=k.useState(n?"report":"args");return u.jsxs("div",{className:"log-detail-view",children:[u.jsxs("div",{className:"detail-header",children:[u.jsxs("div",{className:"detail-info",children:[u.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?u.jsx(pn,{size:14}):e.status==="error"?u.jsx(si,{size:14}):u.jsx(Gt,{size:14}),e.status||"pending"]}),u.jsx("h3",{children:e.tool})]}),u.jsx("button",{className:"close-btn",onClick:t,children:u.jsx(pu,{size:18})})]}),u.jsxs("div",{className:"detail-meta",children:[u.jsxs("div",{className:"meta-item",children:[u.jsx("span",{className:"meta-label",children:"Timestamp"}),u.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&u.jsxs("div",{className:"meta-item",children:[u.jsx("span",{className:"meta-label",children:"Request ID"}),u.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),n&&u.jsxs("div",{className:"detail-tabs",children:[u.jsx("button",{className:r==="report"?"active":"",onClick:()=>i("report"),children:e._rigour_report?"Verification Report":"Visualized Content"}),u.jsx("button",{className:r==="args"?"active":"",onClick:()=>i("args"),children:"Technical Arguments"})]}),u.jsx("div",{className:"detail-body",children:r==="args"?u.jsxs(u.Fragment,{children:[e.arguments&&u.jsxs("div",{className:"code-section",children:[u.jsx("h4",{children:"Arguments"}),u.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&u.jsxs("div",{className:"error-section",children:[u.jsx("h4",{children:"Error"}),u.jsx("div",{className:"error-message",children:e.error})]})]}):u.jsx("div",{className:"verification-view",children:e.tool==="rigour_checkpoint"?u.jsxs("div",{className:"checkpoint-viz",children:[u.jsxs("div",{className:"viz-stats",children:[u.jsxs("div",{className:"viz-stat",children:[u.jsx("span",{className:"label",children:"Progress"}),u.jsxs("span",{className:"value",children:[((s=e.arguments)==null?void 0:s.progressPct)??0,"%"]})]}),u.jsxs("div",{className:"viz-stat",children:[u.jsx("span",{className:"label",children:"Quality"}),u.jsxs("span",{className:"value",style:{color:(((o=e.arguments)==null?void 0:o.qualityScore)??0)>=80?"#34d399":"#f87171"},children:[((a=e.arguments)==null?void 0:a.qualityScore)??0,"%"]})]})]}),u.jsxs("div",{className:"viz-summary",children:[u.jsx("h4",{children:"Summary of Work"}),u.jsx("p",{children:((l=e.arguments)==null?void 0:l.summary)||"No summary provided."})]}),((c=e.arguments)==null?void 0:c.filesChanged)&&e.arguments.filesChanged.length>0&&u.jsxs("div",{className:"viz-files",children:[u.jsx("h4",{children:"Files Changed"}),u.jsx("div",{className:"file-badges",children:e.arguments.filesChanged.map(f=>u.jsx("span",{className:"file-badge",children:f},f))})]})]}):e.tool==="rigour_agent_register"?u.jsxs("div",{className:"agent-viz",children:[u.jsx(Ls,{size:32,className:"viz-icon"}),u.jsx("h3",{children:"Agent Scope Claims"}),u.jsxs("div",{className:"scope-box",children:[u.jsx("h4",{children:"Claimed Scope:"}),u.jsx("div",{className:"scope-list",children:(h=(d=e.arguments)==null?void 0:d.taskScope)==null?void 0:h.map(f=>u.jsx("code",{children:f},f))})]})]}):u.jsxs("div",{className:"code-section",children:[u.jsx("h4",{children:"Rigour Report"}),u.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})})]})};function gj({session:e}){if(!e||e.agents.length===0)return u.jsxs("div",{className:"empty-state",children:[u.jsx(nl,{size:48}),u.jsx("h3",{children:"No Active Agent Team"}),u.jsxs("p",{children:["When multiple agents register via ",u.jsx("code",{children:"rigour_agent_register"}),", they'll appear here."]}),u.jsxs("div",{className:"hint-box",children:[u.jsx("span",{children:"Supported Models:"}),u.jsxs("div",{className:"model-badges",children:[u.jsx("span",{className:"badge opus",children:"Opus 4.6"}),u.jsx("span",{className:"badge sonnet",children:"Sonnet 4.5"}),u.jsx("span",{className:"badge gpt",children:"GPT-5.3"}),u.jsx("span",{className:"badge codex",children:"Codex"})]})]})]});const t=r=>{switch(r){case"active":return u.jsx(Uo,{size:10,fill:"#34d399",stroke:"#34d399"});case"idle":return u.jsx(Uo,{size:10,fill:"#fbbf24",stroke:"#fbbf24"});case"completed":return u.jsx(pn,{size:14,color:"#34d399"});default:return u.jsx(Uo,{size:10})}},n=(r,i)=>i.some(s=>s.agentId===r.agentId?!1:r.taskScope.some(o=>s.taskScope.some(a=>a===o||o.startsWith(a)||a.startsWith(o))));return u.jsxs("div",{className:"agent-teams",children:[u.jsxs("div",{className:"panel-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(nl,{size:18}),u.jsx("span",{children:"Agent Team Session"})]}),u.jsx("div",{className:`session-status ${e.status}`,children:e.status.toUpperCase()})]}),u.jsxs("div",{className:"session-info",children:[u.jsx("span",{className:"session-id",children:e.sessionId}),u.jsxs("span",{className:"agent-count",children:[e.agents.length," agents"]})]}),u.jsx("div",{className:"agents-grid",children:e.agents.map(r=>u.jsxs("div",{className:`agent-card ${r.status} ${n(r,e.agents)?"has-conflict":""}`,children:[u.jsxs("div",{className:"agent-header",children:[u.jsxs("div",{className:"agent-id",children:[t(r.status),u.jsx("span",{children:r.agentId})]}),n(r,e.agents)&&u.jsxs("div",{className:"conflict-badge",children:[u.jsx(Gt,{size:12}),u.jsx("span",{children:"Scope Conflict"})]})]}),u.jsxs("div",{className:"task-scope",children:[u.jsx("h4",{children:"Task Scope"}),u.jsx("ul",{children:r.taskScope.map((i,s)=>u.jsxs("li",{children:[u.jsx(ao,{size:12}),u.jsx("code",{children:i})]},s))})]}),u.jsxs("div",{className:"agent-meta",children:[u.jsxs("span",{children:["Registered: ",new Date(r.registeredAt).toLocaleTimeString()]}),r.lastCheckpoint&&u.jsxs("span",{children:["Last checkpoint: ",new Date(r.lastCheckpoint).toLocaleTimeString()]})]})]},r.agentId))})]})}function yj({checkpoints:e}){if(!e||e.length===0)return u.jsxs("div",{className:"empty-state",children:[u.jsx(tl,{size:48}),u.jsx("h3",{children:"No Checkpoints Yet"}),u.jsxs("p",{children:["Checkpoints will appear here as agents report progress via ",u.jsx("code",{children:"rigour_checkpoint"}),"."]}),u.jsx("div",{className:"hint-box",children:u.jsx("span",{children:"Default interval: 15 minutes"})})]});const t=i=>i>=80?"#34d399":i>=60?"#fbbf24":"#f87171",n=i=>{if(i===0)return null;const s=e[i-1].qualityScore,o=e[i].qualityScore;return o>s+5?u.jsx(j0,{size:14,color:"#34d399"}):o<s-5?u.jsx(S0,{size:14,color:"#f87171"}):null},r=e.some((i,s)=>{if(s<2)return!1;const o=e.slice(Math.max(0,s-2),s),a=o.reduce((l,c)=>l+c.qualityScore,0)/o.length;return i.qualityScore<a-10});return u.jsxs("div",{className:"checkpoint-timeline",children:[u.jsxs("div",{className:"panel-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(tl,{size:18}),u.jsx("span",{children:"Checkpoint Timeline"})]}),u.jsxs("div",{className:"drift-visualization",children:[u.jsxs("svg",{width:"120",height:"30",viewBox:"0 0 120 30",className:"drift-sparkline",children:[u.jsx("path",{d:`M ${e.map((i,s)=>`${s/(e.length-1||1)*120} ${30-i.qualityScore/100*30}`).join(" L ")}`,fill:"none",stroke:"var(--accent-primary)",strokeWidth:"2",strokeLinecap:"round"}),e.map((i,s)=>u.jsx("circle",{cx:s/(e.length-1||1)*120,cy:30-i.qualityScore/100*30,r:"2",fill:t(i.qualityScore)},s))]}),u.jsx("span",{className:"drift-label",children:"Session Stability"})]}),r&&u.jsxs("div",{className:"drift-alert",children:[u.jsx(Gt,{size:14}),u.jsx("span",{children:"Drift Detected"})]})]}),u.jsxs("div",{className:"timeline-container",children:[u.jsx("div",{className:"timeline-line"}),e.map((i,s)=>u.jsxs("div",{className:`checkpoint-entry ${i.warnings.length>0?"has-warnings":""}`,children:[u.jsx("div",{className:"checkpoint-marker",children:u.jsx("div",{className:"marker-dot",style:{backgroundColor:t(i.qualityScore)}})}),u.jsxs("div",{className:"checkpoint-content",children:[u.jsxs("div",{className:"checkpoint-header",children:[u.jsx("span",{className:"checkpoint-id",children:i.checkpointId}),u.jsx("span",{className:"checkpoint-time",children:new Date(i.timestamp).toLocaleTimeString()})]}),u.jsxs("div",{className:"checkpoint-stats",children:[u.jsxs("div",{className:"stat",children:[u.jsx("span",{className:"label",children:"Progress"}),u.jsx("div",{className:"progress-bar",children:u.jsx("div",{className:"progress-fill",style:{width:`${i.progressPct}%`}})}),u.jsxs("span",{className:"value",children:[i.progressPct,"%"]})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{className:"label",children:"Quality"}),u.jsxs("span",{className:"value score",style:{color:t(i.qualityScore)},children:[i.qualityScore,"%",n(s)]})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{className:"label",children:"Agent"}),u.jsx("span",{className:"value agent-id",children:i.agentId})]})]}),u.jsx("div",{className:"checkpoint-summary",children:u.jsx("p",{children:i.summary})}),i.filesChanged.length>0&&u.jsx("div",{className:"files-changed",children:u.jsxs("span",{className:"count",children:[i.filesChanged.length," files changed"]})}),i.warnings.length>0&&u.jsx("div",{className:"warnings",children:i.warnings.map((o,a)=>u.jsxs("div",{className:"warning-item",children:[u.jsx(Gt,{size:12}),u.jsx("span",{children:o})]},a))})]})]},i.checkpointId))]})]})}function vj(){var Ee,O,W,H;const[e,t]=k.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=k.useState("memory"),[i,s]=k.useState([]),[o,a]=k.useState(null),[l,c]=k.useState(null),[d,h]=k.useState(!1),[f,v]=k.useState([]),[x,y]=k.useState(null);ze.useEffect(()=>{const C=new EventSource("/api/events");return C.onmessage=A=>{try{const _=JSON.parse(A.data);s(R=>[_,...R].slice(0,100))}catch(_){console.error("Failed to parse event",_)}},fetch("/api/tree").then(A=>A.json()).then(v).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(y).catch(A=>console.error("Failed to fetch info",A)),()=>C.close()},[]),k.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const P=()=>t(C=>C==="dark"?"light":"dark"),[m,p]=k.useState(""),[g,j]=k.useState({}),[w,S]=k.useState({}),[T,N]=k.useState(null),[L,M]=k.useState(null);k.useEffect(()=>{(async()=>{try{const[A,_,R,z,ae]=await Promise.all([fetch("/api/config").then(X=>X.ok?X.text():""),fetch("/api/memory").then(X=>X.json()),fetch("/api/index-stats").then(X=>X.json()),fetch("/api/agents").then(X=>X.json()),fetch("/api/checkpoints").then(X=>X.json())]);p(A),j(_),S(R),N(z),M(ae)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const $=async C=>{try{const A=C.replace(/\s*\(\d+\s*lines\)$/,""),R=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();a({filename:A,original:R,modified:R})}catch(A){console.error("Failed to fetch file content",A)}},F=async C=>{if(l)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:l.requestId||l.id,decision:C,timestamp:new Date().toISOString()})}),s(A=>A.map(_=>(_.requestId||_.id)===(l.requestId||l.id)?{..._,status:C==="approve"?"success":"error",arbitrated:!0,decision:C}:_)),h(!1),c(null)}catch(A){console.error("Arbitration failed",A)}},de=[{id:"audit",label:"Audit Log",icon:Vs},{id:"gates",label:"Quality Gates",icon:Wo},{id:"patterns",label:"Pattern Index",icon:Wp},{id:"memory",label:"Memory Bank",icon:f0},{id:"agents",label:"Agent Teams",icon:nl},{id:"checkpoints",label:"Checkpoints",icon:tl}];return u.jsxs("div",{className:"studio",children:[u.jsxs("aside",{className:"sidebar",children:[u.jsxs("div",{className:"brand",children:[u.jsx("div",{className:"logo-icon",children:u.jsx(Wo,{size:18})}),u.jsx("span",{children:"Rigour Studio"}),u.jsxs("div",{className:"version-pill",children:["v",(x==null?void 0:x.version)||"2.13"]})]}),u.jsx("nav",{children:de.map(C=>u.jsxs("button",{className:`nav-item ${n===C.id?"active":""}`,onClick:()=>r(C.id),children:[u.jsx(C.icon,{size:18}),u.jsx("span",{children:C.label}),n===C.id&&u.jsx(nn.div,{layoutId:"nav-glow",className:"nav-glow"})]},C.id))}),u.jsxs("div",{className:"sidebar-footer",children:[u.jsxs("div",{className:"trust-indicator",children:[u.jsx(bp,{size:14}),u.jsx("span",{children:"Local Governance"})]}),u.jsx("button",{className:"footer-item",children:u.jsx(Kp,{size:18})}),u.jsx("button",{className:"footer-item",children:u.jsx(y0,{size:18})})]})]}),u.jsxs("main",{className:"main-content",children:[u.jsxs("header",{children:[u.jsx("div",{className:"header-left",children:x&&u.jsxs("div",{className:"project-identity",children:[u.jsx(ao,{size:14,className:"folder-icon"}),u.jsx("span",{className:"project-name",children:x.name}),u.jsx("span",{className:"project-path",children:x.path})]})}),u.jsxs("div",{className:"header-right",children:[u.jsxs("div",{className:"connection-status",children:[u.jsxs("div",{className:"status-indicator",children:[u.jsx("div",{className:"pulse-emitter"}),u.jsx("span",{children:"LIVE"})]}),u.jsx("div",{className:"v-divider"}),u.jsxs("span",{children:["v",(x==null?void 0:x.version)||"0.0.0"]})]}),u.jsx("button",{className:"theme-toggle",onClick:P,children:e==="dark"?u.jsx(x0,{size:18}):u.jsx(v0,{size:18})})]})]}),u.jsxs("div",{className:"view-container",children:[u.jsxs(N0,{mode:"wait",children:[n==="audit"&&u.jsx(nn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(pj,{logs:i,onClearLogs:()=>s([]),onSelectLog:C=>{var A,_,R;if(c(C),C!=null&&C._rigour_report||(C==null?void 0:C.type)==="interception_requested"){if(C!=null&&C._rigour_report){const z=(R=(_=(A=C._rigour_report.failures)==null?void 0:A[0])==null?void 0:_.files)==null?void 0:R[0];z?$(z):a(null)}else a(null);h(!0)}else a(null),h(!1)},selectedLog:l})},"audit"),n==="gates"&&u.jsx(nn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(hj,{})},"gates"),n==="patterns"&&u.jsx(nn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(fj,{})},"patterns"),n==="memory"&&u.jsx(nn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(dj,{})},"memory"),n==="agents"&&u.jsx(nn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(gj,{session:T})},"agents"),n==="checkpoints"&&u.jsx(nn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(yj,{checkpoints:(L==null?void 0:L.checkpoints)||[]})},"checkpoints")]}),l&&d&&u.jsx("div",{className:"governance-overlay",children:u.jsxs("div",{className:"governance-window",children:[u.jsxs("div",{className:"governance-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(Wo,{size:20}),u.jsxs("span",{children:["Governance Audit: ",l.tool]})]}),u.jsxs("div",{className:"hitl-actions",children:[l.type==="interception_requested"&&u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:"btn-approve",onClick:()=>F("approve"),children:[u.jsx(pn,{size:16})," Approve"]}),u.jsxs("button",{className:"btn-reject",onClick:()=>F("reject"),children:[u.jsx(si,{size:16})," Reject"]}),u.jsx("div",{className:"divider"})]}),u.jsx("button",{onClick:()=>h(!1),className:"close-btn",children:u.jsx(pu,{size:20})})]})]}),u.jsx("div",{className:"governance-body",children:l.type==="interception_requested"?u.jsxs("div",{className:"interception-view",children:[u.jsxs("div",{className:"interception-card",children:[u.jsx(Vs,{size:48}),u.jsx("h4",{children:"Command Intercepted"}),u.jsx("div",{className:"command-box",children:u.jsx("code",{children:l.command})}),u.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),u.jsxs("div",{className:"warning-note",children:[u.jsx(Gt,{size:16}),u.jsx("span",{children:"Critical actions should be manually verified."})]})]}),u.jsx(Mf,{files:f.map(C=>C.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:C=>$(C),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):u.jsxs(u.Fragment,{children:[u.jsx(Mf,{files:(((O=(Ee=l._rigour_report)==null?void 0:Ee.failures)==null?void 0:O.flatMap(C=>C.files||[]))||f).map(C=>C.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:C=>$(C),activeFile:o==null?void 0:o.filename,violatedFiles:(((H=(W=l._rigour_report)==null?void 0:W.failures)==null?void 0:H.flatMap(C=>C.files||[]))||[]).map(C=>C.replace(/\s*\(\d+\s*lines\)$/,""))}),u.jsx("div",{className:"diff-view-area",children:o?u.jsx(uj,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>a(null),theme:e}):u.jsxs("div",{className:"diff-placeholder",children:[u.jsx(Ls,{size:48}),u.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}la.createRoot(document.getElementById("root")).render(u.jsx(ze.StrictMode,{children:u.jsx(vj,{})}));
|