codemotion-studio 0.0.0-stage → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,763 @@
1
+ (function(){const N=document.createElement("link").relList;if(N&&N.supports&&N.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))_(h);new MutationObserver(h=>{for(const w of h)if(w.type==="childList")for(const C of w.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&_(C)}).observe(document,{childList:!0,subtree:!0});function c(h){const w={};return h.integrity&&(w.integrity=h.integrity),h.referrerPolicy&&(w.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?w.credentials="include":h.crossOrigin==="anonymous"?w.credentials="omit":w.credentials="same-origin",w}function _(h){if(h.ep)return;h.ep=!0;const w=c(h);fetch(h.href,w)}})();var us={exports:{}},rl={},cs={exports:{}},ae={};/**
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 Uu;function ef(){if(Uu)return ae;Uu=1;var y=Symbol.for("react.element"),N=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),C=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),W=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),T=Symbol.iterator;function D(f){return f===null||typeof f!="object"?null:(f=T&&f[T]||f["@@iterator"],typeof f=="function"?f:null)}var se={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ue=Object.assign,G={};function b(f,g,te){this.props=f,this.context=g,this.refs=G,this.updater=te||se}b.prototype.isReactComponent={},b.prototype.setState=function(f,g){if(typeof f!="object"&&typeof f!="function"&&f!=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,f,g,"setState")},b.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function O(){}O.prototype=b.prototype;function q(f,g,te){this.props=f,this.context=g,this.refs=G,this.updater=te||se}var H=q.prototype=new O;H.constructor=q,ue(H,b.prototype),H.isPureReactComponent=!0;var ee=Array.isArray,ge=Object.prototype.hasOwnProperty,K={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function Ee(f,g,te){var re,pe={},ce=null,we=null;if(g!=null)for(re in g.ref!==void 0&&(we=g.ref),g.key!==void 0&&(ce=""+g.key),g)ge.call(g,re)&&!fe.hasOwnProperty(re)&&(pe[re]=g[re]);var ke=arguments.length-2;if(ke===1)pe.children=te;else if(1<ke){for(var ze=Array(ke),Ye=0;Ye<ke;Ye++)ze[Ye]=arguments[Ye+2];pe.children=ze}if(f&&f.defaultProps)for(re in ke=f.defaultProps,ke)pe[re]===void 0&&(pe[re]=ke[re]);return{$$typeof:y,type:f,key:ce,ref:we,props:pe,_owner:K.current}}function Ge(f,g){return{$$typeof:y,type:f.type,key:g,ref:f.ref,props:f.props,_owner:f._owner}}function ne(f){return typeof f=="object"&&f!==null&&f.$$typeof===y}function de(f){var g={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(te){return g[te]})}var _e=/\/+/g;function je(f,g){return typeof f=="object"&&f!==null&&f.key!=null?de(""+f.key):g.toString(36)}function De(f,g,te,re,pe){var ce=typeof f;(ce==="undefined"||ce==="boolean")&&(f=null);var we=!1;if(f===null)we=!0;else switch(ce){case"string":case"number":we=!0;break;case"object":switch(f.$$typeof){case y:case N:we=!0}}if(we)return we=f,pe=pe(we),f=re===""?"."+je(we,0):re,ee(pe)?(te="",f!=null&&(te=f.replace(_e,"$&/")+"/"),De(pe,g,te,"",function(Ye){return Ye})):pe!=null&&(ne(pe)&&(pe=Ge(pe,te+(!pe.key||we&&we.key===pe.key?"":(""+pe.key).replace(_e,"$&/")+"/")+f)),g.push(pe)),1;if(we=0,re=re===""?".":re+":",ee(f))for(var ke=0;ke<f.length;ke++){ce=f[ke];var ze=re+je(ce,ke);we+=De(ce,g,te,ze,pe)}else if(ze=D(f),typeof ze=="function")for(f=ze.call(f),ke=0;!(ce=f.next()).done;)ce=ce.value,ze=re+je(ce,ke++),we+=De(ce,g,te,ze,pe);else if(ce==="object")throw g=String(f),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.");return we}function he(f,g,te){if(f==null)return f;var re=[],pe=0;return De(f,re,"","",function(ce){return g.call(te,ce,pe++)}),re}function Ae(f){if(f._status===-1){var g=f._result;g=g(),g.then(function(te){(f._status===0||f._status===-1)&&(f._status=1,f._result=te)},function(te){(f._status===0||f._status===-1)&&(f._status=2,f._result=te)}),f._status===-1&&(f._status=0,f._result=g)}if(f._status===1)return f._result.default;throw f._result}var Ne={current:null},R={transition:null},Q={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:R,ReactCurrentOwner:K};function P(){throw Error("act(...) is not supported in production builds of React.")}return ae.Children={map:he,forEach:function(f,g,te){he(f,function(){g.apply(this,arguments)},te)},count:function(f){var g=0;return he(f,function(){g++}),g},toArray:function(f){return he(f,function(g){return g})||[]},only:function(f){if(!ne(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},ae.Component=b,ae.Fragment=c,ae.Profiler=h,ae.PureComponent=q,ae.StrictMode=_,ae.Suspense=F,ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,ae.act=P,ae.cloneElement=function(f,g,te){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var re=ue({},f.props),pe=f.key,ce=f.ref,we=f._owner;if(g!=null){if(g.ref!==void 0&&(ce=g.ref,we=K.current),g.key!==void 0&&(pe=""+g.key),f.type&&f.type.defaultProps)var ke=f.type.defaultProps;for(ze in g)ge.call(g,ze)&&!fe.hasOwnProperty(ze)&&(re[ze]=g[ze]===void 0&&ke!==void 0?ke[ze]:g[ze])}var ze=arguments.length-2;if(ze===1)re.children=te;else if(1<ze){ke=Array(ze);for(var Ye=0;Ye<ze;Ye++)ke[Ye]=arguments[Ye+2];re.children=ke}return{$$typeof:y,type:f.type,key:pe,ref:ce,props:re,_owner:we}},ae.createContext=function(f){return f={$$typeof:C,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},f.Provider={$$typeof:w,_context:f},f.Consumer=f},ae.createElement=Ee,ae.createFactory=function(f){var g=Ee.bind(null,f);return g.type=f,g},ae.createRef=function(){return{current:null}},ae.forwardRef=function(f){return{$$typeof:B,render:f}},ae.isValidElement=ne,ae.lazy=function(f){return{$$typeof:X,_payload:{_status:-1,_result:f},_init:Ae}},ae.memo=function(f,g){return{$$typeof:W,type:f,compare:g===void 0?null:g}},ae.startTransition=function(f){var g=R.transition;R.transition={};try{f()}finally{R.transition=g}},ae.unstable_act=P,ae.useCallback=function(f,g){return Ne.current.useCallback(f,g)},ae.useContext=function(f){return Ne.current.useContext(f)},ae.useDebugValue=function(){},ae.useDeferredValue=function(f){return Ne.current.useDeferredValue(f)},ae.useEffect=function(f,g){return Ne.current.useEffect(f,g)},ae.useId=function(){return Ne.current.useId()},ae.useImperativeHandle=function(f,g,te){return Ne.current.useImperativeHandle(f,g,te)},ae.useInsertionEffect=function(f,g){return Ne.current.useInsertionEffect(f,g)},ae.useLayoutEffect=function(f,g){return Ne.current.useLayoutEffect(f,g)},ae.useMemo=function(f,g){return Ne.current.useMemo(f,g)},ae.useReducer=function(f,g,te){return Ne.current.useReducer(f,g,te)},ae.useRef=function(f){return Ne.current.useRef(f)},ae.useState=function(f){return Ne.current.useState(f)},ae.useSyncExternalStore=function(f,g,te){return Ne.current.useSyncExternalStore(f,g,te)},ae.useTransition=function(){return Ne.current.useTransition()},ae.version="18.3.1",ae}var Vu;function hs(){return Vu||(Vu=1,cs.exports=ef()),cs.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Hu;function tf(){if(Hu)return rl;Hu=1;var y=hs(),N=Symbol.for("react.element"),c=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,h=y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function C(B,F,W){var X,T={},D=null,se=null;W!==void 0&&(D=""+W),F.key!==void 0&&(D=""+F.key),F.ref!==void 0&&(se=F.ref);for(X in F)_.call(F,X)&&!w.hasOwnProperty(X)&&(T[X]=F[X]);if(B&&B.defaultProps)for(X in F=B.defaultProps,F)T[X]===void 0&&(T[X]=F[X]);return{$$typeof:N,type:B,key:D,ref:se,props:T,_owner:h.current}}return rl.Fragment=c,rl.jsx=C,rl.jsxs=C,rl}var Bu;function nf(){return Bu||(Bu=1,us.exports=tf()),us.exports}var o=nf(),M=hs(),wi={},ds={exports:{}},ft={},fs={exports:{}},ps={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Wu;function rf(){return Wu||(Wu=1,(function(y){function N(R,Q){var P=R.length;R.push(Q);e:for(;0<P;){var f=P-1>>>1,g=R[f];if(0<h(g,Q))R[f]=Q,R[P]=g,P=f;else break e}}function c(R){return R.length===0?null:R[0]}function _(R){if(R.length===0)return null;var Q=R[0],P=R.pop();if(P!==Q){R[0]=P;e:for(var f=0,g=R.length,te=g>>>1;f<te;){var re=2*(f+1)-1,pe=R[re],ce=re+1,we=R[ce];if(0>h(pe,P))ce<g&&0>h(we,pe)?(R[f]=we,R[ce]=P,f=ce):(R[f]=pe,R[re]=P,f=re);else if(ce<g&&0>h(we,P))R[f]=we,R[ce]=P,f=ce;else break e}}return Q}function h(R,Q){var P=R.sortIndex-Q.sortIndex;return P!==0?P:R.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var w=performance;y.unstable_now=function(){return w.now()}}else{var C=Date,B=C.now();y.unstable_now=function(){return C.now()-B}}var F=[],W=[],X=1,T=null,D=3,se=!1,ue=!1,G=!1,b=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function H(R){for(var Q=c(W);Q!==null;){if(Q.callback===null)_(W);else if(Q.startTime<=R)_(W),Q.sortIndex=Q.expirationTime,N(F,Q);else break;Q=c(W)}}function ee(R){if(G=!1,H(R),!ue)if(c(F)!==null)ue=!0,Ae(ge);else{var Q=c(W);Q!==null&&Ne(ee,Q.startTime-R)}}function ge(R,Q){ue=!1,G&&(G=!1,O(Ee),Ee=-1),se=!0;var P=D;try{for(H(Q),T=c(F);T!==null&&(!(T.expirationTime>Q)||R&&!de());){var f=T.callback;if(typeof f=="function"){T.callback=null,D=T.priorityLevel;var g=f(T.expirationTime<=Q);Q=y.unstable_now(),typeof g=="function"?T.callback=g:T===c(F)&&_(F),H(Q)}else _(F);T=c(F)}if(T!==null)var te=!0;else{var re=c(W);re!==null&&Ne(ee,re.startTime-Q),te=!1}return te}finally{T=null,D=P,se=!1}}var K=!1,fe=null,Ee=-1,Ge=5,ne=-1;function de(){return!(y.unstable_now()-ne<Ge)}function _e(){if(fe!==null){var R=y.unstable_now();ne=R;var Q=!0;try{Q=fe(!0,R)}finally{Q?je():(K=!1,fe=null)}}else K=!1}var je;if(typeof q=="function")je=function(){q(_e)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,he=De.port2;De.port1.onmessage=_e,je=function(){he.postMessage(null)}}else je=function(){b(_e,0)};function Ae(R){fe=R,K||(K=!0,je())}function Ne(R,Q){Ee=b(function(){R(y.unstable_now())},Q)}y.unstable_IdlePriority=5,y.unstable_ImmediatePriority=1,y.unstable_LowPriority=4,y.unstable_NormalPriority=3,y.unstable_Profiling=null,y.unstable_UserBlockingPriority=2,y.unstable_cancelCallback=function(R){R.callback=null},y.unstable_continueExecution=function(){ue||se||(ue=!0,Ae(ge))},y.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ge=0<R?Math.floor(1e3/R):5},y.unstable_getCurrentPriorityLevel=function(){return D},y.unstable_getFirstCallbackNode=function(){return c(F)},y.unstable_next=function(R){switch(D){case 1:case 2:case 3:var Q=3;break;default:Q=D}var P=D;D=Q;try{return R()}finally{D=P}},y.unstable_pauseExecution=function(){},y.unstable_requestPaint=function(){},y.unstable_runWithPriority=function(R,Q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var P=D;D=R;try{return Q()}finally{D=P}},y.unstable_scheduleCallback=function(R,Q,P){var f=y.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?f+P:f):P=f,R){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=P+g,R={id:X++,callback:Q,priorityLevel:R,startTime:P,expirationTime:g,sortIndex:-1},P>f?(R.sortIndex=P,N(W,R),c(F)===null&&R===c(W)&&(G?(O(Ee),Ee=-1):G=!0,Ne(ee,P-f))):(R.sortIndex=g,N(F,R),ue||se||(ue=!0,Ae(ge))),R},y.unstable_shouldYield=de,y.unstable_wrapCallback=function(R){var Q=D;return function(){var P=D;D=Q;try{return R.apply(this,arguments)}finally{D=P}}}})(ps)),ps}var Ku;function lf(){return Ku||(Ku=1,fs.exports=rf()),fs.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 Qu;function of(){if(Qu)return ft;Qu=1;var y=hs(),N=lf();function c(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 _=new Set,h={};function w(e,t){C(e,t),C(e+"Capture",t)}function C(e,t){for(h[e]=t,e=0;e<t.length;e++)_.add(t[e])}var B=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),F=Object.prototype.hasOwnProperty,W=/^[: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]*$/,X={},T={};function D(e){return F.call(T,e)?!0:F.call(X,e)?!1:W.test(e)?T[e]=!0:(X[e]=!0,!1)}function se(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 ue(e,t,n,r){if(t===null||typeof t>"u"||se(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 G(e,t,n,r,l,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new G(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new G(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new G(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new G(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){b[e]=new G(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new G(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new G(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new G(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new G(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function q(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(O,q);b[t]=new G(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(O,q);b[t]=new G(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(O,q);b[t]=new G(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new G(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new G(e,1,!1,e.toLowerCase(),null,!0,!0)});function H(e,t,n,r){var l=b.hasOwnProperty(t)?b[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ue(t,n,l,r)&&(n=null),r||l===null?D(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ee=y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ge=Symbol.for("react.element"),K=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),Ee=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),de=Symbol.for("react.context"),_e=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),R=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=R&&e[R]||e["@@iterator"],typeof e=="function"?e:null)}var P=Object.assign,f;function g(e){if(f===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);f=t&&t[1]||""}return`
34
+ `+f+e}var te=!1;function re(e,t){if(!e||te)return"";te=!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(x){var r=x}Reflect.construct(e,[],t)}else{try{t.call()}catch(x){r=x}e.call(t.prototype)}else{try{throw Error()}catch(x){r=x}e()}}catch(x){if(x&&r&&typeof x.stack=="string"){for(var l=x.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),s=l.length-1,a=i.length-1;1<=s&&0<=a&&l[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(l[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||l[s]!==i[a]){var u=`
37
+ `+l[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{te=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?g(e):""}function pe(e){switch(e.tag){case 5:return g(e.type);case 16:return g("Lazy");case 13:return g("Suspense");case 19:return g("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ce(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 fe:return"Fragment";case K:return"Portal";case Ge:return"Profiler";case Ee:return"StrictMode";case je:return"Suspense";case De:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case de:return(e.displayName||"Context")+".Consumer";case ne:return(e._context.displayName||"Context")+".Provider";case _e:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Ae:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function we(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 ce(t);case 8:return t===Ee?"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 ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=ze(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dn(e){e._valueTracker||(e._valueTracker=Ye(e))}function ol(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ze(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function At(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 An(e,t){var n=t.checked;return P({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ke(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 kn(e,t){t=t.checked,t!=null&&H(e,"checked",t,!1)}function $n(e,t){kn(e,t);var n=ke(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")?Sn(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sn(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function al(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 Sn(e,t,n){(t!=="number"||At(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qt=Array.isArray;function it(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function jn(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(c(91));return P({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Un(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(c(92));if(qt(n)){if(1<n.length)throw Error(c(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function ul(e,t){var n=ke(t.value),r=ke(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 Vn(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xr(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 Hn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $t,nt=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($t=$t||document.createElement("div"),$t.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$t.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut={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},ji=["Webkit","ms","Moz","O"];Object.keys(Ut).forEach(function(e){ji.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ut[t]=Ut[e]})});function vr(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ut.hasOwnProperty(e)&&Ut[e]?(""+t).trim():t+"px"}function xe(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=vr(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var me=P({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 mt(e,t){if(t){if(me[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(c(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(c(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(c(61))}if(t.style!=null&&typeof t.style!="object")throw Error(c(62))}}function Re(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 ot=null;function yr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gr=null,ht=null,Vt=null;function cl(e){if(e=Vr(e)){if(typeof gr!="function")throw Error(c(280));var t=e.stateNode;t&&(t=bl(t),gr(e.stateNode,e.type,t))}}function dl(e){ht?Vt?Vt.push(e):Vt=[e]:ht=e}function fl(){if(ht){var e=ht,t=Vt;if(Vt=ht=null,cl(e),t)for(e=0;e<t.length;e++)cl(t[e])}}function pl(e,t){return e(t)}function ml(){}var wr=!1;function kr(e,t,n){if(wr)return e(t,n);wr=!0;try{return pl(e,t,n)}finally{wr=!1,(ht!==null||Vt!==null)&&(ml(),fl())}}function en(e,t){var n=e.stateNode;if(n===null)return null;var r=bl(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(c(231,t,typeof n));return n}var Sr=!1;if(B)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){Sr=!0}}),window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Sr=!1}function Ni(e,t,n,r,l,i,s,a,u){var x=Array.prototype.slice.call(arguments,3);try{t.apply(n,x)}catch(S){this.onError(S)}}var Ht=!1,Bn=null,Wn=!1,jr=null,zi={onError:function(e){Ht=!0,Bn=e}};function Ci(e,t,n,r,l,i,s,a,u){Ht=!1,Bn=null,Ni.apply(zi,arguments)}function Ei(e,t,n,r,l,i,s,a,u){if(Ci.apply(this,arguments),Ht){if(Ht){var x=Bn;Ht=!1,Bn=null}else throw Error(c(198));Wn||(Wn=!0,jr=x)}}function Bt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function v(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 E(e){if(Bt(e)!==e)throw Error(c(188))}function A(e){var t=e.alternate;if(!t){if(t=Bt(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return E(l),e;if(i===r)return E(l),t;i=i.sibling}throw Error(c(188))}if(n.return!==r.return)n=l,r=i;else{for(var s=!1,a=l.child;a;){if(a===n){s=!0,n=l,r=i;break}if(a===r){s=!0,r=l,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=l;break}if(a===r){s=!0,r=i,n=l;break}a=a.sibling}if(!s)throw Error(c(189))}}if(n.alternate!==r)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function oe(e){return e=A(e),e!==null?Me(e):null}function Me(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Me(e);if(t!==null)return t;e=e.sibling}return null}var ie=N.unstable_scheduleCallback,Pe=N.unstable_cancelCallback,Ct=N.unstable_shouldYield,hl=N.unstable_requestPaint,be=N.unstable_now,_i=N.unstable_getCurrentPriorityLevel,zn=N.unstable_ImmediatePriority,Kn=N.unstable_UserBlockingPriority,Qn=N.unstable_NormalPriority,mc=N.unstable_LowPriority,vs=N.unstable_IdlePriority,xl=null,Ft=null;function hc(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:yc,xc=Math.log,vc=Math.LN2;function yc(e){return e>>>=0,e===0?32:31-(xc(e)/vc|0)|0}var vl=64,yl=4194304;function Nr(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 gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~l;a!==0?r=Nr(a):(i&=s,i!==0&&(r=Nr(i)))}else s=n&~l,s!==0?r=Nr(s):i!==0&&(r=Nr(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Et(t),l=1<<n,r|=e[n],t&=~l;return r}function gc(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 wc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Et(i),a=1<<s,u=l[s];u===-1?((a&n)===0||(a&r)!==0)&&(l[s]=gc(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function Ri(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ys(){var e=vl;return vl<<=1,(vl&4194240)===0&&(vl=64),e}function Mi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function kc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Et(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function Pi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var Se=0;function gs(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ws,Ti,ks,Ss,js,Li=!1,wl=[],tn=null,nn=null,rn=null,Cr=new Map,Er=new Map,ln=[],Sc="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 Ns(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":Cr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Er.delete(t.pointerId)}}function _r(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Vr(t),t!==null&&Ti(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function jc(e,t,n,r,l){switch(t){case"focusin":return tn=_r(tn,e,t,n,r,l),!0;case"dragenter":return nn=_r(nn,e,t,n,r,l),!0;case"mouseover":return rn=_r(rn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Cr.set(i,_r(Cr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Er.set(i,_r(Er.get(i)||null,e,t,n,r,l)),!0}return!1}function zs(e){var t=Cn(e.target);if(t!==null){var n=Bt(t);if(n!==null){if(t=n.tag,t===13){if(t=v(n),t!==null){e.blockedOn=t,js(e.priority,function(){ks(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 kl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ot=r,n.target.dispatchEvent(r),ot=null}else return t=Vr(n),t!==null&&Ti(t),e.blockedOn=n,!1;t.shift()}return!0}function Cs(e,t,n){kl(e)&&n.delete(t)}function Nc(){Li=!1,tn!==null&&kl(tn)&&(tn=null),nn!==null&&kl(nn)&&(nn=null),rn!==null&&kl(rn)&&(rn=null),Cr.forEach(Cs),Er.forEach(Cs)}function Rr(e,t){e.blockedOn===t&&(e.blockedOn=null,Li||(Li=!0,N.unstable_scheduleCallback(N.unstable_NormalPriority,Nc)))}function Mr(e){function t(l){return Rr(l,e)}if(0<wl.length){Rr(wl[0],e);for(var n=1;n<wl.length;n++){var r=wl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&Rr(tn,e),nn!==null&&Rr(nn,e),rn!==null&&Rr(rn,e),Cr.forEach(t),Er.forEach(t),n=0;n<ln.length;n++)r=ln[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ln.length&&(n=ln[0],n.blockedOn===null);)zs(n),n.blockedOn===null&&ln.shift()}var Yn=ee.ReactCurrentBatchConfig,Sl=!0;function zc(e,t,n,r){var l=Se,i=Yn.transition;Yn.transition=null;try{Se=1,Fi(e,t,n,r)}finally{Se=l,Yn.transition=i}}function Cc(e,t,n,r){var l=Se,i=Yn.transition;Yn.transition=null;try{Se=4,Fi(e,t,n,r)}finally{Se=l,Yn.transition=i}}function Fi(e,t,n,r){if(Sl){var l=bi(e,t,n,r);if(l===null)Zi(e,t,r,jl,n),Ns(e,r);else if(jc(l,e,t,n,r))r.stopPropagation();else if(Ns(e,r),t&4&&-1<Sc.indexOf(e)){for(;l!==null;){var i=Vr(l);if(i!==null&&ws(i),i=bi(e,t,n,r),i===null&&Zi(e,t,r,jl,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Zi(e,t,r,null,n)}}var jl=null;function bi(e,t,n,r){if(jl=null,e=yr(r),e=Cn(e),e!==null)if(t=Bt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=v(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 jl=e,null}function Es(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(_i()){case zn:return 1;case Kn:return 4;case Qn:case mc:return 16;case vs:return 536870912;default:return 16}default:return 16}}var on=null,Oi=null,Nl=null;function _s(){if(Nl)return Nl;var e,t=Oi,n=t.length,r,l="value"in on?on.value:on.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[i-r];r++);return Nl=l.slice(e,1<r?1-r:void 0)}function zl(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 Cl(){return!0}function Rs(){return!1}function xt(e){function t(n,r,l,i,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Cl:Rs,this.isPropagationStopped=Rs,this}return P(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=Cl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cl)},persist:function(){},isPersistent:Cl}),t}var Jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=xt(Jn),Pr=P({},Jn,{view:0,detail:0}),Ec=xt(Pr),Di,Ai,Tr,El=P({},Pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ui,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!==Tr&&(Tr&&e.type==="mousemove"?(Di=e.screenX-Tr.screenX,Ai=e.screenY-Tr.screenY):Ai=Di=0,Tr=e),Di)},movementY:function(e){return"movementY"in e?e.movementY:Ai}}),Ms=xt(El),_c=P({},El,{dataTransfer:0}),Rc=xt(_c),Mc=P({},Pr,{relatedTarget:0}),$i=xt(Mc),Pc=P({},Jn,{animationName:0,elapsedTime:0,pseudoElement:0}),Tc=xt(Pc),Lc=P({},Jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fc=xt(Lc),bc=P({},Jn,{data:0}),Ps=xt(bc),Oc={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ic={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"},Dc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ac(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dc[e])?!!t[e]:!1}function Ui(){return Ac}var $c=P({},Pr,{key:function(e){if(e.key){var t=Oc[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ic[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ui,charCode:function(e){return e.type==="keypress"?zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uc=xt($c),Vc=P({},El,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ts=xt(Vc),Hc=P({},Pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ui}),Bc=xt(Hc),Wc=P({},Jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kc=xt(Wc),Qc=P({},El,{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}),Yc=xt(Qc),Jc=[9,13,27,32],Vi=B&&"CompositionEvent"in window,Lr=null;B&&"documentMode"in document&&(Lr=document.documentMode);var Xc=B&&"TextEvent"in window&&!Lr,Ls=B&&(!Vi||Lr&&8<Lr&&11>=Lr),Fs=" ",bs=!1;function Os(e,t){switch(e){case"keyup":return Jc.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Is(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Gc(e,t){switch(e){case"compositionend":return Is(t);case"keypress":return t.which!==32?null:(bs=!0,Fs);case"textInput":return e=t.data,e===Fs&&bs?null:e;default:return null}}function Zc(e,t){if(Xn)return e==="compositionend"||!Vi&&Os(e,t)?(e=_s(),Nl=Oi=on=null,Xn=!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 Ls&&t.locale!=="ko"?null:t.data;default:return null}}var qc={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 Ds(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qc[e.type]:t==="textarea"}function As(e,t,n,r){dl(r),t=Tl(t,"onChange"),0<t.length&&(n=new Ii("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fr=null,br=null;function ed(e){ra(e,0)}function _l(e){var t=tr(e);if(ol(t))return e}function td(e,t){if(e==="change")return t}var $s=!1;if(B){var Hi;if(B){var Bi="oninput"in document;if(!Bi){var Us=document.createElement("div");Us.setAttribute("oninput","return;"),Bi=typeof Us.oninput=="function"}Hi=Bi}else Hi=!1;$s=Hi&&(!document.documentMode||9<document.documentMode)}function Vs(){Fr&&(Fr.detachEvent("onpropertychange",Hs),br=Fr=null)}function Hs(e){if(e.propertyName==="value"&&_l(br)){var t=[];As(t,br,e,yr(e)),kr(ed,t)}}function nd(e,t,n){e==="focusin"?(Vs(),Fr=t,br=n,Fr.attachEvent("onpropertychange",Hs)):e==="focusout"&&Vs()}function rd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _l(br)}function ld(e,t){if(e==="click")return _l(t)}function id(e,t){if(e==="input"||e==="change")return _l(t)}function od(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:od;function Or(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!F.call(t,l)||!_t(e[l],t[l]))return!1}return!0}function Bs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ws(e,t){var n=Bs(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=Bs(n)}}function Ks(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ks(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qs(){for(var e=window,t=At();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function Wi(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 sd(e){var t=Qs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ks(n.ownerDocument.documentElement,n)){if(r!==null&&Wi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Ws(n,i);var s=Ws(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ad=B&&"documentMode"in document&&11>=document.documentMode,Gn=null,Ki=null,Ir=null,Qi=!1;function Ys(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qi||Gn==null||Gn!==At(r)||(r=Gn,"selectionStart"in r&&Wi(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}),Ir&&Or(Ir,r)||(Ir=r,r=Tl(Ki,"onSelect"),0<r.length&&(t=new Ii("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Gn)))}function Rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zn={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionend:Rl("Transition","TransitionEnd")},Yi={},Js={};B&&(Js=document.createElement("div").style,"AnimationEvent"in window||(delete Zn.animationend.animation,delete Zn.animationiteration.animation,delete Zn.animationstart.animation),"TransitionEvent"in window||delete Zn.transitionend.transition);function Ml(e){if(Yi[e])return Yi[e];if(!Zn[e])return e;var t=Zn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Js)return Yi[e]=t[n];return e}var Xs=Ml("animationend"),Gs=Ml("animationiteration"),Zs=Ml("animationstart"),qs=Ml("transitionend"),ea=new Map,ta="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 sn(e,t){ea.set(e,t),w(t,[e])}for(var Ji=0;Ji<ta.length;Ji++){var Xi=ta[Ji],ud=Xi.toLowerCase(),cd=Xi[0].toUpperCase()+Xi.slice(1);sn(ud,"on"+cd)}sn(Xs,"onAnimationEnd"),sn(Gs,"onAnimationIteration"),sn(Zs,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(qs,"onTransitionEnd"),C("onMouseEnter",["mouseout","mouseover"]),C("onMouseLeave",["mouseout","mouseover"]),C("onPointerEnter",["pointerout","pointerover"]),C("onPointerLeave",["pointerout","pointerover"]),w("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),w("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),w("onBeforeInput",["compositionend","keypress","textInput","paste"]),w("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),w("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),w("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),dd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function na(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ei(r,t,void 0,e),e.currentTarget=null}function ra(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],u=a.instance,x=a.currentTarget;if(a=a.listener,u!==i&&l.isPropagationStopped())break e;na(l,a,x),i=u}else for(s=0;s<r.length;s++){if(a=r[s],u=a.instance,x=a.currentTarget,a=a.listener,u!==i&&l.isPropagationStopped())break e;na(l,a,x),i=u}}}if(Wn)throw e=jr,Wn=!1,jr=null,e}function Te(e,t){var n=t[lo];n===void 0&&(n=t[lo]=new Set);var r=e+"__bubble";n.has(r)||(la(t,e,2,!1),n.add(r))}function Gi(e,t,n){var r=0;t&&(r|=4),la(n,e,r,t)}var Pl="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[Pl]){e[Pl]=!0,_.forEach(function(n){n!=="selectionchange"&&(dd.has(n)||Gi(n,!1,e),Gi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pl]||(t[Pl]=!0,Gi("selectionchange",!1,t))}}function la(e,t,n,r){switch(Es(t)){case 1:var l=zc;break;case 4:l=Cc;break;default:l=Fi}n=l.bind(null,t,n,e),l=void 0,!Sr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Zi(e,t,n,r,l){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;s=s.return}for(;a!==null;){if(s=Cn(a),s===null)return;if(u=s.tag,u===5||u===6){r=i=s;continue e}a=a.parentNode}}r=r.return}kr(function(){var x=i,S=yr(n),j=[];e:{var k=ea.get(e);if(k!==void 0){var L=Ii,$=e;switch(e){case"keypress":if(zl(n)===0)break e;case"keydown":case"keyup":L=Uc;break;case"focusin":$="focus",L=$i;break;case"focusout":$="blur",L=$i;break;case"beforeblur":case"afterblur":L=$i;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":L=Ms;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Rc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Bc;break;case Xs:case Gs:case Zs:L=Tc;break;case qs:L=Kc;break;case"scroll":L=Ec;break;case"wheel":L=Yc;break;case"copy":case"cut":case"paste":L=Fc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Ts}var U=(t&4)!==0,Ue=!U&&e==="scroll",p=U?k!==null?k+"Capture":null:k;U=[];for(var d=x,m;d!==null;){m=d;var z=m.stateNode;if(m.tag===5&&z!==null&&(m=z,p!==null&&(z=en(d,p),z!=null&&U.push($r(d,z,m)))),Ue)break;d=d.return}0<U.length&&(k=new L(k,$,null,n,S),j.push({event:k,listeners:U}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&n!==ot&&($=n.relatedTarget||n.fromElement)&&(Cn($)||$[Wt]))break e;if((L||k)&&(k=S.window===S?S:(k=S.ownerDocument)?k.defaultView||k.parentWindow:window,L?($=n.relatedTarget||n.toElement,L=x,$=$?Cn($):null,$!==null&&(Ue=Bt($),$!==Ue||$.tag!==5&&$.tag!==6)&&($=null)):(L=null,$=x),L!==$)){if(U=Ms,z="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(U=Ts,z="onPointerLeave",p="onPointerEnter",d="pointer"),Ue=L==null?k:tr(L),m=$==null?k:tr($),k=new U(z,d+"leave",L,n,S),k.target=Ue,k.relatedTarget=m,z=null,Cn(S)===x&&(U=new U(p,d+"enter",$,n,S),U.target=m,U.relatedTarget=Ue,z=U),Ue=z,L&&$)t:{for(U=L,p=$,d=0,m=U;m;m=qn(m))d++;for(m=0,z=p;z;z=qn(z))m++;for(;0<d-m;)U=qn(U),d--;for(;0<m-d;)p=qn(p),m--;for(;d--;){if(U===p||p!==null&&U===p.alternate)break t;U=qn(U),p=qn(p)}U=null}else U=null;L!==null&&ia(j,k,L,U,!1),$!==null&&Ue!==null&&ia(j,Ue,$,U,!0)}}e:{if(k=x?tr(x):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var V=td;else if(Ds(k))if($s)V=id;else{V=rd;var Y=nd}else(L=k.nodeName)&&L.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(V=ld);if(V&&(V=V(e,x))){As(j,V,n,S);break e}Y&&Y(e,k,x),e==="focusout"&&(Y=k._wrapperState)&&Y.controlled&&k.type==="number"&&Sn(k,"number",k.value)}switch(Y=x?tr(x):window,e){case"focusin":(Ds(Y)||Y.contentEditable==="true")&&(Gn=Y,Ki=x,Ir=null);break;case"focusout":Ir=Ki=Gn=null;break;case"mousedown":Qi=!0;break;case"contextmenu":case"mouseup":case"dragend":Qi=!1,Ys(j,n,S);break;case"selectionchange":if(ad)break;case"keydown":case"keyup":Ys(j,n,S)}var J;if(Vi)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else Xn?Os(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(Ls&&n.locale!=="ko"&&(Xn||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&Xn&&(J=_s()):(on=S,Oi="value"in on?on.value:on.textContent,Xn=!0)),Y=Tl(x,Z),0<Y.length&&(Z=new Ps(Z,e,null,n,S),j.push({event:Z,listeners:Y}),J?Z.data=J:(J=Is(n),J!==null&&(Z.data=J)))),(J=Xc?Gc(e,n):Zc(e,n))&&(x=Tl(x,"onBeforeInput"),0<x.length&&(S=new Ps("onBeforeInput","beforeinput",null,n,S),j.push({event:S,listeners:x}),S.data=J))}ra(j,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Tl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=en(e,n),i!=null&&r.unshift($r(e,i,l)),i=en(e,t),i!=null&&r.push($r(e,i,l))),e=e.return}return r}function qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ia(e,t,n,r,l){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,u=a.alternate,x=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&x!==null&&(a=x,l?(u=en(n,i),u!=null&&s.unshift($r(n,u,a))):l||(u=en(n,i),u!=null&&s.push($r(n,u,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var fd=/\r\n?/g,pd=/\u0000|\uFFFD/g;function oa(e){return(typeof e=="string"?e:""+e).replace(fd,`
38
+ `).replace(pd,"")}function Ll(e,t,n){if(t=oa(t),oa(e)!==t&&n)throw Error(c(425))}function Fl(){}var qi=null,eo=null;function to(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 no=typeof setTimeout=="function"?setTimeout:void 0,md=typeof clearTimeout=="function"?clearTimeout:void 0,sa=typeof Promise=="function"?Promise:void 0,hd=typeof queueMicrotask=="function"?queueMicrotask:typeof sa<"u"?function(e){return sa.resolve(null).then(e).catch(xd)}:no;function xd(e){setTimeout(function(){throw e})}function ro(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Mr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Mr(t)}function an(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 aa(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 er=Math.random().toString(36).slice(2),bt="__reactFiber$"+er,Ur="__reactProps$"+er,Wt="__reactContainer$"+er,lo="__reactEvents$"+er,vd="__reactListeners$"+er,yd="__reactHandles$"+er;function Cn(e){var t=e[bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wt]||n[bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=aa(e);e!==null;){if(n=e[bt])return n;e=aa(e)}return t}e=n,n=e.parentNode}return null}function Vr(e){return e=e[bt]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function tr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(c(33))}function bl(e){return e[Ur]||null}var io=[],nr=-1;function un(e){return{current:e}}function Le(e){0>nr||(e.current=io[nr],io[nr]=null,nr--)}function Ce(e,t){nr++,io[nr]=e.current,e.current=t}var cn={},Ze=un(cn),st=un(!1),En=cn;function rr(e,t){var n=e.type.contextTypes;if(!n)return cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function at(e){return e=e.childContextTypes,e!=null}function Ol(){Le(st),Le(Ze)}function ua(e,t,n){if(Ze.current!==cn)throw Error(c(168));Ce(Ze,t),Ce(st,n)}function ca(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(c(108,we(e)||"Unknown",l));return P({},n,r)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,En=Ze.current,Ce(Ze,e),Ce(st,st.current),!0}function da(e,t,n){var r=e.stateNode;if(!r)throw Error(c(169));n?(e=ca(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,Le(st),Le(Ze),Ce(Ze,e)):Le(st),Ce(st,n)}var Kt=null,Dl=!1,oo=!1;function fa(e){Kt===null?Kt=[e]:Kt.push(e)}function gd(e){Dl=!0,fa(e)}function dn(){if(!oo&&Kt!==null){oo=!0;var e=0,t=Se;try{var n=Kt;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Kt=null,Dl=!1}catch(l){throw Kt!==null&&(Kt=Kt.slice(e+1)),ie(zn,dn),l}finally{Se=t,oo=!1}}return null}var lr=[],ir=0,Al=null,$l=0,wt=[],kt=0,_n=null,Qt=1,Yt="";function Rn(e,t){lr[ir++]=$l,lr[ir++]=Al,Al=e,$l=t}function pa(e,t,n){wt[kt++]=Qt,wt[kt++]=Yt,wt[kt++]=_n,_n=e;var r=Qt;e=Yt;var l=32-Et(r)-1;r&=~(1<<l),n+=1;var i=32-Et(t)+l;if(30<i){var s=l-l%5;i=(r&(1<<s)-1).toString(32),r>>=s,l-=s,Qt=1<<32-Et(t)+l|n<<l|r,Yt=i+e}else Qt=1<<i|n<<l|r,Yt=e}function so(e){e.return!==null&&(Rn(e,1),pa(e,1,0))}function ao(e){for(;e===Al;)Al=lr[--ir],lr[ir]=null,$l=lr[--ir],lr[ir]=null;for(;e===_n;)_n=wt[--kt],wt[kt]=null,Yt=wt[--kt],wt[kt]=null,Qt=wt[--kt],wt[kt]=null}var vt=null,yt=null,Fe=!1,Rt=null;function ma(e,t){var n=zt(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 ha(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,vt=e,yt=an(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_n!==null?{id:Qt,overflow:Yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,yt=null,!0):!1;default:return!1}}function uo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function co(e){if(Fe){var t=yt;if(t){var n=t;if(!ha(e,t)){if(uo(e))throw Error(c(418));t=an(n.nextSibling);var r=vt;t&&ha(e,t)?ma(r,n):(e.flags=e.flags&-4097|2,Fe=!1,vt=e)}}else{if(uo(e))throw Error(c(418));e.flags=e.flags&-4097|2,Fe=!1,vt=e}}}function xa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function Ul(e){if(e!==vt)return!1;if(!Fe)return xa(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!to(e.type,e.memoizedProps)),t&&(t=yt)){if(uo(e))throw va(),Error(c(418));for(;t;)ma(e,t),t=an(t.nextSibling)}if(xa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=an(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=vt?an(e.stateNode.nextSibling):null;return!0}function va(){for(var e=yt;e;)e=an(e.nextSibling)}function or(){yt=vt=null,Fe=!1}function fo(e){Rt===null?Rt=[e]:Rt.push(e)}var wd=ee.ReactCurrentBatchConfig;function Hr(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(c(309));var r=n.stateNode}if(!r)throw Error(c(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=l.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(c(284));if(!n._owner)throw Error(c(290,e))}return e}function Vl(e,t){throw e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){var t=e._init;return t(e._payload)}function ga(e){function t(p,d){if(e){var m=p.deletions;m===null?(p.deletions=[d],p.flags|=16):m.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function l(p,d){return p=gn(p,d),p.index=0,p.sibling=null,p}function i(p,d,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<d?(p.flags|=2,d):m):(p.flags|=2,d)):(p.flags|=1048576,d)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,d,m,z){return d===null||d.tag!==6?(d=rs(m,p.mode,z),d.return=p,d):(d=l(d,m),d.return=p,d)}function u(p,d,m,z){var V=m.type;return V===fe?S(p,d,m.props.children,z,m.key):d!==null&&(d.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===Ae&&ya(V)===d.type)?(z=l(d,m.props),z.ref=Hr(p,d,m),z.return=p,z):(z=fi(m.type,m.key,m.props,null,p.mode,z),z.ref=Hr(p,d,m),z.return=p,z)}function x(p,d,m,z){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ls(m,p.mode,z),d.return=p,d):(d=l(d,m.children||[]),d.return=p,d)}function S(p,d,m,z,V){return d===null||d.tag!==7?(d=In(m,p.mode,z,V),d.return=p,d):(d=l(d,m),d.return=p,d)}function j(p,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=rs(""+d,p.mode,m),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ge:return m=fi(d.type,d.key,d.props,null,p.mode,m),m.ref=Hr(p,null,d),m.return=p,m;case K:return d=ls(d,p.mode,m),d.return=p,d;case Ae:var z=d._init;return j(p,z(d._payload),m)}if(qt(d)||Q(d))return d=In(d,p.mode,m,null),d.return=p,d;Vl(p,d)}return null}function k(p,d,m,z){var V=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return V!==null?null:a(p,d,""+m,z);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ge:return m.key===V?u(p,d,m,z):null;case K:return m.key===V?x(p,d,m,z):null;case Ae:return V=m._init,k(p,d,V(m._payload),z)}if(qt(m)||Q(m))return V!==null?null:S(p,d,m,z,null);Vl(p,m)}return null}function L(p,d,m,z,V){if(typeof z=="string"&&z!==""||typeof z=="number")return p=p.get(m)||null,a(d,p,""+z,V);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ge:return p=p.get(z.key===null?m:z.key)||null,u(d,p,z,V);case K:return p=p.get(z.key===null?m:z.key)||null,x(d,p,z,V);case Ae:var Y=z._init;return L(p,d,m,Y(z._payload),V)}if(qt(z)||Q(z))return p=p.get(m)||null,S(d,p,z,V,null);Vl(d,z)}return null}function $(p,d,m,z){for(var V=null,Y=null,J=d,Z=d=0,Qe=null;J!==null&&Z<m.length;Z++){J.index>Z?(Qe=J,J=null):Qe=J.sibling;var ye=k(p,J,m[Z],z);if(ye===null){J===null&&(J=Qe);break}e&&J&&ye.alternate===null&&t(p,J),d=i(ye,d,Z),Y===null?V=ye:Y.sibling=ye,Y=ye,J=Qe}if(Z===m.length)return n(p,J),Fe&&Rn(p,Z),V;if(J===null){for(;Z<m.length;Z++)J=j(p,m[Z],z),J!==null&&(d=i(J,d,Z),Y===null?V=J:Y.sibling=J,Y=J);return Fe&&Rn(p,Z),V}for(J=r(p,J);Z<m.length;Z++)Qe=L(J,p,Z,m[Z],z),Qe!==null&&(e&&Qe.alternate!==null&&J.delete(Qe.key===null?Z:Qe.key),d=i(Qe,d,Z),Y===null?V=Qe:Y.sibling=Qe,Y=Qe);return e&&J.forEach(function(wn){return t(p,wn)}),Fe&&Rn(p,Z),V}function U(p,d,m,z){var V=Q(m);if(typeof V!="function")throw Error(c(150));if(m=V.call(m),m==null)throw Error(c(151));for(var Y=V=null,J=d,Z=d=0,Qe=null,ye=m.next();J!==null&&!ye.done;Z++,ye=m.next()){J.index>Z?(Qe=J,J=null):Qe=J.sibling;var wn=k(p,J,ye.value,z);if(wn===null){J===null&&(J=Qe);break}e&&J&&wn.alternate===null&&t(p,J),d=i(wn,d,Z),Y===null?V=wn:Y.sibling=wn,Y=wn,J=Qe}if(ye.done)return n(p,J),Fe&&Rn(p,Z),V;if(J===null){for(;!ye.done;Z++,ye=m.next())ye=j(p,ye.value,z),ye!==null&&(d=i(ye,d,Z),Y===null?V=ye:Y.sibling=ye,Y=ye);return Fe&&Rn(p,Z),V}for(J=r(p,J);!ye.done;Z++,ye=m.next())ye=L(J,p,Z,ye.value,z),ye!==null&&(e&&ye.alternate!==null&&J.delete(ye.key===null?Z:ye.key),d=i(ye,d,Z),Y===null?V=ye:Y.sibling=ye,Y=ye);return e&&J.forEach(function(qd){return t(p,qd)}),Fe&&Rn(p,Z),V}function Ue(p,d,m,z){if(typeof m=="object"&&m!==null&&m.type===fe&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ge:e:{for(var V=m.key,Y=d;Y!==null;){if(Y.key===V){if(V=m.type,V===fe){if(Y.tag===7){n(p,Y.sibling),d=l(Y,m.props.children),d.return=p,p=d;break e}}else if(Y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===Ae&&ya(V)===Y.type){n(p,Y.sibling),d=l(Y,m.props),d.ref=Hr(p,Y,m),d.return=p,p=d;break e}n(p,Y);break}else t(p,Y);Y=Y.sibling}m.type===fe?(d=In(m.props.children,p.mode,z,m.key),d.return=p,p=d):(z=fi(m.type,m.key,m.props,null,p.mode,z),z.ref=Hr(p,d,m),z.return=p,p=z)}return s(p);case K:e:{for(Y=m.key;d!==null;){if(d.key===Y)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=l(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=ls(m,p.mode,z),d.return=p,p=d}return s(p);case Ae:return Y=m._init,Ue(p,d,Y(m._payload),z)}if(qt(m))return $(p,d,m,z);if(Q(m))return U(p,d,m,z);Vl(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,m),d.return=p,p=d):(n(p,d),d=rs(m,p.mode,z),d.return=p,p=d),s(p)):n(p,d)}return Ue}var sr=ga(!0),wa=ga(!1),Hl=un(null),Bl=null,ar=null,po=null;function mo(){po=ar=Bl=null}function ho(e){var t=Hl.current;Le(Hl),e._currentValue=t}function xo(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 ur(e,t){Bl=e,po=ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ut=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(po!==e)if(e={context:e,memoizedValue:t,next:null},ar===null){if(Bl===null)throw Error(c(308));ar=e,Bl.dependencies={lanes:0,firstContext:e}}else ar=ar.next=e;return t}var Mn=null;function vo(e){Mn===null?Mn=[e]:Mn.push(e)}function ka(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,vo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Jt(e,r)}function Jt(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 fn=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sa(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 pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ve&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Jt(e,n)}return l=r.interleaved,l===null?(t.next=t,vo(r)):(t.next=l.next,l.next=t),r.interleaved=t,Jt(e,n)}function Wl(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,Pi(e,n)}}function ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kl(e,t,n,r){var l=e.updateQueue;fn=!1;var i=l.firstBaseUpdate,s=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,x=u.next;u.next=null,s===null?i=x:s.next=x,s=u;var S=e.alternate;S!==null&&(S=S.updateQueue,a=S.lastBaseUpdate,a!==s&&(a===null?S.firstBaseUpdate=x:a.next=x,S.lastBaseUpdate=u))}if(i!==null){var j=l.baseState;s=0,S=x=u=null,a=i;do{var k=a.lane,L=a.eventTime;if((r&k)===k){S!==null&&(S=S.next={eventTime:L,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var $=e,U=a;switch(k=t,L=n,U.tag){case 1:if($=U.payload,typeof $=="function"){j=$.call(L,j,k);break e}j=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=U.payload,k=typeof $=="function"?$.call(L,j,k):$,k==null)break e;j=P({},j,k);break e;case 2:fn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,k=l.effects,k===null?l.effects=[a]:k.push(a))}else L={eventTime:L,lane:k,tag:a.tag,payload:a.payload,callback:a.callback,next:null},S===null?(x=S=L,u=j):S=S.next=L,s|=k;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;k=a,a=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);if(S===null&&(u=j),l.baseState=u,l.firstBaseUpdate=x,l.lastBaseUpdate=S,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Ln|=s,e.lanes=s,e.memoizedState=j}}function Na(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(c(191,l));l.call(r)}}}var Br={},Ot=un(Br),Wr=un(Br),Kr=un(Br);function Pn(e){if(e===Br)throw Error(c(174));return e}function go(e,t){switch(Ce(Kr,t),Ce(Wr,e),Ce(Ot,Br),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hn(t,e)}Le(Ot),Ce(Ot,t)}function cr(){Le(Ot),Le(Wr),Le(Kr)}function za(e){Pn(Kr.current);var t=Pn(Ot.current),n=Hn(t,e.type);t!==n&&(Ce(Wr,e),Ce(Ot,n))}function wo(e){Wr.current===e&&(Le(Ot),Le(Wr))}var Oe=un(0);function Ql(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ko=[];function So(){for(var e=0;e<ko.length;e++)ko[e]._workInProgressVersionPrimary=null;ko.length=0}var Yl=ee.ReactCurrentDispatcher,jo=ee.ReactCurrentBatchConfig,Tn=0,Ie=null,He=null,We=null,Jl=!1,Qr=!1,Yr=0,kd=0;function qe(){throw Error(c(321))}function No(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function zo(e,t,n,r,l,i){if(Tn=i,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yl.current=e===null||e.memoizedState===null?zd:Cd,e=n(r,l),Qr){i=0;do{if(Qr=!1,Yr=0,25<=i)throw Error(c(301));i+=1,We=He=null,t.updateQueue=null,Yl.current=Ed,e=n(r,l)}while(Qr)}if(Yl.current=Zl,t=He!==null&&He.next!==null,Tn=0,We=He=Ie=null,Jl=!1,t)throw Error(c(300));return e}function Co(){var e=Yr!==0;return Yr=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Ie.memoizedState=We=e:We=We.next=e,We}function jt(){if(He===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?Ie.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw Error(c(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?Ie.memoizedState=We=e:We=We.next=e}return We}function Jr(e,t){return typeof t=="function"?t(e):t}function Eo(e){var t=jt(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var r=He,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var s=l.next;l.next=i.next,i.next=s}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var a=s=null,u=null,x=i;do{var S=x.lane;if((Tn&S)===S)u!==null&&(u=u.next={lane:0,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),r=x.hasEagerState?x.eagerState:e(r,x.action);else{var j={lane:S,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null};u===null?(a=u=j,s=r):u=u.next=j,Ie.lanes|=S,Ln|=S}x=x.next}while(x!==null&&x!==i);u===null?s=r:u.next=a,_t(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Ie.lanes|=i,Ln|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _o(e){var t=jt(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do i=e(i,s.action),s=s.next;while(s!==l);_t(i,t.memoizedState)||(ut=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ca(){}function Ea(e,t){var n=Ie,r=jt(),l=t(),i=!_t(r.memoizedState,l);if(i&&(r.memoizedState=l,ut=!0),r=r.queue,Ro(Ma.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,Xr(9,Ra.bind(null,n,r,l,t),void 0,null),Ke===null)throw Error(c(349));(Tn&30)!==0||_a(n,t,l)}return l}function _a(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ra(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Ta(e)}function Ma(e,t,n){return n(function(){Pa(t)&&Ta(e)})}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function Ta(e){var t=Jt(e,1);t!==null&&Lt(t,e,1,-1)}function La(e){var t=It();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=Nd.bind(null,Ie,e),[t.memoizedState,e]}function Xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.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 Fa(){return jt().memoizedState}function Xl(e,t,n,r){var l=It();Ie.flags|=e,l.memoizedState=Xr(1|t,n,void 0,r===void 0?null:r)}function Gl(e,t,n,r){var l=jt();r=r===void 0?null:r;var i=void 0;if(He!==null){var s=He.memoizedState;if(i=s.destroy,r!==null&&No(r,s.deps)){l.memoizedState=Xr(t,n,i,r);return}}Ie.flags|=e,l.memoizedState=Xr(1|t,n,i,r)}function ba(e,t){return Xl(8390656,8,e,t)}function Ro(e,t){return Gl(2048,8,e,t)}function Oa(e,t){return Gl(4,2,e,t)}function Ia(e,t){return Gl(4,4,e,t)}function Da(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 Aa(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4,4,Da.bind(null,t,e),n)}function Mo(){}function $a(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&No(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&No(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return(Tn&21)===0?(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n):(_t(n,t)||(n=ys(),Ie.lanes|=n,Ln|=n,e.baseState=!0),t)}function Sd(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=jo.transition;jo.transition={};try{e(!1),t()}finally{Se=n,jo.transition=r}}function Ha(){return jt().memoizedState}function jd(e,t,n){var r=vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ba(e))Wa(t,n);else if(n=ka(e,t,n,r),n!==null){var l=lt();Lt(n,e,r,l),Ka(n,t,r)}}function Nd(e,t,n){var r=vn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ba(e))Wa(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(l.hasEagerState=!0,l.eagerState=a,_t(a,s)){var u=t.interleaved;u===null?(l.next=l,vo(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=ka(e,t,l,r),n!==null&&(l=lt(),Lt(n,e,r,l),Ka(n,t,r))}}function Ba(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Wa(e,t){Qr=Jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ka(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pi(e,n)}}var Zl={readContext:St,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},zd={readContext:St,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:ba,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xl(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();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=jd.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:La,useDebugValue:Mo,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Sd.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,l=It();if(Fe){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Ke===null)throw Error(c(349));(Tn&30)!==0||_a(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ba(Ma.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,Ra.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=It(),t=Ke.identifierPrefix;if(Fe){var n=Yt,r=Qt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Cd={readContext:St,useCallback:$a,useContext:St,useEffect:Ro,useImperativeHandle:Aa,useInsertionEffect:Oa,useLayoutEffect:Ia,useMemo:Ua,useReducer:Eo,useRef:Fa,useState:function(){return Eo(Jr)},useDebugValue:Mo,useDeferredValue:function(e){var t=jt();return Va(t,He.memoizedState,e)},useTransition:function(){var e=Eo(Jr)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ha,unstable_isNewReconciler:!1},Ed={readContext:St,useCallback:$a,useContext:St,useEffect:Ro,useImperativeHandle:Aa,useInsertionEffect:Oa,useLayoutEffect:Ia,useMemo:Ua,useReducer:_o,useRef:Fa,useState:function(){return _o(Jr)},useDebugValue:Mo,useDeferredValue:function(e){var t=jt();return He===null?t.memoizedState=e:Va(t,He.memoizedState,e)},useTransition:function(){var e=_o(Jr)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ha,unstable_isNewReconciler:!1};function Mt(e,t){if(e&&e.defaultProps){t=P({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Po(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:P({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ql={isMounted:function(e){return(e=e._reactInternals)?Bt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),l=vn(e),i=Xt(r,l);i.payload=t,n!=null&&(i.callback=n),t=pn(e,i,l),t!==null&&(Lt(t,e,l,r),Wl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),l=vn(e),i=Xt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=pn(e,i,l),t!==null&&(Lt(t,e,l,r),Wl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=vn(e),l=Xt(n,r);l.tag=2,t!=null&&(l.callback=t),t=pn(e,l,r),t!==null&&(Lt(t,e,r,n),Wl(t,e,r))}};function Qa(e,t,n,r,l,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Or(n,r)||!Or(l,i):!0}function Ya(e,t,n){var r=!1,l=cn,i=t.contextType;return typeof i=="object"&&i!==null?i=St(i):(l=at(t)?En:Ze.current,r=t.contextTypes,i=(r=r!=null)?rr(e,l):cn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ql,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ja(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&&ql.enqueueReplaceState(t,t.state,null)}function To(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},yo(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=St(i):(i=at(t)?En:Ze.current,l.context=rr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Po(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&ql.enqueueReplaceState(l,l.state,null),Kl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function dr(e,t){try{var n="",r=t;do n+=pe(r),r=r.return;while(r);var l=n}catch(i){l=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:l,digest:null}}function Lo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _d=typeof WeakMap=="function"?WeakMap:Map;function Xa(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oi||(oi=!0,Jo=r),Fo(e,t)},n}function Ga(e,t,n){n=Xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Fo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Fo(e,t),typeof r!="function"&&(hn===null?hn=new Set([this]):hn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _d;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Vd.bind(null,e,t,n),t.then(e,e))}function qa(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 eu(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,pn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Rd=ee.ReactCurrentOwner,ut=!1;function rt(e,t,n,r){t.child=e===null?wa(t,null,n,r):sr(t,e.child,n,r)}function tu(e,t,n,r,l){n=n.render;var i=t.ref;return ur(t,l),r=zo(e,t,n,r,i,l),n=Co(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Gt(e,t,l)):(Fe&&n&&so(t),t.flags|=1,rt(e,t,r,l),t.child)}function nu(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!ns(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ru(e,t,i,r,l)):(e=fi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(s,r)&&e.ref===t.ref)return Gt(e,t,l)}return t.flags|=1,e=gn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ru(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Or(i,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,Gt(e,t,l)}return bo(e,t,n,r,l)}function lu(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(pr,gt),gt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(pr,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ce(pr,gt),gt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ce(pr,gt),gt|=r;return rt(e,t,l,n),t.child}function iu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bo(e,t,n,r,l){var i=at(n)?En:Ze.current;return i=rr(t,i),ur(t,l),n=zo(e,t,n,r,i,l),r=Co(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Gt(e,t,l)):(Fe&&r&&so(t),t.flags|=1,rt(e,t,n,l),t.child)}function ou(e,t,n,r,l){if(at(n)){var i=!0;Il(t)}else i=!1;if(ur(t,l),t.stateNode===null)ti(e,t),Ya(t,n,r),To(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,x=n.contextType;typeof x=="object"&&x!==null?x=St(x):(x=at(n)?En:Ze.current,x=rr(t,x));var S=n.getDerivedStateFromProps,j=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function";j||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==x)&&Ja(t,s,r,x),fn=!1;var k=t.memoizedState;s.state=k,Kl(t,r,s,l),u=t.memoizedState,a!==r||k!==u||st.current||fn?(typeof S=="function"&&(Po(t,n,S,r),u=t.memoizedState),(a=fn||Qa(t,n,a,r,k,u,x))?(j||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=x,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Sa(e,t),a=t.memoizedProps,x=t.type===t.elementType?a:Mt(t.type,a),s.props=x,j=t.pendingProps,k=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=St(u):(u=at(n)?En:Ze.current,u=rr(t,u));var L=n.getDerivedStateFromProps;(S=typeof L=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==j||k!==u)&&Ja(t,s,r,u),fn=!1,k=t.memoizedState,s.state=k,Kl(t,r,s,l);var $=t.memoizedState;a!==j||k!==$||st.current||fn?(typeof L=="function"&&(Po(t,n,L,r),$=t.memoizedState),(x=fn||Qa(t,n,x,r,k,$,u)||!1)?(S||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,$,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,$,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=$),s.props=r,s.state=$,s.context=u,r=x):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return Oo(e,t,n,r,i,l)}function Oo(e,t,n,r,l,i){iu(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&da(t,n,!1),Gt(e,t,i);r=t.stateNode,Rd.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=sr(t,e.child,null,i),t.child=sr(t,null,a,i)):rt(e,t,a,i),t.memoizedState=r.state,l&&da(t,n,!0),t.child}function su(e){var t=e.stateNode;t.pendingContext?ua(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ua(e,t.context,!1),go(e,t.containerInfo)}function au(e,t,n,r,l){return or(),fo(l),t.flags|=256,rt(e,t,n,r),t.child}var Io={dehydrated:null,treeContext:null,retryLane:0};function Do(e){return{baseLanes:e,cachePool:null,transitions:null}}function uu(e,t,n){var r=t.pendingProps,l=Oe.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ce(Oe,l&1),e===null)return co(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=pi(s,r,0,null),e=In(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Do(n),t.memoizedState=Io,e):Ao(t,s));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Md(e,t,s,r,a,l,n);if(i){i=r.fallback,s=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=gn(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?i=gn(a,i):(i=In(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Do(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Io,r}return i=e.child,e=i.sibling,r=gn(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ao(e,t){return t=pi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ei(e,t,n,r){return r!==null&&fo(r),sr(t,e.child,null,n),e=Ao(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Md(e,t,n,r,l,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Lo(Error(c(422))),ei(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=pi({mode:"visible",children:r.children},l,0,null),i=In(i,l,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&sr(t,e.child,null,s),t.child.memoizedState=Do(s),t.memoizedState=Io,i);if((t.mode&1)===0)return ei(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(c(419)),r=Lo(i,r,void 0),ei(e,t,s,r)}if(a=(s&e.childLanes)!==0,ut||a){if(r=Ke,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|s))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Jt(e,l),Lt(r,e,l,-1))}return ts(),r=Lo(Error(c(421))),ei(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Hd.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,yt=an(l.nextSibling),vt=t,Fe=!0,Rt=null,e!==null&&(wt[kt++]=Qt,wt[kt++]=Yt,wt[kt++]=_n,Qt=e.id,Yt=e.overflow,_n=t),t=Ao(t,r.children),t.flags|=4096,t)}function cu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xo(e.return,t,n)}function $o(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function du(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(rt(e,t,r.children,n),r=Oe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cu(e,n,t);else if(e.tag===19)cu(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(Ce(Oe,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ql(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),$o(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ql(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}$o(t,!0,n,null,i);break;case"together":$o(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ti(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pd(e,t,n){switch(t.tag){case 3:su(t),or();break;case 5:za(t);break;case 1:at(t.type)&&Il(t);break;case 4:go(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Ce(Hl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Oe,Oe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?uu(e,t,n):(Ce(Oe,Oe.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);Ce(Oe,Oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return du(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(Oe,Oe.current),r)break;return null;case 22:case 23:return t.lanes=0,lu(e,t,n)}return Gt(e,t,n)}var fu,Uo,pu,mu;fu=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}},Uo=function(){},pu=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Pn(Ot.current);var i=null;switch(n){case"input":l=An(e,l),r=An(e,r),i=[];break;case"select":l=P({},l,{value:void 0}),r=P({},r,{value:void 0}),i=[];break;case"textarea":l=jn(e,l),r=jn(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fl)}mt(n,r);var s;n=null;for(x in l)if(!r.hasOwnProperty(x)&&l.hasOwnProperty(x)&&l[x]!=null)if(x==="style"){var a=l[x];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else x!=="dangerouslySetInnerHTML"&&x!=="children"&&x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(h.hasOwnProperty(x)?i||(i=[]):(i=i||[]).push(x,null));for(x in r){var u=r[x];if(a=l!=null?l[x]:void 0,r.hasOwnProperty(x)&&u!==a&&(u!=null||a!=null))if(x==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(i||(i=[]),i.push(x,n)),n=u;else x==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(x,u)):x==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(x,""+u):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&(h.hasOwnProperty(x)?(u!=null&&x==="onScroll"&&Te("scroll",e),i||a===u||(i=[])):(i=i||[]).push(x,u))}n&&(i=i||[]).push("style",n);var x=i;(t.updateQueue=x)&&(t.flags|=4)}},mu=function(e,t,n,r){n!==r&&(t.flags|=4)};function Gr(e,t){if(!Fe)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 et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Td(e,t,n){var r=t.pendingProps;switch(ao(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return at(t.type)&&Ol(),et(t),null;case 3:return r=t.stateNode,cr(),Le(st),Le(Ze),So(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ul(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rt!==null&&(Zo(Rt),Rt=null))),Uo(e,t),et(t),null;case 5:wo(t);var l=Pn(Kr.current);if(n=t.type,e!==null&&t.stateNode!=null)pu(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(c(166));return et(t),null}if(e=Pn(Ot.current),Ul(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[bt]=t,r[Ur]=i,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(l=0;l<Dr.length;l++)Te(Dr[l],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":sl(r,i),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Te("invalid",r);break;case"textarea":Un(r,i),Te("invalid",r)}mt(n,i),l=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ll(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ll(r.textContent,a,e),l=["children",""+a]):h.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Te("scroll",r)}switch(n){case"input":Dn(r),al(r,i,!0);break;case"textarea":Dn(r),Vn(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Fl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xr(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[bt]=t,e[Ur]=r,fu(e,t,!1,!1),t.stateNode=e;e:{switch(s=Re(n,r),n){case"dialog":Te("cancel",e),Te("close",e),l=r;break;case"iframe":case"object":case"embed":Te("load",e),l=r;break;case"video":case"audio":for(l=0;l<Dr.length;l++)Te(Dr[l],e);l=r;break;case"source":Te("error",e),l=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),l=r;break;case"details":Te("toggle",e),l=r;break;case"input":sl(e,r),l=An(e,r),Te("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=P({},r,{value:void 0}),Te("invalid",e);break;case"textarea":Un(e,r),l=jn(e,r),Te("invalid",e);break;default:l=r}mt(n,l),a=l;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?xe(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&nt(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&pt(e,u):typeof u=="number"&&pt(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(h.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Te("scroll",e):u!=null&&H(e,i,u,s))}switch(n){case"input":Dn(e),al(e,r,!1);break;case"textarea":Dn(e),Vn(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ke(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?it(e,!!r.multiple,i,!1):r.defaultValue!=null&&it(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Fl)}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 et(t),null;case 6:if(e&&t.stateNode!=null)mu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(c(166));if(n=Pn(Kr.current),Pn(Ot.current),Ul(t)){if(r=t.stateNode,n=t.memoizedProps,r[bt]=t,(i=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:Ll(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ll(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[bt]=t,t.stateNode=r}return et(t),null;case 13:if(Le(Oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&yt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)va(),or(),t.flags|=98560,i=!1;else if(i=Ul(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[bt]=t}else or(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),i=!1}else Rt!==null&&(Zo(Rt),Rt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Oe.current&1)!==0?Be===0&&(Be=3):ts())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return cr(),Uo(e,t),e===null&&Ar(t.stateNode.containerInfo),et(t),null;case 10:return ho(t.type._context),et(t),null;case 17:return at(t.type)&&Ol(),et(t),null;case 19:if(Le(Oe),i=t.memoizedState,i===null)return et(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Gr(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ql(e),s!==null){for(t.flags|=128,Gr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Oe,Oe.current&1|2),t.child}e=e.sibling}i.tail!==null&&be()>mr&&(t.flags|=128,r=!0,Gr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ql(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Fe)return et(t),null}else 2*be()-i.renderingStartTime>mr&&n!==1073741824&&(t.flags|=128,r=!0,Gr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=Oe.current,Ce(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return es(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(gt&1073741824)!==0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(c(156,t.tag))}function Ld(e,t){switch(ao(t),t.tag){case 1:return at(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cr(),Le(st),Le(Ze),So(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wo(t),null;case 13:if(Le(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(Oe),null;case 4:return cr(),null;case 10:return ho(t.type._context),null;case 22:case 23:return es(),null;case 24:return null;default:return null}}var ni=!1,tt=!1,Fd=typeof WeakSet=="function"?WeakSet:Set,I=null;function fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function Vo(e,t,n){try{n()}catch(r){$e(e,t,r)}}var hu=!1;function bd(e,t){if(qi=Sl,e=Qs(),Wi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,x=0,S=0,j=e,k=null;t:for(;;){for(var L;j!==n||l!==0&&j.nodeType!==3||(a=s+l),j!==i||r!==0&&j.nodeType!==3||(u=s+r),j.nodeType===3&&(s+=j.nodeValue.length),(L=j.firstChild)!==null;)k=j,j=L;for(;;){if(j===e)break t;if(k===n&&++x===l&&(a=s),k===i&&++S===r&&(u=s),(L=j.nextSibling)!==null)break;j=k,k=j.parentNode}j=L}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(eo={focusedElem:e,selectionRange:n},Sl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var $=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var U=$.memoizedProps,Ue=$.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?U:Mt(t.type,U),Ue);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(c(163))}}catch(z){$e(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return $=hu,hu=!1,$}function Zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Vo(t,n,i)}l=l.next}while(l!==r)}}function ri(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 Ho(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 xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[Ur],delete t[lo],delete t[vd],delete t[yd])),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 vu(e){return e.tag===5||e.tag===3||e.tag===4}function yu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vu(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 Bo(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=Fl));else if(r!==4&&(e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}function Wo(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(Wo(e,t,n),e=e.sibling;e!==null;)Wo(e,t,n),e=e.sibling}var Je=null,Pt=!1;function mn(e,t,n){for(n=n.child;n!==null;)gu(e,t,n),n=n.sibling}function gu(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:tt||fr(n,t);case 6:var r=Je,l=Pt;Je=null,mn(e,t,n),Je=r,Pt=l,Je!==null&&(Pt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(Pt?(e=Je,n=n.stateNode,e.nodeType===8?ro(e.parentNode,n):e.nodeType===1&&ro(e,n),Mr(e)):ro(Je,n.stateNode));break;case 4:r=Je,l=Pt,Je=n.stateNode.containerInfo,Pt=!0,mn(e,t,n),Je=r,Pt=l;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&Vo(n,t,s),l=l.next}while(l!==r)}mn(e,t,n);break;case 1:if(!tt&&(fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,mn(e,t,n),tt=r):mn(e,t,n);break;default:mn(e,t,n)}}function wu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fd),t.forEach(function(r){var l=Bd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Je=a.stateNode,Pt=!1;break e;case 3:Je=a.stateNode.containerInfo,Pt=!0;break e;case 4:Je=a.stateNode.containerInfo,Pt=!0;break e}a=a.return}if(Je===null)throw Error(c(160));gu(i,s,l),Je=null,Pt=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(x){$e(l,t,x)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ku(t,e),t=t.sibling}function ku(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),Dt(e),r&4){try{Zr(3,e,e.return),ri(3,e)}catch(U){$e(e,e.return,U)}try{Zr(5,e,e.return)}catch(U){$e(e,e.return,U)}}break;case 1:Tt(t,e),Dt(e),r&512&&n!==null&&fr(n,n.return);break;case 5:if(Tt(t,e),Dt(e),r&512&&n!==null&&fr(n,n.return),e.flags&32){var l=e.stateNode;try{pt(l,"")}catch(U){$e(e,e.return,U)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&kn(l,i),Re(a,s);var x=Re(a,i);for(s=0;s<u.length;s+=2){var S=u[s],j=u[s+1];S==="style"?xe(l,j):S==="dangerouslySetInnerHTML"?nt(l,j):S==="children"?pt(l,j):H(l,S,j,x)}switch(a){case"input":$n(l,i);break;case"textarea":ul(l,i);break;case"select":var k=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var L=i.value;L!=null?it(l,!!i.multiple,L,!1):k!==!!i.multiple&&(i.defaultValue!=null?it(l,!!i.multiple,i.defaultValue,!0):it(l,!!i.multiple,i.multiple?[]:"",!1))}l[Ur]=i}catch(U){$e(e,e.return,U)}}break;case 6:if(Tt(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(c(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(U){$e(e,e.return,U)}}break;case 3:if(Tt(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Mr(t.containerInfo)}catch(U){$e(e,e.return,U)}break;case 4:Tt(t,e),Dt(e);break;case 13:Tt(t,e),Dt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Yo=be())),r&4&&wu(e);break;case 22:if(S=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(x=tt)||S,Tt(t,e),tt=x):Tt(t,e),Dt(e),r&8192){if(x=e.memoizedState!==null,(e.stateNode.isHidden=x)&&!S&&(e.mode&1)!==0)for(I=e,S=e.child;S!==null;){for(j=I=S;I!==null;){switch(k=I,L=k.child,k.tag){case 0:case 11:case 14:case 15:Zr(4,k,k.return);break;case 1:fr(k,k.return);var $=k.stateNode;if(typeof $.componentWillUnmount=="function"){r=k,n=k.return;try{t=r,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(U){$e(r,n,U)}}break;case 5:fr(k,k.return);break;case 22:if(k.memoizedState!==null){Nu(j);continue}}L!==null?(L.return=k,I=L):Nu(j)}S=S.sibling}e:for(S=null,j=e;;){if(j.tag===5){if(S===null){S=j;try{l=j.stateNode,x?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=j.stateNode,u=j.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=vr("display",s))}catch(U){$e(e,e.return,U)}}}else if(j.tag===6){if(S===null)try{j.stateNode.nodeValue=x?"":j.memoizedProps}catch(U){$e(e,e.return,U)}}else if((j.tag!==22&&j.tag!==23||j.memoizedState===null||j===e)&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===e)break e;for(;j.sibling===null;){if(j.return===null||j.return===e)break e;S===j&&(S=null),j=j.return}S===j&&(S=null),j.sibling.return=j.return,j=j.sibling}}break;case 19:Tt(t,e),Dt(e),r&4&&wu(e);break;case 21:break;default:Tt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vu(n)){var r=n;break e}n=n.return}throw Error(c(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(pt(l,""),r.flags&=-33);var i=yu(e);Wo(e,i,l);break;case 3:case 4:var s=r.stateNode.containerInfo,a=yu(e);Bo(e,a,s);break;default:throw Error(c(161))}}catch(u){$e(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Od(e,t,n){I=e,Su(e)}function Su(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var l=I,i=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||ni;if(!s){var a=l.alternate,u=a!==null&&a.memoizedState!==null||tt;a=ni;var x=tt;if(ni=s,(tt=u)&&!x)for(I=l;I!==null;)s=I,u=s.child,s.tag===22&&s.memoizedState!==null?zu(l):u!==null?(u.return=s,I=u):zu(l);for(;i!==null;)I=i,Su(i),i=i.sibling;I=l,ni=a,tt=x}ju(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,I=i):ju(e)}}function ju(e){for(;I!==null;){var t=I;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:tt||ri(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Mt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Na(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Na(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var x=t.alternate;if(x!==null){var S=x.memoizedState;if(S!==null){var j=S.dehydrated;j!==null&&Mr(j)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(c(163))}tt||t.flags&512&&Ho(t)}catch(k){$e(t,t.return,k)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Nu(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function zu(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ri(4,t)}catch(u){$e(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){$e(t,l,u)}}var i=t.return;try{Ho(t)}catch(u){$e(t,i,u)}break;case 5:var s=t.return;try{Ho(t)}catch(u){$e(t,s,u)}}}catch(u){$e(t,t.return,u)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var Id=Math.ceil,li=ee.ReactCurrentDispatcher,Ko=ee.ReactCurrentOwner,Nt=ee.ReactCurrentBatchConfig,ve=0,Ke=null,Ve=null,Xe=0,gt=0,pr=un(0),Be=0,qr=null,Ln=0,ii=0,Qo=0,el=null,ct=null,Yo=0,mr=1/0,Zt=null,oi=!1,Jo=null,hn=null,si=!1,xn=null,ai=0,tl=0,Xo=null,ui=-1,ci=0;function lt(){return(ve&6)!==0?be():ui!==-1?ui:ui=be()}function vn(e){return(e.mode&1)===0?1:(ve&2)!==0&&Xe!==0?Xe&-Xe:wd.transition!==null?(ci===0&&(ci=ys()),ci):(e=Se,e!==0||(e=window.event,e=e===void 0?16:Es(e.type)),e)}function Lt(e,t,n,r){if(50<tl)throw tl=0,Xo=null,Error(c(185));zr(e,n,r),((ve&2)===0||e!==Ke)&&(e===Ke&&((ve&2)===0&&(ii|=n),Be===4&&yn(e,Xe)),dt(e,r),n===1&&ve===0&&(t.mode&1)===0&&(mr=be()+500,Dl&&dn()))}function dt(e,t){var n=e.callbackNode;wc(e,t);var r=gl(e,e===Ke?Xe:0);if(r===0)n!==null&&Pe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pe(n),t===1)e.tag===0?gd(Eu.bind(null,e)):fa(Eu.bind(null,e)),hd(function(){(ve&6)===0&&dn()}),n=null;else{switch(gs(r)){case 1:n=zn;break;case 4:n=Kn;break;case 16:n=Qn;break;case 536870912:n=vs;break;default:n=Qn}n=bu(n,Cu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cu(e,t){if(ui=-1,ci=0,(ve&6)!==0)throw Error(c(327));var n=e.callbackNode;if(hr()&&e.callbackNode!==n)return null;var r=gl(e,e===Ke?Xe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=di(e,r);else{t=r;var l=ve;ve|=2;var i=Ru();(Ke!==e||Xe!==t)&&(Zt=null,mr=be()+500,bn(e,t));do try{$d();break}catch(a){_u(e,a)}while(!0);mo(),li.current=i,ve=l,Ve!==null?t=0:(Ke=null,Xe=0,t=Be)}if(t!==0){if(t===2&&(l=Ri(e),l!==0&&(r=l,t=Go(e,l))),t===1)throw n=qr,bn(e,0),yn(e,r),dt(e,be()),n;if(t===6)yn(e,r);else{if(l=e.current.alternate,(r&30)===0&&!Dd(l)&&(t=di(e,r),t===2&&(i=Ri(e),i!==0&&(r=i,t=Go(e,i))),t===1))throw n=qr,bn(e,0),yn(e,r),dt(e,be()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(c(345));case 2:On(e,ct,Zt);break;case 3:if(yn(e,r),(r&130023424)===r&&(t=Yo+500-be(),10<t)){if(gl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=no(On.bind(null,e,ct,Zt),t);break}On(e,ct,Zt);break;case 4:if(yn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Et(r);i=1<<s,s=t[s],s>l&&(l=s),r&=~i}if(r=l,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Id(r/1960))-r,10<r){e.timeoutHandle=no(On.bind(null,e,ct,Zt),r);break}On(e,ct,Zt);break;case 5:On(e,ct,Zt);break;default:throw Error(c(329))}}}return dt(e,be()),e.callbackNode===n?Cu.bind(null,e):null}function Go(e,t){var n=el;return e.current.memoizedState.isDehydrated&&(bn(e,t).flags|=256),e=di(e,t),e!==2&&(t=ct,ct=n,t!==null&&Zo(t)),e}function Zo(e){ct===null?ct=e:ct.push.apply(ct,e)}function Dd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!_t(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yn(e,t){for(t&=~Qo,t&=~ii,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Eu(e){if((ve&6)!==0)throw Error(c(327));hr();var t=gl(e,0);if((t&1)===0)return dt(e,be()),null;var n=di(e,t);if(e.tag!==0&&n===2){var r=Ri(e);r!==0&&(t=r,n=Go(e,r))}if(n===1)throw n=qr,bn(e,0),yn(e,t),dt(e,be()),n;if(n===6)throw Error(c(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,On(e,ct,Zt),dt(e,be()),null}function qo(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(mr=be()+500,Dl&&dn())}}function Fn(e){xn!==null&&xn.tag===0&&(ve&6)===0&&hr();var t=ve;ve|=1;var n=Nt.transition,r=Se;try{if(Nt.transition=null,Se=1,e)return e()}finally{Se=r,Nt.transition=n,ve=t,(ve&6)===0&&dn()}}function es(){gt=pr.current,Le(pr)}function bn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,md(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(ao(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ol();break;case 3:cr(),Le(st),Le(Ze),So();break;case 5:wo(r);break;case 4:cr();break;case 13:Le(Oe);break;case 19:Le(Oe);break;case 10:ho(r.type._context);break;case 22:case 23:es()}n=n.return}if(Ke=e,Ve=e=gn(e.current,null),Xe=gt=t,Be=0,qr=null,Qo=ii=Ln=0,ct=el=null,Mn!==null){for(t=0;t<Mn.length;t++)if(n=Mn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=l,r.next=s}n.pending=r}Mn=null}return e}function _u(e,t){do{var n=Ve;try{if(mo(),Yl.current=Zl,Jl){for(var r=Ie.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Jl=!1}if(Tn=0,We=He=Ie=null,Qr=!1,Yr=0,Ko.current=null,n===null||n.return===null){Be=1,qr=t,Ve=null;break}e:{var i=e,s=n.return,a=n,u=t;if(t=Xe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var x=u,S=a,j=S.tag;if((S.mode&1)===0&&(j===0||j===11||j===15)){var k=S.alternate;k?(S.updateQueue=k.updateQueue,S.memoizedState=k.memoizedState,S.lanes=k.lanes):(S.updateQueue=null,S.memoizedState=null)}var L=qa(s);if(L!==null){L.flags&=-257,eu(L,s,a,i,t),L.mode&1&&Za(i,x,t),t=L,u=x;var $=t.updateQueue;if($===null){var U=new Set;U.add(u),t.updateQueue=U}else $.add(u);break e}else{if((t&1)===0){Za(i,x,t),ts();break e}u=Error(c(426))}}else if(Fe&&a.mode&1){var Ue=qa(s);if(Ue!==null){(Ue.flags&65536)===0&&(Ue.flags|=256),eu(Ue,s,a,i,t),fo(dr(u,a));break e}}i=u=dr(u,a),Be!==4&&(Be=2),el===null?el=[i]:el.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=Xa(i,u,t);ja(i,p);break e;case 1:a=u;var d=i.type,m=i.stateNode;if((i.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(hn===null||!hn.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var z=Ga(i,a,t);ja(i,z);break e}}i=i.return}while(i!==null)}Pu(n)}catch(V){t=V,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function Ru(){var e=li.current;return li.current=Zl,e===null?Zl:e}function ts(){(Be===0||Be===3||Be===2)&&(Be=4),Ke===null||(Ln&268435455)===0&&(ii&268435455)===0||yn(Ke,Xe)}function di(e,t){var n=ve;ve|=2;var r=Ru();(Ke!==e||Xe!==t)&&(Zt=null,bn(e,t));do try{Ad();break}catch(l){_u(e,l)}while(!0);if(mo(),ve=n,li.current=r,Ve!==null)throw Error(c(261));return Ke=null,Xe=0,Be}function Ad(){for(;Ve!==null;)Mu(Ve)}function $d(){for(;Ve!==null&&!Ct();)Mu(Ve)}function Mu(e){var t=Fu(e.alternate,e,gt);e.memoizedProps=e.pendingProps,t===null?Pu(e):Ve=t,Ko.current=null}function Pu(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Td(n,t,gt),n!==null){Ve=n;return}}else{if(n=Ld(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,Ve=null;return}}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Be===0&&(Be=5)}function On(e,t,n){var r=Se,l=Nt.transition;try{Nt.transition=null,Se=1,Ud(e,t,n,r)}finally{Nt.transition=l,Se=r}return null}function Ud(e,t,n,r){do hr();while(xn!==null);if((ve&6)!==0)throw Error(c(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(c(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(kc(e,i),e===Ke&&(Ve=Ke=null,Xe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||si||(si=!0,bu(Qn,function(){return hr(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Nt.transition,Nt.transition=null;var s=Se;Se=1;var a=ve;ve|=4,Ko.current=null,bd(e,n),ku(n,e),sd(eo),Sl=!!qi,eo=qi=null,e.current=n,Od(n),hl(),ve=a,Se=s,Nt.transition=i}else e.current=n;if(si&&(si=!1,xn=e,ai=l),i=e.pendingLanes,i===0&&(hn=null),hc(n.stateNode),dt(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(oi)throw oi=!1,e=Jo,Jo=null,e;return(ai&1)!==0&&e.tag!==0&&hr(),i=e.pendingLanes,(i&1)!==0?e===Xo?tl++:(tl=0,Xo=e):tl=0,dn(),null}function hr(){if(xn!==null){var e=gs(ai),t=Nt.transition,n=Se;try{if(Nt.transition=null,Se=16>e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,ai=0,(ve&6)!==0)throw Error(c(331));var l=ve;for(ve|=4,I=e.current;I!==null;){var i=I,s=i.child;if((I.flags&16)!==0){var a=i.deletions;if(a!==null){for(var u=0;u<a.length;u++){var x=a[u];for(I=x;I!==null;){var S=I;switch(S.tag){case 0:case 11:case 15:Zr(8,S,i)}var j=S.child;if(j!==null)j.return=S,I=j;else for(;I!==null;){S=I;var k=S.sibling,L=S.return;if(xu(S),S===x){I=null;break}if(k!==null){k.return=L,I=k;break}I=L}}}var $=i.alternate;if($!==null){var U=$.child;if(U!==null){$.child=null;do{var Ue=U.sibling;U.sibling=null,U=Ue}while(U!==null)}}I=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,I=s;else e:for(;I!==null;){if(i=I,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Zr(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,I=p;break e}I=i.return}}var d=e.current;for(I=d;I!==null;){s=I;var m=s.child;if((s.subtreeFlags&2064)!==0&&m!==null)m.return=s,I=m;else e:for(s=d;I!==null;){if(a=I,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:ri(9,a)}}catch(V){$e(a,a.return,V)}if(a===s){I=null;break e}var z=a.sibling;if(z!==null){z.return=a.return,I=z;break e}I=a.return}}if(ve=l,dn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(xl,e)}catch{}r=!0}return r}finally{Se=n,Nt.transition=t}}return!1}function Tu(e,t,n){t=dr(n,t),t=Xa(e,t,1),e=pn(e,t,1),t=lt(),e!==null&&(zr(e,1,t),dt(e,t))}function $e(e,t,n){if(e.tag===3)Tu(e,e,n);else for(;t!==null;){if(t.tag===3){Tu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hn===null||!hn.has(r))){e=dr(n,e),e=Ga(t,e,1),t=pn(t,e,1),e=lt(),t!==null&&(zr(t,1,e),dt(t,e));break}}t=t.return}}function Vd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,Ke===e&&(Xe&n)===n&&(Be===4||Be===3&&(Xe&130023424)===Xe&&500>be()-Yo?bn(e,0):Qo|=n),dt(e,t)}function Lu(e,t){t===0&&((e.mode&1)===0?t=1:(t=yl,yl<<=1,(yl&130023424)===0&&(yl=4194304)));var n=lt();e=Jt(e,t),e!==null&&(zr(e,t,n),dt(e,n))}function Hd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lu(e,n)}function Bd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(c(314))}r!==null&&r.delete(t),Lu(e,n)}var Fu;Fu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)ut=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ut=!1,Pd(e,t,n);ut=(e.flags&131072)!==0}else ut=!1,Fe&&(t.flags&1048576)!==0&&pa(t,$l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ti(e,t),e=t.pendingProps;var l=rr(t,Ze.current);ur(t,n),l=zo(null,t,r,e,l,n);var i=Co();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(i=!0,Il(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,yo(t),l.updater=ql,t.stateNode=l,l._reactInternals=t,To(t,r,e,n),t=Oo(null,t,r,!0,i,n)):(t.tag=0,Fe&&i&&so(t),rt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ti(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Kd(r),e=Mt(r,e),l){case 0:t=bo(null,t,r,e,n);break e;case 1:t=ou(null,t,r,e,n);break e;case 11:t=tu(null,t,r,e,n);break e;case 14:t=nu(null,t,r,Mt(r.type,e),n);break e}throw Error(c(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Mt(r,l),bo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Mt(r,l),ou(e,t,r,l,n);case 3:e:{if(su(t),e===null)throw Error(c(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Sa(e,t),Kl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=dr(Error(c(423)),t),t=au(e,t,r,n,l);break e}else if(r!==l){l=dr(Error(c(424)),t),t=au(e,t,r,n,l);break e}else for(yt=an(t.stateNode.containerInfo.firstChild),vt=t,Fe=!0,Rt=null,n=wa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===l){t=Gt(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return za(t),e===null&&co(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,s=l.children,to(r,l)?s=null:i!==null&&to(r,i)&&(t.flags|=32),iu(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&co(t),null;case 13:return uu(e,t,n);case 4:return go(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sr(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Mt(r,l),tu(e,t,r,l,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,s=l.value,Ce(Hl,r._currentValue),r._currentValue=s,i!==null)if(_t(i.value,s)){if(i.children===l.children&&!st.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Xt(-1,n&-n),u.tag=2;var x=i.updateQueue;if(x!==null){x=x.shared;var S=x.pending;S===null?u.next=u:(u.next=S.next,S.next=u),x.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),xo(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(c(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),xo(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,ur(t,n),l=St(l),r=r(l),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,l=Mt(r,t.pendingProps),l=Mt(r.type,l),nu(e,t,r,l,n);case 15:return ru(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Mt(r,l),ti(e,t),t.tag=1,at(r)?(e=!0,Il(t)):e=!1,ur(t,n),Ya(t,r,l),To(t,r,l,n),Oo(null,t,r,!0,e,n);case 19:return du(e,t,n);case 22:return lu(e,t,n)}throw Error(c(156,t.tag))};function bu(e,t){return ie(e,t)}function Wd(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 zt(e,t,n,r){return new Wd(e,t,n,r)}function ns(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kd(e){if(typeof e=="function")return ns(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_e)return 11;if(e===he)return 14}return 2}function gn(e,t){var n=e.alternate;return n===null?(n=zt(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 fi(e,t,n,r,l,i){var s=2;if(r=e,typeof e=="function")ns(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fe:return In(n.children,l,i,t);case Ee:s=8,l|=8;break;case Ge:return e=zt(12,n,t,l|2),e.elementType=Ge,e.lanes=i,e;case je:return e=zt(13,n,t,l),e.elementType=je,e.lanes=i,e;case De:return e=zt(19,n,t,l),e.elementType=De,e.lanes=i,e;case Ne:return pi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:s=10;break e;case de:s=9;break e;case _e:s=11;break e;case he:s=14;break e;case Ae:s=16,r=null;break e}throw Error(c(130,e==null?e:typeof e,""))}return t=zt(s,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function In(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function pi(e,t,n,r){return e=zt(22,e,r,t),e.elementType=Ne,e.lanes=n,e.stateNode={isHidden:!1},e}function rs(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function ls(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mi(0),this.expirationTimes=Mi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function is(e,t,n,r,l,i,s,a,u){return e=new Qd(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yo(i),e}function Yd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ou(e){if(!e)return cn;e=e._reactInternals;e:{if(Bt(e)!==e||e.tag!==1)throw Error(c(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(c(171))}if(e.tag===1){var n=e.type;if(at(n))return ca(e,n,t)}return t}function Iu(e,t,n,r,l,i,s,a,u){return e=is(n,r,!0,e,l,i,s,a,u),e.context=Ou(null),n=e.current,r=lt(),l=vn(n),i=Xt(r,l),i.callback=t??null,pn(n,i,l),e.current.lanes=l,zr(e,l,r),dt(e,r),e}function mi(e,t,n,r){var l=t.current,i=lt(),s=vn(l);return n=Ou(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pn(l,t,s),e!==null&&(Lt(e,l,s,i),Wl(e,l,s)),s}function hi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Du(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function os(e,t){Du(e,t),(e=e.alternate)&&Du(e,t)}function Jd(){return null}var Au=typeof reportError=="function"?reportError:function(e){console.error(e)};function ss(e){this._internalRoot=e}xi.prototype.render=ss.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));mi(e,t,null,null)},xi.prototype.unmount=ss.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fn(function(){mi(null,e,null,null)}),t[Wt]=null}};function xi(e){this._internalRoot=e}xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ss();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ln.length&&t!==0&&t<ln[n].priority;n++);ln.splice(n,0,e),n===0&&zs(e)}};function as(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function vi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $u(){}function Xd(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var x=hi(s);i.call(x)}}var s=Iu(t,r,e,0,null,!1,!1,"",$u);return e._reactRootContainer=s,e[Wt]=s.current,Ar(e.nodeType===8?e.parentNode:e),Fn(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var x=hi(u);a.call(x)}}var u=is(e,0,!1,null,null,!1,!1,"",$u);return e._reactRootContainer=u,e[Wt]=u.current,Ar(e.nodeType===8?e.parentNode:e),Fn(function(){mi(t,u,n,r)}),u}function yi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var s=i;if(typeof l=="function"){var a=l;l=function(){var u=hi(s);a.call(u)}}mi(t,s,e,l)}else s=Xd(n,t,e,l,r);return hi(s)}ws=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Nr(t.pendingLanes);n!==0&&(Pi(t,n|1),dt(t,be()),(ve&6)===0&&(mr=be()+500,dn()))}break;case 13:Fn(function(){var r=Jt(e,1);if(r!==null){var l=lt();Lt(r,e,1,l)}}),os(e,1)}},Ti=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=lt();Lt(t,e,134217728,n)}os(e,134217728)}},ks=function(e){if(e.tag===13){var t=vn(e),n=Jt(e,t);if(n!==null){var r=lt();Lt(n,e,t,r)}os(e,t)}},Ss=function(){return Se},js=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}},gr=function(e,t,n){switch(t){case"input":if($n(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=bl(r);if(!l)throw Error(c(90));ol(r),$n(r,l)}}}break;case"textarea":ul(e,n);break;case"select":t=n.value,t!=null&&it(e,!!n.multiple,t,!1)}},pl=qo,ml=Fn;var Gd={usingClientEntryPoint:!1,Events:[Vr,tr,bl,dl,fl,qo]},nl={findFiberByHostInstance:Cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zd={bundleType:nl.bundleType,version:nl.version,rendererPackageName:nl.rendererPackageName,rendererConfig:nl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oe(e),e===null?null:e.stateNode},findFiberByHostInstance:nl.findFiberByHostInstance||Jd,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 gi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gi.isDisabled&&gi.supportsFiber)try{xl=gi.inject(Zd),Ft=gi}catch{}}return ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gd,ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!as(t))throw Error(c(200));return Yd(e,t,null,n)},ft.createRoot=function(e,t){if(!as(e))throw Error(c(299));var n=!1,r="",l=Au;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=is(e,1,!1,null,null,n,!1,r,l),e[Wt]=t.current,Ar(e.nodeType===8?e.parentNode:e),new ss(t)},ft.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(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=oe(t),e=e===null?null:e.stateNode,e},ft.flushSync=function(e){return Fn(e)},ft.hydrate=function(e,t,n){if(!vi(t))throw Error(c(200));return yi(null,e,t,!0,n)},ft.hydrateRoot=function(e,t,n){if(!as(e))throw Error(c(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",s=Au;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Iu(t,null,e,1,n??null,l,!1,i,s),e[Wt]=t.current,Ar(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new xi(t)},ft.render=function(e,t,n){if(!vi(t))throw Error(c(200));return yi(null,e,t,!1,n)},ft.unmountComponentAtNode=function(e){if(!vi(e))throw Error(c(40));return e._reactRootContainer?(Fn(function(){yi(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1},ft.unstable_batchedUpdates=qo,ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vi(n))throw Error(c(200));if(e==null||e._reactInternals===void 0)throw Error(c(38));return yi(e,t,n,!1,r)},ft.version="18.3.1-next-f1338f8080-20240426",ft}var Yu;function sf(){if(Yu)return ds.exports;Yu=1;function y(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y)}catch(N){console.error(N)}}return y(),ds.exports=of(),ds.exports}var Ju;function af(){if(Ju)return wi;Ju=1;var y=sf();return wi.createRoot=y.createRoot,wi.hydrateRoot=y.hydrateRoot,wi}var uf=af();/**
41
+ * @license lucide-react v0.468.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 cf=y=>y.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rc=(...y)=>y.filter((N,c,_)=>!!N&&N.trim()!==""&&_.indexOf(N)===c).join(" ").trim();/**
46
+ * @license lucide-react v0.468.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 df={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.468.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 ff=M.forwardRef(({color:y="currentColor",size:N=24,strokeWidth:c=2,absoluteStrokeWidth:_,className:h="",children:w,iconNode:C,...B},F)=>M.createElement("svg",{ref:F,...df,width:N,height:N,stroke:y,strokeWidth:_?Number(c)*24/Number(N):c,className:rc("lucide",h),...B},[...C.map(([W,X])=>M.createElement(W,X)),...Array.isArray(w)?w:[w]]));/**
56
+ * @license lucide-react v0.468.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 le=(y,N)=>{const c=M.forwardRef(({className:_,...h},w)=>M.createElement(ff,{ref:w,iconNode:N,className:rc(`lucide-${cf(y)}`,_),...h}));return c.displayName=`${y}`,c};/**
61
+ * @license lucide-react v0.468.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 lc=le("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
66
+ * @license lucide-react v0.468.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 pf=le("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
+ * @license lucide-react v0.468.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 ic=le("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"}]]);/**
76
+ * @license lucide-react v0.468.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 mf=le("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
81
+ * @license lucide-react v0.468.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 oc=le("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
86
+ * @license lucide-react v0.468.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 Xu=le("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
91
+ * @license lucide-react v0.468.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 hf=le("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"}]]);/**
96
+ * @license lucide-react v0.468.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 xf=le("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"}]]);/**
101
+ * @license lucide-react v0.468.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 vf=le("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"}]]);/**
106
+ * @license lucide-react v0.468.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 yf=le("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"}]]);/**
111
+ * @license lucide-react v0.468.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 Si=le("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
116
+ * @license lucide-react v0.468.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 gf=le("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"}]]);/**
121
+ * @license lucide-react v0.468.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 wf=le("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
126
+ * @license lucide-react v0.468.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 kf=le("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
131
+ * @license lucide-react v0.468.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 Sf=le("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
136
+ * @license lucide-react v0.468.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 jf=le("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:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
141
+ * @license lucide-react v0.468.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 Nf=le("LayoutTemplate",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);/**
146
+ * @license lucide-react v0.468.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 zf=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
151
+ * @license lucide-react v0.468.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 Gu=le("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/**
156
+ * @license lucide-react v0.468.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 Cf=le("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
161
+ * @license lucide-react v0.468.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 sc=le("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
166
+ * @license lucide-react v0.468.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 ac=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
171
+ * @license lucide-react v0.468.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 uc=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
176
+ * @license lucide-react v0.468.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 Ef=le("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
181
+ * @license lucide-react v0.468.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 _f=le("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
186
+ * @license lucide-react v0.468.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 Rf=le("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
191
+ * @license lucide-react v0.468.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 Mf=le("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
196
+ * @license lucide-react v0.468.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 Pf=le("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
201
+ * @license lucide-react v0.468.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 cc=le("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"}]]);/**
206
+ * @license lucide-react v0.468.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 Tf=le("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/**
211
+ * @license lucide-react v0.468.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 Lf=le("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/**
216
+ * @license lucide-react v0.468.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 Ff=le("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
221
+ * @license lucide-react v0.468.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 dc=le("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
226
+ * @license lucide-react v0.468.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 fc=le("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
231
+ * @license lucide-react v0.468.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 xs=le("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"}]]);/**
236
+ * @license lucide-react v0.468.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 bf=le("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
241
+ * @license lucide-react v0.468.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const Of=le("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
246
+ * @license lucide-react v0.468.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const pc=le("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
251
+ * @license lucide-react v0.468.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const If=le("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/**
256
+ * @license lucide-react v0.468.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const il=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
261
+ * @license lucide-react v0.468.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const Df=le("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
266
+ * @license lucide-react v0.468.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const Af=le("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),ms={htmlCssJs:{id:"tpl-html-showcase",name:"HTML / CSS / JS Motion (16:9)",description:"Animasi video berbasis HTML, CSS (--time, --progress), dan JavaScript.",resolution:{width:1920,height:1080,label:"1080p"},fps:30,scenes:[{id:"scene-1",name:"01_Hero_Intro",mode:"html",duration:4,transition:"fade",transitionDuration:.4,html:`<div class="stage">
271
+ <div class="glow"></div>
272
+ <div class="grid-bg"></div>
273
+ <div class="badge">CODEMOTION // HTML + CSS + JS</div>
274
+ <h1 class="title">
275
+ <span class="line l1">BUILD VIDEO</span>
276
+ <span class="line l2">WITH <span class="accent">PURE WEB CODE.</span></span>
277
+ </h1>
278
+ <p class="subtitle" id="subtitle">Deterministic frame-by-frame rendering via Puppeteer &amp; FFmpeg</p>
279
+ <div class="progress-track">
280
+ <div class="progress-fill"></div>
281
+ </div>
282
+ </div>`,css:`* { box-sizing: border-box; margin: 0; padding: 0; }
283
+ body {
284
+ width: 1920px;
285
+ height: 1080px;
286
+ background: #09090b;
287
+ color: #fafafa;
288
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
289
+ overflow: hidden;
290
+ }
291
+ .stage {
292
+ position: relative;
293
+ width: 100%;
294
+ height: 100%;
295
+ display: flex;
296
+ flex-direction: column;
297
+ justify-content: center;
298
+ padding: 120px;
299
+ }
300
+ .glow {
301
+ position: absolute;
302
+ width: 900px;
303
+ height: 900px;
304
+ border-radius: 9999px;
305
+ background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
306
+ top: -220px;
307
+ right: -180px;
308
+ transform: scale(calc(0.9 + var(--progress, 0) * 0.25));
309
+ }
310
+ .grid-bg {
311
+ position: absolute;
312
+ inset: 0;
313
+ background-image:
314
+ linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
315
+ linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
316
+ background-size: 80px 80px;
317
+ transform: scale(calc(1 + var(--progress, 0) * 0.06));
318
+ }
319
+ .badge {
320
+ position: relative;
321
+ font-family: monospace;
322
+ font-size: 24px;
323
+ letter-spacing: 6px;
324
+ color: #38bdf8;
325
+ margin-bottom: 28px;
326
+ opacity: clamp(0, calc(var(--time, 0) * 3), 1);
327
+ transform: translateY(calc((1 - clamp(0, calc(var(--time, 0) * 3), 1)) * 20px));
328
+ }
329
+ .title {
330
+ position: relative;
331
+ font-size: 140px;
332
+ font-weight: 900;
333
+ line-height: 0.96;
334
+ letter-spacing: -4px;
335
+ display: flex;
336
+ flex-direction: column;
337
+ gap: 8px;
338
+ }
339
+ .line { display: block; }
340
+ .l1 {
341
+ opacity: clamp(0, calc((var(--time, 0) - 0.15) * 3), 1);
342
+ transform: translateY(calc((1 - clamp(0, calc((var(--time, 0) - 0.15) * 3), 1)) * 40px));
343
+ }
344
+ .l2 {
345
+ opacity: clamp(0, calc((var(--time, 0) - 0.45) * 3), 1);
346
+ transform: translateY(calc((1 - clamp(0, calc((var(--time, 0) - 0.45) * 3), 1)) * 40px));
347
+ }
348
+ .accent { color: #38bdf8; }
349
+ .subtitle {
350
+ position: relative;
351
+ margin-top: 36px;
352
+ font-size: 34px;
353
+ color: #a1a1aa;
354
+ opacity: clamp(0, calc((var(--time, 0) - 0.85) * 2.5), 1);
355
+ }
356
+ .progress-track {
357
+ position: absolute;
358
+ bottom: 80px;
359
+ left: 120px;
360
+ right: 120px;
361
+ height: 6px;
362
+ background: rgba(255, 255, 255, 0.1);
363
+ border-radius: 999px;
364
+ overflow: hidden;
365
+ }
366
+ .progress-fill {
367
+ height: 100%;
368
+ width: calc(var(--progress, 0) * 100%);
369
+ background: linear-gradient(90deg, #38bdf8, #818cf8);
370
+ }`,js:`window.onFrameUpdate = (time, progress, frame, fps) => {
371
+ const sub = document.getElementById('subtitle');
372
+ if (sub) {
373
+ const y = Math.max(0, 1 - Math.max(0, time - 0.85) * 2.5) * 16;
374
+ sub.style.transform = 'translateY(' + y.toFixed(2) + 'px)';
375
+ }
376
+ };`},{id:"scene-2",name:"02_Feature_Cards",mode:"html",duration:4,transition:"slide-left",transitionDuration:.45,html:`<div class="stage">
377
+ <div class="kicker">02 // WORKFLOW</div>
378
+ <h2 class="heading">Simple Stack. Real MP4.</h2>
379
+ <div class="cards" id="cards">
380
+ <div class="card" data-delay="0.2">
381
+ <div class="tag">HTML</div>
382
+ <h3>Struktur Scene</h3>
383
+ <p>Susun layout teks, gambar, dan elemen visual dengan markup standar.</p>
384
+ </div>
385
+ <div class="card" data-delay="0.45">
386
+ <div class="tag">CSS</div>
387
+ <h3>Motion Variables</h3>
388
+ <p>Gunakan <code>--time</code> dan <code>--progress</code> untuk animasi mulus.</p>
389
+ </div>
390
+ <div class="card" data-delay="0.7">
391
+ <div class="tag">JS</div>
392
+ <h3>Frame Control</h3>
393
+ <p>Kontrol penuh tiap frame lewat <code>window.onFrameUpdate()</code>.</p>
394
+ </div>
395
+ </div>
396
+ </div>`,css:`* { box-sizing: border-box; margin: 0; padding: 0; }
397
+ body {
398
+ width: 1920px;
399
+ height: 1080px;
400
+ background: #0c0a09;
401
+ color: #f5f5f4;
402
+ font-family: system-ui, -apple-system, sans-serif;
403
+ overflow: hidden;
404
+ }
405
+ .stage {
406
+ width: 100%;
407
+ height: 100%;
408
+ padding: 120px;
409
+ display: flex;
410
+ flex-direction: column;
411
+ justify-content: center;
412
+ }
413
+ .kicker {
414
+ font-family: monospace;
415
+ font-size: 24px;
416
+ letter-spacing: 6px;
417
+ color: #f59e0b;
418
+ margin-bottom: 16px;
419
+ }
420
+ .heading {
421
+ font-size: 76px;
422
+ font-weight: 800;
423
+ letter-spacing: -2px;
424
+ margin-bottom: 56px;
425
+ }
426
+ .cards {
427
+ display: grid;
428
+ grid-template-columns: repeat(3, 1fr);
429
+ gap: 32px;
430
+ }
431
+ .card {
432
+ background: #18181b;
433
+ border: 1px solid #27272a;
434
+ border-radius: 20px;
435
+ padding: 44px;
436
+ opacity: 0;
437
+ transform: translateY(48px);
438
+ }
439
+ .tag {
440
+ display: inline-block;
441
+ font-family: monospace;
442
+ font-size: 18px;
443
+ font-weight: 700;
444
+ color: #38bdf8;
445
+ background: rgba(56, 189, 248, 0.12);
446
+ padding: 6px 14px;
447
+ border-radius: 8px;
448
+ margin-bottom: 24px;
449
+ }
450
+ .card h3 {
451
+ font-size: 38px;
452
+ margin-bottom: 16px;
453
+ }
454
+ .card p {
455
+ font-size: 26px;
456
+ line-height: 1.45;
457
+ color: #a1a1aa;
458
+ }
459
+ .card code {
460
+ color: #e4e4e7;
461
+ font-family: monospace;
462
+ }`,js:`window.onFrameUpdate = (time) => {
463
+ const cards = document.querySelectorAll('.card');
464
+ cards.forEach((card) => {
465
+ const delay = parseFloat(card.dataset.delay || '0');
466
+ const t = Math.min(1, Math.max(0, (time - delay) * 2.4));
467
+ const eased = 1 - Math.pow(1 - t, 3);
468
+ card.style.opacity = String(eased);
469
+ card.style.transform = 'translateY(' + ((1 - eased) * 48).toFixed(2) + 'px)';
470
+ });
471
+ };`}]},htmlVertical:{id:"tpl-html-vertical",name:"HTML Vertical Reel (9:16)",description:"Format vertikal 1080x1920 berbasis HTML/CSS/JS untuk Reels & Shorts.",resolution:{width:1080,height:1920,label:"1080p Vertical"},fps:30,scenes:[{id:"vert-1",name:"01_Vertical_Hook",mode:"html",duration:4,transition:"slide-up",transitionDuration:.4,html:`<div class="reel">
472
+ <div class="pill">01 // SHORT FORM</div>
473
+ <h1 class="headline">CODE YOUR<br /><span>REELS.</span></h1>
474
+ <p class="desc">HTML, CSS, dan JS langsung jadi video MP4 1080×1920.</p>
475
+ <div class="bar"><div class="bar-fill"></div></div>
476
+ </div>`,css:`* { box-sizing: border-box; margin: 0; padding: 0; }
477
+ body {
478
+ width: 1080px;
479
+ height: 1920px;
480
+ background: #09090b;
481
+ color: #fff;
482
+ font-family: system-ui, sans-serif;
483
+ overflow: hidden;
484
+ }
485
+ .reel {
486
+ width: 100%;
487
+ height: 100%;
488
+ padding: 140px 88px;
489
+ display: flex;
490
+ flex-direction: column;
491
+ justify-content: center;
492
+ }
493
+ .pill {
494
+ font-family: monospace;
495
+ font-size: 28px;
496
+ letter-spacing: 5px;
497
+ color: #a855f7;
498
+ margin-bottom: 36px;
499
+ }
500
+ .headline {
501
+ font-size: 132px;
502
+ font-weight: 900;
503
+ line-height: 0.96;
504
+ letter-spacing: -4px;
505
+ margin-bottom: 40px;
506
+ opacity: clamp(0, calc(var(--time, 0) * 3), 1);
507
+ transform: translateY(calc((1 - clamp(0, calc(var(--time, 0) * 3), 1)) * 50px));
508
+ }
509
+ .headline span { color: #a855f7; }
510
+ .desc {
511
+ font-size: 42px;
512
+ line-height: 1.4;
513
+ color: #a1a1aa;
514
+ margin-bottom: 64px;
515
+ }
516
+ .bar {
517
+ height: 10px;
518
+ background: #27272a;
519
+ border-radius: 999px;
520
+ overflow: hidden;
521
+ }
522
+ .bar-fill {
523
+ height: 100%;
524
+ width: calc(var(--progress, 0) * 100%);
525
+ background: #a855f7;
526
+ }`,js:`window.onFrameUpdate = (time, progress) => {
527
+ // Custom JS per-frame hook
528
+ };`}]}},ki=ms.htmlCssJs,$f={"1280x720":{width:1280,height:720,label:"720p"},"1920x1080":{width:1920,height:1080,label:"1080p"},"3840x2160":{width:3840,height:2160,label:"4K"},"1080x1920":{width:1080,height:1920,label:"1080p Vertical"},"1080x1080":{width:1080,height:1080,label:"1:1"}},Uf={"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"4K":{width:3840,height:2160}},Zu=(y,N)=>{const c=Number.isFinite(y)?Math.max(0,y):0,_=Math.floor(c/60),h=Math.floor(c%60),w=Math.floor(c%1*N);return`${String(_).padStart(2,"0")}:${String(h).padStart(2,"0")}:${String(w).padStart(2,"0")}`},ll={reactDev:"/vendor/react.development.js",reactProd:"/vendor/react.production.min.js",reactDomDev:"/vendor/react-dom.development.js",reactDomProd:"/vendor/react-dom.production.min.js",babel:"/vendor/babel.min.js"};function Vf(y,N={}){const{width:c=1920,height:_=1080,fps:h=30,assets:w=[],mode:C="preview",baseUrl:B=""}=N,F=y.mode==="react",W=C==="render",X=(K="")=>w.reduce((fe,Ee)=>fe.split(`asset://${Ee.name}`).join(Ee.url),K),T=X(y.css||""),D=X(y.js||""),se=X(y.jsx||""),ue=X(y.html||""),G=w.filter(K=>K.category==="font").map(K=>`@font-face { font-family: '${K.name.replace(/\.[^/.]+$/,"")}'; src: url('${K.url}'); }`).join(`
529
+ `),b=Math.max(1,Math.round((y.duration||1)*h)),O=K=>`${B}${K}`,q=F?`<script src="${O(W?ll.reactProd:ll.reactDev)}"><\/script>
530
+ <script src="${O(W?ll.reactDomProd:ll.reactDomDev)}"><\/script>
531
+ <script src="${O(ll.babel)}"><\/script>`:"",H=`
532
+ (function () {
533
+ var state = {
534
+ frame: 0,
535
+ fps: ${h},
536
+ width: ${c},
537
+ height: ${_},
538
+ durationInFrames: ${b}
539
+ };
540
+ window.__FC_STATE = state;
541
+ window.__FC_READY = false;
542
+
543
+ window.useCurrentFrame = function () { return state.frame; };
544
+ window.useVideoConfig = function () { return state; };
545
+
546
+ window.interpolate = function (val, inputRange, outputRange, options) {
547
+ options = options || {};
548
+ var n = inputRange.length - 1;
549
+ var out;
550
+ if (val <= inputRange[0]) {
551
+ out = outputRange[0];
552
+ if (options.extrapolateLeft !== 'clamp' && n > 0) {
553
+ out = outputRange[0] + ((val - inputRange[0]) / (inputRange[1] - inputRange[0] || 1)) * (outputRange[1] - outputRange[0]);
554
+ }
555
+ return out;
556
+ }
557
+ if (val >= inputRange[n]) {
558
+ out = outputRange[n];
559
+ if (options.extrapolateRight !== 'clamp' && n > 0) {
560
+ out = outputRange[n] + ((val - inputRange[n]) / (inputRange[n] - inputRange[n - 1] || 1)) * (outputRange[n] - outputRange[n - 1]);
561
+ }
562
+ return out;
563
+ }
564
+ for (var i = 0; i < n; i++) {
565
+ if (val >= inputRange[i] && val <= inputRange[i + 1]) {
566
+ var p = (val - inputRange[i]) / (inputRange[i + 1] - inputRange[i] || 1);
567
+ return outputRange[i] + p * (outputRange[i + 1] - outputRange[i]);
568
+ }
569
+ }
570
+ return outputRange[0];
571
+ };
572
+
573
+ window.spring = function (params) {
574
+ params = params || {};
575
+ var frame = params.frame || 0;
576
+ var fpsVal = params.fps || state.fps;
577
+ var config = params.config || {};
578
+ if (frame <= 0) return 0;
579
+ var damping = config.damping || 10;
580
+ var t = frame / fpsVal;
581
+ var value = 1 - Math.exp(-damping * t) * Math.cos(10 * t);
582
+ return value < 0 ? 0 : value;
583
+ };
584
+
585
+ if (window.React) {
586
+ window.AbsoluteFill = function (props) {
587
+ return React.createElement('div', {
588
+ style: Object.assign({
589
+ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0,
590
+ display: 'flex', flexDirection: 'column'
591
+ }, props.style || {})
592
+ }, props.children);
593
+ };
594
+ window.Sequence = function (props) {
595
+ var from = props.from || 0;
596
+ var duration = props.durationInFrames || Infinity;
597
+ var current = state.frame;
598
+ if (current < from || current >= from + duration) return null;
599
+ return props.children;
600
+ };
601
+ }
602
+
603
+ window.__FC_report = function (message) {
604
+ try { window.parent.postMessage({ type: 'IFRAME_ERROR', message: String(message) }, '*'); } catch (e) {}
605
+ };
606
+ window.addEventListener('error', function (e) {
607
+ window.__FC_report(e.message || 'Script error');
608
+ });
609
+ window.addEventListener('unhandledrejection', function (e) {
610
+ window.__FC_report((e.reason && e.reason.message) || e.reason || 'Unhandled rejection');
611
+ });
612
+
613
+ window.__FC_markReady = function () {
614
+ if (window.__FC_READY) return;
615
+ window.__FC_READY = true;
616
+ try { window.parent.postMessage({ type: 'IFRAME_READY' }, '*'); } catch (e) {}
617
+ };
618
+
619
+ window.__FC_setFrame = function (localTime, progress, frame, transitionStyle) {
620
+ state.frame = frame;
621
+ document.documentElement.style.setProperty('--time', String(localTime));
622
+ document.documentElement.style.setProperty('--progress', String(progress));
623
+ document.documentElement.style.setProperty('--frame', String(frame));
624
+ if (transitionStyle) {
625
+ document.body.style.opacity = String(transitionStyle.opacity);
626
+ document.body.style.transform = transitionStyle.transform;
627
+ }
628
+ if (typeof window.__FC_renderReact === 'function') {
629
+ try { window.__FC_renderReact(); } catch (err) { window.__FC_report(err.message); }
630
+ }
631
+ if (typeof window.onFrameUpdate === 'function') {
632
+ try { window.onFrameUpdate(localTime, progress, frame, state.fps); } catch (err) { window.__FC_report(err.message); }
633
+ }
634
+ };
635
+
636
+ window.addEventListener('message', function (event) {
637
+ if (!event.data || event.data.type !== 'SYNC_TIME') return;
638
+ window.__FC_setFrame(event.data.localTime, event.data.progress, event.data.frame, event.data.transitionStyle);
639
+ });
640
+ })();
641
+ `,ee=`
642
+ try {
643
+ ${se}
644
+
645
+ var __fcRootEl = document.getElementById('root');
646
+ var __fcRoot = ReactDOM.createRoot(__fcRootEl);
647
+ var __fcComp =
648
+ (typeof MyComposition !== 'undefined') ? MyComposition :
649
+ (typeof CardsScene !== 'undefined') ? CardsScene :
650
+ (typeof VerticalReel !== 'undefined') ? VerticalReel :
651
+ null;
652
+
653
+ window.__FC_renderReact = function () {
654
+ if (!__fcComp) return;
655
+ var tree = React.createElement(__fcComp);
656
+ if (ReactDOM.flushSync) {
657
+ ReactDOM.flushSync(function () { __fcRoot.render(tree); });
658
+ } else {
659
+ __fcRoot.render(tree);
660
+ }
661
+ };
662
+
663
+ if (!__fcComp) {
664
+ document.body.innerHTML = '<div style="color:#f87171;font:600 28px monospace;padding:60px">No React component found. Export a component named MyComposition.</div>';
665
+ throw new Error('No React component found in this scene. Name it MyComposition.');
666
+ }
667
+ window.__FC_renderReact();
668
+ (document.fonts ? document.fonts.ready : Promise.resolve()).then(window.__FC_markReady);
669
+ } catch (err) {
670
+ window.__FC_report(err && err.message ? err.message : err);
671
+ (document.fonts ? document.fonts.ready : Promise.resolve()).then(window.__FC_markReady);
672
+ }
673
+ `,ge=`
674
+ try {
675
+ ${D}
676
+ } catch (err) {
677
+ window.__FC_report(err && err.message ? err.message : err);
678
+ }
679
+ (document.fonts ? document.fonts.ready : Promise.resolve()).then(window.__FC_markReady);
680
+ `;return`<!DOCTYPE html>
681
+ <html>
682
+ <head>
683
+ <meta charset="utf-8" />
684
+ ${q}
685
+ <style>
686
+ ${G}
687
+ html, body {
688
+ width: ${c}px;
689
+ height: ${_}px;
690
+ margin: 0;
691
+ padding: 0;
692
+ overflow: hidden;
693
+ background: #000;
694
+ }
695
+ ${T}
696
+ </style>
697
+ </head>
698
+ <body>
699
+ ${F?'<div id="root"></div>':ue}
700
+ <script>${H}<\/script>
701
+ <script${F?' type="text/babel"':""}>${F?ee:ge}<\/script>
702
+ </body>
703
+ </html>`}function Hf(y,N){const c=y.transitionDuration||.5;let _=1,h="none";if(N<c&&y.transition&&y.transition!=="none"){const w=Math.max(0,N/c);y.transition==="fade"?_=w:y.transition==="slide-left"?(_=w,h=`translateX(${(1-w)*120}px)`):y.transition==="slide-up"?(_=w,h=`translateY(${(1-w)*120}px)`):y.transition==="zoom"&&(_=w,h=`scale(${.88+w*.12})`)}return{opacity:_,transform:h}}async function Bf(){try{return(await fetch("/health",{cache:"no-store"})).ok}catch{return!1}}async function Wf(y,N){const c=y.body.getReader(),_=new TextDecoder;let h="",w=null;for(;;){const{value:C,done:B}=await c.read();if(B)break;h+=_.decode(C,{stream:!0});let F;for(;(F=h.indexOf(`
704
+ `))>=0;){const W=h.slice(0,F).trim();if(h=h.slice(F+1),!W)continue;const X=JSON.parse(W);if(X.type==="error")throw new Error(X.message);X.type==="done"&&(w=X),N==null||N(X)}}if(!w)throw new Error("Render stream berakhir tanpa hasil.");return w}async function Kf(y,{onProgress:N,onLog:c,signal:_}={}){const h=await fetch("/api/render",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(y),signal:_});if(!h.ok||!h.body){let w=`HTTP ${h.status}`;try{w=(await h.json()).error||w}catch{}throw new Error(w)}return Wf(h,w=>{w.type==="progress"&&(N==null||N(w)),w.type==="log"&&(c==null||c(w))})}function Qf({projectName:y,onProjectNameChange:N,saveStatus:c,onUndo:_,onRedo:h,canUndo:w,canRedo:C,onOpenProject:B,onSaveProject:F,isPlaying:W,onTogglePlay:X,onRender:T,rendererOnline:D,showLogs:se,onToggleLogs:ue,logCount:G,showEditor:b,onToggleEditor:O,showAiChat:q,onToggleAiChat:H,onOpenSettings:ee}){return o.jsxs("header",{className:"h-12 bg-[#0c0d10] border-b border-zinc-800/90 px-3 flex items-center justify-between shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("div",{className:"flex items-center gap-2 pr-3 border-r border-zinc-800",children:[o.jsx("div",{className:"w-7 h-7 rounded bg-sky-500 text-zinc-950 font-black flex items-center justify-center text-xs tracking-tighter",children:"CM"}),o.jsxs("span",{className:"font-semibold text-sm tracking-tight text-zinc-100",children:["CodeMotion ",o.jsx("span",{className:"text-zinc-500 font-normal",children:"Studio"})]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("input",{type:"text",value:y,onChange:ge=>N(ge.target.value),className:"bg-transparent hover:bg-zinc-900 focus:bg-zinc-900 border border-transparent focus:border-zinc-700 rounded px-2 py-1 text-xs font-medium text-zinc-200 outline-none w-44 transition-colors",title:"Rename Project"}),o.jsxs("span",{className:"text-[11px] text-zinc-500 flex items-center gap-1",children:[o.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${c==="Saved"?"bg-emerald-500":"bg-amber-400"}`}),c]})]})]}),o.jsxs("div",{className:"hidden md:flex items-center gap-1 bg-zinc-900/70 p-1 rounded border border-zinc-800/80",children:[o.jsx("button",{onClick:_,disabled:!w,className:"p-1.5 rounded hover:bg-zinc-800 disabled:opacity-30 text-zinc-300",title:"Undo",children:o.jsx(bf,{className:"w-3.5 h-3.5"})}),o.jsx("button",{onClick:h,disabled:!C,className:"p-1.5 rounded hover:bg-zinc-800 disabled:opacity-30 text-zinc-300",title:"Redo",children:o.jsx(Ef,{className:"w-3.5 h-3.5"})}),o.jsx("div",{className:"w-px h-4 bg-zinc-800 mx-1"}),o.jsxs("button",{onClick:B,className:"px-2 py-1 rounded hover:bg-zinc-800 text-xs text-zinc-300 flex items-center gap-1.5",title:"Open Project (.json)",children:[o.jsx(gf,{className:"w-3.5 h-3.5 text-zinc-400"}),o.jsx("span",{children:"Open"})]}),o.jsxs("button",{onClick:F,className:"px-2 py-1 rounded hover:bg-zinc-800 text-xs text-zinc-300 flex items-center gap-1.5",title:"Save / Export Project JSON",children:[o.jsx(_f,{className:"w-3.5 h-3.5 text-zinc-400"}),o.jsx("span",{children:"Save JSON"})]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("div",{className:"hidden xl:flex items-center gap-1.5 px-2.5 py-1 rounded bg-zinc-900 border border-zinc-800 text-[11px] font-mono",title:"Status renderer lokal (Puppeteer + FFmpeg) di komputer Anda",children:[o.jsx("span",{className:`w-2 h-2 rounded-full ${D?"bg-emerald-400 animate-pulse":"bg-zinc-600"}`}),o.jsx("span",{className:"text-zinc-400",children:D?"Renderer Ready":"Renderer Offline"})]}),o.jsxs("button",{onClick:H,className:`px-2.5 py-1.5 rounded border text-xs font-medium flex items-center gap-1.5 transition-colors ${q?"bg-sky-500/15 border-sky-500/40 text-sky-300":"bg-zinc-900 hover:bg-zinc-800 border-zinc-800 text-zinc-400 hover:text-zinc-200"}`,title:"Buka / Tutup AI Agent Chat",children:[o.jsx(lc,{className:"w-3.5 h-3.5"}),o.jsx("span",{className:"hidden sm:inline",children:"AI Agent"})]}),o.jsxs("button",{onClick:O,className:`px-2.5 py-1.5 rounded border text-xs font-medium flex items-center gap-1.5 transition-colors ${b?"bg-sky-500/15 border-sky-500/40 text-sky-300":"bg-zinc-900 hover:bg-zinc-800 border-zinc-800 text-zinc-400 hover:text-zinc-200"}`,title:"Tampilkan / Tutup Code Editor",children:[o.jsx(oc,{className:"w-3.5 h-3.5"}),o.jsx("span",{className:"hidden sm:inline",children:"Editor"})]}),o.jsxs("button",{onClick:ue,className:`px-2.5 py-1.5 rounded border text-xs font-medium flex items-center gap-1.5 transition-colors ${se?"bg-sky-500/15 border-sky-500/40 text-sky-300":"bg-zinc-900 hover:bg-zinc-800 border-zinc-800 text-zinc-400 hover:text-zinc-200"}`,title:"Tampilkan / Sembunyikan Studio Logs",children:[o.jsx(fc,{className:"w-3.5 h-3.5"}),o.jsx("span",{className:"hidden sm:inline",children:"Logs"}),G>0&&o.jsx("span",{className:"text-[10px] font-mono px-1 rounded bg-zinc-800 text-zinc-300",children:G})]}),o.jsx("button",{onClick:ee,className:"p-1.5 rounded border bg-zinc-900 hover:bg-zinc-800 border-zinc-800 text-zinc-400 hover:text-zinc-200 transition-colors",title:"Settings (API AI)",children:o.jsx(cc,{className:"w-3.5 h-3.5"})}),o.jsx("button",{onClick:X,className:"px-3 py-1.5 rounded bg-zinc-800 hover:bg-zinc-700 border border-zinc-700 text-xs font-medium flex items-center gap-1.5 transition-colors",children:W?o.jsxs(o.Fragment,{children:[o.jsx(sc,{className:"w-3.5 h-3.5 text-amber-400"}),o.jsx("span",{children:"Pause"})]}):o.jsxs(o.Fragment,{children:[o.jsx(ac,{className:"w-3.5 h-3.5 text-emerald-400"}),o.jsx("span",{children:"Preview"})]})}),o.jsxs("button",{onClick:T,className:"px-3.5 py-1.5 rounded bg-sky-500 hover:bg-sky-400 text-zinc-950 font-semibold text-xs flex items-center gap-1.5 transition-colors",children:[o.jsx(Si,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"Render Video"})]})]})]})}const qu=[{id:"html",label:"index.html",color:"text-orange-400",mode:"html"},{id:"css",label:"style.css",color:"text-sky-400",mode:"html"},{id:"js",label:"animation.js",color:"text-amber-400",mode:"html"}],Yf={id:"jsx",label:"Composition.jsx",color:"text-cyan-400",mode:"react"};function Jf({sidebarTab:y,onSidebarTab:N,scenes:c,timelineSegments:_,editingScene:h,activeTab:w,onSelectScene:C,onAddScene:B,onDuplicateScene:F,onDeleteScene:W,onFileTab:X,onUpdateScene:T,assets:D,onUploadClick:se,onCopyAssetPath:ue,templates:G,onApplyTemplate:b}){return o.jsxs("aside",{className:"w-60 bg-[#0b0c0e] border-r border-zinc-800/90 flex flex-col shrink-0",children:[o.jsx("div",{className:"flex border-b border-zinc-800/90 text-[11px] font-medium",children:[{id:"explorer",label:"Explorer",Icon:jf},{id:"assets",label:"Assets",Icon:kf},{id:"templates",label:"Templates",Icon:Nf}].map(({id:O,label:q,Icon:H})=>o.jsxs("button",{onClick:()=>N(O),className:`flex-1 py-2.5 flex items-center justify-center gap-1.5 border-b-2 transition-colors ${y===O?"border-sky-500 text-zinc-100 bg-zinc-900/40":"border-transparent text-zinc-500 hover:text-zinc-300"}`,children:[o.jsx(H,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:q})]},O))}),o.jsxs("div",{className:"flex-1 overflow-y-auto p-2.5 space-y-4",children:[y==="explorer"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between px-1.5 mb-1.5",children:[o.jsxs("span",{className:"text-[10px] font-semibold uppercase tracking-wider text-zinc-500",children:["Scenes (",c.length,")"]}),o.jsx("button",{onClick:B,className:"p-1 rounded hover:bg-zinc-800 text-zinc-400 hover:text-zinc-100",title:"Tambah Scene Baru",children:o.jsx(uc,{className:"w-3.5 h-3.5"})})]}),o.jsx("div",{className:"space-y-1",children:_.map(O=>{const q=O.id===(h==null?void 0:h.id);return o.jsxs("div",{onClick:()=>C(O),className:`group flex items-center justify-between px-2 py-1.5 rounded text-xs cursor-pointer transition-colors ${q?"bg-sky-500/15 text-sky-300 border border-sky-500/30":"text-zinc-400 hover:bg-zinc-900 hover:text-zinc-200 border border-transparent"}`,children:[o.jsxs("div",{className:"flex items-center gap-2 truncate",children:[o.jsx(Si,{className:"w-3.5 h-3.5 shrink-0 opacity-70"}),o.jsx("span",{className:"truncate font-mono text-[11px]",children:O.name})]}),o.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100",children:[o.jsx("button",{onClick:H=>{H.stopPropagation(),F(O.id)},className:"p-0.5 hover:text-white",title:"Duplicate",children:o.jsx(Xu,{className:"w-3 h-3"})}),o.jsx("button",{onClick:H=>{H.stopPropagation(),W(O.id)},className:"p-0.5 hover:text-red-400",title:"Delete",children:o.jsx(xs,{className:"w-3 h-3"})})]})]},O.id)})})]}),h&&o.jsxs("div",{className:"pt-2 border-t border-zinc-800/80",children:[o.jsxs("div",{className:"px-1.5 mb-1.5 text-[10px] font-semibold uppercase tracking-wider text-zinc-500",children:["Files — ",h.name]}),o.jsx("div",{className:"space-y-0.5 font-mono text-xs",children:(h.mode==="react"?[Yf,...qu]:qu).map(O=>o.jsxs("button",{onClick:()=>X(O),className:`w-full flex items-center gap-2 px-2.5 py-1.5 rounded text-left ${w===O.id?"bg-zinc-800/90 text-zinc-100":"text-zinc-400 hover:bg-zinc-900"}`,children:[o.jsx(yf,{className:`w-3.5 h-3.5 ${O.color}`}),o.jsx("span",{children:O.label})]},O.id))})]}),h&&o.jsxs("div",{className:"pt-2 border-t border-zinc-800/80 space-y-2.5",children:[o.jsx("div",{className:"px-1.5 text-[10px] font-semibold uppercase tracking-wider text-zinc-500",children:"Scene Properties"}),o.jsxs("div",{className:"space-y-2 px-1",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] text-zinc-400 mb-1",children:"Scene Name"}),o.jsx("input",{type:"text",value:h.name,onChange:O=>T(h.id,{name:O.target.value}),className:"w-full bg-zinc-900 border border-zinc-800 rounded px-2 py-1 text-xs font-mono text-zinc-200 outline-none focus:border-sky-500"})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] text-zinc-400 mb-1",children:"Durasi (dtk)"}),o.jsx("input",{type:"number",min:"0.5",max:"120",step:"0.5",value:h.duration,onChange:O=>T(h.id,{duration:Math.max(.5,Number(O.target.value))},!0),className:"w-full bg-zinc-900 border border-zinc-800 rounded px-2 py-1 text-xs font-mono text-zinc-200 outline-none focus:border-sky-500"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] text-zinc-400 mb-1",children:"Transisi"}),o.jsxs("select",{value:h.transition,onChange:O=>T(h.id,{transition:O.target.value},!0),className:"w-full bg-zinc-900 border border-zinc-800 rounded px-1.5 py-1 text-xs text-zinc-200 outline-none focus:border-sky-500",children:[o.jsx("option",{value:"none",children:"None"}),o.jsx("option",{value:"fade",children:"Fade"}),o.jsx("option",{value:"slide-left",children:"Slide Left"}),o.jsx("option",{value:"slide-up",children:"Slide Up"}),o.jsx("option",{value:"zoom",children:"Zoom"})]})]})]})]})]})]}),y==="assets"&&o.jsxs("div",{className:"space-y-3",children:[o.jsxs("button",{onClick:se,className:"w-full py-2 px-3 rounded bg-zinc-900 hover:bg-zinc-800 border border-dashed border-zinc-700 text-xs text-zinc-300 flex items-center justify-center gap-2 transition-colors",children:[o.jsx(Of,{className:"w-3.5 h-3.5 text-sky-400"}),o.jsx("span",{children:"Upload Media / Font"})]}),o.jsxs("p",{className:"text-[11px] text-zinc-500 leading-relaxed",children:["Gunakan ",o.jsx("code",{className:"text-sky-400",children:"asset://nama_file"})," di dalam HTML, CSS, atau JSX."]}),o.jsx("div",{className:"space-y-1.5",children:D.map(O=>o.jsxs("div",{className:"p-2 rounded bg-zinc-900/70 border border-zinc-800/80 flex items-center justify-between gap-2",children:[o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"text-xs font-mono text-zinc-200 truncate",children:O.name}),o.jsxs("div",{className:"text-[10px] text-zinc-500 uppercase",children:[O.category," • ",O.size]})]}),o.jsx("button",{onClick:()=>ue(O),className:"p-1.5 rounded bg-zinc-800 hover:bg-zinc-700 text-zinc-300 shrink-0",title:"Copy asset:// path",children:o.jsx(Xu,{className:"w-3 h-3"})})]},O.id))})]}),y==="templates"&&o.jsxs("div",{className:"space-y-2.5",children:[o.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider text-zinc-500 px-1",children:"Starter Projects"}),Object.entries(G).map(([O,q])=>o.jsxs("div",{className:"p-2.5 rounded bg-zinc-900/60 border border-zinc-800 hover:border-zinc-700 transition-colors space-y-2",children:[o.jsx("div",{className:"text-xs font-semibold text-zinc-100",children:q.name}),o.jsx("p",{className:"text-[11px] text-zinc-400 leading-snug",children:q.description}),o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[o.jsxs("span",{className:"text-[10px] font-mono text-zinc-500",children:[q.resolution.width,"x",q.resolution.height," • ",q.fps,"fps"]}),o.jsx("button",{onClick:()=>b(O),className:"px-2 py-1 rounded bg-sky-500/20 hover:bg-sky-500/30 text-sky-300 text-[11px] font-medium",children:"Gunakan"})]})]},q.id))]})]})]})}function Xf({code:y,language:N,onChange:c,onFormat:_}){const h=M.useRef(null),w=M.useRef(null),C=M.useRef(null),B=M.useMemo(()=>y.split(`
705
+ `),[y]),F=()=>{h.current&&w.current&&C.current&&(w.current.scrollTop=h.current.scrollTop,w.current.scrollLeft=h.current.scrollLeft,C.current.scrollTop=h.current.scrollTop)},W=T=>{if(T.key==="Tab"){T.preventDefault();const se=T.target.selectionStart,ue=T.target.selectionEnd,G=y.substring(0,se)+" "+y.substring(ue);c(G),requestAnimationFrame(()=>{h.current&&(h.current.selectionStart=h.current.selectionEnd=se+2)})}const D={"{":"}","[":"]","(":")",'"':'"',"'":"'"};if(D[T.key]){const se=T.target.selectionStart,ue=T.target.selectionEnd;if(se===ue){T.preventDefault();const G=y.substring(0,se)+T.key+D[T.key]+y.substring(ue);c(G),requestAnimationFrame(()=>{h.current&&(h.current.selectionStart=h.current.selectionEnd=se+1)})}}T.shiftKey&&T.altKey&&T.key.toLowerCase()==="f"&&(T.preventDefault(),_&&_())},X=M.useMemo(()=>{const T=y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),D=(b,O)=>`<span class="${b}">${O}</span>`;if(N==="html")return T.replace(/(&lt;!--[\s\S]*?--&gt;)/g,b=>D("text-zinc-500 italic",b)).replace(/(&lt;\/?[a-zA-Z0-9-]+)([^&]*?)(\/?&gt;)/g,(b,O,q,H)=>{const ee=q.replace(/([a-zA-Z-]+)=(".*?"|'.*?')/g,(ge,K,fe)=>`${D("text-sky-300",K)}=${D("text-amber-300",fe)}`);return D("text-rose-400",O)+ee+D("text-rose-400",H)})+`
706
+ `;if(N==="css")return T.replace(/(\/\*[\s\S]*?\*\/)|([.#]?[a-zA-Z0-9_-]+)(\s*\{)|([a-zA-Z-]+)(\s*:)([^;{}]*)(;)/g,(b,O,q,H,ee,ge,K,fe)=>O?D("text-zinc-500 italic",b):q?D("text-emerald-400",q)+H:ee?D("text-sky-300",ee)+ge+D("text-amber-300",K)+fe:b)+`
707
+ `;const se=N==="jsx"?"const|let|var|function|return|if|else|for|while|useCurrentFrame|useVideoConfig|interpolate|spring|AbsoluteFill|Sequence":"const|let|var|function|return|if|else|for|while|window|document|Math",ue=new Set(se.split("|"));return T.replace(/(\/\/[^\n]*)|(\/\*[\s\S]*?\*\/)|('(?:[^'\\\n]|\\.)*'|"(?:[^"\\\n]|\\.)*"|`(?:[^`\\]|\\.)*`)|\b([A-Za-z_$][\w$]*)\b|\b(\d+(?:\.\d+)?)\b|(&lt;\/?[A-Za-z0-9.-]+|\/?&gt;)/g,(b,O,q,H,ee,ge,K)=>O||q?D("text-zinc-500 italic",b):H?D("text-amber-300",b):K?D("text-rose-400",b):ge?D("text-emerald-400",b):ee&&ue.has(ee)?D(N==="jsx"?"text-sky-400 font-medium":"text-purple-400 font-medium",ee):b)+`
708
+ `},[y,N]);return o.jsxs("div",{className:"relative flex-1 flex bg-[#0d0e11] font-mono text-[13px] leading-[22px] overflow-hidden select-none",children:[o.jsx("div",{ref:C,className:"w-12 py-3 bg-[#0a0b0d] border-r border-zinc-800/80 text-right pr-3 text-zinc-600 overflow-hidden shrink-0",children:B.map((T,D)=>o.jsx("div",{className:"h-[22px]",children:D+1},D))}),o.jsxs("div",{className:"relative flex-1 h-full overflow-hidden",children:[o.jsx("pre",{ref:w,"aria-hidden":"true",className:"absolute inset-0 m-0 p-3 pointer-events-none whitespace-pre overflow-hidden text-zinc-200 font-mono text-[13px] leading-[22px]",dangerouslySetInnerHTML:{__html:X}}),o.jsx("textarea",{ref:h,value:y,onChange:T=>c(T.target.value),onScroll:F,onKeyDown:W,spellCheck:!1,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:"absolute inset-0 w-full h-full m-0 p-3 bg-transparent text-transparent caret-sky-400 resize-none border-0 outline-none whitespace-pre overflow-auto font-mono text-[13px] leading-[22px] selection:bg-sky-500/30"})]})]})}const ec=[{id:"html",label:"index.html",badge:"HTML",color:"text-orange-400",mode:"html"},{id:"css",label:"style.css",badge:"CSS",color:"text-sky-400",mode:"html"},{id:"js",label:"animation.js",badge:"JS",color:"text-amber-400",mode:"html"}],Gf={id:"jsx",label:"Composition.jsx",badge:"REACT",color:"text-cyan-400",mode:"react"};function Zf({editingScene:y,activeTab:N,onTab:c,onFormatCode:_,onCodeChange:h,runtimeError:w,onDismissError:C,onClose:B}){const F=(y==null?void 0:y.mode)==="react"?[Gf,...ec]:ec;return o.jsxs("section",{className:"flex-1 flex flex-col min-w-0 border-r border-zinc-800/80 bg-[#0d0e11]",children:[o.jsxs("div",{className:"h-10 bg-[#0a0b0d] border-b border-zinc-800/80 px-3 flex items-center justify-between shrink-0",children:[o.jsx("div",{className:"flex items-center gap-1",children:F.map(W=>o.jsxs("button",{onClick:()=>c(W),className:`px-3 py-1.5 rounded-md text-xs font-mono flex items-center gap-2 transition-colors ${N===W.id?"bg-zinc-800/90 text-zinc-100":"text-zinc-500 hover:text-zinc-300 hover:bg-zinc-900/60"}`,children:[o.jsx("span",{className:`text-[10px] font-bold ${W.color}`,children:W.badge}),o.jsx("span",{children:W.label})]},W.id))}),o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsxs("button",{onClick:_,className:"px-2.5 py-1 rounded-md hover:bg-zinc-800 text-[11px] text-zinc-400 hover:text-zinc-200 flex items-center gap-1.5 transition-colors",title:"Rapikan Kode (Shift+Alt+F)",children:[o.jsx(oc,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"Format"})]}),o.jsx("button",{onClick:B,className:"p-1.5 rounded-md hover:bg-zinc-800 text-zinc-400 hover:text-zinc-200 transition-colors",title:"Tutup Code Editor",children:o.jsx(Cf,{className:"w-3.5 h-3.5"})})]})]}),w&&o.jsxs("div",{className:"bg-red-950/80 border-b border-red-800/80 px-3 py-1.5 text-xs text-red-200 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2 font-mono min-w-0",children:[o.jsx(ic,{className:"w-3.5 h-3.5 text-red-400 shrink-0"}),o.jsxs("span",{className:"truncate",children:["Runtime Error: ",w]})]}),o.jsx("button",{onClick:C,className:"text-red-400 hover:text-white ml-2",children:o.jsx(il,{className:"w-3.5 h-3.5"})})]}),y&&o.jsx(Xf,{code:y[N]||"",language:N,onChange:h,onFormat:_})]})}function qf({iframeRef:y,srcDoc:N,onIframeLoad:c,previewContainerRef:_,resolution:h,onResolutionChange:w,fps:C,onFpsChange:B,previewZoom:F,onZoomChange:W,computedScale:X,currentTime:T,totalDuration:D,totalFrames:se,currentFrame:ue,isPlaying:G,onTogglePlay:b,onSetTime:O,isMuted:q,onToggleMute:H,activeSegmentName:ee,expanded:ge=!1}){return o.jsxs("section",{className:`${ge?"flex-1":"w-[44%] max-w-[760px] min-w-[340px]"} bg-[#08090b] flex flex-col shrink-0`,children:[o.jsxs("div",{className:"h-9 bg-[#0b0c0e] border-b border-zinc-800/90 px-3 flex items-center justify-between text-xs shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[o.jsx(vf,{className:"w-3.5 h-3.5 text-sky-400 shrink-0"}),o.jsx("span",{className:"font-medium text-zinc-300",children:"Live Preview"}),o.jsxs("span",{className:"text-[11px] font-mono text-zinc-500 truncate",children:["(",ee,")"]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("select",{value:`${h.width}x${h.height}`,onChange:K=>w($f[K.target.value]),className:"bg-zinc-900 border border-zinc-800 rounded px-1.5 py-0.5 text-[11px] font-mono text-zinc-300 outline-none",children:[o.jsx("option",{value:"1280x720",children:"1280×720 (720p)"}),o.jsx("option",{value:"1920x1080",children:"1920×1080 (1080p)"}),o.jsx("option",{value:"3840x2160",children:"3840×2160 (4K)"}),o.jsx("option",{value:"1080x1920",children:"1080×1920 (9:16)"}),o.jsx("option",{value:"1080x1080",children:"1080×1080 (1:1)"})]}),o.jsxs("select",{value:C,onChange:K=>B(Number(K.target.value)),className:"bg-zinc-900 border border-zinc-800 rounded px-1.5 py-0.5 text-[11px] font-mono text-zinc-300 outline-none",children:[o.jsx("option",{value:24,children:"24 FPS"}),o.jsx("option",{value:30,children:"30 FPS"}),o.jsx("option",{value:60,children:"60 FPS"})]}),o.jsxs("select",{value:F,onChange:K=>W(K.target.value),className:"bg-zinc-900 border border-zinc-800 rounded px-1.5 py-0.5 text-[11px] font-mono text-zinc-300 outline-none",children:[o.jsx("option",{value:"fit",children:"Fit"}),o.jsx("option",{value:"0.25",children:"25%"}),o.jsx("option",{value:"0.5",children:"50%"}),o.jsx("option",{value:"0.75",children:"75%"})]})]})]}),o.jsx("div",{ref:_,className:"flex-1 relative flex items-center justify-center overflow-hidden bg-[#060608] p-4",style:{backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0)",backgroundSize:"20px 20px"},children:o.jsx("div",{style:{width:h.width*X,height:h.height*X},className:"relative shadow-2xl border border-zinc-800 bg-black overflow-hidden shrink-0",children:o.jsx("iframe",{ref:y,title:"CodeMotion Live Video Sandbox",srcDoc:N,onLoad:c,sandbox:"allow-scripts",style:{width:h.width,height:h.height,transform:`scale(${X})`,transformOrigin:"top left",border:"none",display:"block"}})})}),o.jsxs("div",{className:"h-11 bg-[#0b0c0e] border-t border-zinc-800/90 px-4 flex items-center justify-between shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-3 font-mono text-xs",children:[o.jsx("span",{className:"text-sky-400 font-semibold",children:Zu(T,C)}),o.jsx("span",{className:"text-zinc-600",children:"/"}),o.jsx("span",{className:"text-zinc-400",children:Zu(D,C)}),o.jsxs("span",{className:"px-1.5 py-0.5 rounded bg-zinc-900 border border-zinc-800 text-[10px] text-zinc-400",children:["F:",ue,"/",se]})]}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("button",{onClick:()=>{b(!1),O(0)},className:"p-1.5 rounded hover:bg-zinc-800 text-zinc-400 hover:text-zinc-100",title:"Ke Awal (00:00)",children:o.jsx(Tf,{className:"w-4 h-4"})}),o.jsx("button",{onClick:()=>O(Math.max(0,T-1/C)),className:"px-2 py-1 rounded hover:bg-zinc-800 text-[11px] font-mono text-zinc-400 hover:text-zinc-100",title:"Mundur 1 Frame",children:"-1F"}),o.jsx("button",{onClick:()=>b(!G),className:"w-8 h-8 rounded-full bg-sky-500 hover:bg-sky-400 text-zinc-950 flex items-center justify-center transition-colors",title:G?"Pause":"Play",children:G?o.jsx(sc,{className:"w-4 h-4 fill-current"}):o.jsx(ac,{className:"w-4 h-4 fill-current ml-0.5"})}),o.jsx("button",{onClick:()=>O(Math.min(D,T+1/C)),className:"px-2 py-1 rounded hover:bg-zinc-800 text-[11px] font-mono text-zinc-400 hover:text-zinc-100",title:"Maju 1 Frame",children:"+1F"}),o.jsx("button",{onClick:()=>{b(!1),O(D)},className:"p-1.5 rounded hover:bg-zinc-800 text-zinc-400 hover:text-zinc-100",title:"Ke Akhir",children:o.jsx(Lf,{className:"w-4 h-4"})})]}),o.jsx("div",{className:"flex items-center gap-2",children:o.jsx("button",{onClick:H,className:"p-1.5 rounded hover:bg-zinc-800 text-zinc-400 hover:text-zinc-200",title:q?"Unmute Audio":"Mute Audio",children:q?o.jsx(If,{className:"w-4 h-4 text-red-400"}):o.jsx(pc,{className:"w-4 h-4"})})})]})]})}function ep({scenes:y,timelineSegments:N,editingScene:c,totalDuration:_,totalFrames:h,currentTime:w,audioTrack:C,onSetTime:B,onAddScene:F,onAddAudio:W,onSelectScene:X,onMoveScene:T,onReorderScene:D,onUpdateScene:se,onTidyScenes:ue,onRemoveAudio:G}){const[b,O]=M.useState(56),[q,H]=M.useState(null),[ee,ge]=M.useState(null),K=M.useRef(null),fe=Math.max(_*b+120,400),Ee=ne=>{if(!K.current)return;const de=K.current.getBoundingClientRect(),_e=Math.max(0,ne.clientX-de.left+K.current.scrollLeft),je=Math.min(_,_e/b);B(je)},Ge=(ne,de)=>{ne.stopPropagation(),ne.preventDefault();const _e=ne.clientX,je=de.duration,De=Ae=>{const Ne=Ae.clientX-_e,R=je+Ne/b,Q=Math.max(.5,Math.min(120,Math.round(R*2)/2));se==null||se(de.id,{duration:Q})},he=()=>{window.removeEventListener("mousemove",De),window.removeEventListener("mouseup",he)};window.addEventListener("mousemove",De),window.addEventListener("mouseup",he)};return o.jsxs("footer",{className:"h-56 bg-[#0a0b0d] border-t border-zinc-800/90 flex flex-col shrink-0",children:[o.jsxs("div",{className:"h-8 bg-[#0d0e11] border-b border-zinc-800/80 px-3 flex items-center justify-between text-xs shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("span",{className:"font-semibold text-zinc-300 flex items-center gap-1.5",children:[o.jsx(Ff,{className:"w-3.5 h-3.5 text-sky-400"}),o.jsx("span",{children:"Timeline"})]}),o.jsxs("button",{onClick:F,className:"px-2 py-0.5 rounded bg-zinc-800 hover:bg-zinc-700 text-zinc-200 text-[11px] flex items-center gap-1",children:[o.jsx(uc,{className:"w-3 h-3 text-sky-400"}),o.jsx("span",{children:"Add Scene"})]}),o.jsxs("button",{onClick:W,className:"px-2 py-0.5 rounded bg-zinc-800 hover:bg-zinc-700 text-zinc-200 text-[11px] flex items-center gap-1",children:[o.jsx(Gu,{className:"w-3 h-3 text-emerald-400"}),o.jsx("span",{children:"Add Audio"})]}),o.jsxs("button",{onClick:ue,className:"px-2 py-0.5 rounded bg-zinc-800 hover:bg-zinc-700 text-zinc-200 text-[11px] flex items-center gap-1",title:"Rapikan nomor urut & kode semua scene",children:[o.jsx(dc,{className:"w-3 h-3 text-amber-400"}),o.jsx("span",{children:"Rapikan Scene"})]})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("div",{className:"flex items-center gap-1 bg-zinc-900 border border-zinc-800 rounded px-1.5 py-0.5",children:[o.jsx("button",{onClick:()=>O(ne=>Math.max(24,ne-12)),className:"p-0.5 text-zinc-400 hover:text-zinc-100",title:"Zoom Out Timeline",children:o.jsx(Af,{className:"w-3 h-3"})}),o.jsxs("span",{className:"text-[10px] font-mono text-zinc-400 w-11 text-center",children:[b,"px/s"]}),o.jsx("button",{onClick:()=>O(ne=>Math.min(140,ne+12)),className:"p-0.5 text-zinc-400 hover:text-zinc-100",title:"Zoom In Timeline",children:o.jsx(Df,{className:"w-3 h-3"})})]}),o.jsxs("div",{className:"text-[11px] font-mono text-zinc-500",children:["Total Durasi: ",o.jsxs("span",{className:"text-zinc-300",children:[_.toFixed(1),"s"]})," (",h," frames)"]})]})]}),o.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[o.jsxs("div",{className:"w-40 bg-[#0b0c0e] border-r border-zinc-800/90 flex flex-col shrink-0",children:[o.jsx("div",{className:"h-6 border-b border-zinc-800/80 px-3 flex items-center text-[10px] font-mono text-zinc-500",children:"TIMECODE RULER"}),o.jsxs("div",{className:"h-20 border-b border-zinc-800/80 px-3 flex flex-col justify-center",children:[o.jsxs("div",{className:"text-xs font-medium text-zinc-200 flex items-center gap-1.5",children:[o.jsx(Si,{className:"w-3.5 h-3.5 text-sky-400"}),o.jsx("span",{children:"Video Scenes"})]}),o.jsx("span",{className:"text-[10px] text-zinc-500 mt-0.5",children:"Drag geser / resize"})]}),o.jsxs("div",{className:"flex-1 px-3 flex flex-col justify-center",children:[o.jsxs("div",{className:"text-xs font-medium text-zinc-300 flex items-center gap-1.5",children:[o.jsx(Gu,{className:"w-3.5 h-3.5 text-emerald-400"}),o.jsx("span",{children:"Audio Track"})]}),o.jsx("span",{className:"text-[10px] text-zinc-500 truncate mt-0.5",children:C?C.name:"No audio loaded"})]})]}),o.jsx("div",{ref:K,className:"flex-1 relative overflow-x-auto overflow-y-hidden bg-[#08090b] cursor-pointer",onClick:Ee,children:o.jsxs("div",{style:{width:fe,minWidth:"100%"},className:"h-full relative flex flex-col",children:[o.jsx("div",{className:"h-6 border-b border-zinc-800/80 relative flex items-end select-none bg-[#0b0c0e] shrink-0",children:Array.from({length:Math.ceil(_)+2}).map((ne,de)=>o.jsxs("div",{style:{left:de*b},className:"absolute bottom-0 flex flex-col items-start",children:[o.jsxs("span",{className:"text-[9px] font-mono text-zinc-500 mb-0.5 pl-1",children:[de,"s"]}),o.jsx("div",{className:"w-px h-2 bg-zinc-700"})]},de))}),o.jsx("div",{className:"h-20 border-b border-zinc-800/80 p-1.5 flex items-center gap-1 relative shrink-0",children:N.map((ne,de)=>{const _e=Math.max(76,ne.duration*b-4),je=ne.id===(c==null?void 0:c.id),De=ee===de&&q!==null&&q!==de;return o.jsxs("div",{draggable:!0,onDragStart:he=>{H(de),he.dataTransfer.effectAllowed="move"},onDragOver:he=>{he.preventDefault(),ee!==de&&ge(de)},onDragLeave:()=>{ee===de&&ge(null)},onDrop:he=>{he.preventDefault(),he.stopPropagation(),q!==null&&q!==de&&(D==null||D(q,de)),H(null),ge(null)},onDragEnd:()=>{H(null),ge(null)},style:{width:_e},onClick:he=>{he.stopPropagation(),X(ne)},className:`relative h-full rounded px-2.5 py-1.5 flex flex-col justify-between transition-colors overflow-hidden border shrink-0 cursor-grab active:cursor-grabbing ${je?"bg-sky-950/60 border-sky-500 text-sky-100":"bg-zinc-900/90 border-zinc-700/80 text-zinc-300 hover:border-zinc-500"} ${De?"ring-2 ring-sky-400":""}`,children:[o.jsxs("div",{className:"flex items-center justify-between gap-1",children:[o.jsxs("div",{className:"flex items-center gap-1 min-w-0",children:[o.jsx(wf,{className:"w-3 h-3 text-zinc-500 shrink-0"}),o.jsx("span",{className:"text-[11px] font-mono font-semibold truncate",children:ne.name})]}),o.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[de>0&&o.jsx("button",{onClick:he=>{he.stopPropagation(),T(de,-1)},className:"px-1 rounded hover:bg-zinc-800 text-[10px] text-zinc-400",title:"Geser Kiri",children:"◀"}),de<y.length-1&&o.jsx("button",{onClick:he=>{he.stopPropagation(),T(de,1)},className:"px-1 rounded hover:bg-zinc-800 text-[10px] text-zinc-400",title:"Geser Kanan",children:"▶"})]})]}),o.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono text-zinc-400 pr-1",children:[o.jsxs("span",{children:[ne.duration,"s"]}),ne.transition!=="none"&&o.jsx("span",{className:"px-1.5 py-0.2 rounded bg-zinc-800 text-sky-300 truncate max-w-[70px]",children:ne.transition})]}),o.jsx("div",{onMouseDown:he=>Ge(he,ne),onClick:he=>he.stopPropagation(),title:"Tarik untuk ubah durasi scene",className:"absolute top-0 right-0 bottom-0 w-2 cursor-ew-resize hover:bg-sky-400/50 transition-colors"})]},ne.id)})}),o.jsx("div",{className:"flex-1 p-1.5 flex items-center",children:C?o.jsxs("div",{style:{width:Math.max(240,_*b)},className:"h-10 rounded bg-emerald-950/40 border border-emerald-700/60 px-3 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-emerald-300 truncate",children:[o.jsx(pc,{className:"w-3.5 h-3.5 shrink-0"}),o.jsx("span",{className:"truncate",children:C.name})]}),o.jsx("button",{onClick:ne=>{ne.stopPropagation(),G()},className:"text-emerald-400 hover:text-red-400 ml-2",title:"Hapus Audio",children:o.jsx(xs,{className:"w-3.5 h-3.5"})})]}):o.jsx("div",{onClick:ne=>{ne.stopPropagation(),W()},style:{width:Math.max(280,_*b)},className:"h-10 rounded border border-dashed border-zinc-800 hover:border-zinc-700 flex items-center justify-center text-[11px] text-zinc-600 hover:text-zinc-400 transition-colors",children:"+ Klik untuk menambahkan trek audio (MP3 / WAV)"})}),o.jsx("div",{style:{left:w*b},className:"absolute top-0 bottom-0 w-0.5 bg-rose-500 pointer-events-none z-20",children:o.jsx("div",{className:"w-3 h-3 bg-rose-500 -translate-x-[5px] rotate-45 -mt-1.5"})})]})})]})]})}function tp({open:y,onClose:N,renderConfig:c,onRenderConfig:_,renderState:h,rendererOnline:w,onRender:C,onCancel:B,totalDuration:F}){return y?o.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 flex items-center justify-center p-4",children:o.jsxs("div",{className:"w-full max-w-lg bg-[#0e1014] border border-zinc-800 rounded-lg shadow-2xl overflow-hidden",children:[o.jsxs("div",{className:"px-5 py-3.5 border-b border-zinc-800 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(hf,{className:"w-4 h-4 text-sky-400"}),o.jsx("h3",{className:"text-sm font-semibold text-zinc-100",children:"Render Video (HTML → MP4)"})]}),!h.isRendering&&o.jsx("button",{onClick:N,className:"text-zinc-500 hover:text-zinc-200",children:o.jsx(il,{className:"w-4 h-4"})})]}),o.jsxs("div",{className:"p-5 space-y-4 text-xs",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-zinc-400 mb-1.5",children:"Resolusi Output"}),o.jsxs("select",{disabled:h.isRendering,value:c.resolution,onChange:W=>_({...c,resolution:W.target.value}),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-3 py-2 text-zinc-100 outline-none",children:[o.jsx("option",{value:"720p",children:"720p HD (1280×720)"}),o.jsx("option",{value:"1080p",children:"1080p Full HD (1920×1080)"}),o.jsx("option",{value:"4K",children:"4K Ultra HD (3840×2160)"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-zinc-400 mb-1.5",children:"Frame Rate (FPS)"}),o.jsxs("select",{disabled:h.isRendering,value:c.fps,onChange:W=>_({...c,fps:Number(W.target.value)}),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-3 py-2 text-zinc-100 outline-none",children:[o.jsx("option",{value:24,children:"24 FPS (Cinema)"}),o.jsx("option",{value:30,children:"30 FPS (Standard)"}),o.jsx("option",{value:60,children:"60 FPS (Smooth Motion)"})]})]})]}),o.jsxs("div",{className:"p-3 rounded bg-zinc-900/90 border border-zinc-800 font-mono text-[11px] space-y-1 text-zinc-400",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Pipeline:"}),o.jsx("span",{className:"text-zinc-200",children:"Puppeteer frames → FFmpeg H.264"})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Total Frame:"}),o.jsxs("span",{className:"text-sky-400",children:[Math.round(F*c.fps)," frames (",F.toFixed(1),"s)"]})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Renderer Lokal:"}),o.jsx("span",{className:w?"text-emerald-400":"text-amber-400",children:w?"Siap (npm run dev)":"Offline"})]})]}),(h.isRendering||h.progress>0)&&o.jsxs("div",{className:"space-y-2 pt-1",children:[o.jsxs("div",{className:"flex justify-between text-[11px] font-mono gap-3",children:[o.jsx("span",{className:"text-zinc-300 truncate",children:h.stage}),o.jsxs("span",{className:"text-sky-400 font-semibold shrink-0",children:[h.progress,"%"]})]}),o.jsx("div",{className:"w-full h-2 bg-zinc-800 rounded-full overflow-hidden",children:o.jsx("div",{style:{width:`${h.progress}%`},className:"h-full bg-sky-500 transition-all duration-150"})})]}),h.outputUrl&&!h.isRendering&&o.jsxs("div",{className:"p-3 rounded bg-emerald-950/40 border border-emerald-800/70 flex items-center justify-between gap-3",children:[o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"font-semibold text-emerald-300",children:"Video Siap"}),o.jsx("div",{className:"text-[11px] font-mono text-emerald-400/80 truncate",children:h.outputPath||h.outputFilename})]}),o.jsxs("a",{href:h.outputUrl,download:h.outputFilename,className:"px-3 py-1.5 rounded bg-emerald-500 hover:bg-emerald-400 text-zinc-950 font-semibold flex items-center gap-1.5 shrink-0",children:[o.jsx(xf,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"Download"})]})]})]}),o.jsx("div",{className:"px-5 py-3 bg-[#0a0b0e] border-t border-zinc-800 flex items-center justify-between gap-2",children:h.isRendering?o.jsx("button",{onClick:B,className:"ml-auto px-4 py-1.5 rounded bg-red-600 hover:bg-red-500 text-white text-xs font-medium",children:"Cancel Render"}):o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:N,className:"px-3.5 py-1.5 rounded bg-zinc-800 hover:bg-zinc-700 text-zinc-300 text-xs",children:"Tutup"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("span",{className:"hidden sm:flex items-center gap-1 text-[11px] font-mono text-zinc-500",children:[o.jsx(Mf,{className:"w-3 h-3"}),"npm run render"]}),o.jsxs("button",{onClick:C,disabled:!w,className:"px-4 py-1.5 rounded bg-sky-500 hover:bg-sky-400 disabled:opacity-40 text-zinc-950 font-semibold text-xs flex items-center gap-1.5",children:[o.jsx(Si,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"Render MP4"})]})]})]})})]})}):null}const np={info:"text-sky-400",success:"text-emerald-400",warn:"text-amber-400",error:"text-red-400"};function rp({open:y,logs:N,onClear:c,onClose:_}){const h=M.useRef(null);return M.useEffect(()=>{y&&h.current&&h.current.scrollIntoView({behavior:"smooth"})},[y,N]),y?o.jsxs("section",{className:"h-40 bg-[#08090b] border-t border-zinc-800/90 flex flex-col shrink-0",children:[o.jsxs("div",{className:"h-8 bg-[#0c0d10] border-b border-zinc-800/80 px-3 flex items-center justify-between text-xs shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-2 text-zinc-300 font-medium",children:[o.jsx(fc,{className:"w-3.5 h-3.5 text-sky-400"}),o.jsx("span",{children:"Studio Logs"}),o.jsxs("span",{className:"text-[10px] font-mono text-zinc-500",children:["(",N.length,")"]})]}),o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsxs("button",{onClick:c,className:"px-2 py-0.5 rounded hover:bg-zinc-800 text-[11px] text-zinc-400 hover:text-zinc-200 flex items-center gap-1",title:"Bersihkan Log",children:[o.jsx(xs,{className:"w-3 h-3"}),o.jsx("span",{children:"Clear"})]}),o.jsx("button",{onClick:_,className:"p-1 rounded hover:bg-zinc-800 text-zinc-400 hover:text-zinc-200",title:"Tutup Logs",children:o.jsx(il,{className:"w-3.5 h-3.5"})})]})]}),o.jsxs("div",{className:"flex-1 overflow-y-auto p-2.5 font-mono text-[11px] space-y-1",children:[N.length===0?o.jsx("div",{className:"text-zinc-600 italic",children:"Belum ada log aktivitas."}):N.map(w=>o.jsxs("div",{className:"flex items-start gap-2 leading-relaxed",children:[o.jsxs("span",{className:"text-zinc-600 shrink-0",children:["[",w.time,"]"]}),o.jsx("span",{className:`uppercase font-bold w-14 shrink-0 ${np[w.level]||"text-zinc-400"}`,children:w.level}),o.jsx("span",{className:"text-zinc-300 break-all",children:w.message})]},w.id)),o.jsx("div",{ref:h})]})]}):null}function lp(y){const N=y.match(/```(?:json)?\s*([\s\S]*?)```/i),c=N?N[1].trim():y.trim(),_=c.indexOf("{"),h=c.lastIndexOf("}");if(_===-1||h===-1||h<=_)return null;try{const w=JSON.parse(c.slice(_,h+1));if(w&&(w.html||w.css||w.js||Array.isArray(w.scenes)))return w}catch{return null}return null}function ip({open:y,onClose:N,aiConfig:c,onOpenSettings:_,resolution:h,fps:w,editingScene:C,onApplyAiAction:B,onLog:F}){const[W,X]=M.useState(""),[T,D]=M.useState(!1),[se,ue]=M.useState([{id:"welcome",role:"assistant",text:"Halo! Saya AI Agent CodeMotion. Deskripsikan animasi video HTML/CSS/JS yang ingin dibuat, lalu saya akan langsung menerapkannya ke scene."}]),G=M.useRef(null);if(M.useEffect(()=>{var H;(H=G.current)==null||H.scrollIntoView({behavior:"smooth"})},[se,T]),!y)return null;const b=!c.apiKey&&!String(c.baseUrl||"").includes("localhost")&&!String(c.baseUrl||"").includes("127.0.0.1"),O=()=>`You are CodeMotion AI Agent, an expert HTML/CSS/JS motion designer.
709
+ Canvas resolution: ${h.width}x${h.height}px at ${w} FPS.
710
+ Current active scene: "${(C==null?void 0:C.name)||"Scene"}" (duration: ${(C==null?void 0:C.duration)||4}s).
711
+
712
+ HOW CODEMOTION VIDEO RUNTIME WORKS:
713
+ - CSS variables updated every frame: --time (seconds, 0..duration), --progress (0..1), --frame (integer).
714
+ - JS hook called every frame: window.onFrameUpdate = (time, progress, frame, fps) => { ... };
715
+ - Do NOT use wall-clock CSS @keyframes or setTimeout/requestAnimationFrame for motion; drive all motion deterministically from --time, --progress, or window.onFrameUpdate().
716
+ - Body size must fit ${h.width}x${h.height}px with overflow: hidden.
717
+
718
+ RESPONSE FORMAT:
719
+ Reply briefly in Indonesian explaining what you made, followed by ONE \`\`\`json code block with this exact schema:
720
+ {
721
+ "action": "update_scene" | "add_scene",
722
+ "name": "Scene_Name",
723
+ "duration": 4,
724
+ "transition": "fade" | "slide-left" | "slide-up" | "zoom" | "none",
725
+ "html": "<div class=\\"stage\\">...</div>",
726
+ "css": "* { box-sizing: border-box; margin: 0; padding: 0; } ...",
727
+ "js": "window.onFrameUpdate = (time, progress, frame, fps) => { ... };"
728
+ }`,q=async H=>{const ee=(H??W).trim();if(!ee||T)return;if(b){_==null||_();return}const ge={id:`u-${Date.now()}`,role:"user",text:ee};ue(K=>[...K,ge]),H||X(""),D(!0),F==null||F("info",`AI Agent: "${ee.slice(0,60)}"`);try{const K=[{role:"system",content:O()},...se.slice(-6).map(je=>({role:je.role,content:je.text})),{role:"user",content:ee}],fe=await fetch("/api/ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:c.provider,baseUrl:c.baseUrl,apiKey:c.apiKey,model:c.model,messages:K})}),Ee=await fe.json();if(!fe.ok)throw new Error(Ee.error||`HTTP ${fe.status}`);const Ge=Ee.reply||"",ne=lp(Ge),de=Ge.replace(/```(?:json)?[\s\S]*?```/i,"").trim()||"Animasi selesai dibuat.";let _e=!1;ne&&(B==null||B(ne),_e=!0),ue(je=>[...je,{id:`a-${Date.now()}`,role:"assistant",text:de,actionData:ne,applied:_e}]),F==null||F("success",_e?"AI Agent menerapkan animasi ke scene":"AI Agent membalas")}catch(K){const fe=(K==null?void 0:K.message)||String(K);ue(Ee=>[...Ee,{id:`e-${Date.now()}`,role:"assistant",text:`Error: ${fe}`,isError:!0}]),F==null||F("error",`AI Agent error: ${fe}`)}finally{D(!1)}};return o.jsxs("aside",{className:"w-80 bg-[#0b0c0e] border-l border-zinc-800/90 flex flex-col shrink-0",children:[o.jsxs("div",{className:"h-10 bg-[#0c0d10] border-b border-zinc-800/80 px-3 flex items-center justify-between shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-zinc-200 min-w-0",children:[o.jsx(lc,{className:"w-4 h-4 text-sky-400 shrink-0"}),o.jsx("span",{children:"AI Agent"}),o.jsx("span",{className:"text-[10px] font-mono text-zinc-500 truncate",children:c.model})]}),o.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[o.jsx("button",{onClick:_,className:"p-1.5 rounded hover:bg-zinc-800 text-zinc-400 hover:text-sky-400 transition-colors",title:"Atur API AI di Settings",children:o.jsx(Pf,{className:"w-3.5 h-3.5"})}),o.jsx("button",{onClick:N,className:"p-1.5 rounded hover:bg-zinc-800 text-zinc-400 hover:text-zinc-200",title:"Tutup AI Chat",children:o.jsx(il,{className:"w-3.5 h-3.5"})})]})]}),b&&o.jsxs("div",{className:"px-3 py-2 bg-amber-950/50 border-b border-amber-800/60 flex items-center justify-between gap-2 text-[11px] text-amber-200 shrink-0",children:[o.jsx("span",{children:"API Key belum diatur."}),o.jsx("button",{onClick:_,className:"px-2 py-0.5 rounded bg-amber-500/20 hover:bg-amber-500/30 text-amber-300 font-medium shrink-0",children:"Buka Settings"})]}),o.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-3 text-xs select-text",children:[se.map(H=>o.jsxs("div",{className:`p-2.5 rounded-lg leading-relaxed ${H.role==="user"?"bg-sky-500/15 border border-sky-500/30 text-sky-100 ml-6":H.isError?"bg-red-950/60 border border-red-800/70 text-red-200 mr-4":"bg-zinc-900/90 border border-zinc-800 text-zinc-300 mr-4"}`,children:[o.jsx("p",{className:"whitespace-pre-wrap",children:H.text}),H.actionData&&o.jsxs("div",{className:"mt-2 pt-2 border-t border-zinc-800 flex items-center justify-between",children:[o.jsxs("span",{className:"text-[10px] font-mono text-emerald-400 flex items-center gap-1",children:[o.jsx(pf,{className:"w-3 h-3"}),H.applied?"Diterapkan ke scene":"Siap diterapkan"]}),o.jsx("button",{onClick:()=>B==null?void 0:B(H.actionData),className:"px-2 py-0.5 rounded bg-sky-500/20 hover:bg-sky-500/30 text-sky-300 text-[10px] font-medium",children:"Terapkan Lagi"})]})]},H.id)),T&&o.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-xs px-1",children:[o.jsx(zf,{className:"w-3.5 h-3.5 animate-spin text-sky-400"}),o.jsx("span",{children:"AI sedang membuat animasi..."})]}),o.jsx("div",{ref:G})]}),o.jsx("div",{className:"px-3 pb-2 flex flex-wrap gap-1 shrink-0",children:["Intro teks neon","Kartu statistik 3 kolom","Scene penutup"].map(H=>o.jsxs("button",{onClick:()=>q(H),disabled:T,className:"px-2 py-1 rounded bg-zinc-900 hover:bg-zinc-800 border border-zinc-800 text-[10px] text-zinc-400 hover:text-zinc-200 flex items-center gap-1",children:[o.jsx(dc,{className:"w-2.5 h-2.5 text-sky-400"}),o.jsx("span",{children:H})]},H))}),o.jsxs("form",{onSubmit:H=>{H.preventDefault(),q()},className:"p-2.5 border-t border-zinc-800/80 bg-[#0a0b0d] flex items-center gap-2 shrink-0",children:[o.jsx("input",{type:"text",value:W,onChange:H=>X(H.target.value),placeholder:"Minta AI buat animasi...",className:"flex-1 bg-zinc-900 border border-zinc-800 focus:border-sky-500 rounded px-2.5 py-1.5 text-xs text-zinc-100 outline-none"}),o.jsx("button",{type:"submit",disabled:T||!W.trim(),className:"p-1.5 rounded bg-sky-500 hover:bg-sky-400 disabled:opacity-40 text-zinc-950 transition-colors",title:"Kirim ke AI Agent",children:o.jsx(Rf,{className:"w-3.5 h-3.5"})})]})]})}const tc={provider:"openai",baseUrl:"https://api.openai.com/v1/chat/completions",model:"gpt-4o-mini",apiKey:""},op=[{label:"OpenAI",provider:"openai",baseUrl:"https://api.openai.com/v1/chat/completions",model:"gpt-4o-mini"},{label:"Gemini",provider:"gemini",baseUrl:"",model:"gemini-2.5-flash"},{label:"Groq",provider:"openai",baseUrl:"https://api.groq.com/openai/v1/chat/completions",model:"llama-3.3-70b-versatile"},{label:"OpenRouter",provider:"openai",baseUrl:"https://openrouter.ai/api/v1/chat/completions",model:"openai/gpt-4o-mini"},{label:"Ollama (Local)",provider:"openai",baseUrl:"http://localhost:11434/v1/chat/completions",model:"llama3.2"}];function sp({open:y,onClose:N,aiConfig:c,onChangeAiConfig:_}){return y?o.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:o.jsxs("div",{className:"w-full max-w-md bg-[#111216] border border-zinc-800 rounded-lg shadow-2xl overflow-hidden",children:[o.jsxs("div",{className:"px-5 py-3.5 border-b border-zinc-800 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(cc,{className:"w-4 h-4 text-sky-400"}),o.jsx("h2",{className:"font-semibold text-sm text-zinc-100",children:"Settings — API AI"})]}),o.jsx("button",{onClick:N,className:"text-zinc-500 hover:text-zinc-200",children:o.jsx(il,{className:"w-4 h-4"})})]}),o.jsxs("div",{className:"p-5 space-y-4 text-xs",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] font-medium text-zinc-400 mb-2",children:"Preset Provider"}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:op.map(h=>o.jsx("button",{onClick:()=>_(w=>({...w,provider:h.provider,baseUrl:h.baseUrl,model:h.model})),className:"px-2.5 py-1 rounded bg-zinc-900 hover:bg-zinc-800 border border-zinc-800 text-[11px] text-zinc-200 transition-colors",children:h.label},h.label))})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] font-medium text-zinc-400 mb-1.5",children:"Provider"}),o.jsxs("select",{value:c.provider,onChange:h=>_(w=>({...w,provider:h.target.value})),className:"w-full bg-zinc-950 border border-zinc-800 rounded px-2.5 py-1.5 text-xs text-zinc-200 outline-none focus:border-sky-500",children:[o.jsx("option",{value:"openai",children:"OpenAI Compatible"}),o.jsx("option",{value:"gemini",children:"Google Gemini"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] font-medium text-zinc-400 mb-1.5",children:"Model"}),o.jsx("input",{type:"text",value:c.model,onChange:h=>_(w=>({...w,model:h.target.value})),className:"w-full bg-zinc-950 border border-zinc-800 rounded px-2.5 py-1.5 text-xs font-mono text-zinc-200 outline-none focus:border-sky-500"})]})]}),c.provider==="openai"&&o.jsxs("div",{children:[o.jsx("label",{className:"block text-[11px] font-medium text-zinc-400 mb-1.5",children:"API Endpoint URL"}),o.jsx("input",{type:"text",value:c.baseUrl,onChange:h=>_(w=>({...w,baseUrl:h.target.value})),className:"w-full bg-zinc-950 border border-zinc-800 rounded px-2.5 py-1.5 text-xs font-mono text-zinc-200 outline-none focus:border-sky-500"})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block text-[11px] font-medium text-zinc-400 mb-1.5 flex items-center gap-1.5",children:[o.jsx(Sf,{className:"w-3.5 h-3.5 text-sky-400"}),o.jsx("span",{children:"API Key"})]}),o.jsx("input",{type:"password",placeholder:"sk-... / AIza...",value:c.apiKey,onChange:h=>_(w=>({...w,apiKey:h.target.value})),className:"w-full bg-zinc-950 border border-zinc-800 rounded px-2.5 py-1.5 text-xs font-mono text-zinc-200 outline-none focus:border-sky-500"}),o.jsx("p",{className:"text-[11px] text-zinc-500 mt-1.5",children:"Disimpan lokal di browser (`localStorage`) dan dikirim lewat `/api/ai`."})]})]}),o.jsx("div",{className:"px-5 py-3 bg-[#0c0d10] border-t border-zinc-800 flex justify-end",children:o.jsx("button",{onClick:N,className:"px-4 py-1.5 rounded bg-sky-500 hover:bg-sky-400 text-zinc-950 font-semibold text-xs transition-colors",children:"Simpan & Tutup"})})]})}):null}const ap={id:"asset-demo-svg",name:"grid-overlay.svg",type:"image/svg+xml",category:"image",url:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="40" stroke="%2338bdf8" stroke-width="2" fill="none"/></svg>',size:"1.2 KB"},nc={isRendering:!1,progress:0,currentFrame:0,totalFrames:0,stage:"",outputUrl:null,outputFilename:"",outputPath:null},up=y=>new Promise((N,c)=>{const _=new FileReader;_.onload=()=>N(_.result),_.onerror=c,_.readAsDataURL(y)});function cp(){const[y,N]=M.useState("CodeMotion_Video"),[c,_]=M.useState(ki.resolution),[h,w]=M.useState(ki.fps),[C,B]=M.useState(ki.scenes),[F,W]=M.useState(ki.scenes[0].id),[X,T]=M.useState("html"),[D,se]=M.useState("explorer"),[ue,G]=M.useState(!0),[b,O]=M.useState(!1),[q,H]=M.useState(!1),[ee,ge]=M.useState(()=>{try{return{...tc,...JSON.parse(localStorage.getItem("codemotion_ai_config_v1")||"{}")}}catch{return tc}}),[K,fe]=M.useState(!1),[Ee,Ge]=M.useState(()=>[{id:"boot-1",time:new Date().toTimeString().slice(0,8),level:"info",message:"CodeMotion Studio siap (mode HTML / CSS / JS)"}]),[ne,de]=M.useState([]),[_e,je]=M.useState([]),[De,he]=M.useState([ap]),[Ae,Ne]=M.useState(null),[R,Q]=M.useState(!1),[P,f]=M.useState(0),[g,te]=M.useState(!1),[re,pe]=M.useState("fit"),[ce,we]=M.useState("Saved"),[ke,ze]=M.useState(!1),[Ye,Dn]=M.useState({resolution:"1080p",fps:30}),[ol,At]=M.useState(nc),[An,sl]=M.useState(!1),[kn,$n]=M.useState(null),[al,Sn]=M.useState(null),qt=M.useRef(null),it=M.useRef(null),jn=M.useRef(null),[Un,ul]=M.useState({width:640,height:360}),Vn=M.useRef(null),xr=M.useRef(null),Hn=M.useRef(null),$t=M.useRef(()=>{}),nt=M.useMemo(()=>{let v=0;return C.map((E,A)=>{const oe=v;return v+=E.duration,{...E,index:A,startTime:oe,endTime:v}})},[C]),pt=M.useMemo(()=>nt.reduce((v,E)=>v+E.duration,0),[nt]),Ut=Math.max(1,Math.round(pt*h)),ji=Math.min(Ut,Math.floor(P*h)),vr=M.useMemo(()=>nt.length?nt.find(v=>P>=v.startTime&&P<v.endTime)||nt[nt.length-1]:null,[nt,P]),xe=M.useMemo(()=>C.find(v=>v.id===F)||C[0],[C,F]),me=M.useMemo(()=>g?vr:nt.find(v=>v.id===(xe==null?void 0:xe.id))||nt[0],[g,vr,nt,xe]),mt=M.useCallback((v,E)=>{Ge(A=>[...A.slice(-199),{id:`${Date.now()}-${Math.random().toString(36).slice(2,6)}`,time:new Date().toTimeString().slice(0,8),level:v,message:E}])},[]),Re=M.useCallback((v,E="info")=>{$n({msg:v,type:E}),mt(E==="error"?"error":"info",v),setTimeout(()=>$n(null),3200)},[mt]);M.useEffect(()=>{try{localStorage.setItem("codemotion_ai_config_v1",JSON.stringify(ee))}catch{}},[ee]);const ot=M.useCallback(v=>{de(E=>[...E.slice(-19),JSON.parse(JSON.stringify(v))]),je([])},[]),yr=()=>{ne.length&&(je(v=>[...v,JSON.parse(JSON.stringify(C))]),B(ne[ne.length-1]),de(v=>v.slice(0,-1)),Re("Undo perubahan terakhir"))},gr=()=>{_e.length&&(de(v=>[...v,JSON.parse(JSON.stringify(C))]),B(_e[_e.length-1]),je(v=>v.slice(0,-1)),Re("Redo perubahan"))},ht=M.useCallback((v,E,A=!1)=>{we("Unsaved"),B(oe=>(A&&ot(oe),oe.map(Me=>Me.id===v?{...Me,...E}:Me)))},[ot]);M.useEffect(()=>{if(ce!=="Unsaved")return;const v=setTimeout(()=>{we("Saving..."),setTimeout(()=>we("Saved"),400)},1200);return()=>clearTimeout(v)},[ce,C,y]);const Vt=()=>{ot(C);const v=C.length+1,E=v<10?`0${v}`:`${v}`,A={id:`scene-${Date.now()}`,name:`${E}_HTML_Scene`,mode:"html",duration:4,transition:"fade",transitionDuration:.4,html:`<div class="scene-box">
729
+ <div class="kicker">SCENE ${E}</div>
730
+ <h1>Judul Scene ${v}</h1>
731
+ <p>Edit HTML, CSS, dan JS untuk mengatur animasi.</p>
732
+ </div>`,css:`* { box-sizing: border-box; margin: 0; padding: 0; }
733
+ body {
734
+ width: 100%;
735
+ height: 100%;
736
+ background: #09090b;
737
+ color: #fafafa;
738
+ font-family: system-ui, -apple-system, sans-serif;
739
+ display: flex;
740
+ align-items: center;
741
+ justify-content: center;
742
+ overflow: hidden;
743
+ }
744
+ .scene-box {
745
+ text-align: center;
746
+ opacity: clamp(0, calc(var(--time, 0) * 2.5), 1);
747
+ transform: translateY(calc((1 - clamp(0, calc(var(--time, 0) * 2.5), 1)) * 40px));
748
+ }
749
+ .kicker {
750
+ font-family: monospace;
751
+ font-size: 26px;
752
+ letter-spacing: 6px;
753
+ color: #38bdf8;
754
+ margin-bottom: 20px;
755
+ }
756
+ h1 { font-size: 112px; font-weight: 900; margin-bottom: 18px; }
757
+ p { font-size: 34px; color: #a1a1aa; }`,js:`window.onFrameUpdate = (time, progress, frame, fps) => {
758
+ // Kontrol animasi per frame di sini
759
+ };`};B([...C,A]),W(A.id),T("html"),Re(`Scene "${A.name}" ditambahkan`)},cl=v=>{const E=C.find(oe=>oe.id===v);if(!E)return;ot(C);const A={...JSON.parse(JSON.stringify(E)),id:`scene-${Date.now()}`,name:`${E.name}_copy`};B([...C,A]),W(A.id),Re("Scene berhasil diduplikasi")},dl=v=>{if(C.length<=1){Re("Minimal harus ada 1 scene dalam proyek","error");return}ot(C);const E=C.filter(A=>A.id!==v);B(E),F===v&&W(E[0].id),Re("Scene dihapus")},fl=(v,E)=>{const A=v+E;if(A<0||A>=C.length)return;ot(C);const oe=[...C],[Me]=oe.splice(v,1);oe.splice(A,0,Me),B(oe)},pl=(v,E)=>{if(v===E||v<0||E<0||v>=C.length||E>=C.length)return;ot(C);const A=[...C],[oe]=A.splice(v,1);A.splice(E,0,oe),B(A)},ml=()=>{ot(C);const v=A=>String(A||"").split(`
760
+ `).map(oe=>oe.trimEnd()).join(`
761
+ `).trim(),E=C.map((A,oe)=>{const Me=oe+1<10?`0${oe+1}`:`${oe+1}`,ie=String(A.name||"Scene").replace(/^\d+[_-\s]*/,"")||"Scene";return{...A,name:`${Me}_${ie}`,duration:Math.max(.5,Math.round((Number(A.duration)||4)*2)/2),html:v(A.html),css:v(A.css),js:v(A.js)}});B(E),Re(`${E.length} scene dirapikan`)},wr=v=>{if(v){if(ot(C),v.action==="add_scene"){const E=C.length+1,A=E<10?`0${E}`:`${E}`,oe=String(v.name||"AI_Scene").replace(/^\d+[_-\s]*/,""),Me={id:`scene-${Date.now()}`,name:`${A}_${oe}`,mode:"html",duration:Math.max(.5,Number(v.duration)||4),transition:v.transition||"fade",transitionDuration:.4,html:v.html||'<div class="stage"></div>',css:v.css||"",js:v.js||""};B(ie=>[...ie,Me]),W(Me.id),T("html"),Re(`AI menambahkan scene "${Me.name}"`);return}xe&&(ht(xe.id,{mode:"html",...v.name?{name:v.name}:{},...v.duration?{duration:Math.max(.5,Number(v.duration))}:{},...v.transition?{transition:v.transition}:{},...typeof v.html=="string"?{html:v.html}:{},...typeof v.css=="string"?{css:v.css}:{},...typeof v.js=="string"?{js:v.js}:{}}),T("html"),Re(`AI memperbarui scene "${xe.name}"`))}},kr=v=>{W(v.id),f(v.startTime)},en=v=>{T(v.id),xe&&ht(xe.id,{mode:v.mode})},Sr=()=>{if(!xe)return;const v=(xe[X]||"").split(`
762
+ `).map(E=>E.trimEnd()).join(`
763
+ `);ht(xe.id,{[X]:v},!0),Re("Kode dirapikan")},Nn=v=>{const E=ms[v];if(!E)return;ot(C);const A=JSON.parse(JSON.stringify(E.scenes));N(E.name.replace(/\s+/g,"_")),_(E.resolution),w(E.fps),B(A),W(A[0].id),T(A[0].mode==="react"?"jsx":"html"),f(0),te(!1),Re(`Template "${E.name}" diterapkan`)};M.useEffect(()=>{let v=!0;const E=async()=>{const oe=await Bf();v&&sl(oe)};E();const A=setInterval(E,5e3);return()=>{v=!1,clearInterval(A)}},[]),M.useEffect(()=>{if(!g){it.current&&it.current.pause();return}it.current&&Ae&&(it.current.currentTime=P%(it.current.duration||1),it.current.play().catch(()=>{}));let v=performance.now(),E;const A=oe=>{const Me=(oe-v)/1e3;v=oe,f(ie=>{const Pe=ie+Me;return Pe>=pt?(te(!1),0):Pe}),E=requestAnimationFrame(A)};return E=requestAnimationFrame(A),()=>cancelAnimationFrame(E)},[g,pt,Ae]);const Ni=M.useMemo(()=>me?Vf(me,{width:c.width,height:c.height,fps:h,assets:De,mode:"preview"}):"",[me==null?void 0:me.id,me==null?void 0:me.mode,me==null?void 0:me.duration,me==null?void 0:me.jsx,me==null?void 0:me.html,me==null?void 0:me.css,me==null?void 0:me.js,c.width,c.height,h,De]),Ht=M.useCallback(()=>{const v=qt.current;if(!v||!v.contentWindow||!me)return;const E=Math.min(Math.max(0,P-me.startTime),me.duration),A=Math.min(1,E/Math.max(.001,me.duration));v.contentWindow.postMessage({type:"SYNC_TIME",localTime:E,progress:A,frame:Math.floor(E*h),fps:h,transitionStyle:Hf(me,E)},"*")},[P,me,h]);$t.current=Ht,M.useEffect(()=>{Ht()},[Ht]),M.useEffect(()=>{const v=E=>{E.data&&(E.data.type==="IFRAME_ERROR"&&(Sn(E.data.message),mt("error",`Preview error: ${E.data.message}`)),E.data.type==="IFRAME_READY"&&$t.current())};return window.addEventListener("message",v),()=>window.removeEventListener("message",v)},[]),M.useEffect(()=>{Sn(null)},[xe==null?void 0:xe.jsx,xe==null?void 0:xe.html,xe==null?void 0:xe.css,xe==null?void 0:xe.js]),M.useEffect(()=>{if(!jn.current)return;const v=new ResizeObserver(E=>{for(const A of E)ul({width:A.contentRect.width,height:A.contentRect.height})});return v.observe(jn.current),()=>v.disconnect()},[]);const Bn=M.useMemo(()=>{if(re!=="fit")return Number(re);const v=Math.max(100,Un.width-48),E=Math.max(100,Un.height-48);return Math.min(v/c.width,E/c.height,1)},[re,Un,c]),Wn=async v=>{const E=Array.from(v.target.files||[]);if(E.length){for(const A of E){const oe=await up(A),Me=A.name.split(".").pop().toLowerCase();let ie="image";["mp3","wav","ogg","aac"].includes(Me)?ie="audio":["mp4","webm"].includes(Me)?ie="video":["ttf","otf","woff","woff2"].includes(Me)&&(ie="font");const Pe={id:`asset-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,name:A.name.replace(/\s+/g,"_"),type:A.type,category:ie,url:oe,size:`${(A.size/1024).toFixed(1)} KB`};he(Ct=>[...Ct,Pe]),ie==="audio"?(Ne({name:Pe.name,url:Pe.url,volume:1}),Re(`Audio "${Pe.name}" ditambahkan ke Timeline`)):Re(`Asset "${Pe.name}" berhasil diunggah`)}v.target.value=""}},jr=v=>{var E;(E=navigator.clipboard)==null||E.writeText(`asset://${v.name}`),Re(`Disalin: asset://${v.name}`)},zi=()=>{const v={app:"CodeMotion Studio",version:"2.0.0",projectName:y,resolution:c,fps:h,scenes:C,assets:De,exportedAt:new Date().toISOString()},E=new Blob([JSON.stringify(v,null,2)],{type:"application/json"}),A=URL.createObjectURL(E),oe=document.createElement("a");oe.href=A,oe.download=`${y.replace(/\s+/g,"_")}.framecode.json`,oe.click(),URL.revokeObjectURL(A),Re("File proyek (.framecode.json) berhasil diekspor")},Ci=v=>{var oe;const E=(oe=v.target.files)==null?void 0:oe[0];if(!E)return;const A=new FileReader;A.onload=Me=>{try{const ie=JSON.parse(Me.target.result);if(!Array.isArray(ie.scenes)||!ie.scenes.length){Re("Format file proyek tidak valid","error");return}N(ie.projectName||"Imported_Project"),ie.resolution&&_(ie.resolution),ie.fps&&w(ie.fps),Array.isArray(ie.assets)&&he(ie.assets),B(ie.scenes),W(ie.scenes[0].id),T(ie.scenes[0].mode==="react"?"jsx":"html"),f(0),Re(`Proyek "${ie.projectName}" berhasil dimuat`)}catch{Re("Gagal membaca file JSON proyek","error")}},A.readAsText(E),v.target.value=""},Ei=async()=>{te(!1);const v=new AbortController;Hn.current=v;const E=Uf[Ye.resolution]||c,A=Number(Ye.fps),oe=Math.max(1,Math.round(pt*A));At({...nc,isRendering:!0,totalFrames:oe,stage:"Menjalankan browser headless..."}),mt("info",`Render dimulai: ${y} (${E.width}x${E.height} @ ${A}fps, ${oe} frames)`);let Me=-1;try{const ie=await Kf({projectName:y,resolution:E,fps:A,scenes:C,assets:De},{signal:v.signal,onLog:({level:Pe,message:Ct})=>{mt(Pe||"info",Ct),Pe==="error"&&fe(!0)},onProgress:({frame:Pe,total:Ct,scene:hl,sceneIndex:be,sceneCount:_i})=>{const zn=Math.min(99,Math.round(Pe/Ct*100)),Kn=Math.floor(zn/25)*25;Kn>Me&&Kn>0&&(Me=Kn,mt("info",`Render ${zn}% — frame ${Pe}/${Ct} (${hl})`)),At(Qn=>({...Qn,progress:zn,currentFrame:Pe,stage:`Frame ${Pe}/${Ct} • ${hl} (${be}/${_i})`}))}});At(Pe=>({...Pe,isRendering:!1,progress:100,currentFrame:Pe.totalFrames,stage:`Selesai dalam ${(ie.elapsedMs/1e3).toFixed(1)}s`,outputUrl:ie.url,outputFilename:ie.fileName,outputPath:ie.filePath})),Re("Render MP4 selesai!"),mt("success",`Render selesai: ${ie.fileName} (${(ie.elapsedMs/1e3).toFixed(1)}s)`)}catch(ie){const Pe=ie.name==="AbortError"||/dibatalkan/i.test(ie.message);At(Ct=>({...Ct,isRendering:!1,stage:Pe?"Render dibatalkan.":`Gagal: ${ie.message}`})),Pe?Re("Render dibatalkan","error"):(mt("error",`Render gagal: ${ie.message}`),fe(!0),Re(`Render gagal: ${ie.message}`,"error"))}},Bt=()=>{var v;return(v=Hn.current)==null?void 0:v.abort()};return o.jsxs("div",{className:"h-screen w-screen bg-[#09090b] text-zinc-200 flex flex-col overflow-hidden select-none font-sans",children:[o.jsx("input",{ref:Vn,type:"file",multiple:!0,accept:"image/*,video/*,audio/*,.ttf,.otf,.woff,.woff2",className:"hidden",onChange:Wn}),o.jsx("input",{ref:xr,type:"file",accept:".json",className:"hidden",onChange:Ci}),Ae&&o.jsx("audio",{ref:it,src:Ae.url,muted:R,preload:"auto"}),kn&&o.jsxs("div",{className:`fixed bottom-6 right-6 z-50 px-4 py-2.5 rounded border text-xs font-medium flex items-center gap-2 shadow-xl ${kn.type==="error"?"bg-red-950/90 border-red-800 text-red-200":"bg-zinc-900/95 border-zinc-700 text-zinc-100"}`,children:[kn.type==="error"?o.jsx(ic,{className:"w-4 h-4 text-red-400"}):o.jsx(mf,{className:"w-4 h-4 text-sky-400"}),o.jsx("span",{children:kn.msg})]}),o.jsx(Qf,{projectName:y,onProjectNameChange:v=>{N(v),we("Unsaved")},saveStatus:ce,onUndo:yr,onRedo:gr,canUndo:ne.length>0,canRedo:_e.length>0,onOpenProject:()=>{var v;return(v=xr.current)==null?void 0:v.click()},onSaveProject:zi,isPlaying:g,onTogglePlay:()=>te(v=>!v),onRender:()=>ze(!0),rendererOnline:An,showLogs:K,onToggleLogs:()=>fe(v=>!v),logCount:Ee.length,showEditor:ue,onToggleEditor:()=>G(v=>!v),showAiChat:b,onToggleAiChat:()=>O(v=>!v),onOpenSettings:()=>H(!0)}),o.jsxs("div",{className:"flex-1 flex min-h-0 overflow-hidden",children:[o.jsx(Jf,{sidebarTab:D,onSidebarTab:se,scenes:C,timelineSegments:nt,editingScene:xe,activeTab:X,onSelectScene:kr,onAddScene:Vt,onDuplicateScene:cl,onDeleteScene:dl,onFileTab:en,onUpdateScene:ht,assets:De,onUploadClick:()=>{var v;return(v=Vn.current)==null?void 0:v.click()},onCopyAssetPath:jr,templates:ms,onApplyTemplate:Nn}),ue&&o.jsx(Zf,{editingScene:xe,activeTab:X,onTab:en,onFormatCode:Sr,onCodeChange:v=>xe&&ht(xe.id,{[X]:v}),runtimeError:al,onDismissError:()=>Sn(null),onClose:()=>G(!1)}),o.jsx(qf,{expanded:!ue,iframeRef:qt,srcDoc:Ni,onIframeLoad:()=>{$t.current(),setTimeout(()=>$t.current(),400)},previewContainerRef:jn,resolution:c,onResolutionChange:_,fps:h,onFpsChange:w,previewZoom:re,onZoomChange:pe,computedScale:Bn,currentTime:P,totalDuration:pt,totalFrames:Ut,currentFrame:ji,isPlaying:g,onTogglePlay:te,onSetTime:f,isMuted:R,onToggleMute:()=>Q(v=>!v),activeSegmentName:me==null?void 0:me.name}),o.jsx(ip,{open:b,onClose:()=>O(!1),aiConfig:ee,onOpenSettings:()=>H(!0),resolution:c,fps:h,editingScene:xe,onApplyAiAction:wr,onLog:mt})]}),o.jsx(ep,{scenes:C,timelineSegments:nt,editingScene:xe,totalDuration:pt,totalFrames:Ut,currentTime:P,audioTrack:Ae,onSetTime:f,onAddScene:Vt,onAddAudio:()=>{var v;return(v=Vn.current)==null?void 0:v.click()},onSelectScene:kr,onMoveScene:fl,onReorderScene:pl,onUpdateScene:ht,onTidyScenes:ml,onRemoveAudio:()=>Ne(null)}),o.jsx(rp,{open:K,logs:Ee,onClear:()=>Ge([]),onClose:()=>fe(!1)}),o.jsx(sp,{open:q,onClose:()=>H(!1),aiConfig:ee,onChangeAiConfig:ge}),o.jsx(tp,{open:ke,onClose:()=>ze(!1),renderConfig:Ye,onRenderConfig:Dn,renderState:ol,rendererOnline:An,onRender:Ei,onCancel:Bt,totalDuration:pt})]})}uf.createRoot(document.getElementById("root")).render(o.jsx(cp,{}));