@rigour-labs/cli 5.3.2 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function sy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf={exports:{}},to={},Qf={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 Cs=Symbol.for("react.element"),iy=Symbol.for("react.portal"),oy=Symbol.for("react.fragment"),ay=Symbol.for("react.strict_mode"),ly=Symbol.for("react.profiler"),uy=Symbol.for("react.provider"),cy=Symbol.for("react.context"),dy=Symbol.for("react.forward_ref"),fy=Symbol.for("react.suspense"),hy=Symbol.for("react.memo"),py=Symbol.for("react.lazy"),dc=Symbol.iterator;function my(e){return e===null||typeof e!="object"?null:(e=dc&&e[dc]||e["@@iterator"],typeof e=="function"?e:null)}var qf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yf=Object.assign,Xf={};function gr(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||qf}gr.prototype.isReactComponent={};gr.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")};gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zf(){}Zf.prototype=gr.prototype;function El(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||qf}var Ml=El.prototype=new Zf;Ml.constructor=El;Yf(Ml,gr.prototype);Ml.isPureReactComponent=!0;var fc=Array.isArray,Jf=Object.prototype.hasOwnProperty,Al={current:null},eh={key:!0,ref:!0,__self:!0,__source:!0};function th(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Jf.call(t,r)&&!eh.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Cs,type:e,key:i,ref:a,props:s,_owner:Al.current}}function gy(e,t){return{$$typeof:Cs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cs}function yy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hc=/\/+/g;function To(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yy(""+e.key):t.toString(36)}function oi(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Cs:case iy:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+To(a,0):r,fc(s)?(n="",e!=null&&(n=e.replace(hc,"$&/")+"/"),oi(s,t,n,"",function(c){return c})):s!=null&&(Dl(s)&&(s=gy(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(hc,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",fc(e))for(var l=0;l<e.length;l++){i=e[l];var u=r+To(i,l);a+=oi(i,t,n,u,s)}else if(u=my(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=r+To(i,l++),a+=oi(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Vs(e,t,n){if(e==null)return e;var r=[],s=0;return oi(e,r,"","",function(i){return t.call(n,i,s++)}),r}function vy(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 Ae={current:null},ai={transition:null},xy={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:ai,ReactCurrentOwner:Al};function nh(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Vs,forEach:function(e,t,n){Vs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vs(e,function(){t++}),t},toArray:function(e){return Vs(e,function(t){return t})||[]},only:function(e){if(!Dl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=gr;B.Fragment=oy;B.Profiler=ly;B.PureComponent=El;B.StrictMode=ay;B.Suspense=fy;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xy;B.act=nh;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=Yf({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Al.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Jf.call(t,u)&&!eh.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Cs,type:e.type,key:s,ref:i,props:r,_owner:a}};B.createContext=function(e){return e={$$typeof:cy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:uy,_context:e},e.Consumer=e};B.createElement=th;B.createFactory=function(e){var t=th.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:dy,render:e}};B.isValidElement=Dl;B.lazy=function(e){return{$$typeof:py,_payload:{_status:-1,_result:e},_init:vy}};B.memo=function(e,t){return{$$typeof:hy,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=ai.transition;ai.transition={};try{e()}finally{ai.transition=t}};B.unstable_act=nh;B.useCallback=function(e,t){return Ae.current.useCallback(e,t)};B.useContext=function(e){return Ae.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};B.useEffect=function(e,t){return Ae.current.useEffect(e,t)};B.useId=function(){return Ae.current.useId()};B.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Ae.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};B.useRef=function(e){return Ae.current.useRef(e)};B.useState=function(e){return Ae.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Ae.current.useTransition()};B.version="18.3.1";Qf.exports=B;var k=Qf.exports;const Fe=sy(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 jy=k,wy=Symbol.for("react.element"),Sy=Symbol.for("react.fragment"),ky=Object.prototype.hasOwnProperty,Ny=jy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cy={key:!0,ref:!0,__self:!0,__source:!0};function rh(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)ky.call(t,r)&&!Cy.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:wy,type:e,key:i,ref:a,props:s,_owner:Ny.current}}to.Fragment=Sy;to.jsx=rh;to.jsxs=rh;Gf.exports=to;var o=Gf.exports,ya={},sh={exports:{}},Ke={},ih={exports:{}},oh={};/**
|
|
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(T,A){var L=T.length;T.push(A);e:for(;0<L;){var _=L-1>>>1,V=T[_];if(0<s(V,A))T[_]=A,T[L]=V,L=_;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var A=T[0],L=T.pop();if(L!==A){T[0]=L;e:for(var _=0,V=T.length,ee=V>>>1;_<ee;){var G=2*(_+1)-1,be=T[G],dt=G+1,dn=T[dt];if(0>s(be,L))dt<V&&0>s(dn,be)?(T[_]=dn,T[dt]=L,_=dt):(T[_]=be,T[G]=L,_=G);else if(dt<V&&0>s(dn,L))T[_]=dn,T[dt]=L,_=dt;else break e}}return A}function s(T,A){var L=T.sortIndex-A.sortIndex;return L!==0?L:T.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,h=null,f=3,y=!1,j=!1,v=!1,C=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(T){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=T)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function w(T){if(v=!1,g(T),!j)if(n(u)!==null)j=!0,$(x);else{var A=n(c);A!==null&&U(w,A.startTime-T)}}function x(T,A){j=!1,v&&(v=!1,m(P),P=-1),y=!0;var L=f;try{for(g(A),h=n(u);h!==null&&(!(h.expirationTime>A)||T&&!I());){var _=h.callback;if(typeof _=="function"){h.callback=null,f=h.priorityLevel;var V=_(h.expirationTime<=A);A=e.unstable_now(),typeof V=="function"?h.callback=V:h===n(u)&&r(u),g(A)}else r(u);h=n(u)}if(h!==null)var ee=!0;else{var G=n(c);G!==null&&U(w,G.startTime-A),ee=!1}return ee}finally{h=null,f=L,y=!1}}var S=!1,N=null,P=-1,D=5,M=-1;function I(){return!(e.unstable_now()-M<D)}function F(){if(N!==null){var T=e.unstable_now();M=T;var A=!0;try{A=N(!0,T)}finally{A?ae():(S=!1,N=null)}}else S=!1}var ae;if(typeof p=="function")ae=function(){p(F)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,b=de.port2;de.port1.onmessage=F,ae=function(){b.postMessage(null)}}else ae=function(){C(F,0)};function $(T){N=T,S||(S=!0,ae())}function U(T,A){P=C(function(){T(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(T){T.callback=null},e.unstable_continueExecution=function(){j||y||(j=!0,$(x))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var L=f;f=A;try{return T()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,A){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=f;f=T;try{return A()}finally{f=L}},e.unstable_scheduleCallback=function(T,A,L){var _=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?_+L:_):L=_,T){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=L+V,T={id:d++,callback:A,priorityLevel:T,startTime:L,expirationTime:V,sortIndex:-1},L>_?(T.sortIndex=L,t(c,T),n(u)===null&&T===n(c)&&(v?(m(P),P=-1):v=!0,U(w,L-_))):(T.sortIndex=V,t(u,T),j||y||(j=!0,$(x))),T},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(T){var A=f;return function(){var L=f;f=A;try{return T.apply(this,arguments)}finally{f=L}}}})(oh);ih.exports=oh;var Ty=ih.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 Py=k,We=Ty;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 ah=new Set,Jr={};function An(e,t){ir(e,t),ir(e+"Capture",t)}function ir(e,t){for(Jr[e]=t,e=0;e<t.length;e++)ah.add(t[e])}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),va=Object.prototype.hasOwnProperty,Ey=/^[: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]*$/,pc={},mc={};function My(e){return va.call(mc,e)?!0:va.call(pc,e)?!1:Ey.test(e)?mc[e]=!0:(pc[e]=!0,!1)}function Ay(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 Dy(e,t,n,r){if(t===null||typeof t>"u"||Ay(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,r,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){je[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rl=/[\-:]([a-z])/g;function _l(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(Rl,_l);je[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rl,_l);je[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rl,_l);je[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ll(e,t,n,r){var s=je.hasOwnProperty(t)?je[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Dy(t,n,s,r)&&(n=null),r||s===null?My(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Vt=Py.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zs=Symbol.for("react.element"),Vn=Symbol.for("react.portal"),zn=Symbol.for("react.fragment"),Vl=Symbol.for("react.strict_mode"),xa=Symbol.for("react.profiler"),lh=Symbol.for("react.provider"),uh=Symbol.for("react.context"),zl=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),wa=Symbol.for("react.suspense_list"),bl=Symbol.for("react.memo"),Ot=Symbol.for("react.lazy"),ch=Symbol.for("react.offscreen"),gc=Symbol.iterator;function wr(e){return e===null||typeof e!="object"?null:(e=gc&&e[gc]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,Po;function Ar(e){if(Po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Po=t&&t[1]||""}return`
|
|
34
|
+
`+Po+e}var Eo=!1;function Mo(e,t){if(!e||Eo)return"";Eo=!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 s=c.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var u=`
|
|
37
|
+
`+s[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Eo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ar(e):""}function Ry(e){switch(e.tag){case 5:return Ar(e.type);case 16:return Ar("Lazy");case 13:return Ar("Suspense");case 19:return Ar("SuspenseList");case 0:case 2:case 15:return e=Mo(e.type,!1),e;case 11:return e=Mo(e.type.render,!1),e;case 1:return e=Mo(e.type,!0),e;default:return""}}function Sa(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 zn:return"Fragment";case Vn:return"Portal";case xa:return"Profiler";case Vl:return"StrictMode";case ja:return"Suspense";case wa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uh:return(e.displayName||"Context")+".Consumer";case lh:return(e._context.displayName||"Context")+".Provider";case zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bl:return t=e.displayName||null,t!==null?t:Sa(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Sa(e(t))}catch{}}return null}function _y(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 Sa(t);case 8:return t===Vl?"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 tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ly(e){var t=dh(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bs(e){e._valueTracker||(e._valueTracker=Ly(e))}function fh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Si(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 ka(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tn(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 hh(e,t){t=t.checked,t!=null&&Ll(e,"checked",t,!1)}function Na(e,t){hh(e,t);var n=tn(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")?Ca(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ca(e,t.type,tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vc(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 Ca(e,t,n){(t!=="number"||Si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Jn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ta(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xc(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(Dr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tn(n)}}function ph(e,t){var n=tn(t.value),r=tn(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 jc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mh(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 Pa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Os,gh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Os=Os||document.createElement("div"),Os.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Os.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={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},Vy=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Vy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function yh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function vh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=yh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var zy=se({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 Ea(e,t){if(t){if(zy[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 Ma(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 Aa=null;function Ol(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,er=null,tr=null;function wc(e){if(e=Es(e)){if(typeof Da!="function")throw Error(E(280));var t=e.stateNode;t&&(t=oo(t),Da(e.stateNode,e.type,t))}}function xh(e){er?tr?tr.push(e):tr=[e]:er=e}function jh(){if(er){var e=er,t=tr;if(tr=er=null,wc(e),t)for(e=0;e<t.length;e++)wc(t[e])}}function wh(e,t){return e(t)}function Sh(){}var Ao=!1;function kh(e,t,n){if(Ao)return e(t,n);Ao=!0;try{return wh(e,t,n)}finally{Ao=!1,(er!==null||tr!==null)&&(Sh(),jh())}}function ts(e,t){var n=e.stateNode;if(n===null)return null;var r=oo(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 Ra=!1;if(Mt)try{var Sr={};Object.defineProperty(Sr,"passive",{get:function(){Ra=!0}}),window.addEventListener("test",Sr,Sr),window.removeEventListener("test",Sr,Sr)}catch{Ra=!1}function by(e,t,n,r,s,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Ir=!1,ki=null,Ni=!1,_a=null,Oy={onError:function(e){Ir=!0,ki=e}};function Iy(e,t,n,r,s,i,a,l,u){Ir=!1,ki=null,by.apply(Oy,arguments)}function Fy(e,t,n,r,s,i,a,l,u){if(Iy.apply(this,arguments),Ir){if(Ir){var c=ki;Ir=!1,ki=null}else throw Error(E(198));Ni||(Ni=!0,_a=c)}}function Dn(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 Nh(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 Sc(e){if(Dn(e)!==e)throw Error(E(188))}function By(e){var t=e.alternate;if(!t){if(t=Dn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Sc(s),e;if(i===r)return Sc(s),t;i=i.sibling}throw Error(E(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)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 Ch(e){return e=By(e),e!==null?Th(e):null}function Th(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Th(e);if(t!==null)return t;e=e.sibling}return null}var Ph=We.unstable_scheduleCallback,kc=We.unstable_cancelCallback,$y=We.unstable_shouldYield,Uy=We.unstable_requestPaint,ce=We.unstable_now,Wy=We.unstable_getCurrentPriorityLevel,Il=We.unstable_ImmediatePriority,Eh=We.unstable_UserBlockingPriority,Ci=We.unstable_NormalPriority,Hy=We.unstable_LowPriority,Mh=We.unstable_IdlePriority,no=null,gt=null;function Ky(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(no,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:qy,Gy=Math.log,Qy=Math.LN2;function qy(e){return e>>>=0,e===0?32:31-(Gy(e)/Qy|0)|0}var Is=64,Fs=4194304;function Rr(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 Ti(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=Rr(l):(i&=a,i!==0&&(r=Rr(i)))}else a=n&~s,a!==0?r=Rr(a):i!==0&&(r=Rr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),s=1<<n,r|=e[n],t&=~s;return r}function Yy(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 Xy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-lt(i),l=1<<a,u=s[a];u===-1?(!(l&n)||l&r)&&(s[a]=Yy(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}function La(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ah(){var e=Is;return Is<<=1,!(Is&4194240)&&(Is=64),e}function Do(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function Zy(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 s=31-lt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Fl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var K=0;function Dh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rh,Bl,_h,Lh,Vh,Va=!1,Bs=[],Ht=null,Kt=null,Gt=null,ns=new Map,rs=new Map,Ft=[],Jy="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 Nc(e,t){switch(e){case"focusin":case"focusout":Ht=null;break;case"dragenter":case"dragleave":Kt=null;break;case"mouseover":case"mouseout":Gt=null;break;case"pointerover":case"pointerout":ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function kr(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Es(t),t!==null&&Bl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function ev(e,t,n,r,s){switch(t){case"focusin":return Ht=kr(Ht,e,t,n,r,s),!0;case"dragenter":return Kt=kr(Kt,e,t,n,r,s),!0;case"mouseover":return Gt=kr(Gt,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return ns.set(i,kr(ns.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,rs.set(i,kr(rs.get(i)||null,e,t,n,r,s)),!0}return!1}function zh(e){var t=yn(e.target);if(t!==null){var n=Dn(t);if(n!==null){if(t=n.tag,t===13){if(t=Nh(n),t!==null){e.blockedOn=t,Vh(e.priority,function(){_h(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 li(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=za(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Aa=r,n.target.dispatchEvent(r),Aa=null}else return t=Es(n),t!==null&&Bl(t),e.blockedOn=n,!1;t.shift()}return!0}function Cc(e,t,n){li(e)&&n.delete(t)}function tv(){Va=!1,Ht!==null&&li(Ht)&&(Ht=null),Kt!==null&&li(Kt)&&(Kt=null),Gt!==null&&li(Gt)&&(Gt=null),ns.forEach(Cc),rs.forEach(Cc)}function Nr(e,t){e.blockedOn===t&&(e.blockedOn=null,Va||(Va=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,tv)))}function ss(e){function t(s){return Nr(s,e)}if(0<Bs.length){Nr(Bs[0],e);for(var n=1;n<Bs.length;n++){var r=Bs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ht!==null&&Nr(Ht,e),Kt!==null&&Nr(Kt,e),Gt!==null&&Nr(Gt,e),ns.forEach(t),rs.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)zh(n),n.blockedOn===null&&Ft.shift()}var nr=Vt.ReactCurrentBatchConfig,Pi=!0;function nv(e,t,n,r){var s=K,i=nr.transition;nr.transition=null;try{K=1,$l(e,t,n,r)}finally{K=s,nr.transition=i}}function rv(e,t,n,r){var s=K,i=nr.transition;nr.transition=null;try{K=4,$l(e,t,n,r)}finally{K=s,nr.transition=i}}function $l(e,t,n,r){if(Pi){var s=za(e,t,n,r);if(s===null)Bo(e,t,r,Ei,n),Nc(e,r);else if(ev(s,e,t,n,r))r.stopPropagation();else if(Nc(e,r),t&4&&-1<Jy.indexOf(e)){for(;s!==null;){var i=Es(s);if(i!==null&&Rh(i),i=za(e,t,n,r),i===null&&Bo(e,t,r,Ei,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Bo(e,t,r,null,n)}}var Ei=null;function za(e,t,n,r){if(Ei=null,e=Ol(r),e=yn(e),e!==null)if(t=Dn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nh(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 Ei=e,null}function bh(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(Wy()){case Il:return 1;case Eh:return 4;case Ci:case Hy:return 16;case Mh:return 536870912;default:return 16}default:return 16}}var $t=null,Ul=null,ui=null;function Oh(){if(ui)return ui;var e,t=Ul,n=t.length,r,s="value"in $t?$t.value:$t.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return ui=s.slice(e,1<r?1-r:void 0)}function ci(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 $s(){return!0}function Tc(){return!1}function Ge(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?$s:Tc,this.isPropagationStopped=Tc,this}return se(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=$s)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$s)},persist:function(){},isPersistent:$s}),t}var yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wl=Ge(yr),Ps=se({},yr,{view:0,detail:0}),sv=Ge(Ps),Ro,_o,Cr,ro=se({},Ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hl,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!==Cr&&(Cr&&e.type==="mousemove"?(Ro=e.screenX-Cr.screenX,_o=e.screenY-Cr.screenY):_o=Ro=0,Cr=e),Ro)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Pc=Ge(ro),iv=se({},ro,{dataTransfer:0}),ov=Ge(iv),av=se({},Ps,{relatedTarget:0}),Lo=Ge(av),lv=se({},yr,{animationName:0,elapsedTime:0,pseudoElement:0}),uv=Ge(lv),cv=se({},yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dv=Ge(cv),fv=se({},yr,{data:0}),Ec=Ge(fv),hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pv={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"},mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mv[e])?!!t[e]:!1}function Hl(){return gv}var yv=se({},Ps,{key:function(e){if(e.key){var t=hv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hl,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vv=Ge(yv),xv=se({},ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mc=Ge(xv),jv=se({},Ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hl}),wv=Ge(jv),Sv=se({},yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),kv=Ge(Sv),Nv=se({},ro,{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}),Cv=Ge(Nv),Tv=[9,13,27,32],Kl=Mt&&"CompositionEvent"in window,Fr=null;Mt&&"documentMode"in document&&(Fr=document.documentMode);var Pv=Mt&&"TextEvent"in window&&!Fr,Ih=Mt&&(!Kl||Fr&&8<Fr&&11>=Fr),Ac=" ",Dc=!1;function Fh(e,t){switch(e){case"keyup":return Tv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bn=!1;function Ev(e,t){switch(e){case"compositionend":return Bh(t);case"keypress":return t.which!==32?null:(Dc=!0,Ac);case"textInput":return e=t.data,e===Ac&&Dc?null:e;default:return null}}function Mv(e,t){if(bn)return e==="compositionend"||!Kl&&Fh(e,t)?(e=Oh(),ui=Ul=$t=null,bn=!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 Ih&&t.locale!=="ko"?null:t.data;default:return null}}var Av={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 Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Av[e.type]:t==="textarea"}function $h(e,t,n,r){xh(r),t=Mi(t,"onChange"),0<t.length&&(n=new Wl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Br=null,is=null;function Dv(e){Jh(e,0)}function so(e){var t=Fn(e);if(fh(t))return e}function Rv(e,t){if(e==="change")return t}var Uh=!1;if(Mt){var Vo;if(Mt){var zo="oninput"in document;if(!zo){var _c=document.createElement("div");_c.setAttribute("oninput","return;"),zo=typeof _c.oninput=="function"}Vo=zo}else Vo=!1;Uh=Vo&&(!document.documentMode||9<document.documentMode)}function Lc(){Br&&(Br.detachEvent("onpropertychange",Wh),is=Br=null)}function Wh(e){if(e.propertyName==="value"&&so(is)){var t=[];$h(t,is,e,Ol(e)),kh(Dv,t)}}function _v(e,t,n){e==="focusin"?(Lc(),Br=t,is=n,Br.attachEvent("onpropertychange",Wh)):e==="focusout"&&Lc()}function Lv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return so(is)}function Vv(e,t){if(e==="click")return so(t)}function zv(e,t){if(e==="input"||e==="change")return so(t)}function bv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:bv;function os(e,t){if(ct(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 s=n[r];if(!va.call(t,s)||!ct(e[s],t[s]))return!1}return!0}function Vc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zc(e,t){var n=Vc(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=Vc(n)}}function Hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kh(){for(var e=window,t=Si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Gl(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 Ov(e){var t=Kh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hh(n.ownerDocument.documentElement,n)){if(r!==null&&Gl(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=zc(n,i);var a=zc(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 Iv=Mt&&"documentMode"in document&&11>=document.documentMode,On=null,ba=null,$r=null,Oa=!1;function bc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Oa||On==null||On!==Si(r)||(r=On,"selectionStart"in r&&Gl(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}),$r&&os($r,r)||($r=r,r=Mi(ba,"onSelect"),0<r.length&&(t=new Wl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=On)))}function Us(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var In={animationend:Us("Animation","AnimationEnd"),animationiteration:Us("Animation","AnimationIteration"),animationstart:Us("Animation","AnimationStart"),transitionend:Us("Transition","TransitionEnd")},bo={},Gh={};Mt&&(Gh=document.createElement("div").style,"AnimationEvent"in window||(delete In.animationend.animation,delete In.animationiteration.animation,delete In.animationstart.animation),"TransitionEvent"in window||delete In.transitionend.transition);function io(e){if(bo[e])return bo[e];if(!In[e])return e;var t=In[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gh)return bo[e]=t[n];return e}var Qh=io("animationend"),qh=io("animationiteration"),Yh=io("animationstart"),Xh=io("transitionend"),Zh=new Map,Oc="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 an(e,t){Zh.set(e,t),An(t,[e])}for(var Oo=0;Oo<Oc.length;Oo++){var Io=Oc[Oo],Fv=Io.toLowerCase(),Bv=Io[0].toUpperCase()+Io.slice(1);an(Fv,"on"+Bv)}an(Qh,"onAnimationEnd");an(qh,"onAnimationIteration");an(Yh,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(Xh,"onTransitionEnd");ir("onMouseEnter",["mouseout","mouseover"]);ir("onMouseLeave",["mouseout","mouseover"]);ir("onPointerEnter",["pointerout","pointerover"]);ir("onPointerLeave",["pointerout","pointerover"]);An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));An("onBeforeInput",["compositionend","keypress","textInput","paste"]);An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(" "),$v=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Ic(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Fy(r,t,void 0,e),e.currentTarget=null}function Jh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&s.isPropagationStopped())break e;Ic(s,l,c),i=u}else for(a=0;a<r.length;a++){if(l=r[a],u=l.instance,c=l.currentTarget,l=l.listener,u!==i&&s.isPropagationStopped())break e;Ic(s,l,c),i=u}}}if(Ni)throw e=_a,Ni=!1,_a=null,e}function Y(e,t){var n=t[Ua];n===void 0&&(n=t[Ua]=new Set);var r=e+"__bubble";n.has(r)||(ep(t,e,2,!1),n.add(r))}function Fo(e,t,n){var r=0;t&&(r|=4),ep(n,e,r,t)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[Ws]){e[Ws]=!0,ah.forEach(function(n){n!=="selectionchange"&&($v.has(n)||Fo(n,!1,e),Fo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ws]||(t[Ws]=!0,Fo("selectionchange",!1,t))}}function ep(e,t,n,r){switch(bh(t)){case 1:var s=nv;break;case 4:s=rv;break;default:s=$l}n=s.bind(null,t,n,e),s=void 0,!Ra||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Bo(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;a=a.return}for(;l!==null;){if(a=yn(l),a===null)return;if(u=a.tag,u===5||u===6){r=i=a;continue e}l=l.parentNode}}r=r.return}kh(function(){var c=i,d=Ol(n),h=[];e:{var f=Zh.get(e);if(f!==void 0){var y=Wl,j=e;switch(e){case"keypress":if(ci(n)===0)break e;case"keydown":case"keyup":y=vv;break;case"focusin":j="focus",y=Lo;break;case"focusout":j="blur",y=Lo;break;case"beforeblur":case"afterblur":y=Lo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=ov;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=wv;break;case Qh:case qh:case Yh:y=uv;break;case Xh:y=kv;break;case"scroll":y=sv;break;case"wheel":y=Cv;break;case"copy":case"cut":case"paste":y=dv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Mc}var v=(t&4)!==0,C=!v&&e==="scroll",m=v?f!==null?f+"Capture":null:f;v=[];for(var p=c,g;p!==null;){g=p;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,m!==null&&(w=ts(p,m),w!=null&&v.push(ls(p,w,g)))),C)break;p=p.return}0<v.length&&(f=new y(f,j,null,n,d),h.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==Aa&&(j=n.relatedTarget||n.fromElement)&&(yn(j)||j[At]))break e;if((y||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,y?(j=n.relatedTarget||n.toElement,y=c,j=j?yn(j):null,j!==null&&(C=Dn(j),j!==C||j.tag!==5&&j.tag!==6)&&(j=null)):(y=null,j=c),y!==j)){if(v=Pc,w="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=Mc,w="onPointerLeave",m="onPointerEnter",p="pointer"),C=y==null?f:Fn(y),g=j==null?f:Fn(j),f=new v(w,p+"leave",y,n,d),f.target=C,f.relatedTarget=g,w=null,yn(d)===c&&(v=new v(m,p+"enter",j,n,d),v.target=g,v.relatedTarget=C,w=v),C=w,y&&j)t:{for(v=y,m=j,p=0,g=v;g;g=Ln(g))p++;for(g=0,w=m;w;w=Ln(w))g++;for(;0<p-g;)v=Ln(v),p--;for(;0<g-p;)m=Ln(m),g--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Ln(v),m=Ln(m)}v=null}else v=null;y!==null&&Fc(h,f,y,v,!1),j!==null&&C!==null&&Fc(h,C,j,v,!0)}}e:{if(f=c?Fn(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var x=Rv;else if(Rc(f))if(Uh)x=zv;else{x=Lv;var S=_v}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(x=Vv);if(x&&(x=x(e,c))){$h(h,x,n,d);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Ca(f,"number",f.value)}switch(S=c?Fn(c):window,e){case"focusin":(Rc(S)||S.contentEditable==="true")&&(On=S,ba=c,$r=null);break;case"focusout":$r=ba=On=null;break;case"mousedown":Oa=!0;break;case"contextmenu":case"mouseup":case"dragend":Oa=!1,bc(h,n,d);break;case"selectionchange":if(Iv)break;case"keydown":case"keyup":bc(h,n,d)}var N;if(Kl)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else bn?Fh(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Ih&&n.locale!=="ko"&&(bn||P!=="onCompositionStart"?P==="onCompositionEnd"&&bn&&(N=Oh()):($t=d,Ul="value"in $t?$t.value:$t.textContent,bn=!0)),S=Mi(c,P),0<S.length&&(P=new Ec(P,e,null,n,d),h.push({event:P,listeners:S}),N?P.data=N:(N=Bh(n),N!==null&&(P.data=N)))),(N=Pv?Ev(e,n):Mv(e,n))&&(c=Mi(c,"onBeforeInput"),0<c.length&&(d=new Ec("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=N))}Jh(h,t)})}function ls(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mi(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ts(e,n),i!=null&&r.unshift(ls(e,i,s)),i=ts(e,t),i!=null&&r.push(ls(e,i,s))),e=e.return}return r}function Ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fc(e,t,n,r,s){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,s?(u=ts(n,i),u!=null&&a.unshift(ls(n,u,l))):s||(u=ts(n,i),u!=null&&a.push(ls(n,u,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Uv=/\r\n?/g,Wv=/\u0000|\uFFFD/g;function Bc(e){return(typeof e=="string"?e:""+e).replace(Uv,`
|
|
38
|
+
`).replace(Wv,"")}function Hs(e,t,n){if(t=Bc(t),Bc(e)!==t&&n)throw Error(E(425))}function Ai(){}var Ia=null,Fa=null;function Ba(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 $a=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,$c=typeof Promise=="function"?Promise:void 0,Kv=typeof queueMicrotask=="function"?queueMicrotask:typeof $c<"u"?function(e){return $c.resolve(null).then(e).catch(Gv)}:$a;function Gv(e){setTimeout(function(){throw e})}function $o(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ss(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ss(t)}function Qt(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 Uc(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 vr=Math.random().toString(36).slice(2),pt="__reactFiber$"+vr,us="__reactProps$"+vr,At="__reactContainer$"+vr,Ua="__reactEvents$"+vr,Qv="__reactListeners$"+vr,qv="__reactHandles$"+vr;function yn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[At]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uc(e);e!==null;){if(n=e[pt])return n;e=Uc(e)}return t}e=n,n=e.parentNode}return null}function Es(e){return e=e[pt]||e[At],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function oo(e){return e[us]||null}var Wa=[],Bn=-1;function ln(e){return{current:e}}function X(e){0>Bn||(e.current=Wa[Bn],Wa[Bn]=null,Bn--)}function Q(e,t){Bn++,Wa[Bn]=e.current,e.current=t}var nn={},Te=ln(nn),Le=ln(!1),Cn=nn;function or(e,t){var n=e.type.contextTypes;if(!n)return nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ve(e){return e=e.childContextTypes,e!=null}function Di(){X(Le),X(Te)}function Wc(e,t,n){if(Te.current!==nn)throw Error(E(168));Q(Te,t),Q(Le,n)}function tp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(E(108,_y(e)||"Unknown",s));return se({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,Cn=Te.current,Q(Te,e),Q(Le,Le.current),!0}function Hc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=tp(e,t,Cn),r.__reactInternalMemoizedMergedChildContext=e,X(Le),X(Te),Q(Te,e)):X(Le),Q(Le,n)}var kt=null,ao=!1,Uo=!1;function np(e){kt===null?kt=[e]:kt.push(e)}function Yv(e){ao=!0,np(e)}function un(){if(!Uo&&kt!==null){Uo=!0;var e=0,t=K;try{var n=kt;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kt=null,ao=!1}catch(s){throw kt!==null&&(kt=kt.slice(e+1)),Ph(Il,un),s}finally{K=t,Uo=!1}}return null}var $n=[],Un=0,_i=null,Li=0,Ye=[],Xe=0,Tn=null,Nt=1,Ct="";function hn(e,t){$n[Un++]=Li,$n[Un++]=_i,_i=e,Li=t}function rp(e,t,n){Ye[Xe++]=Nt,Ye[Xe++]=Ct,Ye[Xe++]=Tn,Tn=e;var r=Nt;e=Ct;var s=32-lt(r)-1;r&=~(1<<s),n+=1;var i=32-lt(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,Nt=1<<32-lt(t)+s|n<<s|r,Ct=i+e}else Nt=1<<i|n<<s|r,Ct=e}function Ql(e){e.return!==null&&(hn(e,1),rp(e,1,0))}function ql(e){for(;e===_i;)_i=$n[--Un],$n[Un]=null,Li=$n[--Un],$n[Un]=null;for(;e===Tn;)Tn=Ye[--Xe],Ye[Xe]=null,Ct=Ye[--Xe],Ye[Xe]=null,Nt=Ye[--Xe],Ye[Xe]=null}var $e=null,Be=null,J=!1,at=null;function sp(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Kc(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,$e=e,Be=Qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$e=e,Be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tn!==null?{id:Nt,overflow:Ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$e=e,Be=null,!0):!1;default:return!1}}function Ha(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ka(e){if(J){var t=Be;if(t){var n=t;if(!Kc(e,t)){if(Ha(e))throw Error(E(418));t=Qt(n.nextSibling);var r=$e;t&&Kc(e,t)?sp(r,n):(e.flags=e.flags&-4097|2,J=!1,$e=e)}}else{if(Ha(e))throw Error(E(418));e.flags=e.flags&-4097|2,J=!1,$e=e}}}function Gc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$e=e}function Ks(e){if(e!==$e)return!1;if(!J)return Gc(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ba(e.type,e.memoizedProps)),t&&(t=Be)){if(Ha(e))throw ip(),Error(E(418));for(;t;)sp(e,t),t=Qt(t.nextSibling)}if(Gc(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){Be=Qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Be=null}}else Be=$e?Qt(e.stateNode.nextSibling):null;return!0}function ip(){for(var e=Be;e;)e=Qt(e.nextSibling)}function ar(){Be=$e=null,J=!1}function Yl(e){at===null?at=[e]:at.push(e)}var Xv=Vt.ReactCurrentBatchConfig;function Tr(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 s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Gs(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qc(e){var t=e._init;return t(e._payload)}function op(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 s(m,p){return m=Zt(m,p),m.index=0,m.sibling=null,m}function i(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 a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,g,w){return p===null||p.tag!==6?(p=Yo(g,m.mode,w),p.return=m,p):(p=s(p,g),p.return=m,p)}function u(m,p,g,w){var x=g.type;return x===zn?d(m,p,g.props.children,w,g.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&Qc(x)===p.type)?(w=s(p,g.props),w.ref=Tr(m,p,g),w.return=m,w):(w=yi(g.type,g.key,g.props,null,m.mode,w),w.ref=Tr(m,p,g),w.return=m,w)}function c(m,p,g,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Xo(g,m.mode,w),p.return=m,p):(p=s(p,g.children||[]),p.return=m,p)}function d(m,p,g,w,x){return p===null||p.tag!==7?(p=Sn(g,m.mode,w,x),p.return=m,p):(p=s(p,g),p.return=m,p)}function h(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Yo(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case zs:return g=yi(p.type,p.key,p.props,null,m.mode,g),g.ref=Tr(m,null,p),g.return=m,g;case Vn:return p=Xo(p,m.mode,g),p.return=m,p;case Ot:var w=p._init;return h(m,w(p._payload),g)}if(Dr(p)||wr(p))return p=Sn(p,m.mode,g,null),p.return=m,p;Gs(m,p)}return null}function f(m,p,g,w){var x=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return x!==null?null:l(m,p,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zs:return g.key===x?u(m,p,g,w):null;case Vn:return g.key===x?c(m,p,g,w):null;case Ot:return x=g._init,f(m,p,x(g._payload),w)}if(Dr(g)||wr(g))return x!==null?null:d(m,p,g,w,null);Gs(m,g)}return null}function y(m,p,g,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(g)||null,l(p,m,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zs:return m=m.get(w.key===null?g:w.key)||null,u(p,m,w,x);case Vn:return m=m.get(w.key===null?g:w.key)||null,c(p,m,w,x);case Ot:var S=w._init;return y(m,p,g,S(w._payload),x)}if(Dr(w)||wr(w))return m=m.get(g)||null,d(p,m,w,x,null);Gs(p,w)}return null}function j(m,p,g,w){for(var x=null,S=null,N=p,P=p=0,D=null;N!==null&&P<g.length;P++){N.index>P?(D=N,N=null):D=N.sibling;var M=f(m,N,g[P],w);if(M===null){N===null&&(N=D);break}e&&N&&M.alternate===null&&t(m,N),p=i(M,p,P),S===null?x=M:S.sibling=M,S=M,N=D}if(P===g.length)return n(m,N),J&&hn(m,P),x;if(N===null){for(;P<g.length;P++)N=h(m,g[P],w),N!==null&&(p=i(N,p,P),S===null?x=N:S.sibling=N,S=N);return J&&hn(m,P),x}for(N=r(m,N);P<g.length;P++)D=y(N,m,P,g[P],w),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?P:D.key),p=i(D,p,P),S===null?x=D:S.sibling=D,S=D);return e&&N.forEach(function(I){return t(m,I)}),J&&hn(m,P),x}function v(m,p,g,w){var x=wr(g);if(typeof x!="function")throw Error(E(150));if(g=x.call(g),g==null)throw Error(E(151));for(var S=x=null,N=p,P=p=0,D=null,M=g.next();N!==null&&!M.done;P++,M=g.next()){N.index>P?(D=N,N=null):D=N.sibling;var I=f(m,N,M.value,w);if(I===null){N===null&&(N=D);break}e&&N&&I.alternate===null&&t(m,N),p=i(I,p,P),S===null?x=I:S.sibling=I,S=I,N=D}if(M.done)return n(m,N),J&&hn(m,P),x;if(N===null){for(;!M.done;P++,M=g.next())M=h(m,M.value,w),M!==null&&(p=i(M,p,P),S===null?x=M:S.sibling=M,S=M);return J&&hn(m,P),x}for(N=r(m,N);!M.done;P++,M=g.next())M=y(N,m,P,M.value,w),M!==null&&(e&&M.alternate!==null&&N.delete(M.key===null?P:M.key),p=i(M,p,P),S===null?x=M:S.sibling=M,S=M);return e&&N.forEach(function(F){return t(m,F)}),J&&hn(m,P),x}function C(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===zn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case zs:e:{for(var x=g.key,S=p;S!==null;){if(S.key===x){if(x=g.type,x===zn){if(S.tag===7){n(m,S.sibling),p=s(S,g.props.children),p.return=m,m=p;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&Qc(x)===S.type){n(m,S.sibling),p=s(S,g.props),p.ref=Tr(m,S,g),p.return=m,m=p;break e}n(m,S);break}else t(m,S);S=S.sibling}g.type===zn?(p=Sn(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=yi(g.type,g.key,g.props,null,m.mode,w),w.ref=Tr(m,p,g),w.return=m,m=w)}return a(m);case Vn: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=s(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Xo(g,m.mode,w),p.return=m,m=p}return a(m);case Ot:return S=g._init,C(m,p,S(g._payload),w)}if(Dr(g))return j(m,p,g,w);if(wr(g))return v(m,p,g,w);Gs(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=s(p,g),p.return=m,m=p):(n(m,p),p=Yo(g,m.mode,w),p.return=m,m=p),a(m)):n(m,p)}return C}var lr=op(!0),ap=op(!1),Vi=ln(null),zi=null,Wn=null,Xl=null;function Zl(){Xl=Wn=zi=null}function Jl(e){var t=Vi.current;X(Vi),e._currentValue=t}function Ga(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 rr(e,t){zi=e,Xl=Wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(Xl!==e)if(e={context:e,memoizedValue:t,next:null},Wn===null){if(zi===null)throw Error(E(308));Wn=e,zi.dependencies={lanes:0,firstContext:e}}else Wn=Wn.next=e;return t}var vn=null;function eu(e){vn===null?vn=[e]:vn.push(e)}function lp(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,eu(t)):(n.next=s.next,s.next=n),t.interleaved=n,Dt(e,r)}function Dt(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 It=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function up(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 Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Dt(e,n)}return s=r.interleaved,s===null?(t.next=t,eu(r)):(t.next=s.next,s.next=t),r.interleaved=t,Dt(e,n)}function di(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,Fl(e,n)}}function qc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bi(e,t,n,r){var s=e.updateQueue;It=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var h=s.baseState;a=0,d=c=u=null,l=i;do{var f=l.lane,y=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var j=e,v=l;switch(f=t,y=n,v.tag){case 1:if(j=v.payload,typeof j=="function"){h=j.call(y,h,f);break e}h=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=v.payload,f=typeof j=="function"?j.call(y,h,f):j,f==null)break e;h=se({},h,f);break e;case 2:It=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else y={eventTime:y,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=y,u=h):d=d.next=y,a|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(u=h),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);En|=a,e.lanes=a,e.memoizedState=h}}function Yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(E(191,s));s.call(r)}}}var Ms={},yt=ln(Ms),cs=ln(Ms),ds=ln(Ms);function xn(e){if(e===Ms)throw Error(E(174));return e}function nu(e,t){switch(Q(ds,t),Q(cs,e),Q(yt,Ms),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pa(t,e)}X(yt),Q(yt,t)}function ur(){X(yt),X(cs),X(ds)}function cp(e){xn(ds.current);var t=xn(yt.current),n=Pa(t,e.type);t!==n&&(Q(cs,e),Q(yt,n))}function ru(e){cs.current===e&&(X(yt),X(cs))}var te=ln(0);function Oi(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 Wo=[];function su(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var fi=Vt.ReactCurrentDispatcher,Ho=Vt.ReactCurrentBatchConfig,Pn=0,re=null,he=null,me=null,Ii=!1,Ur=!1,fs=0,Zv=0;function we(){throw Error(E(321))}function iu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ct(e[n],t[n]))return!1;return!0}function ou(e,t,n,r,s,i){if(Pn=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=e===null||e.memoizedState===null?n0:r0,e=n(r,s),Ur){i=0;do{if(Ur=!1,fs=0,25<=i)throw Error(E(301));i+=1,me=he=null,t.updateQueue=null,fi.current=s0,e=n(r,s)}while(Ur)}if(fi.current=Fi,t=he!==null&&he.next!==null,Pn=0,me=he=re=null,Ii=!1,t)throw Error(E(300));return e}function au(){var e=fs!==0;return fs=0,e}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?re.memoizedState=me=e:me=me.next=e,me}function tt(){if(he===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=me===null?re.memoizedState:me.next;if(t!==null)me=t,he=e;else{if(e===null)throw Error(E(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},me===null?re.memoizedState=me=e:me=me.next=e}return me}function hs(e,t){return typeof t=="function"?t(e):t}function Ko(e){var t=tt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=he,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,u=null,c=i;do{var d=c.lane;if((Pn&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=h,a=r):u=u.next=h,re.lanes|=d,En|=d}c=c.next}while(c!==null&&c!==i);u===null?a=r:u.next=l,ct(r,t.memoizedState)||(_e=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,re.lanes|=i,En|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Go(e){var t=tt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);ct(i,t.memoizedState)||(_e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function dp(){}function fp(e,t){var n=re,r=tt(),s=t(),i=!ct(r.memoizedState,s);if(i&&(r.memoizedState=s,_e=!0),r=r.queue,lu(mp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||me!==null&&me.memoizedState.tag&1){if(n.flags|=2048,ps(9,pp.bind(null,n,r,s,t),void 0,null),ge===null)throw Error(E(349));Pn&30||hp(n,t,s)}return s}function hp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t={lastEffect:null,stores:null},re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function pp(e,t,n,r){t.value=n,t.getSnapshot=r,gp(t)&&yp(e)}function mp(e,t,n){return n(function(){gp(t)&&yp(e)})}function gp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function yp(e){var t=Dt(e,1);t!==null&&ut(t,e,1,-1)}function Xc(e){var t=ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=t0.bind(null,re,e),[t.memoizedState,e]}function ps(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=re.updateQueue,t===null?(t={lastEffect:null,stores:null},re.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 vp(){return tt().memoizedState}function hi(e,t,n,r){var s=ht();re.flags|=e,s.memoizedState=ps(1|t,n,void 0,r===void 0?null:r)}function lo(e,t,n,r){var s=tt();r=r===void 0?null:r;var i=void 0;if(he!==null){var a=he.memoizedState;if(i=a.destroy,r!==null&&iu(r,a.deps)){s.memoizedState=ps(t,n,i,r);return}}re.flags|=e,s.memoizedState=ps(1|t,n,i,r)}function Zc(e,t){return hi(8390656,8,e,t)}function lu(e,t){return lo(2048,8,e,t)}function xp(e,t){return lo(4,2,e,t)}function jp(e,t){return lo(4,4,e,t)}function wp(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,lo(4,4,wp.bind(null,t,e),n)}function uu(){}function kp(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&iu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Np(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&iu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Cp(e,t,n){return Pn&21?(ct(n,t)||(n=Ah(),re.lanes|=n,En|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_e=!0),e.memoizedState=n)}function Jv(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=Ho.transition;Ho.transition={};try{e(!1),t()}finally{K=n,Ho.transition=r}}function Tp(){return tt().memoizedState}function e0(e,t,n){var r=Xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pp(e))Ep(t,n);else if(n=lp(e,t,n,r),n!==null){var s=Me();ut(n,e,r,s),Mp(n,t,r)}}function t0(e,t,n){var r=Xt(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))Ep(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,ct(l,a)){var u=t.interleaved;u===null?(s.next=s,eu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=lp(e,t,s,r),n!==null&&(s=Me(),ut(n,e,r,s),Mp(n,t,r))}}function Pp(e){var t=e.alternate;return e===re||t!==null&&t===re}function Ep(e,t){Ur=Ii=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fl(e,n)}}var Fi={readContext:et,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},n0={readContext:et,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Zc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hi(4194308,4,wp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return hi(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();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=e0.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:uu,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=Jv.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=re,s=ht();if(J){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ge===null)throw Error(E(349));Pn&30||hp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Zc(mp.bind(null,r,i,e),[e]),r.flags|=2048,ps(9,pp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ht(),t=ge.identifierPrefix;if(J){var n=Ct,r=Nt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},r0={readContext:et,useCallback:kp,useContext:et,useEffect:lu,useImperativeHandle:Sp,useInsertionEffect:xp,useLayoutEffect:jp,useMemo:Np,useReducer:Ko,useRef:vp,useState:function(){return Ko(hs)},useDebugValue:uu,useDeferredValue:function(e){var t=tt();return Cp(t,he.memoizedState,e)},useTransition:function(){var e=Ko(hs)[0],t=tt().memoizedState;return[e,t]},useMutableSource:dp,useSyncExternalStore:fp,useId:Tp,unstable_isNewReconciler:!1},s0={readContext:et,useCallback:kp,useContext:et,useEffect:lu,useImperativeHandle:Sp,useInsertionEffect:xp,useLayoutEffect:jp,useMemo:Np,useReducer:Go,useRef:vp,useState:function(){return Go(hs)},useDebugValue:uu,useDeferredValue:function(e){var t=tt();return he===null?t.memoizedState=e:Cp(t,he.memoizedState,e)},useTransition:function(){var e=Go(hs)[0],t=tt().memoizedState;return[e,t]},useMutableSource:dp,useSyncExternalStore:fp,useId:Tp,unstable_isNewReconciler:!1};function it(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Qa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var uo={isMounted:function(e){return(e=e._reactInternals)?Dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),s=Xt(e),i=Tt(r,s);i.payload=t,n!=null&&(i.callback=n),t=qt(e,i,s),t!==null&&(ut(t,e,s,r),di(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),s=Xt(e),i=Tt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qt(e,i,s),t!==null&&(ut(t,e,s,r),di(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=Xt(e),s=Tt(n,r);s.tag=2,t!=null&&(s.callback=t),t=qt(e,s,r),t!==null&&(ut(t,e,r,n),di(t,e,r))}};function Jc(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!os(n,r)||!os(s,i):!0}function Ap(e,t,n){var r=!1,s=nn,i=t.contextType;return typeof i=="object"&&i!==null?i=et(i):(s=Ve(t)?Cn:Te.current,r=t.contextTypes,i=(r=r!=null)?or(e,s):nn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=uo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function ed(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&&uo.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},tu(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=et(i):(i=Ve(t)?Cn:Te.current,s.context=or(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Qa(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&uo.enqueueReplaceState(s,s.state,null),bi(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cr(e,t){try{var n="",r=t;do n+=Ry(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Qo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ya(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var i0=typeof WeakMap=="function"?WeakMap:Map;function Dp(e,t,n){n=Tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$i||($i=!0,ol=r),Ya(e,t)},n}function Rp(e,t,n){n=Tt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ya(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ya(e,t),typeof r!="function"&&(Yt===null?Yt=new Set([this]):Yt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function td(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new i0;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=x0.bind(null,e,t,n),t.then(e,e))}function nd(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 rd(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Tt(-1,1),t.tag=2,qt(n,t,1))),n.lanes|=1),e)}var o0=Vt.ReactCurrentOwner,_e=!1;function Ee(e,t,n,r){t.child=e===null?ap(t,null,n,r):lr(t,e.child,n,r)}function sd(e,t,n,r,s){n=n.render;var i=t.ref;return rr(t,s),r=ou(e,t,n,r,i,s),n=au(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(J&&n&&Ql(t),t.flags|=1,Ee(e,t,r,s),t.child)}function id(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!yu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_p(e,t,i,r,s)):(e=yi(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:os,n(a,r)&&e.ref===t.ref)return Rt(e,t,s)}return t.flags|=1,e=Zt(i,r),e.ref=t.ref,e.return=t,t.child=e}function _p(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(os(i,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,Rt(e,t,s)}return Xa(e,t,n,r,s)}function Lp(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Kn,Oe),Oe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Kn,Oe),Oe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Q(Kn,Oe),Oe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Q(Kn,Oe),Oe|=r;return Ee(e,t,s,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 Xa(e,t,n,r,s){var i=Ve(n)?Cn:Te.current;return i=or(t,i),rr(t,s),n=ou(e,t,n,r,i,s),r=au(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(J&&r&&Ql(t),t.flags|=1,Ee(e,t,n,s),t.child)}function od(e,t,n,r,s){if(Ve(n)){var i=!0;Ri(t)}else i=!1;if(rr(t,s),t.stateNode===null)pi(e,t),Ap(t,n,r),qa(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=et(c):(c=Ve(n)?Cn:Te.current,c=or(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||u!==c)&&ed(t,a,r,c),It=!1;var f=t.memoizedState;a.state=f,bi(t,r,a,s),u=t.memoizedState,l!==r||f!==u||Le.current||It?(typeof d=="function"&&(Qa(t,n,d,r),u=t.memoizedState),(l=It||Jc(t,n,l,r,f,u,c))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,up(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:it(t.type,l),a.props=c,h=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=et(u):(u=Ve(n)?Cn:Te.current,u=or(t,u));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||f!==u)&&ed(t,a,r,u),It=!1,f=t.memoizedState,a.state=f,bi(t,r,a,s);var j=t.memoizedState;l!==h||f!==j||Le.current||It?(typeof y=="function"&&(Qa(t,n,y,r),j=t.memoizedState),(c=It||Jc(t,n,c,r,f,j,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,j,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,j,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=j),a.props=r,a.state=j,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Za(e,t,n,r,i,s)}function Za(e,t,n,r,s,i){Vp(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&Hc(t,n,!1),Rt(e,t,i);r=t.stateNode,o0.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=lr(t,e.child,null,i),t.child=lr(t,null,l,i)):Ee(e,t,l,i),t.memoizedState=r.state,s&&Hc(t,n,!0),t.child}function zp(e){var t=e.stateNode;t.pendingContext?Wc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wc(e,t.context,!1),nu(e,t.containerInfo)}function ad(e,t,n,r,s){return ar(),Yl(s),t.flags|=256,Ee(e,t,n,r),t.child}var Ja={dehydrated:null,treeContext:null,retryLane:0};function el(e){return{baseLanes:e,cachePool:null,transitions:null}}function bp(e,t,n){var r=t.pendingProps,s=te.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Q(te,s&1),e===null)return Ka(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ho(a,r,0,null),e=Sn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=el(n),t.memoizedState=Ja,e):cu(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return a0(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Zt(s,u),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Zt(l,i):(i=Sn(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?el(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Ja,r}return i=e.child,e=i.sibling,r=Zt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function cu(e,t){return t=ho({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qs(e,t,n,r){return r!==null&&Yl(r),lr(t,e.child,null,n),e=cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function a0(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Qo(Error(E(422))),Qs(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=ho({mode:"visible",children:r.children},s,0,null),i=Sn(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&lr(t,e.child,null,a),t.child.memoizedState=el(a),t.memoizedState=Ja,i);if(!(t.mode&1))return Qs(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(E(419)),r=Qo(i,r,void 0),Qs(e,t,a,r)}if(l=(a&e.childLanes)!==0,_e||l){if(r=ge,r!==null){switch(a&-a){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Dt(e,s),ut(r,e,s,-1))}return gu(),r=Qo(Error(E(421))),Qs(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=j0.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Be=Qt(s.nextSibling),$e=t,J=!0,at=null,e!==null&&(Ye[Xe++]=Nt,Ye[Xe++]=Ct,Ye[Xe++]=Tn,Nt=e.id,Ct=e.overflow,Tn=t),t=cu(t,r.children),t.flags|=4096,t)}function ld(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ga(e.return,t,n)}function qo(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Op(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ee(e,t,r.children,n),r=te.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&&ld(e,n,t);else if(e.tag===19)ld(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(te,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Oi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),qo(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Oi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}qo(t,!0,n,null,i);break;case"together":qo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),En|=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=Zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function l0(e,t,n){switch(t.tag){case 3:zp(t),ar();break;case 5:cp(t);break;case 1:Ve(t.type)&&Ri(t);break;case 4:nu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Q(Vi,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?bp(e,t,n):(Q(te,te.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);Q(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Op(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,Lp(e,t,n)}return Rt(e,t,n)}var Ip,tl,Fp,Bp;Ip=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}};tl=function(){};Fp=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,xn(yt.current);var i=null;switch(n){case"input":s=ka(e,s),r=ka(e,r),i=[];break;case"select":s=se({},s,{value:void 0}),r=se({},r,{value:void 0}),i=[];break;case"textarea":s=Ta(e,s),r=Ta(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ai)}Ea(n,r);var a;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Jr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Jr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Y("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Bp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function u0(e,t,n){var r=t.pendingProps;switch(ql(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(t),null;case 1:return Ve(t.type)&&Di(),Se(t),null;case 3:return r=t.stateNode,ur(),X(Le),X(Te),su(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ks(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,at!==null&&(ul(at),at=null))),tl(e,t),Se(t),null;case 5:ru(t);var s=xn(ds.current);if(n=t.type,e!==null&&t.stateNode!=null)Fp(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Se(t),null}if(e=xn(yt.current),Ks(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pt]=t,r[us]=i,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(s=0;s<_r.length;s++)Y(_r[s],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":yc(r,i),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Y("invalid",r);break;case"textarea":xc(r,i),Y("invalid",r)}Ea(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Hs(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Hs(r.textContent,l,e),s=["children",""+l]):Jr.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Y("scroll",r)}switch(n){case"input":bs(r),vc(r,i,!0);break;case"textarea":bs(r),jc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ai)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pt]=t,e[us]=r,Ip(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ma(n,r),n){case"dialog":Y("cancel",e),Y("close",e),s=r;break;case"iframe":case"object":case"embed":Y("load",e),s=r;break;case"video":case"audio":for(s=0;s<_r.length;s++)Y(_r[s],e);s=r;break;case"source":Y("error",e),s=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),s=r;break;case"details":Y("toggle",e),s=r;break;case"input":yc(e,r),s=ka(e,r),Y("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=se({},r,{value:void 0}),Y("invalid",e);break;case"textarea":xc(e,r),s=Ta(e,r),Y("invalid",e);break;default:s=r}Ea(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="style"?vh(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&gh(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&es(e,u):typeof u=="number"&&es(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Jr.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Y("scroll",e):u!=null&&Ll(e,i,u,a))}switch(n){case"input":bs(e),vc(e,r,!1);break;case"textarea":bs(e),jc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Jn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Jn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ai)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Se(t),null;case 6:if(e&&t.stateNode!=null)Bp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=xn(ds.current),xn(yt.current),Ks(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(i=r.nodeValue!==n)&&(e=$e,e!==null))switch(e.tag){case 3:Hs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hs(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return Se(t),null;case 13:if(X(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Be!==null&&t.mode&1&&!(t.flags&128))ip(),ar(),t.flags|=98560,i=!1;else if(i=Ks(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[pt]=t}else ar(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Se(t),i=!1}else at!==null&&(ul(at),at=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||te.current&1?pe===0&&(pe=3):gu())),t.updateQueue!==null&&(t.flags|=4),Se(t),null);case 4:return ur(),tl(e,t),e===null&&as(t.stateNode.containerInfo),Se(t),null;case 10:return Jl(t.type._context),Se(t),null;case 17:return Ve(t.type)&&Di(),Se(t),null;case 19:if(X(te),i=t.memoizedState,i===null)return Se(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Pr(i,!1);else{if(pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Oi(e),a!==null){for(t.flags|=128,Pr(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(te,te.current&1|2),t.child}e=e.sibling}i.tail!==null&&ce()>dr&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Oi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!J)return Se(t),null}else 2*ce()-i.renderingStartTime>dr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ce(),t.sibling=null,n=te.current,Q(te,r?n&1|2:n&1),t):(Se(t),null);case 22:case 23:return mu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function c0(e,t){switch(ql(t),t.tag){case 1:return Ve(t.type)&&Di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ur(),X(Le),X(Te),su(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ru(t),null;case 13:if(X(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(te),null;case 4:return ur(),null;case 10:return Jl(t.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var qs=!1,Ne=!1,d0=typeof WeakSet=="function"?WeakSet:Set,R=null;function Hn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function nl(e,t,n){try{n()}catch(r){oe(e,t,r)}}var ud=!1;function f0(e,t){if(Ia=Pi,e=Kh(),Gl(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var y;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(u=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++c===s&&(l=a),f===i&&++d===r&&(u=a),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fa={focusedElem:e,selectionRange:n},Pi=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var v=j.memoizedProps,C=j.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:it(t.type,v),C);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(w){oe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return j=ud,ud=!1,j}function Wr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&nl(t,n,i)}s=s.next}while(s!==r)}}function co(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 rl(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 $p(e){var t=e.alternate;t!==null&&(e.alternate=null,$p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[us],delete t[Ua],delete t[Qv],delete t[qv])),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 Up(e){return e.tag===5||e.tag===3||e.tag===4}function cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Up(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 sl(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=Ai));else if(r!==4&&(e=e.child,e!==null))for(sl(e,t,n),e=e.sibling;e!==null;)sl(e,t,n),e=e.sibling}function il(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(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}var ye=null,ot=!1;function zt(e,t,n){for(n=n.child;n!==null;)Wp(e,t,n),n=n.sibling}function Wp(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(no,n)}catch{}switch(n.tag){case 5:Ne||Hn(n,t);case 6:var r=ye,s=ot;ye=null,zt(e,t,n),ye=r,ot=s,ye!==null&&(ot?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(ot?(e=ye,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),ss(e)):$o(ye,n.stateNode));break;case 4:r=ye,s=ot,ye=n.stateNode.containerInfo,ot=!0,zt(e,t,n),ye=r,ot=s;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&nl(n,t,a),s=s.next}while(s!==r)}zt(e,t,n);break;case 1:if(!Ne&&(Hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){oe(n,t,l)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,zt(e,t,n),Ne=r):zt(e,t,n);break;default:zt(e,t,n)}}function dd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new d0),t.forEach(function(r){var s=w0.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ye=l.stateNode,ot=!1;break e;case 3:ye=l.stateNode.containerInfo,ot=!0;break e;case 4:ye=l.stateNode.containerInfo,ot=!0;break e}l=l.return}if(ye===null)throw Error(E(160));Wp(i,a,s),ye=null,ot=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){oe(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hp(t,e),t=t.sibling}function Hp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rt(t,e),ft(e),r&4){try{Wr(3,e,e.return),co(3,e)}catch(v){oe(e,e.return,v)}try{Wr(5,e,e.return)}catch(v){oe(e,e.return,v)}}break;case 1:rt(t,e),ft(e),r&512&&n!==null&&Hn(n,n.return);break;case 5:if(rt(t,e),ft(e),r&512&&n!==null&&Hn(n,n.return),e.flags&32){var s=e.stateNode;try{es(s,"")}catch(v){oe(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&hh(s,i),Ma(l,a);var c=Ma(l,i);for(a=0;a<u.length;a+=2){var d=u[a],h=u[a+1];d==="style"?vh(s,h):d==="dangerouslySetInnerHTML"?gh(s,h):d==="children"?es(s,h):Ll(s,d,h,c)}switch(l){case"input":Na(s,i);break;case"textarea":ph(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Jn(s,!!i.multiple,y,!1):f!==!!i.multiple&&(i.defaultValue!=null?Jn(s,!!i.multiple,i.defaultValue,!0):Jn(s,!!i.multiple,i.multiple?[]:"",!1))}s[us]=i}catch(v){oe(e,e.return,v)}}break;case 6:if(rt(t,e),ft(e),r&4){if(e.stateNode===null)throw Error(E(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){oe(e,e.return,v)}}break;case 3:if(rt(t,e),ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ss(t.containerInfo)}catch(v){oe(e,e.return,v)}break;case 4:rt(t,e),ft(e);break;case 13:rt(t,e),ft(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(hu=ce())),r&4&&dd(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(c=Ne)||d,rt(t,e),Ne=c):rt(t,e),ft(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(h=R=d;R!==null;){switch(f=R,y=f.child,f.tag){case 0:case 11:case 14:case 15:Wr(4,f,f.return);break;case 1:Hn(f,f.return);var j=f.stateNode;if(typeof j.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(v){oe(r,n,v)}}break;case 5:Hn(f,f.return);break;case 22:if(f.memoizedState!==null){hd(h);continue}}y!==null?(y.return=f,R=y):hd(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,u=h.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=yh("display",a))}catch(v){oe(e,e.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){oe(e,e.return,v)}}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:rt(t,e),ft(e),r&4&&dd(e);break;case 21:break;default:rt(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Up(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(es(s,""),r.flags&=-33);var i=cd(e);il(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=cd(e);sl(e,l,a);break;default:throw Error(E(161))}}catch(u){oe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function h0(e,t,n){R=e,Kp(e)}function Kp(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var s=R,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||qs;if(!a){var l=s.alternate,u=l!==null&&l.memoizedState!==null||Ne;l=qs;var c=Ne;if(qs=a,(Ne=u)&&!c)for(R=s;R!==null;)a=R,u=a.child,a.tag===22&&a.memoizedState!==null?pd(s):u!==null?(u.return=a,R=u):pd(s);for(;i!==null;)R=i,Kp(i),i=i.sibling;R=s,qs=l,Ne=c}fd(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,R=i):fd(e)}}function fd(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||co(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:it(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Yc(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yc(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&ss(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}Ne||t.flags&512&&rl(t)}catch(f){oe(t,t.return,f)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function hd(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function pd(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{co(4,t)}catch(u){oe(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){oe(t,s,u)}}var i=t.return;try{rl(t)}catch(u){oe(t,i,u)}break;case 5:var a=t.return;try{rl(t)}catch(u){oe(t,a,u)}}}catch(u){oe(t,t.return,u)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var p0=Math.ceil,Bi=Vt.ReactCurrentDispatcher,du=Vt.ReactCurrentOwner,Je=Vt.ReactCurrentBatchConfig,W=0,ge=null,fe=null,xe=0,Oe=0,Kn=ln(0),pe=0,ms=null,En=0,fo=0,fu=0,Hr=null,Re=null,hu=0,dr=1/0,St=null,$i=!1,ol=null,Yt=null,Ys=!1,Ut=null,Ui=0,Kr=0,al=null,mi=-1,gi=0;function Me(){return W&6?ce():mi!==-1?mi:mi=ce()}function Xt(e){return e.mode&1?W&2&&xe!==0?xe&-xe:Xv.transition!==null?(gi===0&&(gi=Ah()),gi):(e=K,e!==0||(e=window.event,e=e===void 0?16:bh(e.type)),e):1}function ut(e,t,n,r){if(50<Kr)throw Kr=0,al=null,Error(E(185));Ts(e,n,r),(!(W&2)||e!==ge)&&(e===ge&&(!(W&2)&&(fo|=n),pe===4&&Bt(e,xe)),ze(e,r),n===1&&W===0&&!(t.mode&1)&&(dr=ce()+500,ao&&un()))}function ze(e,t){var n=e.callbackNode;Xy(e,t);var r=Ti(e,e===ge?xe:0);if(r===0)n!==null&&kc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&kc(n),t===1)e.tag===0?Yv(md.bind(null,e)):np(md.bind(null,e)),Kv(function(){!(W&6)&&un()}),n=null;else{switch(Dh(r)){case 1:n=Il;break;case 4:n=Eh;break;case 16:n=Ci;break;case 536870912:n=Mh;break;default:n=Ci}n=em(n,Gp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gp(e,t){if(mi=-1,gi=0,W&6)throw Error(E(327));var n=e.callbackNode;if(sr()&&e.callbackNode!==n)return null;var r=Ti(e,e===ge?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wi(e,r);else{t=r;var s=W;W|=2;var i=qp();(ge!==e||xe!==t)&&(St=null,dr=ce()+500,wn(e,t));do try{y0();break}catch(l){Qp(e,l)}while(!0);Zl(),Bi.current=i,W=s,fe!==null?t=0:(ge=null,xe=0,t=pe)}if(t!==0){if(t===2&&(s=La(e),s!==0&&(r=s,t=ll(e,s))),t===1)throw n=ms,wn(e,0),Bt(e,r),ze(e,ce()),n;if(t===6)Bt(e,r);else{if(s=e.current.alternate,!(r&30)&&!m0(s)&&(t=Wi(e,r),t===2&&(i=La(e),i!==0&&(r=i,t=ll(e,i))),t===1))throw n=ms,wn(e,0),Bt(e,r),ze(e,ce()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:pn(e,Re,St);break;case 3:if(Bt(e,r),(r&130023424)===r&&(t=hu+500-ce(),10<t)){if(Ti(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=$a(pn.bind(null,e,Re,St),t);break}pn(e,Re,St);break;case 4:if(Bt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-lt(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p0(r/1960))-r,10<r){e.timeoutHandle=$a(pn.bind(null,e,Re,St),r);break}pn(e,Re,St);break;case 5:pn(e,Re,St);break;default:throw Error(E(329))}}}return ze(e,ce()),e.callbackNode===n?Gp.bind(null,e):null}function ll(e,t){var n=Hr;return e.current.memoizedState.isDehydrated&&(wn(e,t).flags|=256),e=Wi(e,t),e!==2&&(t=Re,Re=n,t!==null&&ul(t)),e}function ul(e){Re===null?Re=e:Re.push.apply(Re,e)}function m0(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!ct(i(),s))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 Bt(e,t){for(t&=~fu,t&=~fo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function md(e){if(W&6)throw Error(E(327));sr();var t=Ti(e,0);if(!(t&1))return ze(e,ce()),null;var n=Wi(e,t);if(e.tag!==0&&n===2){var r=La(e);r!==0&&(t=r,n=ll(e,r))}if(n===1)throw n=ms,wn(e,0),Bt(e,t),ze(e,ce()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,Re,St),ze(e,ce()),null}function pu(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(dr=ce()+500,ao&&un())}}function Mn(e){Ut!==null&&Ut.tag===0&&!(W&6)&&sr();var t=W;W|=1;var n=Je.transition,r=K;try{if(Je.transition=null,K=1,e)return e()}finally{K=r,Je.transition=n,W=t,!(W&6)&&un()}}function mu(){Oe=Kn.current,X(Kn)}function wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hv(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(ql(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Di();break;case 3:ur(),X(Le),X(Te),su();break;case 5:ru(r);break;case 4:ur();break;case 13:X(te);break;case 19:X(te);break;case 10:Jl(r.type._context);break;case 22:case 23:mu()}n=n.return}if(ge=e,fe=e=Zt(e.current,null),xe=Oe=t,pe=0,ms=null,fu=fo=En=0,Re=Hr=null,vn!==null){for(t=0;t<vn.length;t++)if(n=vn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}vn=null}return e}function Qp(e,t){do{var n=fe;try{if(Zl(),fi.current=Fi,Ii){for(var r=re.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ii=!1}if(Pn=0,me=he=re=null,Ur=!1,fs=0,du.current=null,n===null||n.return===null){pe=1,ms=t,fe=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=xe,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=l,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 y=nd(a);if(y!==null){y.flags&=-257,rd(y,a,l,i,t),y.mode&1&&td(i,c,t),t=y,u=c;var j=t.updateQueue;if(j===null){var v=new Set;v.add(u),t.updateQueue=v}else j.add(u);break e}else{if(!(t&1)){td(i,c,t),gu();break e}u=Error(E(426))}}else if(J&&l.mode&1){var C=nd(a);if(C!==null){!(C.flags&65536)&&(C.flags|=256),rd(C,a,l,i,t),Yl(cr(u,l));break e}}i=u=cr(u,l),pe!==4&&(pe=2),Hr===null?Hr=[i]:Hr.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Dp(i,u,t);qc(i,m);break e;case 1:l=u;var p=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Yt===null||!Yt.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=Rp(i,l,t);qc(i,w);break e}}i=i.return}while(i!==null)}Xp(n)}catch(x){t=x,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(!0)}function qp(){var e=Bi.current;return Bi.current=Fi,e===null?Fi:e}function gu(){(pe===0||pe===3||pe===2)&&(pe=4),ge===null||!(En&268435455)&&!(fo&268435455)||Bt(ge,xe)}function Wi(e,t){var n=W;W|=2;var r=qp();(ge!==e||xe!==t)&&(St=null,wn(e,t));do try{g0();break}catch(s){Qp(e,s)}while(!0);if(Zl(),W=n,Bi.current=r,fe!==null)throw Error(E(261));return ge=null,xe=0,pe}function g0(){for(;fe!==null;)Yp(fe)}function y0(){for(;fe!==null&&!$y();)Yp(fe)}function Yp(e){var t=Jp(e.alternate,e,Oe);e.memoizedProps=e.pendingProps,t===null?Xp(e):fe=t,du.current=null}function Xp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=c0(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pe=6,fe=null;return}}else if(n=u0(n,t,Oe),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);pe===0&&(pe=5)}function pn(e,t,n){var r=K,s=Je.transition;try{Je.transition=null,K=1,v0(e,t,n,r)}finally{Je.transition=s,K=r}return null}function v0(e,t,n,r){do sr();while(Ut!==null);if(W&6)throw Error(E(327));n=e.finishedWork;var s=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 i=n.lanes|n.childLanes;if(Zy(e,i),e===ge&&(fe=ge=null,xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ys||(Ys=!0,em(Ci,function(){return sr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Je.transition,Je.transition=null;var a=K;K=1;var l=W;W|=4,du.current=null,f0(e,n),Hp(n,e),Ov(Fa),Pi=!!Ia,Fa=Ia=null,e.current=n,h0(n),Uy(),W=l,K=a,Je.transition=i}else e.current=n;if(Ys&&(Ys=!1,Ut=e,Ui=s),i=e.pendingLanes,i===0&&(Yt=null),Ky(n.stateNode),ze(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if($i)throw $i=!1,e=ol,ol=null,e;return Ui&1&&e.tag!==0&&sr(),i=e.pendingLanes,i&1?e===al?Kr++:(Kr=0,al=e):Kr=0,un(),null}function sr(){if(Ut!==null){var e=Dh(Ui),t=Je.transition,n=K;try{if(Je.transition=null,K=16>e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,Ui=0,W&6)throw Error(E(331));var s=W;for(W|=4,R=e.current;R!==null;){var i=R,a=i.child;if(R.flags&16){var l=i.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(R=c;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:Wr(8,d,i)}var h=d.child;if(h!==null)h.return=d,R=h;else for(;R!==null;){d=R;var f=d.sibling,y=d.return;if($p(d),d===c){R=null;break}if(f!==null){f.return=y,R=f;break}R=y}}}var j=i.alternate;if(j!==null){var v=j.child;if(v!==null){j.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}R=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,R=a;else e:for(;R!==null;){if(i=R,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Wr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,R=m;break e}R=i.return}}var p=e.current;for(R=p;R!==null;){a=R;var g=a.child;if(a.subtreeFlags&2064&&g!==null)g.return=a,R=g;else e:for(a=p;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:co(9,l)}}catch(x){oe(l,l.return,x)}if(l===a){R=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,R=w;break e}R=l.return}}if(W=s,un(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(no,e)}catch{}r=!0}return r}finally{K=n,Je.transition=t}}return!1}function gd(e,t,n){t=cr(n,t),t=Dp(e,t,1),e=qt(e,t,1),t=Me(),e!==null&&(Ts(e,1,t),ze(e,t))}function oe(e,t,n){if(e.tag===3)gd(e,e,n);else for(;t!==null;){if(t.tag===3){gd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yt===null||!Yt.has(r))){e=cr(n,e),e=Rp(t,e,1),t=qt(t,e,1),e=Me(),t!==null&&(Ts(t,1,e),ze(t,e));break}}t=t.return}}function x0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(xe&n)===n&&(pe===4||pe===3&&(xe&130023424)===xe&&500>ce()-hu?wn(e,0):fu|=n),ze(e,t)}function Zp(e,t){t===0&&(e.mode&1?(t=Fs,Fs<<=1,!(Fs&130023424)&&(Fs=4194304)):t=1);var n=Me();e=Dt(e,t),e!==null&&(Ts(e,t,n),ze(e,n))}function j0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zp(e,n)}function w0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Zp(e,n)}var Jp;Jp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,l0(e,t,n);_e=!!(e.flags&131072)}else _e=!1,J&&t.flags&1048576&&rp(t,Li,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pi(e,t),e=t.pendingProps;var s=or(t,Te.current);rr(t,n),s=ou(null,t,r,e,s,n);var i=au();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(i=!0,Ri(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,tu(t),s.updater=uo,t.stateNode=s,s._reactInternals=t,qa(t,r,e,n),t=Za(null,t,r,!0,i,n)):(t.tag=0,J&&i&&Ql(t),Ee(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pi(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=k0(r),e=it(r,e),s){case 0:t=Xa(null,t,r,e,n);break e;case 1:t=od(null,t,r,e,n);break e;case 11:t=sd(null,t,r,e,n);break e;case 14:t=id(null,t,r,it(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),Xa(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),od(e,t,r,s,n);case 3:e:{if(zp(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,s=i.element,up(e,t),bi(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=cr(Error(E(423)),t),t=ad(e,t,r,n,s);break e}else if(r!==s){s=cr(Error(E(424)),t),t=ad(e,t,r,n,s);break e}else for(Be=Qt(t.stateNode.containerInfo.firstChild),$e=t,J=!0,at=null,n=ap(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===s){t=Rt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return cp(t),e===null&&Ka(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,Ba(r,s)?a=null:i!==null&&Ba(r,i)&&(t.flags|=32),Vp(e,t),Ee(e,t,a,n),t.child;case 6:return e===null&&Ka(t),null;case 13:return bp(e,t,n);case 4:return nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lr(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),sd(e,t,r,s,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,Q(Vi,r._currentValue),r._currentValue=a,i!==null)if(ct(i.value,a)){if(i.children===s.children&&!Le.current){t=Rt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Tt(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ga(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(E(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Ga(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ee(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,rr(t,n),s=et(s),r=r(s),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,s=it(r,t.pendingProps),s=it(r.type,s),id(e,t,r,s,n);case 15:return _p(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),pi(e,t),t.tag=1,Ve(r)?(e=!0,Ri(t)):e=!1,rr(t,n),Ap(t,r,s),qa(t,r,s,n),Za(null,t,r,!0,e,n);case 19:return Op(e,t,n);case 22:return Lp(e,t,n)}throw Error(E(156,t.tag))};function em(e,t){return Ph(e,t)}function S0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new S0(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k0(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zl)return 11;if(e===bl)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function yi(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")yu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case zn:return Sn(n.children,s,i,t);case Vl:a=8,s|=8;break;case xa:return e=Ze(12,n,t,s|2),e.elementType=xa,e.lanes=i,e;case ja:return e=Ze(13,n,t,s),e.elementType=ja,e.lanes=i,e;case wa:return e=Ze(19,n,t,s),e.elementType=wa,e.lanes=i,e;case ch:return ho(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lh:a=10;break e;case uh:a=9;break e;case zl:a=11;break e;case bl:a=14;break e;case Ot:a=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ze(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Sn(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function ho(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=ch,e.lanes=n,e.stateNode={isHidden:!1},e}function Yo(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Xo(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N0(e,t,n,r,s){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=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function vu(e,t,n,r,s,i,a,l,u){return e=new N0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tu(i),e}function C0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function tm(e){if(!e)return nn;e=e._reactInternals;e:{if(Dn(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(Ve(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(Ve(n))return tp(e,n,t)}return t}function nm(e,t,n,r,s,i,a,l,u){return e=vu(n,r,!0,e,s,i,a,l,u),e.context=tm(null),n=e.current,r=Me(),s=Xt(n),i=Tt(r,s),i.callback=t??null,qt(n,i,s),e.current.lanes=s,Ts(e,s,r),ze(e,r),e}function po(e,t,n,r){var s=t.current,i=Me(),a=Xt(s);return n=tm(n),t.context===null?t.context=n:t.pendingContext=n,t=Tt(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qt(s,t,a),e!==null&&(ut(e,s,a,i),di(e,s,a)),a}function Hi(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 yd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xu(e,t){yd(e,t),(e=e.alternate)&&yd(e,t)}function T0(){return null}var rm=typeof reportError=="function"?reportError:function(e){console.error(e)};function ju(e){this._internalRoot=e}mo.prototype.render=ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));po(e,t,null,null)};mo.prototype.unmount=ju.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){po(null,e,null,null)}),t[At]=null}};function mo(e){this._internalRoot=e}mo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&zh(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function go(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vd(){}function P0(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Hi(a);i.call(c)}}var a=nm(t,r,e,0,null,!1,!1,"",vd);return e._reactRootContainer=a,e[At]=a.current,as(e.nodeType===8?e.parentNode:e),Mn(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var c=Hi(u);l.call(c)}}var u=vu(e,0,!1,null,null,!1,!1,"",vd);return e._reactRootContainer=u,e[At]=u.current,as(e.nodeType===8?e.parentNode:e),Mn(function(){po(t,u,n,r)}),u}function yo(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var u=Hi(a);l.call(u)}}po(t,a,e,s)}else a=P0(n,t,e,s,r);return Hi(a)}Rh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rr(t.pendingLanes);n!==0&&(Fl(t,n|1),ze(t,ce()),!(W&6)&&(dr=ce()+500,un()))}break;case 13:Mn(function(){var r=Dt(e,1);if(r!==null){var s=Me();ut(r,e,1,s)}}),xu(e,1)}};Bl=function(e){if(e.tag===13){var t=Dt(e,134217728);if(t!==null){var n=Me();ut(t,e,134217728,n)}xu(e,134217728)}};_h=function(e){if(e.tag===13){var t=Xt(e),n=Dt(e,t);if(n!==null){var r=Me();ut(n,e,t,r)}xu(e,t)}};Lh=function(){return K};Vh=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};Da=function(e,t,n){switch(t){case"input":if(Na(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 s=oo(r);if(!s)throw Error(E(90));fh(r),Na(r,s)}}}break;case"textarea":ph(e,n);break;case"select":t=n.value,t!=null&&Jn(e,!!n.multiple,t,!1)}};wh=pu;Sh=Mn;var E0={usingClientEntryPoint:!1,Events:[Es,Fn,oo,xh,jh,pu]},Er={findFiberByHostInstance:yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M0={bundleType:Er.bundleType,version:Er.version,rendererPackageName:Er.rendererPackageName,rendererConfig:Er.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ch(e),e===null?null:e.stateNode},findFiberByHostInstance:Er.findFiberByHostInstance||T0,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 Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{no=Xs.inject(M0),gt=Xs}catch{}}Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E0;Ke.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(E(200));return C0(e,t,null,n)};Ke.createRoot=function(e,t){if(!wu(e))throw Error(E(299));var n=!1,r="",s=rm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=vu(e,1,!1,null,null,n,!1,r,s),e[At]=t.current,as(e.nodeType===8?e.parentNode:e),new ju(t)};Ke.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=Ch(t),e=e===null?null:e.stateNode,e};Ke.flushSync=function(e){return Mn(e)};Ke.hydrate=function(e,t,n){if(!go(t))throw Error(E(200));return yo(null,e,t,!0,n)};Ke.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=rm;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=nm(t,null,e,1,n??null,s,!1,i,a),e[At]=t.current,as(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new mo(t)};Ke.render=function(e,t,n){if(!go(t))throw Error(E(200));return yo(null,e,t,!1,n)};Ke.unmountComponentAtNode=function(e){if(!go(e))throw Error(E(40));return e._reactRootContainer?(Mn(function(){yo(null,null,e,!1,function(){e._reactRootContainer=null,e[At]=null})}),!0):!1};Ke.unstable_batchedUpdates=pu;Ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!go(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return yo(e,t,n,!1,r)};Ke.version="18.3.1-next-f1338f8080-20240426";function sm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sm)}catch(e){console.error(e)}}sm(),sh.exports=Ke;var A0=sh.exports,xd=A0;ya.createRoot=xd.createRoot,ya.hydrateRoot=xd.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 D0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),im=(...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 R0={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 _0=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},u)=>k.createElement("svg",{ref:u,...R0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:im("lucide",s),...l},[...a.map(([c,d])=>k.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
|
|
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 O=(e,t)=>{const n=k.forwardRef(({className:r,...s},i)=>k.createElement(_0,{ref:i,iconNode:t,className:im(`lucide-${D0(e)}`,r),...s}));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 kn=O("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 fr=O("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 om=O("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=O("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 gs=O("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 rn=O("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 am=O("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 vt=O("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 V0=O("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
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 ys=O("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"}]]);/**
|
|
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 Zo=O("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
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 vs=O("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 lm=O("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
|
|
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 z0=O("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"}]]);/**
|
|
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 b0=O("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"}]]);/**
|
|
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 Su=O("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"}]]);/**
|
|
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 O0=O("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"}]]);/**
|
|
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 I0=O("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"}]]);/**
|
|
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 mt=O("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"}]]);/**
|
|
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 ku=O("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
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 cl=O("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"}]]);/**
|
|
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 F0=O("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"}]]);/**
|
|
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 vo=O("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"}]]);/**
|
|
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 B0=O("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"}]]);/**
|
|
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 jd=O("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"}]]);/**
|
|
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 $0=O("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 U0=O("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
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 wd=O("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"}]]);/**
|
|
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 Jt=O("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"}]]);/**
|
|
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 um=O("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"}]]);/**
|
|
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 W0=O("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
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 H0=O("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 _t=O("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"}]]);/**
|
|
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 Nu=O("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 cm=O("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"}]]);/**
|
|
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 vi=O("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"}]]);/**
|
|
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 Gr=O("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"}]]);/**
|
|
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 K0=O("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"}]]);/**
|
|
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 G0=O("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
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 Ki=O("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
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 Q0=O("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"}]]);/**
|
|
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 Cu=O("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"}]]);/**
|
|
271
|
+
* @license lucide-react v0.441.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const dm=O("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"}]]);/**
|
|
276
|
+
* @license lucide-react v0.441.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const wt=O("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"}]]);/**
|
|
281
|
+
* @license lucide-react v0.441.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const q0=O("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
286
|
+
* @license lucide-react v0.441.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const dl=O("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"}]]);/**
|
|
291
|
+
* @license lucide-react v0.441.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const Tu=O("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
296
|
+
* @license lucide-react v0.441.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const Wt=O("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"}]]),Pu=k.createContext({});function Eu(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const xo=k.createContext(null),Mu=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Y0 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 X0({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),s=k.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=k.useContext(Mu);return k.useInsertionEffect(()=>{const{width:a,height:l,top:u,left:c}=s.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
301
|
+
[data-motion-pop-id="${n}"] {
|
|
302
|
+
position: absolute !important;
|
|
303
|
+
width: ${a}px !important;
|
|
304
|
+
height: ${l}px !important;
|
|
305
|
+
top: ${u}px !important;
|
|
306
|
+
left: ${c}px !important;
|
|
307
|
+
}
|
|
308
|
+
`),()=>{document.head.removeChild(d)}},[t]),o.jsx(Y0,{isPresent:t,childRef:r,sizeRef:s,children:k.cloneElement(e,{ref:r})})}const Z0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a})=>{const l=Eu(J0),u=k.useId(),c=k.useCallback(h=>{l.set(h,!0);for(const f of l.values())if(!f)return;r&&r()},[l,r]),d=k.useMemo(()=>({id:u,initial:t,isPresent:n,custom:s,onExitComplete:c,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),c]:[n,c]);return k.useMemo(()=>{l.forEach((h,f)=>l.set(f,!1))},[n]),k.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=o.jsx(X0,{isPresent:n,children:e})),o.jsx(xo.Provider,{value:d,children:e})};function J0(){return new Map}function fm(e=!0){const t=k.useContext(xo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=k.useId();k.useEffect(()=>{e&&s(i)},[e]);const a=k.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Zs=e=>e.key||"";function Sd(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Au=typeof window<"u",hm=Au?k.useLayoutEffect:k.useEffect,ex=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1})=>{const[l,u]=fm(a),c=k.useMemo(()=>Sd(e),[e]),d=a&&!l?[]:c.map(Zs),h=k.useRef(!0),f=k.useRef(c),y=Eu(()=>new Map),[j,v]=k.useState(c),[C,m]=k.useState(c);hm(()=>{h.current=!1,f.current=c;for(let w=0;w<C.length;w++){const x=Zs(C[w]);d.includes(x)?y.delete(x):y.get(x)!==!0&&y.set(x,!1)}},[C,d.length,d.join("-")]);const p=[];if(c!==j){let w=[...c];for(let x=0;x<C.length;x++){const S=C[x],N=Zs(S);d.includes(N)||(w.splice(x,0,S),p.push(S))}i==="wait"&&p.length&&(w=p),m(Sd(w)),v(c);return}const{forceRender:g}=k.useContext(Pu);return o.jsx(o.Fragment,{children:C.map(w=>{const x=Zs(w),S=a&&!l?!1:c===C||d.includes(x),N=()=>{if(y.has(x))y.set(x,!0);else return;let P=!0;y.forEach(D=>{D||(P=!1)}),P&&(g==null||g(),m(f.current),a&&(u==null||u()),r&&r())};return o.jsx(Z0,{isPresent:S,initial:!h.current||n?void 0:!1,custom:S?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:S?void 0:N,children:w},x)})})},Ue=e=>e;let pm=Ue;function Du(e){let t;return()=>(t===void 0&&(t=e()),t)}const hr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pt=e=>e*1e3,Et=e=>e/1e3,tx={useManualTiming:!1};function nx(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,h=!1)=>{const y=h&&r?t:n;return d&&i.add(c),y.has(c)||y.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(a=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Js=["read","resolveKeyframes","update","preRender","render","postRender"],rx=40;function mm(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Js.reduce((m,p)=>(m[p]=nx(i),m),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:h,postRender:f}=a,y=()=>{const m=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(m-s.timestamp,rx),1),s.timestamp=m,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},j=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:Js.reduce((m,p)=>{const g=a[p];return m[p]=(w,x=!1,S=!1)=>(n||j(),g.schedule(w,x,S)),m},{}),cancel:m=>{for(let p=0;p<Js.length;p++)a[Js[p]].cancel(m)},state:s,steps:a}}const{schedule:Z,cancel:sn,state:ve,steps:Jo}=mm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ue,!0),gm=k.createContext({strict:!1}),kd={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"]},pr={};for(const e in kd)pr[e]={isEnabled:t=>kd[e].some(n=>!!t[n])};function sx(e){for(const t in e)pr[t]={...pr[t],...e[t]}}const ix=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 Gi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ix.has(e)}let ym=e=>!Gi(e);function ox(e){e&&(ym=t=>t.startsWith("on")?!Gi(t):e(t))}try{ox(require("@emotion/is-prop-valid").default)}catch{}function ax(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(ym(s)||n===!0&&Gi(s)||!t&&!Gi(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function lx(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const jo=k.createContext({});function xs(e){return typeof e=="string"||Array.isArray(e)}function wo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ru=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_u=["initial",...Ru];function So(e){return wo(e.animate)||_u.some(t=>xs(e[t]))}function vm(e){return!!(So(e)||e.variants)}function ux(e,t){if(So(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xs(n)?n:void 0,animate:xs(r)?r:void 0}}return e.inherit!==!1?t:{}}function cx(e){const{initial:t,animate:n}=ux(e,k.useContext(jo));return k.useMemo(()=>({initial:t,animate:n}),[Nd(t),Nd(n)])}function Nd(e){return Array.isArray(e)?e.join(" "):e}const dx=Symbol.for("motionComponentSymbol");function Gn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fx(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):Gn(n)&&(n.current=r))},[t])}const Lu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hx="framerAppearId",xm="data-"+Lu(hx),{schedule:Vu}=mm(queueMicrotask,!1),jm=k.createContext({});function px(e,t,n,r,s){var i,a;const{visualElement:l}=k.useContext(jo),u=k.useContext(gm),c=k.useContext(xo),d=k.useContext(Mu).reducedMotion,h=k.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,y=k.useContext(jm);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&mx(h.current,n,s,y);const j=k.useRef(!1);k.useInsertionEffect(()=>{f&&j.current&&f.update(n,c)});const v=n[xm],C=k.useRef(!!v&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return hm(()=>{f&&(j.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Vu.render(f.render),C.current&&f.animationState&&f.animationState.animateChanges())}),k.useEffect(()=>{f&&(!C.current&&f.animationState&&f.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,v)}),C.current=!1))}),f}function mx(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:wm(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Gn(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:c})}function wm(e){if(e)return e.options.allowProjection!==!1?e.projection:wm(e.parent)}function gx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,a;e&&sx(e);function l(c,d){let h;const f={...k.useContext(Mu),...c,layoutId:yx(c)},{isStatic:y}=f,j=cx(c),v=r(c,y);if(!y&&Au){vx();const C=xx(f);h=C.MeasureLayout,j.visualElement=px(s,v,f,t,C.ProjectionNode)}return o.jsxs(jo.Provider,{value:j,children:[h&&j.visualElement?o.jsx(h,{visualElement:j.visualElement,...f}):null,n(s,c,fx(v,j.visualElement,d),v,y,j.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(a=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&a!==void 0?a:""})`}`;const u=k.forwardRef(l);return u[dx]=s,u}function yx({layoutId:e}){const t=k.useContext(Pu).id;return t&&e!==void 0?t+"-"+e:e}function vx(e,t){k.useContext(gm).strict}function xx(e){const{drag:t,layout:n}=pr;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 jx=["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 zu(e){return typeof e!="string"||e.includes("-")?!1:!!(jx.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 bu(e,t,n,r){if(typeof t=="function"){const[s,i]=Cd(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Cd(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const fl=e=>Array.isArray(e),wx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Sx=e=>fl(e)?e[e.length-1]||0:e,Ce=e=>!!(e&&e.getVelocity);function xi(e){const t=Ce(e)?e.get():e;return wx(t)?t.toValue():t}function kx({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const a={latestValues:Nx(r,s,i,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const Sm=e=>(t,n)=>{const r=k.useContext(jo),s=k.useContext(xo),i=()=>kx(e,t,r,s);return n?i():Eu(i)};function Nx(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=xi(i[f]);let{initial:a,animate:l}=e;const u=So(e),c=vm(e);t&&c&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?l:a;if(h&&typeof h!="boolean"&&!wo(h)){const f=Array.isArray(h)?h:[h];for(let y=0;y<f.length;y++){const j=bu(e,f[y]);if(j){const{transitionEnd:v,transition:C,...m}=j;for(const p in m){let g=m[p];if(Array.isArray(g)){const w=d?g.length-1:0;g=g[w]}g!==null&&(s[p]=g)}for(const p in v)s[p]=v[p]}}}return s}const xr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rn=new Set(xr),km=e=>t=>typeof t=="string"&&t.startsWith(e),Nm=km("--"),Cx=km("var(--"),Ou=e=>Cx(e)?Tx.test(e.split("/*")[0].trim()):!1,Tx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lt=(e,t,n)=>n>t?t:n<e?e:n,jr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},js={...jr,transform:e=>Lt(0,1,e)},ei={...jr,default:1},As=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bt=As("deg"),xt=As("%"),z=As("px"),Px=As("vh"),Ex=As("vw"),Td={...xt,parse:e=>xt.parse(e)/100,transform:e=>xt.transform(e*100)},Mx={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z},Ax={rotate:bt,rotateX:bt,rotateY:bt,rotateZ:bt,scale:ei,scaleX:ei,scaleY:ei,scaleZ:ei,skew:bt,skewX:bt,skewY:bt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:js,originX:Td,originY:Td,originZ:z},Pd={...jr,transform:Math.round},Iu={...Mx,...Ax,zIndex:Pd,size:z,fillOpacity:js,strokeOpacity:js,numOctaves:Pd},Dx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rx=xr.length;function _x(e,t,n){let r="",s=!0;for(let i=0;i<Rx;i++){const a=xr[i],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(a.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const c=Cm(l,Iu[a]);if(!u){s=!1;const d=Dx[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Fu(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const u in t){const c=t[u];if(Rn.has(u)){a=!0;continue}else if(Nm(u)){s[u]=c;continue}else{const d=Cm(c,Iu[u]);u.startsWith("origin")?(l=!0,i[u]=d):r[u]=d}}if(t.transform||(a||n?r.transform=_x(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${c} ${d}`}}const Lx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vx={offset:"strokeDashoffset",array:"strokeDasharray"};function zx(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Lx:Vx;e[i.offset]=z.transform(-r);const a=z.transform(t),l=z.transform(n);e[i.array]=`${a} ${l}`}function Ed(e,t,n){return typeof e=="string"?e:z.transform(t+n*e)}function bx(e,t,n){const r=Ed(t,e.x,e.width),s=Ed(n,e.y,e.height);return`${r} ${s}`}function Bu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...c},d,h){if(Fu(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:j}=e;f.transform&&(j&&(y.transform=f.transform),delete f.transform),j&&(s!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=bx(j,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),a!==void 0&&zx(f,a,l,u,!1)}const $u=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Tm=()=>({...$u(),attrs:{}}),Uu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Pm(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Em=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 Mm(e,t,n,r){Pm(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Em.has(s)?s:Lu(s),t.attrs[s])}const Qi={};function Ox(e){Object.assign(Qi,e)}function Am(e,{layout:t,layoutId:n}){return Rn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qi[e]||e==="opacity")}function Wu(e,t,n){var r;const{style:s}=e,i={};for(const a in s)(Ce(s[a])||t.style&&Ce(t.style[a])||Am(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=s[a]);return i}function Dm(e,t,n){const r=Wu(e,t,n);for(const s in e)if(Ce(e[s])||Ce(t[s])){const i=xr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Ix(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 Md=["x","y","width","height","cx","cy","r"],Fx={useVisualState:Sm({scrapeMotionValuesFromProps:Dm,createRenderState:Tm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in s)if(Rn.has(l)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let l=0;l<Md.length;l++){const u=Md[l];e[u]!==t[u]&&(a=!0)}a&&Z.read(()=>{Ix(n,r),Z.render(()=>{Bu(r,s,Uu(n.tagName),e.transformTemplate),Mm(n,r)})})}})},Bx={useVisualState:Sm({scrapeMotionValuesFromProps:Wu,createRenderState:$u})};function Rm(e,t,n){for(const r in t)!Ce(t[r])&&!Am(r,n)&&(e[r]=t[r])}function $x({transformTemplate:e},t){return k.useMemo(()=>{const n=$u();return Fu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ux(e,t){const n=e.style||{},r={};return Rm(r,n,e),Object.assign(r,$x(e,t)),r}function Wx(e,t){const n={},r=Ux(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 Hx(e,t,n,r){const s=k.useMemo(()=>{const i=Tm();return Bu(i,t,Uu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Rm(i,e.style,e),s.style={...i,...s.style}}return s}function Kx(e=!1){return(n,r,s,{latestValues:i},a)=>{const u=(zu(n)?Hx:Wx)(r,i,a,n),c=ax(r,typeof n=="string",e),d=n!==k.Fragment?{...c,...u,ref:s}:{},{children:h}=r,f=k.useMemo(()=>Ce(h)?h.get():h,[h]);return k.createElement(n,{...d,children:f})}}function Gx(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...zu(r)?Fx:Bx,preloadedFeatures:e,useRender:Kx(s),createVisualElement:t,Component:r};return gx(a)}}function _m(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 ko(e,t,n){const r=e.getProps();return bu(r,t,n!==void 0?n:r.custom,e)}const Qx=Du(()=>window.ScrollTimeline!==void 0);class qx{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(s=>{if(Qx()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].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 Yx extends qx{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Hu(e,t){return e?e[t]||e.default||e:void 0}const hl=2e4;function Lm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hl;)t+=n,r=e.next(t);return t>=hl?1/0:t}function Ku(e){return typeof e=="function"}function Ad(e,t){e.timeline=t,e.onfinish=null}const Gu=e=>Array.isArray(e)&&typeof e[0]=="number",Xx={linearEasing:void 0};function Zx(e,t){const n=Du(e);return()=>{var r;return(r=Xx[t])!==null&&r!==void 0?r:n()}}const qi=Zx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vm=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(hr(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function zm(e){return!!(typeof e=="function"&&qi()||!e||typeof e=="string"&&(e in pl||qi())||Gu(e)||Array.isArray(e)&&e.every(zm))}const Lr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lr([0,.65,.55,1]),circOut:Lr([.55,0,1,.45]),backIn:Lr([.31,.01,.66,-.59]),backOut:Lr([.33,1.53,.69,.99])};function bm(e,t){if(e)return typeof e=="function"&&qi()?Vm(e,t):Gu(e)?Lr(e):Array.isArray(e)?e.map(n=>bm(n,t)||pl.easeOut):pl[e]}const st={x:!1,y:!1};function Om(){return st.x||st.y}function Jx(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Im(e,t){const n=Jx(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Dd(e){return t=>{t.pointerType==="touch"||Om()||e(t)}}function e1(e,t,n={}){const[r,s,i]=Im(e,n),a=Dd(l=>{const{target:u}=l,c=t(l);if(typeof c!="function"||!u)return;const d=Dd(h=>{c(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",a,s)}),i}const Fm=(e,t)=>t?e===t?!0:Fm(e,t.parentElement):!1,Qu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,t1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function n1(e){return t1.has(e.tagName)||e.tabIndex!==-1}const Vr=new WeakSet;function Rd(e){return t=>{t.key==="Enter"&&e(t)}}function ea(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const r1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Rd(()=>{if(Vr.has(n))return;ea(n,"down");const s=Rd(()=>{ea(n,"up")}),i=()=>ea(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _d(e){return Qu(e)&&!Om()}function s1(e,t,n={}){const[r,s,i]=Im(e,n),a=l=>{const u=l.currentTarget;if(!_d(l)||Vr.has(u))return;Vr.add(u);const c=t(l),d=(y,j)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!_d(y)||!Vr.has(u))&&(Vr.delete(u),typeof c=="function"&&c(y,{success:j}))},h=y=>{d(y,n.useGlobalTarget||Fm(u,y.target))},f=y=>{d(y,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{!n1(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),l.addEventListener("focus",c=>r1(c,s),s)}),i}function i1(e){return e==="x"||e==="y"?st[e]?null:(st[e]=!0,()=>{st[e]=!1}):st.x||st.y?null:(st.x=st.y=!0,()=>{st.x=st.y=!1})}const Bm=new Set(["width","height","top","left","right","bottom",...xr]);let ji;function o1(){ji=void 0}const jt={now:()=>(ji===void 0&&jt.set(ve.isProcessing||tx.useManualTiming?ve.timestamp:performance.now()),ji),set:e=>{ji=e,queueMicrotask(o1)}};function qu(e,t){e.indexOf(t)===-1&&e.push(t)}function Yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xu{constructor(){this.subscriptions=[]}add(t){return qu(this.subscriptions,t),()=>Yu(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function $m(e,t){return t?e*(1e3/t):0}const Ld=30,a1=e=>!isNaN(parseFloat(e));class l1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=jt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&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=jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=a1(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 Xu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.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=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ld)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ld);return $m(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 ws(e,t){return new l1(e,t)}function u1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ws(n))}function c1(e,t){const n=ko(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=Sx(i[a]);u1(e,a,l)}}function d1(e){return!!(Ce(e)&&e.add)}function ml(e,t){const n=e.getValue("willChange");if(d1(n))return n.add(t)}function Um(e){return e.props[xm]}const Wm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,f1=1e-7,h1=12;function p1(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=Wm(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>f1&&++l<h1);return a}function Ds(e,t,n,r){if(e===t&&n===r)return Ue;const s=i=>p1(i,0,1,e,n);return i=>i===0||i===1?i:Wm(s(i),t,r)}const Hm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Km=e=>t=>1-e(1-t),Gm=Ds(.33,1.53,.69,.99),Zu=Km(Gm),Qm=Hm(Zu),qm=e=>(e*=2)<1?.5*Zu(e):.5*(2-Math.pow(2,-10*(e-1))),Ju=e=>1-Math.sin(Math.acos(e)),Ym=Km(Ju),Xm=Hm(Ju),Zm=e=>/^0[^.\s]+$/u.test(e);function m1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zm(e):!0}const Qr=e=>Math.round(e*1e5)/1e5,ec=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function g1(e){return e==null}const y1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tc=(e,t)=>n=>!!(typeof n=="string"&&y1.test(n)&&n.startsWith(e)||t&&!g1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Jm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(ec);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},v1=e=>Lt(0,255,e),ta={...jr,transform:e=>Math.round(v1(e))},jn={test:tc("rgb","red"),parse:Jm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ta.transform(e)+", "+ta.transform(t)+", "+ta.transform(n)+", "+Qr(js.transform(r))+")"};function x1(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const gl={test:tc("#"),parse:x1,transform:jn.transform},Qn={test:tc("hsl","hue"),parse:Jm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xt.transform(Qr(t))+", "+xt.transform(Qr(n))+", "+Qr(js.transform(r))+")"},ke={test:e=>jn.test(e)||gl.test(e)||Qn.test(e),parse:e=>jn.test(e)?jn.parse(e):Qn.test(e)?Qn.parse(e):gl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?jn.transform(e):Qn.transform(e)},j1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function w1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ec))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(j1))===null||n===void 0?void 0:n.length)||0)>0}const eg="number",tg="color",S1="var",k1="var(",Vd="${}",N1=/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 Ss(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(N1,u=>(ke.test(u)?(r.color.push(i),s.push(tg),n.push(ke.parse(u))):u.startsWith(k1)?(r.var.push(i),s.push(S1),n.push(u)):(r.number.push(i),s.push(eg),n.push(parseFloat(u))),++i,Vd)).split(Vd);return{values:n,split:l,indexes:r,types:s}}function ng(e){return Ss(e).values}function rg(e){const{split:t,types:n}=Ss(e),r=t.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],s[a]!==void 0){const l=n[a];l===eg?i+=Qr(s[a]):l===tg?i+=ke.transform(s[a]):i+=s[a]}return i}}const C1=e=>typeof e=="number"?0:e;function T1(e){const t=ng(e);return rg(e)(t.map(C1))}const on={test:w1,parse:ng,createTransformer:rg,getAnimatableNone:T1},P1=new Set(["brightness","contrast","saturate","opacity"]);function E1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ec)||[];if(!r)return e;const s=n.replace(r,"");let i=P1.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const M1=/\b([a-z-]*)\(.*?\)/gu,yl={...on,getAnimatableNone:e=>{const t=e.match(M1);return t?t.map(E1).join(" "):e}},A1={...Iu,color:ke,backgroundColor:ke,outlineColor:ke,fill:ke,stroke:ke,borderColor:ke,borderTopColor:ke,borderRightColor:ke,borderBottomColor:ke,borderLeftColor:ke,filter:yl,WebkitFilter:yl},nc=e=>A1[e];function sg(e,t){let n=nc(e);return n!==yl&&(n=on),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const D1=new Set(["auto","none","0"]);function R1(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!D1.has(i)&&Ss(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=sg(n,s)}const zd=e=>e===jr||e===z,bd=(e,t)=>parseFloat(e.split(", ")[t]),Od=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return bd(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?bd(i[1],e):0}},_1=new Set(["x","y","z"]),L1=xr.filter(e=>!_1.has(e));function V1(e){const t=[];return L1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const mr={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:Od(4,13),y:Od(5,14)};mr.translateX=mr.x;mr.translateY=mr.y;const Nn=new Set;let vl=!1,xl=!1;function ig(){if(xl){const e=Array.from(Nn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=V1(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,a])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xl=!1,vl=!1,Nn.forEach(e=>e.complete()),Nn.clear()}function og(){Nn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xl=!0)})}function z1(){og(),ig()}class rc{constructor(t,n,r,s,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Nn.add(this),vl||(vl=!0,Z.read(og),Z.resolveKeyframes(ig))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=s==null?void 0:s.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),s&&a===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Nn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Nn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ag=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),b1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O1(e){const t=b1.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function lg(e,t,n=1){const[r,s]=O1(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return ag(a)?parseFloat(a):a}return Ou(s)?lg(s,t,n+1):s}const ug=e=>t=>t.test(e),I1={test:e=>e==="auto",parse:e=>e},cg=[jr,z,xt,bt,Ex,Px,I1],Id=e=>cg.find(ug(e));class dg extends rc{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),Ou(c))){const d=lg(c,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Bm.has(r)||t.length!==2)return;const[s,i]=t,a=Id(s),l=Id(i);if(a!==l)if(zd(a)&&zd(l))for(let u=0;u<t.length;u++){const c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)m1(t[s])&&r.push(s);r.length&&R1(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=mr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=s.length-1,l=s[a];s[a]=mr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,c])=>{n.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const Fd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(on.test(e)||e==="0")&&!e.startsWith("url("));function F1(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 B1(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=Fd(s,t),l=Fd(i,t);return!a||!l?!1:F1(e)||(n==="spring"||Ku(n))&&r}const $1=e=>e!==null;function No(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter($1),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const U1=40;class fg{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jt.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>U1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&z1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=jt.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:a,onComplete:l,onUpdate:u,isGenerator:c}=this.options;if(!c&&!B1(t,r,s,i))if(a)this.options.duration=0;else{u&&u(No(t,this.options,n)),l&&l(),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 ne=(e,t,n)=>e+(t-e)*n;function na(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 W1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;s=na(u,l,e+1/3),i=na(u,l,e),a=na(u,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Yi(e,t){return n=>n>0?t:e}const ra=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},H1=[gl,jn,Qn],K1=e=>H1.find(t=>t.test(e));function Bd(e){const t=K1(e);if(!t)return!1;let n=t.parse(e);return t===Qn&&(n=W1(n)),n}const $d=(e,t)=>{const n=Bd(e),r=Bd(t);if(!n||!r)return Yi(e,t);const s={...n};return i=>(s.red=ra(n.red,r.red,i),s.green=ra(n.green,r.green,i),s.blue=ra(n.blue,r.blue,i),s.alpha=ne(n.alpha,r.alpha,i),jn.transform(s))},G1=(e,t)=>n=>t(e(n)),Rs=(...e)=>e.reduce(G1),jl=new Set(["none","hidden"]);function Q1(e,t){return jl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function q1(e,t){return n=>ne(e,t,n)}function sc(e){return typeof e=="number"?q1:typeof e=="string"?Ou(e)?Yi:ke.test(e)?$d:Z1:Array.isArray(e)?hg:typeof e=="object"?ke.test(e)?$d:Y1:Yi}function hg(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>sc(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function Y1(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=sc(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function X1(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],l=e.indexes[a][s[a]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=u,s[a]++}return r}const Z1=(e,t)=>{const n=on.createTransformer(t),r=Ss(e),s=Ss(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?jl.has(e)&&!s.values.length||jl.has(t)&&!r.values.length?Q1(e,t):Rs(hg(X1(r,s),s.values),n):Yi(e,t)};function pg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):sc(e)(e,t)}const J1=5;function mg(e,t,n){const r=Math.max(t-J1,0);return $m(n-e(r),t-r)}const ie={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},sa=.001;function ej({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let s,i,a=1-t;a=Lt(ie.minDamping,ie.maxDamping,a),e=Lt(ie.minDuration,ie.maxDuration,Et(e)),a<1?(s=c=>{const d=c*a,h=d*e,f=d-n,y=wl(c,a),j=Math.exp(-h);return sa-f/y*j},i=c=>{const h=c*a*e,f=h*n+n,y=Math.pow(a,2)*Math.pow(c,2)*e,j=Math.exp(-h),v=wl(Math.pow(c,2),a);return(-s(c)+sa>0?-1:1)*((f-y)*j)/v}):(s=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-sa+d*h},i=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const l=5/e,u=nj(s,i,l);if(e=Pt(e),isNaN(u))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const tj=12;function nj(e,t,n){let r=n;for(let s=1;s<tj;s++)r=r-e(r)/t(r);return r}function wl(e,t){return e*Math.sqrt(1-t*t)}const rj=["duration","bounce"],sj=["stiffness","damping","mass"];function Ud(e,t){return t.some(n=>e[n]!==void 0)}function ij(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!Ud(e,sj)&&Ud(e,rj))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Lt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ie.mass,stiffness:s,damping:i}}else{const n=ej(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function gg(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:y}=ij({...n,velocity:-Et(n.velocity||0)}),j=f||0,v=c/(2*Math.sqrt(u*d)),C=a-i,m=Et(Math.sqrt(u/d)),p=Math.abs(C)<5;r||(r=p?ie.restSpeed.granular:ie.restSpeed.default),s||(s=p?ie.restDelta.granular:ie.restDelta.default);let g;if(v<1){const x=wl(m,v);g=S=>{const N=Math.exp(-v*m*S);return a-N*((j+v*m*C)/x*Math.sin(x*S)+C*Math.cos(x*S))}}else if(v===1)g=x=>a-Math.exp(-m*x)*(C+(j+m*C)*x);else{const x=m*Math.sqrt(v*v-1);g=S=>{const N=Math.exp(-v*m*S),P=Math.min(x*S,300);return a-N*((j+v*m*C)*Math.sinh(P)+x*C*Math.cosh(P))/x}}const w={calculatedDuration:y&&h||null,next:x=>{const S=g(x);if(y)l.done=x>=h;else{let N=0;v<1&&(N=x===0?Pt(j):mg(g,x,S));const P=Math.abs(N)<=r,D=Math.abs(a-S)<=s;l.done=P&&D}return l.value=l.done?a:S,l},toString:()=>{const x=Math.min(Lm(w),hl),S=Vm(N=>w.next(x*N).value,x,30);return x+"ms "+S}};return w}function Wd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},y=P=>l!==void 0&&P<l||u!==void 0&&P>u,j=P=>l===void 0?u:u===void 0||Math.abs(l-P)<Math.abs(u-P)?l:u;let v=n*t;const C=h+v,m=a===void 0?C:a(C);m!==C&&(v=m-h);const p=P=>-v*Math.exp(-P/r),g=P=>m+p(P),w=P=>{const D=p(P),M=g(P);f.done=Math.abs(D)<=c,f.value=f.done?m:M};let x,S;const N=P=>{y(f.value)&&(x=P,S=gg({keyframes:[f.value,j(f.value)],velocity:mg(g,P,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return N(0),{calculatedDuration:null,next:P=>{let D=!1;return!S&&x===void 0&&(D=!0,w(P),N(P)),x!==void 0&&P>=x?S.next(P-x):(!D&&w(P),f)}}}const oj=Ds(.42,0,1,1),aj=Ds(0,0,.58,1),yg=Ds(.42,0,.58,1),lj=e=>Array.isArray(e)&&typeof e[0]!="number",uj={linear:Ue,easeIn:oj,easeInOut:yg,easeOut:aj,circIn:Ju,circInOut:Xm,circOut:Ym,backIn:Zu,backInOut:Qm,backOut:Gm,anticipate:qm},Hd=e=>{if(Gu(e)){pm(e.length===4);const[t,n,r,s]=e;return Ds(t,n,r,s)}else if(typeof e=="string")return uj[e];return e};function cj(e,t,n){const r=[],s=n||pg,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Ue:t;l=Rs(u,l)}r.push(l)}return r}function dj(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(pm(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=cj(t,r,s),u=l.length,c=d=>{if(a&&d<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=hr(e[h],e[h+1],d);return l[h](f)};return n?d=>c(Lt(e[0],e[i-1],d)):c}function fj(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=hr(0,t,r);e.push(ne(n,1,s))}}function hj(e){const t=[0];return fj(t,e.length-1),t}function pj(e,t){return e.map(n=>n*t)}function mj(e,t){return e.map(()=>t||yg).splice(0,e.length-1)}function Xi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=lj(r)?r.map(Hd):Hd(r),i={done:!1,value:t[0]},a=pj(n&&n.length===t.length?n:hj(t),e),l=dj(a,t,{ease:Array.isArray(s)?s:mj(t,s)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const gj=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>sn(t),now:()=>ve.isProcessing?ve.timestamp:jt.now()}},yj={decay:Wd,inertia:Wd,tween:Xi,keyframes:Xi,spring:gg},vj=e=>e/100;class ic extends fg{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,a=(s==null?void 0:s.KeyframeResolver)||rc,l=(u,c)=>this.onKeyframesResolved(u,c);this.resolver=new a(i,l,n,r,s),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:s=0,repeatType:i,velocity:a=0}=this.options,l=Ku(n)?n:yj[n]||Xi;let u,c;l!==Xi&&typeof t[0]!="number"&&(u=Rs(vj,pg(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Lm(d));const{calculatedDuration:h}=d,f=h+s,y=f*(r+1)-s;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:f,totalDuration:y}}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:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:j,repeatDelay:v,onUpdate:C}=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,w=i;if(y){const P=Math.min(this.currentTime,d)/h;let D=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(j==="reverse"?(M=1-M,v&&(M-=v/h)):j==="mirror"&&(w=a)),g=Lt(0,1,M)*h}const x=p?{done:!1,value:u[0]}:w.next(g);l&&(x.value=l(x.value));let{done:S}=x;!p&&c!==null&&(S=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return N&&s!==void 0&&(x.value=No(u,this.options,s)),C&&C(x.value),N&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Et(t.calculatedDuration):0}get time(){return Et(this.currentTime)}set time(t){t=Pt(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=Et(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=gj,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):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 xj=new Set(["opacity","clipPath","filter","transform"]);function jj(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){const c={[t]:n};u&&(c.offset=u);const d=bm(l,s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const wj=Du(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zi=10,Sj=2e4;function kj(e){return Ku(e.type)||e.type==="spring"||!zm(e.ease)}function Nj(e,t){const n=new ic({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<Sj;)r=n.sample(i),s.push(r.value),i+=Zi;return{times:void 0,keyframes:s,duration:i-Zi,ease:"linear"}}const vg={anticipate:qm,backInOut:Qm,circInOut:Xm};function Cj(e){return e in vg}class Kd extends fg{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new dg(i,(a,l)=>this.onKeyframesResolved(a,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&qi()&&Cj(i)&&(i=vg[i]),kj(this.options)){const{onComplete:h,onUpdate:f,motionValue:y,element:j,...v}=this.options,C=Nj(t,v);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,s=C.times,i=C.ease,a="keyframes"}const d=jj(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ad(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(No(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Et(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Et(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Pt(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 Ue;const{animation:r}=n;Ad(r,t)}return Ue}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:s,type:i,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:h,element:f,...y}=this.options,j=new ic({...y,keyframes:r,duration:s,type:i,ease:a,times:l,isGenerator:!0}),v=Pt(this.time);c.setWithVelocity(j.sample(v-Zi).value,j.sample(v).value,Zi)}const{onStop:u}=this.options;u&&u(),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:s,repeatType:i,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=n.owner.getProps();return wj()&&r&&xj.has(r)&&!u&&!c&&!s&&i!=="mirror"&&a!==0&&l!=="inertia"}}const Tj={type:"spring",stiffness:500,damping:25,restSpeed:10},Pj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ej={type:"keyframes",duration:.8},Mj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Aj=(e,{keyframes:t})=>t.length>2?Ej:Rn.has(e)?e.startsWith("scale")?Pj(t[1]):Tj:Mj;function Dj({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const oc=(e,t,n,r={},s,i)=>a=>{const l=Hu(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Pt(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};Dj(l)||(d={...d,...Aj(e,d)}),d.duration&&(d.duration=Pt(d.duration)),d.repeatDelay&&(d.repeatDelay=Pt(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&&!i&&t.get()!==void 0){const f=No(d.keyframes,l);if(f!==void 0)return Z.update(()=>{d.onUpdate(f),d.onComplete()}),new Yx([])}return!i&&Kd.supports(d)?new Kd(d):new ic(d)};function Rj({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(a=r);const c=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in u){const f=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),y=u[h];if(y===void 0||d&&Rj(d,h))continue;const j={delay:n,...Hu(a||{},h)};let v=!1;if(window.MotionHandoffAnimation){const m=Um(e);if(m){const p=window.MotionHandoffAnimation(m,h,Z);p!==null&&(j.startTime=p,v=!0)}}ml(e,h),f.start(oc(h,f,y,e.shouldReduceMotion&&Bm.has(h)?{type:!1}:j,e,v));const C=f.animation;C&&c.push(C)}return l&&Promise.all(c).then(()=>{Z.update(()=>{l&&c1(e,l)})}),c}function Sl(e,t,n={}){var r;const s=ko(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const a=s?()=>Promise.all(xg(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return _j(e,t,d+c,h,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[a,l]:[l,a];return c().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function _j(e,t,n=0,r=0,s=1,i){const a=[],l=(e.variantChildren.size-1)*r,u=s===1?(c=0)=>c*r:(c=0)=>l-c*r;return Array.from(e.variantChildren).sort(Lj).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Sl(c,t,{...i,delay:n+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function Lj(e,t){return e.sortNodePosition(t)}function Vj(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Sl(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Sl(e,t,n);else{const s=typeof t=="function"?ko(e,t,n.custom):t;r=Promise.all(xg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const zj=_u.length;function jg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<zj;n++){const r=_u[n],s=e.props[r];(xs(s)||s===!1)&&(t[r]=s)}return t}const bj=[...Ru].reverse(),Oj=Ru.length;function Ij(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vj(e,n,r)))}function Fj(e){let t=Ij(e),n=Gd(),r=!0;const s=u=>(c,d)=>{var h;const f=ko(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:y,transitionEnd:j,...v}=f;c={...c,...v,...j}}return c};function i(u){t=u(e)}function a(u){const{props:c}=e,d=jg(e.parent)||{},h=[],f=new Set;let y={},j=1/0;for(let C=0;C<Oj;C++){const m=bj[C],p=n[m],g=c[m]!==void 0?c[m]:d[m],w=xs(g),x=m===u?p.isActive:null;x===!1&&(j=C);let S=g===d[m]&&g!==c[m]&&w;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),p.protectedKeys={...y},!p.isActive&&x===null||!g&&!p.prevProp||wo(g)||typeof g=="boolean")continue;const N=Bj(p.prevProp,g);let P=N||m===u&&p.isActive&&!S&&w||C>j&&w,D=!1;const M=Array.isArray(g)?g:[g];let I=M.reduce(s(m),{});x===!1&&(I={});const{prevResolvedValues:F={}}=p,ae={...F,...I},de=U=>{P=!0,f.has(U)&&(D=!0,f.delete(U)),p.needsAnimating[U]=!0;const T=e.getValue(U);T&&(T.liveStyle=!1)};for(const U in ae){const T=I[U],A=F[U];if(y.hasOwnProperty(U))continue;let L=!1;fl(T)&&fl(A)?L=!_m(T,A):L=T!==A,L?T!=null?de(U):f.add(U):T!==void 0&&f.has(U)?de(U):p.protectedKeys[U]=!0}p.prevProp=g,p.prevResolvedValues=I,p.isActive&&(y={...y,...I}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(S&&N)||D)&&h.push(...M.map(U=>({animation:U,options:{type:m}})))}if(f.size){const C={};f.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),C[m]=p??null}),h.push({animation:C})}let v=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(h):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(u,c)}),n[u].isActive=c;const h=a(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Gd(),r=!0}}}function Bj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_m(t,e):!1}function fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gd(){return{animate:fn(!0),whileInView:fn(),whileHover:fn(),whileTap:fn(),whileDrag:fn(),whileFocus:fn(),exit:fn()}}class cn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $j extends cn{constructor(t){super(t),t.animationState||(t.animationState=Fj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wo(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 Uj=0;class Wj extends cn{constructor(){super(...arguments),this.id=Uj++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Hj={animation:{Feature:$j},exit:{Feature:Wj}};function ks(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _s(e){return{point:{x:e.pageX,y:e.pageY}}}const Kj=e=>t=>Qu(t)&&e(t,_s(t));function qr(e,t,n,r){return ks(e,t,Kj(n),r)}const Qd=(e,t)=>Math.abs(e-t);function Gj(e,t){const n=Qd(e.x,t.x),r=Qd(e.y,t.y);return Math.sqrt(n**2+r**2)}class wg{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!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=oa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=Gj(h.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:j}=h,{timestamp:v}=ve;this.history.push({...j,timestamp:v});const{onStart:C,onMove:m}=this.handlers;f||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ia(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:y,onSessionEnd:j,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=oa(h.type==="pointercancel"?this.lastMoveEventInfo:ia(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,C),j&&j(h,C)},!Qu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=_s(t),l=ia(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ve;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,oa(l,this.history)),this.removeListeners=Rs(qr(this.contextWindow,"pointermove",this.handlePointerMove),qr(this.contextWindow,"pointerup",this.handlePointerUp),qr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sn(this.updatePoint)}}function ia(e,t){return t?{point:t(e.point)}:e}function qd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oa({point:e},t){return{point:e,delta:qd(e,Sg(t)),offset:qd(e,Qj(t)),velocity:qj(t,.1)}}function Qj(e){return e[0]}function Sg(e){return e[e.length-1]}function qj(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Sg(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Pt(t)));)n--;if(!r)return{x:0,y:0};const i=Et(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const kg=1e-4,Yj=1-kg,Xj=1+kg,Ng=.01,Zj=0-Ng,Jj=0+Ng;function He(e){return e.max-e.min}function ew(e,t,n){return Math.abs(e-t)<=n}function Yd(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=He(n)/He(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yj&&e.scale<=Xj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zj&&e.translate<=Jj||isNaN(e.translate))&&(e.translate=0)}function Yr(e,t,n,r){Yd(e.x,t.x,n.x,r?r.originX:void 0),Yd(e.y,t.y,n.y,r?r.originY:void 0)}function Xd(e,t,n){e.min=n.min+t.min,e.max=e.min+He(t)}function tw(e,t,n){Xd(e.x,t.x,n.x),Xd(e.y,t.y,n.y)}function Zd(e,t,n){e.min=t.min-n.min,e.max=e.min+He(t)}function Xr(e,t,n){Zd(e.x,t.x,n.x),Zd(e.y,t.y,n.y)}function nw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Jd(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 rw(e,{top:t,left:n,bottom:r,right:s}){return{x:Jd(e.x,n,s),y:Jd(e.y,t,r)}}function ef(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 sw(e,t){return{x:ef(e.x,t.x),y:ef(e.y,t.y)}}function iw(e,t){let n=.5;const r=He(e),s=He(t);return s>r?n=hr(t.min,t.max-r,e.min):r>s&&(n=hr(e.min,e.max-s,t.min)),Lt(0,1,n)}function ow(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 kl=.35;function aw(e=kl){return e===!1?e=0:e===!0&&(e=kl),{x:tf(e,"left","right"),y:tf(e,"top","bottom")}}function tf(e,t,n){return{min:nf(e,t),max:nf(e,n)}}function nf(e,t){return typeof e=="number"?e:e[t]||0}const rf=()=>({translate:0,scale:1,origin:0,originPoint:0}),qn=()=>({x:rf(),y:rf()}),sf=()=>({min:0,max:0}),ue=()=>({x:sf(),y:sf()});function qe(e){return[e("x"),e("y")]}function Cg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function uw(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 aa(e){return e===void 0||e===1}function Nl({scale:e,scaleX:t,scaleY:n}){return!aa(e)||!aa(t)||!aa(n)}function mn(e){return Nl(e)||Tg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Tg(e){return of(e.x)||of(e.y)}function of(e){return e&&e!=="0%"}function Ji(e,t,n){const r=e-n,s=t*r;return n+s}function af(e,t,n,r,s){return s!==void 0&&(e=Ji(e,s,r)),Ji(e,n,r)+t}function Cl(e,t=0,n=1,r,s){e.min=af(e.min,t,n,r,s),e.max=af(e.max,t,n,r,s)}function Pg(e,{x:t,y:n}){Cl(e.x,t.translate,t.scale,t.originPoint),Cl(e.y,n.translate,n.scale,n.originPoint)}const lf=.999999999999,uf=1.0000000000001;function cw(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Xn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Pg(e,a)),r&&mn(i.latestValues)&&Xn(e,i.latestValues))}t.x<uf&&t.x>lf&&(t.x=1),t.y<uf&&t.y>lf&&(t.y=1)}function Yn(e,t){e.min=e.min+t,e.max=e.max+t}function cf(e,t,n,r,s=.5){const i=ne(e.min,e.max,s);Cl(e,t,n,i,r)}function Xn(e,t){cf(e.x,t.x,t.scaleX,t.scale,t.originX),cf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Eg(e,t){return Cg(uw(e.getBoundingClientRect(),t))}function dw(e,t,n){const r=Eg(e,n),{scroll:s}=t;return s&&(Yn(r.x,s.offset.x),Yn(r.y,s.offset.y)),r}const Mg=({current:e})=>e?e.ownerDocument.defaultView:null,fw=new WeakMap;class hw{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=ue(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_s(d).point)},i=(d,h)=>{const{drag:f,dragPropagation:y,onDragStart:j}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=i1(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),qe(C=>{let m=this.getAxisMotionValue(C).get()||0;if(xt.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[C];g&&(m=He(g)*(parseFloat(m)/100))}}this.originPoint[C]=m}),j&&Z.postRender(()=>j(d,h)),ml(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(d,h)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:j,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:C}=h;if(y&&this.currentDirection===null){this.currentDirection=pw(C),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),v&&v(d,h)},l=(d,h)=>this.stop(d,h),u=()=>qe(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 wg(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Mg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Z.postRender(()=>i(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:s}=this.getProps();if(!r||!ti(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=nw(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Gn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=rw(s.layoutBox,n):this.constraints=!1,this.elastic=aw(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&qe(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ow(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=dw(r,s.root,this.visualElement.getTransformPagePoint());let a=sw(s.layout.layoutBox,i);if(n){const l=n(lw(a));this.hasMutatedConstraints=!!l,l&&(a=Cg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=qe(d=>{if(!ti(d,n,this.currentDirection))return;let h=u&&u[d]||{};a&&(h={min:0,max:0});const f=s?200:1e6,y=s?40:1e7,j={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,j)});return Promise.all(c).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ml(this.visualElement,t),r.start(oc(t,r,0,n,this.visualElement,!1))}stopAnimation(){qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qe(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(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){qe(n=>{const{drag:r}=this.getProps();if(!ti(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n];i.set(t[n]-ne(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};qe(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const u=l.get();s[a]=iw({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qe(a=>{if(!ti(a,t,null))return;const l=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];l.set(ne(u,c,s[a]))})}addListeners(){if(!this.visualElement.current)return;fw.set(this.visualElement,this);const t=this.visualElement.current,n=qr(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Gn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Z.read(r);const a=ks(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(qe(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=kl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ti(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pw(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class mw extends cn{constructor(t){super(t),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new hw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const df=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class gw extends cn{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(t){this.session=new wg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Mg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:df(t),onStart:df(n),onMove:r,onEnd:(i,a)=>{delete this.session,s&&Z.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=qr(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 wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ff(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Mr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;const n=ff(e,t.target.x),r=ff(e,t.target.y);return`${n}% ${r}%`}},yw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=on.parse(e);if(s.length>5)return r;const i=on.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=u;const c=ne(l,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=c),typeof s[3+a]=="number"&&(s[3+a]/=c),i(s)}};class vw extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Ox(xw),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,s||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Z.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Vu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ag(e){const[t,n]=fm(),r=k.useContext(Pu);return o.jsx(vw,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(jm),isPresent:t,safeToRemove:n})}const xw={borderRadius:{...Mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mr,borderTopRightRadius:Mr,borderBottomLeftRadius:Mr,borderBottomRightRadius:Mr,boxShadow:yw};function jw(e,t,n){const r=Ce(e)?e:ws(e);return r.start(oc("",r,t,n)),r.animation}function ww(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Sw=(e,t)=>e.depth-t.depth;class kw{constructor(){this.children=[],this.isDirty=!1}add(t){qu(this.children,t),this.isDirty=!0}remove(t){Yu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Sw),this.isDirty=!1,this.children.forEach(t)}}function Nw(e,t){const n=jt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(sn(r),e(i-t))};return Z.read(r,!0),()=>sn(r)}const Dg=["TopLeft","TopRight","BottomLeft","BottomRight"],Cw=Dg.length,hf=e=>typeof e=="string"?parseFloat(e):e,pf=e=>typeof e=="number"||z.test(e);function Tw(e,t,n,r,s,i){s?(e.opacity=ne(0,n.opacity!==void 0?n.opacity:1,Pw(r)),e.opacityExit=ne(t.opacity!==void 0?t.opacity:1,0,Ew(r))):i&&(e.opacity=ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Cw;a++){const l=`border${Dg[a]}Radius`;let u=mf(t,l),c=mf(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||pf(u)===pf(c)?(e[l]=Math.max(ne(hf(u),hf(c),r),0),(xt.test(c)||xt.test(u))&&(e[l]+="%")):e[l]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function mf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Pw=Rg(0,.5,Ym),Ew=Rg(.5,.95,Ue);function Rg(e,t,n){return r=>r<e?0:r>t?1:n(hr(e,t,r))}function gf(e,t){e.min=t.min,e.max=t.max}function Qe(e,t){gf(e.x,t.x),gf(e.y,t.y)}function yf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vf(e,t,n,r,s){return e-=t,e=Ji(e,1/n,r),s!==void 0&&(e=Ji(e,1/s,r)),e}function Mw(e,t=0,n=1,r=.5,s,i=e,a=e){if(xt.test(t)&&(t=parseFloat(t),t=ne(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ne(i.min,i.max,r);e===i&&(l-=t),e.min=vf(e.min,t,n,l,s),e.max=vf(e.max,t,n,l,s)}function xf(e,t,[n,r,s],i,a){Mw(e,t[n],t[r],t[s],t.scale,i,a)}const Aw=["x","scaleX","originX"],Dw=["y","scaleY","originY"];function jf(e,t,n,r){xf(e.x,t,Aw,n?n.x:void 0,r?r.x:void 0),xf(e.y,t,Dw,n?n.y:void 0,r?r.y:void 0)}function wf(e){return e.translate===0&&e.scale===1}function _g(e){return wf(e.x)&&wf(e.y)}function Sf(e,t){return e.min===t.min&&e.max===t.max}function Rw(e,t){return Sf(e.x,t.x)&&Sf(e.y,t.y)}function kf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lg(e,t){return kf(e.x,t.x)&&kf(e.y,t.y)}function Nf(e){return He(e.x)/He(e.y)}function Cf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _w{constructor(){this.members=[]}add(t){qu(this.members,t),t.scheduleRender()}remove(t){if(Yu(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;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:s}=t.options;s===!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 Lw(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}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:y,skewY:j}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),j&&(r+=`skewY(${j}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const gn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zr=typeof window<"u"&&window.MotionDebug!==void 0,la=["","X","Y","Z"],Vw={visibility:"hidden"},Tf=1e3;let zw=0;function ua(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Um(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vg(r)}function zg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=zw++,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,zr&&(gn.totalNodes=gn.resolvedTargetDeltas=gn.recalculatedProjection=0),this.nodes.forEach(Iw),this.nodes.forEach(Ww),this.nodes.forEach(Hw),this.nodes.forEach(Fw),zr&&window.MotionDebug.record(gn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new kw)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Xu),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const u=this.eventHandlers.get(a);u&&u.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ww(a),this.instance=a;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(c||u)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Nw(f,250),wi.hasAnimatedSinceResize&&(wi.hasAnimatedSinceResize=!1,this.nodes.forEach(Ef))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||Yw,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!Lg(this.targetLayout,j)||y,g=!f&&y;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 w={...Hu(v,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Ef(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,sn(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(Kw),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vg(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:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Pf);return}this.isUpdating||this.nodes.forEach($w),this.isUpdating=!1,this.nodes.forEach(Uw),this.nodes.forEach(bw),this.nodes.forEach(Ow),this.clearAllSnapshots();const l=jt.now();ve.delta=Lt(0,1e3/60,l-ve.timestamp),ve.timestamp=l,ve.isProcessing=!0,Jo.update.process(ve),Jo.preRender.process(ve),Jo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Bw),this.sharedNodes.forEach(Gw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!_g(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(l||mn(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return a&&(u=this.removeTransform(u)),Xw(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return ue();const u=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(Zw))){const{scroll:d}=this.root;d&&(Yn(u.x,d.offset.x),Yn(u.y,d.offset.y))}return u}removeElementScroll(a){var l;const u=ue();if(Qe(u,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;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&&Qe(u,a),Yn(u.x,h.offset.x),Yn(u.y,h.offset.y))}return u}applyTransform(a,l=!1){const u=ue();Qe(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Xn(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),mn(d.latestValues)&&Xn(u,d.latestValues)}return mn(this.latestValues)&&Xn(u,this.latestValues),u}removeTransform(a){const l=ue();Qe(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!mn(c.latestValues))continue;Nl(c.latestValues)&&c.updateSnapshot();const d=ue(),h=c.measurePageBox();Qe(d,h),jf(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return mn(this.latestValues)&&jf(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Xr(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qe(this.target,this.layout.layoutBox),Pg(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Xr(this.relativeTargetOrigin,this.target,y.target),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zr&&gn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Nl(this.parent.latestValues)||Tg(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 a;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.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;Qe(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,y=this.treeScale.y;cw(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ue());const{target:j}=l;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yf(this.prevProjectionDelta.x,this.projectionDelta.x),yf(this.prevProjectionDelta.y,this.projectionDelta.y)),Yr(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==y||!Cf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),zr&&gn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qn(),this.projectionDelta=qn(),this.projectionDeltaWithTransform=qn()}setAnimationOrigin(a,l=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},h=qn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=ue(),y=u?u.source:void 0,j=this.layout?this.layout.source:void 0,v=y!==j,C=this.getStack(),m=!C||C.members.length<=1,p=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(qw));this.animationProgress=0;let g;this.mixTargetDelta=w=>{const x=w/1e3;Mf(h.x,a.x,x),Mf(h.y,a.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qw(this.relativeTarget,this.relativeTargetOrigin,f,x),g&&Rw(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ue()),Qe(g,this.relativeTarget)),v&&(this.animationValues=d,Tw(d,c,this.latestValues,x,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{wi.hasAnimatedSinceResize=!0,this.currentAnimation=jw(0,Tf,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=a;if(!(!l||!u||!c)){if(this!==a&&this.layout&&c&&bg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ue();const h=He(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+h;const f=He(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}Qe(l,u),Xn(l,d),Yr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _w),this.sharedNodes.get(a).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&ua("z",a,c,this.animationValues);for(let d=0;d<la.length;d++)ua(`rotate${la[d]}`,a,c,this.animationValues),ua(`skew${la[d]}`,a,c,this.animationValues);a.render();for(const d in c)a.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);a.scheduleRender()}getProjectionStyles(a){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Vw;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=xi(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=xi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!mn(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=Lw(this.projectionDeltaWithTransform,this.treeScale,f),d&&(c.transform=d(f,c.transform));const{x:y,y:j}=this.projectionDelta;c.transformOrigin=`${y.origin*100}% ${j.origin*100}% 0`,h.animationValues?c.opacity=h===this?(u=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u: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 v in Qi){if(f[v]===void 0)continue;const{correct:C,applyTo:m}=Qi[v],p=c.transform==="none"?f[v]:C(f[v],h);if(m){const g=m.length;for(let w=0;w<g;w++)c[m[w]]=p}else c[v]=p}return this.options.layoutId&&(c.pointerEvents=h===this?xi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Pf),this.root.sharedNodes.clear()}}}function bw(e){e.updateLayout()}function Ow(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:s}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?qe(h=>{const f=a?n.measuredBox[h]:n.layoutBox[h],y=He(f);f.min=r[h].min,f.max=f.min+y}):bg(i,n.layoutBox,r)&&qe(h=>{const f=a?n.measuredBox[h]:n.layoutBox[h],y=He(r[h]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+y)});const l=qn();Yr(l,r,n.layoutBox);const u=qn();a?Yr(u,e.applyTransform(s,!0),n.measuredBox):Yr(u,r,n.layoutBox);const c=!_g(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:y}=h;if(f&&y){const j=ue();Xr(j,n.layoutBox,f.layoutBox);const v=ue();Xr(v,r,y.layoutBox),Lg(j,v)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=j,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Iw(e){zr&&gn.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 Fw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Bw(e){e.clearSnapshot()}function Pf(e){e.clearMeasurements()}function $w(e){e.isLayoutDirty=!1}function Uw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ef(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ww(e){e.resolveTargetDelta()}function Hw(e){e.calcProjection()}function Kw(e){e.resetSkewAndRotation()}function Gw(e){e.removeLeadSnapshot()}function Mf(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Af(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Qw(e,t,n,r){Af(e.x,t.x,n.x,r),Af(e.y,t.y,n.y,r)}function qw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Yw={duration:.45,ease:[.4,0,.1,1]},Df=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rf=Df("applewebkit/")&&!Df("chrome/")?Math.round:Ue;function _f(e){e.min=Rf(e.min),e.max=Rf(e.max)}function Xw(e){_f(e.x),_f(e.y)}function bg(e,t,n){return e==="position"||e==="preserve-aspect"&&!ew(Nf(t),Nf(n),.2)}function Zw(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Jw=zg({attachResizeListener:(e,t)=>ks(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ca={current:void 0},Og=zg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ca.current){const e=new Jw({});e.mount(window),e.setOptions({layoutScroll:!0}),ca.current=e}return ca.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eS={pan:{Feature:gw},drag:{Feature:mw,ProjectionNode:Og,MeasureLayout:Ag}};function Lf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Z.postRender(()=>i(t,_s(t)))}class tS extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=e1(t,n=>(Lf(this.node,n,"Start"),r=>Lf(this.node,r,"End"))))}unmount(){}}class nS extends cn{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=Rs(ks(this.node.current,"focus",()=>this.onFocus()),ks(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Z.postRender(()=>i(t,_s(t)))}class rS extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=s1(t,n=>(Vf(this.node,n,"Start"),(r,{success:s})=>Vf(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Tl=new WeakMap,da=new WeakMap,sS=e=>{const t=Tl.get(e.target);t&&t(e)},iS=e=>{e.forEach(sS)};function oS({root:e,...t}){const n=e||document;da.has(n)||da.set(n,{});const r=da.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(iS,{root:e,...t})),r[s]}function aS(e,t,n){const r=oS(t);return Tl.set(e,n),r.observe(e),()=>{Tl.delete(e),r.unobserve(e)}}const lS={some:0,all:1};class uS extends cn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:lS[s]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,i&&!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(u)};return aS(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(cS(t,n))&&this.startObserver()}unmount(){}}function cS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dS={inView:{Feature:uS},tap:{Feature:rS},focus:{Feature:nS},hover:{Feature:tS}},fS={layout:{ProjectionNode:Og,MeasureLayout:Ag}},Pl={current:null},Ig={current:!1};function hS(){if(Ig.current=!0,!!Au)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pl.current=e.matches;e.addListener(t),t()}else Pl.current=!1}const pS=[...cg,ke,on],mS=e=>pS.find(ug(e)),zf=new WeakMap;function gS(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Ce(s))e.addValue(r,s);else if(Ce(i))e.addValue(r,ws(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,ws(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rc,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 y=jt.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Z.render(this.render,!1,!0))};const{latestValues:u,renderState:c,onUpdate:d}=a;this.onUpdate=d,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=So(n),this.isVariantNode=vm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in f){const j=f[y];u[y]!==void 0&&Ce(j)&&j.set(u[y],!1)}}mount(t){this.current=t,zf.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)),Ig.current||hS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zf.delete(this.current),this.projection&&this.projection.unmount(),sn(this.notifyUpdate),sn(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=Rn.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),a&&a(),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 pr){const n=pr[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}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<bf.length;r++){const s=bf[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=gS(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=ws(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=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 s!=null&&(typeof s=="string"&&(ag(s)||Zm(s))?s=parseFloat(s):!mS(s)&&on.test(n)&&(s=sg(t,n)),this.setBaseTarget(t,Ce(s)?s.get():s)),Ce(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=bu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ce(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Fg extends yS{constructor(){super(...arguments),this.KeyframeResolver=dg}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;Ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vS(e){return window.getComputedStyle(e)}class xS extends Fg{constructor(){super(...arguments),this.type="html",this.renderInstance=Pm}readValueFromInstance(t,n){if(Rn.has(n)){const r=nc(n);return r&&r.default||0}else{const r=vS(t),s=(Nm(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Eg(t,n)}build(t,n,r){Fu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Wu(t,n,r)}}class jS extends Fg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rn.has(n)){const r=nc(n);return r&&r.default||0}return n=Em.has(n)?n:Lu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Dm(t,n,r)}build(t,n,r){Bu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Mm(t,n,r,s)}mount(t){this.isSVGTag=Uu(t.tagName),super.mount(t)}}const wS=(e,t)=>zu(e)?new jS(t):new xS(t,{allowProjection:e!==k.Fragment}),SS=Gx({...Hj,...dS,...eS,...fS},wS),Pe=lx(SS);function Of(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 kS(e){if(Array.isArray(e))return e}function NS(e,t,n){return(t=DS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){c=!0,s=d}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return l}}function TS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
309
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?If(Object(n),!0).forEach(function(r){NS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PS(e,t){if(e==null)return{};var n,r,s=ES(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function ES(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 MS(e,t){return kS(e)||CS(e,t)||RS(e,t)||TS()}function AS(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 DS(e){var t=AS(e,"string");return typeof t=="symbol"?t:t+""}function RS(e,t){if(e){if(typeof e=="string")return Of(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)?Of(e,t):void 0}}function _S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bf(Object(n),!0).forEach(function(r){_S(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LS(){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(s,i){return i(s)},r)}}function br(e){return function t(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return s.length>=e.length?e.apply(this,s):function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function eo(e){return{}.toString.call(e).includes("Object")}function VS(e){return!Object.keys(e).length}function Ns(e){return typeof e=="function"}function zS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function bS(e,t){return eo(t)||en("changeType"),Object.keys(t).some(function(n){return!zS(e,n)})&&en("changeField"),t}function OS(e){Ns(e)||en("selectorType")}function IS(e){Ns(e)||eo(e)||en("handlerType"),eo(e)&&Object.values(e).some(function(t){return!Ns(t)})&&en("handlersType")}function FS(e){e||en("initialIsRequired"),eo(e)||en("initialType"),VS(e)&&en("initialContent")}function BS(e,t){throw new Error(e[t]||e.default)}var $S={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"},en=br(BS)($S),ni={changes:bS,selector:OS,handler:IS,initial:FS};function US(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ni.initial(e),ni.handler(t);var n={current:e},r=br(KS)(n,t),s=br(HS)(n),i=br(ni.changes)(e),a=br(WS)(n);function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return ni.selector(c),c(n.current)}function u(c){LS(r,s,i,a)(c)}return[l,u]}function WS(e,t){return Ns(t)?t(e.current):t}function HS(e,t){return e.current=$f($f({},e.current),t),t}function KS(e,t,n){return Ns(t)?t(e.current):Object.keys(n).forEach(function(r){var s;return(s=t[r])===null||s===void 0?void 0:s.call(t,e.current[r])}),n}var GS={create:US},QS={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function qS(e){return function t(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return s.length>=e.length?e.apply(this,s):function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function YS(e){return{}.toString.call(e).includes("Object")}function XS(e){return e||Uf("configIsRequired"),YS(e)||Uf("configType"),e.urls?(ZS(),{paths:{vs:e.urls.monacoBase}}):e}function ZS(){console.warn(Bg.deprecation)}function JS(e,t){throw new Error(e[t]||e.default)}var Bg={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!
|
|
310
|
+
You are using deprecated way of configuration.
|
|
311
|
+
|
|
312
|
+
Instead of using
|
|
313
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
314
|
+
use
|
|
315
|
+
monaco.config({ paths: { vs: '...' } })
|
|
316
|
+
|
|
317
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
318
|
+
`},Uf=qS(JS)(Bg),e2={config:XS},t2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(s){return n.reduceRight(function(i,a){return a(i)},s)}};function $g(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],$g(e[n],t[n]))}),Ff(Ff({},e),t)}var n2={type:"cancelation",msg:"operation is manually canceled"};function fa(e){var t=!1,n=new Promise(function(r,s){e.then(function(i){return t?s(n2):r(i)}),e.catch(s)});return n.cancel=function(){return t=!0},n}var r2=["monaco"],s2=GS.create({config:QS,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ug=MS(s2,2),Ls=Ug[0],Co=Ug[1];function i2(e){var t=e2.config(e),n=t.monaco,r=PS(t,r2);Co(function(s){return{config:$g(s.config,r),monaco:n}})}function o2(){var e=Ls(function(t){var n=t.monaco,r=t.isInitialized,s=t.resolve;return{monaco:n,isInitialized:r,resolve:s}});if(!e.isInitialized){if(Co({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fa(ha);if(window.monaco&&window.monaco.editor)return Wg(window.monaco),e.resolve(window.monaco),fa(ha);t2(a2,u2)(c2)}return fa(ha)}function a2(e){return document.body.appendChild(e)}function l2(e){var t=document.createElement("script");return e&&(t.src=e),t}function u2(e){var t=Ls(function(r){var s=r.config,i=r.reject;return{config:s,reject:i}}),n=l2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function c2(){var e=Ls(function(n){var r=n.config,s=n.resolve,i=n.reject;return{config:r,resolve:s,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Wg(r),e.resolve(r)},function(n){e.reject(n)})}function Wg(e){Ls().monaco||Co({monaco:e})}function d2(){return Ls(function(e){var t=e.monaco;return t})}var ha=new Promise(function(e,t){return Co({resolve:e,reject:t})}),Hg={config:i2,init:o2,__getMonacoInstance:d2},f2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},pa=f2,h2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},p2=h2;function m2({children:e}){return Fe.createElement("div",{style:p2.container},e)}var g2=m2,y2=g2;function v2({width:e,height:t,isEditorReady:n,loading:r,_ref:s,className:i,wrapperProps:a}){return Fe.createElement("section",{style:{...pa.wrapper,width:e,height:t},...a},!n&&Fe.createElement(y2,null,r),Fe.createElement("div",{ref:s,style:{...pa.fullWidth,...!n&&pa.hide},className:i}))}var x2=v2,Kg=k.memo(x2);function j2(e){k.useEffect(e,[])}var Gg=j2;function w2(e,t,n=!0){let r=k.useRef(!0);k.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Ie=w2;function Zr(){}function Zn(e,t,n,r){return S2(e,r)||k2(e,t,n,r)}function S2(e,t){return e.editor.getModel(Qg(e,t))}function k2(e,t,n,r){return e.editor.createModel(t,n,r?Qg(e,r):void 0)}function Qg(e,t){return e.Uri.parse(t)}function N2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:s,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:d="Loading...",options:h={},height:f="100%",width:y="100%",className:j,wrapperProps:v={},beforeMount:C=Zr,onMount:m=Zr}){let[p,g]=k.useState(!1),[w,x]=k.useState(!0),S=k.useRef(null),N=k.useRef(null),P=k.useRef(null),D=k.useRef(m),M=k.useRef(C),I=k.useRef(!1);Gg(()=>{let b=Hg.init();return b.then($=>(N.current=$)&&x(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>S.current?de():b.cancel()}),Ie(()=>{if(S.current&&N.current){let b=S.current.getOriginalEditor(),$=Zn(N.current,e||"",r||n||"text",i||"");$!==b.getModel()&&b.setModel($)}},[i],p),Ie(()=>{if(S.current&&N.current){let b=S.current.getModifiedEditor(),$=Zn(N.current,t||"",s||n||"text",a||"");$!==b.getModel()&&b.setModel($)}},[a],p),Ie(()=>{let b=S.current.getModifiedEditor();b.getOption(N.current.editor.EditorOption.readOnly)?b.setValue(t||""):t!==b.getValue()&&(b.executeEdits("",[{range:b.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),b.pushUndoStop())},[t],p),Ie(()=>{var b,$;($=(b=S.current)==null?void 0:b.getModel())==null||$.original.setValue(e||"")},[e],p),Ie(()=>{let{original:b,modified:$}=S.current.getModel();N.current.editor.setModelLanguage(b,r||n||"text"),N.current.editor.setModelLanguage($,s||n||"text")},[n,r,s],p),Ie(()=>{var b;(b=N.current)==null||b.editor.setTheme(c)},[c],p),Ie(()=>{var b;(b=S.current)==null||b.updateOptions(h)},[h],p);let F=k.useCallback(()=>{var U;if(!N.current)return;M.current(N.current);let b=Zn(N.current,e||"",r||n||"text",i||""),$=Zn(N.current,t||"",s||n||"text",a||"");(U=S.current)==null||U.setModel({original:b,modified:$})},[n,t,s,e,r,i,a]),ae=k.useCallback(()=>{var b;!I.current&&P.current&&(S.current=N.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...h}),F(),(b=N.current)==null||b.editor.setTheme(c),g(!0),I.current=!0)},[h,c,F]);k.useEffect(()=>{p&&D.current(S.current,N.current)},[p]),k.useEffect(()=>{!w&&!p&&ae()},[w,p,ae]);function de(){var $,U,T,A;let b=($=S.current)==null?void 0:$.getModel();l||((U=b==null?void 0:b.original)==null||U.dispose()),u||((T=b==null?void 0:b.modified)==null||T.dispose()),(A=S.current)==null||A.dispose()}return Fe.createElement(Kg,{width:y,height:f,isEditorReady:p,loading:d,_ref:P,className:j,wrapperProps:v})}var C2=N2,T2=k.memo(C2);function P2(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var E2=P2,ri=new Map;function M2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:s,path:i,theme:a="light",line:l,loading:u="Loading...",options:c={},overrideServices:d={},saveViewState:h=!0,keepCurrentModel:f=!1,width:y="100%",height:j="100%",className:v,wrapperProps:C={},beforeMount:m=Zr,onMount:p=Zr,onChange:g,onValidate:w=Zr}){let[x,S]=k.useState(!1),[N,P]=k.useState(!0),D=k.useRef(null),M=k.useRef(null),I=k.useRef(null),F=k.useRef(p),ae=k.useRef(m),de=k.useRef(),b=k.useRef(r),$=E2(i),U=k.useRef(!1),T=k.useRef(!1);Gg(()=>{let _=Hg.init();return _.then(V=>(D.current=V)&&P(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>M.current?L():_.cancel()}),Ie(()=>{var V,ee,G,be;let _=Zn(D.current,e||r||"",t||s||"",i||n||"");_!==((V=M.current)==null?void 0:V.getModel())&&(h&&ri.set($,(ee=M.current)==null?void 0:ee.saveViewState()),(G=M.current)==null||G.setModel(_),h&&((be=M.current)==null||be.restoreViewState(ri.get(i))))},[i],x),Ie(()=>{var _;(_=M.current)==null||_.updateOptions(c)},[c],x),Ie(()=>{!M.current||r===void 0||(M.current.getOption(D.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(T.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),T.current=!1))},[r],x),Ie(()=>{var V,ee;let _=(V=M.current)==null?void 0:V.getModel();_&&s&&((ee=D.current)==null||ee.editor.setModelLanguage(_,s))},[s],x),Ie(()=>{var _;l!==void 0&&((_=M.current)==null||_.revealLine(l))},[l],x),Ie(()=>{var _;(_=D.current)==null||_.editor.setTheme(a)},[a],x);let A=k.useCallback(()=>{var _;if(!(!I.current||!D.current)&&!U.current){ae.current(D.current);let V=i||n,ee=Zn(D.current,r||e||"",t||s||"",V||"");M.current=(_=D.current)==null?void 0:_.editor.create(I.current,{model:ee,automaticLayout:!0,...c},d),h&&M.current.restoreViewState(ri.get(V)),D.current.editor.setTheme(a),l!==void 0&&M.current.revealLine(l),S(!0),U.current=!0}},[e,t,n,r,s,i,c,d,h,a,l]);k.useEffect(()=>{x&&F.current(M.current,D.current)},[x]),k.useEffect(()=>{!N&&!x&&A()},[N,x,A]),b.current=r,k.useEffect(()=>{var _,V;x&&g&&((_=de.current)==null||_.dispose(),de.current=(V=M.current)==null?void 0:V.onDidChangeModelContent(ee=>{T.current||g(M.current.getValue(),ee)}))},[x,g]),k.useEffect(()=>{if(x){let _=D.current.editor.onDidChangeMarkers(V=>{var G;let ee=(G=M.current.getModel())==null?void 0:G.uri;if(ee&&V.find(be=>be.path===ee.path)){let be=D.current.editor.getModelMarkers({resource:ee});w==null||w(be)}});return()=>{_==null||_.dispose()}}return()=>{}},[x,w]);function L(){var _,V;(_=de.current)==null||_.dispose(),f?h&&ri.set(i,M.current.saveViewState()):(V=M.current.getModel())==null||V.dispose(),M.current.dispose()}return Fe.createElement(Kg,{width:y,height:j,isEditorReady:x,loading:u,_ref:I,className:v,wrapperProps:C})}var A2=M2,D2=k.memo(A2);const R2=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"},_2=new Set(["txt","log","env"]);function L2(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return _2.has(t)}const V2=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:s="dark",violations:i=[]})=>{const a=t!==n,l=R2(e),u=s==="dark"?"vs-dark":"light",c=L2(e)&&!a,d=h=>{if(!i.length||!h)return;const f=window.monaco;if(!f)return;const y=i.filter(j=>j.line).map(j=>({range:new f.Range(j.line,1,j.endLine||j.line,1),options:{isWholeLine:!0,className:"violation-line-highlight",glyphMarginClassName:"violation-glyph",glyphMarginHoverMessage:{value:`**[${j.id}] ${j.title}**
|
|
319
|
+
|
|
320
|
+
${j.details}`},overviewRuler:{color:"#f87171",position:f.editor.OverviewRulerLane.Full}}}));h.deltaDecorations([],y)};return o.jsx("div",{className:"diff-viewer-overlay",children:o.jsxs("div",{className:"diff-viewer-window",children:[o.jsxs("div",{className:"diff-viewer-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(mt,{size:18}),o.jsx("span",{children:e}),a&&o.jsx("span",{className:"diff-badge",children:"Modified"}),i.length>0&&o.jsxs("span",{className:"diff-badge",style:{background:"rgba(248, 113, 113, 0.12)",color:"#f87171",borderColor:"rgba(248, 113, 113, 0.3)"},children:[i.length," violation",i.length!==1?"s":""]})]}),o.jsx("button",{onClick:r,className:"close-btn",children:o.jsx(Tu,{size:20})})]}),c?o.jsx("pre",{className:"markdown-viewer",children:n}):o.jsx("div",{className:"diff-editor-container",children:a?o.jsx(T2,{height:"100%",language:l,original:t,modified:n,theme:u,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):o.jsx(D2,{height:"100%",language:l,value:n,theme:u,onMount:d,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",glyphMargin:i.length>0}})})]})})},z2=(e,t)=>{const n=[];e.forEach(s=>{const i=s.split("/");let a=n,l="";i.forEach((u,c)=>{l=l?`${l}/${u}`:u;const d=c<i.length-1;let h=a.find(f=>f.name===u);h||(h={name:u,path:l,isDirectory:d,children:[],isViolated:t.some(f=>f===l||f.startsWith(`${l}/`))},a.push(h)),a=h.children})});const r=s=>{s.sort((i,a)=>i.isDirectory&&!a.isDirectory?-1:!i.isDirectory&&a.isDirectory?1:i.name.localeCompare(a.name)),s.forEach(i=>r(i.children))};return r(n),n},qg=({node:e,level:t,onSelect:n,activeFile:r})=>{const[s,i]=k.useState(t===0),a=r===e.path,l=u=>{u.stopPropagation(),e.isDirectory?i(!s):n(e.path)};return o.jsxs("div",{className:"tree-node-container",children:[o.jsxs("div",{className:`tree-item ${a?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:l,children:[e.isDirectory?o.jsxs(o.Fragment,{children:[s?o.jsx(gs,{size:14,className:"chevron"}):o.jsx(rn,{size:14,className:"chevron"}),s?o.jsx(F0,{size:14,className:"folder-icon"}):o.jsx(vo,{size:14,className:"folder-icon"})]}):o.jsx(mt,{size:14,className:"file-icon"}),o.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&o.jsx(am,{size:12,className:"violation-icon"})]}),e.isDirectory&&s&&o.jsx("div",{className:"tree-children",children:e.children.map(u=>o.jsx(qg,{node:u,level:t+1,onSelect:n,activeFile:r},u.path))})]})},Wf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const s=k.useMemo(()=>z2(e,r),[e,r]);return o.jsxs("div",{className:"file-tree",children:[o.jsxs("div",{className:"tree-header",children:[o.jsx(vo,{size:14}),o.jsx("span",{children:"Project Explorer"})]}),o.jsx("div",{className:"tree-list",children:s.length===0?o.jsx("div",{className:"empty-tree-state",children:"No files found"}):s.map(i=>o.jsx(qg,{node:i,level:0,onSelect:t,activeFile:n},i.path))})]})},ma=e=>typeof e=="string"?e:JSON.stringify(e,null,2),b2=()=>{const[e,t]=k.useState({memories:{}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[a,l]=k.useState(!0),[u,c]=k.useState(!1),d=async()=>{l(!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{l(!1)}};k.useEffect(()=>{d()},[]);const h=Object.entries(e.memories||{}),f=h.filter(([m])=>m.toLowerCase().includes(s.toLowerCase())),y=n?e.memories[n]:null,j=m=>{try{return new Date(m).toLocaleString()}catch{return m}},v=()=>{y&&(navigator.clipboard.writeText(ma(y.value)),c(!0),setTimeout(()=>c(!1),2e3))},C=m=>{const p=ma(m);if(p.includes("1)")&&p.includes("2)")){const g=p.split(/(\d+\))/);return o.jsx("div",{className:"formatted-content",children:g.map((w,x)=>{if(/^\d+\)$/.test(w))return o.jsx("div",{className:"section-marker",children:w},x);if(w.trim().startsWith("Priority:")){const[S,N]=w.split("Priority:");return o.jsxs(Fe.Fragment,{children:[S.trim()&&o.jsx("div",{className:"section-body",children:S.trim()}),o.jsx("div",{className:"priority-box",children:N.trim()})]},x)}return w.trim()?o.jsx("div",{className:"section-body",children:w.trim()},x):null})})}return o.jsx("pre",{children:p})};return o.jsxs("div",{className:"memory-bank",children:[o.jsxs("div",{className:"memory-header",children:[o.jsxs("div",{className:"memory-title",children:[o.jsx(fr,{size:24}),o.jsx("h2",{children:"Memory Bank"}),o.jsxs("span",{className:"memory-count",children:[h.length," entries"]})]}),o.jsxs("div",{className:"memory-actions",children:[o.jsxs("div",{className:"search-box",children:[o.jsx(Nu,{size:16}),o.jsx("input",{type:"text",placeholder:"Search memories...",value:s,onChange:m=>i(m.target.value)})]}),o.jsx("button",{className:"refresh-btn",onClick:d,disabled:a,children:o.jsx(_t,{size:16,className:a?"spinning":""})})]})]}),o.jsxs("div",{className:"memory-content",children:[o.jsx("div",{className:"memory-list",children:a?o.jsx("div",{className:"memory-loading",children:"Loading memories..."}):f.length===0?o.jsxs("div",{className:"memory-empty",children:[o.jsx(Su,{size:48}),o.jsx("h3",{children:"No Memories Stored"}),o.jsxs("p",{children:["Use ",o.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):f.map(([m,p])=>o.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[o.jsxs("div",{className:"memory-item-header",children:[o.jsx(wd,{size:14}),o.jsx("span",{className:"memory-key",children:m}),o.jsx(rn,{size:14,className:"chevron"})]}),o.jsxs("div",{className:"memory-item-meta",children:[o.jsx(vs,{size:12}),o.jsx("span",{children:j(p.timestamp)})]}),o.jsx("div",{className:"memory-item-preview",children:(()=>{const g=ma(p.value);return g.slice(0,100)+(g.length>100?"...":"")})()})]},m))}),o.jsx("div",{className:"memory-detail",children:y?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"detail-header",children:[o.jsx(wd,{size:18}),o.jsx("h3",{children:n})]}),o.jsxs("div",{className:"detail-meta",children:[o.jsxs("div",{className:"meta-left",children:[o.jsx(vs,{size:14}),o.jsxs("span",{children:["Stored: ",j(y.timestamp)]})]}),o.jsxs("button",{className:`copy-btn ${u?"copied":""}`,onClick:v,children:[u?o.jsx(L0,{size:14}):o.jsx(z0,{size:14}),o.jsx("span",{children:u?"Copied":"Copy"})]})]}),o.jsx("div",{className:"detail-content",children:C(y.value)})]}):o.jsxs("div",{className:"detail-placeholder",children:[o.jsx(fr,{size:48}),o.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},O2=()=>{var x;const[e,t]=k.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[a,l]=k.useState("all"),[u,c]=k.useState(!0),[d,h]=k.useState(!1),[f,y]=k.useState([]),[j,v]=k.useState(!1),C=async()=>{c(!0);try{const N=await(await fetch("/api/index-stats")).json();t(N)}catch(S){console.error("Failed to fetch pattern index:",S)}finally{c(!1)}};k.useEffect(()=>{C()},[]),k.useEffect(()=>{if(!d||s.length<3){y([]);return}const S=setTimeout(async()=>{v(!0);try{const P=await(await fetch(`/api/index-search?q=${encodeURIComponent(s)}`)).json();y(P)}catch(N){console.error("Semantic search failed:",N)}finally{v(!1)}},500);return()=>clearTimeout(S)},[s,d]);const m=d&&s.length>=3?f:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},g=d&&s.length>=3?m:m.filter(S=>{const N=S.name.toLowerCase().includes(s.toLowerCase())||S.file.toLowerCase().includes(s.toLowerCase()),P=a==="all"||S.type===a;return N&&P}),w=Object.keys(p.byType||{});return o.jsxs("div",{className:"pattern-index",children:[o.jsxs("div",{className:"pattern-header",children:[o.jsxs("div",{className:"pattern-title",children:[o.jsx(Jt,{size:24}),o.jsx("h2",{children:"Pattern Index"}),o.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),o.jsxs("div",{className:"pattern-actions",children:[o.jsxs("div",{className:"search-box",children:[o.jsx(Nu,{size:16}),o.jsx("input",{type:"text",placeholder:"Search patterns...",value:s,onChange:S=>i(S.target.value)})]}),o.jsxs("div",{className:"filter-box",children:[o.jsx(ku,{size:16}),o.jsxs("select",{value:a,onChange:S=>l(S.target.value),children:[o.jsx("option",{value:"all",children:"All Types"}),w.map(S=>o.jsxs("option",{value:S,children:[S," (",p.byType[S],")"]},S))]})]}),o.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>h(!d),title:"Semantic Search (v2)",children:[o.jsx(jd,{size:16}),o.jsx("span",{children:"AI Search"})]}),o.jsx("button",{className:"refresh-btn",onClick:C,disabled:u,children:o.jsx(_t,{size:16,className:u?"spinning":""})})]})]}),o.jsxs("div",{className:"pattern-stats",children:[o.jsxs("div",{className:"stat-card",children:[o.jsx(om,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsx("span",{className:"stat-value",children:p.totalPatterns}),o.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx(mt,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsx("span",{className:"stat-value",children:p.totalFiles}),o.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx(jd,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsx("span",{className:"stat-value",children:w.length}),o.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&o.jsxs("div",{className:"stat-card",children:[o.jsx(vs,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),o.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),o.jsxs("div",{className:"pattern-content",children:[o.jsxs("div",{className:"pattern-list",children:[j&&o.jsxs("div",{className:"searching-indicator",children:[o.jsx(_t,{size:14,className:"spinning"}),o.jsx("span",{children:"AI is analyzing your query..."})]}),u?o.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):g.length===0?o.jsxs("div",{className:"pattern-empty",children:[o.jsx(Jt,{size:48}),o.jsx("h3",{children:"No Patterns Indexed"}),o.jsxs("p",{children:["Run ",o.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):g.map(S=>o.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===S.id?"active":""}`,onClick:()=>r(S),children:[S.similarity&&o.jsxs("div",{className:"similarity-badge",children:[(S.similarity*100).toFixed(0),"% Match"]}),o.jsxs("div",{className:"pattern-item-header",children:[o.jsx("span",{className:"pattern-type-badge",children:S.type}),o.jsx("span",{className:"pattern-name",children:S.name}),o.jsx(rn,{size:14,className:"chevron"})]}),o.jsxs("div",{className:"pattern-item-file",children:[o.jsx(mt,{size:12}),o.jsxs("span",{children:[S.file,":",S.line]})]}),S.exported&&o.jsx("span",{className:"exported-badge",children:"exported"})]},S.id))]}),o.jsx("div",{className:"pattern-detail",children:n?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"detail-header",children:[o.jsx("span",{className:"pattern-type-badge large",children:n.type}),o.jsx("h3",{children:n.name})]}),o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Location"}),o.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Signature"}),o.jsx("pre",{children:n.signature})]}),n.description&&o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Description"}),o.jsx("p",{children:n.description})]}),((x=n.keywords)==null?void 0:x.length)>0&&o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Keywords"}),o.jsx("div",{className:"keywords-list",children:n.keywords.map((S,N)=>o.jsx("span",{className:"keyword-tag",children:S},N))})]}),o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Usage"}),o.jsxs("p",{children:["Imported in ",o.jsx("strong",{children:n.usageCount})," files"]})]})]}):o.jsxs("div",{className:"detail-placeholder",children:[o.jsx(Jt,{size:48}),o.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},I2=()=>{var y,j,v,C,m;const[e,t]=k.useState(null),[n,r]=k.useState(""),[s,i]=k.useState(null),[a,l]=k.useState(!0),[u,c]=k.useState("visual"),d=async()=>{l(!0);try{const g=await(await fetch("/api/config")).text();r(g);const w=h(g);t(w)}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();i(g)}}catch{}l(!1)},h=p=>{var g;try{const w=p.split(`
|
|
321
|
+
`),x={};let S=null,N=null;for(const P of w){if(P.startsWith("#")||!P.trim())continue;const D=P.search(/\S/),M=P.trim();if(D===0&&M.includes(":")){const[I]=M.split(":");S=I.trim(),N=null;const F=(g=M.split(":")[1])==null?void 0:g.trim();F&&F!=="{}"&&F!=="[]"?x[S]=isNaN(Number(F))?F:Number(F):x[S]={}}else if(D===2&&S&&M.includes(":")){const[I]=M.split(":");N=I.trim();const F=M.split(":").slice(1).join(":").trim();if(F&&F!=="{}"&&F!=="[]"){typeof x[S]!="object"&&(x[S]={});const ae=F==="true"?!0:F==="false"?!1:isNaN(Number(F))?F:Number(F);x[S][N]=ae}else typeof x[S]!="object"&&(x[S]={}),x[S][N]={}}else if(D===4&&S&&N&&M.includes(":")){const[I]=M.split(":"),F=M.split(":").slice(1).join(":").trim();typeof x[S][N]!="object"&&(x[S][N]={});const ae=F==="true"?!0:F==="false"?!1:isNaN(Number(F))?F:Number(F);x[S][N][I.trim()]=ae}}return x}catch{return{}}};k.useEffect(()=>{d()},[]);const f=(e==null?void 0:e.gates)||{};return o.jsxs("div",{className:"quality-gates",children:[o.jsxs("div",{className:"gates-header",children:[o.jsxs("div",{className:"gates-title",children:[o.jsx(Gr,{size:24}),o.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&o.jsx("span",{className:"preset-badge",children:e.preset})]}),o.jsxs("div",{className:"gates-actions",children:[o.jsxs("div",{className:"view-toggle",children:[o.jsxs("button",{className:u==="visual"?"active":"",onClick:()=>c("visual"),children:[o.jsx(Jt,{size:16})," Visual"]}),o.jsxs("button",{className:u==="raw"?"active":"",onClick:()=>c("raw"),children:[o.jsx(mt,{size:16})," YAML"]})]}),o.jsx("button",{className:"refresh-btn",onClick:d,disabled:a,children:o.jsx(_t,{size:16,className:a?"spinning":""})})]})]}),a?o.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):u==="raw"?o.jsx("div",{className:"gates-raw",children:o.jsx("pre",{children:n})}):o.jsxs("div",{className:"gates-content",children:[o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(mt,{size:18}),o.jsx("h3",{children:"Code Quality"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Max File Lines",value:f.max_file_lines,icon:o.jsx(mt,{size:16})}),o.jsx(q,{label:"Forbid TODOs",value:f.forbid_todos,icon:f.forbid_todos?o.jsx(ys,{size:16}):o.jsx(vt,{size:16})}),o.jsx(q,{label:"Forbid FIXMEs",value:f.forbid_fixme,icon:f.forbid_fixme?o.jsx(ys,{size:16}):o.jsx(vt,{size:16})})]})]}),f.ast&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(B0,{size:18}),o.jsx("h3",{children:"AST Limits"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Complexity",value:f.ast.complexity}),o.jsx(q,{label:"Max Methods",value:f.ast.max_methods}),o.jsx(q,{label:"Max Params",value:f.ast.max_params}),o.jsx(q,{label:"Max Nesting",value:f.ast.max_nesting}),o.jsx(q,{label:"Max Function Lines",value:f.ast.max_function_lines}),o.jsx(q,{label:"Max Inheritance",value:f.ast.max_inheritance_depth})]})]}),f.safety&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(um,{size:18}),o.jsx("h3",{children:"File Guard"})]}),o.jsx("div",{className:"gate-grid",children:o.jsx(q,{label:"Max Files/Cycle",value:f.safety.max_files_changed_per_cycle})}),f.safety.protected_paths&&f.safety.protected_paths.length>0&&o.jsxs("div",{className:"protected-paths",children:[o.jsx("h4",{children:"Protected Paths"}),o.jsx("div",{className:"path-list",children:f.safety.protected_paths.map((p,g)=>o.jsx("span",{className:"path-tag",children:p},g))})]})]}),f.required_files&&f.required_files.length>0&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(wt,{size:18}),o.jsx("h3",{children:"Required Files"})]}),o.jsx("div",{className:"file-list",children:f.required_files.map((p,g)=>o.jsxs("div",{className:"file-item",children:[o.jsx(mt,{size:14}),o.jsx("span",{children:p})]},g))})]}),f.context&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(Wt,{size:18}),o.jsx("h3",{children:"Context Mining"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Enabled",value:f.context.enabled}),o.jsx(q,{label:"Sensitivity",value:f.context.sensitivity}),o.jsx(q,{label:"Mining Depth",value:f.context.mining_depth})]})]}),f.retry_loop_breaker&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(cm,{size:18}),o.jsx("h3",{children:"Retry Loop Breaker"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Enabled",value:f.retry_loop_breaker.enabled}),o.jsx(q,{label:"Max Retries",value:f.retry_loop_breaker.max_retries})]})]}),o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(Wt,{size:18}),o.jsx("h3",{children:"AI-Native Gates"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Duplication Drift",value:((y=f.duplication_drift)==null?void 0:y.enabled)??!0,icon:o.jsx(vt,{size:16})}),o.jsx(q,{label:"Hallucinated Imports",value:((j=f.hallucinated_imports)==null?void 0:j.enabled)??!0,icon:o.jsx(wt,{size:16})}),o.jsx(q,{label:"Error Handling",value:((v=f.inconsistent_error_handling)==null?void 0:v.enabled)??!0,icon:o.jsx(Gr,{size:16})}),o.jsx(q,{label:"Context Artifacts",value:((C=f.context_window_artifacts)==null?void 0:C.enabled)??!0,icon:o.jsx(Jt,{size:16})}),o.jsx(q,{label:"Async Safety",value:((m=f.promise_safety)==null?void 0:m.enabled)??!0,icon:o.jsx(Wt,{size:16})})]})]}),s&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(Gr,{size:18}),o.jsx("h3",{children:"Latest Scores"})]}),o.jsxs("div",{className:"gate-grid",children:[s.score!==void 0&&o.jsx(q,{label:"Overall Score",value:`${s.score}/100`}),s.ai_health_score!==void 0&&o.jsx(q,{label:"AI Health",value:`${s.ai_health_score}/100`,icon:o.jsx(Wt,{size:16})}),s.structural_score!==void 0&&o.jsx(q,{label:"Structural",value:`${s.structural_score}/100`,icon:o.jsx(Jt,{size:16})})]}),s.severity_breakdown&&o.jsxs("div",{className:"severity-breakdown",children:[o.jsx("h4",{children:"Severity Breakdown"}),o.jsx("div",{className:"gate-grid",children:Object.entries(s.severity_breakdown).filter(([,p])=>p>0).map(([p,g])=>o.jsx(q,{label:p.charAt(0).toUpperCase()+p.slice(1),value:g},p))})]}),s.provenance_breakdown&&o.jsxs("div",{className:"provenance-breakdown",children:[o.jsx("h4",{children:"Provenance Breakdown"}),o.jsx("div",{className:"gate-grid",children:Object.entries(s.provenance_breakdown).filter(([,p])=>p>0).map(([p,g])=>o.jsx(q,{label:p,value:g},p))})]})]})]})]})},q=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return o.jsxs("div",{className:"gate-card",children:[n&&o.jsx("div",{className:"gate-icon",children:n}),o.jsxs("div",{className:"gate-info",children:[o.jsx("span",{className:"gate-value",children:r}),o.jsx("span",{className:"gate-label",children:e})]})]})},F2=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[s,i]=k.useState(""),[a,l]=k.useState("all"),[u,c]=k.useState("all"),d=Fe.useMemo(()=>{const v={};return e.forEach(C=>{const m=C.requestId||C.id;v[m]?v[m]={...v[m],...C}:v[m]={...C}}),Object.values(v).sort((C,m)=>new Date(m.timestamp).getTime()-new Date(C.timestamp).getTime())},[e]),h=Fe.useMemo(()=>{const v=new Set;return d.forEach(C=>C.tool&&v.add(C.tool)),Array.from(v)},[d]),f=Fe.useMemo(()=>d.filter(v=>{var g;const C=!s||((g=v.tool)==null?void 0:g.toLowerCase().includes(s.toLowerCase()))||JSON.stringify(v.arguments||{}).toLowerCase().includes(s.toLowerCase()),m=a==="all"||v.status===a,p=u==="all"||v.tool===u;return C&&m&&p}),[d,s,a,u]),y=Fe.useMemo(()=>({total:d.length,success:d.filter(v=>v.status==="success").length,error:d.filter(v=>v.status==="error").length,pending:d.filter(v=>!v.status||v.status==="pending").length}),[d]),j=()=>{const v=JSON.stringify(f,null,2),C=new Blob([v],{type:"application/json"}),m=URL.createObjectURL(C),p=document.createElement("a");p.href=m,p.download=`rigour-audit-${new Date().toISOString().split("T")[0]}.json`,p.click()};return o.jsxs("div",{className:"audit-log",children:[o.jsxs("div",{className:"audit-header",children:[o.jsxs("div",{className:"audit-title",children:[o.jsx(kn,{size:24}),o.jsx("h2",{children:"Audit Trail"}),o.jsxs("span",{className:"log-count",children:[f.length," events"]})]}),o.jsxs("div",{className:"audit-actions",children:[o.jsxs("button",{className:"btn-secondary",onClick:t,children:[o.jsx(Q0,{size:16})," Clear"]}),o.jsxs("button",{className:"btn-primary",onClick:j,children:[o.jsx(O0,{size:16})," Export"]})]})]}),o.jsxs("div",{className:"audit-stats",children:[o.jsxs("div",{className:"stat-pill",children:[o.jsx(kn,{size:14}),o.jsxs("span",{children:[y.total," Total"]})]}),o.jsxs("div",{className:"stat-pill success",children:[o.jsx(vt,{size:14}),o.jsxs("span",{children:[y.success," Success"]})]}),o.jsxs("div",{className:"stat-pill error",children:[o.jsx(ys,{size:14}),o.jsxs("span",{children:[y.error," Failed"]})]}),o.jsxs("div",{className:"stat-pill pending",children:[o.jsx(wt,{size:14}),o.jsxs("span",{children:[y.pending," Pending"]})]})]}),o.jsxs("div",{className:"audit-filters",children:[o.jsxs("div",{className:"search-box",children:[o.jsx(Nu,{size:16}),o.jsx("input",{type:"text",placeholder:"Search logs...",value:s,onChange:v=>i(v.target.value)})]}),o.jsxs("div",{className:"filter-box",children:[o.jsx(ku,{size:16}),o.jsxs("select",{value:a,onChange:v=>l(v.target.value),children:[o.jsx("option",{value:"all",children:"All Status"}),o.jsx("option",{value:"success",children:"Success"}),o.jsx("option",{value:"error",children:"Error"}),o.jsx("option",{value:"pending",children:"Pending"})]})]}),o.jsxs("div",{className:"filter-box",children:[o.jsx(Ki,{size:16}),o.jsxs("select",{value:u,onChange:v=>c(v.target.value),children:[o.jsx("option",{value:"all",children:"All Tools"}),h.map(v=>o.jsx("option",{value:v,children:v},v))]})]})]}),o.jsxs("div",{className:"audit-content",children:[o.jsx("div",{className:"log-list",children:f.length===0?o.jsxs("div",{className:"empty-state",children:[o.jsx(Ki,{size:48}),o.jsx("h3",{children:"No Interactions Detected"}),o.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):f.map(v=>o.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===v.id?"active":""} ${v._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===v.id?null:v),children:[o.jsxs("div",{className:"log-header",children:[o.jsx("span",{className:`status-dot ${v.status||"pending"}`}),o.jsx("span",{className:"log-tool",children:v.tool}),o.jsxs("span",{className:"log-time",children:[o.jsx(vs,{size:12}),new Date(v.timestamp).toLocaleTimeString()]}),v._rigour_report&&o.jsxs("span",{className:"report-badge",children:[o.jsx(I0,{size:12})," Report"]}),v.arbitrated&&o.jsx("span",{className:`arbitrated-badge ${v.decision}`,children:v.decision==="approve"?"Approved":"Rejected"}),o.jsx(rn,{size:14,className:"chevron"})]}),v.requestId&&o.jsxs("div",{className:"log-request-id",children:["ID: ",v.requestId.slice(0,12),"..."]})]},v.id))}),o.jsx("div",{className:"log-detail",children:r?o.jsx(B2,{log:r,onClose:()=>n(null)}):o.jsxs("div",{className:"detail-placeholder",children:[o.jsx(mt,{size:48}),o.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},B2=({log:e,onClose:t})=>{var i,a,l,u,c,d,h;const n=!!e._rigour_report||["rigour_checkpoint","rigour_agent_register","rigour_handoff"].includes(e.tool),[r,s]=k.useState(n?"report":"args");return o.jsxs("div",{className:"log-detail-view",children:[o.jsxs("div",{className:"detail-header",children:[o.jsxs("div",{className:"detail-info",children:[o.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?o.jsx(vt,{size:14}):e.status==="error"?o.jsx(ys,{size:14}):o.jsx(wt,{size:14}),e.status||"pending"]}),o.jsx("h3",{children:e.tool})]}),o.jsx("button",{className:"close-btn",onClick:t,children:o.jsx(Tu,{size:18})})]}),o.jsxs("div",{className:"detail-meta",children:[o.jsxs("div",{className:"meta-item",children:[o.jsx("span",{className:"meta-label",children:"Timestamp"}),o.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&o.jsxs("div",{className:"meta-item",children:[o.jsx("span",{className:"meta-label",children:"Request ID"}),o.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),n&&o.jsxs("div",{className:"detail-tabs",children:[o.jsx("button",{className:r==="report"?"active":"",onClick:()=>s("report"),children:e._rigour_report?"Verification Report":"Visualized Content"}),o.jsx("button",{className:r==="args"?"active":"",onClick:()=>s("args"),children:"Technical Arguments"})]}),o.jsx("div",{className:"detail-body",children:r==="args"?o.jsxs(o.Fragment,{children:[e.arguments&&o.jsxs("div",{className:"code-section",children:[o.jsx("h4",{children:"Arguments"}),o.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&o.jsxs("div",{className:"error-section",children:[o.jsx("h4",{children:"Error"}),o.jsx("div",{className:"error-message",children:e.error})]})]}):o.jsx("div",{className:"verification-view",children:e.tool==="rigour_checkpoint"?o.jsxs("div",{className:"checkpoint-viz",children:[o.jsxs("div",{className:"viz-stats",children:[o.jsxs("div",{className:"viz-stat",children:[o.jsx("span",{className:"label",children:"Progress"}),o.jsxs("span",{className:"value",children:[((i=e.arguments)==null?void 0:i.progressPct)??0,"%"]})]}),o.jsxs("div",{className:"viz-stat",children:[o.jsx("span",{className:"label",children:"Quality"}),o.jsxs("span",{className:"value",style:{color:(((a=e.arguments)==null?void 0:a.qualityScore)??0)>=80?"#34d399":"#f87171"},children:[((l=e.arguments)==null?void 0:l.qualityScore)??0,"%"]})]})]}),o.jsxs("div",{className:"viz-summary",children:[o.jsx("h4",{children:"Summary of Work"}),o.jsx("p",{children:((u=e.arguments)==null?void 0:u.summary)||"No summary provided."})]}),((c=e.arguments)==null?void 0:c.filesChanged)&&e.arguments.filesChanged.length>0&&o.jsxs("div",{className:"viz-files",children:[o.jsx("h4",{children:"Files Changed"}),o.jsx("div",{className:"file-badges",children:e.arguments.filesChanged.map(f=>o.jsx("span",{className:"file-badge",children:f},f))})]})]}):e.tool==="rigour_agent_register"?o.jsxs("div",{className:"agent-viz",children:[o.jsx(kn,{size:32,className:"viz-icon"}),o.jsx("h3",{children:"Agent Scope Claims"}),o.jsxs("div",{className:"scope-box",children:[o.jsx("h4",{children:"Claimed Scope:"}),o.jsx("div",{className:"scope-list",children:(h=(d=e.arguments)==null?void 0:d.taskScope)==null?void 0:h.map(f=>o.jsx("code",{children:f},f))})]})]}):o.jsxs("div",{className:"code-section",children:[o.jsx("h4",{children:"Rigour Report"}),o.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})})]})};function $2({session:e}){if(!e||e.agents.length===0)return o.jsxs("div",{className:"empty-state",children:[o.jsx(dl,{size:48}),o.jsx("h3",{children:"No Active Agent Team"}),o.jsxs("p",{children:["When multiple agents register via ",o.jsx("code",{children:"rigour_agent_register"}),", they'll appear here."]}),o.jsxs("div",{className:"hint-box",children:[o.jsx("span",{children:"Supported Models:"}),o.jsxs("div",{className:"model-badges",children:[o.jsx("span",{className:"badge opus",children:"Opus 4.6"}),o.jsx("span",{className:"badge sonnet",children:"Sonnet 4.5"}),o.jsx("span",{className:"badge gpt",children:"GPT-5.3"}),o.jsx("span",{className:"badge codex",children:"Codex"})]})]})]});const t=r=>{switch(r){case"active":return o.jsx(Zo,{size:10,fill:"#34d399",stroke:"#34d399"});case"idle":return o.jsx(Zo,{size:10,fill:"#fbbf24",stroke:"#fbbf24"});case"completed":return o.jsx(vt,{size:14,color:"#34d399"});default:return o.jsx(Zo,{size:10})}},n=(r,s)=>s.some(i=>i.agentId===r.agentId?!1:r.taskScope.some(a=>i.taskScope.some(l=>l===a||a.startsWith(l)||l.startsWith(a))));return o.jsxs("div",{className:"agent-teams",children:[o.jsxs("div",{className:"panel-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(dl,{size:18}),o.jsx("span",{children:"Agent Team Session"})]}),o.jsx("div",{className:`session-status ${e.status}`,children:e.status.toUpperCase()})]}),o.jsxs("div",{className:"session-info",children:[o.jsx("span",{className:"session-id",children:e.sessionId}),o.jsxs("span",{className:"agent-count",children:[e.agents.length," agents"]})]}),o.jsx("div",{className:"agents-grid",children:e.agents.map(r=>o.jsxs("div",{className:`agent-card ${r.status} ${n(r,e.agents)?"has-conflict":""}`,children:[o.jsxs("div",{className:"agent-header",children:[o.jsxs("div",{className:"agent-id",children:[t(r.status),o.jsx("span",{children:r.agentId})]}),n(r,e.agents)&&o.jsxs("div",{className:"conflict-badge",children:[o.jsx(wt,{size:12}),o.jsx("span",{children:"Scope Conflict"})]})]}),o.jsxs("div",{className:"task-scope",children:[o.jsx("h4",{children:"Task Scope"}),o.jsx("ul",{children:r.taskScope.map((s,i)=>o.jsxs("li",{children:[o.jsx(vo,{size:12}),o.jsx("code",{children:s})]},i))})]}),o.jsxs("div",{className:"agent-meta",children:[o.jsxs("span",{children:["Registered: ",new Date(r.registeredAt).toLocaleTimeString()]}),r.lastCheckpoint&&o.jsxs("span",{children:["Last checkpoint: ",new Date(r.lastCheckpoint).toLocaleTimeString()]})]})]},r.agentId))})]})}function U2({checkpoints:e}){if(!e||e.length===0)return o.jsxs("div",{className:"empty-state",children:[o.jsx(cl,{size:48}),o.jsx("h3",{children:"No Checkpoints Yet"}),o.jsxs("p",{children:["Checkpoints will appear here as agents report progress via ",o.jsx("code",{children:"rigour_checkpoint"}),"."]}),o.jsx("div",{className:"hint-box",children:o.jsx("span",{children:"Default interval: 15 minutes"})})]});const t=s=>s>=80?"#34d399":s>=60?"#fbbf24":"#f87171",n=s=>{if(s===0)return null;const i=e[s-1].qualityScore,a=e[s].qualityScore;return a>i+5?o.jsx(dm,{size:14,color:"#34d399"}):a<i-5?o.jsx(Cu,{size:14,color:"#f87171"}):null},r=e.some((s,i)=>{if(i<2)return!1;const a=e.slice(Math.max(0,i-2),i),l=a.reduce((u,c)=>u+c.qualityScore,0)/a.length;return s.qualityScore<l-10});return o.jsxs("div",{className:"checkpoint-timeline",children:[o.jsxs("div",{className:"panel-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(cl,{size:18}),o.jsx("span",{children:"Checkpoint Timeline"})]}),o.jsxs("div",{className:"drift-visualization",children:[o.jsxs("svg",{width:"120",height:"30",viewBox:"0 0 120 30",className:"drift-sparkline",children:[o.jsx("path",{d:`M ${e.map((s,i)=>`${i/(e.length-1||1)*120} ${30-s.qualityScore/100*30}`).join(" L ")}`,fill:"none",stroke:"var(--accent-primary)",strokeWidth:"2",strokeLinecap:"round"}),e.map((s,i)=>o.jsx("circle",{cx:i/(e.length-1||1)*120,cy:30-s.qualityScore/100*30,r:"2",fill:t(s.qualityScore)},i))]}),o.jsx("span",{className:"drift-label",children:"Session Stability"})]}),r&&o.jsxs("div",{className:"drift-alert",children:[o.jsx(wt,{size:14}),o.jsx("span",{children:"Drift Detected"})]})]}),o.jsxs("div",{className:"timeline-container",children:[o.jsx("div",{className:"timeline-line"}),e.map((s,i)=>o.jsxs("div",{className:`checkpoint-entry ${s.warnings.length>0?"has-warnings":""}`,children:[o.jsx("div",{className:"checkpoint-marker",children:o.jsx("div",{className:"marker-dot",style:{backgroundColor:t(s.qualityScore)}})}),o.jsxs("div",{className:"checkpoint-content",children:[o.jsxs("div",{className:"checkpoint-header",children:[o.jsx("span",{className:"checkpoint-id",children:s.checkpointId}),o.jsx("span",{className:"checkpoint-time",children:new Date(s.timestamp).toLocaleTimeString()})]}),o.jsxs("div",{className:"checkpoint-stats",children:[o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"label",children:"Progress"}),o.jsx("div",{className:"progress-bar",children:o.jsx("div",{className:"progress-fill",style:{width:`${s.progressPct}%`}})}),o.jsxs("span",{className:"value",children:[s.progressPct,"%"]})]}),o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"label",children:"Quality"}),o.jsxs("span",{className:"value score",style:{color:t(s.qualityScore)},children:[s.qualityScore,"%",n(i)]})]}),o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"label",children:"Agent"}),o.jsx("span",{className:"value agent-id",children:s.agentId})]})]}),o.jsx("div",{className:"checkpoint-summary",children:o.jsx("p",{children:s.summary})}),s.filesChanged.length>0&&o.jsx("div",{className:"files-changed",children:o.jsxs("span",{className:"count",children:[s.filesChanged.length," files changed"]})}),s.warnings.length>0&&o.jsx("div",{className:"warnings",children:s.warnings.map((a,l)=>o.jsxs("div",{className:"warning-item",children:[o.jsx(wt,{size:12}),o.jsx("span",{children:a})]},l))})]})]},s.checkpointId))]})]})}const Yg={critical:"var(--status-error)",high:"#f97316",medium:"var(--status-warning)",low:"var(--accent-primary)",info:"var(--text-dim)"},W2={srp_violation:"Single Responsibility",ocp_violation:"Open/Closed Principle",lsp_violation:"Liskov Substitution",isp_violation:"Interface Segregation",dip_violation:"Dependency Inversion",god_class:"God Class",god_function:"God Function",long_params:"Long Parameters",complex_conditional:"Complex Conditional",empty_catch:"Empty Catch Block",error_inconsistency:"Error Inconsistency",race_condition:"Race Condition",goroutine_leak:"Goroutine Leak",channel_misuse:"Channel Misuse",mutex_scope:"Mutex Scope",isp_violation_interface:"Interface Bloat",missing_test:"Missing Tests",long_file:"Long File",magic_number:"Magic Numbers",resource_leak:"Resource Leak",dry_violation:"DRY Violation",feature_envy:"Feature Envy",dead_code:"Dead Code",naming_convention:"Naming Convention",performance:"Performance"},Hf={"SOLID Principles":["srp_violation","ocp_violation","lsp_violation","isp_violation","dip_violation"],"Code Smells":["god_class","god_function","long_params","complex_conditional","long_file","magic_number","dead_code","feature_envy"],"Error Handling":["empty_catch","error_inconsistency"],Concurrency:["race_condition","goroutine_leak","channel_misuse","mutex_scope"],Testing:["missing_test"],Architecture:["isp_violation_interface","dry_violation","naming_convention","resource_leak"],Performance:["performance"]},H2=()=>{const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(new Set),[a,l]=k.useState(new Set),[u,c]=k.useState("all"),[d,h]=k.useState(!1),f=async()=>{r(!0);try{const[x,S]=await Promise.all([fetch("/api/report-stats"),fetch("/api/deep-findings")]),N=x.ok?await x.json():{},P=S.ok?await S.json():[];t({...N,findings:P})}catch(x){console.error("Failed to fetch deep analysis data:",x)}r(!1)};k.useEffect(()=>{f()},[]);const y=x=>{i(S=>{const N=new Set(S);return N.has(x)?N.delete(x):N.add(x),N})},j=x=>{l(S=>{const N=new Set(S);return N.has(x)?N.delete(x):N.add(x),N})},v=((e==null?void 0:e.findings)||[]).filter(x=>x.provenance==="deep-analysis"),C=v.filter(x=>!(u!=="all"&&x.severity!==u||d&&!x.verified)),m=Object.entries(Hf).map(([x,S])=>{const N=C.filter(P=>S.includes(P.category||""));return{group:x,findings:N}}).filter(x=>x.findings.length>0),p=Object.values(Hf).flat(),g=C.filter(x=>!p.includes(x.category||"")),w=e==null?void 0:e.deep;return o.jsxs("div",{className:"deep-analysis",children:[o.jsxs("div",{className:"deep-header",children:[o.jsxs("div",{className:"deep-title",children:[o.jsx(fr,{size:24}),o.jsx("h2",{children:"Deep Analysis"}),(w==null?void 0:w.tier)&&o.jsx("span",{className:"tier-badge",children:w.tier})]}),o.jsx("div",{className:"deep-actions",children:o.jsx("button",{className:"refresh-btn",onClick:f,disabled:n,children:o.jsx(_t,{size:16,className:n?"spinning":""})})})]}),n?o.jsx("div",{className:"deep-loading",children:"Loading deep analysis data..."}):!(w!=null&&w.enabled)&&v.length===0?o.jsxs("div",{className:"deep-empty",children:[o.jsx(fr,{size:48}),o.jsx("h3",{children:"Deep Analysis Not Yet Run"}),o.jsxs("p",{children:["Run ",o.jsx("code",{children:"rigour check --deep"})," to get LLM-powered code quality analysis with 40+ categories."]}),o.jsxs("div",{className:"empty-features",children:[o.jsxs("div",{className:"feature",children:[o.jsx(Gr,{size:16})," SOLID Principles"]}),o.jsxs("div",{className:"feature",children:[o.jsx(Jt,{size:16})," Design Patterns"]}),o.jsxs("div",{className:"feature",children:[o.jsx(Wt,{size:16})," Concurrency Safety"]}),o.jsxs("div",{className:"feature",children:[o.jsx(G0,{size:16})," Architecture Quality"]})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"deep-stats-banner",children:[o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.findings_count)??v.length}),o.jsx("span",{className:"stat-label",children:"Findings"})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.findings_verified)??v.filter(x=>x.verified).length}),o.jsx("span",{className:"stat-label",children:"Verified"})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.files_analyzed)??"—"}),o.jsx("span",{className:"stat-label",children:"Files Analyzed"})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.model)||"—"}),o.jsx("span",{className:"stat-label",children:"Model"})]}),(w==null?void 0:w.total_ms)&&o.jsxs("div",{className:"stat-card",children:[o.jsxs("span",{className:"stat-value",children:[(w.total_ms/1e3).toFixed(1),"s"]}),o.jsx("span",{className:"stat-label",children:"Inference"})]})]}),((e==null?void 0:e.score)!==void 0||(e==null?void 0:e.code_quality_score)!==void 0)&&o.jsxs("div",{className:"deep-scores",children:[(e==null?void 0:e.score)!==void 0&&o.jsx(ga,{label:"Overall",score:e.score}),(e==null?void 0:e.ai_health_score)!==void 0&&o.jsx(ga,{label:"AI Health",score:e.ai_health_score}),(e==null?void 0:e.structural_score)!==void 0&&o.jsx(ga,{label:"Structural",score:e.structural_score})]}),o.jsxs("div",{className:"deep-filters",children:[o.jsxs("div",{className:"filter-group",children:[o.jsx(ku,{size:14}),o.jsxs("select",{value:u,onChange:x=>c(x.target.value),className:"filter-select",children:[o.jsx("option",{value:"all",children:"All Severities"}),o.jsx("option",{value:"critical",children:"Critical"}),o.jsx("option",{value:"high",children:"High"}),o.jsx("option",{value:"medium",children:"Medium"}),o.jsx("option",{value:"low",children:"Low"})]})]}),o.jsxs("button",{className:`filter-toggle ${d?"active":""}`,onClick:()=>h(!d),children:[o.jsx(vt,{size:14}),"Verified Only"]}),o.jsxs("span",{className:"filter-count",children:[C.length," finding",C.length!==1?"s":""]})]}),o.jsxs("div",{className:"deep-findings",children:[m.map(({group:x,findings:S})=>o.jsxs("div",{className:"finding-group",children:[o.jsxs("button",{className:"group-header",onClick:()=>y(x),children:[s.has(x)?o.jsx(gs,{size:16}):o.jsx(rn,{size:16}),o.jsx("span",{className:"group-name",children:x}),o.jsx("span",{className:"group-count",children:S.length}),o.jsx("div",{className:"group-severity-dots",children:["critical","high","medium","low"].map(N=>{const P=S.filter(D=>D.severity===N).length;return P>0?o.jsx("span",{className:"sev-dot",style:{backgroundColor:Yg[N]},title:`${P} ${N}`},N):null})})]}),s.has(x)&&o.jsx("div",{className:"group-findings",children:S.map(N=>o.jsx(Kf,{finding:N,expanded:a.has(N.id),onToggle:()=>j(N.id)},N.id))})]},x)),g.length>0&&o.jsxs("div",{className:"finding-group",children:[o.jsxs("button",{className:"group-header",onClick:()=>y("_other"),children:[s.has("_other")?o.jsx(gs,{size:16}):o.jsx(rn,{size:16}),o.jsx("span",{className:"group-name",children:"Other Findings"}),o.jsx("span",{className:"group-count",children:g.length})]}),s.has("_other")&&o.jsx("div",{className:"group-findings",children:g.map(x=>o.jsx(Kf,{finding:x,expanded:a.has(x.id),onToggle:()=>j(x.id)},x.id))})]}),C.length===0&&o.jsxs("div",{className:"no-findings",children:[o.jsx(vt,{size:32}),o.jsx("p",{children:"No deep analysis findings match the current filters."})]})]})]})]})},Kf=({finding:e,expanded:t,onToggle:n})=>{const r=Yg[e.severity||"info"],s=W2[e.category||""]||e.category||"Unknown";return o.jsxs("div",{className:`finding-card severity-${e.severity||"info"}`,children:[o.jsxs("button",{className:"finding-header",onClick:n,children:[o.jsxs("div",{className:"finding-left",children:[o.jsx("span",{className:"severity-indicator",style:{backgroundColor:r}}),o.jsx("span",{className:"finding-title",children:e.title})]}),o.jsxs("div",{className:"finding-right",children:[o.jsx("span",{className:"category-tag",children:s}),e.verified&&o.jsxs("span",{className:"verified-badge",title:"AST-verified",children:[o.jsx(vt,{size:12})," Verified"]}),e.confidence!==void 0&&o.jsxs("span",{className:"confidence-badge",title:`Confidence: ${(e.confidence*100).toFixed(0)}%`,children:[(e.confidence*100).toFixed(0),"%"]}),o.jsx("span",{className:"severity-badge",style:{color:r},children:e.severity||"info"}),t?o.jsx(gs,{size:14}):o.jsx(rn,{size:14})]})]}),t&&o.jsxs("div",{className:"finding-body",children:[o.jsx("p",{className:"finding-details",children:e.details}),e.hint&&o.jsxs("div",{className:"finding-hint",children:[o.jsx(Wt,{size:14}),o.jsx("span",{children:e.hint})]}),e.files&&e.files.length>0&&o.jsx("div",{className:"finding-files",children:e.files.map((i,a)=>o.jsxs("span",{className:"file-tag",children:[o.jsx(mt,{size:12}),i,e.line&&`:${e.line}`,e.endLine&&`-${e.endLine}`]},a))}),o.jsx("div",{className:"finding-meta",children:e.source&&o.jsxs("span",{className:"meta-tag",children:["Source: ",e.source]})})]})]})},ga=({label:e,score:t})=>{const n=2*Math.PI*36,r=n-t/100*n,s=t>=80?"var(--status-success)":t>=60?"var(--status-warning)":"var(--status-error)";return o.jsxs("div",{className:"score-ring",children:[o.jsxs("svg",{width:"88",height:"88",viewBox:"0 0 88 88",children:[o.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:"var(--border-dim)",strokeWidth:"6"}),o.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:s,strokeWidth:"6",strokeDasharray:n,strokeDashoffset:r,strokeLinecap:"round",transform:"rotate(-90 44 44)",style:{transition:"stroke-dashoffset 0.8s ease"}}),o.jsx("text",{x:"44",y:"42",textAnchor:"middle",fill:"var(--text-main)",fontSize:"18",fontWeight:"700",children:t}),o.jsx("text",{x:"44",y:"56",textAnchor:"middle",fill:"var(--text-dim)",fontSize:"9",children:"/100"})]}),o.jsx("span",{className:"score-label",children:e})]})},Xg={improving:{color:"#34d399",icon:dm,label:"Improving"},stable:{color:"var(--accent-primary)",icon:W0,label:"Stable"},degrading:{color:"#f87171",icon:Cu,label:"Degrading"}};function Zg({direction:e,zScore:t}){const n=Xg[e],r=n.icon;return o.jsxs("span",{className:"direction-badge",style:{color:n.color,borderColor:n.color},children:[o.jsx(r,{size:14}),o.jsx("span",{children:n.label}),t!==void 0&&o.jsxs("span",{className:"z-score",children:["Z=",t.toFixed(1)]})]})}function si({score:e,label:t,size:n=80}){const r=(n-8)/2,s=2*Math.PI*r,i=e/100*s,a=e>=80?"#34d399":e>=60?"#fbbf24":"#f87171";return o.jsxs("div",{className:"score-ring",style:{width:n,height:n+20},children:[o.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:[o.jsx("circle",{cx:n/2,cy:n/2,r,fill:"none",stroke:"var(--bg-tertiary)",strokeWidth:"6"}),o.jsx("circle",{cx:n/2,cy:n/2,r,fill:"none",stroke:a,strokeWidth:"6",strokeDasharray:`${i} ${s-i}`,strokeDashoffset:s/4,strokeLinecap:"round",style:{transition:"stroke-dasharray 0.8s ease"}}),o.jsx("text",{x:n/2,y:n/2,textAnchor:"middle",dominantBaseline:"central",fill:"var(--text-primary)",fontSize:"16",fontWeight:"bold",children:Math.round(e)})]}),o.jsx("span",{className:"ring-label",children:t})]})}function K2({series:e,direction:t}){if(e.length<2)return null;const n=200,r=50,s=4,i=e.map(j=>j.ewma),a=Math.min(...i)-5,u=Math.max(...i)+5-a||1,c=e.map((j,v)=>{const C=s+v/(e.length-1)*(n-2*s),m=r-s-(j.ewma-a)/u*(r-2*s);return`${C},${m}`}),d=Xg[t].color,h=s,f=s+(e.length-1)/(e.length-1)*(n-2*s),y=`M ${c[0]} L ${c.join(" L ")} L ${f},${r} L ${h},${r} Z`;return o.jsxs("svg",{width:n,height:r,className:"ewma-sparkline",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:`grad-${t}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[o.jsx("stop",{offset:"0%",stopColor:d,stopOpacity:"0.3"}),o.jsx("stop",{offset:"100%",stopColor:d,stopOpacity:"0.02"})]})}),o.jsx("path",{d:y,fill:`url(#grad-${t})`}),o.jsx("polyline",{points:c.join(" "),fill:"none",stroke:d,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("circle",{cx:parseFloat(c[c.length-1].split(",")[0]),cy:parseFloat(c[c.length-1].split(",")[1]),r:"3",fill:d})]})}function ii({name:e,icon:t,stream:n}){return o.jsxs("div",{className:"stream-card",children:[o.jsxs("div",{className:"stream-header",children:[o.jsxs("div",{className:"stream-name",children:[o.jsx(t,{size:16}),o.jsx("span",{children:e})]}),o.jsx(Zg,{direction:n.direction,zScore:n.zScore})]}),o.jsxs("div",{className:"stream-body",children:[o.jsx(K2,{series:n.series,direction:n.direction}),o.jsxs("div",{className:"stream-stats",children:[o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"stat-label",children:"Current EWMA"}),o.jsx("span",{className:"stat-value",children:n.currentEWMA.toFixed(1)})]}),o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"stat-label",children:"Historical Avg"}),o.jsx("span",{className:"stat-value",children:n.historicalAvg.toFixed(1)})]})]})]})]})}function G2({monthly:e}){const[t,n]=k.useState(!0);return e.length===0?null:o.jsxs("div",{className:"monthly-section",children:[o.jsxs("button",{className:"section-toggle",onClick:()=>n(!t),children:[t?o.jsx(gs,{size:16}):o.jsx(rn,{size:16}),o.jsx(om,{size:16}),o.jsx("span",{children:"Monthly Breakdown"})]}),t&&o.jsxs("table",{className:"monthly-table",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Month"}),o.jsx("th",{children:"Score"}),o.jsx("th",{children:"AI Health"}),o.jsx("th",{children:"Structural"}),o.jsx("th",{children:"Scans"}),o.jsx("th",{children:"AI Drift"}),o.jsx("th",{children:"Security"})]})}),o.jsx("tbody",{children:e.slice().reverse().map(r=>{const s=r.avgScore>=80?"#34d399":r.avgScore>=60?"#fbbf24":"#f87171";return o.jsxs("tr",{children:[o.jsx("td",{className:"month-cell",children:r.month}),o.jsx("td",{style:{color:s,fontWeight:600},children:r.avgScore.toFixed(0)}),o.jsx("td",{children:r.avgAiHealth.toFixed(0)}),o.jsx("td",{children:r.avgStructural.toFixed(0)}),o.jsx("td",{className:"dim",children:r.scanCount}),o.jsx("td",{className:"dim",children:r.provenanceBreakdown.aiDrift}),o.jsx("td",{className:"dim",children:r.provenanceBreakdown.security})]},r.month)})})]})]})}function Q2(){const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(null),a=async()=>{r(!0),i(null);try{const l=await fetch("/api/drift");if(!l.ok)throw new Error(`HTTP ${l.status}`);const u=await l.json();u&&u.totalScans>0?t(u):t(null)}catch(l){i(l.message)}finally{r(!1)}};return k.useEffect(()=>{a()},[]),n?o.jsxs("div",{className:"empty-state",children:[o.jsx(_t,{size:48,className:"spin"}),o.jsx("h3",{children:"Analyzing Temporal Drift..."}),o.jsx("p",{children:"Reading scan history from SQLite brain."})]}):s?o.jsxs("div",{className:"empty-state",children:[o.jsx(wt,{size:48}),o.jsx("h3",{children:"Drift Analysis Unavailable"}),o.jsx("p",{children:s}),o.jsx("button",{className:"retry-btn",onClick:a,children:"Retry"})]}):e?o.jsxs("div",{className:"temporal-drift",children:[o.jsxs("div",{className:"panel-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(kn,{size:18}),o.jsx("span",{children:"Temporal Drift Engine"}),o.jsx("span",{className:"badge",children:"v5 EWMA"})]}),o.jsx("button",{className:"refresh-btn",onClick:a,title:"Refresh",children:o.jsx(_t,{size:16})})]}),o.jsxs("div",{className:`drift-banner drift-${e.overallDirection}`,children:[o.jsxs("div",{className:"banner-main",children:[o.jsx(Zg,{direction:e.overallDirection,zScore:e.overallZScore}),o.jsx("span",{className:"banner-repo",children:e.repo}),o.jsxs("span",{className:"banner-meta",children:[e.totalScans," scans over ",e.timeSpanDays," days"]})]}),e.latestScanAnomaly.isAnomaly&&o.jsxs("div",{className:"anomaly-alert",children:[o.jsx(wt,{size:14}),o.jsx("span",{children:e.latestScanAnomaly.message})]})]}),o.jsxs("div",{className:"score-rings-row",children:[o.jsx(si,{score:e.streams.overall.currentEWMA,label:"Overall"}),o.jsx(si,{score:e.streams.aiDrift.currentEWMA,label:"AI Health"}),o.jsx(si,{score:e.streams.structural.currentEWMA,label:"Structural"}),o.jsx(si,{score:e.streams.security.currentEWMA,label:"Security"})]}),o.jsxs("div",{className:"streams-grid",children:[o.jsx(ii,{name:"AI Drift",icon:fr,stream:e.streams.aiDrift}),o.jsx(ii,{name:"Structural",icon:Wt,stream:e.streams.structural}),o.jsx(ii,{name:"Security",icon:Gr,stream:e.streams.security}),o.jsx(ii,{name:"Overall",icon:kn,stream:e.streams.overall})]}),o.jsx(G2,{monthly:e.monthly}),o.jsxs("div",{className:"narrative-section",children:[o.jsxs("div",{className:"narrative-header",children:[o.jsx(vs,{size:16}),o.jsx("span",{children:"Analysis Narrative"})]}),o.jsx("pre",{className:"narrative-text",children:e.narrative})]})]}):o.jsxs("div",{className:"empty-state",children:[o.jsx(kn,{size:48}),o.jsx("h3",{children:"Not Enough Data"}),o.jsxs("p",{children:["Run at least 3 scans with ",o.jsx("code",{children:"rigour check"})," to see temporal drift analysis."]}),o.jsx("div",{className:"hint-box",children:o.jsx("span",{children:"Drift detection uses EWMA + Z-score anomaly detection across per-provenance streams."})})]})}function q2(){var ac,lc,uc,cc;const[e,t]=k.useState(null),[n,r]=k.useState(null),[s,i]=k.useState(null),[a,l]=k.useState(null),[u,c]=k.useState(null),[d,h]=k.useState(null),[f,y]=k.useState("services/task"),[j,v]=k.useState(""),[C,m]=k.useState(null),[p,g]=k.useState(""),[w,x]=k.useState(!1),[S,N]=k.useState(0),[P,D]=k.useState(!1),[M,I]=k.useState(null),[F,ae]=k.useState(!0),de=async()=>{ae(!0);try{const[H,le,ty,ny,ry,_n]=await Promise.all([fetch("/api/context-stats").then(nt=>nt.json()),fetch("/api/task-cost").then(nt=>nt.json()),fetch("/api/cache-stats").then(nt=>nt.json()),fetch("/api/context-scope").then(nt=>nt.json()),fetch("/api/checkpoint-metrics").then(nt=>nt.json()),fetch("/api/cursor-api-key/status").then(nt=>nt.json())]);t(H),r(le),i(ty),l(ny),c(ry),x(!!(_n!=null&&_n.configured)),N(Number((_n==null?void 0:_n.importedCount)??0))}catch(H){console.error("Failed to fetch cost & context telemetry",H)}finally{ae(!1)}};k.useEffect(()=>{de()},[]);const b=async()=>{if(f)try{const le=await(await fetch(`/api/context-explain?target=${encodeURIComponent(f)}`)).json();h(le)}catch(H){console.error("Failed to get context explanation",H)}},$=async()=>{if(j.trim())try{const le=await(await fetch("/api/import-cursor-usage",{method:"POST",headers:{"Content-Type":"text/plain"},body:j})).json();le.success?(m(`Successfully imported ${le.importedCount} usage records!`),v(""),de()):m(`Import failed: ${le.error}`)}catch(H){m(`Import failed: ${H.message}`)}},U=async()=>{if(p.trim()){D(!0);try{const le=await(await fetch("/api/cursor-api-key",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:p.trim()})})).json();le.success?(x(!0),g(""),N(Number(le.importedCount??0)),le.syncError?I(`Key saved. Initial sync failed: ${le.syncError}`):I(`Cursor Admin API key saved. Imported ${le.importedCount??0} usage event(s).`),de()):I(`Save failed: ${le.error}`)}catch(H){I(`Save failed: ${H.message}`)}finally{D(!1)}}},T=async()=>{D(!0),I(null);try{const le=await(await fetch("/api/cursor-sync",{method:"POST"})).json();le.success?(N(Number(le.importedCount??0)),I(`Synced ${le.importedCount??0} new Cursor usage event(s).`),de()):I(`Sync failed: ${le.error||"Unknown error"}`)}catch(H){I(`Sync failed: ${H.message}`)}finally{D(!1)}},A=H=>H?H>=1e6?`${(H/1e6).toFixed(2)}M`:H>=1e3?`${(H/1e3).toFixed(1)}K`:H.toString():"0",L=(e==null?void 0:e.candidateTokens)??0,_=(e==null?void 0:e.returnedTokens)??0,V=(e==null?void 0:e.potentialAvoidedTokens)??0,ee=L>0?((L-_)/L*100).toFixed(1):"0.0",G=s!=null&&s.hitRate?Math.round(s.hitRate*100):0,be=((ac=n==null?void 0:n.actual)==null?void 0:ac.costUsd)??0,dt=((lc=n==null?void 0:n.estimated)==null?void 0:lc.estimatedCostAvoidedUsd)??0,dn=((uc=n==null?void 0:n.actual)==null?void 0:uc.inputTokens)??0,Jg=((cc=n==null?void 0:n.actual)==null?void 0:cc.source)||"No usage data",ey=((e==null?void 0:e.retrievals)??0)>0||dn>0||((s==null?void 0:s.exactCacheHits)??0)+((s==null?void 0:s.semanticCacheHits)??0)+((s==null?void 0:s.partialCacheHits)??0)+((s==null?void 0:s.cacheMisses)??0)>0||((u==null?void 0:u.checkpointCount)??0)>0;return o.jsxs("div",{className:"cost-context-view space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-4",children:[o.jsxs("div",{children:[o.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2 text-primary",children:[o.jsx(Wt,{size:22,className:"text-amber-400"}),"Token Savings & Context Efficiency Telemetry"]}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Two-layer context tracking: Exact observed Cursor usage & Rigour-measured avoided context"})]}),o.jsxs("button",{onClick:de,className:"px-3 py-1.5 bg-secondary text-secondary-foreground rounded-md flex items-center gap-2 hover:bg-secondary/80 text-sm transition",children:[o.jsx(_t,{size:14,className:F?"animate-spin":""})," Refresh"]})]}),!ey&&!F&&o.jsxs("div",{className:"p-4 bg-amber-500/10 border border-amber-500/30 rounded-lg flex items-start gap-3",children:[o.jsx(am,{size:20,className:"text-amber-400 mt-0.5 shrink-0"}),o.jsxs("div",{className:"text-sm",children:[o.jsx("p",{className:"font-semibold text-amber-300",children:"No telemetry recorded yet"}),o.jsx("p",{className:"text-muted-foreground mt-1",children:"Use Rigour MCP tools (rigour_context_stats, rigour_checkpoint, rigour_recall) or import Cursor usage data below. Metrics will show real values once agents interact with the project."})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[o.jsxs(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Actual Model Tokens"}),o.jsx("div",{className:"text-2xl font-bold text-foreground mt-1",children:A(dn)}),o.jsxs("div",{className:"text-xs text-emerald-400 mt-1",children:["Observed via ",Jg]})]}),o.jsxs(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Potential Context Avoided"}),o.jsx("div",{className:"text-2xl font-bold text-amber-400 mt-1",children:A(V)}),o.jsxs("div",{className:"text-xs text-amber-300 mt-1",children:["Reduction Ratio: ",ee,"%"]})]}),o.jsxs(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Cache Hit Rate"}),o.jsxs("div",{className:"text-2xl font-bold text-cyan-400 mt-1",children:[G,"%"]}),o.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"across static & semantic layers"})]}),o.jsxs(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Actual vs Avoided Cost"}),o.jsxs("div",{className:"text-2xl font-bold text-emerald-400 mt-1",children:["$",be.toFixed(2)," / ",o.jsxs("span",{className:"text-amber-400",children:["$",dt.toFixed(2)]})]}),o.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Actual Spend / Est. Cost Avoided"})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(Jt,{size:18,className:"text-cyan-400"})," A. Retrieval Efficiency"]}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Context Candidates Scanned"}),o.jsxs("span",{className:"font-mono text-foreground",children:[A(L)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Context Returned"}),o.jsxs("span",{className:"font-mono text-cyan-400",children:[A(_)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Potential Context Avoided"}),o.jsxs("span",{className:"font-mono text-amber-400",children:[A(V)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1",children:[o.jsx("span",{className:"text-muted-foreground",children:"Context Reduction Ratio"}),o.jsxs("span",{className:"font-semibold text-emerald-400",children:[ee,"%"]})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(Su,{size:18,className:"text-emerald-400"})," B. Cache Efficiency (4-Layer Engine)"]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-3 text-xs",children:[o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Exact Cache Hits"}),o.jsx("div",{className:"text-base font-bold text-emerald-400",children:(s==null?void 0:s.exactCacheHits)??0})]}),o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Semantic Cache Hits"}),o.jsx("div",{className:"text-base font-bold text-cyan-400",children:(s==null?void 0:s.semanticCacheHits)??0})]}),o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Partial Cache Hits"}),o.jsx("div",{className:"text-base font-bold text-amber-400",children:(s==null?void 0:s.partialCacheHits)??0})]}),o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Cache Misses"}),o.jsx("div",{className:"text-base font-bold text-rose-400",children:(s==null?void 0:s.cacheMisses)??0})]})]}),o.jsxs("div",{className:"flex justify-between text-xs pt-1 border-t border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Tokens Served from Cache"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:[A((s==null?void 0:s.tokensServedFromCache)??0)," tokens"]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(vi,{size:18,className:"text-purple-400"})," C & D. Duplication & Overhead Prevention"]}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Repeated File Reads Prevented"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:[(e==null?void 0:e.repeatedReadsPrevented)??0," reads"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Overlapping Agent Scopes Resolved"}),o.jsxs("span",{className:"font-mono text-cyan-400",children:[(a==null?void 0:a.overlappingScopesResolved)??0," scopes"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Always-On Rule & MCP Tokens"}),o.jsxs("span",{className:"font-mono text-foreground",children:[A((a==null?void 0:a.alwaysOnRuleTokens)??0)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1",children:[o.jsx("span",{className:"text-muted-foreground",children:"Unused Tools Filtered"}),o.jsxs("span",{className:"font-mono text-purple-400",children:[(a==null?void 0:a.unusedToolsFiltered)??0," schema tools hidden"]})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(lm,{size:18,className:"text-amber-400"})," E & F. Checkpoint Compression & Cost Audit"]}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Raw Session State"}),o.jsxs("span",{className:"font-mono text-foreground",children:[A((u==null?void 0:u.rawStateTokens)??0)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Checkpoint Packet Size"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:[A((u==null?void 0:u.checkpointTokens)??0)," tokens",((u==null?void 0:u.compressionRatio)??0)>0?` (${u==null?void 0:u.compressionRatio}× compression)`:""]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Verified Cursor Cost"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:["$",be.toFixed(2)," USD"]})]}),o.jsxs("div",{className:"flex justify-between py-1",children:[o.jsx("span",{className:"text-muted-foreground",children:"Estimated Avoided Spend"}),o.jsxs("span",{className:"font-mono text-amber-400 font-bold",children:["$",dt.toFixed(2)," USD"]})]})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(V0,{size:18,className:"text-cyan-400"})," Auditable Context Explainability (rigour_context_explain)"]}),o.jsxs("div",{className:"flex gap-2 mb-4",children:[o.jsx("input",{type:"text",value:f,onChange:H=>y(H.target.value),placeholder:"Enter file, service, or query target (e.g. services/task)",className:"flex-1 px-3 py-2 bg-background border border-border rounded-md text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary"}),o.jsx("button",{onClick:b,className:"px-4 py-2 bg-primary text-primary-foreground text-sm rounded-md hover:bg-primary/90 font-medium",children:"Explain Context"})]}),d&&o.jsxs(Pe.div,{initial:{opacity:0},animate:{opacity:1},className:"p-4 bg-background border border-border rounded-md text-xs space-y-2",children:[o.jsxs("div",{className:"flex justify-between font-mono",children:[o.jsxs("span",{className:"text-muted-foreground",children:["Target: ",o.jsx("strong",{className:"text-foreground",children:d.fileOrService})]}),o.jsxs("span",{className:d.status==="included"?"text-emerald-400 font-bold":"text-rose-400 font-bold",children:["[",d.status.toUpperCase(),"]"]})]}),o.jsxs("div",{className:"text-muted-foreground",children:["Reason: ",o.jsx("span",{className:"text-foreground",children:d.reason})]}),o.jsxs("div",{className:"text-muted-foreground",children:["Cache Status: ",o.jsx("span",{className:"text-cyan-400",children:d.cacheStatus})]}),d.priorAgentRequests&&d.priorAgentRequests.length>0&&o.jsxs("div",{children:[o.jsx("div",{className:"text-muted-foreground mb-1",children:"Prior Agent Interactions:"}),o.jsx("ul",{className:"list-disc pl-4 space-y-1 text-foreground font-mono",children:d.priorAgentRequests.map((H,le)=>o.jsx("li",{children:H},le))})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(U0,{size:18,className:"text-cyan-400"})," Cursor Admin API Key"]}),o.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Optional: save your Cursor Admin API key to enable verified usage sync.",w?" Key is configured.":" No key configured yet.",S>0?` ${S} Admin API event(s) imported.`:""]}),o.jsxs("div",{className:"flex gap-2 mb-2",children:[o.jsx("input",{type:"password",value:p,onChange:H=>g(H.target.value),placeholder:"Cursor Admin API key",disabled:P,className:"flex-1 px-3 py-2 bg-background border border-border rounded-md text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-60"}),o.jsx("button",{onClick:U,disabled:P||!p.trim(),className:"px-4 py-2 bg-primary text-primary-foreground text-sm rounded-md hover:bg-primary/90 font-medium disabled:opacity-60",children:P?"Saving…":"Save Key"}),o.jsxs("button",{onClick:T,disabled:P||!w,className:"px-4 py-2 bg-secondary text-secondary-foreground text-sm rounded-md hover:bg-secondary/80 font-medium disabled:opacity-60 flex items-center gap-2",children:[o.jsx(_t,{size:14,className:P?"animate-spin":""}),P?"Syncing…":"Sync Cursor"]})]}),M&&o.jsx("span",{className:`text-xs font-semibold ${M.includes("failed")?"text-rose-400":"text-emerald-400"}`,children:M})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(q0,{size:18,className:"text-amber-400"})," Import Cursor Daily Spend / Admin Usage"]}),o.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Paste CSV or JSON exported from Cursor Dashboard or Admin API to reconcile verified model usage."}),o.jsx("textarea",{rows:4,value:j,onChange:H=>v(H.target.value),placeholder:`Date,Model,Input Tokens,Output Tokens,Cost
|
|
322
|
+
2026-08-05,claude-3-5-sonnet,510000,62000,4.83`,className:"w-full p-3 bg-background border border-border rounded-md font-mono text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary mb-3"}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("button",{onClick:$,className:"px-4 py-2 bg-amber-500 text-black text-sm rounded-md font-semibold hover:bg-amber-400 transition",children:"Import Usage Data"}),C&&o.jsx("span",{className:"text-xs font-semibold text-emerald-400",children:C})]})]})]})}function Y2(){var de,b,$,U;const[e,t]=k.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=k.useState("memory"),[s,i]=k.useState([]),[a,l]=k.useState(null),[u,c]=k.useState(null),[d,h]=k.useState(!1),[f,y]=k.useState([]),[j,v]=k.useState(null);Fe.useEffect(()=>{const T=new EventSource("/api/events");return T.onmessage=A=>{try{const L=JSON.parse(A.data);i(_=>[L,..._].slice(0,100))}catch(L){console.error("Failed to parse event",L)}},fetch("/api/tree").then(A=>A.json()).then(y).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(v).catch(A=>console.error("Failed to fetch info",A)),()=>T.close()},[]),k.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const C=()=>t(T=>T==="dark"?"light":"dark"),[m,p]=k.useState(""),[g,w]=k.useState({}),[x,S]=k.useState({}),[N,P]=k.useState(null),[D,M]=k.useState(null);k.useEffect(()=>{(async()=>{try{const[A,L,_,V,ee]=await Promise.all([fetch("/api/config").then(G=>G.ok?G.text():""),fetch("/api/memory").then(G=>G.json()),fetch("/api/index-stats").then(G=>G.json()),fetch("/api/agents").then(G=>G.json()),fetch("/api/checkpoints").then(G=>G.json())]);p(A),w(L),S(_),P(V),M(ee)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const I=async T=>{try{const A=T.replace(/\s*\(\d+\s*lines\)$/,""),_=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();l({filename:A,original:_,modified:_})}catch(A){console.error("Failed to fetch file content",A)}},F=async T=>{if(u)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:u.requestId||u.id,decision:T,timestamp:new Date().toISOString()})}),i(A=>A.map(L=>(L.requestId||L.id)===(u.requestId||u.id)?{...L,status:T==="approve"?"success":"error",arbitrated:!0,decision:T}:L)),h(!1),c(null)}catch(A){console.error("Arbitration failed",A)}},ae=[{id:"audit",label:"Audit Log",icon:Ki},{id:"gates",label:"Quality Gates",icon:vi},{id:"deep",label:"Deep Analysis",icon:fr},{id:"patterns",label:"Pattern Index",icon:Su},{id:"memory",label:"Memory Bank",icon:b0},{id:"drift",label:"Temporal Drift",icon:Cu},{id:"agents",label:"Agent Teams",icon:dl},{id:"checkpoints",label:"Checkpoints",icon:cl},{id:"cost",label:"Cost & Context",icon:lm}];return o.jsxs("div",{className:"studio",children:[o.jsxs("aside",{className:"sidebar",children:[o.jsxs("div",{className:"brand",children:[o.jsx("div",{className:"logo-icon",children:o.jsx(vi,{size:18})}),o.jsx("span",{children:"Rigour Studio"}),o.jsxs("div",{className:"version-pill",children:["v",(j==null?void 0:j.version)||"2.13"]})]}),o.jsx("nav",{children:ae.map(T=>o.jsxs("button",{className:`nav-item ${n===T.id?"active":""}`,onClick:()=>r(T.id),children:[o.jsx(T.icon,{size:18}),o.jsx("span",{children:T.label}),n===T.id&&o.jsx(Pe.div,{layoutId:"nav-glow",className:"nav-glow"})]},T.id))}),o.jsxs("div",{className:"sidebar-footer",children:[o.jsxs("div",{className:"trust-indicator",children:[o.jsx(um,{size:14}),o.jsx("span",{children:"Local Governance"})]}),o.jsx("button",{className:"footer-item",children:o.jsx(cm,{size:18})}),o.jsx("button",{className:"footer-item",children:o.jsx($0,{size:18})})]})]}),o.jsxs("main",{className:"main-content",children:[o.jsxs("header",{children:[o.jsx("div",{className:"header-left",children:j&&o.jsxs("div",{className:"project-identity",children:[o.jsx(vo,{size:14,className:"folder-icon"}),o.jsx("span",{className:"project-name",children:j.name}),o.jsx("span",{className:"project-path",children:j.path})]})}),o.jsxs("div",{className:"header-right",children:[o.jsxs("div",{className:"connection-status",children:[o.jsxs("div",{className:"status-indicator",children:[o.jsx("div",{className:"pulse-emitter"}),o.jsx("span",{children:"LIVE"})]}),o.jsx("div",{className:"v-divider"}),o.jsxs("span",{children:["v",(j==null?void 0:j.version)||"0.0.0"]})]}),o.jsx("button",{className:"theme-toggle",onClick:C,children:e==="dark"?o.jsx(K0,{size:18}):o.jsx(H0,{size:18})})]})]}),o.jsxs("div",{className:"view-container",children:[o.jsxs(ex,{mode:"wait",children:[n==="audit"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(F2,{logs:s,onClearLogs:()=>i([]),onSelectLog:T=>{var A,L,_;if(c(T),T!=null&&T._rigour_report||(T==null?void 0:T.type)==="interception_requested"){if(T!=null&&T._rigour_report){const V=(_=(L=(A=T._rigour_report.failures)==null?void 0:A[0])==null?void 0:L.files)==null?void 0:_[0];V?I(V):l(null)}else l(null);h(!0)}else l(null),h(!1)},selectedLog:u})},"audit"),n==="gates"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(I2,{})},"gates"),n==="deep"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(H2,{})},"deep"),n==="drift"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(Q2,{})},"drift"),n==="patterns"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(O2,{})},"patterns"),n==="memory"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(b2,{})},"memory"),n==="agents"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx($2,{session:N})},"agents"),n==="checkpoints"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(U2,{checkpoints:(D==null?void 0:D.checkpoints)||[]})},"checkpoints"),n==="cost"&&o.jsx(Pe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(q2,{})},"cost")]}),u&&d&&o.jsx("div",{className:"governance-overlay",children:o.jsxs("div",{className:"governance-window",children:[o.jsxs("div",{className:"governance-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(vi,{size:20}),o.jsxs("span",{children:["Governance Audit: ",u.tool]})]}),o.jsxs("div",{className:"hitl-actions",children:[u.type==="interception_requested"&&o.jsxs(o.Fragment,{children:[o.jsxs("button",{className:"btn-approve",onClick:()=>F("approve"),children:[o.jsx(vt,{size:16})," Approve"]}),o.jsxs("button",{className:"btn-reject",onClick:()=>F("reject"),children:[o.jsx(ys,{size:16})," Reject"]}),o.jsx("div",{className:"divider"})]}),o.jsx("button",{onClick:()=>h(!1),className:"close-btn",children:o.jsx(Tu,{size:20})})]})]}),o.jsx("div",{className:"governance-body",children:u.type==="interception_requested"?o.jsxs("div",{className:"interception-view",children:[o.jsxs("div",{className:"interception-card",children:[o.jsx(Ki,{size:48}),o.jsx("h4",{children:"Command Intercepted"}),o.jsx("div",{className:"command-box",children:o.jsx("code",{children:u.command})}),o.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),o.jsxs("div",{className:"warning-note",children:[o.jsx(wt,{size:16}),o.jsx("span",{children:"Critical actions should be manually verified."})]})]}),o.jsx(Wf,{files:f.map(T=>T.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:T=>I(T),activeFile:a==null?void 0:a.filename,violatedFiles:[]})]}):o.jsxs(o.Fragment,{children:[o.jsx(Wf,{files:(((b=(de=u._rigour_report)==null?void 0:de.failures)==null?void 0:b.flatMap(T=>T.files||[]))||f).map(T=>T.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:T=>I(T),activeFile:a==null?void 0:a.filename,violatedFiles:(((U=($=u._rigour_report)==null?void 0:$.failures)==null?void 0:U.flatMap(T=>T.files||[]))||[]).map(T=>T.replace(/\s*\(\d+\s*lines\)$/,""))}),o.jsx("div",{className:"diff-view-area",children:a?o.jsx(V2,{filename:a.filename,originalCode:a.original,modifiedCode:a.modified,onClose:()=>l(null),theme:e}):o.jsxs("div",{className:"diff-placeholder",children:[o.jsx(kn,{size:48}),o.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}ya.createRoot(document.getElementById("root")).render(o.jsx(Fe.StrictMode,{children:o.jsx(Y2,{})}));
|