From a75ffe63ca5d183737507c912b7bd9d41f566096 Mon Sep 17 00:00:00 2001 From: Martan03 Date: Tue, 23 Jan 2024 16:56:54 +0100 Subject: [PATCH] Updates --- .../{index-9-pL9dR_.js => index-90wv0PFW.js} | 46 +++++++++---------- index.html | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) rename assets/{index-9-pL9dR_.js => index-90wv0PFW.js} (75%) diff --git a/assets/index-9-pL9dR_.js b/assets/index-90wv0PFW.js similarity index 75% rename from assets/index-9-pL9dR_.js rename to assets/index-90wv0PFW.js index eba0376..1a06e7f 100644 --- a/assets/index-9-pL9dR_.js +++ b/assets/index-90wv0PFW.js @@ -1,4 +1,4 @@ -var pc=Object.defineProperty;var mc=(e,n,t)=>n in e?pc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var kn=(e,n,t)=>(mc(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gu={exports:{}},ll={},Zu={exports:{}},L={};/** +var mc=Object.defineProperty;var hc=(e,n,t)=>n in e?mc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var kn=(e,n,t)=>(hc(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},ll={},Ju={exports:{}},L={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var pc=Object.defineProperty;var mc=(e,n,t)=>n in e?pc(e,n,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Zt=Symbol.for("react.element"),vc=Symbol.for("react.portal"),gc=Symbol.for("react.fragment"),yc=Symbol.for("react.strict_mode"),wc=Symbol.for("react.profiler"),kc=Symbol.for("react.provider"),Sc=Symbol.for("react.context"),xc=Symbol.for("react.forward_ref"),Ec=Symbol.for("react.suspense"),Cc=Symbol.for("react.memo"),_c=Symbol.for("react.lazy"),$i=Symbol.iterator;function Nc(e){return e===null||typeof e!="object"?null:(e=$i&&e[$i]||e["@@iterator"],typeof e=="function"?e:null)}var Ju={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qu=Object.assign,bu={};function ut(e,n,t){this.props=e,this.context=n,this.refs=bu,this.updater=t||Ju}ut.prototype.isReactComponent={};ut.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ut.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function es(){}es.prototype=ut.prototype;function Vo(e,n,t){this.props=e,this.context=n,this.refs=bu,this.updater=t||Ju}var Ho=Vo.prototype=new es;Ho.constructor=Vo;qu(Ho,ut.prototype);Ho.isPureReactComponent=!0;var Ui=Array.isArray,ns=Object.prototype.hasOwnProperty,Qo={current:null},ts={key:!0,ref:!0,__self:!0,__source:!0};function rs(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)ns.call(n,r)&&!ts.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1n in e?pc(e,n,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dc=$,Ic=Symbol.for("react.element"),Fc=Symbol.for("react.fragment"),Rc=Object.prototype.hasOwnProperty,Mc=Dc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Oc={key:!0,ref:!0,__self:!0,__source:!0};function ls(e,n,t){var r,l={},o=null,i=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(i=n.ref);for(r in n)Rc.call(n,r)&&!Oc.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:Ic,type:e,key:o,ref:i,props:l,_owner:Mc.current}}ll.Fragment=Fc;ll.jsx=ls;ll.jsxs=ls;Gu.exports=ll;var y=Gu.exports,Gl={},os={exports:{}},we={},is={exports:{}},us={};/** + */var Ic=$,Fc=Symbol.for("react.element"),Rc=Symbol.for("react.fragment"),Mc=Object.prototype.hasOwnProperty,Oc=Ic.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$c={key:!0,ref:!0,__self:!0,__source:!0};function os(e,n,t){var r,l={},o=null,i=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(i=n.ref);for(r in n)Mc.call(n,r)&&!$c.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:Fc,type:e,key:o,ref:i,props:l,_owner:Oc.current}}ll.Fragment=Rc;ll.jsx=os;ll.jsxs=os;Zu.exports=ll;var y=Zu.exports,Gl={},is={exports:{}},we={},us={exports:{}},ss={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var pc=Object.defineProperty;var mc=(e,n,t)=>n in e?pc(e,n,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function n(_,j){var T=_.length;_.push(j);e:for(;0>>1,Z=_[Q];if(0>>1;Ql(xl,T))wnl(tr,xl)?(_[Q]=tr,_[wn]=T,Q=wn):(_[Q]=xl,_[yn]=T,Q=yn);else if(wnl(tr,T))_[Q]=tr,_[wn]=T,Q=wn;else break e}}return j}function l(_,j){var T=_.sortIndex-j.sortIndex;return T!==0?T:_.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],f=[],g=1,h=null,v=3,S=!1,p=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var j=t(f);j!==null;){if(j.callback===null)r(f);else if(j.startTime<=_)r(f),j.sortIndex=j.expirationTime,n(s,j);else break;j=t(f)}}function w(_){if(m=!1,d(_),!p)if(t(s)!==null)p=!0,kl(E);else{var j=t(f);j!==null&&Sl(w,j.startTime-_)}}function E(_,j){p=!1,m&&(m=!1,c(z),z=-1),S=!0;var T=v;try{for(d(j),h=t(s);h!==null&&(!(h.expirationTime>j)||_&&!Pe());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,v=h.priorityLevel;var Z=Q(h.expirationTime<=j);j=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===t(s)&&r(s),d(j)}else r(s);h=t(s)}if(h!==null)var nr=!0;else{var yn=t(f);yn!==null&&Sl(w,yn.startTime-j),nr=!1}return nr}finally{h=null,v=T,S=!1}}var N=!1,P=null,z=-1,H=5,D=-1;function Pe(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return t(s)},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var j=3;break;default:j=v}var T=v;v=j;try{return _()}finally{v=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var T=v;v=_;try{return j()}finally{v=T}},e.unstable_scheduleCallback=function(_,j,T){var Q=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0Q?(_.sortIndex=T,n(f,_),t(s)===null&&_===t(f)&&(m?(c(z),z=-1):m=!0,Sl(w,T-Q))):(_.sortIndex=Z,n(s,_),p||S||(p=!0,kl(E))),_},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(_){var j=v;return function(){var T=v;v=j;try{return _.apply(this,arguments)}finally{v=T}}}})(us);is.exports=us;var $c=is.exports;/** + */(function(e){function n(_,j){var T=_.length;_.push(j);e:for(;0>>1,Z=_[Q];if(0>>1;Ql(xl,T))wnl(tr,xl)?(_[Q]=tr,_[wn]=T,Q=wn):(_[Q]=xl,_[yn]=T,Q=yn);else if(wnl(tr,T))_[Q]=tr,_[wn]=T,Q=wn;else break e}}return j}function l(_,j){var T=_.sortIndex-j.sortIndex;return T!==0?T:_.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],f=[],g=1,h=null,v=3,S=!1,p=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var j=t(f);j!==null;){if(j.callback===null)r(f);else if(j.startTime<=_)r(f),j.sortIndex=j.expirationTime,n(s,j);else break;j=t(f)}}function w(_){if(m=!1,d(_),!p)if(t(s)!==null)p=!0,kl(E);else{var j=t(f);j!==null&&Sl(w,j.startTime-_)}}function E(_,j){p=!1,m&&(m=!1,c(z),z=-1),S=!0;var T=v;try{for(d(j),h=t(s);h!==null&&(!(h.expirationTime>j)||_&&!Pe());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,v=h.priorityLevel;var Z=Q(h.expirationTime<=j);j=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===t(s)&&r(s),d(j)}else r(s);h=t(s)}if(h!==null)var nr=!0;else{var yn=t(f);yn!==null&&Sl(w,yn.startTime-j),nr=!1}return nr}finally{h=null,v=T,S=!1}}var N=!1,P=null,z=-1,H=5,D=-1;function Pe(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return t(s)},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var j=3;break;default:j=v}var T=v;v=j;try{return _()}finally{v=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var T=v;v=_;try{return j()}finally{v=T}},e.unstable_scheduleCallback=function(_,j,T){var Q=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0Q?(_.sortIndex=T,n(f,_),t(s)===null&&_===t(f)&&(m?(c(z),z=-1):m=!0,Sl(w,T-Q))):(_.sortIndex=Z,n(s,_),p||S||(p=!0,kl(E))),_},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(_){var j=v;return function(){var T=v;v=j;try{return _.apply(this,arguments)}finally{v=T}}}})(ss);us.exports=ss;var Uc=us.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ var pc=Object.defineProperty;var mc=(e,n,t)=>n in e?pc(e,n,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ss=$,ye=$c;function k(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,Uc=/^[: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]*$/,Wi={},Bi={};function Ac(e){return Zl.call(Bi,e)?!0:Zl.call(Wi,e)?!1:Uc.test(e)?Bi[e]=!0:(Wi[e]=!0,!1)}function Wc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bc(e,n,t,r){if(n===null||typeof n>"u"||Wc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ae(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ae(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){ne[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yo=/[\-:]([a-z])/g;function Xo(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 n=e.replace(Yo,Xo);ne[n]=new ae(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Yo,Xo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Yo,Xo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Go(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[n]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,Ac=/^[: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]*$/,Wi={},Vi={};function Wc(e){return Zl.call(Vi,e)?!0:Zl.call(Wi,e)?!1:Ac.test(e)?Vi[e]=!0:(Wi[e]=!0,!1)}function Vc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bc(e,n,t,r){if(n===null||typeof n>"u"||Vc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ae(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ae(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){ne[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yo=/[\-:]([a-z])/g;function Xo(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 n=e.replace(Yo,Xo);ne[n]=new ae(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Yo,Xo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Yo,Xo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Go(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[n]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{_l=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?kt(e):""}function Vc(e){switch(e.tag){case 5:return kt(e.type);case 16:return kt("Lazy");case 13:return kt("Suspense");case 19:return kt("SuspenseList");case 0:case 2:case 15:return e=Nl(e.type,!1),e;case 11:return e=Nl(e.type.render,!1),e;case 1:return e=Nl(e.type,!0),e;default:return""}}function eo(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 On:return"Fragment";case Mn:return"Portal";case Jl:return"Profiler";case Zo:return"StrictMode";case ql:return"Suspense";case bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fs:return(e.displayName||"Context")+".Consumer";case cs:return(e._context.displayName||"Context")+".Provider";case Jo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qo:return n=e.displayName||null,n!==null?n:eo(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return eo(e(n))}catch{}}return null}function Hc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eo(n);case 8:return n===Zo?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ps(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Qc(e){var n=ps(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function or(e){e._valueTracker||(e._valueTracker=Qc(e))}function ms(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ps(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Dr(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 no(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Hi(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function hs(e,n){n=n.checked,n!=null&&Go(e,"checked",n,!1)}function to(e,n){hs(e,n);var t=pn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ro(e,n.type,t):n.hasOwnProperty("defaultValue")&&ro(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Qi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function ro(e,n,t){(n!=="number"||Dr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var St=Array.isArray;function Xn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ft(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Ct={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},Kc=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(e){Kc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ct[n]=Ct[e]})});function ws(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Ct.hasOwnProperty(e)&&Ct[e]?(""+n).trim():n+"px"}function ks(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ws(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Yc=B({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 io(e,n){if(n){if(Yc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(k(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(k(61))}if(n.style!=null&&typeof n.style!="object")throw Error(k(62))}}function uo(e,n){if(e.indexOf("-")===-1)return typeof n.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 so=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ao=null,Gn=null,Zn=null;function Xi(e){if(e=bt(e)){if(typeof ao!="function")throw Error(k(280));var n=e.stateNode;n&&(n=al(n),ao(e.stateNode,e.type,n))}}function Ss(e){Gn?Zn?Zn.push(e):Zn=[e]:Gn=e}function xs(){if(Gn){var e=Gn,n=Zn;if(Zn=Gn=null,Xi(e),n)for(e=0;e>>=0,e===0?32:31-(lf(e)/of|0)|0}var ur=64,sr=4194304;function xt(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 Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=xt(u):(o&=i,o!==0&&(r=xt(o)))}else i=t&~l,i!==0?r=xt(i):o!==0&&(r=xt(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Jt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-De(n),e[n]=t}function cf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nt),ru=" ",lu=!1;function Bs(e,n){switch(e){case"keyup":return $f.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Af(e,n){switch(e){case"compositionend":return Vs(n);case"keypress":return n.which!==32?null:(lu=!0,ru);case"textInput":return e=n.data,e===ru&&lu?null:e;default:return null}}function Wf(e,n){if($n)return e==="compositionend"||!ui&&Bs(e,n)?(e=As(),Er=li=tn=null,$n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=su(t)}}function Ys(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ys(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Xs(){for(var e=window,n=Dr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Dr(e.document)}return n}function si(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Zf(e){var n=Xs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Ys(t.ownerDocument.documentElement,t)){if(r!==null&&si(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=au(t,o);var i=au(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Un=null,vo=null,zt=null,go=!1;function cu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;go||Un==null||Un!==Dr(r)||(r=Un,"selectionStart"in r&&si(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}),zt&&At(zt,r)||(zt=r,r=Ur(vo,"onSelect"),0Bn||(e.current=Eo[Bn],Eo[Bn]=null,Bn--)}function R(e,n){Bn++,Eo[Bn]=e.current,e.current=n}var mn={},oe=vn(mn),de=vn(!1),zn=mn;function nt(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Wr(){O(de),O(oe)}function gu(e,n,t){if(oe.current!==mn)throw Error(k(168));R(oe,n),R(de,t)}function ra(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(k(108,Hc(e)||"Unknown",l));return B({},t,r)}function Br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,zn=oe.current,R(oe,e),R(de,de.current),!0}function yu(e,n,t){var r=e.stateNode;if(!r)throw Error(k(169));t?(e=ra(e,n,zn),r.__reactInternalMemoizedMergedChildContext=e,O(de),O(oe),R(oe,e)):O(de),R(de,t)}var Be=null,cl=!1,Al=!1;function la(e){Be===null?Be=[e]:Be.push(e)}function sd(e){cl=!0,la(e)}function gn(){if(!Al&&Be!==null){Al=!0;var e=0,n=F;try{var t=Be;for(F=1;e>=i,l-=i,Ve=1<<32-De(n)+l|t<z?(H=P,P=null):H=P.sibling;var D=v(c,P,d[z],w);if(D===null){P===null&&(P=H);break}e&&P&&D.alternate===null&&n(c,P),a=o(D,a,z),N===null?E=D:N.sibling=D,N=D,P=H}if(z===d.length)return t(c,P),U&&Sn(c,z),E;if(P===null){for(;zz?(H=P,P=null):H=P.sibling;var Pe=v(c,P,D.value,w);if(Pe===null){P===null&&(P=H);break}e&&P&&Pe.alternate===null&&n(c,P),a=o(Pe,a,z),N===null?E=Pe:N.sibling=Pe,N=Pe,P=H}if(D.done)return t(c,P),U&&Sn(c,z),E;if(P===null){for(;!D.done;z++,D=d.next())D=h(c,D.value,w),D!==null&&(a=o(D,a,z),N===null?E=D:N.sibling=D,N=D);return U&&Sn(c,z),E}for(P=r(c,P);!D.done;z++,D=d.next())D=S(P,c,z,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?z:D.key),a=o(D,a,z),N===null?E=D:N.sibling=D,N=D);return e&&P.forEach(function(ct){return n(c,ct)}),U&&Sn(c,z),E}function x(c,a,d,w){if(typeof d=="object"&&d!==null&&d.type===On&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case lr:e:{for(var E=d.key,N=a;N!==null;){if(N.key===E){if(E=d.type,E===On){if(N.tag===7){t(c,N.sibling),a=l(N,d.props.children),a.return=c,c=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qe&&_u(E)===N.type){t(c,N.sibling),a=l(N,d.props),a.ref=gt(c,N,d),a.return=c,c=a;break e}t(c,N);break}else n(c,N);N=N.sibling}d.type===On?(a=Pn(d.props.children,c.mode,w,d.key),a.return=c,c=a):(w=Lr(d.type,d.key,d.props,null,c.mode,w),w.ref=gt(c,a,d),w.return=c,c=w)}return i(c);case Mn:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Xl(d,c.mode,w),a.return=c,c=a}return i(c);case qe:return N=d._init,x(c,a,N(d._payload),w)}if(St(d))return p(c,a,d,w);if(dt(d))return m(c,a,d,w);hr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=Yl(d,c.mode,w),a.return=c,c=a),i(c)):t(c,a)}return x}var rt=da(!0),pa=da(!1),er={},Ue=vn(er),Ht=vn(er),Qt=vn(er);function _n(e){if(e===er)throw Error(k(174));return e}function gi(e,n){switch(R(Qt,n),R(Ht,e),R(Ue,er),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:oo(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=oo(n,e)}O(Ue),R(Ue,n)}function lt(){O(Ue),O(Ht),O(Qt)}function ma(e){_n(Qt.current);var n=_n(Ue.current),t=oo(n,e.type);n!==t&&(R(Ht,e),R(Ue,t))}function yi(e){Ht.current===e&&(O(Ue),O(Ht))}var A=vn(0);function Xr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Wl=[];function wi(){for(var e=0;et?t:4,e(!0);var r=Bl.transition;Bl.transition={};try{e(!1),n()}finally{F=t,Bl.transition=r}}function Ta(){return Ne().memoizedState}function dd(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},La(e))Da(n,t);else if(t=sa(e,n,t,r),t!==null){var l=ue();Ie(t,e,r,l),Ia(t,n,r)}}function pd(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(La(e))Da(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Fe(u,i)){var s=n.interleaved;s===null?(l.next=l,hi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=sa(e,n,l,r),t!==null&&(l=ue(),Ie(t,e,r,l),Ia(t,n,r))}}function La(e){var n=e.alternate;return e===W||n!==null&&n===W}function Da(e,n){jt=Gr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ia(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ni(e,t)}}var Zr={readContext:_e,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},md={readContext:_e,useCallback:function(e,n){return Me().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:Pu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Pr(4194308,4,_a.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Pr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Pr(4,2,e,n)},useMemo:function(e,n){var t=Me();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Me();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=dd.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var n=Me();return e={current:e},n.memoizedState=e},useState:Nu,useDebugValue:Ci,useDeferredValue:function(e){return Me().memoizedState=e},useTransition:function(){var e=Nu(!1),n=e[0];return e=fd.bind(null,e[1]),Me().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=W,l=Me();if(U){if(t===void 0)throw Error(k(407));t=t()}else{if(t=n(),q===null)throw Error(k(349));Tn&30||ga(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Pu(wa.bind(null,r,o,e),[e]),r.flags|=2048,Xt(9,ya.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Me(),n=q.identifierPrefix;if(U){var t=He,r=Ve;t=(r&~(1<<32-De(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Kt++,0")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{_l=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?kt(e):""}function Hc(e){switch(e.tag){case 5:return kt(e.type);case 16:return kt("Lazy");case 13:return kt("Suspense");case 19:return kt("SuspenseList");case 0:case 2:case 15:return e=Nl(e.type,!1),e;case 11:return e=Nl(e.type.render,!1),e;case 1:return e=Nl(e.type,!0),e;default:return""}}function eo(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 On:return"Fragment";case Mn:return"Portal";case Jl:return"Profiler";case Zo:return"StrictMode";case ql:return"Suspense";case bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ds:return(e.displayName||"Context")+".Consumer";case fs:return(e._context.displayName||"Context")+".Provider";case Jo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qo:return n=e.displayName||null,n!==null?n:eo(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return eo(e(n))}catch{}}return null}function Qc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eo(n);case 8:return n===Zo?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ms(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Kc(e){var n=ms(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function or(e){e._valueTracker||(e._valueTracker=Kc(e))}function hs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ms(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Dr(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 no(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Hi(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function vs(e,n){n=n.checked,n!=null&&Go(e,"checked",n,!1)}function to(e,n){vs(e,n);var t=pn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ro(e,n.type,t):n.hasOwnProperty("defaultValue")&&ro(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Qi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function ro(e,n,t){(n!=="number"||Dr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var St=Array.isArray;function Xn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ft(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Ct={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},Yc=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(e){Yc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ct[n]=Ct[e]})});function ks(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Ct.hasOwnProperty(e)&&Ct[e]?(""+n).trim():n+"px"}function Ss(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ks(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Xc=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function io(e,n){if(n){if(Xc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(k(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(k(61))}if(n.style!=null&&typeof n.style!="object")throw Error(k(62))}}function uo(e,n){if(e.indexOf("-")===-1)return typeof n.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 so=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ao=null,Gn=null,Zn=null;function Xi(e){if(e=bt(e)){if(typeof ao!="function")throw Error(k(280));var n=e.stateNode;n&&(n=al(n),ao(e.stateNode,e.type,n))}}function xs(e){Gn?Zn?Zn.push(e):Zn=[e]:Gn=e}function Es(){if(Gn){var e=Gn,n=Zn;if(Zn=Gn=null,Xi(e),n)for(e=0;e>>=0,e===0?32:31-(of(e)/uf|0)|0}var ur=64,sr=4194304;function xt(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 Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=xt(u):(o&=i,o!==0&&(r=xt(o)))}else i=t&~l,i!==0?r=xt(i):o!==0&&(r=xt(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Jt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-De(n),e[n]=t}function ff(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nt),ru=" ",lu=!1;function Bs(e,n){switch(e){case"keyup":return Uf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Wf(e,n){switch(e){case"compositionend":return Hs(n);case"keypress":return n.which!==32?null:(lu=!0,ru);case"textInput":return e=n.data,e===ru&&lu?null:e;default:return null}}function Vf(e,n){if($n)return e==="compositionend"||!ui&&Bs(e,n)?(e=Ws(),Er=li=tn=null,$n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=su(t)}}function Xs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Xs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Gs(){for(var e=window,n=Dr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Dr(e.document)}return n}function si(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Jf(e){var n=Gs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Xs(t.ownerDocument.documentElement,t)){if(r!==null&&si(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=au(t,o);var i=au(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Un=null,vo=null,zt=null,go=!1;function cu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;go||Un==null||Un!==Dr(r)||(r=Un,"selectionStart"in r&&si(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}),zt&&At(zt,r)||(zt=r,r=Ur(vo,"onSelect"),0Vn||(e.current=Eo[Vn],Eo[Vn]=null,Vn--)}function R(e,n){Vn++,Eo[Vn]=e.current,e.current=n}var mn={},oe=vn(mn),de=vn(!1),zn=mn;function nt(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Wr(){O(de),O(oe)}function gu(e,n,t){if(oe.current!==mn)throw Error(k(168));R(oe,n),R(de,t)}function la(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(k(108,Qc(e)||"Unknown",l));return V({},t,r)}function Vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,zn=oe.current,R(oe,e),R(de,de.current),!0}function yu(e,n,t){var r=e.stateNode;if(!r)throw Error(k(169));t?(e=la(e,n,zn),r.__reactInternalMemoizedMergedChildContext=e,O(de),O(oe),R(oe,e)):O(de),R(de,t)}var Ve=null,cl=!1,Al=!1;function oa(e){Ve===null?Ve=[e]:Ve.push(e)}function ad(e){cl=!0,oa(e)}function gn(){if(!Al&&Ve!==null){Al=!0;var e=0,n=F;try{var t=Ve;for(F=1;e>=i,l-=i,Be=1<<32-De(n)+l|t<z?(H=P,P=null):H=P.sibling;var D=v(c,P,d[z],w);if(D===null){P===null&&(P=H);break}e&&P&&D.alternate===null&&n(c,P),a=o(D,a,z),N===null?E=D:N.sibling=D,N=D,P=H}if(z===d.length)return t(c,P),U&&Sn(c,z),E;if(P===null){for(;zz?(H=P,P=null):H=P.sibling;var Pe=v(c,P,D.value,w);if(Pe===null){P===null&&(P=H);break}e&&P&&Pe.alternate===null&&n(c,P),a=o(Pe,a,z),N===null?E=Pe:N.sibling=Pe,N=Pe,P=H}if(D.done)return t(c,P),U&&Sn(c,z),E;if(P===null){for(;!D.done;z++,D=d.next())D=h(c,D.value,w),D!==null&&(a=o(D,a,z),N===null?E=D:N.sibling=D,N=D);return U&&Sn(c,z),E}for(P=r(c,P);!D.done;z++,D=d.next())D=S(P,c,z,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?z:D.key),a=o(D,a,z),N===null?E=D:N.sibling=D,N=D);return e&&P.forEach(function(ct){return n(c,ct)}),U&&Sn(c,z),E}function x(c,a,d,w){if(typeof d=="object"&&d!==null&&d.type===On&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case lr:e:{for(var E=d.key,N=a;N!==null;){if(N.key===E){if(E=d.type,E===On){if(N.tag===7){t(c,N.sibling),a=l(N,d.props.children),a.return=c,c=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qe&&_u(E)===N.type){t(c,N.sibling),a=l(N,d.props),a.ref=gt(c,N,d),a.return=c,c=a;break e}t(c,N);break}else n(c,N);N=N.sibling}d.type===On?(a=Pn(d.props.children,c.mode,w,d.key),a.return=c,c=a):(w=Lr(d.type,d.key,d.props,null,c.mode,w),w.ref=gt(c,a,d),w.return=c,c=w)}return i(c);case Mn:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Xl(d,c.mode,w),a.return=c,c=a}return i(c);case qe:return N=d._init,x(c,a,N(d._payload),w)}if(St(d))return p(c,a,d,w);if(dt(d))return m(c,a,d,w);hr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=Yl(d,c.mode,w),a.return=c,c=a),i(c)):t(c,a)}return x}var rt=pa(!0),ma=pa(!1),er={},Ue=vn(er),Ht=vn(er),Qt=vn(er);function _n(e){if(e===er)throw Error(k(174));return e}function gi(e,n){switch(R(Qt,n),R(Ht,e),R(Ue,er),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:oo(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=oo(n,e)}O(Ue),R(Ue,n)}function lt(){O(Ue),O(Ht),O(Qt)}function ha(e){_n(Qt.current);var n=_n(Ue.current),t=oo(n,e.type);n!==t&&(R(Ht,e),R(Ue,t))}function yi(e){Ht.current===e&&(O(Ue),O(Ht))}var A=vn(0);function Xr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Wl=[];function wi(){for(var e=0;et?t:4,e(!0);var r=Vl.transition;Vl.transition={};try{e(!1),n()}finally{F=t,Vl.transition=r}}function La(){return Ne().memoizedState}function pd(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Da(e))Ia(n,t);else if(t=aa(e,n,t,r),t!==null){var l=ue();Ie(t,e,r,l),Fa(t,n,r)}}function md(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Da(e))Ia(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Fe(u,i)){var s=n.interleaved;s===null?(l.next=l,hi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=aa(e,n,l,r),t!==null&&(l=ue(),Ie(t,e,r,l),Fa(t,n,r))}}function Da(e){var n=e.alternate;return e===W||n!==null&&n===W}function Ia(e,n){jt=Gr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Fa(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ni(e,t)}}var Zr={readContext:_e,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},hd={readContext:_e,useCallback:function(e,n){return Me().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:Pu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Pr(4194308,4,Na.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Pr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Pr(4,2,e,n)},useMemo:function(e,n){var t=Me();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Me();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=pd.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var n=Me();return e={current:e},n.memoizedState=e},useState:Nu,useDebugValue:Ci,useDeferredValue:function(e){return Me().memoizedState=e},useTransition:function(){var e=Nu(!1),n=e[0];return e=dd.bind(null,e[1]),Me().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=W,l=Me();if(U){if(t===void 0)throw Error(k(407));t=t()}else{if(t=n(),q===null)throw Error(k(349));Tn&30||ya(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Pu(ka.bind(null,r,o,e),[e]),r.flags|=2048,Xt(9,wa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Me(),n=q.identifierPrefix;if(U){var t=He,r=Be;t=(r&~(1<<32-De(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Kt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Oe]=n,e[Vt]=r,Ba(e,n,!1,!1),n.stateNode=e;e:{switch(i=uo(t,r),t){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;lit&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Xr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return re(n),null}else 2*K()-o.renderingStartTime>it&&t!==1073741824&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=K(),n.sibling=null,t=A.current,R(A,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return Ti(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?he&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(k(156,n.tag))}function xd(e,n){switch(ci(n),n.tag){case 1:return pe(n.type)&&Wr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return lt(),O(de),O(oe),wi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return yi(n),null;case 13:if(O(A),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(k(340));tt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return O(A),null;case 4:return lt(),null;case 10:return mi(n.type._context),null;case 22:case 23:return Ti(),null;case 24:return null;default:return null}}var gr=!1,le=!1,Ed=typeof WeakSet=="function"?WeakSet:Set,C=null;function Kn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Ro(e,n,t){try{t()}catch(r){V(e,n,r)}}var Mu=!1;function Cd(e,n){if(yo=Or,e=Xs(),si(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,f=0,g=0,h=e,v=null;n:for(;;){for(var S;h!==t||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(S=h.firstChild)!==null;)v=h,h=S;for(;;){if(h===e)break n;if(v===t&&++f===l&&(u=i),v===o&&++g===r&&(s=i),(S=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=S}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(wo={focusedElem:e,selectionRange:t},Or=!1,C=n;C!==null;)if(n=C,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,C=e;else for(;C!==null;){n=C;try{var p=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,x=p.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?m:je(n.type,m),x);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){V(n,n.return,w)}if(e=n.sibling,e!==null){e.return=n.return,C=e;break}C=n.return}return p=Mu,Mu=!1,p}function Tt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(n,t,o)}l=l.next}while(l!==r)}}function pl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Mo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Qa(e){var n=e.alternate;n!==null&&(e.alternate=null,Qa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Oe],delete n[Vt],delete n[xo],delete n[id],delete n[ud])),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 Ka(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ka(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 Oo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ar));else if(r!==4&&(e=e.child,e!==null))for(Oo(e,n,t),e=e.sibling;e!==null;)Oo(e,n,t),e=e.sibling}function $o(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($o(e,n,t),e=e.sibling;e!==null;)$o(e,n,t),e=e.sibling}var b=null,Te=!1;function Je(e,n,t){for(t=t.child;t!==null;)Ya(e,n,t),t=t.sibling}function Ya(e,n,t){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(ol,t)}catch{}switch(t.tag){case 5:le||Kn(t,n);case 6:var r=b,l=Te;b=null,Je(e,n,t),b=r,Te=l,b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?Ul(e.parentNode,t):e.nodeType===1&&Ul(e,t),$t(e)):Ul(b,t.stateNode));break;case 4:r=b,l=Te,b=t.stateNode.containerInfo,Te=!0,Je(e,n,t),b=r,Te=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ro(t,n,i),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Kn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){V(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function $u(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Ed),n.forEach(function(r){var l=Id.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nd(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,br=0,I&6)throw Error(k(331));var l=I;for(I|=4,C=e.current;C!==null;){var o=C,i=o.child;if(C.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-zi?Nn(e,0):Pi|=t),me(e,n)}function nc(e,n){n===0&&(e.mode&1?(n=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):n=1);var t=ue();e=Xe(e,n),e!==null&&(Jt(e,n,t),me(e,t))}function Dd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),nc(e,t)}function Id(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(n),nc(e,t)}var tc;tc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,kd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,U&&n.flags&1048576&&oa(n,Hr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;zr(e,n),e=n.pendingProps;var l=nt(n,oe.current);qn(n,t),l=Si(null,n,r,e,l,t);var o=xi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pe(r)?(o=!0,Br(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,vi(n),l.updater=fl,n.stateNode=l,l._reactInternals=n,zo(n,r,e,t),n=Lo(null,n,r,!0,o,t)):(n.tag=0,U&&o&&ai(n),ie(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(zr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Rd(r),e=je(r,e),l){case 0:n=To(null,n,r,e,t);break e;case 1:n=Iu(null,n,r,e,t);break e;case 11:n=Lu(null,n,r,e,t);break e;case 14:n=Du(null,n,r,je(r.type,e),t);break e}throw Error(k(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),To(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Iu(e,n,r,l,t);case 3:e:{if(Ua(n),e===null)throw Error(k(387));r=n.pendingProps,o=n.memoizedState,l=o.element,aa(e,n),Yr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=ot(Error(k(423)),n),n=Fu(e,n,r,t,l);break e}else if(r!==l){l=ot(Error(k(424)),n),n=Fu(e,n,r,t,l);break e}else for(ve=sn(n.stateNode.containerInfo.firstChild),ge=n,U=!0,Le=null,t=pa(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(tt(),r===l){n=Ge(e,n,t);break e}ie(e,n,r,t)}n=n.child}return n;case 5:return ma(n),e===null&&_o(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ko(r,l)?i=null:o!==null&&ko(r,o)&&(n.flags|=32),$a(e,n),ie(e,n,i,t),n.child;case 6:return e===null&&_o(n),null;case 13:return Aa(e,n,t);case 4:return gi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=rt(n,null,r,t):ie(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Lu(e,n,r,l,t);case 7:return ie(e,n,n.pendingProps,t),n.child;case 8:return ie(e,n,n.pendingProps.children,t),n.child;case 12:return ie(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,R(Qr,r._currentValue),r._currentValue=i,o!==null)if(Fe(o.value,i)){if(o.children===l.children&&!de.current){n=Ge(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Qe(-1,t&-t),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var g=f.pending;g===null?s.next=s:(s.next=g.next,g.next=s),f.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),No(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),No(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,qn(n,t),l=_e(l),r=r(l),n.flags|=1,ie(e,n,r,t),n.child;case 14:return r=n.type,l=je(r,n.pendingProps),l=je(r.type,l),Du(e,n,r,l,t);case 15:return Ma(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),zr(e,n),n.tag=1,pe(r)?(e=!0,Br(n)):e=!1,qn(n,t),fa(n,r,l),zo(n,r,l,t),Lo(null,n,r,!0,e,t);case 19:return Wa(e,n,t);case 22:return Oa(e,n,t)}throw Error(k(156,n.tag))};function rc(e,n){return js(e,n)}function Fd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Ee(e,n,t,r){return new Fd(e,n,t,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rd(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jo)return 11;if(e===qo)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Lr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Di(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case On:return Pn(t.children,l,o,n);case Zo:i=8,l|=8;break;case Jl:return e=Ee(12,t,n,l|2),e.elementType=Jl,e.lanes=o,e;case ql:return e=Ee(13,t,n,l),e.elementType=ql,e.lanes=o,e;case bl:return e=Ee(19,t,n,l),e.elementType=bl,e.lanes=o,e;case ds:return hl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cs:i=10;break e;case fs:i=9;break e;case Jo:i=11;break e;case qo:i=14;break e;case qe:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return n=Ee(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Pn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function hl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=ds,e.lanes=t,e.stateNode={isHidden:!1},e}function Yl(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Xl(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Md(e,n,t,r,l){this.tag=n,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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ii(e,n,t,r,l,o,i,u,s){return e=new Md(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ee(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},vi(o),e}function Od(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uc)}catch(e){console.error(e)}}uc(),os.exports=we;var Bd=os.exports,Ku=Bd;Gl.createRoot=Ku.createRoot,Gl.hydrateRoot=Ku.hydrateRoot;function sc({text:e}){const[n,t]=$.useState(e??"");return y.jsx("div",{className:"notepad",children:y.jsx("textarea",{value:n,onChange:r=>t(r.value)})})}class Vd{constructor(n,t){kn(this,"get",n=>this.fs.get(this.current,n));kn(this,"getFile",n=>this.fs.getFile(this.current,n));kn(this,"getDir",n=>this.fs.getDir(this.current,n));kn(this,"createFile",n=>this.fs.createFile(this.current,n));kn(this,"createDir",n=>this.fs.createDir(this.current,n));kn(this,"getPath",(n=!0)=>this.fs.getPath(this.current,n));this.fs=n,this.current=this.fs.getDir(n.root,"/home/visitor")??n.root,this.bin=this.fs.getDir(n.root,"/usr/bin"),this.print=r=>t(l=>[...l,r]),this.error=r=>t(l=>[...l,r]),this.clear=()=>t([])}}function Hd(e){const n=/"((?:\\.|[^"\\])*)"|'([^']*)'|(\S+)/g,t=[];let r;for(;r=n.exec(e);)if(r[1]){const o=r[1].replace(/\\\"/g,'"').replace(/\\\\/g,"\\");t.push(o)}else if(r[3]){const o=r[3].replace(/\\(.)/g,i=>i[1]);t.push(o)}else t.push(r[2]);return[t.shift(),t]}function Qd(e,n,t,r){const l=`visitor@winux ${n.fs.getPath(n.current)}$ `;r(s=>[...s,l+e+` -`]);let o="";const i=/>\s*\w+/g,u=e.replace(i,s=>(o=s.trim().slice(1),""));if(o&&o!==""){let s="";n.print=f=>s+=f,Yu(u,n,t),n.fs.saveToFile(n.current,o.trim(),s)}else n.print=n.error,Yu(u,n,t)}function Yu(e,n,t){let[r,l]=Hd(e);if(r)switch(r){case"cd":Xd(n,l);break;case"echo":Gd(n,l);break;case"help":Zd(n);break;default:let o=n.bin;(r.startsWith("./")||r.startsWith("/")||r.startsWith("~"))&&(o=n.current);const i=n.fs.get(o,r);i?i.type==="exe"?Kd(i,r,l,n):i.type==="app"?Yd(i,t):tl(n,`${r}: file not executable`):tl(n,`${r}: command not found`);break}}function Kd(e,n,t,r){try{return new Function("env","args",`${e.value} +`+o.stack}return{value:e,source:n,stack:l,digest:null}}function Ql(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function jo(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var yd=typeof WeakMap=="function"?WeakMap:Map;function Ra(e,n,t){t=Qe(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){qr||(qr=!0,Uo=r),jo(e,n)},t}function Ma(e,n,t){t=Qe(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){jo(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){jo(e,n),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})}),t}function zu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new yd;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Dd.bind(null,e,n,t),n.then(e,e))}function ju(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Tu(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Qe(-1,1),n.tag=2,an(t,n,1))),t.lanes|=1),e)}var wd=Ze.ReactCurrentOwner,fe=!1;function ie(e,n,t,r){n.child=e===null?ma(n,null,t,r):rt(n,e.child,t,r)}function Lu(e,n,t,r,l){t=t.render;var o=n.ref;return qn(n,l),r=Si(e,n,t,r,o,l),t=xi(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ge(e,n,l)):(U&&t&&ai(n),n.flags|=1,ie(e,n,r,l),n.child)}function Du(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Di(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,Oa(e,n,o,r,l)):(e=Lr(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(t=t.compare,t=t!==null?t:At,t(i,r)&&e.ref===n.ref)return Ge(e,n,l)}return n.flags|=1,e=dn(o,r),e.ref=n.ref,e.return=n,n.child=e}function Oa(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(At(o,r)&&e.ref===n.ref)if(fe=!1,n.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return n.lanes=e.lanes,Ge(e,n,l)}return To(e,n,t,r,l)}function $a(e,n,t){var r=n.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},R(Yn,he),he|=t;else{if(!(t&1073741824))return e=o!==null?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,R(Yn,he),he|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,R(Yn,he),he|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,R(Yn,he),he|=r;return ie(e,n,l,t),n.child}function Ua(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function To(e,n,t,r,l){var o=pe(t)?zn:oe.current;return o=nt(n,o),qn(n,l),t=Si(e,n,t,r,o,l),r=xi(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ge(e,n,l)):(U&&r&&ai(n),n.flags|=1,ie(e,n,t,l),n.child)}function Iu(e,n,t,r,l){if(pe(t)){var o=!0;Vr(n)}else o=!1;if(qn(n,l),n.stateNode===null)zr(e,n),da(n,t,r),zo(n,t,r,l),r=!0;else if(e===null){var i=n.stateNode,u=n.memoizedProps;i.props=u;var s=i.context,f=t.contextType;typeof f=="object"&&f!==null?f=_e(f):(f=pe(t)?zn:oe.current,f=nt(n,f));var g=t.getDerivedStateFromProps,h=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==f)&&Cu(n,i,r,f),be=!1;var v=n.memoizedState;i.state=v,Yr(n,r,i,l),s=n.memoizedState,u!==r||v!==s||de.current||be?(typeof g=="function"&&(Po(n,t,g,r),s=n.memoizedState),(u=be||Eu(n,t,u,r,v,s,f))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(n.flags|=4194308)):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),i.props=r,i.state=s,i.context=f,r=u):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,ca(e,n),u=n.memoizedProps,f=n.type===n.elementType?u:je(n.type,u),i.props=f,h=n.pendingProps,v=i.context,s=t.contextType,typeof s=="object"&&s!==null?s=_e(s):(s=pe(t)?zn:oe.current,s=nt(n,s));var S=t.getDerivedStateFromProps;(g=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||v!==s)&&Cu(n,i,r,s),be=!1,v=n.memoizedState,i.state=v,Yr(n,r,i,l);var p=n.memoizedState;u!==h||v!==p||de.current||be?(typeof S=="function"&&(Po(n,t,S,r),p=n.memoizedState),(f=be||Eu(n,t,f,r,v,p,s)||!1)?(g||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,s)),typeof i.componentDidUpdate=="function"&&(n.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),i.props=r,i.state=p,i.context=s,r=f):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(n.flags|=1024),r=!1)}return Lo(e,n,t,r,o,l)}function Lo(e,n,t,r,l,o){Ua(e,n);var i=(n.flags&128)!==0;if(!r&&!i)return l&&yu(n,t,!1),Ge(e,n,o);r=n.stateNode,wd.current=n;var u=i&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&i?(n.child=rt(n,e.child,null,o),n.child=rt(n,null,u,o)):ie(e,n,u,o),n.memoizedState=r.state,l&&yu(n,t,!0),n.child}function Aa(e){var n=e.stateNode;n.pendingContext?gu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&gu(e,n.context,!1),gi(e,n.containerInfo)}function Fu(e,n,t,r,l){return tt(),fi(l),n.flags|=256,ie(e,n,t,r),n.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function Io(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wa(e,n,t){var r=n.pendingProps,l=A.current,o=!1,i=(n.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),R(A,l&1),e===null)return _o(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(i=r.children,e=r.fallback,o?(r=n.mode,o=n.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=hl(i,r,0,null),e=Pn(e,r,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Io(t),n.memoizedState=Do,e):_i(n,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return kd(e,n,i,r,u,l,t);if(o){o=r.fallback,i=n.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=dn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=dn(u,o):(o=Pn(o,i,t,null),o.flags|=2),o.return=n,r.return=n,r.sibling=o,n.child=r,r=o,o=n.child,i=e.child.memoizedState,i=i===null?Io(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=Do,r}return o=e.child,e=o.sibling,r=dn(o,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function _i(e,n){return n=hl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function vr(e,n,t,r){return r!==null&&fi(r),rt(n,e.child,null,t),e=_i(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function kd(e,n,t,r,l,o,i){if(t)return n.flags&256?(n.flags&=-257,r=Ql(Error(k(422))),vr(e,n,i,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(o=r.fallback,l=n.mode,r=hl({mode:"visible",children:r.children},l,0,null),o=Pn(o,l,i,null),o.flags|=2,r.return=n,o.return=n,r.sibling=o,n.child=r,n.mode&1&&rt(n,e.child,null,i),n.child.memoizedState=Io(i),n.memoizedState=Do,o);if(!(n.mode&1))return vr(e,n,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=Ql(o,r,void 0),vr(e,n,i,r)}if(u=(i&e.childLanes)!==0,fe||u){if(r=q,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Xe(e,l),Ie(r,e,l,-1))}return Li(),r=Ql(Error(k(421))),vr(e,n,i,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Id.bind(null,e),l._reactRetry=n,null):(e=o.treeContext,ve=sn(l.nextSibling),ge=n,U=!0,Le=null,e!==null&&(Se[xe++]=Be,Se[xe++]=He,Se[xe++]=jn,Be=e.id,He=e.overflow,jn=n),n=_i(n,r.children),n.flags|=4096,n)}function Ru(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),No(e.return,n,t)}function Kl(e,n,t,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(o.isBackwards=n,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=t,o.tailMode=l)}function Va(e,n,t){var r=n.pendingProps,l=r.revealOrder,o=r.tail;if(ie(e,n,r.children,t),r=A.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ru(e,t,n);else if(e.tag===19)Ru(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(R(A,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&Xr(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Kl(n,!1,l,t,o);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&Xr(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Kl(n,!0,t,null,o);break;case"together":Kl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function zr(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ge(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),Ln|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(k(153));if(n.child!==null){for(e=n.child,t=dn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=dn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function Sd(e,n,t){switch(n.tag){case 3:Aa(n),tt();break;case 5:ha(n);break;case 1:pe(n.type)&&Vr(n);break;case 4:gi(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;R(Qr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(R(A,A.current&1),n.flags|=128,null):t&n.child.childLanes?Wa(e,n,t):(R(A,A.current&1),e=Ge(e,n,t),e!==null?e.sibling:null);R(A,A.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Va(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),R(A,A.current),r)break;return null;case 22:case 23:return n.lanes=0,$a(e,n,t)}return Ge(e,n,t)}var Ba,Fo,Ha,Qa;Ba=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};Fo=function(){};Ha=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,_n(Ue.current);var o=null;switch(t){case"input":l=no(e,l),r=no(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=lo(e,l),r=lo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ar)}io(t,r);var i;t=null;for(f in l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&l[f]!=null)if(f==="style"){var u=l[f];for(i in u)u.hasOwnProperty(i)&&(t||(t={}),t[i]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(It.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var s=r[f];if(u=l!=null?l[f]:void 0,r.hasOwnProperty(f)&&s!==u&&(s!=null||u!=null))if(f==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(t||(t={}),t[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(t||(t={}),t[i]=s[i])}else t||(o||(o=[]),o.push(f,t)),t=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(It.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&M("scroll",e),o||u===s||(o=[])):(o=o||[]).push(f,s))}t&&(o=o||[]).push("style",t);var f=o;(n.updateQueue=f)&&(n.flags|=4)}};Qa=function(e,n,t,r){t!==r&&(n.flags|=4)};function yt(e,n){if(!U)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function re(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=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;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function xd(e,n,t){var r=n.pendingProps;switch(ci(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(n),null;case 1:return pe(n.type)&&Wr(),re(n),null;case 3:return r=n.stateNode,lt(),O(de),O(oe),wi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Le!==null&&(Vo(Le),Le=null))),Fo(e,n),re(n),null;case 5:yi(n);var l=_n(Qt.current);if(t=n.type,e!==null&&n.stateNode!=null)Ha(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(k(166));return re(n),null}if(e=_n(Ue.current),mr(n)){r=n.stateNode,t=n.type;var o=n.memoizedProps;switch(r[Oe]=n,r[Bt]=o,e=(n.mode&1)!==0,t){case"dialog":M("cancel",r),M("close",r);break;case"iframe":case"object":case"embed":M("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Oe]=n,e[Bt]=r,Ba(e,n,!1,!1),n.stateNode=e;e:{switch(i=uo(t,r),t){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;lit&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Xr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return re(n),null}else 2*K()-o.renderingStartTime>it&&t!==1073741824&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=K(),n.sibling=null,t=A.current,R(A,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return Ti(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?he&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(k(156,n.tag))}function Ed(e,n){switch(ci(n),n.tag){case 1:return pe(n.type)&&Wr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return lt(),O(de),O(oe),wi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return yi(n),null;case 13:if(O(A),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(k(340));tt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return O(A),null;case 4:return lt(),null;case 10:return mi(n.type._context),null;case 22:case 23:return Ti(),null;case 24:return null;default:return null}}var gr=!1,le=!1,Cd=typeof WeakSet=="function"?WeakSet:Set,C=null;function Kn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){B(e,n,r)}else t.current=null}function Ro(e,n,t){try{t()}catch(r){B(e,n,r)}}var Mu=!1;function _d(e,n){if(yo=Or,e=Gs(),si(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,f=0,g=0,h=e,v=null;n:for(;;){for(var S;h!==t||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(S=h.firstChild)!==null;)v=h,h=S;for(;;){if(h===e)break n;if(v===t&&++f===l&&(u=i),v===o&&++g===r&&(s=i),(S=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=S}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(wo={focusedElem:e,selectionRange:t},Or=!1,C=n;C!==null;)if(n=C,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,C=e;else for(;C!==null;){n=C;try{var p=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,x=p.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?m:je(n.type,m),x);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){B(n,n.return,w)}if(e=n.sibling,e!==null){e.return=n.return,C=e;break}C=n.return}return p=Mu,Mu=!1,p}function Tt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(n,t,o)}l=l.next}while(l!==r)}}function pl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Mo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Ka(e){var n=e.alternate;n!==null&&(e.alternate=null,Ka(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Oe],delete n[Bt],delete n[xo],delete n[ud],delete n[sd])),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 Ya(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ya(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 Oo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ar));else if(r!==4&&(e=e.child,e!==null))for(Oo(e,n,t),e=e.sibling;e!==null;)Oo(e,n,t),e=e.sibling}function $o(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($o(e,n,t),e=e.sibling;e!==null;)$o(e,n,t),e=e.sibling}var b=null,Te=!1;function Je(e,n,t){for(t=t.child;t!==null;)Xa(e,n,t),t=t.sibling}function Xa(e,n,t){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(ol,t)}catch{}switch(t.tag){case 5:le||Kn(t,n);case 6:var r=b,l=Te;b=null,Je(e,n,t),b=r,Te=l,b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?Ul(e.parentNode,t):e.nodeType===1&&Ul(e,t),$t(e)):Ul(b,t.stateNode));break;case 4:r=b,l=Te,b=t.stateNode.containerInfo,Te=!0,Je(e,n,t),b=r,Te=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ro(t,n,i),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Kn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){B(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function $u(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Cd),n.forEach(function(r){var l=Fd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pd(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,br=0,I&6)throw Error(k(331));var l=I;for(I|=4,C=e.current;C!==null;){var o=C,i=o.child;if(C.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-zi?Nn(e,0):Pi|=t),me(e,n)}function tc(e,n){n===0&&(e.mode&1?(n=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):n=1);var t=ue();e=Xe(e,n),e!==null&&(Jt(e,n,t),me(e,t))}function Id(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),tc(e,t)}function Fd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(n),tc(e,t)}var rc;rc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,Sd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,U&&n.flags&1048576&&ia(n,Hr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;zr(e,n),e=n.pendingProps;var l=nt(n,oe.current);qn(n,t),l=Si(null,n,r,e,l,t);var o=xi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pe(r)?(o=!0,Vr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,vi(n),l.updater=fl,n.stateNode=l,l._reactInternals=n,zo(n,r,e,t),n=Lo(null,n,r,!0,o,t)):(n.tag=0,U&&o&&ai(n),ie(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(zr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Md(r),e=je(r,e),l){case 0:n=To(null,n,r,e,t);break e;case 1:n=Iu(null,n,r,e,t);break e;case 11:n=Lu(null,n,r,e,t);break e;case 14:n=Du(null,n,r,je(r.type,e),t);break e}throw Error(k(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),To(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Iu(e,n,r,l,t);case 3:e:{if(Aa(n),e===null)throw Error(k(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ca(e,n),Yr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=ot(Error(k(423)),n),n=Fu(e,n,r,t,l);break e}else if(r!==l){l=ot(Error(k(424)),n),n=Fu(e,n,r,t,l);break e}else for(ve=sn(n.stateNode.containerInfo.firstChild),ge=n,U=!0,Le=null,t=ma(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(tt(),r===l){n=Ge(e,n,t);break e}ie(e,n,r,t)}n=n.child}return n;case 5:return ha(n),e===null&&_o(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ko(r,l)?i=null:o!==null&&ko(r,o)&&(n.flags|=32),Ua(e,n),ie(e,n,i,t),n.child;case 6:return e===null&&_o(n),null;case 13:return Wa(e,n,t);case 4:return gi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=rt(n,null,r,t):ie(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Lu(e,n,r,l,t);case 7:return ie(e,n,n.pendingProps,t),n.child;case 8:return ie(e,n,n.pendingProps.children,t),n.child;case 12:return ie(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,R(Qr,r._currentValue),r._currentValue=i,o!==null)if(Fe(o.value,i)){if(o.children===l.children&&!de.current){n=Ge(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Qe(-1,t&-t),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var g=f.pending;g===null?s.next=s:(s.next=g.next,g.next=s),f.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),No(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),No(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,qn(n,t),l=_e(l),r=r(l),n.flags|=1,ie(e,n,r,t),n.child;case 14:return r=n.type,l=je(r,n.pendingProps),l=je(r.type,l),Du(e,n,r,l,t);case 15:return Oa(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),zr(e,n),n.tag=1,pe(r)?(e=!0,Vr(n)):e=!1,qn(n,t),da(n,r,l),zo(n,r,l,t),Lo(null,n,r,!0,e,t);case 19:return Va(e,n,t);case 22:return $a(e,n,t)}throw Error(k(156,n.tag))};function lc(e,n){return Ts(e,n)}function Rd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Ee(e,n,t,r){return new Rd(e,n,t,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Md(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jo)return 11;if(e===qo)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Lr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Di(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case On:return Pn(t.children,l,o,n);case Zo:i=8,l|=8;break;case Jl:return e=Ee(12,t,n,l|2),e.elementType=Jl,e.lanes=o,e;case ql:return e=Ee(13,t,n,l),e.elementType=ql,e.lanes=o,e;case bl:return e=Ee(19,t,n,l),e.elementType=bl,e.lanes=o,e;case ps:return hl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fs:i=10;break e;case ds:i=9;break e;case Jo:i=11;break e;case qo:i=14;break e;case qe:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return n=Ee(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Pn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function hl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=ps,e.lanes=t,e.stateNode={isHidden:!1},e}function Yl(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Xl(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Od(e,n,t,r,l){this.tag=n,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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ii(e,n,t,r,l,o,i,u,s){return e=new Od(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ee(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},vi(o),e}function $d(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sc)}catch(e){console.error(e)}}sc(),is.exports=we;var Bd=is.exports,Ku=Bd;Gl.createRoot=Ku.createRoot,Gl.hydrateRoot=Ku.hydrateRoot;function ac({text:e}){const[n,t]=$.useState(e??"");return y.jsx("div",{className:"notepad",children:y.jsx("textarea",{value:n,onChange:r=>t(r.value)})})}class Hd{constructor(n,t){kn(this,"get",n=>this.fs.get(this.current,n));kn(this,"getFile",n=>this.fs.getFile(this.current,n));kn(this,"getDir",n=>this.fs.getDir(this.current,n));kn(this,"createFile",n=>this.fs.createFile(this.current,n));kn(this,"createDir",n=>this.fs.createDir(this.current,n));kn(this,"getPath",(n=!1)=>this.fs.getPath(this.current,n));this.fs=n,this.current=this.fs.getDir(n.root,"/home/visitor")??n.root,this.bin=this.fs.getDir(n.root,"/usr/bin"),this.vars={HOME:"/home/visitor",PATH:"/usr/bin",USER:"visitor","?":0},this.print=r=>t(l=>[...l,r]),this.error=r=>t(l=>[...l,r]),this.clear=()=>t([])}}function Qd(e,n,t,r){const l=`visitor@winux ${n.getPath()}$ `;r(s=>[...s,l+e+` +`]);let o="";const i=/>\s*\w+/g,u=e.replace(i,s=>(o=s.trim().slice(1),""));if(o&&o!==""){let s="";n.print=f=>s+=f,Yu(u,n,t),n.fs.saveToFile(n.current,o.trim(),s)}else n.print=n.error,Yu(u,n,t)}function Yu(e,n,t){let[r,l]=Xd(n,e);if(r)switch(r){case"cd":Gd(n,l);break;case"echo":Zd(n,l);break;case"help":Jd(n);break;default:let o=n.bin;(r.startsWith("./")||r.startsWith("/")||r.startsWith("~"))&&(o=n.current);const i=n.fs.get(o,r);i?i.type==="exe"?Kd(i,r,l,n):i.type==="app"?Yd(i,t):tl(n,`${r}: file not executable`):tl(n,`${r}: command not found`);break}}function Kd(e,n,t,r){try{return new Function("env","args",`${e.value} return main(env, args);`)(r,t)}catch(l){return console.log(l),r.error(`Error executing program '${n}' -`),1}}function Yd(e,n){n.add(e)}function tl(e,n,t=1){return e.error(`bash: ${n} -`),t}function Xd(e,n){if(n.length>1)return tl(e,"cd: too many arguments");const t=e.getDir(n[0]??"");return t?(e.current=t,0):tl(e,`cd: ${n[0]}: No such file or directory`)}function Gd(e,n){return e.print(n.join(" ")+` -`),0}function Zd(e){return e.print(`Welcome in winux by Martan03 +`),1}}function Yd(e,n){n.add(e)}function Xu(e,n){return n=n.replace(/\$\?/g,()=>e.vars["?"]),n.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)/g,(t,r)=>e.vars[r]??"")}function Xd(e,n){const t=/"((?:\\.|[^"\\])*)"|'([^']*)'|(\S+)/g,r=[];let l;for(;l=t.exec(n);)if(l[1]){let i=Xu(e,l[1]);i=i.replace(/\\\"/g,'"').replace(/\\\\/g,"\\"),r.push(i)}else if(l[3]){let i=Xu(e,l[3]);i=i.replace(/\\(.)/g,u=>u[1]),r.push(i)}else r.push(l[2]);return[r.shift(),r]}function tl(e,n,t=1){return e.error(`bash: ${n} +`),t}function Gd(e,n){if(n.length>1)return tl(e,"cd: too many arguments");const t=e.getDir(n[0]??"");return t?(e.current=t,0):tl(e,`cd: ${n[0]}: No such file or directory`)}function Zd(e,n){return e.print(n.join(" ")+` +`),0}function Jd(e){return e.print(`Welcome in winux by Martan03 Commands: cd [directory] @@ -51,7 +51,7 @@ Commands: prints the arguments help prints this help -`),0}const Jd=`function main(env, args) { +`),0}const qd=`function main(env, args) { if (args.length !== 1) { env.error('bash: cat: Invalid number of arguments\\n'); return 1; @@ -65,7 +65,7 @@ Commands: env.print(file.value); return 0; -}`,qd=`function main(env, args) { +}`,bd=`function main(env, args) { const mode = args.shift(); let type = 'exe'; @@ -95,10 +95,10 @@ Commands: } return ret; -}`,bd=`function main(env, args) { +}`,ep=`function main(env, args) { env.clear(); return 0; -}`,ep=`function main(env, args) { +}`,np=`function main(env, args) { if (args.length <= 0) args.push(''); @@ -116,7 +116,7 @@ Commands: env.print(res + '\\n'); } return ret; -}`,np=`function main(env, args) { +}`,tp=`function main(env, args) { if (args.length <= 0) { env.error("mkdir: missing operand\\n"); return 1; @@ -131,10 +131,10 @@ Commands: } return ret; -}`,tp=`function main(env, args) { +}`,rp=`function main(env, args) { env.print(env.getPath(true) + '\\n'); return 0; -}`,rp=`function error(env, path, err) { +}`,lp=`function error(env, path, err) { env.error(\`rm: cannot remove '\${path}': \${err}\\n\`); } @@ -167,7 +167,7 @@ function main(env, args) { } return ret; -}`,lp=`function main(env, args) { +}`,op=`function main(env, args) { let ret = 0; for (const arg of args) { if (env.get(arg)) @@ -182,8 +182,8 @@ function main(env, args) { } return ret; -}`;function op(e){return{cat:{name:"cat",type:"exe",parent:e,value:Jd},chmod:{name:"chmod",type:"exe",parent:e,value:qd},clear:{name:"clear",type:"exe",parent:e,value:bd},ls:{name:"ls",type:"exe",parent:e,value:ep},mkdir:{name:"mkdir",type:"exe",parent:e,value:np},pwd:{name:"pwd",type:"exe",parent:e,value:tp},rm:{name:"rm",type:"exe",parent:e,value:rp},touch:{name:"touch",type:"exe",parent:e,value:lp}}}function ip({cmd:e,cursor:n}){return y.jsxs(y.Fragment,{children:[y.jsx("span",{children:e.slice(0,n)}),y.jsx("span",{className:"term-cursor",children:e[n]??" "}),y.jsx("span",{children:e.slice(n+1)})]})}function up({env:e,cmd:n,cursor:t}){return y.jsxs(y.Fragment,{children:[y.jsxs("span",{children:["visitor@winux ",e.fs.getPath(e.current),"$ "]}),y.jsx(ip,{cmd:n,cursor:t})]})}function ac({id:e,fs:n,wm:t}){const[r,l]=$.useState([]),[o,i]=$.useState(new Vd(n,l)),[u,s]=$.useState(""),[f,g]=$.useState([]),[h,v]=$.useState(-1),[S,p]=$.useState(0),m=$.useRef(null);$.useEffect(()=>{m.current.scrollTop=m.current.scrollHeight},[r]);const x=a=>{s(a.target.value),p(a.target.selectionStart)},c=a=>{a.key==="ArrowLeft"&&S>0?p(S-1):a.key==="ArrowRight"&&S-1?(s(f[h-1]??""),v(h-1),p(0)):a.key==="End"?p(u.length):a.key==="Home"?p(0):a.key==="Enter"&&(Qd(u,o,t,l),v(-1),g(d=>[u,...d]),s(""))};return y.jsx("label",{htmlFor:`cmdInput${e}`,children:y.jsxs("div",{className:"term",ref:m,children:[r.map((a,d)=>y.jsx("span",{children:a},d)),y.jsx(up,{env:o,cmd:u,cursor:S}),y.jsx("input",{type:"text",id:`cmdInput${e}`,value:u,onChange:x,onKeyDown:c,autoComplete:"off",autoFocus:!0,autoCapitalize:"off"})]})})}function sp(e){return{"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:rl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:rl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function ap(){return[{name:"My Portfolio",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io"}]}function cp(e){return{notepad:{name:"notepad",type:"app",parent:e,value:sc.toString()},terminal:{name:"terminal",type:"app",parent:e,value:ac.toString()}}}function rl(e,n,t){return`[Desktop Entry] +}`;function ip(e){return{cat:{name:"cat",type:"exe",parent:e,value:qd},chmod:{name:"chmod",type:"exe",parent:e,value:bd},clear:{name:"clear",type:"exe",parent:e,value:ep},ls:{name:"ls",type:"exe",parent:e,value:np},mkdir:{name:"mkdir",type:"exe",parent:e,value:tp},pwd:{name:"pwd",type:"exe",parent:e,value:rp},rm:{name:"rm",type:"exe",parent:e,value:lp},touch:{name:"touch",type:"exe",parent:e,value:op}}}function up({cmd:e,cursor:n}){return y.jsxs(y.Fragment,{children:[y.jsx("span",{children:e.slice(0,n)}),y.jsx("span",{className:"term-cursor",children:e[n]??" "}),y.jsx("span",{children:e.slice(n+1)})]})}function sp({env:e,cmd:n,cursor:t}){return y.jsxs(y.Fragment,{children:[y.jsxs("span",{children:["visitor@winux ",e.getPath(),"$ "]}),y.jsx(up,{cmd:n,cursor:t})]})}function cc({id:e,fs:n,wm:t}){const[r,l]=$.useState([]),[o,i]=$.useState(new Hd(n,l)),[u,s]=$.useState(""),[f,g]=$.useState([]),[h,v]=$.useState(-1),[S,p]=$.useState(0),m=$.useRef(null);$.useEffect(()=>{m.current.scrollTop=m.current.scrollHeight},[r]);const x=a=>{s(a.target.value),p(a.target.selectionStart)},c=a=>{a.key==="ArrowLeft"&&S>0?p(S-1):a.key==="ArrowRight"&&S-1?(s(f[h-1]??""),v(h-1),p(0)):a.key==="End"?p(u.length):a.key==="Home"?p(0):a.key==="Enter"&&(Qd(u,o,t,l),v(-1),g(d=>[u,...d]),s(""))};return y.jsx("label",{htmlFor:`cmdInput${e}`,children:y.jsxs("div",{className:"term",ref:m,children:[r.map((a,d)=>y.jsx("span",{children:a},d)),y.jsx(sp,{env:o,cmd:u,cursor:S}),y.jsx("input",{type:"text",id:`cmdInput${e}`,value:u,onChange:x,onKeyDown:c,autoComplete:"off",autoFocus:!0,autoCapitalize:"off"})]})})}function ap(e){return{"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:rl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:rl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function cp(){return[{name:"My Portfolio",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io"}]}function fp(e){return{notepad:{name:"notepad",type:"app",parent:e,value:ac.toString()},terminal:{name:"terminal",type:"app",parent:e,value:cc.toString()}}}function rl(e,n,t){return`[Desktop Entry] Name=${e} Exec=${n} -Icon=${t}`}function fp(e){return{"My Portfolio":{name:"My Portfolio",type:"app",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io",parent:e},"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:rl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:rl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function dp(e){const n=e.split(` -`),t={};for(const r of n){const l=r.match(/^\s*([^=]+)\s*=\s*(.*)\s*$/);l&&(t[l[1]]=l[2])}return t}function cc(e){if(!e)return[];const n=[];for(const t in e.children){if(e.children[t].type!=="desktop"){e.children[t].type==="app"&&n.push(e.children[t]);continue}n.push(dp(e.children[t].value))}return n}function pp({app:e,wm:n}){const t=()=>{e.Exec?n.addFromFile(e):n.add(e)},r=e.Icon??e.icon,l=e.Name??e.name;return y.jsxs("div",{className:"icon",onDoubleClick:()=>t(),children:[y.jsx("img",{src:r,alt:l+" icon"}),y.jsx("p",{children:l})]})}function mp({fs:e,wm:n}){const t=e.getDir(e.root,"/home/visitor/Desktop"),r=cc(t);return y.jsx("div",{className:"grid",children:r.map((l,o)=>y.jsx(pp,{app:l,wm:n},o))})}function hp({id:e,win:n,wm:t}){const[r,l]=$.useState(!1),[o,i]=$.useState({x:0,y:0});$.useEffect(()=>{const h=S=>{S.preventDefault(),r&&requestAnimationFrame(()=>{s({x:S.clientX-o.x,y:S.clientY-o.y})})},v=()=>l(!1);return r&&(document.addEventListener("mousemove",h),document.addEventListener("mouseup",v)),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}},[r,o]);const u=h=>{h.preventDefault(),l(!0),i({x:h.clientX-n.pos.x,y:h.clientY-n.pos.y})},s=h=>{t.move(e,h)},f=h=>{h.stopPropagation(),t.minimize(e)},g=h=>{h.stopPropagation(),t.close(e)};return y.jsxs("div",{className:"window-bar"+(t.focus===e?" focus":""),onMouseDown:u,children:[y.jsx("div",{children:y.jsx("p",{children:n.app.name})}),y.jsxs("div",{children:[y.jsx("button",{className:"btn",onMouseDown:f,children:"_"}),y.jsx("button",{className:"btn",onMouseDown:g,children:"X"})]})]})}function vp({id:e,win:n,fs:t,wm:r}){switch(n.app.exec?n.app.exec:n.app.name.toLowerCase()){case"terminal":case"/usr/bin/terminal":return y.jsx(ac,{id:e,fs:t,wm:r});case"notepad":case"/usr/bin/notepad":return y.jsx(sc,{});default:return y.jsx("p",{children:"App failed to load"})}}function gp({url:e}){return y.jsx("iframe",{src:e})}function yp({id:e,win:n,fs:t,wm:r}){if(!n.minimized)return y.jsxs("div",{className:"window",onMouseDown:()=>r.changeFocus(e),style:{top:n.pos.y,left:n.pos.x,zIndex:n.zIndex},children:[y.jsx(hp,{id:e,win:n,wm:r}),y.jsx("div",{className:"window-content",children:n.app.url?y.jsx(gp,{url:n.app.url}):y.jsx(vp,{id:e,win:n,fs:t,wm:r})})]})}function wp({startVis:e,setStartVis:n}){return y.jsx("button",{className:"taskbar-start-btn btn"+(e?" active":""),onClick:()=>n(!e),children:y.jsx("img",{src:"./icons/start.png",alt:"Start"})})}function kp({wm:e}){const n=t=>{e.windows[t].minimized?e.unminimize(t):e.minimize(t)};return y.jsx("div",{className:"taskbar-open-apps",children:e.windows.map((t,r)=>y.jsxs("div",{className:"btn"+(e.focus===r?" focus":""),onClick:()=>n(r),children:[y.jsx("img",{src:t.app.icon}),y.jsx("p",{children:t.app.name})]},r))})}function Sp(){const[e,n]=$.useState(new Date);$.useEffect(()=>{const l=(60-new Date().getSeconds())*1e3;var o=null;return setTimeout(()=>{n(new Date),o=setInterval(()=>{n(new Date)},6e4)},l),()=>{o&&clearInterval(o)}},[]);const t=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return y.jsx("div",{className:"taskbar-tray",children:y.jsx("p",{children:t})})}function xp({wm:e,startVis:n,setStartVis:t}){return y.jsxs("div",{className:"taskbar",children:[y.jsx(wp,{startVis:n,setStartVis:t}),y.jsx("div",{className:"taskbar-divider"}),y.jsx(kp,{wm:e}),y.jsx("div",{className:"taskbar-divider"}),y.jsx(Sp,{})]})}const fc="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2010%2010'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpolygon%20points='6.5,5%203.5,7.5%203.5,2.5'%20fill='%23000'%20/%3e%3c/svg%3e";function Ae({text:e,icon:n,onClick:t,iconSm:r,children:l}){return y.jsxs("div",{className:"start-menu-item",onClick:t,children:[y.jsx("img",{className:`icon${r?" sm":""}`,src:"./icons/"+n}),y.jsx("p",{children:e}),l?y.jsxs(y.Fragment,{children:[y.jsx("img",{className:"menu-arrow",src:fc}),l]}):""]})}function Xu({item:e,wm:n,close:t,iconSm:r,children:l}){const o=e.Icon??e.icon??"",i=e.Name??e.name??"",u=()=>{t(),e.Exec?n.addFromFile(e):n.add(e)};return y.jsxs("div",{className:"start-menu-item sm",onClick:u,children:[y.jsx("img",{className:`icon${r?" sm":""}`,src:o}),y.jsx("p",{children:i}),l?y.jsxs(y.Fragment,{children:[y.jsx("img",{className:"menu-arrow",src:fc}),l]}):""]})}function Ep({startVis:e,setStartVis:n,addWindow:t,setDialog:r,fs:l,wm:o}){if(!e)return;const i=l.get(l.root,"/usr/share/applications"),u=cc(i),s=ap(),f=()=>{n(!1),r("shutdown")};return y.jsx("div",{className:"start-wrapper",onClick:()=>n(!1),children:y.jsxs("div",{className:"start-menu",onClick:g=>g.stopPropagation(),children:[y.jsx("div",{className:"start-menu-header",children:y.jsx("p",{children:"Winux98"})}),y.jsxs("div",{className:"start-menu-content",children:[y.jsx(Ae,{text:"Programs",icon:"programs.png",iconSm:!0,children:y.jsx("div",{className:"start-menu-item-submenu",children:u.map((g,h)=>y.jsx(Xu,{item:g,wm:o,close:()=>n(!1)},h))})}),y.jsx(Ae,{text:"Favourites",icon:"favourites.png",iconSm:!0,children:y.jsx("div",{className:"start-menu-item-submenu",children:s.map((g,h)=>y.jsx(Xu,{item:g,wm:o,close:()=>n(!1)},h))})}),y.jsx(Ae,{text:"Documents",icon:"documents.png",iconSm:!0}),y.jsx(Ae,{text:"Settings",icon:"settings.png"}),y.jsx(Ae,{text:"Find",icon:"search.png"}),y.jsx(Ae,{text:"Help",icon:"help.png",iconSm:!0}),y.jsx(Ae,{text:"Run...",icon:"run.png",iconSm:!0}),y.jsx("div",{className:"start-menu-sep"}),y.jsx(Ae,{text:"Log Off...",icon:"logout.png"}),y.jsx(Ae,{text:"Shut Down...",icon:"shutdown.png",onClick:f})]})]})})}const Cp=()=>{const e=()=>{const p={name:"root",children:{},parent:null},m={name:"usr",children:{},parent:p},x={name:"bin",children:{},parent:m};x.children={...op(x),...cp(x)};const c={name:"share",children:{},parent:m},a={name:"applications",children:{},parent:c};c.children={applications:a},a.children=sp(a);const d={name:"home",children:{},parent:p};p.children.home=d;const w={name:"visitor",children:{},parent:d};d.children.visitor=w;const E={name:"Desktop",children:fp(w),parent:w};return w.children.Desktop=E,m.children.bin=x,m.children.share=c,p.children.usr=m,p},[n,t]=$.useState(e()),r=(p,m)=>{m.parent=p,p.children[m.name]=m,t(x=>({...x}))},l=(p,m,x)=>{const c=S(m),a=s(p,c.parent);return!a||a.children[c.file]?!1:(x.name=c.file,r(a,x),!0)},o=(p,m,x="",c="txt")=>l(p,m,{value:x,type:c}),i=(p,m,x,c="txt")=>{const a=m.lastIndexOf("/"),d=m.substring(0,a),w=m.substring(a+1),E=s(p,d);if(!E||w=="..")return!1;E.children[w]={name:w,value:x,type:c,parent:E}},u=(p,m)=>l(p,m,{children:{}}),s=(p,m)=>{var a;const x=m.split("/").filter(d=>d!=="");let c=p;m.startsWith("/")&&(c=n);for(const d of x){if(!c)break;d===".."?c=c.parent:d==="~"?c=(a=c.children.home)==null?void 0:a.children.visitor:d!=="."&&(c=c.children[d])}return c},f=(p,m)=>{const x=s(p,m);return x!=null&&x.children?null:x},g=(p,m)=>{const x=s(p,m);return x!=null&&x.children?x:null},h=(p,m=!1)=>{if(!p.parent)return"/";let x="",c=p;for(;c.parent;)x=`/${c.name}${x}`,c=c.parent;return!m&&x.startsWith("/home/visitor")&&(x=x.replace("/home/visitor","~")),x},v=(p,m)=>p.children[m]?(delete p.children[m],t(x=>({...x})),!0):!1,S=p=>{const m=p.lastIndexOf("/");return m===-1?{parent:"",file:p}:{parent:p.slice(0,m),file:p.slice(m+1)}};return{root:n,add:r,get:s,getFile:f,getDir:g,getPath:h,createFile:o,saveToFile:i,createDir:u,remove:v}};function _p({title:e,onClose:n,children:t}){return y.jsx("div",{className:"dialog",children:y.jsxs("div",{className:"window",children:[y.jsxs("div",{className:"window-bar focus",children:[y.jsx("div",{children:y.jsx("p",{children:e})}),y.jsx("div",{children:y.jsx("button",{className:"btn",onClick:n,children:"X"})})]}),y.jsx("div",{className:"window-content",children:t})]})})}function Np({onClose:e,setOn:n}){const t=()=>{n(!1)};return y.jsx(_p,{title:"Shutting Down Winux",onClose:e,children:y.jsxs("div",{className:"shutdown",children:[y.jsx("img",{src:"./icons/shutdown.png",alt:"shutdown"}),y.jsxs("div",{children:[y.jsx("p",{children:"Do you want to turn off the computer?"}),y.jsxs("div",{className:"buttons",children:[y.jsx("button",{className:"btn",onClick:t,children:"OK"}),y.jsx("button",{className:"btn",onClick:e,children:"Cancel"})]})]})]})})}function Pp({dialog:e,setDialog:n,setOn:t}){const r=()=>{n(null)};return e==="shutdown"?y.jsx(Np,{onClose:r,setOn:t}):y.jsx(y.Fragment,{})}const zp=()=>{const[e,n]=$.useState([]),[t,r]=$.useState(-1),[l,o]=$.useState(1),i=p=>{const m=Math.max((window.innerWidth-720)/2,0),x=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:m,y:x},zIndex:c,app:p}]),o(l+1)},u=p=>{const m=Math.max((window.innerWidth-720)/2,0),x=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:m,y:x},zIndex:c,app:{name:p.Name,icon:p.Icon,exec:p.Exec}}]),o(l+1)},s=p=>{if(p!=t){var m=[...e];m[p].zIndex=m[t]?m[t].zIndex+1:1,n(m),r(p)}},f=p=>{var m=[...e];m[p].minimized=!0,n(m),p===t&&S(m)},g=p=>{var m=[...e];m[p].zIndex=m[t]?m[t].zIndex+1:1,m[p].minimized=!1,n(m),r(p)},h=p=>{var m=[...e];if(m.splice(p,1),n(m),p!==t||m.length<=0){p{var x=[...e];x[p].pos=m,n(x)},S=p=>{var x;let m=-1;for(let c=0;cy.jsx(yp,{id:f,win:s,fs:l,wm:o},s.id)),y.jsx(Pp,{dialog:t,setDialog:r,setOn:n})]}):y.jsx("div",{className:"turned-off",children:"how can I turn it on?"})}Gl.createRoot(document.getElementById("root")).render(y.jsx(Lc.StrictMode,{children:y.jsx(jp,{})})); +Icon=${t}`}function dp(e){return{"My Portfolio":{name:"My Portfolio",type:"app",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io",parent:e},"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:rl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:rl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function pp(e){const n=e.split(` +`),t={};for(const r of n){const l=r.match(/^\s*([^=]+)\s*=\s*(.*)\s*$/);l&&(t[l[1]]=l[2])}return t}function fc(e){if(!e)return[];const n=[];for(const t in e.children){if(e.children[t].type!=="desktop"){e.children[t].type==="app"&&n.push(e.children[t]);continue}n.push(pp(e.children[t].value))}return n}function mp({app:e,wm:n}){const t=()=>{e.Exec?n.addFromFile(e):n.add(e)},r=e.Icon??e.icon,l=e.Name??e.name;return y.jsxs("div",{className:"icon",onDoubleClick:()=>t(),children:[y.jsx("img",{src:r,alt:l+" icon"}),y.jsx("p",{children:l})]})}function hp({fs:e,wm:n}){const t=e.getDir(e.root,"/home/visitor/Desktop"),r=fc(t);return y.jsx("div",{className:"grid",children:r.map((l,o)=>y.jsx(mp,{app:l,wm:n},o))})}function vp({id:e,win:n,wm:t}){const[r,l]=$.useState(!1),[o,i]=$.useState({x:0,y:0});$.useEffect(()=>{const h=S=>{S.preventDefault(),r&&requestAnimationFrame(()=>{s({x:S.clientX-o.x,y:S.clientY-o.y})})},v=()=>l(!1);return r&&(document.addEventListener("mousemove",h),document.addEventListener("mouseup",v)),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}},[r,o]);const u=h=>{h.preventDefault(),l(!0),i({x:h.clientX-n.pos.x,y:h.clientY-n.pos.y})},s=h=>{t.move(e,h)},f=h=>{h.stopPropagation(),t.minimize(e)},g=h=>{h.stopPropagation(),t.close(e)};return y.jsxs("div",{className:"window-bar"+(t.focus===e?" focus":""),onMouseDown:u,children:[y.jsx("div",{children:y.jsx("p",{children:n.app.name})}),y.jsxs("div",{children:[y.jsx("button",{className:"btn",onMouseDown:f,children:"_"}),y.jsx("button",{className:"btn",onMouseDown:g,children:"X"})]})]})}function gp({id:e,win:n,fs:t,wm:r}){switch(n.app.exec?n.app.exec:n.app.name.toLowerCase()){case"terminal":case"/usr/bin/terminal":return y.jsx(cc,{id:e,fs:t,wm:r});case"notepad":case"/usr/bin/notepad":return y.jsx(ac,{});default:return y.jsx("p",{children:"App failed to load"})}}function yp({url:e}){return y.jsx("iframe",{src:e})}function wp({id:e,win:n,fs:t,wm:r}){if(!n.minimized)return y.jsxs("div",{className:"window",onMouseDown:()=>r.changeFocus(e),style:{top:n.pos.y,left:n.pos.x,zIndex:n.zIndex},children:[y.jsx(vp,{id:e,win:n,wm:r}),y.jsx("div",{className:"window-content",children:n.app.url?y.jsx(yp,{url:n.app.url}):y.jsx(gp,{id:e,win:n,fs:t,wm:r})})]})}function kp({startVis:e,setStartVis:n}){return y.jsx("button",{className:"taskbar-start-btn btn"+(e?" active":""),onClick:()=>n(!e),children:y.jsx("img",{src:"./icons/start.png",alt:"Start"})})}function Sp({wm:e}){const n=t=>{e.windows[t].minimized?e.unminimize(t):e.minimize(t)};return y.jsx("div",{className:"taskbar-open-apps",children:e.windows.map((t,r)=>y.jsxs("div",{className:"btn"+(e.focus===r?" focus":""),onClick:()=>n(r),children:[y.jsx("img",{src:t.app.icon}),y.jsx("p",{children:t.app.name})]},r))})}function xp(){const[e,n]=$.useState(new Date);$.useEffect(()=>{const l=(60-new Date().getSeconds())*1e3;var o=null;return setTimeout(()=>{n(new Date),o=setInterval(()=>{n(new Date)},6e4)},l),()=>{o&&clearInterval(o)}},[]);const t=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return y.jsx("div",{className:"taskbar-tray",children:y.jsx("p",{children:t})})}function Ep({wm:e,startVis:n,setStartVis:t}){return y.jsxs("div",{className:"taskbar",children:[y.jsx(kp,{startVis:n,setStartVis:t}),y.jsx("div",{className:"taskbar-divider"}),y.jsx(Sp,{wm:e}),y.jsx("div",{className:"taskbar-divider"}),y.jsx(xp,{})]})}const dc="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2010%2010'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpolygon%20points='6.5,5%203.5,7.5%203.5,2.5'%20fill='%23000'%20/%3e%3c/svg%3e";function Ae({text:e,icon:n,onClick:t,iconSm:r,children:l}){return y.jsxs("div",{className:"start-menu-item",onClick:t,children:[y.jsx("img",{className:`icon${r?" sm":""}`,src:"./icons/"+n}),y.jsx("p",{children:e}),l?y.jsxs(y.Fragment,{children:[y.jsx("img",{className:"menu-arrow",src:dc}),l]}):""]})}function Gu({item:e,wm:n,close:t,iconSm:r,children:l}){const o=e.Icon??e.icon??"",i=e.Name??e.name??"",u=()=>{t(),e.Exec?n.addFromFile(e):n.add(e)};return y.jsxs("div",{className:"start-menu-item sm",onClick:u,children:[y.jsx("img",{className:`icon${r?" sm":""}`,src:o}),y.jsx("p",{children:i}),l?y.jsxs(y.Fragment,{children:[y.jsx("img",{className:"menu-arrow",src:dc}),l]}):""]})}function Cp({startVis:e,setStartVis:n,addWindow:t,setDialog:r,fs:l,wm:o}){if(!e)return;const i=l.get(l.root,"/usr/share/applications"),u=fc(i),s=cp(),f=()=>{n(!1),r("shutdown")};return y.jsx("div",{className:"start-wrapper",onClick:()=>n(!1),children:y.jsxs("div",{className:"start-menu",onClick:g=>g.stopPropagation(),children:[y.jsx("div",{className:"start-menu-header",children:y.jsx("p",{children:"Winux98"})}),y.jsxs("div",{className:"start-menu-content",children:[y.jsx(Ae,{text:"Programs",icon:"programs.png",iconSm:!0,children:y.jsx("div",{className:"start-menu-item-submenu",children:u.map((g,h)=>y.jsx(Gu,{item:g,wm:o,close:()=>n(!1)},h))})}),y.jsx(Ae,{text:"Favourites",icon:"favourites.png",iconSm:!0,children:y.jsx("div",{className:"start-menu-item-submenu",children:s.map((g,h)=>y.jsx(Gu,{item:g,wm:o,close:()=>n(!1)},h))})}),y.jsx(Ae,{text:"Documents",icon:"documents.png",iconSm:!0}),y.jsx(Ae,{text:"Settings",icon:"settings.png"}),y.jsx(Ae,{text:"Find",icon:"search.png"}),y.jsx(Ae,{text:"Help",icon:"help.png",iconSm:!0}),y.jsx(Ae,{text:"Run...",icon:"run.png",iconSm:!0}),y.jsx("div",{className:"start-menu-sep"}),y.jsx(Ae,{text:"Log Off...",icon:"logout.png"}),y.jsx(Ae,{text:"Shut Down...",icon:"shutdown.png",onClick:f})]})]})})}const _p=()=>{const e=()=>{const p={name:"root",children:{},parent:null},m={name:"usr",children:{},parent:p},x={name:"bin",children:{},parent:m};x.children={...ip(x),...fp(x)};const c={name:"share",children:{},parent:m},a={name:"applications",children:{},parent:c};c.children={applications:a},a.children=ap(a);const d={name:"home",children:{},parent:p};p.children.home=d;const w={name:"visitor",children:{},parent:d};d.children.visitor=w;const E={name:"Desktop",children:dp(w),parent:w};return w.children.Desktop=E,m.children.bin=x,m.children.share=c,p.children.usr=m,p},[n,t]=$.useState(e()),r=(p,m)=>{m.parent=p,p.children[m.name]=m,t(x=>({...x}))},l=(p,m,x)=>{const c=S(m),a=s(p,c.parent);return!a||a.children[c.file]?!1:(x.name=c.file,r(a,x),!0)},o=(p,m,x="",c="txt")=>l(p,m,{value:x,type:c}),i=(p,m,x,c="txt")=>{const a=m.lastIndexOf("/"),d=m.substring(0,a),w=m.substring(a+1),E=s(p,d);if(!E||w=="..")return!1;E.children[w]={name:w,value:x,type:c,parent:E}},u=(p,m)=>l(p,m,{children:{}}),s=(p,m)=>{var a;const x=m.split("/").filter(d=>d!=="");let c=p;m.startsWith("/")&&(c=n);for(const d of x){if(!c)break;d===".."?c=c.parent:d==="~"?c=(a=c.children.home)==null?void 0:a.children.visitor:d!=="."&&(c=c.children[d])}return c},f=(p,m)=>{const x=s(p,m);return x!=null&&x.children?null:x},g=(p,m)=>{const x=s(p,m);return x!=null&&x.children?x:null},h=(p,m=!1)=>{if(!p.parent)return"/";let x="",c=p;for(;c.parent;)x=`/${c.name}${x}`,c=c.parent;return!m&&x.startsWith("/home/visitor")&&(x=x.replace("/home/visitor","~")),x},v=(p,m)=>p.children[m]?(delete p.children[m],t(x=>({...x})),!0):!1,S=p=>{const m=p.lastIndexOf("/");return m===-1?{parent:"",file:p}:{parent:p.slice(0,m),file:p.slice(m+1)}};return{root:n,add:r,get:s,getFile:f,getDir:g,getPath:h,createFile:o,saveToFile:i,createDir:u,remove:v}};function Np({title:e,onClose:n,children:t}){return y.jsx("div",{className:"dialog",children:y.jsxs("div",{className:"window",children:[y.jsxs("div",{className:"window-bar focus",children:[y.jsx("div",{children:y.jsx("p",{children:e})}),y.jsx("div",{children:y.jsx("button",{className:"btn",onClick:n,children:"X"})})]}),y.jsx("div",{className:"window-content",children:t})]})})}function Pp({onClose:e,setOn:n}){const t=()=>{n(!1)};return y.jsx(Np,{title:"Shutting Down Winux",onClose:e,children:y.jsxs("div",{className:"shutdown",children:[y.jsx("img",{src:"./icons/shutdown.png",alt:"shutdown"}),y.jsxs("div",{children:[y.jsx("p",{children:"Do you want to turn off the computer?"}),y.jsxs("div",{className:"buttons",children:[y.jsx("button",{className:"btn",onClick:t,children:"OK"}),y.jsx("button",{className:"btn",onClick:e,children:"Cancel"})]})]})]})})}function zp({dialog:e,setDialog:n,setOn:t}){const r=()=>{n(null)};return e==="shutdown"?y.jsx(Pp,{onClose:r,setOn:t}):y.jsx(y.Fragment,{})}const jp=()=>{const[e,n]=$.useState([]),[t,r]=$.useState(-1),[l,o]=$.useState(1),i=p=>{const m=Math.max((window.innerWidth-720)/2,0),x=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:m,y:x},zIndex:c,app:p}]),o(l+1)},u=p=>{const m=Math.max((window.innerWidth-720)/2,0),x=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:m,y:x},zIndex:c,app:{name:p.Name,icon:p.Icon,exec:p.Exec}}]),o(l+1)},s=p=>{if(p!=t){var m=[...e];m[p].zIndex=m[t]?m[t].zIndex+1:1,n(m),r(p)}},f=p=>{var m=[...e];m[p].minimized=!0,n(m),p===t&&S(m)},g=p=>{var m=[...e];m[p].zIndex=m[t]?m[t].zIndex+1:1,m[p].minimized=!1,n(m),r(p)},h=p=>{var m=[...e];if(m.splice(p,1),n(m),p!==t||m.length<=0){p{var x=[...e];x[p].pos=m,n(x)},S=p=>{var x;let m=-1;for(let c=0;cy.jsx(wp,{id:f,win:s,fs:l,wm:o},s.id)),y.jsx(zp,{dialog:t,setDialog:r,setOn:n})]}):y.jsx("div",{className:"turned-off",children:"how can I turn it on?"})}Gl.createRoot(document.getElementById("root")).render(y.jsx(Dc.StrictMode,{children:y.jsx(Tp,{})})); diff --git a/index.html b/index.html index 358a3a1..032ab6c 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ winux - +