@rigour-labs/cli 2.13.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/studio.js +16 -0
- package/package.json +2 -2
- package/studio-dist/assets/index-0AYcNXhp.js +264 -0
- package/studio-dist/assets/index-CKXEiNN1.css +1 -0
- package/studio-dist/index.html +2 -2
- package/studio-dist/assets/index-CSj2lLc7.css +0 -1
- package/studio-dist/assets/index-CmJzYc99.js +0 -259
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},$s={},Cf={exports:{}},U={};/**
|
|
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 ci=Symbol.for("react.element"),Ty=Symbol.for("react.portal"),Ey=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),My=Symbol.for("react.profiler"),Ay=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),Ly=Symbol.for("react.forward_ref"),Ry=Symbol.for("react.suspense"),Vy=Symbol.for("react.memo"),_y=Symbol.for("react.lazy"),Uu=Symbol.iterator;function Oy(e){return e===null||typeof e!="object"?null:(e=Uu&&e[Uu]||e["@@iterator"],typeof e=="function"?e:null)}var Pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tf=Object.assign,Ef={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Ef,this.updater=n||Pf}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nf(){}Nf.prototype=nr.prototype;function dl(e,t,n){this.props=e,this.context=t,this.refs=Ef,this.updater=n||Pf}var fl=dl.prototype=new Nf;fl.constructor=dl;Tf(fl,nr.prototype);fl.isPureReactComponent=!0;var $u=Array.isArray,Mf=Object.prototype.hasOwnProperty,hl={current:null},Af={key:!0,ref:!0,__self:!0,__source:!0};function Df(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Mf.call(t,r)&&!Af.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ci,type:e,key:s,ref:o,props:i,_owner:hl.current}}function zy(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function Iy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wu=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Iy(""+e.key):t.toString(36)}function Ki(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ci:case Ty:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,$u(i)?(n="",e!=null&&(n=e.replace(Wu,"$&/")+"/"),Ki(i,t,n,"",function(u){return u})):i!=null&&(pl(i)&&(i=zy(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Wu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",$u(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+ho(s,a);o+=Ki(s,t,n,l,i)}else if(l=Oy(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+ho(s,a++),o+=Ki(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ki(e,t,n){if(e==null)return e;var r=[],i=0;return Ki(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Fy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Te={current:null},Gi={transition:null},By={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:Gi,ReactCurrentOwner:hl};function Lf(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:ki,forEach:function(e,t,n){ki(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ki(e,function(){t++}),t},toArray:function(e){return ki(e,function(t){return t})||[]},only:function(e){if(!pl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=nr;U.Fragment=Ey;U.Profiler=My;U.PureComponent=dl;U.StrictMode=Ny;U.Suspense=Ry;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=By;U.act=Lf;U.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=Tf({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=hl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Mf.call(t,l)&&!Af.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ci,type:e.type,key:i,ref:s,props:r,_owner:o}};U.createContext=function(e){return e={$$typeof:Dy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ay,_context:e},e.Consumer=e};U.createElement=Df;U.createFactory=function(e){var t=Df.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Ly,render:e}};U.isValidElement=pl;U.lazy=function(e){return{$$typeof:_y,_payload:{_status:-1,_result:e},_init:Fy}};U.memo=function(e,t){return{$$typeof:Vy,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Gi.transition;Gi.transition={};try{e()}finally{Gi.transition=t}};U.unstable_act=Lf;U.useCallback=function(e,t){return Te.current.useCallback(e,t)};U.useContext=function(e){return Te.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};U.useEffect=function(e,t){return Te.current.useEffect(e,t)};U.useId=function(){return Te.current.useId()};U.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Te.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};U.useRef=function(e){return Te.current.useRef(e)};U.useState=function(e){return Te.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Te.current.useTransition()};U.version="18.3.1";Cf.exports=U;var j=Cf.exports;const Qe=Py(j);/**
|
|
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 Uy=j,$y=Symbol.for("react.element"),Wy=Symbol.for("react.fragment"),Hy=Object.prototype.hasOwnProperty,Ky=Uy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gy={key:!0,ref:!0,__self:!0,__source:!0};function Rf(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Hy.call(t,r)&&!Gy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:$y,type:e,key:s,ref:o,props:i,_owner:Ky.current}}$s.Fragment=Wy;$s.jsx=Rf;$s.jsxs=Rf;jf.exports=$s;var c=jf.exports,ta={},Vf={exports:{}},Ue={},_f={exports:{}},Of={};/**
|
|
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(N,_){var z=N.length;N.push(_);e:for(;0<z;){var V=z-1>>>1,I=N[V];if(0<i(I,_))N[V]=_,N[z]=I,z=V;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],z=N.pop();if(z!==_){N[0]=z;e:for(var V=0,I=N.length,ue=I>>>1;V<ue;){var Re=2*(V+1)-1,ot=N[Re],Jt=Re+1,Si=N[Jt];if(0>i(ot,z))Jt<I&&0>i(Si,ot)?(N[V]=Si,N[Jt]=z,V=Jt):(N[V]=ot,N[Re]=z,V=Re);else if(Jt<I&&0>i(Si,z))N[V]=Si,N[Jt]=z,V=Jt;else break e}}return _}function i(N,_){var z=N.sortIndex-_.sortIndex;return z!==0?z:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,v=!1,x=!1,g=!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 y(N){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=N)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function S(N){if(g=!1,y(N),!x)if(n(l)!==null)x=!0,F(w);else{var _=n(u);_!==null&&B(S,_.startTime-N)}}function w(N,_){x=!1,g&&(g=!1,m(T),T=-1),v=!0;var z=h;try{for(y(_),f=n(l);f!==null&&(!(f.expirationTime>_)||N&&!G());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var I=V(f.expirationTime<=_);_=e.unstable_now(),typeof I=="function"?f.callback=I:f===n(l)&&r(l),y(_)}else r(l);f=n(l)}if(f!==null)var ue=!0;else{var Re=n(u);Re!==null&&B(S,Re.startTime-_),ue=!1}return ue}finally{f=null,h=z,v=!1}}var k=!1,P=null,T=-1,R=5,M=-1;function G(){return!(e.unstable_now()-M<R)}function ye(){if(P!==null){var N=e.unstable_now();M=N;var _=!0;try{_=P(!0,N)}finally{_?D():(k=!1,P=null)}}else k=!1}var D;if(typeof p=="function")D=function(){p(ye)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,L=W.port2;W.port1.onmessage=ye,D=function(){L.postMessage(null)}}else D=function(){C(ye,0)};function F(N){P=N,k||(k=!0,D())}function B(N,_){T=C(function(){N(e.unstable_now())},_)}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(N){N.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,F(w))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var z=h;h=_;try{return N()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=h;h=N;try{return _()}finally{h=z}},e.unstable_scheduleCallback=function(N,_,z){var V=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?V+z:V):z=V,N){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=z+I,N={id:d++,callback:_,priorityLevel:N,startTime:z,expirationTime:I,sortIndex:-1},z>V?(N.sortIndex=z,t(u,N),n(l)===null&&N===n(u)&&(g?(m(T),T=-1):g=!0,B(S,z-V))):(N.sortIndex=I,t(l,N),x||v||(x=!0,F(w))),N},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(N){var _=h;return function(){var z=h;h=_;try{return N.apply(this,arguments)}finally{h=z}}}})(Of);_f.exports=Of;var Qy=_f.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 by=j,Fe=Qy;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 zf=new Set,Fr={};function gn(e,t){Gn(e,t),Gn(e+"Capture",t)}function Gn(e,t){for(Fr[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),na=Object.prototype.hasOwnProperty,Yy=/^[: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]*$/,Hu={},Ku={};function Xy(e){return na.call(Ku,e)?!0:na.call(Hu,e)?!1:Yy.test(e)?Ku[e]=!0:(Hu[e]=!0,!1)}function qy(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 Zy(e,t,n,r){if(t===null||typeof t>"u"||qy(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 Ee(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(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){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var ml=/[\-:]([a-z])/g;function yl(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(ml,yl);me[t]=new Ee(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(ml,yl);me[t]=new Ee(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(ml,yl);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function vl(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zy(t,n,i,r)&&(n=null),r||i===null?Xy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=by.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),kn=Symbol.for("react.portal"),jn=Symbol.for("react.fragment"),gl=Symbol.for("react.strict_mode"),ra=Symbol.for("react.profiler"),If=Symbol.for("react.provider"),Ff=Symbol.for("react.context"),xl=Symbol.for("react.forward_ref"),ia=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),wl=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Bf=Symbol.for("react.offscreen"),Gu=Symbol.iterator;function ar(e){return e===null||typeof e!="object"?null:(e=Gu&&e[Gu]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,po;function vr(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 mo=!1;function yo(e,t){if(!e||mo)return"";mo=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
-
`),s=r.stack.split(`
|
|
36
|
-
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
|
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Jy(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function oa(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 jn:return"Fragment";case kn:return"Portal";case ra:return"Profiler";case gl:return"StrictMode";case ia:return"Suspense";case sa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ff:return(e.displayName||"Context")+".Consumer";case If:return(e._context.displayName||"Context")+".Provider";case xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wl:return t=e.displayName||null,t!==null?t:oa(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return oa(e(t))}catch{}}return null}function ev(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 oa(t);case 8:return t===gl?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tv(e){var t=Uf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=tv(e))}function $f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Uf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(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 aa(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 Wf(e,t){t=t.checked,t!=null&&vl(e,"checked",t,!1)}function la(e,t){Wf(e,t);var n=Kt(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")?ua(e,t.type,n):t.hasOwnProperty("defaultValue")&&ua(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bu(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 ua(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ca(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yu(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(gr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kt(n)}}function Hf(e,t){var n=Kt(t.value),r=Kt(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 Xu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Kf(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 da(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Kf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pi,Gf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Pi=Pi||document.createElement("div"),Pi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pr={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},nv=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){nv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pr[t]=Pr[e]})});function Qf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+t).trim():t+"px"}function bf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Qf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rv=te({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 fa(e,t){if(t){if(rv[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 ha(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 pa=null;function Sl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,Un=null,$n=null;function qu(e){if(e=hi(e)){if(typeof ma!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Qs(t),ma(e.stateNode,e.type,t))}}function Yf(e){Un?$n?$n.push(e):$n=[e]:Un=e}function Xf(){if(Un){var e=Un,t=$n;if($n=Un=null,qu(e),t)for(e=0;e<t.length;e++)qu(t[e])}}function qf(e,t){return e(t)}function Zf(){}var vo=!1;function Jf(e,t,n){if(vo)return e(t,n);vo=!0;try{return qf(e,t,n)}finally{vo=!1,(Un!==null||$n!==null)&&(Zf(),Xf())}}function Ur(e,t){var n=e.stateNode;if(n===null)return null;var r=Qs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var ya=!1;if(kt)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){ya=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{ya=!1}function iv(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Tr=!1,ls=null,us=!1,va=null,sv={onError:function(e){Tr=!0,ls=e}};function ov(e,t,n,r,i,s,o,a,l){Tr=!1,ls=null,iv.apply(sv,arguments)}function av(e,t,n,r,i,s,o,a,l){if(ov.apply(this,arguments),Tr){if(Tr){var u=ls;Tr=!1,ls=null}else throw Error(E(198));us||(us=!0,va=u)}}function xn(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 eh(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 Zu(e){if(xn(e)!==e)throw Error(E(188))}function lv(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Zu(i),e;if(s===r)return Zu(i),t;s=s.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function th(e){return e=lv(e),e!==null?nh(e):null}function nh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nh(e);if(t!==null)return t;e=e.sibling}return null}var rh=Fe.unstable_scheduleCallback,Ju=Fe.unstable_cancelCallback,uv=Fe.unstable_shouldYield,cv=Fe.unstable_requestPaint,se=Fe.unstable_now,dv=Fe.unstable_getCurrentPriorityLevel,kl=Fe.unstable_ImmediatePriority,ih=Fe.unstable_UserBlockingPriority,cs=Fe.unstable_NormalPriority,fv=Fe.unstable_LowPriority,sh=Fe.unstable_IdlePriority,Ws=null,ct=null;function hv(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ws,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:yv,pv=Math.log,mv=Math.LN2;function yv(e){return e>>>=0,e===0?32:31-(pv(e)/mv|0)|0}var Ti=64,Ei=4194304;function xr(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 ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=xr(a):(s&=o,s!==0&&(r=xr(s)))}else o=n&~i,o!==0?r=xr(o):s!==0&&(r=xr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function vv(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 gv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-rt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=vv(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function ga(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oh(){var e=Ti;return Ti<<=1,!(Ti&4194240)&&(Ti=64),e}function go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function xv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-rt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function jl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var K=0;function ah(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lh,Cl,uh,ch,dh,xa=!1,Ni=[],Ot=null,zt=null,It=null,$r=new Map,Wr=new Map,Lt=[],wv="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 ec(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":$r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function ur(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=hi(t),t!==null&&Cl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Sv(e,t,n,r,i){switch(t){case"focusin":return Ot=ur(Ot,e,t,n,r,i),!0;case"dragenter":return zt=ur(zt,e,t,n,r,i),!0;case"mouseover":return It=ur(It,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return $r.set(s,ur($r.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Wr.set(s,ur(Wr.get(s)||null,e,t,n,r,i)),!0}return!1}function fh(e){var t=on(e.target);if(t!==null){var n=xn(t);if(n!==null){if(t=n.tag,t===13){if(t=eh(n),t!==null){e.blockedOn=t,dh(e.priority,function(){uh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pa=r,n.target.dispatchEvent(r),pa=null}else return t=hi(n),t!==null&&Cl(t),e.blockedOn=n,!1;t.shift()}return!0}function tc(e,t,n){Qi(e)&&n.delete(t)}function kv(){xa=!1,Ot!==null&&Qi(Ot)&&(Ot=null),zt!==null&&Qi(zt)&&(zt=null),It!==null&&Qi(It)&&(It=null),$r.forEach(tc),Wr.forEach(tc)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,xa||(xa=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,kv)))}function Hr(e){function t(i){return cr(i,e)}if(0<Ni.length){cr(Ni[0],e);for(var n=1;n<Ni.length;n++){var r=Ni[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ot!==null&&cr(Ot,e),zt!==null&&cr(zt,e),It!==null&&cr(It,e),$r.forEach(t),Wr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)fh(n),n.blockedOn===null&&Lt.shift()}var Wn=Et.ReactCurrentBatchConfig,fs=!0;function jv(e,t,n,r){var i=K,s=Wn.transition;Wn.transition=null;try{K=1,Pl(e,t,n,r)}finally{K=i,Wn.transition=s}}function Cv(e,t,n,r){var i=K,s=Wn.transition;Wn.transition=null;try{K=4,Pl(e,t,n,r)}finally{K=i,Wn.transition=s}}function Pl(e,t,n,r){if(fs){var i=wa(e,t,n,r);if(i===null)No(e,t,r,hs,n),ec(e,r);else if(Sv(i,e,t,n,r))r.stopPropagation();else if(ec(e,r),t&4&&-1<wv.indexOf(e)){for(;i!==null;){var s=hi(i);if(s!==null&&lh(s),s=wa(e,t,n,r),s===null&&No(e,t,r,hs,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else No(e,t,r,null,n)}}var hs=null;function wa(e,t,n,r){if(hs=null,e=Sl(r),e=on(e),e!==null)if(t=xn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=eh(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 hs=e,null}function hh(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(dv()){case kl:return 1;case ih:return 4;case cs:case fv:return 16;case sh:return 536870912;default:return 16}default:return 16}}var Vt=null,Tl=null,bi=null;function ph(){if(bi)return bi;var e,t=Tl,n=t.length,r,i="value"in Vt?Vt.value:Vt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return bi=i.slice(e,1<r?1-r:void 0)}function Yi(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 Mi(){return!0}function nc(){return!1}function $e(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Mi:nc,this.isPropagationStopped=nc,this}return te(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=Mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},El=$e(rr),fi=te({},rr,{view:0,detail:0}),Pv=$e(fi),xo,wo,dr,Hs=te({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nl,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!==dr&&(dr&&e.type==="mousemove"?(xo=e.screenX-dr.screenX,wo=e.screenY-dr.screenY):wo=xo=0,dr=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),rc=$e(Hs),Tv=te({},Hs,{dataTransfer:0}),Ev=$e(Tv),Nv=te({},fi,{relatedTarget:0}),So=$e(Nv),Mv=te({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Av=$e(Mv),Dv=te({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lv=$e(Dv),Rv=te({},rr,{data:0}),ic=$e(Rv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={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"},Ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ov[e])?!!t[e]:!1}function Nl(){return zv}var Iv=te({},fi,{key:function(e){if(e.key){var t=Vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nl,charCode:function(e){return e.type==="keypress"?Yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fv=$e(Iv),Bv=te({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sc=$e(Bv),Uv=te({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nl}),$v=$e(Uv),Wv=te({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hv=$e(Wv),Kv=te({},Hs,{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}),Gv=$e(Kv),Qv=[9,13,27,32],Ml=kt&&"CompositionEvent"in window,Er=null;kt&&"documentMode"in document&&(Er=document.documentMode);var bv=kt&&"TextEvent"in window&&!Er,mh=kt&&(!Ml||Er&&8<Er&&11>=Er),oc=" ",ac=!1;function yh(e,t){switch(e){case"keyup":return Qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Yv(e,t){switch(e){case"compositionend":return vh(t);case"keypress":return t.which!==32?null:(ac=!0,oc);case"textInput":return e=t.data,e===oc&&ac?null:e;default:return null}}function Xv(e,t){if(Cn)return e==="compositionend"||!Ml&&yh(e,t)?(e=ph(),bi=Tl=Vt=null,Cn=!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 mh&&t.locale!=="ko"?null:t.data;default:return null}}var qv={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 lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qv[e.type]:t==="textarea"}function gh(e,t,n,r){Yf(r),t=ps(t,"onChange"),0<t.length&&(n=new El("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nr=null,Kr=null;function Zv(e){Mh(e,0)}function Ks(e){var t=En(e);if($f(t))return e}function Jv(e,t){if(e==="change")return t}var xh=!1;if(kt){var ko;if(kt){var jo="oninput"in document;if(!jo){var uc=document.createElement("div");uc.setAttribute("oninput","return;"),jo=typeof uc.oninput=="function"}ko=jo}else ko=!1;xh=ko&&(!document.documentMode||9<document.documentMode)}function cc(){Nr&&(Nr.detachEvent("onpropertychange",wh),Kr=Nr=null)}function wh(e){if(e.propertyName==="value"&&Ks(Kr)){var t=[];gh(t,Kr,e,Sl(e)),Jf(Zv,t)}}function eg(e,t,n){e==="focusin"?(cc(),Nr=t,Kr=n,Nr.attachEvent("onpropertychange",wh)):e==="focusout"&&cc()}function tg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ks(Kr)}function ng(e,t){if(e==="click")return Ks(t)}function rg(e,t){if(e==="input"||e==="change")return Ks(t)}function ig(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:ig;function Gr(e,t){if(st(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!na.call(t,i)||!st(e[i],t[i]))return!1}return!0}function dc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fc(e,t){var n=dc(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=dc(n)}}function Sh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kh(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function Al(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 sg(e){var t=kh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sh(n.ownerDocument.documentElement,n)){if(r!==null&&Al(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=fc(n,s);var o=fc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var og=kt&&"documentMode"in document&&11>=document.documentMode,Pn=null,Sa=null,Mr=null,ka=!1;function hc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ka||Pn==null||Pn!==as(r)||(r=Pn,"selectionStart"in r&&Al(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}),Mr&&Gr(Mr,r)||(Mr=r,r=ps(Sa,"onSelect"),0<r.length&&(t=new El("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function Ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionend:Ai("Transition","TransitionEnd")},Co={},jh={};kt&&(jh=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function Gs(e){if(Co[e])return Co[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jh)return Co[e]=t[n];return e}var Ch=Gs("animationend"),Ph=Gs("animationiteration"),Th=Gs("animationstart"),Eh=Gs("transitionend"),Nh=new Map,pc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yt(e,t){Nh.set(e,t),gn(t,[e])}for(var Po=0;Po<pc.length;Po++){var To=pc[Po],ag=To.toLowerCase(),lg=To[0].toUpperCase()+To.slice(1);Yt(ag,"on"+lg)}Yt(Ch,"onAnimationEnd");Yt(Ph,"onAnimationIteration");Yt(Th,"onAnimationStart");Yt("dblclick","onDoubleClick");Yt("focusin","onFocus");Yt("focusout","onBlur");Yt(Eh,"onTransitionEnd");Gn("onMouseEnter",["mouseout","mouseover"]);Gn("onMouseLeave",["mouseout","mouseover"]);Gn("onPointerEnter",["pointerout","pointerover"]);Gn("onPointerLeave",["pointerout","pointerover"]);gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gn("onBeforeInput",["compositionend","keypress","textInput","paste"]);gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),ug=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function mc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,av(r,t,void 0,e),e.currentTarget=null}function Mh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;mc(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;mc(i,a,u),s=l}}}if(us)throw e=va,us=!1,va=null,e}function b(e,t){var n=t[Ea];n===void 0&&(n=t[Ea]=new Set);var r=e+"__bubble";n.has(r)||(Ah(t,e,2,!1),n.add(r))}function Eo(e,t,n){var r=0;t&&(r|=4),Ah(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Di]){e[Di]=!0,zf.forEach(function(n){n!=="selectionchange"&&(ug.has(n)||Eo(n,!1,e),Eo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,Eo("selectionchange",!1,t))}}function Ah(e,t,n,r){switch(hh(t)){case 1:var i=jv;break;case 4:i=Cv;break;default:i=Pl}n=i.bind(null,t,n,e),i=void 0,!ya||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function No(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=on(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Jf(function(){var u=s,d=Sl(n),f=[];e:{var h=Nh.get(e);if(h!==void 0){var v=El,x=e;switch(e){case"keypress":if(Yi(n)===0)break e;case"keydown":case"keyup":v=Fv;break;case"focusin":x="focus",v=So;break;case"focusout":x="blur",v=So;break;case"beforeblur":case"afterblur":v=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=$v;break;case Ch:case Ph:case Th:v=Av;break;case Eh:v=Hv;break;case"scroll":v=Pv;break;case"wheel":v=Gv;break;case"copy":case"cut":case"paste":v=Lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=sc}var g=(t&4)!==0,C=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var p=u,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=Ur(p,m),S!=null&&g.push(br(p,S,y)))),C)break;p=p.return}0<g.length&&(h=new v(h,x,null,n,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&n!==pa&&(x=n.relatedTarget||n.fromElement)&&(on(x)||x[jt]))break e;if((v||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=u,x=x?on(x):null,x!==null&&(C=xn(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=u),v!==x)){if(g=rc,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=sc,S="onPointerLeave",m="onPointerEnter",p="pointer"),C=v==null?h:En(v),y=x==null?h:En(x),h=new g(S,p+"leave",v,n,d),h.target=C,h.relatedTarget=y,S=null,on(d)===u&&(g=new g(m,p+"enter",x,n,d),g.target=y,g.relatedTarget=C,S=g),C=S,v&&x)t:{for(g=v,m=x,p=0,y=g;y;y=Sn(y))p++;for(y=0,S=m;S;S=Sn(S))y++;for(;0<p-y;)g=Sn(g),p--;for(;0<y-p;)m=Sn(m),y--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=Sn(g),m=Sn(m)}g=null}else g=null;v!==null&&yc(f,h,v,g,!1),x!==null&&C!==null&&yc(f,C,x,g,!0)}}e:{if(h=u?En(u):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var w=Jv;else if(lc(h))if(xh)w=rg;else{w=tg;var k=eg}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=ng);if(w&&(w=w(e,u))){gh(f,w,n,d);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&ua(h,"number",h.value)}switch(k=u?En(u):window,e){case"focusin":(lc(k)||k.contentEditable==="true")&&(Pn=k,Sa=u,Mr=null);break;case"focusout":Mr=Sa=Pn=null;break;case"mousedown":ka=!0;break;case"contextmenu":case"mouseup":case"dragend":ka=!1,hc(f,n,d);break;case"selectionchange":if(og)break;case"keydown":case"keyup":hc(f,n,d)}var P;if(Ml)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Cn?yh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(mh&&n.locale!=="ko"&&(Cn||T!=="onCompositionStart"?T==="onCompositionEnd"&&Cn&&(P=ph()):(Vt=d,Tl="value"in Vt?Vt.value:Vt.textContent,Cn=!0)),k=ps(u,T),0<k.length&&(T=new ic(T,e,null,n,d),f.push({event:T,listeners:k}),P?T.data=P:(P=vh(n),P!==null&&(T.data=P)))),(P=bv?Yv(e,n):Xv(e,n))&&(u=ps(u,"onBeforeInput"),0<u.length&&(d=new ic("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=P))}Mh(f,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ps(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ur(e,n),s!=null&&r.unshift(br(e,s,i)),s=Ur(e,t),s!=null&&r.push(br(e,s,i))),e=e.return}return r}function Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Ur(n,s),l!=null&&o.unshift(br(n,l,a))):i||(l=Ur(n,s),l!=null&&o.push(br(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var cg=/\r\n?/g,dg=/\u0000|\uFFFD/g;function vc(e){return(typeof e=="string"?e:""+e).replace(cg,`
|
|
38
|
-
`).replace(dg,"")}function Li(e,t,n){if(t=vc(t),vc(e)!==t&&n)throw Error(E(425))}function ms(){}var ja=null,Ca=null;function Pa(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 Ta=typeof setTimeout=="function"?setTimeout:void 0,fg=typeof clearTimeout=="function"?clearTimeout:void 0,gc=typeof Promise=="function"?Promise:void 0,hg=typeof queueMicrotask=="function"?queueMicrotask:typeof gc<"u"?function(e){return gc.resolve(null).then(e).catch(pg)}:Ta;function pg(e){setTimeout(function(){throw e})}function Mo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Hr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Hr(t)}function Ft(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xc(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 ir=Math.random().toString(36).slice(2),ut="__reactFiber$"+ir,Yr="__reactProps$"+ir,jt="__reactContainer$"+ir,Ea="__reactEvents$"+ir,mg="__reactListeners$"+ir,yg="__reactHandles$"+ir;function on(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xc(e);e!==null;){if(n=e[ut])return n;e=xc(e)}return t}e=n,n=e.parentNode}return null}function hi(e){return e=e[ut]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Qs(e){return e[Yr]||null}var Na=[],Nn=-1;function Xt(e){return{current:e}}function Y(e){0>Nn||(e.current=Na[Nn],Na[Nn]=null,Nn--)}function Q(e,t){Nn++,Na[Nn]=e.current,e.current=t}var Gt={},ke=Xt(Gt),Ae=Xt(!1),hn=Gt;function Qn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function De(e){return e=e.childContextTypes,e!=null}function ys(){Y(Ae),Y(ke)}function wc(e,t,n){if(ke.current!==Gt)throw Error(E(168));Q(ke,t),Q(Ae,n)}function Dh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,ev(e)||"Unknown",i));return te({},n,r)}function vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,hn=ke.current,Q(ke,e),Q(Ae,Ae.current),!0}function Sc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Dh(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,Y(Ae),Y(ke),Q(ke,e)):Y(Ae),Q(Ae,n)}var mt=null,bs=!1,Ao=!1;function Lh(e){mt===null?mt=[e]:mt.push(e)}function vg(e){bs=!0,Lh(e)}function qt(){if(!Ao&&mt!==null){Ao=!0;var e=0,t=K;try{var n=mt;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,bs=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),rh(kl,qt),i}finally{K=t,Ao=!1}}return null}var Mn=[],An=0,gs=null,xs=0,Ke=[],Ge=0,pn=null,yt=1,vt="";function tn(e,t){Mn[An++]=xs,Mn[An++]=gs,gs=e,xs=t}function Rh(e,t,n){Ke[Ge++]=yt,Ke[Ge++]=vt,Ke[Ge++]=pn,pn=e;var r=yt;e=vt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var s=32-rt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yt=1<<32-rt(t)+i|n<<i|r,vt=s+e}else yt=1<<s|n<<i|r,vt=e}function Dl(e){e.return!==null&&(tn(e,1),Rh(e,1,0))}function Ll(e){for(;e===gs;)gs=Mn[--An],Mn[An]=null,xs=Mn[--An],Mn[An]=null;for(;e===pn;)pn=Ke[--Ge],Ke[Ge]=null,vt=Ke[--Ge],Ke[Ge]=null,yt=Ke[--Ge],Ke[Ge]=null}var ze=null,Oe=null,q=!1,nt=null;function Vh(e,t){var n=be(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,ze=e,Oe=Ft(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ze=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=pn!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=be(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ze=e,Oe=null,!0):!1;default:return!1}}function Ma(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Aa(e){if(q){var t=Oe;if(t){var n=t;if(!kc(e,t)){if(Ma(e))throw Error(E(418));t=Ft(n.nextSibling);var r=ze;t&&kc(e,t)?Vh(r,n):(e.flags=e.flags&-4097|2,q=!1,ze=e)}}else{if(Ma(e))throw Error(E(418));e.flags=e.flags&-4097|2,q=!1,ze=e}}}function jc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ze=e}function Ri(e){if(e!==ze)return!1;if(!q)return jc(e),q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pa(e.type,e.memoizedProps)),t&&(t=Oe)){if(Ma(e))throw _h(),Error(E(418));for(;t;)Vh(e,t),t=Ft(t.nextSibling)}if(jc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Oe=Ft(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=ze?Ft(e.stateNode.nextSibling):null;return!0}function _h(){for(var e=Oe;e;)e=Ft(e.nextSibling)}function bn(){Oe=ze=null,q=!1}function Rl(e){nt===null?nt=[e]:nt.push(e)}var gg=Et.ReactCurrentBatchConfig;function fr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cc(e){var t=e._init;return t(e._payload)}function Oh(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=Wt(m,p),m.index=0,m.sibling=null,m}function s(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,S){return p===null||p.tag!==6?(p=zo(y,m.mode,S),p.return=m,p):(p=i(p,y),p.return=m,p)}function l(m,p,y,S){var w=y.type;return w===jn?d(m,p,y.props.children,S,y.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Cc(w)===p.type)?(S=i(p,y.props),S.ref=fr(m,p,y),S.return=m,S):(S=ns(y.type,y.key,y.props,null,m.mode,S),S.ref=fr(m,p,y),S.return=m,S)}function u(m,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Io(y,m.mode,S),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function d(m,p,y,S,w){return p===null||p.tag!==7?(p=dn(y,m.mode,S,w),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=zo(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ji:return y=ns(p.type,p.key,p.props,null,m.mode,y),y.ref=fr(m,null,p),y.return=m,y;case kn:return p=Io(p,m.mode,y),p.return=m,p;case At:var S=p._init;return f(m,S(p._payload),y)}if(gr(p)||ar(p))return p=dn(p,m.mode,y,null),p.return=m,p;Vi(m,p)}return null}function h(m,p,y,S){var w=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:a(m,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ji:return y.key===w?l(m,p,y,S):null;case kn:return y.key===w?u(m,p,y,S):null;case At:return w=y._init,h(m,p,w(y._payload),S)}if(gr(y)||ar(y))return w!==null?null:d(m,p,y,S,null);Vi(m,y)}return null}function v(m,p,y,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(p,m,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ji:return m=m.get(S.key===null?y:S.key)||null,l(p,m,S,w);case kn:return m=m.get(S.key===null?y:S.key)||null,u(p,m,S,w);case At:var k=S._init;return v(m,p,y,k(S._payload),w)}if(gr(S)||ar(S))return m=m.get(y)||null,d(p,m,S,w,null);Vi(p,S)}return null}function x(m,p,y,S){for(var w=null,k=null,P=p,T=p=0,R=null;P!==null&&T<y.length;T++){P.index>T?(R=P,P=null):R=P.sibling;var M=h(m,P,y[T],S);if(M===null){P===null&&(P=R);break}e&&P&&M.alternate===null&&t(m,P),p=s(M,p,T),k===null?w=M:k.sibling=M,k=M,P=R}if(T===y.length)return n(m,P),q&&tn(m,T),w;if(P===null){for(;T<y.length;T++)P=f(m,y[T],S),P!==null&&(p=s(P,p,T),k===null?w=P:k.sibling=P,k=P);return q&&tn(m,T),w}for(P=r(m,P);T<y.length;T++)R=v(P,m,T,y[T],S),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?T:R.key),p=s(R,p,T),k===null?w=R:k.sibling=R,k=R);return e&&P.forEach(function(G){return t(m,G)}),q&&tn(m,T),w}function g(m,p,y,S){var w=ar(y);if(typeof w!="function")throw Error(E(150));if(y=w.call(y),y==null)throw Error(E(151));for(var k=w=null,P=p,T=p=0,R=null,M=y.next();P!==null&&!M.done;T++,M=y.next()){P.index>T?(R=P,P=null):R=P.sibling;var G=h(m,P,M.value,S);if(G===null){P===null&&(P=R);break}e&&P&&G.alternate===null&&t(m,P),p=s(G,p,T),k===null?w=G:k.sibling=G,k=G,P=R}if(M.done)return n(m,P),q&&tn(m,T),w;if(P===null){for(;!M.done;T++,M=y.next())M=f(m,M.value,S),M!==null&&(p=s(M,p,T),k===null?w=M:k.sibling=M,k=M);return q&&tn(m,T),w}for(P=r(m,P);!M.done;T++,M=y.next())M=v(P,m,T,M.value,S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?T:M.key),p=s(M,p,T),k===null?w=M:k.sibling=M,k=M);return e&&P.forEach(function(ye){return t(m,ye)}),q&&tn(m,T),w}function C(m,p,y,S){if(typeof y=="object"&&y!==null&&y.type===jn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ji:e:{for(var w=y.key,k=p;k!==null;){if(k.key===w){if(w=y.type,w===jn){if(k.tag===7){n(m,k.sibling),p=i(k,y.props.children),p.return=m,m=p;break e}}else if(k.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Cc(w)===k.type){n(m,k.sibling),p=i(k,y.props),p.ref=fr(m,k,y),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}y.type===jn?(p=dn(y.props.children,m.mode,S,y.key),p.return=m,m=p):(S=ns(y.type,y.key,y.props,null,m.mode,S),S.ref=fr(m,p,y),S.return=m,m=S)}return o(m);case kn:e:{for(k=y.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Io(y,m.mode,S),p.return=m,m=p}return o(m);case At:return k=y._init,C(m,p,k(y._payload),S)}if(gr(y))return x(m,p,y,S);if(ar(y))return g(m,p,y,S);Vi(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,y),p.return=m,m=p):(n(m,p),p=zo(y,m.mode,S),p.return=m,m=p),o(m)):n(m,p)}return C}var Yn=Oh(!0),zh=Oh(!1),ws=Xt(null),Ss=null,Dn=null,Vl=null;function _l(){Vl=Dn=Ss=null}function Ol(e){var t=ws.current;Y(ws),e._currentValue=t}function Da(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 Hn(e,t){Ss=e,Vl=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(Vl!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(Ss===null)throw Error(E(308));Dn=e,Ss.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var an=null;function zl(e){an===null?an=[e]:an.push(e)}function Ih(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,zl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ct(e,r)}function Ct(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dt=!1;function Il(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ct(e,n)}return i=r.interleaved,i===null?(t.next=t,zl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ct(e,n)}function Xi(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,jl(e,n)}}function Pc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ks(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=u=l=null,a=s;do{var h=a.lane,v=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(h=t,v=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){f=x.call(v,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,h=typeof x=="function"?x.call(v,f,h):x,h==null)break e;f=te({},f,h);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else v={eventTime:v,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=v,l=f):d=d.next=v,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);yn|=o,e.lanes=o,e.memoizedState=f}}function Tc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var pi={},dt=Xt(pi),Xr=Xt(pi),qr=Xt(pi);function ln(e){if(e===pi)throw Error(E(174));return e}function Fl(e,t){switch(Q(qr,t),Q(Xr,e),Q(dt,pi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:da(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=da(t,e)}Y(dt),Q(dt,t)}function Xn(){Y(dt),Y(Xr),Y(qr)}function Bh(e){ln(qr.current);var t=ln(dt.current),n=da(t,e.type);t!==n&&(Q(Xr,e),Q(dt,n))}function Bl(e){Xr.current===e&&(Y(dt),Y(Xr))}var Z=Xt(0);function js(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 Do=[];function Ul(){for(var e=0;e<Do.length;e++)Do[e]._workInProgressVersionPrimary=null;Do.length=0}var qi=Et.ReactCurrentDispatcher,Lo=Et.ReactCurrentBatchConfig,mn=0,ee=null,ae=null,ce=null,Cs=!1,Ar=!1,Zr=0,xg=0;function ve(){throw Error(E(321))}function $l(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function Wl(e,t,n,r,i,s){if(mn=s,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qi.current=e===null||e.memoizedState===null?jg:Cg,e=n(r,i),Ar){s=0;do{if(Ar=!1,Zr=0,25<=s)throw Error(E(301));s+=1,ce=ae=null,t.updateQueue=null,qi.current=Pg,e=n(r,i)}while(Ar)}if(qi.current=Ps,t=ae!==null&&ae.next!==null,mn=0,ce=ae=ee=null,Cs=!1,t)throw Error(E(300));return e}function Hl(){var e=Zr!==0;return Zr=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ee.memoizedState=ce=e:ce=ce.next=e,ce}function qe(){if(ae===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ce===null?ee.memoizedState:ce.next;if(t!==null)ce=t,ae=e;else{if(e===null)throw Error(E(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ce===null?ee.memoizedState=ce=e:ce=ce.next=e}return ce}function Jr(e,t){return typeof t=="function"?t(e):t}function Ro(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ae,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var d=u.lane;if((mn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,ee.lanes|=d,yn|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,st(r,t.memoizedState)||(Me=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ee.lanes|=s,yn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vo(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);st(s,t.memoizedState)||(Me=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Uh(){}function $h(e,t){var n=ee,r=qe(),i=t(),s=!st(r.memoizedState,i);if(s&&(r.memoizedState=i,Me=!0),r=r.queue,Kl(Kh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,ei(9,Hh.bind(null,n,r,i,t),void 0,null),de===null)throw Error(E(349));mn&30||Wh(n,t,i)}return i}function Wh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hh(e,t,n,r){t.value=n,t.getSnapshot=r,Gh(t)&&Qh(e)}function Kh(e,t,n){return n(function(){Gh(t)&&Qh(e)})}function Gh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function Qh(e){var t=Ct(e,1);t!==null&&it(t,e,1,-1)}function Ec(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:e},t.queue=e,e=e.dispatch=kg.bind(null,ee,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.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 bh(){return qe().memoizedState}function Zi(e,t,n,r){var i=lt();ee.flags|=e,i.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function Ys(e,t,n,r){var i=qe();r=r===void 0?null:r;var s=void 0;if(ae!==null){var o=ae.memoizedState;if(s=o.destroy,r!==null&&$l(r,o.deps)){i.memoizedState=ei(t,n,s,r);return}}ee.flags|=e,i.memoizedState=ei(1|t,n,s,r)}function Nc(e,t){return Zi(8390656,8,e,t)}function Kl(e,t){return Ys(2048,8,e,t)}function Yh(e,t){return Ys(4,2,e,t)}function Xh(e,t){return Ys(4,4,e,t)}function qh(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 Zh(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4,4,qh.bind(null,t,e),n)}function Gl(){}function Jh(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$l(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ep(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$l(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tp(e,t,n){return mn&21?(st(n,t)||(n=oh(),ee.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=n)}function wg(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{K=n,Lo.transition=r}}function np(){return qe().memoizedState}function Sg(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rp(e))ip(t,n);else if(n=Ih(e,t,n,r),n!==null){var i=Pe();it(n,e,r,i),sp(n,t,r)}}function kg(e,t,n){var r=$t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rp(e))ip(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,zl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ih(e,t,i,r),n!==null&&(i=Pe(),it(n,e,r,i),sp(n,t,r))}}function rp(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function ip(e,t){Ar=Cs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jl(e,n)}}var Ps={readContext:Xe,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},jg={readContext:Xe,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:Nc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zi(4194308,4,qh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zi(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Sg.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Ec,useDebugValue:Gl,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Ec(!1),t=e[0];return e=wg.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=lt();if(q){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),de===null)throw Error(E(349));mn&30||Wh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Nc(Kh.bind(null,r,s,e),[e]),r.flags|=2048,ei(9,Hh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=de.identifierPrefix;if(q){var n=vt,r=yt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Cg={readContext:Xe,useCallback:Jh,useContext:Xe,useEffect:Kl,useImperativeHandle:Zh,useInsertionEffect:Yh,useLayoutEffect:Xh,useMemo:ep,useReducer:Ro,useRef:bh,useState:function(){return Ro(Jr)},useDebugValue:Gl,useDeferredValue:function(e){var t=qe();return tp(t,ae.memoizedState,e)},useTransition:function(){var e=Ro(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Uh,useSyncExternalStore:$h,useId:np,unstable_isNewReconciler:!1},Pg={readContext:Xe,useCallback:Jh,useContext:Xe,useEffect:Kl,useImperativeHandle:Zh,useInsertionEffect:Yh,useLayoutEffect:Xh,useMemo:ep,useReducer:Vo,useRef:bh,useState:function(){return Vo(Jr)},useDebugValue:Gl,useDeferredValue:function(e){var t=qe();return ae===null?t.memoizedState=e:tp(t,ae.memoizedState,e)},useTransition:function(){var e=Vo(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Uh,useSyncExternalStore:$h,useId:np,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function La(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xs={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=$t(e),s=xt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Xi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=$t(e),s=xt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Xi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=$t(e),i=xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Bt(e,i,r),t!==null&&(it(t,e,r,n),Xi(t,e,r))}};function Mc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,s):!0}function op(e,t,n){var r=!1,i=Gt,s=t.contextType;return typeof s=="object"&&s!==null?s=Xe(s):(i=De(t)?hn:ke.current,r=t.contextTypes,s=(r=r!=null)?Qn(e,i):Gt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Ac(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&&Xs.enqueueReplaceState(t,t.state,null)}function Ra(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Il(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Xe(s):(s=De(t)?hn:ke.current,i.context=Qn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(La(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xs.enqueueReplaceState(i,i.state,null),ks(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=Jy(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
-
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function _o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Va(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tg=typeof WeakMap=="function"?WeakMap:Map;function ap(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Es||(Es=!0,Ha=r),Va(e,t)},n}function lp(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Va(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Va(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Dc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Bg.bind(null,e,t,n),t.then(e,e))}function Lc(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 Rc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var Eg=Et.ReactCurrentOwner,Me=!1;function Ce(e,t,n,r){t.child=e===null?zh(t,null,n,r):Yn(t,e.child,n,r)}function Vc(e,t,n,r,i){n=n.render;var s=t.ref;return Hn(t,i),r=Wl(e,t,n,r,s,i),n=Hl(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(q&&n&&Dl(t),t.flags|=1,Ce(e,t,r,i),t.child)}function _c(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!eu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,up(e,t,s,r,i)):(e=ns(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(o,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Wt(s,r),e.ref=t.ref,e.return=t,t.child=e}function up(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Gr(s,r)&&e.ref===t.ref)if(Me=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Me=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return _a(e,t,n,r,i)}function cp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Rn,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Rn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Q(Rn,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Q(Rn,Ve),Ve|=r;return Ce(e,t,i,n),t.child}function dp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _a(e,t,n,r,i){var s=De(n)?hn:ke.current;return s=Qn(t,s),Hn(t,i),n=Wl(e,t,n,r,s,i),r=Hl(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(q&&r&&Dl(t),t.flags|=1,Ce(e,t,n,i),t.child)}function Oc(e,t,n,r,i){if(De(n)){var s=!0;vs(t)}else s=!1;if(Hn(t,i),t.stateNode===null)Ji(e,t),op(t,n,r),Ra(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Xe(u):(u=De(n)?hn:ke.current,u=Qn(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ac(t,o,r,u),Dt=!1;var h=t.memoizedState;o.state=h,ks(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Ae.current||Dt?(typeof d=="function"&&(La(t,n,d,r),l=t.memoizedState),(a=Dt||Mc(t,n,a,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Fh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:et(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Xe(l):(l=De(n)?hn:ke.current,l=Qn(t,l));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&Ac(t,o,r,l),Dt=!1,h=t.memoizedState,o.state=h,ks(t,r,o,i);var x=t.memoizedState;a!==f||h!==x||Ae.current||Dt?(typeof v=="function"&&(La(t,n,v,r),x=t.memoizedState),(u=Dt||Mc(t,n,u,r,h,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Oa(e,t,n,r,s,i)}function Oa(e,t,n,r,i,s){dp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Sc(t,n,!1),Pt(e,t,s);r=t.stateNode,Eg.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yn(t,e.child,null,s),t.child=Yn(t,null,a,s)):Ce(e,t,a,s),t.memoizedState=r.state,i&&Sc(t,n,!0),t.child}function fp(e){var t=e.stateNode;t.pendingContext?wc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wc(e,t.context,!1),Fl(e,t.containerInfo)}function zc(e,t,n,r,i){return bn(),Rl(i),t.flags|=256,Ce(e,t,n,r),t.child}var za={dehydrated:null,treeContext:null,retryLane:0};function Ia(e){return{baseLanes:e,cachePool:null,transitions:null}}function hp(e,t,n){var r=t.pendingProps,i=Z.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Q(Z,i&1),e===null)return Aa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Js(o,r,0,null),e=dn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ia(n),t.memoizedState=za,e):Ql(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ng(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Wt(a,s):(s=dn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Ia(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=za,r}return s=e.child,e=s.sibling,r=Wt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ql(e,t){return t=Js({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _i(e,t,n,r){return r!==null&&Rl(r),Yn(t,e.child,null,n),e=Ql(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ng(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=_o(Error(E(422))),_i(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Js({mode:"visible",children:r.children},i,0,null),s=dn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Yn(t,e.child,null,o),t.child.memoizedState=Ia(o),t.memoizedState=za,s);if(!(t.mode&1))return _i(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(E(419)),r=_o(s,r,void 0),_i(e,t,o,r)}if(a=(o&e.childLanes)!==0,Me||a){if(r=de,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ct(e,i),it(r,e,i,-1))}return Jl(),r=_o(Error(E(421))),_i(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ug.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Oe=Ft(i.nextSibling),ze=t,q=!0,nt=null,e!==null&&(Ke[Ge++]=yt,Ke[Ge++]=vt,Ke[Ge++]=pn,yt=e.id,vt=e.overflow,pn=t),t=Ql(t,r.children),t.flags|=4096,t)}function Ic(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Da(e.return,t,n)}function Oo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function pp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ce(e,t,r.children,n),r=Z.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&&Ic(e,n,t);else if(e.tag===19)Ic(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(Z,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&js(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&js(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,s);break;case"together":Oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ji(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mg(e,t,n){switch(t.tag){case 3:fp(t),bn();break;case 5:Bh(t);break;case 1:De(t.type)&&vs(t);break;case 4:Fl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Q(ws,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(Z,Z.current&1),t.flags|=128,null):n&t.child.childLanes?hp(e,t,n):(Q(Z,Z.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);Q(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(Z,Z.current),r)break;return null;case 22:case 23:return t.lanes=0,cp(e,t,n)}return Pt(e,t,n)}var mp,Fa,yp,vp;mp=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}};Fa=function(){};yp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ln(dt.current);var s=null;switch(n){case"input":i=aa(e,i),r=aa(e,r),s=[];break;case"select":i=te({},i,{value:void 0}),r=te({},r,{value:void 0}),s=[];break;case"textarea":i=ca(e,i),r=ca(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ms)}fa(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&b("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};vp=function(e,t,n,r){n!==r&&(t.flags|=4)};function hr(e,t){if(!q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ag(e,t,n){var r=t.pendingProps;switch(Ll(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return De(t.type)&&ys(),ge(t),null;case 3:return r=t.stateNode,Xn(),Y(Ae),Y(ke),Ul(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(Qa(nt),nt=null))),Fa(e,t),ge(t),null;case 5:Bl(t);var i=ln(qr.current);if(n=t.type,e!==null&&t.stateNode!=null)yp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ge(t),null}if(e=ln(dt.current),Ri(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[Yr]=s,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(i=0;i<wr.length;i++)b(wr[i],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":Qu(r,s),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},b("invalid",r);break;case"textarea":Yu(r,s),b("invalid",r)}fa(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Li(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Li(r.textContent,a,e),i=["children",""+a]):Fr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&b("scroll",r)}switch(n){case"input":Ci(r),bu(r,s,!0);break;case"textarea":Ci(r),Xu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ms)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Kf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Yr]=r,mp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ha(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;i<wr.length;i++)b(wr[i],e);i=r;break;case"source":b("error",e),i=r;break;case"img":case"image":case"link":b("error",e),b("load",e),i=r;break;case"details":b("toggle",e),i=r;break;case"input":Qu(e,r),i=aa(e,r),b("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=te({},r,{value:void 0}),b("invalid",e);break;case"textarea":Yu(e,r),i=ca(e,r),b("invalid",e);break;default:i=r}fa(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?bf(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Gf(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Br(e,l):typeof l=="number"&&Br(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Fr.hasOwnProperty(s)?l!=null&&s==="onScroll"&&b("scroll",e):l!=null&&vl(e,s,l,o))}switch(n){case"input":Ci(e),bu(e,r,!1);break;case"textarea":Ci(e),Xu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Bn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ms)}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 ge(t),null;case 6:if(e&&t.stateNode!=null)vp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=ln(qr.current),ln(dt.current),Ri(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Li(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Li(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return ge(t),null;case 13:if(Y(Z),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(q&&Oe!==null&&t.mode&1&&!(t.flags&128))_h(),bn(),t.flags|=98560,s=!1;else if(s=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(E(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(E(317));s[ut]=t}else bn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),s=!1}else nt!==null&&(Qa(nt),nt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Z.current&1?le===0&&(le=3):Jl())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return Xn(),Fa(e,t),e===null&&Qr(t.stateNode.containerInfo),ge(t),null;case 10:return Ol(t.type._context),ge(t),null;case 17:return De(t.type)&&ys(),ge(t),null;case 19:if(Y(Z),s=t.memoizedState,s===null)return ge(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)hr(s,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=js(e),o!==null){for(t.flags|=128,hr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(Z,Z.current&1|2),t.child}e=e.sibling}s.tail!==null&&se()>Zn&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304)}else{if(!r)if(e=js(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!q)return ge(t),null}else 2*se()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=se(),t.sibling=null,n=Z.current,Q(Z,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Zl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Dg(e,t){switch(Ll(t),t.tag){case 1:return De(t.type)&&ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(),Y(Ae),Y(ke),Ul(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bl(t),null;case 13:if(Y(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Z),null;case 4:return Xn(),null;case 10:return Ol(t.type._context),null;case 22:case 23:return Zl(),null;case 24:return null;default:return null}}var Oi=!1,we=!1,Lg=typeof WeakSet=="function"?WeakSet:Set,A=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Ba(e,t,n){try{n()}catch(r){re(e,t,r)}}var Fc=!1;function Rg(e,t){if(ja=fs,e=kh(),Al(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)h=f,f=v;for(;;){if(f===e)break t;if(h===n&&++u===i&&(a=o),h===s&&++d===r&&(l=o),(v=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ca={focusedElem:e,selectionRange:n},fs=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,C=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:et(t.type,g),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){re(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return x=Fc,Fc=!1,x}function Dr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ba(t,n,s)}i=i.next}while(i!==r)}}function qs(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 Ua(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 gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Yr],delete t[Ea],delete t[mg],delete t[yg])),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 xp(e){return e.tag===5||e.tag===3||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xp(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 $a(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=ms));else if(r!==4&&(e=e.child,e!==null))for($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}function Wa(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(Wa(e,t,n),e=e.sibling;e!==null;)Wa(e,t,n),e=e.sibling}var fe=null,tt=!1;function Nt(e,t,n){for(n=n.child;n!==null;)wp(e,t,n),n=n.sibling}function wp(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ws,n)}catch{}switch(n.tag){case 5:we||Ln(n,t);case 6:var r=fe,i=tt;fe=null,Nt(e,t,n),fe=r,tt=i,fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),Hr(e)):Mo(fe,n.stateNode));break;case 4:r=fe,i=tt,fe=n.stateNode.containerInfo,tt=!0,Nt(e,t,n),fe=r,tt=i;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ba(n,t,o),i=i.next}while(i!==r)}Nt(e,t,n);break;case 1:if(!we&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){re(n,t,a)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Nt(e,t,n),we=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function Uc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lg),t.forEach(function(r){var i=$g.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:fe=a.stateNode,tt=!1;break e;case 3:fe=a.stateNode.containerInfo,tt=!0;break e;case 4:fe=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(fe===null)throw Error(E(160));wp(s,o,i),fe=null,tt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sp(t,e),t=t.sibling}function Sp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),at(e),r&4){try{Dr(3,e,e.return),qs(3,e)}catch(g){re(e,e.return,g)}try{Dr(5,e,e.return)}catch(g){re(e,e.return,g)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&Ln(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&Ln(n,n.return),e.flags&32){var i=e.stateNode;try{Br(i,"")}catch(g){re(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Wf(i,s),ha(a,o);var u=ha(a,s);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?bf(i,f):d==="dangerouslySetInnerHTML"?Gf(i,f):d==="children"?Br(i,f):vl(i,d,f,u)}switch(a){case"input":la(i,s);break;case"textarea":Hf(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Bn(i,!!s.multiple,v,!1):h!==!!s.multiple&&(s.defaultValue!=null?Bn(i,!!s.multiple,s.defaultValue,!0):Bn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Yr]=s}catch(g){re(e,e.return,g)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){re(e,e.return,g)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(g){re(e,e.return,g)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Xl=se())),r&4&&Uc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(we=(u=we)||d,Ze(t,e),we=u):Ze(t,e),at(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(A=e,d=e.child;d!==null;){for(f=A=d;A!==null;){switch(h=A,v=h.child,h.tag){case 0:case 11:case 14:case 15:Dr(4,h,h.return);break;case 1:Ln(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){re(r,n,g)}}break;case 5:Ln(h,h.return);break;case 22:if(h.memoizedState!==null){Wc(f);continue}}v!==null?(v.return=h,A=v):Wc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Qf("display",o))}catch(g){re(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){re(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ze(t,e),at(e),r&4&&Uc(e);break;case 21:break;default:Ze(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Br(i,""),r.flags&=-33);var s=Bc(e);Wa(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bc(e);$a(e,a,o);break;default:throw Error(E(161))}}catch(l){re(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vg(e,t,n){A=e,kp(e)}function kp(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var i=A,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Oi;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||we;a=Oi;var u=we;if(Oi=o,(we=l)&&!u)for(A=i;A!==null;)o=A,l=o.child,o.tag===22&&o.memoizedState!==null?Hc(i):l!==null?(l.return=o,A=l):Hc(i);for(;s!==null;)A=s,kp(s),s=s.sibling;A=i,Oi=a,we=u}$c(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,A=s):$c(e)}}function $c(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:we||qs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!we)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Tc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Hr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}we||t.flags&512&&Ua(t)}catch(h){re(t,t.return,h)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Wc(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Hc(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qs(4,t)}catch(l){re(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){re(t,i,l)}}var s=t.return;try{Ua(t)}catch(l){re(t,s,l)}break;case 5:var o=t.return;try{Ua(t)}catch(l){re(t,o,l)}}}catch(l){re(t,t.return,l)}if(t===e){A=null;break}var a=t.sibling;if(a!==null){a.return=t.return,A=a;break}A=t.return}}var _g=Math.ceil,Ts=Et.ReactCurrentDispatcher,bl=Et.ReactCurrentOwner,Ye=Et.ReactCurrentBatchConfig,H=0,de=null,oe=null,pe=0,Ve=0,Rn=Xt(0),le=0,ti=null,yn=0,Zs=0,Yl=0,Lr=null,Ne=null,Xl=0,Zn=1/0,pt=null,Es=!1,Ha=null,Ut=null,zi=!1,_t=null,Ns=0,Rr=0,Ka=null,es=-1,ts=0;function Pe(){return H&6?se():es!==-1?es:es=se()}function $t(e){return e.mode&1?H&2&&pe!==0?pe&-pe:gg.transition!==null?(ts===0&&(ts=oh()),ts):(e=K,e!==0||(e=window.event,e=e===void 0?16:hh(e.type)),e):1}function it(e,t,n,r){if(50<Rr)throw Rr=0,Ka=null,Error(E(185));di(e,n,r),(!(H&2)||e!==de)&&(e===de&&(!(H&2)&&(Zs|=n),le===4&&Rt(e,pe)),Le(e,r),n===1&&H===0&&!(t.mode&1)&&(Zn=se()+500,bs&&qt()))}function Le(e,t){var n=e.callbackNode;gv(e,t);var r=ds(e,e===de?pe:0);if(r===0)n!==null&&Ju(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ju(n),t===1)e.tag===0?vg(Kc.bind(null,e)):Lh(Kc.bind(null,e)),hg(function(){!(H&6)&&qt()}),n=null;else{switch(ah(r)){case 1:n=kl;break;case 4:n=ih;break;case 16:n=cs;break;case 536870912:n=sh;break;default:n=cs}n=Ap(n,jp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jp(e,t){if(es=-1,ts=0,H&6)throw Error(E(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=ds(e,e===de?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ms(e,r);else{t=r;var i=H;H|=2;var s=Pp();(de!==e||pe!==t)&&(pt=null,Zn=se()+500,cn(e,t));do try{Ig();break}catch(a){Cp(e,a)}while(!0);_l(),Ts.current=s,H=i,oe!==null?t=0:(de=null,pe=0,t=le)}if(t!==0){if(t===2&&(i=ga(e),i!==0&&(r=i,t=Ga(e,i))),t===1)throw n=ti,cn(e,0),Rt(e,r),Le(e,se()),n;if(t===6)Rt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Og(i)&&(t=Ms(e,r),t===2&&(s=ga(e),s!==0&&(r=s,t=Ga(e,s))),t===1))throw n=ti,cn(e,0),Rt(e,r),Le(e,se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:nn(e,Ne,pt);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=Xl+500-se(),10<t)){if(ds(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ta(nn.bind(null,e,Ne,pt),t);break}nn(e,Ne,pt);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-rt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_g(r/1960))-r,10<r){e.timeoutHandle=Ta(nn.bind(null,e,Ne,pt),r);break}nn(e,Ne,pt);break;case 5:nn(e,Ne,pt);break;default:throw Error(E(329))}}}return Le(e,se()),e.callbackNode===n?jp.bind(null,e):null}function Ga(e,t){var n=Lr;return e.current.memoizedState.isDehydrated&&(cn(e,t).flags|=256),e=Ms(e,t),e!==2&&(t=Ne,Ne=n,t!==null&&Qa(t)),e}function Qa(e){Ne===null?Ne=e:Ne.push.apply(Ne,e)}function Og(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!st(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rt(e,t){for(t&=~Yl,t&=~Zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Kc(e){if(H&6)throw Error(E(327));Kn();var t=ds(e,0);if(!(t&1))return Le(e,se()),null;var n=Ms(e,t);if(e.tag!==0&&n===2){var r=ga(e);r!==0&&(t=r,n=Ga(e,r))}if(n===1)throw n=ti,cn(e,0),Rt(e,t),Le(e,se()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,Ne,pt),Le(e,se()),null}function ql(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(Zn=se()+500,bs&&qt())}}function vn(e){_t!==null&&_t.tag===0&&!(H&6)&&Kn();var t=H;H|=1;var n=Ye.transition,r=K;try{if(Ye.transition=null,K=1,e)return e()}finally{K=r,Ye.transition=n,H=t,!(H&6)&&qt()}}function Zl(){Ve=Rn.current,Y(Rn)}function cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fg(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(Ll(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ys();break;case 3:Xn(),Y(Ae),Y(ke),Ul();break;case 5:Bl(r);break;case 4:Xn();break;case 13:Y(Z);break;case 19:Y(Z);break;case 10:Ol(r.type._context);break;case 22:case 23:Zl()}n=n.return}if(de=e,oe=e=Wt(e.current,null),pe=Ve=t,le=0,ti=null,Yl=Zs=yn=0,Ne=Lr=null,an!==null){for(t=0;t<an.length;t++)if(n=an[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}an=null}return e}function Cp(e,t){do{var n=oe;try{if(_l(),qi.current=Ps,Cs){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Cs=!1}if(mn=0,ce=ae=ee=null,Ar=!1,Zr=0,bl.current=null,n===null||n.return===null){le=1,ti=t,oe=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=pe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Lc(o);if(v!==null){v.flags&=-257,Rc(v,o,a,s,t),v.mode&1&&Dc(s,u,t),t=v,l=u;var x=t.updateQueue;if(x===null){var g=new Set;g.add(l),t.updateQueue=g}else x.add(l);break e}else{if(!(t&1)){Dc(s,u,t),Jl();break e}l=Error(E(426))}}else if(q&&a.mode&1){var C=Lc(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Rc(C,o,a,s,t),Rl(qn(l,a));break e}}s=l=qn(l,a),le!==4&&(le=2),Lr===null?Lr=[s]:Lr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=ap(s,l,t);Pc(s,m);break e;case 1:a=l;var p=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ut===null||!Ut.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=lp(s,a,t);Pc(s,S);break e}}s=s.return}while(s!==null)}Ep(n)}catch(w){t=w,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function Pp(){var e=Ts.current;return Ts.current=Ps,e===null?Ps:e}function Jl(){(le===0||le===3||le===2)&&(le=4),de===null||!(yn&268435455)&&!(Zs&268435455)||Rt(de,pe)}function Ms(e,t){var n=H;H|=2;var r=Pp();(de!==e||pe!==t)&&(pt=null,cn(e,t));do try{zg();break}catch(i){Cp(e,i)}while(!0);if(_l(),H=n,Ts.current=r,oe!==null)throw Error(E(261));return de=null,pe=0,le}function zg(){for(;oe!==null;)Tp(oe)}function Ig(){for(;oe!==null&&!uv();)Tp(oe)}function Tp(e){var t=Mp(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?Ep(e):oe=t,bl.current=null}function Ep(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Dg(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,oe=null;return}}else if(n=Ag(n,t,Ve),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);le===0&&(le=5)}function nn(e,t,n){var r=K,i=Ye.transition;try{Ye.transition=null,K=1,Fg(e,t,n,r)}finally{Ye.transition=i,K=r}return null}function Fg(e,t,n,r){do Kn();while(_t!==null);if(H&6)throw Error(E(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(xv(e,s),e===de&&(oe=de=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zi||(zi=!0,Ap(cs,function(){return Kn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ye.transition,Ye.transition=null;var o=K;K=1;var a=H;H|=4,bl.current=null,Rg(e,n),Sp(n,e),sg(Ca),fs=!!ja,Ca=ja=null,e.current=n,Vg(n),cv(),H=a,K=o,Ye.transition=s}else e.current=n;if(zi&&(zi=!1,_t=e,Ns=i),s=e.pendingLanes,s===0&&(Ut=null),hv(n.stateNode),Le(e,se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Es)throw Es=!1,e=Ha,Ha=null,e;return Ns&1&&e.tag!==0&&Kn(),s=e.pendingLanes,s&1?e===Ka?Rr++:(Rr=0,Ka=e):Rr=0,qt(),null}function Kn(){if(_t!==null){var e=ah(Ns),t=Ye.transition,n=K;try{if(Ye.transition=null,K=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Ns=0,H&6)throw Error(E(331));var i=H;for(H|=4,A=e.current;A!==null;){var s=A,o=s.child;if(A.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(A=u;A!==null;){var d=A;switch(d.tag){case 0:case 11:case 15:Dr(8,d,s)}var f=d.child;if(f!==null)f.return=d,A=f;else for(;A!==null;){d=A;var h=d.sibling,v=d.return;if(gp(d),d===u){A=null;break}if(h!==null){h.return=v,A=h;break}A=v}}}var x=s.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var C=g.sibling;g.sibling=null,g=C}while(g!==null)}}A=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,A=o;else e:for(;A!==null;){if(s=A,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dr(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,A=m;break e}A=s.return}}var p=e.current;for(A=p;A!==null;){o=A;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,A=y;else e:for(o=p;A!==null;){if(a=A,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qs(9,a)}}catch(w){re(a,a.return,w)}if(a===o){A=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,A=S;break e}A=a.return}}if(H=i,qt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ws,e)}catch{}r=!0}return r}finally{K=n,Ye.transition=t}}return!1}function Gc(e,t,n){t=qn(n,t),t=ap(e,t,1),e=Bt(e,t,1),t=Pe(),e!==null&&(di(e,1,t),Le(e,t))}function re(e,t,n){if(e.tag===3)Gc(e,e,n);else for(;t!==null;){if(t.tag===3){Gc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=qn(n,e),e=lp(t,e,1),t=Bt(t,e,1),e=Pe(),t!==null&&(di(t,1,e),Le(t,e));break}}t=t.return}}function Bg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,de===e&&(pe&n)===n&&(le===4||le===3&&(pe&130023424)===pe&&500>se()-Xl?cn(e,0):Yl|=n),Le(e,t)}function Np(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Pe();e=Ct(e,t),e!==null&&(di(e,t,n),Le(e,n))}function Ug(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Np(e,n)}function $g(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Np(e,n)}var Mp;Mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,Mg(e,t,n);Me=!!(e.flags&131072)}else Me=!1,q&&t.flags&1048576&&Rh(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ji(e,t),e=t.pendingProps;var i=Qn(t,ke.current);Hn(t,n),i=Wl(null,t,r,e,i,n);var s=Hl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(s=!0,vs(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Il(t),i.updater=Xs,t.stateNode=i,i._reactInternals=t,Ra(t,r,e,n),t=Oa(null,t,r,!0,s,n)):(t.tag=0,q&&s&&Dl(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ji(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Hg(r),e=et(r,e),i){case 0:t=_a(null,t,r,e,n);break e;case 1:t=Oc(null,t,r,e,n);break e;case 11:t=Vc(null,t,r,e,n);break e;case 14:t=_c(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),_a(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Oc(e,t,r,i,n);case 3:e:{if(fp(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Fh(e,t),ks(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qn(Error(E(423)),t),t=zc(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(E(424)),t),t=zc(e,t,r,n,i);break e}else for(Oe=Ft(t.stateNode.containerInfo.firstChild),ze=t,q=!0,nt=null,n=zh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=Pt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Bh(t),e===null&&Aa(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Pa(r,i)?o=null:s!==null&&Pa(r,s)&&(t.flags|=32),dp(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Aa(t),null;case 13:return hp(e,t,n);case 4:return Fl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Vc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Q(ws,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Ae.current){t=Pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Da(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Da(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hn(t,n),i=Xe(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),_c(e,t,r,i,n);case 15:return up(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ji(e,t),t.tag=1,De(r)?(e=!0,vs(t)):e=!1,Hn(t,n),op(t,r,i),Ra(t,r,i,n),Oa(null,t,r,!0,e,n);case 19:return pp(e,t,n);case 22:return cp(e,t,n)}throw Error(E(156,t.tag))};function Ap(e,t){return rh(e,t)}function Wg(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 be(e,t,n,r){return new Wg(e,t,n,r)}function eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hg(e){if(typeof e=="function")return eu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xl)return 11;if(e===wl)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=be(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 ns(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")eu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case jn:return dn(n.children,i,s,t);case gl:o=8,i|=8;break;case ra:return e=be(12,n,t,i|2),e.elementType=ra,e.lanes=s,e;case ia:return e=be(13,n,t,i),e.elementType=ia,e.lanes=s,e;case sa:return e=be(19,n,t,i),e.elementType=sa,e.lanes=s,e;case Bf:return Js(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case If:o=10;break e;case Ff:o=9;break e;case xl:o=11;break e;case wl:o=14;break e;case At:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=be(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function dn(e,t,n,r){return e=be(7,e,r,t),e.lanes=n,e}function Js(e,t,n,r){return e=be(22,e,r,t),e.elementType=Bf,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=be(6,e,null,t),e.lanes=n,e}function Io(e,t,n){return t=be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function tu(e,t,n,r,i,s,o,a,l){return e=new Kg(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=be(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Il(s),e}function Gg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Dp(e){if(!e)return Gt;e=e._reactInternals;e:{if(xn(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(De(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(De(n))return Dh(e,n,t)}return t}function Lp(e,t,n,r,i,s,o,a,l){return e=tu(n,r,!0,e,i,s,o,a,l),e.context=Dp(null),n=e.current,r=Pe(),i=$t(n),s=xt(r,i),s.callback=t??null,Bt(n,s,i),e.current.lanes=i,di(e,i,r),Le(e,r),e}function eo(e,t,n,r){var i=t.current,s=Pe(),o=$t(i);return n=Dp(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bt(i,t,o),e!==null&&(it(e,i,o,s),Xi(e,i,o)),o}function As(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 Qc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nu(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}function Qg(){return null}var Rp=typeof reportError=="function"?reportError:function(e){console.error(e)};function ru(e){this._internalRoot=e}to.prototype.render=ru.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));eo(e,t,null,null)};to.prototype.unmount=ru.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){eo(null,e,null,null)}),t[jt]=null}};function to(e){this._internalRoot=e}to.prototype.unstable_scheduleHydration=function(e){if(e){var t=ch();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&fh(e)}};function iu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function no(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bc(){}function bg(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=As(o);s.call(u)}}var o=Lp(t,r,e,0,null,!1,!1,"",bc);return e._reactRootContainer=o,e[jt]=o.current,Qr(e.nodeType===8?e.parentNode:e),vn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=As(l);a.call(u)}}var l=tu(e,0,!1,null,null,!1,!1,"",bc);return e._reactRootContainer=l,e[jt]=l.current,Qr(e.nodeType===8?e.parentNode:e),vn(function(){eo(t,l,n,r)}),l}function ro(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=As(o);a.call(l)}}eo(t,o,e,i)}else o=bg(n,t,e,i,r);return As(o)}lh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xr(t.pendingLanes);n!==0&&(jl(t,n|1),Le(t,se()),!(H&6)&&(Zn=se()+500,qt()))}break;case 13:vn(function(){var r=Ct(e,1);if(r!==null){var i=Pe();it(r,e,1,i)}}),nu(e,1)}};Cl=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Pe();it(t,e,134217728,n)}nu(e,134217728)}};uh=function(e){if(e.tag===13){var t=$t(e),n=Ct(e,t);if(n!==null){var r=Pe();it(n,e,t,r)}nu(e,t)}};ch=function(){return K};dh=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};ma=function(e,t,n){switch(t){case"input":if(la(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Qs(r);if(!i)throw Error(E(90));$f(r),la(r,i)}}}break;case"textarea":Hf(e,n);break;case"select":t=n.value,t!=null&&Bn(e,!!n.multiple,t,!1)}};qf=ql;Zf=vn;var Yg={usingClientEntryPoint:!1,Events:[hi,En,Qs,Yf,Xf,ql]},pr={findFiberByHostInstance:on,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xg={bundleType:pr.bundleType,version:pr.version,rendererPackageName:pr.rendererPackageName,rendererConfig:pr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=th(e),e===null?null:e.stateNode},findFiberByHostInstance:pr.findFiberByHostInstance||Qg,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 Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Ws=Ii.inject(Xg),ct=Ii}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yg;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!iu(t))throw Error(E(200));return Gg(e,t,null,n)};Ue.createRoot=function(e,t){if(!iu(e))throw Error(E(299));var n=!1,r="",i=Rp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=tu(e,1,!1,null,null,n,!1,r,i),e[jt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new ru(t)};Ue.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=th(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return vn(e)};Ue.hydrate=function(e,t,n){if(!no(t))throw Error(E(200));return ro(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!iu(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Rp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Lp(t,null,e,1,n??null,i,!1,s,o),e[jt]=t.current,Qr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new to(t)};Ue.render=function(e,t,n){if(!no(t))throw Error(E(200));return ro(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!no(e))throw Error(E(40));return e._reactRootContainer?(vn(function(){ro(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0):!1};Ue.unstable_batchedUpdates=ql;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!no(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return ro(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function Vp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vp)}catch(e){console.error(e)}}Vp(),Vf.exports=Ue;var qg=Vf.exports,Yc=qg;ta.createRoot=Yc.createRoot,ta.hydrateRoot=Yc.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 Zg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_p=(...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 Jg={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 e0=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>j.createElement("svg",{ref:l,...Jg,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_p("lucide",i),...a},[...o.map(([u,d])=>j.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
|
|
56
|
-
* @license lucide-react v0.441.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const $=(e,t)=>{const n=j.forwardRef(({className:r,...i},s)=>j.createElement(e0,{ref:s,iconNode:t,className:_p(`lucide-${Zg(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
|
|
61
|
-
* @license lucide-react v0.441.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const ba=$("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 Xc=$("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 t0=$("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 n0=$("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
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 mi=$("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
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 r0=$("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"}]]);/**
|
|
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 ni=$("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
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 ri=$("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"}]]);/**
|
|
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 Ds=$("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 i0=$("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"}]]);/**
|
|
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 Op=$("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"}]]);/**
|
|
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 s0=$("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"}]]);/**
|
|
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 o0=$("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"}]]);/**
|
|
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 gt=$("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"}]]);/**
|
|
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 zp=$("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
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 a0=$("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"}]]);/**
|
|
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 Ip=$("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"}]]);/**
|
|
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 l0=$("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"}]]);/**
|
|
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 qc=$("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"}]]);/**
|
|
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 u0=$("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 Zc=$("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"}]]);/**
|
|
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 rs=$("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"}]]);/**
|
|
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 Fp=$("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"}]]);/**
|
|
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 c0=$("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 Ls=$("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"}]]);/**
|
|
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 su=$("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
191
|
-
* @license lucide-react v0.441.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const Bp=$("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"}]]);/**
|
|
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 Jc=$("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"}]]);/**
|
|
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 d0=$("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"}]]);/**
|
|
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 f0=$("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"}]]);/**
|
|
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 Rs=$("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
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=$("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"}]]);/**
|
|
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 io=$("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"}]]);/**
|
|
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 p0=$("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
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 ou=$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
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 m0=$("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"}]]),au=j.createContext({});function lu(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const so=j.createContext(null),uu=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class y0 extends j.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 v0({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=j.useContext(uu);return j.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
241
|
-
[data-motion-pop-id="${n}"] {
|
|
242
|
-
position: absolute !important;
|
|
243
|
-
width: ${o}px !important;
|
|
244
|
-
height: ${a}px !important;
|
|
245
|
-
top: ${l}px !important;
|
|
246
|
-
left: ${u}px !important;
|
|
247
|
-
}
|
|
248
|
-
`),()=>{document.head.removeChild(d)}},[t]),c.jsx(y0,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const g0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=lu(x0),l=j.useId(),u=j.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),d=j.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),u]:[n,u]);return j.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),j.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=c.jsx(v0,{isPresent:n,children:e})),c.jsx(so.Provider,{value:d,children:e})};function x0(){return new Map}function Up(e=!0){const t=j.useContext(so);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{e&&i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Fi=e=>e.key||"";function ed(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const cu=typeof window<"u",$p=cu?j.useLayoutEffect:j.useEffect,w0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=Up(o),u=j.useMemo(()=>ed(e),[e]),d=o&&!a?[]:u.map(Fi),f=j.useRef(!0),h=j.useRef(u),v=lu(()=>new Map),[x,g]=j.useState(u),[C,m]=j.useState(u);$p(()=>{f.current=!1,h.current=u;for(let S=0;S<C.length;S++){const w=Fi(C[S]);d.includes(w)?v.delete(w):v.get(w)!==!0&&v.set(w,!1)}},[C,d.length,d.join("-")]);const p=[];if(u!==x){let S=[...u];for(let w=0;w<C.length;w++){const k=C[w],P=Fi(k);d.includes(P)||(S.splice(w,0,k),p.push(k))}s==="wait"&&p.length&&(S=p),m(ed(S)),g(u);return}const{forceRender:y}=j.useContext(au);return c.jsx(c.Fragment,{children:C.map(S=>{const w=Fi(S),k=o&&!a?!1:u===C||d.includes(w),P=()=>{if(v.has(w))v.set(w,!0);else return;let T=!0;v.forEach(R=>{R||(T=!1)}),T&&(y==null||y(),m(h.current),o&&(l==null||l()),r&&r())};return c.jsx(g0,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:k?void 0:P,children:S},w)})})},Ie=e=>e;let Wp=Ie;function du(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,S0={useManualTiming:!1};function k0(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,d=!1,f=!1)=>{const v=f&&r?t:n;return d&&s.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const Bi=["read","resolveKeyframes","update","preRender","render","postRender"],j0=40;function Hp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Bi.reduce((m,p)=>(m[p]=k0(s),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:h}=o,v=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,j0),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Bi.reduce((m,p)=>{const y=o[p];return m[p]=(S,w=!1,k=!1)=>(n||x(),y.schedule(S,w,k)),m},{}),cancel:m=>{for(let p=0;p<Bi.length;p++)o[Bi[p]].cancel(m)},state:i,steps:o}}const{schedule:X,cancel:Qt,state:he,steps:Fo}=Hp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),Kp=j.createContext({strict:!1}),td={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"]},er={};for(const e in td)er[e]={isEnabled:t=>td[e].some(n=>!!t[n])};function C0(e){for(const t in e)er[t]={...er[t],...e[t]}}const P0=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 Vs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P0.has(e)}let Gp=e=>!Vs(e);function T0(e){e&&(Gp=t=>t.startsWith("on")?!Vs(t):e(t))}try{T0(require("@emotion/is-prop-valid").default)}catch{}function E0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Gp(i)||n===!0&&Vs(i)||!t&&!Vs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function N0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const oo=j.createContext({});function ii(e){return typeof e=="string"||Array.isArray(e)}function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hu=["initial",...fu];function lo(e){return ao(e.animate)||hu.some(t=>ii(e[t]))}function Qp(e){return!!(lo(e)||e.variants)}function M0(e,t){if(lo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ii(n)?n:void 0,animate:ii(r)?r:void 0}}return e.inherit!==!1?t:{}}function A0(e){const{initial:t,animate:n}=M0(e,j.useContext(oo));return j.useMemo(()=>({initial:t,animate:n}),[nd(t),nd(n)])}function nd(e){return Array.isArray(e)?e.join(" "):e}const D0=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function L0(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const pu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),R0="framerAppearId",bp="data-"+pu(R0),{schedule:mu}=Hp(queueMicrotask,!1),Yp=j.createContext({});function V0(e,t,n,r,i){var s,o;const{visualElement:a}=j.useContext(oo),l=j.useContext(Kp),u=j.useContext(so),d=j.useContext(uu).reducedMotion,f=j.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,v=j.useContext(Yp);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&_0(f.current,n,i,v);const x=j.useRef(!1);j.useInsertionEffect(()=>{h&&x.current&&h.update(n,u)});const g=n[bp],C=j.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return $p(()=>{h&&(x.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),mu.render(h.render),C.current&&h.animationState&&h.animationState.animateChanges())}),j.useEffect(()=>{h&&(!C.current&&h.animationState&&h.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),C.current=!1))}),h}function _0(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Vn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Xp(e){if(e)return e.options.allowProjection!==!1?e.projection:Xp(e.parent)}function O0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&C0(e);function a(u,d){let f;const h={...j.useContext(uu),...u,layoutId:z0(u)},{isStatic:v}=h,x=A0(u),g=r(u,v);if(!v&&cu){I0();const C=F0(h);f=C.MeasureLayout,x.visualElement=V0(i,g,h,t,C.ProjectionNode)}return c.jsxs(oo.Provider,{value:x,children:[f&&x.visualElement?c.jsx(f,{visualElement:x.visualElement,...h}):null,n(i,u,L0(g,x.visualElement,d),g,v,x.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=j.forwardRef(a);return l[D0]=i,l}function z0({layoutId:e}){const t=j.useContext(au).id;return t&&e!==void 0?t+"-"+e:e}function I0(e,t){j.useContext(Kp).strict}function F0(e){const{drag:t,layout:n}=er;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 B0=["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 yu(e){return typeof e!="string"||e.includes("-")?!1:!!(B0.indexOf(e)>-1||/[A-Z]/u.test(e))}function rd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function vu(e,t,n,r){if(typeof t=="function"){const[i,s]=rd(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=rd(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Ya=e=>Array.isArray(e),U0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$0=e=>Ya(e)?e[e.length-1]||0:e,Se=e=>!!(e&&e.getVelocity);function is(e){const t=Se(e)?e.get():e;return U0(t)?t.toValue():t}function W0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:H0(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const qp=e=>(t,n)=>{const r=j.useContext(oo),i=j.useContext(so),s=()=>W0(e,t,r,i);return n?s():lu(s)};function H0(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=is(s[h]);let{initial:o,animate:a}=e;const l=lo(e),u=Qp(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!ao(f)){const h=Array.isArray(f)?f:[f];for(let v=0;v<h.length;v++){const x=vu(e,h[v]);if(x){const{transitionEnd:g,transition:C,...m}=x;for(const p in m){let y=m[p];if(Array.isArray(y)){const S=d?y.length-1:0;y=y[S]}y!==null&&(i[p]=y)}for(const p in g)i[p]=g[p]}}}return i}const sr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(sr),Zp=e=>t=>typeof t=="string"&&t.startsWith(e),Jp=Zp("--"),K0=Zp("var(--"),gu=e=>K0(e)?G0.test(e.split("/*")[0].trim()):!1,G0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,em=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tt=(e,t,n)=>n>t?t:n<e?e:n,or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},si={...or,transform:e=>Tt(0,1,e)},Ui={...or,default:1},yi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=yi("deg"),ft=yi("%"),O=yi("px"),Q0=yi("vh"),b0=yi("vw"),id={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},Y0={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},X0={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:Ui,scaleX:Ui,scaleY:Ui,scaleZ:Ui,skew:Mt,skewX:Mt,skewY:Mt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:si,originX:id,originY:id,originZ:O},sd={...or,transform:Math.round},xu={...Y0,...X0,zIndex:sd,size:O,fillOpacity:si,strokeOpacity:si,numOctaves:sd},q0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z0=sr.length;function J0(e,t,n){let r="",i=!0;for(let s=0;s<Z0;s++){const o=sr[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=em(a,xu[o]);if(!l){i=!1;const d=q0[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function wu(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(wn.has(l)){o=!0;continue}else if(Jp(l)){i[l]=u;continue}else{const d=em(u,xu[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=J0(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${u} ${d}`}}const e1={offset:"stroke-dashoffset",array:"stroke-dasharray"},t1={offset:"strokeDashoffset",array:"strokeDasharray"};function n1(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?e1:t1;e[s.offset]=O.transform(-r);const o=O.transform(t),a=O.transform(n);e[s.array]=`${o} ${a}`}function od(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function r1(e,t,n){const r=od(t,e.x,e.width),i=od(n,e.y,e.height);return`${r} ${i}`}function Su(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,f){if(wu(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:x}=e;h.transform&&(x&&(v.transform=h.transform),delete h.transform),x&&(i!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=r1(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&n1(h,o,a,l,!1)}const ku=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),tm=()=>({...ku(),attrs:{}}),ju=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const rm=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 im(e,t,n,r){nm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(rm.has(i)?i:pu(i),t.attrs[i])}const _s={};function i1(e){Object.assign(_s,e)}function sm(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_s[e]||e==="opacity")}function Cu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(Se(i[o])||t.style&&Se(t.style[o])||sm(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function om(e,t,n){const r=Cu(e,t,n);for(const i in e)if(Se(e[i])||Se(t[i])){const s=sr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function s1(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 ad=["x","y","width","height","cx","cy","r"],o1={useVisualState:qp({scrapeMotionValuesFromProps:om,createRenderState:tm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(wn.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<ad.length;a++){const l=ad[a];e[l]!==t[l]&&(o=!0)}o&&X.read(()=>{s1(n,r),X.render(()=>{Su(r,i,ju(n.tagName),e.transformTemplate),im(n,r)})})}})},a1={useVisualState:qp({scrapeMotionValuesFromProps:Cu,createRenderState:ku})};function am(e,t,n){for(const r in t)!Se(t[r])&&!sm(r,n)&&(e[r]=t[r])}function l1({transformTemplate:e},t){return j.useMemo(()=>{const n=ku();return wu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function u1(e,t){const n=e.style||{},r={};return am(r,n,e),Object.assign(r,l1(e,t)),r}function c1(e,t){const n={},r=u1(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 d1(e,t,n,r){const i=j.useMemo(()=>{const s=tm();return Su(s,t,ju(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};am(s,e.style,e),i.style={...s,...i.style}}return i}function f1(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(yu(n)?d1:c1)(r,s,o,n),u=E0(r,typeof n=="string",e),d=n!==j.Fragment?{...u,...l,ref:i}:{},{children:f}=r,h=j.useMemo(()=>Se(f)?f.get():f,[f]);return j.createElement(n,{...d,children:h})}}function h1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...yu(r)?o1:a1,preloadedFeatures:e,useRender:f1(i),createVisualElement:t,Component:r};return O0(o)}}function lm(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 uo(e,t,n){const r=e.getProps();return vu(r,t,n!==void 0?n:r.custom,e)}const p1=du(()=>window.ScrollTimeline!==void 0);class m1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(p1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class y1 extends m1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Pu(e,t){return e?e[t]||e.default||e:void 0}const Xa=2e4;function um(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xa;)t+=n,r=e.next(t);return t>=Xa?1/0:t}function Tu(e){return typeof e=="function"}function ld(e,t){e.timeline=t,e.onfinish=null}const Eu=e=>Array.isArray(e)&&typeof e[0]=="number",v1={linearEasing:void 0};function g1(e,t){const n=du(e);return()=>{var r;return(r=v1[t])!==null&&r!==void 0?r:n()}}const Os=g1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(Jn(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function dm(e){return!!(typeof e=="function"&&Os()||!e||typeof e=="string"&&(e in qa||Os())||Eu(e)||Array.isArray(e)&&e.every(dm))}const Sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sr([0,.65,.55,1]),circOut:Sr([.55,0,1,.45]),backIn:Sr([.31,.01,.66,-.59]),backOut:Sr([.33,1.53,.69,.99])};function fm(e,t){if(e)return typeof e=="function"&&Os()?cm(e,t):Eu(e)?Sr(e):Array.isArray(e)?e.map(n=>fm(n,t)||qa.easeOut):qa[e]}const Je={x:!1,y:!1};function hm(){return Je.x||Je.y}function x1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function pm(e,t){const n=x1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ud(e){return t=>{t.pointerType==="touch"||hm()||e(t)}}function w1(e,t,n={}){const[r,i,s]=pm(e,n),o=ud(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const d=ud(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const mm=(e,t)=>t?e===t?!0:mm(e,t.parentElement):!1,Nu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,S1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function k1(e){return S1.has(e.tagName)||e.tabIndex!==-1}const kr=new WeakSet;function cd(e){return t=>{t.key==="Enter"&&e(t)}}function Bo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const j1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=cd(()=>{if(kr.has(n))return;Bo(n,"down");const i=cd(()=>{Bo(n,"up")}),s=()=>Bo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function dd(e){return Nu(e)&&!hm()}function C1(e,t,n={}){const[r,i,s]=pm(e,n),o=a=>{const l=a.currentTarget;if(!dd(a)||kr.has(l))return;kr.add(l);const u=t(a),d=(v,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!dd(v)||!kr.has(l))&&(kr.delete(l),typeof u=="function"&&u(v,{success:x}))},f=v=>{d(v,n.useGlobalTarget||mm(l,v.target))},h=v=>{d(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{!k1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>j1(u,i),i)}),s}function P1(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const ym=new Set(["width","height","top","left","right","bottom",...sr]);let ss;function T1(){ss=void 0}const ht={now:()=>(ss===void 0&&ht.set(he.isProcessing||S0.useManualTiming?he.timestamp:performance.now()),ss),set:e=>{ss=e,queueMicrotask(T1)}};function Mu(e,t){e.indexOf(t)===-1&&e.push(t)}function Au(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Du{constructor(){this.subscriptions=[]}add(t){return Mu(this.subscriptions,t),()=>Au(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vm(e,t){return t?e*(1e3/t):0}const fd=30,E1=e=>!isNaN(parseFloat(e));class N1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=E1(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 Du);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fd);return vm(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 oi(e,t){return new N1(e,t)}function M1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oi(n))}function A1(e,t){const n=uo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=$0(s[o]);M1(e,o,a)}}function D1(e){return!!(Se(e)&&e.add)}function Za(e,t){const n=e.getValue("willChange");if(D1(n))return n.add(t)}function gm(e){return e.props[bp]}const xm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,L1=1e-7,R1=12;function V1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=xm(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>L1&&++a<R1);return o}function vi(e,t,n,r){if(e===t&&n===r)return Ie;const i=s=>V1(s,0,1,e,n);return s=>s===0||s===1?s:xm(i(s),t,r)}const wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sm=e=>t=>1-e(1-t),km=vi(.33,1.53,.69,.99),Lu=Sm(km),jm=wm(Lu),Cm=e=>(e*=2)<1?.5*Lu(e):.5*(2-Math.pow(2,-10*(e-1))),Ru=e=>1-Math.sin(Math.acos(e)),Pm=Sm(Ru),Tm=wm(Ru),Em=e=>/^0[^.\s]+$/u.test(e);function _1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Em(e):!0}const Vr=e=>Math.round(e*1e5)/1e5,Vu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function O1(e){return e==null}const z1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_u=(e,t)=>n=>!!(typeof n=="string"&&z1.test(n)&&n.startsWith(e)||t&&!O1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Vu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},I1=e=>Tt(0,255,e),Uo={...or,transform:e=>Math.round(I1(e))},un={test:_u("rgb","red"),parse:Nm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uo.transform(e)+", "+Uo.transform(t)+", "+Uo.transform(n)+", "+Vr(si.transform(r))+")"};function F1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ja={test:_u("#"),parse:F1,transform:un.transform},_n={test:_u("hsl","hue"),parse:Nm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Vr(t))+", "+ft.transform(Vr(n))+", "+Vr(si.transform(r))+")"},xe={test:e=>un.test(e)||Ja.test(e)||_n.test(e),parse:e=>un.test(e)?un.parse(e):_n.test(e)?_n.parse(e):Ja.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?un.transform(e):_n.transform(e)},B1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function U1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(B1))===null||n===void 0?void 0:n.length)||0)>0}const Mm="number",Am="color",$1="var",W1="var(",hd="${}",H1=/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 ai(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(H1,l=>(xe.test(l)?(r.color.push(s),i.push(Am),n.push(xe.parse(l))):l.startsWith(W1)?(r.var.push(s),i.push($1),n.push(l)):(r.number.push(s),i.push(Mm),n.push(parseFloat(l))),++s,hd)).split(hd);return{values:n,split:a,indexes:r,types:i}}function Dm(e){return ai(e).values}function Lm(e){const{split:t,types:n}=ai(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Mm?s+=Vr(i[o]):a===Am?s+=xe.transform(i[o]):s+=i[o]}return s}}const K1=e=>typeof e=="number"?0:e;function G1(e){const t=Dm(e);return Lm(e)(t.map(K1))}const bt={test:U1,parse:Dm,createTransformer:Lm,getAnimatableNone:G1},Q1=new Set(["brightness","contrast","saturate","opacity"]);function b1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vu)||[];if(!r)return e;const i=n.replace(r,"");let s=Q1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Y1=/\b([a-z-]*)\(.*?\)/gu,el={...bt,getAnimatableNone:e=>{const t=e.match(Y1);return t?t.map(b1).join(" "):e}},X1={...xu,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:el,WebkitFilter:el},Ou=e=>X1[e];function Rm(e,t){let n=Ou(e);return n!==el&&(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const q1=new Set(["auto","none","0"]);function Z1(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!q1.has(s)&&ai(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Rm(n,i)}const pd=e=>e===or||e===O,md=(e,t)=>parseFloat(e.split(", ")[t]),yd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return md(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?md(s[1],e):0}},J1=new Set(["x","y","z"]),ex=sr.filter(e=>!J1.has(e));function tx(e){const t=[];return ex.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const tr={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:yd(4,13),y:yd(5,14)};tr.translateX=tr.x;tr.translateY=tr.y;const fn=new Set;let tl=!1,nl=!1;function Vm(){if(nl){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=tx(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}nl=!1,tl=!1,fn.forEach(e=>e.complete()),fn.clear()}function _m(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nl=!0)})}function nx(){_m(),Vm()}class zu{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fn.add(this),tl||(tl=!0,X.read(_m),X.resolveKeyframes(Vm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Om=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ix(e){const t=rx.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function zm(e,t,n=1){const[r,i]=ix(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Om(o)?parseFloat(o):o}return gu(i)?zm(i,t,n+1):i}const Im=e=>t=>t.test(e),sx={test:e=>e==="auto",parse:e=>e},Fm=[or,O,ft,Mt,b0,Q0,sx],vd=e=>Fm.find(Im(e));class Bm extends zu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),gu(u))){const d=zm(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ym.has(r)||t.length!==2)return;const[i,s]=t,o=vd(i),a=vd(s);if(o!==a)if(pd(o)&&pd(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)_1(t[i])&&r.push(i);r.length&&Z1(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=tr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=tr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const gd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function ox(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 ax(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=gd(i,t),a=gd(s,t);return!o||!a?!1:ox(e)||(n==="spring"||Tu(n))&&r}const lx=e=>e!==null;function co(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(lx),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const ux=40;class Um{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ht.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ux?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&nx(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ax(t,r,i,s))if(o)this.options.duration=0;else{l&&l(co(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const J=(e,t,n)=>e+(t-e)*n;function $o(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 cx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=$o(l,a,e+1/3),s=$o(l,a,e),o=$o(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function zs(e,t){return n=>n>0?t:e}const Wo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dx=[Ja,un,_n],fx=e=>dx.find(t=>t.test(e));function xd(e){const t=fx(e);if(!t)return!1;let n=t.parse(e);return t===_n&&(n=cx(n)),n}const wd=(e,t)=>{const n=xd(e),r=xd(t);if(!n||!r)return zs(e,t);const i={...n};return s=>(i.red=Wo(n.red,r.red,s),i.green=Wo(n.green,r.green,s),i.blue=Wo(n.blue,r.blue,s),i.alpha=J(n.alpha,r.alpha,s),un.transform(i))},hx=(e,t)=>n=>t(e(n)),gi=(...e)=>e.reduce(hx),rl=new Set(["none","hidden"]);function px(e,t){return rl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function mx(e,t){return n=>J(e,t,n)}function Iu(e){return typeof e=="number"?mx:typeof e=="string"?gu(e)?zs:xe.test(e)?wd:gx:Array.isArray(e)?$m:typeof e=="object"?xe.test(e)?wd:yx:zs}function $m(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Iu(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function yx(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Iu(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function vx(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const gx=(e,t)=>{const n=bt.createTransformer(t),r=ai(e),i=ai(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?rl.has(e)&&!i.values.length||rl.has(t)&&!r.values.length?px(e,t):gi($m(vx(r,i),i.values),n):zs(e,t)};function Wm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):Iu(e)(e,t)}const xx=5;function Hm(e,t,n){const r=Math.max(t-xx,0);return vm(n-e(r),t-r)}const ne={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},Ho=.001;function wx({duration:e=ne.duration,bounce:t=ne.bounce,velocity:n=ne.velocity,mass:r=ne.mass}){let i,s,o=1-t;o=Tt(ne.minDamping,ne.maxDamping,o),e=Tt(ne.minDuration,ne.maxDuration,St(e)),o<1?(i=u=>{const d=u*o,f=d*e,h=d-n,v=il(u,o),x=Math.exp(-f);return Ho-h/v*x},s=u=>{const f=u*o*e,h=f*n+n,v=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),g=il(Math.pow(u,2),o);return(-i(u)+Ho>0?-1:1)*((h-v)*x)/g}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ho+d*f},s=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=kx(i,s,a);if(e=wt(e),isNaN(l))return{stiffness:ne.stiffness,damping:ne.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const Sx=12;function kx(e,t,n){let r=n;for(let i=1;i<Sx;i++)r=r-e(r)/t(r);return r}function il(e,t){return e*Math.sqrt(1-t*t)}const jx=["duration","bounce"],Cx=["stiffness","damping","mass"];function Sd(e,t){return t.some(n=>e[n]!==void 0)}function Px(e){let t={velocity:ne.velocity,stiffness:ne.stiffness,damping:ne.damping,mass:ne.mass,isResolvedFromDuration:!1,...e};if(!Sd(e,Cx)&&Sd(e,jx))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ne.mass,stiffness:i,damping:s}}else{const n=wx(e);t={...t,...n,mass:ne.mass},t.isResolvedFromDuration=!0}return t}function Km(e=ne.visualDuration,t=ne.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:v}=Px({...n,velocity:-St(n.velocity||0)}),x=h||0,g=u/(2*Math.sqrt(l*d)),C=o-s,m=St(Math.sqrt(l/d)),p=Math.abs(C)<5;r||(r=p?ne.restSpeed.granular:ne.restSpeed.default),i||(i=p?ne.restDelta.granular:ne.restDelta.default);let y;if(g<1){const w=il(m,g);y=k=>{const P=Math.exp(-g*m*k);return o-P*((x+g*m*C)/w*Math.sin(w*k)+C*Math.cos(w*k))}}else if(g===1)y=w=>o-Math.exp(-m*w)*(C+(x+m*C)*w);else{const w=m*Math.sqrt(g*g-1);y=k=>{const P=Math.exp(-g*m*k),T=Math.min(w*k,300);return o-P*((x+g*m*C)*Math.sinh(T)+w*C*Math.cosh(T))/w}}const S={calculatedDuration:v&&f||null,next:w=>{const k=y(w);if(v)a.done=w>=f;else{let P=0;g<1&&(P=w===0?wt(x):Hm(y,w,k));const T=Math.abs(P)<=r,R=Math.abs(o-k)<=i;a.done=T&&R}return a.value=a.done?o:k,a},toString:()=>{const w=Math.min(um(S),Xa),k=cm(P=>S.next(w*P).value,w,30);return w+"ms "+k}};return S}function kd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},v=T=>a!==void 0&&T<a||l!==void 0&&T>l,x=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let g=n*t;const C=f+g,m=o===void 0?C:o(C);m!==C&&(g=m-f);const p=T=>-g*Math.exp(-T/r),y=T=>m+p(T),S=T=>{const R=p(T),M=y(T);h.done=Math.abs(R)<=u,h.value=h.done?m:M};let w,k;const P=T=>{v(h.value)&&(w=T,k=Km({keyframes:[h.value,x(h.value)],velocity:Hm(y,T,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:T=>{let R=!1;return!k&&w===void 0&&(R=!0,S(T),P(T)),w!==void 0&&T>=w?k.next(T-w):(!R&&S(T),h)}}}const Tx=vi(.42,0,1,1),Ex=vi(0,0,.58,1),Gm=vi(.42,0,.58,1),Nx=e=>Array.isArray(e)&&typeof e[0]!="number",Mx={linear:Ie,easeIn:Tx,easeInOut:Gm,easeOut:Ex,circIn:Ru,circInOut:Tm,circOut:Pm,backIn:Lu,backInOut:jm,backOut:km,anticipate:Cm},jd=e=>{if(Eu(e)){Wp(e.length===4);const[t,n,r,i]=e;return vi(t,n,r,i)}else if(typeof e=="string")return Mx[e];return e};function Ax(e,t,n){const r=[],i=n||Wm,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ie:t;a=gi(l,a)}r.push(a)}return r}function Dx(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Wp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ax(t,r,i),l=a.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Jn(e[f],e[f+1],d);return a[f](h)};return n?d=>u(Tt(e[0],e[s-1],d)):u}function Lx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Jn(0,t,r);e.push(J(n,1,i))}}function Rx(e){const t=[0];return Lx(t,e.length-1),t}function Vx(e,t){return e.map(n=>n*t)}function _x(e,t){return e.map(()=>t||Gm).splice(0,e.length-1)}function Is({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Nx(r)?r.map(jd):jd(r),s={done:!1,value:t[0]},o=Vx(n&&n.length===t.length?n:Rx(t),e),a=Dx(o,t,{ease:Array.isArray(i)?i:_x(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Ox=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>Qt(t),now:()=>he.isProcessing?he.timestamp:ht.now()}},zx={decay:kd,inertia:kd,tween:Is,keyframes:Is,spring:Km},Ix=e=>e/100;class Fu extends Um{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||zu,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Tu(n)?n:zx[n]||Is;let l,u;a!==Is&&typeof t[0]!="number"&&(l=gi(Ix,Wm(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=um(d));const{calculatedDuration:f}=d,h=f+i,v=h*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:v,repeatType:x,repeatDelay:g,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-h*(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 y=this.currentTime,S=s;if(v){const T=Math.min(this.currentTime,d)/f;let R=Math.floor(T),M=T%1;!M&&T>=1&&(M=1),M===1&&R--,R=Math.min(R,v+1),!!(R%2)&&(x==="reverse"?(M=1-M,g&&(M-=g/f)):x==="mirror"&&(S=o)),y=Tt(0,1,M)*f}const w=p?{done:!1,value:l[0]}:S.next(y);a&&(w.value=a(w.value));let{done:k}=w;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&i!==void 0&&(w.value=co(l,this.options,i)),C&&C(w.value),P&&this.finish(),w}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Ox,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Fx=new Set(["opacity","clipPath","filter","transform"]);function Bx(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=fm(a,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Ux=du(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fs=10,$x=2e4;function Wx(e){return Tu(e.type)||e.type==="spring"||!dm(e.ease)}function Hx(e,t){const n=new Fu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<$x;)r=n.sample(s),i.push(r.value),s+=Fs;return{times:void 0,keyframes:i,duration:s-Fs,ease:"linear"}}const Qm={anticipate:Cm,backInOut:jm,circInOut:Tm};function Kx(e){return e in Qm}class Cd extends Um{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Bm(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Os()&&Kx(s)&&(s=Qm[s]),Wx(this.options)){const{onComplete:f,onUpdate:h,motionValue:v,element:x,...g}=this.options,C=Hx(t,g);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,s=C.ease,o="keyframes"}const d=Bx(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(ld(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(co(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;ld(r,t)}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...v}=this.options,x=new Fu({...v,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),g=wt(this.time);u.setWithVelocity(x.sample(g-Fs).value,x.sample(g).value,Fs)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Ux()&&r&&Fx.has(r)&&!l&&!u&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Gx={type:"spring",stiffness:500,damping:25,restSpeed:10},Qx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bx={type:"keyframes",duration:.8},Yx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xx=(e,{keyframes:t})=>t.length>2?bx:wn.has(e)?e.startsWith("scale")?Qx(t[1]):Gx:Yx;function qx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Bu=(e,t,n,r={},i,s)=>o=>{const a=Pu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wt(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};qx(a)||(d={...d,...Xx(e,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const h=co(d.keyframes,a);if(h!==void 0)return X.update(()=>{d.onUpdate(h),d.onComplete()}),new y1([])}return!s&&Cd.supports(d)?new Cd(d):new Fu(d)};function Zx({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),v=l[f];if(v===void 0||d&&Zx(d,f))continue;const x={delay:n,...Pu(o||{},f)};let g=!1;if(window.MotionHandoffAnimation){const m=gm(e);if(m){const p=window.MotionHandoffAnimation(m,f,X);p!==null&&(x.startTime=p,g=!0)}}Za(e,f),h.start(Bu(f,h,v,e.shouldReduceMotion&&ym.has(f)?{type:!1}:x,e,g));const C=h.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{X.update(()=>{a&&A1(e,a)})}),u}function sl(e,t,n={}){var r;const i=uo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(bm(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return Jx(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function Jx(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(ew).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(sl(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function ew(e,t){return e.sortNodePosition(t)}function tw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>sl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=sl(e,t,n);else{const i=typeof t=="function"?uo(e,t,n.custom):t;r=Promise.all(bm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const nw=hu.length;function Ym(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ym(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<nw;n++){const r=hu[n],i=e.props[r];(ii(i)||i===!1)&&(t[r]=i)}return t}const rw=[...fu].reverse(),iw=fu.length;function sw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>tw(e,n,r)))}function ow(e){let t=sw(e),n=Pd(),r=!0;const i=l=>(u,d)=>{var f;const h=uo(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:v,transitionEnd:x,...g}=h;u={...u,...g,...x}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,d=Ym(e.parent)||{},f=[],h=new Set;let v={},x=1/0;for(let C=0;C<iw;C++){const m=rw[C],p=n[m],y=u[m]!==void 0?u[m]:d[m],S=ii(y),w=m===l?p.isActive:null;w===!1&&(x=C);let k=y===d[m]&&y!==u[m]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),p.protectedKeys={...v},!p.isActive&&w===null||!y&&!p.prevProp||ao(y)||typeof y=="boolean")continue;const P=aw(p.prevProp,y);let T=P||m===l&&p.isActive&&!k&&S||C>x&&S,R=!1;const M=Array.isArray(y)?y:[y];let G=M.reduce(i(m),{});w===!1&&(G={});const{prevResolvedValues:ye={}}=p,D={...ye,...G},W=B=>{T=!0,h.has(B)&&(R=!0,h.delete(B)),p.needsAnimating[B]=!0;const N=e.getValue(B);N&&(N.liveStyle=!1)};for(const B in D){const N=G[B],_=ye[B];if(v.hasOwnProperty(B))continue;let z=!1;Ya(N)&&Ya(_)?z=!lm(N,_):z=N!==_,z?N!=null?W(B):h.add(B):N!==void 0&&h.has(B)?W(B):p.protectedKeys[B]=!0}p.prevProp=y,p.prevResolvedValues=G,p.isActive&&(v={...v,...G}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(k&&P)||R)&&f.push(...M.map(B=>({animation:B,options:{type:m}})))}if(h.size){const C={};h.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),C[m]=p??null}),f.push({animation:C})}let g=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const f=o(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Pd(),r=!0}}}function aw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lm(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pd(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class lw extends Zt{constructor(t){super(t),t.animationState||(t.animationState=ow(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ao(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 uw=0;class cw extends Zt{constructor(){super(...arguments),this.id=uw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const dw={animation:{Feature:lw},exit:{Feature:cw}};function li(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function xi(e){return{point:{x:e.pageX,y:e.pageY}}}const fw=e=>t=>Nu(t)&&e(t,xi(t));function _r(e,t,n,r){return li(e,t,fw(n),r)}const Td=(e,t)=>Math.abs(e-t);function hw(e,t){const n=Td(e.x,t.x),r=Td(e.y,t.y);return Math.sqrt(n**2+r**2)}class Xm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Go(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,v=hw(f.offset,{x:0,y:0})>=3;if(!h&&!v)return;const{point:x}=f,{timestamp:g}=he;this.history.push({...x,timestamp:g});const{onStart:C,onMove:m}=this.handlers;h||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ko(h,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Go(f.type==="pointercancel"?this.lastMoveEventInfo:Ko(h,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,C),x&&x(f,C)},!Nu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=xi(t),a=Ko(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=he;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Go(a,this.history)),this.removeListeners=gi(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qt(this.updatePoint)}}function Ko(e,t){return t?{point:t(e.point)}:e}function Ed(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Go({point:e},t){return{point:e,delta:Ed(e,qm(t)),offset:Ed(e,pw(t)),velocity:mw(t,.1)}}function pw(e){return e[0]}function qm(e){return e[e.length-1]}function mw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=qm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Zm=1e-4,yw=1-Zm,vw=1+Zm,Jm=.01,gw=0-Jm,xw=0+Jm;function Be(e){return e.max-e.min}function ww(e,t,n){return Math.abs(e-t)<=n}function Nd(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=Be(n)/Be(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yw&&e.scale<=vw||isNaN(e.scale))&&(e.scale=1),(e.translate>=gw&&e.translate<=xw||isNaN(e.translate))&&(e.translate=0)}function Or(e,t,n,r){Nd(e.x,t.x,n.x,r?r.originX:void 0),Nd(e.y,t.y,n.y,r?r.originY:void 0)}function Md(e,t,n){e.min=n.min+t.min,e.max=e.min+Be(t)}function Sw(e,t,n){Md(e.x,t.x,n.x),Md(e.y,t.y,n.y)}function Ad(e,t,n){e.min=t.min-n.min,e.max=e.min+Be(t)}function zr(e,t,n){Ad(e.x,t.x,n.x),Ad(e.y,t.y,n.y)}function kw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function Dd(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 jw(e,{top:t,left:n,bottom:r,right:i}){return{x:Dd(e.x,n,i),y:Dd(e.y,t,r)}}function Ld(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 Cw(e,t){return{x:Ld(e.x,t.x),y:Ld(e.y,t.y)}}function Pw(e,t){let n=.5;const r=Be(e),i=Be(t);return i>r?n=Jn(t.min,t.max-r,e.min):r>i&&(n=Jn(e.min,e.max-i,t.min)),Tt(0,1,n)}function Tw(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 ol=.35;function Ew(e=ol){return e===!1?e=0:e===!0&&(e=ol),{x:Rd(e,"left","right"),y:Rd(e,"top","bottom")}}function Rd(e,t,n){return{min:Vd(e,t),max:Vd(e,n)}}function Vd(e,t){return typeof e=="number"?e:e[t]||0}const _d=()=>({translate:0,scale:1,origin:0,originPoint:0}),On=()=>({x:_d(),y:_d()}),Od=()=>({min:0,max:0}),ie=()=>({x:Od(),y:Od()});function He(e){return[e("x"),e("y")]}function ey({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Nw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Mw(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 Qo(e){return e===void 0||e===1}function al({scale:e,scaleX:t,scaleY:n}){return!Qo(e)||!Qo(t)||!Qo(n)}function rn(e){return al(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return zd(e.x)||zd(e.y)}function zd(e){return e&&e!=="0%"}function Bs(e,t,n){const r=e-n,i=t*r;return n+i}function Id(e,t,n,r,i){return i!==void 0&&(e=Bs(e,i,r)),Bs(e,n,r)+t}function ll(e,t=0,n=1,r,i){e.min=Id(e.min,t,n,r,i),e.max=Id(e.max,t,n,r,i)}function ny(e,{x:t,y:n}){ll(e.x,t.translate,t.scale,t.originPoint),ll(e.y,n.translate,n.scale,n.originPoint)}const Fd=.999999999999,Bd=1.0000000000001;function Aw(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&In(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ny(e,o)),r&&rn(s.latestValues)&&In(e,s.latestValues))}t.x<Bd&&t.x>Fd&&(t.x=1),t.y<Bd&&t.y>Fd&&(t.y=1)}function zn(e,t){e.min=e.min+t,e.max=e.max+t}function Ud(e,t,n,r,i=.5){const s=J(e.min,e.max,i);ll(e,t,n,s,r)}function In(e,t){Ud(e.x,t.x,t.scaleX,t.scale,t.originX),Ud(e.y,t.y,t.scaleY,t.scale,t.originY)}function ry(e,t){return ey(Mw(e.getBoundingClientRect(),t))}function Dw(e,t,n){const r=ry(e,n),{scroll:i}=t;return i&&(zn(r.x,i.offset.x),zn(r.y,i.offset.y)),r}const iy=({current:e})=>e?e.ownerDocument.defaultView:null,Lw=new WeakMap;class Rw{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=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xi(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:v,onDragStart:x}=this.getProps();if(h&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=P1(h),!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),He(C=>{let m=this.getAxisMotionValue(C).get()||0;if(ft.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[C];y&&(m=Be(y)*(parseFloat(m)/100))}}this.originPoint[C]=m}),x&&X.postRender(()=>x(d,f)),Za(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:v,onDirectionLock:x,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:C}=f;if(v&&this.currentDirection===null){this.currentDirection=Vw(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),g&&g(d,f)},a=(d,f)=>this.stop(d,f),l=()=>He(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:iy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&X.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$i(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=kw(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Vn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=jw(i.layoutBox,n):this.constraints=!1,this.elastic=Ew(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&He(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Tw(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Dw(r,i.root,this.visualElement.getTransformPagePoint());let o=Cw(i.layout.layoutBox,s);if(n){const a=n(Nw(o));this.hasMutatedConstraints=!!a,a&&(o=ey(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=He(d=>{if(!$i(d,n,this.currentDirection))return;let f=l&&l[d]||{};o&&(f={min:0,max:0});const h=i?200:1e6,v=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Za(this.visualElement,t),r.start(Bu(t,r,0,n,this.visualElement,!1))}stopAnimation(){He(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){He(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){He(n=>{const{drag:r}=this.getProps();if(!$i(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-J(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};He(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Pw({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),He(o=>{if(!$i(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(J(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Lw.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const o=li(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(He(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=ol,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function $i(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Vw(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _w extends Zt{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new Rw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const $d=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class Ow extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new Xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$d(t),onStart:$d(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&X.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=_r(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 os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wd(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(O.test(e))e=parseFloat(e);else return e;const n=Wd(e,t.target.x),r=Wd(e,t.target.y);return`${n}% ${r}%`}},zw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=bt.parse(e);if(i.length>5)return r;const s=bt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=J(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class Iw extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;i1(Fw),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),os.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),mu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sy(e){const[t,n]=Up(),r=j.useContext(au);return c.jsx(Iw,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(Yp),isPresent:t,safeToRemove:n})}const Fw={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:zw};function Bw(e,t,n){const r=Se(e)?e:oi(e);return r.start(Bu("",r,t,n)),r.animation}function Uw(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $w=(e,t)=>e.depth-t.depth;class Ww{constructor(){this.children=[],this.isDirty=!1}add(t){Mu(this.children,t),this.isDirty=!0}remove(t){Au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($w),this.isDirty=!1,this.children.forEach(t)}}function Hw(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Qt(r),e(s-t))};return X.read(r,!0),()=>Qt(r)}const oy=["TopLeft","TopRight","BottomLeft","BottomRight"],Kw=oy.length,Hd=e=>typeof e=="string"?parseFloat(e):e,Kd=e=>typeof e=="number"||O.test(e);function Gw(e,t,n,r,i,s){i?(e.opacity=J(0,n.opacity!==void 0?n.opacity:1,Qw(r)),e.opacityExit=J(t.opacity!==void 0?t.opacity:1,0,bw(r))):s&&(e.opacity=J(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Kw;o++){const a=`border${oy[o]}Radius`;let l=Gd(t,a),u=Gd(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Kd(l)===Kd(u)?(e[a]=Math.max(J(Hd(l),Hd(u),r),0),(ft.test(u)||ft.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function Gd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Qw=ay(0,.5,Pm),bw=ay(.5,.95,Ie);function ay(e,t,n){return r=>r<e?0:r>t?1:n(Jn(e,t,r))}function Qd(e,t){e.min=t.min,e.max=t.max}function We(e,t){Qd(e.x,t.x),Qd(e.y,t.y)}function bd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Yd(e,t,n,r,i){return e-=t,e=Bs(e,1/n,r),i!==void 0&&(e=Bs(e,1/i,r)),e}function Yw(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=J(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=J(s.min,s.max,r);e===s&&(a-=t),e.min=Yd(e.min,t,n,a,i),e.max=Yd(e.max,t,n,a,i)}function Xd(e,t,[n,r,i],s,o){Yw(e,t[n],t[r],t[i],t.scale,s,o)}const Xw=["x","scaleX","originX"],qw=["y","scaleY","originY"];function qd(e,t,n,r){Xd(e.x,t,Xw,n?n.x:void 0,r?r.x:void 0),Xd(e.y,t,qw,n?n.y:void 0,r?r.y:void 0)}function Zd(e){return e.translate===0&&e.scale===1}function ly(e){return Zd(e.x)&&Zd(e.y)}function Jd(e,t){return e.min===t.min&&e.max===t.max}function Zw(e,t){return Jd(e.x,t.x)&&Jd(e.y,t.y)}function ef(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uy(e,t){return ef(e.x,t.x)&&ef(e.y,t.y)}function tf(e){return Be(e.x)/Be(e.y)}function nf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Jw{constructor(){this.members=[]}add(t){Mu(this.members,t),t.scheduleRender()}remove(t){if(Au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function eS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:v,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),v&&(r+=`skewX(${v}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const sn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},jr=typeof window<"u"&&window.MotionDebug!==void 0,bo=["","X","Y","Z"],tS={visibility:"hidden"},rf=1e3;let nS=0;function Yo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cy(r)}function dy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=nS++,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,jr&&(sn.totalNodes=sn.resolvedTargetDeltas=sn.recalculatedProjection=0),this.nodes.forEach(sS),this.nodes.forEach(cS),this.nodes.forEach(dS),this.nodes.forEach(oS),jr&&window.MotionDebug.record(sn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ww)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Du),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Uw(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Hw(h,250),os.hasAnimatedSinceResize&&(os.hasAnimatedSinceResize=!1,this.nodes.forEach(of))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||yS,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!uy(this.targetLayout,x)||v,y=!h&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const S={...Pu(g,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||of(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sf);return}this.isUpdating||this.nodes.forEach(lS),this.isUpdating=!1,this.nodes.forEach(uS),this.nodes.forEach(rS),this.nodes.forEach(iS),this.clearAllSnapshots();const a=ht.now();he.delta=Tt(0,1e3/60,a-he.timestamp),he.timestamp=a,he.isProcessing=!0,Fo.update.process(he),Fo.preRender.process(he),Fo.render.process(he),he.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aS),this.sharedNodes.forEach(hS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ly(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||rn(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),vS(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return ie();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gS))){const{scroll:d}=this.root;d&&(zn(l.x,d.offset.x),zn(l.y,d.offset.y))}return l}removeElementScroll(o){var a;const l=ie();if(We(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&We(l,o),zn(l.x,f.offset.x),zn(l.y,f.offset.y))}return l}applyTransform(o,a=!1){const l=ie();We(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&In(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),rn(d.latestValues)&&In(l,d.latestValues)}return rn(this.latestValues)&&In(l,this.latestValues),l}removeTransform(o){const a=ie();We(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!rn(u.latestValues))continue;al(u.latestValues)&&u.updateSnapshot();const d=ie(),f=u.measurePageBox();We(d,f),qd(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return rn(this.latestValues)&&qd(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==he.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=he.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),zr(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),ny(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),zr(this.relativeTargetOrigin,this.target,v.target),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}jr&&sn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||al(this.parent.latestValues)||ty(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===he.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=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||f))return;We(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,v=this.treeScale.y;Aw(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ie());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bd(this.prevProjectionDelta.x,this.projectionDelta.x),bd(this.prevProjectionDelta.y,this.projectionDelta.y)),Or(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==v||!nf(this.projectionDelta.x,this.prevProjectionDelta.x)||!nf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),jr&&sn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=On(),this.projectionDelta=On(),this.projectionDeltaWithTransform=On()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=On();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ie(),v=l?l.source:void 0,x=this.layout?this.layout.source:void 0,g=v!==x,C=this.getStack(),m=!C||C.members.length<=1,p=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(mS));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const w=S/1e3;af(f.x,o.x,w),af(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pS(this.relativeTarget,this.relativeTargetOrigin,h,w),y&&Zw(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=ie()),We(y,this.relativeTarget)),g&&(this.animationValues=d,Gw(d,u,this.latestValues,w,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{os.hasAnimatedSinceResize=!0,this.currentAnimation=Bw(0,rf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&fy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ie();const f=Be(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Be(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}We(a,l),In(a,d),Or(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Jw),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Yo("z",o,u,this.animationValues);for(let d=0;d<bo.length;d++)Yo(`rotate${bo[d]}`,o,u,this.animationValues),Yo(`skew${bo[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tS;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=is(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=is(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!rn(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=eS(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:v,y:x}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in _s){if(h[g]===void 0)continue;const{correct:C,applyTo:m}=_s[g],p=u.transform==="none"?h[g]:C(h[g],f);if(m){const y=m.length;for(let S=0;S<y;S++)u[m[S]]=p}else u[g]=p}return this.options.layoutId&&(u.pointerEvents=f===this?is(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(sf),this.root.sharedNodes.clear()}}}function rS(e){e.updateLayout()}function iS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?He(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],v=Be(h);h.min=r[f].min,h.max=h.min+v}):fy(s,n.layoutBox,r)&&He(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],v=Be(r[f]);h.max=h.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+v)});const a=On();Or(a,r,n.layoutBox);const l=On();o?Or(l,e.applyTransform(i,!0),n.measuredBox):Or(l,r,n.layoutBox);const u=!ly(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:v}=f;if(h&&v){const x=ie();zr(x,n.layoutBox,h.layoutBox);const g=ie();zr(g,r,v.layoutBox),uy(x,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function sS(e){jr&&sn.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 oS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aS(e){e.clearSnapshot()}function sf(e){e.clearMeasurements()}function lS(e){e.isLayoutDirty=!1}function uS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function of(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cS(e){e.resolveTargetDelta()}function dS(e){e.calcProjection()}function fS(e){e.resetSkewAndRotation()}function hS(e){e.removeLeadSnapshot()}function af(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lf(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function pS(e,t,n,r){lf(e.x,t.x,n.x,r),lf(e.y,t.y,n.y,r)}function mS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yS={duration:.45,ease:[.4,0,.1,1]},uf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cf=uf("applewebkit/")&&!uf("chrome/")?Math.round:Ie;function df(e){e.min=cf(e.min),e.max=cf(e.max)}function vS(e){df(e.x),df(e.y)}function fy(e,t,n){return e==="position"||e==="preserve-aspect"&&!ww(tf(t),tf(n),.2)}function gS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const xS=dy({attachResizeListener:(e,t)=>li(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xo={current:void 0},hy=dy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xo.current){const e=new xS({});e.mount(window),e.setOptions({layoutScroll:!0}),Xo.current=e}return Xo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wS={pan:{Feature:Ow},drag:{Feature:_w,ProjectionNode:hy,MeasureLayout:sy}};function ff(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&X.postRender(()=>s(t,xi(t)))}class SS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=w1(t,n=>(ff(this.node,n,"Start"),r=>ff(this.node,r,"End"))))}unmount(){}}class kS extends Zt{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=gi(li(this.node.current,"focus",()=>this.onFocus()),li(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&X.postRender(()=>s(t,xi(t)))}class jS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=C1(t,n=>(hf(this.node,n,"Start"),(r,{success:i})=>hf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ul=new WeakMap,qo=new WeakMap,CS=e=>{const t=ul.get(e.target);t&&t(e)},PS=e=>{e.forEach(CS)};function TS({root:e,...t}){const n=e||document;qo.has(n)||qo.set(n,{});const r=qo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(PS,{root:e,...t})),r[i]}function ES(e,t,n){const r=TS(t);return ul.set(e,n),r.observe(e),()=>{ul.delete(e),r.unobserve(e)}}const NS={some:0,all:1};class MS extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:NS[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(l)};return ES(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AS(t,n))&&this.startObserver()}unmount(){}}function AS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DS={inView:{Feature:MS},tap:{Feature:jS},focus:{Feature:kS},hover:{Feature:SS}},LS={layout:{ProjectionNode:hy,MeasureLayout:sy}},cl={current:null},py={current:!1};function RS(){if(py.current=!0,!!cu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cl.current=e.matches;e.addListener(t),t()}else cl.current=!1}const VS=[...Fm,xe,bt],_S=e=>VS.find(Im(e)),pf=new WeakMap;function OS(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Se(i))e.addValue(r,i);else if(Se(s))e.addValue(r,oi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,oi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=ht.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,X.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=lo(n),this.isVariantNode=Qp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in h){const x=h[v];l[v]!==void 0&&Se(x)&&x.set(l[v],!1)}}mount(t){this.current=t,pf.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)),py.current||RS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){pf.delete(this.current),this.projection&&this.projection.unmount(),Qt(this.notifyUpdate),Qt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=wn.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in er){const n=er[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}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<mf.length;r++){const i=mf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=OS(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=oi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Om(i)||Em(i))?i=parseFloat(i):!_S(i)&&bt.test(n)&&(i=Rm(t,n)),this.setBaseTarget(t,Se(i)?i.get():i)),Se(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=vu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Se(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Du),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class my extends zS{constructor(){super(...arguments),this.KeyframeResolver=Bm}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;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function IS(e){return window.getComputedStyle(e)}class FS extends my{constructor(){super(...arguments),this.type="html",this.renderInstance=nm}readValueFromInstance(t,n){if(wn.has(n)){const r=Ou(n);return r&&r.default||0}else{const r=IS(t),i=(Jp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ry(t,n)}build(t,n,r){wu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Cu(t,n,r)}}class BS extends my{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=Ou(n);return r&&r.default||0}return n=rm.has(n)?n:pu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return om(t,n,r)}build(t,n,r){Su(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){im(t,n,r,i)}mount(t){this.isSVGTag=ju(t.tagName),super.mount(t)}}const US=(e,t)=>yu(e)?new BS(t):new FS(t,{allowProjection:e!==j.Fragment}),$S=h1({...dw,...DS,...wS,...LS},US),yr=N0($S);function yf(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 WS(e){if(Array.isArray(e))return e}function HS(e,t,n){return(t=qS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function GS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
249
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(r){HS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QS(e,t){if(e==null)return{};var n,r,i=bS(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bS(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 YS(e,t){return WS(e)||KS(e,t)||ZS(e,t)||GS()}function XS(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 qS(e){var t=XS(e,"string");return typeof t=="symbol"?t:t+""}function ZS(e,t){if(e){if(typeof e=="string")return yf(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)?yf(e,t):void 0}}function JS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xf(Object(n),!0).forEach(function(r){JS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(i,s){return s(i)},r)}}function Cr(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function Us(e){return{}.toString.call(e).includes("Object")}function t2(e){return!Object.keys(e).length}function ui(e){return typeof e=="function"}function n2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r2(e,t){return Us(t)||Ht("changeType"),Object.keys(t).some(function(n){return!n2(e,n)})&&Ht("changeField"),t}function i2(e){ui(e)||Ht("selectorType")}function s2(e){ui(e)||Us(e)||Ht("handlerType"),Us(e)&&Object.values(e).some(function(t){return!ui(t)})&&Ht("handlersType")}function o2(e){e||Ht("initialIsRequired"),Us(e)||Ht("initialType"),t2(e)&&Ht("initialContent")}function a2(e,t){throw new Error(e[t]||e.default)}var l2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ht=Cr(a2)(l2),Wi={changes:r2,selector:i2,handler:s2,initial:o2};function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wi.initial(e),Wi.handler(t);var n={current:e},r=Cr(f2)(n,t),i=Cr(d2)(n),s=Cr(Wi.changes)(e),o=Cr(c2)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return Wi.selector(u),u(n.current)}function l(u){e2(r,i,s,o)(u)}return[a,l]}function c2(e,t){return ui(t)?t(e.current):t}function d2(e,t){return e.current=wf(wf({},e.current),t),t}function f2(e,t,n){return ui(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var h2={create:u2},p2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function m2(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function y2(e){return{}.toString.call(e).includes("Object")}function v2(e){return e||Sf("configIsRequired"),y2(e)||Sf("configType"),e.urls?(g2(),{paths:{vs:e.urls.monacoBase}}):e}function g2(){console.warn(yy.deprecation)}function x2(e,t){throw new Error(e[t]||e.default)}var yy={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!
|
|
250
|
-
You are using deprecated way of configuration.
|
|
251
|
-
|
|
252
|
-
Instead of using
|
|
253
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
254
|
-
use
|
|
255
|
-
monaco.config({ paths: { vs: '...' } })
|
|
256
|
-
|
|
257
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
258
|
-
`},Sf=m2(x2)(yy),w2={config:v2},S2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(s,o){return o(s)},i)}};function vy(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],vy(e[n],t[n]))}),gf(gf({},e),t)}var k2={type:"cancelation",msg:"operation is manually canceled"};function Zo(e){var t=!1,n=new Promise(function(r,i){e.then(function(s){return t?i(k2):r(s)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var j2=["monaco"],C2=h2.create({config:p2,isInitialized:!1,resolve:null,reject:null,monaco:null}),gy=YS(C2,2),wi=gy[0],fo=gy[1];function P2(e){var t=w2.config(e),n=t.monaco,r=QS(t,j2);fo(function(i){return{config:vy(i.config,r),monaco:n}})}function T2(){var e=wi(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(fo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Zo(Jo);if(window.monaco&&window.monaco.editor)return xy(window.monaco),e.resolve(window.monaco),Zo(Jo);S2(E2,M2)(A2)}return Zo(Jo)}function E2(e){return document.body.appendChild(e)}function N2(e){var t=document.createElement("script");return e&&(t.src=e),t}function M2(e){var t=wi(function(r){var i=r.config,s=r.reject;return{config:i,reject:s}}),n=N2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function A2(){var e=wi(function(n){var r=n.config,i=n.resolve,s=n.reject;return{config:r,resolve:i,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;xy(r),e.resolve(r)},function(n){e.reject(n)})}function xy(e){wi().monaco||fo({monaco:e})}function D2(){return wi(function(e){var t=e.monaco;return t})}var Jo=new Promise(function(e,t){return fo({resolve:e,reject:t})}),wy={config:P2,init:T2,__getMonacoInstance:D2},L2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ea=L2,R2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},V2=R2;function _2({children:e}){return Qe.createElement("div",{style:V2.container},e)}var O2=_2,z2=O2;function I2({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:s,wrapperProps:o}){return Qe.createElement("section",{style:{...ea.wrapper,width:e,height:t},...o},!n&&Qe.createElement(z2,null,r),Qe.createElement("div",{ref:i,style:{...ea.fullWidth,...!n&&ea.hide},className:s}))}var F2=I2,Sy=j.memo(F2);function B2(e){j.useEffect(e,[])}var ky=B2;function U2(e,t,n=!0){let r=j.useRef(!0);j.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var _e=U2;function Ir(){}function Fn(e,t,n,r){return $2(e,r)||W2(e,t,n,r)}function $2(e,t){return e.editor.getModel(jy(e,t))}function W2(e,t,n,r){return e.editor.createModel(t,n,r?jy(e,r):void 0)}function jy(e,t){return e.Uri.parse(t)}function H2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:d="Loading...",options:f={},height:h="100%",width:v="100%",className:x,wrapperProps:g={},beforeMount:C=Ir,onMount:m=Ir}){let[p,y]=j.useState(!1),[S,w]=j.useState(!0),k=j.useRef(null),P=j.useRef(null),T=j.useRef(null),R=j.useRef(m),M=j.useRef(C),G=j.useRef(!1);ky(()=>{let L=wy.init();return L.then(F=>(P.current=F)&&w(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>k.current?W():L.cancel()}),_e(()=>{if(k.current&&P.current){let L=k.current.getOriginalEditor(),F=Fn(P.current,e||"",r||n||"text",s||"");F!==L.getModel()&&L.setModel(F)}},[s],p),_e(()=>{if(k.current&&P.current){let L=k.current.getModifiedEditor(),F=Fn(P.current,t||"",i||n||"text",o||"");F!==L.getModel()&&L.setModel(F)}},[o],p),_e(()=>{let L=k.current.getModifiedEditor();L.getOption(P.current.editor.EditorOption.readOnly)?L.setValue(t||""):t!==L.getValue()&&(L.executeEdits("",[{range:L.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),L.pushUndoStop())},[t],p),_e(()=>{var L,F;(F=(L=k.current)==null?void 0:L.getModel())==null||F.original.setValue(e||"")},[e],p),_e(()=>{let{original:L,modified:F}=k.current.getModel();P.current.editor.setModelLanguage(L,r||n||"text"),P.current.editor.setModelLanguage(F,i||n||"text")},[n,r,i],p),_e(()=>{var L;(L=P.current)==null||L.editor.setTheme(u)},[u],p),_e(()=>{var L;(L=k.current)==null||L.updateOptions(f)},[f],p);let ye=j.useCallback(()=>{var B;if(!P.current)return;M.current(P.current);let L=Fn(P.current,e||"",r||n||"text",s||""),F=Fn(P.current,t||"",i||n||"text",o||"");(B=k.current)==null||B.setModel({original:L,modified:F})},[n,t,i,e,r,s,o]),D=j.useCallback(()=>{var L;!G.current&&T.current&&(k.current=P.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...f}),ye(),(L=P.current)==null||L.editor.setTheme(u),y(!0),G.current=!0)},[f,u,ye]);j.useEffect(()=>{p&&R.current(k.current,P.current)},[p]),j.useEffect(()=>{!S&&!p&&D()},[S,p,D]);function W(){var F,B,N,_;let L=(F=k.current)==null?void 0:F.getModel();a||((B=L==null?void 0:L.original)==null||B.dispose()),l||((N=L==null?void 0:L.modified)==null||N.dispose()),(_=k.current)==null||_.dispose()}return Qe.createElement(Sy,{width:v,height:h,isEditorReady:p,loading:d,_ref:T,className:x,wrapperProps:g})}var K2=H2,G2=j.memo(K2);function Q2(e){let t=j.useRef();return j.useEffect(()=>{t.current=e},[e]),t.current}var b2=Q2,Hi=new Map;function Y2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:s,theme:o="light",line:a,loading:l="Loading...",options:u={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:h=!1,width:v="100%",height:x="100%",className:g,wrapperProps:C={},beforeMount:m=Ir,onMount:p=Ir,onChange:y,onValidate:S=Ir}){let[w,k]=j.useState(!1),[P,T]=j.useState(!0),R=j.useRef(null),M=j.useRef(null),G=j.useRef(null),ye=j.useRef(p),D=j.useRef(m),W=j.useRef(),L=j.useRef(r),F=b2(s),B=j.useRef(!1),N=j.useRef(!1);ky(()=>{let V=wy.init();return V.then(I=>(R.current=I)&&T(!1)).catch(I=>(I==null?void 0:I.type)!=="cancelation"&&console.error("Monaco initialization: error:",I)),()=>M.current?z():V.cancel()}),_e(()=>{var I,ue,Re,ot;let V=Fn(R.current,e||r||"",t||i||"",s||n||"");V!==((I=M.current)==null?void 0:I.getModel())&&(f&&Hi.set(F,(ue=M.current)==null?void 0:ue.saveViewState()),(Re=M.current)==null||Re.setModel(V),f&&((ot=M.current)==null||ot.restoreViewState(Hi.get(s))))},[s],w),_e(()=>{var V;(V=M.current)==null||V.updateOptions(u)},[u],w),_e(()=>{!M.current||r===void 0||(M.current.getOption(R.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(N.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),N.current=!1))},[r],w),_e(()=>{var I,ue;let V=(I=M.current)==null?void 0:I.getModel();V&&i&&((ue=R.current)==null||ue.editor.setModelLanguage(V,i))},[i],w),_e(()=>{var V;a!==void 0&&((V=M.current)==null||V.revealLine(a))},[a],w),_e(()=>{var V;(V=R.current)==null||V.editor.setTheme(o)},[o],w);let _=j.useCallback(()=>{var V;if(!(!G.current||!R.current)&&!B.current){D.current(R.current);let I=s||n,ue=Fn(R.current,r||e||"",t||i||"",I||"");M.current=(V=R.current)==null?void 0:V.editor.create(G.current,{model:ue,automaticLayout:!0,...u},d),f&&M.current.restoreViewState(Hi.get(I)),R.current.editor.setTheme(o),a!==void 0&&M.current.revealLine(a),k(!0),B.current=!0}},[e,t,n,r,i,s,u,d,f,o,a]);j.useEffect(()=>{w&&ye.current(M.current,R.current)},[w]),j.useEffect(()=>{!P&&!w&&_()},[P,w,_]),L.current=r,j.useEffect(()=>{var V,I;w&&y&&((V=W.current)==null||V.dispose(),W.current=(I=M.current)==null?void 0:I.onDidChangeModelContent(ue=>{N.current||y(M.current.getValue(),ue)}))},[w,y]),j.useEffect(()=>{if(w){let V=R.current.editor.onDidChangeMarkers(I=>{var Re;let ue=(Re=M.current.getModel())==null?void 0:Re.uri;if(ue&&I.find(ot=>ot.path===ue.path)){let ot=R.current.editor.getModelMarkers({resource:ue});S==null||S(ot)}});return()=>{V==null||V.dispose()}}return()=>{}},[w,S]);function z(){var V,I;(V=W.current)==null||V.dispose(),h?f&&Hi.set(s,M.current.saveViewState()):(I=M.current.getModel())==null||I.dispose(),M.current.dispose()}return Qe.createElement(Sy,{width:v,height:x,isEditorReady:w,loading:l,_ref:G,className:g,wrapperProps:C})}var X2=Y2,q2=j.memo(X2);const Z2=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"},J2=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:i="dark"})=>{const s=t!==n,o=Z2(e),a=i==="dark"?"vs-dark":"light";return c.jsx("div",{className:"diff-viewer-overlay",children:c.jsxs("div",{className:"diff-viewer-window",children:[c.jsxs("div",{className:"diff-viewer-header",children:[c.jsxs("div",{className:"title",children:[c.jsx(gt,{size:18}),c.jsx("span",{children:e}),s&&c.jsx("span",{className:"diff-badge",children:"Modified"})]}),c.jsx("button",{onClick:r,className:"close-btn",children:c.jsx(ou,{size:20})})]}),c.jsx("div",{className:"diff-editor-container",children:s?c.jsx(G2,{height:"100%",language:o,original:t,modified:n,theme:a,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):c.jsx(q2,{height:"100%",language:o,value:n,theme:a,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on"}})})]})})},ek=(e,t)=>{const n=[];e.forEach(i=>{const s=i.split("/");let o=n,a="";s.forEach((l,u)=>{a=a?`${a}/${l}`:l;const d=u<s.length-1;let f=o.find(h=>h.name===l);f||(f={name:l,path:a,isDirectory:d,children:[],isViolated:t.some(h=>h===a||h.startsWith(`${a}/`))},o.push(f)),o=f.children})});const r=i=>{i.sort((s,o)=>s.isDirectory&&!o.isDirectory?-1:!s.isDirectory&&o.isDirectory?1:s.name.localeCompare(o.name)),i.forEach(s=>r(s.children))};return r(n),n},Cy=({node:e,level:t,onSelect:n,activeFile:r})=>{const[i,s]=j.useState(t===0),o=r===e.path,a=l=>{l.stopPropagation(),e.isDirectory?s(!i):n(e.path)};return c.jsxs("div",{className:"tree-node-container",children:[c.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:a,children:[e.isDirectory?c.jsxs(c.Fragment,{children:[i?c.jsx(n0,{size:14,className:"chevron"}):c.jsx(mi,{size:14,className:"chevron"}),i?c.jsx(a0,{size:14,className:"folder-icon"}):c.jsx(Ip,{size:14,className:"folder-icon"})]}):c.jsx(gt,{size:14,className:"file-icon"}),c.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&c.jsx(r0,{size:12,className:"violation-icon"})]}),e.isDirectory&&i&&c.jsx("div",{className:"tree-children",children:e.children.map(l=>c.jsx(Cy,{node:l,level:t+1,onSelect:n,activeFile:r},l.path))})]})},kf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const i=j.useMemo(()=>ek(e,r),[e,r]);return c.jsxs("div",{className:"file-tree",children:[c.jsxs("div",{className:"tree-header",children:[c.jsx(Ip,{size:14}),c.jsx("span",{children:"Project Explorer"})]}),c.jsx("div",{className:"tree-list",children:i.length===0?c.jsx("div",{className:"empty-tree-state",children:"No files found"}):i.map(s=>c.jsx(Cy,{node:s,level:0,onSelect:t,activeFile:n},s.path))})]})},tk=()=>{const[e,t]=j.useState({memories:{}}),[n,r]=j.useState(null),[i,s]=j.useState(""),[o,a]=j.useState(!0),l=async()=>{a(!0);try{const x=await(await fetch("/api/memory")).json();x.memories?t(x):t({memories:x})}catch(v){console.error("Failed to fetch memory:",v)}finally{a(!1)}};j.useEffect(()=>{l()},[]);const u=Object.entries(e.memories||{}),d=u.filter(([v])=>v.toLowerCase().includes(i.toLowerCase())),f=n?e.memories[n]:null,h=v=>{try{return new Date(v).toLocaleString()}catch{return v}};return c.jsxs("div",{className:"memory-bank",children:[c.jsxs("div",{className:"memory-header",children:[c.jsxs("div",{className:"memory-title",children:[c.jsx(Xc,{size:24}),c.jsx("h2",{children:"Memory Bank"}),c.jsxs("span",{className:"memory-count",children:[u.length," entries"]})]}),c.jsxs("div",{className:"memory-actions",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(su,{size:16}),c.jsx("input",{type:"text",placeholder:"Search memories...",value:i,onChange:v=>s(v.target.value)})]}),c.jsx("button",{className:"refresh-btn",onClick:l,disabled:o,children:c.jsx(Ls,{size:16,className:o?"spinning":""})})]})]}),c.jsxs("div",{className:"memory-content",children:[c.jsx("div",{className:"memory-list",children:o?c.jsx("div",{className:"memory-loading",children:"Loading memories..."}):d.length===0?c.jsxs("div",{className:"memory-empty",children:[c.jsx(Op,{size:48}),c.jsx("h3",{children:"No Memories Stored"}),c.jsxs("p",{children:["Use ",c.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):d.map(([v,x])=>c.jsxs("div",{className:`memory-item ${n===v?"active":""}`,onClick:()=>r(v),children:[c.jsxs("div",{className:"memory-item-header",children:[c.jsx(Zc,{size:14}),c.jsx("span",{className:"memory-key",children:v}),c.jsx(mi,{size:14,className:"chevron"})]}),c.jsxs("div",{className:"memory-item-meta",children:[c.jsx(Ds,{size:12}),c.jsx("span",{children:h(x.timestamp)})]}),c.jsxs("div",{className:"memory-item-preview",children:[x.value.slice(0,100),x.value.length>100?"...":""]})]},v))}),c.jsx("div",{className:"memory-detail",children:f?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-header",children:[c.jsx(Zc,{size:18}),c.jsx("h3",{children:n})]}),c.jsxs("div",{className:"detail-meta",children:[c.jsx(Ds,{size:14}),c.jsxs("span",{children:["Stored: ",h(f.timestamp)]})]}),c.jsx("div",{className:"detail-content",children:c.jsx("pre",{children:f.value})})]}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(Xc,{size:48}),c.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},nk=()=>{var w;const[e,t]=j.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=j.useState(null),[i,s]=j.useState(""),[o,a]=j.useState("all"),[l,u]=j.useState(!0),[d,f]=j.useState(!1),[h,v]=j.useState([]),[x,g]=j.useState(!1),C=async()=>{u(!0);try{const P=await(await fetch("/api/index-stats")).json();t(P)}catch(k){console.error("Failed to fetch pattern index:",k)}finally{u(!1)}};j.useEffect(()=>{C()},[]),j.useEffect(()=>{if(!d||i.length<3){v([]);return}const k=setTimeout(async()=>{g(!0);try{const T=await(await fetch(`/api/index-search?q=${encodeURIComponent(i)}`)).json();v(T)}catch(P){console.error("Semantic search failed:",P)}finally{g(!1)}},500);return()=>clearTimeout(k)},[i,d]);const m=d&&i.length>=3?h:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},y=d&&i.length>=3?m:m.filter(k=>{const P=k.name.toLowerCase().includes(i.toLowerCase())||k.file.toLowerCase().includes(i.toLowerCase()),T=o==="all"||k.type===o;return P&&T}),S=Object.keys(p.byType||{});return c.jsxs("div",{className:"pattern-index",children:[c.jsxs("div",{className:"pattern-header",children:[c.jsxs("div",{className:"pattern-title",children:[c.jsx(rs,{size:24}),c.jsx("h2",{children:"Pattern Index"}),c.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),c.jsxs("div",{className:"pattern-actions",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(su,{size:16}),c.jsx("input",{type:"text",placeholder:"Search patterns...",value:i,onChange:k=>s(k.target.value)})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(zp,{size:16}),c.jsxs("select",{value:o,onChange:k=>a(k.target.value),children:[c.jsx("option",{value:"all",children:"All Types"}),S.map(k=>c.jsxs("option",{value:k,children:[k," (",p.byType[k],")"]},k))]})]}),c.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>f(!d),title:"Semantic Search (v2)",children:[c.jsx(qc,{size:16}),c.jsx("span",{children:"AI Search"})]}),c.jsx("button",{className:"refresh-btn",onClick:C,disabled:l,children:c.jsx(Ls,{size:16,className:l?"spinning":""})})]})]}),c.jsxs("div",{className:"pattern-stats",children:[c.jsxs("div",{className:"stat-card",children:[c.jsx(t0,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:p.totalPatterns}),c.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx(gt,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:p.totalFiles}),c.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx(qc,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:S.length}),c.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&c.jsxs("div",{className:"stat-card",children:[c.jsx(Ds,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),c.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),c.jsxs("div",{className:"pattern-content",children:[c.jsxs("div",{className:"pattern-list",children:[x&&c.jsxs("div",{className:"searching-indicator",children:[c.jsx(Ls,{size:14,className:"spinning"}),c.jsx("span",{children:"AI is analyzing your query..."})]}),l?c.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):y.length===0?c.jsxs("div",{className:"pattern-empty",children:[c.jsx(rs,{size:48}),c.jsx("h3",{children:"No Patterns Indexed"}),c.jsxs("p",{children:["Run ",c.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):y.map(k=>c.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===k.id?"active":""}`,onClick:()=>r(k),children:[k.similarity&&c.jsxs("div",{className:"similarity-badge",children:[(k.similarity*100).toFixed(0),"% Match"]}),c.jsxs("div",{className:"pattern-item-header",children:[c.jsx("span",{className:"pattern-type-badge",children:k.type}),c.jsx("span",{className:"pattern-name",children:k.name}),c.jsx(mi,{size:14,className:"chevron"})]}),c.jsxs("div",{className:"pattern-item-file",children:[c.jsx(gt,{size:12}),c.jsxs("span",{children:[k.file,":",k.line]})]}),k.exported&&c.jsx("span",{className:"exported-badge",children:"exported"})]},k.id))]}),c.jsx("div",{className:"pattern-detail",children:n?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-header",children:[c.jsx("span",{className:"pattern-type-badge large",children:n.type}),c.jsx("h3",{children:n.name})]}),c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Location"}),c.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Signature"}),c.jsx("pre",{children:n.signature})]}),n.description&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Description"}),c.jsx("p",{children:n.description})]}),((w=n.keywords)==null?void 0:w.length)>0&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Keywords"}),c.jsx("div",{className:"keywords-list",children:n.keywords.map((k,P)=>c.jsx("span",{className:"keyword-tag",children:k},P))})]}),c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Usage"}),c.jsxs("p",{children:["Imported in ",c.jsx("strong",{children:n.usageCount})," files"]})]})]}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(rs,{size:48}),c.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},rk=()=>{const[e,t]=j.useState(null),[n,r]=j.useState(""),[i,s]=j.useState(!0),[o,a]=j.useState("visual"),l=async()=>{s(!0);try{const h=await(await fetch("/api/config")).text();r(h);const v=u(h);t(v)}catch(f){console.error("Failed to fetch config:",f)}finally{s(!1)}},u=f=>{var h;try{const v=f.split(`
|
|
259
|
-
`),x={};let g=null,C=null;for(const m of v){if(m.startsWith("#")||!m.trim())continue;const p=m.search(/\S/),y=m.trim();if(p===0&&y.includes(":")){const[S]=y.split(":");g=S.trim(),C=null;const w=(h=y.split(":")[1])==null?void 0:h.trim();w&&w!=="{}"&&w!=="[]"?x[g]=isNaN(Number(w))?w:Number(w):x[g]={}}else if(p===2&&g&&y.includes(":")){const[S]=y.split(":");C=S.trim();const w=y.split(":").slice(1).join(":").trim();if(w&&w!=="{}"&&w!=="[]"){typeof x[g]!="object"&&(x[g]={});const k=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[g][C]=k}else typeof x[g]!="object"&&(x[g]={}),x[g][C]={}}else if(p===4&&g&&C&&y.includes(":")){const[S]=y.split(":"),w=y.split(":").slice(1).join(":").trim();typeof x[g][C]!="object"&&(x[g][C]={});const k=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[g][C][S.trim()]=k}}return x}catch{return{}}};j.useEffect(()=>{l()},[]);const d=(e==null?void 0:e.gates)||{};return c.jsxs("div",{className:"quality-gates",children:[c.jsxs("div",{className:"gates-header",children:[c.jsxs("div",{className:"gates-title",children:[c.jsx(d0,{size:24}),c.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&c.jsx("span",{className:"preset-badge",children:e.preset})]}),c.jsxs("div",{className:"gates-actions",children:[c.jsxs("div",{className:"view-toggle",children:[c.jsxs("button",{className:o==="visual"?"active":"",onClick:()=>a("visual"),children:[c.jsx(rs,{size:16})," Visual"]}),c.jsxs("button",{className:o==="raw"?"active":"",onClick:()=>a("raw"),children:[c.jsx(gt,{size:16})," YAML"]})]}),c.jsx("button",{className:"refresh-btn",onClick:l,disabled:i,children:c.jsx(Ls,{size:16,className:i?"spinning":""})})]})]}),i?c.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):o==="raw"?c.jsx("div",{className:"gates-raw",children:c.jsx("pre",{children:n})}):c.jsxs("div",{className:"gates-content",children:[c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(gt,{size:18}),c.jsx("h3",{children:"Code Quality"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Max File Lines",value:d.max_file_lines,icon:c.jsx(gt,{size:16})}),c.jsx(je,{label:"Forbid TODOs",value:d.forbid_todos,icon:d.forbid_todos?c.jsx(ri,{size:16}):c.jsx(ni,{size:16})}),c.jsx(je,{label:"Forbid FIXMEs",value:d.forbid_fixme,icon:d.forbid_fixme?c.jsx(ri,{size:16}):c.jsx(ni,{size:16})})]})]}),d.ast&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(l0,{size:18}),c.jsx("h3",{children:"AST Limits"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Complexity",value:d.ast.complexity}),c.jsx(je,{label:"Max Methods",value:d.ast.max_methods}),c.jsx(je,{label:"Max Params",value:d.ast.max_params}),c.jsx(je,{label:"Max Nesting",value:d.ast.max_nesting}),c.jsx(je,{label:"Max Function Lines",value:d.ast.max_function_lines}),c.jsx(je,{label:"Max Inheritance",value:d.ast.max_inheritance_depth})]})]}),d.safety&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(Fp,{size:18}),c.jsx("h3",{children:"Safety Controls"})]}),c.jsx("div",{className:"gate-grid",children:c.jsx(je,{label:"Max Files/Cycle",value:d.safety.max_files_changed_per_cycle})}),d.safety.protected_paths&&d.safety.protected_paths.length>0&&c.jsxs("div",{className:"protected-paths",children:[c.jsx("h4",{children:"Protected Paths"}),c.jsx("div",{className:"path-list",children:d.safety.protected_paths.map((f,h)=>c.jsx("span",{className:"path-tag",children:f},h))})]})]}),d.required_files&&d.required_files.length>0&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(io,{size:18}),c.jsx("h3",{children:"Required Files"})]}),c.jsx("div",{className:"file-list",children:d.required_files.map((f,h)=>c.jsxs("div",{className:"file-item",children:[c.jsx(gt,{size:14}),c.jsx("span",{children:f})]},h))})]}),d.context&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(m0,{size:18}),c.jsx("h3",{children:"Context Mining"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Enabled",value:d.context.enabled}),c.jsx(je,{label:"Sensitivity",value:d.context.sensitivity}),c.jsx(je,{label:"Mining Depth",value:d.context.mining_depth})]})]}),d.retry_loop_breaker&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(Bp,{size:18}),c.jsx("h3",{children:"Retry Loop Breaker"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Enabled",value:d.retry_loop_breaker.enabled}),c.jsx(je,{label:"Max Retries",value:d.retry_loop_breaker.max_retries})]})]})]})]})},je=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return c.jsxs("div",{className:"gate-card",children:[n&&c.jsx("div",{className:"gate-icon",children:n}),c.jsxs("div",{className:"gate-info",children:[c.jsx("span",{className:"gate-value",children:r}),c.jsx("span",{className:"gate-label",children:e})]})]})},ik=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[i,s]=j.useState(""),[o,a]=j.useState("all"),[l,u]=j.useState("all"),d=Qe.useMemo(()=>{const g={};return e.forEach(C=>{const m=C.requestId||C.id;g[m]?g[m]={...g[m],...C}:g[m]={...C}}),Object.values(g).sort((C,m)=>new Date(m.timestamp).getTime()-new Date(C.timestamp).getTime())},[e]),f=Qe.useMemo(()=>{const g=new Set;return d.forEach(C=>C.tool&&g.add(C.tool)),Array.from(g)},[d]),h=Qe.useMemo(()=>d.filter(g=>{var y;const C=!i||((y=g.tool)==null?void 0:y.toLowerCase().includes(i.toLowerCase()))||JSON.stringify(g.arguments||{}).toLowerCase().includes(i.toLowerCase()),m=o==="all"||g.status===o,p=l==="all"||g.tool===l;return C&&m&&p}),[d,i,o,l]),v=Qe.useMemo(()=>({total:d.length,success:d.filter(g=>g.status==="success").length,error:d.filter(g=>g.status==="error").length,pending:d.filter(g=>!g.status||g.status==="pending").length}),[d]),x=()=>{const g=JSON.stringify(h,null,2),C=new Blob([g],{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 c.jsxs("div",{className:"audit-log",children:[c.jsxs("div",{className:"audit-header",children:[c.jsxs("div",{className:"audit-title",children:[c.jsx(ba,{size:24}),c.jsx("h2",{children:"Audit Trail"}),c.jsxs("span",{className:"log-count",children:[h.length," events"]})]}),c.jsxs("div",{className:"audit-actions",children:[c.jsxs("button",{className:"btn-secondary",onClick:t,children:[c.jsx(h0,{size:16})," Clear"]}),c.jsxs("button",{className:"btn-primary",onClick:x,children:[c.jsx(s0,{size:16})," Export"]})]})]}),c.jsxs("div",{className:"audit-stats",children:[c.jsxs("div",{className:"stat-pill",children:[c.jsx(ba,{size:14}),c.jsxs("span",{children:[v.total," Total"]})]}),c.jsxs("div",{className:"stat-pill success",children:[c.jsx(ni,{size:14}),c.jsxs("span",{children:[v.success," Success"]})]}),c.jsxs("div",{className:"stat-pill error",children:[c.jsx(ri,{size:14}),c.jsxs("span",{children:[v.error," Failed"]})]}),c.jsxs("div",{className:"stat-pill pending",children:[c.jsx(io,{size:14}),c.jsxs("span",{children:[v.pending," Pending"]})]})]}),c.jsxs("div",{className:"audit-filters",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(su,{size:16}),c.jsx("input",{type:"text",placeholder:"Search logs...",value:i,onChange:g=>s(g.target.value)})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(zp,{size:16}),c.jsxs("select",{value:o,onChange:g=>a(g.target.value),children:[c.jsx("option",{value:"all",children:"All Status"}),c.jsx("option",{value:"success",children:"Success"}),c.jsx("option",{value:"error",children:"Error"}),c.jsx("option",{value:"pending",children:"Pending"})]})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Rs,{size:16}),c.jsxs("select",{value:l,onChange:g=>u(g.target.value),children:[c.jsx("option",{value:"all",children:"All Tools"}),f.map(g=>c.jsx("option",{value:g,children:g},g))]})]})]}),c.jsxs("div",{className:"audit-content",children:[c.jsx("div",{className:"log-list",children:h.length===0?c.jsxs("div",{className:"empty-state",children:[c.jsx(Rs,{size:48}),c.jsx("h3",{children:"No Interactions Detected"}),c.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):h.map(g=>c.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===g.id?"active":""} ${g._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===g.id?null:g),children:[c.jsxs("div",{className:"log-header",children:[c.jsx("span",{className:`status-dot ${g.status||"pending"}`}),c.jsx("span",{className:"log-tool",children:g.tool}),c.jsxs("span",{className:"log-time",children:[c.jsx(Ds,{size:12}),new Date(g.timestamp).toLocaleTimeString()]}),g._rigour_report&&c.jsxs("span",{className:"report-badge",children:[c.jsx(o0,{size:12})," Report"]}),g.arbitrated&&c.jsx("span",{className:`arbitrated-badge ${g.decision}`,children:g.decision==="approve"?"Approved":"Rejected"}),c.jsx(mi,{size:14,className:"chevron"})]}),g.requestId&&c.jsxs("div",{className:"log-request-id",children:["ID: ",g.requestId.slice(0,12),"..."]})]},g.id))}),c.jsx("div",{className:"log-detail",children:r?c.jsx(sk,{log:r,onClose:()=>n(null)}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(gt,{size:48}),c.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},sk=({log:e,onClose:t})=>{const[n,r]=j.useState("args");return c.jsxs("div",{className:"log-detail-view",children:[c.jsxs("div",{className:"detail-header",children:[c.jsxs("div",{className:"detail-info",children:[c.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?c.jsx(ni,{size:14}):e.status==="error"?c.jsx(ri,{size:14}):c.jsx(io,{size:14}),e.status||"pending"]}),c.jsx("h3",{children:e.tool})]}),c.jsx("button",{className:"close-btn",onClick:t,children:c.jsx(ou,{size:18})})]}),c.jsxs("div",{className:"detail-meta",children:[c.jsxs("div",{className:"meta-item",children:[c.jsx("span",{className:"meta-label",children:"Timestamp"}),c.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&c.jsxs("div",{className:"meta-item",children:[c.jsx("span",{className:"meta-label",children:"Request ID"}),c.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),e._rigour_report&&c.jsxs("div",{className:"detail-tabs",children:[c.jsx("button",{className:n==="args"?"active":"",onClick:()=>r("args"),children:"Arguments"}),c.jsx("button",{className:n==="report"?"active":"",onClick:()=>r("report"),children:"Rigour Report"})]}),c.jsx("div",{className:"detail-body",children:n==="args"?c.jsxs(c.Fragment,{children:[e.arguments&&c.jsxs("div",{className:"code-section",children:[c.jsx("h4",{children:"Arguments"}),c.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&c.jsxs("div",{className:"error-section",children:[c.jsx("h4",{children:"Error"}),c.jsx("div",{className:"error-message",children:e.error})]})]}):c.jsxs("div",{className:"code-section",children:[c.jsx("h4",{children:"Rigour Report"}),c.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})]})};function ok(){var T,R,M,G,ye;const[e,t]=j.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=j.useState("memory"),[i,s]=j.useState([]),[o,a]=j.useState(null),[l,u]=j.useState(null),[d,f]=j.useState(!1),[h,v]=j.useState([]);Qe.useEffect(()=>{const D=new EventSource("/api/events");return D.onmessage=W=>{try{const L=JSON.parse(W.data);s(F=>[L,...F].slice(0,100))}catch(L){console.error("Failed to parse event",L)}},fetch("/api/tree").then(W=>W.json()).then(v).catch(W=>console.error("Failed to fetch tree",W)),()=>D.close()},[]),j.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const x=()=>t(D=>D==="dark"?"light":"dark"),[g,C]=j.useState(""),[m,p]=j.useState({}),[y,S]=j.useState({});j.useEffect(()=>{(async()=>{try{const[W,L,F]=await Promise.all([fetch("/api/config").then(B=>B.ok?B.text():""),fetch("/api/memory").then(B=>B.json()),fetch("/api/index-stats").then(B=>B.json())]);C(W),p(L),S(F)}catch(W){console.error("Failed to fetch meta data",W)}})()},[]);const w=async D=>{try{const W=D.replace(/\s*\(\d+\s*lines\)$/,""),F=await(await fetch(`/api/file?path=${encodeURIComponent(W)}`)).text();a({filename:W,original:F,modified:F})}catch(W){console.error("Failed to fetch file content",W)}},k=async D=>{if(l)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:l.requestId||l.id,decision:D,timestamp:new Date().toISOString()})}),s(W=>W.map(L=>(L.requestId||L.id)===(l.requestId||l.id)?{...L,status:D==="approve"?"success":"error",arbitrated:!0,decision:D}:L)),f(!1),u(null)}catch(W){console.error("Arbitration failed",W)}},P=[{id:"audit",label:"Audit Log",icon:Rs},{id:"gates",label:"Quality Gates",icon:Jc},{id:"patterns",label:"Pattern Index",icon:Op},{id:"memory",label:"Memory Bank",icon:i0}];return c.jsxs("div",{className:"studio",children:[c.jsxs("aside",{className:"sidebar",children:[c.jsxs("div",{className:"brand",children:[c.jsx("div",{className:"logo-icon",children:"R"}),c.jsx("span",{children:"Studio"}),c.jsx("div",{className:"version-pill",children:"v2.9"})]}),c.jsx("nav",{children:P.map(D=>c.jsxs("button",{className:`nav-item ${n===D.id?"active":""}`,onClick:()=>r(D.id),children:[c.jsx(D.icon,{size:18}),c.jsx("span",{children:D.label}),n===D.id&&c.jsx(yr.div,{layoutId:"nav-glow",className:"nav-glow"})]},D.id))}),c.jsxs("div",{className:"sidebar-footer",children:[c.jsxs("div",{className:"trust-indicator",children:[c.jsx(Fp,{size:14}),c.jsx("span",{children:"Local Governance"})]}),c.jsx("button",{className:"footer-item",children:c.jsx(Bp,{size:18})}),c.jsx("button",{className:"footer-item",children:c.jsx(u0,{size:18})})]})]}),c.jsxs("main",{className:"main-content",children:[c.jsxs("header",{children:[c.jsx("div",{className:"header-left",children:c.jsxs("div",{className:"breadcrumb",children:[c.jsx("span",{children:"Control Path"}),c.jsx(mi,{size:14}),c.jsx("span",{className:"current",children:(T=P.find(D=>D.id===n))==null?void 0:T.label})]})}),c.jsxs("div",{className:"header-right",children:[c.jsx("button",{className:"theme-toggle",onClick:x,children:e==="dark"?c.jsx(f0,{size:18}):c.jsx(c0,{size:18})}),c.jsxs("div",{className:"connection-status",children:[c.jsx(p0,{size:14,className:"wifi-icon"}),c.jsx("span",{children:"Shadowing: .rigour/events.jsonl"})]}),c.jsxs("div",{className:"status-indicator",children:[c.jsx("div",{className:"pulse-emitter"}),c.jsx("span",{children:"Live Mode"})]})]})]}),c.jsxs("div",{className:"view-container",children:[c.jsxs(w0,{mode:"wait",children:[n==="audit"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(ik,{logs:i,onClearLogs:()=>s([]),onSelectLog:D=>{var W,L,F;if(u(D),D!=null&&D._rigour_report||(D==null?void 0:D.type)==="interception_requested"){if(D!=null&&D._rigour_report){const B=(F=(L=(W=D._rigour_report.failures)==null?void 0:W[0])==null?void 0:L.files)==null?void 0:F[0];B?w(B):a(null)}else a(null);f(!0)}else a(null),f(!1)},selectedLog:l})},"audit"),n==="gates"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(rk,{})},"gates"),n==="patterns"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(nk,{})},"patterns"),n==="memory"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(tk,{})},"memory")]}),l&&d&&c.jsx("div",{className:"governance-overlay",children:c.jsxs("div",{className:"governance-window",children:[c.jsxs("div",{className:"governance-header",children:[c.jsxs("div",{className:"title",children:[c.jsx(Jc,{size:20}),c.jsxs("span",{children:["Governance Audit: ",l.tool]})]}),c.jsxs("div",{className:"hitl-actions",children:[c.jsxs("button",{className:"btn-approve",onClick:()=>k("approve"),children:[c.jsx(ni,{size:16})," Approve (Override)"]}),c.jsxs("button",{className:"btn-reject",onClick:()=>k("reject"),children:[c.jsx(ri,{size:16})," Reject Change"]}),c.jsx("div",{className:"divider"}),c.jsx("button",{onClick:()=>f(!1),className:"close-btn",children:c.jsx(ou,{size:20})})]})]}),c.jsx("div",{className:"governance-body",children:l.type==="interception_requested"?c.jsxs("div",{className:"interception-view",children:[c.jsxs("div",{className:"interception-card",children:[c.jsx(Rs,{size:48}),c.jsx("h4",{children:"Command Intercepted"}),c.jsx("div",{className:"command-box",children:c.jsx("code",{children:l.command})}),c.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),c.jsxs("div",{className:"warning-note",children:[c.jsx(io,{size:16}),c.jsx("span",{children:"Critical actions should be manually verified."})]})]}),c.jsx(kf,{files:h.map(D=>D.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:D=>w(D),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):c.jsxs(c.Fragment,{children:[c.jsx(kf,{files:(((M=(R=l._rigour_report)==null?void 0:R.failures)==null?void 0:M.flatMap(D=>D.files||[]))||h).map(D=>D.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:D=>w(D),activeFile:o==null?void 0:o.filename,violatedFiles:(((ye=(G=l._rigour_report)==null?void 0:G.failures)==null?void 0:ye.flatMap(D=>D.files||[]))||[]).map(D=>D.replace(/\s*\(\d+\s*lines\)$/,""))}),c.jsx("div",{className:"diff-view-area",children:o?c.jsx(J2,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>a(null),theme:e}):c.jsxs("div",{className:"diff-placeholder",children:[c.jsx(ba,{size:48}),c.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}ta.createRoot(document.getElementById("root")).render(c.jsx(Qe.StrictMode,{children:c.jsx(ok,{})}));
|