PageSourceSearch

https://www.terminaltutor.com/static/js/main.f37c1943.js

js terminaltutor.com collected 2026-10-03 21:20:11 UTC 485,517 bytes, 2 lines download raw bytes

vendor: 4,564 bytes, lines 1-2
1/*! For license information please see main.f37c1943.js.LICENSE.txt */
2!function(){var e={534:function(e,t,n){"use strict";var r=n(697),a=n(2224);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,h={},p={};function m(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function F(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var I,R=Object.assign;function O(e){if(void 0===I)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var a=u.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O(e):""}function U(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case k:return"Portal";case C:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 9,583 bytes, line 2
2function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=R({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 ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 be=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,je=null,Se=null;function Ce(e){if(e=wa(e)){if("function"!==typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=xa(t),ke(e.stateNode,e.type,t))}}function Ee(e){je?Se?Se.push(e):Se=[e]:je=e}function _e(){if(je){var e=je,t=Se;if(Se=je=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Pe(){}var De=!1;function Ne(e,t,n){if(De)return e(t,n);De=!0;try{return Te(e,t,n)}finally{De=!1,(null!==je||null!==Se)&&(Pe(),_e())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=xa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Me=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Me=!1}function Fe(e,t,n,r,a,o,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ie=!1,Re=null,Oe=!1,ze=null,Be={onError:function(e){Ie=!0,Re=e}};function Ue(e,t,n,r,a,o,i,s,l){Ie=!1,Re=null,Fe.apply(Be,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(We(e)!==e)throw Error(o(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return He(a),e;if(i===r)return He(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var $e=a.unstable_scheduleCallback,qe=a.unstable_cancelCallback,Qe=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ze=a.unstable_now,Je=a.unstable_getCurrentPriorityLevel,Xe=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=dt(s):0!==(o&=i)&&(r=dt(o))}else 0!==(i=n&~a)?r=dt(i):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var wt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,kt,jt,St,Ct,Et=!1,_t=[],Tt=null,Pt=null,Dt=null,Nt=new Map,At=new Map,Mt=[],Lt="mou
2sedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function It(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=wa(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Rt(e){var t=ya(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,(function(){jt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ot(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wa(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function zt(e,t,n){Ot(e)&&n.delete(t)}function Bt(){Et=!1,null!==Tt&&Ot(Tt)&&(Tt=null),null!==Pt&&Ot(Pt)&&(Pt=null),null!==Dt&&Ot(Dt)&&(Dt=null),Nt.forEach(zt),At.forEach(zt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<_t.length){Ut(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Pt&&Ut(Pt,e),null!==Dt&&Ut(Dt,e),Nt.forEach(t),At.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Mt.shift()}var Vt=b.ReactCurrentBatchConfig,Ht=!0;function Kt(e,t,n,r){var a=wt,o=Vt.transition;Vt.transition=null;try{wt=1,$t(e,t,n,r)}finally{wt=a,Vt.transition=o}}function Gt(e,t,n,r){var a=wt,o=Vt.transition;Vt.transition=null;try{wt=4,$t(e,t,n,r)}finally{wt=a,Vt.transition=o}}function $t(e,t,n,r){if(Ht){var a=Qt(e,t,n,r);if(null===a)Hr(e,t,r,qt,n),Ft(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=It(Tt,e,t,n,r,a),!0;case"dragenter":return Pt=It(Pt,e,t,n,r,a),!0;case"mouseover":return Dt=It(Dt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Nt.set(o,It(Nt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,At.set(o,It(At.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==a;){var o=wa(a);if(null!==o&&xt(o),null===(o=Qt(e,t,n,r))&&Hr(e,t,r,qt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var qt=null;function Qt(e,t,n,r){if(qt=null,null!==(e=ya(e=xe(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Xt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=R({},un,{view:0,detail:0}),fn=an(dn),hn=R({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=an(hn),mn=an(R({},hn,{dataTransfer:0})),vn=an(R({},dn,{relatedTarget:0})),gn=an(R({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=R({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=an(yn),bn=an(R({},un,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jn[e])&&!!t[e]}function Cn(){return Sn}var En=R({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=an(En),Tn=an(R({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=an(R({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Dn=an(R({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=R({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=an(Nn),Mn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var In=c&&"TextEvent"in window&&!Fn,Rn=c&&(!Ln||Fn&&8<Fn&&11>=Fn),On=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,$n=null;function qn(e){Or(e,0)}function Qn(e){if($(ba(e)))return e}function Yn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Jn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),$n=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn($n)){var t=[];Kn(t,$n,e,xe(e)),Ne(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn($n)}function or(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=cr(n,o);var i=cr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,wr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==vr||vr!==q(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},jr={},Sr={};function Cr(e){if(jr[e])return jr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return jr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Er=Cr("animationend"),_r=Cr("animationiteration"),Tr=Cr("animationstart"),Pr=Cr("transitionend"),Dr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Dr.set(e,t),l(t,[e])}for(var Mr=0;Mr<Nr.length;Mr++){var Lr=Nr[Mr];Ar(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Ar(Er,"onAnimationEnd"),Ar(_r,"onAnimationIteration"),Ar(Tr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Pr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,u){if(Ue.apply(this,arguments),Ie){if(!Ie)throw Error(o(198));var c=Re;Ie=!1,Re=null,Oe||(Oe=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Rr(a,s,u),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Rr(a,s,u),o=l}}}if(Oe)throw e=ze,Oe=!1,ze=null,e}function zr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,i.forEach((function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Yt(t)){case 1:var a=Kt;break;case 4:a=Gt;break;default:a=$t}n=a.bind(null,t,n,e),a=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ya(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=o,a=xe(n),i=[];e:{var s=Dr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=_n;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Er:case _r:case Tr:l=gn;break;case Pr:l=Dn;break;case"scroll":l=fn;break;case"wheel":l=An;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Ae(p,f))&&c.push(Kr(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,a),i.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!ya(u)&&!u[pa])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ya(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:ba(l),h=null==u?s:ba(u),(s=new c(m,p+"leave",l,n,a)).target=d,s.relatedTarget=h,m=null,ya(a)===r&&((c=new c(f,p+"enter",u,n,a)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=$r(h))p++;for(h=0,m=f;m;m=$r(m))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)f=$r(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==l&&qr(i,s,l,c,!1),null!==u&&null!==d&&qr(i,d,u,c,!0)}if("select"===(l=(s=r?ba(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Yn;else if(Hn(s))if(Zn)v=ir;else{v=ar;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?Kn(i,v,n,a):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?ba(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,br(i,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(i,n,a)}var y;if(Ln)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Wn?Bn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Rn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Wn&&(y=en()):(Jt="value"in(Zt=a)?Zt.value:Zt.textContent,Wn=!0)),0<(g=Gr(r,w)).length&&(w=new bn(w,e,null,n,a),i.push({event:w,listeners:g}
vendor: 86,437 bytes, line 2
2),y?w.data=y:null!==(y=Un(n))&&(w.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,On);case"textInput":return(e=t.data)===On&&zn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Ln&&Bn(e,t)?(e=en(),Xt=Jt=Zt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(a=new bn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=y))}Or(i,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ae(e,n))&&r.unshift(Kr(e,o,a)),null!=(o=Ae(e,t))&&r.push(Kr(e,o,a))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Ae(n,o))&&i.unshift(Kr(n,l,s)):a||null!=(l=Ae(n,o))&&i.push(Kr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,oa="function"===typeof Promise?Promise:void 0,ia="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Wt(t)}function ua(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),fa="__reactFiber$"+da,ha="__reactProps$"+da,pa="__reactContainer$"+da,ma="__reactEvents$"+da,va="__reactListeners$"+da,ga="__reactHandles$"+da;function ya(e){var t=e[fa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[fa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[fa])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function wa(e){return!(e=e[fa]||e[pa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ba(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xa(e){return e[ha]||null}var ka=[],ja=-1;function Sa(e){return{current:e}}function Ca(e){0>ja||(e.current=ka[ja],ka[ja]=null,ja--)}function Ea(e,t){ja++,ka[ja]=e.current,e.current=t}var _a={},Ta=Sa(_a),Pa=Sa(!1),Da=_a;function Na(e,t){var n=e.type.contextTypes;if(!n)return _a;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Aa(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ma(){Ca(Pa),Ca(Ta)}function La(e,t,n){if(Ta.current!==_a)throw Error(o(168));Ea(Ta,t),Ea(Pa,n)}function Fa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,V(e)||"Unknown",a));return R({},n,r)}function Ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_a,Da=Ta.current,Ea(Ta,e),Ea(Pa,Pa.current),!0}function Ra(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Fa(e,t,Da),r.__reactInternalMemoizedMergedChildContext=e,Ca(Pa),Ca(Ta),Ea(Ta,e)):Ca(Pa),Ea(Pa,n)}var Oa=null,za=!1,Ba=!1;function Ua(e){null===Oa?Oa=[e]:Oa.push(e)}function Wa(){if(!Ba&&null!==Oa){Ba=!0;var e=0,t=wt;try{var n=Oa;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Oa=null,za=!1}catch(a){throw null!==Oa&&(Oa=Oa.slice(e+1)),$e(Xe,Wa),a}finally{wt=t,Ba=!1}}return null}var Va=[],Ha=0,Ka=null,Ga=0,$a=[],qa=0,Qa=null,Ya=1,Za="";function Ja(e,t){Va[Ha++]=Ga,Va[Ha++]=Ka,Ka=e,Ga=t}function Xa(e,t,n){$a[qa++]=Ya,$a[qa++]=Za,$a[qa++]=Qa,Qa=e;var r=Ya;e=Za;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ya=1<<32-it(t)+a|n<<a|r,Za=o+e}else Ya=1<<o|n<<a|r,Za=e}function eo(e){null!==e.return&&(Ja(e,1),Xa(e,1,0))}function to(e){for(;e===Ka;)Ka=Va[--Ha],Va[Ha]=null,Ga=Va[--Ha],Va[Ha]=null;for(;e===Qa;)Qa=$a[--qa],$a[qa]=null,Za=$a[--qa],$a[qa]=null,Ya=$a[--qa],$a[qa]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qa?{id:Ya,overflow:Za}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function uo(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ua(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!ao)return co(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)io(e,t),t=ua(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ua(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ua(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ua(e.nextSibling)}function po(){ro=no=null,ao=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=b.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Sa(null),wo=null,bo=null,xo=null;function ko(){xo=bo=wo=null}function jo(e){var t=yo.current;Ca(yo),e._currentValue=t}function So(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){wo=e,xo=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===wo)throw Error(o(308));bo=e,wo.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var _o=null;function To(e){null===_o?_o=[e]:_o.push(e)}function Po(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,To(t)):(n.next=a.next,a.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Do(e,n)}return null===(a=r.interleaved)?(t.next=t,To(r)):(t.next=a.next,a.next=t),r.interleaved=t,Do(e,n)}function Io(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ro(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oo(e,t,n,r){var a=e.updateQueue;No=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?o=u:i.next=u,i=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(i=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=m.payload)?p.call(h,d,f):p)||void 0===f)break e;d=R({},d,f);break e;case 2:No=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,i|=f;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(f=s).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Il|=i,e.lanes=i,e.memoizedState=d}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(o(191,a));a.call(r)}}}var Bo=(new r.Component).refs;function Uo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wo={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),o=Lo(r,a);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Fo(e,o,a))&&(nu(t,e,a,r),Io(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),o=Lo(r,a);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Fo(e,o,a))&&(nu(t,e,a,r),Io(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),a=Lo(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Fo(e,a,r))&&(nu(t,e,r,n),Io(t,e,r))}};function Vo(e,t,n,r,a,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=_a,o=t.contextType;return"object"===typeof o&&null!==o?o=Eo(o):(a=Aa(t)?Da:Ta.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Na(e,a):_a),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ko(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wo.enqueueReplaceState(t,t.state,null)}function Go(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Bo,Ao(e);var o=t.contextType;"object"===typeof o&&null!==o?a.context=Eo(o):(o=Aa(t)?Da:Ta.current,a.context=Na(e,o)),a.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Uo(e,t,o,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Wo.enqueueReplaceState(a,a.state,null),Oo(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function $o(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Bo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function qo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ru(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===j?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===A&&Qo(o)===t.type)?((r=a(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ou(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ru(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case k:return(t=Ou(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Fu(t,e.mode,n,null)).return=e,t;qo(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===a?u(e,t,n,r):null;case k:return n.key===a?c(e,t,n,r):null;case A:return h(e,t,(a=n._init)(n._payload),r)}if(te(n)||F(n))return null!==a?null:d(e,t,n,r,null);qo(e,n)}return null}function p(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case A:return p(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||F(r))return d(t,e=e.get(n)||null,r,a,null);qo(t,r)}return null}function m(a,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=h(a,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(a,d),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(a,d),ao&&Ja(a,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(a,s[m],l))&&(o=i(d,o,m),null===c?u=d:c.sibling=d,c=d);return ao&&Ja(a,m),u}for(d=r(a,d);m<s.length;m++)null!==(v=p(d,a,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(a,e)})),ao&&Ja(a,m),u}function v(a,s,l,u){var c=F(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var w=h(a,m,y.value,u);if(null===w){null===m&&(m=g);break}e&&m&&null===w.alternate&&t(a,m),s=i(w,s,v),null===d?c=w:d.sibling=w,d=w,m=g}if(y.done)return n(a,m),ao&&Ja(a,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(a,y.value,u))&&(s=i(y,s,v),null===d?c=y:d.sibling=y,d=y);return ao&&Ja(a,v),c}for(m=r(a,m);!y.done;v++,y=l.next())null!==(y=p(m,a,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),ao&&Ja(a,v),c}return function e(r,o,i,l){if("object"===typeof i&&null!==i&&i.type===j&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case x:e:{for(var u=i.key,c=o;null!==c;){if(c.key===u){if((u=i.type)===j){if(7===c.tag){n(r,c.sibling),(o=a(c,i.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===A&&Qo(u)===c.type){n(r,c.sibling),(o=a(c,i.props)).ref=$o(r,c,i),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===j?((o=Fu(i.props.children,r.mode,l,i.key)).return=r,r=o):((l=Lu(i.type,i.key,i.props,null,r.mode,l)).ref=$o(r,o,i),l.return=r,r=l)}return s(r);case k:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ou(i,r.mode,l)).return=r,r=o}return s(r);case A:return e(r,o,(c=i._init)(i._payload),l)}if(te(i))return m(r,o,i,l);if(F(i))return v(r,o,i,l);qo(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Ru(i,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Zo=Yo(!0),Jo=Yo(!1),Xo={},ei=Sa(Xo),ti=Sa(Xo),ni=Sa(Xo);function ri(e){if(e===Xo)throw Error(o(174));return e}function ai(e,t){switch(Ea(ni,t),Ea(ti,e),Ea(ei,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ca(ei),Ea(ei,t)}function oi(){Ca(ei),Ca(ti),Ca(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(Ea(ti,e),Ea(ei,n))}function si(e){ti.current===e&&(Ca(ei),Ca(ti))}var li=Sa(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function di(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var fi=b.ReactCurrentDispatcher,hi=b.ReactCurrentBatchConfig,pi=0,mi=null,vi=null,gi=null,yi=!1,wi=!1,bi=0,xi=0;function ki(){throw Error(o(321))}function ji(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Si(e,t,n,r,a,i){if(pi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,a),wi){i=0;do{if(wi=!1,bi=0,25<=i)throw Error(o(301));i+=1,gi=vi=null,t.updateQueue=null,fi.current=us,e=n(r,a)}while(wi)}if(fi.current=is,t=null!==vi&&null!==vi.next,pi=0,gi=vi=mi=null,yi=!1,t)throw Error(o(300));return e}function Ci(){var e=0!==bi;return bi=0,e}function Ei(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?mi.memoizedState=gi=e:gi=gi.next=e,gi}function _i(){if(null===vi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===gi?mi.memoizedState:gi.next;if(null!==t)gi=t,vi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===gi?mi.memoizedState=gi=e:gi=gi.next=e}return gi}function Ti(e,t){return"function"===typeof t?t(e):t}function Pi(e){var t=_i(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=vi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var l=s=null,u=null,c=i;do{var d=c.lane;if((pi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,mi.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==i);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,mi.lanes|=i,Il|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Di(e){var t=_i(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(bs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ni(){}function Ai(e,t){var n=mi,r=_i(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,bs=!0),r=r.queue,Hi(Fi.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,zi(9,Li.bind(null,n,r,a,t),void 0,null),null===Pl)throw Error(o(349));0!==(30&pi)||Mi(n,t,a)}return a}function Mi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Li(e,t,n,r){t.value=n,t.getSnapshot=r,Ii(t)&&Ri(e)}function Fi(e,t,n){return n((function(){Ii(t)&&Ri(e)}))}function Ii(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ri(e){var t=Do(e,1);null!==t&&nu(t,e,1,-1)}function Oi(e){var t=Ei();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return _i().memoizedState}function Ui(e,t,n,r){var a=Ei();mi.flags|=e,a.memoizedState=zi(1|t,n,void 0,void 0===r?null:r)}function Wi(e,t,n,r){var a=_i();r=void 0===r?null:r;var o=void 0;if(null!==vi){var i=vi.memoizedState;if(o=i.destroy,null!==r&&ji(r,i.deps))return void(a.memoizedState=zi(t,n,o,r))}mi.flags|=e,a.memoizedState=zi(1|t,n,o,r)}function Vi(e,t){return Ui(8390656,8,e,t)}function Hi(e,t){return Wi(2048,8,e,t)}function Ki(e,t){return Wi(4,2,e,t)}function Gi(e,t){return Wi(4,4,e,t)}function $i(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Wi(4,4,$i.bind(null,t,e),n)}function Qi(){}function Yi(e,t){var n=_i();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zi(e,t){var n=_i();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ji(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0===(21&pi)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,Il|=n,e.baseState=!0),t)}function Xi(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{wt=n,hi.transition=r}}function es(){return _i().memoizedState}function ts(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=Po(e,t,n,r))){nu(n,e,r,eu()),os(n,t,r)}}function ns(e,t,n){var r=tu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(a.next=a,To(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Po(e,t,a,r))&&(nu(n,e,r,a=eu()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function as(e,t){wi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var is={readContext:Eo,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:Eo,useCallback:function(e,t){return Ei().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:Vi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ui(4194308,4,$i.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Ei();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ei();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ei().memoizedState=e},useState:Oi,useDebugValue:Qi,useDeferredValue:function(e){return Ei().memoizedState=e},useTransition:function(){var e=Oi(!1),t=e[0];return e=Xi.bind(null,e[1]),Ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,a=Ei();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!==(30&pi)||Mi(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Vi(Fi.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,Li.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ei(),t=Pl.identifierPrefix;if(ao){var n=Za;t=":"+t+"R"+(n=(Ya&~(1<<32-it(Ya)-1)).toString(32)+n),0<(n=bi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Eo,useCallback:Yi,useContext:Eo,useEffect:Hi,useImperativeHandle:qi,useInsertionEffect:Ki,useLayoutEffect:Gi,useMemo:Zi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ti)},useDebugValue:Qi,useDeferredValue:function(e){return Ji(_i(),vi.memoizedState,e)},useTransition:function(){return[Pi(Ti)[0],_i().memoizedState]},useMutableSource:Ni,useSyncExternalStore:Ai,useId:es,unstable_isNewReconciler:!1},us={readContext:Eo,useCallback:Yi,useContext:Eo,useEffect:Hi,useImperativeHandle:qi,useInsertionEffect:Ki,useLayoutEffect:Gi,useMemo:Zi,useReducer:Di,useRef:Bi,useState:function(){return Di(Ti)},useDebugValue:Qi,useDeferredValue:function(e){var t=_i();return null===vi?t.memoizedState=e:Ji(t,vi.memoizedState,e)},useTransition:function(){return[Di(Ti)[0],_i().memoizedState]},useMutableSource:Ni,useSyncExternalStore:Ai,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Lo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Kl=r),fs(0,t)},n}function ms(e,t,n){(n=Lo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Lo(-1,1)).tag=2,Fo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var ws=b.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Zo(t,e.child,n,r)}function ks(e,t,n,r,a){n=n.render;var o=t.ref;return Co(t,a),r=Si(e,t,n,r,o,a),n=Ci(),null===e||bs?(ao&&n&&eo(t),t.flags|=1,xs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Hs(e,t,a))}function js(e,t,n,r,a){if(null===e){var o=n.type;return"function"!==typeof o||Au(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ss(e,t,o,r,a))}if(o=e.child,0===(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Hs(e,t,a)}return t.flags|=1,(e=Mu(o,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&a))return t.lanes=e.lanes,Hs(e,t,a);0!==(131072&e.flags)&&(bs=!0)}}return _s(e,t,n,r,a)}function Cs(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ea(Ml,Al),Al|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ea(Ml,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ea(Ml,Al),Al|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ea(Ml,Al),Al|=r;return xs(e,t,a,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,a){var o=Aa(n)?Da:Ta.current;return o=Na(t,o),Co(t,a),n=Si(e,t,n,r,o,a),r=Ci(),null===e||bs?(ao&&r&&eo(t),t.flags|=1,xs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Hs(e,t,a))}function Ts(e,t,n,r,a){if(Aa(n)){var o=!0;Ia(t)}else o=!1;if(Co(t,a),null===t.stateNode)Vs(e,t),Ho(t,n,r),Go(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;"object"===typeof u&&null!==u?u=Eo(u):u=Na(t,u=Aa(n)?Da:Ta.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==r||l!==u)&&Ko(t,i,r,u),No=!1;var f=t.memoizedState;i.state=f,Oo(t,r,i,a),l=t.memoizedState,s!==r||f!==l||Pa.current||No?("function"===typeof c&&(Uo(t,n,c,r),l=t.memoizedState),(s=No||Vo(t,n,s,r,f,l,u))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Mo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:go(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=Eo(l):l=Na(t,l=Aa(n)?Da:Ta.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Ko(t,i,r,l),No=!1,f=t.memoizedState,i.state=f,Oo(t,r,i,a);var p=t.memoizedState;s!==d||f!==p||Pa.current||No?("function"===typeof h&&(Uo(t,n,h,r),p=t.memoizedState),(u=No||Vo(t,n,u,r,f,p,l)||!1)?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,o,a)}function Ps(e,t,n,r,a,o){Es(e,t);var i=0!==(128&t.flags);if(!r&&!i)return a&&Ra(t,n,!1),Hs(e,t,o);r=t.stateNode,ws.current=t;var s=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Zo(t,e.child,null,o),t.child=Zo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,a&&Ra(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?La(0,t.pendingContext,t.pendingContext!==t.context):t.context&&La(0,t.context,!1),ai(e,t.containerInfo)}function Ns(e,t,n,r,a){return po(),mo(a),t.flags|=256,xs(e,t,n,r),t.child}var As,Ms,Ls,Fs={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,a=t.pendingProps,i=li.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ea(li,1&i),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Iu(l,a,0,null),e=Fu(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(n),t.memoizedState=Fs,e):Os(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Iu({mode:"visible",children:r.children},a,0,null),(i=Fu(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&Zo(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=Fs,i);if(0===(1&t.mode))return zs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=ds(i=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Pl)){switch(s&-s){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Do(e,a),nu(r,e,a,-1))}return mu(),zs(e,t,s,r=ds(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=_u.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=ua(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&($a[qa++]=Ya,$a[qa++]=Za,$a[qa++]=Qa,Ya=e.id,Za=e.overflow,Qa=t),t=Os(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,i,n);if(s){s=a.fallback,l=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:a.children};return 0===(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Mu(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Mu(r,s):(s=Fu(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Fs,a}return e=(s=e.child).sibling,a=Mu(s,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Os(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&mo(r),Zo(t,e.child,null,n),(e=Os(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),So(e.return,t,n)}function Us(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Ws(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ea(li,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Us(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ui(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ks(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Aa(t.type)&&Ma(),Gs(t),null;case 3:return r=t.stateNode,oi(),Ca(Pa),Ca(Ta),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(iu(oo),oo=null))),Gs(t),null;case 5:si(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=ri(ei.current),fo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fa]=t,r[ha]=i,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(a=0;a<Fr.length;a++)zr(Fr[a],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":Y(r,i),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},zr("invalid",r);break;case"textarea":ae(r,i),zr("invalid",r)}for(var l in ye(n,i),a=null,i)if(i.hasOwnProperty(l)){var u=i[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,u,e),a=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,u,e),a=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":G(r),X(r,i,!0);break;case"textarea":G(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=Xr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fa]=t,e[ha]=r,As(e,t),t.stateNode=e;e:{switch(l=we(n,r),n){case"dialog":zr("cancel",e),zr("close",e),a=r;break;case"iframe":case"object":case"embed":zr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Fr.length;a++)zr(Fr[a],e);a=r;break;case"source":zr("error",e),a=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),a=r;break;case"details":zr("toggle",e),a=r;break;case"input":Y(e,r),a=Q(e,r),zr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=R({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),zr("invalid",e)}for(i in ye(n,a),u=a)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?ve(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=c&&"onScroll"===i&&zr("scroll",e):null!=c&&w(e,i,c,l))}switch(n){case"input":G(e),X(e,r,!1);break;case"textarea":G(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ls(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fa]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fa]=t,t.stateNode=r}return Gs(t),null;case 13:if(Ca(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,i=!1;else if(i=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[fa]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),i=!1}else null!==oo&&(iu(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&li.current)?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return oi(),null===e&&Wr(t.stateNode.containerInfo),Gs(t),null;case 10:return jo(t.type._context),Gs(t),null;case 19:if(Ca(li),null===(i=t.memoizedState))return Gs(t),null;if(r=0!==(128&t.flags),null===(l=i.rendering))if(r)Ks(i,!1);else{if(0!==Ll||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ui(e))){for(t.flags|=128,Ks(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ea(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ze()>Wl&&(t.flags|=128,r=!0,Ks(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ui(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ks(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ao)return Gs(t),null}else 2*Ze()-i.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Ks(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ze(),t.sibling=null,n=li.current,Ea(li,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Al)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qs(e,t){switch(to(t),t.tag){case 1:return Aa(t.type)&&Ma(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),Ca(Pa),Ca(Ta),di(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Ca(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ca(li),null;case 4:return oi(),null;case 10:return jo(t.type._context),null;case 22:case 23:return du(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=Q(e,a),r=Q(e,r),i=[];break;case"select":a=R({},a,{value:void 0}),r=R({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var l=a[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Ys=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Su(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Su(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&el(t,n,o)}a=a.next}while(a!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fa],delete t[ha],delete t[ma],delete t[va],delete t[ga])),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 il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ys||Xs(n,t);case 6:var r=cl,a=dl;cl=null,fl(e,t,n),dl=a,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),Wt(e)):la(cl,n.stateNode));break;case 4:r=cl,a=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=a;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!==(2&o)||0!==(4&o))&&el(n,t,i),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ys&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Su(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));hl(i,s,a),cl=null,dl=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(c){Su(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(v){Su(e,e.return,v)}try{nl(5,e,e.return)}catch(v){Su(e,e.return,v)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var a=e.stateNode;try{fe(a,"")}catch(v){Su(e,e.return,v)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===i.type&&null!=i.name&&Z(a,i),we(l,s);var c=we(l,i);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(a,f):"dangerouslySetInnerHTML"===d?de(a,f):"children"===d?fe(a,f):w(a,d,f,c)}switch(l){case"input":J(a,i);break;case"textarea":oe(a,i);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ne(a,!!i.multiple,p,!1):h!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[ha]=i}catch(v){Su(e,e.return,v)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){Su(e,e.return,v)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(v){Su(e,e.return,v)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Ul=Ze())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,ml(t,e),Ys=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(p=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Xs(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Su(r,n,v)}}break;case 5:Xs(h,h.return);break;case 22:if(null!==h.memoizedState){xl(f);continue}}null!==p?(p.return=h,Js=p):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?"function"===typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(v){Su(e,e.return,v)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Su(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),gl(e),4&r&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(fe(a,""),r.flags&=-33),ul(e,sl(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;ll(e,sl(e),i);break;default:throw Error(o(161))}}catch(s){Su(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,wl(e,t,n)}function wl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var a=Js,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Qs;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Qs;var u=Ys;if(Qs=i,(Ys=l)&&!u)for(Js=a;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?kl(a):null!==l?(l.return=i,Js=l):kl(a);for(;null!==o;)Js=o,wl(o,t,n),o=o.sibling;Js=a,Qs=s,Ys=u}bl(e)}else 0!==(8772&a.subtreeFlags)&&null!==o?(o.return=a,Js=o):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&zo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&al(t)}catch(h){Su(t,t.return,h)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Su(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){Su(t,a,l)}}var o=t.return;try{al(t)}catch(l){Su(t,o,l)}break;case 5:var i=t.return;try{al(t)}catch(l){Su(t,i,l)}}}catch(l){Su(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var jl,Sl=Math.ceil,Cl=b.ReactCurrentDispatcher,El=b.ReactCurrentOwner,_l=b.ReactCurrentBatchConfig,Tl=0,Pl=null,Dl=null,Nl=0,Al=0,Ml=Sa(0),Ll=0,Fl=null,Il=0,Rl=0,Ol=0,zl=null,Bl=null,Ul=0,Wl=1/0,Vl=null,Hl=!1,Kl=null,Gl=null,$l=!1,ql=null,Ql=0,Yl=0,Zl=null,Jl=-1,Xl=0;function eu(){return 0!==(6&Tl)?Ze():-1!==Jl?Jl:Jl=Ze()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Nl?Nl&-Nl:null!==vo.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Zl=null,Error(o(185));gt(e,n,r),0!==(2&Tl)&&e===Pl||(e===Pl&&(0===(2&Tl)&&(Rl|=n),4===Ll&&su(e,Nl)),ru(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Wl=Ze()+500,za&&Wa()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,l=a[i];-1===l?0!==(s&n)&&0===(s&r)||(a[i]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Pl?Nl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){za=!0,Ua(e)}(lu.bind(null,e)):Ua(lu.bind(null,e)),ia((function(){0===(6&Tl)&&Wa()})),n=null;else{switch(bt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Jl=-1,Xl=0,0!==(6&Tl))throw Error(o(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Pl?Nl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var a=Tl;Tl|=2;var i=pu();for(Pl===e&&Nl===t||(Vl=null,Wl=Ze()+500,fu(e,t));;)try{yu();break}catch(l){hu(e,l)}ko(),Cl.current=i,Tl=a,null!==Dl?t=0:(Pl=null,Nl=0,t=Ll)}if(0!==t){if(2===t&&(0!==(a=pt(e))&&(r=a,t=ou(e,a))),1===t)throw n=Fl,fu(e,0),su(e,r),ru(e,Ze()),n;if(6===t)su(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=vu(e,r))&&(0!==(i=pt(e))&&(r=i,t=ou(e,i))),1===t))throw n=Fl,fu(e,0),su(e,r),ru(e,Ze()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xu(e,Bl,Vl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==ft(e,0))break;if(((a=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(xu.bind(null,e,Bl,Vl),t);break}xu(e,Bl,Vl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ra(xu.bind(null,e,Bl,Vl),r);break}xu(e,Bl,Vl);break;default:throw Error(o(329))}}}return ru(e,Ze()),e.callbackNode===n?au.bind(null,e):null}function ou(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Bl,Bl=n,null!==t&&iu(t)),e}function iu(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~Ol,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(0!==(6&Tl))throw Error(o(327));ku();var t=ft(e,0);if(0===(1&t))return ru(e,Ze()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Fl,fu(e,0),su(e,t),ru(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Bl,Vl),ru(e,Ze()),null}function uu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Wl=Ze()+500,za&&Wa())}}function cu(e){null!==ql&&0===ql.tag&&0===(6&Tl)&&ku();var t=Tl;Tl|=1;var n=_l.transition,r=wt;try{if(_l.transition=null,wt=1,e)return e()}finally{wt=r,_l.transition=n,0===(6&(Tl=t))&&Wa()}}function du(){Al=Ml.current,Ca(Ml)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Dl)for(n=Dl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ma();break;case 3:oi(),Ca(Pa),Ca(Ta),di();break;case 5:si(r);break;case 4:oi();break;case 13:case 19:Ca(li);break;case 10:jo(r.type._context);break;case 22:case 23:du()}n=n.return}if(Pl=e,Dl=e=Mu(e.current,null),Nl=Al=t,Ll=0,Fl=null,Ol=Rl=Il=0,Bl=zl=null,null!==_o){for(t=0;t<_o.length;t++)if(null!==(r=(n=_o[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}_o=null}return e}function hu(e,t){for(;;){var n=Dl;try{if(ko(),fi.current=is,yi){for(var r=mi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}yi=!1}if(pi=0,gi=vi=mi=null,wi=!1,bi=0,El.current=null,null===n||null===n.return){Ll=1,Fl=t,Dl=null;break}e:{var i=e,s=n.return,l=n,u=t;if(t=Nl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&vs(i,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0===(1&t)){vs(i,c,t),mu();break e}u=Error(o(426))}else if(ao&&1&l.mode){var g=gs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),mo(cs(u,l));break e}}i=u=cs(u,l),4!==Ll&&(Ll=2),null===zl?zl=[i]:zl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ro(i,ps(0,u,t));break e;case 1:l=u;var y=i.type,w=i.stateNode;if(0===(128&i.flags)&&("function"===typeof y.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Gl||!Gl.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t,Ro(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}bu(n)}catch(b){t=b,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function pu(){var e=Cl.current;return Cl.current=is,null===e?is:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Pl||0===(268435455&Il)&&0===(268435455&Rl)||su(Pl,Nl)}function vu(e,t){var n=Tl;Tl|=2;var r=pu();for(Pl===e&&Nl===t||(Vl=null,fu(e,t));;)try{gu();break}catch(a){hu(e,a)}if(ko(),Tl=n,Cl.current=r,null!==Dl)throw Error(o(261));return Pl=null,Nl=0,Ll}function gu(){for(;null!==Dl;)wu(Dl)}function yu(){for(;null!==Dl&&!Qe();)wu(Dl)}function wu(e){var t=jl(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?bu(e):Dl=t,El.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=$s(n,t,Al)))return void(Dl=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Ll=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Ll&&(Ll=5)}function xu(e,t,n){var r=wt,a=_l.transition;try{_l.transition=null,wt=1,function(e,t,n,r){do{ku()}while(null!==ql);if(0!==(6&Tl))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Pl&&(Dl=Pl=null,Nl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||$l||($l=!0,Pu(tt,(function(){return ku(),null}))),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=_l.transition,_l.transition=null;var s=wt;wt=1;var l=Tl;Tl|=4,El.current=null,function(e,t){if(ea=Ht,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==a&&3!==f.nodeType||(l=s+a),f!==i||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===a&&(l=s),h===i&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,w=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:go(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(x){Su(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),vl(n,e),pr(ta),Ht=!!ea,ta=ea=null,e.current=n,yl(n,e,a),Ye(),Tl=l,wt=s,_l.transition=i}else e.current=n;if($l&&($l=!1,ql=e,Ql=a),i=e.pendingLanes,0===i&&(Gl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ru(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Hl)throw Hl=!1,e=Kl,Kl=null,e;0!==(1&Ql)&&0!==e.tag&&ku(),i=e.pendingLanes,0!==(1&i)?e===Zl?Yl++:(Yl=0,Zl=e):Yl=0,Wa()}(e,t,n,r)}finally{_l.transition=a,wt=r}return null}function ku(){if(null!==ql){var e=bt(Ql),t=_l.transition,n=wt;try{if(_l.transition=null,wt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Ql=0,0!==(6&Tl))throw Error(o(331));var a=Tl;for(Tl|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!==(16&Js.flags)){var l=i.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,i)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var h=(d=Js).sibling,p=d.return;if(ol(d),d===c){Js=null;break}if(null!==h){h.return=p,Js=h;break}Js=p}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Js=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!==(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var w=e.current;for(Js=w;null!==Js;){var b=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,Js=b;else e:for(s=w;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(k){Su(l,l.return,k)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Tl=a,Wa(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{wt=n,_l.transition=t}}return!1}function ju(e,t,n){e=Fo(e,t=ps(0,t=cs(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ju(e,e,n);else for(;null!==t;){if(3===t.tag){ju(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Fo(t,e=ms(t,e=cs(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Nl&n)===n&&(4===Ll||3===Ll&&(130023424&Nl)===Nl&&500>Ze()-Ul?fu(e,0):Ol|=n),ru(e,t)}function Eu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Do(e,t))&&(gt(e,t,n),ru(e,n))}function _u(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Eu(e,n)}function Pu(e,t){return $e(e,t)}function Du(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,n,r){return new Du(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,a,i){var s=2;if(r=e,"function"===typeof e)Au(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case j:return Fu(n.children,a,i,t);case S:s=8,a|=8;break;case C:return(e=Nu(12,n,t,2|a)).elementType=C,e.lanes=i,e;case P:return(e=Nu(13,n,t,a)).elementType=P,e.lanes=i,e;case D:return(e=Nu(19,n,t,a)).elementType=D,e.lanes=i,e;case M:return Iu(n,a,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case _:s=9;break e;case T:s=11;break e;case N:s=14;break e;case A:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Nu(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Fu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Nu(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Ou(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,a,o,i,s,l){return e=new zu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Nu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ao(o),e}function Uu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wu(e){if(!e)return _a;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Aa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Aa(n))return Fa(e,n,t)}return t}function Vu(e,t,n,r,a,o,i,s,l){return(e=Bu(n,r,!0,e,0,o,0,s,l)).context=Wu(null),n=e.current,(o=Lo(r=eu(),a=tu(n))).callback=void 0!==t&&null!==t?t:null,Fo(n,o,a),e.current.lanes=a,gt(e,a,r),ru(e,r),e}function Hu(e,t,n,r){var a=t.current,o=eu(),i=tu(a);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Lo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fo(a,t,i))&&(nu(e,a,i,o),Io(e,a,i)),i}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $u(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}jl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),po();break;case 5:ii(t);break;case 1:Aa(t.type)&&Ia(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ea(yo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ea(li,1&li.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Rs(e,t,n):(Ea(li,1&li.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ea(li,1&li.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ea(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ao&&0!==(1048576&t.flags)&&Xa(t,Ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var a=Na(t,Ta.current);Co(t,n),a=Si(null,t,r,e,a,n);var i=Ci();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Aa(r)?(i=!0,Ia(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ao(t),a.updater=Wo,t.stateNode=a,a._reactInternals=t,Go(t,r,e,n),t=Ps(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),xs(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Au(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(r),e=go(r,e),a){case 0:t=_s(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=js(null,t,r,go(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,_s(e,t,r,a=t.elementType===r?a:go(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ts(e,t,r,a=t.elementType===r?a:go(r,a),n);case 3:e:{if(Ds(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Mo(e,t),Oo(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ns(e,t,r,n,a=cs(Error(o(423)),t));break e}if(r!==a){t=Ns(e,t,r,n,a=cs(Error(o(424)),t));break e}for(ro=ua(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===a){t=Hs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&uo(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),Es(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Rs(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Zo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ks(e,t,r,a=t.elementType===r?a:go(r,a),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ea(yo,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!Pa.current){t=Hs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=Lo(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),So(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),So(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}xs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Co(t,n),r=r(a=Eo(a)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return a=go(r=t.type,t.pendingProps),js(e,t,r,a=go(r.type,a),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:go(r,a),Vs(e,t),t.tag=1,Aa(r)?(e=!0,Ia(t)):e=!1,Co(t,n),Ho(t,r,a),Go(t,r,a,n),Ps(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var qu="function"===typeof reportError?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"===typeof a){var s=a;a=function(){var e=Ku(i);s.call(e)}}Hu(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"===typeof r){var o=r;r=function(){var e=Ku(i);o.call(e)}}var i=Vu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=i,e[pa]=i.current,Wr(8===e.nodeType?e.parentNode:e),cu(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var s=r;r=function(){var e=Ku(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[pa]=l.current,Wr(8===e.nodeType?e.parentNode:e),cu((function(){Hu(t,l,n,r)})),l}(n,t,e,a,r);return Ku(i)}Yu.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Yu.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Hu(null,e,null,null)})),t[pa]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Rt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Ze()),0===(6&Tl)&&(Wl=Ze()+500,Wa()))}break;case 13:cu((function(){var t=Do(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),$u(e,1)}},kt=function(e){if(13===e.tag){var t=Do(e,134217728);if(null!==t)nu(t,e,134217728,eu());$u(e,134217728)}},jt=function(e){if(13===e.tag){var t=tu(e),n=Do(e,t);if(null!==n)nu(n,e,t,eu());$u(e,t)}},St=function(){return wt},Ct=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},ke=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=xa(r);if(!a)throw Error(o(90));$(r),J(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uu,Pe=cu;var tc={usingClientEntryPoint:!1,Events:[wa,ba,xa,Ee,_e,uu]},nc={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),ot=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(o(200));return Uu(e,t,null,n)},t.createRoot=function(e,t){if(!Zu(e))throw Error(o(299));var n=!1,r="",a=qu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,a),e[pa]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!0,n)}
2,t.hydrateRoot=function(e,t,n){if(!Zu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=qu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vu(t,null,e,1,null!=n?n:null,a,0,i,s),e[pa]=t.current,Wr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pa]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1739:function(e,t,n){"use strict";var r=n(1168);t.s=r.createRoot,r.hydrateRoot},1168:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(534)},3095:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<a&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(v=!1,b(e),!m)if(null!==r(u))m=!0,M(k);else{var t=r(c);null!==t&&L(x,t.startTime-e)}}function k(e,n){m=!1,v&&(v=!1,y(E),E=-1),p=!0;var o=h;try{for(b(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!P());){var i=f.callback;if("function"===typeof i){f.callback=null,h=f.priorityLevel;var s=i(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&a(u),b(n)}else a(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&L(x,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,S=!1,C=null,E=-1,_=5,T=-1;function P(){return!(t.unstable_now()-T<_)}function D(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?j():(S=!1,C=null)}}else S=!1}if("function"===typeof w)j=function(){w(D)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=D,j=function(){A.postMessage(null)}}else j=function(){g(D,0)};function M(e){C=e,S||(S=!0,j())}function L(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,M(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(v?(y(E),E=-1):v=!0,L(x,o-i))):(e.sortIndex=s,n(u,e),m||p||(m=!0,M(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},2224:function(e,t,n){"use strict";e.exports=n(3095)},6331:function(e,t,n){var r=n(861).default,a=n(1589).default,o=n(7424).default,i=n(4704).default,s=n(6690).default,l=n(9728).default,u=n(7237),c=n(6475),d=c.EEXIST,f=c.ENOENT,h=c.ENOTDIR,p=c.ENOTEMPTY;e.exports=function(){"use strict";function e(){s(this,e)}return l(e,[{key:"_makeRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;return e.set(0,{mode:511,type:"dir",size:0,ino:0,mtimeMs:Date.now()}),e}},{key:"activate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root=null===e?new Map([["/",this._makeRoot()]]):"string"===typeof e?new Map([["/",this._makeRoot(this.parse(e))]]):e}},{key:"activated",get:function(){return!!this._root}},{key:"deactivate",value:function(){this._root=void 0}},{key:"size",value:function(){return this._countInodes(this._root.get("/"))-1}},{key:"_countInodes",value:function(e){var t,n=1,r=i(e);try{for(r.s();!(t=r.n()).done;){var a=o(t.value,2),s=a[0],l=a[1];0!==s&&(n+=this._countInodes(l))}}catch(u){r.e(u)}finally{r.f()}return n}},{key:"autoinc",value:function(){return this._maxInode(this._root.get("/"))+1}},{key:"_maxInode",value:function(e){var t,n=e.get(0).ino,r=i(e);try{for(r.s();!(t=r.n()).done;){var a=o(t.value,2),s=a[0],l=a[1];0!==s&&(n=Math.max(n,this._maxInode(l)))}}catch(u){r.e(u)}finally{r.f()}return n}},{key:"print",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._root.get("/"),t="",n=function e(n,r){var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var l=o(a.value,2),u=l[0],c=l[1];if(0!==u){var d=c.get(0),f=d.mode.toString(8);t+="".concat("\t".repeat(r)).concat(u,"\t").concat(f),"file"===d.type?t+="\t".concat(d.size,"\t").concat(d.mtimeMs,"\n"):(t+="\n",e(c,r+1))}}}catch(h){s.e(h)}finally{s.f()}};return n(e,0),t}},{key:"parse",value:function(e){var t=0;function n(e){var n=++t,r=1===e.length?"dir":"file",a=o(e,3),i=a[0],s=a[1],l=a[2];return i=parseInt(i,8),s=s?parseInt(s):0,l=l?parseInt(l):Date.now(),new Map([[0,{mode:i,type:r,size:s,mtimeMs:l,ino:n}]])}var r,s=e.trim().split("\n"),l=this._makeRoot(),u=[{indent:-1,node:l},{indent:0,node:null}],c=i(s);try{for(c.s();!(r=c.n()).done;){var d=r.value,f=d.match(/^\t*/)[0].length,h=(d=d.slice(f)).split("\t"),p=a(h),m=p[0],v=n(p.slice(1));if(f<=u[u.length-1].indent)for(;f<=u[u.length-1].indent;)u.pop();u.push({indent:f,node:v}),u[u.length-2].node.set(m,v)}}catch(g){c.e(g)}finally{c.f()}return l}},{key:"_lookup",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._root,r="/",a=u.split(e),o=0;o<a.length;++o){var i=a[o];if(!(n=n.get(i)))throw new f(e);if(t||o<a.length-1){var s=n.get(0);if("symlink"===s.type){var l=u.resolve(r,s.target);n=this._lookup(l)}r=r?u.join(r,i):i}}return n}},{key:"mkdir",value:function(e,t){var n=t.mode;if("/"===e)throw new d;var r=this._lookup(u.dirname(e)),a=u.basename(e);
2if(r.has(a))throw new d;var o=new Map,i={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};o.set(0,i),r.set(a,o)}},{key:"rmdir",value:function(e){var t=this._lookup(e);if("dir"!==t.get(0).type)throw new h;if(t.size>1)throw new p;var n=this._lookup(u.dirname(e)),r=u.basename(e);n.delete(r)}},{key:"readdir",value:function(e){var t=this._lookup(e);if("dir"!==t.get(0).type)throw new h;return r(t.keys()).filter((function(e){return"string"===typeof e}))}},{key:"writeStat",value:function(e,t,n){var r,a=n.mode;try{var o=this.stat(e);null==a&&(a=o.mode),r=o.ino}catch(d){}null==a&&(a=438),null==r&&(r=this.autoinc());var i=this._lookup(u.dirname(e)),s=u.basename(e),l={mode:a,type:"file",size:t,mtimeMs:Date.now(),ino:r},c=new Map;return c.set(0,l),i.set(s,c),l}},{key:"unlink",value:function(e){var t=this._lookup(u.dirname(e)),n=u.basename(e);t.delete(n)}},{key:"rename",value:function(e,t){var n=u.basename(t),r=this._lookup(e);this._lookup(u.dirname(t)).set(n,r),this.unlink(e)}},{key:"stat",value:function(e){return this._lookup(e).get(0)}},{key:"lstat",value:function(e){return this._lookup(e,!1).get(0)}},{key:"readlink",value:function(e){return this._lookup(e,!1).get(0).target}},{key:"symlink",value:function(e,t){var n,r;try{var a=this.stat(t);null===r&&(r=a.mode),n=a.ino}catch(c){}null==r&&(r=40960),null==n&&(n=this.autoinc());var o=this._lookup(u.dirname(t)),i=u.basename(t),s={mode:r,type:"symlink",target:e,size:0,mtimeMs:Date.now(),ino:n},l=new Map;return l.set(0,s),o.set(i,l),s}},{key:"_du",value:function(e){var t,n=0,r=i(e.entries());try{for(r.s();!(t=r.n()).done;){var a=o(t.value,2),s=a[0],l=a[1];n+=0===s?l.size:this._du(l)}}catch(u){r.e(u)}finally{r.f()}return n}},{key:"du",value:function(e){var t=this._lookup(e);return this._du(t)}}]),e}()},9608:function(e,t,n){var r=n(4704).default,a=n(7061).default,o=n(7156).default,i=n(6690).default,s=n(9728).default,l=n(9575),u=l.encode,c=l.decode,d=n(4019),f=n(6331),h=n(6475),p=h.ENOENT,m=h.ENOTEMPTY,v=h.ETIMEDOUT,g=n(9938),y=n(7044),w=n(3985),b=n(7890),x=n(7237);e.exports=function(){"use strict";function e(){var t=this;i(this,e),this.saveSuperblock=d((function(){t.flush()}),500)}return s(e,[{key:"init",value:function(){var e=o(a().mark((function e(t){var n,r,o,i,s,l,u,c,d,h,p,m,v,x,k=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=k.length>1&&void 0!==k[1]?k[1]:{},r=n.wipe,o=n.url,i=n.urlauto,s=n.fileDbName,l=void 0===s?t:s,u=n.db,c=void 0===u?null:u,d=n.fileStoreName,h=void 0===d?t+"_files":d,p=n.lockDbName,m=void 0===p?t+"_lock":p,v=n.lockStoreName,x=void 0===v?t+"_lock":v,this._name=t,this._idb=c||new g(l,h),this._mutex=navigator.locks?new b(t):new w(m,x),this._cache=new f(t),this._opts={wipe:r,url:o},this._needsWipe=!!r,o&&(this._http=new y(o),this._urlauto=!!i);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=o(a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._cache.activated){e.next=2;break}return e.abrupt("return");case 2:if(!this._needsWipe){e.next=8;break}return this._needsWipe=!1,e.next=6,this._idb.wipe();case 6:return e.next=8,this._mutex.release({force:!0});case 8:return e.next=10,this._mutex.has();case 10:if(e.sent){e.next=13;break}return e.next=13,this._mutex.wait();case 13:return e.next=15,this._idb.loadSuperblock();case 15:if(!(t=e.sent)){e.next=20;break}this._cache.activate(t),e.next=30;break;case 20:if(!this._http){e.next=29;break}return e.next=23,this._http.loadSuperblock();case 23:return n=e.sent,this._cache.activate(n),e.next=27,this._saveSuperblock();case 27:e.next=30;break;case 29:this._cache.activate();case 30:return e.next=32,this._mutex.has();case 32:if(!e.sent){e.next=36;break}return e.abrupt("return");case 36:throw new v;case 37:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"deactivate",value:function(){var e=o(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._mutex.has();case 2:if(!e.sent){e.next=5;break}return e.next=5,this._saveSuperblock();case 5:return this._cache.deactivate(),e.prev=6,e.next=9,this._mutex.release();case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.log(e.t0);case 14:return e.next=16,this._idb.close();case 16:case"end":return e.stop()}}),e,this,[[6,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"_saveSuperblock",value:function(){var e=o(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._cache.activated){e.next=4;break}return this._lastSavedAt=Date.now(),e.next=4,this._idb.saveSuperblock(this._cache._root);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_writeStat",value:function(e,t,n){var a,o=x.split(x.dirname(e)),i=o.shift(),s=r(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;i=x.join(i,l);try{this._cache.mkdir(i,{mode:511})}catch(u){}}}catch(c){s.e(c)}finally{s.f()}return this._cache.writeStat(e,t,n)}},{key:"readFile",value:function(){var e=o(a().mark((function e(t,n){var r,o,i,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=n.encoding)||"utf8"===r){e.next=3;break}throw new Error('Only "utf8" encoding is supported in readFile');case 3:return o=null,i=null,e.prev=4,i=this._cache.stat(t),e.next=8,this._idb.readFile(i.ino);case 8:o=e.sent,e.next=15;break;case 11:if(e.prev=11,e.t0=e.catch(4),this._urlauto){e.next=15;break}throw e.t0;case 15:if(o||!this._http){e.next=21;break}for(s=this._cache.lstat(t);"symlink"===s.type;)t=x.resolve(x.dirname(t),s.target),s=this._cache.lstat(t);return e.next=20,this._http.readFile(t);case 20:o=e.sent;case 21:if(!o){e.next=28;break}if(i&&i.size==o.byteLength){e.next=27;break}return e.next=25,this._writeStat(t,o.byteLength,{mode:i?i.mode:438});case 25:i=e.sent,this.saveSuperblock();case 27:"utf8"===r?o=c(o):o.toString=function(){return c(o)};case 28:if(i){e.next=30;break}throw new p(t);case 30:return e.abrupt("return",o);case 31:case"end":return e.stop()}}),e,this,[[4,11]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"writeFile",value:function(){var e=o(a().mark((function e(t,n,r){var o,i,s,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=r.mode,i=r.encoding,s=void 0===i?"utf8":i,"string"!==typeof n){e.next=5;break}if("utf8"===s){e.next=4;break}throw new Error('Only "utf8" encoding is supported in writeFile');case 4:n=u(n);case 5:return e.next=7,this._cache.writeStat(t,n.byteLength,{mode:o});case 7:return l=e.sent,e.next=10,this._idb.writeFile(l.ino,n);case 10:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"unlink",value:function(){var e=o(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this._cache.lstat(t),this._cache.unlink(t),"symlink"===r.type){e.next=5;break}return e.next=5,this._idb.unlink(r.ino);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"readdir",value:function(e,t){return this._cache.readdir(e)}},{key:"mkdir",value:function(e,t){var n=t.mode,r=void 0===n?511:n;this._cache.mkdir(e,{mode:r})}},{key:"rmdir",value:function(e,t){if("/"===e)throw new m;this._cache.rmdir(e)}},{key:"rename",value:function(e,t){this._cache.rename(e,t)}},{key:"stat",value:function(e,t){return this._cache.stat(e)}},{key:"lstat",value:function(e,t){return this._cache.lstat(e)}},{key:"readlink",value:function(e,t){return this._cache.readlink(e)}},{key:"symlink",value:function(e,t){this._cache.symlink(e,t)}},{key:"backFile",value:function(){var e=o(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._http.sizeFile
2(t);case 2:return r=e.sent,e.next=5,this._writeStat(t,r,n);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"du",value:function(e){return this._cache.du(e)}},{key:"flush",value:function(){return this._saveSuperblock()}}]),e}()},7044:function(e,t,n){var r=n(7061).default,a=n(7156).default,o=n(6690).default,i=n(9728).default;e.exports=function(){"use strict";function e(t){o(this,e),this._url=t}return i(e,[{key:"loadSuperblock",value:function(){return fetch(this._url+"/.superblock.txt").then((function(e){return e.ok?e.text():null}))}},{key:"readFile",value:function(){var e=a(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this._url+t);case 2:if(200!==(n=e.sent).status){e.next=7;break}return e.abrupt("return",n.arrayBuffer());case 7:throw new Error("ENOENT");case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sizeFile",value:function(){var e=a(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this._url+t,{method:"HEAD"});case 2:if(200!==(n=e.sent).status){e.next=7;break}return e.abrupt("return",n.headers.get("content-length"));case 7:throw new Error("ENOENT");case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}()},9938:function(e,t,n){var r=n(6690).default,a=n(9728).default,o=n(4751);e.exports=function(){"use strict";function e(t,n){r(this,e),this._database=t,this._storename=n,this._store=new o.Store(this._database,this._storename)}return a(e,[{key:"saveSuperblock",value:function(e){return o.set("!root",e,this._store)}},{key:"loadSuperblock",value:function(){return o.get("!root",this._store)}},{key:"readFile",value:function(e){return o.get(e,this._store)}},{key:"writeFile",value:function(e,t){return o.set(e,t,this._store)}},{key:"unlink",value:function(e){return o.del(e,this._store)}},{key:"wipe",value:function(){return o.clear(this._store)}},{key:"close",value:function(){return o.close(this._store)}}]),e}()},3985:function(e,t,n){var r=n(7061).default,a=n(7156).default,o=n(6690).default,i=n(9728).default,s=n(4751),l=function(e){return new Promise((function(t){return setTimeout(t,e)}))};e.exports=function(){"use strict";function e(t,n){o(this,e),this._id=Math.random(),this._database=t,this._storename=n,this._store=new s.Store(this._database,this._storename),this._lock=null}return i(e,[{key:"has",value:function(){var e=a(r().mark((function e(){var t,n,a,o,i=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.margin,a=void 0===n?2e3:n,!this._lock||this._lock.holder!==this._id){e.next=12;break}if(o=Date.now(),!(this._lock.expires>o+a)){e.next=7;break}return e.abrupt("return",!0);case 7:return e.next=9,this.renew();case 9:return e.abrupt("return",e.sent);case 10:e.next=13;break;case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"renew",value:function(){var e=a(r().mark((function e(){var t,n,a,o,i=this,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.ttl,a=void 0===n?5e3:n,e.next=3,s.update("lock",(function(e){var t=Date.now()+a;return o=e&&e.holder===i._id,i._lock=o?{holder:i._id,expires:t}:e,i._lock}),this._store);case 3:return e.abrupt("return",o);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"acquire",value:function(){var e=a(r().mark((function e(){var t,n,a,o,i,l,u=this,c=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.ttl,a=void 0===n?5e3:n,e.next=3,s.update("lock",(function(e){var t=Date.now(),n=t+a;return i=e&&e.expires<t,o=void 0===e||i,l=e&&e.holder===u._id,u._lock=o?{holder:u._id,expires:n}:e,u._lock}),this._store);case 3:if(!l){e.next=5;break}throw new Error("Mutex double-locked");case 5:return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"wait",value:function(){var e=a(r().mark((function e(){var t,n,a,o,i,s,u=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.interval,a=void 0===n?100:n,o=t.limit,i=void 0===o?6e3:o,s=t.ttl;case 1:if(!i--){e.next=10;break}return e.next=4,this.acquire({ttl:s});case 4:if(!e.sent){e.next=6;break}return e.abrupt("return",!0);case 6:return e.next=8,l(a);case 8:e.next=1;break;case 10:throw new Error("Mutex timeout");case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"release",value:function(){var e=a(r().mark((function e(){var t,n,a,o,i,l,u=this,c=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.force,a=void 0!==n&&n,e.next=3,s.update("lock",(function(e){return o=a||e&&e.holder===u._id,i=void 0===e,l=e&&e.holder!==u._id,u._lock=o?void 0:e,u._lock}),this._store);case 3:return e.next=5,s.close(this._store);case 5:if(o||a){e.next=10;break}if(!i){e.next=8;break}throw new Error("Mutex double-freed");case 8:if(!l){e.next=10;break}throw new Error("Mutex lost ownership");case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}()},7890:function(e,t,n){var r=n(7061).default,a=n(7156).default,o=n(6690).default,i=n(9728).default;e.exports=function(){"use strict";function e(t){o(this,e),this._id=Math.random(),this._database=t,this._has=!1,this._release=null}return i(e,[{key:"has",value:function(){var e=a(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._has);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"acquire",value:function(){var e=a(r().mark((function e(){var t=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){navigator.locks.request(t._database+"_lock",{ifAvailable:!0},(function(n){return t._has=!!n,e(!!n),new Promise((function(e){t._release=e}))}))})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"wait",value:function(){var e=a(r().mark((function e(){var t,n,a,o=this,i=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.timeout,a=void 0===n?6e5:n,e.abrupt("return",new Promise((function(e,t){var n=new AbortController;setTimeout((function(){n.abort(),t(new Error("Mutex timeout"))}),a),navigator.locks.request(o._database+"_lock",{signal:n.signal},(function(t){return o._has=!!t,e(!!t),new Promise((function(e){o._release=e}))}))})));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"release",value:function(){var e=a(r().mark((function e(){var t,n,a,o=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.force,a=void 0!==n&&n,this._has=!1,this._release?this._release():a&&navigator.locks.request(this._database+"_lock",{steal:!0},(function(e){return!0}));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}()},6935:function(e,t,n){var r=n(861).default,a=n(7061).default,o=n(7156).default,i=n(6690).default,s=n(9728).default,l=n(9608),u=n(2678),c=n(7237);function d(e,t){e=c.normalize(e),"undefined"!==typeof t&&"function"!==typeof t||(t={}),"string"===typeof t&&(t={encoding:t});for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return[e,t].concat(r)}function f(e,t,n){e=c.normalize(e),"undefined"!==typeof n&&"function"!==typeof n||(n={}),"string"===typeof n&&(n={encoding:n});for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return[e,t,n].concat(a)}function h(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return[c.normalize(e),c.normalize(t)].concat(r)}e.exports=function(){"use strict";function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,d,!1),this.writeFile=this._wrap(this.writeFile,f,!0),this.unlink=this._wrap(this.unlink,d,!0),this.readdir=this._wrap(this.readdir,d,!1),this.mkdir=this._wrap(this.mkdir,d,!0),this.rmdir=this._wrap(this.rmdir,d,!0),this.rename=this._wrap(this.rename,h,!0),this.stat=this._wrap(this.stat,d,!1),this.lstat=this._wrap(this.lstat,d,!1),this.readlink=this._wrap(this.readlink,d,!1),this.symlink=this._wrap(this.symlink,h,!0),this.backFile=this._wrap(this.backFile,d,!0),this.du=this._wrap(this.du,d,!1),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,t&&this.init(t,n)}return s(e,[{key:"init",value:function(){var e=o(a().mark((function e(){var t=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._initPromiseResolve){e.next=3;break}return e.next=3,this._initPromise;case 3:return this._initPromise=this._init.apply(this,t),e.abrupt("return",this._initPromise);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_init",value:function(){var e=o(a().mark((function e(t){var n,r=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.next=3,this._gracefulShutdown();case 3:if(!this._activationPromise){e.next=6;break}return e.next=6,this._deactivate();case 6:if(!this._backend||!this._backend.destroy){e.next=9;break}return e.next=9,this._backend.destroy();case 9:if(this._backend=n.backend||new l,!this._backend.init){e.next=13;break}return e.next=13,this._backend.init(t,n);case 13:this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),n.defer||this.stat("/");case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_gracefulShutdown",value:function(){var e=o(a().mark((function e(){var t=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._operations.size>0)){e.next=6;break}return this._isShuttingDown=!0,e.next=4,new Promise((function(e){return t._gracefulShutdownResolve=e}));case 4:this._isShuttingDown=!1,this._gracefulShutdownResolve=null;case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_wrap",value:function(e,t,n){var i=this;return o(a().mark((function o(){var s,l,u,c,d=arguments;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:for(s=d.length,l=new Array(s),u=0;u<s;u++)l[u]=d[u];return l=t.apply(void 0,r(l)),c={name:e.name,args:l},i._operations.add(c),a.prev=4,a.next=7,i._activate();case 7:return a.next=9,e.apply(i,l);case 9:return a.abrupt("return",a.sent);case 10:return a.prev=10,i._operations.delete(c),n&&i._backend.saveSuperblock(),0===i._operations.size&&(i._deactivationTimeout||clearTimeout(i._deactivationTimeout),i._deactivationTimeout=setTimeout(i._deactivate.bind(i),500)),a.finish(10);case 15:case"end":return a.stop()}}),o,null,[[4,,10,15]])})))}},{key:"_activate",value:function(){var e=o(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._initPromise||console.warn(new Error("Attempted to use LightningFS ".concat(this._name," before it was initialized."))),e.next=3,this._initPromise;case 3:if(this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),!this._deactivationPromise){e.next=7;break}return e.next=7,this._deactivationPromise;case 7:return this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this._backend.activate?this._backend.activate():Promise.resolve()),e.next=11,this._activationPromise;case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_deactivate",value:function(){var e=o(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._activationPromise){e.next=3;break}return e.next=3,this._activationPromise;case 3:return this._deactivationPromise||(this._deactivationPromise=this._backend.deactivate?this._backend.deactivate():Promise.resolve()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),e.abrupt("return",this._deactivationPromise);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readFile",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._backend.readFile(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"writeFile",value:function(){var e=o(a().mark((function e(t,n,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.writeFile(t,n,r);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"unlink",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.unlink(t,n);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"readdir",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._backend.readdir(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"mkdir",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.mkdir(t,n);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"rmdir",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.rmdir(t,n);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"rename",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.rename(t,n);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"stat",value:function(){var e=o(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.stat(t,n);case 2:return r=e.sent,e.abrupt("return",new u(r));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"lstat",value:function(){var e=o(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.lstat(t,n);case 2:return r=e.sent,e.abrupt("return",new u(r));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"readlink",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._backend.readlink(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"symlink",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.symlink(t,n);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"backFile",value:function(){var e=o(a().mark((function e(t,n){r
2eturn a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._backend.backFile(t,n);case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"du",value:function(){var e=o(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._backend.du(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"flush",value:function(){var e=o(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._backend.flush());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}()},2678:function(e,t,n){var r=n(6690).default,a=n(9728).default;e.exports=function(){"use strict";function e(t){r(this,e),this.type=t.type,this.mode=t.mode,this.size=t.size,this.ino=t.ino,this.mtimeMs=t.mtimeMs,this.ctimeMs=t.ctimeMs||t.mtimeMs,this.uid=1,this.gid=1,this.dev=1}return a(e,[{key:"isFile",value:function(){return"file"===this.type}},{key:"isDirectory",value:function(){return"dir"===this.type}},{key:"isSymbolicLink",value:function(){return"symlink"===this.type}}]),e}()},6475:function(e,t,n){var r=n(9728).default,a=n(6690).default,o=n(1655).default,i=n(6389).default,s=n(3496).default;function l(e){return function(t){"use strict";o(s,t);var n=i(s);function s(){var t;a(this,s);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n.call.apply(n,[this].concat(o))).code=e,t.message?t.message=e+": "+t.message:t.message=e,t}return r(s)}(s(Error))}var u=l("EEXIST"),c=l("ENOENT"),d=l("ENOTDIR"),f=l("ENOTEMPTY"),h=l("ETIMEDOUT");e.exports={EEXIST:u,ENOENT:c,ENOTDIR:d,ENOTEMPTY:f,ETIMEDOUT:h}},6311:function(e,t,n){var r=n(7424).default,a=n(3515).default,o=n(6690).default,i=n(9728).default,s=n(8899),l=n(6935);function u(e,t){"function"===typeof e&&(t=e);return[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,[null].concat(n))},t=s(t)]}e.exports=function(){"use strict";function e(){o(this,e);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.promises=a(l,n),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this),this.flush=this.flush.bind(this)}return i(e,[{key:"init",value:function(e,t){return this.promises.init(e,t)}},{key:"readFile",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.readFile(e,t).then(i).catch(s)}},{key:"writeFile",value:function(e,t,n,a){var o=u(n,a),i=r(o,2),s=i[0],l=i[1];this.promises.writeFile(e,t,n).then(s).catch(l)}},{key:"unlink",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.unlink(e,t).then(i).catch(s)}},{key:"readdir",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.readdir(e,t).then(i).catch(s)}},{key:"mkdir",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.mkdir(e,t).then(i).catch(s)}},{key:"rmdir",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.rmdir(e,t).then(i).catch(s)}},{key:"rename",value:function(e,t,n){var a=u(n),o=r(a,2),i=o[0],s=o[1];this.promises.rename(e,t).then(i).catch(s)}},{key:"stat",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.stat(e).then(i).catch(s)}},{key:"lstat",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.lstat(e).then(i).catch(s)}},{key:"readlink",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.readlink(e).then(i).catch(s)}},{key:"symlink",value:function(e,t,n){var a=u(n),o=r(a,2),i=o[0],s=o[1];this.promises.symlink(e,t).then(i).catch(s)}},{key:"backFile",value:function(e,t,n){var a=u(t,n),o=r(a,2),i=o[0],s=o[1];this.promises.backFile(e,t).then(i).catch(s)}},{key:"du",value:function(e,t){var n=u(t),a=r(n,2),o=a[0],i=a[1];this.promises.du(e).then(o).catch(i)}},{key:"flush",value:function(e){var t=u(e),n=r(t,2),a=n[0],o=n[1];this.promises.flush().then(a).catch(o)}}]),e}()},7237:function(e,t,n){var r=n(861).default;function a(e){if(0===e.length)return".";var t=i(e);return t=t.reduce(s,[]),o.apply(void 0,r(t))}function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return"";var r=t.join("/");return r=r.replace(/\/{2,}/g,"/")}function i(e){if(0===e.length)return[];if("/"===e)return["/"];var t=e.split("/");return""===t[t.length-1]&&t.pop(),"/"===e[0]?t[0]="/":"."!==t[0]&&t.unshift("."),t}function s(e,t){if(0===e.length)return e.push(t),e;if("."===t)return e;if(".."===t){if(1===e.length){if("/"===e[0])throw new Error("Unable to normalize path - traverses above root directory");if("."===e[0])return e.push(t),e}
2return".."===e[e.length-1]?(e.push(".."),e):(e.pop(),e)}return e.push(t),e}e.exports={join:o,normalize:a,split:i,basename:function(e){if("/"===e)throw new Error('Cannot get basename of "'.concat(e,'"'));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)},dirname:function(e){var t=e.lastIndexOf("/");if(-1===t)throw new Error('Cannot get dirname of "'.concat(e,'"'));return 0===t?"/":e.slice(0,t)},resolve:function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,s=n;i<s.length;i++){var l=s[i];e=l.startsWith("/")?l:a(o(e,l))}return e}}},726:function(e,t,n){!function(e){"use strict";function t(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),a=[],o=0;;){var i=t<e.length;if(!i||o>=n-1){var s=r.subarray(0,o);if(a.push(String.fromCharCode.apply(null,s)),!i)return a.join("");e=e.subarray(t),t=0,o=0}var l=e[t++];if(0===(128&l))r[o++]=l;else if(192===(224&l)){var u=63&e[t++];r[o++]=(31&l)<<6|u}else if(224===(240&l)){u=63&e[t++];var c=63&e[t++];r[o++]=(31&l)<<12|u<<6|c}else if(240===(248&l)){var d=(7&l)<<18|(u=63&e[t++])<<12|(c=63&e[t++])<<6|63&e[t++];d>65535&&(d-=65536,r[o++]=d>>>10&1023|55296,d=56320|1023&d),r[o++]=d}}}var n="Failed to ",r=function(e,t,r){if(e)throw new Error("".concat(n).concat(t,": the '").concat(r,"' option is unsupported."))},a="function"==typeof Buffer&&Buffer.from,o=a?function(e){return Buffer.from(e)}:function(e){for(var t=0,n=e.length,r=0,a=Math.max(32,n+(n>>>1)+7),o=new Uint8Array(a>>>3<<3);t<n;){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319){if(t<n){var s=e.charCodeAt(t);56320===(64512&s)&&(++t,i=((1023&i)<<10)+(1023&s)+65536)}if(i>=55296&&i<=56319)continue}if(r+4>o.length){a+=8,a=(a*=1+t/e.length*2)>>>3<<3;var l=new Uint8Array(a);l.set(o),o=l}if(0!==(4294967168&i)){if(0===(4294965248&i))o[r++]=i>>>6&31|192;else if(0===(4294901760&i))o[r++]=i>>>12&15|224,o[r++]=i>>>6&63|128;else{if(0!==(4292870144&i))continue;o[r++]=i>>>18&7|240,o[r++]=i>>>12&63|128,o[r++]=i>>>6&63|128}o[r++]=63&i|128}else o[r++]=i}return o.slice?o.slice(0,r):o.subarray(0,r)};function i(){this.encoding="utf-8"}i.prototype.encode=function(e,t){return r(t&&t.stream,"encode","stream"),o(e)};var s=!a&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,l=["utf-8","utf8","unicode-1-1-utf-8"],u=t;a?u=function(e,t){return(e instanceof Buffer?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:s&&(u=function(e){try{return function(e){var t;try{var n=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(n);var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(),r.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(n){return t(e)}});var c="construct 'TextDecoder'",d="".concat(n," ").concat(c,": the ");function f(e,t){if(r(t&&t.fatal,c,"fatal"),e=e||"utf-8",!(a?Buffer.isEncoding(e):-1!==l.indexOf(e.toLowerCase())))throw new RangeError("".concat(d," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}f.prototype.decode=function(e,t){var n;return r(t&&t.stream,"decode","stream"),n=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),u(n,this.encoding)},e.TextEncoder=e.TextEncoder||i,e.TextDecoder=e.TextDecoder||f}("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:this)},9575:function(e,t,n){n(726),e.exports={encode:function(e){return(new TextEncoder).encode(e)},decode:function(e){return(new TextDecoder).decode(e)}}},4019:function(e){e.exports=function(e,t,n){var r;return function(){if(!t)return e.apply(this,arguments);var a=this,o=arguments,i=n&&!r;return clearTimeout(r),r=setTimeout((function(){if(r=null,!i)return e.apply(a,o)}),t),i?e.apply(this,arguments):void 0}}},8899:function(e){e.exports=function(e){var t,n;if("function"!==typeof e)throw new Error("expected a function but got "+e);return function(){return t?n:(t=!0,n=e.apply(this,arguments))}}},6663:function(e,t,n){"use strict";var r=n(697),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INT
vendor: 4,094 bytes, line 2
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},8184:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=w.prototype=new y;b.constructor=w,m(b,g.prototype),b.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,j={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&!S.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:j.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+T(l,0):o,x(i)?(a="",null!=e&&(a=e.replace(_,"$&/")+"/"),P(i,t,a,"",(function(e){return e}))):null!=i&&(E(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+T(s=e[u],u);l+=P(s,t,a,c,i)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=P(s=s.value,t,a,c=o+T(s,u++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},M={transition:null},L={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:j};
2t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=i,t.PureComponent=w,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=j.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!S.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},697:function(e,t,n){"use strict";e.exports=n(8184)},7076:function(e,t,n){"use strict";e.exports=n(6663)},3157:function(e,t,n){var r;!function(a,o){"use strict";var i="function",s="undefined",l="object",u="string",c="model",d="name",f="type",h="vendor",p="version",m="architecture",v="console",g="mobile",y="tablet",w="smarttv",b="wearable",x="embedded",k="Amazon",j="Apple",S="ASUS",C="BlackBerry",E="Browser",_="Chrome",T="Firefox",P="Google",D="Huawei",N="LG",A="Microsoft",M="Motorola",L="Opera",F="Samsung",I="Sharp",R="Sony",O="Xiaomi",z="Zebra",B="Facebook",U=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},W=function(e,t){return typeof e===u&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},K=function(e,t){for(var n,r,a,s,u,c,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!u;)if(u=f[n++].exec(e))for(a=0;a<h.length;a++)c=u[++r],typeof(s=h[a])===l&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):o:this[s[0]]=c?s[1].call(this,c,s[2]):o:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(W(t[n][r],e))return"?"===n?o:n}
vendor: 6,430 bytes, line 2
2else if(W(t[n],e))return"?"===n?o:n;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,L]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[d,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[d,T]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+E]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+E],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,B],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,_+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,F],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,F],[f,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,j],[f,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,j],[f,y]],[/(macintosh);/i],[c,[h,j]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,D],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,D],[f,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,O],[f,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,O],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[f,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[f,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[f,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,M],[f,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,M],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,N],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,N],[f,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[f,g]],[/(pixel c)\b/i],[c,[h,P],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,P],[f,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,R],[f,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,R],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,k],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)
vendor: 4,334 bytes, line 2
2/g,"Fire Phone $1"],[h,k],[f,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,C],[f,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,S],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,S],[f,g]],[/(nexus 9)/i],[c,[h,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[f,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[f,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,I],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[f,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[f,y]],[/(surface duo)/i],[c,[h,A],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[f,g]],[/(u304aa)/i],[c,[h,"AT&T"],[f,g]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[f,g]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[f,y]],[/\b(k88) b/i],[c,[h,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[f,g]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[f,g]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[f,y]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[f,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[f,g]],[/\b(ph-1) /i],[c,[h,"Essential"],[f,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[h,c,[f,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,A],[f,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,z],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,z],[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[f,v]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[f,v]],[/(playstation [345portablevi]+)/i],[c,[h,R],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,A],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,w]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,F],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,N],[f,w]],[/(apple) ?tv/i],[h,[c,j+" TV"],[f,w]],[/crkey/i],[[c,_+"cast"],[h,P],[f,w]],[/droid.+aft(\w)( bui|\))/i],[c,[h,k],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,I],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,R],[f,w]],[/(mitv-\w{5}) bui/i],[c,[h,O],[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,H],[c,H],[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/((pebble))app/i],[h,c,[f,b]],[/droid.+; (glass) \d/i],[c,[h,P],[f,b]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,z],[f,b]],[/(quest( 2)?)/i],[c,[h,B],[f,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\
2:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,G,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,G,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,_+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},Q=function e(t,n){if(typeof t===l&&(n=t,t=o),!(this instanceof e))return new e(t,n).getResult();var r=t||(typeof a!==s&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),i=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(q,n):q;return this.getBrowser=function(){var e,t={};return t[d]=o,t[p]=o,K.call(t,r,i.browser),t.major=typeof(e=t.version)===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[m]=o,K.call(e,r,i.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[c]=o,e[f]=o,K.call(e,r,i.device),e},this.getEngine=function(){var e={};return e[d]=o,e[p]=o,K.call(e,r,i.engine),e},this.getOS=function(){var e={};return e[d]=o,e[p]=o,K.call(e,r,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Q.VERSION="0.7.33",Q.BROWSER=U([d,p,"major"]),Q.CPU=U([m]),Q.DEVICE=U([c,h,f,v,g,w,y,b,x]),Q.ENGINE=Q.OS=U([d,p]),typeof t!==s?(e.exports&&(t=e.exports=Q),t.UAParser=Q):n.amdO?(r=function(){return Q}.call(t,n,t,e))===o||(e.exports=r):typeof a!==s&&(a.UAParser=Q);var Y=typeof a!==s&&(a.jQuery||a.Zepto);if(Y&&!Y.ua){var Z=new Q;Y.ua=Z.getResult(),Y.ua.get=function(){return Z.getUA()},Y.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"===typeof window?window:this)},3897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},5372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3405:function(e,t,n){var r=n(3897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7156:function(e){function t(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(a,o){var i=e.apply(n,r);function s(e){t(i,a,o,s,l,"next",e)}function l(e){t(i,a,o,s,l,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var r=n(6015),a=n(9617);function o(t,n,i){return a()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var a=[null];a.push.apply(a,t);var o=new(Function.bind.apply(e,a));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}
2e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e,t,n){var r=n(4062);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,r(a.key),a)}}e.exports=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4704:function(e,t,n){var r=n(6116);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),a=n(9617),o=n(4993);e.exports=function(e){var t=a();return function(){var n,a=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},6035:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2281:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,a=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,n){var r=n(8698).default;function a(){"use strict";e.exports=a=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(N){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),s=new T(r||[]);return i(o,"_invoke",{value:S(e,n,s)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}t.wrap=f;var p={};function m(){}function v(){}function g(){}var y={};d(y,l,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(P([])));b&&b!==n&&o.call(b,l)&&(y=b);var x=g.prototype=m.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,146 bytes, line 2
2))}function j(e,t){function n(a,i,s,l){var u=h(e[a],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}})}function S(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return D()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=h(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=h(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,p;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:D}}function D(){return{value:void 0,done:!0}}return v.prototype=g,i(x,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=d(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(j.prototype),d(j.prototype,u,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new j(f(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(x),d(x,c,"Generator"),d(x,l,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;_(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,n){var r=n(5372),a=n(8872),o=n(6116),i=n(2218);e.exports=function(e,t){return r(e)||a(e,t)||o(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},1589:function(e,t,n){var r=n(5372),a=n(9498),o=n(6116),i=n(2218);e.exports=function(e){return r(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),a=n(9498),o=n(6116),i=n(2281);e.exports=function(e){return r(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,a=n(5036);e.exports=function(e){var t=a(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},3496:function(e,t,n){var r=n(3808),a=n(6015),o=n(6035),i=n(3515);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,r.Z)(a.key),a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1002);function a(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==(0,r.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},4751:function(e,t,n){"use strict";n.r(t),n.d(t,{Store:function(){return i},clear:function(){return f},close:function(){return p},del:function(){return d},get:function(){return l},keys:function(){return h},set:function(){return u},update:function(){return c}});var r,a=n(5671),o=n(3144),i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyval-store",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keyval";(0,a.Z)(this,e),this.storeName=n,this._dbName=t,this._storeName=n,this._init()}return(0,o.Z)(e,[{key:"_init",value:function(){var e=this;this._dbp||(this._dbp=new Promise((function(t,n){var r=indexedDB.open(e._dbName);r.onerror=function(){return n(r.error)},r.onsuccess=function(){return t(r.result)},r.onupgradeneeded=function(){r.result.createObjectStore(e._storeName)}})))}},{key:"_withIDBStore",value:function(e,t){var n=this;return this._init(),this._dbp.then((function(r){return new Promise((function(a,o){var i=r.transaction(n.storeName,e);i.oncomplete=function(){return a()},i.onabort=i.onerror=function(){return o(i.error)},t(i.objectStore(n.storeName))}))}))}},{key:"_close",value:function(){var e=this;return this._init(),this._dbp.then((function(t){t.close(),e._dbp=void 0}))}}]),e}();function s(){return r||(r=new i),r}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return n._withIDBStore("readwrite",(function(n){t=n.get(e)})).then((function(){return t.result}))}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s();return n._withIDBStore("readwrite",(function(n){n.put(t,e)}))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s();return n._withIDBStore("readwrite",(function(n){var r=n.get(e);r.onsuccess=function(){n.put(t(r.result),e)}}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return t._withIDBStore("readwrite",(function(t){t.delete(e)}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s();return e._withIDBStore("readwrite",(function(e){e.clear()}
2))}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s(),t=[];return e._withIDBStore("readwrite",(function(e){(e.openKeyCursor||e.openCursor).call(e).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}})).then((function(){return t}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s();return e._close()}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(o,i),o}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){"use strict";var e=n(1739),t=n(697),r=n.t(t,2);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}var s=n(1002);function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(D){c=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new _(a||[]);return r(i,"_invoke",{value:j(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=d;var h={};function p(){}function m(){}function v(){}var g={};c(g,o,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(T([])));w&&w!==t&&n.call(w,o)&&(g=w);var b=v.prototype=p.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(r,o,i,l){var u=f(e[r],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==(0,s.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return a("throw",e,i,l)}))}l(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function j(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return P()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=S(i,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 7,902 bytes, line 2
2(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=f(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,h;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=v,r(b,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new k(d(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(b),c(b,u,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function u(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){u(o,r,a,i,s,"next",e)}function s(e){u(o,r,a,i,s,"throw",e)}i(void 0)}))}}var d=n(6311),f=n.n(d);function h(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e){return function(e){if(Array.isArray(e))return a(e)}(e)||h(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m,v="tutorial",g="/bin",y="/dev",w="".concat(y,"/usb"),b="/etc",x="/home",k="/tmp",j="".concat(x,"/harry"),S="".concat(x,"/").concat(v),C="".concat(S,"/Documents"),E="".concat(C,"/Work"),_="".concat(C,"/Essays"),T="".concat(_,"/Programming"),P="".concat(C,"/Diary"),D="".concat(P,"/Jokes"),N="".concat(P,"/Birthdays"),A="".concat(N,"/Tom"),M="".concat(N,"/Jerry"),L="".concat(S,"/Downloads"),F="".concat(S,"/Pictures"),I="".concat(F,"/Portraits"),R="".concat(F,"/Thailand"),O="".concat(S,"/Music"),z=[g,y,w,b,x,"/opt",k,"/usr","/var",j,S,C,E,_,T,P,D,N,A,M,L,F,I,R,O],B="".concat(S,"/software-dev-coaching.txt"),U="".concat(C,"/spaghetti.txt"),W="".concat(C,"/confession.txt"),V="".concat(C,"/love-interests.txt"),H="".concat(_,"/first-grade-essay.txt"),K="".concat(_,"/dogs.txt"),G="".concat(_,"/plan-for-world-domination.txt"),$="".concat(_,"/space.txt"),q="".concat(T,"/javascript.txt"),Q="".concat(T,"/python.txt"),Y="".concat(E,"/todo-list.txt"),Z="".concat(P,"/car-purchase.txt"),J="".concat(P,"/breakup.txt"),X="".concat(D,"/joke-1.txt"),ee="".concat(D,"/joke-2.txt"),te="".concat(D,"/joke-3.txt"),ne="".concat(A,"/preparations.txt"),re="".concat(A,"/he-loved-it.txt"),ae="".concat(M,"/brainstorming.txt"),oe="".concat(M,"/the-big-day.txt"),ie="".concat(O,"/hip-hop-beats.txt"),se="".concat(I,"/me-in-7th-grade.jpg"),le="".concat(I,"/grandpa.jpg"),ue="".concat(R,"/beach.jpg"),ce="".concat(R,"/temple.jpg"),de="".concat(R,"/bangkok.jpg"),fe="".concat(j,"/whats-up.txt"),he=(m="/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAwADADAREAAhEBAxEB/8QAGQAAAwEBAQAAAAAAAAAAAAAABQYHBAMB/8QALxAAAgIBAgUDAwIHAQAAAAAAAQIDBBEABRITITFRIkFxBhRhUnIkMzSBobHB8P/EABgBAAMBAQAAAAAAAAAAAAAAAAABAgME/8QAHBEBAQADAQEBAQAAAAAAAAAAAAECESExQRJR/9oADAMBAAIRAxEAPwBS2qiI6/MdA0jdlJ6DOkcNm2UEWVUkAdlUE5Hb41NrWYmOtDAOnAgI8jUtJI1S0q8ieqCNh+3Rs9Qn77sa0ma1TU8o/wAyPx+R+NVKyyx14nlpVSzIqjAB7eNWxHKN7EuZOqggKv8A740lQ0rfFWzBKE4+amMeW9tS12Kl9wiAlk3OrBx9eHldv86ODo5Q4pKY5lpJ3zksg4cjSVL/AED3azYkneqqwwxYOSx4mkHjHtplbbUo3H+sfVsK1xq8MqF1986R60oWz1K1yGLmY4kGV+Tqa1k2PR7XO4VeaI4+YHfABLj9Jz7aJSuP1jJgq7ysNVQjD0MO2QdJc9db23l51kB4Y1UAx46Z/V86Ni4d2kW/RcjerUXsshx8auOfL0UIE1ZXGCpTIx576Gt7Bz6ctMtoKScEZH40qJVApWQy+o9AMnUrvYT7Nd7G7OjW5OBZGlZkA65OQOvYjtqk26oxRlK1rGZpJMuSA+Mp4HTU1cvEr+pTnf7Z8sP9DVxzZevNstOOXWzlGbHxoPG/B2lL9vfRicKemhZwgsPLTmSNsMcLnUnsubhu267bIy1arxxJ6TIyH1HznTVuzwX2y5Pa237ywoV5Ewce/XvpFanG8zCxu1mRexcgf26f81bG+ue3H+Ph/eNAnpgs4IPkalpRP6e3FzPLXkPqZBw/kjRSlFfvV3GrJU3CrbSQ9CY4yQ2D3z20N/1jYz71YNLaDHXjKmOL0r3KgD30RlnZbxPIKtmyrtXrzShMcZRC3Dnzjt2Oq+6Y7f/Z",Uint8Array.from(atob(m),(function(e){return e.charCodeAt(0)}))),pe={path:B,content:"Trying to learn a programming language fast? Learn faster with the help of a coach.\n\nHit up Niklas for c
2oaching:\n- [email protected]\n- https://www.linkedin.com/in/niklas-wenzel-59953b201/\n\nNiklas has been coding for 15 years and has coached multiple people in learning how to code.\n"},me={path:U,content:"Ingredients:\n\n- 1 pound spaghetti\n- 1/2 cup olive oil\n- 4 cloves of garlic, minced\n- 2 cans (28 ounces each) of whole peeled tomatoes\n- Salt and freshly ground black pepper, to taste\n- 10-12 fresh basil leaves\n- 1/2 teaspoon sugar (optional)\n\nInstructions:\n\n1. Cook spaghetti in a large pot of salted boiling water until al dente. Reserve 1 cup of pasta water and drain.\n\n2. While the spaghetti is cooking, heat the olive oil in a large skillet over medium heat. Add the garlic and cook until fragrant, about 1 minute.\n\n3. Add the tomatoes to the skillet, crushing them with a fork or a potato masher. Season with salt, pepper, and sugar (if using). Let the sauce simmer for 15-20 minutes, until it has thickened slightly.\n\n4. Stir in the basil leaves and let them cook in the sauce for 2-3 minutes.\n\n5. Toss the spaghetti with the sauce and add a splash of the reserved pasta water if the sauce is too thick. Serve hot.\n\nEnjoy your delicious spaghetti pomodoro!\n\n(Recipe written by ChatGPT. If you cook it, please let me know how it turns out!)\n"},ve={path:W,content:"Confession time: I may or may not have just peed my pants a little (okay, maybe a lot) from laughing so hard at my own jokes. Who says you have to grow up and act your age?\n"},ge={path:V,content:"Erika: Cute and into computers (a huge plus)\nHelene: Very kind and generous\nLucy: Shy, but adorable\n"},ye={path:H,content:"Today I wen to the pool with my mommy and dady. It was so much fun! I love to swim and plae in the woter. I got to jump in the big pool and go down the slide too.\n\nMy mommy and dady also played with me in the woter. They threw me up in the air and I did somersaults in the pool. We also had a race to see who could swim the fastest. I lost but I had so much fun anyway.\n\nWe also took a break and ate snaks. I had a sandwish and a juice box. I sat in the sun and felt it warm on my skin. It was so nice and relaxin.\n\nAfter lunch, we went back in the woter and played some more. I got to go down the slide again and again. I was laughing so hard! We also plaed a game where we tried to catch a ball in the pool.\n\nAt the end of the day, I was tired but so heppy. I love to go to the pool and play in the woter. It's so much fun! I can't wait to go back again soon.\n"},we={path:K,content:"They are awesome!\n"},be={path:G,content:"1. Gather a team of highly trained hamsters.\n2. Train the hamsters in advanced tactics and strategy.\n3. Outfit the hamsters with tiny suits of armor and laser guns.\n4. Use the hamsters to infiltrate the governments of major world powers.\n"},xe={path:$,content:"Moon landing, one of the biggest events in human history, a milestone in space exploration, and a testament to human perseverance, bravery and innovation.\n\nOn July 20th, 1969, at 4:18 PM, Astronauts Neil Armstrong and Buzz Aldrin became the first humans to walk on the moon as part of the Apollo 11 mission. This was a triumphant moment for the entire world, as it marked a major step forward in space exploration and technological advancement.\n\nThe journey to the moon was a long and challenging one. It started in 1961 when President John F. Kennedy declared that the United States would land a man on the moon before the end of the decade. NASA was tasked with the responsibility of making this a reality and they worked tirelessly over the next eight years to make this dream a reality.\n\nThe Apollo 11 mission was a massive undertaking and involved an intricate system of spacecrafts, technology, and teamwork. The three-man crew consisted of Armstrong, Aldrin, and Command Module pilot Michael Collins.\n\nThe lunar module, called \u201cEagle\u201d, was the spacecraft responsible for landing the two astronauts on the moon\u2019s surface. It was a highly advanced and sophisticated piece of technology, with a complex system of engines, fuel tanks, and computers that had to work together seamlessly in order to make the landing successful.\n\nThe moon landing was watched by millions of people around the world as it was broadcast live on television. It was a momentous occasion, filled with excitement and awe, as people tuned in to watch history unfold before their eyes.\n\nNeil Armstrong\u2019s famous words, \u201cThat\u2019s one small step for man, one giant leap for mankind\u201d will forever be remembered as a symbol of human perseverance and courage in the face of incredible odds.\n\n
2In conclusion, the moon landing was a defining moment in human history, a testament to the power of human determination and technology, and a source of inspiration for generations to come. And even now, 50 years later, it continues to inspire new generations of scientists and explorers to pursue their dreams and reach for the stars.\n"},ke={path:q,content:"JavaScript is a versatile, high-level programming language that is widely used in web development and beyond. Some common applications of JavaScript include:\n\n1. Web Development: JavaScript is primarily used to add interactivity and dynamic elements to web pages, such as drop-down menus, pop-up windows, and form validation.\n2. Web Applications: JavaScript can be used to build complex single-page applications and progressive web applications, which provide a native app-like experience in the web browser.\n3. Server-side Development: JavaScript can be used on the server-side with technologies such as Node.js to build scalable, fast and efficient web applications.\n4. Mobile App Development: JavaScript can be used with frameworks like React Native to develop cross-platform mobile applications for iOS and Android.\n5. Game Development: JavaScript can be used to create interactive games and animations, both for the web and for desktop applications.\n6. Internet of Things (IoT): JavaScript can be used to build applications for the Internet of Things, connecting devices to the web and enabling them to collect and exchange data.\n\nOverall, JavaScript is a powerful language that is used in a wide range of applications, making it an essential tool for web developers and beyond.\n"},je={path:Q,content:"Python is a popular programming language that is known for its simplicity, readability, and versatility. Here are some of its most use cases:\n\n1. Data analysis and visualization: Python has a wide variety of libraries for data analysis and visualization, making it a popular choice for data scientists and engineers.\n2. Web development: Python can be used to build server-side web applications and is a popular choice for building APIs and microservices.\n3. Machine learning and artificial intelligence: Python has a large number of libraries for machine learning and AI, including TensorFlow, PyTorch, and scikit-learn.\n4. Scripting: Python can be used as a scripting language to automate repetitive tasks and perform system administration tasks.\n5. General-purpose programming: Python can be used for a variety of other programming tasks, including building desktop applications and games.\n\nOverall, Python is a versatile language that is well-suited to many different programming tasks, which is why it's a popular choice amongst developers.\n"},Se={path:Y,content:"- Meet with dragon advisor to discuss kingdom's budget\n- Try out new spell for turning invisible\n- Visit the goblin market for ingredients for love potion\n- Attend council of wizards meeting to discuss border disputes with unicorns\n- Write a poem to enter in the bard's competition\n- Hike up to the top of the enchanted mountain to meditate\n- Have tea with the fairy queen to discuss peace treaty negotiations\n- Test enchanted sword in battle simulation with fellow knights\n- Visit the mermaid lagoon to collect pearls for crown jeweler\n- Give a speech at the annual harvest festival to thank the villagers.\n"},Ce={path:Z,content:"Dear Diary,\n\nToday was an exciting day - I just bought my very first car! It's a used Honda Civic, but it's in great condition and I got a good deal on it. I can't believe I finally have my own wheels. No more relying on public transportation or borrowing my parents' car.\n\nDriving it home was a little nerve-wracking, but I quickly got the hang of it. It feels amazing to be able to go wherever I want, whenever I want. I'm already planning a road trip with some friends.\n\nI know owning a car comes with responsibilities like insurance and maintenance, but I'm ready for it. This car is a symbol of my independence and I'm so grateful to have it. Here's to many more adventures on the road!\n"},Ee={path:J,content:"Dear Diary,\n\nToday has been tough. My girlfriend just broke up with me and I'm feeling lost and heartbroken. I thought we had something special, but I guess she didn't feel the same way.\n\nI'm trying to make sense of it all and figure out what went wrong. Was it something I said or did? Was there someone else? I don't have all the answers and it's eating me up inside.\n"},_e={path:X,content:"Why did the tomato turn red? - Because it saw the salad dressing!\n"},Te={path:ee,content:"Why did the scarecrow win an award? - Because he was outstanding in his field!\n"},Pe={path:te,content:"Why did the math book look so mad? - Because it had too many problems!\n"},De={path:ne,content:"Dear Diary,\n\nToday has been a hectic but exciting day for me as I prepare for Tom's birthday party tomorrow. Yes, you read that right, Tom, my lovely cat, is turning 3 years old tomorrow, and I want to make it special for him.\n\nI woke up early this morning to go grocery shopping for the party. I picked up some cat treats, catnip, and his favorite canned food. I also got some decorations for the living room, where the party will be held. I bought some balloons, streamers, and a birthday hat for Tom. I hope he'll like it.\n"},Ne={path:re,content:"Dear Diary,\n\nI can't stop smiling as I write this entry because Tom's birthday party yesterday was a huge success! He absolutely loved it.\n\nI could tell that Tom loved wearing his birthday hat. He looked so adorable and happy, and he even posed for some pictures with his friends.\n\nOverall, it was a wonderful day, and I'm so glad I could make Tom's birthday special. Seeing him so happy and content was truly a gift to me. I'm already looking forward to next year's celebration!\n"},Ae={path:ae,content:"- Buy a small birthday cake and decorate it with tiny candles.\n- Get some balloons and decorations to create a festive atmosphere.\n- Invite a few of his closest mouse friends over and ask them to bring presents and treats.\n- Make sure his cage is clean and tidy for the party.\n- Prepare some special treats for him, such as cheese and fruits, that he doesn't get to eat very often.\n"},Me={path:oe,content:"Dear Diary,\n\nToday was my mouse's birthday and it was absolutely amazing! I had planned a surprise party for him, complete with a tiny birthday cake, balloons, and even a tiny party hat. He seemed to be so happy and excited when he saw everything!\n\nI invited a few of his closest mouse friends over, and they all brought presents and treats for him. We all sang \"Happy Birthday\" to him, and he looked so adorable blowing out the little candle on his cake. It was definitely the cutest thing I've ever seen. He was in mouse heaven!\n"},Le={path:ie,content:"https://www.youtube.com/@fsbbeats\nhttps://www.youtube.com/@donebeats\nhttps://www.youtube.com/@smigzbeats\nhttps://www.youtube.com/@SlipperyHaze\n"},Fe={path:se,content:he},Ie={path:le,content:he},Re={path:ue,content:he},Oe={path:ce,content:he},ze={path:de,content:he},Be={path:fe,content:"Hey, nice to meet you! Hope you can teach me some magic spells.\n"},Ue=z.filter((function(e){return e.length>1&&e!==x&&e!==g&&1===e.split("").filter((function(e){return"/"===e})).length})).map((function(e){return{path:"".concat(e,"/").concat("i-like-your-curiosity.txt"),content:"Cool that you are so curious and checking out this directory!\n\nThis is a system directory. On a real UNIX computer, it will contain a lot of files and folders that are used by the operating system. In this simulation, we've left them out for simplicity.\n"}})),We=[pe,me,ve,ge,ye,we,be,xe,ke,je,Se,Ce,Ee,_e,Te,Pe,De,Ne,Ae,Me,Le,Fe,Ie,Re,Oe,ze,Be].concat(p(Ue)),Ve={user:v,group:"staff",host:"terminal-tutor",shell:"shell",userHomeDir:S},He="https://www.terminaltutor.com",Ke="shell-tutorial",Ge=[],$e=["readFile","readdir","stat","lstat","readlink","du"],qe=function(e){return!e.startsWith("_")&&!$e.includes(e)},Qe=function(e){var t,n=e.promises,r=i(Object.keys(e.promises).filter(qe));try{var a=function(){var e=t.value,r=n[e];if("function"!==typeof r)return"continue";n[e]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=r.apply(this,t);return setTimeout((function(){return Ge.forEach((function(e){return e()}))}),0),a}};for(r.s();!(t=r.n()).done;)a()}catch(o){r.e(o)}finally{r.f()}},Ye=function(){var e=c(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promises.readdir("/");case 2:return e.t0=e.sent.length,e.abrupt("return",e.t0>0);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ze=function(){var e=c(l().mark((function e(t){var n,r,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(z),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=15;break}return a=r.value,e.prev=5,e.next=8,t.promises.mkdir(a);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error(e.t0,a);case 13:e.next=3;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(1),n.e(e.t1);case 20:return e.prev=20,n.f(),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,17,20,23],[5,10]])})));return function(t){return e.apply(this,arguments)}}(),Je=function(){var e=c(l().mark((function e(t){var n,r,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(We),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=15;break}return a=r.value,e.prev=5,e.next=8,t.promises.writeFile(a.path,a.content);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error(e.t0,JSON.stringify(a));case 13:e.next=3;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(1),n.e(e.t1);case 20:return e.prev=20,n.f(),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,17,20,23],[5,10]])})));return function(t){return e.apply(this,arguments)}}(),Xe=function(){var e=c(l().mark((function e(){var t,n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],n=new(f())(Ke,{wipe:t}),Qe(n),e.next=5,Ye(n);case 5:if(e.sent){e.next=10;break}return e.next=8,Ze(n);case 8:return e.next=10,Je(n);case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),et=n(5671),tt=n(3144);function nt(e,t){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nt(e,t)}function rt(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nt(e,t)}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function ot(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function it(e,t){if(t&&("object"===(0,s.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function st(e){var t=ot();return function(){var n,r=at(e);
2if(t){var a=at(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return it(this,n)}}function lt(e){if(Array.isArray(e))return e}function ut(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ct(e,t){return lt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}(e,t)||o(e,t)||ut()}var dt,ft=n(9142);function ht(e,t,n){return(t=(0,ft.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e,t,n){return pt=ot()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&nt(a,n.prototype),a},pt.apply(null,arguments)}function mt(e){var t="function"===typeof Map?new Map:void 0;return mt=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return pt(e,arguments,at(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),nt(r,e)},mt(e)}function vt(e){return lt(e)||h(e)||o(e)||ut()}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(dt||(dt={}));var yt,wt="popstate";function bt(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function xt(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function kt(e,t){return{usr:e.state,key:e.key,idx:t}}function jt(e,t,n,r){return void 0===n&&(n=null),gt({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?Ct(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function St(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function Ct(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Et(e,t,n,r){void 0===r&&(r={});var a=r,o=a.window,i=void 0===o?document.defaultView:o,s=a.v5Compat,l=void 0!==s&&s,u=i.history,c=dt.Pop,d=null,f=h();function h(){return(u.state||{idx:null}).idx}function p(){var e=dt.Pop,t=h();if(null!=t){var n=t-f;c=e,f=t,d&&d({action:c,location:v.location,delta:n})}else xt(!1,"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation.")}function m(e){var t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:St(e);return bt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,u.replaceState(gt({},u.state,{idx:f}),""));var v={get action(){return c},get location(){return e(i,u)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(wt,p),d=e,function(){i.removeEventListener(wt,p),d=null}},createHref:function(e){return t(i,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=dt.Push;var r=jt(v.location,e,t);n&&n(r,e);var a=kt(r,f=h()+1),o=v.createHref(r);try{u.pushState(a,"",o)}catch(s){i.location.assign(o)}l&&d&&d({action:c,location:v.location,delta:1})},replace:function(e,t){c=dt.Replace;var r=jt(v.location,e,t);n&&n(r,e);var a=kt(r,f=h()),o=v.createHref(r);u.replaceState(a,"",o),l&&d&&d({action:c,location:v.location,delta:0})},go:function(e){return u.go(e)}};return v}function _t(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=new Set),e.map((function(e,r){var a=[].concat(p(t),[r]),o="string"===typeof e.id?e.id:a.join("-");return bt(!0!==e.index||!e.children,"Cannot specify children on an index route"),bt(!n.has(o),'Found a route id collision on i
2d "'+o+"\".  Route id's must be globally unique within Data Router usages"),n.add(o),function(e){return!0===e.index}(e)?gt({},e,{id:o}):gt({},e,{id:o,children:e.children?_t(e.children,a,n):void 0})}))}function Tt(e,t,n){void 0===n&&(n="/");var r=Rt(("string"===typeof t?Ct(t):t).pathname||"/",n);if(null==r)return null;var a=Pt(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(a);for(var o=null,i=0;null==o&&i<a.length;++i)o=Lt(a[i],It(r));return o}function Pt(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var a=function(e,a,o){var i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(bt(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));var s=Wt([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(bt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),Pt(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Mt(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=i(Dt(e.path));try{for(o.s();!(r=o.n()).done;){var s=r.value;a(e,t,s)}}catch(l){o.e(l)}finally{o.f()}}else a(e,t)})),t}function Dt(e){var t=e.split("/");if(0===t.length)return[];var n=vt(t),r=n[0],a=n.slice(1),o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];var s=Dt(a.join("/")),l=[];return l.push.apply(l,p(s.map((function(e){return""===e?i:[i,e].join("/")})))),o&&l.push.apply(l,p(s)),l.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(yt||(yt={}));var Nt=/^:\w+$/,At=function(e){return"*"===e};function Mt(e,t){var n=e.split("/"),r=n.length;return n.some(At)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!At(e)})).reduce((function(e,t){return e+(Nt.test(t)?3:""===t?1:10)}),r)}function Lt(e,t){for(var n=e.routesMeta,r={},a="/",o=[],i=0;i<n.length;++i){var s=n[i],l=i===n.length-1,u="/"===a?t:t.slice(a.length)||"/",c=Ft({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;
2Object.assign(r,c.params);var d=s.route;o.push({params:r,pathname:Wt([a,c.pathname]),pathnameBase:Vt(Wt([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=Wt([a,c.pathnameBase]))}return o}function Ft(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);Ot("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");var o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),r=ct(n,2),a=r[0],o=r[1],i=t.match(a);if(!i)return null;var s=i[0],l=s.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:o.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return Ot(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u[n]||"",t),e}),{}),pathname:s,pathnameBase:l,pattern:e}}function It(e){try{return decodeURI(e)}catch(t){return Ot(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Rt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Ot(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function zt(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Bt(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function Ut(e,t,n,r){var a;void 0===r&&(r=!1),"string"===typeof e?a=Ct(e):(bt(!(a=gt({},e)).pathname||!a.pathname.includes("?"),zt("?","pathname","search",a)),bt(!a.pathname||!a.pathname.includes("#"),zt("#","pathname","hash",a)),bt(!a.search||!a.search.includes("#"),zt("#","search","hash",a)));var o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(r||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var u=s.split("/");".."===u[0];)u.shift(),l-=1;a.pathname=u.join("/")}o=l>=0?t[l]:"/"}var c=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?Ct(e):e,r=n.pathname,a=n.search,o=void 0===a?"":a,i=n.hash,s=void 0===i?"":i,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:Ht(o),hash:Kt(s)}}(a,o),d=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}var Wt=function(e){return e.join("/").replace(/\/\/+/g,"/")},Vt=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Ht=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Kt=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},Gt=function(e){rt(n,e);var t=st(n);function n(){return(0,et.Z)(this,n),t.apply(this,arguments)}return(0,tt.Z)(n)}(mt(Error)),$t=function(){function e(t,n){var r,a=this;(0,et.Z)(this,e),this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],bt(t&&"object"===typeof t&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise((function(e,t){return r=t})),this.controller=new AbortController;var o=function(){return r(new Gt("Deferred data aborted"))};this.unlistenAbortSignal=function(){return a.controller.signal.removeEventListener("abort",o)},this.controller.signal.addEventListener("abort",o),this.data=Object.entries(t).reduce((function(e,t){var n=ct(t,2),r=n[0],o=n[1];return Object.assign(e,ht({},r,a.trackPromise(r,o)))}),{}),this.init=n}return(0,tt.Z)(e,[{key:"trackPromise",value:function(e,t){var n=this;if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);var r=Promise.race([t,this.abortPromise]).then((function(t){return n.onSettle(r,e,null,t)}),(function(t){return n.onSettle(r,e,t)}));return r.catch((function(){})),Object.defineProperty(r,"_tracked",{get:function(){return!0}}),r}},{key:"onSettle",value:function(e,t,n,r){return this.controller.signal.aborted&&n instanceof Gt?(this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:function(){return n}}),Promise.reject(n)):(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),n?(Object.defineProperty(e,"_error",{get:function(){return n}}
2),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:function(){return r}}),this.emit(!1,t),r))}},{key:"emit",value:function(e,t){this.subscribers.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e){var t=this;return this.subscribers.add(e),function(){return t.subscribers.delete(e)}}},{key:"cancel",value:function(){var e=this;this.controller.abort(),this.pendingKeysSet.forEach((function(t,n){return e.pendingKeysSet.delete(n)})),this.emit(!0)}},{key:"resolveData",value:function(){var e=c(l().mark((function e(t){var n,r,a=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this.done){e.next=7;break}return r=function(){return a.cancel()},t.addEventListener("abort",r),e.next=6,new Promise((function(e){a.subscribe((function(n){t.removeEventListener("abort",r),(n||a.done)&&e(n)}))}));case 6:n=e.sent;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"done",get:function(){return 0===this.pendingKeysSet.size}},{key:"unwrappedData",get:function(){return bt(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((function(e,t){var n=ct(t,2),r=n[0],a=n[1];return Object.assign(e,ht({},r,function(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}(a)))}),{})}},{key:"pendingKeys",get:function(){return Array.from(this.pendingKeysSet)}}]),e}();var qt=(0,tt.Z)((function e(t,n,r,a){(0,et.Z)(this,e),void 0===a&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}));function Qt(e){return e instanceof qt}var Yt=["post","put","patch","delete"],Zt=new Set(Yt),Jt=["get"].concat(Yt),Xt=new Set(Jt),en=new Set([301,302,303,307,308]),tn=new Set([307,308]),nn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},rn={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},an={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},on="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,sn=!on;function ln(e){bt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");var t=_t(e.routes),n=null,r=new Set,a=null,o=null,s=null,u=null!=e.hydrationData,d=Tt(t,e.history.location,e.basename),f=null;if(null==d){var h=jn(404,{pathname:e.history.location.pathname}),m=kn(t);d=m.matches,f=ht({},m.route.id,h)}var v,g,y=!d.some((function(e){return e.route.loader}))||null!=e.hydrationData,w={historyAction:e.history.action,location:e.history.location,matches:d,initialized:y,navigation:nn,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},b=dt.Pop,x=!1,k=!1,j=!1,S=[],C=[],E=new Map,_=0,T=-1,P=new Map,D=new Set,N=new Map,A=new Map,M=null,L=new Map,F=!1;function I(e){w=gt({},w,e),r.forEach((function(e){return e(w)}))}function R(t,n){var r,a,o,s=null!=w.actionData&&null!=w.navigation.formMethod&&An(w.navigation.formMethod)&&"loading"===w.navigation.state&&!0!==(null==(r=t.state)?void 0:r._isRedirect);o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:s?w.actionData:null;var l,u=n.loaderData?bn(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=i(L);try{for(c.s();!(l=c.n()).done;){ie(ct(l.value,1)[0])}}catch(f){c.e(f)}finally{c.f()}var d=!0===x||null!=w.navigation.formMethod&&An(w.navigation.formMethod)&&!0!==(null==(a=t.state)?void 0:a._isRedirect);I(gt({},n,{actionData:o,loaderData:u,historyAction:b,location:t,initialized:!0,navigation:nn,revalidation:"idle",restoreScrollPosition:de(t,n.matches||w.matches),preventScrollReset:d,blockers:new Map(w.blockers)})),k||b===dt.Pop||(b===dt.Push?e.history.push(t,t.state):b===dt.Replace&&e.history.replace(t,t.state)),b=dt.Pop,x=!1,k=!1,j=!1,S=[],C=[]}function O(e,t){return z.apply(this,arguments)}function z(){return z=c(l().mark((function t(n,r){var a,o,i,s,u,c,d,f,h,p;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("number"!==typeof n){t.next=3;break}return e.history.go(n),t.abrupt("return");case 3:if(a=un(n,r),o=a.path,i=a.submission,s=a.error,u=w.location,c=gt({},c=jt(w.location,o,r&&r.state),e.history.encodeLocation(c)),d=r&&null!=r.replace?r.replace:void 0,f=dt.Push,!0===d?f=dt.Replace:!1===d||null!=i&&An(i.formMethod)&&i.formAction===w.location.pathname+w.location.search&&(f=dt.Replace),h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,!(p=le({currentLocation:u,nextLocation:c,historyAction:f}))){t.next=15;break}return se(p,{state:"blocked",location:c,proceed:function(){se(p,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),O(n,r)},reset:function(){ie(p),I({blockers:new Map(w.blockers)})}}),t.abrupt("return");case 15:return t.next=17,B(f,c,{submission:i,pendingError:s,preventScrollReset:h,replace:r&&r.replace});case 17:return t.abrupt("return",t.sent);case 18:case"end":return t.stop()}}),t)}))),z.apply(this,arguments)}function B(e,t,n){return U.apply(this,arguments)}function U(){return U=c(l().mark((function n(r,a,o){var i,s,u,c,d,f,h,p,m,v,y,j,S,C,E;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g&&g.abort(),g=null,b=r,k=!0===(o&&o.startUninterruptedRevalidation),ce(w.location,w.matches),x=!0===(o&&o.preventScrollReset),i=o&&o.overrideNavigation,s=Tt(t,a,e.basename)){n.next=14;break}return u=jn(404,{pathname:a.pathname}),c=kn(t),d=c.matches,f=c.route,ue(),R(a,{matches:d,loaderData:{},errors:ht({},f.id,u)}),n.abrupt("return");case 14:if(!En(w.location,a)){n.next=17;break}return R(a,{matches:s}),n.abrupt("return");
2case 17:if(g=new AbortController,h=vn(e.history,a,g.signal,o&&o.submission),!o||!o.pendingError){n.next=23;break}m=ht({},xn(s).route.id,o.pendingError),n.next=34;break;case 23:if(!(o&&o.submission&&An(o.submission.formMethod))){n.next=34;break}return n.next=26,W(h,a,o.submission,s,{replace:o.replace});case 26:if(!(v=n.sent).shortCircuited){n.next=29;break}return n.abrupt("return");case 29:p=v.pendingActionData,m=v.pendingActionError,y=gt({state:"loading",location:a},o.submission),i=y,h=new Request(h.url,{signal:h.signal});case 34:return n.next=36,H(h,a,s,i,o&&o.submission,o&&o.replace,p,m);case 36:if(j=n.sent,S=j.shortCircuited,C=j.loaderData,E=j.errors,!S){n.next=42;break}return n.abrupt("return");case 42:g=null,R(a,gt({matches:s},p?{actionData:p}:{},{loaderData:C,errors:E}));case 44:case"end":return n.stop()}}),n)}))),U.apply(this,arguments)}function W(e,t,n,r,a){return V.apply(this,arguments)}function V(){return V=c(l().mark((function e(t,n,r,a,o){var i,s,u,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(X(),I({navigation:gt({state:"submitting",location:n},r)}),(s=zn(a,n)).route.action){e.next=8;break}i={type:yt.error,error:jn(405,{method:t.method,pathname:n.pathname,routeId:s.route.id})},e.next=13;break;case 8:return e.next=10,pn("action",t,s,a,v.basename);case 10:if(i=e.sent,!t.signal.aborted){e.next=13;break}return e.abrupt("return",{shortCircuited:!0});case 13:if(!Pn(i)){e.next=18;break}return u=o&&null!=o.replace?o.replace:i.location===w.location.pathname+w.location.search,e.next=17,Q(w,i,{submission:r,replace:u});case 17:return e.abrupt("return",{shortCircuited:!0});case 18:if(!Tn(i)){e.next=22;break}return c=xn(a,s.route.id),!0!==(o&&o.replace)&&(b=dt.Push),e.abrupt("return",{pendingActionData:{},pendingActionError:ht({},c.route.id,i.error)});case 22:if(!_n(i)){e.next=24;break}throw jn(400,{type:"defer-action"});case 24:return e.abrupt("return",{pendingActionData:ht({},s.route.id,i.data)});case 25:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function H(e,t,n,r,a,o,i,s){return K.apply(this,arguments)}function K(){return K=c(l().mark((function t(n,r,a,o,i,s,u,c){var d,f,h,p,m,v,y,b,x,P,D,M,L,F,O,z,B;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((d=o)||(f=gt({state:"loading",location:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},i),d=f),h=i||(d.formMethod&&d.formAction&&d.formData&&d.formEncType?{formMethod:d.formMethod,formAction:d.formAction,formData:d.formData,formEncType:d.formEncType}:void 0),p=dn(e.history,w,a,h,r,j,S,C,u,c,N),m=ct(p,2),v=m[0],y=m[1],ue((function(e){return!(a&&a.some((function(t){return t.route.id===e})))||v&&v.some((function(t){return t.route.id===e}))})),0!==v.length||0!==y.length){t.next=8;break}return R(r,gt({matches:a,loaderData:{},errors:c||null},u?{actionData:u}:{})),t.abrupt("return",{shortCircuited:!0});case 8:return k||(y.forEach((function(e){var t=ct(e,1)[0],n=w.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};w.fetchers.set(t,r)})),b=u||w.actionData,I(gt({navigation:d},b?0===Object.keys(b).length?{actionData:null}:{actionData:b}:{},y.length>0?{fetchers:new Map(w.fetchers)}:{}))),T=++_,y.forEach((function(e){var t=ct(e,1)[0];return E.set(t,g)})),t.next=13,Z(w.matches,a,v,y,n);case 13:if(x=t.sent,P=x.results,D=x.loaderResults,M=x.fetcherResults,!n.signal.aborted){t.next=19;break}return t.abrupt("return",{shortCircuited:!0});case 19:if(y.forEach((function(e){var t=ct(e,1)[0];return E.delete(t)})),!(L=Sn(P))){t.next=25;break}return t.next=24,Q(w,L,{replace:s});case 24:return t.abrupt("return",{shortCircuited:!0});case 25:return F=wn(w,a,v,D,c,y,M,A),O=F.loaderData,z=F.errors,A.forEach((function(e,t){e.subscribe((function(n){(n||e.done)&&A.delete(t)}))})),ae(),B=oe(T),t.abrupt("return",gt({loaderData:O,errors:z},B||y.length>0?{fetchers:new Map(w.fetchers)}:{}));case 30:case"end":return t.stop()}}),t)}))),K.apply(this,arguments)}function G(e){return w.fetchers.get(e)||rn}function $(){return $=c(l().mark((function n(r,a,o,i,s,u){var c,d,f,h,p,m,y,x,k,M,L,F,O,z,B,U,W,V,H,K,G,$,q,Y,J,te;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(X(),N.delete(r),i.route.action){n.next=6;break}return c=jn(405,{method:u.formMethod,pathname:o,routeId:a}),ee(r,a,c),n.abrupt("return");case 6:return d=w.fetchers.get(r),f=gt({state:"submitting"},u,{data:d&&d.data," _hasFetcherDoneAnything ":!0}),w.fetchers.set(r,f),I({fetchers:new Map(w.fetchers)}),h=new AbortController,p=vn(e.history,o,h.signal,u),E.set(r,h),n.next=15,pn("action",p,i,s,v.basename);case 15:if(m=n.sent,!p.signal.aborted){n.next=19;break}return E.get(r)===h&&E.delete(r),n.abrupt("return");case 19:if(!Pn(m)){n.next=26;break}return E.delete(r),D.add(r),y=gt({state:"loading"},u,{data:void 0," _hasFetcherDoneAnything ":!0}),w.fetchers.set(r,y),I({fetchers:new Map(w.fetchers)}),n.abrupt("return",Q(w,m,{isFetchActionRedirect:!0}));case 26:if(!Tn(m)){n.next=29;break}return ee(r,a,m.error),n.abrupt("return");case 29:if(!_n(m)){n.next=31;break}throw jn(400,{type:"defer-action"});case 31:return x=w.navigation.location||w.location,k=vn(e.history,x,h.signal),bt(M="idle"!==w.navigation.state?Tt(t,
2w.navigation.location,e.basename):w.matches,"Didn't find any matches after fetcher action"),L=++_,P.set(r,L),F=gt({state:"loading",data:m.data},u,{" _hasFetcherDoneAnything ":!0}),w.fetchers.set(r,F),O=dn(e.history,w,M,u,x,j,S,C,ht({},i.route.id,m.data),void 0,N),z=ct(O,2),B=z[0],(U=z[1]).filter((function(e){return ct(e,1)[0]!==r})).forEach((function(e){var t=ct(e,1)[0],n=w.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};w.fetchers.set(t,r),E.set(t,h)})),I({fetchers:new Map(w.fetchers)}),n.next=44,Z(w.matches,M,B,U,k);case 44:if(W=n.sent,V=W.results,H=W.loaderResults,K=W.fetcherResults,!h.signal.aborted){n.next=50;break}return n.abrupt("return");case 50:if(P.delete(r),E.delete(r),U.forEach((function(e){var t=ct(e,1)[0];return E.delete(t)})),!(G=Sn(V))){n.next=56;break}return n.abrupt("return",Q(w,G));case 56:$=wn(w,w.matches,B,H,void 0,U,K,A),q=$.loaderData,Y=$.errors,J={state:"idle",data:m.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0},w.fetchers.set(r,J),te=oe(L),"loading"===w.navigation.state&&L>T?(bt(b,"Expected pending action"),g&&g.abort(),R(w.navigation.location,{matches:M,loaderData:q,errors:Y,fetchers:new Map(w.fetchers)})):(I(gt({errors:Y,loaderData:bn(w.loaderData,q,M,Y)},te?{fetchers:new Map(w.fetchers)}:{})),j=!1);case 61:case"end":return n.stop()}}),n)}))),$.apply(this,arguments)}function q(){return q=c(l().mark((function t(n,r,a,o,i,s){var u,c,d,f,h,p,m;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=w.fetchers.get(n),c=gt({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},s,{data:u&&u.data," _hasFetcherDoneAnything ":!0}),w.fetchers.set(n,c),I({fetchers:new Map(w.fetchers)}),d=new AbortController,f=vn(e.history,a,d.signal),E.set(n,d),t.next=9,pn("loader",f,o,i,v.basename);case 9:if(!_n(h=t.sent)){t.next=17;break}return t.next=13,Fn(h,f.signal,!0);case 13:if(t.t0=t.sent,t.t0){t.next=16;break}t.t0=h;case 16:h=t.t0;case 17:if(E.get(n)===d&&E.delete(n),!f.signal.aborted){t.next=20;break}return t.abrupt("return");case 20:if(!Pn(h)){t.next=24;break}return t.next=23,Q(w,h);case 23:return t.abrupt("return");case 24:if(!Tn(h)){t.next=29;break}return p=xn(w.matches,r),w.fetchers.delete(n),I({fetchers:new Map(w.fetchers),errors:ht({},p.route.id,h.error)}),t.abrupt("return");case 29:bt(!_n(h),"Unhandled fetcher deferred data"),m={state:"idle",data:h.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0},w.fetchers.set(n,m),I({fetchers:new Map(w.fetchers)});case 33:case"end":return t.stop()}}),t)}))),q.apply(this,arguments)}function Q(e,t,n){return Y.apply(this,arguments)}function Y(){return Y=c(l().mark((function t(n,r,a){var o,i,s,u,c,d,f,h,p,m,v,y,w;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=(i=void 0===a?{}:a).submission,u=i.replace,c=i.isFetchActionRedirect,r.revalidate&&(j=!0),bt(d=jt(n.location,r.location,gt({_isRedirect:!0},c?{_isFetchActionRedirect:!0}:{})),"Expected a location on the redirect navigation"),!on||"undefined"===typeof(null==(o=window)?void 0:o.location)){t.next=9;break}if(f=e.history.createURL(r.location).origin,window.location.origin===f){t.next=9;break}return u?window.location.replace(r.location):window.location.assign(r.location),t.abrupt("return");case 9:if(g=null,h=!0===u?dt.Replace:dt.Push,p=n.navigation,m=p.formMethod,v=p.formAction,y=p.formEncType,w=p.formData,!s&&m&&v&&w&&y&&(s={formMethod:m,formAction:v,formEncType:y,formData:w}),!(tn.has(r.status)&&s&&An(s.formMethod))){t.next=18;break}return t.next=16,B(h,d,{submission:gt({},s,{formAction:r.location}),preventScrollReset:x});case 16:t.next=20;break;case 18:return t.next=20,B(h,d,{overrideNavigation:{state:"loading",location:d,formMethod:s?s.formMethod:void 0,formAction:s?s.formAction:void 0,formEncType:s?s.formEncType:void 0,formData:s?s.formData:void 0},preventScrollReset:x});case 20:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function Z(e,t,n,r,a){return J.apply(this,arguments)}function J(){return J=c(l().mark((function t(n,r,a,o,i){var s,u,c;return l().wrap((function(t){for(;;
2)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([].concat(p(a.map((function(e){return pn("loader",i,e,r,v.basename)}))),p(o.map((function(t){var n=ct(t,4),r=n[1],a=n[2],o=n[3];return pn("loader",vn(e.history,r,i.signal),a,o,v.basename)})))));case 2:return s=t.sent,u=s.slice(0,a.length),c=s.slice(a.length),t.next=7,Promise.all([Mn(n,a,u,i.signal,!1,w.loaderData),Mn(n,o.map((function(e){return ct(e,3)[2]})),c,i.signal,!0)]);case 7:return t.abrupt("return",{results:s,loaderResults:u,fetcherResults:c});case 8:case"end":return t.stop()}}),t)}))),J.apply(this,arguments)}function X(){var e;j=!0,(e=S).push.apply(e,p(ue())),N.forEach((function(e,t){E.has(t)&&(C.push(t),ne(t))}))}function ee(e,t,n){var r=xn(w.matches,t);te(e),I({errors:ht({},r.route.id,n),fetchers:new Map(w.fetchers)})}function te(e){E.has(e)&&ne(e),N.delete(e),P.delete(e),D.delete(e),w.fetchers.delete(e)}function ne(e){var t=E.get(e);bt(t,"Expected fetch controller: "+e),t.abort(),E.delete(e)}function re(e){var t,n=i(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,a={state:"idle",data:G(r).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};w.fetchers.set(r,a)}}catch(o){n.e(o)}finally{n.f()}}function ae(){var e,t=[],n=i(D);try{for(n.s();!(e=n.n()).done;){var r=e.value,a=w.fetchers.get(r);bt(a,"Expected fetcher: "+r),"loading"===a.state&&(D.delete(r),t.push(r))}}catch(o){n.e(o)}finally{n.f()}re(t)}function oe(e){var t,n=[],r=i(P);try{for(r.s();!(t=r.n()).done;){var a=ct(t.value,2),o=a[0];if(a[1]<e){var s=w.fetchers.get(o);bt(s,"Expected fetcher: "+o),"loading"===s.state&&(ne(o),P.delete(o),n.push(o))}}}catch(l){r.e(l)}finally{r.f()}return re(n),n.length>0}function ie(e){w.blockers.delete(e),L.delete(e),M===e&&(M=null)}function se(e,t){var n=w.blockers.get(e)||an;bt("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state),w.blockers.set(e,t),I({blockers:new Map(w.blockers)})}function le(e){var t=e.currentLocation,n=e.nextLocation,r=e.historyAction;if(null!=M){var a=L.get(M);bt(a,"Could not find a function for the active blocker");var o=w.blockers.get(M);if(!o||"proceeding"!==o.state)return a({currentLocation:t,nextLocation:n,historyAction:r})?M:void 0}}function ue(e){var t=[];return A.forEach((function(n,r){e&&!e(r)||(n.cancel(),t.push(r),A.delete(r))})),t}function ce(e,t){if(a&&o&&s){var n=t.map((function(e){return On(e,w.loaderData)})),r=o(e,n)||e.key;a[r]=s()}}function de(e,t){if(a&&o&&s){var n=t.map((function(e){return On(e,w.loaderData)})),r=o(e,n)||e.key,i=a[r];if("number"===typeof i)return i}return null}return v={get basename(){return e.basename},get state(){return w},get routes(){return t},initialize:function(){return n=e.history.listen((function(t){var n=t.action,r=t.location,a=t.delta;if(!F){var o=le({currentLocation:w.location,nextLocation:r,historyAction:n});return o?(F=!0,e.history.go(-1*a),void se(o,{state:"blocked",location:r,proceed:function(){se(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset:function(){ie(o),I({blockers:new Map(v.state.blockers)})}})):B(n,r)}F=!1})),w.initialized||B(dt.Pop,w.location),v},subscribe:function(e){return r.add(e),function(){return r.delete(e)}},enableScrollRestoration:function(e,t,n){if(a=e,s=t,o=n||function(e){return e.key},!u&&w.navigation===nn){u=!0;var r=de(w.location,w.matches);null!=r&&I({restoreScrollPosition:r})}return function(){a=null,s=null,o=null}},navigate:O,fetch:function(n,r,a,o){if(sn)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");E.has(n)&&ne(n);var i=Tt(t,a,e.basename);if(i){var s=un(a,o,!0),l=s.path,u=s.submission,c=zn(i,l);u&&An(u.formMethod)?function(e,t,n,r,a,o){$.apply(this,arguments)}(n,r,l,c,i,u):(N.set(n,[l,c,i]),function(e,t,n,r,a,o){q.apply(this,arguments)}(n,r,l,c,i,u))}else ee(n,r,jn(404,{pathname:a}))},revalidate:function(){X(),I({revalidation:"loading"}),"submitting"!==w.navigation.state&&("idle"!==w.navigation.state?B(b||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation}):B(w.historyAction,w.location,{startUninterruptedRevalidation:!0}
2))},createHref:function(t){return e.history.createHref(t)},encodeLocation:function(t){return e.history.encodeLocation(t)},getFetcher:G,deleteFetcher:te,dispose:function(){n&&n(),r.clear(),g&&g.abort(),w.fetchers.forEach((function(e,t){return te(t)})),w.blockers.forEach((function(e,t){return ie(t)}))},getBlocker:function(e,t){var n=w.blockers.get(e)||an;return L.get(e)!==t&&(L.set(e,t),null==M?M=e:e!==M&&Ot(!1,"A router only supports one blocker at a time")),n},deleteBlocker:ie,_internalFetchControllers:E,_internalActiveDeferreds:A},v}Symbol("deferred");function un(e,t,n){void 0===n&&(n=!1);var r,a="string"===typeof e?e:St(e);if(!t||!function(e){return null!=e&&"formData"in e}(t))return{path:a};if(t.formMethod&&!Nn(t.formMethod))return{path:a,error:jn(405,{method:t.formMethod})};if(t.formData&&An((r={formMethod:t.formMethod||"get",formAction:Cn(a),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData}).formMethod))return{path:a,submission:r};var o=Ct(a);try{var i=gn(t.formData);n&&o.search&&Rn(o.search)&&i.append("index",""),o.search="?"+i}catch(s){return{path:a,error:jn(400)}}return{path:St(o),submission:r}}function cn(e,t){var n=e;if(t){var r=e.findIndex((function(e){return e.route.id===t}));r>=0&&(n=e.slice(0,r))}return n}function dn(e,t,n,r,a,o,i,s,l,u,c){var d=u?Object.values(u)[0]:l?Object.values(l)[0]:void 0,f=cn(n,u?Object.keys(u)[0]:void 0).filter((function(n,s){return null!=n.route.loader&&(function(e,t,n){var r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[s],n)||i.some((function(e){return e===n.route.id}))||hn(e,t.location,t.matches[s],r,a,n,o,d))})),h=[];return c&&c.forEach((function(t,n){var a=ct(t,3),i=a[0],l=a[1],u=a[2];if(s.includes(n))h.push([n,i,l,u]);else if(o){hn(e,i,l,r,i,l,o,d)&&h.push([n,i,l,u])}})),[f,h]}function fn(e,t){var n=e.route.path;return e.pathname!==t.pathname||n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function hn(e,t,n,r,a,o,i,s){var l=e.createURL(t),u=n.params,c=e.createURL(a),d=o.params,f=fn(n,o)||l.toString()===c.toString()||l.search!==c.search||i;if(o.route.shouldRevalidate){var h=o.route.shouldRevalidate(gt({currentUrl:l,currentParams:u,nextUrl:c,nextParams:d},r,{actionResult:s,defaultShouldRevalidate:f}));if("boolean"===typeof h)return h}return f}function pn(e,t,n,r,a,o,i,s){return mn.apply(this,arguments)}function mn(){return mn=c(l().mark((function e(t,n,r,a,o,i,s,u){var c,d,f,h,p,m,v,g,y,w,b,x,k,j,S,C;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===o&&(o="/"),void 0===i&&(i=!1),void 0===s&&(s=!1),h=new Promise((function(e,t){return f=t})),p=function(){return f()},n.signal.addEventListener("abort",p),e.prev=6,bt(m=r.route[t],"Could not find the "+t+' to run on the "'+r.route.id+'" route'),e.next=11,Promise.race([m({request:n,params:r.params,context:u}),h]);case 11:bt(void 0!==(d=e.sent),"You defined "+("action"===t?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+t+"` function. Please return a value or `null`."),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(6),c=yt.error,d=e.t0;case 19:return e.prev=19,n.signal.removeEventListener("abort",p),e.finish(19);case 22:if(!Dn(d)){e.next=48;break}if(v=d.status,!en.has(v)){e.next=33;break}if(bt(g=d.headers.get("Location"),"Redirects returned/thrown from loaders/actions must have a Location header"),/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(g)?i||(k=new URL(n.url),(j=g.startsWith("//")?new URL(k.protocol+g):new URL(g)).origin===k.origin&&(g=j.pathname+j.search+j.hash)):(y=a.slice(0,a.indexOf(r)+1),w=Bt(y).map((function(e){return e.pathnameBase})),bt(St(b=Ut(g,w,new URL(n.url).pathname)),"Unable to resolve redirect location: "+g),o&&(x=b.pathname,b.pathname="/"===x?o:Wt([o,x])),g=St(b)),!i){e.next=32;break}throw d.headers.set("Location",g),d;case 32:return e.abrupt("return",{type:yt.redirect,status:v,location:g,revalidate:null!==d.headers.get("X-Remix-Revalidate")});case 33:if(!s){e.next=35;break}throw{type:c||yt.data,response:d};case 35:if(!(C=d.headers.get("Content-Type"))||!/\bapplication\/json\b/.test(C)){e.next=42;break}return e.next=39,d.json();case 39:S=e.sent,e.next=45;break;case 42:return e.next=44,d.text();case 44:S=e.sent;case 45:if(c!==yt.error){e.next=47;break}return e.abrupt("return",{type:c,error:new qt(v,d.statusText,S),headers:d.headers});case 47:return e.abrupt("return",{type:yt.data,data:S,statusCode:d.status,headers:d.headers});case 48:if(c!==yt.error){e.next=50;break}return e.abrupt("return",{type:c,error:d});case 50:if(!(d instanceof $t)){e.next=52;break}return e.abrupt("return",{type:yt.deferred,deferredData:d});case 52:return e.abrupt("return",{type:yt.data,data:d});case 53:case"end":return e.stop()}}),e,null,[[6,15,19,22]])}))),mn.apply(this,arguments)}function vn(e,t,n,r){var a=e.createURL(Cn(t)).toString(),o={signal:n};if(r&&An(r.formMethod)){var i=r.formMethod,s=r.formEncType,l=r.formData;o.method=i.toUpperCase(),o.body="application/x-www-form-urlencoded"===s?gn(l):l}
2return new Request(a,o)}function gn(e){var t,n=new URLSearchParams,r=i(e.entries());try{for(r.s();!(t=r.n()).done;){var a=ct(t.value,2),o=a[0],s=a[1];bt("string"===typeof s,'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),n.append(o,s)}}catch(l){r.e(l)}finally{r.f()}return n}function yn(e,t,n,r,a){var o,i={},s=null,l=!1,u={};return n.forEach((function(n,c){var d=t[c].route.id;if(bt(!Pn(n),"Cannot handle redirect results in processLoaderData"),Tn(n)){var f=xn(e,d),h=n.error;r&&(h=Object.values(r)[0],r=void 0),null==(s=s||{})[f.route.id]&&(s[f.route.id]=h),i[d]=void 0,l||(l=!0,o=Qt(n.error)?n.error.status:500),n.headers&&(u[d]=n.headers)}else _n(n)?(a.set(d,n.deferredData),i[d]=n.deferredData.data):i[d]=n.data,null==n.statusCode||200===n.statusCode||l||(o=n.statusCode),n.headers&&(u[d]=n.headers)})),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}function wn(e,t,n,r,a,o,i,s){for(var l=yn(t,n,r,a,s),u=l.loaderData,c=l.errors,d=0;d<o.length;d++){var f=ct(o[d],3),h=f[0],p=f[2];bt(void 0!==i&&void 0!==i[d],"Did not find corresponding fetcher result");var m=i[d];if(Tn(m)){var v=xn(e.matches,p.route.id);c&&c[v.route.id]||(c=gt({},c,ht({},v.route.id,m.error))),e.fetchers.delete(h)}else if(Pn(m))bt(!1,"Unhandled fetcher revalidation redirect");else if(_n(m))bt(!1,"Unhandled fetcher deferred data");else{var g={state:"idle",data:m.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(h,g)}}return{loaderData:u,errors:c}}function bn(e,t,n,r){var a,o=gt({},t),s=i(n);try{for(s.s();!(a=s.n()).done;){var l=a.value.route.id;if(t.hasOwnProperty(l)?void 0!==t[l]&&(o[l]=t[l]):void 0!==e[l]&&(o[l]=e[l]),r&&r.hasOwnProperty(l))break}}catch(u){s.e(u)}finally{s.f()}return o}function xn(e,t){return(t?e.slice(0,e.findIndex((function(e){return e.route.id===t}))+1):p(e)).reverse().find((function(e){return!0===e.route.hasErrorBoundary}))||e[0]}function kn(e){var t=e.find((function(e){return e.index||!e.path||"/"===e.path}))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function jn(e,t){var n=void 0===t?{}:t,r=n.pathname,a=n.routeId,o=n.method,i=n.type,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",l=o&&r&&a?"You made a "+o+' request to "'+r+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===i?"defer() is not supported in actions":"Cannot submit binary form data using GET"):403===e?(s="Forbidden",l='Route "'+a+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",o&&r&&a?l="You made a "+o.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new qt(e||500,s,new Error(l),!0)}function Sn(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if(Pn(n))return n}}function Cn(e){return St(gt({},"string"===typeof e?Ct(e):e,{hash:""}))}function En(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function _n(e){return e.type===yt.deferred}function Tn(e){return e.type===yt.error}function Pn(e){return(e&&e.type)===yt.redirect}function Dn(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function Nn(e){return Xt.has(e)}function An(e){return Zt.has(e)}function Mn(e,t,n,r,a,o){return Ln.apply(this,arguments)}function Ln(){return(Ln=c(l().mark((function e(t,n,r,a,o,i){var s,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=l().mark((function e(s){var u,c,d,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=r[s],c=n[s],d=t.find((function(e){return e.route.id===c.route.id})),f=null!=d&&!fn(d,c)&&void 0!==(i&&i[c.route.id]),!_n(u)||!o&&!f){e.next=7;break}return e.next=7,Fn(u,a,o).then((function(e){e&&(r[s]=e||r[s])}));case 7:case"end":return e.stop()}}),e)})),u=0;case 2:if(!(u<r.length)){e.next=7;break}return e.delegateYield(s(u),"t0",4);case 4:u++,e.next=2;break;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fn(e,t,n){return In.apply(this,arguments)}function In(){return(In=c(l().mark((function e(t,n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=!1),e.next=3,t.deferredData.resolveData(n);case 3:if(!e.sent){e.next=6;break}return e.abrupt("return");case 6:if(!r){e.next=14;break}return e.prev=7,e.abrupt("return",{type:yt.data,data:t.deferredData.unwrappedData}
2);case 11:return e.prev=11,e.t0=e.catch(7),e.abrupt("return",{type:yt.error,error:e.t0});case 14:return e.abrupt("return",{type:yt.data,data:t.deferredData.data});case 15:case"end":return e.stop()}}),e,null,[[7,11]])})))).apply(this,arguments)}function Rn(e){return new URLSearchParams(e).getAll("index").some((function(e){return""===e}))}function On(e,t){var n=e.route,r=e.pathname,a=e.params;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function zn(e,t){var n="string"===typeof t?Ct(t).search:t.search;if(e[e.length-1].route.index&&Rn(n||""))return e[e.length-1];var r=Bt(e);return r[r.length-1]}function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(this,arguments)}var Un="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Wn=t.useState,Vn=t.useEffect,Hn=t.useLayoutEffect,Kn=t.useDebugValue;function Gn(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Un(n,r)}catch(a){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement;var $n=r.useSyncExternalStore,qn=t.createContext(null);var Qn=t.createContext(null);var Yn=t.createContext(null);var Zn=t.createContext(null);var Jn=t.createContext(null);var Xn=t.createContext({outlet:null,matches:[]});var er=t.createContext(null);function tr(){return null!=t.useContext(Jn)}function nr(){return tr()||bt(!1),t.useContext(Jn).location}function rr(){tr()||bt(!1);var e=t.useContext(Zn),n=e.basename,r=e.navigator,a=t.useContext(Xn).matches,o=nr().pathname,i=JSON.stringify(Bt(a).map((function(e){return e.pathnameBase}))),s=t.useRef(!1);t.useEffect((function(){s.current=!0}));var l=t.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!==typeof e){var a=Ut(e,JSON.parse(i),o,"path"===t.relative);"/"!==n&&(a.pathname="/"===a.pathname?n:Wt([n,a.pathname])),(t.replace?r.replace:r.push)(a,t.state,t)}else r.go(e)}),[n,r,i,o]);return l}var ar=t.createContext(null);function or(){return t.useContext(ar)}function ir(e,n){var r=(void 0===n?{}:n).relative,a=t.useContext(Xn).matches,o=nr().pathname,i=JSON.stringify(Bt(a).map((function(e){return e.pathnameBase})));return t.useMemo((function(){return Ut(e,JSON.parse(i),o,"path"===r)}),[e,i,o,r])}function sr(){var e=function(){var e,n=t.useContext(er),r=hr(ur.UseRouteError),a=pr(ur.UseRouteError);if(n)return n;return null==(e=r.errors)?void 0:e[a]}(),n=Qt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unhandled Thrown Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,t.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),t.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",t.createElement("code",{style:i},"errorElement")," props on\xa0",t.createElement("code",{style:i},"<Route>")))}var lr,ur,cr=function(e){rt(r,e);var n=st(r);function r(e){var t;return(0,et.Z)(this,r),(t=n.call(this,e)).state={location:e.location,error:e.error},t}return(0,tt.Z)(r,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?t.createElement(Xn.Provider,{value:this.props.routeContext},t.createElement(er.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),r}(t.Component);function dr(e){var n=e.routeContext,r=e.match,a=e.children,o=t.useContext(qn);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(Xn.Provider,{value:n},a)}function fr(e,n,r){if(void 0===n&&(n=[]),null==e){if(null==r||!r.errors)return null;e=r.matches}var a=e,o=null==r?void 0:r.errors;if(null!=o){var i=a.findIndex((function(e){return e.route.id&&(null==o?void 0:o[e.route.id])}));i>=0||bt(!1),a=a.slice(0,Math.min(a.length,i+1))}return a.reduceRight((function(e,i,s){var l=i.route.id?null==o?void 0:o[i.route.id]:null,u=r?i.route.errorElement||t.createElement(sr,null):null,c=n.concat(a.slice(0,s+1)),d=function(){return t.createElement(dr,{match:i,routeContext:{outlet:e,matches:c}},l?u:void 0!==i.route.element?i.route.element:e)};return r&&(i.route.errorElement||0===s)?t.createElement(cr,{location:r.location,component:u,error:l,children:d(),routeC
2ontext:{outlet:null,matches:c}}):d()}),null)}function hr(e){var n=t.useContext(Qn);return n||bt(!1),n}function pr(e){var n=function(e){var n=t.useContext(Xn);return n||bt(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||bt(!1),r.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(lr||(lr={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(ur||(ur={}));var mr;function vr(e){var n=e.fallbackElement,r=e.router,a=$n(r.subscribe,(function(){return r.state}),(function(){return r.state})),o=t.useMemo((function(){return{createHref:r.createHref,encodeLocation:r.encodeLocation,go:function(e){return r.navigate(e)},push:function(e,t,n){return r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})},replace:function(e,t,n){return r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}}}),[r]),i=r.basename||"/";return t.createElement(t.Fragment,null,t.createElement(qn.Provider,{value:{router:r,navigator:o,static:!1,basename:i}},t.createElement(Qn.Provider,{value:a},t.createElement(br,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:o},r.state.initialized?t.createElement(xr,null):n))),null)}function gr(e){var n=e.to,r=e.replace,a=e.state,o=e.relative;tr()||bt(!1);var i=t.useContext(Qn),s=rr();return t.useEffect((function(){i&&"idle"!==i.navigation.state||s(n,{replace:r,state:a,relative:o})})),null}function yr(e){return function(e){var n=t.useContext(Xn).outlet;return n?t.createElement(ar.Provider,{value:e},n):n}(e.context)}function wr(e){bt(!1)}function br(e){var n=e.basename,r=void 0===n?"/":n,a=e.children,o=void 0===a?null:a,i=e.location,s=e.navigationType,l=void 0===s?dt.Pop:s,u=e.navigator,c=e.static,d=void 0!==c&&c;tr()&&bt(!1);var f=r.replace(/^\/*/,"/"),h=t.useMemo((function(){return{basename:f,navigator:u,static:d}}),[f,u,d]);"string"===typeof i&&(i=Ct(i));var p=i,m=p.pathname,v=void 0===m?"/":m,g=p.search,y=void 0===g?"":g,w=p.hash,b=void 0===w?"":w,x=p.state,k=void 0===x?null:x,j=p.key,S=void 0===j?"default":j,C=t.useMemo((function(){var e=Rt(v,f);return null==e?null:{pathname:e,search:y,hash:b,state:k,key:S}}),[f,v,y,b,k,S]);return null==C?null:t.createElement(Zn.Provider,{value:h},t.createElement(Jn.Provider,{children:o,value:{location:C,navigationType:l}}))}function xr(e){var n=e.children,r=e.location,a=t.useContext(qn);return function(e,n){tr()||bt(!1);var r,a=t.useContext(Zn).navigator,o=t.useContext(Qn),i=t.useContext(Xn).matches,s=i[i.length-1],l=s?s.params:{},u=(s&&s.pathname,s?s.pathnameBase:"/"),c=(s&&s.route,nr());if(n){var d,f="string"===typeof n?Ct(n):n;"/"===u||(null==(d=f.pathname)?void 0:d.startsWith(u))||bt(!1),r=f}else r=c;var h=r.pathname||"/",p=Tt(e,{pathname:"/"===u?h:h.slice(u.length)||"/"}),m=fr(p&&p.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Wt([u,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Wt([u,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),i,o||void 0);return n&&m?t.createElement(Jn.Provider,{value:{location:Bn({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:dt.Pop}},m):m}(a&&!n?a.router.routes:jr(n),r)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(mr||(mr={}));var kr=new Promise((function(){}));t.Component;function jr(e,n){void 0===n&&(n=[]);var r=[];return t.Children.forEach(e,(function(e,a){if(t.isValidElement(e))if(e.type!==t.Fragment){e.type!==wr&&bt(!1),e.props.index&&e.props.children&&bt(!1);var o=[].concat(p(n),[a]),i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(i.children=jr(e.props.children,o)),r.push(i)}else r.push.apply(r,jr(e.props.children,n))})),r}function Sr(e){return e.map((function(e){var t=Bn({},e);return null==t.hasErrorBoundary&&(t.hasErrorBoundary=null!=t.errorElement),t.children&&(t.children=Sr(t.children)),t}))}var Cr=n(7076),Er=function(e){var t=e.router;return(0,Cr.jsx)(vr,{router:t})};function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?_r(Object(n),!0).forEach((function(t){ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pr.apply(this,arguments)}function Dr(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var Nr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Ar(){var e,t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Pr({},t,{errors:Mr(t.errors)})),t}function Mr(e){if(!e)return null;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var a=ct(r[n],2),o=a[0],i=a[1];if(i&&"RouteErrorResponse"===i.__type)t[o]=new qt(i.status,i.statusText,i.data,!0===i.internal);else if(i&&"Error"===i.__type){var s=new Error(i.message);s.stack="",t[o]=s}else t[o]=i}return t}var Lr=t.forwardRef((function(e,n){var r=e.onClick,a=e.relative,o=e.reloadDocument,i=e.replace,s=e.state,l=e.target,u=e.to,c=e.preventScrollReset,d=Dr(e,Nr),f=function(e,n){var r=(void 0===n?{}:n).relative;tr()||bt(!1);var a=t.useContext(Zn),o=a.basename,i=a.navigator,s=ir(e,{relative:r}),l=s.hash,u=s.pathname,c=s.search,d=u;return"/"!==o&&(d="/"===u?o:Wt([o,u])),i.createHref({pathname:d,search:c,hash:l})}(u,{relative:a}),h=function(e,n){var r=void 0===n?{}:n,a=r.target,o=r.replace,i=r.state,s=r.preventScrollReset,l=r.relative,u=rr(),c=nr(),d=ir(e,{relative:l});return t.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,a)){t.preventDefault();var n=void 0!==o?o:St(c)===St(d);u(e,{replace:n,state:i,preventScrollReset:s,relative:l})}}),[c,u,d,o,i,a,e,s,l])}(u,{replace:i,state:s,target:l,preventScrollReset:c,relative:a});return t.createElement("a",Pr({},d,{href:f,onClick:o?r:function(e){r&&r(e),e.defaultPrevented||h(e)},ref:n,target:l}))}));var Fr,Ir;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Fr||(Fr={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ir||(Ir={}));var Rr,Or=function(e){for(var t=[],n={text:"",hasBeenQuotedOrEscaped:!1,unfinished:!1},r=!1,a=!1,o="",i=0;i<e.length;i++){var s=e[i];r?(n.text+="n"===s?"\n":"t"===s?"\t":s,r=!1):"\\"===s?(r=!0,n.hasBeenQuotedOrEscaped=!0):!['"',"'"].includes(s)||a&&o!==s?" "!==s||a?n.text+=s:n.text&&(t.push(n),n={text:"",hasBeenQuotedOrEscaped:!1,unfinished:!1}):(a=!a,o=s,n.hasBeenQuotedOrEscaped=!0)}return n.unfinished=r||a,(n.text||n.unfinished||n.hasBeenQuotedOrEscaped)&&t.push(n),t};!function(e){e.Unidentified="Unidentified",e.Alt="Alt",e.AltGraph="AltGraph",e.CapsLock="CapsLock",e.Control="Control",e.Fn="Fn",e.FnLock="FnLock",e.Meta="Meta",e.NumLock="NumLock",e.ScrollLock="ScrollLock",e.Shift="Shift",e.Symbol="Symbol",e.SymbolLock="SymbolLock",e.Hyper="Hyper",e.Super="Super",e.Enter="Enter",e.Tab="Tab",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e.Backspace="Backspace",e.Clear="Clear",e.Copy="Copy",e.CrSel="CrSel",e.Cut="Cut",e.Delete="Delete",e.EraseEof="EraseEof",e.ExSel="ExSel",e.Insert="Insert",e.Paste="Paste",e.Redo="Redo",e.Undo="Undo",e.Accept="Accept",e.Again="Again",e.Attn="Attn",e.Cancel="Cancel",e.ContextMenu="ContextMenu",e.Escape="Escape",e.Execute="Execute",e.Find="Find",e.Help="Help",e.Pause="Pause",e.Play="Play",e.Props="Props",e.Select="Select",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.BrightnessDown="BrightnessDown",e.BrightnessUp="BrightnessUp",e.Eject="Eject",e.LogOff="LogOff",e.Power="Power",e.PowerOff="PowerOff",e.PrintScreen="PrintScreen",e.Hibernate="Hibernate",e.Standby="Standby",e.WakeUp="WakeUp",e.AllCandidates="AllCandidates",e.Alphanumeric="Alphanumeric",e.CodeInput="CodeInput",e.Compose="Compose",e.Convert="Convert",e.Dead="Dead",e.FinalMode="FinalMode",e.GroupFirst="GroupFirst",e.GroupLast="GroupLast",e.GroupNext="GroupNext",e.GroupPrevious="GroupPrevious",e.ModeChange="ModeChange",e.NextCandidate="NextCandidate",e.NonConvert="NonConvert",e.PreviousCandidate="PreviousCandidate",e.Process="Process",e.SingleCandidate="SingleCandidate",e.HangulMode="HangulMode",e.HanjaMode="HanjaMo
2de",e.JunjaMode="JunjaMode",e.Eisu="Eisu",e.Hankaku="Hankaku",e.Hiragana="Hiragana",e.HiraganaKatakana="HiraganaKatakana",e.KanaMode="KanaMode",e.KanjiMode="KanjiMode",e.Katakana="Katakana",e.Romaji="Romaji",e.Zenkaku="Zenkaku",e.ZenkakuHankaku="ZenkakuHankaku",e.F1="F1",e.F2="F2",e.F3="F3",e.F4="F4",e.F5="F5",e.F6="F6",e.F7="F7",e.F8="F8",e.F9="F9",e.F10="F10",e.F11="F11",e.F12="F12",e.Soft1="Soft1",e.Soft2="Soft2",e.Soft3="Soft3",e.Soft4="Soft4",e.ChannelDown="ChannelDown",e.ChannelUp="ChannelUp",e.Close="Close",e.MailForward="MailForward",e.MailReply="MailReply",e.MailSend="MailSend",e.MediaClose="MediaClose",e.MediaFastForward="MediaFastForward",e.MediaPause="MediaPause",e.MediaPlay="MediaPlay",e.MediaPlayPause="MediaPlayPause",e.MediaRecord="MediaRecord",e.MediaRewind="MediaRewind",e.MediaStop="MediaStop",e.MediaTrackNext="MediaTrackNext",e.MediaTrackPrevious="MediaTrackPrevious",e.New="New",e.Open="Open",e.Print="Print",e.Save="Save",e.SpellCheck="SpellCheck",e.Key11="Key11",e.Key12="Key12",e.AudioBalanceLeft="AudioBalanceLeft",e.AudioBalanceRight="AudioBalanceRight",e.AudioBassBoostDown="AudioBassBoostDown",e.AudioBassBoostToggle="AudioBassBoostToggle",e.AudioBassBoostUp="AudioBassBoostUp",e.AudioFaderFront="AudioFaderFront",e.AudioFaderRear="AudioFaderRear",e.AudioSurroundModeNext="AudioSurroundModeNext",e.AudioTrebleDown="AudioTrebleDown",e.AudioTrebleUp="AudioTrebleUp",e.AudioVolumeDown="AudioVolumeDown",e.AudioVolumeUp="AudioVolumeUp",e.AudioVolumeMute="AudioVolumeMute",e.MicrophoneToggle="MicrophoneToggle",e.MicrophoneVolumeDown="MicrophoneVolumeDown",e.MicrophoneVolumeUp="MicrophoneVolumeUp",e.MicrophoneVolumeMute="MicrophoneVolumeMute",e.SpeechCorrectionList="SpeechCorrectionList",e.SpeechInputToggle="SpeechInputToggle",e.LaunchApplication1="LaunchApplication1",e.LaunchApplication2="LaunchApplication2",e.LaunchCalendar="LaunchCalendar",e.LaunchContacts="LaunchContacts",e.LaunchMail="LaunchMail",e.LaunchMediaPlayer="LaunchMediaPlayer",e.LaunchMusicPlayer="LaunchMusicPlayer",e.LaunchPhone="LaunchPhone",e.LaunchScreenSaver="LaunchScreenSaver",e.LaunchSpreadsheet="LaunchSpreadsheet",e.LaunchWebBrowser="LaunchWebBrowser",e.LaunchWebCam="LaunchWebCam",e.LaunchWordProcessor="LaunchWordProcessor",e.BrowserBack="BrowserBack",e.BrowserFavorites="BrowserFavorites",e.BrowserForward="BrowserForward",e.BrowserHome="BrowserHome",e.BrowserRefresh="BrowserRefresh",e.BrowserSearch="BrowserSearch",e.BrowserStop="BrowserStop",e.AppSwitch="AppSwitch",e.Call="Call",e.Camera="Camera",e.CameraFocus="CameraFocus",e.EndCall="EndCall",e.GoBack="GoBack",e.GoHome="GoHome",e.HeadsetHook="HeadsetHook",e.LastNumberRedial="LastNumberRedial",e.Notification="Notification",e.MannerMode="MannerMode",e.VoiceDial="VoiceDial",e.TV="TV",e.TV3DMode="TV3DMode",e.TVAntennaCable="TVAntennaCable",e.TVAudioDescription="TVAudioDescription",e.TVAudioDescriptionMixDown="TVAudioDescriptionMixDown",e.TVAudioDescriptionMixUp="TVAudioDescriptionMixUp",e.TVContentsMenu="TVContentsMenu",e.TVDataService="TVDataService",e.TVInput="TVInput",e.TVInputComponent1="TVInputComponent1",e.TVInputComponent2="TVInputComponent2",e.TVInputComposite1="TVInputComposite1",e.TVInputComposite2="TVInputComposite2",e.TVInputHDMI1="TVInputHDMI1",e.TVInputHDMI2="TVInputHDMI2",e.TVInputHDMI3="TVInputHDMI3",e.TVInputHDMI4="TVInputHDMI4",e.TVInputVGA1="TVInputVGA1",e.TVMediaContext="TVMediaContext",e.TVNetwork="TVNetwork",e.TVNumberEntry="TVNumberEntry",e.TVPower="TVPower",e.TVRadioService="TVRadioService",e.TVSatellite="TVSatellite",e.TVSatelliteBS="TVSatelliteBS",e.TVSatelliteCS="TVSatelliteCS",e.TVSatelliteToggle="TVSatelliteToggle",e.TVTerrestrialAnalog="TVTerrestrialAnalog",e.TVTerrestrialDigital="TVTerrestrialDigital",e.TVTimer="TVTimer",e.AVRInput="AVRInput",e.AVRPower="AVRPower",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.ColorF4Grey="ColorF4Grey",e.ColorF5Brown="ColorF5Brown",e.ClosedCaptionToggle="ClosedCaptionToggle",e.Dimmer="Dimmer",e.DisplaySwap="DisplaySwap",e.DVR="DVR",e.Exit="Exit",e.FavoriteClear0="FavoriteClear0",e.FavoriteClear1="FavoriteClear1",e.FavoriteClear2="FavoriteClear2",e.FavoriteClear3="FavoriteClear3",e.FavoriteRecall0="FavoriteRecall0",e.FavoriteRecall1="FavoriteRecall1",e.FavoriteRecall2="FavoriteRecall2",e.FavoriteRecall3="FavoriteRecall3",e.FavoriteStore0="FavoriteStore0",e.FavoriteStore1="FavoriteStore1",e.FavoriteStore2="FavoriteStore2",e.FavoriteStore3="FavoriteStore3",e.Guide="Guide",e.GuideNextDay="GuideNextDay",e.GuidePreviousDay="GuidePreviousDay",e.Info="Info",e.InstantReplay="InstantReplay",e.Link="Link",e.ListProgram="ListProgram",e.LiveContent="LiveC
2ontent",e.Lock="Lock",e.MediaApps="MediaApps",e.MediaAudioTrack="MediaAudioTrack",e.MediaLast="MediaLast",e.MediaSkipBackward="MediaSkipBackward",e.MediaSkipForward="MediaSkipForward",e.MediaStepBackward="MediaStepBackward",e.MediaStepForward="MediaStepForward",e.MediaTopMenu="MediaTopMenu",e.NavigateIn="NavigateIn",e.NavigateNext="NavigateNext",e.NavigateOut="NavigateOut",e.NavigatePrevious="NavigatePrevious",e.NextFavoriteChannel="NextFavoriteChannel",e.NextUserProfile="NextUserProfile",e.OnDemand="OnDemand",e.Pairing="Pairing",e.PinPDown="PinPDown",e.PinPMove="PinPMove",e.PinPToggle="PinPToggle",e.PinPUp="PinPUp",e.PlaySpeedDown="PlaySpeedDown",e.PlaySpeedReset="PlaySpeedReset",e.PlaySpeedUp="PlaySpeedUp",e.RandomToggle="RandomToggle",e.RcLowBattery="RcLowBattery",e.RecordSpeedNext="RecordSpeedNext",e.RfBypass="RfBypass",e.ScanChannelsToggle="ScanChannelsToggle",e.ScreenModeNext="ScreenModeNext",e.Settings="Settings",e.SplitScreenToggle="SplitScreenToggle",e.STBInput="STBInput",e.STBPower="STBPower",e.Subtitle="Subtitle",e.Teletext="Teletext",e.VideoModeNext="VideoModeNext",e.Wink="Wink",e.ZoomToggle="ZoomToggle"}(Rr||(Rr={}));var zr,Br=Object.values(Rr),Ur=function(e){return function(e){return Br.includes(e)}(e)||function(e){return!!e.match(/^(?:F|(?:Soft))\d+$/)}(e)},Wr=function(e){return e.length>0&&e[e.length-1].unfinished},Vr=n(3157),Hr=new(n.n(Vr)()),Kr=Hr.getEngine(),Gr=Hr.getOS(),$r=Hr.getDevice(),qr="iOS"===Gr.name,Qr=null===(zr=Gr.name)||void 0===zr?void 0:zr.startsWith("Android"),Yr="Windows"===Gr.name,Zr="Mac OS"===Gr.name,Jr=Qr&&"Gecko"===Kr.name,Xr="WebKit"===Kr.name,ea="mobile"===$r.type,ta="tablet"===$r.type,na=ea||ta,ra="Apple"===$r.vendor,aa=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d,f,h,m,v;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.userInput,r=t.prefix,a=t.history,o=t.isCommandRunning,i=t.setUserInput,s=t.setCursorPosition,u=t.setHistory,c=t.setHistoryIndex,d=t.setHistoryUserInputCache,f=t.insertTextAtCursor,h=t.onRunCommand,m=Or(n),!Wr(m)){e.next=5;break}return f("\n"),e.abrupt("return");case 5:return o.current=!0,e.prev=6,e.next=9,h(n,m,r);case 9:v=[].concat(p(a),p(n.trim()?[n]:[])),u(v),c(v.length),i(""),s(0),d([]);case 15:return e.prev=15,o.current=!1,e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[6,,15,18]])})));return function(t){return e.apply(this,arguments)}}(),oa=function(){var e=c(l().mark((function e(){var t,n,r,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=null===(t=window.getSelection())||void 0===t?void 0:t.toString())){e.next=9;break}if(null===(r=navigator.clipboard)||void 0===r||!r.writeText){e.next=7;break}return e.next=5,navigator.clipboard.writeText(n);case 5:e.next=8;break;case 7:document.execCommand("copy");case 8:null===(a=window.getSelection())||void 0===a||a.removeAllRanges();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ia=function(){var e=c(l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clipboardText,r=t.insertTextAtCursor,void 0!==n){e.next=3;break}throw new Error("clipboard text is undefined");case 3:n.length>0&&r(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();ia.passClipboardText=!0;var sa=Yr?[{key:"v",ctrlKey:!0},{key:Rr.Insert,shiftKey:!0}]:Qr?[{key:"v",ctrlKey:!0}]:Zr||qr?[{key:"v",metaKey:!0}]:[{key:"v",ctrlKey:!0},{key:"v",metaKey:!0},{key:Rr.Insert,shiftKey:!0}],la=[{keys:[{key:Rr.Enter}],handler:aa},{keys:[{key:Rr.Backspace}],handler:function(e){var t=e.userInput,n=e.cursorPosition,r=e.setUserInput,a=e.setCursorPosition;n>0&&(r(t.slice(0,n-1)+t.slice(n)),a(n-1))}},{keys:[{key:Rr.Delete}],handler:function(e){var t=e.userInput,n=e.cursorPosition;(0,e.setUserInput)(t.slice(0,n)+t.slice(n+1))}},{keys:[{key:Rr.ArrowUp},{key:Rr.ArrowDown}],handler:function(e){var t=e.key,n=e.history,r=e.historyIndex,a=e.userInput,o=e.historyUserInputCache,i=e.setHistoryIndex,s=e.setUserInput,l=e.setCursorPosition,u=e.setHistoryUserInputCache,c=t===Rr.ArrowUp?-1:1,d=Math.min(Math.max(r+c,0),n.length);if(d!==r){var f,h,m=null!==(f=null!==(h=o[d])&&void 0!==h?h:n[d])&&void 0!==f?f:"";u((function(e){var t=p(e);return t[r]=a&&a!==n[r]?a:void 0,t})),i(d),s(m),l(m.length)}}},{keys:[{key:Rr.ArrowLeft},{key:Rr.ArrowRight}],handler:function(e){var t=e.key,n=e.userInput,r=e.setCursorPosition,a=t===Rr.ArrowLeft?-1:1;r((function(e){return Math.min(Math.max(e+a,0),n.length)}))}},{keys:[{key:"c",ctrlKey:!0}
2],handler:function(e){var t=e.userInput,n=e.prefix,r=e.setUserInput,a=e.setCursorPosition,o=e.setHistoryUserInputCache;(0,e.onAbortInput)(t,n),r(""),a(0),o([])}},{keys:[{key:"u",ctrlKey:!0}],handler:function(e){var t=e.userInput,n=e.cursorPosition,r=e.setUserInput,a=e.setCursorPosition;r(t.slice(n)),a(0)}},{keys:[{key:"k",ctrlKey:!0}],handler:function(e){var t=e.userInput,n=e.cursorPosition;(0,e.setUserInput)(t.slice(0,n))}},{keys:[{key:"C",ctrlKey:!0,shiftKey:!0},{key:"c",metaKey:!0},{key:Rr.Copy}],handler:oa},{keys:[].concat(sa,[{key:"V",ctrlKey:!0,shiftKey:!0},{key:Rr.Paste},{key:Rr.Insert,shiftKey:!0}]),handler:ia},{keys:[{key:Rr.Tab},{key:Rr.Tab,shiftKey:!0}],handler:function(){}}],ua=function(e,t){return e.key===t.key&&e.shiftKey===!!t.shiftKey&&e.ctrlKey===!!t.ctrlKey&&e.altKey===!!t.altKey&&e.metaKey===!!t.metaKey},ca=function(e){return sa.some((function(t){return ua(e,t)}))},da=function(e){var t=la.find((function(t){return function(e,t){return t.keys.some((function(t){return ua(e,t)}))}(e,t)}));return null===t||void 0===t?void 0:t.handler},fa=function(){var e=ct((0,t.useState)(!0),2),n=e[0],r=e[1],a=ct((0,t.useState)(0),2),o=a[0],i=a[1];(0,t.useEffect)((function(){var e;r(!0);var t=setTimeout((function(){e=setInterval((function(){r((function(e){return!e}))}),550)}),275);return function(){clearTimeout(t),e&&clearInterval(e)}}),[o]);return{isCursorFull:n,onResetCursorBlinking:function(){return i((function(e){return(e+1)%100}))}}},ha=function(e,n,r,a,o){var i=ct((0,t.useState)([]),2),s=i[0],u=i[1],d=ct((0,t.useState)(0),2),f=d[0],h=d[1],m=ct((0,t.useState)(""),2),v=m[0],g=m[1],y=ct((0,t.useState)(0),2),w=y[0],b=y[1],x=ct((0,t.useState)([]),2),k=x[0],j=x[1],S=(0,t.useRef)(!1),C=fa(),E=C.isCursorFull,_=C.onResetCursorBlinking,T=function(e,t){return"".concat(e.user,"@").concat(e.host," ").concat(function(e,t){if(t===e.userHomeDir)return"~";if("/"===t)return"/";var n=t.split("/");return n[n.length-1]}(e,t)," $").concat("\xa0")}(e,n),P=function(e){g(v.slice(0,w)+e+v.slice(w)),b(w+e.length)},D=function(){var e=c(l().mark((function e(t){var n,i,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=da(t),i=!n&&!Ur(t.key)&&!t.ctrlKey&&!t.metaKey&&!t.altKey,n||i){e.
2next=5;break}return e.abrupt("return");case 5:if(null===n||void 0===n||!n.passClipboardText){e.next=11;break}return e.next=8,o(t);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=void 0;case 12:if(c=e.t0,t.preventDefault(),_(),!S.current){e.next=17;break}return e.abrupt("return");case 17:if(!n){e.next=22;break}return e.next=20,n({key:t.key,history:s,setHistory:u,historyIndex:f,setHistoryIndex:h,userInput:v,setUserInput:g,cursorPosition:w,setCursorPosition:b,historyUserInputCache:k,setHistoryUserInputCache:j,isCommandRunning:S,prefix:T,clipboardText:c,insertTextAtCursor:P,onAbortInput:a,onRunCommand:r});case 20:e.next=23;break;case 22:P(t.key);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),N=function(){var e=c(l().mark((function e(t){var n,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S.current){e.next=2;break}return e.abrupt("return");case 2:return S.current=!0,e.prev=3,n=Or(t),g(t),b(t.length),e.next=9,r(t,n,T);case 9:u((function(e){var n=[].concat(p(e),[t]);return a=n.length,n})),h((function(){return a})),g(""),b(0),j([]);case 14:return e.prev=14,S.current=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[3,,14,17]])})));return function(t){return e.apply(this,arguments)}}();return{prefix:T,userInput:v,cursorPosition:w,isCursorFull:E,onKeyDown:D,onMobileInput:function(e){_(),S.current||P(e)},onRunCommandProgrammatically:N}},pa="ontouchend"in document,ma="visualViewport"in window,va=pa,ga=pa&&ma,ya=function(){var e=ct((0,t.useState)(va),2),n=e[0],r=e[1],a=(0,t.useRef)(ga);return{hasSoftwareKeyboard:n,detectSoftwareKeyboard:function(){a.current&&(new Promise((function(e){if(!window.visualViewport)throw new Error("visualViewport not available");var t=!1,n=function n(){var r;t=!0,null===(r=window.visualViewport)||void 0===r||r.removeEventListener("resize",n),e(!0)};window.visualViewport.addEventListener("resize",n),setTimeout((function(){var r;t||(null===(r=window.visualViewport)||void 0===r||r.removeEventListener("resize",n),e(!1))}),1500)})).then((function(e){return r(e)})),a.current=!1)}}},wa=function(e){return e.preventDefault()},ba=function(e,n){var r=(0,t.useRef)(!1),a=ya(),o=a.hasSoftwareKeyboard,i=a.detectSoftwareKeyboard;if(!o)return{hasSoftwareKeyboard:o,showFakeInput:!1};return{hasSoftwareKeyboard:o,showFakeInput:!0,onDivClick:function(){var t,n;if(r.current)return r.current=!1,void(null===(n=e.current)||void 0===n||n.blur());i(),e.current!==document.activeElement&&(null===(t=e.current)||void 0===t||t.focus())},onDivMouseDown:function(){qr&&e.current===document.activeElement&&(r.current=!0)},onFakeInputKeyDown:wa,onFakeInputChange:function(e){e.target.value&&(n(e.target.value),e.target.value="",Jr&&(e.target.blur(),e.target.focus()))}}},xa=function(e){if(!e)return 80;var t=e.getBoundingClientRect().width,n=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.top="0",t.style.visibility="hidden",t.style.width="1ch",e.appendChild(t);var n=t.getBoundingClientRect().width;return e.removeChild(t),n}(e);return Math.floor(t/n)},ka="pointer-events-none absolute right-px bottom-px -z-10 h-px w-px opacity-0",ja=(0,t.forwardRef)((function(e,t){return(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)("input",Tr({type:"text",className:ka,ref:t,spellCheck:"false",autoCorrect:"off",autoCapitalize:"none",autoComplete:"off",enterKeyHint:"send",id:"terminal-fi","aria-describedby":"terminal-fi-aria"},e)),(0,Cr.jsx)("label",{htmlFor:"terminal-fi",className:"sr-only",children:"Input"}),(0,Cr.jsx)("span",{id:"terminal-fi-aria",className:"sr-only",children:"Input"})]})}));ja.displayName="FakeInput";var Sa=ja,Ca=function(){var e=ct((0,t.useState)(""),2),n=e[0],r=e[1];return{output:n,writeToStdout:function(e){r((function(t){return t+e}))}}},Ea=function(e,n,r){var a=ct((0,t.useState)(n||e.userHomeDir),2),o=a[0],i=a[1],s=ct((0,t.useState)(o),2),l=s[0],u=s[1];return(0,t.useEffect)((function(){null===r||void 0===r||r(o)}),[o]),{workDir:o,prevWorkDir:l,setWorkDir:function(e){u(o),i(e)}}},_a=function(e){var t=function(e){if(e.length>=3){var t=e[e.length-2];if(!t.hasBeenQuotedOrEscaped){var n=e[e.length-1].text;if(">"===t.text)return{path:n,append:!1};if(">>"===t.text)return{path:n,append:!0}}}}(e),n=vt((t?e.slice(0,-2):e).map((function(e){return e.text})));return{command:n[0],args:n.slice(1),outputFile:t}},Ta=function(e){var t,n=[];for(t=0;t<e.length;t++){var r=e[t];if(!(r.startsWith("-")&&r.length>1)||r.startsWith("--"))break;n.push.apply(n,p(r.slice(1).split("")))}return{flags:n,rest:e.slice(t)}},Pa=function(e){return void 0!==e.error},Da=function(e,t,n){var r=new Date(e,t,n);return e<100&&r.setFullYear(r.getFullYear()-1900),r},Na=function(e,t,n){var r=Da(t,e,1);return n.map((function(e){var t=function(e,t){var n=new Date(e);return n.setMonth(n.getMonth()+t),n}(r,e);return{month:t.getMonth(),year:t.getFullYear()}}))},Aa=function(e){var t=parseInt(e);return!e.match(/^\d{1,4}$/)||isNaN(t)||t<1||t>9999?{error:"cal: year '".concat(e,"' not in range 1..9999")}:{number:t}},Ma=function(e,t,n){var r=function(e){var t=parseInt(e);return!e.match(/^\d{1,2}$/)||isNaN(t)||t<1||t>12?{error:"cal: ".concat(e," is not a month number (1..12)")}:{number:t-1}}(e);if(Pa(r))return{error:r.error};var a=Aa(t);return Pa(a)?{error:a.error}:{value:Na(r.number,a.number,n)}},La=function(e){var t=Ta(e),n=t.flags,r=ct(t.rest,2),a=r[0],o=r[1],i=n.includes("3"),s=i?[-1,0,1]:[0];return a?o?Ma(a,o,s):function(e,t){var n=Aa(e);return Pa(n)?{error:n.error}:t?{error:"cal: -3 together with a given year but no given month is not supported."}:{value:new Array(12).fill(null).map((function(e,t){return{month:t,year:n.number}}))}}(a,i):function(e){var t=new Date;return{value:Na(t.getMonth(),t.getFullYear(),e)}}(s)},Fa=["Su","Mo","Tu","We","Th","Fr","Sa"],Ia=["January","February","March","April","May","June","July","August","September","October","November","December"],Ra=function(e){return" ".repeat(e)},Oa=Ra(2),za=Fa.join(" "),Ba=za+Oa,Ua=za.length,Wa=function(e){return e.toString().padStart(2," ")},Va=function(e,t,n){var r=Ia[e],a=n?"".concat(r," ").concat(t):r,o=Ua-a.length;return Ra(Math.floor(o/2))+a+Ra(Math.ceil(o/2))+Oa},Ha=function(e,t,n){return[Va(e,t,n),Ba].concat(p(function(e,t){for(var n=[],r=Da(t,e,1).getDay(),a=Da(t,e+1,0).getDate(),o=1,i=0;i<6;i++){for(var s=[],l=0;l<Fa.length;l++)0===i&&l<r?s.push(Ra(2)):o<=a?(s.push(Wa(o)),o++):s.push(Ra(2));n.push(s.join(" ")+Oa)}return n}(e,t)),[""])},Ka=function(e,t){var n=Math.ceil(e.length/t);return new Array(n).fill(null).map((function(n,r){return function(e){return new Array(9).fill(null).map((function(t,n){return e.map((function(e){return e[n]})).join("")}))}(e.slice(r*t,(r+1)*t))})).flat()},Ga=function(e,t){var n=e.toString(),r=t*Ua+2*(t-1)-n.length;return Ra(Math.floor(r/2))+n+Ra(Math.ceil(r/2))},$a=function(e,t){var n=function(e){var t=e.every((function(t){return t.year===e[0].year}));return e.length>1&&t}(e),r=function(e){return Math.max(Math.min(Math.floor(e/(Ua+2)),3),1)}(t);return[].concat(p(n?[Ga(e[0].year,r)]:[]),p(Ka(e.map((function(e){var t=e.month,r=e.year;return Ha(t,r,!n)})),r))).join("\n")},qa=function(){var e=c(l().mark((function e(t){var n,r,a,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.getTerminalColumns,a=La(n),void 0===a.error){e.next=4;break}return e.abrupt("return",{output:a.error+"\n"});case 4:return o=$a(a.value,r()),e.abrupt("return",{output:o});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Qa=qa,Ya=n(7237),Za=n.n(Ya);function Ja(e){""===e&&(e=".");for(var t=e.charAt(0)===to,n=(e=ro(e)).split(to),r=[],a=0;a<n.length;a++){var o=n[a];"."!==o&&(".."===o&&(t||!t&&r.length>0&&".."!==r[0])?r.pop():r.push(o))}if(!t&&r.length<2)if(1===r.length)""===r[0]&&r.unshift(".");else r.push(".");return e=r.join(to),t&&e.charAt(0)!==to&&(e=to+e),e}function Xa(){for(var e=[],t=0;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];if("string"!==typeof n)throw new TypeError("Invalid argument type to path.join: "+typeof n);""!==n&&(n.charAt(0)===to&&(e=[]),e.push(n))}var r=Ja(e.join(to));if(r.length>1&&r.charAt(r.length-1)===to)return r.substr(0,r.length-1);if(r.charAt(0)!==to){"."!==r.charAt(0)||1!==r.length&&r.charAt(1)!==to||(r=1===r.length?"":r.substr(2));var a=process.cwd();r=""!==r?Ja(a+("/"!==a?to:"")+r):a}return r}function eo(e,t){var n;e=Xa(e),t=Xa(t);var r=e.split(to),a=t.split(to);a.shift(),r.shift();var o=0,i=[];for(n=0;n<r.length;n++){if(r[n]!==a[n]){o=r.length-n;break}}i=a.slice(n),1===r.length&&""===r[0]&&(o=0),o>r.length&&(o=r.length);var s="";for(n=0;n<o;n++)s+="../";return(s+=i.join(to)).length>1&&s.charAt(s.length-1)===to&&(s=s.substr(0,s.length-1)),s}var to="/",no=new RegExp("//+","g");function ro(e){return e=e.replace(no,to)}var ao,oo=function(e,t,n){if(e)return["~","~/"].includes(e)?t.userHomeDir:e.startsWith("~/")?Za().normalize(Za().resolve(t.userHomeDir,e.slice(2))):Za().normalize(Za().resolve(n,e))},io=function(e,t){for(var n=0;n<(arguments.length<=2?0:arguments.length-2);n++){var r=n+2<2||arguments.length<=n+2?void 0:arguments[n+2],a=0===r.length?"":eo(t,r)||".";e=e.replaceAll("%".concat(n+1),a)}return e+"\n"},so=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return{output:io.apply(void 0,[e,t].concat(r))}},lo=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=oo(n[0],r,o)){e.next=4;break}return e.abrupt("return",i("usage: cat <file>"));case 4:return e.prev=4,e.next=7,a.promises.stat(s);case 7:if(e.sent.isFile()){e.next=10;break}return e.abrupt("return",i("cat: %1: Is a directory",s));case 10:return e.next=12,a.promises.readFile(s,{encoding:"utf8"});case 12:return e.t0=e.sent.toString(),e.abrupt("return",{output:e.t0});case 16:e.prev=16,e.t1=e.catch(4),e.t2=e.t1.code,e.next="ENOENT"===e.t2?21:22;break;case 21:return e.abrupt("return",i("cat: %1: No such file or directory",s));case 22:throw e.t1;case 23:case"end":return e.stop()}}),e,null,[[4,16]])})));return function(t){return e.apply(this,arguments)}}(),uo=lo,co=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.args,a=t.terminalConfig,o=t.fs,i=t.workDir,s=t.prevWorkDir,u=t.errorOutput,c="-"===r[0],d=c?s:null!==(n=oo(r[0],a,i))&&void 0!==n?n:a.userHomeDir,e.prev=3,e.next=6,o.promises.stat(d);case 6:if(e.sent.isDirectory()){e.next=9;break}return e.abrupt("return",u("cd: not a directory: %1",d));case 9:return e.abrupt("return",{workDir:d,output:c?"".concat(d,"\n"):""});case 12:e.prev=12,e.t0=e.catch(3),e.t1=e.t0.code,e.next="ENOENT"===e.t1?17:18;break;case 17:return e.abrupt("return",u("cd: no such file or directory: %1",d));case 18:throw e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(t){return e.apply(this,arguments)}}(),fo=co;!function(e){e.file="file",e.directory="directory"}(ao||(ao={}));var ho=function(){var e=c(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.promises.stat(n);case 3:return e.abrupt("return",!0);case 6:if(e.prev=6,e.t0=e.catch(0),"ENOENT"!==e.t0.code){e.next=10;break}return e.abrupt("return",!1);case 10:throw e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}(),po=function(){var e=c(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.promises.stat(n);case 3:return r=e.sent,e.abrupt("return",r.isDirectory());case 7:if(e.prev=7,e.t0=e.catch(0),"ENOENT"!==e.t0.code){e.next=11;break}return e.abrupt("return",!1);case 11:throw e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}(),mo=function(){var e=c(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.promises.stat(n);case 3:return r=e.sent,e.abrupt("return",r.isFile());case 7:if(e.prev=7,e.t0=e.catch(0),"ENOENT"!==e.t0.code){e.next=11;break}return e.abrupt("return",!1);case 11:throw e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}(),vo=function(){var e=c(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promises.readdir(n);case 2:return e.t0=e.sent.length,e.abrupt("return",0===e.t0);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),go=function(){var e=c(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Za().dirname(n),e.next=3,ho(t,r);case 3:if(e.sent){e.next=7;break}e.t0=void 0,e.next=15;break;case 7:return e.next=9,po(t,r);case 9:if(!e.sent){e.next=13;break}e.t1=ao.directory,e.next=14;break;case 13:e.t1=ao.file;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),yo=function(){var e=c(l().mark((function e(t,n,r,a){var o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,go(t,n);case 2:return o=e.sent,e.abrupt("return",o?o!==ao.directory?a:void 0:r);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),wo=function(e,t){return e.path.localeCompare(t.path)},bo=function(){var e=c(l().mark((function e(t,n,r){var a,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,po(t,n);case 2:if(!e.sent){e.next=17;break}return e.next=5,t.promises.readdir(n);case 5:return a=e.sent.map((function(e){return Za().normalize(Za().join(n,e))})),e.t0=[{path:n,type:ao.directory}],e.t1=p,e.next=10,Promise.all(a.map((function(e){return bo(t,e,r)})));case 10:return e.t2=e.sent.reduce((function(e,t){return e.concat(t)}),[]),e.t3=(0,e.t1)(e.t2),(o=e.t0.concat.call(e.t0,e.t3)).sort(r),e.abrupt("return",o);case 17:return e.abrupt("return",[{path:n,type:ao.file}]);case 18:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),xo="cp: %1: No such file or directory",ko="cp: %1: Not a directory",jo=function(e,t,n){var r=eo(e,n.path);return Za().normalize(Za().join(t,r))},So=function(){var e=c(l().mark((function e(t,n,r){var a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yo(t,n,r(xo,n),r(ko,n));case 2:return a=e.sent,e.abrupt("return",a?{error:a}:void 0);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Co=function(){var e=c(l().mark((function e(t,n,r,a){var o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So(t,r,a);case 2:if(!(o=e.sent)){e.next=5;break}return e.abrupt("return",o);case 5:return e.next=7,ho(t,r);case 7:if(!e.sent){e.next=22;break}return e.next=10,po(t,r);case 10:if(!e.sent){e.next=18;break}if(n.type!==ao.directory){e.next=15;break}return e.abrupt("return",{skip:!0});
2case 15:return e.abrupt("return",{error:a("cp: cannot overwrite directory %1 with non-directory %2",r,n.path)});case 16:e.next=22;break;case 18:if(n.type!==ao.directory){e.next=22;break}return e.abrupt("return",{error:a(ko,r)});case 22:return e.abrupt("return",{skip:!1});case 23:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),Eo=function(){var e=c(l().mark((function e(t,n,r,a){var o,s,u,c,d,f,h,p;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bo(t,n,wo);case 2:o=e.sent,s="",u=i(o),e.prev=5,u.s();case 7:if((c=u.n()).done){e.next=30;break}return d=c.value,f=jo(n,r,d),e.next=12,Co(t,d,f,a);case 12:if(!("error"in(h=e.sent))){e.next=16;break}return s+=h.error,e.abrupt("continue",28);case 16:if(!h.skip){e.next=18;break}return e.abrupt("continue",28);case 18:if(d.type!==ao.directory){e.next=23;break}return e.next=21,t.promises.mkdir(f);case 21:e.next=28;break;case 23:return e.next=25,t.promises.readFile(d.path);case 25:return p=e.sent,e.next=28,t.promises.writeFile(f,p);case 28:e.next=7;break;case 30:e.next=35;break;case 32:e.prev=32,e.t0=e.catch(5),u.e(e.t0);case 35:return e.prev=35,u.f(),e.finish(35);case 38:return e.abrupt("return",s);case 39:case"end":return e.stop()}}),e,null,[[5,32,35,38]])})));return function(t,n,r,a){return e.apply(this,arguments)}}(),_o=function(){var e=c(l().mark((function e(t,n,r,a,o){var i,s,u,c,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ho(t,r);case 2:if(e.sent){e.next=4;break}return e.abrupt("return",{error:o(xo,r)});case 4:return e.next=6,po(t,r);case 6:if(!(i=e.sent)||n){e.next=9;break}return e.abrupt("return",{error:o("cp: %1 is a directory (not copied).",r)});case 9:return e.next=11,ho(t,a);case 11:return s=e.sent,e.next=14,po(t,a);case 14:return u=e.sent,c=s&&(u||i)?Za().normalize(Za().join(a,Za().basename(r))):a,e.next=18,So(t,c,o);case 18:if(!(d=e.sent)){e.next=21;break}return e.abrupt("return",d);case 21:if(r!==c){e.next=23;break}return e.abrupt("return",{error:o("cp: %1 and %2 are identical (not copied).",r,c)});case 23:return e.abrupt("return",{targetPath:c});case 24:case"end":return e.stop()}}),e)})));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),To=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d,f,h,p,m,v;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=t.errorPrintf,u=Ta(n),c=u.flags,d=u.rest,f=c.includes("r")||c.includes("R"),h=oo(d[0],r,o),p=oo(d[1],r,o),h&&p){e.next=7;break}return e.abrupt("return",i("usage: cp [-rR] <source> <target>"));case 7:return e.next=9,_o(a,f,h,p,s);case 9:if(!("error"in(m=e.sent))){e.next=12;break}return e.abrupt("return",{output:m.error});case 12:return e.next=14,Eo(a,h,m.targetPath,s);case 14:return v=e.sent,e.abrupt("return",{output:v});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Po=To,Do=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],No=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ao=function(e){return e.toString().padStart(2,"0")},Mo=function(e){var t=Do[e.getDay()],n=No[e.getMonth()],r=Ao(e.getDate()),a=Ao(e.getHours()),o=Ao(e.getMinutes()),i=Ao(e.getSeconds()),s=e.getFullYear();return"".concat(t," ").concat(n," ").concat(r," ").concat(a,":").concat(o,":").concat(i," ").concat(s)},Lo=function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{output:Mo(new Date)+"\n"});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fo=Lo,Io=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.args,e.abrupt("return",{output:n.join(" ")+"\n"});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ro=Io,Oo=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=oo(n[0],r,o)){e.next=4;break}return e.abrupt("return",i("usage: find <path>"));case 4:return e.next=6,ho(a,s);case 6:if(e.sent){e.next=8;break}return e.abrupt("return",i("find: %1: No such file or directory",s));case 8:return e.next=10,bo(a,s,wo);case 10:return u=e.sent,e.abrupt("return",{output:u.map((function(e){return"".concat(n[0],"/").concat(eo(s,e.path),"\n")})).join("")});case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),zo=Oo,Bo=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.terminalConfig,e.abrupt("return",{output:n.user+"\n"});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Uo=Bo,Wo=function(e){return e.map((function(e){return"".concat(e.formattedName,"\n")})).join("")},Vo=function(e,t){for(var n=Math.max.apply(Math,p(e.map((function(e){return e.formattedName.length})))),r=Math.max(n+2,16),a=Math.floor(t/r),o=Math.ceil(e.length/a),i=function(t,n){return e[function(e,t){return e+t*o}(t,n)]},s="",l=0;l<o;l++){for(var u=0;u<a;u++){var c=i(l,u),d=!!i(l,u+1);if(c){var f=c.formattedName;s+=d?f.padEnd(r):f}}s+="\n"}return s},Ho=function(){var e=c(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promises.readdir(n);case 2:return r=e.sent,e.abrupt("return",64+32*r.length);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ko=function(){var e=c(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promises.readFile(n);case 2:return r=e.sent,e.abrupt("return",r.length);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Go=function(){var e=c(l().mark((function e(t,n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(r.map(function(){var e=c(l().mark((function e(r){var a,o,i,s,u,c,d,f,h,p,m,v,g,y,w,b;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.promises.stat(r.path);case 2:if(a=e.sent,!(o=a.isDirectory())){e.next=10;break}return e.next=7,Ho(n,r.path);case 7:e.t0=e.sent,e.next=13;break;case 10:return e.next=12,Ko(n,r.path);case 12:e.t0=e.sent;case 13:return i=e.t0,s=o?"d":"-",u=o?"rwxr-xr-x":"rwxr--r--",c=o?(i/32).toString():"1",d=t.user,f=t.group,h=i.toString(),p=new Date(a.mtimeMs),m=p.toLocaleStr
2ing("default",{month:"short"}),v=p.toLocaleString("default",{day:"numeric"}).padStart(2),g=p.toLocaleString("default",{year:"numeric"}),y=p.toLocaleString("default",{hour:"2-digit",minute:"2-digit"}),w=Math.abs(p.getTime()-Date.now())>15768e6,b=w?g.padEnd(y.length):y,e.abrupt("return",{name:r.formattedName,sizeNumber:i,type:s,permissions:u,links:c,owner:d,group:f,size:h,month:m,day:v,yearOrTime:b});case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),$o=function(e){return e.reduce((function(e,t){return e+Math.ceil(t.sizeNumber/512)}),0)},qo=function(){var e=c(l().mark((function e(t,n,r){var a,o,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go(t,n,r);case 2:return a=e.sent,o=Math.max.apply(Math,p(a.map((function(e){return e.size.length})))),i=Math.max.apply(Math,p(a.map((function(e){return e.links.length})))),e.abrupt("return","total ".concat($o(a),"\n")+a.map((function(e){var t=e.type,n=e.permissions,r=e.links,a=e.owner,s=e.group,l=e.size,u=e.month,c=e.day,d=e.yearOrTime,f=e.name;return"".concat(t).concat(n,"  ").concat(r.padStart(i)," ").concat(a,"  ").concat(s,"  ").concat(l.padStart(o)," ").concat(u," ").concat(c," ").concat(d," ").concat(f,"\n")})).join(""));case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Qo=function(){var e=c(l().mark((function e(t,n,r){var a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=[],e.t1=p,e.next=5,t.promises.readdir(n);case 5:return e.t2=e.sent.filter((function(e){return r||!e.startsWith(".")})),e.t3=(0,e.t1)(e.t2),e.t4=p(r?["."].concat(p("/"!==n?[".."]:[])):[]),(a=e.t0.concat.call(e.t0,e.t3,e.t4)).sort((function(e,t){return e.localeCompare(t)})),e.abrupt("return",a);case 13:e.prev=13,e.t5=e.catch(0),e.t6=e.t5.code,e.next="ENOTDIR"===e.t6?18:19;break;case 18:return e.abrupt("return",[Za().basename(n)]);case 19:throw e.t5;case 20:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Yo=function(){var e=c(l().mark((function e(t,n,r,a){var o,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Za().normalize(Za().join(r,n)),e.t0=a,!e.t0){e.next=6;break}return e.next=5,po(t,o);case 5:e.t0=e.sent;case 6:if(!e.t0){e.next=10;break}e.t1="".concat(n,"/"),e.next=11;break;case 10:e.t1=n;case 11:return i=e.t1,e.abrupt("return",{name:n,path:o,formattedName:i});case 13:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),Zo=function(){var e=c(l().mark((function e(t,n,r,a){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map((function(e){return Yo(t,e,r,a)}))));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),Jo=function(){var e=c(l().mark((function e(t,n,r,a){var o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qo(t,n,r);case 2:return o=e.sent,e.next=5,Zo(t,o,n,a);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),Xo=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d,f,h,p,m,v,g,y;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.args,a=t.terminalConfig,o=t.fs,i=t.workDir,s=t.errorOutput,u=t.getTerminalColumns,c=Ta(r),d=c.flags,f=c.rest,h=d.includes("1"),p=d.includes("a"),m=d.includes("l"),v=d.includes("F"),g=null!==(n=oo(f[0],a,i))&&void 0!==n?n:i,e.prev=7,e.next=10,Jo(o,g,p,v);case 10:if(y=e.sent,!m){e.next=17;break}return e.next=14,qo(a,o,y);case 14:e.t0=e.sent,e.next=18;break;case 17:e.t0=h?Wo(y):Vo(y,u());case 18:return e.t1=e.t0,e.abrupt("return",{output:e.t1});case 22:e.prev=22,e.t2=e.catch(7),e.t3=e.t2.code,e.next="ENOENT"===e.t3?27:28;break;case 27:return e.abrupt("return",s("ls: %1: No such file or directory",g));case 28:throw e.t2;case 29:case"end":return e.stop()}}),e,null,[[7,22]])})));return function(t){return e.apply(this,arguments)}}(),ei=Xo,ti=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.workDir,e.abrupt("return",{output:n+"\n"});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ni=ti,ri=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=oo(n[0],r,o)){e.next=4;break}return e.abrupt("return",i("usage: touch <file>"));case 4:return e.next=6,ho(a,s);case 6:if(e.sent){e.next=11;break}return e.next=9,a.promises.writeFile(s,"");case 9:e.next=11;break;case 11:return e.abrupt("return",{output:""});case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ai=ri,oi=function(){var e=c(l().mark((function e(t,n,r){var a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yo(t,n,r("mkdir: %1: No such file or directory",Za().dirname(n)),r("mkdir: %1: Not a directory",Za().dirname(n)));case 2:if(!(a=e.sent)){e.next=5;break}return e.abrupt("return",a);case 5:return e.next=7,ho(t,n);case 7:if(!e.sent){e.next=9;break}return e.abrupt("return",r("mkdir: %1: File exists",n));case 9:return e.next=11,t.promises.mkdir(n);case 11:return e.abrupt("return",{output:""});case 12:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),ii=function(){var e=c(l().mark((function e(t,n,r){var a,o,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.split("/"),o=0;case 2:if(!(o<a.length)){e.next=16;break}return i=Za().join.apply(Za(),["/"].concat(p(a.slice(0,o+1)))),e.next=6,mo(t,i);case 6:if(!e.sent){e.next=8;break}return e.abrupt("return",r("mkdir: %1: Not a directory",i));case 8:return e.next=10,ho(t,i);case 10:if(e.sent){e.next=13;break}return e.next=13,t.promises.mkdir(i);case 13:o++,e.next=2;break;case 16:return e.abrupt("return",{output:""});case 17:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),si=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=Ta(n),u=s.flags,c=s.rest,d=u.includes("p"),f=oo(c[0],r,o)){e.next=6;break}return e.abrupt("return",i("usage: mkdir [-p] <directory_name>"));
2case 6:return e.abrupt("return",d?ii(a,f,i):oi(a,f,i));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),li=si,ui="mv: rename %1 to %2: No such file or directory",ci="mv: rename %1 to %2: Not a directory",di=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=oo(n[0],r,o),u=oo(n[1],r,o),s&&u){e.next=5;break}return e.abrupt("return",i("usage: mv <source> <target>"));case 5:return e.next=7,ho(a,s);case 7:if(e.sent){e.next=9;break}return e.abrupt("return",i(ui,s,u));case 9:return e.next=11,po(a,s);case 11:return c=e.sent,e.next=14,po(a,u);case 14:if(!e.sent){e.next=18;break}e.t0=Za().normalize(Za().join(u,Za().basename(s))),e.next=19;break;case 18:e.t0=u;case 19:return d=e.t0,e.next=22,yo(a,d,i(ui,s,d),i(ci,s,d));case 22:if(!(f=e.sent)){e.next=25;break}return e.abrupt("return",f);case 25:if(s!==d){e.next=27;break}return e.abrupt("return",i("mv: %1 and %2 are identical",s,d));case 27:return e.next=29,ho(a,d);case 29:if(!e.sent){e.next=50;break}return e.next=32,po(a,d);case 32:if(!e.sent){e.next=46;break}if(!c){e.next=43;break}return e.next=37,vo(a,d);case 37:if(!e.sent){e.next=40;break}e.next=41;break;case 40:return e.abrupt("return",i("mv: rename %1 to %2: Directory not empty",s,d));case 41:e.next=44;break;case 43:return e.abrupt("return",i("mv: rename %1 to %2: Is a directory",s,d));case 44:e.next=50;break;case 46:if(!c){e.next=50;break}return e.abrupt("return",i(ci,s,d));case 50:return e.next=52,a.promises.rename(s,d);case 52:return e.abrupt("return",{output:""});case 53:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fi=di,hi=function(){var e=c(l().mark((function e(t,n){var r,a,o,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,po(t,n);case 2:if(!e.sent){e.next=28;break}return e.next=5,t.promises.readdir(n);case 5:r=e.sent,a=i(r),e.prev=7,a.s();case 9:if((o=a.n()).done){e.next=15;break}return s=o.value,e.next=13,hi(t,Za().normalize(Za().join(n,s)));case 13:e.next=9;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),a.e(e.t0);case 20:return e.prev=20,a.f(),e.finish(20);case 23:if("/"===n){e.next=26;break}return e.next=26,t.promises.rmdir(n);case 26:e.next=30;break;case 28:return e.next=30,t.promises.unlink(n);case 30:case"end":return e.stop()}}),e,null,[[7,17,20,23]])})));return function(t,n){return e.apply(this,arguments)}}(),pi=function(){var e=c(l().mark((function e(t){var n,r,a,o,i,s,u,c,d,f,h;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.args,r=t.terminalConfig,a=t.fs,o=t.workDir,i=t.errorOutput,s=Ta(n),u=s.flags,c=s.rest,d=u.includes("r")||u.includes("R"),f=c[0],h=oo(f,r,o)){e.next=7;break}return e.abrupt("return",i("usage: rm [-rR] <file>"));case 7:return e.next=9,ho(a,h);case 9:if(e.sent){e.next=11;break}return e.abrupt("return",i("rm: %1: No such file or directory",h));case 11:return e.next=13,po(a,h);case 13:if(!e.sent){e.next=18;break}if(d){e.next=16;break}return e.abrupt("return",i("rm: %1: is a directory",h));case 16:if("."!==f&&".."!==f){e.next=18;break}return e.abrupt("return",i('rm: "." and ".." may not be removed'));case 18:return e.next=20,hi(a,h);case 20:return e.abrupt("return",{output:""});case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),mi={cal:Qa,cat:uo,cd:fo,cp:Po,date:Fo,echo:Ro,find:zo,logname:Uo,ls:ei,pwd:ni,touch:ai,mkdir:li,mv:fi,rm:pi},vi=function(e){return"".concat(e.shell,": no such file or directory: %1")},gi=function(e){return"".concat(e.shell,": is a directory: %1")},yi=function(e){return"".concat(e.shell,": not a directory: %1")},wi=function(e){return"".concat(e.shell,": an error occurred while writing to %1")},bi=function(){var e=c(l().mark((function e(t,n,r,a){var o,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=r,e.t0=a,!e.t0){e.next=6;break}return e.next=5,ho(t,n);case 5:e.t0=e.sent;case 6:if(!e.t0){e.next=11;break}return e.next=9,t.promises.readFile(n,{encoding:"utf8"});case 9:i=e.sent,o=i+o;case 11:return e.next=13,t.promises.writeFile(n,o,"utf8");case 13:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),xi=function(){var e=c(l().mark((function e(t,n,r,a,o){var i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=oo(o.path,t,r)){e.next=3;break}return e.abrupt("return",{error:io(vi(t),r,o.path)});case 3:return e.next=5,po(n,i);case 5:if(!e.sent){e.next=7;break}return e.abrupt("return",{error:io(gi(t),r,i)});case 7:return e.next=9,yo(n,i,io(vi(t),r,i),io(yi(t),r,i));case 9:if(!(s=e.sent)){e.next=12;break}return e.abrupt("return",{error:s});case 12:return e.prev=12,e.next=15,bi(n,i,a,o.append);case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(12),console.log(e.t0),e.abrupt("return",{error:io(wi(t),r,i)});case 21:return e.abrupt("return",{});case 22:case"end":return e.stop()}}),e,null,[[12,17]])})));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),ki=function(e,t,n,r,a,o,i,s,u){var d=function(){var o=c(l().mark((function o(i){var u,c,d;return l().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(u=i.command,c=i.args,u){o.next=3;break}return o.abrupt("return",{output:""});case 3:if(d=t[u]){o.next=6;break}return o.abrupt("return",{output:"Unsupported command: ".concat(u,"\n")});case 6:return o.prev=6,o.next=9,d({args:c,terminalConfig:e,fs:n,workDir:r,prevWorkDir:a,availableCommands:t,errorOutput:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return so.apply(void 0,[e,r].concat(n))},errorPrintf:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return io.apply(void 0,[e,r].concat(n))},getTerminalColumns:s});case 9:return o.abrupt("return",o.sent);case 12:return o.prev=12,o.t0=o.catch(6),console.error(o.t0),o.abrupt("return",{output:"".concat(e.shell,": an error occurred running the command\n")});case 16:case"end":return o.stop()}}),o,null,[[6,12]])})));return function(e){return o.apply(this,arguments)}}(),f=function(e,t){i("".concat(t).concat(e,"\n"))},h=function(){var t=c(l().mark((function t(a,o){var s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o){t.next=7;break}return t.next=3,xi(e,n,r,a,o);case 3:(s=t.sent).error&&i(s.error),t.next=8;break;case 7:i(a);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),p=function(e){e.workDir&&o(e.workDir)},m=function(e,t,a){null===u||void 0===u||u({command:e,parsedCommand:t,exitCode:0,workDirBeforeCommand:r,workDirAfterCommand:a.workDir||r,fs:n})},v=function(){var e=c(l().mark((function e(t,n,r){var a,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=_a(n),e.next=3,d(a);case 3:return o=e.sent,f(t,r),e.next=7,h(o.output,a.outputFile);case 7:p(o),m(t,a,o);case 9:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();return{onAbortInput:f,onRunCommand:v}};function ji(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Si=["className","children","contentRef"],Ci=(0,t.forwardRef)((function(e,t){var n=e.className,r=e.children,a=e.contentRef,o=ji(e,Si);return(0,Cr.jsx)("div",Tr(Tr({className:"relative whitespace-pre-wrap break-all bg-gray-800 font-mono text-gray-100 outline-none selection:bg-pink-500 selection:text-pink-100 ".concat(n||""),ref:t},o),{},{children:(0,Cr.jsx)("div",{className:"relative",ref:a,children:r})}))}));Ci.displayName="TerminalOutput";var Ei=Ci,_i=function(e){var t=e.isFull,n=e.children,r="\n"===n;return(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)("span",{className:t?"bg-gray-100 text-gray-800 selection:bg-gray-100 selection:text-pink-500":void 0,children:!r&&n||"".concat("\u200b").concat("\xa0")}),r&&n]})},Ti=(0,t.forwardRef)((function(e,t){var n=e.input,r=e.cursorPosition,a=e.isCursorFull;return(0,Cr.jsxs)("span",{ref:t,children:[n.slice(0,r),(0,Cr.jsx)(_i,{isFull:a,children:n.slice(r,r+1)}),n.slice(r+1)]})}));Ti.displayName="InputWithCursor";var Pi,Di,Ni=Ti,Ai=function(){var e=(0,t.useRef)(!0);return(0,t.useEffect)((function(){return function(){e.current=!0}}),[]),function(){var t=e.current;return e.current=!1,t}}
2,Mi=null!==(Pi=window.visualViewport)&&void 0!==Pi?Pi:window,Li=function(e){return Mi.addEventListener("resize",e,{passive:!0}),function(){return Mi.removeEventListener("resize",e)}};!function(e){e.SoftKeyboardOpen="SoftKeyboardOpen",e.DesktopWindowResize="DesktopWindowResize",e.InputOrOutputChanged="InputOrOutputChanged"}(Di||(Di={}));var Fi=function(e,n,r,a,o){var i=(0,t.useCallback)((function(t){if(!n.current)throw new Error("Reference to content is empty");e(n.current,t)}),[e]),s=Ai();(0,t.useLayoutEffect)((function(){s()||i(Di.InputOrOutputChanged)}),[r,a,o]),(0,t.useEffect)((function(){if(!na)return Li((function(){return i(Di.DesktopWindowResize)}))}),[i]);return{onFakeInputFocus:function(){var e=Li((function(){e(),i(Di.SoftKeyboardOpen)}))}}},Ii=(0,t.forwardRef)((function(e,t){return(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)("textarea",{ref:t,className:ka,onKeyDown:function(e){return e.stopPropagation()},id:"terminal-fta","aria-describedby":"terminal-fta-aria"}),(0,Cr.jsx)("label",{htmlFor:"terminal-fta",className:"sr-only",children:"Input"}),(0,Cr.jsx)("span",{id:"terminal-fta-aria",className:"sr-only",children:"Input"})]})}));Ii.displayName="FakeTextArea";var Ri=Ii,Oi=function(e){return e.target.focus()},zi=function(e,t){return new Promise((function(n,r){var a=!1,o=function r(){a=!0,e.removeEventListener("input",r);var o=e.value;e.value="",Oi(t),n(o)};e.value="",e.focus(),e.addEventListener("input",o),e.dispatchEvent(function(e){return new KeyboardEvent("keydown",{charCode:e.charCode,code:e.code,isComposing:e.nativeEvent.isComposing,key:e.key,keyCode:e.keyCode,location:e.location,repeat:e.repeat,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,detail:e.detail,view:e.nativeEvent.view,which:e.which,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.nativeEvent.composed})}(t)),setTimeout((function(){a||(e.removeEventListener("input",o),Oi(t),r(new Error("Clipboard text not received")))}),700)}))},Bi=function(){var e=(0,t.useRef)(null),n=function(){var t=c(l().mark((function t(n){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!ca(n)||!e.current){t.next=10;break}return t.prev=1,t.next=4,zi(e.current,n);case 4:return t.abrupt("return",t.sent);case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0);case 10:if("function"!==typeof(null===(r=navigator.clipboard)||void 0===r?void 0:r.readText)){t.next=20;break}return t.prev=11,t.next=14,navigator.clipboard.readText();case 14:return t.abrupt("return",t.sent);case 17:t.prev=17,t.t1=t.catch(11),console.error(t.t1);case 20:return t.abrupt("return","");case 21:case"end":return t.stop()}}),t,null,[[1,7],[11,17]])})));return function(e){return t.apply(this,arguments)}}();return{fakeTextArea:(0,Cr.jsx)(Ri,{ref:e}),getClipboardText:n}},Ui=function(e){var t=window.scrollX,n=window.scrollY;e.focus({preventScroll:!0}),window.scrollTo(t,n)},Wi=function(){var e=window.getSelection();e&&!e.isCollapsed&&e.removeAllRanges()},Vi=function(e,n,r,a){(0,t.useImperativeHandle)(e,(function(){return{runCommand:function(e){return a(e)},dispatchEvent:function(){for(var e,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return null===(e=n.current)||void 0===e?void 0:e.dispatchEvent.apply(e,r)},focus:function(){for(var e,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return null===(e=n.current)||void 0===e?void 0:e.focus.apply(e,r)},scrollToBottom:function(e){var t;null===(t=n.current)||void 0===t||t.scrollTo({left:0,top:n.current.scrollHeight,behavior:e?"smooth":"auto"})},getCommandList:function(){return r}}}),[a])};"undefined"===typeof window&&console.log("");var Hi=(0,t.forwardRef)((function(e,n){var r=e.config,a=e.additionalCommands,o=e.fs,i=e.initialWorkDir,s=e.className,l=e.children,u=e.onShouldScrollToBottom,c=e.onCommandExecuted,d=e.onWorkDirChanged,f=(0,t.useRef)(null),h=(0,t.useRef)(null),p=(0,t.useRef)(null),m=Ca(),v=m.output,g=m.writeToStdout,y=Ea(r,i,d),w=y.workDir,b=y.prevWorkDir,x=y.setWorkDir,k=Tr(Tr({},mi),a),j=ki(r,k,o,w,b,x,g,(function(){return xa(f.current)}),c),S=j.onRunCommand,C=j.onAbortInput,E=Bi(),_=E.fakeTextArea,T=E.getClipboardText,P=ha(r,w,S,C,T),D=P.prefix,N=P.userIn
2put,A=P.cursorPosition,M=P.isCursorFull,L=P.onKeyDown,F=P.onMobileInput,I=P.onRunCommandProgrammatically;Vi(n,f,k,I);var R=ba(p,F),O=R.hasSoftwareKeyboard,z=R.showFakeInput,B=R.onDivClick,U=R.onDivMouseDown,W=R.onFakeInputKeyDown,V=R.onFakeInputChange,H=Fi(u,h,v,N,A).onFakeInputFocus;return(0,t.useEffect)((function(){f.current&&Ui(f.current)}),[]),(0,t.useEffect)((function(){!O&&f.current&&Ui(f.current)}),[O]),(0,t.useEffect)((function(){Wi()}),[v,D,N,A]),(0,Cr.jsxs)(Ei,{ref:f,className:s,contentRef:h,tabIndex:0,onClick:B,onMouseDown:U,onKeyDown:L,children:[l,v,D,(0,Cr.jsx)(Ni,{input:N,cursorPosition:A,isCursorFull:M}),z&&(0,Cr.jsx)(Sa,{ref:p,onKeyDown:W,onChange:V,onFocus:H}),_]})}));Hi.displayName="Terminal";var Ki,Gi=Hi,$i=1024,qi=function(){var e=ct((0,t.useState)(Date.now()),1)[0],n=(0,t.useRef)(null);return{terminalRef:n,scrollToBottom:function(t,r){var a,o;Date.now()<e+500||(window.innerWidth<$i&&window.scrollTo({left:0,top:document.body.scrollHeight-(qr?window.visualViewport?window.visualViewport.height:window.innerHeight:0),behavior:"smooth"}),a=n.current,o=r===Di.SoftKeyboardOpen,null===a||void 0===a||a.scrollToBottom(o))}}},Qi=function(){var e=(0,t.useRef)([]),n=(0,t.useCallback)((function(t){return e.current.push(t),function(){e.current=e.current.filter((function(e){return e!==t}))}}),[e]),r=(0,t.useCallback)((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.current.forEach((function(e){return e.apply(void 0,n)}))}),[n]);return{onCommandExecuted:r,addOnCommandExecutedListener:n}},Yi="mr-6 text-base leading-none text-gray-500 underline-offset-2 last-of-type:mr-0 hover:text-gray-800",Zi=function(e){var t=e.to,n=e.children;return(0,Cr.jsx)("a",{href:t,target:"_blank",rel:"noopener",className:Yi,children:n})},Ji=function(){return(0,Cr.jsxs)("div",{className:"mt-12 hidden flex-grow select-none items-end lg:flex",children:[(0,Cr.jsx)(Zi,{to:"https://www.terminaltemple.com",children:"Standalone terminal"}),(0,Cr.jsx)(Zi,{to:"/about",children:"About"}),(0,Cr.jsx)(Zi,{to:"/imprint",children:"Imprint"}),(0,Cr.jsx)(Zi,{to:"/privacy",children:"Privacy"})]})},Xi=function(){var e=ct((0,t.useState)(!1),2),n=e[0],r=e[1];return(0,Cr.jsxs)("nav",{className:"mb-8 flex justify-between",children:[(0,Cr.jsx)(Lr,{to:"/",className:"text-xl font-bold text-green-500 hover:text-green-600",children:"Terminal Tutor"}),(0,Cr.jsx)("button",{onClick:function(){return r(!0)},className:"lg:hidden",children:(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,className:"h-6 w-6 stroke-gray-500 hover:stroke-gray-700",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,Cr.jsxs)("div",{className:"".concat(n?"block":"hidden"," fixed inset-0 z-10 flex flex-col items-center justify-center bg-green-500 p-8 text-3xl font-medium text-white"),onClick:function(){return r(!1)},children:[(0,Cr.jsx)("button",{className:"absolute top-4 right-4",children:(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-8 w-8",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,Cr.jsx)(Lr,{to:"/",className:"mb-4 last-of-type:mb-0",children:"Home"}),(0,Cr.jsx)("a",{href:"https://www.terminaltemple.com",target:"_blank",rel:"noopener",className:"mb-4 last-of-type:mb-0",children:"Standalone terminal"}),(0,Cr.jsx)("a",{href:"/about",target:"_blank",rel:"noopener",className:"mb-4 last-of-type:mb-0",children:"About"}),(0,Cr.jsx)("a",{href:"/imprint",target:"_blank",rel:"noopener",className:"mb-4 last-of-type:mb-0",children:"Imprint"}),(0,Cr.jsx)("a",{href:"/privacy",target:"_blank",rel:"noopener",className:"mb-4 last-of-type:mb-0",children:"Privacy Policy"})]})]})},es=function(){var e=(0,t.useRef)([]);return{addKeyboardShortcutHandler:(0,t.useCallback)((function(t){return e.current.push(t),function(){e.current=e.current.filter((function(e){return e!==t}))}}),[e]),executeKeyboardShortcutHandlers:(0,t.useCallback)((function(t){var n,r=i(e.current);try{for(r.s();!(n=r.n()).done;){if((0,n.value)(t))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}),[e])}},ts=function(e,t){var n,r=(n=e,new KeyboardEvent("keydown",{charCo
2de:n.charCode,code:n.code,isComposing:n.isComposing,key:n.key,keyCode:n.keyCode,location:n.location,repeat:n.repeat,altKey:n.altKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,shiftKey:n.shiftKey,detail:n.detail,view:n.view,which:n.which,bubbles:n.bubbles,cancelable:n.cancelable,composed:n.composed}));t.focus(),t.dispatchEvent(r)},ns=function(e,n){(0,t.useEffect)((function(){var t=function(t){if(!n(t)){var r=e.current;r&&!function(e){return e.key===Rr.Tab||e.key===Rr.Shift||e.key===Rr.Control||e.key===Rr.Alt||e.key===Rr.Meta||"c"===e.key&&(e.ctrlKey||e.metaKey)}(t)&&ts(t,r)}};return document.body.addEventListener("keydown",t),function(){return document.body.removeEventListener("keydown",t)}}),[])},rs=function(e){return function(t){e(t),t.stopPropagation()}},as="shell-tutorial_progressCurrentStep",os="shell-tutorial_workDir",is=function(){return localStorage.getItem(os)||""},ss=function(){var e=ct((0,t.useState)(is),2),n=e[0],r=e[1],a=(0,t.useCallback)((function(e){r(e),function(e){localStorage.setItem(os,e)}(e)}),[]);return{workDir:n,onWorkDirChanged:a}},ls=function(e,n){(0,t.useEffect)((function(){c(l().mark((function t(){var r,a,o,i,s,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.current){t.next=2;break}throw new Error("Terminal ref not set");case 2:return r=n.current.getCommandList(),t.prev=3,t.next=6,po(e,g);case 6:if(t.sent){t.next=9;break}return t.next=9,e.promises.mkdir(g);case 9:a=Object.keys(r),o=0,i=a;case 11:if(!(o<i.length)){t.next=22;break}return s=i[o],u="".concat(g,"/").concat(s),t.next=16,ho(e,u);case 16:if(t.sent){t.next=19;break}return t.next=19,e.promises.writeFile(u,"");case 19:o++,t.next=11;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(3),console.error(t.t0);case 27:case"end":return t.stop()}}),t,null,[[3,24]])})))()}),[])},us=function(e){var n=e.fs,r=qi(),a=r.terminalRef,o=r.scrollToBottom,i=(0,t.useRef)(null),s=Qi(),l=s.onCommandExecuted,u=s.addOnCommandExecutedListener,c=ss(),d=c.workDir,f=c.onWorkDirChanged,h=es(),p=h.addKeyboardShortcutHandler,m=h.executeKeyboardShortcutHandlers;ns(a,m);var v={addOnCommandExecutedListener:u,contentPaneRef:i,terminalRef:a,workDir:d,fs:n,addKeyboardShortcutHandler:p};return ls(n,a),(0,Cr.jsxs)("div",{className:"flex h-px min-h-full flex-col outline-0 lg:flex-row",tabIndex:0,children:[(0,Cr.jsx)("div",{className:"relative lg:h-full lg:w-1/2",children:(0,Cr.jsxs)("div",{className:"p-4 lg:flex lg:h-full lg:flex-col lg:overflow-y-auto lg:p-8",ref:i,children:[(0,Cr.jsx)(Xi,{}),(0,Cr.jsx)(yr,{context:v}),(0,Cr.jsx)(Ji,{})]})}),(0,Cr.jsx)("div",{className:"h-1/2 flex-shrink-0 flex-grow pt-4 lg:h-full lg:w-1/2 lg:flex-grow-0 lg:border-l-4 lg:border-l-gray-800 lg:pt-0",onKeyDown:rs(m),children:(0,Cr.jsx)(Gi,{ref:a,config:Ve,additionalCommands:{},fs:n,initialWorkDir:d,className:"h-full overflow-y-scroll",onShouldScrollToBottom:o,onCommandExecuted:l,onWorkDirChanged:f})})]})},cs=n(1168);!function(e){e.intro="intro",e.chapterOverview="chapterOverview",e.chapterSummary="chapterSummary",e.congrats="congrats",e.explanation="explanation",e.repetition="repetition",e.exercise="exercise"}(Ki||(Ki={}));Ki.intro,Ki.chapterOverview,Ki.chapterSummary,Ki.congrats;var ds=[Ki.explanation,Ki.repetition],fs=[Ki.exercise],hs=function(e){return void 0!==e.command&&void 0!==e.verify},ps=function(e){var t=e.children;return(0,Cr.jsx)("p",{className:"mb-4",children:t})},ms=function(e){var t=e.children;return(0,Cr.jsx)("ul",{className:"mb-4 list-outside list-disc pl-6",children:t})},vs=function(e){var t=e.children;return(0,Cr.jsx)("li",{className:"mb-2 leading-relaxed last:mb-0",children:t})},gs=function(e){var t=e.children;return(0,Cr.jsx)("code",{className:"whitespace-nowrap rounded-md bg-gray-200 px-2 py-0.5 font-mono text-green-600 lg:py-1",children:t})},ys=function(e){var t=e.children;return(0,Cr.jsx)("span",{className:"font-bold",children:t})},ws=function(e){var t=e.children;return(0,Cr.jsxs)("div",{className:"my-6 rounded border-l-8 border-l-green-500 bg-green-50 p-6 pb-2 text-green-800",children:[(0,Cr.jsxs)("h3",{className:"mb-4 flex items-center text-xl font-medium",children:[(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"mr-1 inline-block h-6 w-6 text-green-800",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"})}),"Tip"]}),(0,Cr.jsx)("div",{className:"mb-4 text-green-700",children:t})]})},bs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return e.length===t.length&&e.every((function(r,a){return n(e[a],t[a])}
2))},xs=function e(t,n){return bs(t,n,(function(t,n){return Array.isArray(t)&&Array.isArray(n)?e(t,n):t===n}))},ks=function(e,t){return Ta(e.parsedCommand.args).flags.includes(t)},js=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Ta(e.parsedCommand.args),a=r.rest,o=oo(a[n],Ve,e.workDirBeforeCommand);return o===t},Ss=function(e,t){return bs(t,e.parsedCommand.args)},Cs=function(e,t){return bs(t,Ta(e.parsedCommand.args).rest)},Es={title:"Interacting with the terminal",slug:"interacting-with-terminal",duration:30,steps:[{heading:"Interacting with the terminal",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"In this chapter we'll learn the basics of interacting with the terminal and running commands."}),(0,Cr.jsx)(ps,{children:"We will learn:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"What commands are"}),(0,Cr.jsx)(vs,{children:"How we can send instructions to our computer via commands"}),(0,Cr.jsx)(vs,{children:"What the prompt statement is and how we read it"}),(0,Cr.jsx)(vs,{children:"How we can customize the behavior of commands through arguments and options"})]})]})},{heading:"Running our first command",slug:"running-first-command",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"We interact with the terminal by typing commands on our keyboard. The mouse usually cannot be used in the terminal."}),(0,Cr.jsx)(ps,{children:"Commands are textual instructions that the terminal can understand and execute."}),(0,Cr.jsxs)(ps,{children:["Let's run our first command ",(0,Cr.jsx)(gs,{children:"date"})," which tells us the current date and time."]}),(0,Cr.jsxs)(ps,{children:["Type the text from the green box into the terminal"," ",(0,Cr.jsx)("span",{className:"hidden lg:inline",children:"on the right"}),(0,Cr.jsx)("span",{className:"lg:hidden",children:"below"}),". Then press the Enter key."]})]}),command:"date",showEnter:!0,verify:function(e){return"date"===e.parsedCommand.command}},{heading:"Command output",slug:"command-output",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["When you pressed Enter, the terminal analyzed the"," ",(0,Cr.jsx)(gs,{children:"date"})," command that you typed. It checked if it can find a program called ",(0,Cr.jsx)(gs,{children:"date"})," on your computer. Because it found one, it ran that program. Now, we see a blinking cursor again, indicating that ",(0,Cr.jsx)(gs,{children:"date"})," ","finished running."]}),(0,Cr.jsxs)(ps,{children:['Usually, when we run commands, they produce text that we can see in the terminal. We call that text the "output" of those commands. The output of ',(0,Cr.jsx)(gs,{children:"date"})," is the current date and time. You can find it below the command that you typed."]}),(0,Cr.jsxs)(ps,{children:["You might notice that ",(0,Cr.jsx)(gs,{children:"date"})," gave us the time from the moment at which it was run and that its output is not a clock that updates every second. That is because the output of a command does not update after it finishes running."]}),(0,Cr.jsxs)(ps,{children:["To get updated output, or in our case the updated time, we need to run ",(0,Cr.jsx)(gs,{children:"date"})," again. Let's do that. Type the text from the green box into the terminal and press the Enter key."]})]}),command:"date",showEnter:!0,verify:function(e){return"date"===e.parsedCommand.command}},{heading:"The prompt statement",slug:"prompt-statement",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["You might have noticed that there's already some text in the terminal when you type commands. It looks like this:"," ",(0,Cr.jsxs)(gs,{children:[Ve.user,"@",Ve.host," ~ $"]})]}),(0,Cr.jsx)(ps,{children:"That is the prompt statement. It gives us important information:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsxs)(vs,{children:[(0,Cr.jsx)(gs,{children:Ve.user})," \u2014 the name of our user on the computer"]}),(0,Cr.jsxs)(vs,{children:[(0,Cr.jsx)(gs,{children:"@"})," \u2014 separates the user name from what comes after it"]}),(0,Cr.jsxs)(vs,{children:[(0,Cr.jsx)(gs,{children:Ve.host})," \u2014 the name of our computer"]}),(0,Cr.jsxs)(vs,{children:[(0,Cr.jsx)(gs,{children:"~"})," \u2014 the directory that we are in (we'll learn more about this in chapter 2)"]}),(0,Cr.jsxs)(vs,{children:[(0,Cr.jsx)(gs,{children:"$"})," \u2014 indicates that we can now type our next command"]})]}),(0,Cr.jsx)(ps,{children:"In a terminal on your own computer, these names will be different."}),(0,Cr.jsxs)(ps,{children:["We can use the ",(0,Cr.jsx)(gs,{children:"logname"}),' command (short for "',(0,Cr.jsx)(ys,{children:"log"}),"in ",(0,Cr.jsx)(ys,{children:"name"}),'") to verify that the user name above is correct.'," ",(0,Cr.jsx)(gs,{children:"logname"})," gives us the name of the user that we are currently logged in as."]}),(0,Cr.jsx)(ps,{children:"Please type the following command and press Enter:"})]}),command:"logname",showEnter:!0,verify:function(e){return"logname"===e.parsedCommand.command}},{heading:"Getting the date and time",slug:"date-time",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Throughout the tutorial, we'll sprinkle in exercises where you can practice what you've learned. This is the first one."}),(0,Cr.jsx)(ps,{children:"Please run the command that gets us the current date and time."}),(0,Cr.jsx)(ws,{children:(0,Cr.jsxs)(ps,{children:["You can use the ",(0,Cr.jsx)(gs,{children:"Arrow Up"})," and"," ",(0,Cr.jsx)(gs,{children:"Arrow Down"})," keys to bring up previously entered commands."]})}),(0,Cr.jsx)(ps,{children:"If you need help, click the three question marks below to reveal the solution."})]}),command:"date",showEnter:!0,type:Ki.exercise,verify:function(e){return"date"===e.parsedCommand.command}},{heading:"The cal command",slug:"cal-command",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Let's introduce another command that will be the basis for our next explanations:"}),(0,Cr.jsxs)(ps,{children:["The ",(0,Cr.jsx)(gs,{children:"cal"}),' command (short for "',(0,Cr.jsx)(ys,{children:"cal"}
2),"endar\") shows a calendar of the current month. Let's run it!"]}),(0,Cr.jsx)(ps,{children:"From now on, please always run the command from the green box at the end of each step. The tutorial will stop explicitly stating that."})]}),command:"cal",showEnter:!0,verify:function(e){return"cal"===e.parsedCommand.command}},{heading:"Introducing arguments",slug:"introducing-arguments",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Having a calendar that only lets us view the current month would be quite limiting. Therefore, ",(0,Cr.jsx)(gs,{children:"cal"})," also lets us obtain calendars for different months."]}),(0,Cr.jsxs)(ps,{children:["We can get calendars for all months of the year 2050 at once by running ",(0,Cr.jsx)(gs,{children:"cal 2050"}),"."]}),(0,Cr.jsxs)(ps,{children:["We still call ",(0,Cr.jsx)(gs,{children:"cal"})," by its name but, separated from the command name by a space, we also specify a year."]}),(0,Cr.jsxs)(ps,{children:['The year is called an "argument" to the'," ",(0,Cr.jsx)(gs,{children:"cal"}),' command. Arguments let us change the behavior of commands that we run. Arguments are sometimes also called "parameters".']}),(0,Cr.jsx)(ps,{children:"Let's try it!"}),(0,Cr.jsxs)(ws,{children:[(0,Cr.jsx)(ps,{children:"Please note that exact spelling is very important in the terminal. This includes:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"Spelling command names right"}),(0,Cr.jsx)(vs,{children:"Separating arguments from command names with spaces"}),(0,Cr.jsx)(vs,{children:"Proper capitalization (upper-case vs. lower-case letters)"})]}),(0,Cr.jsx)(ps,{children:"If you misspell a command, you might see very cryptic error messages. In that case, double-check your spelling."})]})]}),command:"cal 2050",verify:function(e){return"cal"===e.parsedCommand.command&&Ss(e,["2050"])}},{heading:"Passing a different year as the argument",slug:"different-year-argument",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Cool! We specified 2050 as an argument and"," ",(0,Cr.jsx)(gs,{children:"cal"})," showed us all months of 2050."]}),(0,Cr.jsxs)(ps,{children:["The ability to change the year makes ",(0,Cr.jsx)(gs,{children:"cal"})," a lot more powerful than if it only supported showing the current month."]}),(0,Cr.jsxs)(ps,{children:['When we speak about using arguments, we say that we "pass" them to a command. In our case, we passed the year 2050 as an argument to ',(0,Cr.jsx)(gs,{children:"cal"}),"."]}),(0,Cr.jsxs)(ps,{children:["Let's practice using arguments. Let's pass the year 2055 to ",(0,Cr.jsx)(gs,{children:"cal"}),"."]})]}),command:"cal 2055",verify:function(e){return"cal"===e.parsedCommand.command&&Ss(e,["2055"])}},{heading:"Getting calendars for 2060",slug:"calendars-2060",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Let's do our second exercise! Can you get calendars for all months of the year 2060?"}),(0,Cr.jsx)(ps,{children:"As before, if you need help, click the three question marks."})]}),command:"cal 2060",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&Ss(e,["2060"])}},{heading:"Passing multiple arguments to a command",slug:"multiple-arguments",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["What if we only want the month July 2050? Luckily,"," ",(0,Cr.jsx)(gs,{children:"cal"})," supports that in the form of"," ",(0,Cr.jsx)(gs,{children:"cal 7 2050"}),"."]}),(0,Cr.jsxs)(ps,{children:["Here, we pass two arguments to ",(0,Cr.jsx)(gs,{children:"cal"}),":"]}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"The month \u2014 July is the 7th month of the year."}),(0,Cr.jsx)(vs,{children:"The year \u2014 2050."})]}),(0,Cr.jsx)(ps,{children:"Again, we use spaces to separate the command name and each of the arguments from each other."}),(0,Cr.jsxs)(ps,{children:["With multiple arguments, we need to be careful to pass the arguments in the right order. For ",(0,Cr.jsx)(gs,{children:"cal"}),", we pass the month before the year. Without that rule,"," ",(0,Cr.jsx)(gs,{children:"cal"})," would not be able to determine if the"," ",(0,Cr.jsx)(gs,{children:"7"})," in ",(0,Cr.jsx)(gs,{children:"cal 7 4"})," is the month or the year. The order is important."]}),(0,Cr.jsx)(ps,{children:"Let's obtain the calendar for July 2050!"})]}),command:"cal 7 2050",verify:function(e){return"cal"===e.parsedCommand.command&&Ss(e,["7","2050"])}},{heading:"Showing November 1999",slug:"november-1999",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you figure out how to get a calendar for November 1999?"})}),command:"cal 11 1999",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&Ss(e,["11","1999"])}}
2,{heading:"Showing September 476",slug:"september-476",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you show a calendar for September of year 476?"})}),command:"cal 9 476",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&Ss(e,["9","476"])}},{heading:"cal without arguments",slug:"cal-without-arguments",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Before we go to the next step, let's remind ourselves of the output of ",(0,Cr.jsx)(gs,{children:"cal"})," without any arguments."]}),(0,Cr.jsx)(ps,{children:"It displays a single calendar for the current month of the current year. Let's run it again!"}),(0,Cr.jsx)(ws,{children:(0,Cr.jsx)(ps,{children:"During the tutorial, you can run any commands at any time. If you ever want to run a previous command again, feel free to do so."})})]}),type:Ki.repetition,command:"cal",verify:function(e){return"cal"===e.parsedCommand.command}},{heading:"Introducing options",slug:"introducing-options",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:[(0,Cr.jsx)(gs,{children:"cal"})," allows us to pass an argument"," ",(0,Cr.jsx)(gs,{children:"-3"}),' (for "',(0,Cr.jsx)(ys,{children:"three"})," ",'months") that tells ',(0,Cr.jsx)(gs,{children:"cal"})," to include the previous month and the following month in its output in addition to the month that it would normally show. The command is"," ",(0,Cr.jsx)(gs,{children:"cal -3"}),"."]}),(0,Cr.jsxs)(ps,{children:["Arguments like ",(0,Cr.jsx)(gs,{children:"-3"})," that start with a dash"," ",(0,Cr.jsx)(gs,{children:"-"}),' are called "options". Sometimes, people might also call certain options "flags" or "switches".']}),(0,Cr.jsxs)(ps,{children:["Let's use the ",(0,Cr.jsx)(gs,{children:"-3"})," option with"," ",(0,Cr.jsx)(gs,{children:"cal"}),"."]})]}),command:"cal -3",verify:function(e){return"cal"===e.parsedCommand.command&&ks(e,"3")}},{heading:"cal without options",slug:"cal-no-options",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Let's repeat what we just did."}),(0,Cr.jsxs)(ps,{children:["Run ",(0,Cr.jsx)(gs,{children:"cal"})," without any options to show only the current month."]})]}),command:"cal",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&!ks(e,"3")&&Ss(e,[])}},{heading:"Get cal to show 3 months",slug:"cal-three-months",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Now, use the ",(0,Cr.jsx)(gs,{children:"-3"})," option to show the surrounding months as well."]})}),command:"cal -3",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&ks(e,"3")}},{heading:"Combining options with other arguments",slug:"options-other-arguments",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Options can be combined with other arguments. Let's do that with ",(0,Cr.jsx)(gs,{children:"cal"}),"."]}),(0,Cr.jsxs)(ps,{children:["Earlier, ",(0,Cr.jsx)(gs,{children:"cal 7 2050"})," showed the calendar for July 2050. If we add the ",(0,Cr.jsx)(gs,{children:"-3"})," option and run"," ",(0,Cr.jsx)(gs,{children:"cal -3 7 2050"}),", it will also show the months surrounding July."]}),(0,Cr.jsxs)(ps,{children:["When combining options with other arguments, most commands expect options to be listed before the non-option arguments. Hence, we place ",(0,Cr.jsx)(gs,{children:"-3"})," before the month and the year."]})]}),command:"cal -3 7 2050",verify:function(e){return"cal"===e.parsedCommand.command&&ks(e,"3")&&Cs(e,["7","2050"])}},{heading:"The three months around January 2035",slug:"january-2035",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you show calendars for the three months around January 2035?"})}),command:"cal -3 1 2035",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&ks(e,"3")&&Cs(e,["1","2035"])}},{heading:"October 2007 \u2014 no other months",slug:"october-2007",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you show a calendar for October 2007 without any additional months?"})}),command:"cal 10 2007",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&!ks(e,"3")&&Cs(e,["10","2007"])}},{heading:"The three months around August 2011",slug:"august-2011",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you show a calendar for the three months around August 2011?"})}),command:"cal -3 8 2011",type:Ki.exercise,verify:function(e){return"cal"===e.parsedCommand.command&&ks(e,"3")&&Cs(e,["8","2011"])}},{heading:"Interacting with the terminal",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Amazing! That was chapter 1. \ud83c\udf89"}),(0,Cr.jsx)(ps,{children:"We learned the following:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"The terminal allows us to interact with the computer through text-based commands."}),(0,Cr.jsx)(vs,{children:"When running commands, we need to pay attention to proper spelling and capitalization."}),(0,Cr.jsx)(vs,{children:"Commands can produce output."}),(0,Cr.jsx)(vs,{children:"We can change the behavior of most commands through arguments."}),(0,Cr.jsx)(vs,{children:"We separate the command name and each argument from each other with spaces."}),(0,Cr.jsxs)(vs,{children:["Arguments that start with a dash ",(0,Cr.jsx)(gs,{children:"-"}),' are called "options".']})]}),(0,Cr.jsx)(ps,{children:"Throughout the next chapters, we'll learn commands that are more useful in everyday life than showing calendars."})]})}]},_s=function(e){var t=e.node,n=t.title,r=t.path,a=ct(e.placement,2),o=a[0],i=a[1],s=e.workDir,l=e.homeDir,u=e.className,c=r===l,d=r===s;return(0,Cr.jsxs)("div",{className:"absolute mt-2 inline-block min-w-[6rem] whitespace-nowrap rounded-md bg-green-400 p-8 px-6 py-4 text-center font-mono text-lg font-bold text-gray-800 text-gray-800 selection:bg-green-50 selection:text-green-500 lg:text-xl ".concat(u),style:{left:o,top:i},children:[c&&(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"mr-2 mb-1 inline-block h-5 w-5 stroke-2",children:[(0,Cr.jsx)("title",{children:"This is our user's home directory."}),(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})]}),d&&(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"mr-2 mb-1 inline-block h-5 w-5 stroke-2",children:[(0,Cr.jsx)("title",{children:"This is our current working directory."}),(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})]}),n,(0,Cr.jsx)("div",{className:"absolute -top-2 left-0 -z-10 h-3 w-10 rounded-t-md bg-green-500"})]})},Ts=function(){var e=0;return function(){return"dir-tree-".concat(e=(e+1)%1e3)}}(),Ps=function(e,t){return"dir-tree-node-".concat(e,"-").concat(t)},Ds=function(e){var t=e.x1,n=e.y1,r=e.x2,a=e.y2;return(0,Cr.jsx)("line",{x1:t,y1:n,x2:r,y2:a,strokeLinecap:"square",strokeWidth:4,className:"stroke-gray-400"})},Ns=function(e){var t=function(e,t){var n=ct(e,4),r=n[0],a=n[1],o=n[2],i=n[3],s=ct(t,3),l=s[0],u=s[1],c=r+o/2,d=a+i,f=l+s[2]/2,h=(c+f)/2;return Math.abs(c-f)<2?[h,d,h,u]:[c,d,f,u]}(e.fromCoordinates,e.toCoordinates),n=ct(t,4),r=n[0],a=n[1],o=n[2],i=n[3],s=a+(i-a)/2;return(0,Cr.jsx)("svg",{className:"absolute left-0 top-0 -z-10 ml-0",width:Math.max(r,o)+2,height:Math.max(a,i)+2,children:r===o?(0,Cr.jsx)(Ds,{x1:r,y1:a,x2:o,y2:i}):(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(Ds,{x1:r,y1:a,x2:r,y2:s}),(0,Cr.jsx)(Ds,{x1:r,y1:s,x2:o,y2:s}),(0,Cr.jsx)(Ds,{x1:o,y1:s,x2:o,y2:i})]})})},As=function(){var e=ct((0,t.useState)(window.innerWidth),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){var e=function(){return r(window.innerWidth)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),n},Ms=function e(t){var n,r,a=[[t]],o=i(null!==(n=t.children)&&void 0!==n?n:[]);try{for(o.s();!(r=o.n()).done;){var s=e(r.value);
2s[0].forEach((function(e){e.parent=t}));for(var l=0;l<s.length;l++){var u;a[l+1]||(a[l+1]=[]),(u=a[l+1]).push.apply(u,p(s[l]))}}}catch(c){o.e(c)}finally{o.f()}return a},Ls=function(e,n,r){var a=ct((0,t.useState)(void 0),2),o=a[0],i=a[1],s=ct((0,t.useState)(0),2),l=s[0],u=s[1];return(0,t.useLayoutEffect)((function(){var t,n=e.map((function(e,t){return e.map((function(e,n){var a=document.querySelector(function(e,t,n){return".".concat(n," .").concat(Ps(e,t))}(t,n,r));if(!(a instanceof HTMLElement))throw new Error("Node not found");return a}))})),a=(t=n[0][0],parseFloat(window.getComputedStyle(t).getPropertyValue("margin-top").replace("px",""))),s=e.map((function(e,t){return e.map((function(e,r){var o=n[t][r];if(!(o.offsetParent instanceof HTMLElement))throw new Error("Node has no offset parent");return[o.offsetLeft+o.offsetParent.offsetLeft,o.offsetTop+o.offsetParent.offsetTop,o.offsetWidth,o.offsetHeight,a]}))}));o&&xs(o,s)||i(s),o||u((function(e){return e+1}))}),[n,l,r]),o},Fs=function(e){return e.reduce((function(e,t){return e+t}),0)},Is=function(e){return Fs(e.map((function(e){return ct(e,1)[0]})))+16*(e.length-1)},Rs=function(e,t){if(!t)return e.map((function(e){return e.map((function(){return[0,0]}))}));for(var n=[],r=function(){if(0===a)return n.push([[0,0]]),"continue";var r,o,i,s,l,u=(r=e[a],o=t[a],i=e[a-1],s=t[a-1],l=n[a-1],r.map((function(e,t){var n=e.parent;if(!n)throw new Error("Node has no parent");var a=i.indexOf(n),u=l[a],c=s[a],d=u[0]+c[0]/2,f=r.map((function(e,t){return e.parent===n?t:-1})).filter((function(e){return-1!==e})),h=f.slice(0,f.indexOf(t));return d-Is(f.map((function(e){return o[e]})))/2+Is(h.map((function(e){return o[e]})))+16}))),c=Fs(t.slice(0,a).map((function(e){return e[0][1]+48})));n.push(u.map((function(e){return[e,c]})))},a=0;a<e.length;a++)r();return function(e){var t=Math.min.apply(Math,p(e.map((function(e){return e[0][0]}))));return e.map((function(e){return e.map((function(e){var n=ct(e,2),r=n[0],a=n[1];return[r-t,a]}))}))}(n)},Os=function(e){var n,r=e.paths,a=e.homeDir,o=e.workDir,s=As(),l=ct((0,t.useState)(Ts),1)[0],u=function(e){var t,n={title:"/",path:"/"},r=i(e);try{for(r.s();!(t=r.n()).done;){var a,o=t.value.split("/"),s=n,l="",u=i(o);try{var c=function(){var e=a.value;if(""===e)return"continue";l+="/".concat(e),s.children||(s.children=[]);var t=s.children.find((function(t){return t.title===e}));t||(t={title:e,path:l,parent:s},s.children.push(t),s.children.sort((function(e,t){return e.parent&&t.parent&&e.parent.title.localeCompare(t.parent.title)||e.title.localeCompare(t.title)}))),s=t};for(u.s();!(a=u.n()).done;)c()}catch(d){u.e(d)}finally{u.f()}}}catch(d){r.e(d)}finally{r.f()}return n}(r),c=Ms(u),d=function(e){for(var t=[],n=1;n<e.length;n++)for(var r=0;r<e[n].length;r++){var a=e[n][r];if(!a.parent)throw new Error("Directory has no parent");var o=e[n-1].indexOf(a.parent);t.push([n-1,o,n,r])}return t}(c),f=Ls(c,s,l),h=null===(n=f)||void 0===n?void 0:n.map((function(e){return e.map((function(e){var t=ct(e,4);return[t[2],t[3]]}))})),m=Rs(c,h),v=function(e,t){var n,r,a=null!==(n=null===t||void 0===t?void 0:t[0][0][4])&&void 0!==n?n:0;return[Math.max.apply(Math,p(e.map((function(e,n){var r;return e[e.length-1][0]+(null!==(r=null===t||void 0===t?void 0:t[n][e.length-1][2])&&void 0!==r?r:0)})))),a+e[e.length-1][0][1]+(null!==(r=null===t||void 0===t?void 0:t[e.length-1][0][3])&&void 0!==r?r:0)]}(m,f),g=ct(v,2),y=g[0],w=g[1];return(0,Cr.jsxs)("div",{className:"relative my-8 w-full overflow-x-auto ".concat(l),children:[(0,Cr.jsx)("div",{className:"relative mx-auto",style:{width:y,height:w},children:c.map((function(e,t){return e.map((function(e,n){return(0,Cr.jsx)(_s,{node:e,placement:m[t][n],homeDir:a,workDir:o,className:Ps(t,n)},"".concat(t,"-").concat(n))}))}))}),f?(0,Cr.jsx)("div",{children:d.map((function(e,t){var n=ct(e,4),r=n[0],a=n[1],o=n[2],i=n[3];return(0,Cr.jsx)(Ns,{fromCoordinates:f[r][a],toCoordinates:f[o][i]},t)}))}):null]})},zs=function(e){var n=e.path.split("/").map((function(e){return""===e?"/":e}));return(0,Cr.jsx)("code",{className:"mb-4 block overflow-x-hidden p-4 font-mono text-lg font-bold sm:text-2xl",children:n.map((function(e,r){return(0,Cr.jsxs)(t.Fragment,{children:[(0,Cr.jsx)("span",{className:"shell-tutorial-path-animation-part",children:e}),"/"!==e&&r!==n.length-1&&(0,Cr.jsx)("span",{className:"shell-tutorial-path-animation-divider",children:"/"})]},r)}))})},Bs={title:"Navigating directories",slug:"navigating-directories",duration:45,steps:[{heading:"Navigating directories",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"In this chapter we will learn how to navigate the directories on your computer."}),(0,Cr.jsx)(ps,{children:"We will learn:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"How to think of directories on your computer as a directory tree"}),(0,Cr.jsx)(vs,{children:"How to list the contents of a directory"}),(0,Cr.jsx)(vs,{children:"What directory paths are"}),(0,Cr.jsx)(vs,{children:"What the difference between absolute and relative paths is"}),(0,Cr.jsx)(vs,{children:"What the working directory is"}),(0,Cr.jsx)(vs,{children:"How to change the working directory"}),(0,Cr.jsx)(vs,{children:"How the working directory saves us a lot of typing effort"})]})]})},{heading:"Understanding the directory tree",slug:"directory-tree",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Your computer has a file system. The file system is responsible for storing the files and folders on your computer."}),(0,Cr.jsx)(ps,{children:'Folders are usually called "directories" in the UNIX world. We\'ll use the name "directory" going forward.'}),(0,Cr.jsx)(ps,{children:"The directories on your file system can be visualized as a directory tree:"}),(0,Cr.jsx)(Os,{paths:[S,j,w,g,b]}),(0,Cr.jsxs)(ps,{children:["At the top of the directory tree is the root directory that is usually symbolized as a slash ",(0,Cr.jsx)(gs,{children:"/"}),". It is the furthest we can go up in the directory tree. Below that, you can see the directories that are inside of the root directory. One level further down, you can see what's inside of the directories in the second layer, and so on."]}
2),(0,Cr.jsx)(ps,{children:"A real computer has thousands of directories, so we only show a subset of them in our directory trees in this tutorial."})]})},{heading:"Listing directory contents",slug:"list-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Let's use the command line to see the files and directories inside of the root directory."}),(0,Cr.jsxs)(ps,{children:["For that, we use the ",(0,Cr.jsx)(gs,{children:"ls"}),' command (for "',(0,Cr.jsx)(ys,{children:"l"}),"i",(0,Cr.jsx)(ys,{children:"s"}),'t directory contents"). As an argument to ',(0,Cr.jsx)(gs,{children:"ls"}),", we specify the directory whose contents we want to list. Here, we care about the root directory, which is symbolized as a slash"," ",(0,Cr.jsx)(gs,{children:"/"}),"."]}),(0,Cr.jsxs)(ps,{children:["Let's run ",(0,Cr.jsx)(gs,{children:"ls /"})," to list the contents of our root directory!"]})]}),command:"ls /",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,"/")},conditions:{directories:[x,g,y,b,k]}},{heading:"Is it a file or a directory?",slug:"file-or-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["To find out which of the names that ",(0,Cr.jsx)(gs,{children:"ls"})," ","listed are files and which are directories, we can pass the"," ",(0,Cr.jsx)(gs,{children:"-F"})," option to ",(0,Cr.jsx)(gs,{children:"ls"})," ",'(for "classi',(0,Cr.jsx)(ys,{children:"F"}),'y").']}),(0,Cr.jsxs)(ps,{children:["With ",(0,Cr.jsx)(gs,{children:"-F"}),", directories will have slashes added at the end of their names. Names that do not end with slashes represent files."]}),(0,Cr.jsxs)(ps,{children:["As most commands expect options to be listed before the rest of their arguments, we place ",(0,Cr.jsx)(gs,{children:"-F"})," before"," ",(0,Cr.jsx)(gs,{children:"/"}),"."]}),(0,Cr.jsx)(ps,{children:"Let's run our command!"})]}),command:"ls -F /",verify:function(e){return"ls"===e.parsedCommand.command&&ks(e,"F")&&js(e,"/")},conditions:{directories:[x,g,y,b,k]}},{heading:"Listing another directory",slug:"list-another-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["All names in the output of ",(0,Cr.jsx)(gs,{children:"ls -F /"})," ended with slashes. Thus, all of them are directories."]}),(0,Cr.jsxs)(ps,{children:["Let's get ",(0,Cr.jsx)(gs,{children:"ls"})," to list the contents of the directory ",(0,Cr.jsx)(gs,{children:"home"})," inside of the root directory ",(0,Cr.jsx)(gs,{children:"/"}),"."]}),(0,Cr.jsx)(ps,{children:"This is the relevant part of the directory tree:"}),(0,Cr.jsx)(Os,{paths:[x,y,g,b]}),(0,Cr.jsxs)(ps,{children:["It's important to realize that in different places of your file system, there might be different directories with the name"," ",(0,Cr.jsx)(gs,{children:"home"}),". For example, there could also be a directory ",(0,Cr.jsx)(gs,{children:"home"})," inside of"," ",(0,Cr.jsx)(gs,{children:"dev"}),":"]}),(0,Cr.jsx)(Os,{paths:[x,g,"".concat(y,"/home"),b]}),(0,Cr.jsxs)(ps,{children:["Therefore, we need to tell ",(0,Cr.jsx)(gs,{children:"ls"})," which directory called ",(0,Cr.jsx)(gs,{children:"home"})," we care about: the one inside of the root directory ",(0,Cr.jsx)(gs,{children:"/"}),"."]}),(0,Cr.jsxs)(ps,{children:["We do that by gluing ",(0,Cr.jsx)(gs,{children:"/"})," and"," ",(0,Cr.jsx)(gs,{children:"home"}),' together to form what we call a "directory path": ',(0,Cr.jsx)(gs,{children:x})]}),(0,Cr.jsx)(zs,{path:x}),(0,Cr.jsx)(ps,{children:"Directory paths tell the terminal how to find a certain directory in the directory tree by describing the visual path that we take from the top of the directory tree to get to that directory."}),(0,Cr.jsxs)(ps,{children:["The directory path ",(0,Cr.jsx)(gs,{children:x})," tells the terminal to start looking at the root directory"," ",(0,Cr.jsx)(gs,{children:"/"})," at the top of the directory tree and to then go downwards from there into the directory"," ",(0,Cr.jsx)(gs,{children:"home"}),"."]}),(0,Cr.jsxs)(ps,{children:["Let's run ",(0,Cr.jsxs)(gs,{children:["ls -F ",x]}),"!"]}),(0,Cr.jsx)(ws,{children:(0,Cr.jsxs)(ps,{children:["We need to be exact when spelling directory names:"," ",(0,Cr.jsx)(gs,{children:x}),", not"," ",(0,Cr.jsx)(gs,{children:x.slice(0,1)+x.slice(1,2).toUpperCase()+x.slice(2)})," ","or ",(0,Cr.jsx)(gs,{children:x.toUpperCase()}),". Otherwise, terminal commands will not find our directories in the directory tree."]})})]}),command:"ls -F ".concat(x),verify:function(e){return"ls"===e.parsedCommand.command&&js(e,x)},conditions:{directories:[S,j]}},{heading:"Building deeper directory paths",slug:"deeper-directory-p
2aths",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["The output showed us a directory ",(0,Cr.jsx)(gs,{children:"tutorial"})," ","inside of ",(0,Cr.jsx)(gs,{children:x}),". Let's list the contents of that directory, too!"]}),(0,Cr.jsx)(ps,{children:"This is the relevant part of the directory tree:"}),(0,Cr.jsx)(Os,{paths:[S,j,y,g,b]}),(0,Cr.jsxs)(ps,{children:["To get to the directory ",(0,Cr.jsx)(gs,{children:"tutorial"}),", the"," ",(0,Cr.jsx)(gs,{children:"ls"})," command first needs to look into the root directory ",(0,Cr.jsx)(gs,{children:"/"}),", and from there it needs to go down into ",(0,Cr.jsx)(gs,{children:"home"})," and then into"," ",(0,Cr.jsx)(gs,{children:"tutorial"}),"."]}),(0,Cr.jsx)(ps,{children:"That gives us the following parts for our directory path:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"/"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"home"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"tutorial"})})]}),(0,Cr.jsx)(ps,{children:"Like before, we glue them together:"}),(0,Cr.jsx)(zs,{path:S}),(0,Cr.jsxs)(ps,{children:["Note that we insert a slash between ",(0,Cr.jsx)(gs,{children:"home"})," ","and ",(0,Cr.jsx)(gs,{children:"tutorial"})," so that the terminal knows where the name of ",(0,Cr.jsx)(gs,{children:"home"})," ends and where the name ",(0,Cr.jsx)(gs,{children:"tutorial"})," starts. We get the directory path ",(0,Cr.jsx)(gs,{children:S}),"."]}),(0,Cr.jsxs)(ws,{children:[(0,Cr.jsxs)(ps,{children:["The slash ",(0,Cr.jsx)(gs,{children:"/"})," has different meanings on the command line:"]}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"It symbolizes the root directory"}),(0,Cr.jsx)(vs,{children:"It separates individual directory names when building directory paths"}),(0,Cr.jsxs)(vs,{children:["It indicates whether an entry is a file or a directory in the output of ",(0,Cr.jsx)(gs,{children:"ls -F"})]})]})]}),(0,Cr.jsxs)(ps,{children:["Let's list the contents of"," ",(0,Cr.jsx)(gs,{children:S}),"!"]})]}),command:"ls -F ".concat(S),verify:function(e){return"ls"===e.parsedCommand.command&&js(e,S)},conditions:{directories:[C,F]}},{heading:"Building even deeper paths",slug:"even-deeper-paths",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["This showed us a directory called ",(0,Cr.jsx)(gs,{children:"Documents"})," ","inside of ",(0,Cr.jsx)(gs,{children:S}),". Let's list its contents!"]}),(0,Cr.jsx)(ps,{children:"Here is the relevant part of the directory tree:"}),(0,Cr.jsx)(ps,{children:(0,Cr.jsx)(Os,{paths:[C,F,y,g,b]})}),(0,Cr.jsx)(ps,{children:"This gives us the following parts for our directory path:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"/"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"home"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"tutorial"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"Documents"})})]}),(0,Cr.jsx)(ps,{children:"We glue them together:"}),(0,Cr.jsx)(zs,{path:C}),(0,Cr.jsxs)(ps,{children:["We get ",(0,Cr.jsx)(gs,{children:C}),". As before, we inserted slashes between the different directory parts."]}),(0,Cr.jsx)(ws,{children:(0,Cr.jsxs)(ps,{children:["It is clear to the terminal where the root directory"," ",(0,Cr.jsx)(gs,{children:"/"})," ends and where the name"," ",(0,Cr.jsx)(gs,{children:"home"})," starts, so we do not need to insert an additional slash between them."]})}),(0,Cr.jsx)(ps,{children:"Let's list the directory!"})]}),command:"ls -F ".concat(C),verify:function(e){return"ls"===e.parsedCommand.command&&js(e,C)},conditions:{directories:[_,P,E]}},{heading:"Listing the Essays directory",slug:"list-essays",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["This listed various files and directories inside of"," ",(0,Cr.jsx)(gs,{children:C}),"."]}),(0,Cr.jsxs)(ps,{children:["Among them is a directory called ",(0,Cr.jsx)(gs,{children:"Essays"}),". Can you list the contents of the ",(0,Cr.jsx)(gs,{children:"Essays"})," ","directory?"]}),(0,Cr.jsx)(ws,{children:(0,Cr.jsxs)(ps,{children:["You can use the ",(0,Cr.jsx)(gs,{children:"Arrow Up"})," and"," ",(0,Cr.jsx)(gs,{children:"Arrow Down"})," keys to bring up previous commands. This will save you from typing the whole path again."]})})]}),type:Ki.exercise,command:"ls -F ".concat(_),verify:function(e){return"ls"===e.parsedCommand.command&&js(e,_)},conditions:{directories:[T,P,E]}},{heading:"Listing the Diary directory",slug:"list-diary",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you list the contents of the ",(0,Cr.jsx)(gs,{children:"Diary"})," ","directory inside of ",(0,Cr.jsx)(gs,{children:C}),"?"]})}),type:Ki.exercise,command:"ls -F ".concat(P),verify:function(e){return"ls"===e.parsedCommand.command&&js(e,P)},conditions:{directories:[N,D]}},{heading:"Listing a directory inside the root directory",slug:"list-bin",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you list the contents of the directory"," ",(0,Cr.jsx)(gs,{children:"bin"})," inside of the root directory"," ",(0,Cr.jsx)(gs,{children:"/"}),"?"]})}),type:Ki.exercise,command:"ls -F ".concat(g),verify:function(e){return"ls"===e.parsedCommand.command&&js(e,g)},conditions:{directories:[g]}},{heading:"The user's home directory",slug:"home-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Nobody enjoys typing out long directory paths. Therefore, we'll now get to know ways to shorten them."}
2),(0,Cr.jsx)(ps,{children:'On a computer, every user has a directory where they can store their personal files such as their documents, pictures and music. We call that directory the user\'s "home directory".'}),(0,Cr.jsx)(ps,{children:"It usually has the following path:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsxs)(vs,{children:["On Linux:"," ",(0,Cr.jsxs)(gs,{children:["/home/","{","username","}"]})]}),(0,Cr.jsxs)(vs,{children:["On Mac:"," ",(0,Cr.jsxs)(gs,{children:["/Users/","{","username","}"]})]}),(0,Cr.jsxs)(vs,{children:["On Windows:"," ",(0,Cr.jsxs)(gs,{children:["/c/Users/","{","username","}"]})]})]}),(0,Cr.jsxs)(ps,{children:["During this tutorial, the name of our user is"," ",(0,Cr.jsx)(gs,{children:"tutorial"})," and our home directory is"," ",(0,Cr.jsx)(gs,{children:S}),"."]}),(0,Cr.jsxs)(ps,{children:["We will start marking our home directory with the"," ",(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"mb-1 inline h-6 w-5",children:[(0,Cr.jsx)("title",{children:"home"}),(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})]})," ","symbol in the directory tree:"]}),(0,Cr.jsx)(Os,{paths:[S,g,y,j],homeDir:S}),(0,Cr.jsxs)(ps,{children:["To save us typing effort, the terminal lets us abbreviate our home directory as the tilde ",(0,Cr.jsx)(gs,{children:"~"}),"."]}),(0,Cr.jsxs)(ps,{children:["With it, we can shorten ",(0,Cr.jsxs)(gs,{children:["ls ",S]})," ","to ",(0,Cr.jsx)(gs,{children:"ls ~"}),". Let's try that!"]})]}),command:"ls ~",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,S)},conditions:{directories:[C,F]}},{heading:"Building paths from the home directory",slug:"paths-from-home",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["We can also use the tilde ",(0,Cr.jsx)(gs,{children:"~"})," in more complex directory paths."]}),(0,Cr.jsxs)(ps,{children:["For example, we can shorten ",(0,Cr.jsx)(gs,{children:C})," ","to ",(0,Cr.jsx)(gs,{children:"~/Documents"}),"."]}),(0,Cr.jsx)(ps,{children:"Here is the directory tree:"}),(0,Cr.jsx)(Os,{paths:[C,F,j],homeDir:S}),(0,Cr.jsxs)(ps,{children:["The path ",(0,Cr.jsx)(gs,{children:"~/Documents"})," tells the terminal to find the directory by looking into the user's home directory"," ",(0,Cr.jsx)(gs,{children:"~"})," and from there going downwards into"," ",(0,Cr.jsx)(gs,{children:"Documents"}),"."]}),(0,Cr.jsx)(ps,{children:"Let's list the directory!"})]}),command:"ls -F ~/Documents",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,C)},conditions:{directories:[_,P,E]}},{heading:"Listing Essays using the tilde",slug:"essays-tilde",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you use the tilde ",(0,Cr.jsx)(gs,{children:"~"})," to list the contents of ",(0,Cr.jsx)(gs,{children:_}),"?"]})}),type:Ki.exercise,command:"ls -F ~/Documents/Essays",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,_)},conditions:{directories:[T]}},{heading:"Listing Diary using the tilde",slug:"diary-tilde",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you use the tilde ",(0,Cr.jsx)(gs,{children:"~"})," to list the contents of ",(0,Cr.jsx)(gs,{children:P}),"?"]})}),type:Ki.exercise,command:"ls -F ~/Documents/Diary",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,P)},conditions:{directories:[N,D]}},{heading:"The working directory",slug:"working-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:'There is a special directory that will save us even more typing effort than the home directory. It is called the "working directory", and we can change it.'}),(0,Cr.jsxs)(ps,{children:["We can see our current working directory in the prompt statement, i.e. the text that is already in the terminal before we enter a new command. It shows our working directory before the"," ",(0,Cr.jsx)(gs,{children:"$"})," sign:"," ",(0,Cr.jsx)(gs,{children:"tutorial@terminal-tutor ~ $"}),". At the moment, it shows the tilde ",(0,Cr.jsx)(gs,{children:"~"}),", indicating that our current working directory is our home directory."]}),(0,Cr.jsxs)(ps,{children:["We will mark the working directory with the"," ",(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"mb-1 inline h-6 w-5",children:[(0,Cr.jsx)("title",{children:"wrench and screwdriver"}),(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})]})," ","symbol in the directory tree:"]}),(0,Cr.jsx)(Os,{paths:[S,j,y,g,b],homeDir:S,workDir:S}),(0,Cr.jsxs)(ps,{children:["At any point, we can obtain the path of our working directory using the command ",(0,Cr.jsx)(gs,{children:"pwd"}),' (for "',(0,Cr.jsx)(ys,{children:"p"}),"rint ",(0,Cr.jsx)(ys,{children:"w"}),"orking"," ",(0,Cr.jsx)(ys,{children:"d"}),'irectory").']}),(0,Cr.jsx)(ps,{children:"Let's try it!"})]}),command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:S}},{heading:"Listing the working directory",slug:"list-working-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["If we run ",(0,Cr.jsx)(gs,{children:"ls"})," without specifying a directory path, it will list the contents of our current working directory."]}),(0,Cr.jsx)(ps,{children:"This already saves us typing effort. Let's try it!"})]}),command:"ls",verify:function(e){return"ls"===e.parsedCommand.command&&0===Ta(e.parsedCommand.args).rest.length},conditions:{workDir:S,directories:[C,F]}},{heading:"Paths from our working directory",slug:"paths-from-work-dir",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"The working directory lets us build shorter directory paths."}),(0,Cr.jsxs)(ps,{children:["So far, all of our paths have started with a slash"," ",(0,Cr.jsx)(gs,{children:"/"})," or a tilde ",(0,Cr.jsx)(gs,{children:"~"}),", telling the terminal to start looking at the root directory"," ",(0,Cr.jsx)(gs,{children:"/"})," or our home directory"," ",(0,Cr.jsx)(gs,{children:"~"})," and to go downwards from there to find the directories we wanted."]}),(0,Cr.jsx)(ps,{children:"If we leave out the slash and the tilde at the beginning of a path, the terminal will start looking at our working directory instead."}),(0,Cr.jsxs)(ps,{children:["Let's use this method to list the contents of"," ",(0,Cr.jsx)(gs,{children:_}),". This is our directory tree:"]}),(0,Cr.jsx)(Os,{paths:[_,P,F],homeDir:S,workDir:S}),(0,Cr.jsxs)(ps,{children:["Our working directory is ",(0,Cr.jsx)(gs,{children:S}),". To get from our working directory to ",(0,Cr.jsx)(gs,{children:"Essays"}),", we need to go downwards into ",(0,Cr.jsx)(gs,{children:"Documents"})," ","and from there into ",(0,Cr.jsx)(gs,{children:"Essays"}),"."]}),(0,Cr.jsxs)(ps,{children:["As before, we use a slash to glue these two directory names together and get the path ",(0,Cr.jsx)(gs,{children:"Documents/Essays"}),"."]}),(0,Cr.jsxs)(ps,{children:["If we run ",(0,Cr.jsx)(gs,{children:"ls Documents/Essays"}),","," ",(0,Cr.jsx)(gs,{children:"ls"})," will notice that"," ",(0,Cr.jsx)(gs,{children:"Documents/Essays"})," does not start with a slash ",(0,Cr.jsx)(gs,{children:"/"})," or a tilde"," ",(0,Cr.jsx)(gs,{children:"~"}),". Therefore, ",(0,Cr.jsx)(gs,{children:"ls"})," ","will start looking for the directory at our working directory and go down the directory tree from there."]}),(0,Cr.jsx)(ps,{children:"Let's try it!"})]}),command:"ls Documents/Essays",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,_)},conditions:{workDir:S,directories:[T]}},{heading:"Relative vs. absolute paths",slug:"relative-absolute-paths",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["How could we use the same concept to list the contents of"," ",(0,Cr.jsx)(gs,{children:C}),"?"]}),(0,Cr.jsx)(ps,{children:"This is the directory tree:"}),(0,Cr.jsx)(Os,{paths:[C,F],homeDir:S,workDir:S}),(0,Cr.jsxs)(ps,{children:["Our working directory is ",(0,Cr.jsx)(gs,{children:S}),". To get to ",(0,Cr.jsx)(gs,{children:"Documents"})," from our working directory, we only need to go down one level into the"," ",(0,Cr.jsx)(gs,{children:"Documents"})," directory. Therefore, our path to that directory is simply ",(0,Cr.jsx)(gs,{children:"Documents"}),". The respective command is ",(0,Cr.jsx)(gs,{children:"ls Documents"}),"."]}),(0,Cr.jsxs)(ps,{children:['We call paths that start from our working directory "relative paths". Examples are ',(0,Cr.jsx)(gs,{children:"Documents"})," and"," ",(0,Cr.jsx)(gs,{children:"Documents/Essays"}),"."]}),(0,Cr.jsxs)(ps,{children:['Paths that are independent from our working directory are called "absolute paths". Examples are ',(0,Cr.jsx)(gs,{children:"/"}),","," ",(0,Cr.jsx)(gs,{children:S}),", and"," ",(0,Cr.jsx)(gs,{children:"~/Documents"}),"."]}),(0,Cr.jsxs)(ps,{children:["Any path that tells the terminal to start looking at the root directory ",(0,Cr.jsx)(gs,{children:"/"})," or our home directory"," ",(0,Cr.jsx)(gs,{children:"~"})," is an absolute path. An absolute path will always point to the same directory no matter what our working directory is."]}),(0,Cr.jsxs)(ps,{children:["Let's run the ",(0,Cr.jsx)(gs,{children:"ls Documents"})," command that we constructed above."]})]}),command:"ls Documents",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,C)},conditions:{workDir:S,directories:[_,P,E]}},{heading:"Listing Pictures using a relative path",slug:"pictures-relative",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Can you list the contents of ",(0,Cr.jsx)(gs,{children:F})," ","using a relative path?"]}),(0,Cr.jsx)(ws,{children:(0,Cr.jsxs)(ps,{children:["If you want to see your working directory again, use"," ",(0,Cr.jsx)(gs,{children:"pwd"}),"."]})})]}),type:Ki.exercise,command:"ls -F Pictures",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,F)},conditions:{workDir:S,directories:[I,R]}},{heading:"Listing Birthdays using a relative path",slug:"list-birthdays",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you list the contents of"," ",(0,Cr.jsx)(gs,{children:N})," using a relative path?"]})}),type:Ki.exercise,command:"ls -F Documents/Diary/Birthdays",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,N)},conditions:{workDir:S,directories:[A,M]}},{heading:"Changing our working directory",slug:"change-working-directory",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["We can change our working directory using the"," ",(0,Cr.jsx)(gs,{children:"cd"}),' command (for "',(0,Cr.jsx)(ys,{children:"c"}),"hange ",(0,Cr.jsx)(ys,{children:"d"}),'irectory").']}),(0,Cr.jsx)(ps,{children:"As its argument, we specify the directory path that should be our new working directory."}),(0,Cr.jsxs)(ps,{children:["To change the working directory to"," ",(0,Cr.jsx)(gs,{children:"~/Documents"}),", we run"," ",(0,Cr.jsx)(gs,{children:"cd ~/Documents"}),"."]}),(0,Cr.jsxs)(ps,{children:['When we do that, we say that we "change into" or "move into" ',(0,Cr.jsx)(gs,{children:"~/Documents"}),"."]}),(0,Cr.jsx)(ps,{children:"Let's try it!"})]}),command:"cd ~/Documents",verify:function(e){return e.workDirAfterCommand===C},conditions:{directories:[C]}},{heading:"Verifying the directory change",slug:"verify-directory-change",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["In general, when ",(0,Cr.jsx)(gs,{children:"cd"})," does not produce any output, the operation was successful."]}),(0,Cr.jsx)(ps,{children:"There are more ways to confirm that the directory change worked:"}),(0,Cr.jsxs)(ps,{children:["First, the prompt statement changed. Before the"," ",(0,Cr.jsx)(gs,{children:"$"})," sign, it now says"," ",(0,Cr.jsx)(gs,{children:"Documents"}),"."]}),(0,Cr.jsxs)(ps,{children:["Second, we can run ",(0,Cr.jsx)(gs,{children:"pwd"})," to verify that our directory change worked. Let's do that!"]}
2)]}),command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:C}},{heading:"Listing the new working directory",slug:"list-new-work-dir",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["After changing into a directory, it usually makes sense to list its contents with ",(0,Cr.jsx)(gs,{children:"ls -F"})," so that we know what we are working with."]}),(0,Cr.jsx)(ps,{children:"Let's do that!"})]}),type:Ki.repetition,command:"ls -F",verify:function(e){return"ls"===e.parsedCommand.command&&ks(e,"F")},conditions:{workDir:C,directories:[_,P,E]}},{heading:"Understanding the power of cd",slug:"power-of-cd",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Let's see why changing our working directory with"," ",(0,Cr.jsx)(gs,{children:"cd"})," is so powerful."]}),(0,Cr.jsx)(ps,{children:"Let's say we want to list the contents of the following directories:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:_})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:P})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:E})})]}),(0,Cr.jsx)(ps,{children:"We could run the following commands to achieve that:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:(0,Cr.jsxs)(gs,{children:["ls ",_]})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsxs)(gs,{children:["ls ",P]})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsxs)(gs,{children:["ls ",E]})})]}),(0,Cr.jsx)(ps,{children:"These commands, however, are very similar. We'd be repeating ourselves."}),(0,Cr.jsxs)(ps,{children:["Instead, we can first change into"," ",(0,Cr.jsx)(gs,{children:C})," (which we already did)."]}),(0,Cr.jsx)(ps,{children:"Then we can list the directories using relative paths:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"ls Essays"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"ls Diary"})}),(0,Cr.jsx)(vs,{children:(0,Cr.jsx)(gs,{children:"ls Work"})})]}),(0,Cr.jsxs)(ps,{children:["That's a lot simpler. Let's run"," ",(0,Cr.jsx)(gs,{children:"ls Essays"}),"."]})]}),command:"ls Essays",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,_)},conditions:{workDir:C,directories:[T,P,E]}},{heading:"cd with relative paths",slug:"cd-relative-paths",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Whenever we run a command, we can choose whether we want to use relative or absolute paths. To the computer, our choice does not matter. As long as it can figure out which directories we mean, it can do its work. Therefore, we usually choose the path that is the easiest to type."}),(0,Cr.jsxs)(ps,{children:["Let's change into ",(0,Cr.jsx)(gs,{children:"~/Documents/Diary"}),"."]}),(0,Cr.jsx)(ps,{children:"Here is the directory tree:"}),(0,Cr.jsx)(Os,{paths:[P,_,F],homeDir:S,workDir:C}),(0,Cr.jsxs)(ps,{children:["Our current working directory is"," ",(0,Cr.jsx)(gs,{children:"~/Documents"}),"."]}),(0,Cr.jsxs)(ps,{children:["We can either use an absolute path and run"," ",(0,Cr.jsx)(gs,{children:"cd ~/Documents/Diary"}),"."]}),(0,Cr.jsxs)(ps,{children:["Or we can use a relative path and run"," ",(0,Cr.jsx)(gs,{children:"cd Diary"}),"."]}),(0,Cr.jsxs)(ps,{children:[(0,Cr.jsx)(gs,{children:"cd Diary"})," is shorter, so let's use it."]})]}),command:"cd Diary",verify:function(e){return e.workDirAfterCommand===P},conditions:{workDir:C,directories:[P]}},{heading:"Verifying the directory change",slug:"verify-diary",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you use a command to verify that our new working directory is really ",(0,Cr.jsx)(gs,{children:"~/Documents/Diary"}),"?"]})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:P}},{heading:"Listing the new working directory",slug:"list-work-dir",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you list the contents of our new working directory?"})}),type:Ki.exercise,command:"ls -F",verify:function(e){return"ls"===e.parsedCommand.command},conditions:{workDir:P,directories:[N,D]}},{heading:"Moving into Birthdays using a relative path",slug:"birthdays-relative",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["The output of ",(0,Cr.jsx)(gs,{children:"ls"})," showed a directory"," ",(0,Cr.jsx)(gs,{children:"Birthdays"}
2),". Can you move into it using a relative path?"]})}),type:Ki.exercise,command:"cd Birthdays",verify:function(e){return e.workDirAfterCommand===N},conditions:{workDir:P,directories:[N]}},{heading:"Verifying the directory change",slug:"verify-birthdays",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:N}},{heading:"Listing the new working directory",slug:"list-new-work-dir",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you list the contents of our new working directory?"})}),type:Ki.exercise,command:"ls -F",verify:function(e){return"ls"===e.parsedCommand.command},conditions:{workDir:N,directories:[A,M]}},{heading:"Moving into Tom using a relative path",slug:"tom-relative",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["This showed a directory ",(0,Cr.jsx)(gs,{children:"Tom"}),". Can you move into it using a relative path?"]})}),type:Ki.exercise,command:"cd Tom",verify:function(e){return e.workDirAfterCommand===A},conditions:{workDir:N,directories:[A]}},{heading:"Verifying the directory change",slug:"verify-tom",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:A}},{heading:"Going up in the directory tree",slug:"go-up-tree",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Let's say we want to move from ",(0,Cr.jsx)(gs,{children:"Tom"})," ","back up into ",(0,Cr.jsx)(gs,{children:"Birthdays"}),"."]}),(0,Cr.jsxs)(ps,{children:["We could use an absolute path and run"," ",(0,Cr.jsx)(gs,{children:"cd ~/Documents/Diary/Birthdays"})," but a relative path will be shorter."]}),(0,Cr.jsx)(ps,{children:"This is our directory tree now:"}),(0,Cr.jsx)(Os,{paths:[A,M,F],homeDir:S,workDir:A}),(0,Cr.jsxs)(ps,{children:["To find the relative path in the directory tree, we start at our working directory ",(0,Cr.jsx)(gs,{children:"Tom"}),". To get to"," ",(0,Cr.jsx)(gs,{children:"Birthdays"}),", we need to go one step up in the tree."]}),(0,Cr.jsxs)(ps,{children:["In directory paths, we use ",(0,Cr.jsx)(gs,{children:".."})," to symbolize going one step upwards."]}),(0,Cr.jsxs)(ps,{children:["The relative path that leads from ",(0,Cr.jsx)(gs,{children:"Tom"})," to"," ",(0,Cr.jsx)(gs,{children:"Birthdays"})," is therefore simply"," ",(0,Cr.jsx)(gs,{children:".."}),"."]}),(0,Cr.jsxs)(ps,{children:["The command that moves us one step upwards is"," ",(0,Cr.jsx)(gs,{children:"cd .."}),". Let's run it!"]})]}),command:"cd ..",verify:function(e){return e.workDirAfterCommand===N},conditions:{workDir:A}},{heading:"Verifying the directory change",slug:"verify-up",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:N}},{heading:"Going two steps up",slug:"two-steps-up",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Let's go two steps up in the directory tree."}),(0,Cr.jsx)(ps,{children:"This is the directory tree:"}),(0,Cr.jsx)(Os,{paths:[N,_,F],homeDir:S,workDir:N}),(0,Cr.jsx)(ps,{children:"Let's find the path that we have to follow:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"We start at the working directory because it's a relative path."}),(0,Cr.jsxs)(vs,{children:["We go one step up (",(0,Cr.jsx)(gs,{children:".."}),")."]}),(0,Cr.jsxs)(vs,{children:["We go one step up again (",(0,Cr.jsx)(gs,{children:".."}),")."]})]}),(0,Cr.jsxs)(ps,{children:["Gluing these together, we get the relative path"," ",(0,Cr.jsx)(gs,{children:"../.."})," and the command"," ",(0,Cr.jsx)(gs,{children:"cd ../.."}),"."]}),(0,Cr.jsxs)(ps,{children:["After we run it, we should be in"," ",(0,Cr.jsx)(gs,{children:"~/Documents"}),". Let's try it!"]})]}),command:"cd ../..",verify:function(e){return e.workDirAfterCommand===C},conditions:{workDir:N}},{heading:"Verifying the directory change",slug:"verify-two-up",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you please verify that we are indeed in"," ",(0,Cr.jsx)(gs,{children:"~/Documents"})," now?"]})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:C}},{heading:"Going up, then down",slug:"up-down",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"We can combine going up and going down in the same directory path. Let's see how that works."}),(0,Cr.jsx)(ps,{children:"This is our directory tree:"}),(0,Cr.jsx)(Os,{paths:[C,F],homeDir:S,workDir:C}),(0,Cr.jsxs)(ps,{children:["We are currently in ",(0,Cr.jsx)(gs,{children:"~/Documents"}),"."]}),(0,Cr.jsxs)(ps,{children:["To get to ",(0,Cr.jsx)(gs,{children:"~/Pictures"})," using a relative path, we need to go one step up (",(0,Cr.jsx)(gs,{children:".."}),") into our home directory and then one step down into"," ",(0,Cr.jsx)(gs,{children:"Pictures"}),". This gives us the relative path"," ",(0,Cr.jsx)(gs,{children:"../Pictures"}),"."]}),(0,Cr.jsx)(ps,{children:"Let's change into it!"})]}),command:"cd ../Pictures",verify:function(e){return e.workDirAfterCommand===F},conditions:{workDir:C,directories:[F]}},{heading:"Verifying the directory change",slug:"verify-up-down",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:F}},{heading:"Moving up and down",slug:"up-down",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you change into ",(0,Cr.jsx)(gs,{children:"~/Documents/Essays"})," ","using a relative path?"]})}),type:Ki.exercise,command:"cd ../Documents/Essays",verify:function(e){return e.workDirAfterCommand===_},conditions:{workDir:F,directories:[_]}},{heading:"Verifying the directory change",slug:"verify-essays",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:_}},{heading:"Listing the contents of Documents",slug:"list-documents",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"For the rest of this chapter, you'll receive exercises to practice what you've learned."}),(0,Cr.jsxs)(ps,{children:["Can you list the contents of"," ",(0,Cr.jsx)(gs,{children:C})," without changing into it?"]})]}),type:Ki.exercise,command:"ls -F ..",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,C)},conditions:{workDir:_}},{heading:"Changing into Documents using a relative path",slug:"documents-relative",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you change into ",(0,Cr.jsx)(gs,{children:C})," using a relative path?"]})}),type:Ki.exercise,command:"cd ..",verify:function(e){return e.workDirAfterCommand===C},conditions:{workDir:_}},{heading:"Verifying the directory change",slug:"verify-documents",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:C}},{heading:"Changing into Pictures using an absolute path",slug:"pictures-absolute",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you change into ",(0,Cr.jsx)(gs,{children:F})," using an absolute path?"]})}),type:Ki.exercise,command:"cd ~/Pictures",verify:function(e){return e.workDirAfterCommand===F},conditions:{directories:[F]}},{heading:"Verifying the directory change",slug:"verify-pictures",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you verify that the directory change worked?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:F}},{heading:"Listing the new working directory",slug:"list-pictures",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you list the contents of our new working directory?"})}),type:Ki.exercise,command:"ls -F",verify:function(e){return"ls"===e.parsedCommand.command},conditions:{workDir:F,directories:[I,R]}},{heading:"Listing our home directory without changing into it",slug:"list-home",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you list the contents of our user's home directory without changing into it?"})}),type:Ki.exercise,command:"ls -F ~",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,S)},conditions:{workDir:F}},{heading:"Going up in the directory tree",slug:"up",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you change the working directory to the directory that is one step up in the directory tree?"})}),type:Ki.exercise,command:"cd ..",verify:function(e){return e.workDirAfterCommand===S},conditions:{workDir:F}},{heading:"Checking what directory we are in",slug:"check-directory",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you please check which directory we are in?"})}),type:Ki.exercise,command:"pwd",verify:function(e){return"pwd"===e.parsedCommand.command},conditions:{workDir:S}},{heading:"Changing into the root directory",slug:"change-root",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you change into the root directory of our file system?"})}),type:Ki.exercise,command:"cd /",verify:function(e){return"/"===e.workDirAfterCommand},conditions:{directories:["/"]}},{heading:"Listing the new working directory",slug:"list-root",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you list the contents of our new working directory?"})}),type:Ki.exercise,command:"ls -F",verify:function(e){return"ls"===e.parsedCommand.command},conditions:{workDir:"/",directories:[x,g,y,b,k]}},{heading:"Changing into Documents",slug:"change-documents",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsxs)(ps,{children:["Can you change into ",(0,Cr.jsx)(gs,{children:C}),"?"]}),(0,Cr.jsx)(ws,{children:(0,Cr.jsxs)(ps,{children:["Maybe there's a shorter way to write"," ",(0,Cr.jsx)(gs,{children:C}),"."]})})]}),type:Ki.exercise,command:"cd ~/Documents",verify:function(e){return e.workDirAfterCommand===C},conditions:{directories:[C]}},{heading:"Changing into Tom using a relative path",slug:"change-tom",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsxs)(ps,{children:["Can you change into"," ",(0,Cr.jsx)(gs,{children:"~/Documents/Diary/Birthdays/Tom"})," using a relative path?"]})}),type:Ki.exercise,command:"cd Diary/Birthdays/Tom",verify:function(e){return e.workDirAfterCommand===A},conditions:{workDir:C,directories:[A]}},{heading:"Listing the directory that's one step up",slug:"list-up",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you list the contents of the directory one step up in the directory tree using a relative path without changing into it?"})}),type:Ki.exercise,command:"ls -F ..",verify:function(e){return"ls"===e.parsedCommand.command&&js(e,N)},conditions:{workDir:A,directories:[M]}},{heading:"Changing into our home directory",slug:"change-home",content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(ps,{children:"Can you change into our home directory?"})}),type:Ki.exercise,command:"cd ~",verify:function(e){return e.workDirAfterCommand===S},conditions:{directories:[S]}},{heading:"Navigating directories",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"Amazing! That was chapter 2! \ud83c\udf89"}),(0,Cr.jsx)(ps,{children:"We learned the following:"}),(0,Cr.jsxs)(ms,{children:[(0,Cr.jsx)(vs,{children:"Directory paths describe the path to follow in the directory tree to get to a specific directory."}),(0,Cr.jsxs)(vs,{children:["Absolute paths are independent of the working directory, e.g."," ",(0,Cr.jsx)(gs,{children:C}),"."]}),(0,Cr.jsxs)(vs,{children:["Relative paths start from our working directory, e.g."," ",(0,Cr.jsx)(gs,{children:"Documents/Essays"}),"."]}),(0,Cr.jsxs)(vs,{children:["Every user has a home directory to store their files in. It can be abbreviated as ",(0,Cr.jsx)(gs,{children:"~"}),"."]}),(0,Cr.jsxs)(vs,{children:[(0,Cr.jsx)(gs,{children:".."})," in a directory path indicates going one step up in the directory tree."]}),(0,Cr.jsxs)(vs,{children:["We use ",(0,Cr.jsx)(gs,{children:"pwd"})," to print our working directory."]}),(0,Cr.jsxs)(vs,{children:["We use ",(0,Cr.jsx)(gs,{children:"cd"})," to change our working directory."]}),(0,Cr.jsxs)(vs,{children:["We use ",(0,Cr.jsx)(gs,{children:"ls"})," to list the contents of a directory."]})]})]})}]},Us={title:"Congrats",slug:"congrats",duration:0,steps:[{heading:"You made it! \ud83c\udf89",content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"You finished the tutorial and know how to find your way around the terminal. \ud83d\udcaa"}),(0,Cr.jsxs)("div",{className:"-mx-4 mt-8 bg-gray-200 p-6 lg:-mx-8 lg:p-8",children:[(0,Cr.jsx)("h2",{className:"mb-3 text-xl font-bold lg:mb-4 lg:text-2xl",children:"Enjoyed this tutorial?"}),(0,Cr.jsx)(ps,{children:"Get notified when I launch more tutorials or add more chapters to this one."}),(0,Cr.jsx)("a",{href:"https://d29bf232.sibforms.com/serve/MUIEAE5Le-PaywBYndAVvGZ-GiP07TSEBtJS8nnBbzQbm1RxtMFr0oBiur0RVSMZgx6o-bidb5u0NSrkviFo0BlZ4qT-Vk4fVI0DMlUy-w51DyHcv2ggaTChXsldiXJoZZUwKYC10ap0HeWQcT1PFSbtfxu376G__sY2gsRN9MzQJeWcWVedYxdsujhIVgAym-3uD4aQ2-0tSO3W",target:"_blank",rel:"noopener",className:"mt-2 inline-block select-none rounded-lg bg-green-500 px-12 py-3 text-center font-medium text-white hover:bg-green-700 lg:mt-4",children:"Get notified"})]}),(0,Cr.jsxs)("div",{className:"mt-6 -mb-2 flex flex-wrap items-center px-2 lg:mb-0 lg:px-0",children:[(0,Cr.jsx)("h2",{className:"my-2 mr-4 text-xl font-bold lg:text-2xl",children:"Contact me:"}),(0,Cr.jsx)("a",{href:"https://www.nikwen.de",target:"_blank",rel:"noopener",className:"my-2 mr-4 h-7 w-7 last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"fill-gray-500",children:[(0,Cr.jsx)("path",{d:"M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"}),(0,Cr.jsx)("path",{d:"M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"})]})}),(0,Cr.jsx)("a",{href:"https://www.linkedin.com/in/niklas-wenzel-59953b201/",target:"_blank",rel:"noopener",className:"my-2 mr-4 h-7 w-7 fill-[#0A66C2] last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-[#0A66C2]",children:[(0,Cr.jsx)("title",{children:"LinkedIn"}),(0,Cr.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})]})}),(0,Cr.jsx)("a",{href:"https://twitter.com/nikwen_de",target:"_blank",rel:"noopener",className:"my-2 mr-4 h-8 w-8 last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-[#1DA1F2]",children:[(0,Cr.jsx)("title",{children:"Twitter"}),(0,Cr.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.86
27 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})]})}),(0,Cr.jsx)("a",{href:"mailto:[email protected]",className:"my-2 mr-4 h-8 w-8 last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"fill-gray-500",children:[(0,Cr.jsx)("path",{d:"M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z"}),(0,Cr.jsx)("path",{d:"M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"})]})})]})]})}]},Ws=function(e){var t=Math.floor(e/60),n=e%60,r=t>0?"".concat(t," ").concat(1===t?"hour":"hours"," "):"",a=n>0?"".concat(n.toString().padStart(2,"0")," minutes"):"";return"".concat(r).concat(a)},Vs=function(){var e=rl.slice(1,-1),t=e.reduce((function(e,t){return e+t.duration}),0);return(0,Cr.jsxs)("div",{className:"border-b-2 border-gray-300 p-4",children:[(0,Cr.jsx)("h2",{className:"mb-2 text-lg font-bold lg:text-xl",children:"Tutorial contents"}),(0,Cr.jsxs)("div",{className:"text-gray-700",children:[e.length," chapters \u2022 ",Ws(t)]})]})},Hs=(0,t.createContext)({stepIndex:0,navigateToStep:function(){}}),Ks=function(){return(0,t.useContext)(Hs)},Gs=["to","showSuccessMessage"],$s=function(e){var t=e.to,n=e.showSuccessMessage,r=ji(e,Gs),a=Ks().navigateToStep;return(0,Cr.jsx)(Lr,Tr({to:al[t].path,onClick:function(e){e.preventDefault(),a(t,n)}},r))},qs=function(e){return e.steps.filter((function(e){return t=e.type,fs.includes(t);var t})).length},Qs=function(e){return e.steps.filter((function(e){return t=e.type,ds.includes(t);var t})).length},Ys=function(e){var t=e.index,n=rl[t],r=Qs(n),a=qs(n),o=al.indexOf(n.steps[0]);return(0,Cr.jsx)($s,{to:o,className:"block border-b-2 border-gray-300 p-4 last-of-type:border-none hover:bg-gray-100",children:(0,Cr.jsxs)("div",{className:"flex items-center",children:[(0,Cr.jsx)("div",{className:"mr-4 inline-flex h-8 w-8 items-center justify-center rounded-full bg-green-500 text-base font-medium leading-none text-white",children:t}),(0,Cr.jsxs)("div",{children:[(0,Cr.jsx)("span",{className:"font-medium text-gray-700 lg:text-lg",children:n.title}),(0,Cr.jsxs)("div",{className:"text-sm text-gray-500",children:[n.duration," minutes \u2022 ",r," explanations \u2022"," ",a," exercises"]})]})]})})},Zs=function(){return(0,Cr.jsxs)("div",{className:"mt-6 mb-8 rounded-md border-2 border-gray-300 text-gray-800 lg:max-w-md",children:[(0,Cr.jsx)(Vs,{}),rl.map((function(e,t){return t>0&&t<rl.length-1?(0,Cr.jsx)(Ys,{index:t},t):null}))]})},Js={title:"Intro",duration:0,steps:[{heading:"Learn how to use the terminal \u2014 interactive tutorial",seo:{title:"Terminal Tutor \u2013 learn the Command Line interactively",description:"Everything you need to know to get started with the command line. Try commands right in your browser in an interactive online terminal."},content:(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(ps,{children:"The terminal is a tool to interact with computers by typing textual commands on your keyboard."}),(0,Cr.jsx)(ps,{children:'It is also called "command line" or "console".'}),(0,Cr.jsx)(ps,{children:"A lot of tools for coding can only be used on the command line. This includes Git, Docker and package managers such as npm and pip. Thus, it's essential to learn how to use the terminal."}),(0,Cr.jsx)(ps,{children:"In this tutorial, you will learn everything you need to start working with the terminal."})]}),nextStepButton:"Start tutorial"},{heading:"Tutorial contents",slug:"tutorial-contents",seo:{description:"Learn how to use the terminal in an interactive online tutorial. On this page, you can find an overview of the tutorial contents and get started now."},content:(0,Cr.jsx)(Cr.Fragment,{children:(0,Cr.jsx)(Zs,{})}),nextStepButton:"Start"}]},Xs=["type"],el=["steps"],tl=[Js,Es,Bs,Us],nl=function(e,t,n,r,a,o){var i=e.type,s=ji(e,Xs),l=i||(0===a?Ki.intro:a===o-1?Ki.congrats:0===n?Ki.chapterOverview:n===r-1?Ki.chapterSummary:Ki.explanation),u=function(e,t,n){if(t===Ki.intro)return e.slug?"/".concat(e.slug):"/";if(!n.slug)throw new Error("Chapter ".concat(n.title," does not have a slug"));switch(t){case Ki.congrats:return"/".concat(n.slug);case Ki.chapterOverview:return"/".concat(n.slug,"/overview");case Ki.chapterSummary:return"/".concat(n.slug,"/summary")}
2if(!e.slug)throw new Error("Step ".concat(e.heading," does not have a slug"));var r=t===Ki.exercise?"exercise-":"";return"/".concat(n.slug,"/").concat(r).concat(e.slug)}(e,l,t);return Tr(Tr({},s),{},{type:l,chapter:t,path:u})},rl=tl.map((function(e,t){return function(e,t,n){var r=e.steps,a=Tr(Tr({},ji(e,el)),{},{steps:[]});return a.steps=r.map((function(e,o){return nl(e,a,o,r.length,t,n)})),a}(e,t,tl.length)})),al=rl.map((function(e){return e.steps})).flat(),ol="ontouchstart"in document.documentElement,il=function(e){return e.length<20?"text-lg lg:text-xl":e.length<35?"text-base lg:text-lg":"text-sm lg:text-base"},sl=function(e){var n=e.step,r=n.command,a=n.showEnter,o=n.type===Ki.exercise,i=ct((0,t.useState)(0),2),s=i[0],l=i[1],u=ct((0,t.useState)(!o),2),c=u[0],d=u[1];(0,t.useEffect)((function(){d(!o),l((function(e){return(e+1)%1e3}))}),[n]);var f=c?r:"???";return(0,Cr.jsxs)("div",{className:"mt-6 lg:mt-8",children:[(0,Cr.jsx)("code",{className:"mr-4 inline-block break-all rounded-xl border-2 border-green-500 bg-green-400 px-6 py-2 font-mono font-bold text-gray-800 selection:bg-green-50 selection:text-green-500 ".concat(il(f)," ").concat(o?"cursor-pointer select-none ".concat(ol?"":"hover:border-green-600 hover:bg-green-500"):""),onClick:o?function(){return d((function(e){return!e}))}:void 0,children:f}),!!a&&(0,Cr.jsxs)("span",{className:"inline text-gray-500",children:["+ ",(0,Cr.jsx)("span",{className:"font-mono",children:"ENTER"})]})]},s)},ll=function(e){var t=e.children;return(0,Cr.jsx)("h1",{className:"mb-4 text-2xl font-bold leading-normal text-gray-900 lg:mb-6 lg:text-3xl lg:leading-normal",children:t})},ul=function(e){return e.replace(/["' ]/g,"\\$&")},cl=["children"],dl=["children"],fl=function(e){var t=e.children;return(0,Cr.jsx)("aside",{className:"mb-4 rounded border-l-8 border-l-red-500 bg-red-50 p-6 text-red-900 lg:mb-6",children:t})},hl=function(e){var t=e.children;return(0,Cr.jsx)("h3",{className:"mb-4 text-xl font-medium",children:t})},pl=function(e){var t=e.children;return(0,Cr.jsx)("p",{className:"text-red-800",children:t})},ml=function(e){var t=e.children;return(0,Cr.jsx)("div",{className:"-mx-2 mt-5 -mb-1",children:t})},vl="rounded-md bg-red-600 mx-2 my-1 px-4 py-2 inline-block text-white border border-red-600 hover:border-red-700 hover:bg-red-700 second:bg-red-50 second:text-red-600 second:hover:bg-red-700 second:hover:text-white",gl=function(e){var t=e.children,n=ji(e,cl);return(0,Cr.jsx)("button",Tr(Tr({className:vl},n),{},{children:t}))},yl=function(e){var t=e.children,n=ji(e,dl);return(0,Cr.jsx)(Lr,Tr(Tr({className:vl},n),{},{children:t}))},wl=function(e){var t=e.currentStep,n=e.savedProgress,r=Ks().navigateToStep,a=al[0].path,o=n.hasFinished?a:al[n.currentStep].path,i=or(),s=i.workDir,u=i.terminalRef,d=function(){var e,t,n=null===(e=al[0].conditions)||void 0===e?void 0:e.workDir;n&&s!==n&&(null===(t=u.current)||void 0===t||t.runCommand("cd ".concat(ul(n))))},f=function(){var e=c(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,Xe(!0);case 3:r(0),d();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=t===n.currentStep,p=t===al.length-1;return h||p?null:n.hasFinished?0===t?(0,Cr.jsxs)(fl,{children:[(0,Cr.jsx)(hl,{children:"Reset the terminal to start over?"}),(0,Cr.jsx)(pl,{children:"You've already completed this tutorial. To be able to complete it again, reset the terminal and its file system to a fresh state."}),(0,Cr.jsx)(ml,{children:(0,Cr.jsx)(gl,{onClick:f,children:"Reset terminal"})})]}):(0,Cr.jsxs)(fl,{children:[(0,Cr.jsx)(hl,{children:"Restart the tutorial from the beginning?"}),(0,Cr.jsx)(ml,{children:(0,Cr.jsx)(yl,{to:a,onClick:f,children:"Restart tutorial"})})]}):n.hasStarted?0===t?(0,Cr.jsxs)(fl,{children:[(0,Cr.jsx)(hl,{children:"Continue where you left?"}),(0,Cr.jsx)(pl,{children:"Otherwise, reset the terminal and its file system to a fresh state to be able to complete all steps."}),(0,Cr.jsxs)(ml,{children:[(0,Cr.jsx)(yl,{to:o,children:"Continue where I left"}),(0,Cr.jsx)(gl,{onClick:f,children:"Reset terminal"})]})]}):(0,Cr.jsxs)(fl,{children:[(0,Cr.jsx)(hl,{children:"Continue where you left?"}),(0,Cr.jsx)(pl,{children:"You've already started this tutorial."}),(0,Cr.jsxs)(ml,{children:[(0,Cr.jsx)(yl,{to:o,children:"Continue where I left"}),(0,Cr.jsx)(yl,{to:a,onClick:f,children:"Restart from beginning"})]})]}):t>0?(0,Cr.jsxs)(fl,{children:[(0,Cr.jsx)(hl,{children:"Start the tutorial from the beginning?"}),(0,Cr.jsx)(pl,{children:"This page is part of a multi-step tutorial. It is recommended to start from the beginning."}),(0,Cr.jsx)(ml,{children:(0,Cr.jsx)(yl,{to:a,onClick:f,children:"Start from the beginning"})})]}):null},bl=function(){var e=ct((0,t.useState)(0),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){var e,t=void 0,n=function(){t||(t=setTimeout((function(){r((function(e){return(e+1)%1e3})),t=void 0}),100))};return e=n,Ge.push(e),function(){return function(e){var t=Ge.indexOf(e);-1!==t&&Ge.splice(t,1)}(n)}}),[]),n},xl=function(){var e=c(l().mark((function e(t,n){var r,a,o,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],a=i(n),e.prev=2,a.s();case 4:if((o=a.n()).done){e.next=12;break}return s=o.value,e.next=8,po(t,s);case 8:if(e.sent){e.next=10;break}r.push(s);case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),a.e(e.t0);case 17:return e.prev=17,a.f(),e.finish(17);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})));return function(t,n){return e.apply(this,arguments)}}(),kl=function(){var e=c(l().mark((function e(t,n){var r,a,o,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],a=i(n),e.prev=2,a.s();case 4:if((o=a.n()).done){e.next=12;break}return s=o.value,e.next=8,mo(t,s.path);case 8:if(e.sent){e.next=10;break}r.push(s);case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),a.e(e.t0);case 17:return e.prev=17,a.f(),e.finish(17);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})));return function(t,n){return e.apply(this,arguments)}}(),jl=function(e,t){return e.path===t.path&&e.content===t.content},Sl=function(e,n,r){var a=function(e,n,r){var a=ct((0,t.useState)([]),2),o=a[0],i=a[1],s=(0,t.useMemo)((function(){var t;return[].concat(p(null!==e&&void 0!==e&&e.workDir?[e.workDir]:[]),p(null!==(t=null===e||void 0===e?void 0:e.directories)&&void 0!==t?t:[]))}),[e]);return(0,t.useEffect)((function(){var e=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xl(n,s);case 2:t=e.sent,bs(o,t)||i(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();
2e().catch((function(e){return console.error(e)}))}),[r,s]),o.map((function(e){return"mkdir -p ".concat(ul(e))}))}(e,n,r),o=function(e,n,r){var a=ct((0,t.useState)([]),2),o=a[0],i=a[1],s=(0,t.useMemo)((function(){var t;return null!==(t=null===e||void 0===e?void 0:e.files)&&void 0!==t?t:[]}),[e]);return(0,t.useEffect)((function(){var e=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kl(n,s);case 2:t=e.sent,bs(o,t,jl)||i(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e().catch((function(e){return console.error(e)}))}),[r,s]),o.map((function(e){if("string"!==typeof e.content)throw new Error("Creation of binary files is not implemented yet");return'echo "'.concat(function(e){return e.replace(/"/g,'\\"')}((t=e.content,t.endsWith("\n")?t.slice(0,-1):t)),'" > ').concat(ul(e.path));var t}))}(e,n,r);return{commands:[].concat(p(a),p(o)),areDirsMissing:a.length>0,areFilesMissing:o.length>0}},Cl=function(e){var t=or().workDir;return t&&null!==e&&void 0!==e&&e.workDir&&t!==e.workDir?"cd ".concat(ul(e.workDir)):void 0},El=function(e){var t=e.conditions,n=or(),r=n.fs,a=n.terminalRef,o=bl(),s=Sl(t,r,o),u=s.commands,d=s.areDirsMissing,f=s.areFilesMissing,h=Cl(t),m=[].concat(p(u),p(h?[h]:[])),v=function(){var e=c(l().mark((function e(){var t,n,r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=i(m),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return o=n.value,e.next=7,null===(r=a.current)||void 0===r?void 0:r.runCommand(o);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(){return e.apply(this,arguments)}}();return 0===m.length?null:u.length>0?h?(0,Cr.jsxs)("aside",{className:"my-4 rounded border-l-8 border-l-red-500 bg-red-50 p-6 text-red-900 lg:my-6",children:[(0,Cr.jsx)("h3",{className:"text-xl font-medium",children:"Not all requirements are met to complete this step"}),(0,Cr.jsx)("p",{className:"mt-4 mb-2",children:"Clicking the button below will:"}),(0,Cr.jsxs)("ol",{className:"list-inside list-decimal",children:[(0,Cr.jsxs)("li",{className:"mb-1",children:["Create missing"," ",d?f?"files and directories":"directories":"files"," ","that are necessary to complete this step"]}),(0,Cr.jsxs)("li",{children:["Change your working directory to"," ",(0,Cr.jsx)("code",{className:"rounded bg-white px-1 py-0.5",children:null===t||void 0===t?void 0:t.workDir})]})]}),(0,Cr.jsx)("button",{className:"mt-6 inline-block break-all rounded-md bg-red-600 px-4 py-2 text-start text-white hover:bg-red-700",onClick:v,children:"Fix requirements"})]}):(0,Cr.jsxs)("aside",{className:"my-4 rounded border-l-8 border-l-red-500 bg-red-50 p-6 text-red-900 lg:my-6",children:[(0,Cr.jsxs)("h3",{className:"text-lg font-medium",children:[d?f?"Files and directories":"Directories":"Files"," ","are missing to complete this step"]}),(0,Cr.jsxs)("button",{className:"mt-4 inline-block break-all rounded-md bg-red-600 px-4 py-2 text-start text-white hover:bg-red-700",onClick:v,children:["Create"," ",d?f?"files and directories":"directories":"files"]})]}):(0,Cr.jsxs)("aside",{className:"my-4 rounded border-l-8 border-l-red-500 bg-red-50 p-6 text-red-900 lg:my-6",children:[(0,Cr.jsx)("h3",{className:"text-lg font-medium",children:"To complete this step, first change your working directory:"}),(0,Cr.jsx)("button",{className:"mt-4 inline-block break-all rounded-md bg-red-600 px-4 py-2 text-start font-mono text-white hover:bg-red-700",onClick:v,children:(0,Cr.jsx)("code",{children:h})})]})},_l=function(e,t){var n=al[e].type===Ki.chapterSummary;return t?"Finish tutorial":n?"Next chapter":"Next step"},Tl=function(e){var n=e.children,r=Ks().stepIndex,a=r+1,o=al[a].type===Ki.congrats,i=o;return function(e,n){var r=or().addKeyboardShortcutHandler,a=Ks().navigateToStep;(0,t.useEffect)((function(){return r((function(t){var r=(t.metaKey||t.ctrlKey)&&t.key===Rr.Enter;return r&&a(e,n),r}))}),[r,a,e,n])}(a,i),(0,Cr.jsx)("div",{className:"mt-6 lg:mt-8",children:(0,Cr.jsxs)($s,{to:a,showSuccessMessage:i,className:"inline-block w-full rounded-lg bg-green-500 px-6 py-4 text-center text-lg font-medium text-white hover:bg-green-600 lg:w-auto lg:text-xl",children:[n||_l(r,o),(0,Cr.jsxs)("span",{className:"hidden text-green-200 md:inline",children:[" ","(",ra?"\u2318":"Ctrl+","\u23ce)"]})]})})},Pl=function(e){switch(e.type){case Ki.chapterOverview:return"Overview";case Ki.chapterSummary:return"Summary";default:return"Step ".concat(e.chapter.steps.indexOf(e)," of ").concat(e.chapter.steps.length-2)}},Dl=function(e,t){switch(e){case Ki.intro:return"Intro";case Ki.congrats:return"Congrats";case Ki.explanation:return"Explanation";case Ki.exercise:return"Exercise";case Ki.repetition:return"Repetition";case Ki.chapterOverview:return"Overview of Chapter ".concat(t);case Ki.chapterSummary:return"Summary of Chapter ".concat(t)}},Nl=function(e){var t=e.stepIndex,n=e.savedProgress,r=e.isTransitioningToNextStep,a=al[t],o=a.content,i=a.heading,s=a.conditions,l=a.chapter,u=a.type,c=a.nextStepButton,d=rl.indexOf(l);return(0,Cr.jsxs)("div",{className:"text-gray-800",children:[(0,Cr.jsx)("div",{className:"mb-2 text-sm font-medium text-gray-400 lg:text-base",children:u===Ki.intro?(0,Cr.jsx)("span",{children:l.title}):u!==Ki.congrats?(0,Cr.jsxs)("span",{children:[(0,Cr.jsxs)("span",{className:"hidden sm:inline",children:["Chapter ",d," \xb7 "]}),l.title," \xb7 ",Pl(a)]}):null}),(0,Cr.jsxs)(ll,{children:[t>0&&u!==Ki.congrats&&(0,Cr.jsxs)("span",{className:"text-green-500",children:[Dl(u,d),":"]})," ",i]}),!r&&(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(wl,{currentStep:t,
2savedProgress:n}),(0,Cr.jsx)(El,{conditions:s})]}),o,hs(a)?(0,Cr.jsx)(sl,{step:a}):u!==Ki.congrats?(0,Cr.jsx)(Tl,{children:c}):null]})},Al=function(){var e=localStorage.getItem(as);if(!e)return 0;var t=parseInt(e);return isNaN(t)?0:t},Ml=function(){var e,n=ct((0,t.useState)(Al),2),r=n[0],a=n[1],o=(0,t.useCallback)((function(e){a(e),function(e){localStorage.setItem(as,e.toString())}(e)}),[a]),i=(0,t.useCallback)((function(){return o(-1)}),[o]);return{savedProgress:(e=r,{hasStarted:0!==e,currentStep:e,hasFinished:-1===e}),saveProgress:o,saveFinished:i}},Ll=function(){var e,n=null===(e=function(){var e=hr(ur.UseMatches),n=e.matches,r=e.loaderData;return t.useMemo((function(){return n.map((function(e){var t=e.pathname,n=e.params;return{id:e.route.id,pathname:t,params:n,data:r[e.route.id],handle:e.route.handle}}))}),[n,r])}().find((function(e){return Au(e.handle)})))||void 0===e?void 0:e.handle;if(!n)throw new Error("No step route handle found");return n.stepIndex},Fl=function(){var e=rr(),n=Ll(),r=Ml(),a=r.savedProgress,o=r.saveProgress,i=r.saveFinished,s=(0,t.useCallback)((function(t){t>=al.length-1?i():o(t),n!==t&&e(al[t].path)}),[n,e,o,i]);return{stepIndex:n,savedProgress:a,doNavigateToStep:s}};var Il=function e(n,r){if("string"===typeof n||"number"===typeof n||"boolean"===typeof n)return n.toString();if(!n)return"";if(Array.isArray(n))return n.map((function(t){return e(t,r)})).join("");var a=ct((0,t.isValidElement)(n)?[n.type,n.props]:[null,null],2),o=a[0],i=a[1];if(o&&null!==r&&void 0!==r&&r.has(o))return r.get(o)(i);var s=n.props?n.props:{};return s&&s.children?e(s.children,r):""},Rl=function(e,n){(0,t.useEffect)((function(){var t=e(),n=t.title,r=t.description,a=t.canonicalUrl,o=document.title;document.title=n;var i=document.querySelector('meta[name="description"]'),s=null===i||void 0===i?void 0:i.getAttribute("content"),l=i||function(){var e=document.createElement("meta");return e.name="description",e}();l.setAttribute("content",r);var u=function(e){var t=document.createElement("link");return t.rel="canonical",t.href=e,t}(a);return document.head.appendChild(u),function(){document.title=o,s?l.setAttribute("content",s):document.head.removeChild(l),document.head.removeChild(u)}}),n)},Ol=function(e){var t;return(null===(t=e.seo)||void 0===t?void 0:t.title)||"".concat(e.heading," | Terminal Tutor")},zl=new Map([[ps,function(e){return"".concat(Il(e.children)," ")}],[vs,function(e){return"".concat(Il(e.children)," ")}],[Os,function(){return""}],["h2",function(e){return"".concat(Il(e.children)," ")}]]),Bl=function(e){var t;if(null!==(t=e.seo)&&void 0!==t&&t.description)return e.seo.description;var n=Il(e.content,zl).trim();if(n.length<=160)return n;var r=n.lastIndexOf(" ",158);return n.substring(0,r+1)+"\u2026"},Ul=function(e){return new URL(e.path,He).href},Wl=function(e){Rl((function(){var t=al[e];return{title:Ol(t),description:Bl(t),canonicalUrl:Ul(t)}}),[e])},Vl="shell-tutorial-align-to-window-top-style",Hl="shell-tutorial-align-to-window-top",Kl="shell-tutorial-align-to-window-top-in",Gl=function(){var e=window.visualViewport?window.visualViewport.pageTop:window.scrollY;(function(){var e=document.getElementById(Vl);if(!(e instanceof HTMLStyleElement))throw new Error("Could not find style tag");return e}()).innerHTML="\n    .".concat(Hl," {\n      top: calc(").concat(e,"px - 16em);\n    }\n\n    .").concat(Kl," {\n      top: ").concat(e,"px;\n    }\n\n    @media (min-width: ").concat($i,"px) {\n      .").concat(Hl,", .").concat(Kl," {\n        top: 0;\n      }\n    }\n  ")},$l=window.visualViewport||window,ql=[window,window.visualViewport].filter((function(e){return!!e})),Ql=0,Yl=function(){if(0===Ql){!function(){var e=document.createElement("style");e.id=Vl,document.head.appendChild(e)}(),$l.addEventListener("resize",Gl,{passive:!0});var e,t=i(ql);try{for(t.s();!(e=t.n()).done;){e.value.addEventListener("scroll",Gl,{passive:!0})}}catch(n){t.e(n)}finally{t.f()}Gl()}Ql++},Zl=function(){if(0===--Ql){$l.removeEventListener("resize",Gl);var e,t=i(ql);try{for(t.s();!(e=t.n()).done;){e.value.removeEventListener("scroll",Gl)}}catch(n){t.e(n)}finally{t.f()}!function(){var e;null===(e=document.getElementById(Vl))||void 0===e||e.remove()}()}},Jl=function(){return(0,t.useLayoutEffect)((function(){return Yl(),function(){return Zl()}}),[]),{baseClassName:Hl,inClassName:Kl}},Xl=function(e){var t=e.shouldShow;return(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"hidden lg:mb-8 lg:block lg:h-24 lg:w-24",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5",className:t?"shell-tutorial-animate-icon-check visible":"invisible"})})},eu=function(){return(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"mr-2 h-12 w-12 flex-shrink-0 lg:hidden",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})},tu=function(){return(0,Cr.jsxs)("div",{className:"hidden lg:relative lg:-mb-5 lg:flex lg:flex-row lg:items-end",children:[(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",className:"shell-tutorial-animate-icon-star-1 mb
2-8 mr-0 h-10 w-10",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})}),(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",className:"shell-tutorial-animate-icon-star-2 mb-8 mr-0 ml-2 h-12 w-10 pb-2",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})}),(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",className:"shell-tutorial-animate-icon-star-3 mb-8 mr-0 ml-2 h-10 w-10",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})})]})},nu=function(){return(0,Cr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"mr-4 h-12 w-12 flex-shrink-0 lg:mb-8 lg:mr-0 lg:h-24 lg:w-24",children:(0,Cr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 18.75h-9m9 0a3 3 0 013 3h-15a3 3 0 013-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 01-.982-3.172M9.497 14.25a7.454 7.454 0 00.981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 007.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 002.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 012.916.52 6.003 6.003 0 01-5.395 4.972m0 0a6.726 6.726 0 01-2.749 1.35m0 0a6.772 6.772 0 01-3.044 0"})})},ru=function(e){var n=e.message,r=e.isTutorialEnd,a=e.className,o=ct((0,t.useState)(!1),2),i=o[0],s=o[1],l=ct((0,t.useState)(""),2),u=l[0],c=l[1],d=ct((0,t.useState)(!1),2),f=d[0],h=d[1],p=Jl(),m=p.baseClassName,v=p.inClassName;(0,t.useLayoutEffect)((function(){if(s(!!n),!n){var e=setTimeout((function(){c(""),h(!1)}),710);return function(){return clearTimeout(e)}}c(n),h(r)}),[n,r]);var g="absolute left-0 right-0 flex items-center justify-center bg-green-500 p-8 text-green-100 shell-tutorial-success-message ".concat(u?"visible":"invisible"," ").concat(i?v:m),y="lg:flex-col lg:bottom-0 lg:mx-0 lg:mt-0 lg:rounded-none lg:shadow-none ".concat(i?"lg:opacity-100":"lg:opacity-0 lg:pb-64"),w=i?"duration-500 lg:duration-150":"duration-700";return(0,Cr.jsxs)("div",{className:"".concat(g," ").concat("mx-4 mt-4 rounded-xl shadow-xl shadow-green-700/50"," ").concat(y," ").concat(w," ").concat(a||""),children:[f?(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(tu,{}),(0,Cr.jsx)(nu,{})]}):(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(Xl,{shouldShow:i}),(0,Cr.jsx)(eu,{})]}),(0,Cr.jsx)("div",{className:"min-w-0 break-words pr-2 text-center text-4xl font-bold lg:pr-0 lg:text-5xl lg:font-normal",children:u})]})},au=["Nice!","Awesome!","Great!","Cool!","Amazing!","Fantastic!","Sweet!","Excellent!","Wonderful!","Splendid!","Superb!","Fabulous!","Terrific!","Well done!","Let's go!"],ou=function(e){var n=ct((0,t.useState)(""),2),r=n[0],a=n[1],o=ct((0,t.useState)(!1),2),i=o[0],s=o[1],l=ct((0,t.useState)(-1),2),u=l[0],c=l[1],d=(0,t.useCallback)((function(e){-1===u&&(e===al.length-1?(a(window.innerWidth<$i?"You made it!":"Congrats! You made it!"),s(!0)):a(au[Math.floor(Math.random()*au.length)]),c(e))}),[u]);(0,t.useEffect)((function(){if(-1!==u){var t=setTimeout((function(){a(""),s(!1);var t=function(){e(u),c(-1)};window.innerWidth>=$i?t():setTimeout(t,700)}),function(e){return e&&window.innerWidth>$i?2750:1500}(i));return function(){return clearTimeout(t)}}}),[u]);var f=(0,t.useCallback)((function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?d(t):e(t)}),[d,e]);return{successMessage:r,isTutorialEnd:i,isTransitioningToStep:-1!==u,navigateToStep:f}},iu=function(){return!shellTutorialIsEU&&!0},su=function(e,t){iu()&&gtag("event","command_executed",{command:e.command,commandName:e.parsedCommand.command,workDirBeforeCommand:e.workDirBeforeCommand,workDirAfterCommand:e.workDirAfterCommand,willProceedToNextStep:t})},lu=function(e,n,r){var a=or().addOnCommandExecutedListener,o=(0,t.useCallback)(function(){var t=c(l().mark((function t(a){var o,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=al[e],t.t0=!n&&hs(o),!t.t0){t.next=6;break}return t.next=5,o.verify(a);case 5:t.t0=t.sent;case 6:(i=t.t0)&&r(e+1,!0),su(a,i);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,n,r]);(0,t.useEffect)((function(){return a(o)}),[a,o])},uu=function(e){var n=or().contentPaneRef;(0,t.useEffect)((function(){window.innerWidth<$i?setTimeout((function(){return function(){var e;Xr?window.scrollTo({left:0,top:0,behavior:"smooth"}):null===(e=document.querySelector("#pageTop"))||void 0===e||e.scrollIntoView({behavior:"smooth"})}()}),50):n.current&&n.current.scrollTo({left:0,top:0,behavior:"auto"})}),e)},cu=document.getElementById("portal");if(!cu)throw new Error("Portal root not found");var du=function(){var e=Fl(),t=e.stepIndex,n=e.savedProgress,r=e.doNavigateToStep;Wl(t);var a=ou(r),o=a.successMessage,i=a.isTutorialEnd,s=a.isTransitioningToStep,l=a.navigateToStep;return lu(t,s,l),uu([t]),(0,Cr.jsx)(Hs.Provider,{value:{stepIndex:t,navigateToStep:l},children:(0,Cr.jsxs)("div",{children:[(0,Cr.jsx)(Nl,{stepIndex:t,savedProgress:n,isTransitioningToNextStep:s}),(0,Cr.jsx)(ru,{message:o,isTutorialEnd:i,className:"hidden lg:flex"}),(0,cs.createPortal)((0,Cr.jsx)(ru,{message:o,isTutorialEnd:i,className:"lg:hidden"}),cu)]})})},fu=function(){return(0,Cr.jsxs)("div",{children:[(0,Cr.jsx)("h1",{className:"mb-4 text-3xl font-bold text-gray-900 lg:mb-6 lg:text-4xl",children:"404 \u2014 Page not found"}),(0,Cr.jsxs)("h2",{className:"mb-8 text-3xl font-bold",children:["But we have a terminal for you. ",(0,Cr.jsx)("span",{className:"lg:hidden",children:"\ud83d\udc47"}),(0,Cr.jsx)("span",{className:"hidden lg:inline",children:"\ud83d\udc49"})]}),(0,Cr.jsxs)("p",{className:"text-lg lg:text-xl",children:["If you'd like to learn how to use the terminal, you can do so"," ",(0,Cr.jsx)(Lr,{to:"/",className:"font-bold text-green-500 underline hover:text-green-600",children:"here"}),". \ud83d\udcaa"]})]})},hu=function(){return(0,Cr.jsxs)("div",{className:"p-4 lg:p-8",children:[(0,Cr.jsx)("h1",{className:"mb-4 text-3xl font-bold text-gray-900 lg:mb-6 lg:text-4xl",children:"Oh no, an error occurred! \ud83d\udea8"}),(0,Cr.jsxs)("h2",{className:"mb-8 text-3xl font-bold",children:["Try reloading this page or going to the"," ",(0,Cr.jsx)(Lr,{to:"/",className:"font-bold text-green-500 underline hover:text-green-600",children:"start page"}),"."]})]})},pu=function(e){var t=e.children;return(0,Cr.jsx)("h1",{className:"mb-8 text-4xl font-bold",children:t})},mu=function(e){var t=e.children;return(0,Cr.jsx)("h2",{className:"mt-8 mb-4 text-3xl font-bold",children:t})},vu=function(e){var t=e.children;return(0,Cr.jsx)("h3",{className:"mb-2 text-xl font-bold",children:t})},gu=function(e){var t=e.children;return(0,Cr.jsx)("h4",{className:"mb-2 text-lg font-bold",children:t})},yu=function(e){var t=e.children;return(0,Cr.jsx)("p",{className:"mb-4",children:t})},wu=function(e){var t=e.children;return(0,Cr.jsx)("ul",{className:"mb-4 list-outside list-disc pl-8",children:t})},bu=function(e){var t=e.href,n=e.children;return(0,Cr.jsx)("a",{href:t,target:"_blank",rel:"noopener",className:"text-green-500 hover:text-green-600",children:n})},xu=function(){return(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(pu,{children:"Imprint"}),(0,Cr.jsx)(mu,{children:"Information according to \xa7 5 TMG:"}),(0,Cr.jsx)(yu,{children:"Niklas Wenzel"}),(0,Cr.jsx)(vu,{children:"Address:"}),(0,Cr.jsxs)(yu,{children:["Swinem\xfcnder Stra\xdfe 83",(0,Cr.jsx)("br",{}),"13355 Berlin",(0,Cr.jsx)("br",{}),"Germany"]}),(0,Cr.jsx)(vu,{children:"Contact:"}),(0,Cr.jsxs)(yu,{children:["Email: ",(0,Cr.jsx)(bu,{href:"mailto:[email protected]",children:"[email protected]"}),(0,Cr.jsx)("br",{}),"Telephone: +49 151 26070497"]}),(0,Cr.jsx)(vu,{children:"Other information:"}),(0,Cr.jsx)(yu,{children:"VAT ID: DE319228794"}),(0,Cr.jsx)(mu,{children:"Responsible for journalistic and editorial content according to \xa7 55 Abs. 2 RStV:"}),(0,Cr.jsx)(yu,{children:"Niklas Wenzel (see above for contact details)"}),(0,Cr.jsx)(mu,{children:"Online Dispute Resolution:"}),(0,Cr.jsxs)(yu,{children:["The European Commission provides a platform for online dispute resolution (according to Article 14 paragraph 1 ODR Regulation) at"," ",(0,Cr.jsx)(bu,{href:"https://ec.europa.eu/consumers/odr/",children:"https://ec.europa.eu/consumers/odr/"}),".",(0,Cr.jsx)("br",{}),(0,Cr.jsx)("br",{}),"I am neither willing nor obligated to participate in dispute resolution proceedings before a consumer arbitration board."]}),(0,Cr.jsx)(mu,{children:"Image credits:"}),(0,Cr.jsxs)(yu,{children:["Portrait \xa9 2021 ",(0,Cr.jsx)(bu,{href:"https://rothermel.me/",children:"Mark Rothermel"})]})]})},ku=function(e){var t=e.children;return(0,Cr.jsx)("div",{className:"flex w-full justify-center",children:(0,Cr.jsxs)("div",{className:"w-full max-w-4xl p-4 pb-12 lg:p-8",children:[(0,Cr.jsx)(Xi,{}),t,(0,Cr.jsx)(Ji,{})]})})},ju=function(){(0,t.useEffect)((function(){var e=function(){var e=document.createElement("meta");return e.name="robots",e.content="noindex",e}();return document.head.appendChild(e),function(){document.head.removeChild(e)}}),[])},Su=function(){return ju(),(0,Cr.jsx)(ku,{children:(0,Cr.jsx)(yr,{})})},Cu=function(){return(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(pu,{children:"Privacy Policy"}),(0,Cr.jsx)(yu,{children:"Personal data (usually referred to just as \u201edata\u201c below) will only be processed by us to the extent necessary and for the purpose of providing a functional and user-friendly website, including its contents, and the services offered there."}),(0,Cr.jsx)(yu,{children:"Per Art. 4 No. 1 of Regulation (EU) 2016/679, i.e. the General Data Protection Regulation (hereinafter referred to as the \u201eGDPR\u201c), \u201eprocessing\u201c refers to any operation or set of operations such as collection, recording, organization, structuring, storage, adaptation, alteration, retrieval, consultation, use, disclosure by transmission, dissemination, or otherwise making available, alignment, or combination, restriction, erasure, or destruction performed on personal data, whether by automated means or not."}),(0,Cr.jsx)(yu,{children:"The following privacy policy is intended to inform you in particular about the type, scope, purpose, duration, and legal basis for the processing of such data either under our own control or in conjunction with others. We also inform you below about the third-party components we use to optimize our website and improve the user experience which may result in said third parties also processing data they collect and control."}),(0,Cr.jsx)(yu,{children:"Our privacy policy is structured as follows:"}),(0,Cr.jsxs)(yu,{children:["I. Information about us as controllers of your data",(0,Cr.jsx)("br",{}),"II. The rights of users and data subjects",(0,Cr.jsx)("br",{}),"III. Information about the data processing"]}),(0,Cr.jsx)(mu,{children:"I. Information about us as controllers of your data"}),(0,Cr.jsx)(yu,{children:"The party responsible for this website (the \u201econtroller\u201c) for purposes of data protection law is:"}),(0,Cr.jsxs)(yu,{children:["Niklas Wenzel",(0,Cr.jsx)("br",{}),"Swinem\xfcnder Stra\xdfe 83",(0,Cr.jsx)("br",{}),"13355 Berlin",(0,Cr.jsx)("br",{}),"Germany"]}),(0,Cr.jsxs)(yu,{children:["Email: ",(0,Cr.jsx)(bu,{href:"mailto:[email protected]",children:"[email protected]"}),(0,Cr.jsx)("br",{}),"Telephone: +49 151 26070497"]}),(0,Cr.jsx)(mu,{children:"II. The rights of users and data subjects"}),(0,Cr.jsx)(yu,{children:"With regard to the data processing to be described 
2in more detail below, users and data subjects have the right"}),(0,Cr.jsxs)(wu,{children:[(0,Cr.jsx)("li",{children:"to confirmation of whether data concerning them is being processed, information about the data being processed, further information about the nature of the data processing, and copies of the data (cf. also Art. 15 GDPR);"}),(0,Cr.jsx)("li",{children:"to correct or complete incorrect or incomplete data (cf. also Art. 16 GDPR);"}),(0,Cr.jsx)("li",{children:"to the immediate deletion of data concerning them (cf. also Art. 17 DSGVO), or, alternatively, if further processing is necessary as stipulated in Art. 17 Para. 3 GDPR, to restrict said processing per Art. 18 GDPR;"}),(0,Cr.jsx)("li",{children:"to receive copies of the data concerning them and/or provided by them and to have the same transmitted to other providers/controllers (cf. also Art. 20 GDPR);"}),(0,Cr.jsx)("li",{children:"to file complaints with the supervisory authority if they believe that data concerning them is being processed by the controller in breach of data protection provisions (see also Art. 77 GDPR)."})]}),(0,Cr.jsx)(yu,{children:"In addition, the controller is obliged to inform all recipients to whom it discloses data of any such corrections, deletions, or restrictions placed on processing the same per Art. 16, 17 Para. 1, 18 GDPR. However, this obligation does not apply if such notification is impossible or involves a disproportionate effort. Nevertheless, users have a right to information about these recipients."}),(0,Cr.jsx)(yu,{children:(0,Cr.jsx)("strong",{children:"Likewise, under Art. 21 GDPR, users and data subjects have the right to object to the controller\u2019s future processing of their data pursuant to Art. 6 Para. 1 lit. f) GDPR. In particular, an objection to data processing for the purpose of direct advertising is permissible."})}),(0,Cr.jsx)(mu,{children:"III. Information about the data processing"}),(0,Cr.jsx)(yu,{children:"Your data processed when using our website will be deleted or blocked as soon as the purpose for its storage ceases to apply, provided the deletion of the same is not in breach of any statutory storage obligations or unless otherwise stipulated below."}),(0,Cr.jsx)(vu,{children:"Cookies"}),(0,Cr.jsx)(gu,{children:"a) Session cookies"}),(0,Cr.jsx)(yu,{children:"We use cookies on our website. Cookies are small text files or other storage technologies stored on your computer by your browser. These cookies process certain specific information about you, such as your browser, location data, or IP address."}),(0,Cr.jsx)(yu,{children:"This processing makes our website more user-friendly, efficient, and secure, allowing us, for example, to display our website in different languages or to offer a shopping cart function."}),(0,Cr.jsx)(yu,{children:"The legal basis for such processing is Art. 6 Para. 1 lit. b) GDPR, insofar as these cookies are used to collect data to initiate or process contractual relationships."}),(0,Cr.jsx)(yu,{children:"If the processing does not serve to initiate or process a contract, our legitimate interest lies in improving the functionality of our website. The legal basis is then Art. 6 Para. 1 lit. f) GDPR."}),(0,Cr.jsx)(yu,{children:"When you close your browser, these session cookies are deleted."}),(0,Cr.jsx)(gu,{children:"b) Third-party cookies"}
2),(0,Cr.jsx)(yu,{children:"If necessary, our website may also use cookies from companies with whom we cooperate for the purpose of advertising, analyzing, or improving the features of our website."}),(0,Cr.jsx)(yu,{children:"Please refer to the following information for details, in particular for the legal basis and purpose of such third-party collection and processing of data collected through cookies."}),(0,Cr.jsx)(gu,{children:"c) Disabling cookies"}),(0,Cr.jsx)(yu,{children:"You can refuse the use of cookies by changing the settings on your browser. Likewise, you can use the browser to delete cookies that have already been stored. However, the steps and measures required vary, depending on the browser you use. If you have any questions, please use the help function or consult the documentation for your browser or contact its maker for support."}),(0,Cr.jsx)(yu,{children:"If you prevent or restrict the installation of cookies, not all of the functions on our site may be fully usable."}),(0,Cr.jsx)(vu,{children:"Contact"}),(0,Cr.jsx)(yu,{children:"If you contact us via email or the contact form, the data you provide will be used for the purpose of processing your request. We must have this data in order to process and answer your inquiry; otherwise we will not be able to answer it in full or at all."}),(0,Cr.jsx)(yu,{children:"The legal basis for this data processing is Art. 6 Para. 1 lit. b) GDPR."}),(0,Cr.jsx)(yu,{children:"Your data will be deleted once we have fully answered your inquiry and there is no further legal obligation to store your data, such as if an order or contract resulted therefrom."}),(0,Cr.jsx)(vu,{children:"Newsletter"}),(0,Cr.jsx)(yu,{children:"If you register for our free newsletter, the data requested from you for this purpose, i.e. your email address and, optionally, your name and address, will be sent to us. We also store the IP address of your computer and the date and time of your registration. During the registration process, we will obtain your consent to receive this newsletter and the type of content it will offer, with reference made to this privacy policy. The data collected will be used exclusively to send the newsletter and will not be passed on to third parties."}),(0,Cr.jsx)(yu,{children:"The legal basis for this is Art. 6 Para. 1 lit. a) GDPR."}),(0,Cr.jsx)(yu,{children:"You may revoke your prior consent to receive this newsletter under Art. 7 Para. 3 GDPR with future effect. All you have to do is inform us that you are revoking your consent or click on the unsubscribe link contained in each newsletter."}),(0,Cr.jsx)(vu,{children:"Server data"}),(0,Cr.jsx)(yu,{children:"For technical reasons, the following data sent by your internet browser to us or to our server provider will be collected, especially to ensure a secure and stable website: These server log files record the type and version of your browser, operating system, the website from which you came (referrer URL), the webpages on our site visited, the date and time of your visit, as well as the IP address from which you visited our site."}),(0,Cr.jsx)(yu,{children:"The data thus collected will be temporarily stored, but not in association with any other of your data."}),(0,Cr.jsx)(yu,{children:"The basis for this storage is Art. 6 Para. 1 lit. f) GDPR. Our legitimate interest lies in the improvement, stability, functionality, and security of our website."}),(0,Cr.jsx)(yu,{children:"The data will be deleted within no more than seven days, unless continued storage is required for evidentiary purposes. In which case, all or part of the data will be excluded from deletion until the investigation of the relevant incident is finally resolved."}),(0,Cr.jsx)(vu,{children:"Plausible Analytics"}),(0,Cr.jsx)(yu,{children:"We use Plausible Analytics on our website. This is a web analytics service provided by Plausible Insights O\xdc, V\xe4striku tn 2, 50403, Tartu, Estonia, hereinafter referred to as \u201ePlausible\u201c."}),(0,Cr.jsx)(yu,{children:"Plausible is used to analyze how our website is used. The legal basis for this processing is Art. 6 Para. 1 lit. f) GDPR. Our legitimate interest lies in the analysis, optimization, and economic operation of our site."}),(0,Cr.jsx)(yu,{children:"Plausible collects the following data: page URLs visited (personally identifiable query parameters are discarded), HTTP referer, browser, operating system, device type (e.g. desktop, or phone), country, region, and city. Plausible never stores personally identifiable information, not even your IP address or your user agent. Furthermore, Plausible never stores cookies on your device."}),(0,Cr.jsxs)(yu,{children:["Plausible offers more information on how it handles your data at"," ",(0,Cr.jsx)(bu,{href:"https://plausible.io/data-policy",children:"https://plausible.io/data-policy"}),"."]}),(0,Cr.jsx)(vu,{children:"Google Analytics (non-EU countries only)"}),(0,Cr.jsx)(yu,{children:"For visitors located outside the EU or the EEA, we use Google Analytics on our website. This is a web analytics service provided by Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Irland (hereinafter: Google). If you are located in the EU or the EEA, Google Analytics is not used."}),(0,Cr.jsx)(yu,{children:"The Google Analytics service is used to analyze how our website is used. Our legitimate interest lies in the analysis, optimization, and economic operation of our site."}),(0,Cr.jsx)(yu,{children:"Usage and user-related information, such as IP address, place, time, or frequency of your visits to our website will be transmitted to a Google server in the United States and stored there."}),(0,Cr.jsx)(yu,{children:"The data collected in this way is in turn used by Google to provide us with an evaluation of visits to our website and what visitors do once there. This data can also be used to provide other services related to the use of our website and of the internet in general."}),(0,Cr.jsx)(yu,{children:"Google states that it will not connect your IP address to other data. In addition, Google provides further information with regard to its data protection practices at"}),(0,Cr.jsx)(yu,{children:(0,Cr.jsx)(bu,{href:"https://www.google.com/intl/de/policies/privacy/partners",children:"https://www.google.com/intl/de/policies/privacy/partners,"})}),(0,Cr.jsx)(yu,{children:"including options you can exercise to prevent such use of your data."}),(0,Cr.jsx)(yu,{children:"In addition, Google offers an opt-out add-on at"}),(0,Cr.jsx)(yu,{children:(0,Cr.jsx)(bu,{href:"https://tools.google.com/dlpage/gaoptout?hl=de",children:"https://tools.google.com/dlpage/gaoptout?hl=en"})}),(0,Cr.jsx)(yu,{children:"in addition with further information. This add-on can be installed on the most popular browsers and offers you further control over the data that Google collects when you visit our website. The add-on informs Google Analytics\u2018 JavaScript (ga.js) that no information about the website visit should be transmitted to Google Analytics. However, this does not prevent information from being transmitted to us or to other web analytics services we may use as detailed herein."}),(0,Cr.jsx)(vu,{children:"Sendinblue"}),(0,Cr.jsx)(yu,{children:"We offer you the opportunity to register for our free newsletter on our website."}),(0,Cr.jsx)(yu,{children:"We use Sendinblue to send newsletters. Sendinblue is a service provided by the company Sendinblue GmbH, K\xf6penicker Str. 126, 10179 Berlin, hereinafter referred to as \u201c Sendinblue \u201e."}),(0,Cr.jsx)(yu,{children:"If you sign up to receive our newsletter, the data requested during the registration process (your email address) will be processed by Sendinblue. For this your IP address and the date of your registration will be saved along with the time. As a further part of the registration process, your consent to the sending of the newsletter will be obtained, the content will be described 
2in concrete terms and reference made to this data protection declaration."}),(0,Cr.jsx)(yu,{children:"Additionally at"}),(0,Cr.jsxs)(wu,{children:[(0,Cr.jsx)("li",{children:(0,Cr.jsx)(bu,{href:"https://www.sendinblue.com/legal/privacypolicy/",children:"https://www.sendinblue.com/legal/privacypolicy/"})}),(0,Cr.jsx)("li",{children:(0,Cr.jsx)(bu,{href:"https://www.sendinblue.com/information-for-email-recipients/",children:"Information for Email Recipients"})})]}),(0,Cr.jsx)(yu,{children:"Sendinblue offers further data protection information."}),(0,Cr.jsx)(yu,{children:"The newsletters sent by Sendinblue contain technologies by which we can analyse whether and when an email was opened and whether and which links contained in the newsletter were followed. We save this data in addition to the technical data (system data and IP address) so that the respective newsletter can be best tailored to your wishes and interests. The data thus collected is used to continuously improve the quality of our newsletters."}),(0,Cr.jsx)(yu,{children:"The legal basis for sending the newsletter and the analysis is Art. 6 Para. 1 lit. a.) EU General Data Protection Regulation (GDPR)."}),(0,Cr.jsx)(yu,{children:"Consent to the newsletter being sent can be revoked at any time with future effect in accordance with Art. 7 Para. 3 GDPR. To do this, you only have to inform us of your revocation or click the unsubscribe link contained in each newsletter."}),(0,Cr.jsxs)(yu,{children:[(0,Cr.jsx)(bu,{href:"https://www.generator-datenschutzerkl\xe4rung.de",children:"Model Data Protection Statement"})," ","by"," ",(0,Cr.jsx)(bu,{href:"https://www.ratgeberrecht.eu/",children:"Anwaltskanzlei Wei\xdf & Partner"})]})]})},Eu=n.p+"static/media/portrait.0e300b34f59fbeeef083.jpg",_u=n.p+"static/media/[email protected]",Tu=n.p+"static/media/portrait.804fab21c848d886f583.webp",Pu=n.p+"static/media/[email protected]",Du=function(e){var t=e.href,n=e.children;return(0,Cr.jsx)("a",{href:t,target:"_blank",rel:"noopener",className:"text-green-500 hover:text-green-600",children:n})},Nu=function(){return Rl((function(){return{title:"About Terminal Tutor | Interactive Terminal Tutorial",description:"Terminal Tutor is a free interactive tutorial for the command line. It's being developed by Niklas Wenzel, a Berlin-based software development coach.",canonicalUrl:new URL("/about",He).href}}),[]),(0,Cr.jsxs)(ku,{children:[(0,Cr.jsx)("h1",{className:"my-8 text-3xl font-bold text-gray-900",children:"About Terminal Tutor"}),(0,Cr.jsx)("p",{className:"mb-4 leading-relaxed text-gray-800",children:'Terminal Tutor is an interactive tutorial for the command line (also called "terminal" or "console").'}),(0,Cr.jsx)("p",{className:"mb-4 leading-relaxed text-gray-800",children:"It's free for everyone to use in the hopes that it will demystify the console for as many people as possible."}),(0,Cr.jsx)("h2",{className:"mt-8 mb-6 text-2xl font-bold text-gray-900",children:"Author"}),(0,Cr.jsx)("div",{className:"mb-8 flex justify-center",children:(0,Cr.jsxs)("picture",{children:[(0,Cr.jsx)("source",{srcSet:"".concat(Tu,", ").concat(Pu," 2x"),type:"image/webp"}),(0,Cr.jsx)("source",{srcSet:"".concat(Eu,", ").concat(_u," 2x"),type:"image/jpeg"}),(0,Cr.jsx)("img",{src:Eu,className:"h-64 w-64 rounded-full",alt:"Portrait of Niklas Wenzel, the developer of Terminal Tutor"})]})}),(0,Cr.jsxs)("p",{className:"mb-4 leading-relaxed text-gray-800",children:["Terminal Tutor is being developed by"," ",(0,Cr.jsx)(Du,{href:"https://www.nikwen.de",children:"Niklas Wenzel"}),", a Berlin-based software development coach for founders."]}),(0,Cr.jsx)("p",{className:"mb-4 leading-relaxed text-gray-800",children:"Reach out to Niklas for personal one-on-one coaching on learning how to code:"}),(0,Cr.jsxs)("div",{className:"my-6 flex flex-wrap items-center justify-center",children:[(0,Cr.jsx)("a",{href:"https://www.nikwen.de",target:"_blank",rel:"noopener",className:"my-2 mr-4 h-11 w-11 last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"fill-gray-500",children:[(0,Cr.jsx)("title",{children:"Homepage of Niklas Wenzel"}),(0,Cr.jsx)("path",{d:"M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"}),(0,Cr.jsx)("path",{d:"M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"})]})}),(0,Cr.jsx)("a",{href:"https://www.linkedin.com/in/niklas-wenzel-59953b201/",target:"_blank",rel:"noopener",className:"my-2 mr-4 h-11 w-11 fill-[#0A66C2] last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-[#0A66C2]",children:[(0,Cr.jsx)("title",{children:"LinkedIn"}),(0,Cr.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})]})}),(0,Cr.jsx)("a",{href:"https://twitter.com/nikwen_de",target:"_blank",rel:"noopener",className:"my-2 mr-4 h-12 w-12 last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-[#1DA1F2]",children:[(0,Cr.jsx)("title",{children:"Twitter"}),(0,Cr.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})]})}),(0,Cr.jsx)("a",{href:"mailto:[email protected]",className:"my-2 mr-4 h-12 w-12 last-of-type:mr-0 hover:brightness-75",children:(0,Cr.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"fill-gray-500",children:[(0,Cr.jsx)("title",{children:"Email"}),(0,Cr.jsx)("path",{d:"M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z"}),(0,Cr.jsx)("path",{d:"M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"})]})})]}),(0,Cr.jsxs)("p",{className:"mb-4 leading-relaxed text-gray-800",children:["Fun fact: Niklas used to be a maintainer of the official Terminal app for"," ",(0,Cr.jsx)(Du,{href:"https://en.wikipedia.org/wiki/Ubuntu_Touch",children:"Ubuntu phones"}),"."]}),(0,Cr.jsx)("h2",{className:"mt-8 mb-6 text-2xl font-bold text-gray-900",children:"Featured on"}),(0,Cr.jsxs)("p",{className:"mb-4 leading-relaxed text-gray-800",children:["Terminal Tutor has been featured on the"," ",(0,Cr.jsx)(Du,{href:"https://ironhackpodcast.buzzsprout.com/1417060/12449279-86-self-taught-coding-leaving-your-comfort-zone-w-niklas-wenzel",children:"IronHack podcast"})," ","where Niklas and"," ",(0,Cr.jsx)(Du,{href:"https://www.linkedin.com/in/danparry/",children:"Dan Parry"})," discussed the story behind Terminal Tutor and shared insights about learning how to code."]}),(0,Cr.jsxs)("p",{className:"mb-4 leading-relaxed text-gray-800",children:[(0,Cr.jsx)(Du,{href:"https://javarevisited.blogspot.com",children:"Javin Paul"})," has also featured Terminal Tutor on his blog as one of the"," ",(0,Cr.jsx)(Du,{href:"https://medium.com/javarevisited/top-10-courses-to-learn-linux-command-line-in-2020-best-and-free-f3ee4a78d0c0",children:"best courses to learn the command line"}),"."]})]})},Au=function(e){return"object"===typeof e&&null!==e&&"stepIndex"in e&&"number"===typeof e.stepIndex},Mu=function(e){return e.startsWith("/")?e.slice(1):e},Lu=function(e){return function(e,t){return ln({basename:null==t?void 0:t.basename,history:(n={window:null==t?void 0:t.window},void 0===n&&(n={}),Et((function(e,t){var n=e.location;return jt("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:St(t)}),null,n)),hydrationData:(null==t?void 0:t.hydrationData)||Ar(),routes:Sr(e)}).initialize();var n}(function(e){return[{path:"/",element:(0,Cr.jsx)(us,{fs:e}),errorElement:(0,Cr.jsx)(hu,{}),children:[].concat(p(al.map((function(e,t){return Tr(Tr({},"/"===e.path?{index:!0}:{path:Mu(e.path)}),{},{element:(0,Cr.jsx)(du,{}),handle:{stepIndex:t}})}))),[{path:"tutorial",element:(0,Cr.jsx)(gr,{to:"/",replace:!0}),excludeFromSitemap:!0},{path:"tutorial/*",element:(0,Cr.jsx)(gr,{to:"/",replace:!0}),excludeFromSitemap:!0},{path:"*",element:(0,Cr.jsx)(fu,{}),excludeFromSitemap:!0}])},{path:"/about",element:(0,Cr.jsx)(Nu,{})},{element:(0,Cr.jsx)(Su,{}),errorElement:(0,Cr.jsx)(hu,{}),excludeFromSitemap:!0,children:[{path:"/imprint",element:(0,Cr.jsx)(xu,{})},{path:"/privacy",element:(0,Cr.jsx)(Cu,{})}]}].concat(p([]))}(e))};"undefined"===typeof window&&console.log(""),iu()&&(function(){var e=document.createElement("script");e.setAttribute("src","https://www.googletagmanager.com/gtag/js?i
2d=G-BHMCKQGQP0"),e.async=!0,document.head.appendChild(e)}(),function(){function e(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config","G-BHMCKQGQP0"),window.gtag=e}());var Fu=document.getElementById("app");Fu?Xe().then((function(n){var r=Lu(n);(0,e.s)(Fu).render((0,Cr.jsx)(t.StrictMode,{children:(0,Cr.jsx)(Er,{router:r})}))})).catch((function(e){return console.error(e)})):console.error("React root not found")}()}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.