nothumanallowed 14.4.2 → 14.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/ui.mjs +29 -10
- package/src/constants.mjs +1 -1
- package/src/server/ws.mjs +72 -6
- package/src/ui-dist/assets/{index-Xhsjp7vx.css → index-CA7A7B-l.css} +1 -1
- package/src/ui-dist/assets/{index-CwBY0ynS.js → index-mOYJG0LY.js} +9 -9
- package/src/ui-dist/index.html +2 -2
|
@@ -7,7 +7,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
8
|
`+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,N=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,P=t.unstable_getCurrentPriorityLevel,F=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Fe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function ze(e){if(typeof Fe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var Be=Math.clz32?Math.clz32:He,I=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(I(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Be(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Be(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=se.p;return e===0?(e=window.event,e===void 0?32:gp(e.type)):e}function ot(e,t){var n=se.p;try{return se.p=e,t()}finally{se.p=n}}var st=Math.random().toString(36).slice(2),ct=`__reactFiber$`+st,lt=`__reactProps$`+st,ut=`__reactContainer$`+st,dt=`__reactEvents$`+st,ft=`__reactListeners$`+st,pt=`__reactHandles$`+st,L=`__reactResources$`+st,mt=`__reactMarker$`+st;function ht(e){delete e[ct],delete e[lt],delete e[dt],delete e[ft],delete e[pt]}function gt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[ct])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[ct]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function yt(e){var t=e[L];return t||=e[L]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[mt]=!0}var R=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)R.add(t[e])}var wt=RegExp(`^[: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]*$`),Tt={},z={};function Et(e){return Ee.call(z,e)?!0:Ee.call(Tt,e)?!1:wt.test(e)?z[e]=!0:(Tt[e]=!0,!1)}function Dt(e,t,n){if(Et(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ot(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function At(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Mt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nt(e){if(!e._valueTracker){var t=jt(e)?`checked`:`value`;e._valueTracker=Mt(e,t,``+e[t])}}function Pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=jt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function B(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ft=/[\n"\\]/g;function It(e){return e.replace(Ft,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Lt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+At(t)):e.value!==``+At(t)&&(e.value=``+At(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):zt(e,o,At(n)):zt(e,o,At(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+At(s):e.removeAttribute(`name`)}function Rt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Nt(e);return}n=n==null?``:``+At(n),t=t==null?n:``+At(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Nt(e)}function zt(e,t,n){t===`number`&&B(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Bt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+At(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vt(e,t,n){if(t!=null&&(t=``+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+At(n)}function V(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(O(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=At(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Nt(e)}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Wt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ut.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(e){if(e.indexOf(`-`)===-1)return!1;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 H=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jt(e){return qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Yt(){}var Xt=null;function U(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zt=null,Qt=null;function $t(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[lt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Lt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+It(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[lt]||null;if(!a)throw Error(i(90));Lt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Pt(r)}break a;case`textarea`:Vt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Bt(e,!!n.multiple,t,!1)}}}var en=!1;function W(e,t,n){if(en)return e(t,n);en=!0;try{return e(t)}finally{if(en=!1,(Zt!==null||Qt!==null)&&(xu(),Zt&&(t=Zt,e=Qt,Qt=Zt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var nn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,`passive`,{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return cn=i.slice(e,1<r?1-r:void 0)}function un(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dn(){return!0}function fn(){return!1}function pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?dn:fn,this.isPropagationStopped=fn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=dn)},persist:function(){},isPersistent:dn}),t}var mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=pn(mn),gn=h({},mn,{view:0,detail:0}),_n=pn(gn),vn,yn,bn,xn=h({},gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==bn&&(bn&&e.type===`mousemove`?(vn=e.screenX-bn.screenX,yn=e.screenY-bn.screenY):yn=vn=0,bn=e),vn)},movementY:function(e){return`movementY`in e?e.movementY:yn}}),Sn=pn(xn),Cn=pn(h({},xn,{dataTransfer:0})),wn=pn(h({},gn,{relatedTarget:0})),Tn=pn(h({},mn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=pn(h({},mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Dn=pn(h({},mn,{data:0})),On={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`},An={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=An[e])?!!t[e]:!1}function Mn(){return jn}var Nn=pn(h({},gn,{key:function(e){if(e.key){var t=On[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=un(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?kn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return e.type===`keypress`?un(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?un(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Pn=pn(h({},xn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fn=pn(h({},gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),In=pn(h({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=pn(h({},xn,{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})),Rn=pn(h({},mn,{newState:0,oldState:0})),zn=[9,13,27,32],Bn=nn&&`CompositionEvent`in window,Vn=null;nn&&`documentMode`in document&&(Vn=document.documentMode);var Hn=nn&&`TextEvent`in window&&!Vn,Un=nn&&(!Bn||Vn&&8<Vn&&11>=Vn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function Yn(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Xn(e,t){if(Jn)return e===`compositionend`||!Bn&&Kn(e,t)?(e=ln(),cn=sn=on=null,Jn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Un&&t.locale!==`ko`?null:t.data;default:return null}}var Zn={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 Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Zn[e.type]:t===`textarea`}function $n(e,t,n,r){Zt?Qt?Qt.push(r):Qt=[r]:Zt=r,t=kd(t,`onChange`),0<t.length&&(n=new hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var G=null,er=null;function tr(e){xd(e,0)}function K(e){if(Pt(vt(e)))return e}function nr(e,t){if(e===`change`)return t}var rr=!1;if(nn){var ir;if(nn){var ar=`oninput`in document;if(!ar){var or=document.createElement(`div`);or.setAttribute(`oninput`,`return;`),ar=typeof or.oninput==`function`}ir=ar}else ir=!1;rr=ir&&(!document.documentMode||9<document.documentMode)}function sr(){G&&(G.detachEvent(`onpropertychange`,cr),er=G=null)}function cr(e){if(e.propertyName===`value`&&K(er)){var t=[];$n(t,er,e,U(e)),W(tr,t)}}function lr(e,t,n){e===`focusin`?(sr(),G=t,er=n,G.attachEvent(`onpropertychange`,cr)):e===`focusout`&&sr()}function ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return K(er)}function dr(e,t){if(e===`click`)return K(t)}function fr(e,t){if(e===`input`||e===`change`)return K(t)}function pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var mr=typeof Object.is==`function`?Object.is:pr;function hr(e,t){if(mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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 i=n[r];if(!Ee.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _r(e,t){var n=gr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=gr(n)}}function vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=B(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=B(e.document)}return t}function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var xr=nn&&`documentMode`in document&&11>=document.documentMode,Sr=null,Cr=null,wr=null,Tr=!1;function Er(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||Sr==null||Sr!==B(r)||(r=Sr,`selectionStart`in r&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wr&&hr(wr,r)||(wr=r,r=kd(Cr,`onSelect`),0<r.length&&(t=new hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Or={animationend:Dr(`Animation`,`AnimationEnd`),animationiteration:Dr(`Animation`,`AnimationIteration`),animationstart:Dr(`Animation`,`AnimationStart`),transitionrun:Dr(`Transition`,`TransitionRun`),transitionstart:Dr(`Transition`,`TransitionStart`),transitioncancel:Dr(`Transition`,`TransitionCancel`),transitionend:Dr(`Transition`,`TransitionEnd`)},kr={},Ar={};nn&&(Ar=document.createElement(`div`).style,`AnimationEvent`in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),`TransitionEvent`in window||delete Or.transitionend.transition);function jr(e){if(kr[e])return kr[e];if(!Or[e])return e;var t=Or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ar)return kr[e]=t[n];return e}var Mr=jr(`animationend`),Nr=jr(`animationiteration`),Pr=jr(`animationstart`),Fr=jr(`transitionrun`),Ir=jr(`transitionstart`),Lr=jr(`transitioncancel`),Rr=jr(`transitionend`),zr=new Map,Br=`abort auxClick beforeToggle 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(` `);Br.push(`scrollEnd`);function Vr(e,t){zr.set(e,t),St(t,[e])}var Hr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ur=[],Wr=0,Gr=0;function Kr(){for(var e=Wr,t=Gr=Wr=0;t<e;){var n=Ur[t];Ur[t++]=null;var r=Ur[t];Ur[t++]=null;var i=Ur[t];Ur[t++]=null;var a=Ur[t];if(Ur[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xr(n,i,a)}}function qr(e,t,n,r){Ur[Wr++]=e,Ur[Wr++]=t,Ur[Wr++]=n,Ur[Wr++]=r,Gr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jr(e,t,n,r){return qr(e,t,n,r),Zr(e)}function Yr(e,t){return qr(e,null,null,t),Zr(e)}function Xr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Be(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zr(e){if(50<fu)throw fu=0,pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qr={};function $r(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.refCleanup=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 ei(e,t,n,r){return new $r(e,t,n,r)}function ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ni(e,t){var n=e.alternate;return n===null?(n=ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ri(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ii(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ti(e)&&(s=1);else if(typeof e==`string`)s=Kf(e,n,j.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case T:return e=ei(31,n,t,a),e.elementType=T,e.lanes=o,e;case y:return ai(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ei(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case ee:return e=ei(13,n,t,a),e.elementType=ee,e.lanes=o,e;case te:return e=ei(19,n,t,a),e.elementType=te,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ai(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function oi(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function si(e){var t=ei(18,null,null,0);return t.stateNode=e,t}function ci(e,t,n){return t=ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var li=new WeakMap;function ui(e,t){if(typeof e==`object`&&e){var n=li.get(e);return n===void 0?(t={value:e,source:t,stack:Te(t)},li.set(e,t),t):n}return{value:e,source:t,stack:Te(t)}}var di=[],fi=0,pi=null,mi=0,hi=[],gi=0,_i=null,vi=1,yi=``;function bi(e,t){di[fi++]=mi,di[fi++]=pi,pi=e,mi=t}function xi(e,t,n){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,_i=e;var r=vi;e=yi;var i=32-Be(r)-1;r&=~(1<<i),n+=1;var a=32-Be(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vi=1<<32-Be(t)+i|n<<i|r,yi=a+e}else vi=1<<a|n<<i|r,yi=e}function Si(e){e.return!==null&&(bi(e,1),xi(e,1,0))}function Ci(e){for(;e===pi;)pi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null;for(;e===_i;)_i=hi[--gi],hi[gi]=null,yi=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null}function wi(e,t){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,vi=t.id,yi=t.overflow,_i=e}var Ti=null,Ei=null,Di=!1,Oi=null,ki=!1,Ai=Error(i(519));function ji(e){throw Li(ui(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ai}function Mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ct]=e,t[lt]=r,n){case`dialog`:Sd(`cancel`,t),Sd(`close`,t);break;case`iframe`:case`object`:case`embed`:Sd(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)Sd(yd[n],t);break;case`source`:Sd(`error`,t);break;case`img`:case`image`:case`link`:Sd(`error`,t),Sd(`load`,t);break;case`details`:Sd(`toggle`,t);break;case`input`:Sd(`invalid`,t),Rt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Sd(`invalid`,t);break;case`textarea`:Sd(`invalid`,t),V(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Sd(`beforetoggle`,t),Sd(`toggle`,t)),r.onScroll!=null&&Sd(`scroll`,t),r.onScrollEnd!=null&&Sd(`scrollend`,t),r.onClick!=null&&(t.onclick=Yt),t=!0):t=!1,t||ji(e,!0)}function Ni(e){for(Ti=e.return;Ti;)switch(Ti.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Ti=Ti.return}}function Pi(e){if(e!==Ti)return!1;if(!Di)return Ni(e),Di=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Ei&&ji(e),Ni(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ei=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ei=mf(e)}else t===27?(t=Ei,tf(e.type)?(e=pf,pf=null,Ei=e):Ei=t):Ei=Ti?ff(e.stateNode.nextSibling):null;return!0}function Fi(){Ei=Ti=null,Di=!1}function Ii(){var e=Oi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Oi=null),e}function Li(e){Oi===null?Oi=[e]:Oi.push(e)}var Ri=de(null),q=null,zi=null;function Bi(e,t,n){A(Ri,t._currentValue),t._currentValue=n}function Vi(e){e._currentValue=Ri.current,fe(Ri)}function Hi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ui(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Hi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Hi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Wi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;mr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===he.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ep]:e.push(ep))}a=a.return}e!==null&&Ui(t,e,n,r),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ki(e){q=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function J(e){return Ji(q,e)}function qi(e,t){return q===null&&Ki(e),Ji(e,t)}function Ji(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zi===null){if(e===null)throw Error(i(308));zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zi=zi.next=t;return n}var Yi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Xi=t.unstable_scheduleCallback,Zi=t.unstable_NormalPriority,Qi={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $i(){return{controller:new Yi,data:new Map,refCount:0}}function ea(e){e.refCount--,e.refCount===0&&Xi(Zi,function(){e.controller.abort()})}var ta=null,na=0,ra=0,ia=null;function aa(e,t){if(ta===null){var n=ta=[];na=0,ra=pd(),ia={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return na++,t.then(oa,oa),t}function oa(){if(--na===0&&ta!==null){ia!==null&&(ia.status=`fulfilled`);var e=ta;ta=null,ra=0,ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ca=k.S;k.S=function(e,t){tu=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&aa(e,t),ca!==null&&ca(e,t)};var la=de(null);function ua(){var e=la.current;return e===null?Il.pooledCache:e}function da(e,t){t===null?A(la,la.current):A(la,t.pool)}function fa(){var e=ua();return e===null?null:{parent:Qi._currentValue,pool:e}}var pa=Error(i(460)),ma=Error(i(474)),ha=Error(i(542)),ga={then:function(){}};function _a(e){return e=e.status,e===`fulfilled`||e===`rejected`}function va(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yt,Yt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Sa(e),e;default:if(typeof t.status==`string`)t.then(Yt,Yt);else{if(e=Il,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Sa(e),e}throw ba=t,pa}}function ya(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ba=e,pa):e}}var ba=null;function xa(){if(ba===null)throw Error(i(459));var e=ba;return ba=null,e}function Sa(e){if(e===pa||e===ha)throw Error(i(483))}var Ca=null,wa=0;function Ta(e){var t=wa;return wa+=1,Ca===null&&(Ca=[]),va(Ca,e,t)}function Ea(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Da(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Oa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=oi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&ya(i)===t.type)?(t=a(t,n.props),Ea(t,n),t.return=e,t):(t=ii(n.type,n.key,n.props,null,e.mode,r),Ea(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ci(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ai(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ii(t.type,t.key,t.props,null,e.mode,n),Ea(n,t),n.return=e,n;case v:return t=ci(t,e.mode,n),t.return=e,t;case re:return t=ya(t),f(e,t,n)}if(O(t)||ae(t))return t=ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ta(t),n);if(t.$$typeof===C)return f(e,qi(e,t),n);Da(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case re:return n=ya(n),p(e,t,n,r)}if(O(n)||ae(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ta(n),r);if(n.$$typeof===C)return p(e,t,qi(e,n),r);Da(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=ya(r),m(e,t,n,r,i)}if(O(r)||ae(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ta(r),i);if(r.$$typeof===C)return m(e,t,n,qi(t,r),i);Da(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Di&&bi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Di&&bi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Di&&bi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Di&&bi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Di&&bi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Di&&bi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ea(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ai(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ii(o.type,o.key,o.props,null,e.mode,c),Ea(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ci(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=ya(o),b(e,r,o,c)}if(O(o))return h(e,r,o,c);if(ae(o)){if(l=ae(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ta(o),c);if(o.$$typeof===C)return b(e,r,qi(e,o),c);Da(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{wa=0;var i=b(e,t,n,r);return Ca=null,i}catch(t){if(t===pa||t===ha)throw t;var a=ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ka=Oa(!0),Aa=Oa(!1),ja=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zr(e),Xr(e,null,n),t}return qr(e,r,t,n),Zr(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ra=!1;function za(){if(Ra){var e=ia;if(e!==null)throw e}}function Ba(e,t,n,r){Ra=!1;var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Rl&f)===f:(r&f)===f){f!==0&&f===ra&&(Ra=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:ja=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ha(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Va(n[e],t)}var Ua=de(null),Wa=de(0);function Ga(e,t){e=Wl,A(Wa,e),A(Ua,t),Wl=e|t.baseLanes}function Ka(){A(Wa,Wl),A(Ua,Ua.current)}function qa(){Wl=Wa.current,fe(Ua),fe(Wa)}var Ja=de(null),Ya=null;function Xa(e){var t=e.alternate;A(to,to.current&1),A(Ja,e),Ya===null&&(t===null||Ua.current!==null||t.memoizedState!==null)&&(Ya=e)}function Za(e){A(to,to.current),A(Ja,e),Ya===null&&(Ya=e)}function Qa(e){e.tag===22?(A(to,to.current),A(Ja,e),Ya===null&&(Ya=e)):$a(e)}function $a(){A(to,to.current),A(Ja,Ja.current)}function eo(e){fe(Ja),Ya===e&&(Ya=null),fe(to)}var to=de(0);function no(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ro=0,io=null,ao=null,oo=null,so=!1,co=!1,lo=!1,uo=0,fo=0,po=null,mo=0;function ho(){throw Error(i(321))}function go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function _o(e,t,n,r,i,a){return ro=a,io=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Ps:Fs,lo=!1,a=n(r,i),lo=!1,co&&(a=yo(t,n,r,i)),vo(e),a}function vo(e){k.H=Ns;var t=ao!==null&&ao.next!==null;if(ro=0,oo=ao=io=null,so=!1,fo=0,po=null,t)throw Error(i(300));e===null||Qs||(e=e.dependencies,e!==null&&Gi(e)&&(Qs=!0))}function yo(e,t,n,r){io=e;var a=0;do{if(co&&(po=null),fo=0,co=!1,25<=a)throw Error(i(301));if(a+=1,oo=ao=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=Is,o=t(n,r)}while(co);return o}function bo(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?Do(t):t,e=e.useState()[0],(ao===null?null:ao.memoizedState)!==e&&(io.flags|=1024),t}function xo(){var e=uo!==0;return uo=0,e}function So(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Co(e){if(so){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}so=!1}ro=0,oo=ao=io=null,co=!1,fo=uo=0,po=null}function wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?io.memoizedState=oo=e:oo=oo.next=e,oo}function To(){if(ao===null){var e=io.alternate;e=e===null?null:e.memoizedState}else e=ao.next;var t=oo===null?io.memoizedState:oo.next;if(t!==null)oo=t,ao=e;else{if(e===null)throw io.alternate===null?Error(i(467)):Error(i(310));ao=e,e={memoizedState:ao.memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},oo===null?io.memoizedState=oo=e:oo=oo.next=e}return oo}function Eo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Do(e){var t=fo;return fo+=1,po===null&&(po=[]),e=va(po,e,t),t=io,(oo===null?t.memoizedState:oo.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Ps:Fs),e}function Oo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Do(e);if(e.$$typeof===C)return J(e)}throw Error(i(438,String(e)))}function ko(e){var t=null,n=io.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=io.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Eo(),io.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E;return t.index++,n}function Ao(e,t){return typeof t==`function`?t(e):t}function jo(e){return Mo(To(),ao,e)}function Mo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ro&f)===f:(Rl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ra&&(d=!0);else if((ro&p)===p){u=u.next,p===ra&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,io.lanes|=p,Kl|=p;f=u.action,lo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,io.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!mr(o,e.memoizedState)&&(Qs=!0,d&&(n=ia,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function No(e){var t=To(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);mr(o,t.memoizedState)||(Qs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Po(e,t,n){var r=io,a=To(),o=Di;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!mr((ao||a).memoizedState,n);if(s&&(a.memoizedState=n,Qs=!0),a=a.queue,as(Lo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,a,n,t),null),Il===null)throw Error(i(349));o||ro&127||Fo(r,t,n)}return n}function Fo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=io.updateQueue,t===null?(t=Eo(),io.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Io(e,t,n,r){t.value=n,t.getSnapshot=r,Ro(t)&&zo(e)}function Lo(e,t,n){return n(function(){Ro(t)&&zo(e)})}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function zo(e){var t=Yr(e,2);t!==null&&gu(t,e,2)}function Bo(e){var t=wo();if(typeof e==`function`){var n=e;if(e=n(),lo){ze(!0);try{n()}finally{ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},t}function Vo(e,t,n,r){return e.baseState=n,Mo(e,ao,typeof r==`function`?r:Ao)}function Ho(e,t,n,r,a){if(As(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};k.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Uo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Uo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Wo(e,t,s)}catch(n){Ko(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Wo(e,t,a)}catch(n){Ko(e,t,n)}}function Wo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Go(e,t,n)},function(n){return Ko(e,t,n)}):Go(e,t,n)}function Go(e,t,n){t.status=`fulfilled`,t.value=n,qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Uo(e,n)))}function Ko(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,qo(t),t=t.next;while(t!==r)}e.action=null}function qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jo(e,t){return t}function Yo(e,t){if(Di){var n=Il.formState;if(n!==null){a:{var r=io;if(Di){if(Ei){b:{for(var i=Ei,a=ki;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ei=ff(i.nextSibling),r=i.data===`F!`;break a}}ji(r)}r=!1}r&&(t=n[0])}}return n=wo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t},n.queue=r,n=Ds.bind(null,io,r),r.dispatch=n,r=Bo(!1),a=ks.bind(null,io,!1,r.queue),r=wo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ho.bind(null,io,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Xo(e){return Zo(To(),ao,e)}function Zo(e,t,n){if(t=Mo(e,t,Jo)[0],e=jo(Ao)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Do(t)}catch(e){throw e===pa?ha:e}else r=t;t=To();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(io.flags|=2048,es(9,{destroy:void 0},Qo.bind(null,i,n),null)),[r,a,e]}function Qo(e,t){e.action=t}function $o(e){var t=To(),n=ao;if(n!==null)return Zo(t,n,e);To(),t=t.memoizedState,n=To();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function es(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=io.updateQueue,t===null&&(t=Eo(),io.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return To().memoizedState}function ns(e,t,n,r){var i=wo();io.flags|=e,i.memoizedState=es(1|t,{destroy:void 0},n,r===void 0?null:r)}function rs(e,t,n,r){var i=To();r=r===void 0?null:r;var a=i.memoizedState.inst;ao!==null&&r!==null&&go(r,ao.memoizedState.deps)?i.memoizedState=es(t,a,n,r):(io.flags|=e,i.memoizedState=es(1|t,a,n,r))}function is(e,t){ns(8390656,8,e,t)}function as(e,t){rs(2048,8,e,t)}function os(e){io.flags|=4;var t=io.updateQueue;if(t===null)t=Eo(),io.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ss(e){var t=To().memoizedState;return os({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function cs(e,t){return rs(4,2,e,t)}function ls(e,t){return rs(4,4,e,t)}function us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ds(e,t,n){n=n==null?null:n.concat([e]),rs(4,4,us.bind(null,t,e),n)}function fs(){}function ps(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ms(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&go(t,r[1]))return r[0];if(r=e(),lo){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r}function hs(e,t,n){return n===void 0||ro&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),io.lanes|=e,Kl|=e,n)}function gs(e,t,n,r){return mr(n,t)?n:Ua.current===null?!(ro&42)||ro&1073741824&&!(Rl&261930)?(Qs=!0,e.memoizedState=n):(e=hu(),io.lanes|=e,Kl|=e,t):(e=hs(e,n,r),mr(e,t)||(Qs=!0),e)}function _s(e,t,n,r,i){var a=se.p;se.p=a!==0&&8>a?a:8;var o=k.T,s={};k.T=s,ks(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Os(e,t,sa(c,r),mu(e)):Os(e,t,r,mu(e))}catch(n){Os(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{se.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function vs(){}function ys(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=bs(e).queue;_s(e,a,t,ce,n===null?vs:function(){return xs(e),n(r)})}function bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xs(e){var t=bs(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},mu())}function Ss(){return J(ep)}function Cs(){return To().memoizedState}function ws(){return To().memoizedState}function Ts(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Pa(n);var r=Fa(t,e,n);r!==null&&(gu(r,t,n),Ia(r,t,n)),t={cache:$i()},e.payload=t;return}t=t.return}}function Es(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?js(t,n):(n=Jr(e,t,n,r),n!==null&&(gu(n,e,r),Ms(n,t,r)))}function Ds(e,t,n){Os(e,t,n,mu())}function Os(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))js(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,mr(s,o))return qr(e,t,i,0),Il===null&&Kr(),!1}catch{}if(n=Jr(e,t,i,r),n!==null)return gu(n,e,r),Ms(n,t,r),!0}return!1}function ks(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(i(479))}else t=Jr(e,n,r,2),t!==null&&gu(t,e,2)}function As(e){var t=e.alternate;return e===io||t!==null&&t===io}function js(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ms(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var Ns={readContext:J,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};Ns.useEffectEvent=ho;var Ps={readContext:J,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:J,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){ze(!0);try{n(t)}finally{ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Es.bind(null,io,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ds.bind(null,io,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=_s.bind(null,io,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=io,a=wo();if(Di){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Il===null)throw Error(i(349));Rl&127||Fo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,is(Lo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Il.identifierPrefix;if(Di){var n=yi,r=vi;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=mo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ss,useFormState:Yo,useActionState:Yo,useOptimistic:function(e){var t=wo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ks.bind(null,io,!0,n),n.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return wo().memoizedState=Ts.bind(null,io)},useEffectEvent:function(e){var t=wo(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Fs={readContext:J,use:Oo,useCallback:ps,useContext:J,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:jo,useRef:ts,useState:function(){return jo(Ao)},useDebugValue:fs,useDeferredValue:function(e,t){return gs(To(),ao.memoizedState,e,t)},useTransition:function(){var e=jo(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Cs,useHostTransitionStatus:Ss,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){return Vo(To(),ao,e,t)},useMemoCache:ko,useCacheRefresh:ws};Fs.useEffectEvent=ss;var Is={readContext:J,use:Oo,useCallback:ps,useContext:J,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:No,useRef:ts,useState:function(){return No(Ao)},useDebugValue:fs,useDeferredValue:function(e,t){var n=To();return ao===null?hs(n,e,t):gs(n,ao.memoizedState,e,t)},useTransition:function(){var e=No(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Cs,useHostTransitionStatus:Ss,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){var n=To();return ao===null?(n.baseState=e,[e,n.queue.dispatch]):Vo(n,ao,e,t)},useMemoCache:ko,useCacheRefresh:ws};Is.useEffectEvent=ss;function Ls(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Rs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Pa(r);i.payload=t,n!=null&&(i.callback=n),t=Fa(e,i,r),t!==null&&(gu(t,e,r),Ia(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Pa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Fa(e,i,r),t!==null&&(gu(t,e,r),Ia(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Pa(n);r.tag=2,t!=null&&(r.callback=t),t=Fa(e,r,n),t!==null&&(gu(t,e,n),Ia(t,e,n))}};function zs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!hr(n,r)||!hr(i,a):!0}function Bs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Rs.enqueueReplaceState(t,t.state,null)}function Vs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Hs(e){Hr(e)}function Us(e){console.error(e)}function Ws(e){Hr(e)}function Gs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function qs(e,t,n){return n=Pa(n),n.tag=3,n.payload={element:null},n.callback=function(){Gs(e,t)},n}function Js(e){return e=Pa(e),e.tag=3,e}function Ys(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ks(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ks(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Xs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Wi(t,n,a,!0),n=Ja.current,n!==null){switch(n.tag){case 31:case 13:return Ya===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ga?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===ga?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),Ou(),!1}if(Di)return t=Ja.current,t===null?(r!==Ai&&(t=Error(i(423),{cause:r}),Li(ui(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ui(r,n),a=qs(e.stateNode,r,a),La(e,a),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ai&&(e=Error(i(422),{cause:r}),Li(ui(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=ui(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=ui(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=qs(n.stateNode,r,e),La(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Js(a),Ys(a,e,n,r),La(n,a),!1}n=n.return}while(n!==null);return!1}var Zs=Error(i(461)),Qs=!1;function $s(e,t,n,r){t.child=e===null?Aa(t,null,n,r):ka(t,e.child,n,r)}function ec(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ki(t),r=_o(e,t,n,o,a,i),s=xo(),e!==null&&!Qs?(So(e,t,i),wc(e,t,i)):(Di&&s&&Si(t),t.flags|=1,$s(e,t,r,i),t.child)}function tc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,nc(e,t,a,r,i)):(e=ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Tc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?hr:n,n(o,r)&&e.ref===t.ref)return wc(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function nc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(hr(a,r)&&e.ref===t.ref)if(Qs=!1,t.pendingProps=r=a,Tc(e,i))e.flags&131072&&(Qs=!0);else return t.lanes=e.lanes,wc(e,t,i)}return uc(e,t,n,r,i)}function rc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ac(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&da(t,a===null?null:a.cachePool),a===null?Ka():Ga(t,a),Qa(t);else return r=t.lanes=536870912,ac(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&da(t,null),Ka(),$a(t)):(da(t,a.cachePool),Ga(t,a),$a(t),t.memoizedState=null);return $s(e,t,i,n),t.child}function ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ac(e,t,n,r,i){var a=ua();return a=a===null?null:{parent:Qi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&da(t,null),Ka(),Qa(t),e!==null&&Wi(e,t,r,!0),t.childLanes=i,null}function oc(e,t){return t=yc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sc(e,t,n){return ka(t,e.child,null,n),e=oc(t,t.pendingProps),e.flags|=2,eo(t),t.memoizedState=null,e}function cc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Di){if(r.mode===`hidden`)return e=oc(t,r),t.lanes=536870912,ic(null,e);if(Za(t),(e=Ei)?(e=cf(e,ki),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return t.lanes=536870912,null}return oc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Za(t),a)if(t.flags&256)t.flags&=-257,t=sc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Qs||Wi(e,t,n,!1),a=(n&e.childLanes)!==0,Qs||a){if(r=Il,r!==null&&(s=nt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Yr(e,s),gu(r,e,s),Zs;Ou(),t=sc(e,t,n)}else e=o.treeContext,Ei=ff(s.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=oc(t,r),t.flags|=4096;return t}return e=ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uc(e,t,n,r,i){return Ki(t),n=_o(e,t,n,r,void 0,i),r=xo(),e!==null&&!Qs?(So(e,t,i),wc(e,t,i)):(Di&&r&&Si(t),t.flags|=1,$s(e,t,n,i),t.child)}function dc(e,t,n,r,i,a){return Ki(t),t.updateQueue=null,n=yo(t,r,n,i),vo(e),r=xo(),e!==null&&!Qs?(So(e,t,a),wc(e,t,a)):(Di&&r&&Si(t),t.flags|=1,$s(e,t,n,a),t.child)}function fc(e,t,n,r,i){if(Ki(t),t.stateNode===null){var a=Qr,o=n.contextType;typeof o==`object`&&o&&(a=J(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Rs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ma(t),o=n.contextType,a.context=typeof o==`object`&&o?J(o):Qr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ls(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Rs.enqueueReplaceState(a,a.state,null),Ba(t,r,a,i),za(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Vs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Qr,typeof u==`object`&&u&&(o=J(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Bs(t,a,r,o),ja=!1;var f=t.memoizedState;a.state=f,Ba(t,r,a,i),za(),l=t.memoizedState,s||f!==l||ja?(typeof d==`function`&&(Ls(t,n,d,r),l=t.memoizedState),(c=ja||zs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Na(e,t),o=t.memoizedProps,u=Vs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Qr,typeof l==`object`&&l&&(c=J(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Bs(t,a,r,c),ja=!1,f=t.memoizedState,a.state=f,Ba(t,r,a,i),za();var p=t.memoizedState;o!==d||f!==p||ja||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof s==`function`&&(Ls(t,n,s,r),p=t.memoizedState),(u=ja||zs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,lc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ka(t,e.child,null,i),t.child=ka(t,null,n,i)):$s(e,t,n,i),t.memoizedState=a.state,e=t.child):e=wc(e,t,i),e}function pc(e,t,n,r){return Fi(),t.flags|=256,$s(e,t,n,r),t.child}var mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hc(e){return{baseLanes:e,cachePool:fa()}}function gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function _c(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(to.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Di){if(a?Xa(t):$a(t),(e=Ei)?(e=cf(e,ki),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?($a(t),a=t.mode,c=yc({mode:`hidden`,children:c},a),r=ai(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=hc(n),r.childLanes=gc(e,s,n),t.memoizedState=mc,ic(null,r)):(Xa(t),vc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Xa(t),t.flags&=-257,t=bc(e,t,n)):t.memoizedState===null?($a(t),c=r.fallback,a=t.mode,r=yc({mode:`visible`,children:r.children},a),c=ai(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ka(t,e.child,null,n),r=t.child,r.memoizedState=hc(n),r.childLanes=gc(e,s,n),t.memoizedState=mc,t=ic(null,r)):($a(t),t.child=e.child,t.flags|=128,t=null);else if(Xa(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Li({value:r,source:null,stack:null}),t=bc(e,t,n)}else if(Qs||Wi(e,t,n,!1),s=(n&e.childLanes)!==0,Qs||s){if(s=Il,s!==null&&(r=nt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yr(e,r),gu(s,e,r),Zs;lf(c)||Ou(),t=bc(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ei=ff(c.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=vc(t,r.children),t.flags|=4096);return t}return a?($a(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ni(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ai(c,a,n,null),c.flags|=2):c=ni(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ic(null,r),r=t.child,c=e.child.memoizedState,c===null?c=hc(n):(a=c.cachePool,a===null?a=fa():(l=Qi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=gc(e,s,n),t.memoizedState=mc,ic(e.child,r)):(Xa(t),n=e.child,e=n.sibling,n=ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function vc(e,t){return t=yc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function yc(e,t){return e=ei(22,e,null,t),e.lanes=0,e}function bc(e,t,n){return ka(t,e.child,null,n),e=vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hi(e.return,t,n)}function Sc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Cc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=to.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,A(to,o),$s(e,t,r,n),r=Di?mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xc(e,n,t);else if(e.tag===19)xc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Sc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Sc(t,!0,n,null,a,r);break;case`together`:Sc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function wc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Gi(e))):!0}function Ec(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Bi(t,Qi,e.memoizedState.cache),Fi();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Bi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Za(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Xa(t),e=wc(e,t,n),e===null?null:e.sibling):_c(e,t,n):(Xa(t),t.flags|=128,null);Xa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Wi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Cc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(to,to.current),r)break;return null;case 22:return t.lanes=0,rc(e,t,n,t.pendingProps);case 24:Bi(t,Qi,e.memoizedState.cache)}return wc(e,t,n)}function Dc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qs=!0;else{if(!Tc(e,n)&&!(t.flags&128))return Qs=!1,Ec(e,t,n);Qs=!!(e.flags&131072)}else Qs=!1,Di&&t.flags&1048576&&xi(t,mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ya(t.elementType),t.type=e,typeof e==`function`)ti(e)?(r=Vs(e,r),t.tag=1,t=fc(null,t,e,r,n)):(t.tag=0,t=uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ec(null,t,e,r,n);break a}else if(a===ne){t.tag=14,t=tc(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(i(306,t,``))}}return t;case 0:return uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Vs(r,t.pendingProps),fc(e,t,r,a,n);case 3:a:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Na(e,t),Ba(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Bi(t,Qi,r),r!==o.cache&&Ui(t,[Qi],n,!0),za(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=pc(e,t,r,n);break a}else if(r!==a){a=ui(Error(i(424)),t),Li(a),t=pc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ei=ff(e.firstChild),Ti=t,Di=!0,Oi=null,ki=!0,n=Aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fi(),r===a){t=wc(e,t,n);break a}$s(e,t,r,n)}t=t.child}return t;case 26:return lc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Di||(n=t.type,e=t.pendingProps,r=Wd(me.current).createElement(n),r[ct]=t,r[lt]=e,Rd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Di&&(r=t.stateNode=gf(t.type,t.pendingProps,me.current),Ti=t,ki=!0,a=Ei,tf(t.type)?(pf=a,Ei=ff(r.firstChild)):Ei=a),$s(e,t,t.pendingProps.children,n),lc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Di&&((a=r=Ei)&&(r=of(r,t.type,t.pendingProps,ki),r===null?a=!1:(t.stateNode=r,Ti=t,Ei=ff(r.firstChild),ki=!1,a=!0)),a||ji(t)),ve(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=_o(e,t,bo,null,null,n),ep._currentValue=a),lc(e,t),$s(e,t,r,n),t.child;case 6:return e===null&&Di&&((e=n=Ei)&&(n=sf(n,t.pendingProps,ki),n===null?e=!1:(t.stateNode=n,Ti=t,Ei=null,e=!0)),e||ji(t)),null;case 13:return _c(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ka(t,null,r,n):$s(e,t,r,n),t.child;case 11:return ec(e,t,t.type,t.pendingProps,n);case 7:return $s(e,t,t.pendingProps,n),t.child;case 8:return $s(e,t,t.pendingProps.children,n),t.child;case 12:return $s(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Bi(t,t.type,r.value),$s(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ki(t),a=J(a),r=r(a),t.flags|=1,$s(e,t,r,n),t.child;case 14:return tc(e,t,t.type,t.pendingProps,n);case 15:return nc(e,t,t.type,t.pendingProps,n);case 19:return Cc(e,t,n);case 31:return cc(e,t,n);case 22:return rc(e,t,n,t.pendingProps);case 24:return Ki(t),r=J(Qi),e===null?(a=ua(),a===null&&(a=Il,o=$i(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ma(t),Bi(t,Qi,a)):((e.lanes&n)!==0&&(Na(e,t),Ba(t,null,null,n),za()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Bi(t,Qi,r),r!==a.cache&&Ui(t,[Qi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Bi(t,Qi,r))),$s(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Oc(e){e.flags|=4}function kc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw ba=ga,ma}else e.flags&=-16777217}function Ac(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!qf(t))if(Tu())e.flags|=8192;else throw ba=ga,ma}function jc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Xl|=t)}function Mc(e,t){if(!Di)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Nc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pc(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nc(t),null;case 1:return Nc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vi(Qi),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pi(t)?Oc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii())),Nc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Oc(t),o===null?(Nc(t),kc(t,a,null,r,n)):(Nc(t),Ac(t,o))):o?o===e.memoizedState?(Nc(t),t.flags&=-16777217):(Oc(t),Nc(t),Ac(t,o)):(e=e.memoizedProps,e!==r&&Oc(t),Nc(t),kc(t,a,e,r,n)),null;case 27:if(ye(t),n=me.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Oc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Nc(t),null}e=j.current,Pi(t)?Mi(t,e):(e=gf(a,r,n),t.stateNode=e,Oc(t))}return Nc(t),null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Oc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Nc(t),null}if(o=j.current,Pi(t))Mi(t,o);else{var s=Wd(me.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ct]=t,o[lt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Oc(t)}}return Nc(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Oc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ti,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||ji(t,!0)}else e=Wd(e).createTextNode(r),e[ct]=t,t.stateNode=e}return Nc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ct]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(i(558))}return Nc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ct]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),a=!1}else a=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jc(t,t.updateQueue),Nc(t),null);case 4:return _e(),e===null&&Td(t.stateNode.containerInfo),Nc(t),null;case 10:return Vi(t.type),Nc(t),null;case 19:if(fe(to),r=t.memoizedState,r===null)return Nc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Mc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=no(e),o!==null){for(t.flags|=128,Mc(r,!1),e=o.updateQueue,t.updateQueue=e,jc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ri(n,e),n=n.sibling;return A(to,to.current&1|2),Di&&bi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>nu&&(t.flags|=128,a=!0,Mc(r,!1),t.lanes=4194304)}else{if(!a)if(e=no(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,jc(t,e),Mc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Di)return Nc(t),null}else 2*Ae()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,Mc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Nc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=to.current,A(to,a?n&1|2:n&1),Di&&bi(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Nc(t),t.subtreeFlags&6&&(t.flags|=8192)):Nc(t),n=t.updateQueue,n!==null&&jc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(la),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vi(Qi),Nc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Fc(e,t){switch(Ci(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(Qi),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(to),null;case 4:return _e(),null;case 10:return Vi(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&fe(la),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vi(Qi),null;case 25:return null;default:return null}}function Ic(e,t){switch(Ci(t),t.tag){case 3:Vi(Qi),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:fe(to);break;case 10:Vi(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&fe(la);break;case 24:Vi(Qi)}}function Lc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Rc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ha(t,n)}catch(t){Ku(e,e.return,t)}}}function Bc(e,t,n){n.props=Vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Vc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Hc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Uc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Wc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[lt]=t}catch(t){Ku(e,e.return,t)}}function Gc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Kc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yt));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[ct]=e,t[lt]=n}catch(t){Ku(e,e.return,t)}}var Xc=!1,Zc=!1,Qc=!1,$c=typeof WeakSet==`function`?WeakSet:Set,el=null;function tl(e,t){if(e=e.containerInfo,Hd=lp,e=yr(e),br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},lp=!1,el=t;el!==null;)if(t=el,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,el=e;else for(;el!==null;){switch(t=el,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Vs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,el=e;break}el=t.return}}function nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:_l(e,n),r&4&&Lc(5,n);break;case 1:if(_l(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&zc(n),r&512&&Vc(n,n.return);break;case 3:if(_l(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ha(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Yc(n);case 26:case 5:_l(e,n),t===null&&r&4&&Uc(n),r&512&&Vc(n,n.return);break;case 12:_l(e,n);break;case 31:_l(e,n),r&4&&cl(e,n);break;case 13:_l(e,n),r&4&&ll(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||Xc,!r){t=t!==null&&t.memoizedState!==null||Zc,i=Xc;var a=Zc;Xc=r,(Zc=t)&&!a?yl(e,n,(n.subtreeFlags&8772)!=0):_l(e,n),Xc=i,Zc=a}break;case 30:break;default:_l(e,n)}}function rl(e){var t=e.alternate;t!==null&&(e.alternate=null,rl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ht(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var il=null,al=!1;function ol(e,t,n){for(n=n.child;n!==null;)sl(e,t,n),n=n.sibling}function sl(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount==`function`)try{Re.onCommitFiberUnmount(Le,n)}catch{}switch(n.tag){case 26:Zc||Hc(n,t),ol(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zc||Hc(n,t);var r=il,i=al;tf(n.type)&&(il=n.stateNode,al=!1),ol(e,t,n),_f(n.stateNode),il=r,al=i;break;case 5:Zc||Hc(n,t);case 6:if(r=il,i=al,il=null,ol(e,t,n),il=r,al=i,il!==null)if(al)try{(il.nodeType===9?il.body:il.nodeName===`HTML`?il.ownerDocument.body:il).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{il.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:il!==null&&(al?(e=il,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Fp(e)):nf(il,n.stateNode));break;case 4:r=il,i=al,il=n.stateNode.containerInfo,al=!0,ol(e,t,n),il=r,al=i;break;case 0:case 11:case 14:case 15:Rc(2,n,t),Zc||Rc(4,n,t),ol(e,t,n);break;case 1:Zc||(Hc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Bc(n,t,r)),ol(e,t,n);break;case 21:ol(e,t,n);break;case 22:Zc=(r=Zc)||n.memoizedState!==null,ol(e,t,n),Zc=r;break;default:ol(e,t,n)}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fp(e)}catch(e){Ku(t,t.return,e)}}}function ll(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fp(e)}catch(e){Ku(t,t.return,e)}}function ul(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $c),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $c),t;default:throw Error(i(435,e.tag))}}function dl(e,t){var n=ul(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function fl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){il=c.stateNode,al=!1;break a}break;case 5:il=c.stateNode,al=!1;break a;case 3:case 4:il=c.stateNode.containerInfo,al=!0;break a}c=c.return}if(il===null)throw Error(i(160));sl(o,s,a),il=null,al=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ml(t,e),t=t.sibling}var pl=null;function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:fl(t,e),hl(e),r&4&&(Rc(3,e,e.return),Lc(3,e),Rc(5,e,e.return));break;case 1:fl(t,e),hl(e),r&512&&(Zc||n===null||Hc(n,n.return)),r&64&&Xc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=pl;if(fl(t,e),hl(e),r&512&&(Zc||n===null||Hc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[mt]||o[ct]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[ct]=e,bt(o),r=o;break a;case`link`:var s=Wf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Wf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ct]=e,bt(o),r=o}e.stateNode=r}else Gf(a,e.type,e.stateNode);else e.stateNode=zf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Gf(a,e.type,e.stateNode):zf(a,r,e.memoizedProps))}break;case 27:fl(t,e),hl(e),r&512&&(Zc||n===null||Hc(n,n.return)),n!==null&&r&4&&Wc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(fl(t,e),hl(e),r&512&&(Zc||n===null||Hc(n,n.return)),e.flags&32){a=e.stateNode;try{Ht(a,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Wc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Qc=!0);break;case 6:if(fl(t,e),hl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Uf=null,a=pl,pl=bf(t.containerInfo),fl(t,e),pl=a,hl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fp(t.containerInfo)}catch(t){Ku(e,e.return,t)}Qc&&(Qc=!1,gl(e));break;case 4:r=pl,pl=bf(e.stateNode.containerInfo),fl(t,e),hl(e),pl=r;break;case 12:fl(t,e),hl(e);break;case 31:fl(t,e),hl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,dl(e,r)));break;case 13:fl(t,e),hl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=Ae()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,dl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Xc,d=Zc;if(Xc=u||a,Zc=d||l,fl(t,e),Zc=d,Xc=u,hl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Xc||Zc||vl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,dl(e,n))));break;case 19:fl(t,e),hl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,dl(e,r)));break;case 30:break;case 21:break;default:fl(t,e),hl(e)}}function hl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Gc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Jc(e,Kc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ht(o,``),n.flags&=-33),Jc(e,Kc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;qc(e,Kc(e),s);break;default:throw Error(i(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _l(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nl(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rc(4,t,t.return),vl(t);break;case 1:Hc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Bc(t,t.return,n),vl(t);break;case 27:_f(t.stateNode);case 26:case 5:Hc(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function yl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:yl(i,a,n),Lc(4,a);break;case 1:if(yl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Va(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&zc(a),Vc(a,a.return);break;case 27:Yc(a);case 26:case 5:yl(i,a,n),n&&r===null&&o&4&&Uc(a),Vc(a,a.return);break;case 12:yl(i,a,n);break;case 31:yl(i,a,n),n&&o&4&&cl(i,a);break;case 13:yl(i,a,n),n&&o&4&&ll(i,a);break;case 22:a.memoizedState===null&&yl(i,a,n),Vc(a,a.return);break;case 30:break;default:yl(i,a,n)}t=t.sibling}}function bl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ea(n))}function xl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ea(e))}function Sl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Y(e,t,n,r),t=t.sibling}function Y(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Sl(e,t,n,r),i&2048&&Lc(9,t);break;case 1:Sl(e,t,n,r);break;case 3:Sl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ea(e)));break;case 12:if(i&2048){Sl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else Sl(e,t,n,r);break;case 31:Sl(e,t,n,r);break;case 13:Sl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Sl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Sl(e,t,n,r):wl(e,t),i&2048&&bl(o,t);break;case 24:Sl(e,t,n,r),i&2048&&xl(t.alternate,t);break;default:Sl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Lc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&bl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&xl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:wl(n,r),i&2048&&bl(r.alternate,r);break;case 24:wl(n,r),i&2048&&xl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Z(n,pl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=pl;pl=bf(e.stateNode.containerInfo),El(e,t,n),pl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];el=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Rc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];el=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;el!==null;){var n=el;switch(n.tag){case 0:case 11:case 15:Rc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ea(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,el=r;else a:for(n=e;el!==null;){r=el;var i=r.sibling,a=r.return;if(rl(r),r===n){el=null;break a}if(i!==null){i.return=a,el=i;break a}el=a}}}var Nl={getCacheForType:function(e){var t=J(Qi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return J(Qi).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Fl&2&&Rl!==0?Rl&-Rl:k.T===null?at():pd()}function hu(){if(Yl===0)if(!(Rl&536870912)||Di){var e=We;We<<=1,!(We&3932160)&&(We=262144),Yl=e}else Yl=536870912;return e=Ja.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Rl,Yl,!1)),Qe(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&bu(e,Rl,Yl,!1)),ad(e))}function _u(e,t,n){if(Fl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Je(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Hl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){a=ku(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-Ae(),10<a)){if(bu(r,t,Yl,!Vl),qe(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Xd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),a);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}}break}while(1);ad(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yt},Dl(t,a,d);var m=(a&62914560)===a?eu-Ae():(a&4194048)===a?tu-Ae():0;if(m=Yf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Be(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function xu(){return Fl&6?!0:(od(0,!1),!1)}function Su(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,zi=q=null,Co(e),Ca=null,wa=0,e=Ll;for(;e!==null;)Ic(e.alternate,e),e=e.return;Ll=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Il=e,Ll=n=ni(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Je(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Be(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Kr(),n}function wu(e,t){io=null,k.H=Ns,t===pa||t===ha?(t=xa(),zl=3):t===ma?(t=xa(),zl=4):zl=t===Zs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Gs(e,ui(t,e.current)))}function Tu(){var e=Ja.current;return e===null?!0:(Rl&4194048)===Rl?Ya===null:(Rl&62914560)===Rl||Rl&536870912?e===Ya:!1}function Eu(){var e=k.H;return k.H=Ns,e===null?Ns:e}function Du(){var e=k.A;return k.A=Nl,e}function Ou(){Gl=4,Vl||(Rl&4194048)!==Rl&&Ja.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||bu(Il,Rl,Yl,!1)}function ku(e,t,n){var r=Fl;Fl|=2;var i=Eu(),a=Du();(Il!==e||Rl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:Ja.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,zi=q=null,Fl=r,k.H=i,k.A=a,Ll===null&&(Il=null,Rl=0,Kr()),o}function Au(){for(;Ll!==null;)Nu(Ll)}function ju(e,t){var n=Fl;Fl|=2;var r=Eu(),a=Du();Il!==e||Rl!==t?(ru=null,nu=Ae()+500,Cu(e,t)):Hl=Je(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Fu(e,t,o,1);break;case 2:case 9:if(_a(o)){zl=0,Bl=null,Pu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),ad(e)},o.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:_a(o)?(zl=0,Bl=null,Pu(t)):(zl=0,Bl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?qf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Iu(u))}break b}}zl=0,Bl=null,Fu(e,t,o,5);break;case 6:zl=0,Bl=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return zi=q=null,k.H=r,k.A=a,Fl=n,Ll===null?(Il=null,Rl=0,Kr(),Gl):0}function Mu(){for(;Ll!==null&&!Oe();)Nu(Ll)}function Nu(e){var t=Dc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=dc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:Co(t);default:Ic(n,t),t=Ll=ri(t,Wl),t=Dc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Fu(e,t,n,r){zi=q=null,Co(t),Ca=null,wa=0;var i=t.return;try{if(Xs(e,i,t,n,Rl)){Gl=1,Gs(e,ui(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Gs(e,ui(n,e.current)),Ll=null;return}t.flags&32768?(Di||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ja.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Pc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Fc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Fl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Gr,$e(e,n,o,s,c,l),e===Il&&(Ll=Il=null,Rl=0),su=t,ou=e,cu=n,lu=o,uu=a,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Me,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=k.T,k.T=null,a=se.p,se.p=2,s=Fl,Fl|=4;try{tl(e,t,n)}finally{Fl=s,se.p=a,k.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=k.T,k.T=null;var r=se.p;se.p=2;var i=Fl;Fl|=4;try{ml(t,e);var a=Ud,o=yr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&vr(s.ownerDocument.documentElement,s)){if(c!==null&&br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=_r(s,h),v=_r(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}lp=!!Hd,Ud=Hd=null}finally{Fl=i,se.p=r,k.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=se.p;se.p=2;var i=Fl;Fl|=4;try{nl(e,t.alternate,t)}finally{Fl=i,se.p=r,k.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,ke();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),it(n),t=t.stateNode,Re&&typeof Re.onCommitFiberRoot==`function`)try{Re.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=k.T,i=se.p,se.p=2,k.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{k.T=t,se.p=i}}cu&3&&Uu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,od(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ea(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=it(cu),r=k.T,a=se.p;try{se.p=32>n?32:n,k.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Fl&6)throw Error(i(331));var c=Fl;if(Fl|=4,Al(o.current),Y(o,o.current,s,n),Fl=c,od(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,o)}catch{}return!0}finally{se.p=a,k.T=r,Hu(e,t)}}function Gu(e,t,n){t=ui(n,t),t=qs(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(Qe(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=ui(n,e),n=Js(2),r=Fa(t,n,2),r!==null&&(Ys(n,r,t,e),Qe(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>Ae()-eu?!(Fl&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Xe()),e=Yr(e,t),e!==null&&(Qe(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return De(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Be(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Rl,a=qe(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Yd()&&(e=id);for(var t=Ae(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Be(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&N(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&N(r),it(n)){case 2:case 8:n=je;break;case 32:n=Me;break;case 268435456:n=Pe;break;default:n=Me}return r=ud.bind(null,e),n=De(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&N(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Rl;return r=qe(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),ld(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Uu())return null;_u(e,t,!0)}function fd(){$d(function(){Fl&6?De(F,sd):cd()})}function pd(){if(id===0){var e=ra;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Jt(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[lt]||null).action),o=r.submitter;o&&(t=(t=o[lt]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);ys(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),ys(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<Br.length;_d++){var vd=Br[_d];Vr(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}Vr(Mr,`onAnimationEnd`),Vr(Nr,`onAnimationIteration`),Vr(Pr,`onAnimationStart`),Vr(`dblclick`,`onDoubleClick`),Vr(`focusin`,`onFocus`),Vr(`focusout`,`onBlur`),Vr(Fr,`onTransitionRun`),Vr(Ir,`onTransitionStart`),Vr(Lr,`onTransitionCancel`),Vr(Rr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}}}}function Sd(e,t){var n=t[dt];n===void 0&&(n=t[dt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,R.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(gp(t)){case 2:var i=up;break;case 8:i=dp;break;default:i=fp}n=i.bind(null,t,n,e),i=void 0,!rn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=gt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}W(function(){var r=a,i=U(n),s=[];a:{var c=zr.get(e);if(c!==void 0){var l=hn,u=e;switch(e){case`keypress`:if(un(n)===0)break a;case`keydown`:case`keyup`:l=Nn;break;case`focusin`:u=`focus`,l=wn;break;case`focusout`:u=`blur`,l=wn;break;case`beforeblur`:case`afterblur`:l=wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Sn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Cn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Fn;break;case Mr:case Nr:case Pr:l=Tn;break;case Rr:l=In;break;case`scroll`:case`scrollend`:l=_n;break;case`wheel`:l=Ln;break;case`copy`:case`cut`:case`paste`:l=En;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Pn;break;case`toggle`:case`beforetoggle`:l=Rn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=tn(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Xt&&(u=n.relatedTarget||n.fromElement)&&(gt(u)||u[ut]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?gt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Sn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Pn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:vt(l),h=u==null?c:vt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,gt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=nr;else if(Qn(c))if(rr)v=fr;else{v=ur;var y=lr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=nr):v=dr;if(v&&=v(e,r)){$n(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&zt(c,`number`,c.value)}switch(y=r?vt(r):window,e){case`focusin`:(Qn(y)||y.contentEditable===`true`)&&(Sr=y,Cr=r,wr=null);break;case`focusout`:wr=Cr=Sr=null;break;case`mousedown`:Tr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Tr=!1,Er(s,n,i);break;case`selectionchange`:if(xr)break;case`keydown`:case`keyup`:Er(s,n,i)}var b;if(Bn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Jn?Kn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Un&&n.locale!==`ko`&&(Jn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Jn&&(b=ln()):(on=i,sn=`value`in on?on.value:on.textContent,Jn=!0)),y=kd(r,x),0<y.length&&(x=new Dn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=qn(n),b!==null&&(x.data=b)))),(b=Hn?Yn(e,n):Xn(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Dn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),gd(s,e,r,n,i)}xd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=tn(e,n),i!=null&&r.unshift(Od(e,i,a)),i=tn(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=tn(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=tn(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
9
9
|
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Ot(e,`class`,r);break;case`tabIndex`:Ot(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ot(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Ot(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Jt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Dt(e,`popover`,r);break;case`xlinkActuate`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Dt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=H.get(n)||n,Dt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Gt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[lt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Dt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Sd(`error`,e),Sd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Sd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Rt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Sd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Bt(e,!!r,n,!0):Bt(e,!!r,t,!1);return;case`textarea`:for(s in Sd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}V(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Sd(`cancel`,e),Sd(`close`,e);break;case`iframe`:case`object`:Sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)Sd(yd[r],e);break;case`image`:Sd(`error`,e),Sd(`load`,e);break;case`details`:Sd(`toggle`,e);break;case`embed`:case`source`:case`link`:Sd(`error`,e),Sd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Lt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Bt(e,!!n,n?[]:``,!1):Bt(e,!!n,t,!0)):Bt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}Vt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Fp(t)}function rf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:af(n),ht(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[mt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ht(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=se.d;se.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=xu();return e||t}function Cf(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?xs(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=It(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+It(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+It(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+It(n.imageSizes)+`"]`)):i+=`[href="`+It(e)+`"]`;var a=i;switch(t){case`style`:a=X(e);break;case`script`:a=Lf(e)}vf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Pf(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+It(r)+`"][href="`+It(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!vf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=yt(r).hoistableStyles,a=X(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Pf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);bt(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=yt(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=h({src:e,async:!0},t),(t=vf.get(i))&&Hf(e,t),a=n.createElement(`script`),bt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=yt(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Hf(e,t),a=n.createElement(`script`),bt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=me.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=X(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=X(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Pf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function X(e){return`href="`+It(e)+`"`}function Pf(e){return`link[rel="stylesheet"][`+e+`]`}function Ff(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),bt(t),e.head.appendChild(t))}function Lf(e){return`[src="`+It(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+It(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Rd(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=X(n.href);var o=e.querySelector(Pf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Ff(n),(a=vf.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,bt(a),a):(r=n,(a=vf.get(o))&&(r=h({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Uf=null;function Wf(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[mt]||a[ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Z(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=X(r.href),a=t.querySelector(Pf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Ff(r),(i=vf.get(i))&&Vf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Xf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ep={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function tp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ei(3,null,null,t),e.current=a,a.stateNode=e,t=$i(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ma(a),e}function rp(e){return e?(e=Qr,e):Qr}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=Pa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Fa(e,r,t),n!==null&&(gu(n,e,t),Ia(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function op(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function sp(e){if(e.tag===13||e.tag===31){var t=Yr(e,67108864);t!==null&&gu(t,e,67108864),op(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=mu();t=rt(t);var n=Yr(e,t);n!==null&&gu(n,e,t),op(e,t)}}var lp=!0;function up(e,t,n,r){var i=k.T;k.T=null;var a=se.p;try{se.p=2,fp(e,t,n,r)}finally{se.p=a,k.T=i}}function dp(e,t,n,r){var i=k.T;k.T=null;var a=se.p;try{se.p=8,fp(e,t,n,r)}finally{se.p=a,k.T=i}}function fp(e,t,n,r){if(lp){var i=pp(r);if(i===null)Dd(e,t,r,mp,n),Tp(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Tp(e,r),t&4&&-1<wp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Be(o);s.entanglements[1]|=c,o&=~c}ad(a),!(Fl&6)&&(nu=Ae()+500,od(0,!1))}}break;case 31:case 13:s=Yr(a,2),s!==null&&gu(s,a,2),xu(),op(a,2)}if(a=pp(r),a===null&&Dd(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function pp(e){return e=U(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=gt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mp=e,null}function gp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(P()){case F:return 2;case je:return 8;case Me:case Ne:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var _p=!1,vp=null,yp=null,bp=null,xp=new Map,Sp=new Map,Cp=[],wp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Tp(e,t){switch(e){case`focusin`:case`focusout`:vp=null;break;case`dragenter`:case`dragleave`:yp=null;break;case`mouseover`:case`mouseout`:bp=null;break;case`pointerover`:case`pointerout`:xp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Sp.delete(t.pointerId)}}function Ep(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=_t(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return vp=Ep(vp,e,t,n,r,i),!0;case`dragenter`:return yp=Ep(yp,e,t,n,r,i),!0;case`mouseover`:return bp=Ep(bp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return xp.set(a,Ep(xp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=gt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ot(e.priority,function(){cp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ot(e.priority,function(){cp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xt=r,n.target.dispatchEvent(r),Xt=null}else return t=_t(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){_p=!1,vp!==null&&kp(vp)&&(vp=null),yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp.forEach(Ap),Sp.forEach(Ap)}function Mp(e,n){e.blockedOn===n&&(e.blockedOn=null,_p||(_p=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Np===e&&(Np=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(hp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,ys(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}vp!==null&&Mp(vp,e),yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp.forEach(t),Sp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&(n=Cp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&Cp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[lt]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function Ip(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Lp(e){this._internalRoot=e}Rp.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ip(n,mu(),e,t,null,null)},Rp.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),xu(),t[ut]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&t!==0&&t<Cp[n].priority;n++);Cp.splice(n,0,e),n===0&&Op(e)}};var zp=n.version;if(zp!==`19.2.6`)throw Error(i(527,zp,`19.2.6`));se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{Le=Vp.inject(Bp),Re=Vp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Hs,s=Us,c=Ws;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=np(e,1,!1,null,null,n,r,null,o,s,c,Ip),e[ut]=t.current,Td(e),new Lp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=g(),y=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},b=(e=>e?y(e):y),x=e=>e;function S(e,t=x){let n=_.useSyncExternalStore(e.subscribe,_.useCallback(()=>t(e.getState()),[e,t]),_.useCallback(()=>t(e.getInitialState()),[e,t]));return _.useDebugValue(n),n}var C=e=>{let t=b(e),n=e=>S(t,e);return Object.assign(n,t),n},w=(e=>e?C(e):C);function ee(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var te=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return te(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return te(t)(e)}}}},ne=w()(((e,t)=>(n,r,i)=>{let a={storage:ee(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return te(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p})(e=>({activeView:`chat`,setView:t=>e({activeView:t}),apiBase:``,setApiBase:t=>e({apiBase:t}),config:{},setConfig:t=>e({config:t}),sidebarOpen:!1,setSidebarOpen:t=>e({sidebarOpen:t}),toggleSidebar:()=>e(e=>({sidebarOpen:!e.sidebarOpen}))}),{name:`nha-ui-app`,partialize:e=>({activeView:e.activeView}),merge:(e,t)=>{let n=e;return{...t,activeView:n.activeView??t.activeView}}}));function re(){return ne.getState().apiBase}async function T(e){try{let t=await fetch(re()+e);return t.ok?t.json():null}catch{return null}}async function E(e,t,n=`POST`){let r=await fetch(re()+e,{method:n,headers:{"Content-Type":`application/json`},body:t==null?void 0:JSON.stringify(t)}),i=await r.text();if(!r.ok)throw Error(i||String(r.status));try{return JSON.parse(i)}catch{return null}}async function ie(e,t,n,r){let i=await fetch(re()+e,{method:`POST`,headers:{"Content-Type":`application/json`,"x-nha-client":`web-ui`},body:JSON.stringify(t),signal:r});if(!i.ok||!i.body)throw Error(`Stream failed: `+i.status);let a=i.body.getReader(),o=new TextDecoder,s=``,c=``;for(;;){let{done:e,value:t}=await a.read();if(e)break;s+=o.decode(t,{stream:!0});let r=s.split(`
|
|
10
|
-
`);s=r.pop()??``;for(let e of r)if(e.startsWith(`event: `))c=e.slice(7).trim();else if(e.startsWith(`data: `)){let t=e.slice(6).trim();if(t===`[DONE]`)return;try{let e=JSON.parse(t);n({type:c,data:e})}catch{}}}}async function ae(e,t,n,r){await ie(e,t,e=>{e.type===`token`&&typeof e.data.content==`string`&&n(e.data.content)},r)}var D={sidebar:`_sidebar_20udr_1`,logo:`_logo_20udr_15`,logoRow:`_logoRow_20udr_24`,logoNHA:`_logoNHA_20udr_30`,logo3rdArm:`_logo3rdArm_20udr_38`,logoDot:`_logoDot_20udr_46`,dotPulse:`_dotPulse_20udr_1`,logoMeta:`_logoMeta_20udr_62`,logoVersion:`_logoVersion_20udr_69`,versionBtn:`_versionBtn_20udr_79`,versionBtnUpdate:`_versionBtnUpdate_20udr_99`,updatePulse:`_updatePulse_20udr_1`,versionBtnError:`_versionBtnError_20udr_110`,versionBtnSuccess:`_versionBtnSuccess_20udr_115`,updateHint:`_updateHint_20udr_120`,updateBtnInline:`_updateBtnInline_20udr_132`,logoView:`_logoView_20udr_149`,logoClock:`_logoClock_20udr_160`,logoSep:`_logoSep_20udr_169`,logoWeather:`_logoWeather_20udr_173`,nav:`_nav_20udr_178`,group:`_group_20udr_187`,groupLabel:`_groupLabel_20udr_192`,item:`_item_20udr_201`,active:`_active_20udr_220`,itemIcon:`_itemIcon_20udr_226`,itemLabel:`_itemLabel_20udr_233`,activeBar:`_activeBar_20udr_241`,badge:`_badge_20udr_253`,footer:`_footer_20udr_271`,footerDocs:`_footerDocs_20udr_280`,footerLink:`_footerLink_20udr_286`,footerBottom:`_footerBottom_20udr_296`,footerVersion:`_footerVersion_20udr_303`,updateBtn:`_updateBtn_20udr_132`,overlay:`_overlay_20udr_334`,open:`_open_20udr_350`},oe=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),O=o(((e,t)=>{t.exports=oe()}))(),k=[{view:`dashboard`,icon:`⚡`,label:`Dashboard`,group:`panoramica`},{view:`chat`,icon:`💬`,label:`Chat`,group:`panoramica`},{view:`plan`,icon:`🗓️`,label:`Daily Plan`,group:`panoramica`},{view:`tasks`,icon:`✅`,label:`Tasks`,group:`panoramica`},{view:`email`,icon:`📧`,label:`Email`,group:`google`},{view:`calendar`,icon:`📅`,label:`Calendar`,group:`google`},{view:`drive`,icon:`💾`,label:`Drive`,group:`google`},{view:`contacts`,icon:`👤`,label:`Contacts`,group:`google`},{view:`notes`,icon:`📝`,label:`Notes`,group:`google`},{view:`onedrive`,icon:`☁️`,label:`OneDrive`,group:`microsoft`},{view:`mstodo`,icon:`📋`,label:`MS Todo`,group:`microsoft`},{view:`github`,icon:`🐙`,label:`GitHub`,group:`integrazioni`},{view:`notion`,icon:`📓`,label:`Notion`,group:`integrazioni`},{view:`slack`,icon:`💼`,label:`Slack`,group:`integrazioni`},{view:`maps`,icon:`🗺️`,label:`Maps`,group:`integrazioni`},{view:`reminders`,icon:`🔔`,label:`Reminders`,group:`integrazioni`},{view:`birthdays`,icon:`🎂`,label:`Birthdays`,group:`integrazioni`},{view:`cron`,icon:`⏰`,label:`Cron`,group:`integrazioni`},{view:`screen`,icon:`🖥️`,label:`Screen`,group:`integrazioni`},{view:`agents`,icon:`🤖`,label:`Agents`,group:`ai`},{view:`studio`,icon:`🎭`,label:`Studio`,group:`ai`},{view:`webcraft`,icon:`🔨`,label:`WebCraft`,group:`ai`},{view:`collab`,icon:`🏛️`,label:`Alexandria`,group:`ai`},{view:`connectors`,icon:`🔗`,label:`Connectors`,group:`ai`},{view:`settings`,icon:`⚙️`,label:`Settings`,group:`config`}],se=[{id:`panoramica`,label:`Panoramica`},{id:`google`,label:`Google`},{id:`microsoft`,label:`Microsoft`},{id:`integrazioni`,label:`Integrazioni`},{id:`ai`,label:`AI`},{id:`config`,label:`Config`}];function ce(){let{activeView:e,setView:t,sidebarOpen:n,setSidebarOpen:r}=ne(),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)({status:`idle`}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)(null);(0,_.useEffect)(()=>{let e=()=>{d(new Date().toLocaleTimeString(`it-IT`,{hour:`2-digit`,minute:`2-digit`}))};e();let t=setInterval(e,1e4);return()=>clearInterval(t)},[]),(0,_.useEffect)(()=>{let e=localStorage.getItem(`nha_weather_location`),t=e=>{T(`/api/weather?location=${encodeURIComponent(e)}`).then(e=>{e?.tempC&&a(e)}).catch(()=>{})};e?t(e):navigator.geolocation?.getCurrentPosition(e=>t(`${e.coords.latitude},${e.coords.longitude}`),()=>{})},[]),(0,_.useEffect)(()=>{T(`/api/version/check`).then(e=>{if(!e)return;let t=localStorage.getItem(`nha_updated_to`);t&&e.latest===t?s({...e,updateAvailable:!1,hasUpdate:!1,current:e.latest}):s(e)}).catch(()=>{})},[]),(0,_.useEffect)(()=>{let e=()=>T(`/api/unread-counts`).then(e=>{e&&p(e)}).catch(()=>{});e();let t=setInterval(e,12e4);return()=>clearInterval(t)},[]);let m=async()=>{if(!(c.status===`checking`||c.status===`updating`)){l({status:`checking`});try{let e=await T(`/api/version/check`);if(e){let t=localStorage.getItem(`nha_updated_to`);if(t&&e.latest===t){s({...e,updateAvailable:!1,hasUpdate:!1,current:e.latest}),l({status:`success`,message:`v${t} installed — restart nha ui`}),setTimeout(()=>l({status:`idle`}),4e3);return}s(e),e.updateAvailable?h():(l({status:`success`,message:`Up to date`}),setTimeout(()=>l({status:`idle`}),3e3))}else l({status:`error`,message:`Check failed`}),setTimeout(()=>l({status:`idle`}),4e3)}catch{l({status:`error`,message:`Network error`}),setTimeout(()=>l({status:`idle`}),4e3)}}},h=async()=>{if(c.status!==`updating`){l({status:`updating`,message:`Installing...`});try{let e=await E(`/api/npm-update`,{});if(e?.success){let t=e.newVersion||o?.latest||``;l({status:`success`,message:t?`v${t} installed! Restart: Ctrl+C then "nha ui"`:`Updated!`}),s(e=>e&&{...e,current:t||e.latest,updateAvailable:!1,hasUpdate:!1}),t&&localStorage.setItem(`nha_updated_to`,t)}else l({status:`error`,message:e?.error?.includes(`EACCES`)?`Permission denied. Run: sudo npm i -g nothumanallowed@latest`:e?.message||`Update failed`}),setTimeout(()=>l({status:`idle`}),8e3)}catch(e){let t=e instanceof Error?e.message:`Update failed`;l({status:`error`,message:t.includes(`EACCES`)?`Permission denied. Run: sudo npm i -g nothumanallowed@latest`:t.length>60?`Update failed. Try: npm i -g nothumanallowed@latest`:t}),setTimeout(()=>l({status:`idle`}),8e3)}}},g=k.find(t=>t.view===e)?.label??e;return(0,O.jsxs)(O.Fragment,{children:[n&&(0,O.jsx)(`div`,{className:D.overlay,onClick:()=>r(!1)}),(0,O.jsxs)(`aside`,{className:`${D.sidebar} ${n?D.open:``}`,children:[(0,O.jsxs)(`div`,{className:D.logo,children:[(0,O.jsxs)(`div`,{className:D.logoRow,children:[(0,O.jsx)(`span`,{className:D.logoNHA,children:`NHA`}),(0,O.jsx)(`span`,{className:D.logo3rdArm,children:`3rdArm`}),(0,O.jsx)(`span`,{className:D.logoDot})]}),(0,O.jsxs)(`div`,{className:D.logoVersion,children:[(0,O.jsxs)(`button`,{className:`${D.versionBtn} ${o?.updateAvailable?D.versionBtnUpdate:``} ${c.status===`error`?D.versionBtnError:``} ${c.status===`success`?D.versionBtnSuccess:``}`,onClick:o?.updateAvailable?h:m,disabled:c.status===`checking`||c.status===`updating`,title:o?.updateAvailable?`Update to v${o.latest}`:`Check for updates`,children:[c.status===`checking`&&`...`,c.status===`updating`&&`⏳ Installing...`,c.status===`success`&&(c.message||`Done`),c.status===`error`&&(c.message||`Error`),c.status===`idle`&&o?.updateAvailable&&`↑ v${o.latest}`,c.status===`idle`&&!o?.updateAvailable&&(o?`v${o.current}`:`...`)]}),c.status===`error`&&c.message?.includes(`sudo`)&&(0,O.jsx)(`span`,{className:D.updateHint,children:c.message})]}),(0,O.jsx)(`div`,{className:D.logoView,children:g}),(0,O.jsxs)(`div`,{className:D.logoClock,children:[u,i&&(0,O.jsxs)(`span`,{className:D.logoWeather,children:[` `,`· `,i.icon,` `,Math.round(i.tempC),`°C `,i.city.split(`,`)[0]]})]})]}),(0,O.jsx)(`nav`,{className:D.nav,children:se.map(n=>{let i=k.filter(e=>e.group===n.id);return(0,O.jsxs)(`div`,{className:D.group,children:[(0,O.jsx)(`div`,{className:D.groupLabel,children:n.label}),i.map(n=>{let i=n.view===`email`&&f&&f.emailUnread>0?f.emailUnread:n.view===`calendar`&&f&&f.todayEvents>0?f.todayEvents:null;return(0,O.jsxs)(`button`,{className:`${D.item} ${e===n.view?D.active:``}`,onClick:()=>{t(n.view),r(!1)},children:[(0,O.jsx)(`span`,{className:D.itemIcon,children:n.icon}),(0,O.jsx)(`span`,{className:D.itemLabel,children:n.label}),i!==null&&(0,O.jsx)(`span`,{className:D.badge,children:i>99?`99+`:i}),e===n.view&&(0,O.jsx)(`span`,{className:D.activeBar})]},n.view)})]},n.id)})}),(0,O.jsx)(`div`,{className:D.footer,children:(0,O.jsxs)(`div`,{className:D.footerDocs,children:[(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`Docs`}),(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs/cli`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`CLI`}),(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs/agents`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`Agents`}),(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs/studio`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`Studio`})]})})]})]})}function le(e){let[t,n]=(0,_.useState)(`connecting`),r=(0,_.useRef)(2e3),i=(0,_.useRef)(0),a=(0,_.useRef)(null),o=(0,_.useRef)(null),s=(0,_.useRef)(e);return s.current=e,(0,_.useEffect)(()=>{let e=!1;function t(){if(!e)try{let c=window.location.protocol===`https:`?`wss:`:`ws:`,l=new WebSocket(`${c}//${window.location.host}/api`);o.current=l,l.onopen=()=>{if(e){l.close();return}i.current=0,r.current=2e3,n(`connected`)},l.onmessage=e=>{try{let t=JSON.parse(e.data);s.current?.(t)}catch{}},l.onclose=()=>{if(e)return;n(`disconnected`),o.current=null,i.current++;let s=Math.min(r.current*1.5**Math.min(i.current-1,6),3e4);r.current=s,a.current=setTimeout(()=>{a.current=null,t()},s)},l.onerror=()=>{try{l.close()}catch{}}}catch{n(`disconnected`)}}return t(),()=>{e=!0,a.current&&=(clearTimeout(a.current),null);try{o.current?.close()}catch{}}},[]),t}var ue={"common.save":`Save`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Cancel`,"common.delete":`Delete`,"common.edit":`Edit`,"common.add":`Add`,"common.loading":`Loading…`,"common.comingSoon":`Coming soon`,"common.error":`Error`,"common.retry":`Retry`,"common.send":`Send`,"common.close":`Close`,"common.confirm":`Confirm`,"common.back":`Back`,"common.search":`Search…`,"common.refresh":`Refresh`,"common.copy":`Copy`,"common.copied":`Copied!`,"common.open":`Open`,"common.download":`Download`,"common.upload":`Upload`,"common.sync":`Sync`,"common.syncing":`Syncing…`,"common.connected":`Connected`,"common.disconnected":`Disconnected`,"common.connect":`Connect`,"common.disconnect":`Disconnect`,"common.enable":`Enable`,"common.disable":`Disable`,"common.yes":`Yes`,"common.no":`No`,"common.none":`None`,"common.all":`All`,"common.new":`New`,"common.create":`Create`,"common.update":`Update`,"common.remove":`Remove`,"common.clear":`Clear`,"common.select":`Select`,"common.optional":`optional`,"common.required":`required`,"common.noData":`No data`,"common.empty":`Empty`,"common.today":`Today`,"common.yesterday":`Yesterday`,"common.tomorrow":`Tomorrow`,"common.status":`Status`,"common.name":`Name`,"common.email":`Email`,"common.phone":`Phone`,"common.date":`Date`,"common.time":`Time`,"common.title":`Title`,"common.description":`Description`,"common.notes":`Notes`,"common.tags":`Tags`,"common.type":`Type`,"common.size":`Size`,"common.unknown":`Unknown`,"common.actions":`Actions`,"common.preview":`Preview`,"common.settings":`Settings`,"common.version":`Version`,"sidebar.panoramica":`Overview`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integrations`,"sidebar.ai":`AI`,"sidebar.config":`Config`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Daily Plan`,"nav.tasks":`Tasks`,"nav.email":`Email`,"nav.calendar":`Calendar`,"nav.drive":`Drive`,"nav.contacts":`Contacts`,"nav.notes":`Notes`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Maps`,"nav.reminders":`Reminders`,"nav.birthdays":`Birthdays`,"nav.cron":`Cron`,"nav.screen":`Screen`,"nav.agents":`Agents`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Connectors`,"nav.settings":`Settings`,"chat.placeholder":`Message NHA…`,"chat.thinking":`Thinking…`,"chat.newChat":`New Chat`,"chat.conversations":`Conversations`,"chat.noConversations":`No conversations yet`,"chat.deleteConversation":`Delete conversation?`,"chat.copyMessage":`Copy`,"chat.regenerate":`Regenerate`,"chat.stopGeneration":`Stop`,"chat.model":`Model`,"chat.tokens":`tokens`,"chat.attachFile":`Attach file`,"chat.voice":`Voice input`,"chat.canvas":`Canvas`,"chat.browser":`Browser`,"chat.toolsUsed":`Tools used`,"chat.errorSending":`Error sending message`,"dashboard.title":`Dashboard`,"dashboard.goodMorning":`Good morning`,"dashboard.goodAfternoon":`Good afternoon`,"dashboard.goodEvening":`Good evening`,"dashboard.todayPlan":`Today's plan`,"dashboard.upcomingEvents":`Upcoming events`,"dashboard.unreadEmails":`Unread emails`,"dashboard.pendingTasks":`Pending tasks`,"dashboard.weather":`Weather`,"dashboard.noEvents":`No events today`,"dashboard.noEmails":`No unread emails`,"dashboard.noTasks":`No pending tasks`,"dashboard.systemStatus":`System Status`,"dashboard.provider":`Provider`,"dashboard.version":`Version`,"dashboard.uptime":`Uptime`,"email.inbox":`Inbox`,"email.sent":`Sent`,"email.drafts":`Drafts`,"email.compose":`Compose`,"email.reply":`Reply`,"email.replyAll":`Reply All`,"email.forward":`Forward`,"email.delete":`Delete`,"email.archive":`Archive`,"email.markRead":`Mark as read`,"email.markUnread":`Mark as unread`,"email.noEmails":`No emails`,"email.from":`From`,"email.to":`To`,"email.cc":`CC`,"email.bcc":`BCC`,"email.subject":`Subject`,"email.body":`Message`,"email.attachments":`Attachments`,"email.sending":`Sending…`,"email.sent_ok":`Email sent`,"email.search":`Search emails…`,"email.unread":`Unread`,"email.starred":`Starred`,"email.loadMore":`Load more`,"email.accounts":`Accounts`,"email.noAccounts":`No email accounts configured`,"email.addAccount":`Add Account`,"email.syncNow":`Sync now`,"email.lastSync":`Last sync`,"calendar.title":`Calendar`,"calendar.newEvent":`New Event`,"calendar.today":`Today`,"calendar.month":`Month`,"calendar.week":`Week`,"calendar.day":`Day`,"calendar.agenda":`Agenda`,"calendar.noEvents":`No events`,"calendar.allDay":`All day`,"calendar.starts":`Starts`,"calendar.ends":`Ends`,"calendar.location":`Location`,"calendar.attendees":`Attendees`,"calendar.reminder":`Reminder`,"calendar.recurring":`Recurring`,"calendar.saveEvent":`Save Event`,"calendar.deleteEvent":`Delete event?`,"calendar.editEvent":`Edit Event`,"tasks.title":`Tasks`,"tasks.newTask":`New Task`,"tasks.completed":`Completed`,"tasks.pending":`Pending`,"tasks.overdue":`Overdue`,"tasks.dueDate":`Due date`,"tasks.priority":`Priority`,"tasks.priority.high":`High`,"tasks.priority.medium":`Medium`,"tasks.priority.low":`Low`,"tasks.noTasks":`No tasks`,"tasks.markDone":`Mark as done`,"tasks.markUndone":`Mark as undone`,"tasks.deleteTask":`Delete task?`,"tasks.list":`List`,"tasks.assignee":`Assignee`,"contacts.title":`Contacts`,"contacts.newContact":`New Contact`,"contacts.noContacts":`No contacts`,"contacts.search":`Search contacts…`,"contacts.firstName":`First Name`,"contacts.lastName":`Last Name`,"contacts.company":`Company`,"contacts.role":`Role`,"contacts.address":`Address`,"contacts.birthday":`Birthday`,"contacts.deleteContact":`Delete contact?`,"notes.title":`Notes`,"notes.newNote":`New Note`,"notes.noNotes":`No notes`,"notes.search":`Search notes…`,"notes.lastModified":`Last modified`,"notes.deleteNote":`Delete note?`,"notes.untitled":`Untitled`,"plan.title":`Daily Plan`,"plan.generate":`Generate Plan`,"plan.generating":`Generating…`,"plan.noplan":`No plan for today yet`,"plan.refresh":`Refresh`,"plan.morning":`Morning`,"plan.afternoon":`Afternoon`,"plan.evening":`Evening`,"plan.planTime":`Plan generation time`,"plan.summaryTime":`Summary time`,"drive.title":`Drive`,"drive.myDrive":`My Drive`,"drive.shared":`Shared with me`,"drive.recent":`Recent`,"drive.noFiles":`No files`,"drive.upload":`Upload`,"drive.newFolder":`New Folder`,"drive.download":`Download`,"drive.delete":`Delete`,"drive.rename":`Rename`,"drive.share":`Share`,"drive.search":`Search files…`,"drive.size":`Size`,"drive.modified":`Modified`,"drive.owner":`Owner`,"drive.quota":`Storage`,"onedrive.title":`OneDrive`,"onedrive.noFiles":`No files`,"onedrive.connect":`Connect Microsoft account`,"onedrive.search":`Search OneDrive…`,"mstodo.title":`MS To Do`,"mstodo.noLists":`No lists`,"mstodo.noTasks":`No tasks`,"mstodo.newTask":`New task`,"mstodo.connect":`Connect Microsoft account`,"mstodo.addPlaceholder":`Add a new task…`,"mstodo.add":`+ Add`,"mstodo.noActive":`No active tasks`,"mstodo.due":`Due`,"mstodo.authRequired":`Microsoft To Do requires Microsoft authentication. Run nha microsoft auth in the terminal.`,"github.title":`GitHub`,"github.repos":`Repositories`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"github.noRepos":`No repositories`,"github.noIssues":`No issues`,"github.noPrs":`No pull requests`,"github.search":`Search repos…`,"github.open":`Open`,"github.closed":`Closed`,"github.merged":`Merged`,"github.stars":`Stars`,"github.forks":`Forks`,"github.connect":`Connect GitHub`,"notion.title":`Notion`,"notion.pages":`Pages`,"notion.databases":`Databases`,"notion.noPages":`No pages`,"notion.search":`Search Notion…`,"notion.connect":`Connect Notion`,"slack.title":`Slack`,"slack.channels":`Channels`,"slack.dms":`Direct Messages`,"slack.noMessages":`No messages`,"slack.send":`Send`,"slack.connect":`Connect Slack`,"maps.title":`Maps`,"maps.search":`Search location…`,"maps.directions":`Directions`,"maps.from":`From`,"maps.to":`To`,"maps.route":`Get Route`,"maps.distance":`Distance`,"maps.duration":`Duration`,"maps.noResults":`No results`,"reminders.title":`Reminders`,"reminders.new":`New Reminder`,"reminders.noReminders":`No reminders`,"reminders.dueDate":`Due`,"reminders.repeat":`Repeat`,"reminders.delete":`Delete reminder?`,"reminders.done":`Done`,"birthdays.title":`Birthdays`,"birthdays.upcoming":`Upcoming`,"birthdays.noBirthdays":`No birthdays`,"birthdays.age":`Age`,"birthdays.daysLeft":`days left`,"birthdays.today":`Today!`,"birthdays.new":`Add Birthday`,"cron.title":`Scheduled Tasks`,"cron.newJob":`New Job`,"cron.noJobs":`No scheduled jobs`,"cron.schedule":`Schedule`,"cron.command":`Command`,"cron.lastRun":`Last run`,"cron.nextRun":`Next run`,"cron.status":`Status`,"cron.active":`Active`,"cron.paused":`Paused`,"cron.delete":`Delete job?`,"cron.run":`Run now`,"cron.pause":`Pause`,"cron.resume":`Resume`,"screen.title":`Screen Capture`,"screen.capture":`Capture Screen`,"screen.captureRegion":`Capture Region`,"screen.history":`History`,"screen.noCaptures":`No captures`,"screen.view":`View`,"screen.delete":`Delete`,"screen.describe":`Describe with AI`,"agents.title":`Agents`,"agents.newAgent":`New Agent`,"agents.noAgents":`No agents`,"agents.run":`Run`,"agents.running":`Running…`,"agents.stop":`Stop`,"agents.edit":`Edit`,"agents.delete":`Delete agent?`,"agents.prompt":`System Prompt`,"agents.name":`Agent Name`,"agents.model":`Model`,"agents.schedule":`Schedule`,"agents.lastRun":`Last run`,"agents.output":`Output`,"agents.tools":`Tools`,"agents.openPanel":`Open panel`,"agents.addAgent":`Add agent`,"agents.noDescription":`No description`,"agents.orchestrator":`Orchestrator`,"agents.orchestratorPlaceholder":`Send to all agents…`,"agents.orchestratorSend":`Send to all`,"agents.orchestratorSynthesis":`Conductor Synthesis`,"agents.attachFile":`Attach file`,"agents.voice":`Voice`,"agents.typeMessage":`Type a message…`,"agents.working":`working`,"agents.waitingResponse":`Waiting for response…`,"studio.title":`Studio`,"studio.newSession":`New Session`,"studio.task":`Task`,"studio.taskPlaceholder":`Describe what you want the agents to deliberate on…`,"studio.agents":`Agents`,"studio.run":`Run Deliberation`,"studio.running":`Deliberating…`,"studio.stop":`Stop`,"studio.result":`Result`,"studio.round":`Round`,"studio.convergence":`Convergence`,"studio.consensus":`Consensus`,"studio.noSessions":`No sessions`,"studio.plan":`Plan`,"studio.planning":`Planning…`,"studio.log":`Log`,"studio.export":`Export`,"studio.panel":`Panel`,"studio.canvas":`Canvas`,"studio.browser":`Browser`,"studio.parliament":`Council`,"studio.parliamentPrompt":`Activate Council analysis?`,"studio.parliamentSub":`The multi-agent Council will analyze the result using Legion X deliberation.`,"studio.parliamentActivate":`Activate`,"studio.parliamentSkip":`Skip`,"studio.parliamentRunning":`Council deliberating…`,"connectors.title":`Connectors`,"connectors.google":`Google`,"connectors.microsoft":`Microsoft`,"connectors.telegram":`Telegram`,"connectors.discord":`Discord`,"connectors.github":`GitHub`,"connectors.notion":`Notion`,"connectors.slack":`Slack`,"connectors.connect":`Connect`,"connectors.connected":`Connected`,"connectors.disconnect":`Disconnect`,"connectors.configure":`Configure`,"connectors.nodePalette":`Node Palette`,"connectors.triggers":`Triggers`,"connectors.actions":`Actions`,"connectors.ai":`AI`,"connectors.newWorkflow":`New Workflow`,"connectors.noWorkflows":`No workflows yet`,"connectors.noWorkflowsSub":`Drag nodes from the palette to build your first automation`,"connectors.workflowName":`Workflow name`,"connectors.run":`Run`,"connectors.running":`Running…`,"connectors.delete":`Delete`,"connectors.save":`Save`,"connectors.config":`Configuration`,"connectors.nodeConfig":`Node Config`,"connectors.close":`Close`,"connectors.log":`Execution Log`,"connectors.deleteEdge":`Delete edge`,"webcraft.title":`WebCraft`,"webcraft.newProject":`New Project`,"webcraft.projectName":`Project name`,"webcraft.description":`Describe the app you want to build…`,"webcraft.build":`Build`,"webcraft.building":`Building…`,"webcraft.preview":`Preview`,"webcraft.code":`Code`,"webcraft.files":`Files`,"webcraft.console":`Console`,"webcraft.deploy":`Deploy`,"webcraft.stop":`Stop server`,"webcraft.start":`Start server`,"webcraft.noProjects":`No projects`,"webcraft.fix":`Fix error`,"webcraft.fixing":`Fixing…`,"webcraft.error":`Error detected`,"webcraft.running":`Running`,"webcraft.stopped":`Stopped`,"webcraft.port":`Port`,"collab.title":`Alexandria`,"collab.channels":`Channels`,"collab.newChannel":`New Channel`,"collab.noChannels":`No channels`,"collab.messages":`Messages`,"collab.noMessages":`No messages`,"collab.send":`Send`,"collab.placeholder":`Message to the channel…`,"collab.channelId":`Channel ID`,"collab.create":`Create Channel`,"collab.join":`Join Channel`,"collab.leave":`Leave`,"collab.copy":`Copy ID`,"collab.identity":`Your Identity`,"settings.title":`Settings`,"settings.profile":`User Profile`,"settings.profileSub":`Agents use this when you say "my home", "my city", etc.`,"settings.name":`Name`,"settings.namePh":`e.g. John Smith`,"settings.emailPh":`e.g. john@example.com`,"settings.phonePh":`e.g. +1 555 123 4567`,"settings.homeAddress":`Home Address`,"settings.homeAddressPh":`e.g. 123 Main St`,"settings.workAddress":`Work Address`,"settings.workAddressPh":`e.g. 456 Office Blvd`,"settings.city":`City`,"settings.cityPh":`e.g. New York`,"settings.country":`Country`,"settings.countryPh":`e.g. USA`,"settings.company":`Company`,"settings.companyPh":`e.g. Acme Inc`,"settings.role":`Role`,"settings.rolePh":`e.g. Software Engineer`,"settings.notes":`Notes`,"settings.notesPh":`Anything else agents should know about you`,"settings.saveProfile":`Save Profile`,"settings.nhaFreeTitle":`NHA Free (Liara)`,"settings.nhaFreeSub":`Powered by Qwen3 32B. Free, no API key needed. Slower (5–15s).`,"settings.useLiara":`Use NHA Free`,"settings.liaraActivated":`✓ Liara activated`,"settings.llmProvider":`LLM Provider`,"settings.llmProviderSub":`Or use your own API key for faster responses.`,"settings.provider":`Provider`,"settings.apiKey":`API Key`,"settings.apiKeyPh":`Paste your API key here`,"settings.apiKeyFreeNote":`Not needed for NHA Free`,"settings.apiKeySet":`✓ API key configured — enter a new one to change it`,"settings.model":`Model`,"settings.modelPh":`Leave empty for default`,"settings.thinking":`Extended Thinking`,"settings.thinkingOff":`Off — faster responses`,"settings.thinkingOn":`On — extended reasoning (NHA Free only)`,"settings.saveProvider":`Save Provider`,"settings.language":`Language`,"settings.languageLabel":`Language used by all agents and Studio`,"settings.telegram":`Telegram & Discord Bot`,"settings.telegramSub":`Auto-reply to Telegram and Discord messages.`,"settings.telegramToken":`Telegram Bot Token`,"settings.telegramPh":`Get from @BotFather`,"settings.telegramSet":`••••••• (set — enter new to change)`,"settings.discordToken":`Discord Bot Token`,"settings.discordPh":`From Discord Developer Portal`,"settings.discordSet":`••••••• (set — enter new to change)`,"settings.saveBots":`Save Bots`,"settings.dailyOps":`Daily Operations`,"settings.planTime":`Daily Plan Time`,"settings.summaryTime":`Summary Time`,"settings.meetingAlert":`Meeting Alert (minutes)`,"settings.saveSchedule":`Save Schedule`,"settings.googleAccount":`Google Account`,"settings.googleSub":`Connect Gmail, Calendar, Drive, Contacts and Tasks.`,"settings.connectGoogle":`Connect Google`,"settings.reconnectGoogle":`Reconnect Google`,"settings.disconnectGoogle":`Disconnect Google`,"settings.imapAccounts":`Email Accounts (IMAP/SMTP)`,"settings.imapSub":`IMAP is read-only — no emails are ever deleted or moved on the server.`,"settings.addAccount":`+ Add Account`,"settings.noImapAccounts":`No IMAP accounts configured yet.`,"settings.editImapAccount":`Edit IMAP Account`,"settings.addImapAccount":`Add IMAP Account`,"settings.displayName":`Display Name`,"settings.displayNamePh":`e.g. Work Email`,"settings.fromName":`From Name`,"settings.fromNamePh":`e.g. John Smith`,"settings.imapServer":`IMAP Server`,"settings.imapPort":`IMAP Port`,"settings.smtpServer":`SMTP Server`,"settings.smtpPort":`SMTP Port`,"settings.username":`Username`,"settings.password":`Password`,"settings.passwordKeep":`(leave empty to keep existing)`,"settings.passwordPh":`App password or IMAP password`,"settings.show":`Show`,"settings.hide":`Hide`,"settings.sync":`Sync`,"settings.imapDelete":`Delete account "{name}"? All synced emails will be removed locally.`,"settings.disconnectGoogleConfirm":`Disconnect Google account?`,"settings.googleOpened":`Sign-in page opened. Complete the login then reload NHA.`,"settings.googleOpening":`Opening Google sign-in…`},de={en:ue,it:{"common.save":`Salva`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annulla`,"common.delete":`Elimina`,"common.edit":`Modifica`,"common.add":`Aggiungi`,"common.loading":`Caricamento…`,"common.comingSoon":`Prossimamente`,"common.error":`Errore`,"common.retry":`Riprova`,"common.send":`Invia`,"common.close":`Chiudi`,"common.confirm":`Conferma`,"common.back":`Indietro`,"common.search":`Cerca…`,"common.refresh":`Aggiorna`,"common.copy":`Copia`,"common.copied":`Copiato!`,"common.open":`Apri`,"common.download":`Scarica`,"common.upload":`Carica`,"common.sync":`Sincronizza`,"common.syncing":`Sincronizzazione…`,"common.connected":`Connesso`,"common.disconnected":`Disconnesso`,"common.connect":`Connetti`,"common.disconnect":`Disconnetti`,"common.enable":`Abilita`,"common.disable":`Disabilita`,"common.yes":`Sì`,"common.no":`No`,"common.none":`Nessuno`,"common.all":`Tutti`,"common.new":`Nuovo`,"common.create":`Crea`,"common.update":`Aggiorna`,"common.remove":`Rimuovi`,"common.clear":`Cancella`,"common.select":`Seleziona`,"common.optional":`opzionale`,"common.required":`obbligatorio`,"common.noData":`Nessun dato`,"common.empty":`Vuoto`,"common.today":`Oggi`,"common.yesterday":`Ieri`,"common.tomorrow":`Domani`,"common.status":`Stato`,"common.name":`Nome`,"common.email":`Email`,"common.phone":`Telefono`,"common.date":`Data`,"common.time":`Orario`,"common.title":`Titolo`,"common.description":`Descrizione`,"common.notes":`Note`,"common.tags":`Tag`,"common.type":`Tipo`,"common.size":`Dimensione`,"common.unknown":`Sconosciuto`,"common.actions":`Azioni`,"common.preview":`Anteprima`,"common.settings":`Impostazioni`,"common.version":`Versione`,"sidebar.panoramica":`Panoramica`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integrazioni`,"sidebar.ai":`AI`,"sidebar.config":`Config`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Piano Giornaliero`,"nav.tasks":`Task`,"nav.email":`Email`,"nav.calendar":`Calendario`,"nav.drive":`Drive`,"nav.contacts":`Contatti`,"nav.notes":`Note`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Mappe`,"nav.reminders":`Promemoria`,"nav.birthdays":`Compleanni`,"nav.cron":`Cron`,"nav.screen":`Schermo`,"nav.agents":`Agenti`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Connettori`,"nav.settings":`Impostazioni`,"chat.placeholder":`Scrivi a NHA…`,"chat.thinking":`Sto pensando…`,"chat.newChat":`Nuova Chat`,"chat.conversations":`Conversazioni`,"chat.noConversations":`Nessuna conversazione`,"chat.deleteConversation":`Elimina la conversazione?`,"chat.copyMessage":`Copia`,"chat.regenerate":`Rigenera`,"chat.stopGeneration":`Ferma`,"chat.model":`Modello`,"chat.tokens":`token`,"chat.attachFile":`Allega file`,"chat.voice":`Input vocale`,"chat.canvas":`Canvas`,"chat.browser":`Browser`,"chat.toolsUsed":`Strumenti usati`,"chat.errorSending":`Errore nell'invio del messaggio`,"dashboard.title":`Dashboard`,"dashboard.goodMorning":`Buongiorno`,"dashboard.goodAfternoon":`Buon pomeriggio`,"dashboard.goodEvening":`Buonasera`,"dashboard.todayPlan":`Piano di oggi`,"dashboard.upcomingEvents":`Prossimi eventi`,"dashboard.unreadEmails":`Email non lette`,"dashboard.pendingTasks":`Task in sospeso`,"dashboard.weather":`Meteo`,"dashboard.noEvents":`Nessun evento oggi`,"dashboard.noEmails":`Nessuna email non letta`,"dashboard.noTasks":`Nessun task in sospeso`,"dashboard.systemStatus":`Stato del sistema`,"dashboard.provider":`Provider`,"dashboard.version":`Versione`,"dashboard.uptime":`Uptime`,"email.inbox":`In arrivo`,"email.sent":`Inviati`,"email.drafts":`Bozze`,"email.compose":`Scrivi`,"email.reply":`Rispondi`,"email.replyAll":`Rispondi a tutti`,"email.forward":`Inoltra`,"email.delete":`Elimina`,"email.archive":`Archivia`,"email.markRead":`Segna come letto`,"email.markUnread":`Segna come non letto`,"email.noEmails":`Nessuna email`,"email.from":`Da`,"email.to":`A`,"email.cc":`CC`,"email.bcc":`CCN`,"email.subject":`Oggetto`,"email.body":`Messaggio`,"email.attachments":`Allegati`,"email.sending":`Invio in corso…`,"email.sent_ok":`Email inviata`,"email.search":`Cerca email…`,"email.unread":`Non lette`,"email.starred":`Preferite`,"email.loadMore":`Carica altro`,"email.accounts":`Account`,"email.noAccounts":`Nessun account email configurato`,"email.addAccount":`Aggiungi account`,"email.syncNow":`Sincronizza ora`,"email.lastSync":`Ultima sincronizzazione`,"calendar.title":`Calendario`,"calendar.newEvent":`Nuovo Evento`,"calendar.today":`Oggi`,"calendar.month":`Mese`,"calendar.week":`Settimana`,"calendar.day":`Giorno`,"calendar.agenda":`Agenda`,"calendar.noEvents":`Nessun evento`,"calendar.allDay":`Tutto il giorno`,"calendar.starts":`Inizio`,"calendar.ends":`Fine`,"calendar.location":`Luogo`,"calendar.attendees":`Partecipanti`,"calendar.reminder":`Promemoria`,"calendar.recurring":`Ricorrente`,"calendar.saveEvent":`Salva Evento`,"calendar.deleteEvent":`Eliminare l'evento?`,"calendar.editEvent":`Modifica Evento`,"tasks.title":`Task`,"tasks.newTask":`Nuovo Task`,"tasks.completed":`Completati`,"tasks.pending":`In sospeso`,"tasks.overdue":`In ritardo`,"tasks.dueDate":`Scadenza`,"tasks.priority":`Priorità`,"tasks.priority.high":`Alta`,"tasks.priority.medium":`Media`,"tasks.priority.low":`Bassa`,"tasks.noTasks":`Nessun task`,"tasks.markDone":`Segna come fatto`,"tasks.markUndone":`Segna come non fatto`,"tasks.deleteTask":`Eliminare il task?`,"tasks.list":`Lista`,"tasks.assignee":`Assegnato a`,"contacts.title":`Contatti`,"contacts.newContact":`Nuovo Contatto`,"contacts.noContacts":`Nessun contatto`,"contacts.search":`Cerca contatti…`,"contacts.firstName":`Nome`,"contacts.lastName":`Cognome`,"contacts.company":`Azienda`,"contacts.role":`Ruolo`,"contacts.address":`Indirizzo`,"contacts.birthday":`Compleanno`,"contacts.deleteContact":`Eliminare il contatto?`,"notes.title":`Note`,"notes.newNote":`Nuova Nota`,"notes.noNotes":`Nessuna nota`,"notes.search":`Cerca note…`,"notes.lastModified":`Ultima modifica`,"notes.deleteNote":`Eliminare la nota?`,"notes.untitled":`Senza titolo`,"plan.title":`Piano Giornaliero`,"plan.generate":`Genera Piano`,"plan.generating":`Generazione…`,"plan.noplan":`Nessun piano per oggi`,"plan.refresh":`Aggiorna`,"plan.morning":`Mattina`,"plan.afternoon":`Pomeriggio`,"plan.evening":`Sera`,"plan.planTime":`Orario generazione piano`,"plan.summaryTime":`Orario riepilogo`,"drive.title":`Drive`,"drive.myDrive":`Il mio Drive`,"drive.shared":`Condivisi con me`,"drive.recent":`Recenti`,"drive.noFiles":`Nessun file`,"drive.upload":`Carica`,"drive.newFolder":`Nuova Cartella`,"drive.download":`Scarica`,"drive.delete":`Elimina`,"drive.rename":`Rinomina`,"drive.share":`Condividi`,"drive.search":`Cerca file…`,"drive.size":`Dimensione`,"drive.modified":`Modificato`,"drive.owner":`Proprietario`,"drive.quota":`Spazio`,"onedrive.title":`OneDrive`,"onedrive.noFiles":`Nessun file`,"onedrive.connect":`Connetti account Microsoft`,"onedrive.search":`Cerca su OneDrive…`,"mstodo.title":`MS To Do`,"mstodo.noLists":`Nessuna lista`,"mstodo.noTasks":`Nessun task`,"mstodo.newTask":`Nuovo task`,"mstodo.connect":`Connetti account Microsoft`,"mstodo.addPlaceholder":`Aggiungi un nuovo task…`,"mstodo.add":`+ Aggiungi`,"mstodo.noActive":`Nessun task attivo`,"mstodo.due":`Scadenza`,"mstodo.authRequired":`MS To Do richiede autenticazione Microsoft. Esegui nha microsoft auth nel terminale.`,"github.title":`GitHub`,"github.repos":`Repository`,"github.issues":`Issue`,"github.prs":`Pull Request`,"github.noRepos":`Nessun repository`,"github.noIssues":`Nessuna issue`,"github.noPrs":`Nessuna pull request`,"github.search":`Cerca repository…`,"github.open":`Aperta`,"github.closed":`Chiusa`,"github.merged":`Unita`,"github.stars":`Stelle`,"github.forks":`Fork`,"github.connect":`Connetti GitHub`,"notion.title":`Notion`,"notion.pages":`Pagine`,"notion.databases":`Database`,"notion.noPages":`Nessuna pagina`,"notion.search":`Cerca su Notion…`,"notion.connect":`Connetti Notion`,"slack.title":`Slack`,"slack.channels":`Canali`,"slack.dms":`Messaggi diretti`,"slack.noMessages":`Nessun messaggio`,"slack.send":`Invia`,"slack.connect":`Connetti Slack`,"maps.title":`Mappe`,"maps.search":`Cerca luogo…`,"maps.directions":`Indicazioni`,"maps.from":`Da`,"maps.to":`A`,"maps.route":`Calcola percorso`,"maps.distance":`Distanza`,"maps.duration":`Durata`,"maps.noResults":`Nessun risultato`,"reminders.title":`Promemoria`,"reminders.new":`Nuovo Promemoria`,"reminders.noReminders":`Nessun promemoria`,"reminders.dueDate":`Scadenza`,"reminders.repeat":`Ripeti`,"reminders.delete":`Eliminare il promemoria?`,"reminders.done":`Fatto`,"birthdays.title":`Compleanni`,"birthdays.upcoming":`In arrivo`,"birthdays.noBirthdays":`Nessun compleanno`,"birthdays.age":`Età`,"birthdays.daysLeft":`giorni rimanenti`,"birthdays.today":`Oggi!`,"birthdays.new":`Aggiungi Compleanno`,"cron.title":`Task Pianificati`,"cron.newJob":`Nuovo Job`,"cron.noJobs":`Nessun job pianificato`,"cron.schedule":`Pianificazione`,"cron.command":`Comando`,"cron.lastRun":`Ultima esecuzione`,"cron.nextRun":`Prossima esecuzione`,"cron.status":`Stato`,"cron.active":`Attivo`,"cron.paused":`In pausa`,"cron.delete":`Eliminare il job?`,"cron.run":`Esegui ora`,"cron.pause":`Pausa`,"cron.resume":`Riprendi`,"screen.title":`Cattura Schermo`,"screen.capture":`Cattura schermo`,"screen.captureRegion":`Cattura area`,"screen.history":`Cronologia`,"screen.noCaptures":`Nessuna cattura`,"screen.view":`Visualizza`,"screen.delete":`Elimina`,"screen.describe":`Descrivi con AI`,"agents.title":`Agenti`,"agents.newAgent":`Nuovo Agente`,"agents.noAgents":`Nessun agente`,"agents.run":`Esegui`,"agents.running":`In esecuzione…`,"agents.stop":`Ferma`,"agents.edit":`Modifica`,"agents.delete":`Eliminare l'agente?`,"agents.prompt":`System Prompt`,"agents.name":`Nome Agente`,"agents.model":`Modello`,"agents.schedule":`Pianificazione`,"agents.lastRun":`Ultima esecuzione`,"agents.output":`Output`,"agents.tools":`Strumenti`,"agents.openPanel":`Apri pannello`,"agents.addAgent":`Aggiungi agente`,"agents.noDescription":`Nessuna descrizione`,"agents.orchestrator":`Orchestratore`,"agents.orchestratorPlaceholder":`Invia a tutti gli agenti…`,"agents.orchestratorSend":`Invia a tutti`,"agents.orchestratorSynthesis":`Sintesi Conductor`,"agents.attachFile":`Allega file`,"agents.voice":`Voce`,"agents.typeMessage":`Scrivi un messaggio…`,"agents.working":`in lavoro`,"agents.waitingResponse":`In attesa di risposta…`,"studio.title":`Studio`,"studio.newSession":`Nuova Sessione`,"studio.task":`Task`,"studio.taskPlaceholder":`Descrivi cosa vuoi che gli agenti deliberino…`,"studio.agents":`Agenti`,"studio.run":`Avvia Deliberazione`,"studio.running":`Deliberando…`,"studio.stop":`Ferma`,"studio.result":`Risultato`,"studio.round":`Round`,"studio.convergence":`Convergenza`,"studio.consensus":`Consenso`,"studio.noSessions":`Nessuna sessione`,"studio.plan":`Piano`,"studio.planning":`Pianificazione…`,"studio.log":`Log`,"studio.export":`Esporta`,"studio.panel":`Pannello`,"studio.canvas":`Canvas`,"studio.browser":`Browser`,"studio.parliament":`Consiglio`,"studio.parliamentPrompt":`Attivare l'analisi del Consiglio?`,"studio.parliamentSub":`Il Consiglio multi-agente analizzerà il risultato usando la deliberazione Legion X.`,"studio.parliamentActivate":`Attiva`,"studio.parliamentSkip":`Salta`,"studio.parliamentRunning":`Consiglio in deliberazione…`,"connectors.title":`Connettori`,"connectors.google":`Google`,"connectors.microsoft":`Microsoft`,"connectors.telegram":`Telegram`,"connectors.discord":`Discord`,"connectors.github":`GitHub`,"connectors.notion":`Notion`,"connectors.slack":`Slack`,"connectors.connect":`Connetti`,"connectors.connected":`Connesso`,"connectors.disconnect":`Disconnetti`,"connectors.configure":`Configura`,"connectors.nodePalette":`Palette Nodi`,"connectors.triggers":`Trigger`,"connectors.actions":`Azioni`,"connectors.ai":`AI`,"connectors.newWorkflow":`Nuovo Workflow`,"connectors.noWorkflows":`Nessun workflow`,"connectors.noWorkflowsSub":`Trascina nodi dalla palette per costruire la tua prima automazione`,"connectors.workflowName":`Nome workflow`,"connectors.run":`Esegui`,"connectors.running":`In esecuzione…`,"connectors.delete":`Elimina`,"connectors.save":`Salva`,"connectors.config":`Configurazione`,"connectors.nodeConfig":`Config Nodo`,"connectors.close":`Chiudi`,"connectors.log":`Log Esecuzione`,"connectors.deleteEdge":`Elimina connessione`,"webcraft.title":`WebCraft`,"webcraft.newProject":`Nuovo Progetto`,"webcraft.projectName":`Nome progetto`,"webcraft.description":`Descrivi l'app che vuoi costruire…`,"webcraft.build":`Costruisci`,"webcraft.building":`Costruendo…`,"webcraft.preview":`Anteprima`,"webcraft.code":`Codice`,"webcraft.files":`File`,"webcraft.console":`Console`,"webcraft.deploy":`Pubblica`,"webcraft.stop":`Ferma server`,"webcraft.start":`Avvia server`,"webcraft.noProjects":`Nessun progetto`,"webcraft.fix":`Correggi errore`,"webcraft.fixing":`Correzione…`,"webcraft.error":`Errore rilevato`,"webcraft.running":`In esecuzione`,"webcraft.stopped":`Fermo`,"webcraft.port":`Porta`,"collab.title":`Alexandria`,"collab.channels":`Canali`,"collab.newChannel":`Nuovo Canale`,"collab.noChannels":`Nessun canale`,"collab.messages":`Messaggi`,"collab.noMessages":`Nessun messaggio`,"collab.send":`Invia`,"collab.placeholder":`Messaggio al canale…`,"collab.channelId":`ID Canale`,"collab.create":`Crea Canale`,"collab.join":`Unisciti`,"collab.leave":`Lascia`,"collab.copy":`Copia ID`,"collab.identity":`La tua identità`,"settings.title":`Impostazioni`,"settings.profile":`Profilo Utente`,"settings.profileSub":`Gli agenti usano questo quando dici "casa mia", "la mia città", ecc.`,"settings.name":`Nome`,"settings.namePh":`es. Mario Rossi`,"settings.emailPh":`es. mario@esempio.com`,"settings.phonePh":`es. +39 333 123 4567`,"settings.homeAddress":`Indirizzo di casa`,"settings.homeAddressPh":`es. Via Roma 1, Milano`,"settings.workAddress":`Indirizzo di lavoro`,"settings.workAddressPh":`es. Via Ufficio 456`,"settings.city":`Città`,"settings.cityPh":`es. Milano`,"settings.country":`Paese`,"settings.countryPh":`es. Italia`,"settings.company":`Azienda`,"settings.companyPh":`es. Acme Srl`,"settings.role":`Ruolo`,"settings.rolePh":`es. Ingegnere Software`,"settings.notes":`Note`,"settings.notesPh":`Qualsiasi altra cosa gli agenti dovrebbero sapere di te`,"settings.saveProfile":`Salva Profilo`,"settings.nhaFreeTitle":`NHA Free (Liara)`,"settings.nhaFreeSub":`Powered by Qwen3 32B. Gratis, nessuna API key necessaria. Più lento (5–15s).`,"settings.useLiara":`Usa NHA Free`,"settings.liaraActivated":`✓ Liara attivata`,"settings.llmProvider":`Provider LLM`,"settings.llmProviderSub":`Oppure usa la tua API key per risposte più veloci.`,"settings.provider":`Provider`,"settings.apiKey":`API Key`,"settings.apiKeyPh":`Incolla qui la tua API key`,"settings.apiKeyFreeNote":`Non necessaria per NHA Free`,"settings.apiKeySet":`✓ API key configurata — inserisci una nuova per cambiarla`,"settings.model":`Modello`,"settings.modelPh":`Lascia vuoto per il default`,"settings.thinking":`Ragionamento Esteso`,"settings.thinkingOff":`Off — risposte più veloci`,"settings.thinkingOn":`On — ragionamento esteso (solo NHA Free)`,"settings.saveProvider":`Salva Provider`,"settings.language":`Lingua`,"settings.languageLabel":`Lingua usata da tutti gli agenti e Studio`,"settings.telegram":`Bot Telegram e Discord`,"settings.telegramSub":`Risposta automatica ai messaggi Telegram e Discord.`,"settings.telegramToken":`Token Bot Telegram`,"settings.telegramPh":`Ottienilo da @BotFather`,"settings.telegramSet":`••••••• (impostato — inserisci nuovo per cambiare)`,"settings.discordToken":`Token Bot Discord`,"settings.discordPh":`Dal Discord Developer Portal`,"settings.discordSet":`••••••• (impostato — inserisci nuovo per cambiare)`,"settings.saveBots":`Salva Bot`,"settings.dailyOps":`Operazioni Giornaliere`,"settings.planTime":`Orario Piano Giornaliero`,"settings.summaryTime":`Orario Riepilogo`,"settings.meetingAlert":`Avviso Riunione (minuti)`,"settings.saveSchedule":`Salva Orari`,"settings.googleAccount":`Account Google`,"settings.googleSub":`Connetti Gmail, Calendar, Drive, Contatti e Task.`,"settings.connectGoogle":`Connetti Google`,"settings.reconnectGoogle":`Riconnetti Google`,"settings.disconnectGoogle":`Disconnetti Google`,"settings.imapAccounts":`Account Email (IMAP/SMTP)`,"settings.imapSub":`IMAP è in sola lettura — le email non vengono mai cancellate dal server.`,"settings.addAccount":`+ Aggiungi Account`,"settings.noImapAccounts":`Nessun account IMAP configurato.`,"settings.editImapAccount":`Modifica Account IMAP`,"settings.addImapAccount":`Aggiungi Account IMAP`,"settings.displayName":`Nome visualizzato`,"settings.displayNamePh":`es. Email Lavoro`,"settings.fromName":`Nome mittente`,"settings.fromNamePh":`es. Mario Rossi`,"settings.imapServer":`Server IMAP`,"settings.imapPort":`Porta IMAP`,"settings.smtpServer":`Server SMTP`,"settings.smtpPort":`Porta SMTP`,"settings.username":`Username`,"settings.password":`Password`,"settings.passwordKeep":`(lascia vuoto per mantenere quella esistente)`,"settings.passwordPh":`Password app o password IMAP`,"settings.show":`Mostra`,"settings.hide":`Nascondi`,"settings.sync":`Sincronizza`,"settings.imapDelete":`Eliminare l'account "{name}"? Tutte le email locali verranno rimosse.`,"settings.disconnectGoogleConfirm":`Disconnettere l'account Google?`,"settings.googleOpened":`Pagina di accesso aperta. Completa il login e ricarica NHA.`,"settings.googleOpening":`Apertura Google sign-in…`},es:{"common.save":`Guardar`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Cancelar`,"common.delete":`Eliminar`,"common.edit":`Editar`,"common.add":`Agregar`,"common.loading":`Cargando…`,"common.comingSoon":`Próximamente`,"common.error":`Error`,"common.retry":`Reintentar`,"common.send":`Enviar`,"common.close":`Cerrar`,"common.confirm":`Confirmar`,"common.back":`Atrás`,"common.search":`Buscar…`,"common.refresh":`Actualizar`,"common.copy":`Copiar`,"common.copied":`¡Copiado!`,"common.open":`Abrir`,"common.download":`Descargar`,"common.upload":`Subir`,"common.sync":`Sincronizar`,"common.syncing":`Sincronizando…`,"common.connected":`Conectado`,"common.disconnected":`Desconectado`,"common.connect":`Conectar`,"common.disconnect":`Desconectar`,"common.enable":`Habilitar`,"common.disable":`Deshabilitar`,"common.yes":`Sí`,"common.no":`No`,"common.none":`Ninguno`,"common.all":`Todos`,"common.new":`Nuevo`,"common.create":`Crear`,"common.update":`Actualizar`,"common.remove":`Quitar`,"common.clear":`Limpiar`,"common.select":`Seleccionar`,"common.optional":`opcional`,"common.required":`requerido`,"common.noData":`Sin datos`,"common.empty":`Vacío`,"common.today":`Hoy`,"common.yesterday":`Ayer`,"common.tomorrow":`Mañana`,"common.status":`Estado`,"common.name":`Nombre`,"common.email":`Correo`,"common.phone":`Teléfono`,"common.date":`Fecha`,"common.time":`Hora`,"common.title":`Título`,"common.description":`Descripción`,"common.notes":`Notas`,"common.tags":`Etiquetas`,"common.type":`Tipo`,"common.size":`Tamaño`,"common.unknown":`Desconocido`,"common.actions":`Acciones`,"common.preview":`Vista previa`,"common.settings":`Configuración`,"common.version":`Versión`,"sidebar.panoramica":`Resumen`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integraciones`,"sidebar.ai":`IA`,"sidebar.config":`Config`,"nav.dashboard":`Panel`,"nav.chat":`Chat`,"nav.plan":`Plan diario`,"nav.tasks":`Tareas`,"nav.email":`Correo`,"nav.calendar":`Calendario`,"nav.drive":`Drive`,"nav.contacts":`Contactos`,"nav.notes":`Notas`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Mapas`,"nav.reminders":`Recordatorios`,"nav.birthdays":`Cumpleaños`,"nav.cron":`Cron`,"nav.screen":`Pantalla`,"nav.agents":`Agentes`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Conectores`,"nav.settings":`Configuración`,"chat.placeholder":`Escribe a NHA…`,"chat.thinking":`Pensando…`,"chat.newChat":`Nueva conversación`,"chat.conversations":`Conversaciones`,"chat.noConversations":`Sin conversaciones`,"chat.attachFile":`Adjuntar archivo`,"chat.voice":`Entrada de voz`,"chat.toolsUsed":`Herramientas usadas`,"chat.errorSending":`Error al enviar el mensaje`,"dashboard.title":`Panel`,"dashboard.goodMorning":`Buenos días`,"dashboard.goodAfternoon":`Buenas tardes`,"dashboard.goodEvening":`Buenas noches`,"dashboard.todayPlan":`Plan de hoy`,"dashboard.upcomingEvents":`Próximos eventos`,"dashboard.unreadEmails":`Correos no leídos`,"dashboard.pendingTasks":`Tareas pendientes`,"dashboard.noEvents":`Sin eventos hoy`,"dashboard.noEmails":`Sin correos no leídos`,"dashboard.noTasks":`Sin tareas pendientes`,"email.inbox":`Bandeja de entrada`,"email.sent":`Enviados`,"email.drafts":`Borradores`,"email.compose":`Redactar`,"email.reply":`Responder`,"email.forward":`Reenviar`,"email.noEmails":`Sin correos`,"email.from":`De`,"email.to":`Para`,"email.subject":`Asunto`,"email.search":`Buscar correos…`,"calendar.title":`Calendario`,"calendar.newEvent":`Nuevo evento`,"calendar.today":`Hoy`,"calendar.noEvents":`Sin eventos`,"tasks.title":`Tareas`,"tasks.newTask":`Nueva tarea`,"tasks.completed":`Completadas`,"tasks.pending":`Pendientes`,"tasks.overdue":`Vencidas`,"tasks.noTasks":`Sin tareas`,"tasks.priority.high":`Alta`,"tasks.priority.medium":`Media`,"tasks.priority.low":`Baja`,"contacts.title":`Contactos`,"contacts.newContact":`Nuevo contacto`,"contacts.noContacts":`Sin contactos`,"contacts.search":`Buscar contactos…`,"notes.title":`Notas`,"notes.newNote":`Nueva nota`,"notes.noNotes":`Sin notas`,"drive.title":`Drive`,"drive.noFiles":`Sin archivos`,"drive.search":`Buscar archivos…`,"mstodo.title":`MS To Do`,"mstodo.noTasks":`Sin tareas`,"mstodo.newTask":`Nueva tarea`,"mstodo.addPlaceholder":`Agregar una nueva tarea…`,"mstodo.add":`+ Agregar`,"mstodo.noActive":`Sin tareas activas`,"mstodo.due":`Vence`,"github.title":`GitHub`,"github.repos":`Repositorios`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"slack.title":`Slack`,"slack.channels":`Canales`,"agents.title":`Agentes`,"agents.noAgents":`Sin agentes`,"agents.orchestrator":`Orquestador`,"agents.orchestratorPlaceholder":`Enviar a todos los agentes…`,"agents.orchestratorSend":`Enviar a todos`,"agents.orchestratorSynthesis":`Síntesis Conductor`,"agents.typeMessage":`Escribe un mensaje…`,"agents.working":`trabajando`,"studio.title":`Studio`,"studio.task":`Tarea`,"studio.run":`Iniciar deliberación`,"studio.running":`Deliberando…`,"studio.result":`Resultado`,"studio.log":`Registro`,"studio.export":`Exportar`,"studio.parliamentPrompt":`¿Activar análisis del Parlamento?`,"studio.parliamentActivate":`Activar`,"studio.parliamentSkip":`Omitir`,"connectors.title":`Conectores`,"connectors.nodePalette":`Paleta de nodos`,"connectors.triggers":`Disparadores`,"connectors.actions":`Acciones`,"connectors.ai":`IA`,"connectors.newWorkflow":`Nuevo flujo`,"connectors.noWorkflows":`Sin flujos de trabajo`,"connectors.run":`Ejecutar`,"connectors.save":`Guardar`,"connectors.log":`Registro de ejecución`,"settings.title":`Configuración`,"settings.profile":`Perfil de usuario`,"settings.saveProfile":`Guardar perfil`,"settings.useLiara":`Usar NHA Free`,"settings.liaraActivated":`✓ Liara activada`,"settings.apiKeySet":`✓ API key configurada — introduce una nueva para cambiarla`,"settings.llmProvider":`Proveedor LLM`,"settings.language":`Idioma`,"settings.languageLabel":`Idioma usado por todos los agentes y Studio`,"settings.saveProvider":`Guardar proveedor`,"settings.googleAccount":`Cuenta de Google`,"settings.connectGoogle":`Conectar Google`,"settings.disconnectGoogle":`Desconectar Google`},fr:{"common.save":`Enregistrer`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annuler`,"common.delete":`Supprimer`,"common.edit":`Modifier`,"common.add":`Ajouter`,"common.loading":`Chargement…`,"common.comingSoon":`Bientôt disponible`,"common.error":`Erreur`,"common.retry":`Réessayer`,"common.send":`Envoyer`,"common.close":`Fermer`,"common.confirm":`Confirmer`,"common.back":`Retour`,"common.search":`Rechercher…`,"common.refresh":`Actualiser`,"common.copy":`Copier`,"common.copied":`Copié !`,"common.open":`Ouvrir`,"common.download":`Télécharger`,"common.upload":`Téléverser`,"common.sync":`Synchroniser`,"common.syncing":`Synchronisation…`,"common.connected":`Connecté`,"common.disconnected":`Déconnecté`,"common.connect":`Connecter`,"common.disconnect":`Déconnecter`,"common.enable":`Activer`,"common.disable":`Désactiver`,"common.yes":`Oui`,"common.no":`Non`,"common.none":`Aucun`,"common.all":`Tout`,"common.new":`Nouveau`,"common.create":`Créer`,"common.update":`Mettre à jour`,"common.remove":`Supprimer`,"common.clear":`Effacer`,"common.select":`Sélectionner`,"common.optional":`optionnel`,"common.required":`requis`,"common.noData":`Aucune donnée`,"common.empty":`Vide`,"common.today":`Aujourd'hui`,"common.yesterday":`Hier`,"common.tomorrow":`Demain`,"common.status":`Statut`,"common.name":`Nom`,"common.email":`E-mail`,"common.phone":`Téléphone`,"common.date":`Date`,"common.time":`Heure`,"common.title":`Titre`,"common.description":`Description`,"common.notes":`Notes`,"common.tags":`Étiquettes`,"common.type":`Type`,"common.size":`Taille`,"common.unknown":`Inconnu`,"common.actions":`Actions`,"common.preview":`Aperçu`,"common.settings":`Paramètres`,"common.version":`Version`,"sidebar.panoramica":`Vue d'ensemble`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Intégrations`,"sidebar.ai":`IA`,"sidebar.config":`Config`,"nav.dashboard":`Tableau de bord`,"nav.chat":`Chat`,"nav.plan":`Plan quotidien`,"nav.tasks":`Tâches`,"nav.email":`E-mail`,"nav.calendar":`Calendrier`,"nav.drive":`Drive`,"nav.contacts":`Contacts`,"nav.notes":`Notes`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Cartes`,"nav.reminders":`Rappels`,"nav.birthdays":`Anniversaires`,"nav.cron":`Cron`,"nav.screen":`Écran`,"nav.agents":`Agents`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Connecteurs`,"nav.settings":`Paramètres`,"chat.placeholder":`Écrivez à NHA…`,"chat.thinking":`Réflexion…`,"chat.newChat":`Nouvelle conversation`,"chat.conversations":`Conversations`,"chat.noConversations":`Aucune conversation`,"chat.attachFile":`Joindre un fichier`,"chat.voice":`Saisie vocale`,"chat.toolsUsed":`Outils utilisés`,"chat.errorSending":`Erreur lors de l'envoi du message`,"dashboard.title":`Tableau de bord`,"dashboard.goodMorning":`Bonjour`,"dashboard.goodAfternoon":`Bon après-midi`,"dashboard.goodEvening":`Bonsoir`,"dashboard.todayPlan":`Plan d'aujourd'hui`,"dashboard.upcomingEvents":`Événements à venir`,"dashboard.unreadEmails":`E-mails non lus`,"dashboard.pendingTasks":`Tâches en attente`,"dashboard.noEvents":`Aucun événement aujourd'hui`,"dashboard.noEmails":`Aucun e-mail non lu`,"dashboard.noTasks":`Aucune tâche en attente`,"email.inbox":`Boîte de réception`,"email.sent":`Envoyés`,"email.drafts":`Brouillons`,"email.compose":`Rédiger`,"email.reply":`Répondre`,"email.forward":`Transférer`,"email.noEmails":`Aucun e-mail`,"email.from":`De`,"email.to":`À`,"email.subject":`Objet`,"email.search":`Rechercher des e-mails…`,"calendar.title":`Calendrier`,"calendar.newEvent":`Nouvel événement`,"calendar.today":`Aujourd'hui`,"calendar.noEvents":`Aucun événement`,"tasks.title":`Tâches`,"tasks.newTask":`Nouvelle tâche`,"tasks.completed":`Terminées`,"tasks.pending":`En attente`,"tasks.overdue":`En retard`,"tasks.noTasks":`Aucune tâche`,"tasks.priority.high":`Haute`,"tasks.priority.medium":`Moyenne`,"tasks.priority.low":`Faible`,"contacts.title":`Contacts`,"contacts.newContact":`Nouveau contact`,"contacts.noContacts":`Aucun contact`,"contacts.search":`Rechercher des contacts…`,"notes.title":`Notes`,"notes.newNote":`Nouvelle note`,"notes.noNotes":`Aucune note`,"drive.title":`Drive`,"drive.noFiles":`Aucun fichier`,"drive.search":`Rechercher des fichiers…`,"mstodo.title":`MS To Do`,"mstodo.noTasks":`Aucune tâche`,"mstodo.newTask":`Nouvelle tâche`,"mstodo.addPlaceholder":`Ajouter une nouvelle tâche…`,"mstodo.add":`+ Ajouter`,"mstodo.noActive":`Aucune tâche active`,"mstodo.due":`Échéance`,"github.title":`GitHub`,"github.repos":`Référentiels`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"slack.title":`Slack`,"slack.channels":`Canaux`,"agents.title":`Agents`,"agents.noAgents":`Aucun agent`,"agents.orchestrator":`Orchestrateur`,"agents.orchestratorPlaceholder":`Envoyer à tous les agents…`,"agents.orchestratorSend":`Envoyer à tous`,"agents.orchestratorSynthesis":`Synthèse Conductor`,"agents.typeMessage":`Saisir un message…`,"agents.working":`en cours`,"studio.title":`Studio`,"studio.task":`Tâche`,"studio.run":`Démarrer la délibération`,"studio.running":`Délibération…`,"studio.result":`Résultat`,"studio.log":`Journal`,"studio.export":`Exporter`,"studio.parliamentPrompt":`Activer l'analyse du Parlement ?`,"studio.parliamentActivate":`Activer`,"studio.parliamentSkip":`Ignorer`,"connectors.title":`Connecteurs`,"connectors.nodePalette":`Palette de nœuds`,"connectors.triggers":`Déclencheurs`,"connectors.actions":`Actions`,"connectors.ai":`IA`,"connectors.newWorkflow":`Nouveau flux`,"connectors.noWorkflows":`Aucun flux de travail`,"connectors.run":`Exécuter`,"connectors.save":`Enregistrer`,"connectors.log":`Journal d'exécution`,"settings.title":`Paramètres`,"settings.profile":`Profil utilisateur`,"settings.saveProfile":`Enregistrer le profil`,"settings.useLiara":`Utiliser NHA Free`,"settings.liaraActivated":`✓ Liara activée`,"settings.apiKeySet":`✓ Clé API configurée — saisissez-en une nouvelle pour la modifier`,"settings.llmProvider":`Fournisseur LLM`,"settings.language":`Langue`,"settings.languageLabel":`Langue utilisée par tous les agents et Studio`,"settings.saveProvider":`Enregistrer le fournisseur`,"settings.googleAccount":`Compte Google`,"settings.connectGoogle":`Connecter Google`,"settings.disconnectGoogle":`Déconnecter Google`},de:{"common.save":`Speichern`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Abbrechen`,"common.delete":`Löschen`,"common.edit":`Bearbeiten`,"common.add":`Hinzufügen`,"common.loading":`Laden…`,"common.comingSoon":`Demnächst`,"common.error":`Fehler`,"common.retry":`Erneut versuchen`,"common.send":`Senden`,"common.close":`Schließen`,"common.confirm":`Bestätigen`,"common.back":`Zurück`,"common.search":`Suchen…`,"common.refresh":`Aktualisieren`,"common.copy":`Kopieren`,"common.copied":`Kopiert!`,"common.open":`Öffnen`,"common.download":`Herunterladen`,"common.upload":`Hochladen`,"common.sync":`Synchronisieren`,"common.syncing":`Synchronisierung…`,"common.connected":`Verbunden`,"common.disconnected":`Getrennt`,"common.connect":`Verbinden`,"common.disconnect":`Trennen`,"common.enable":`Aktivieren`,"common.disable":`Deaktivieren`,"common.yes":`Ja`,"common.no":`Nein`,"common.none":`Keiner`,"common.all":`Alle`,"common.new":`Neu`,"common.create":`Erstellen`,"common.update":`Aktualisieren`,"common.remove":`Entfernen`,"common.clear":`Löschen`,"common.select":`Auswählen`,"common.optional":`optional`,"common.required":`erforderlich`,"common.noData":`Keine Daten`,"common.empty":`Leer`,"common.today":`Heute`,"common.yesterday":`Gestern`,"common.tomorrow":`Morgen`,"common.status":`Status`,"common.name":`Name`,"common.email":`E-Mail`,"common.phone":`Telefon`,"common.date":`Datum`,"common.time":`Uhrzeit`,"common.title":`Titel`,"common.description":`Beschreibung`,"common.notes":`Notizen`,"common.tags":`Tags`,"common.type":`Typ`,"common.size":`Größe`,"common.unknown":`Unbekannt`,"common.actions":`Aktionen`,"common.preview":`Vorschau`,"common.settings":`Einstellungen`,"common.version":`Version`,"sidebar.panoramica":`Übersicht`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integrationen`,"sidebar.ai":`KI`,"sidebar.config":`Konfiguration`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Tagesplan`,"nav.tasks":`Aufgaben`,"nav.email":`E-Mail`,"nav.calendar":`Kalender`,"nav.drive":`Drive`,"nav.contacts":`Kontakte`,"nav.notes":`Notizen`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Karten`,"nav.reminders":`Erinnerungen`,"nav.birthdays":`Geburtstage`,"nav.cron":`Cron`,"nav.screen":`Bildschirm`,"nav.agents":`Agenten`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Konnektoren`,"nav.settings":`Einstellungen`,"chat.placeholder":`Nachricht an NHA…`,"chat.thinking":`Denke nach…`,"chat.newChat":`Neues Gespräch`,"chat.conversations":`Gespräche`,"chat.noConversations":`Keine Gespräche`,"chat.attachFile":`Datei anhängen`,"chat.voice":`Spracheingabe`,"chat.toolsUsed":`Verwendete Werkzeuge`,"chat.errorSending":`Fehler beim Senden der Nachricht`,"dashboard.title":`Dashboard`,"dashboard.goodMorning":`Guten Morgen`,"dashboard.goodAfternoon":`Guten Nachmittag`,"dashboard.goodEvening":`Guten Abend`,"dashboard.todayPlan":`Heutiger Plan`,"dashboard.upcomingEvents":`Bevorstehende Ereignisse`,"dashboard.unreadEmails":`Ungelesene E-Mails`,"dashboard.pendingTasks":`Ausstehende Aufgaben`,"dashboard.noEvents":`Keine Ereignisse heute`,"dashboard.noEmails":`Keine ungelesenen E-Mails`,"dashboard.noTasks":`Keine ausstehenden Aufgaben`,"email.inbox":`Posteingang`,"email.sent":`Gesendet`,"email.drafts":`Entwürfe`,"email.compose":`Verfassen`,"email.reply":`Antworten`,"email.forward":`Weiterleiten`,"email.noEmails":`Keine E-Mails`,"email.from":`Von`,"email.to":`An`,"email.subject":`Betreff`,"email.search":`E-Mails suchen…`,"calendar.title":`Kalender`,"calendar.newEvent":`Neues Ereignis`,"calendar.today":`Heute`,"calendar.noEvents":`Keine Ereignisse`,"tasks.title":`Aufgaben`,"tasks.newTask":`Neue Aufgabe`,"tasks.completed":`Erledigt`,"tasks.pending":`Ausstehend`,"tasks.overdue":`Überfällig`,"tasks.noTasks":`Keine Aufgaben`,"tasks.priority.high":`Hoch`,"tasks.priority.medium":`Mittel`,"tasks.priority.low":`Niedrig`,"contacts.title":`Kontakte`,"contacts.newContact":`Neuer Kontakt`,"contacts.noContacts":`Keine Kontakte`,"contacts.search":`Kontakte suchen…`,"notes.title":`Notizen`,"notes.newNote":`Neue Notiz`,"notes.noNotes":`Keine Notizen`,"drive.title":`Drive`,"drive.noFiles":`Keine Dateien`,"drive.search":`Dateien suchen…`,"mstodo.title":`MS To Do`,"mstodo.noTasks":`Keine Aufgaben`,"mstodo.newTask":`Neue Aufgabe`,"mstodo.addPlaceholder":`Neue Aufgabe hinzufügen…`,"mstodo.add":`+ Hinzufügen`,"mstodo.noActive":`Keine aktiven Aufgaben`,"mstodo.due":`Fällig`,"github.title":`GitHub`,"github.repos":`Repositories`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"slack.title":`Slack`,"slack.channels":`Kanäle`,"agents.title":`Agenten`,"agents.noAgents":`Keine Agenten`,"agents.orchestrator":`Orchestrator`,"agents.orchestratorPlaceholder":`An alle Agenten senden…`,"agents.orchestratorSend":`An alle senden`,"agents.orchestratorSynthesis":`Conductor-Synthese`,"agents.typeMessage":`Nachricht eingeben…`,"agents.working":`arbeitet`,"studio.title":`Studio`,"studio.task":`Aufgabe`,"studio.run":`Deliberation starten`,"studio.running":`Deliberation…`,"studio.result":`Ergebnis`,"studio.log":`Protokoll`,"studio.export":`Exportieren`,"studio.parliamentPrompt":`Parlament-Analyse aktivieren?`,"studio.parliamentActivate":`Aktivieren`,"studio.parliamentSkip":`Überspringen`,"connectors.title":`Konnektoren`,"connectors.nodePalette":`Knotenpalette`,"connectors.triggers":`Auslöser`,"connectors.actions":`Aktionen`,"connectors.ai":`KI`,"connectors.newWorkflow":`Neuer Workflow`,"connectors.noWorkflows":`Keine Workflows`,"connectors.run":`Ausführen`,"connectors.save":`Speichern`,"connectors.log":`Ausführungsprotokoll`,"settings.title":`Einstellungen`,"settings.profile":`Benutzerprofil`,"settings.saveProfile":`Profil speichern`,"settings.useLiara":`NHA Free verwenden`,"settings.liaraActivated":`✓ Liara aktiviert`,"settings.apiKeySet":`✓ API-Schlüssel konfiguriert — neuen eingeben zum Ändern`,"settings.llmProvider":`LLM-Anbieter`,"settings.language":`Sprache`,"settings.languageLabel":`Sprache für alle Agenten und Studio`,"settings.saveProvider":`Anbieter speichern`,"settings.googleAccount":`Google-Konto`,"settings.connectGoogle":`Google verbinden`,"settings.disconnectGoogle":`Google trennen`},pt:{"common.save":`Guardar`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Cancelar`,"common.delete":`Eliminar`,"common.edit":`Editar`,"common.add":`Adicionar`,"common.loading":`A carregar…`,"common.comingSoon":`Em breve`,"common.error":`Erro`,"common.retry":`Tentar novamente`,"common.send":`Enviar`,"common.close":`Fechar`,"common.confirm":`Confirmar`,"common.back":`Voltar`,"common.search":`Pesquisar…`,"common.refresh":`Atualizar`,"common.copy":`Copiar`,"common.copied":`Copiado!`,"common.open":`Abrir`,"common.download":`Transferir`,"common.upload":`Carregar`,"common.sync":`Sincronizar`,"common.syncing":`A sincronizar…`,"common.connected":`Ligado`,"common.disconnected":`Desligado`,"common.connect":`Ligar`,"common.disconnect":`Desligar`,"common.yes":`Sim`,"common.no":`Não`,"common.new":`Novo`,"common.noData":`Sem dados`,"common.today":`Hoje`,"common.yesterday":`Ontem`,"common.tomorrow":`Amanhã`,"common.name":`Nome`,"common.email":`E-mail`,"sidebar.panoramica":`Visão geral`,"sidebar.integrazioni":`Integrações`,"sidebar.ai":`IA`,"nav.dashboard":`Painel`,"nav.chat":`Chat`,"nav.plan":`Plano diário`,"nav.tasks":`Tarefas`,"nav.email":`E-mail`,"nav.calendar":`Calendário`,"nav.contacts":`Contactos`,"nav.notes":`Notas`,"nav.agents":`Agentes`,"nav.settings":`Definições`,"chat.placeholder":`Escrever para NHA…`,"chat.thinking":`A pensar…`,"chat.newChat":`Nova conversa`,"email.inbox":`Caixa de entrada`,"email.compose":`Redigir`,"email.noEmails":`Sem e-mails`,"calendar.title":`Calendário`,"calendar.newEvent":`Novo evento`,"calendar.noEvents":`Sem eventos`,"tasks.title":`Tarefas`,"tasks.newTask":`Nova tarefa`,"tasks.noTasks":`Sem tarefas`,"contacts.title":`Contactos`,"contacts.noContacts":`Sem contactos`,"mstodo.addPlaceholder":`Adicionar uma nova tarefa…`,"mstodo.add":`+ Adicionar`,"mstodo.noActive":`Sem tarefas ativas`,"agents.title":`Agentes`,"agents.noAgents":`Sem agentes`,"agents.orchestrator":`Orquestrador`,"agents.orchestratorSend":`Enviar a todos`,"studio.title":`Studio`,"studio.run":`Iniciar deliberação`,"studio.running":`A deliberar…`,"connectors.title":`Conectores`,"connectors.nodePalette":`Paleta de nós`,"connectors.triggers":`Gatilhos`,"connectors.newWorkflow":`Novo fluxo`,"settings.title":`Definições`,"settings.profile":`Perfil do utilizador`,"settings.language":`Idioma`,"settings.useLiara":`Usar NHA Free`,"settings.liaraActivated":`✓ Liara ativada`,"settings.apiKeySet":`✓ Chave API configurada — insira uma nova para alterar`,"settings.saveProfile":`Guardar perfil`,"settings.googleAccount":`Conta Google`,"settings.connectGoogle":`Ligar Google`},nl:{"common.save":`Opslaan`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annuleren`,"common.delete":`Verwijderen`,"common.edit":`Bewerken`,"common.add":`Toevoegen`,"common.loading":`Laden…`,"common.comingSoon":`Binnenkort`,"common.error":`Fout`,"common.retry":`Opnieuw proberen`,"common.send":`Verzenden`,"common.close":`Sluiten`,"common.confirm":`Bevestigen`,"common.back":`Terug`,"common.search":`Zoeken…`,"common.refresh":`Vernieuwen`,"common.copy":`Kopiëren`,"common.copied":`Gekopieerd!`,"common.open":`Openen`,"common.download":`Downloaden`,"common.connect":`Verbinden`,"common.disconnect":`Verbreken`,"common.yes":`Ja`,"common.no":`Nee`,"common.new":`Nieuw`,"common.noData":`Geen gegevens`,"common.today":`Vandaag`,"common.yesterday":`Gisteren`,"common.tomorrow":`Morgen`,"common.name":`Naam`,"common.email":`E-mail`,"sidebar.panoramica":`Overzicht`,"sidebar.integrazioni":`Integraties`,"sidebar.ai":`AI`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Dagplan`,"nav.tasks":`Taken`,"nav.email":`E-mail`,"nav.calendar":`Agenda`,"nav.contacts":`Contacten`,"nav.agents":`Agenten`,"nav.settings":`Instellingen`,"chat.placeholder":`Bericht aan NHA…`,"chat.thinking":`Aan het denken…`,"chat.newChat":`Nieuwe chat`,"email.inbox":`Postvak IN`,"email.compose":`Opstellen`,"email.noEmails":`Geen e-mails`,"calendar.title":`Agenda`,"calendar.newEvent":`Nieuw evenement`,"calendar.noEvents":`Geen evenementen`,"tasks.title":`Taken`,"tasks.newTask":`Nieuwe taak`,"tasks.noTasks":`Geen taken`,"contacts.title":`Contacten`,"contacts.noContacts":`Geen contacten`,"agents.title":`Agenten`,"agents.noAgents":`Geen agenten`,"agents.orchestrator":`Orchestrator`,"agents.orchestratorSend":`Stuur naar iedereen`,"studio.title":`Studio`,"studio.run":`Beraadslaging starten`,"studio.running":`Beraadslaging…`,"connectors.title":`Connectoren`,"connectors.nodePalette":`Knooppuntenpalet`,"connectors.triggers":`Triggers`,"connectors.newWorkflow":`Nieuwe workflow`,"settings.title":`Instellingen`,"settings.language":`Taal`,"settings.useLiara":`NHA Free gebruiken`,"settings.liaraActivated":`✓ Liara geactiveerd`,"settings.apiKeySet":`✓ API-sleutel geconfigureerd — voer een nieuwe in om te wijzigen`,"settings.saveProfile":`Profiel opslaan`,"settings.googleAccount":`Google-account`,"settings.connectGoogle":`Google verbinden`},pl:{"common.save":`Zapisz`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Anuluj`,"common.delete":`Usuń`,"common.edit":`Edytuj`,"common.add":`Dodaj`,"common.loading":`Ładowanie…`,"common.error":`Błąd`,"common.retry":`Spróbuj ponownie`,"common.send":`Wyślij`,"common.close":`Zamknij`,"common.confirm":`Potwierdź`,"common.back":`Wstecz`,"common.search":`Szukaj…`,"common.refresh":`Odśwież`,"common.copy":`Kopiuj`,"common.copied":`Skopiowano!`,"common.connect":`Połącz`,"common.disconnect":`Rozłącz`,"common.yes":`Tak`,"common.no":`Nie`,"common.new":`Nowy`,"common.noData":`Brak danych`,"common.today":`Dziś`,"common.name":`Nazwa`,"sidebar.panoramica":`Przegląd`,"sidebar.integrazioni":`Integracje`,"sidebar.ai":`AI`,"nav.dashboard":`Panel`,"nav.chat":`Czat`,"nav.tasks":`Zadania`,"nav.email":`E-mail`,"nav.calendar":`Kalendarz`,"nav.contacts":`Kontakty`,"nav.agents":`Agenci`,"nav.settings":`Ustawienia`,"chat.placeholder":`Wiadomość do NHA…`,"chat.thinking":`Myślę…`,"chat.newChat":`Nowa rozmowa`,"email.inbox":`Skrzynka odbiorcza`,"email.compose":`Napisz`,"email.noEmails":`Brak wiadomości`,"calendar.title":`Kalendarz`,"calendar.newEvent":`Nowe zdarzenie`,"calendar.noEvents":`Brak zdarzeń`,"tasks.title":`Zadania`,"tasks.newTask":`Nowe zadanie`,"tasks.noTasks":`Brak zadań`,"contacts.title":`Kontakty`,"contacts.noContacts":`Brak kontaktów`,"agents.title":`Agenci`,"agents.noAgents":`Brak agentów`,"agents.orchestrator":`Orkiestrator`,"agents.orchestratorSend":`Wyślij do wszystkich`,"studio.title":`Studio`,"studio.run":`Rozpocznij deliberację`,"studio.running":`Deliberacja…`,"connectors.title":`Konektory`,"connectors.triggers":`Wyzwalacze`,"connectors.newWorkflow":`Nowy przepływ`,"settings.title":`Ustawienia`,"settings.language":`Język`,"settings.useLiara":`Użyj NHA Free`,"settings.liaraActivated":`✓ Liara aktywowana`,"settings.apiKeySet":`✓ Klucz API skonfigurowany — wpisz nowy, aby zmienić`,"settings.saveProfile":`Zapisz profil`,"settings.googleAccount":`Konto Google`,"settings.connectGoogle":`Połącz Google`},ru:{"common.save":`Сохранить`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Отмена`,"common.delete":`Удалить`,"common.edit":`Редактировать`,"common.add":`Добавить`,"common.loading":`Загрузка…`,"common.error":`Ошибка`,"common.retry":`Повторить`,"common.send":`Отправить`,"common.close":`Закрыть`,"common.confirm":`Подтвердить`,"common.back":`Назад`,"common.search":`Поиск…`,"common.refresh":`Обновить`,"common.copy":`Копировать`,"common.copied":`Скопировано!`,"common.connect":`Подключить`,"common.disconnect":`Отключить`,"common.yes":`Да`,"common.no":`Нет`,"common.new":`Новый`,"common.noData":`Нет данных`,"common.today":`Сегодня`,"common.name":`Имя`,"sidebar.panoramica":`Обзор`,"sidebar.integrazioni":`Интеграции`,"sidebar.ai":`ИИ`,"nav.dashboard":`Панель`,"nav.chat":`Чат`,"nav.tasks":`Задачи`,"nav.email":`Почта`,"nav.calendar":`Календарь`,"nav.contacts":`Контакты`,"nav.agents":`Агенты`,"nav.settings":`Настройки`,"chat.placeholder":`Сообщение NHA…`,"chat.thinking":`Думаю…`,"chat.newChat":`Новый чат`,"email.inbox":`Входящие`,"email.compose":`Написать`,"email.noEmails":`Нет писем`,"calendar.title":`Календарь`,"calendar.newEvent":`Новое событие`,"calendar.noEvents":`Нет событий`,"tasks.title":`Задачи`,"tasks.newTask":`Новая задача`,"tasks.noTasks":`Нет задач`,"contacts.title":`Контакты`,"contacts.noContacts":`Нет контактов`,"agents.title":`Агенты`,"agents.noAgents":`Нет агентов`,"agents.orchestrator":`Оркестратор`,"agents.orchestratorSend":`Отправить всем`,"studio.title":`Studio`,"studio.run":`Начать обсуждение`,"studio.running":`Обсуждение…`,"connectors.title":`Коннекторы`,"connectors.triggers":`Триггеры`,"connectors.newWorkflow":`Новый сценарий`,"settings.title":`Настройки`,"settings.language":`Язык`,"settings.useLiara":`Использовать NHA Free`,"settings.liaraActivated":`✓ Liara активирована`,"settings.apiKeySet":`✓ API-ключ настроен — введите новый для изменения`,"settings.saveProfile":`Сохранить профиль`,"settings.googleAccount":`Аккаунт Google`,"settings.connectGoogle":`Подключить Google`},zh:{"common.save":`保存`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`取消`,"common.delete":`删除`,"common.edit":`编辑`,"common.add":`添加`,"common.loading":`加载中…`,"common.error":`错误`,"common.retry":`重试`,"common.send":`发送`,"common.close":`关闭`,"common.confirm":`确认`,"common.back":`返回`,"common.search":`搜索…`,"common.refresh":`刷新`,"common.copy":`复制`,"common.copied":`已复制!`,"common.connect":`连接`,"common.disconnect":`断开`,"common.yes":`是`,"common.no":`否`,"common.new":`新建`,"common.noData":`无数据`,"common.today":`今天`,"common.name":`名称`,"sidebar.panoramica":`概览`,"sidebar.integrazioni":`集成`,"sidebar.ai":`AI`,"nav.dashboard":`仪表板`,"nav.chat":`聊天`,"nav.tasks":`任务`,"nav.email":`邮件`,"nav.calendar":`日历`,"nav.contacts":`联系人`,"nav.agents":`智能体`,"nav.settings":`设置`,"chat.placeholder":`发送消息给 NHA…`,"chat.thinking":`思考中…`,"chat.newChat":`新对话`,"email.inbox":`收件箱`,"email.compose":`撰写`,"email.noEmails":`无邮件`,"calendar.title":`日历`,"calendar.newEvent":`新建事件`,"calendar.noEvents":`无事件`,"tasks.title":`任务`,"tasks.newTask":`新建任务`,"tasks.noTasks":`无任务`,"contacts.title":`联系人`,"contacts.noContacts":`无联系人`,"agents.title":`智能体`,"agents.noAgents":`无智能体`,"agents.orchestrator":`协调器`,"agents.orchestratorSend":`发送给所有`,"studio.title":`Studio`,"studio.run":`开始协商`,"studio.running":`协商中…`,"connectors.title":`连接器`,"connectors.triggers":`触发器`,"connectors.newWorkflow":`新工作流`,"settings.title":`设置`,"settings.language":`语言`,"settings.useLiara":`使用 NHA Free`,"settings.liaraActivated":`✓ Liara 已激活`,"settings.apiKeySet":`✓ API 密钥已配置 — 输入新密钥以更改`,"settings.saveProfile":`保存配置`,"settings.googleAccount":`Google 账户`,"settings.connectGoogle":`连接 Google`},ja:{"common.save":`保存`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`キャンセル`,"common.delete":`削除`,"common.edit":`編集`,"common.add":`追加`,"common.loading":`読み込み中…`,"common.error":`エラー`,"common.retry":`再試行`,"common.send":`送信`,"common.close":`閉じる`,"common.confirm":`確認`,"common.back":`戻る`,"common.search":`検索…`,"common.refresh":`更新`,"common.copy":`コピー`,"common.copied":`コピーしました!`,"common.connect":`接続`,"common.disconnect":`切断`,"common.yes":`はい`,"common.no":`いいえ`,"common.new":`新規`,"common.noData":`データなし`,"common.today":`今日`,"common.name":`名前`,"sidebar.panoramica":`概要`,"sidebar.integrazioni":`統合`,"sidebar.ai":`AI`,"nav.dashboard":`ダッシュボード`,"nav.chat":`チャット`,"nav.tasks":`タスク`,"nav.email":`メール`,"nav.calendar":`カレンダー`,"nav.contacts":`連絡先`,"nav.agents":`エージェント`,"nav.settings":`設定`,"chat.placeholder":`NHA へメッセージ…`,"chat.thinking":`考え中…`,"chat.newChat":`新しい会話`,"email.inbox":`受信トレイ`,"email.compose":`作成`,"email.noEmails":`メールなし`,"calendar.title":`カレンダー`,"calendar.newEvent":`新しいイベント`,"calendar.noEvents":`イベントなし`,"tasks.title":`タスク`,"tasks.newTask":`新しいタスク`,"tasks.noTasks":`タスクなし`,"contacts.title":`連絡先`,"contacts.noContacts":`連絡先なし`,"agents.title":`エージェント`,"agents.noAgents":`エージェントなし`,"agents.orchestrator":`オーケストレーター`,"agents.orchestratorSend":`全員に送信`,"studio.title":`Studio`,"studio.run":`討議を開始`,"studio.running":`討議中…`,"connectors.title":`コネクター`,"connectors.triggers":`トリガー`,"connectors.newWorkflow":`新しいワークフロー`,"settings.title":`設定`,"settings.language":`言語`,"settings.useLiara":`NHA Free を使用`,"settings.liaraActivated":`✓ Liara が有効になりました`,"settings.apiKeySet":`✓ API キーが設定済み — 変更するには新しいキーを入力してください`,"settings.saveProfile":`プロフィールを保存`,"settings.googleAccount":`Google アカウント`,"settings.connectGoogle":`Google を接続`},ko:{"common.save":`저장`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`취소`,"common.delete":`삭제`,"common.edit":`편집`,"common.add":`추가`,"common.loading":`로딩 중…`,"common.error":`오류`,"common.retry":`다시 시도`,"common.send":`전송`,"common.close":`닫기`,"common.confirm":`확인`,"common.back":`뒤로`,"common.search":`검색…`,"common.refresh":`새로고침`,"common.copy":`복사`,"common.copied":`복사됨!`,"common.connect":`연결`,"common.disconnect":`연결 해제`,"common.yes":`예`,"common.no":`아니요`,"common.new":`새로 만들기`,"common.noData":`데이터 없음`,"common.today":`오늘`,"common.name":`이름`,"sidebar.panoramica":`개요`,"sidebar.integrazioni":`통합`,"sidebar.ai":`AI`,"nav.dashboard":`대시보드`,"nav.chat":`채팅`,"nav.tasks":`작업`,"nav.email":`이메일`,"nav.calendar":`캘린더`,"nav.contacts":`연락처`,"nav.agents":`에이전트`,"nav.settings":`설정`,"chat.placeholder":`NHA에게 메시지…`,"chat.thinking":`생각 중…`,"chat.newChat":`새 대화`,"email.inbox":`받은편지함`,"email.compose":`작성`,"email.noEmails":`이메일 없음`,"calendar.title":`캘린더`,"calendar.newEvent":`새 이벤트`,"calendar.noEvents":`이벤트 없음`,"tasks.title":`작업`,"tasks.newTask":`새 작업`,"tasks.noTasks":`작업 없음`,"contacts.title":`연락처`,"contacts.noContacts":`연락처 없음`,"agents.title":`에이전트`,"agents.noAgents":`에이전트 없음`,"agents.orchestrator":`오케스트레이터`,"agents.orchestratorSend":`전체에게 전송`,"studio.title":`Studio`,"studio.run":`토론 시작`,"studio.running":`토론 중…`,"connectors.title":`커넥터`,"connectors.triggers":`트리거`,"connectors.newWorkflow":`새 워크플로`,"settings.title":`설정`,"settings.language":`언어`,"settings.useLiara":`NHA Free 사용`,"settings.liaraActivated":`✓ Liara 활성화됨`,"settings.apiKeySet":`✓ API 키 설정됨 — 변경하려면 새 키를 입력하세요`,"settings.saveProfile":`프로필 저장`,"settings.googleAccount":`Google 계정`,"settings.connectGoogle":`Google 연결`},ar:{"common.save":`حفظ`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`إلغاء`,"common.delete":`حذف`,"common.edit":`تعديل`,"common.add":`إضافة`,"common.loading":`جارٍ التحميل…`,"common.error":`خطأ`,"common.retry":`إعادة المحاولة`,"common.send":`إرسال`,"common.close":`إغلاق`,"common.confirm":`تأكيد`,"common.back":`رجوع`,"common.search":`بحث…`,"common.refresh":`تحديث`,"common.copy":`نسخ`,"common.copied":`تم النسخ!`,"common.connect":`اتصال`,"common.disconnect":`قطع الاتصال`,"common.yes":`نعم`,"common.no":`لا`,"common.new":`جديد`,"common.noData":`لا بيانات`,"common.today":`اليوم`,"common.name":`الاسم`,"sidebar.panoramica":`نظرة عامة`,"sidebar.integrazioni":`التكاملات`,"sidebar.ai":`الذكاء الاصطناعي`,"nav.dashboard":`لوحة التحكم`,"nav.chat":`المحادثة`,"nav.tasks":`المهام`,"nav.email":`البريد`,"nav.calendar":`التقويم`,"nav.contacts":`جهات الاتصال`,"nav.agents":`الوكلاء`,"nav.settings":`الإعدادات`,"chat.placeholder":`اكتب لـ NHA…`,"chat.thinking":`أفكر…`,"chat.newChat":`محادثة جديدة`,"email.inbox":`البريد الوارد`,"email.compose":`إنشاء`,"email.noEmails":`لا رسائل`,"calendar.title":`التقويم`,"calendar.newEvent":`حدث جديد`,"calendar.noEvents":`لا أحداث`,"tasks.title":`المهام`,"tasks.newTask":`مهمة جديدة`,"tasks.noTasks":`لا مهام`,"contacts.title":`جهات الاتصال`,"contacts.noContacts":`لا جهات اتصال`,"agents.title":`الوكلاء`,"agents.noAgents":`لا وكلاء`,"agents.orchestrator":`المنسق`,"agents.orchestratorSend":`إرسال للجميع`,"studio.title":`Studio`,"studio.run":`بدء المداولة`,"studio.running":`مداولة…`,"connectors.title":`الموصلات`,"connectors.triggers":`المشغلات`,"connectors.newWorkflow":`سير عمل جديد`,"settings.title":`الإعدادات`,"settings.language":`اللغة`,"settings.useLiara":`استخدام NHA Free`,"settings.liaraActivated":`✓ تم تفعيل Liara`,"settings.apiKeySet":`✓ مفتاح API مُعدَّل — أدخل مفتاحاً جديداً للتغيير`,"settings.saveProfile":`حفظ الملف الشخصي`,"settings.googleAccount":`حساب Google`,"settings.connectGoogle":`ربط Google`},hi:{"common.save":`सहेजें`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`रद्द करें`,"common.delete":`हटाएं`,"common.edit":`संपादित करें`,"common.add":`जोड़ें`,"common.loading":`लोड हो रहा है…`,"common.error":`त्रुटि`,"common.retry":`पुनः प्रयास करें`,"common.send":`भेजें`,"common.close":`बंद करें`,"common.confirm":`पुष्टि करें`,"common.back":`वापस`,"common.search":`खोजें…`,"common.refresh":`रीफ्रेश`,"common.copy":`कॉपी करें`,"common.copied":`कॉपी हो गया!`,"common.connect":`कनेक्ट करें`,"common.disconnect":`डिस्कनेक्ट करें`,"common.yes":`हाँ`,"common.no":`नहीं`,"common.new":`नया`,"common.noData":`कोई डेटा नहीं`,"common.today":`आज`,"common.name":`नाम`,"sidebar.panoramica":`अवलोकन`,"sidebar.integrazioni":`एकीकरण`,"sidebar.ai":`AI`,"nav.dashboard":`डैशबोर्ड`,"nav.chat":`चैट`,"nav.tasks":`कार्य`,"nav.email":`ईमेल`,"nav.calendar":`कैलेंडर`,"nav.contacts":`संपर्क`,"nav.agents":`एजेंट`,"nav.settings":`सेटिंग्स`,"chat.placeholder":`NHA को संदेश…`,"chat.thinking":`सोच रहा हूँ…`,"chat.newChat":`नई बातचीत`,"email.inbox":`इनबॉक्स`,"email.compose":`लिखें`,"email.noEmails":`कोई ईमेल नहीं`,"calendar.title":`कैलेंडर`,"calendar.newEvent":`नई घटना`,"calendar.noEvents":`कोई घटना नहीं`,"tasks.title":`कार्य`,"tasks.newTask":`नया कार्य`,"tasks.noTasks":`कोई कार्य नहीं`,"contacts.title":`संपर्क`,"contacts.noContacts":`कोई संपर्क नहीं`,"agents.title":`एजेंट`,"agents.noAgents":`कोई एजेंट नहीं`,"agents.orchestrator":`ऑर्केस्ट्रेटर`,"agents.orchestratorSend":`सभी को भेजें`,"studio.title":`Studio`,"studio.run":`विचार-विमर्श शुरू करें`,"studio.running":`विचार-विमर्श…`,"connectors.title":`कनेक्टर`,"connectors.triggers":`ट्रिगर`,"connectors.newWorkflow":`नया वर्कफ्लो`,"settings.title":`सेटिंग्स`,"settings.language":`भाषा`,"settings.useLiara":`NHA Free उपयोग करें`,"settings.liaraActivated":`✓ Liara सक्रिय`,"settings.apiKeySet":`✓ API key कॉन्फ़िगर — बदलने के लिए नई key डालें`,"settings.saveProfile":`प्रोफ़ाइल सहेजें`,"settings.googleAccount":`Google खाता`,"settings.connectGoogle":`Google कनेक्ट करें`},tr:{"common.save":`Kaydet`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`İptal`,"common.delete":`Sil`,"common.edit":`Düzenle`,"common.add":`Ekle`,"common.loading":`Yükleniyor…`,"common.error":`Hata`,"common.retry":`Tekrar dene`,"common.send":`Gönder`,"common.close":`Kapat`,"common.confirm":`Onayla`,"common.back":`Geri`,"common.search":`Ara…`,"common.refresh":`Yenile`,"common.copy":`Kopyala`,"common.copied":`Kopyalandı!`,"common.connect":`Bağlan`,"common.disconnect":`Bağlantıyı kes`,"common.yes":`Evet`,"common.no":`Hayır`,"common.new":`Yeni`,"common.noData":`Veri yok`,"common.today":`Bugün`,"common.name":`Ad`,"sidebar.panoramica":`Genel bakış`,"sidebar.integrazioni":`Entegrasyonlar`,"sidebar.ai":`YZ`,"nav.dashboard":`Gösterge paneli`,"nav.chat":`Sohbet`,"nav.tasks":`Görevler`,"nav.email":`E-posta`,"nav.calendar":`Takvim`,"nav.contacts":`Kişiler`,"nav.agents":`Ajanlar`,"nav.settings":`Ayarlar`,"chat.placeholder":`NHA'ya mesaj…`,"chat.thinking":`Düşünüyor…`,"chat.newChat":`Yeni sohbet`,"email.inbox":`Gelen kutusu`,"email.compose":`Oluştur`,"email.noEmails":`E-posta yok`,"calendar.title":`Takvim`,"calendar.newEvent":`Yeni etkinlik`,"calendar.noEvents":`Etkinlik yok`,"tasks.title":`Görevler`,"tasks.newTask":`Yeni görev`,"tasks.noTasks":`Görev yok`,"contacts.title":`Kişiler`,"contacts.noContacts":`Kişi yok`,"agents.title":`Ajanlar`,"agents.noAgents":`Ajan yok`,"agents.orchestrator":`Orkestratör`,"agents.orchestratorSend":`Hepsine gönder`,"studio.title":`Studio`,"studio.run":`Müzakereyi başlat`,"studio.running":`Müzakere ediliyor…`,"connectors.title":`Bağlayıcılar`,"connectors.triggers":`Tetikleyiciler`,"connectors.newWorkflow":`Yeni iş akışı`,"settings.title":`Ayarlar`,"settings.language":`Dil`,"settings.useLiara":`NHA Free kullan`,"settings.liaraActivated":`✓ Liara etkinleştirildi`,"settings.apiKeySet":`✓ API anahtarı yapılandırıldı — değiştirmek için yeni girin`,"settings.saveProfile":`Profili kaydet`,"settings.googleAccount":`Google hesabı`,"settings.connectGoogle":`Google'a bağlan`},sv:{"common.save":`Spara`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Avbryt`,"common.delete":`Ta bort`,"common.edit":`Redigera`,"common.add":`Lägg till`,"common.loading":`Laddar…`,"common.error":`Fel`,"common.retry":`Försök igen`,"common.send":`Skicka`,"common.close":`Stäng`,"common.confirm":`Bekräfta`,"common.back":`Tillbaka`,"common.search":`Sök…`,"common.refresh":`Uppdatera`,"common.copy":`Kopiera`,"common.copied":`Kopierat!`,"common.connect":`Anslut`,"common.disconnect":`Koppla från`,"common.yes":`Ja`,"common.no":`Nej`,"common.new":`Ny`,"common.noData":`Inga data`,"common.today":`Idag`,"common.name":`Namn`,"sidebar.panoramica":`Översikt`,"sidebar.integrazioni":`Integrationer`,"sidebar.ai":`AI`,"nav.dashboard":`Instrumentpanel`,"nav.chat":`Chatt`,"nav.tasks":`Uppgifter`,"nav.email":`E-post`,"nav.calendar":`Kalender`,"nav.contacts":`Kontakter`,"nav.agents":`Agenter`,"nav.settings":`Inställningar`,"chat.placeholder":`Meddelande till NHA…`,"chat.thinking":`Tänker…`,"chat.newChat":`Ny konversation`,"email.inbox":`Inkorgen`,"email.compose":`Skriv`,"email.noEmails":`Inga e-postmeddelanden`,"calendar.title":`Kalender`,"calendar.newEvent":`Ny händelse`,"calendar.noEvents":`Inga händelser`,"tasks.title":`Uppgifter`,"tasks.newTask":`Ny uppgift`,"tasks.noTasks":`Inga uppgifter`,"contacts.title":`Kontakter`,"contacts.noContacts":`Inga kontakter`,"agents.title":`Agenter`,"agents.noAgents":`Inga agenter`,"agents.orchestrator":`Orkestrator`,"agents.orchestratorSend":`Skicka till alla`,"studio.title":`Studio`,"studio.run":`Starta deliberation`,"studio.running":`Delibererar…`,"connectors.title":`Kopplingar`,"connectors.triggers":`Utlösare`,"connectors.newWorkflow":`Nytt arbetsflöde`,"settings.title":`Inställningar`,"settings.language":`Språk`,"settings.useLiara":`Använd NHA Free`,"settings.liaraActivated":`✓ Liara aktiverad`,"settings.apiKeySet":`✓ API-nyckel konfigurerad — ange en ny för att ändra`,"settings.saveProfile":`Spara profil`,"settings.googleAccount":`Google-konto`,"settings.connectGoogle":`Anslut Google`},da:{"common.save":`Gem`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annuller`,"common.delete":`Slet`,"common.edit":`Rediger`,"common.add":`Tilføj`,"common.loading":`Indlæser…`,"common.error":`Fejl`,"common.retry":`Prøv igen`,"common.send":`Send`,"common.close":`Luk`,"common.confirm":`Bekræft`,"common.back":`Tilbage`,"common.search":`Søg…`,"common.refresh":`Opdater`,"common.copy":`Kopiér`,"common.copied":`Kopieret!`,"common.connect":`Tilslut`,"common.disconnect":`Afbryd`,"common.yes":`Ja`,"common.no":`Nej`,"common.new":`Ny`,"common.noData":`Ingen data`,"common.today":`I dag`,"common.name":`Navn`,"sidebar.panoramica":`Oversigt`,"sidebar.integrazioni":`Integrationer`,"sidebar.ai":`AI`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.tasks":`Opgaver`,"nav.email":`E-mail`,"nav.calendar":`Kalender`,"nav.contacts":`Kontakter`,"nav.agents":`Agenter`,"nav.settings":`Indstillinger`,"chat.placeholder":`Besked til NHA…`,"chat.thinking":`Tænker…`,"chat.newChat":`Ny samtale`,"email.inbox":`Indbakke`,"email.compose":`Skriv`,"email.noEmails":`Ingen e-mails`,"calendar.title":`Kalender`,"calendar.newEvent":`Nyt arrangement`,"calendar.noEvents":`Ingen arrangementer`,"tasks.title":`Opgaver`,"tasks.newTask":`Ny opgave`,"tasks.noTasks":`Ingen opgaver`,"contacts.title":`Kontakter`,"contacts.noContacts":`Ingen kontakter`,"agents.title":`Agenter`,"agents.noAgents":`Ingen agenter`,"agents.orchestrator":`Orkestrering`,"agents.orchestratorSend":`Send til alle`,"studio.title":`Studio`,"studio.run":`Start deliberation`,"studio.running":`Delibererer…`,"connectors.title":`Forbindelser`,"connectors.triggers":`Udløsere`,"connectors.newWorkflow":`Nyt workflow`,"settings.title":`Indstillinger`,"settings.language":`Sprog`,"settings.useLiara":`Brug NHA Free`,"settings.liaraActivated":`✓ Liara aktiveret`,"settings.apiKeySet":`✓ API-nøgle konfigureret — indtast en ny for at ændre`,"settings.saveProfile":`Gem profil`,"settings.googleAccount":`Google-konto`,"settings.connectGoogle":`Tilslut Google`},fi:{"common.save":`Tallenna`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Peruuta`,"common.delete":`Poista`,"common.edit":`Muokkaa`,"common.add":`Lisää`,"common.loading":`Ladataan…`,"common.error":`Virhe`,"common.retry":`Yritä uudelleen`,"common.send":`Lähetä`,"common.close":`Sulje`,"common.confirm":`Vahvista`,"common.back":`Takaisin`,"common.search":`Hae…`,"common.refresh":`Päivitä`,"common.copy":`Kopioi`,"common.copied":`Kopioitu!`,"common.connect":`Yhdistä`,"common.disconnect":`Katkaise yhteys`,"common.yes":`Kyllä`,"common.no":`Ei`,"common.new":`Uusi`,"common.noData":`Ei tietoja`,"common.today":`Tänään`,"common.name":`Nimi`,"sidebar.panoramica":`Yleiskatsaus`,"sidebar.integrazioni":`Integraatiot`,"sidebar.ai":`AI`,"nav.dashboard":`Kojelauta`,"nav.chat":`Chat`,"nav.tasks":`Tehtävät`,"nav.email":`Sähköposti`,"nav.calendar":`Kalenteri`,"nav.contacts":`Yhteystiedot`,"nav.agents":`Agentit`,"nav.settings":`Asetukset`,"chat.placeholder":`Viesti NHA:lle…`,"chat.thinking":`Mietitään…`,"chat.newChat":`Uusi keskustelu`,"email.inbox":`Saapuneet`,"email.compose":`Kirjoita`,"email.noEmails":`Ei sähköposteja`,"calendar.title":`Kalenteri`,"calendar.newEvent":`Uusi tapahtuma`,"calendar.noEvents":`Ei tapahtumia`,"tasks.title":`Tehtävät`,"tasks.newTask":`Uusi tehtävä`,"tasks.noTasks":`Ei tehtäviä`,"contacts.title":`Yhteystiedot`,"contacts.noContacts":`Ei yhteystietoja`,"agents.title":`Agentit`,"agents.noAgents":`Ei agentteja`,"agents.orchestrator":`Orkestraattori`,"agents.orchestratorSend":`Lähetä kaikille`,"studio.title":`Studio`,"studio.run":`Aloita deliberaatio`,"studio.running":`Deliberaatio…`,"connectors.title":`Yhdistimet`,"connectors.triggers":`Laukaisijat`,"connectors.newWorkflow":`Uusi työnkulku`,"settings.title":`Asetukset`,"settings.language":`Kieli`,"settings.useLiara":`Käytä NHA Freeä`,"settings.liaraActivated":`✓ Liara aktivoitu`,"settings.apiKeySet":`✓ API-avain määritetty — syötä uusi vaihtaaksesi`,"settings.saveProfile":`Tallenna profiili`,"settings.googleAccount":`Google-tili`,"settings.connectGoogle":`Yhdistä Google`},cs:{"common.save":`Uložit`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Zrušit`,"common.delete":`Smazat`,"common.edit":`Upravit`,"common.add":`Přidat`,"common.loading":`Načítání…`,"common.error":`Chyba`,"common.retry":`Zkusit znovu`,"common.send":`Odeslat`,"common.close":`Zavřít`,"common.confirm":`Potvrdit`,"common.back":`Zpět`,"common.search":`Hledat…`,"common.refresh":`Obnovit`,"common.copy":`Kopírovat`,"common.copied":`Zkopírováno!`,"common.connect":`Připojit`,"common.disconnect":`Odpojit`,"common.yes":`Ano`,"common.no":`Ne`,"common.new":`Nový`,"common.noData":`Žádná data`,"common.today":`Dnes`,"common.name":`Název`,"sidebar.panoramica":`Přehled`,"sidebar.integrazioni":`Integrace`,"sidebar.ai":`AI`,"nav.dashboard":`Přehled`,"nav.chat":`Chat`,"nav.tasks":`Úkoly`,"nav.email":`E-mail`,"nav.calendar":`Kalendář`,"nav.contacts":`Kontakty`,"nav.agents":`Agenti`,"nav.settings":`Nastavení`,"chat.placeholder":`Zpráva pro NHA…`,"chat.thinking":`Přemýšlím…`,"chat.newChat":`Nová konverzace`,"email.inbox":`Doručená pošta`,"email.compose":`Napsat`,"email.noEmails":`Žádné e-maily`,"calendar.title":`Kalendář`,"calendar.newEvent":`Nová událost`,"calendar.noEvents":`Žádné události`,"tasks.title":`Úkoly`,"tasks.newTask":`Nový úkol`,"tasks.noTasks":`Žádné úkoly`,"contacts.title":`Kontakty`,"contacts.noContacts":`Žádné kontakty`,"agents.title":`Agenti`,"agents.noAgents":`Žádní agenti`,"agents.orchestrator":`Orchestrátor`,"agents.orchestratorSend":`Odeslat všem`,"studio.title":`Studio`,"studio.run":`Zahájit deliberaci`,"studio.running":`Deliberace…`,"connectors.title":`Konektory`,"connectors.triggers":`Spouštěče`,"connectors.newWorkflow":`Nový workflow`,"settings.title":`Nastavení`,"settings.language":`Jazyk`,"settings.useLiara":`Použít NHA Free`,"settings.liaraActivated":`✓ Liara aktivována`,"settings.apiKeySet":`✓ API klíč nastaven — zadejte nový pro změnu`,"settings.saveProfile":`Uložit profil`,"settings.googleAccount":`Účet Google`,"settings.connectGoogle":`Připojit Google`}};function fe(e,t,n){let r=(de[e]??ue)[t]??ue[t]??t;if(n)for(let[e,t]of Object.entries(n))r=r.replace(RegExp(`\\{${e}\\}`,`g`),String(t));return r}function A(){let e=ne(e=>e.config?.lang??`en`);return(0,_.useMemo)(()=>(t,n)=>fe(e,t,n),[e])}var j={root:`_root_hhcfn_1`,main:`_main_hhcfn_7`,topbar:`_topbar_hhcfn_15`,burger:`_burger_hhcfn_26`,viewTitle:`_viewTitle_hhcfn_45`,content:`_content_hhcfn_53`,wsIndicator:`_wsIndicator_hhcfn_62`,wsDot:`_wsDot_hhcfn_70`,wsDotOnline:`_wsDotOnline_hhcfn_78`,wsOnlinePulse:`_wsOnlinePulse_hhcfn_1`,wsDotConnecting:`_wsDotConnecting_hhcfn_84`,wsConnectingBlink:`_wsConnectingBlink_hhcfn_1`,wsDotOffline:`_wsDotOffline_hhcfn_89`,wsDotRestart:`_wsDotRestart_hhcfn_94`,restartPulse:`_restartPulse_hhcfn_1`,restartBanner:`_restartBanner_hhcfn_99`,wsLabel:`_wsLabel_hhcfn_126`},pe={dashboard:`dashboard.title`,chat:`chat.placeholder`,studio:`studio.title`,webcraft:`webcraft.title`,collab:`collab.title`,agents:`agents.title`,connectors:`connectors.title`,calendar:`calendar.title`,tasks:`tasks.title`,contacts:`contacts.title`,notes:`notes.title`,reminders:`reminders.title`,birthdays:`birthdays.title`,plan:`plan.title`,drive:`drive.title`,onedrive:`onedrive.title`,mstodo:`mstodo.title`,github:`github.title`,slack:`slack.title`,notion:`notion.title`,maps:`maps.title`,cron:`cron.title`,screen:`screen.title`,settings:`settings.title`},me={dashboard:`Dashboard`,chat:`Chat`,studio:`Studio`,webcraft:`WebCraft`,collab:`Alexandria`,agents:`Agents`,connectors:`Connectors`,email:`Email`,calendar:`Calendar`,tasks:`Tasks`,contacts:`Contacts`,notes:`Notes`,reminders:`Reminders`,birthdays:`Birthdays`,plan:`Daily Plan`,drive:`Drive`,onedrive:`OneDrive`,mstodo:`MS Todo`,github:`GitHub`,slack:`Slack`,notion:`Notion`,maps:`Maps`,cron:`Cron`,screen:`Screen`,settings:`Settings`};function he({children:e}){let{activeView:t,toggleSidebar:n,setConfig:r}=ne(),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(``),c=le(e=>{e.type===`version`&&T(`/api/version/check`).catch(()=>{})}),l=A();(0,_.useEffect)(()=>{let e=localStorage.getItem(`nha_updated_to`);e&&T(`/api/health`).then(t=>{let n=String(t?.version||``);n&&(n===e||n.localeCompare(e,void 0,{numeric:!0})>=0?(localStorage.removeItem(`nha_updated_to`),a(!1)):(a(!0),s(e)))}).catch(()=>{})},[]),(0,_.useEffect)(()=>{T(`/api/config`).then(e=>{e&&r(e)}).catch(()=>{})},[r]);let u=pe[t],d=u?l(u):me[t]??t;return(0,O.jsxs)(`div`,{className:j.root,children:[(0,O.jsx)(ce,{}),(0,O.jsxs)(`div`,{className:j.main,children:[(0,O.jsxs)(`header`,{className:j.topbar,children:[(0,O.jsxs)(`button`,{className:j.burger,onClick:n,"aria-label":`Menu`,children:[(0,O.jsx)(`span`,{}),(0,O.jsx)(`span`,{}),(0,O.jsx)(`span`,{})]}),(0,O.jsx)(`span`,{className:j.viewTitle,children:d}),(0,O.jsx)(`span`,{style:{flex:1}}),i?(0,O.jsxs)(`div`,{className:j.restartBanner,title:`v${o} installed — restart to apply`,children:[(0,O.jsx)(`span`,{className:`${j.wsDot} ${j.wsDotRestart}`}),(0,O.jsxs)(`span`,{className:j.wsLabel,children:[`Restart required (v`,o,`)`]})]}):(0,O.jsxs)(`div`,{className:j.wsIndicator,title:l(c===`connected`?`common.connected`:c===`connecting`?`common.loading`:`common.disconnected`),children:[(0,O.jsx)(`span`,{className:`${j.wsDot} ${c===`connected`?j.wsDotOnline:c===`connecting`?j.wsDotConnecting:j.wsDotOffline}`}),(0,O.jsx)(`span`,{className:j.wsLabel,children:l(c===`connected`?`common.connected`:c===`connecting`?`common.loading`:`common.disconnected`)})]})]}),(0,O.jsx)(`main`,{className:j.content,id:`main-content`,children:e})]})]})}function ge(e){return e.replace(/<tool_call>[\s\S]*?<\/tool_call>/g,``).replace(/<tool_response>[\s\S]*?<\/tool_response>/g,``).replace(/<\/?tool_call>/g,``).replace(/<\/?tool_response>/g,``).replace(/^\[(?:Searching|Fetching|Raccolta dati web)[^\]]*\]\n?/gm,``)}function _e(e){return e.replace(/^(#{1,6})\n[ \t]*(\S[^\n]*)$/gm,`$1 $2`).replace(/\n{3,}/g,`
|
|
10
|
+
`);s=r.pop()??``;for(let e of r)if(e.startsWith(`event: `))c=e.slice(7).trim();else if(e.startsWith(`data: `)){let t=e.slice(6).trim();if(t===`[DONE]`)return;try{let e=JSON.parse(t);n({type:c,data:e})}catch{}}}}async function ae(e,t,n,r){await ie(e,t,e=>{e.type===`token`&&typeof e.data.content==`string`&&n(e.data.content)},r)}var D={sidebar:`_sidebar_20udr_1`,logo:`_logo_20udr_15`,logoRow:`_logoRow_20udr_24`,logoNHA:`_logoNHA_20udr_30`,logo3rdArm:`_logo3rdArm_20udr_38`,logoDot:`_logoDot_20udr_46`,dotPulse:`_dotPulse_20udr_1`,logoMeta:`_logoMeta_20udr_62`,logoVersion:`_logoVersion_20udr_69`,versionBtn:`_versionBtn_20udr_79`,versionBtnUpdate:`_versionBtnUpdate_20udr_99`,updatePulse:`_updatePulse_20udr_1`,versionBtnError:`_versionBtnError_20udr_110`,versionBtnSuccess:`_versionBtnSuccess_20udr_115`,updateHint:`_updateHint_20udr_120`,updateBtnInline:`_updateBtnInline_20udr_132`,logoView:`_logoView_20udr_149`,logoClock:`_logoClock_20udr_160`,logoSep:`_logoSep_20udr_169`,logoWeather:`_logoWeather_20udr_173`,nav:`_nav_20udr_178`,group:`_group_20udr_187`,groupLabel:`_groupLabel_20udr_192`,item:`_item_20udr_201`,active:`_active_20udr_220`,itemIcon:`_itemIcon_20udr_226`,itemLabel:`_itemLabel_20udr_233`,activeBar:`_activeBar_20udr_241`,badge:`_badge_20udr_253`,footer:`_footer_20udr_271`,footerDocs:`_footerDocs_20udr_280`,footerLink:`_footerLink_20udr_286`,footerBottom:`_footerBottom_20udr_296`,footerVersion:`_footerVersion_20udr_303`,updateBtn:`_updateBtn_20udr_132`,overlay:`_overlay_20udr_334`,open:`_open_20udr_350`},oe=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),O=o(((e,t)=>{t.exports=oe()}))(),k=[{view:`dashboard`,icon:`⚡`,label:`Dashboard`,group:`panoramica`},{view:`chat`,icon:`💬`,label:`Chat`,group:`panoramica`},{view:`plan`,icon:`🗓️`,label:`Daily Plan`,group:`panoramica`},{view:`tasks`,icon:`✅`,label:`Tasks`,group:`panoramica`},{view:`email`,icon:`📧`,label:`Email`,group:`google`},{view:`calendar`,icon:`📅`,label:`Calendar`,group:`google`},{view:`drive`,icon:`💾`,label:`Drive`,group:`google`},{view:`contacts`,icon:`👤`,label:`Contacts`,group:`google`},{view:`notes`,icon:`📝`,label:`Notes`,group:`google`},{view:`onedrive`,icon:`☁️`,label:`OneDrive`,group:`microsoft`},{view:`mstodo`,icon:`📋`,label:`MS Todo`,group:`microsoft`},{view:`github`,icon:`🐙`,label:`GitHub`,group:`integrazioni`},{view:`notion`,icon:`📓`,label:`Notion`,group:`integrazioni`},{view:`slack`,icon:`💼`,label:`Slack`,group:`integrazioni`},{view:`maps`,icon:`🗺️`,label:`Maps`,group:`integrazioni`},{view:`reminders`,icon:`🔔`,label:`Reminders`,group:`integrazioni`},{view:`birthdays`,icon:`🎂`,label:`Birthdays`,group:`integrazioni`},{view:`cron`,icon:`⏰`,label:`Cron`,group:`integrazioni`},{view:`screen`,icon:`🖥️`,label:`Screen`,group:`integrazioni`},{view:`agents`,icon:`🤖`,label:`Agents`,group:`ai`},{view:`studio`,icon:`🎭`,label:`Studio`,group:`ai`},{view:`webcraft`,icon:`🔨`,label:`WebCraft`,group:`ai`},{view:`collab`,icon:`🏛️`,label:`Alexandria`,group:`ai`},{view:`connectors`,icon:`🔗`,label:`Connectors`,group:`ai`},{view:`settings`,icon:`⚙️`,label:`Settings`,group:`config`}],se=[{id:`panoramica`,label:`Panoramica`},{id:`google`,label:`Google`},{id:`microsoft`,label:`Microsoft`},{id:`integrazioni`,label:`Integrazioni`},{id:`ai`,label:`AI`},{id:`config`,label:`Config`}];function ce(){let{activeView:e,setView:t,sidebarOpen:n,setSidebarOpen:r}=ne(),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)({status:`idle`}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)(null);(0,_.useEffect)(()=>{let e=()=>{d(new Date().toLocaleTimeString(`it-IT`,{hour:`2-digit`,minute:`2-digit`}))};e();let t=setInterval(e,1e4);return()=>clearInterval(t)},[]),(0,_.useEffect)(()=>{let e=localStorage.getItem(`nha_weather_location`),t=e=>{T(`/api/weather?location=${encodeURIComponent(e)}`).then(e=>{e?.tempC&&a(e)}).catch(()=>{})};e?t(e):navigator.geolocation?.getCurrentPosition(e=>t(`${e.coords.latitude},${e.coords.longitude}`),()=>{})},[]),(0,_.useEffect)(()=>{T(`/api/version/check`).then(e=>{if(!e)return;let t=localStorage.getItem(`nha_updated_to`);t&&e.latest===t?s({...e,updateAvailable:!1,hasUpdate:!1,current:e.latest}):s(e)}).catch(()=>{})},[]),(0,_.useEffect)(()=>{let e=()=>T(`/api/unread-counts`).then(e=>{e&&p(e)}).catch(()=>{});e();let t=setInterval(e,12e4);return()=>clearInterval(t)},[]);let m=async()=>{if(!(c.status===`checking`||c.status===`updating`)){l({status:`checking`});try{let e=await T(`/api/version/check`);if(e){let t=localStorage.getItem(`nha_updated_to`);if(t&&e.latest===t){s({...e,updateAvailable:!1,hasUpdate:!1,current:e.latest}),l({status:`success`,message:`v${t} installed — restart nha ui`}),setTimeout(()=>l({status:`idle`}),4e3);return}s(e),e.updateAvailable?h():(l({status:`success`,message:`Up to date`}),setTimeout(()=>l({status:`idle`}),3e3))}else l({status:`error`,message:`Check failed`}),setTimeout(()=>l({status:`idle`}),4e3)}catch{l({status:`error`,message:`Network error`}),setTimeout(()=>l({status:`idle`}),4e3)}}},h=async()=>{if(c.status!==`updating`){l({status:`updating`,message:`Installing...`});try{let e=await E(`/api/npm-update`,{});if(e?.success){let t=e.newVersion||o?.latest||``;l({status:`success`,message:t?`v${t} installed! Restart: Ctrl+C then "nha ui"`:`Updated!`}),s(e=>e&&{...e,current:t||e.latest,updateAvailable:!1,hasUpdate:!1}),t&&localStorage.setItem(`nha_updated_to`,t)}else l({status:`error`,message:e?.error?.includes(`EACCES`)?`Permission denied. Run: sudo npm i -g nothumanallowed@latest`:e?.message||`Update failed`}),setTimeout(()=>l({status:`idle`}),8e3)}catch(e){let t=e instanceof Error?e.message:`Update failed`;l({status:`error`,message:t.includes(`EACCES`)?`Permission denied. Run: sudo npm i -g nothumanallowed@latest`:t.length>60?`Update failed. Try: npm i -g nothumanallowed@latest`:t}),setTimeout(()=>l({status:`idle`}),8e3)}}},g=k.find(t=>t.view===e)?.label??e;return(0,O.jsxs)(O.Fragment,{children:[n&&(0,O.jsx)(`div`,{className:D.overlay,onClick:()=>r(!1)}),(0,O.jsxs)(`aside`,{className:`${D.sidebar} ${n?D.open:``}`,children:[(0,O.jsxs)(`div`,{className:D.logo,children:[(0,O.jsxs)(`div`,{className:D.logoRow,children:[(0,O.jsx)(`span`,{className:D.logoNHA,children:`NHA`}),(0,O.jsx)(`span`,{className:D.logo3rdArm,children:`3rdArm`}),(0,O.jsx)(`span`,{className:D.logoDot})]}),(0,O.jsxs)(`div`,{className:D.logoVersion,children:[(0,O.jsxs)(`button`,{className:`${D.versionBtn} ${o?.updateAvailable?D.versionBtnUpdate:``} ${c.status===`error`?D.versionBtnError:``} ${c.status===`success`?D.versionBtnSuccess:``}`,onClick:o?.updateAvailable?h:m,disabled:c.status===`checking`||c.status===`updating`,title:o?.updateAvailable?`Update to v${o.latest}`:`Check for updates`,children:[c.status===`checking`&&`...`,c.status===`updating`&&`⏳ Installing...`,c.status===`success`&&(c.message||`Done`),c.status===`error`&&(c.message||`Error`),c.status===`idle`&&o?.updateAvailable&&`↑ v${o.latest}`,c.status===`idle`&&!o?.updateAvailable&&(o?`v${o.current}`:`...`)]}),c.status===`error`&&c.message?.includes(`sudo`)&&(0,O.jsx)(`span`,{className:D.updateHint,children:c.message})]}),(0,O.jsx)(`div`,{className:D.logoView,children:g}),(0,O.jsxs)(`div`,{className:D.logoClock,children:[u,i&&(0,O.jsxs)(`span`,{className:D.logoWeather,children:[` `,`· `,i.icon,` `,Math.round(i.tempC),`°C `,i.city.split(`,`)[0]]})]})]}),(0,O.jsx)(`nav`,{className:D.nav,children:se.map(n=>{let i=k.filter(e=>e.group===n.id);return(0,O.jsxs)(`div`,{className:D.group,children:[(0,O.jsx)(`div`,{className:D.groupLabel,children:n.label}),i.map(n=>{let i=n.view===`email`&&f&&f.emailUnread>0?f.emailUnread:n.view===`calendar`&&f&&f.todayEvents>0?f.todayEvents:null;return(0,O.jsxs)(`button`,{className:`${D.item} ${e===n.view?D.active:``}`,onClick:()=>{t(n.view),r(!1)},children:[(0,O.jsx)(`span`,{className:D.itemIcon,children:n.icon}),(0,O.jsx)(`span`,{className:D.itemLabel,children:n.label}),i!==null&&(0,O.jsx)(`span`,{className:D.badge,children:i>99?`99+`:i}),e===n.view&&(0,O.jsx)(`span`,{className:D.activeBar})]},n.view)})]},n.id)})}),(0,O.jsx)(`div`,{className:D.footer,children:(0,O.jsxs)(`div`,{className:D.footerDocs,children:[(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`Docs`}),(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs/cli`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`CLI`}),(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs/agents`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`Agents`}),(0,O.jsx)(`a`,{href:`https://nothumanallowed.com/docs/studio`,target:`_blank`,rel:`noopener`,className:D.footerLink,children:`Studio`})]})})]})]})}function le(e){let[t,n]=(0,_.useState)(`connecting`),r=(0,_.useRef)(2e3),i=(0,_.useRef)(0),a=(0,_.useRef)(null),o=(0,_.useRef)(null),s=(0,_.useRef)(e);return s.current=e,(0,_.useEffect)(()=>{let e=!1;function t(){if(!e)try{let c=window.location.protocol===`https:`?`wss:`:`ws:`,l=new WebSocket(`${c}//${window.location.host}/api`);o.current=l,l.onopen=()=>{if(e){l.close();return}i.current=0,r.current=2e3,n(`connected`)},l.onmessage=e=>{try{let t=JSON.parse(e.data);s.current?.(t)}catch{}},l.onclose=()=>{if(e)return;n(`disconnected`),o.current=null,i.current++;let s=Math.min(r.current*1.5**Math.min(i.current-1,6),3e4);r.current=s,a.current=setTimeout(()=>{a.current=null,t()},s)},l.onerror=()=>{try{l.close()}catch{}}}catch{n(`disconnected`)}}return t(),()=>{e=!0,a.current&&=(clearTimeout(a.current),null);try{o.current?.close()}catch{}}},[]),t}var ue={"common.save":`Save`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Cancel`,"common.delete":`Delete`,"common.edit":`Edit`,"common.add":`Add`,"common.loading":`Loading…`,"common.comingSoon":`Coming soon`,"common.error":`Error`,"common.retry":`Retry`,"common.send":`Send`,"common.close":`Close`,"common.confirm":`Confirm`,"common.back":`Back`,"common.search":`Search…`,"common.refresh":`Refresh`,"common.copy":`Copy`,"common.copied":`Copied!`,"common.open":`Open`,"common.download":`Download`,"common.upload":`Upload`,"common.sync":`Sync`,"common.syncing":`Syncing…`,"common.connected":`Connected`,"common.disconnected":`Disconnected`,"common.connect":`Connect`,"common.disconnect":`Disconnect`,"common.enable":`Enable`,"common.disable":`Disable`,"common.yes":`Yes`,"common.no":`No`,"common.none":`None`,"common.all":`All`,"common.new":`New`,"common.create":`Create`,"common.update":`Update`,"common.remove":`Remove`,"common.clear":`Clear`,"common.select":`Select`,"common.optional":`optional`,"common.required":`required`,"common.noData":`No data`,"common.empty":`Empty`,"common.today":`Today`,"common.yesterday":`Yesterday`,"common.tomorrow":`Tomorrow`,"common.status":`Status`,"common.name":`Name`,"common.email":`Email`,"common.phone":`Phone`,"common.date":`Date`,"common.time":`Time`,"common.title":`Title`,"common.description":`Description`,"common.notes":`Notes`,"common.tags":`Tags`,"common.type":`Type`,"common.size":`Size`,"common.unknown":`Unknown`,"common.actions":`Actions`,"common.preview":`Preview`,"common.settings":`Settings`,"common.version":`Version`,"sidebar.panoramica":`Overview`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integrations`,"sidebar.ai":`AI`,"sidebar.config":`Config`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Daily Plan`,"nav.tasks":`Tasks`,"nav.email":`Email`,"nav.calendar":`Calendar`,"nav.drive":`Drive`,"nav.contacts":`Contacts`,"nav.notes":`Notes`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Maps`,"nav.reminders":`Reminders`,"nav.birthdays":`Birthdays`,"nav.cron":`Cron`,"nav.screen":`Screen`,"nav.agents":`Agents`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Connectors`,"nav.settings":`Settings`,"chat.placeholder":`Message NHA…`,"chat.thinking":`Thinking…`,"chat.newChat":`New Chat`,"chat.conversations":`Conversations`,"chat.noConversations":`No conversations yet`,"chat.deleteConversation":`Delete conversation?`,"chat.copyMessage":`Copy`,"chat.regenerate":`Regenerate`,"chat.stopGeneration":`Stop`,"chat.model":`Model`,"chat.tokens":`tokens`,"chat.attachFile":`Attach file`,"chat.voice":`Voice input`,"chat.canvas":`Canvas`,"chat.browser":`Browser`,"chat.toolsUsed":`Tools used`,"chat.errorSending":`Error sending message`,"dashboard.title":`Dashboard`,"dashboard.goodMorning":`Good morning`,"dashboard.goodAfternoon":`Good afternoon`,"dashboard.goodEvening":`Good evening`,"dashboard.todayPlan":`Today's plan`,"dashboard.upcomingEvents":`Upcoming events`,"dashboard.unreadEmails":`Unread emails`,"dashboard.pendingTasks":`Pending tasks`,"dashboard.weather":`Weather`,"dashboard.noEvents":`No events today`,"dashboard.noEmails":`No unread emails`,"dashboard.noTasks":`No pending tasks`,"dashboard.systemStatus":`System Status`,"dashboard.provider":`Provider`,"dashboard.version":`Version`,"dashboard.uptime":`Uptime`,"email.inbox":`Inbox`,"email.sent":`Sent`,"email.drafts":`Drafts`,"email.compose":`Compose`,"email.reply":`Reply`,"email.replyAll":`Reply All`,"email.forward":`Forward`,"email.delete":`Delete`,"email.archive":`Archive`,"email.markRead":`Mark as read`,"email.markUnread":`Mark as unread`,"email.noEmails":`No emails`,"email.from":`From`,"email.to":`To`,"email.cc":`CC`,"email.bcc":`BCC`,"email.subject":`Subject`,"email.body":`Message`,"email.attachments":`Attachments`,"email.sending":`Sending…`,"email.sent_ok":`Email sent`,"email.search":`Search emails…`,"email.unread":`Unread`,"email.starred":`Starred`,"email.loadMore":`Load more`,"email.accounts":`Accounts`,"email.noAccounts":`No email accounts configured`,"email.addAccount":`Add Account`,"email.syncNow":`Sync now`,"email.lastSync":`Last sync`,"calendar.title":`Calendar`,"calendar.newEvent":`New Event`,"calendar.today":`Today`,"calendar.month":`Month`,"calendar.week":`Week`,"calendar.day":`Day`,"calendar.agenda":`Agenda`,"calendar.noEvents":`No events`,"calendar.allDay":`All day`,"calendar.starts":`Starts`,"calendar.ends":`Ends`,"calendar.location":`Location`,"calendar.attendees":`Attendees`,"calendar.reminder":`Reminder`,"calendar.recurring":`Recurring`,"calendar.saveEvent":`Save Event`,"calendar.deleteEvent":`Delete event?`,"calendar.editEvent":`Edit Event`,"tasks.title":`Tasks`,"tasks.newTask":`New Task`,"tasks.completed":`Completed`,"tasks.pending":`Pending`,"tasks.overdue":`Overdue`,"tasks.dueDate":`Due date`,"tasks.priority":`Priority`,"tasks.priority.high":`High`,"tasks.priority.medium":`Medium`,"tasks.priority.low":`Low`,"tasks.noTasks":`No tasks`,"tasks.markDone":`Mark as done`,"tasks.markUndone":`Mark as undone`,"tasks.deleteTask":`Delete task?`,"tasks.list":`List`,"tasks.assignee":`Assignee`,"contacts.title":`Contacts`,"contacts.newContact":`New Contact`,"contacts.noContacts":`No contacts`,"contacts.search":`Search contacts…`,"contacts.firstName":`First Name`,"contacts.lastName":`Last Name`,"contacts.company":`Company`,"contacts.role":`Role`,"contacts.address":`Address`,"contacts.birthday":`Birthday`,"contacts.deleteContact":`Delete contact?`,"notes.title":`Notes`,"notes.newNote":`New Note`,"notes.noNotes":`No notes`,"notes.search":`Search notes…`,"notes.lastModified":`Last modified`,"notes.deleteNote":`Delete note?`,"notes.untitled":`Untitled`,"plan.title":`Daily Plan`,"plan.generate":`Generate Plan`,"plan.generating":`Generating…`,"plan.noplan":`No plan for today yet`,"plan.refresh":`Refresh`,"plan.morning":`Morning`,"plan.afternoon":`Afternoon`,"plan.evening":`Evening`,"plan.planTime":`Plan generation time`,"plan.summaryTime":`Summary time`,"drive.title":`Drive`,"drive.myDrive":`My Drive`,"drive.shared":`Shared with me`,"drive.recent":`Recent`,"drive.noFiles":`No files`,"drive.upload":`Upload`,"drive.newFolder":`New Folder`,"drive.download":`Download`,"drive.delete":`Delete`,"drive.rename":`Rename`,"drive.share":`Share`,"drive.search":`Search files…`,"drive.size":`Size`,"drive.modified":`Modified`,"drive.owner":`Owner`,"drive.quota":`Storage`,"onedrive.title":`OneDrive`,"onedrive.noFiles":`No files`,"onedrive.connect":`Connect Microsoft account`,"onedrive.search":`Search OneDrive…`,"mstodo.title":`MS To Do`,"mstodo.noLists":`No lists`,"mstodo.noTasks":`No tasks`,"mstodo.newTask":`New task`,"mstodo.connect":`Connect Microsoft account`,"mstodo.addPlaceholder":`Add a new task…`,"mstodo.add":`+ Add`,"mstodo.noActive":`No active tasks`,"mstodo.due":`Due`,"mstodo.authRequired":`Microsoft To Do requires Microsoft authentication. Run nha microsoft auth in the terminal.`,"github.title":`GitHub`,"github.repos":`Repositories`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"github.noRepos":`No repositories`,"github.noIssues":`No issues`,"github.noPrs":`No pull requests`,"github.search":`Search repos…`,"github.open":`Open`,"github.closed":`Closed`,"github.merged":`Merged`,"github.stars":`Stars`,"github.forks":`Forks`,"github.connect":`Connect GitHub`,"notion.title":`Notion`,"notion.pages":`Pages`,"notion.databases":`Databases`,"notion.noPages":`No pages`,"notion.search":`Search Notion…`,"notion.connect":`Connect Notion`,"slack.title":`Slack`,"slack.channels":`Channels`,"slack.dms":`Direct Messages`,"slack.noMessages":`No messages`,"slack.send":`Send`,"slack.connect":`Connect Slack`,"maps.title":`Maps`,"maps.search":`Search location…`,"maps.directions":`Directions`,"maps.from":`From`,"maps.to":`To`,"maps.route":`Get Route`,"maps.distance":`Distance`,"maps.duration":`Duration`,"maps.noResults":`No results`,"reminders.title":`Reminders`,"reminders.new":`New Reminder`,"reminders.noReminders":`No reminders`,"reminders.dueDate":`Due`,"reminders.repeat":`Repeat`,"reminders.delete":`Delete reminder?`,"reminders.done":`Done`,"birthdays.title":`Birthdays`,"birthdays.upcoming":`Upcoming`,"birthdays.noBirthdays":`No birthdays`,"birthdays.age":`Age`,"birthdays.daysLeft":`days left`,"birthdays.today":`Today!`,"birthdays.new":`Add Birthday`,"cron.title":`Scheduled Tasks`,"cron.newJob":`New Job`,"cron.noJobs":`No scheduled jobs`,"cron.schedule":`Schedule`,"cron.command":`Command`,"cron.lastRun":`Last run`,"cron.nextRun":`Next run`,"cron.status":`Status`,"cron.active":`Active`,"cron.paused":`Paused`,"cron.delete":`Delete job?`,"cron.run":`Run now`,"cron.pause":`Pause`,"cron.resume":`Resume`,"screen.title":`Screen Capture`,"screen.capture":`Capture Screen`,"screen.captureRegion":`Capture Region`,"screen.history":`History`,"screen.noCaptures":`No captures`,"screen.view":`View`,"screen.delete":`Delete`,"screen.describe":`Describe with AI`,"agents.title":`Agents`,"agents.newAgent":`New Agent`,"agents.noAgents":`No agents`,"agents.run":`Run`,"agents.running":`Running…`,"agents.stop":`Stop`,"agents.edit":`Edit`,"agents.delete":`Delete agent?`,"agents.prompt":`System Prompt`,"agents.name":`Agent Name`,"agents.model":`Model`,"agents.schedule":`Schedule`,"agents.lastRun":`Last run`,"agents.output":`Output`,"agents.tools":`Tools`,"agents.openPanel":`Open panel`,"agents.addAgent":`Add agent`,"agents.noDescription":`No description`,"agents.orchestrator":`Orchestrator`,"agents.orchestratorPlaceholder":`Send to all agents…`,"agents.orchestratorSend":`Send to all`,"agents.orchestratorSynthesis":`Conductor Synthesis`,"agents.attachFile":`Attach file`,"agents.voice":`Voice`,"agents.typeMessage":`Type a message…`,"agents.working":`working`,"agents.waitingResponse":`Waiting for response…`,"studio.title":`Studio`,"studio.newSession":`New Session`,"studio.task":`Task`,"studio.taskPlaceholder":`Describe what you want the agents to deliberate on…`,"studio.agents":`Agents`,"studio.run":`Run Deliberation`,"studio.running":`Deliberating…`,"studio.stop":`Stop`,"studio.result":`Result`,"studio.round":`Round`,"studio.convergence":`Convergence`,"studio.consensus":`Consensus`,"studio.noSessions":`No sessions`,"studio.plan":`Plan`,"studio.planning":`Planning…`,"studio.log":`Log`,"studio.export":`Export`,"studio.panel":`Panel`,"studio.canvas":`Canvas`,"studio.browser":`Browser`,"studio.parliament":`Council`,"studio.parliamentPrompt":`Activate Council analysis?`,"studio.parliamentSub":`The multi-agent Council will analyze the result using Legion X deliberation.`,"studio.parliamentActivate":`Activate`,"studio.parliamentSkip":`Skip`,"studio.parliamentRunning":`Council deliberating…`,"connectors.title":`Connectors`,"connectors.google":`Google`,"connectors.microsoft":`Microsoft`,"connectors.telegram":`Telegram`,"connectors.discord":`Discord`,"connectors.github":`GitHub`,"connectors.notion":`Notion`,"connectors.slack":`Slack`,"connectors.connect":`Connect`,"connectors.connected":`Connected`,"connectors.disconnect":`Disconnect`,"connectors.configure":`Configure`,"connectors.nodePalette":`Node Palette`,"connectors.triggers":`Triggers`,"connectors.actions":`Actions`,"connectors.ai":`AI`,"connectors.newWorkflow":`New Workflow`,"connectors.noWorkflows":`No workflows yet`,"connectors.noWorkflowsSub":`Drag nodes from the palette to build your first automation`,"connectors.workflowName":`Workflow name`,"connectors.run":`Run`,"connectors.running":`Running…`,"connectors.delete":`Delete`,"connectors.save":`Save`,"connectors.config":`Configuration`,"connectors.nodeConfig":`Node Config`,"connectors.close":`Close`,"connectors.log":`Execution Log`,"connectors.deleteEdge":`Delete edge`,"webcraft.title":`WebCraft`,"webcraft.newProject":`New Project`,"webcraft.projectName":`Project name`,"webcraft.description":`Describe the app you want to build…`,"webcraft.build":`Build`,"webcraft.building":`Building…`,"webcraft.preview":`Preview`,"webcraft.code":`Code`,"webcraft.files":`Files`,"webcraft.console":`Console`,"webcraft.deploy":`Deploy`,"webcraft.stop":`Stop server`,"webcraft.start":`Start server`,"webcraft.noProjects":`No projects`,"webcraft.fix":`Fix error`,"webcraft.doctrine":`Development Guide`,"webcraft.doctrine.title":`How to Build with WebCraft`,"webcraft.doctrine.phase1.title":`Phase 1 — Foundation`,"webcraft.doctrine.phase1.desc":`WebCraft generates a working base: server, landing page, CSS, JS. This is your foundation — it works immediately.`,"webcraft.doctrine.phase2.title":`Phase 2 — Core Features`,"webcraft.doctrine.phase2.desc":`Add features one by one via chat. The AI agent reads your code, modifies it, and verifies. Ask for: authentication, database, API endpoints.`,"webcraft.doctrine.phase3.title":`Phase 3 — Polish & UX`,"webcraft.doctrine.phase3.desc":`Refine the design, add animations, dark mode, mobile responsiveness. Ask: "Make the hero more modern" or "Add scroll animations".`,"webcraft.doctrine.phase4.title":`Phase 4 — Security & Production`,"webcraft.doctrine.phase4.desc":`Add security layers: GDPR cookie banner, rate limiting, input validation, HTTPS headers. Ask: "Add cookie consent" or "Harden security".`,"webcraft.doctrine.phase5.title":`Phase 5 — Deploy`,"webcraft.doctrine.phase5.desc":`Download the ZIP, deploy to any Node.js host. The project is self-contained with package.json and all dependencies.`,"webcraft.doctrine.tip1":`Be specific: "Add a contact form with name, email, message fields and email validation" works better than "add a form".`,"webcraft.doctrine.tip2":`The agent has 12 tools: read, edit, write, rename, delete, search, list, check, lint, run, sandbox, diff.`,"webcraft.doctrine.tip3":`Use the terminal to run npm commands, check logs, and debug.`,"webcraft.doctrine.tip4":`The Sandbox preview shows your site live — it auto-restarts after changes.`,"webcraft.doctrine.close":`Got it, let me build!`,"webcraft.fixing":`Fixing…`,"webcraft.error":`Error detected`,"webcraft.running":`Running`,"webcraft.stopped":`Stopped`,"webcraft.port":`Port`,"collab.title":`Alexandria`,"collab.channels":`Channels`,"collab.newChannel":`New Channel`,"collab.noChannels":`No channels`,"collab.messages":`Messages`,"collab.noMessages":`No messages`,"collab.send":`Send`,"collab.placeholder":`Message to the channel…`,"collab.channelId":`Channel ID`,"collab.create":`Create Channel`,"collab.join":`Join Channel`,"collab.leave":`Leave`,"collab.copy":`Copy ID`,"collab.identity":`Your Identity`,"settings.title":`Settings`,"settings.profile":`User Profile`,"settings.profileSub":`Agents use this when you say "my home", "my city", etc.`,"settings.name":`Name`,"settings.namePh":`e.g. John Smith`,"settings.emailPh":`e.g. john@example.com`,"settings.phonePh":`e.g. +1 555 123 4567`,"settings.homeAddress":`Home Address`,"settings.homeAddressPh":`e.g. 123 Main St`,"settings.workAddress":`Work Address`,"settings.workAddressPh":`e.g. 456 Office Blvd`,"settings.city":`City`,"settings.cityPh":`e.g. New York`,"settings.country":`Country`,"settings.countryPh":`e.g. USA`,"settings.company":`Company`,"settings.companyPh":`e.g. Acme Inc`,"settings.role":`Role`,"settings.rolePh":`e.g. Software Engineer`,"settings.notes":`Notes`,"settings.notesPh":`Anything else agents should know about you`,"settings.saveProfile":`Save Profile`,"settings.nhaFreeTitle":`NHA Free (Liara)`,"settings.nhaFreeSub":`Powered by Qwen3 32B. Free, no API key needed. Slower (5–15s).`,"settings.useLiara":`Use NHA Free`,"settings.liaraActivated":`✓ Liara activated`,"settings.llmProvider":`LLM Provider`,"settings.llmProviderSub":`Or use your own API key for faster responses.`,"settings.provider":`Provider`,"settings.apiKey":`API Key`,"settings.apiKeyPh":`Paste your API key here`,"settings.apiKeyFreeNote":`Not needed for NHA Free`,"settings.apiKeySet":`✓ API key configured — enter a new one to change it`,"settings.model":`Model`,"settings.modelPh":`Leave empty for default`,"settings.thinking":`Extended Thinking`,"settings.thinkingOff":`Off — faster responses`,"settings.thinkingOn":`On — extended reasoning (NHA Free only)`,"settings.saveProvider":`Save Provider`,"settings.language":`Language`,"settings.languageLabel":`Language used by all agents and Studio`,"settings.telegram":`Telegram & Discord Bot`,"settings.telegramSub":`Auto-reply to Telegram and Discord messages.`,"settings.telegramToken":`Telegram Bot Token`,"settings.telegramPh":`Get from @BotFather`,"settings.telegramSet":`••••••• (set — enter new to change)`,"settings.discordToken":`Discord Bot Token`,"settings.discordPh":`From Discord Developer Portal`,"settings.discordSet":`••••••• (set — enter new to change)`,"settings.saveBots":`Save Bots`,"settings.dailyOps":`Daily Operations`,"settings.planTime":`Daily Plan Time`,"settings.summaryTime":`Summary Time`,"settings.meetingAlert":`Meeting Alert (minutes)`,"settings.saveSchedule":`Save Schedule`,"settings.googleAccount":`Google Account`,"settings.googleSub":`Connect Gmail, Calendar, Drive, Contacts and Tasks.`,"settings.connectGoogle":`Connect Google`,"settings.reconnectGoogle":`Reconnect Google`,"settings.disconnectGoogle":`Disconnect Google`,"settings.imapAccounts":`Email Accounts (IMAP/SMTP)`,"settings.imapSub":`IMAP is read-only — no emails are ever deleted or moved on the server.`,"settings.addAccount":`+ Add Account`,"settings.noImapAccounts":`No IMAP accounts configured yet.`,"settings.editImapAccount":`Edit IMAP Account`,"settings.addImapAccount":`Add IMAP Account`,"settings.displayName":`Display Name`,"settings.displayNamePh":`e.g. Work Email`,"settings.fromName":`From Name`,"settings.fromNamePh":`e.g. John Smith`,"settings.imapServer":`IMAP Server`,"settings.imapPort":`IMAP Port`,"settings.smtpServer":`SMTP Server`,"settings.smtpPort":`SMTP Port`,"settings.username":`Username`,"settings.password":`Password`,"settings.passwordKeep":`(leave empty to keep existing)`,"settings.passwordPh":`App password or IMAP password`,"settings.show":`Show`,"settings.hide":`Hide`,"settings.sync":`Sync`,"settings.imapDelete":`Delete account "{name}"? All synced emails will be removed locally.`,"settings.disconnectGoogleConfirm":`Disconnect Google account?`,"settings.googleOpened":`Sign-in page opened. Complete the login then reload NHA.`,"settings.googleOpening":`Opening Google sign-in…`},de={en:ue,it:{"common.save":`Salva`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annulla`,"common.delete":`Elimina`,"common.edit":`Modifica`,"common.add":`Aggiungi`,"common.loading":`Caricamento…`,"common.comingSoon":`Prossimamente`,"common.error":`Errore`,"common.retry":`Riprova`,"common.send":`Invia`,"common.close":`Chiudi`,"common.confirm":`Conferma`,"common.back":`Indietro`,"common.search":`Cerca…`,"common.refresh":`Aggiorna`,"common.copy":`Copia`,"common.copied":`Copiato!`,"common.open":`Apri`,"common.download":`Scarica`,"common.upload":`Carica`,"common.sync":`Sincronizza`,"common.syncing":`Sincronizzazione…`,"common.connected":`Connesso`,"common.disconnected":`Disconnesso`,"common.connect":`Connetti`,"common.disconnect":`Disconnetti`,"common.enable":`Abilita`,"common.disable":`Disabilita`,"common.yes":`Sì`,"common.no":`No`,"common.none":`Nessuno`,"common.all":`Tutti`,"common.new":`Nuovo`,"common.create":`Crea`,"common.update":`Aggiorna`,"common.remove":`Rimuovi`,"common.clear":`Cancella`,"common.select":`Seleziona`,"common.optional":`opzionale`,"common.required":`obbligatorio`,"common.noData":`Nessun dato`,"common.empty":`Vuoto`,"common.today":`Oggi`,"common.yesterday":`Ieri`,"common.tomorrow":`Domani`,"common.status":`Stato`,"common.name":`Nome`,"common.email":`Email`,"common.phone":`Telefono`,"common.date":`Data`,"common.time":`Orario`,"common.title":`Titolo`,"common.description":`Descrizione`,"common.notes":`Note`,"common.tags":`Tag`,"common.type":`Tipo`,"common.size":`Dimensione`,"common.unknown":`Sconosciuto`,"common.actions":`Azioni`,"common.preview":`Anteprima`,"common.settings":`Impostazioni`,"common.version":`Versione`,"sidebar.panoramica":`Panoramica`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integrazioni`,"sidebar.ai":`AI`,"sidebar.config":`Config`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Piano Giornaliero`,"nav.tasks":`Task`,"nav.email":`Email`,"nav.calendar":`Calendario`,"nav.drive":`Drive`,"nav.contacts":`Contatti`,"nav.notes":`Note`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Mappe`,"nav.reminders":`Promemoria`,"nav.birthdays":`Compleanni`,"nav.cron":`Cron`,"nav.screen":`Schermo`,"nav.agents":`Agenti`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Connettori`,"nav.settings":`Impostazioni`,"chat.placeholder":`Scrivi a NHA…`,"chat.thinking":`Sto pensando…`,"chat.newChat":`Nuova Chat`,"chat.conversations":`Conversazioni`,"chat.noConversations":`Nessuna conversazione`,"chat.deleteConversation":`Elimina la conversazione?`,"chat.copyMessage":`Copia`,"chat.regenerate":`Rigenera`,"chat.stopGeneration":`Ferma`,"chat.model":`Modello`,"chat.tokens":`token`,"chat.attachFile":`Allega file`,"chat.voice":`Input vocale`,"chat.canvas":`Canvas`,"chat.browser":`Browser`,"chat.toolsUsed":`Strumenti usati`,"chat.errorSending":`Errore nell'invio del messaggio`,"dashboard.title":`Dashboard`,"dashboard.goodMorning":`Buongiorno`,"dashboard.goodAfternoon":`Buon pomeriggio`,"dashboard.goodEvening":`Buonasera`,"dashboard.todayPlan":`Piano di oggi`,"dashboard.upcomingEvents":`Prossimi eventi`,"dashboard.unreadEmails":`Email non lette`,"dashboard.pendingTasks":`Task in sospeso`,"dashboard.weather":`Meteo`,"dashboard.noEvents":`Nessun evento oggi`,"dashboard.noEmails":`Nessuna email non letta`,"dashboard.noTasks":`Nessun task in sospeso`,"dashboard.systemStatus":`Stato del sistema`,"dashboard.provider":`Provider`,"dashboard.version":`Versione`,"dashboard.uptime":`Uptime`,"email.inbox":`In arrivo`,"email.sent":`Inviati`,"email.drafts":`Bozze`,"email.compose":`Scrivi`,"email.reply":`Rispondi`,"email.replyAll":`Rispondi a tutti`,"email.forward":`Inoltra`,"email.delete":`Elimina`,"email.archive":`Archivia`,"email.markRead":`Segna come letto`,"email.markUnread":`Segna come non letto`,"email.noEmails":`Nessuna email`,"email.from":`Da`,"email.to":`A`,"email.cc":`CC`,"email.bcc":`CCN`,"email.subject":`Oggetto`,"email.body":`Messaggio`,"email.attachments":`Allegati`,"email.sending":`Invio in corso…`,"email.sent_ok":`Email inviata`,"email.search":`Cerca email…`,"email.unread":`Non lette`,"email.starred":`Preferite`,"email.loadMore":`Carica altro`,"email.accounts":`Account`,"email.noAccounts":`Nessun account email configurato`,"email.addAccount":`Aggiungi account`,"email.syncNow":`Sincronizza ora`,"email.lastSync":`Ultima sincronizzazione`,"calendar.title":`Calendario`,"calendar.newEvent":`Nuovo Evento`,"calendar.today":`Oggi`,"calendar.month":`Mese`,"calendar.week":`Settimana`,"calendar.day":`Giorno`,"calendar.agenda":`Agenda`,"calendar.noEvents":`Nessun evento`,"calendar.allDay":`Tutto il giorno`,"calendar.starts":`Inizio`,"calendar.ends":`Fine`,"calendar.location":`Luogo`,"calendar.attendees":`Partecipanti`,"calendar.reminder":`Promemoria`,"calendar.recurring":`Ricorrente`,"calendar.saveEvent":`Salva Evento`,"calendar.deleteEvent":`Eliminare l'evento?`,"calendar.editEvent":`Modifica Evento`,"tasks.title":`Task`,"tasks.newTask":`Nuovo Task`,"tasks.completed":`Completati`,"tasks.pending":`In sospeso`,"tasks.overdue":`In ritardo`,"tasks.dueDate":`Scadenza`,"tasks.priority":`Priorità`,"tasks.priority.high":`Alta`,"tasks.priority.medium":`Media`,"tasks.priority.low":`Bassa`,"tasks.noTasks":`Nessun task`,"tasks.markDone":`Segna come fatto`,"tasks.markUndone":`Segna come non fatto`,"tasks.deleteTask":`Eliminare il task?`,"tasks.list":`Lista`,"tasks.assignee":`Assegnato a`,"contacts.title":`Contatti`,"contacts.newContact":`Nuovo Contatto`,"contacts.noContacts":`Nessun contatto`,"contacts.search":`Cerca contatti…`,"contacts.firstName":`Nome`,"contacts.lastName":`Cognome`,"contacts.company":`Azienda`,"contacts.role":`Ruolo`,"contacts.address":`Indirizzo`,"contacts.birthday":`Compleanno`,"contacts.deleteContact":`Eliminare il contatto?`,"notes.title":`Note`,"notes.newNote":`Nuova Nota`,"notes.noNotes":`Nessuna nota`,"notes.search":`Cerca note…`,"notes.lastModified":`Ultima modifica`,"notes.deleteNote":`Eliminare la nota?`,"notes.untitled":`Senza titolo`,"plan.title":`Piano Giornaliero`,"plan.generate":`Genera Piano`,"plan.generating":`Generazione…`,"plan.noplan":`Nessun piano per oggi`,"plan.refresh":`Aggiorna`,"plan.morning":`Mattina`,"plan.afternoon":`Pomeriggio`,"plan.evening":`Sera`,"plan.planTime":`Orario generazione piano`,"plan.summaryTime":`Orario riepilogo`,"drive.title":`Drive`,"drive.myDrive":`Il mio Drive`,"drive.shared":`Condivisi con me`,"drive.recent":`Recenti`,"drive.noFiles":`Nessun file`,"drive.upload":`Carica`,"drive.newFolder":`Nuova Cartella`,"drive.download":`Scarica`,"drive.delete":`Elimina`,"drive.rename":`Rinomina`,"drive.share":`Condividi`,"drive.search":`Cerca file…`,"drive.size":`Dimensione`,"drive.modified":`Modificato`,"drive.owner":`Proprietario`,"drive.quota":`Spazio`,"onedrive.title":`OneDrive`,"onedrive.noFiles":`Nessun file`,"onedrive.connect":`Connetti account Microsoft`,"onedrive.search":`Cerca su OneDrive…`,"mstodo.title":`MS To Do`,"mstodo.noLists":`Nessuna lista`,"mstodo.noTasks":`Nessun task`,"mstodo.newTask":`Nuovo task`,"mstodo.connect":`Connetti account Microsoft`,"mstodo.addPlaceholder":`Aggiungi un nuovo task…`,"mstodo.add":`+ Aggiungi`,"mstodo.noActive":`Nessun task attivo`,"mstodo.due":`Scadenza`,"mstodo.authRequired":`MS To Do richiede autenticazione Microsoft. Esegui nha microsoft auth nel terminale.`,"github.title":`GitHub`,"github.repos":`Repository`,"github.issues":`Issue`,"github.prs":`Pull Request`,"github.noRepos":`Nessun repository`,"github.noIssues":`Nessuna issue`,"github.noPrs":`Nessuna pull request`,"github.search":`Cerca repository…`,"github.open":`Aperta`,"github.closed":`Chiusa`,"github.merged":`Unita`,"github.stars":`Stelle`,"github.forks":`Fork`,"github.connect":`Connetti GitHub`,"notion.title":`Notion`,"notion.pages":`Pagine`,"notion.databases":`Database`,"notion.noPages":`Nessuna pagina`,"notion.search":`Cerca su Notion…`,"notion.connect":`Connetti Notion`,"slack.title":`Slack`,"slack.channels":`Canali`,"slack.dms":`Messaggi diretti`,"slack.noMessages":`Nessun messaggio`,"slack.send":`Invia`,"slack.connect":`Connetti Slack`,"maps.title":`Mappe`,"maps.search":`Cerca luogo…`,"maps.directions":`Indicazioni`,"maps.from":`Da`,"maps.to":`A`,"maps.route":`Calcola percorso`,"maps.distance":`Distanza`,"maps.duration":`Durata`,"maps.noResults":`Nessun risultato`,"reminders.title":`Promemoria`,"reminders.new":`Nuovo Promemoria`,"reminders.noReminders":`Nessun promemoria`,"reminders.dueDate":`Scadenza`,"reminders.repeat":`Ripeti`,"reminders.delete":`Eliminare il promemoria?`,"reminders.done":`Fatto`,"birthdays.title":`Compleanni`,"birthdays.upcoming":`In arrivo`,"birthdays.noBirthdays":`Nessun compleanno`,"birthdays.age":`Età`,"birthdays.daysLeft":`giorni rimanenti`,"birthdays.today":`Oggi!`,"birthdays.new":`Aggiungi Compleanno`,"cron.title":`Task Pianificati`,"cron.newJob":`Nuovo Job`,"cron.noJobs":`Nessun job pianificato`,"cron.schedule":`Pianificazione`,"cron.command":`Comando`,"cron.lastRun":`Ultima esecuzione`,"cron.nextRun":`Prossima esecuzione`,"cron.status":`Stato`,"cron.active":`Attivo`,"cron.paused":`In pausa`,"cron.delete":`Eliminare il job?`,"cron.run":`Esegui ora`,"cron.pause":`Pausa`,"cron.resume":`Riprendi`,"screen.title":`Cattura Schermo`,"screen.capture":`Cattura schermo`,"screen.captureRegion":`Cattura area`,"screen.history":`Cronologia`,"screen.noCaptures":`Nessuna cattura`,"screen.view":`Visualizza`,"screen.delete":`Elimina`,"screen.describe":`Descrivi con AI`,"agents.title":`Agenti`,"agents.newAgent":`Nuovo Agente`,"agents.noAgents":`Nessun agente`,"agents.run":`Esegui`,"agents.running":`In esecuzione…`,"agents.stop":`Ferma`,"agents.edit":`Modifica`,"agents.delete":`Eliminare l'agente?`,"agents.prompt":`System Prompt`,"agents.name":`Nome Agente`,"agents.model":`Modello`,"agents.schedule":`Pianificazione`,"agents.lastRun":`Ultima esecuzione`,"agents.output":`Output`,"agents.tools":`Strumenti`,"agents.openPanel":`Apri pannello`,"agents.addAgent":`Aggiungi agente`,"agents.noDescription":`Nessuna descrizione`,"agents.orchestrator":`Orchestratore`,"agents.orchestratorPlaceholder":`Invia a tutti gli agenti…`,"agents.orchestratorSend":`Invia a tutti`,"agents.orchestratorSynthesis":`Sintesi Conductor`,"agents.attachFile":`Allega file`,"agents.voice":`Voce`,"agents.typeMessage":`Scrivi un messaggio…`,"agents.working":`in lavoro`,"agents.waitingResponse":`In attesa di risposta…`,"studio.title":`Studio`,"studio.newSession":`Nuova Sessione`,"studio.task":`Task`,"studio.taskPlaceholder":`Descrivi cosa vuoi che gli agenti deliberino…`,"studio.agents":`Agenti`,"studio.run":`Avvia Deliberazione`,"studio.running":`Deliberando…`,"studio.stop":`Ferma`,"studio.result":`Risultato`,"studio.round":`Round`,"studio.convergence":`Convergenza`,"studio.consensus":`Consenso`,"studio.noSessions":`Nessuna sessione`,"studio.plan":`Piano`,"studio.planning":`Pianificazione…`,"studio.log":`Log`,"studio.export":`Esporta`,"studio.panel":`Pannello`,"studio.canvas":`Canvas`,"studio.browser":`Browser`,"studio.parliament":`Consiglio`,"studio.parliamentPrompt":`Attivare l'analisi del Consiglio?`,"studio.parliamentSub":`Il Consiglio multi-agente analizzerà il risultato usando la deliberazione Legion X.`,"studio.parliamentActivate":`Attiva`,"studio.parliamentSkip":`Salta`,"studio.parliamentRunning":`Consiglio in deliberazione…`,"connectors.title":`Connettori`,"connectors.google":`Google`,"connectors.microsoft":`Microsoft`,"connectors.telegram":`Telegram`,"connectors.discord":`Discord`,"connectors.github":`GitHub`,"connectors.notion":`Notion`,"connectors.slack":`Slack`,"connectors.connect":`Connetti`,"connectors.connected":`Connesso`,"connectors.disconnect":`Disconnetti`,"connectors.configure":`Configura`,"connectors.nodePalette":`Palette Nodi`,"connectors.triggers":`Trigger`,"connectors.actions":`Azioni`,"connectors.ai":`AI`,"connectors.newWorkflow":`Nuovo Workflow`,"connectors.noWorkflows":`Nessun workflow`,"connectors.noWorkflowsSub":`Trascina nodi dalla palette per costruire la tua prima automazione`,"connectors.workflowName":`Nome workflow`,"connectors.run":`Esegui`,"connectors.running":`In esecuzione…`,"connectors.delete":`Elimina`,"connectors.save":`Salva`,"connectors.config":`Configurazione`,"connectors.nodeConfig":`Config Nodo`,"connectors.close":`Chiudi`,"connectors.log":`Log Esecuzione`,"connectors.deleteEdge":`Elimina connessione`,"webcraft.title":`WebCraft`,"webcraft.newProject":`Nuovo Progetto`,"webcraft.projectName":`Nome progetto`,"webcraft.description":`Descrivi l'app che vuoi costruire…`,"webcraft.build":`Costruisci`,"webcraft.building":`Costruendo…`,"webcraft.preview":`Anteprima`,"webcraft.code":`Codice`,"webcraft.files":`File`,"webcraft.console":`Console`,"webcraft.deploy":`Pubblica`,"webcraft.stop":`Ferma server`,"webcraft.start":`Avvia server`,"webcraft.noProjects":`Nessun progetto`,"webcraft.fix":`Correggi errore`,"webcraft.fixing":`Correzione…`,"webcraft.error":`Errore rilevato`,"webcraft.running":`In esecuzione`,"webcraft.stopped":`Fermo`,"webcraft.port":`Porta`,"collab.title":`Alexandria`,"collab.channels":`Canali`,"collab.newChannel":`Nuovo Canale`,"collab.noChannels":`Nessun canale`,"collab.messages":`Messaggi`,"collab.noMessages":`Nessun messaggio`,"collab.send":`Invia`,"collab.placeholder":`Messaggio al canale…`,"collab.channelId":`ID Canale`,"collab.create":`Crea Canale`,"collab.join":`Unisciti`,"collab.leave":`Lascia`,"collab.copy":`Copia ID`,"collab.identity":`La tua identità`,"settings.title":`Impostazioni`,"settings.profile":`Profilo Utente`,"settings.profileSub":`Gli agenti usano questo quando dici "casa mia", "la mia città", ecc.`,"settings.name":`Nome`,"settings.namePh":`es. Mario Rossi`,"settings.emailPh":`es. mario@esempio.com`,"settings.phonePh":`es. +39 333 123 4567`,"settings.homeAddress":`Indirizzo di casa`,"settings.homeAddressPh":`es. Via Roma 1, Milano`,"settings.workAddress":`Indirizzo di lavoro`,"settings.workAddressPh":`es. Via Ufficio 456`,"settings.city":`Città`,"settings.cityPh":`es. Milano`,"settings.country":`Paese`,"settings.countryPh":`es. Italia`,"settings.company":`Azienda`,"settings.companyPh":`es. Acme Srl`,"settings.role":`Ruolo`,"settings.rolePh":`es. Ingegnere Software`,"settings.notes":`Note`,"settings.notesPh":`Qualsiasi altra cosa gli agenti dovrebbero sapere di te`,"settings.saveProfile":`Salva Profilo`,"settings.nhaFreeTitle":`NHA Free (Liara)`,"settings.nhaFreeSub":`Powered by Qwen3 32B. Gratis, nessuna API key necessaria. Più lento (5–15s).`,"settings.useLiara":`Usa NHA Free`,"settings.liaraActivated":`✓ Liara attivata`,"settings.llmProvider":`Provider LLM`,"settings.llmProviderSub":`Oppure usa la tua API key per risposte più veloci.`,"settings.provider":`Provider`,"settings.apiKey":`API Key`,"settings.apiKeyPh":`Incolla qui la tua API key`,"settings.apiKeyFreeNote":`Non necessaria per NHA Free`,"settings.apiKeySet":`✓ API key configurata — inserisci una nuova per cambiarla`,"settings.model":`Modello`,"settings.modelPh":`Lascia vuoto per il default`,"settings.thinking":`Ragionamento Esteso`,"settings.thinkingOff":`Off — risposte più veloci`,"settings.thinkingOn":`On — ragionamento esteso (solo NHA Free)`,"settings.saveProvider":`Salva Provider`,"settings.language":`Lingua`,"settings.languageLabel":`Lingua usata da tutti gli agenti e Studio`,"settings.telegram":`Bot Telegram e Discord`,"settings.telegramSub":`Risposta automatica ai messaggi Telegram e Discord.`,"settings.telegramToken":`Token Bot Telegram`,"settings.telegramPh":`Ottienilo da @BotFather`,"settings.telegramSet":`••••••• (impostato — inserisci nuovo per cambiare)`,"settings.discordToken":`Token Bot Discord`,"settings.discordPh":`Dal Discord Developer Portal`,"settings.discordSet":`••••••• (impostato — inserisci nuovo per cambiare)`,"settings.saveBots":`Salva Bot`,"settings.dailyOps":`Operazioni Giornaliere`,"settings.planTime":`Orario Piano Giornaliero`,"settings.summaryTime":`Orario Riepilogo`,"settings.meetingAlert":`Avviso Riunione (minuti)`,"settings.saveSchedule":`Salva Orari`,"settings.googleAccount":`Account Google`,"settings.googleSub":`Connetti Gmail, Calendar, Drive, Contatti e Task.`,"settings.connectGoogle":`Connetti Google`,"settings.reconnectGoogle":`Riconnetti Google`,"settings.disconnectGoogle":`Disconnetti Google`,"settings.imapAccounts":`Account Email (IMAP/SMTP)`,"settings.imapSub":`IMAP è in sola lettura — le email non vengono mai cancellate dal server.`,"settings.addAccount":`+ Aggiungi Account`,"settings.noImapAccounts":`Nessun account IMAP configurato.`,"settings.editImapAccount":`Modifica Account IMAP`,"settings.addImapAccount":`Aggiungi Account IMAP`,"settings.displayName":`Nome visualizzato`,"settings.displayNamePh":`es. Email Lavoro`,"settings.fromName":`Nome mittente`,"settings.fromNamePh":`es. Mario Rossi`,"settings.imapServer":`Server IMAP`,"settings.imapPort":`Porta IMAP`,"settings.smtpServer":`Server SMTP`,"settings.smtpPort":`Porta SMTP`,"settings.username":`Username`,"settings.password":`Password`,"settings.passwordKeep":`(lascia vuoto per mantenere quella esistente)`,"settings.passwordPh":`Password app o password IMAP`,"settings.show":`Mostra`,"settings.hide":`Nascondi`,"settings.sync":`Sincronizza`,"settings.imapDelete":`Eliminare l'account "{name}"? Tutte le email locali verranno rimosse.`,"settings.disconnectGoogleConfirm":`Disconnettere l'account Google?`,"settings.googleOpened":`Pagina di accesso aperta. Completa il login e ricarica NHA.`,"settings.googleOpening":`Apertura Google sign-in…`},es:{"common.save":`Guardar`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Cancelar`,"common.delete":`Eliminar`,"common.edit":`Editar`,"common.add":`Agregar`,"common.loading":`Cargando…`,"common.comingSoon":`Próximamente`,"common.error":`Error`,"common.retry":`Reintentar`,"common.send":`Enviar`,"common.close":`Cerrar`,"common.confirm":`Confirmar`,"common.back":`Atrás`,"common.search":`Buscar…`,"common.refresh":`Actualizar`,"common.copy":`Copiar`,"common.copied":`¡Copiado!`,"common.open":`Abrir`,"common.download":`Descargar`,"common.upload":`Subir`,"common.sync":`Sincronizar`,"common.syncing":`Sincronizando…`,"common.connected":`Conectado`,"common.disconnected":`Desconectado`,"common.connect":`Conectar`,"common.disconnect":`Desconectar`,"common.enable":`Habilitar`,"common.disable":`Deshabilitar`,"common.yes":`Sí`,"common.no":`No`,"common.none":`Ninguno`,"common.all":`Todos`,"common.new":`Nuevo`,"common.create":`Crear`,"common.update":`Actualizar`,"common.remove":`Quitar`,"common.clear":`Limpiar`,"common.select":`Seleccionar`,"common.optional":`opcional`,"common.required":`requerido`,"common.noData":`Sin datos`,"common.empty":`Vacío`,"common.today":`Hoy`,"common.yesterday":`Ayer`,"common.tomorrow":`Mañana`,"common.status":`Estado`,"common.name":`Nombre`,"common.email":`Correo`,"common.phone":`Teléfono`,"common.date":`Fecha`,"common.time":`Hora`,"common.title":`Título`,"common.description":`Descripción`,"common.notes":`Notas`,"common.tags":`Etiquetas`,"common.type":`Tipo`,"common.size":`Tamaño`,"common.unknown":`Desconocido`,"common.actions":`Acciones`,"common.preview":`Vista previa`,"common.settings":`Configuración`,"common.version":`Versión`,"sidebar.panoramica":`Resumen`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integraciones`,"sidebar.ai":`IA`,"sidebar.config":`Config`,"nav.dashboard":`Panel`,"nav.chat":`Chat`,"nav.plan":`Plan diario`,"nav.tasks":`Tareas`,"nav.email":`Correo`,"nav.calendar":`Calendario`,"nav.drive":`Drive`,"nav.contacts":`Contactos`,"nav.notes":`Notas`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Mapas`,"nav.reminders":`Recordatorios`,"nav.birthdays":`Cumpleaños`,"nav.cron":`Cron`,"nav.screen":`Pantalla`,"nav.agents":`Agentes`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Conectores`,"nav.settings":`Configuración`,"chat.placeholder":`Escribe a NHA…`,"chat.thinking":`Pensando…`,"chat.newChat":`Nueva conversación`,"chat.conversations":`Conversaciones`,"chat.noConversations":`Sin conversaciones`,"chat.attachFile":`Adjuntar archivo`,"chat.voice":`Entrada de voz`,"chat.toolsUsed":`Herramientas usadas`,"chat.errorSending":`Error al enviar el mensaje`,"dashboard.title":`Panel`,"dashboard.goodMorning":`Buenos días`,"dashboard.goodAfternoon":`Buenas tardes`,"dashboard.goodEvening":`Buenas noches`,"dashboard.todayPlan":`Plan de hoy`,"dashboard.upcomingEvents":`Próximos eventos`,"dashboard.unreadEmails":`Correos no leídos`,"dashboard.pendingTasks":`Tareas pendientes`,"dashboard.noEvents":`Sin eventos hoy`,"dashboard.noEmails":`Sin correos no leídos`,"dashboard.noTasks":`Sin tareas pendientes`,"email.inbox":`Bandeja de entrada`,"email.sent":`Enviados`,"email.drafts":`Borradores`,"email.compose":`Redactar`,"email.reply":`Responder`,"email.forward":`Reenviar`,"email.noEmails":`Sin correos`,"email.from":`De`,"email.to":`Para`,"email.subject":`Asunto`,"email.search":`Buscar correos…`,"calendar.title":`Calendario`,"calendar.newEvent":`Nuevo evento`,"calendar.today":`Hoy`,"calendar.noEvents":`Sin eventos`,"tasks.title":`Tareas`,"tasks.newTask":`Nueva tarea`,"tasks.completed":`Completadas`,"tasks.pending":`Pendientes`,"tasks.overdue":`Vencidas`,"tasks.noTasks":`Sin tareas`,"tasks.priority.high":`Alta`,"tasks.priority.medium":`Media`,"tasks.priority.low":`Baja`,"contacts.title":`Contactos`,"contacts.newContact":`Nuevo contacto`,"contacts.noContacts":`Sin contactos`,"contacts.search":`Buscar contactos…`,"notes.title":`Notas`,"notes.newNote":`Nueva nota`,"notes.noNotes":`Sin notas`,"drive.title":`Drive`,"drive.noFiles":`Sin archivos`,"drive.search":`Buscar archivos…`,"mstodo.title":`MS To Do`,"mstodo.noTasks":`Sin tareas`,"mstodo.newTask":`Nueva tarea`,"mstodo.addPlaceholder":`Agregar una nueva tarea…`,"mstodo.add":`+ Agregar`,"mstodo.noActive":`Sin tareas activas`,"mstodo.due":`Vence`,"github.title":`GitHub`,"github.repos":`Repositorios`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"slack.title":`Slack`,"slack.channels":`Canales`,"agents.title":`Agentes`,"agents.noAgents":`Sin agentes`,"agents.orchestrator":`Orquestador`,"agents.orchestratorPlaceholder":`Enviar a todos los agentes…`,"agents.orchestratorSend":`Enviar a todos`,"agents.orchestratorSynthesis":`Síntesis Conductor`,"agents.typeMessage":`Escribe un mensaje…`,"agents.working":`trabajando`,"studio.title":`Studio`,"studio.task":`Tarea`,"studio.run":`Iniciar deliberación`,"studio.running":`Deliberando…`,"studio.result":`Resultado`,"studio.log":`Registro`,"studio.export":`Exportar`,"studio.parliamentPrompt":`¿Activar análisis del Parlamento?`,"studio.parliamentActivate":`Activar`,"studio.parliamentSkip":`Omitir`,"connectors.title":`Conectores`,"connectors.nodePalette":`Paleta de nodos`,"connectors.triggers":`Disparadores`,"connectors.actions":`Acciones`,"connectors.ai":`IA`,"connectors.newWorkflow":`Nuevo flujo`,"connectors.noWorkflows":`Sin flujos de trabajo`,"connectors.run":`Ejecutar`,"connectors.save":`Guardar`,"connectors.log":`Registro de ejecución`,"settings.title":`Configuración`,"settings.profile":`Perfil de usuario`,"settings.saveProfile":`Guardar perfil`,"settings.useLiara":`Usar NHA Free`,"settings.liaraActivated":`✓ Liara activada`,"settings.apiKeySet":`✓ API key configurada — introduce una nueva para cambiarla`,"settings.llmProvider":`Proveedor LLM`,"settings.language":`Idioma`,"settings.languageLabel":`Idioma usado por todos los agentes y Studio`,"settings.saveProvider":`Guardar proveedor`,"settings.googleAccount":`Cuenta de Google`,"settings.connectGoogle":`Conectar Google`,"settings.disconnectGoogle":`Desconectar Google`},fr:{"common.save":`Enregistrer`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annuler`,"common.delete":`Supprimer`,"common.edit":`Modifier`,"common.add":`Ajouter`,"common.loading":`Chargement…`,"common.comingSoon":`Bientôt disponible`,"common.error":`Erreur`,"common.retry":`Réessayer`,"common.send":`Envoyer`,"common.close":`Fermer`,"common.confirm":`Confirmer`,"common.back":`Retour`,"common.search":`Rechercher…`,"common.refresh":`Actualiser`,"common.copy":`Copier`,"common.copied":`Copié !`,"common.open":`Ouvrir`,"common.download":`Télécharger`,"common.upload":`Téléverser`,"common.sync":`Synchroniser`,"common.syncing":`Synchronisation…`,"common.connected":`Connecté`,"common.disconnected":`Déconnecté`,"common.connect":`Connecter`,"common.disconnect":`Déconnecter`,"common.enable":`Activer`,"common.disable":`Désactiver`,"common.yes":`Oui`,"common.no":`Non`,"common.none":`Aucun`,"common.all":`Tout`,"common.new":`Nouveau`,"common.create":`Créer`,"common.update":`Mettre à jour`,"common.remove":`Supprimer`,"common.clear":`Effacer`,"common.select":`Sélectionner`,"common.optional":`optionnel`,"common.required":`requis`,"common.noData":`Aucune donnée`,"common.empty":`Vide`,"common.today":`Aujourd'hui`,"common.yesterday":`Hier`,"common.tomorrow":`Demain`,"common.status":`Statut`,"common.name":`Nom`,"common.email":`E-mail`,"common.phone":`Téléphone`,"common.date":`Date`,"common.time":`Heure`,"common.title":`Titre`,"common.description":`Description`,"common.notes":`Notes`,"common.tags":`Étiquettes`,"common.type":`Type`,"common.size":`Taille`,"common.unknown":`Inconnu`,"common.actions":`Actions`,"common.preview":`Aperçu`,"common.settings":`Paramètres`,"common.version":`Version`,"sidebar.panoramica":`Vue d'ensemble`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Intégrations`,"sidebar.ai":`IA`,"sidebar.config":`Config`,"nav.dashboard":`Tableau de bord`,"nav.chat":`Chat`,"nav.plan":`Plan quotidien`,"nav.tasks":`Tâches`,"nav.email":`E-mail`,"nav.calendar":`Calendrier`,"nav.drive":`Drive`,"nav.contacts":`Contacts`,"nav.notes":`Notes`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Cartes`,"nav.reminders":`Rappels`,"nav.birthdays":`Anniversaires`,"nav.cron":`Cron`,"nav.screen":`Écran`,"nav.agents":`Agents`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Connecteurs`,"nav.settings":`Paramètres`,"chat.placeholder":`Écrivez à NHA…`,"chat.thinking":`Réflexion…`,"chat.newChat":`Nouvelle conversation`,"chat.conversations":`Conversations`,"chat.noConversations":`Aucune conversation`,"chat.attachFile":`Joindre un fichier`,"chat.voice":`Saisie vocale`,"chat.toolsUsed":`Outils utilisés`,"chat.errorSending":`Erreur lors de l'envoi du message`,"dashboard.title":`Tableau de bord`,"dashboard.goodMorning":`Bonjour`,"dashboard.goodAfternoon":`Bon après-midi`,"dashboard.goodEvening":`Bonsoir`,"dashboard.todayPlan":`Plan d'aujourd'hui`,"dashboard.upcomingEvents":`Événements à venir`,"dashboard.unreadEmails":`E-mails non lus`,"dashboard.pendingTasks":`Tâches en attente`,"dashboard.noEvents":`Aucun événement aujourd'hui`,"dashboard.noEmails":`Aucun e-mail non lu`,"dashboard.noTasks":`Aucune tâche en attente`,"email.inbox":`Boîte de réception`,"email.sent":`Envoyés`,"email.drafts":`Brouillons`,"email.compose":`Rédiger`,"email.reply":`Répondre`,"email.forward":`Transférer`,"email.noEmails":`Aucun e-mail`,"email.from":`De`,"email.to":`À`,"email.subject":`Objet`,"email.search":`Rechercher des e-mails…`,"calendar.title":`Calendrier`,"calendar.newEvent":`Nouvel événement`,"calendar.today":`Aujourd'hui`,"calendar.noEvents":`Aucun événement`,"tasks.title":`Tâches`,"tasks.newTask":`Nouvelle tâche`,"tasks.completed":`Terminées`,"tasks.pending":`En attente`,"tasks.overdue":`En retard`,"tasks.noTasks":`Aucune tâche`,"tasks.priority.high":`Haute`,"tasks.priority.medium":`Moyenne`,"tasks.priority.low":`Faible`,"contacts.title":`Contacts`,"contacts.newContact":`Nouveau contact`,"contacts.noContacts":`Aucun contact`,"contacts.search":`Rechercher des contacts…`,"notes.title":`Notes`,"notes.newNote":`Nouvelle note`,"notes.noNotes":`Aucune note`,"drive.title":`Drive`,"drive.noFiles":`Aucun fichier`,"drive.search":`Rechercher des fichiers…`,"mstodo.title":`MS To Do`,"mstodo.noTasks":`Aucune tâche`,"mstodo.newTask":`Nouvelle tâche`,"mstodo.addPlaceholder":`Ajouter une nouvelle tâche…`,"mstodo.add":`+ Ajouter`,"mstodo.noActive":`Aucune tâche active`,"mstodo.due":`Échéance`,"github.title":`GitHub`,"github.repos":`Référentiels`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"slack.title":`Slack`,"slack.channels":`Canaux`,"agents.title":`Agents`,"agents.noAgents":`Aucun agent`,"agents.orchestrator":`Orchestrateur`,"agents.orchestratorPlaceholder":`Envoyer à tous les agents…`,"agents.orchestratorSend":`Envoyer à tous`,"agents.orchestratorSynthesis":`Synthèse Conductor`,"agents.typeMessage":`Saisir un message…`,"agents.working":`en cours`,"studio.title":`Studio`,"studio.task":`Tâche`,"studio.run":`Démarrer la délibération`,"studio.running":`Délibération…`,"studio.result":`Résultat`,"studio.log":`Journal`,"studio.export":`Exporter`,"studio.parliamentPrompt":`Activer l'analyse du Parlement ?`,"studio.parliamentActivate":`Activer`,"studio.parliamentSkip":`Ignorer`,"connectors.title":`Connecteurs`,"connectors.nodePalette":`Palette de nœuds`,"connectors.triggers":`Déclencheurs`,"connectors.actions":`Actions`,"connectors.ai":`IA`,"connectors.newWorkflow":`Nouveau flux`,"connectors.noWorkflows":`Aucun flux de travail`,"connectors.run":`Exécuter`,"connectors.save":`Enregistrer`,"connectors.log":`Journal d'exécution`,"settings.title":`Paramètres`,"settings.profile":`Profil utilisateur`,"settings.saveProfile":`Enregistrer le profil`,"settings.useLiara":`Utiliser NHA Free`,"settings.liaraActivated":`✓ Liara activée`,"settings.apiKeySet":`✓ Clé API configurée — saisissez-en une nouvelle pour la modifier`,"settings.llmProvider":`Fournisseur LLM`,"settings.language":`Langue`,"settings.languageLabel":`Langue utilisée par tous les agents et Studio`,"settings.saveProvider":`Enregistrer le fournisseur`,"settings.googleAccount":`Compte Google`,"settings.connectGoogle":`Connecter Google`,"settings.disconnectGoogle":`Déconnecter Google`},de:{"common.save":`Speichern`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Abbrechen`,"common.delete":`Löschen`,"common.edit":`Bearbeiten`,"common.add":`Hinzufügen`,"common.loading":`Laden…`,"common.comingSoon":`Demnächst`,"common.error":`Fehler`,"common.retry":`Erneut versuchen`,"common.send":`Senden`,"common.close":`Schließen`,"common.confirm":`Bestätigen`,"common.back":`Zurück`,"common.search":`Suchen…`,"common.refresh":`Aktualisieren`,"common.copy":`Kopieren`,"common.copied":`Kopiert!`,"common.open":`Öffnen`,"common.download":`Herunterladen`,"common.upload":`Hochladen`,"common.sync":`Synchronisieren`,"common.syncing":`Synchronisierung…`,"common.connected":`Verbunden`,"common.disconnected":`Getrennt`,"common.connect":`Verbinden`,"common.disconnect":`Trennen`,"common.enable":`Aktivieren`,"common.disable":`Deaktivieren`,"common.yes":`Ja`,"common.no":`Nein`,"common.none":`Keiner`,"common.all":`Alle`,"common.new":`Neu`,"common.create":`Erstellen`,"common.update":`Aktualisieren`,"common.remove":`Entfernen`,"common.clear":`Löschen`,"common.select":`Auswählen`,"common.optional":`optional`,"common.required":`erforderlich`,"common.noData":`Keine Daten`,"common.empty":`Leer`,"common.today":`Heute`,"common.yesterday":`Gestern`,"common.tomorrow":`Morgen`,"common.status":`Status`,"common.name":`Name`,"common.email":`E-Mail`,"common.phone":`Telefon`,"common.date":`Datum`,"common.time":`Uhrzeit`,"common.title":`Titel`,"common.description":`Beschreibung`,"common.notes":`Notizen`,"common.tags":`Tags`,"common.type":`Typ`,"common.size":`Größe`,"common.unknown":`Unbekannt`,"common.actions":`Aktionen`,"common.preview":`Vorschau`,"common.settings":`Einstellungen`,"common.version":`Version`,"sidebar.panoramica":`Übersicht`,"sidebar.google":`Google`,"sidebar.microsoft":`Microsoft`,"sidebar.integrazioni":`Integrationen`,"sidebar.ai":`KI`,"sidebar.config":`Konfiguration`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Tagesplan`,"nav.tasks":`Aufgaben`,"nav.email":`E-Mail`,"nav.calendar":`Kalender`,"nav.drive":`Drive`,"nav.contacts":`Kontakte`,"nav.notes":`Notizen`,"nav.onedrive":`OneDrive`,"nav.mstodo":`MS Todo`,"nav.github":`GitHub`,"nav.notion":`Notion`,"nav.slack":`Slack`,"nav.maps":`Karten`,"nav.reminders":`Erinnerungen`,"nav.birthdays":`Geburtstage`,"nav.cron":`Cron`,"nav.screen":`Bildschirm`,"nav.agents":`Agenten`,"nav.studio":`Studio`,"nav.webcraft":`WebCraft`,"nav.collab":`Alexandria`,"nav.connectors":`Konnektoren`,"nav.settings":`Einstellungen`,"chat.placeholder":`Nachricht an NHA…`,"chat.thinking":`Denke nach…`,"chat.newChat":`Neues Gespräch`,"chat.conversations":`Gespräche`,"chat.noConversations":`Keine Gespräche`,"chat.attachFile":`Datei anhängen`,"chat.voice":`Spracheingabe`,"chat.toolsUsed":`Verwendete Werkzeuge`,"chat.errorSending":`Fehler beim Senden der Nachricht`,"dashboard.title":`Dashboard`,"dashboard.goodMorning":`Guten Morgen`,"dashboard.goodAfternoon":`Guten Nachmittag`,"dashboard.goodEvening":`Guten Abend`,"dashboard.todayPlan":`Heutiger Plan`,"dashboard.upcomingEvents":`Bevorstehende Ereignisse`,"dashboard.unreadEmails":`Ungelesene E-Mails`,"dashboard.pendingTasks":`Ausstehende Aufgaben`,"dashboard.noEvents":`Keine Ereignisse heute`,"dashboard.noEmails":`Keine ungelesenen E-Mails`,"dashboard.noTasks":`Keine ausstehenden Aufgaben`,"email.inbox":`Posteingang`,"email.sent":`Gesendet`,"email.drafts":`Entwürfe`,"email.compose":`Verfassen`,"email.reply":`Antworten`,"email.forward":`Weiterleiten`,"email.noEmails":`Keine E-Mails`,"email.from":`Von`,"email.to":`An`,"email.subject":`Betreff`,"email.search":`E-Mails suchen…`,"calendar.title":`Kalender`,"calendar.newEvent":`Neues Ereignis`,"calendar.today":`Heute`,"calendar.noEvents":`Keine Ereignisse`,"tasks.title":`Aufgaben`,"tasks.newTask":`Neue Aufgabe`,"tasks.completed":`Erledigt`,"tasks.pending":`Ausstehend`,"tasks.overdue":`Überfällig`,"tasks.noTasks":`Keine Aufgaben`,"tasks.priority.high":`Hoch`,"tasks.priority.medium":`Mittel`,"tasks.priority.low":`Niedrig`,"contacts.title":`Kontakte`,"contacts.newContact":`Neuer Kontakt`,"contacts.noContacts":`Keine Kontakte`,"contacts.search":`Kontakte suchen…`,"notes.title":`Notizen`,"notes.newNote":`Neue Notiz`,"notes.noNotes":`Keine Notizen`,"drive.title":`Drive`,"drive.noFiles":`Keine Dateien`,"drive.search":`Dateien suchen…`,"mstodo.title":`MS To Do`,"mstodo.noTasks":`Keine Aufgaben`,"mstodo.newTask":`Neue Aufgabe`,"mstodo.addPlaceholder":`Neue Aufgabe hinzufügen…`,"mstodo.add":`+ Hinzufügen`,"mstodo.noActive":`Keine aktiven Aufgaben`,"mstodo.due":`Fällig`,"github.title":`GitHub`,"github.repos":`Repositories`,"github.issues":`Issues`,"github.prs":`Pull Requests`,"slack.title":`Slack`,"slack.channels":`Kanäle`,"agents.title":`Agenten`,"agents.noAgents":`Keine Agenten`,"agents.orchestrator":`Orchestrator`,"agents.orchestratorPlaceholder":`An alle Agenten senden…`,"agents.orchestratorSend":`An alle senden`,"agents.orchestratorSynthesis":`Conductor-Synthese`,"agents.typeMessage":`Nachricht eingeben…`,"agents.working":`arbeitet`,"studio.title":`Studio`,"studio.task":`Aufgabe`,"studio.run":`Deliberation starten`,"studio.running":`Deliberation…`,"studio.result":`Ergebnis`,"studio.log":`Protokoll`,"studio.export":`Exportieren`,"studio.parliamentPrompt":`Parlament-Analyse aktivieren?`,"studio.parliamentActivate":`Aktivieren`,"studio.parliamentSkip":`Überspringen`,"connectors.title":`Konnektoren`,"connectors.nodePalette":`Knotenpalette`,"connectors.triggers":`Auslöser`,"connectors.actions":`Aktionen`,"connectors.ai":`KI`,"connectors.newWorkflow":`Neuer Workflow`,"connectors.noWorkflows":`Keine Workflows`,"connectors.run":`Ausführen`,"connectors.save":`Speichern`,"connectors.log":`Ausführungsprotokoll`,"settings.title":`Einstellungen`,"settings.profile":`Benutzerprofil`,"settings.saveProfile":`Profil speichern`,"settings.useLiara":`NHA Free verwenden`,"settings.liaraActivated":`✓ Liara aktiviert`,"settings.apiKeySet":`✓ API-Schlüssel konfiguriert — neuen eingeben zum Ändern`,"settings.llmProvider":`LLM-Anbieter`,"settings.language":`Sprache`,"settings.languageLabel":`Sprache für alle Agenten und Studio`,"settings.saveProvider":`Anbieter speichern`,"settings.googleAccount":`Google-Konto`,"settings.connectGoogle":`Google verbinden`,"settings.disconnectGoogle":`Google trennen`},pt:{"common.save":`Guardar`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Cancelar`,"common.delete":`Eliminar`,"common.edit":`Editar`,"common.add":`Adicionar`,"common.loading":`A carregar…`,"common.comingSoon":`Em breve`,"common.error":`Erro`,"common.retry":`Tentar novamente`,"common.send":`Enviar`,"common.close":`Fechar`,"common.confirm":`Confirmar`,"common.back":`Voltar`,"common.search":`Pesquisar…`,"common.refresh":`Atualizar`,"common.copy":`Copiar`,"common.copied":`Copiado!`,"common.open":`Abrir`,"common.download":`Transferir`,"common.upload":`Carregar`,"common.sync":`Sincronizar`,"common.syncing":`A sincronizar…`,"common.connected":`Ligado`,"common.disconnected":`Desligado`,"common.connect":`Ligar`,"common.disconnect":`Desligar`,"common.yes":`Sim`,"common.no":`Não`,"common.new":`Novo`,"common.noData":`Sem dados`,"common.today":`Hoje`,"common.yesterday":`Ontem`,"common.tomorrow":`Amanhã`,"common.name":`Nome`,"common.email":`E-mail`,"sidebar.panoramica":`Visão geral`,"sidebar.integrazioni":`Integrações`,"sidebar.ai":`IA`,"nav.dashboard":`Painel`,"nav.chat":`Chat`,"nav.plan":`Plano diário`,"nav.tasks":`Tarefas`,"nav.email":`E-mail`,"nav.calendar":`Calendário`,"nav.contacts":`Contactos`,"nav.notes":`Notas`,"nav.agents":`Agentes`,"nav.settings":`Definições`,"chat.placeholder":`Escrever para NHA…`,"chat.thinking":`A pensar…`,"chat.newChat":`Nova conversa`,"email.inbox":`Caixa de entrada`,"email.compose":`Redigir`,"email.noEmails":`Sem e-mails`,"calendar.title":`Calendário`,"calendar.newEvent":`Novo evento`,"calendar.noEvents":`Sem eventos`,"tasks.title":`Tarefas`,"tasks.newTask":`Nova tarefa`,"tasks.noTasks":`Sem tarefas`,"contacts.title":`Contactos`,"contacts.noContacts":`Sem contactos`,"mstodo.addPlaceholder":`Adicionar uma nova tarefa…`,"mstodo.add":`+ Adicionar`,"mstodo.noActive":`Sem tarefas ativas`,"agents.title":`Agentes`,"agents.noAgents":`Sem agentes`,"agents.orchestrator":`Orquestrador`,"agents.orchestratorSend":`Enviar a todos`,"studio.title":`Studio`,"studio.run":`Iniciar deliberação`,"studio.running":`A deliberar…`,"connectors.title":`Conectores`,"connectors.nodePalette":`Paleta de nós`,"connectors.triggers":`Gatilhos`,"connectors.newWorkflow":`Novo fluxo`,"settings.title":`Definições`,"settings.profile":`Perfil do utilizador`,"settings.language":`Idioma`,"settings.useLiara":`Usar NHA Free`,"settings.liaraActivated":`✓ Liara ativada`,"settings.apiKeySet":`✓ Chave API configurada — insira uma nova para alterar`,"settings.saveProfile":`Guardar perfil`,"settings.googleAccount":`Conta Google`,"settings.connectGoogle":`Ligar Google`},nl:{"common.save":`Opslaan`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annuleren`,"common.delete":`Verwijderen`,"common.edit":`Bewerken`,"common.add":`Toevoegen`,"common.loading":`Laden…`,"common.comingSoon":`Binnenkort`,"common.error":`Fout`,"common.retry":`Opnieuw proberen`,"common.send":`Verzenden`,"common.close":`Sluiten`,"common.confirm":`Bevestigen`,"common.back":`Terug`,"common.search":`Zoeken…`,"common.refresh":`Vernieuwen`,"common.copy":`Kopiëren`,"common.copied":`Gekopieerd!`,"common.open":`Openen`,"common.download":`Downloaden`,"common.connect":`Verbinden`,"common.disconnect":`Verbreken`,"common.yes":`Ja`,"common.no":`Nee`,"common.new":`Nieuw`,"common.noData":`Geen gegevens`,"common.today":`Vandaag`,"common.yesterday":`Gisteren`,"common.tomorrow":`Morgen`,"common.name":`Naam`,"common.email":`E-mail`,"sidebar.panoramica":`Overzicht`,"sidebar.integrazioni":`Integraties`,"sidebar.ai":`AI`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.plan":`Dagplan`,"nav.tasks":`Taken`,"nav.email":`E-mail`,"nav.calendar":`Agenda`,"nav.contacts":`Contacten`,"nav.agents":`Agenten`,"nav.settings":`Instellingen`,"chat.placeholder":`Bericht aan NHA…`,"chat.thinking":`Aan het denken…`,"chat.newChat":`Nieuwe chat`,"email.inbox":`Postvak IN`,"email.compose":`Opstellen`,"email.noEmails":`Geen e-mails`,"calendar.title":`Agenda`,"calendar.newEvent":`Nieuw evenement`,"calendar.noEvents":`Geen evenementen`,"tasks.title":`Taken`,"tasks.newTask":`Nieuwe taak`,"tasks.noTasks":`Geen taken`,"contacts.title":`Contacten`,"contacts.noContacts":`Geen contacten`,"agents.title":`Agenten`,"agents.noAgents":`Geen agenten`,"agents.orchestrator":`Orchestrator`,"agents.orchestratorSend":`Stuur naar iedereen`,"studio.title":`Studio`,"studio.run":`Beraadslaging starten`,"studio.running":`Beraadslaging…`,"connectors.title":`Connectoren`,"connectors.nodePalette":`Knooppuntenpalet`,"connectors.triggers":`Triggers`,"connectors.newWorkflow":`Nieuwe workflow`,"settings.title":`Instellingen`,"settings.language":`Taal`,"settings.useLiara":`NHA Free gebruiken`,"settings.liaraActivated":`✓ Liara geactiveerd`,"settings.apiKeySet":`✓ API-sleutel geconfigureerd — voer een nieuwe in om te wijzigen`,"settings.saveProfile":`Profiel opslaan`,"settings.googleAccount":`Google-account`,"settings.connectGoogle":`Google verbinden`},pl:{"common.save":`Zapisz`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Anuluj`,"common.delete":`Usuń`,"common.edit":`Edytuj`,"common.add":`Dodaj`,"common.loading":`Ładowanie…`,"common.error":`Błąd`,"common.retry":`Spróbuj ponownie`,"common.send":`Wyślij`,"common.close":`Zamknij`,"common.confirm":`Potwierdź`,"common.back":`Wstecz`,"common.search":`Szukaj…`,"common.refresh":`Odśwież`,"common.copy":`Kopiuj`,"common.copied":`Skopiowano!`,"common.connect":`Połącz`,"common.disconnect":`Rozłącz`,"common.yes":`Tak`,"common.no":`Nie`,"common.new":`Nowy`,"common.noData":`Brak danych`,"common.today":`Dziś`,"common.name":`Nazwa`,"sidebar.panoramica":`Przegląd`,"sidebar.integrazioni":`Integracje`,"sidebar.ai":`AI`,"nav.dashboard":`Panel`,"nav.chat":`Czat`,"nav.tasks":`Zadania`,"nav.email":`E-mail`,"nav.calendar":`Kalendarz`,"nav.contacts":`Kontakty`,"nav.agents":`Agenci`,"nav.settings":`Ustawienia`,"chat.placeholder":`Wiadomość do NHA…`,"chat.thinking":`Myślę…`,"chat.newChat":`Nowa rozmowa`,"email.inbox":`Skrzynka odbiorcza`,"email.compose":`Napisz`,"email.noEmails":`Brak wiadomości`,"calendar.title":`Kalendarz`,"calendar.newEvent":`Nowe zdarzenie`,"calendar.noEvents":`Brak zdarzeń`,"tasks.title":`Zadania`,"tasks.newTask":`Nowe zadanie`,"tasks.noTasks":`Brak zadań`,"contacts.title":`Kontakty`,"contacts.noContacts":`Brak kontaktów`,"agents.title":`Agenci`,"agents.noAgents":`Brak agentów`,"agents.orchestrator":`Orkiestrator`,"agents.orchestratorSend":`Wyślij do wszystkich`,"studio.title":`Studio`,"studio.run":`Rozpocznij deliberację`,"studio.running":`Deliberacja…`,"connectors.title":`Konektory`,"connectors.triggers":`Wyzwalacze`,"connectors.newWorkflow":`Nowy przepływ`,"settings.title":`Ustawienia`,"settings.language":`Język`,"settings.useLiara":`Użyj NHA Free`,"settings.liaraActivated":`✓ Liara aktywowana`,"settings.apiKeySet":`✓ Klucz API skonfigurowany — wpisz nowy, aby zmienić`,"settings.saveProfile":`Zapisz profil`,"settings.googleAccount":`Konto Google`,"settings.connectGoogle":`Połącz Google`},ru:{"common.save":`Сохранить`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Отмена`,"common.delete":`Удалить`,"common.edit":`Редактировать`,"common.add":`Добавить`,"common.loading":`Загрузка…`,"common.error":`Ошибка`,"common.retry":`Повторить`,"common.send":`Отправить`,"common.close":`Закрыть`,"common.confirm":`Подтвердить`,"common.back":`Назад`,"common.search":`Поиск…`,"common.refresh":`Обновить`,"common.copy":`Копировать`,"common.copied":`Скопировано!`,"common.connect":`Подключить`,"common.disconnect":`Отключить`,"common.yes":`Да`,"common.no":`Нет`,"common.new":`Новый`,"common.noData":`Нет данных`,"common.today":`Сегодня`,"common.name":`Имя`,"sidebar.panoramica":`Обзор`,"sidebar.integrazioni":`Интеграции`,"sidebar.ai":`ИИ`,"nav.dashboard":`Панель`,"nav.chat":`Чат`,"nav.tasks":`Задачи`,"nav.email":`Почта`,"nav.calendar":`Календарь`,"nav.contacts":`Контакты`,"nav.agents":`Агенты`,"nav.settings":`Настройки`,"chat.placeholder":`Сообщение NHA…`,"chat.thinking":`Думаю…`,"chat.newChat":`Новый чат`,"email.inbox":`Входящие`,"email.compose":`Написать`,"email.noEmails":`Нет писем`,"calendar.title":`Календарь`,"calendar.newEvent":`Новое событие`,"calendar.noEvents":`Нет событий`,"tasks.title":`Задачи`,"tasks.newTask":`Новая задача`,"tasks.noTasks":`Нет задач`,"contacts.title":`Контакты`,"contacts.noContacts":`Нет контактов`,"agents.title":`Агенты`,"agents.noAgents":`Нет агентов`,"agents.orchestrator":`Оркестратор`,"agents.orchestratorSend":`Отправить всем`,"studio.title":`Studio`,"studio.run":`Начать обсуждение`,"studio.running":`Обсуждение…`,"connectors.title":`Коннекторы`,"connectors.triggers":`Триггеры`,"connectors.newWorkflow":`Новый сценарий`,"settings.title":`Настройки`,"settings.language":`Язык`,"settings.useLiara":`Использовать NHA Free`,"settings.liaraActivated":`✓ Liara активирована`,"settings.apiKeySet":`✓ API-ключ настроен — введите новый для изменения`,"settings.saveProfile":`Сохранить профиль`,"settings.googleAccount":`Аккаунт Google`,"settings.connectGoogle":`Подключить Google`},zh:{"common.save":`保存`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`取消`,"common.delete":`删除`,"common.edit":`编辑`,"common.add":`添加`,"common.loading":`加载中…`,"common.error":`错误`,"common.retry":`重试`,"common.send":`发送`,"common.close":`关闭`,"common.confirm":`确认`,"common.back":`返回`,"common.search":`搜索…`,"common.refresh":`刷新`,"common.copy":`复制`,"common.copied":`已复制!`,"common.connect":`连接`,"common.disconnect":`断开`,"common.yes":`是`,"common.no":`否`,"common.new":`新建`,"common.noData":`无数据`,"common.today":`今天`,"common.name":`名称`,"sidebar.panoramica":`概览`,"sidebar.integrazioni":`集成`,"sidebar.ai":`AI`,"nav.dashboard":`仪表板`,"nav.chat":`聊天`,"nav.tasks":`任务`,"nav.email":`邮件`,"nav.calendar":`日历`,"nav.contacts":`联系人`,"nav.agents":`智能体`,"nav.settings":`设置`,"chat.placeholder":`发送消息给 NHA…`,"chat.thinking":`思考中…`,"chat.newChat":`新对话`,"email.inbox":`收件箱`,"email.compose":`撰写`,"email.noEmails":`无邮件`,"calendar.title":`日历`,"calendar.newEvent":`新建事件`,"calendar.noEvents":`无事件`,"tasks.title":`任务`,"tasks.newTask":`新建任务`,"tasks.noTasks":`无任务`,"contacts.title":`联系人`,"contacts.noContacts":`无联系人`,"agents.title":`智能体`,"agents.noAgents":`无智能体`,"agents.orchestrator":`协调器`,"agents.orchestratorSend":`发送给所有`,"studio.title":`Studio`,"studio.run":`开始协商`,"studio.running":`协商中…`,"connectors.title":`连接器`,"connectors.triggers":`触发器`,"connectors.newWorkflow":`新工作流`,"settings.title":`设置`,"settings.language":`语言`,"settings.useLiara":`使用 NHA Free`,"settings.liaraActivated":`✓ Liara 已激活`,"settings.apiKeySet":`✓ API 密钥已配置 — 输入新密钥以更改`,"settings.saveProfile":`保存配置`,"settings.googleAccount":`Google 账户`,"settings.connectGoogle":`连接 Google`},ja:{"common.save":`保存`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`キャンセル`,"common.delete":`削除`,"common.edit":`編集`,"common.add":`追加`,"common.loading":`読み込み中…`,"common.error":`エラー`,"common.retry":`再試行`,"common.send":`送信`,"common.close":`閉じる`,"common.confirm":`確認`,"common.back":`戻る`,"common.search":`検索…`,"common.refresh":`更新`,"common.copy":`コピー`,"common.copied":`コピーしました!`,"common.connect":`接続`,"common.disconnect":`切断`,"common.yes":`はい`,"common.no":`いいえ`,"common.new":`新規`,"common.noData":`データなし`,"common.today":`今日`,"common.name":`名前`,"sidebar.panoramica":`概要`,"sidebar.integrazioni":`統合`,"sidebar.ai":`AI`,"nav.dashboard":`ダッシュボード`,"nav.chat":`チャット`,"nav.tasks":`タスク`,"nav.email":`メール`,"nav.calendar":`カレンダー`,"nav.contacts":`連絡先`,"nav.agents":`エージェント`,"nav.settings":`設定`,"chat.placeholder":`NHA へメッセージ…`,"chat.thinking":`考え中…`,"chat.newChat":`新しい会話`,"email.inbox":`受信トレイ`,"email.compose":`作成`,"email.noEmails":`メールなし`,"calendar.title":`カレンダー`,"calendar.newEvent":`新しいイベント`,"calendar.noEvents":`イベントなし`,"tasks.title":`タスク`,"tasks.newTask":`新しいタスク`,"tasks.noTasks":`タスクなし`,"contacts.title":`連絡先`,"contacts.noContacts":`連絡先なし`,"agents.title":`エージェント`,"agents.noAgents":`エージェントなし`,"agents.orchestrator":`オーケストレーター`,"agents.orchestratorSend":`全員に送信`,"studio.title":`Studio`,"studio.run":`討議を開始`,"studio.running":`討議中…`,"connectors.title":`コネクター`,"connectors.triggers":`トリガー`,"connectors.newWorkflow":`新しいワークフロー`,"settings.title":`設定`,"settings.language":`言語`,"settings.useLiara":`NHA Free を使用`,"settings.liaraActivated":`✓ Liara が有効になりました`,"settings.apiKeySet":`✓ API キーが設定済み — 変更するには新しいキーを入力してください`,"settings.saveProfile":`プロフィールを保存`,"settings.googleAccount":`Google アカウント`,"settings.connectGoogle":`Google を接続`},ko:{"common.save":`저장`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`취소`,"common.delete":`삭제`,"common.edit":`편집`,"common.add":`추가`,"common.loading":`로딩 중…`,"common.error":`오류`,"common.retry":`다시 시도`,"common.send":`전송`,"common.close":`닫기`,"common.confirm":`확인`,"common.back":`뒤로`,"common.search":`검색…`,"common.refresh":`새로고침`,"common.copy":`복사`,"common.copied":`복사됨!`,"common.connect":`연결`,"common.disconnect":`연결 해제`,"common.yes":`예`,"common.no":`아니요`,"common.new":`새로 만들기`,"common.noData":`데이터 없음`,"common.today":`오늘`,"common.name":`이름`,"sidebar.panoramica":`개요`,"sidebar.integrazioni":`통합`,"sidebar.ai":`AI`,"nav.dashboard":`대시보드`,"nav.chat":`채팅`,"nav.tasks":`작업`,"nav.email":`이메일`,"nav.calendar":`캘린더`,"nav.contacts":`연락처`,"nav.agents":`에이전트`,"nav.settings":`설정`,"chat.placeholder":`NHA에게 메시지…`,"chat.thinking":`생각 중…`,"chat.newChat":`새 대화`,"email.inbox":`받은편지함`,"email.compose":`작성`,"email.noEmails":`이메일 없음`,"calendar.title":`캘린더`,"calendar.newEvent":`새 이벤트`,"calendar.noEvents":`이벤트 없음`,"tasks.title":`작업`,"tasks.newTask":`새 작업`,"tasks.noTasks":`작업 없음`,"contacts.title":`연락처`,"contacts.noContacts":`연락처 없음`,"agents.title":`에이전트`,"agents.noAgents":`에이전트 없음`,"agents.orchestrator":`오케스트레이터`,"agents.orchestratorSend":`전체에게 전송`,"studio.title":`Studio`,"studio.run":`토론 시작`,"studio.running":`토론 중…`,"connectors.title":`커넥터`,"connectors.triggers":`트리거`,"connectors.newWorkflow":`새 워크플로`,"settings.title":`설정`,"settings.language":`언어`,"settings.useLiara":`NHA Free 사용`,"settings.liaraActivated":`✓ Liara 활성화됨`,"settings.apiKeySet":`✓ API 키 설정됨 — 변경하려면 새 키를 입력하세요`,"settings.saveProfile":`프로필 저장`,"settings.googleAccount":`Google 계정`,"settings.connectGoogle":`Google 연결`},ar:{"common.save":`حفظ`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`إلغاء`,"common.delete":`حذف`,"common.edit":`تعديل`,"common.add":`إضافة`,"common.loading":`جارٍ التحميل…`,"common.error":`خطأ`,"common.retry":`إعادة المحاولة`,"common.send":`إرسال`,"common.close":`إغلاق`,"common.confirm":`تأكيد`,"common.back":`رجوع`,"common.search":`بحث…`,"common.refresh":`تحديث`,"common.copy":`نسخ`,"common.copied":`تم النسخ!`,"common.connect":`اتصال`,"common.disconnect":`قطع الاتصال`,"common.yes":`نعم`,"common.no":`لا`,"common.new":`جديد`,"common.noData":`لا بيانات`,"common.today":`اليوم`,"common.name":`الاسم`,"sidebar.panoramica":`نظرة عامة`,"sidebar.integrazioni":`التكاملات`,"sidebar.ai":`الذكاء الاصطناعي`,"nav.dashboard":`لوحة التحكم`,"nav.chat":`المحادثة`,"nav.tasks":`المهام`,"nav.email":`البريد`,"nav.calendar":`التقويم`,"nav.contacts":`جهات الاتصال`,"nav.agents":`الوكلاء`,"nav.settings":`الإعدادات`,"chat.placeholder":`اكتب لـ NHA…`,"chat.thinking":`أفكر…`,"chat.newChat":`محادثة جديدة`,"email.inbox":`البريد الوارد`,"email.compose":`إنشاء`,"email.noEmails":`لا رسائل`,"calendar.title":`التقويم`,"calendar.newEvent":`حدث جديد`,"calendar.noEvents":`لا أحداث`,"tasks.title":`المهام`,"tasks.newTask":`مهمة جديدة`,"tasks.noTasks":`لا مهام`,"contacts.title":`جهات الاتصال`,"contacts.noContacts":`لا جهات اتصال`,"agents.title":`الوكلاء`,"agents.noAgents":`لا وكلاء`,"agents.orchestrator":`المنسق`,"agents.orchestratorSend":`إرسال للجميع`,"studio.title":`Studio`,"studio.run":`بدء المداولة`,"studio.running":`مداولة…`,"connectors.title":`الموصلات`,"connectors.triggers":`المشغلات`,"connectors.newWorkflow":`سير عمل جديد`,"settings.title":`الإعدادات`,"settings.language":`اللغة`,"settings.useLiara":`استخدام NHA Free`,"settings.liaraActivated":`✓ تم تفعيل Liara`,"settings.apiKeySet":`✓ مفتاح API مُعدَّل — أدخل مفتاحاً جديداً للتغيير`,"settings.saveProfile":`حفظ الملف الشخصي`,"settings.googleAccount":`حساب Google`,"settings.connectGoogle":`ربط Google`},hi:{"common.save":`सहेजें`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`रद्द करें`,"common.delete":`हटाएं`,"common.edit":`संपादित करें`,"common.add":`जोड़ें`,"common.loading":`लोड हो रहा है…`,"common.error":`त्रुटि`,"common.retry":`पुनः प्रयास करें`,"common.send":`भेजें`,"common.close":`बंद करें`,"common.confirm":`पुष्टि करें`,"common.back":`वापस`,"common.search":`खोजें…`,"common.refresh":`रीफ्रेश`,"common.copy":`कॉपी करें`,"common.copied":`कॉपी हो गया!`,"common.connect":`कनेक्ट करें`,"common.disconnect":`डिस्कनेक्ट करें`,"common.yes":`हाँ`,"common.no":`नहीं`,"common.new":`नया`,"common.noData":`कोई डेटा नहीं`,"common.today":`आज`,"common.name":`नाम`,"sidebar.panoramica":`अवलोकन`,"sidebar.integrazioni":`एकीकरण`,"sidebar.ai":`AI`,"nav.dashboard":`डैशबोर्ड`,"nav.chat":`चैट`,"nav.tasks":`कार्य`,"nav.email":`ईमेल`,"nav.calendar":`कैलेंडर`,"nav.contacts":`संपर्क`,"nav.agents":`एजेंट`,"nav.settings":`सेटिंग्स`,"chat.placeholder":`NHA को संदेश…`,"chat.thinking":`सोच रहा हूँ…`,"chat.newChat":`नई बातचीत`,"email.inbox":`इनबॉक्स`,"email.compose":`लिखें`,"email.noEmails":`कोई ईमेल नहीं`,"calendar.title":`कैलेंडर`,"calendar.newEvent":`नई घटना`,"calendar.noEvents":`कोई घटना नहीं`,"tasks.title":`कार्य`,"tasks.newTask":`नया कार्य`,"tasks.noTasks":`कोई कार्य नहीं`,"contacts.title":`संपर्क`,"contacts.noContacts":`कोई संपर्क नहीं`,"agents.title":`एजेंट`,"agents.noAgents":`कोई एजेंट नहीं`,"agents.orchestrator":`ऑर्केस्ट्रेटर`,"agents.orchestratorSend":`सभी को भेजें`,"studio.title":`Studio`,"studio.run":`विचार-विमर्श शुरू करें`,"studio.running":`विचार-विमर्श…`,"connectors.title":`कनेक्टर`,"connectors.triggers":`ट्रिगर`,"connectors.newWorkflow":`नया वर्कफ्लो`,"settings.title":`सेटिंग्स`,"settings.language":`भाषा`,"settings.useLiara":`NHA Free उपयोग करें`,"settings.liaraActivated":`✓ Liara सक्रिय`,"settings.apiKeySet":`✓ API key कॉन्फ़िगर — बदलने के लिए नई key डालें`,"settings.saveProfile":`प्रोफ़ाइल सहेजें`,"settings.googleAccount":`Google खाता`,"settings.connectGoogle":`Google कनेक्ट करें`},tr:{"common.save":`Kaydet`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`İptal`,"common.delete":`Sil`,"common.edit":`Düzenle`,"common.add":`Ekle`,"common.loading":`Yükleniyor…`,"common.error":`Hata`,"common.retry":`Tekrar dene`,"common.send":`Gönder`,"common.close":`Kapat`,"common.confirm":`Onayla`,"common.back":`Geri`,"common.search":`Ara…`,"common.refresh":`Yenile`,"common.copy":`Kopyala`,"common.copied":`Kopyalandı!`,"common.connect":`Bağlan`,"common.disconnect":`Bağlantıyı kes`,"common.yes":`Evet`,"common.no":`Hayır`,"common.new":`Yeni`,"common.noData":`Veri yok`,"common.today":`Bugün`,"common.name":`Ad`,"sidebar.panoramica":`Genel bakış`,"sidebar.integrazioni":`Entegrasyonlar`,"sidebar.ai":`YZ`,"nav.dashboard":`Gösterge paneli`,"nav.chat":`Sohbet`,"nav.tasks":`Görevler`,"nav.email":`E-posta`,"nav.calendar":`Takvim`,"nav.contacts":`Kişiler`,"nav.agents":`Ajanlar`,"nav.settings":`Ayarlar`,"chat.placeholder":`NHA'ya mesaj…`,"chat.thinking":`Düşünüyor…`,"chat.newChat":`Yeni sohbet`,"email.inbox":`Gelen kutusu`,"email.compose":`Oluştur`,"email.noEmails":`E-posta yok`,"calendar.title":`Takvim`,"calendar.newEvent":`Yeni etkinlik`,"calendar.noEvents":`Etkinlik yok`,"tasks.title":`Görevler`,"tasks.newTask":`Yeni görev`,"tasks.noTasks":`Görev yok`,"contacts.title":`Kişiler`,"contacts.noContacts":`Kişi yok`,"agents.title":`Ajanlar`,"agents.noAgents":`Ajan yok`,"agents.orchestrator":`Orkestratör`,"agents.orchestratorSend":`Hepsine gönder`,"studio.title":`Studio`,"studio.run":`Müzakereyi başlat`,"studio.running":`Müzakere ediliyor…`,"connectors.title":`Bağlayıcılar`,"connectors.triggers":`Tetikleyiciler`,"connectors.newWorkflow":`Yeni iş akışı`,"settings.title":`Ayarlar`,"settings.language":`Dil`,"settings.useLiara":`NHA Free kullan`,"settings.liaraActivated":`✓ Liara etkinleştirildi`,"settings.apiKeySet":`✓ API anahtarı yapılandırıldı — değiştirmek için yeni girin`,"settings.saveProfile":`Profili kaydet`,"settings.googleAccount":`Google hesabı`,"settings.connectGoogle":`Google'a bağlan`},sv:{"common.save":`Spara`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Avbryt`,"common.delete":`Ta bort`,"common.edit":`Redigera`,"common.add":`Lägg till`,"common.loading":`Laddar…`,"common.error":`Fel`,"common.retry":`Försök igen`,"common.send":`Skicka`,"common.close":`Stäng`,"common.confirm":`Bekräfta`,"common.back":`Tillbaka`,"common.search":`Sök…`,"common.refresh":`Uppdatera`,"common.copy":`Kopiera`,"common.copied":`Kopierat!`,"common.connect":`Anslut`,"common.disconnect":`Koppla från`,"common.yes":`Ja`,"common.no":`Nej`,"common.new":`Ny`,"common.noData":`Inga data`,"common.today":`Idag`,"common.name":`Namn`,"sidebar.panoramica":`Översikt`,"sidebar.integrazioni":`Integrationer`,"sidebar.ai":`AI`,"nav.dashboard":`Instrumentpanel`,"nav.chat":`Chatt`,"nav.tasks":`Uppgifter`,"nav.email":`E-post`,"nav.calendar":`Kalender`,"nav.contacts":`Kontakter`,"nav.agents":`Agenter`,"nav.settings":`Inställningar`,"chat.placeholder":`Meddelande till NHA…`,"chat.thinking":`Tänker…`,"chat.newChat":`Ny konversation`,"email.inbox":`Inkorgen`,"email.compose":`Skriv`,"email.noEmails":`Inga e-postmeddelanden`,"calendar.title":`Kalender`,"calendar.newEvent":`Ny händelse`,"calendar.noEvents":`Inga händelser`,"tasks.title":`Uppgifter`,"tasks.newTask":`Ny uppgift`,"tasks.noTasks":`Inga uppgifter`,"contacts.title":`Kontakter`,"contacts.noContacts":`Inga kontakter`,"agents.title":`Agenter`,"agents.noAgents":`Inga agenter`,"agents.orchestrator":`Orkestrator`,"agents.orchestratorSend":`Skicka till alla`,"studio.title":`Studio`,"studio.run":`Starta deliberation`,"studio.running":`Delibererar…`,"connectors.title":`Kopplingar`,"connectors.triggers":`Utlösare`,"connectors.newWorkflow":`Nytt arbetsflöde`,"settings.title":`Inställningar`,"settings.language":`Språk`,"settings.useLiara":`Använd NHA Free`,"settings.liaraActivated":`✓ Liara aktiverad`,"settings.apiKeySet":`✓ API-nyckel konfigurerad — ange en ny för att ändra`,"settings.saveProfile":`Spara profil`,"settings.googleAccount":`Google-konto`,"settings.connectGoogle":`Anslut Google`},da:{"common.save":`Gem`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Annuller`,"common.delete":`Slet`,"common.edit":`Rediger`,"common.add":`Tilføj`,"common.loading":`Indlæser…`,"common.error":`Fejl`,"common.retry":`Prøv igen`,"common.send":`Send`,"common.close":`Luk`,"common.confirm":`Bekræft`,"common.back":`Tilbage`,"common.search":`Søg…`,"common.refresh":`Opdater`,"common.copy":`Kopiér`,"common.copied":`Kopieret!`,"common.connect":`Tilslut`,"common.disconnect":`Afbryd`,"common.yes":`Ja`,"common.no":`Nej`,"common.new":`Ny`,"common.noData":`Ingen data`,"common.today":`I dag`,"common.name":`Navn`,"sidebar.panoramica":`Oversigt`,"sidebar.integrazioni":`Integrationer`,"sidebar.ai":`AI`,"nav.dashboard":`Dashboard`,"nav.chat":`Chat`,"nav.tasks":`Opgaver`,"nav.email":`E-mail`,"nav.calendar":`Kalender`,"nav.contacts":`Kontakter`,"nav.agents":`Agenter`,"nav.settings":`Indstillinger`,"chat.placeholder":`Besked til NHA…`,"chat.thinking":`Tænker…`,"chat.newChat":`Ny samtale`,"email.inbox":`Indbakke`,"email.compose":`Skriv`,"email.noEmails":`Ingen e-mails`,"calendar.title":`Kalender`,"calendar.newEvent":`Nyt arrangement`,"calendar.noEvents":`Ingen arrangementer`,"tasks.title":`Opgaver`,"tasks.newTask":`Ny opgave`,"tasks.noTasks":`Ingen opgaver`,"contacts.title":`Kontakter`,"contacts.noContacts":`Ingen kontakter`,"agents.title":`Agenter`,"agents.noAgents":`Ingen agenter`,"agents.orchestrator":`Orkestrering`,"agents.orchestratorSend":`Send til alle`,"studio.title":`Studio`,"studio.run":`Start deliberation`,"studio.running":`Delibererer…`,"connectors.title":`Forbindelser`,"connectors.triggers":`Udløsere`,"connectors.newWorkflow":`Nyt workflow`,"settings.title":`Indstillinger`,"settings.language":`Sprog`,"settings.useLiara":`Brug NHA Free`,"settings.liaraActivated":`✓ Liara aktiveret`,"settings.apiKeySet":`✓ API-nøgle konfigureret — indtast en ny for at ændre`,"settings.saveProfile":`Gem profil`,"settings.googleAccount":`Google-konto`,"settings.connectGoogle":`Tilslut Google`},fi:{"common.save":`Tallenna`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Peruuta`,"common.delete":`Poista`,"common.edit":`Muokkaa`,"common.add":`Lisää`,"common.loading":`Ladataan…`,"common.error":`Virhe`,"common.retry":`Yritä uudelleen`,"common.send":`Lähetä`,"common.close":`Sulje`,"common.confirm":`Vahvista`,"common.back":`Takaisin`,"common.search":`Hae…`,"common.refresh":`Päivitä`,"common.copy":`Kopioi`,"common.copied":`Kopioitu!`,"common.connect":`Yhdistä`,"common.disconnect":`Katkaise yhteys`,"common.yes":`Kyllä`,"common.no":`Ei`,"common.new":`Uusi`,"common.noData":`Ei tietoja`,"common.today":`Tänään`,"common.name":`Nimi`,"sidebar.panoramica":`Yleiskatsaus`,"sidebar.integrazioni":`Integraatiot`,"sidebar.ai":`AI`,"nav.dashboard":`Kojelauta`,"nav.chat":`Chat`,"nav.tasks":`Tehtävät`,"nav.email":`Sähköposti`,"nav.calendar":`Kalenteri`,"nav.contacts":`Yhteystiedot`,"nav.agents":`Agentit`,"nav.settings":`Asetukset`,"chat.placeholder":`Viesti NHA:lle…`,"chat.thinking":`Mietitään…`,"chat.newChat":`Uusi keskustelu`,"email.inbox":`Saapuneet`,"email.compose":`Kirjoita`,"email.noEmails":`Ei sähköposteja`,"calendar.title":`Kalenteri`,"calendar.newEvent":`Uusi tapahtuma`,"calendar.noEvents":`Ei tapahtumia`,"tasks.title":`Tehtävät`,"tasks.newTask":`Uusi tehtävä`,"tasks.noTasks":`Ei tehtäviä`,"contacts.title":`Yhteystiedot`,"contacts.noContacts":`Ei yhteystietoja`,"agents.title":`Agentit`,"agents.noAgents":`Ei agentteja`,"agents.orchestrator":`Orkestraattori`,"agents.orchestratorSend":`Lähetä kaikille`,"studio.title":`Studio`,"studio.run":`Aloita deliberaatio`,"studio.running":`Deliberaatio…`,"connectors.title":`Yhdistimet`,"connectors.triggers":`Laukaisijat`,"connectors.newWorkflow":`Uusi työnkulku`,"settings.title":`Asetukset`,"settings.language":`Kieli`,"settings.useLiara":`Käytä NHA Freeä`,"settings.liaraActivated":`✓ Liara aktivoitu`,"settings.apiKeySet":`✓ API-avain määritetty — syötä uusi vaihtaaksesi`,"settings.saveProfile":`Tallenna profiili`,"settings.googleAccount":`Google-tili`,"settings.connectGoogle":`Yhdistä Google`},cs:{"common.save":`Uložit`,"common.saving":`…`,"common.saved":`✓`,"common.cancel":`Zrušit`,"common.delete":`Smazat`,"common.edit":`Upravit`,"common.add":`Přidat`,"common.loading":`Načítání…`,"common.error":`Chyba`,"common.retry":`Zkusit znovu`,"common.send":`Odeslat`,"common.close":`Zavřít`,"common.confirm":`Potvrdit`,"common.back":`Zpět`,"common.search":`Hledat…`,"common.refresh":`Obnovit`,"common.copy":`Kopírovat`,"common.copied":`Zkopírováno!`,"common.connect":`Připojit`,"common.disconnect":`Odpojit`,"common.yes":`Ano`,"common.no":`Ne`,"common.new":`Nový`,"common.noData":`Žádná data`,"common.today":`Dnes`,"common.name":`Název`,"sidebar.panoramica":`Přehled`,"sidebar.integrazioni":`Integrace`,"sidebar.ai":`AI`,"nav.dashboard":`Přehled`,"nav.chat":`Chat`,"nav.tasks":`Úkoly`,"nav.email":`E-mail`,"nav.calendar":`Kalendář`,"nav.contacts":`Kontakty`,"nav.agents":`Agenti`,"nav.settings":`Nastavení`,"chat.placeholder":`Zpráva pro NHA…`,"chat.thinking":`Přemýšlím…`,"chat.newChat":`Nová konverzace`,"email.inbox":`Doručená pošta`,"email.compose":`Napsat`,"email.noEmails":`Žádné e-maily`,"calendar.title":`Kalendář`,"calendar.newEvent":`Nová událost`,"calendar.noEvents":`Žádné události`,"tasks.title":`Úkoly`,"tasks.newTask":`Nový úkol`,"tasks.noTasks":`Žádné úkoly`,"contacts.title":`Kontakty`,"contacts.noContacts":`Žádné kontakty`,"agents.title":`Agenti`,"agents.noAgents":`Žádní agenti`,"agents.orchestrator":`Orchestrátor`,"agents.orchestratorSend":`Odeslat všem`,"studio.title":`Studio`,"studio.run":`Zahájit deliberaci`,"studio.running":`Deliberace…`,"connectors.title":`Konektory`,"connectors.triggers":`Spouštěče`,"connectors.newWorkflow":`Nový workflow`,"settings.title":`Nastavení`,"settings.language":`Jazyk`,"settings.useLiara":`Použít NHA Free`,"settings.liaraActivated":`✓ Liara aktivována`,"settings.apiKeySet":`✓ API klíč nastaven — zadejte nový pro změnu`,"settings.saveProfile":`Uložit profil`,"settings.googleAccount":`Účet Google`,"settings.connectGoogle":`Připojit Google`}};function fe(e,t,n){let r=(de[e]??ue)[t]??ue[t]??t;if(n)for(let[e,t]of Object.entries(n))r=r.replace(RegExp(`\\{${e}\\}`,`g`),String(t));return r}function A(){let e=ne(e=>e.config?.lang??`en`);return(0,_.useMemo)(()=>(t,n)=>fe(e,t,n),[e])}var j={root:`_root_hhcfn_1`,main:`_main_hhcfn_7`,topbar:`_topbar_hhcfn_15`,burger:`_burger_hhcfn_26`,viewTitle:`_viewTitle_hhcfn_45`,content:`_content_hhcfn_53`,wsIndicator:`_wsIndicator_hhcfn_62`,wsDot:`_wsDot_hhcfn_70`,wsDotOnline:`_wsDotOnline_hhcfn_78`,wsOnlinePulse:`_wsOnlinePulse_hhcfn_1`,wsDotConnecting:`_wsDotConnecting_hhcfn_84`,wsConnectingBlink:`_wsConnectingBlink_hhcfn_1`,wsDotOffline:`_wsDotOffline_hhcfn_89`,wsDotRestart:`_wsDotRestart_hhcfn_94`,restartPulse:`_restartPulse_hhcfn_1`,restartBanner:`_restartBanner_hhcfn_99`,wsLabel:`_wsLabel_hhcfn_126`},pe={dashboard:`dashboard.title`,chat:`chat.placeholder`,studio:`studio.title`,webcraft:`webcraft.title`,collab:`collab.title`,agents:`agents.title`,connectors:`connectors.title`,calendar:`calendar.title`,tasks:`tasks.title`,contacts:`contacts.title`,notes:`notes.title`,reminders:`reminders.title`,birthdays:`birthdays.title`,plan:`plan.title`,drive:`drive.title`,onedrive:`onedrive.title`,mstodo:`mstodo.title`,github:`github.title`,slack:`slack.title`,notion:`notion.title`,maps:`maps.title`,cron:`cron.title`,screen:`screen.title`,settings:`settings.title`},me={dashboard:`Dashboard`,chat:`Chat`,studio:`Studio`,webcraft:`WebCraft`,collab:`Alexandria`,agents:`Agents`,connectors:`Connectors`,email:`Email`,calendar:`Calendar`,tasks:`Tasks`,contacts:`Contacts`,notes:`Notes`,reminders:`Reminders`,birthdays:`Birthdays`,plan:`Daily Plan`,drive:`Drive`,onedrive:`OneDrive`,mstodo:`MS Todo`,github:`GitHub`,slack:`Slack`,notion:`Notion`,maps:`Maps`,cron:`Cron`,screen:`Screen`,settings:`Settings`};function he({children:e}){let{activeView:t,toggleSidebar:n,setConfig:r}=ne(),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(``),c=le(e=>{e.type===`version`&&T(`/api/version/check`).catch(()=>{})}),l=A();(0,_.useEffect)(()=>{let e=localStorage.getItem(`nha_updated_to`);e&&T(`/api/health`).then(t=>{let n=String(t?.version||``);n&&(n===e||n.localeCompare(e,void 0,{numeric:!0})>=0?(localStorage.removeItem(`nha_updated_to`),a(!1)):(a(!0),s(e)))}).catch(()=>{})},[]),(0,_.useEffect)(()=>{T(`/api/config`).then(e=>{e&&r(e)}).catch(()=>{})},[r]);let u=pe[t],d=u?l(u):me[t]??t;return(0,O.jsxs)(`div`,{className:j.root,children:[(0,O.jsx)(ce,{}),(0,O.jsxs)(`div`,{className:j.main,children:[(0,O.jsxs)(`header`,{className:j.topbar,children:[(0,O.jsxs)(`button`,{className:j.burger,onClick:n,"aria-label":`Menu`,children:[(0,O.jsx)(`span`,{}),(0,O.jsx)(`span`,{}),(0,O.jsx)(`span`,{})]}),(0,O.jsx)(`span`,{className:j.viewTitle,children:d}),(0,O.jsx)(`span`,{style:{flex:1}}),i?(0,O.jsxs)(`div`,{className:j.restartBanner,title:`v${o} installed — restart to apply`,children:[(0,O.jsx)(`span`,{className:`${j.wsDot} ${j.wsDotRestart}`}),(0,O.jsxs)(`span`,{className:j.wsLabel,children:[`Restart required (v`,o,`)`]})]}):(0,O.jsxs)(`div`,{className:j.wsIndicator,title:l(c===`connected`?`common.connected`:c===`connecting`?`common.loading`:`common.disconnected`),children:[(0,O.jsx)(`span`,{className:`${j.wsDot} ${c===`connected`?j.wsDotOnline:c===`connecting`?j.wsDotConnecting:j.wsDotOffline}`}),(0,O.jsx)(`span`,{className:j.wsLabel,children:l(c===`connected`?`common.connected`:c===`connecting`?`common.loading`:`common.disconnected`)})]})]}),(0,O.jsx)(`main`,{className:j.content,id:`main-content`,children:e})]})]})}function ge(e){return e.replace(/<tool_call>[\s\S]*?<\/tool_call>/g,``).replace(/<tool_response>[\s\S]*?<\/tool_response>/g,``).replace(/<\/?tool_call>/g,``).replace(/<\/?tool_response>/g,``).replace(/^\[(?:Searching|Fetching|Raccolta dati web)[^\]]*\]\n?/gm,``)}function _e(e){return e.replace(/^(#{1,6})\n[ \t]*(\S[^\n]*)$/gm,`$1 $2`).replace(/\n{3,}/g,`
|
|
11
11
|
|
|
12
12
|
`).trim()}function ve(e){let t=e.split(`
|
|
13
13
|
`),n=[],r=e=>e.trimStart().startsWith(`|`),i=e=>{let t=e.trim();return/^[|\-: ]+$/.test(t)&&t.includes(`-`)&&t.includes(`|`)},a=e=>{let t=e.trim();return t===``||/^#{1,6} /.test(t)||t.startsWith("```")||/^>\s/.test(t)},o=0;for(;o<t.length;){let e=t[o];if(!r(e)){n.push(e),o++;continue}let s=[e];for(o++;o<t.length;){let e=t[o];if(r(e)||i(e))s.push(e),o++;else if(!a(e))s[s.length-1]+=` `+e.trim(),o++;else break}for(let e of s)n.push(e)}return n.join(`
|
|
@@ -627,9 +627,9 @@ Be concise. Highlight what each agent contributed uniquely. Give your own synthe
|
|
|
627
627
|
`:`
|
|
628
628
|
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh())),d.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!!(n&&r&&t)&&this._areCoordsInSelection(t,n,r)}isCellInSelection(e,t){let n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!(!n||!r)&&this._areCoordsInSelection([e,t],n,r)}_areCoordsInSelection(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){let n=this._linkifier.currentLink?.link?.range;if(n)return this._model.selectionStart=[n.start.x-1,n.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(n,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let r=this._getMouseBufferCoords(e);return!!r&&(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,a.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),t/=50,t/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return d.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(e.button!==2||!this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener(`mousemove`,this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener(`mouseup`,this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener(`mousemove`,this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener(`mouseup`,this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(d.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){let e=n.lines.get(this._model.selectionEnd[1]);e&&e.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&t[0]!==void 0&&t[1]!==void 0){let e=(0,o.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);n?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)}_fireOnSelectionChange(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((e=>this._handleTrim(e)))}_convertViewportColToCharacterIndex(e,t){let n=t;for(let r=0;t>=r;r++){let i=e.loadCell(r,this._workCell).getChars().length;this._workCell.getWidth()===0?n--:i>1&&t!==r&&(n+=i-1)}return n}setSelection(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,n=!0,r=!0){if(e[0]>=this._bufferService.cols)return;let i=this._bufferService.buffer,a=i.lines.get(e[1]);if(!a)return;let o=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(a,e[0]),c=s,l=e[0]-s,u=0,d=0,f=0,p=0;if(o.charAt(s)===` `){for(;s>0&&o.charAt(s-1)===` `;)s--;for(;c<o.length&&o.charAt(c+1)===` `;)c++}else{let t=e[0],n=e[0];a.getWidth(t)===0&&(u++,t--),a.getWidth(n)===2&&(d++,n++);let r=a.getString(n).length;for(r>1&&(p+=r-1,c+=r-1);t>0&&s>0&&!this._isCharWordSeparator(a.loadCell(t-1,this._workCell));){a.loadCell(t-1,this._workCell);let e=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,t--):e>1&&(f+=e-1,s-=e-1),s--,t--}for(;n<a.length&&c+1<o.length&&!this._isCharWordSeparator(a.loadCell(n+1,this._workCell));){a.loadCell(n+1,this._workCell);let e=this._workCell.getChars().length;this._workCell.getWidth()===2?(d++,n++):e>1&&(p+=e-1,c+=e-1),c++,n++}}c++;let m=s+l-u+f,h=Math.min(this._bufferService.cols,c-s+u+d-f-p);if(t||o.slice(s,c).trim()!==``){if(n&&m===0&&a.getCodePoint(0)!==32){let t=i.lines.get(e[1]-1);if(t&&a.isWrapped&&t.getCodePoint(this._bufferService.cols-1)!==32){let t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){let e=this._bufferService.cols-t.start;m-=e,h+=e}}}if(r&&m+h===this._bufferService.cols&&a.getCodePoint(this._bufferService.cols-1)!==32){let t=i.lines.get(e[1]+1);if(t?.isWrapped&&t.getCodePoint(0)!==32){let t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(h+=t.length)}}return{start:m,length:h}}}_selectWordAt(e,t){let n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let n=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}_isCharWordSeparator(e){return e.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),n={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(n,this._bufferService.cols)}};t.SelectionService=g=r([i(3,m.IBufferService),i(4,m.ICoreService),i(5,c.IMouseService),i(6,m.IOptionsService),i(7,c.IRenderService),i(8,c.ICoreBrowserService)],g)},4725:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;let r=n(8343);t.ICharSizeService=(0,r.createDecorator)(`CharSizeService`),t.ICoreBrowserService=(0,r.createDecorator)(`CoreBrowserService`),t.IMouseService=(0,r.createDecorator)(`MouseService`),t.IRenderService=(0,r.createDecorator)(`RenderService`),t.ISelectionService=(0,r.createDecorator)(`SelectionService`),t.ICharacterJoinerService=(0,r.createDecorator)(`CharacterJoinerService`),t.IThemeService=(0,r.createDecorator)(`ThemeService`)},6731:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;let a=n(7239),o=n(8055),s=n(8460),c=n(844),l=n(2585),u=o.css.toColor(`#ffffff`),d=o.css.toColor(`#000000`),f=o.css.toColor(`#ffffff`),p=o.css.toColor(`#000000`),m={css:`rgba(255, 255, 255, 0.3)`,rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{let e=[o.css.toColor(`#2e3436`),o.css.toColor(`#cc0000`),o.css.toColor(`#4e9a06`),o.css.toColor(`#c4a000`),o.css.toColor(`#3465a4`),o.css.toColor(`#75507b`),o.css.toColor(`#06989a`),o.css.toColor(`#d3d7cf`),o.css.toColor(`#555753`),o.css.toColor(`#ef2929`),o.css.toColor(`#8ae234`),o.css.toColor(`#fce94f`),o.css.toColor(`#729fcf`),o.css.toColor(`#ad7fa8`),o.css.toColor(`#34e2e2`),o.css.toColor(`#eeeeec`)],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],a=t[n%6];e.push({css:o.channels.toCss(r,i,a),rgba:o.channels.toRgba(r,i,a)})}for(let t=0;t<24;t++){let n=8+10*t;e.push({css:o.channels.toCss(n,n,n),rgba:o.channels.toRgba(n,n,n)})}return e})());let h=t.ThemeService=class extends c.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new a.ColorContrastCache,this._halfContrastCache=new a.ColorContrastCache,this._onChangeColors=this.register(new s.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:u,background:d,cursor:f,cursorAccent:p,selectionForeground:void 0,selectionBackgroundTransparent:m,selectionBackgroundOpaque:o.color.blend(d,m),selectionInactiveBackgroundTransparent:m,selectionInactiveBackgroundOpaque:o.color.blend(d,m),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange(`minimumContrastRatio`,(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange(`theme`,(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(e={}){let n=this._colors;if(n.foreground=g(e.foreground,u),n.background=g(e.background,d),n.cursor=g(e.cursor,f),n.cursorAccent=g(e.cursorAccent,p),n.selectionBackgroundTransparent=g(e.selectionBackground,m),n.selectionBackgroundOpaque=o.color.blend(n.background,n.selectionBackgroundTransparent),n.selectionInactiveBackgroundTransparent=g(e.selectionInactiveBackground,n.selectionBackgroundTransparent),n.selectionInactiveBackgroundOpaque=o.color.blend(n.background,n.selectionInactiveBackgroundTransparent),n.selectionForeground=e.selectionForeground?g(e.selectionForeground,o.NULL_COLOR):void 0,n.selectionForeground===o.NULL_COLOR&&(n.selectionForeground=void 0),o.color.isOpaque(n.selectionBackgroundTransparent)&&(n.selectionBackgroundTransparent=o.color.opacity(n.selectionBackgroundTransparent,.3)),o.color.isOpaque(n.selectionInactiveBackgroundTransparent)&&(n.selectionInactiveBackgroundTransparent=o.color.opacity(n.selectionInactiveBackgroundTransparent,.3)),n.ansi=t.DEFAULT_ANSI_COLORS.slice(),n.ansi[0]=g(e.black,t.DEFAULT_ANSI_COLORS[0]),n.ansi[1]=g(e.red,t.DEFAULT_ANSI_COLORS[1]),n.ansi[2]=g(e.green,t.DEFAULT_ANSI_COLORS[2]),n.ansi[3]=g(e.yellow,t.DEFAULT_ANSI_COLORS[3]),n.ansi[4]=g(e.blue,t.DEFAULT_ANSI_COLORS[4]),n.ansi[5]=g(e.magenta,t.DEFAULT_ANSI_COLORS[5]),n.ansi[6]=g(e.cyan,t.DEFAULT_ANSI_COLORS[6]),n.ansi[7]=g(e.white,t.DEFAULT_ANSI_COLORS[7]),n.ansi[8]=g(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),n.ansi[9]=g(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),n.ansi[10]=g(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),n.ansi[11]=g(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),n.ansi[12]=g(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),n.ansi[13]=g(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),n.ansi[14]=g(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),n.ansi[15]=g(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){let r=Math.min(n.ansi.length-16,e.extendedAnsi.length);for(let i=0;i<r;i++)n.ansi[i+16]=g(e.extendedAnsi[i],t.DEFAULT_ANSI_COLORS[i+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e!==void 0)switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}else for(let e=0;e<this._restoreColors.ansi.length;++e)this._colors.ansi[e]=this._restoreColors.ansi[e]}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function g(e,t){if(e!==void 0)try{return o.css.toColor(e)}catch{}return t}t.ThemeService=h=r([i(0,l.IOptionsService)],h)},6349:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CircularList=void 0;let r=n(8460),i=n(844);class a extends i.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new r.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new r.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new r.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=Array(e);for(let n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw Error(`Can only recycle when the buffer is full`);return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...n){if(t){for(let n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let t=this._length-1;t>=e;t--)this._array[this._getCyclicIndex(t+n.length)]=this._array[this._getCyclicIndex(t)];for(let t=0;t<n.length;t++)this._array[this._getCyclicIndex(e+t)]=n[t];if(n.length&&this.onInsertEmitter.fire({index:e,amount:n.length}),this._length+n.length>this._maxLength){let e=this._length+n.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=n.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw Error(`start argument out of range`);if(e+n<0)throw Error(`Cannot shift elements in list beyond index 0`);if(n>0){for(let r=t-1;r>=0;r--)this.set(e+r+n,this.get(e+r));let r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r<t;r++)this.set(e+r+n,this.get(e+r))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}}t.CircularList=a},1439:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.clone=void 0,t.clone=function e(t,n=5){if(typeof t!=`object`)return t;let r=Array.isArray(t)?[]:{};for(let i in t)r[i]=n<=1?t[i]:t[i]&&e(t[i],n-1);return r}},8055:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;let r=n(6114),i=0,a=0,o=0,s=0;var c,l,u,d,f;function p(e){let t=e.toString(16);return t.length<2?`0`+t:t}function m(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}t.NULL_COLOR={css:`#00000000`,rgba:0},function(e){e.toCss=function(e,t,n,r){return r===void 0?`#${p(e)}${p(t)}${p(n)}`:`#${p(e)}${p(t)}${p(n)}${p(r)}`},e.toRgba=function(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}}(c||(t.channels=c={})),function(e){function t(e,t){return s=Math.round(255*t),[i,a,o]=f.toChannels(e.rgba),{css:c.toCss(i,a,o,s),rgba:c.toRgba(i,a,o,s)}}e.blend=function(e,t){if(s=(255&t.rgba)/255,s===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,l=t.rgba>>8&255,u=e.rgba>>24&255,d=e.rgba>>16&255,f=e.rgba>>8&255;return i=u+Math.round((n-u)*s),a=d+Math.round((r-d)*s),o=f+Math.round((l-f)*s),{css:c.toCss(i,a,o),rgba:c.toRgba(i,a,o)}},e.isOpaque=function(e){return(255&e.rgba)==255},e.ensureContrastRatio=function(e,t,n){let r=f.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return f.toColor(r>>24&255,r>>16&255,r>>8&255)},e.opaque=function(e){let t=(255|e.rgba)>>>0;return[i,a,o]=f.toChannels(t),{css:c.toCss(i,a,o),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,n){return s=255&e.rgba,t(e,s*n/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(l||(t.color=l={})),function(e){let t,n;if(!r.isNode){let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return i=parseInt(e.slice(1,2).repeat(2),16),a=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),f.toColor(i,a,o);case 5:return i=parseInt(e.slice(1,2).repeat(2),16),a=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),s=parseInt(e.slice(4,5).repeat(2),16),f.toColor(i,a,o,s);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return i=parseInt(r[1]),a=parseInt(r[2]),o=parseInt(r[3]),s=Math.round(255*(r[5]===void 0?1:parseFloat(r[5]))),f.toColor(i,a,o,s);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[i,a,o,s]=t.getImageData(0,0,1,1).data,s!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:c.toRgba(i,a,o,s),css:e}}}(u||(t.css=u={})),function(e){function t(e,t,n){let r=e/255,i=t/255,a=n/255;return .2126*(r<=.03928?r/12.92:((r+.055)/1.055)**2.4)+.7152*(i<=.03928?i/12.92:((i+.055)/1.055)**2.4)+.0722*(a<=.03928?a/12.92:((a+.055)/1.055)**2.4)}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(d||(t.rgb=d={})),function(e){function t(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=m(d.relativeLuminance2(o,s,c),d.relativeLuminance2(r,i,a));for(;l<n&&(o>0||s>0||c>0);)o-=Math.max(0,Math.ceil(.1*o)),s-=Math.max(0,Math.ceil(.1*s)),c-=Math.max(0,Math.ceil(.1*c)),l=m(d.relativeLuminance2(o,s,c),d.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}function n(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=m(d.relativeLuminance2(o,s,c),d.relativeLuminance2(r,i,a));for(;l<n&&(o<255||s<255||c<255);)o=Math.min(255,o+Math.ceil(.1*(255-o))),s=Math.min(255,s+Math.ceil(.1*(255-s))),c=Math.min(255,c+Math.ceil(.1*(255-c))),l=m(d.relativeLuminance2(o,s,c),d.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.ensureContrastRatio=function(e,r,i){let a=d.relativeLuminance(e>>8),o=d.relativeLuminance(r>>8);if(m(a,o)<i){if(o<a){let o=t(e,r,i),s=m(a,d.relativeLuminance(o>>8));if(s<i){let t=n(e,r,i);return s>m(a,d.relativeLuminance(t>>8))?o:t}return o}let s=n(e,r,i),c=m(a,d.relativeLuminance(s>>8));if(c<i){let n=t(e,r,i);return c>m(a,d.relativeLuminance(n>>8))?s:n}return s}},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n,r){return{css:c.toCss(e,t,n,r),rgba:c.toRgba(e,t,n,r)}}}(f||(t.rgba=f={})),t.toPaddedHex=p,t.contrastRatio=m},8969:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CoreTerminal=void 0;let r=n(844),i=n(2585),a=n(4348),o=n(7866),s=n(744),c=n(7302),l=n(6975),u=n(8460),d=n(1753),f=n(1480),p=n(7994),m=n(9282),h=n(5435),g=n(5981),_=n(2660),v=!1;class y extends r.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new u.EventEmitter),this._onScroll.event((e=>{var t;(t=this._onScrollApi)==null||t.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}constructor(e){super(),this._windowsWrappingHeuristics=this.register(new r.MutableDisposable),this._onBinary=this.register(new u.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new u.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new u.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new u.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new u.EventEmitter),this._instantiationService=new a.InstantiationService,this.optionsService=this.register(new c.OptionsService(e)),this._instantiationService.setService(i.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(s.BufferService)),this._instantiationService.setService(i.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(o.LogService)),this._instantiationService.setService(i.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(l.CoreService)),this._instantiationService.setService(i.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(d.CoreMouseService)),this._instantiationService.setService(i.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(f.UnicodeService)),this._instantiationService.setService(i.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(p.CharsetService),this._instantiationService.setService(i.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(_.OscLinkService),this._instantiationService.setService(i.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new h.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,u.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,u.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,u.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,u.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange([`windowsMode`,`windowsPty`],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new g.WriteBuffer(((e,t)=>this._inputHandler.parse(e,t)))),this.register((0,u.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=i.LogLevelEnum.WARN&&!v&&(this._logService.warn(`writeSync is unreliable and will be removed soon.`),v=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,s.MINIMUM_COLS),t=Math.max(t,s.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,n){this._bufferService.scrollLines(e,t,n)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend===`conpty`&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(m.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:`H`},(()=>((0,m.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,r.toDisposable)((()=>{for(let t of e)t.dispose()}))}}}t.CoreTerminal=y},8460:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed){for(let t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)}}}),this._event}fire(e,t){let n=[];for(let e=0;e<this._listeners.length;e++)n.push(this._listeners[e]);for(let r=0;r<n.length;r++)n[r].call(void 0,e,t)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},t.forwardEvent=function(e,t){return e((e=>t.fire(e)))}},5435:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;let a=n(2584),o=n(7116),s=n(2015),c=n(844),l=n(482),u=n(8437),d=n(8460),f=n(643),p=n(511),m=n(3734),h=n(2585),g=n(6242),_=n(6351),v=n(5941),y={"(":0,")":1,"*":2,"+":3,"-":1,".":2},b=131072;function x(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var S;(function(e){e[e.GET_WIN_SIZE_PIXELS=0]=`GET_WIN_SIZE_PIXELS`,e[e.GET_CELL_SIZE_PIXELS=1]=`GET_CELL_SIZE_PIXELS`})(S||(t.WindowsOptionsReportType=S={}));let C=0;class w extends c.Disposable{getAttrData(){return this._curAttrData}constructor(e,t,n,r,i,c,f,m,h=new s.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=n,this._logService=r,this._optionsService=i,this._oscLinkService=c,this._coreMouseService=f,this._unicodeService=m,this._parser=h,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new l.StringToUtf32,this._utf8Decoder=new l.Utf8ToUtf32,this._workCell=new p.CellData,this._windowTitle=``,this._iconName=``,this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new d.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new d.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new d.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new d.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new d.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new d.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new d.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new d.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new d.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new d.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new d.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new d.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new ee(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._parser.setCsiHandlerFallback(((e,t)=>{this._logService.debug(`Unknown CSI code: `,{identifier:this._parser.identToString(e),params:t.toArray()})})),this._parser.setEscHandlerFallback((e=>{this._logService.debug(`Unknown ESC code: `,{identifier:this._parser.identToString(e)})})),this._parser.setExecuteHandlerFallback((e=>{this._logService.debug(`Unknown EXECUTE code: `,{code:e})})),this._parser.setOscHandlerFallback(((e,t,n)=>{this._logService.debug(`Unknown OSC code: `,{identifier:e,action:t,data:n})})),this._parser.setDcsHandlerFallback(((e,t,n)=>{t===`HOOK`&&(n=n.toArray()),this._logService.debug(`Unknown DCS code: `,{identifier:this._parser.identToString(e),action:t,payload:n})})),this._parser.setPrintHandler(((e,t,n)=>this.print(e,t,n))),this._parser.registerCsiHandler({final:`@`},(e=>this.insertChars(e))),this._parser.registerCsiHandler({intermediates:` `,final:`@`},(e=>this.scrollLeft(e))),this._parser.registerCsiHandler({final:`A`},(e=>this.cursorUp(e))),this._parser.registerCsiHandler({intermediates:` `,final:`A`},(e=>this.scrollRight(e))),this._parser.registerCsiHandler({final:`B`},(e=>this.cursorDown(e))),this._parser.registerCsiHandler({final:`C`},(e=>this.cursorForward(e))),this._parser.registerCsiHandler({final:`D`},(e=>this.cursorBackward(e))),this._parser.registerCsiHandler({final:`E`},(e=>this.cursorNextLine(e))),this._parser.registerCsiHandler({final:`F`},(e=>this.cursorPrecedingLine(e))),this._parser.registerCsiHandler({final:`G`},(e=>this.cursorCharAbsolute(e))),this._parser.registerCsiHandler({final:`H`},(e=>this.cursorPosition(e))),this._parser.registerCsiHandler({final:`I`},(e=>this.cursorForwardTab(e))),this._parser.registerCsiHandler({final:`J`},(e=>this.eraseInDisplay(e,!1))),this._parser.registerCsiHandler({prefix:`?`,final:`J`},(e=>this.eraseInDisplay(e,!0))),this._parser.registerCsiHandler({final:`K`},(e=>this.eraseInLine(e,!1))),this._parser.registerCsiHandler({prefix:`?`,final:`K`},(e=>this.eraseInLine(e,!0))),this._parser.registerCsiHandler({final:`L`},(e=>this.insertLines(e))),this._parser.registerCsiHandler({final:`M`},(e=>this.deleteLines(e))),this._parser.registerCsiHandler({final:`P`},(e=>this.deleteChars(e))),this._parser.registerCsiHandler({final:`S`},(e=>this.scrollUp(e))),this._parser.registerCsiHandler({final:`T`},(e=>this.scrollDown(e))),this._parser.registerCsiHandler({final:`X`},(e=>this.eraseChars(e))),this._parser.registerCsiHandler({final:`Z`},(e=>this.cursorBackwardTab(e))),this._parser.registerCsiHandler({final:"`"},(e=>this.charPosAbsolute(e))),this._parser.registerCsiHandler({final:`a`},(e=>this.hPositionRelative(e))),this._parser.registerCsiHandler({final:`b`},(e=>this.repeatPrecedingCharacter(e))),this._parser.registerCsiHandler({final:`c`},(e=>this.sendDeviceAttributesPrimary(e))),this._parser.registerCsiHandler({prefix:`>`,final:`c`},(e=>this.sendDeviceAttributesSecondary(e))),this._parser.registerCsiHandler({final:`d`},(e=>this.linePosAbsolute(e))),this._parser.registerCsiHandler({final:`e`},(e=>this.vPositionRelative(e))),this._parser.registerCsiHandler({final:`f`},(e=>this.hVPosition(e))),this._parser.registerCsiHandler({final:`g`},(e=>this.tabClear(e))),this._parser.registerCsiHandler({final:`h`},(e=>this.setMode(e))),this._parser.registerCsiHandler({prefix:`?`,final:`h`},(e=>this.setModePrivate(e))),this._parser.registerCsiHandler({final:`l`},(e=>this.resetMode(e))),this._parser.registerCsiHandler({prefix:`?`,final:`l`},(e=>this.resetModePrivate(e))),this._parser.registerCsiHandler({final:`m`},(e=>this.charAttributes(e))),this._parser.registerCsiHandler({final:`n`},(e=>this.deviceStatus(e))),this._parser.registerCsiHandler({prefix:`?`,final:`n`},(e=>this.deviceStatusPrivate(e))),this._parser.registerCsiHandler({intermediates:`!`,final:`p`},(e=>this.softReset(e))),this._parser.registerCsiHandler({intermediates:` `,final:`q`},(e=>this.setCursorStyle(e))),this._parser.registerCsiHandler({final:`r`},(e=>this.setScrollRegion(e))),this._parser.registerCsiHandler({final:`s`},(e=>this.saveCursor(e))),this._parser.registerCsiHandler({final:`t`},(e=>this.windowOptions(e))),this._parser.registerCsiHandler({final:`u`},(e=>this.restoreCursor(e))),this._parser.registerCsiHandler({intermediates:`'`,final:`}`},(e=>this.insertColumns(e))),this._parser.registerCsiHandler({intermediates:`'`,final:`~`},(e=>this.deleteColumns(e))),this._parser.registerCsiHandler({intermediates:`"`,final:`q`},(e=>this.selectProtected(e))),this._parser.registerCsiHandler({intermediates:`$`,final:`p`},(e=>this.requestMode(e,!0))),this._parser.registerCsiHandler({prefix:`?`,intermediates:`$`,final:`p`},(e=>this.requestMode(e,!1))),this._parser.setExecuteHandler(a.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(a.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(a.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(a.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(a.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(a.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(a.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(a.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(a.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(a.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(a.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(a.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new g.OscHandler((e=>(this.setTitle(e),this.setIconName(e),!0)))),this._parser.registerOscHandler(1,new g.OscHandler((e=>this.setIconName(e)))),this._parser.registerOscHandler(2,new g.OscHandler((e=>this.setTitle(e)))),this._parser.registerOscHandler(4,new g.OscHandler((e=>this.setOrReportIndexedColor(e)))),this._parser.registerOscHandler(8,new g.OscHandler((e=>this.setHyperlink(e)))),this._parser.registerOscHandler(10,new g.OscHandler((e=>this.setOrReportFgColor(e)))),this._parser.registerOscHandler(11,new g.OscHandler((e=>this.setOrReportBgColor(e)))),this._parser.registerOscHandler(12,new g.OscHandler((e=>this.setOrReportCursorColor(e)))),this._parser.registerOscHandler(104,new g.OscHandler((e=>this.restoreIndexedColor(e)))),this._parser.registerOscHandler(110,new g.OscHandler((e=>this.restoreFgColor(e)))),this._parser.registerOscHandler(111,new g.OscHandler((e=>this.restoreBgColor(e)))),this._parser.registerOscHandler(112,new g.OscHandler((e=>this.restoreCursorColor(e)))),this._parser.registerEscHandler({final:`7`},(()=>this.saveCursor())),this._parser.registerEscHandler({final:`8`},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:`D`},(()=>this.index())),this._parser.registerEscHandler({final:`E`},(()=>this.nextLine())),this._parser.registerEscHandler({final:`H`},(()=>this.tabSet())),this._parser.registerEscHandler({final:`M`},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:`=`},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:`>`},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:`c`},(()=>this.fullReset())),this._parser.registerEscHandler({final:`n`},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:`o`},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:`|`},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:`}`},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:`~`},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:`%`,final:`@`},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:`%`,final:`G`},(()=>this.selectDefaultCharset()));for(let e in o.CHARSETS)this._parser.registerEscHandler({intermediates:`(`,final:e},(()=>this.selectCharset(`(`+e))),this._parser.registerEscHandler({intermediates:`)`,final:e},(()=>this.selectCharset(`)`+e))),this._parser.registerEscHandler({intermediates:`*`,final:e},(()=>this.selectCharset(`*`+e))),this._parser.registerEscHandler({intermediates:`+`,final:e},(()=>this.selectCharset(`+`+e))),this._parser.registerEscHandler({intermediates:`-`,final:e},(()=>this.selectCharset(`-`+e))),this._parser.registerEscHandler({intermediates:`.`,final:e},(()=>this.selectCharset(`.`+e))),this._parser.registerEscHandler({intermediates:`/`,final:e},(()=>this.selectCharset(`/`+e)));this._parser.registerEscHandler({intermediates:`#`,final:`8`},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((e=>(this._logService.error(`Parsing error: `,e),e))),this._parser.registerDcsHandler({intermediates:`$`,final:`q`},new _.DcsHandler(((e,t)=>this.requestStatusString(e,t))))}_preserveStack(e,t,n,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=h.LogLevelEnum.WARN&&Promise.race([e,new Promise(((e,t)=>setTimeout((()=>t(`#SLOW_TIMEOUT`)),5e3)))]).catch((e=>{if(e!==`#SLOW_TIMEOUT`)throw e;console.warn(`async parser handler taking longer than 5000 ms`)}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let n,r=this._activeBuffer.x,i=this._activeBuffer.y,a=0,o=this._parseStack.paused;if(o){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>b&&(a=this._parseStack.position+b)}if(this._logService.logLevel<=h.LogLevelEnum.DEBUG&&this._logService.debug(`parsing data`+(typeof e==`string`?` "${e}"`:` "${Array.prototype.map.call(e,(e=>String.fromCharCode(e))).join(``)}"`),typeof e==`string`?e.split(``).map((e=>e.charCodeAt(0))):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<b&&(this._parseBuffer=new Uint32Array(Math.min(e.length,b))),o||this._dirtyRowTracker.clearRange(),e.length>b)for(let t=a;t<e.length;t+=b){let a=t+b<e.length?t+b:e.length,o=typeof e==`string`?this._stringDecoder.decode(e.substring(t,a),this._parseBuffer):this._utf8Decoder.decode(e.subarray(t,a),this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,o))return this._preserveStack(r,i,o,t),this._logSlowResolvingAsync(n),n}else if(!o){let t=typeof e==`string`?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,t))return this._preserveStack(r,i,t,0),this._logSlowResolvingAsync(n),n}this._activeBuffer.x===r&&this._activeBuffer.y===i||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowTracker.start,this._dirtyRowTracker.end)}print(e,t,n){let r,i,a=this._charsetService.charset,o=this._optionsService.rawOptions.screenReaderMode,s=this._bufferService.cols,c=this._coreService.decPrivateModes.wraparound,u=this._coreService.modes.insertMode,d=this._curAttrData,p=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&n-t>0&&p.getWidth(this._activeBuffer.x-1)===2&&p.setCellFromCodePoint(this._activeBuffer.x-1,0,1,d.fg,d.bg,d.extended);for(let m=t;m<n;++m){if(r=e[m],i=this._unicodeService.wcwidth(r),r<127&&a){let e=a[String.fromCharCode(r)];e&&(r=e.charCodeAt(0))}if(o&&this._onA11yChar.fire((0,l.stringFromCodePoint)(r)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),i||!this._activeBuffer.x){if(this._activeBuffer.x+i-1>=s){if(c){for(;this._activeBuffer.x<s;)p.setCellFromCodePoint(this._activeBuffer.x++,0,1,d.fg,d.bg,d.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),p=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=s-1,i===2)continue}if(u&&(p.insertCells(this._activeBuffer.x,i,this._activeBuffer.getNullCell(d),d),p.getWidth(s-1)===2&&p.setCellFromCodePoint(s-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),p.setCellFromCodePoint(this._activeBuffer.x++,r,i,d.fg,d.bg,d.extended),i>0)for(;--i;)p.setCellFromCodePoint(this._activeBuffer.x++,0,0,d.fg,d.bg,d.extended)}else p.getWidth(this._activeBuffer.x-1)?p.addCodepointToCell(this._activeBuffer.x-1,r):p.addCodepointToCell(this._activeBuffer.x-2,r)}n-t>0&&(p.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<s&&n-t>0&&p.getWidth(this._activeBuffer.x)===0&&!p.hasContent(this._activeBuffer.x)&&p.setCellFromCodePoint(this._activeBuffer.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final!==`t`||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(e=>!x(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e)))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new _.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new g.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),t!==2&&t!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,n,r=!1,i=!1){let a=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);a.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),i),r&&(a.isWrapped=!1)}_resetBufferLine(e,t=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}eraseInDisplay(e,t=!1){let n;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);n<this._bufferService.rows;n++)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(n);break;case 1:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(n+1).isWrapped=!1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(n=this._bufferService.rows,this._dirtyRowTracker.markDirty(n-1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0);break;case 3:let e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let n=this._activeBuffer.ybase+this._activeBuffer.y,r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-r+1;for(;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let n=this._activeBuffer.ybase+this._activeBuffer.y,r;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(n,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(u.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){if(!this._parser.precedingCodepoint)return!0;let t=e.params[0]||1,n=new Uint32Array(t);for(let e=0;e<t;++e)n[e]=this._parser.precedingCodepoint;return this.print(n,0,n.length),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is(`xterm`)||this._is(`rxvt-unicode`)||this._is(`screen`)?this._coreService.triggerDataEvent(a.C0.ESC+`[?1;2c`):this._is(`linux`)&&this._coreService.triggerDataEvent(a.C0.ESC+`[?6c`)),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is(`xterm`)?this._coreService.triggerDataEvent(a.C0.ESC+`[>0;276;0c`):this._is(`rxvt-unicode`)?this._coreService.triggerDataEvent(a.C0.ESC+`[>85;95;0c`):this._is(`linux`)?this._coreService.triggerDataEvent(e.params[0]+`c`):this._is(`screen`)&&this._coreService.triggerDataEvent(a.C0.ESC+`[>83;40003;0c`)),!0}_is(e){return(this._optionsService.rawOptions.termName+``).indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,o.DEFAULT_CHARSET),this._charsetService.setgCharset(1,o.DEFAULT_CHARSET),this._charsetService.setgCharset(2,o.DEFAULT_CHARSET),this._charsetService.setgCharset(3,o.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug(`Serial port requested application keypad.`),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol=`X10`;break;case 1e3:this._coreMouseService.activeProtocol=`VT200`;break;case 1002:this._coreMouseService.activeProtocol=`DRAG`;break;case 1003:this._coreMouseService.activeProtocol=`ANY`;break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug(`DECSET 1005 not supported (see #2507)`);break;case 1006:this._coreMouseService.activeEncoding=`SGR`;break;case 1015:this._logService.debug(`DECSET 1015 not supported (see #2507)`);break;case 1016:this._coreMouseService.activeEncoding=`SGR_PIXELS`;break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug(`Switching back to normal keypad.`),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol=`NONE`;break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug(`DECRST 1005 not supported (see #2507)`);break;case 1006:case 1016:this._coreMouseService.activeEncoding=`DEFAULT`;break;case 1015:this._logService.debug(`DECRST 1015 not supported (see #2507)`);break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(e,t){let n=this._coreService.decPrivateModes,{activeProtocol:r,activeEncoding:i}=this._coreMouseService,o=this._coreService,{buffers:s,cols:c}=this._bufferService,{active:l,alt:u}=s,d=this._optionsService.rawOptions,f=e=>e?1:2,p=e.params[0];return m=p,h=t?p===2?4:p===4?f(o.modes.insertMode):p===12?3:p===20?f(d.convertEol):0:p===1?f(n.applicationCursorKeys):p===3?d.windowOptions.setWinLines?c===80?2:+(c===132):0:p===6?f(n.origin):p===7?f(n.wraparound):p===8?3:p===9?f(r===`X10`):p===12?f(d.cursorBlink):p===25?f(!o.isCursorHidden):p===45?f(n.reverseWraparound):p===66?f(n.applicationKeypad):p===67?4:p===1e3?f(r===`VT200`):p===1002?f(r===`DRAG`):p===1003?f(r===`ANY`):p===1004?f(n.sendFocus):p===1005?4:p===1006?f(i===`SGR`):p===1015?4:p===1016?f(i===`SGR_PIXELS`):p===1048?1:p===47||p===1047||p===1049?f(l===u):p===2004?f(n.bracketedPasteMode):0,o.triggerDataEvent(`${a.C0.ESC}[${t?``:`?`}${m};${h}$y`),!0;var m,h}_updateAttrColor(e,t,n,r,i){return t===2?(e|=50331648,e&=-16777216,e|=m.AttributeData.fromColorRGB([n,r,i])):t===5&&(e&=-50331904,e|=33554432|255&n),e}_extractColor(e,t,n){let r=[0,0,-1,0,0,0],i=0,a=0;do{if(r[a+i]=e.params[t+a],e.hasSubParams(t+a)){let n=e.getSubParams(t+a),o=0;do r[1]===5&&(i=1),r[a+o+1+i]=n[o];while(++o<n.length&&o+a+1+i<r.length);break}if(r[1]===5&&a+i>=2||r[1]===2&&a+i>=5)break;r[1]&&(i=1)}while(++a+t<e.length&&a+i<r.length);for(let e=2;e<r.length;++e)r[e]===-1&&(r[e]=0);switch(r[0]){case 38:n.fg=this._updateAttrColor(n.fg,r[1],r[3],r[4],r[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,r[1],r[3],r[4],r[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,r[1],r[3],r[4],r[5])}return a}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=u.DEFAULT_ATTR_DATA.fg,e.bg=u.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,n,r=this._curAttrData;for(let i=0;i<t;i++)n=e.params[i],n>=30&&n<=37?(r.fg&=-50331904,r.fg|=16777216|n-30):n>=40&&n<=47?(r.bg&=-50331904,r.bg|=16777216|n-40):n>=90&&n<=97?(r.fg&=-50331904,r.fg|=16777224|n-90):n>=100&&n<=107?(r.bg&=-50331904,r.bg|=16777224|n-100):n===0?this._processSGR0(r):n===1?r.fg|=134217728:n===3?r.bg|=67108864:n===4?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):n===5?r.fg|=536870912:n===7?r.fg|=67108864:n===8?r.fg|=1073741824:n===9?r.fg|=2147483648:n===2?r.bg|=134217728:n===21?this._processUnderline(2,r):n===22?(r.fg&=-134217729,r.bg&=-134217729):n===23?r.bg&=-67108865:n===24?(r.fg&=-268435457,this._processUnderline(0,r)):n===25?r.fg&=-536870913:n===27?r.fg&=-67108865:n===28?r.fg&=-1073741825:n===29?r.fg&=2147483647:n===39?(r.fg&=-67108864,r.fg|=16777215&u.DEFAULT_ATTR_DATA.fg):n===49?(r.bg&=-67108864,r.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):n===38||n===48||n===58?i+=this._extractColor(e,i,r):n===53?r.bg|=1073741824:n===55?r.bg&=-1073741825:n===59?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):n===100?(r.fg&=-67108864,r.fg|=16777215&u.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):this._logService.debug(`Unknown SGR attribute: %d.`,n);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${a.C0.ESC}[0n`);break;case 6:let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${a.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(e.params[0]===6){let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${a.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle=`block`;break;case 3:case 4:this._optionsService.options.cursorStyle=`underline`;break;case 5:case 6:this._optionsService.options.cursorStyle=`bar`}let n=t%2==1;return this._optionsService.options.cursorBlink=n,!0}setScrollRegion(e){let t=e.params[0]||1,n;return(e.length<2||(n=e.params[1])>this._bufferService.rows||n===0)&&(n=this._bufferService.rows),n>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=n-1,this._setCursor(0,0)),!0}windowOptions(e){if(!x(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(S.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(S.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${a.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:t!==0&&t!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),t!==0&&t!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:t!==0&&t!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),t!==0&&t!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],n=e.split(`;`);for(;n.length>1;){let e=n.shift(),r=n.shift();if(/^\d+$/.exec(e)){let n=parseInt(e);if(te(n))if(r===`?`)t.push({type:0,index:n});else{let e=(0,v.parseColor)(r);e&&t.push({type:1,index:n,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.split(`;`);return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let n=e.split(`:`),r,i=n.findIndex((e=>e.startsWith(`id=`)));return i!==-1&&(r=n[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let n=e.split(`;`);for(let e=0;e<n.length&&!(t>=this._specialColors.length);++e,++t)if(n[e]===`?`)this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let r=(0,v.parseColor)(n[e]);r&&this._onColor.fire([{type:1,index:this._specialColors[t],color:r}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],n=e.split(`;`);for(let e=0;e<n.length;++e)if(/^\d+$/.exec(n[e])){let r=parseInt(n[e]);te(r)&&t.push({type:2,index:r})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug(`Serial port requested application keypad.`),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug(`Switching back to normal keypad.`),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,o.DEFAULT_CHARSET),!0}selectCharset(e){return e.length===2?(e[0]===`/`||this._charsetService.setgCharset(y[e[0]],o.CHARSETS[e[1]]||o.DEFAULT_CHARSET),!0):(this.selectDefaultCharset(),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new p.CellData;e.content=4194373,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let n=this._activeBuffer.ybase+this._activeBuffer.y+t,r=this._activeBuffer.lines.get(n);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let n=this._bufferService.buffer,r=this._optionsService.rawOptions;return(e=>(this._coreService.triggerDataEvent(`${a.C0.ESC}${e}${a.C0.ESC}\\`),!0))(e===`"q`?`P1$r${+!!this._curAttrData.isProtected()}"q`:e===`"p`?`P1$r61;1"p`:e===`r`?`P1$r${n.scrollTop+1};${n.scrollBottom+1}r`:e===`m`?`P1$r0m`:e===` q`?`P1$r${{block:2,underline:4,bar:6}[r.cursorStyle]-+!!r.cursorBlink} q`:`P0$r`)}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}t.InputHandler=w;let ee=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(C=e,e=t,t=C),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function te(e){return 0<=e&&e<256}ee=r([i(0,h.IBufferService)],ee)},844:(e,t)=>{function n(e){for(let t of e)t.dispose();e.length=0}Object.defineProperty(t,`__esModule`,{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(let e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){let t=this._disposables.indexOf(e);t!==-1&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)==null||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)==null||e.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=n,t.getDisposeArrayDisposable=function(e){return{dispose:()=>n(e)}}},1505:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class n{constructor(){this._data={}}set(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=n,t.FourKeyMap=class{constructor(){this._data=new n}set(e,t,r,i,a){this._data.get(e,t)||this._data.set(e,t,new n),this._data.get(e,t).set(r,i,a)}get(e,t,n,r){return this._data.get(e,t)?.get(n,r)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode=typeof navigator>`u`;let n=t.isNode?`node`:navigator.userAgent,r=t.isNode?`node`:navigator.platform;t.isFirefox=n.includes(`Firefox`),t.isLegacyEdge=n.includes(`Edge`),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.getSafariVersion=function(){if(!t.isSafari)return 0;let e=n.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])},t.isMac=[`Macintosh`,`MacIntel`,`MacPPC`,`Mac68K`].includes(r),t.isIpad=r===`iPad`,t.isIphone=r===`iPhone`,t.isWindows=[`Windows`,`Win16`,`Win32`,`WinCE`].includes(r),t.isLinux=r.indexOf(`Linux`)>=0,t.isChromeOS=/\bCrOS\b/.test(n)},6106:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SortedList=void 0;let n=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){this._array.length===0?this._array.push(e):(n=this._search(this._getKey(e)),this._array.splice(n,0,e))}delete(e){if(this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(n=this._search(t),n===-1)||this._getKey(this._array[n])!==t)return!1;do if(this._array[n]===e)return this._array.splice(n,1),!0;while(++n<this._array.length&&this._getKey(this._array[n])===t);return!1}*getKeyIterator(e){if(this._array.length!==0&&(n=this._search(e),!(n<0||n>=this._array.length)&&this._getKey(this._array[n])===e))do yield this._array[n];while(++n<this._array.length&&this._getKey(this._array[n])===e)}forEachByKey(e,t){if(this._array.length!==0&&(n=this._search(e),!(n<0||n>=this._array.length)&&this._getKey(this._array[n])===e))do t(this._array[n]);while(++n<this._array.length&&this._getKey(this._array[n])===e)}values(){return[...this._array].values()}_search(e){let t=0,n=this._array.length-1;for(;n>=t;){let r=t+n>>1,i=this._getKey(this._array[r]);if(i>e)n=r-1;else{if(!(i<e)){for(;r>0&&this._getKey(this._array[r-1])===e;)r--;return r}t=r+1}}return t}}},7226:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;let r=n(6114);class i{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&=(this._cancelCallback(this._idleCallback),void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||=this._requestCallback(this._process.bind(this))}_process(e){this._idleCallback=void 0;let t=0,n=0,r=e.timeRemaining(),i=0;for(;this._i<this._tasks.length;){if(t=Date.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,Date.now()-t),n=Math.max(t,n),i=e.timeRemaining(),1.5*n>i)return r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),void this._start();r=i}this.clear()}}class a extends i{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=a,t.IdleTaskQueue=!r.isNode&&`requestIdleCallback`in window?class extends i{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:a,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.updateWindowsModeWrappedState=void 0;let r=n(643);t.updateWindowsModeWrappedState=function(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);n&&t&&(n.isWrapped=t[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&t[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class n{constructor(){this.fg=0,this.bg=0,this.extended=new r}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){let e=new n;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=n;class r{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new r(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}t.ExtendedAttrs=r},9092:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;let r=n(6349),i=n(7226),a=n(3734),o=n(8437),s=n(4634),c=n(511),l=n(643),u=n(4863),d=n(7116);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=d.DEFAULT_CHARSET,this.markers=[],this._nullCell=c.CellData.fromCharData([0,l.NULL_CELL_CHAR,l.NULL_CELL_WIDTH,l.NULL_CELL_CODE]),this._whitespaceCell=c.CellData.fromCharData([0,l.WHITESPACE_CELL_CHAR,l.WHITESPACE_CELL_WIDTH,l.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new i.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new a.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new a.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let n=e+this._optionsService.rawOptions.scrollback;return n>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=o.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let n=this.getNullCell(o.DEFAULT_ATTR_DATA),r=0,i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(let t=0;t<this.lines.length;t++)r+=+this.lines.get(t).resize(e,n);let a=0;if(this._rows<t)for(let r=this._rows;r<t;r++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new o.BufferLine(e,n)):this.ybase>0&&this.lines.length<=this.ybase+this.y+a+1?(this.ybase--,a++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,n)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){let e=this.lines.length-i;e>0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),a&&(this.y+=a),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let t=0;t<this.lines.length;t++)r+=+this.lines.get(t).resize(e,n);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),r>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend===`conpty`&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let n=(0,s.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(n.length>0){let r=(0,s.reflowLargerCreateNewLayout)(this.lines,n);(0,s.reflowLargerApplyNewLayout)(this.lines,r.layout),this._reflowLargerAdjustViewport(e,t,r.countRemoved)}}_reflowLargerAdjustViewport(e,t,n){let r=this.getNullCell(o.DEFAULT_ATTR_DATA),i=n;for(;i-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new o.BufferLine(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)}_reflowSmaller(e,t){let n=this.getNullCell(o.DEFAULT_ATTR_DATA),r=[],i=0;for(let a=this.lines.length-1;a>=0;a--){let c=this.lines.get(a);if(!c||!c.isWrapped&&c.getTrimmedLength()<=e)continue;let l=[c];for(;c.isWrapped&&a>0;)c=this.lines.get(--a),l.unshift(c);let u=this.ybase+this.y;if(u>=a&&u<a+l.length)continue;let d=l[l.length-1].getTrimmedLength(),f=(0,s.reflowSmallerGetNewLineLengths)(l,this._cols,e),p=f.length-l.length,m;m=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+p):Math.max(0,this.lines.length-this.lines.maxLength+p);let h=[];for(let e=0;e<p;e++){let e=this.getBlankLine(o.DEFAULT_ATTR_DATA,!0);h.push(e)}h.length>0&&(r.push({start:a+l.length+i,newLines:h}),i+=h.length),l.push(...h);let g=f.length-1,_=f[g];_===0&&(g--,_=f[g]);let v=l.length-p-1,y=d;for(;v>=0;){let e=Math.min(y,_);if(l[g]===void 0)break;if(l[g].copyCellsFrom(l[v],y-e,_-e,e,!0),_-=e,_===0&&(g--,_=f[g]),y-=e,y===0){v--;let e=Math.max(v,0);y=(0,s.getWrappedLineTrimmedLength)(l,e,this._cols)}}for(let t=0;t<l.length;t++)f[t]<e&&l[t].setCell(f[t],n);let b=p-m;for(;b-- >0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+i)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+p,this.ybase+t-1)}if(r.length>0){let e=[],t=[];for(let e=0;e<this.lines.length;e++)t.push(this.lines.get(e));let n=this.lines.length,a=n-1,o=0,s=r[o];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+i);let c=0;for(let l=Math.min(this.lines.maxLength-1,n+i-1);l>=0;l--)if(s&&s.start>a+c){for(let e=s.newLines.length-1;e>=0;e--)this.lines.set(l--,s.newLines[e]);l++,e.push({index:a+1,amount:s.newLines.length}),c+=s.newLines.length,s=r[++o]}else this.lines.set(l,t[a--]);let l=0;for(let t=e.length-1;t>=0;t--)e[t].index+=l,this.lines.onInsertEmitter.fire(e[t]),l+=e[t].amount;let u=Math.max(0,n+i-this.lines.maxLength);u>0&&this.lines.onTrimEmitter.fire(u)}}translateBufferLineToString(e,t,n=0,r){let i=this.lines.get(e);return i?i.translateToString(t,n,r):``}getWrappedRangeForLine(e){let t=e,n=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}}setupTabStops(e){for(e==null?(this.tabs={},e=0):this.tabs[e]||(e=this.prevStop(e));e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e??=this.x;!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e??=this.x;!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1}addMarker(e){let t=new u.Marker(e);return this.markers.push(t),t.register(this.lines.onTrim((e=>{t.line-=e,t.line<0&&t.dispose()}))),t.register(this.lines.onInsert((e=>{t.line>=e.index&&(t.line+=e.amount)}))),t.register(this.lines.onDelete((e=>{t.line>=e.index&&t.line<e.index+e.amount&&t.dispose(),t.line>e.index&&(t.line-=e.amount)}))),t.register(t.onDispose((()=>this._removeMarker(t)))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}},8437:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;let r=n(3734),i=n(511),a=n(643),o=n(482);t.DEFAULT_ATTR_DATA=Object.freeze(new r.AttributeData);let s=0;class c{constructor(e,t,n=!1){this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);let r=t||i.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]);for(let t=0;t<e;++t)this.setCell(t,r);this.length=e}get(e){let t=this._data[3*e+0],n=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:n?(0,o.stringFromCodePoint)(n):``,t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]}set(e,t){this._data[3*e+1]=t[a.CHAR_DATA_ATTR_INDEX],t[a.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[a.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[a.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){let t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){let t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,o.stringFromCodePoint)(2097151&t):``}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return s=3*e,t.content=this._data[s+0],t.fg=this._data[s+1],t.bg=this._data[s+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,n,r,i,a){268435456&i&&(this._extendedAttrs[e]=a),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=r,this._data[3*e+2]=i}addCodepointToCell(e,t){let n=this._data[3*e+0];2097152&n?this._combined[e]+=(0,o.stringFromCodePoint)(t):(2097151&n?(this._combined[e]=(0,o.stringFromCodePoint)(2097151&n)+(0,o.stringFromCodePoint)(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)}insertCells(e,t,n,a){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,a?.fg||0,a?.bg||0,a?.extended||new r.ExtendedAttrs),t<this.length-e){let r=new i.CellData;for(let n=this.length-e-t-1;n>=0;--n)this.setCell(e+t+n,this.loadCell(e+n,r));for(let r=0;r<t;++r)this.setCell(e+r,n)}else for(let t=e;t<this.length;++t)this.setCell(t,n);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,a?.fg||0,a?.bg||0,a?.extended||new r.ExtendedAttrs)}deleteCells(e,t,n,a){if(e%=this.length,t<this.length-e){let r=new i.CellData;for(let n=0;n<this.length-e-t;++n)this.setCell(e+n,this.loadCell(e+t+n,r));for(let e=this.length-t;e<this.length;++e)this.setCell(e,n)}else for(let t=e;t<this.length;++t)this.setCell(t,n);e&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,a?.fg||0,a?.bg||0,a?.extended||new r.ExtendedAttrs),this.getWidth(e)!==0||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,a?.fg||0,a?.bg||0,a?.extended||new r.ExtendedAttrs)}replaceCells(e,t,n,i,a=!1){if(a)for(e&&this.getWidth(e-1)===2&&!this.isProtected(e-1)&&this.setCellFromCodePoint(e-1,0,1,i?.fg||0,i?.bg||0,i?.extended||new r.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&!this.isProtected(t)&&this.setCellFromCodePoint(t,0,1,i?.fg||0,i?.bg||0,i?.extended||new r.ExtendedAttrs);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,n),e++;else for(e&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,i?.fg||0,i?.bg||0,i?.extended||new r.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t,0,1,i?.fg||0,i?.bg||0,i?.extended||new r.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,n)}resize(e,t){if(e===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;let n=3*e;if(e>this.length){if(this._data.buffer.byteLength>=4*n)this._data=new Uint32Array(this._data.buffer,0,n);else{let e=new Uint32Array(n);e.set(this._data),this._data=e}for(let n=this.length;n<e;++n)this.setCell(n,t)}else{this._data=this._data.subarray(0,n);let t=Object.keys(this._combined);for(let n=0;n<t.length;n++){let r=parseInt(t[n],10);r>=e&&delete this._combined[r]}let r=Object.keys(this._extendedAttrs);for(let t=0;t<r.length;t++){let n=parseInt(r[t],10);n>=e&&delete this._extendedAttrs[n]}}return this.length=e,4*n*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){let e=new Uint32Array(this._data.length);return e.set(this._data),this._data=e,1}return 0}fill(e,t=!1){if(t)for(let t=0;t<this.length;++t)this.isProtected(t)||this.setCell(t,e);else{this._combined={},this._extendedAttrs={};for(let t=0;t<this.length;++t)this.setCell(t,e)}}copyFrom(e){this.length===e.length?this._data.set(e._data):this._data=new Uint32Array(e._data),this.length=e.length,this._combined={};for(let t in e._combined)this._combined[t]=e._combined[t];this._extendedAttrs={};for(let t in e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped}clone(){let e=new c(0);e._data=new Uint32Array(this._data),e.length=this.length;for(let t in this._combined)e._combined[t]=this._combined[t];for(let t in this._extendedAttrs)e._extendedAttrs[t]=this._extendedAttrs[t];return e.isWrapped=this.isWrapped,e}getTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,n,r,i){let a=e._data;if(i)for(let i=r-1;i>=0;i--){for(let e=0;e<3;e++)this._data[3*(n+i)+e]=a[3*(t+i)+e];268435456&a[3*(t+i)+2]&&(this._extendedAttrs[n+i]=e._extendedAttrs[t+i])}else for(let i=0;i<r;i++){for(let e=0;e<3;e++)this._data[3*(n+i)+e]=a[3*(t+i)+e];268435456&a[3*(t+i)+2]&&(this._extendedAttrs[n+i]=e._extendedAttrs[t+i])}let o=Object.keys(e._combined);for(let r=0;r<o.length;r++){let i=parseInt(o[r],10);i>=t&&(this._combined[i-t+n]=e._combined[i])}}translateToString(e=!1,t=0,n=this.length){e&&(n=Math.min(n,this.getTrimmedLength()));let r=``;for(;t<n;){let e=this._data[3*t+0],n=2097151&e;r+=2097152&e?this._combined[t]:n?(0,o.stringFromCodePoint)(n):a.WHITESPACE_CELL_CHAR,t+=e>>22||1}return r}}t.BufferLine=c},4841:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();let r=!e[t].hasContent(n-1)&&e[t].getWidth(n-1)===1,i=e[t+1].getWidth(0)===2;return r&&i?n-1:n}Object.defineProperty(t,`__esModule`,{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,r,i,a){let o=[];for(let s=0;s<e.length-1;s++){let c=s,l=e.get(++c);if(!l.isWrapped)continue;let u=[e.get(s)];for(;c<e.length&&l.isWrapped;)u.push(l),l=e.get(++c);if(i>=s&&i<c){s+=u.length-1;continue}let d=0,f=n(u,d,t),p=1,m=0;for(;p<u.length;){let e=n(u,p,t),i=e-m,o=r-f,s=Math.min(i,o);u[d].copyCellsFrom(u[p],m,f,s,!1),f+=s,f===r&&(d++,f=0),m+=s,m===e&&(p++,m=0),f===0&&d!==0&&u[d-1].getWidth(r-1)===2&&(u[d].copyCellsFrom(u[d-1],r-1,f++,1,!1),u[d-1].setCell(r-1,a))}u[d].replaceCells(f,r,a);let h=0;for(let e=u.length-1;e>0&&(e>d||u[e].getTrimmedLength()===0);e--)h++;h>0&&(o.push(s+u.length-h),o.push(h)),s+=u.length-1}return o},t.reflowLargerCreateNewLayout=function(e,t){let n=[],r=0,i=t[r],a=0;for(let o=0;o<e.length;o++)if(i===o){let n=t[++r];e.onDeleteEmitter.fire({index:o-a,amount:n}),o+=n-1,a+=n,i=t[++r]}else n.push(o);return{layout:n,countRemoved:a}},t.reflowLargerApplyNewLayout=function(e,t){let n=[];for(let r=0;r<t.length;r++)n.push(e.get(t[r]));for(let t=0;t<n.length;t++)e.set(t,n[t]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,r){let i=[],a=e.map(((r,i)=>n(e,i,t))).reduce(((e,t)=>e+t)),o=0,s=0,c=0;for(;c<a;){if(a-c<r){i.push(a-c);break}o+=r;let l=n(e,s,t);o>l&&(o-=l,s++);let u=e[s].getWidth(o-1)===2;u&&o--;let d=u?r-1:r;i.push(d),c+=d}return i},t.getWrappedLineTrimmedLength=n},5295:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BufferSet=void 0;let r=n(8460),i=n(844),a=n(9092);class o extends i.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new r.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange(`scrollback`,(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange(`tabStopWidth`,(()=>this.setupTabStops())))}reset(){this._normal=new a.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new a.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CellData=void 0;let r=n(482),i=n(643),a=n(3734);class o extends a.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new a.ExtendedAttrs,this.combinedData=``}static fromCharData(e){let t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[i.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[i.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(e[i.CHAR_DATA_CHAR_INDEX].length===2){let n=e[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[i.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(n-55296)+r-56320+65536|e[i.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[i.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[i.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[i.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR=``,t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=` `,t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Marker=void 0;let r=n(8460),i=n(844);class a{get id(){return this._id}constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=a._nextId++,this._onDispose=this.register(new r.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,i.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=a,a._nextId=1},7116:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":`◆`,a:`▒`,b:`␉`,c:`␌`,d:`␍`,e:`␊`,f:`°`,g:`±`,h:``,i:`␋`,j:`┘`,k:`┐`,l:`┌`,m:`└`,n:`┼`,o:`⎺`,p:`⎻`,q:`─`,r:`⎼`,s:`⎽`,t:`├`,u:`┤`,v:`┴`,w:`┬`,x:`│`,y:`≤`,z:`≥`,"{":`π`,"|":`≠`,"}":`£`,"~":`·`},t.CHARSETS.A={"#":`£`},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":`£`,"@":`¾`,"[":`ij`,"\\":`½`,"]":`|`,"{":`¨`,"|":`f`,"}":`¼`,"~":`´`},t.CHARSETS.C=t.CHARSETS[5]={"[":`Ä`,"\\":`Ö`,"]":`Å`,"^":`Ü`,"`":`é`,"{":`ä`,"|":`ö`,"}":`å`,"~":`ü`},t.CHARSETS.R={"#":`£`,"@":`à`,"[":`°`,"\\":`ç`,"]":`§`,"{":`é`,"|":`ù`,"}":`è`,"~":`¨`},t.CHARSETS.Q={"@":`à`,"[":`â`,"\\":`ç`,"]":`ê`,"^":`î`,"`":`ô`,"{":`é`,"|":`ù`,"}":`è`,"~":`û`},t.CHARSETS.K={"@":`§`,"[":`Ä`,"\\":`Ö`,"]":`Ü`,"{":`ä`,"|":`ö`,"}":`ü`,"~":`ß`},t.CHARSETS.Y={"#":`£`,"@":`§`,"[":`°`,"\\":`ç`,"]":`é`,"`":`ù`,"{":`à`,"|":`ò`,"}":`è`,"~":`ì`},t.CHARSETS.E=t.CHARSETS[6]={"@":`Ä`,"[":`Æ`,"\\":`Ø`,"]":`Å`,"^":`Ü`,"`":`ä`,"{":`æ`,"|":`ø`,"}":`å`,"~":`ü`},t.CHARSETS.Z={"#":`£`,"@":`§`,"[":`¡`,"\\":`Ñ`,"]":`¿`,"{":`°`,"|":`ñ`,"}":`ç`},t.CHARSETS.H=t.CHARSETS[7]={"@":`É`,"[":`Ä`,"\\":`Ö`,"]":`Å`,"^":`Ü`,"`":`é`,"{":`ä`,"|":`ö`,"}":`å`,"~":`ü`},t.CHARSETS[`=`]={"#":`ù`,"@":`à`,"[":`é`,"\\":`ç`,"]":`ê`,"^":`î`,_:`è`,"`":`ô`,"{":`ä`,"|":`ö`,"}":`ü`,"~":`û`}},2584:(e,t)=>{var n,r,i;Object.defineProperty(t,`__esModule`,{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL=`\0`,e.SOH=``,e.STX=``,e.ETX=``,e.EOT=``,e.ENQ=``,e.ACK=``,e.BEL=`\x07`,e.BS=`\b`,e.HT=` `,e.LF=`
|
|
629
629
|
`,e.VT=`\v`,e.FF=`\f`,e.CR=`\r`,e.SO=``,e.SI=``,e.DLE=``,e.DC1=``,e.DC2=``,e.DC3=``,e.DC4=``,e.NAK=``,e.SYN=``,e.ETB=``,e.CAN=``,e.EM=``,e.SUB=``,e.ESC=`\x1B`,e.FS=``,e.GS=``,e.RS=``,e.US=``,e.SP=` `,e.DEL=``}(n||(t.C0=n={})),function(e){e.PAD=``,e.HOP=``,e.BPH=``,e.NBH=``,e.IND=``,e.NEL=`
`,e.SSA=``,e.ESA=``,e.HTS=``,e.HTJ=``,e.VTS=``,e.PLD=``,e.PLU=``,e.RI=``,e.SS2=``,e.SS3=``,e.DCS=``,e.PU1=``,e.PU2=``,e.STS=``,e.CCH=``,e.MW=``,e.SPA=``,e.EPA=``,e.SOS=``,e.SGCI=``,e.SCI=``,e.CSI=``,e.ST=``,e.OSC=``,e.PM=``,e.APC=``}(r||(t.C1=r={})),function(e){e.ST=`${n.ESC}\\`}(i||(t.C1_ESCAPED=i={}))},7399:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.evaluateKeyboardEvent=void 0;let r=n(2584),i={48:[`0`,`)`],49:[`1`,`!`],50:[`2`,`@`],51:[`3`,`#`],52:[`4`,`$`],53:[`5`,`%`],54:[`6`,`^`],55:[`7`,`&`],56:[`8`,`*`],57:[`9`,`(`],186:[`;`,`:`],187:[`=`,`+`],188:[`,`,`<`],189:[`-`,`_`],190:[`.`,`>`],191:[`/`,`?`],192:["`",`~`],219:[`[`,`{`],220:[`\\`,`|`],221:[`]`,`}`],222:[`'`,`"`]};t.evaluateKeyboardEvent=function(e,t,n,a){let o={type:0,cancel:!1,key:void 0},s=!!e.shiftKey|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key===`UIKeyInputUpArrow`?o.key=t?r.C0.ESC+`OA`:r.C0.ESC+`[A`:e.key===`UIKeyInputLeftArrow`?o.key=t?r.C0.ESC+`OD`:r.C0.ESC+`[D`:e.key===`UIKeyInputRightArrow`?o.key=t?r.C0.ESC+`OC`:r.C0.ESC+`[C`:e.key===`UIKeyInputDownArrow`&&(o.key=t?r.C0.ESC+`OB`:r.C0.ESC+`[B`);break;case 8:if(e.altKey){o.key=r.C0.ESC+r.C0.DEL;break}o.key=r.C0.DEL;break;case 9:if(e.shiftKey){o.key=r.C0.ESC+`[Z`;break}o.key=r.C0.HT,o.cancel=!0;break;case 13:o.key=e.altKey?r.C0.ESC+r.C0.CR:r.C0.CR,o.cancel=!0;break;case 27:o.key=r.C0.ESC,e.altKey&&(o.key=r.C0.ESC+r.C0.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;s?(o.key=r.C0.ESC+`[1;`+(s+1)+`D`,o.key===r.C0.ESC+`[1;3D`&&(o.key=r.C0.ESC+(n?`b`:`[1;5D`))):o.key=t?r.C0.ESC+`OD`:r.C0.ESC+`[D`;break;case 39:if(e.metaKey)break;s?(o.key=r.C0.ESC+`[1;`+(s+1)+`C`,o.key===r.C0.ESC+`[1;3C`&&(o.key=r.C0.ESC+(n?`f`:`[1;5C`))):o.key=t?r.C0.ESC+`OC`:r.C0.ESC+`[C`;break;case 38:if(e.metaKey)break;s?(o.key=r.C0.ESC+`[1;`+(s+1)+`A`,n||o.key!==r.C0.ESC+`[1;3A`||(o.key=r.C0.ESC+`[1;5A`)):o.key=t?r.C0.ESC+`OA`:r.C0.ESC+`[A`;break;case 40:if(e.metaKey)break;s?(o.key=r.C0.ESC+`[1;`+(s+1)+`B`,n||o.key!==r.C0.ESC+`[1;3B`||(o.key=r.C0.ESC+`[1;5B`)):o.key=t?r.C0.ESC+`OB`:r.C0.ESC+`[B`;break;case 45:e.shiftKey||e.ctrlKey||(o.key=r.C0.ESC+`[2~`);break;case 46:o.key=s?r.C0.ESC+`[3;`+(s+1)+`~`:r.C0.ESC+`[3~`;break;case 36:o.key=s?r.C0.ESC+`[1;`+(s+1)+`H`:t?r.C0.ESC+`OH`:r.C0.ESC+`[H`;break;case 35:o.key=s?r.C0.ESC+`[1;`+(s+1)+`F`:t?r.C0.ESC+`OF`:r.C0.ESC+`[F`;break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=r.C0.ESC+`[5;`+(s+1)+`~`:o.key=r.C0.ESC+`[5~`;break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=r.C0.ESC+`[6;`+(s+1)+`~`:o.key=r.C0.ESC+`[6~`;break;case 112:o.key=s?r.C0.ESC+`[1;`+(s+1)+`P`:r.C0.ESC+`OP`;break;case 113:o.key=s?r.C0.ESC+`[1;`+(s+1)+`Q`:r.C0.ESC+`OQ`;break;case 114:o.key=s?r.C0.ESC+`[1;`+(s+1)+`R`:r.C0.ESC+`OR`;break;case 115:o.key=s?r.C0.ESC+`[1;`+(s+1)+`S`:r.C0.ESC+`OS`;break;case 116:o.key=s?r.C0.ESC+`[15;`+(s+1)+`~`:r.C0.ESC+`[15~`;break;case 117:o.key=s?r.C0.ESC+`[17;`+(s+1)+`~`:r.C0.ESC+`[17~`;break;case 118:o.key=s?r.C0.ESC+`[18;`+(s+1)+`~`:r.C0.ESC+`[18~`;break;case 119:o.key=s?r.C0.ESC+`[19;`+(s+1)+`~`:r.C0.ESC+`[19~`;break;case 120:o.key=s?r.C0.ESC+`[20;`+(s+1)+`~`:r.C0.ESC+`[20~`;break;case 121:o.key=s?r.C0.ESC+`[21;`+(s+1)+`~`:r.C0.ESC+`[21~`;break;case 122:o.key=s?r.C0.ESC+`[23;`+(s+1)+`~`:r.C0.ESC+`[23~`;break;case 123:o.key=s?r.C0.ESC+`[24;`+(s+1)+`~`:r.C0.ESC+`[24~`;break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!a||!e.altKey||e.metaKey)!n||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?o.key=e.key:e.key&&e.ctrlKey&&(e.key===`_`&&(o.key=r.C0.US),e.key===`@`&&(o.key=r.C0.NUL)):e.keyCode===65&&(o.type=1);else{let t=i[e.keyCode]?.[+!!e.shiftKey];if(t)o.key=r.C0.ESC+t;else if(e.keyCode>=65&&e.keyCode<=90){let t=e.ctrlKey?e.keyCode-64:e.keyCode+32,n=String.fromCharCode(t);e.shiftKey&&(n=n.toUpperCase()),o.key=r.C0.ESC+n}else if(e.keyCode===32)o.key=r.C0.ESC+(e.ctrlKey?r.C0.NUL:` `);else if(e.key===`Dead`&&e.code.startsWith(`Key`)){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),o.key=r.C0.ESC+t,o.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?o.key=r.C0.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?o.key=r.C0.DEL:e.keyCode===219?o.key=r.C0.ESC:e.keyCode===220?o.key=r.C0.FS:e.keyCode===221&&(o.key=r.C0.GS)}return o}},482:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=1024*(this._interim-55296)+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=1024*(i-55296)+o-56320+65536:(t[r++]=i,t[r++]=o)}else i!==65279&&(t[r++]=i)}return r}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r,i,a,o,s=0,c=0,l=0;if(this.interim[0]){let r=!1,i=this.interim[0];i&=(224&i)==192?31:(240&i)==224?15:7;let a,o=0;for(;(a=63&this.interim[++o])&&o<4;)i<<=6,i|=a;let c=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(a=e[l++],(192&a)!=128){l--,r=!0;break}this.interim[o++]=a,i<<=6,i|=63&a}r||(c===2?i<128?l--:t[s++]=i:c===3?i<2048||i>=55296&&i<=57343||i===65279||(t[s++]=i):i<65536||i>1114111||(t[s++]=i)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;!(!(d<u)||128&(r=e[d])||128&(i=e[d+1])||128&(a=e[d+2])||128&(o=e[d+3]));)t[s++]=r,t[s++]=i,t[s++]=a,t[s++]=o,d+=4;if(r=e[d++],r<128)t[s++]=r;else if((224&r)==192){if(d>=n)return this.interim[0]=r,s;if(i=e[d++],(192&i)!=128){d--;continue}if(c=(31&r)<<6|63&i,c<128){d--;continue}t[s++]=c}else if((240&r)==224){if(d>=n)return this.interim[0]=r,s;if(i=e[d++],(192&i)!=128){d--;continue}if(d>=n)return this.interim[0]=r,this.interim[1]=i,s;if(a=e[d++],(192&a)!=128){d--;continue}if(c=(15&r)<<12|(63&i)<<6|63&a,c<2048||c>=55296&&c<=57343||c===65279)continue;t[s++]=c}else if((248&r)==240){if(d>=n)return this.interim[0]=r,s;if(i=e[d++],(192&i)!=128){d--;continue}if(d>=n)return this.interim[0]=r,this.interim[1]=i,s;if(a=e[d++],(192&a)!=128){d--;continue}if(d>=n)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=a,s;if(o=e[d++],(192&o)!=128){d--;continue}if(c=(7&r)<<18|(63&i)<<12|(63&a)<<6|63&o,c<65536||c>1114111)continue;t[s++]=c}}return s}}},225:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.UnicodeV6=void 0;let n=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],r=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],i;t.UnicodeV6=class{constructor(){if(this.version=`6`,!i){i=new Uint8Array(65536),i.fill(1),i[0]=0,i.fill(0,1,32),i.fill(0,127,160),i.fill(2,4352,4448),i[9001]=2,i[9002]=2,i.fill(2,11904,42192),i[12351]=1,i.fill(2,44032,55204),i.fill(2,63744,64256),i.fill(2,65040,65050),i.fill(2,65072,65136),i.fill(2,65280,65377),i.fill(2,65504,65511);for(let e=0;e<n.length;++e)i.fill(0,n[e][0],n[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?i[e]:function(e,t){let n,r=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=r;)if(n=r+i>>1,e>t[n][1])r=n+1;else{if(!(e<t[n][0]))return!0;i=n-1}return!1}(e,r)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}}},5981:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.WriteBuffer=void 0;let r=n(8460),i=n(844);class a extends i.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new r.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let n;for(this._isSyncWriting=!0;n=this._writeBuffer.shift();){this._action(n);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>5e7)throw Error(`write data discarded, use flow control to avoid losing data`);if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let n=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],r=this._action(e,t);if(r){r.catch((e=>(queueMicrotask((()=>{throw e})),Promise.resolve(!1)))).then(e=>Date.now()-n>=12?setTimeout((()=>this._innerWrite(0,e))):this._innerWrite(n,e));return}let i=this._callbacks[this._bufferOffset];if(i&&i(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-n>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=a},5941:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.toRgbString=t.parseColor=void 0;let n=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,r=/^[\da-f]+$/;function i(e,t){let n=e.toString(16),r=n.length<2?`0`+n:n;switch(t){case 4:return n[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf(`rgb:`)===0){t=t.slice(4);let e=n.exec(t);if(e){let t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(t.indexOf(`#`)===0&&(t=t.slice(1),r.exec(t)&&[3,6,9,12].includes(t.length))){let e=t.length/3,n=[0,0,0];for(let r=0;r<3;++r){let i=parseInt(t.slice(e*r,e*r+e),16);n[r]=e===1?i<<4:e===2?i:e===3?i>>4:i>>8}return n}},t.toRgbString=function(e,t=16){let[n,r,a]=e;return`rgb:${i(n,t)}/${i(r,t)}/${i(a,t)}`}},5770:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.DcsHandler=t.DcsParser=void 0;let r=n(482),i=n(8742),a=n(5770),o=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(t);else this._handlerFb(this._ident,`HOOK`,t)}put(e,t,n){if(this._active.length)for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n);else this._handlerFb(this._ident,`PUT`,(0,r.utf32ToString)(e,t,n))}unhook(e,t=!0){if(this._active.length){let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===n){for(;r>=0&&(n=this._active[r].unhook(e),!0!==n);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].unhook(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}else this._handlerFb(this._ident,`UNHOOK`,e);this._active=o,this._ident=0}};let s=new i.Params;s.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data=``,this._params=s,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():s,this._data=``,this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,n),this._data.length>a.PAYLOAD_LIMIT&&(this._data=``,this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then((e=>(this._params=s,this._data=``,this._hitLimit=!1,e)));return this._params=s,this._data=``,this._hitLimit=!1,t}}},2015:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;let r=n(844),i=n(8742),a=n(6242),o=n(6351);class s{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,n,r){this.table[t<<8|e]=n<<4|r}addMany(e,t,n,r){for(let i=0;i<e.length;i++)this.table[t<<8|e[i]]=n<<4|r}}t.TransitionTable=s,t.VT500_TRANSITION_TABLE=function(){let e=new s(4095),t=Array.apply(null,Array(256)).map(((e,t)=>t)),n=(e,n)=>t.slice(e,n),r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));let a=n(0,14),o;for(o in e.setDefault(1,0),e.addMany(r,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();class c extends r.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new i.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,n)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,r.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new a.OscParser),this._dcsParser=this.register(new o.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:`\\`},(()=>!0))}_identifier(e,t=[64,126]){let n=0;if(e.prefix){if(e.prefix.length>1)throw Error(`only one byte as prefix supported`);if(n=e.prefix.charCodeAt(0),n&&60>n||n>63)throw Error(`prefix must be in range 0x3c .. 0x3f`)}if(e.intermediates){if(e.intermediates.length>2)throw Error(`only two bytes as intermediates are supported`);for(let t=0;t<e.intermediates.length;++t){let r=e.intermediates.charCodeAt(t);if(32>r||r>47)throw Error(`intermediate must be in range 0x20 .. 0x2f`);n<<=8,n|=r}}if(e.final.length!==1)throw Error(`final must be a single byte`);let r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw Error(`final must be in range ${t[0]} .. ${t[1]}`);return n<<=8,n|=r,n}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join(``)}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let n=this._identifier(e,[48,126]);this._escHandlers[n]===void 0&&(this._escHandlers[n]=[]);let r=this._escHandlers[n];return r.push(t),{dispose:()=>{let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let n=this._identifier(e);this._csiHandlers[n]===void 0&&(this._csiHandlers[n]=[]);let r=this._csiHandlers[n];return r.push(t),{dispose:()=>{let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,n,r,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=r,this._parseStack.chunkPos=i}parse(e,t,n){let r,i=0,a=0,o=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(n===void 0||this._parseStack.state===1)throw this._parseStack.state=1,Error(`improper continuation due to previous async handler, giving up parsing`);let t=this._parseStack.handlers,a=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===n&&a>-1){for(;a>=0&&(r=t[a](this._params),!0!==r);a--)if(r instanceof Promise)return this._parseStack.handlerPos=a,r}this._parseStack.handlers=[];break;case 4:if(!1===n&&a>-1){for(;a>=0&&(r=t[a](),!0!==r);a--)if(r instanceof Promise)return this._parseStack.handlerPos=a,r}this._parseStack.handlers=[];break;case 6:if(i=e[this._parseStack.chunkPos],r=this._dcsParser.unhook(i!==24&&i!==26,n),r)return r;i===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=e[this._parseStack.chunkPos],r=this._oscParser.end(i!==24&&i!==26,n),r)return r;i===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let n=o;n<t;++n){switch(i=e[n],a=this._transitions.table[this.currentState<<8|(i<160?i:160)],a>>4){case 2:for(let r=n+1;;++r){if(r>=t||(i=e[r])<32||i>126&&i<160){this._printHandler(e,n,r),n=r-1;break}if(++r>=t||(i=e[r])<32||i>126&&i<160){this._printHandler(e,n,r),n=r-1;break}if(++r>=t||(i=e[r])<32||i>126&&i<160){this._printHandler(e,n,r),n=r-1;break}if(++r>=t||(i=e[r])<32||i>126&&i<160){this._printHandler(e,n,r),n=r-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:n,code:i,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let o=this._csiHandlers[this._collect<<8|i],s=o?o.length-1:-1;for(;s>=0&&(r=o[s](this._params),!0!==r);s--)if(r instanceof Promise)return this._preserveStack(3,o,s,a,n),r;s<0&&this._csiHandlerFb(this._collect<<8|i,this._params),this.precedingCodepoint=0;break;case 8:do switch(i){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(i-48)}while(++n<t&&(i=e[n])>47&&i<60);n--;break;case 9:this._collect<<=8,this._collect|=i;break;case 10:let c=this._escHandlers[this._collect<<8|i],l=c?c.length-1:-1;for(;l>=0&&(r=c[l](),!0!==r);l--)if(r instanceof Promise)return this._preserveStack(4,c,l,a,n),r;l<0&&this._escHandlerFb(this._collect<<8|i),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|i,this._params);break;case 13:for(let r=n+1;;++r)if(r>=t||(i=e[r])===24||i===26||i===27||i>127&&i<160){this._dcsParser.put(e,n,r),n=r-1;break}break;case 14:if(r=this._dcsParser.unhook(i!==24&&i!==26),r)return this._preserveStack(6,[],0,a,n),r;i===27&&(a|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(let r=n+1;;r++)if(r>=t||(i=e[r])<32||i>127&&i<160){this._oscParser.put(e,n,r),n=r-1;break}break;case 6:if(r=this._oscParser.end(i!==24&&i!==26),r)return this._preserveStack(5,[],0,a,n),r;i===27&&(a|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&a}}}t.EscapeSequenceParser=c},6242:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.OscHandler=t.OscParser=void 0;let r=n(5770),i=n(482),a=[];t.OscParser=class{constructor(){this._state=0,this._active=a,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=a}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=a,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||a,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,`START`)}_put(e,t,n){if(this._active.length)for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n);else this._handlerFb(this._id,`PUT`,(0,i.utf32ToString)(e,t,n))}start(){this.reset(),this._state=1}put(e,t,n){if(this._state!==3){if(this._state===1)for(;t<n;){let n=e[t++];if(n===59){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+n-48}this._state===2&&n-t>0&&this._put(e,t,n)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===n){for(;r>=0&&(n=this._active[r].end(e),!0!==n);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].end(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}else this._handlerFb(this._id,`END`,e);this._active=a,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data=``,this._hitLimit=!1}start(){this._data=``,this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,n),this._data.length>r.PAYLOAD_LIMIT&&(this._data=``,this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then((e=>(this._data=``,this._hitLimit=!1,e)));return this._data=``,this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Params=void 0;let n=2147483647;class r{static fromArray(e){let t=new r;if(!e.length)return t;for(let n=+!!Array.isArray(e[0]);n<e.length;++n){let r=e[n];if(Array.isArray(r))for(let e=0;e<r.length;++e)t.addSubParam(r[e]);else t.addParam(r)}return t}constructor(e=32,t=32){if(this.maxLength=e,this.maxSubParamsLength=t,t>256)throw Error(`maxSubParamsLength must not be greater than 256`);this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){let e=new r(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){let e=[];for(let t=0;t<this.length;++t){e.push(this.params[t]);let n=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];r-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,r))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw Error(`values lesser than -1 are not allowed`);this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>n?n:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw Error(`values lesser than -1 are not allowed`);this._subParams[this._subParamsLength++]=e>n?n:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){let t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null}getSubParamsAll(){let e={};for(let t=0;t<this.length;++t){let n=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];r-n>0&&(e[t]=this._subParams.slice(n,r))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let r=this._digitIsSub?this._subParams:this.params,i=r[t-1];r[t-1]=~i?Math.min(10*i+e,n):e}}t.Params=r},5741:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=()=>this._wrappedAddonDispose(n),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(t===-1)throw Error(`Could not dispose an addon that has not been loaded`);e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}}},8771:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BufferApiView=void 0;let r=n(3785),i=n(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new r.BufferLineApiView(t)}getNullCell(){return new i.CellData}}},3785:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BufferLineApiView=void 0;let r=n(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new r.CellData)}translateToString(e,t,n){return this._line.translateToString(e,t,n)}}},8285:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BufferNamespaceApi=void 0;let r=n(8771),i=n(8460),a=n(844);class o extends a.Disposable{constructor(e){super(),this._core=e,this._onBufferChange=this.register(new i.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new r.BufferApiView(this._core.buffers.normal,`normal`),this._alternate=new r.BufferApiView(this._core.buffers.alt,`alternate`),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw Error(`Active buffer is neither normal nor alternate`)}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,(e=>t(e.toArray())))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,((e,n)=>t(e,n.toArray())))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;let a=n(8460),o=n(844),s=n(5295),c=n(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let l=t.BufferService=class extends o.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new a.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new a.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new s.BufferSet(e,this))}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let n=this.buffer,r;r=this._cachedBlankLine,r&&r.length===this.cols&&r.getFg(0)===e.fg&&r.getBg(0)===e.bg||(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;let i=n.ybase+n.scrollTop,a=n.ybase+n.scrollBottom;if(n.scrollTop===0){let e=n.lines.isFull;a===n.lines.length-1?e?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(a+1,0,r.clone()),e?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{let e=a-i+1;n.lines.shiftElements(i+1,e-1,-1),n.lines.set(a,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)}scrollLines(e,t,n){let r=this.buffer;if(e<0){if(r.ydisp===0)return;this.isUserScrolling=!0}else e+r.ydisp>=r.ybase&&(this.isUserScrolling=!1);let i=r.ydisp;r.ydisp=Math.max(Math.min(r.ydisp+e,r.ybase),0),i!==r.ydisp&&(t||this._onScroll.fire(r.ydisp))}};t.BufferService=l=r([i(0,c.IOptionsService)],l)},7994:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.CoreMouseService=void 0;let a=n(2585),o=n(8460),s=n(844),c={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button!==4&&e.action===1&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>e.action!==32||e.button!==3},ANY:{events:31,restrict:e=>!0}};function l(e,t){let n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),e.action===32?n|=32:e.action!==0||t||(n|=3)),n}let u=String.fromCharCode,d={DEFAULT:e=>{let t=[l(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?``:`[M${u(t[0])}${u(t[1])}${u(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?`m`:`M`;return`[<${l(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?`m`:`M`;return`[<${l(e,!0)};${e.x};${e.y}${t}`}},f=t.CoreMouseService=class extends s.Disposable{constructor(e,t){super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol=``,this._activeEncoding=``,this._lastEvent=null,this._onProtocolChange=this.register(new o.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(let e of Object.keys(c))this.addProtocol(e,c[e]);for(let e of Object.keys(d))this.addEncoding(e,d[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol=`NONE`,this.activeEncoding=`DEFAULT`,this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding===`SGR_PIXELS`))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding===`DEFAULT`?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,n){if(n){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};t.CoreMouseService=f=r([i(0,a.IBufferService),i(1,a.ICoreService)],f)},6975:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.CoreService=void 0;let a=n(1439),o=n(8460),s=n(844),c=n(2585),l=Object.freeze({insertMode:!1}),u=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),d=t.CoreService=class extends s.Disposable{constructor(e,t,n){super(),this._bufferService=e,this._logService=t,this._optionsService=n,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new o.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new o.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,a.clone)(l),this.decPrivateModes=(0,a.clone)(u)}reset(){this.modes=(0,a.clone)(l),this.decPrivateModes=(0,a.clone)(u)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,(()=>e.split(``).map((e=>e.charCodeAt(0))))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,(()=>e.split(``).map((e=>e.charCodeAt(0))))),this._onBinary.fire(e))}};t.CoreService=d=r([i(0,c.IBufferService),i(1,c.ILogService),i(2,c.IOptionsService)],d)},9074:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.DecorationService=void 0;let r=n(8055),i=n(8460),a=n(844),o=n(6106),s=0,c=0;class l extends a.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new o.SortedList((e=>e?.marker.line)),this._onDecorationRegistered=this.register(new i.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new i.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,a.toDisposable)((()=>this.reset())))}registerDecoration(e){if(e.marker.isDisposed)return;let t=new u(e);if(t){let e=t.marker.onDispose((()=>t.dispose()));t.onDispose((()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())})),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,n){let r=0,i=0;for(let a of this._decorations.getKeyIterator(t))r=a.options.x??0,i=r+(a.options.width??1),e>=r&&e<i&&(!n||(a.options.layer??`bottom`)===n)&&(yield a)}forEachDecorationAtCell(e,t,n,r){this._decorations.forEachByKey(t,(t=>{s=t.options.x??0,c=s+(t.options.width??1),e>=s&&e<c&&(!n||(t.options.layer??`bottom`)===n)&&r(t)}))}}t.DecorationService=l;class u extends a.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=r.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=r.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(e){super(),this.options=e,this.onRenderEmitter=this.register(new i.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new i.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position=`full`)}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;let r=n(2585),i=n(8343);class a{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){let n=this._entries.get(e);return this._entries.set(e,t),n}forEach(e){for(let[t,n]of this._entries.entries())e(t,n)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=a,t.InstantiationService=class{constructor(){this._services=new a,this._services.set(r.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let n=(0,i.getServiceDependencies)(e).sort(((e,t)=>e.index-t.index)),r=[];for(let t of n){let n=this._services.get(t.id);if(!n)throw Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);r.push(n)}let a=n.length>0?n[0].index:t.length;if(t.length!==a)throw Error(`[createInstance] First service dependency of ${e.name} at position ${a+1} conflicts with ${t.length} static arguments`);return new e(...t,...r)}}},7866:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;let a=n(844),o=n(2585),s={trace:o.LogLevelEnum.TRACE,debug:o.LogLevelEnum.DEBUG,info:o.LogLevelEnum.INFO,warn:o.LogLevelEnum.WARN,error:o.LogLevelEnum.ERROR,off:o.LogLevelEnum.OFF},c,l=t.LogService=class extends a.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=o.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange(`logLevel`,(()=>this._updateLogLevel()))),c=this}_updateLogLevel(){this._logLevel=s[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]==`function`&&(e[t]=e[t]())}_log(e,t,n){this._evalLazyOptionalParams(n),e.call(console,(this._optionsService.options.logger?``:`xterm.js: `)+t,...n)}trace(e,...t){this._logLevel<=o.LogLevelEnum.TRACE&&this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger)??console.log,e,t)}debug(e,...t){this._logLevel<=o.LogLevelEnum.DEBUG&&this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger)??console.log,e,t)}info(e,...t){this._logLevel<=o.LogLevelEnum.INFO&&this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger)??console.info,e,t)}warn(e,...t){this._logLevel<=o.LogLevelEnum.WARN&&this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger)??console.warn,e,t)}error(e,...t){this._logLevel<=o.LogLevelEnum.ERROR&&this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger)??console.error,e,t)}};t.LogService=l=r([i(0,o.IOptionsService)],l),t.setTraceLogger=function(e){c=e},t.traceCall=function(e,t,n){if(typeof n.value!=`function`)throw Error(`not supported`);let r=n.value;n.value=function(...e){if(c.logLevel!==o.LogLevelEnum.TRACE)return r.apply(this,e);c.trace(`GlyphRenderer#${r.name}(${e.map((e=>JSON.stringify(e))).join(`, `)})`);let t=r.apply(this,e);return c.trace(`GlyphRenderer#${r.name} return`,t),t}}},7302:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;let r=n(8460),i=n(844);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:`block`,cursorWidth:1,cursorInactiveStyle:`outline`,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:`alt`,fastScrollSensitivity:5,fontFamily:`courier-new, courier, monospace`,fontSize:15,fontWeight:`normal`,fontWeightBold:`bold`,ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:`info`,logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n(6114).isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:` ()[]{}',"\``,altClickMovesCursor:!0,convertEol:!1,termName:`xterm`,cancelEvents:!1,overviewRulerWidth:0};let a=[`normal`,`bold`,`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`];class o extends i.Disposable{constructor(e){super(),this._onOptionChange=this.register(new r.EventEmitter),this.onOptionChange=this._onOptionChange.event;let n=Object.assign({},t.DEFAULT_OPTIONS);for(let t in e)if(t in n)try{let r=e[t];n[t]=this._sanitizeAndValidateOption(t,r)}catch(e){console.error(e)}this.rawOptions=n,this.options=Object.assign({},n),this._setupOptions()}onSpecificOptionChange(e,t){return this.onOptionChange((n=>{n===e&&t(this.rawOptions[e])}))}onMultipleOptionChange(e,t){return this.onOptionChange((n=>{e.indexOf(n)!==-1&&t()}))}_setupOptions(){let e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw Error(`No option with key "${e}"`);return this.rawOptions[e]},n=(e,n)=>{if(!(e in t.DEFAULT_OPTIONS))throw Error(`No option with key "${e}"`);n=this._sanitizeAndValidateOption(e,n),this.rawOptions[e]!==n&&(this.rawOptions[e]=n,this._onOptionChange.fire(e))};for(let t in this.rawOptions){let r={get:e.bind(this,t),set:n.bind(this,t)};Object.defineProperty(this.options,t,r)}}_sanitizeAndValidateOption(e,n){switch(e){case`cursorStyle`:if(n||=t.DEFAULT_OPTIONS[e],!function(e){return e===`block`||e===`underline`||e===`bar`}(n))throw Error(`"${n}" is not a valid value for ${e}`);break;case`wordSeparator`:n||=t.DEFAULT_OPTIONS[e];break;case`fontWeight`:case`fontWeightBold`:if(typeof n==`number`&&1<=n&&n<=1e3)break;n=a.includes(n)?n:t.DEFAULT_OPTIONS[e];break;case`cursorWidth`:n=Math.floor(n);case`lineHeight`:case`tabStopWidth`:if(n<1)throw Error(`${e} cannot be less than 1, value: ${n}`);break;case`minimumContrastRatio`:n=Math.max(1,Math.min(21,Math.round(10*n)/10));break;case`scrollback`:if((n=Math.min(n,4294967295))<0)throw Error(`${e} cannot be less than 0, value: ${n}`);break;case`fastScrollSensitivity`:case`scrollSensitivity`:if(n<=0)throw Error(`${e} cannot be less than or equal to 0, value: ${n}`);break;case`rows`:case`cols`:if(!n&&n!==0)throw Error(`${e} must be numeric, value: ${n}`);break;case`windowsPty`:n??={}}return n}}t.OptionsService=o},2660:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,`__esModule`,{value:!0}),t.OscLinkService=void 0;let a=n(2585),o=t.OscLinkService=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let n=t.addMarker(t.ybase+t.y),r={data:e,id:this._nextId++,lines:[n]};return n.onDispose((()=>this._removeMarkerFromLink(r,n))),this._dataByLinkId.set(r.id,r),r.id}let n=e,r=this._getEntryIdKey(n),i=this._entriesWithId.get(r);if(i)return this.addLineToLink(i.id,t.ybase+t.y),i.id;let a=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(n),data:n,lines:[a]};return a.onDispose((()=>this._removeMarkerFromLink(o,a))),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){let n=this._dataByLinkId.get(e);if(n&&n.lines.every((e=>e.line!==t))){let e=this._bufferService.buffer.addMarker(t);n.lines.push(e),e.onDispose((()=>this._removeMarkerFromLink(n,e)))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let n=e.lines.indexOf(t);n!==-1&&(e.lines.splice(n,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};t.OscLinkService=o=r([i(0,a.IBufferService)],o)},8343:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;let n=`di$target`,r=`di$dependencies`;t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[r]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);let i=function(e,t,a){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);(function(e,t,i){t[n]===t?t[r].push({id:e,index:i}):(t[r]=[{id:e,index:i}],t[n]=t)})(i,e,a)};return i.toString=()=>e,t.serviceRegistry.set(e,i),i}},2585:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;let r=n(8343);var i;t.IBufferService=(0,r.createDecorator)(`BufferService`),t.ICoreMouseService=(0,r.createDecorator)(`CoreMouseService`),t.ICoreService=(0,r.createDecorator)(`CoreService`),t.ICharsetService=(0,r.createDecorator)(`CharsetService`),t.IInstantiationService=(0,r.createDecorator)(`InstantiationService`),function(e){e[e.TRACE=0]=`TRACE`,e[e.DEBUG=1]=`DEBUG`,e[e.INFO=2]=`INFO`,e[e.WARN=3]=`WARN`,e[e.ERROR=4]=`ERROR`,e[e.OFF=5]=`OFF`}(i||(t.LogLevelEnum=i={})),t.ILogService=(0,r.createDecorator)(`LogService`),t.IOptionsService=(0,r.createDecorator)(`OptionsService`),t.IOscLinkService=(0,r.createDecorator)(`OscLinkService`),t.IUnicodeService=(0,r.createDecorator)(`UnicodeService`),t.IDecorationService=(0,r.createDecorator)(`DecorationService`)},1480:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.UnicodeService=void 0;let r=n(8460),i=n(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active=``,this._onChange=new r.EventEmitter,this.onChange=this._onChange.event;let e=new i.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0,n=e.length;for(let r=0;r<n;++r){let i=e.charCodeAt(r);if(55296<=i&&i<=56319){if(++r>=n)return t+this.wcwidth(i);let a=e.charCodeAt(r);56320<=a&&a<=57343?i=1024*(i-55296)+a-56320+65536:t+=this.wcwidth(a)}t+=this.wcwidth(i)}return t}}}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,`__esModule`,{value:!0}),e.Terminal=void 0;let t=n(9042),i=n(3236),a=n(844),o=n(5741),s=n(8285),c=n(7975),l=n(7090),u=[`cols`,`rows`];class d extends a.Disposable{constructor(e){super(),this._core=this.register(new i.Terminal(e)),this._addonManager=this.register(new o.AddonManager),this._publicOptions=Object.assign({},this._core.options);let t=e=>this._core.options[e],n=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(let e in this._core.options){let r={get:t.bind(this,e),set:n.bind(this,e)};Object.defineProperty(this._publicOptions,e,r)}}_checkReadonlyOptions(e){if(u.includes(e))throw Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw Error(`You must set the allowProposedApi option to true to use proposed API`)}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||=new c.ParserApi(this._core),this._parser}get unicode(){return this._checkProposedApi(),new l.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||=this.register(new s.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t=`none`;switch(this._core.coreMouseService.activeProtocol){case`X10`:t=`x10`;break;case`VT200`:t=`vt200`;break;case`DRAG`:t=`drag`;break;case`ANY`:t=`any`}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
|
|
630
|
-
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return t}_verifyIntegers(...e){for(let t of e)if(t===1/0||isNaN(t)||t%1!=0)throw Error(`This API only accepts integers`)}_verifyPositiveIntegers(...e){for(let t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw Error(`This API only accepts positive integers`)}}e.Terminal=d})(),r})()))}))(),PT=2,FT=1,IT=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(PT,Math.floor(u/e.css.cell.width)),rows:Math.max(FT,Math.floor(l/e.css.cell.height))}}};function LT({wsUrl:e,
|
|
630
|
+
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return t}_verifyIntegers(...e){for(let t of e)if(t===1/0||isNaN(t)||t%1!=0)throw Error(`This API only accepts integers`)}_verifyPositiveIntegers(...e){for(let t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw Error(`This API only accepts positive integers`)}}e.Terminal=d})(),r})()))}))(),PT=2,FT=1,IT=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(PT,Math.floor(u/e.css.cell.width)),rows:Math.max(FT,Math.floor(l/e.css.cell.height))}}};function LT({wsUrl:e,projectDir:t,logs:n,className:r}){let i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=(0,_.useRef)(null),s=(0,_.useRef)(null);return(0,_.useEffect)(()=>{if(!i.current)return;let e=new NT.Terminal({theme:{background:`#0d1117`,foreground:`#e6edf3`,cursor:`#6366f1`,selectionBackground:`rgba(99, 102, 241, 0.3)`,black:`#0d1117`,red:`#f87171`,green:`#4ade80`,yellow:`#facc15`,blue:`#60a5fa`,magenta:`#c084fc`,cyan:`#22d3ee`,white:`#e6edf3`,brightBlack:`#484f58`,brightRed:`#fca5a5`,brightGreen:`#86efac`,brightYellow:`#fde68a`,brightBlue:`#93c5fd`,brightMagenta:`#d8b4fe`,brightCyan:`#67e8f9`,brightWhite:`#ffffff`},fontSize:12,fontFamily:`'SF Mono', Monaco, 'Cascadia Code', monospace`,cursorBlink:!0,cursorStyle:`bar`,scrollback:5e3,convertEol:!0}),t=new IT;e.loadAddon(t),e.open(i.current),t.fit(),a.current=e,o.current=t;let n=new ResizeObserver(()=>{try{t.fit()}catch{}});return n.observe(i.current),()=>{n.disconnect(),e.dispose(),a.current=null,o.current=null}},[]),(0,_.useEffect)(()=>{if(!a.current)return;let n=a.current,r=window.location.protocol===`https:`?`wss:`:`ws:`,i=e||`${r}//${window.location.host}/api/terminal${t?`?cwd=${encodeURIComponent(t)}`:``}`,o=new WebSocket(i);return s.current=o,o.binaryType=`arraybuffer`,o.onmessage=e=>{e.data instanceof ArrayBuffer?n.write(new Uint8Array(e.data)):n.write(e.data)},o.onclose=()=>{n.write(`\r
|
|
631
631
|
\x1B[90m[disconnected]\x1B[0m\r
|
|
632
|
-
`)},t.onData(e=>{n.readyState===WebSocket.OPEN&&n.send(e)}),()=>{n.close(),o.current=null}},[e]),(0,_.useEffect)(()=>{if(!t||!i.current)return;let e=i.current;for(let n of t)e.writeln(n)},[t]),(0,O.jsx)(`div`,{ref:r,className:n,style:{flex:1,minHeight:0,overflow:`hidden`,background:`#0d1117`}})}var Q={root:`_root_25n2y_2`,header:`_header_25n2y_10`,title:`_title_25n2y_21`,subtitle:`_subtitle_25n2y_28`,headerTabs:`_headerTabs_25n2y_34`,tabBtn:`_tabBtn_25n2y_40`,tabActive:`_tabActive_25n2y_51`,body:`_body_25n2y_58`,editor:`_editor_25n2y_67`,examples:`_examples_25n2y_75`,sectionLabel:`_sectionLabel_25n2y_81`,examplePills:`_examplePills_25n2y_89`,examplePill:`_examplePill_25n2y_89`,editorCols:`_editorCols_25n2y_109`,leftSidebar:`_leftSidebar_25n2y_119`,panel:`_panel_25n2y_128`,panelHeader:`_panelHeader_25n2y_135`,panelTitle:`_panelTitle_25n2y_142`,addBtn:`_addBtn_25n2y_149`,blockLabel:`_blockLabel_25n2y_160`,blockCheck:`_blockCheck_25n2y_170`,authField:`_authField_25n2y_173`,authFieldInput:`_authFieldInput_25n2y_183`,authFieldSelect:`_authFieldSelect_25n2y_193`,authFieldReq:`_authFieldReq_25n2y_204`,removeFieldBtn:`_removeFieldBtn_25n2y_205`,skillsList:`_skillsList_25n2y_208`,skillRow:`_skillRow_25n2y_210`,skillIcon:`_skillIcon_25n2y_218`,skillName:`_skillName_25n2y_220`,skillBadge:`_skillBadge_25n2y_229`,skillBadge_skill:`_skillBadge_skill_25n2y_237`,skillBadge_memory:`_skillBadge_memory_25n2y_238`,skillBadge_provider:`_skillBadge_provider_25n2y_239`,skillBadge_log:`_skillBadge_log_25n2y_240`,skillEmpty:`_skillEmpty_25n2y_242`,skillBtn:`_skillBtn_25n2y_244`,skillsEmpty:`_skillsEmpty_25n2y_246`,snapshotRow:`_snapshotRow_25n2y_249`,snapshotTs:`_snapshotTs_25n2y_258`,snapshotCount:`_snapshotCount_25n2y_259`,snapshotBtn:`_snapshotBtn_25n2y_260`,genStatus:`_genStatus_25n2y_263`,repairStatus:`_repairStatus_25n2y_265`,repairStatusTitle:`_repairStatusTitle_25n2y_266`,repairStatusProg:`_repairStatusProg_25n2y_267`,repairStatusFile:`_repairStatusFile_25n2y_268`,actionRow:`_actionRow_25n2y_271`,actionBtn:`_actionBtn_25n2y_273`,actionBtnIcon:`_actionBtnIcon_25n2y_275`,actionBtnActive:`_actionBtnActive_25n2y_276`,repairBtn:`_repairBtn_25n2y_278`,sandboxBtn:`_sandboxBtn_25n2y_280`,statsBar:`_statsBar_25n2y_282`,rightPanel:`_rightPanel_25n2y_285`,rightTabBar:`_rightTabBar_25n2y_296`,rightTab:`_rightTab_25n2y_296`,rightTabActive:`_rightTabActive_25n2y_313`,repairBar:`_repairBar_25n2y_316`,repairBarRow:`_repairBarRow_25n2y_326`,repairBarIcon:`_repairBarIcon_25n2y_327`,repairBarLabel:`_repairBarLabel_25n2y_328`,repairBarFile:`_repairBarFile_25n2y_329`,repairBarCounter:`_repairBarCounter_25n2y_330`,repairBarTime:`_repairBarTime_25n2y_331`,genBar:`_genBar_25n2y_333`,genBarRow:`_genBarRow_25n2y_343`,genBarRobot:`_genBarRobot_25n2y_344`,robotBob:`_robotBob_25n2y_1`,genBarLabel:`_genBarLabel_25n2y_345`,genBarFile:`_genBarFile_25n2y_346`,genBarCounter:`_genBarCounter_25n2y_347`,genBarTime:`_genBarTime_25n2y_348`,progressTrack:`_progressTrack_25n2y_350`,repairProgress:`_repairProgress_25n2y_351`,genProgress:`_genProgress_25n2y_352`,genDots:`_genDots_25n2y_355`,dot:`_dot_25n2y_356`,dot1:`_dot1_25n2y_357`,dotBounce:`_dotBounce_25n2y_1`,dot2:`_dot2_25n2y_358`,dot3:`_dot3_25n2y_359`,stopBtn:`_stopBtn_25n2y_362`,codeArea:`_codeArea_25n2y_365`,sandboxWrap:`_sandboxWrap_25n2y_366`,sandboxFrame:`_sandboxFrame_25n2y_367`,sandboxEmpty:`_sandboxEmpty_25n2y_368`,sandboxStartBtn:`_sandboxStartBtn_25n2y_369`,sandboxConsole:`_sandboxConsole_25n2y_372`,sandboxConsoleCollapsed:`_sandboxConsoleCollapsed_25n2y_381`,sandboxConsoleHeader:`_sandboxConsoleHeader_25n2y_382`,sandboxConsoleTitle:`_sandboxConsoleTitle_25n2y_394`,sandboxConsolePort:`_sandboxConsolePort_25n2y_395`,sandboxConsoleDots:`_sandboxConsoleDots_25n2y_396`,sandboxConsoleToggle:`_sandboxConsoleToggle_25n2y_397`,sandboxReloadBtn:`_sandboxReloadBtn_25n2y_398`,sandboxStopBtn:`_sandboxStopBtn_25n2y_400`,sandboxConsoleBody:`_sandboxConsoleBody_25n2y_402`,sandboxLogLine:`_sandboxLogLine_25n2y_408`,sandboxLogPhase:`_sandboxLogPhase_25n2y_417`,sandboxLogError:`_sandboxLogError_25n2y_418`,sandboxLogWarn:`_sandboxLogWarn_25n2y_419`,sandboxLogOk:`_sandboxLogOk_25n2y_420`,codeLayout:`_codeLayout_25n2y_423`,codeRow:`_codeRow_25n2y_432`,ideTabBar:`_ideTabBar_25n2y_440`,ideTab:`_ideTab_25n2y_440`,ideTabActive:`_ideTabActive_25n2y_472`,ideTabError:`_ideTabError_25n2y_477`,ideTabPending:`_ideTabPending_25n2y_478`,ideTabIcon:`_ideTabIcon_25n2y_479`,ideTabName:`_ideTabName_25n2y_480`,ideTabDot:`_ideTabDot_25n2y_481`,ideTabUnsaved:`_ideTabUnsaved_25n2y_487`,codeEditorWrap:`_codeEditorWrap_25n2y_495`,editToggleBtn:`_editToggleBtn_25n2y_506`,editToggleBtnActive:`_editToggleBtnActive_25n2y_517`,codeEditor:`_codeEditor_25n2y_495`,genCursor:`_genCursor_25n2y_539`,cursorBlink:`_cursorBlink_25n2y_1`,diffOverlay:`_diffOverlay_25n2y_548`,diffOverlayHeader:`_diffOverlayHeader_25n2y_557`,diffOverlayActions:`_diffOverlayActions_25n2y_568`,diffAcceptBtn:`_diffAcceptBtn_25n2y_569`,diffRejectBtn:`_diffRejectBtn_25n2y_570`,diffOverlayBody:`_diffOverlayBody_25n2y_571`,diffSame:`_diffSame_25n2y_572`,diffRem:`_diffRem_25n2y_573`,diffAdd:`_diffAdd_25n2y_574`,noFiles:`_noFiles_25n2y_576`,noFilesHero:`_noFilesHero_25n2y_586`,noFilesIcon:`_noFilesIcon_25n2y_593`,noFilesTitle:`_noFilesTitle_25n2y_595`,noFilesTagline:`_noFilesTagline_25n2y_602`,noFilesSteps:`_noFilesSteps_25n2y_607`,noFilesStep:`_noFilesStep_25n2y_607`,noFilesStepNum:`_noFilesStepNum_25n2y_624`,noFilesExamplesHint:`_noFilesExamplesHint_25n2y_638`,noFilesExampleBtn:`_noFilesExampleBtn_25n2y_648`,codeViewer:`_codeViewer_25n2y_660`,codeHeader:`_codeHeader_25n2y_668`,codeFileIcon:`_codeFileIcon_25n2y_681`,codeFileName:`_codeFileName_25n2y_682`,codeFileMeta:`_codeFileMeta_25n2y_683`,fileError:`_fileError_25n2y_685`,fileSyntaxError:`_fileSyntaxError_25n2y_686`,filePending:`_filePending_25n2y_687`,codeWithLines:`_codeWithLines_25n2y_690`,lineNumbers:`_lineNumbers_25n2y_697`,lineNum:`_lineNum_25n2y_697`,code:`_code_25n2y_365`,codeError:`_codeError_25n2y_728`,codeSyntaxError:`_codeSyntaxError_25n2y_729`,fileSidebar:`_fileSidebar_25n2y_732`,fileSidebarHeader:`_fileSidebarHeader_25n2y_741`,fileTab:`_fileTab_25n2y_751`,fileTabActive:`_fileTabActive_25n2y_767`,fileTabError:`_fileTabError_25n2y_768`,fileTabRow:`_fileTabRow_25n2y_770`,fileTabIcon:`_fileTabIcon_25n2y_771`,fileTabName:`_fileTabName_25n2y_772`,fileTabSize:`_fileTabSize_25n2y_773`,fileTabDir:`_fileTabDir_25n2y_774`,fileTabTokens:`_fileTabTokens_25n2y_775`,fileTabMeta:`_fileTabMeta_25n2y_776`,projectsList:`_projectsList_25n2y_779`,emptyProjects:`_emptyProjects_25n2y_781`,emptyIcon:`_emptyIcon_25n2y_782`,emptyHint:`_emptyHint_25n2y_783`,projectCard:`_projectCard_25n2y_785`,projectInfo:`_projectInfo_25n2y_786`,projectName:`_projectName_25n2y_787`,projectDesc:`_projectDesc_25n2y_788`,projectMeta:`_projectMeta_25n2y_789`,openBtn:`_openBtn_25n2y_790`,deleteBtn:`_deleteBtn_25n2y_791`,planBanner:`_planBanner_25n2y_794`,planTitle:`_planTitle_25n2y_803`,planText:`_planText_25n2y_804`,planActions:`_planActions_25n2y_805`,planApprove:`_planApprove_25n2y_806`,planReject:`_planReject_25n2y_807`,grepPanel:`_grepPanel_25n2y_810`,grepRow:`_grepRow_25n2y_819`,grepInput:`_grepInput_25n2y_820`,grepBtn:`_grepBtn_25n2y_822`,grepClose:`_grepClose_25n2y_823`,grepCount:`_grepCount_25n2y_824`,grepResults:`_grepResults_25n2y_825`,grepEmpty:`_grepEmpty_25n2y_826`,grepMatch:`_grepMatch_25n2y_827`,grepMatchFile:`_grepMatchFile_25n2y_829`,grepMatchLine:`_grepMatchLine_25n2y_830`,diffPanel:`_diffPanel_25n2y_833`,diffHeader:`_diffHeader_25n2y_842`,diffClose:`_diffClose_25n2y_843`,diffFile:`_diffFile_25n2y_844`,diffSummary:`_diffSummary_25n2y_845`,diffArrow:`_diffArrow_25n2y_846`,diffFileName:`_diffFileName_25n2y_847`,diffAdded:`_diffAdded_25n2y_848`,diffRemoved:`_diffRemoved_25n2y_849`,diffContent:`_diffContent_25n2y_850`,diffInline:`_diffInline_25n2y_853`,diffInlineHeader:`_diffInlineHeader_25n2y_854`,diffRemLine:`_diffRemLine_25n2y_855`,diffAddLine:`_diffAddLine_25n2y_856`,chatPanel:`_chatPanel_25n2y_859`,chatMessages:`_chatMessages_25n2y_868`,chatWelcome:`_chatWelcome_25n2y_870`,chatTips:`_chatTips_25n2y_871`,chatTipsTitle:`_chatTipsTitle_25n2y_872`,chatTip:`_chatTip_25n2y_871`,chatUser:`_chatUser_25n2y_876`,chatUserBubble:`_chatUserBubble_25n2y_877`,chatAttachPreviews:`_chatAttachPreviews_25n2y_878`,chatAttachBadge:`_chatAttachBadge_25n2y_879`,chatSystem:`_chatSystem_25n2y_881`,chatSystemBubble:`_chatSystemBubble_25n2y_882`,chatSyntaxErr:`_chatSyntaxErr_25n2y_883`,chatAgent:`_chatAgent_25n2y_885`,chatAgentCard:`_chatAgentCard_25n2y_886`,chatAgentHeader:`_chatAgentHeader_25n2y_887`,chatAgentRobot:`_chatAgentRobot_25n2y_888`,chatAgentRobotAnim:`_chatAgentRobotAnim_25n2y_889`,chatAgentLabel:`_chatAgentLabel_25n2y_890`,chatRunningDots:`_chatRunningDots_25n2y_891`,chatAgentText:`_chatAgentText_25n2y_892`,chatToolBadges:`_chatToolBadges_25n2y_893`,toolBadge:`_toolBadge_25n2y_894`,toolBadgeOk:`_toolBadgeOk_25n2y_895`,toolBadgeErr:`_toolBadgeErr_25n2y_896`,cursor:`_cursor_25n2y_898`,blink:`_blink_25n2y_1`,attachPreviews:`_attachPreviews_25n2y_901`,attachBadge:`_attachBadge_25n2y_902`,removeAttachBtn:`_removeAttachBtn_25n2y_903`,projNameRow:`_projNameRow_25n2y_906`,projNameLabel:`_projNameLabel_25n2y_907`,projNameInput:`_projNameInput_25n2y_908`,projActiveRow:`_projActiveRow_25n2y_909`,projActiveName:`_projActiveName_25n2y_910`,chatInputRow:`_chatInputRow_25n2y_913`,attachLabel:`_attachLabel_25n2y_914`,chatTextarea:`_chatTextarea_25n2y_915`,chatSendCol:`_chatSendCol_25n2y_918`,chatSendBtn:`_chatSendBtn_25n2y_919`,chatStopBtn:`_chatStopBtn_25n2y_921`,modalOverlay:`_modalOverlay_25n2y_924`,modal:`_modal_25n2y_924`,modalHeader:`_modalHeader_25n2y_946`,modalTitle:`_modalTitle_25n2y_947`,modalClose:`_modalClose_25n2y_948`,modalBody:`_modalBody_25n2y_950`,modalRow:`_modalRow_25n2y_952`,modalField:`_modalField_25n2y_953`,modalLabel:`_modalLabel_25n2y_954`,modalLabelRow:`_modalLabelRow_25n2y_955`,modalSelect:`_modalSelect_25n2y_957`,modalInput:`_modalInput_25n2y_958`,modalHint:`_modalHint_25n2y_961`,modalAiBox:`_modalAiBox_25n2y_963`,modalAiRow:`_modalAiRow_25n2y_964`,modalAiDesc:`_modalAiDesc_25n2y_965`,modalAiBtn:`_modalAiBtn_25n2y_966`,modalContentArea:`_modalContentArea_25n2y_969`,logView:`_logView_25n2y_972`,modalFooter:`_modalFooter_25n2y_974`,modalCancelBtn:`_modalCancelBtn_25n2y_975`,modalSaveBtn:`_modalSaveBtn_25n2y_976`,fileTreeWrap:`_fileTreeWrap_25n2y_979`,headerIconBtn:`_headerIconBtn_25n2y_989`,headerIconBtnActive:`_headerIconBtnActive_25n2y_1000`,terminalPanel:`_terminalPanel_25n2y_1003`,terminalHeader:`_terminalHeader_25n2y_1011`,terminalTitle:`_terminalTitle_25n2y_1020`,terminalClose:`_terminalClose_25n2y_1021`,findBar:`_findBar_25n2y_1024`,findInput:`_findInput_25n2y_1033`,findCount:`_findCount_25n2y_1044`,findBtn:`_findBtn_25n2y_1045`,findClose:`_findClose_25n2y_1047`},RT=[{name:`MySaaS`,desc:`Full-stack SaaS web application with Node.js/Express backend and vanilla JS frontend.
|
|
632
|
+
`)},n.onData(e=>{o.readyState===WebSocket.OPEN&&o.send(e)}),()=>{o.close(),s.current=null}},[e,t]),(0,_.useEffect)(()=>{if(!n||!a.current)return;let e=a.current;for(let t of n)e.writeln(t)},[n]),(0,O.jsx)(`div`,{ref:i,className:r,style:{flex:1,minHeight:0,overflow:`hidden`,background:`#0d1117`}})}var Q={root:`_root_1p1kl_2`,header:`_header_1p1kl_10`,title:`_title_1p1kl_21`,subtitle:`_subtitle_1p1kl_28`,headerTabs:`_headerTabs_1p1kl_34`,tabBtn:`_tabBtn_1p1kl_40`,tabActive:`_tabActive_1p1kl_51`,body:`_body_1p1kl_58`,editor:`_editor_1p1kl_67`,examples:`_examples_1p1kl_75`,sectionLabel:`_sectionLabel_1p1kl_81`,examplePills:`_examplePills_1p1kl_89`,examplePill:`_examplePill_1p1kl_89`,editorCols:`_editorCols_1p1kl_109`,leftSidebar:`_leftSidebar_1p1kl_119`,panel:`_panel_1p1kl_128`,panelHeader:`_panelHeader_1p1kl_135`,panelTitle:`_panelTitle_1p1kl_142`,addBtn:`_addBtn_1p1kl_149`,blockLabel:`_blockLabel_1p1kl_160`,blockCheck:`_blockCheck_1p1kl_170`,authField:`_authField_1p1kl_173`,authFieldInput:`_authFieldInput_1p1kl_183`,authFieldSelect:`_authFieldSelect_1p1kl_193`,authFieldReq:`_authFieldReq_1p1kl_204`,removeFieldBtn:`_removeFieldBtn_1p1kl_205`,skillsList:`_skillsList_1p1kl_208`,skillRow:`_skillRow_1p1kl_210`,skillIcon:`_skillIcon_1p1kl_218`,skillName:`_skillName_1p1kl_220`,skillBadge:`_skillBadge_1p1kl_229`,skillBadge_skill:`_skillBadge_skill_1p1kl_237`,skillBadge_memory:`_skillBadge_memory_1p1kl_238`,skillBadge_provider:`_skillBadge_provider_1p1kl_239`,skillBadge_log:`_skillBadge_log_1p1kl_240`,skillEmpty:`_skillEmpty_1p1kl_242`,skillBtn:`_skillBtn_1p1kl_244`,skillsEmpty:`_skillsEmpty_1p1kl_246`,snapshotRow:`_snapshotRow_1p1kl_249`,snapshotTs:`_snapshotTs_1p1kl_258`,snapshotCount:`_snapshotCount_1p1kl_259`,snapshotBtn:`_snapshotBtn_1p1kl_260`,genStatus:`_genStatus_1p1kl_263`,repairStatus:`_repairStatus_1p1kl_265`,repairStatusTitle:`_repairStatusTitle_1p1kl_266`,repairStatusProg:`_repairStatusProg_1p1kl_267`,repairStatusFile:`_repairStatusFile_1p1kl_268`,actionRow:`_actionRow_1p1kl_271`,actionBtn:`_actionBtn_1p1kl_273`,actionBtnIcon:`_actionBtnIcon_1p1kl_275`,actionBtnActive:`_actionBtnActive_1p1kl_276`,repairBtn:`_repairBtn_1p1kl_278`,sandboxBtn:`_sandboxBtn_1p1kl_280`,statsBar:`_statsBar_1p1kl_282`,rightPanel:`_rightPanel_1p1kl_285`,rightTabBar:`_rightTabBar_1p1kl_296`,rightTab:`_rightTab_1p1kl_296`,rightTabActive:`_rightTabActive_1p1kl_313`,repairBar:`_repairBar_1p1kl_316`,repairBarRow:`_repairBarRow_1p1kl_326`,repairBarIcon:`_repairBarIcon_1p1kl_327`,repairBarLabel:`_repairBarLabel_1p1kl_328`,repairBarFile:`_repairBarFile_1p1kl_329`,repairBarCounter:`_repairBarCounter_1p1kl_330`,repairBarTime:`_repairBarTime_1p1kl_331`,genBar:`_genBar_1p1kl_333`,genBarRow:`_genBarRow_1p1kl_343`,genBarRobot:`_genBarRobot_1p1kl_344`,robotBob:`_robotBob_1p1kl_1`,genBarLabel:`_genBarLabel_1p1kl_345`,genBarFile:`_genBarFile_1p1kl_346`,genBarCounter:`_genBarCounter_1p1kl_347`,genBarTime:`_genBarTime_1p1kl_348`,progressTrack:`_progressTrack_1p1kl_350`,repairProgress:`_repairProgress_1p1kl_351`,genProgress:`_genProgress_1p1kl_352`,genDots:`_genDots_1p1kl_355`,dot:`_dot_1p1kl_356`,dot1:`_dot1_1p1kl_357`,dotBounce:`_dotBounce_1p1kl_1`,dot2:`_dot2_1p1kl_358`,dot3:`_dot3_1p1kl_359`,stopBtn:`_stopBtn_1p1kl_362`,codeArea:`_codeArea_1p1kl_365`,sandboxWrap:`_sandboxWrap_1p1kl_366`,sandboxFrame:`_sandboxFrame_1p1kl_367`,sandboxEmpty:`_sandboxEmpty_1p1kl_368`,sandboxStartBtn:`_sandboxStartBtn_1p1kl_369`,sandboxConsole:`_sandboxConsole_1p1kl_372`,sandboxConsoleCollapsed:`_sandboxConsoleCollapsed_1p1kl_381`,sandboxConsoleHeader:`_sandboxConsoleHeader_1p1kl_382`,sandboxConsoleTitle:`_sandboxConsoleTitle_1p1kl_394`,sandboxConsolePort:`_sandboxConsolePort_1p1kl_395`,sandboxConsoleDots:`_sandboxConsoleDots_1p1kl_396`,sandboxConsoleToggle:`_sandboxConsoleToggle_1p1kl_397`,sandboxReloadBtn:`_sandboxReloadBtn_1p1kl_398`,sandboxStopBtn:`_sandboxStopBtn_1p1kl_400`,sandboxConsoleBody:`_sandboxConsoleBody_1p1kl_402`,sandboxLogLine:`_sandboxLogLine_1p1kl_408`,sandboxLogPhase:`_sandboxLogPhase_1p1kl_417`,sandboxLogError:`_sandboxLogError_1p1kl_418`,sandboxLogWarn:`_sandboxLogWarn_1p1kl_419`,sandboxLogOk:`_sandboxLogOk_1p1kl_420`,codeLayout:`_codeLayout_1p1kl_423`,codeRow:`_codeRow_1p1kl_432`,ideTabBar:`_ideTabBar_1p1kl_440`,ideTab:`_ideTab_1p1kl_440`,ideTabActive:`_ideTabActive_1p1kl_472`,ideTabError:`_ideTabError_1p1kl_477`,ideTabPending:`_ideTabPending_1p1kl_478`,ideTabIcon:`_ideTabIcon_1p1kl_479`,ideTabName:`_ideTabName_1p1kl_480`,ideTabDot:`_ideTabDot_1p1kl_481`,ideTabUnsaved:`_ideTabUnsaved_1p1kl_487`,codeEditorWrap:`_codeEditorWrap_1p1kl_495`,editToggleBtn:`_editToggleBtn_1p1kl_506`,editToggleBtnActive:`_editToggleBtnActive_1p1kl_517`,codeEditor:`_codeEditor_1p1kl_495`,genCursor:`_genCursor_1p1kl_539`,cursorBlink:`_cursorBlink_1p1kl_1`,diffOverlay:`_diffOverlay_1p1kl_548`,diffOverlayHeader:`_diffOverlayHeader_1p1kl_557`,diffOverlayActions:`_diffOverlayActions_1p1kl_568`,diffAcceptBtn:`_diffAcceptBtn_1p1kl_569`,diffRejectBtn:`_diffRejectBtn_1p1kl_570`,diffOverlayBody:`_diffOverlayBody_1p1kl_571`,diffSame:`_diffSame_1p1kl_572`,diffRem:`_diffRem_1p1kl_573`,diffAdd:`_diffAdd_1p1kl_574`,noFiles:`_noFiles_1p1kl_576`,noFilesHero:`_noFilesHero_1p1kl_586`,noFilesIcon:`_noFilesIcon_1p1kl_593`,noFilesTitle:`_noFilesTitle_1p1kl_595`,noFilesTagline:`_noFilesTagline_1p1kl_602`,noFilesSteps:`_noFilesSteps_1p1kl_607`,noFilesStep:`_noFilesStep_1p1kl_607`,noFilesStepNum:`_noFilesStepNum_1p1kl_624`,noFilesExamplesHint:`_noFilesExamplesHint_1p1kl_638`,noFilesExampleBtn:`_noFilesExampleBtn_1p1kl_648`,codeViewer:`_codeViewer_1p1kl_660`,codeHeader:`_codeHeader_1p1kl_668`,codeFileIcon:`_codeFileIcon_1p1kl_681`,codeFileName:`_codeFileName_1p1kl_682`,codeFileMeta:`_codeFileMeta_1p1kl_683`,fileError:`_fileError_1p1kl_685`,fileSyntaxError:`_fileSyntaxError_1p1kl_686`,filePending:`_filePending_1p1kl_687`,codeWithLines:`_codeWithLines_1p1kl_690`,lineNumbers:`_lineNumbers_1p1kl_697`,lineNum:`_lineNum_1p1kl_697`,code:`_code_1p1kl_365`,codeError:`_codeError_1p1kl_728`,codeSyntaxError:`_codeSyntaxError_1p1kl_729`,fileSidebar:`_fileSidebar_1p1kl_732`,fileSidebarHeader:`_fileSidebarHeader_1p1kl_741`,fileTab:`_fileTab_1p1kl_751`,fileTabActive:`_fileTabActive_1p1kl_767`,fileTabError:`_fileTabError_1p1kl_768`,fileTabRow:`_fileTabRow_1p1kl_770`,fileTabIcon:`_fileTabIcon_1p1kl_771`,fileTabName:`_fileTabName_1p1kl_772`,fileTabSize:`_fileTabSize_1p1kl_773`,fileTabDir:`_fileTabDir_1p1kl_774`,fileTabTokens:`_fileTabTokens_1p1kl_775`,fileTabMeta:`_fileTabMeta_1p1kl_776`,projectsList:`_projectsList_1p1kl_779`,emptyProjects:`_emptyProjects_1p1kl_781`,emptyIcon:`_emptyIcon_1p1kl_782`,emptyHint:`_emptyHint_1p1kl_783`,projectCard:`_projectCard_1p1kl_785`,projectInfo:`_projectInfo_1p1kl_786`,projectName:`_projectName_1p1kl_787`,projectDesc:`_projectDesc_1p1kl_788`,projectMeta:`_projectMeta_1p1kl_789`,openBtn:`_openBtn_1p1kl_790`,deleteBtn:`_deleteBtn_1p1kl_791`,planBanner:`_planBanner_1p1kl_794`,planTitle:`_planTitle_1p1kl_803`,planText:`_planText_1p1kl_804`,planActions:`_planActions_1p1kl_805`,planApprove:`_planApprove_1p1kl_806`,planReject:`_planReject_1p1kl_807`,grepPanel:`_grepPanel_1p1kl_810`,grepRow:`_grepRow_1p1kl_819`,grepInput:`_grepInput_1p1kl_820`,grepBtn:`_grepBtn_1p1kl_822`,grepClose:`_grepClose_1p1kl_823`,grepCount:`_grepCount_1p1kl_824`,grepResults:`_grepResults_1p1kl_825`,grepEmpty:`_grepEmpty_1p1kl_826`,grepMatch:`_grepMatch_1p1kl_827`,grepMatchFile:`_grepMatchFile_1p1kl_829`,grepMatchLine:`_grepMatchLine_1p1kl_830`,diffPanel:`_diffPanel_1p1kl_833`,diffHeader:`_diffHeader_1p1kl_842`,diffClose:`_diffClose_1p1kl_843`,diffFile:`_diffFile_1p1kl_844`,diffSummary:`_diffSummary_1p1kl_845`,diffArrow:`_diffArrow_1p1kl_846`,diffFileName:`_diffFileName_1p1kl_847`,diffAdded:`_diffAdded_1p1kl_848`,diffRemoved:`_diffRemoved_1p1kl_849`,diffContent:`_diffContent_1p1kl_850`,diffInline:`_diffInline_1p1kl_853`,diffInlineHeader:`_diffInlineHeader_1p1kl_854`,diffRemLine:`_diffRemLine_1p1kl_855`,diffAddLine:`_diffAddLine_1p1kl_856`,chatPanel:`_chatPanel_1p1kl_859`,chatMessages:`_chatMessages_1p1kl_868`,chatWelcome:`_chatWelcome_1p1kl_870`,chatTips:`_chatTips_1p1kl_871`,chatTipsTitle:`_chatTipsTitle_1p1kl_872`,chatTip:`_chatTip_1p1kl_871`,doctrinePhase:`_doctrinePhase_1p1kl_877`,doctrinePhaseNum:`_doctrinePhaseNum_1p1kl_886`,doctrinePhaseTitle:`_doctrinePhaseTitle_1p1kl_895`,doctrinePhaseDesc:`_doctrinePhaseDesc_1p1kl_896`,doctrineTips:`_doctrineTips_1p1kl_897`,doctrineTipsTitle:`_doctrineTipsTitle_1p1kl_903`,doctrineTip:`_doctrineTip_1p1kl_897`,chatUser:`_chatUser_1p1kl_906`,chatUserBubble:`_chatUserBubble_1p1kl_907`,chatAttachPreviews:`_chatAttachPreviews_1p1kl_908`,chatAttachBadge:`_chatAttachBadge_1p1kl_909`,chatSystem:`_chatSystem_1p1kl_911`,chatSystemBubble:`_chatSystemBubble_1p1kl_912`,chatSyntaxErr:`_chatSyntaxErr_1p1kl_913`,chatAgent:`_chatAgent_1p1kl_915`,chatAgentCard:`_chatAgentCard_1p1kl_916`,chatAgentHeader:`_chatAgentHeader_1p1kl_917`,chatAgentRobot:`_chatAgentRobot_1p1kl_918`,chatAgentRobotAnim:`_chatAgentRobotAnim_1p1kl_919`,chatAgentLabel:`_chatAgentLabel_1p1kl_920`,chatRunningDots:`_chatRunningDots_1p1kl_921`,chatAgentText:`_chatAgentText_1p1kl_922`,chatToolBadges:`_chatToolBadges_1p1kl_923`,toolBadge:`_toolBadge_1p1kl_924`,toolBadgeOk:`_toolBadgeOk_1p1kl_925`,toolBadgeErr:`_toolBadgeErr_1p1kl_926`,cursor:`_cursor_1p1kl_928`,blink:`_blink_1p1kl_1`,attachPreviews:`_attachPreviews_1p1kl_931`,attachBadge:`_attachBadge_1p1kl_932`,removeAttachBtn:`_removeAttachBtn_1p1kl_933`,projNameRow:`_projNameRow_1p1kl_936`,projNameLabel:`_projNameLabel_1p1kl_937`,projNameInput:`_projNameInput_1p1kl_938`,projActiveRow:`_projActiveRow_1p1kl_939`,projActiveName:`_projActiveName_1p1kl_940`,chatInputRow:`_chatInputRow_1p1kl_943`,attachLabel:`_attachLabel_1p1kl_944`,chatTextarea:`_chatTextarea_1p1kl_945`,chatSendCol:`_chatSendCol_1p1kl_948`,chatSendBtn:`_chatSendBtn_1p1kl_949`,chatStopBtn:`_chatStopBtn_1p1kl_951`,modalOverlay:`_modalOverlay_1p1kl_954`,modal:`_modal_1p1kl_954`,modalHeader:`_modalHeader_1p1kl_976`,modalTitle:`_modalTitle_1p1kl_977`,modalClose:`_modalClose_1p1kl_978`,modalBody:`_modalBody_1p1kl_980`,modalRow:`_modalRow_1p1kl_982`,modalField:`_modalField_1p1kl_983`,modalLabel:`_modalLabel_1p1kl_984`,modalLabelRow:`_modalLabelRow_1p1kl_985`,modalSelect:`_modalSelect_1p1kl_987`,modalInput:`_modalInput_1p1kl_988`,modalHint:`_modalHint_1p1kl_991`,modalAiBox:`_modalAiBox_1p1kl_993`,modalAiRow:`_modalAiRow_1p1kl_994`,modalAiDesc:`_modalAiDesc_1p1kl_995`,modalAiBtn:`_modalAiBtn_1p1kl_996`,modalContentArea:`_modalContentArea_1p1kl_999`,logView:`_logView_1p1kl_1002`,modalFooter:`_modalFooter_1p1kl_1004`,modalCancelBtn:`_modalCancelBtn_1p1kl_1005`,modalSaveBtn:`_modalSaveBtn_1p1kl_1006`,fileTreeWrap:`_fileTreeWrap_1p1kl_1009`,headerIconBtn:`_headerIconBtn_1p1kl_1019`,headerIconBtnActive:`_headerIconBtnActive_1p1kl_1030`,terminalPanel:`_terminalPanel_1p1kl_1033`,terminalHeader:`_terminalHeader_1p1kl_1041`,terminalTitle:`_terminalTitle_1p1kl_1050`,terminalClose:`_terminalClose_1p1kl_1051`,findBar:`_findBar_1p1kl_1054`,findInput:`_findInput_1p1kl_1063`,findCount:`_findCount_1p1kl_1074`,findBtn:`_findBtn_1p1kl_1075`,findClose:`_findClose_1p1kl_1077`},RT=[{name:`MySaaS`,desc:`Full-stack SaaS web application with Node.js/Express backend and vanilla JS frontend.
|
|
633
633
|
|
|
634
634
|
BACKEND (server.js + routes/):
|
|
635
635
|
- Express server with helmet, cors, rate-limiting, compression middleware
|
|
@@ -717,29 +717,29 @@ FRONTEND:
|
|
|
717
717
|
- index.html: Job board homepage — (1) Hero: gradient background, large search widget (keyword input + location input + category select + Search button), quick stats bar (12,847 Jobs / 3,420 Companies / 45K Candidates). (2) Featured jobs: horizontal scroll row of 4 "Featured" cards with company logo (colored emoji), job title, company name, location + type badge + salary range + "Easy Apply" button. (3) Main layout: left sidebar filters (Job Type checkboxes, Salary Range slider, Category checkboxes, Location input, Posted Within select, Remote Only toggle) + right: jobs list (job row cards with company logo/title/company/location/type/salary/time-ago posted/Save bookmark/Apply button). (4) "Load More" button + results count "Showing 12 of 247 jobs". (5) Top companies section: 8 company cards with logo/name/industry/openings count. (6) Category browsing: 6 category cards with icon/name/count/link. (7) Job seeker CTA banner. (8) Newsletter.
|
|
718
718
|
- job.html: Job detail page — company header (logo + name + industry + website + size + "Follow" button), job title + badges (Remote, Senior, Urgent), salary + location + posted date, Apply Now button (sticky on scroll), job description (markdown-rendered sections: About/Responsibilities/Requirements/Nice-to-Have/Benefits), company sidebar card (description + stats), similar jobs list (4 cards)
|
|
719
719
|
- apply.html: Application modal/page — job summary header, form (Full Name / Email / Phone / LinkedIn URL / Portfolio URL / Cover Letter textarea with character count / Resume paste textarea), Submit button with loading state, success page with application reference number
|
|
720
|
-
- public/css/main.css: Modern job board design — tag/badge system (Remote=blue, Onsite=green, Urgent=red), salary range display, company logo placeholder styles, filter sidebar collapse on mobile, job card hover effects, application form validation styles`}],zT=[{key:`auth`,label:`Auth (register/login/JWT)`,icon:`🔒`},{key:`cookieBanner`,label:`GDPR Cookie Banner`,icon:`🍪`},{key:`securityMiddleware`,label:`Security Middleware`,icon:`🛡️`},{key:`emailVerification`,label:`Email Verification`,icon:`✉️`}],BT={js:`📄`,ts:`📄`,css:`🎨`,html:`🌐`,json:`📋`,md:`📑`,sql:`🗂`,env:`🔐`,conf:`⚙`,lock:`🔒`};function VT(e){return BT[e.split(`.`).pop()?.toLowerCase()??``]??`📄`}function HT(e){let t=new TextEncoder().encode(e).length;return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function UT(e){return e===`memory`?`🧠`:e===`provider`?`🤖`:e===`log`?`📄`:`📋`}function WT(){let e=A(),[t,n]=(0,_.useState)(`new`),[r,i]=(0,_.useState)(`files`),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)({auth:!0,cookieBanner:!0,securityMiddleware:!0,emailVerification:!0}),[d,f]=(0,_.useState)([{label:`Email`,type:`email`,required:!0},{label:`Password`,type:`password`,required:!0},{label:`Name`,type:`text`,required:!0}]),[p,m]=(0,_.useState)([]),[h,g]=(0,_.useState)(0),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),[S,C]=(0,_.useState)(new Set),[w,ee]=(0,_.useState)(!1),[te,ne]=(0,_.useState)(``),[re,ie]=(0,_.useState)(``),[ae,D]=(0,_.useState)(!1),[oe,k]=(0,_.useState)(
|
|
720
|
+
- public/css/main.css: Modern job board design — tag/badge system (Remote=blue, Onsite=green, Urgent=red), salary range display, company logo placeholder styles, filter sidebar collapse on mobile, job card hover effects, application form validation styles`}],zT=[{key:`auth`,label:`Auth (register/login/JWT)`,icon:`🔒`},{key:`cookieBanner`,label:`GDPR Cookie Banner`,icon:`🍪`},{key:`securityMiddleware`,label:`Security Middleware`,icon:`🛡️`},{key:`emailVerification`,label:`Email Verification`,icon:`✉️`}],BT={js:`📄`,ts:`📄`,css:`🎨`,html:`🌐`,json:`📋`,md:`📑`,sql:`🗂`,env:`🔐`,conf:`⚙`,lock:`🔒`};function VT(e){return BT[e.split(`.`).pop()?.toLowerCase()??``]??`📄`}function HT(e){let t=new TextEncoder().encode(e).length;return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function UT(e){return e===`memory`?`🧠`:e===`provider`?`🤖`:e===`log`?`📄`:`📋`}function WT(){let e=A(),[t,n]=(0,_.useState)(`new`),[r,i]=(0,_.useState)(`files`),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)({auth:!0,cookieBanner:!0,securityMiddleware:!0,emailVerification:!0}),[d,f]=(0,_.useState)([{label:`Email`,type:`email`,required:!0},{label:`Password`,type:`password`,required:!0},{label:`Name`,type:`text`,required:!0}]),[p,m]=(0,_.useState)([]),[h,g]=(0,_.useState)(0),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),[S,C]=(0,_.useState)(new Set),[w,ee]=(0,_.useState)(!1),[te,ne]=(0,_.useState)(``),[re,ie]=(0,_.useState)(``),[ae,D]=(0,_.useState)(!1),[oe,k]=(0,_.useState)(null),[se,ce]=(0,_.useState)(!1),le=(0,_.useRef)(null),ue=(0,_.useRef)(null),de=(0,_.useRef)(null),[fe,j]=(0,_.useState)(null),[pe,me]=(0,_.useState)(!1),[he,ge]=(0,_.useState)(!1),[_e,ve]=(0,_.useState)(0),[ye,be]=(0,_.useState)(0),[xe,Se]=(0,_.useState)(``),[Ce,M]=(0,_.useState)({fi:0,total:0,name:``}),[we,Te]=(0,_.useState)({tokIn:0,tokOut:0}),[Ee,De]=(0,_.useState)(null),[N,Oe]=(0,_.useState)([]),[ke,Ae]=(0,_.useState)(``),[P,F]=(0,_.useState)(!1),[je,Me]=(0,_.useState)([]),[Ne,Pe]=(0,_.useState)(null),[Fe,Ie]=(0,_.useState)([]),[Le,Re]=(0,_.useState)(!1),[ze,Be]=(0,_.useState)(null),[I,Ve]=(0,_.useState)([]),[He,Ue]=(0,_.useState)(!1),[We,Ge]=(0,_.useState)(``),[Ke,qe]=(0,_.useState)([]),[Je,Ye]=(0,_.useState)([]),[Xe,Ze]=(0,_.useState)([]),[Qe,$e]=(0,_.useState)(null),[et,tt]=(0,_.useState)(!1),[nt,rt]=(0,_.useState)([]),[it,at]=(0,_.useState)(null),[ot,st]=(0,_.useState)(!0),ct=(0,_.useRef)(null),[lt,ut]=(0,_.useState)(`0s`),[dt,ft]=(0,_.useState)(`0s`),pt=(0,_.useRef)(0),L=(0,_.useRef)(0),mt=(0,_.useRef)(null),ht=(0,_.useRef)(null),gt=(0,_.useRef)(null),_t=(0,_.useRef)(null),vt=(0,_.useRef)(null),yt=(0,_.useRef)(null);(0,_.useEffect)(()=>{let e=e=>{if((e.metaKey||e.ctrlKey)&&e.key===`f`&&(e.preventDefault(),ee(e=>!e)),(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),b!==null&&p[h])){let e=p[h];m(e=>e.map((e,t)=>t===h?{...e,content:b}:e)),E(`/api/studio/webcraft/file/write`,{projectName:a,path:e.name,content:b}),x(null),C(t=>{let n=new Set(t);return n.delete(e.name),n})}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b,h,p,a]),(0,_.useEffect)(()=>{let e=()=>{let e=b===null?ue.current:le.current;e&&de.current&&(de.current.scrollTop=e.scrollTop)},t=b===null?ue.current:le.current;return t&&t.addEventListener(`scroll`,e),()=>{t&&t.removeEventListener(`scroll`,e)}},[b,h]);function bt(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function R(e){let t=Math.floor((Date.now()-e)/1e3),n=Math.floor(t/60);return(n>0?`${n}m `:``)+`${t%60}s`}(0,_.useEffect)(()=>(pe||he?mt.current=setInterval(()=>{pe&&ut(R(pt.current)),he&&ft(R(L.current))},1e3):mt.current&&=(clearInterval(mt.current),null),()=>{mt.current&&clearInterval(mt.current)}),[pe,he]);function xt(){gt.current&&(gt.current.scrollTop=gt.current.scrollHeight)}(0,_.useEffect)(()=>{xt()},[N]),(0,_.useEffect)(()=>{a&&!Le&&(Re(!0),T(`/api/studio/webcraft/skills/${encodeURIComponent(a)}`).then(e=>{e?.skills&&Ie(e.skills)}).catch(()=>{}))},[a,Le]);async function St(e,t){if(pe||!e||e.length<5)return;me(!0),m([]),g(0),y(null),M({fi:0,total:0,name:``}),Te({tokIn:0,tokOut:0}),pt.current=Date.now(),ut(`0s`),ht.current=new AbortController;let n=Date.now();try{let r=await fetch(`/api/studio/webcraft/generate`,{method:`POST`,headers:{"Content-Type":`application/json`},signal:ht.current.signal,body:JSON.stringify({projectName:t,description:e,blocks:l,authFields:d})});if(!r.ok||!r.body){me(!1);return}let i=r.body.getReader(),a=ht.current,o=new TextDecoder,s=``,c=[];for(;;){if(a?.signal?.aborted){try{i.cancel()}catch{}break}let{done:e,value:t}=await i.read();if(e)break;s+=o.decode(t,{stream:!0});let r=s.split(`
|
|
721
721
|
|
|
722
|
-
`);s=r.pop()??``;for(let e of r){let t=e.replace(/^data: /,``).trim();if(t)try{let e=JSON.parse(t);if(e.type===`processing`||e.type===`planning`)M(t=>({...t,name:e.type===`planning`?`📋 Pianificazione struttura...`:e.msg||`Avvio...`}));else if(e.type===`file_start`)c.push({name:e.name,content:``,_pending:!0}),m([...c]),M({fi:e.fi,total:e.total,name:e.name}),g(c.length-1),y(``);else if(e.type===`file_chunk`){let t=c.find(t=>t.name===e.name);t&&(t.content+=e.chunk,t._pending=!1),m([...c]),y(t?t.content:null)}else if(e.type===`file_done`){let t=c.find(t=>t.name===e.name);t&&(t._pending=!1,e.syntaxError&&(t._syntaxError=e.syntaxError)),m([...c]),M({fi:e.fi,total:e.total,name:e.name}),(e.cumTokIn||e.cumTokOut)&&Te({tokIn:e.cumTokIn||0,tokOut:e.cumTokOut||0})}else if(e.type===`file_error`){let t=c.find(t=>t.name===e.name);t&&(t._error=!0,t._pending=!1),m([...c])}else e.type===`phase`||e.type===`status`&&!e.op?M(t=>({...t,name:e.msg||e.phase||``})):e.type===`done`&&(De({seconds:Math.round((Date.now()-n)/1e3),tokIn:e.tokIn??0,tokOut:e.tokOut??0,files:c.length}),y(null),me(!1),Re(!1),Ie([]),c.some(e=>e._error||e._syntaxError)?setTimeout(()=>vt.current?.(),800):setTimeout(()=>yt.current?.(),800))}catch{}}}}catch(e){e.name!==`AbortError`&&Oe(t=>[...t,{role:`system`,text:`Errore generazione: `+e.message}]),me(!1)}}async function Ct(){let e=ke.trim();if(!(a&&p.length>0)){if(!e||e.length<5)return;let t=a||`MyProject`;o(t),c(e),Ae(``),await St(e,t);return}if(!e&&je.length===0||P||pe)return;let t=[...je];if(Me([]),Ae(``),e.toLowerCase().startsWith(`/plan `)||e.toLowerCase().startsWith(`piano: `)){let t=e.replace(/^\/plan[ ]*/i,``).replace(/^piano:[ ]*/i,``);Oe(t=>[...t,{role:`user`,text:e}]),await wt(`[MODALITA PIANO] Descrivi cosa modificheresti per: "${t}". Elenca i file e cosa faresti. NON applicare modifiche ancora. Rispondi con il piano in bullet list.`,t,[]);return}Oe(n=>[...n,{role:`user`,text:e,attachments:t}]),await wt(e,null,t)}async function wt(e,t,n){if(P)return;F(!0),a&&p.length>0&&E(`/api/studio/webcraft/snapshot`,{projectName:a}).catch(()=>{});let r={};p.forEach(e=>{r[e.name]=e.content});try{let i=await fetch(`/api/studio/webcraft/agent`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({projectName:a,message:e,attachments:n.map(e=>({name:e.name,mimeType:e.mimeType,base64:e.base64}))})});if(!i.ok||!i.body){Oe(e=>[...e,{role:`agent`,text:`Errore: ${i.status}`,tools:[]}]),F(!1);return}let o={role:`agent`,text:``,tools:[]};Oe(e=>[...e,o]);let s=i.body.getReader(),c=new TextDecoder,l=``,u=!1,d=``;for(;;){let{done:e,value:n}=await s.read();if(e)break;l+=c.decode(n,{stream:!0});let i=l.split(`
|
|
722
|
+
`);s=r.pop()??``;for(let e of r){let t=e.replace(/^data: /,``).trim();if(t)try{let e=JSON.parse(t);if(e.type===`processing`||e.type===`planning`)M(t=>({...t,name:e.type===`planning`?`📋 Pianificazione struttura...`:e.msg||`Avvio...`}));else if(e.type===`file_start`)c.push({name:e.name,content:``,_pending:!0}),m([...c]),M({fi:e.fi,total:e.total,name:e.name}),g(c.length-1),y(``);else if(e.type===`file_chunk`){let t=c.find(t=>t.name===e.name);t&&(t.content+=e.chunk,t._pending=!1),m([...c]),y(t?t.content:null)}else if(e.type===`file_done`){let t=c.find(t=>t.name===e.name);t&&(t._pending=!1,e.syntaxError&&(t._syntaxError=e.syntaxError)),m([...c]),M({fi:e.fi,total:e.total,name:e.name}),(e.cumTokIn||e.cumTokOut)&&Te({tokIn:e.cumTokIn||0,tokOut:e.cumTokOut||0})}else if(e.type===`file_error`){let t=c.find(t=>t.name===e.name);t&&(t._error=!0,t._pending=!1),m([...c])}else e.type===`phase`||e.type===`status`&&!e.op?M(t=>({...t,name:e.msg||e.phase||``})):e.type===`done`&&(De({seconds:Math.round((Date.now()-n)/1e3),tokIn:e.tokIn??0,tokOut:e.tokOut??0,files:c.length}),y(null),me(!1),ce(!0),Re(!1),Ie([]),c.some(e=>e._error||e._syntaxError)?setTimeout(()=>vt.current?.(),800):setTimeout(()=>yt.current?.(),800))}catch{}}}}catch(e){e.name!==`AbortError`&&Oe(t=>[...t,{role:`system`,text:`Errore generazione: `+e.message}]),me(!1)}}async function Ct(){let e=ke.trim();if(!(a&&p.length>0)){if(!e||e.length<5)return;let t=a||`MyProject`;o(t),c(e),Ae(``),await St(e,t);return}if(!e&&je.length===0||P||pe)return;let t=[...je];if(Me([]),Ae(``),e.toLowerCase().startsWith(`/plan `)||e.toLowerCase().startsWith(`piano: `)){let t=e.replace(/^\/plan[ ]*/i,``).replace(/^piano:[ ]*/i,``);Oe(t=>[...t,{role:`user`,text:e}]),await wt(`[MODALITA PIANO] Descrivi cosa modificheresti per: "${t}". Elenca i file e cosa faresti. NON applicare modifiche ancora. Rispondi con il piano in bullet list.`,t,[]);return}Oe(n=>[...n,{role:`user`,text:e,attachments:t}]),await wt(e,null,t)}async function wt(e,t,n){if(P)return;F(!0),a&&p.length>0&&E(`/api/studio/webcraft/snapshot`,{projectName:a}).catch(()=>{});let r={};p.forEach(e=>{r[e.name]=e.content});try{let i=await fetch(`/api/studio/webcraft/agent`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({projectName:a,message:e,attachments:n.map(e=>({name:e.name,mimeType:e.mimeType,base64:e.base64}))})});if(!i.ok||!i.body){Oe(e=>[...e,{role:`agent`,text:`Errore: ${i.status}`,tools:[]}]),F(!1);return}let o={role:`agent`,text:``,tools:[]};Oe(e=>[...e,o]);let s=i.body.getReader(),c=new TextDecoder,l=``,u=!1,d=``;for(;;){let{done:e,value:n}=await s.read();if(e)break;l+=c.decode(n,{stream:!0});let i=l.split(`
|
|
723
723
|
|
|
724
724
|
`);l=i.pop()??``;for(let e of i){let n=e.replace(/^data: /,``).trim();if(n)try{let e=JSON.parse(n);if(e.type===`text`){d+=e.token;let t=d.lastIndexOf(`<`),n;t>=0&&!d.slice(t).includes(`>`)?(n=d.slice(0,t),d=d.slice(t)):(n=d.replace(/<tool>[\s\S]*?<\/tool>/g,``).replace(/<done\s*\/>/g,``),d=``),n&&(o.text+=n,Oe(e=>{let t=[...e];return t[t.length-1]={...o},t}))}else if(e.type===`step`)o.text+=`\n\n**[Step ${e.step}/${e.max}]** `,Oe(e=>{let t=[...e];return t[t.length-1]={...o},t});else if(e.type===`tool`)o.tools.push({op:e.op,path:e.path,result:e.result,oldSnippet:e.oldSnippet??``,newSnippet:e.newSnippet??``}),(e.op===`edit`||e.op===`write`)&&(e.result===`ok`||e.result===`ok_repaired`)&&(u=!0),Oe(e=>{let t=[...e];return t[t.length-1]={...o},t});else if(e.type===`files_changed`)e.files?.length&&await Tt(e.files,r);else if(e.type===`syntax_errors`)e.errors?.length&&(o.syntaxErrors=e.errors,Oe(e=>{let t=[...e];return t[t.length-1]={...o},t}));else if(e.type===`sandbox_restart`)o.text+=`
|
|
725
725
|
|
|
726
|
-
🔄 `+(e.msg||`Restarting sandbox...`),
|
|
726
|
+
🔄 `+(e.msg||`Restarting sandbox...`),Oe(e=>{let t=[...e];return t[t.length-1]={...o},t});else if(e.type===`sandbox_ready`)$e(e.port),o.text+=`
|
|
727
727
|
✅ Sandbox ready on port `+e.port,Oe(e=>{let t=[...e];return t[t.length-1]={...o},t});else if(e.type===`sandbox_error`)o.text+=`
|
|
728
728
|
❌ Sandbox error: `+e.msg,Oe(e=>{let t=[...e];return t[t.length-1]={...o},t});else if(e.type===`done`){if(d){let e=d.replace(/<tool>[\s\S]*?<\/tool>/g,``).replace(/<done\s*\/>/g,``);e&&(o.text+=e),d=``}t&&!u&&Pe({plan:o.text,originalMessage:t}),F(!1),e.changed&&await Tt((o.tools??[]).filter(e=>e.op===`edit`||e.op===`write`).map(e=>e.path),r)}else e.type===`error`&&(o.text+=`
|
|
729
729
|
Errore: `+e.msg,F(!1))}catch{}}}}catch(e){Oe(t=>[...t,{role:`agent`,text:`Errore di rete: `+e.message,tools:[]}])}F(!1)}async function Tt(e,t){if(!a)return;let n=await T(`/api/studio/webcraft/projects/load/${encodeURIComponent(a)}`);if(n?.files&&(m(n.files),e.length>0)){let r=e.map(e=>{let r=n.files.find(t=>t.name===e);return r?{file:e,before:t[e]??``,after:r.content}:null}).filter(Boolean);Ye(e=>[...e,...r])}}function z(){ht.current&&=(ht.current.abort(),null),me(!1),F(!1),y(null),Oe(e=>[...e,{role:`system`,text:`⏹ Generazione interrotta.`}])}async function Et(){return a?(await E(`/api/studio/webcraft/snapshot`,{projectName:a}))?.snapshot??null:null}async function Dt(){let e=await Et();e&&(Oe(t=>[...t,{role:`system`,text:`💾 Snapshot salvato (${e.slice(0,16).replace(`T`,` `)})`}]),Ot())}async function Ot(){if(!a)return;let e=await T(`/api/studio/webcraft/snapshots/${encodeURIComponent(a)}`);e?.snapshots&&Ve(e.snapshots)}async function kt(e){confirm(`Ripristinare lo snapshot del ${e.replace(`T`,` `).slice(0,16)}? I file attuali verranno sovrascritti.`)&&await E(`/api/studio/webcraft/restore`,{projectName:a,ts:e})!==null&&(Oe(t=>[...t,{role:`agent`,text:`Snapshot ripristinato (${e}). Ricarico i file...`}]),Tt([],{}))}async function At(){if(!a)return;let e=await E(`/api/studio/webcraft/syntax-check`,{projectName:a});if(e?.results){let t=e.results.filter(e=>!e.ok);t.length>0?Oe(e=>[...e,{role:`system`,text:`⚠ Syntax check: ${t.length} errore/i trovato/i.`,syntaxErrors:t}]):Oe(e=>[...e,{role:`system`,text:`✓ Syntax check: tutti i file JS sono validi.`}])}}async function jt(){let e=p.filter(e=>e._error||e._syntaxError);if(e.length===0){yt.current?.();return}ge(!0),ve(0),be(e.length),L.current=Date.now(),ft(`0s`);for(let t=0;t<e.length;t++){let n=e[t];Se(n.name),ve(t),await wt(`REPAIR FILE: ${n.name}\nErrore: ${n._syntaxError??`generazione fallita`}\nRigenera il file correttamente. Output SOLO il contenuto del file, nessuna spiegazione.`,null,[])}ve(e.length),Se(``),ge(!1),setTimeout(()=>yt.current?.(),500)}let Mt={cleanup:`🧹`,shims:`🔌`,deps:`📦`,start:`🚀`,autofix:`🔧`,ready:`✅`};function Nt(e,t=`info`){let n=new Date().toLocaleTimeString();rt(r=>[...r,`${t===`phase`?`
|
|
730
730
|
`:``}[${n}] ${e}`]),setTimeout(()=>{ct.current?.scrollTo(0,ct.current.scrollHeight)},50)}async function Pt(e){if(!et){tt(!0),at(null),$e(null),rt([]),st(!0),i(`preview`);try{let t=await fetch(`/api/studio/webcraft/sandbox/start`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({projectName:e})});if(!t.ok||!t.body){let e=t.ok?`No response body`:`HTTP ${t.status}`;Nt(`ERROR: ${e}`,`error`),at(e),tt(!1);return}let n=t.body.getReader(),r=new TextDecoder,i=``;for(;;){let{done:e,value:t}=await n.read();if(e)break;i+=r.decode(t,{stream:!0});let a=i.split(`
|
|
731
731
|
|
|
732
|
-
`);i=a.pop()??``;for(let e of a){let t=e.replace(/^data: /,``).trim();if(t)try{let e=JSON.parse(t);
|
|
732
|
+
`);i=a.pop()??``;for(let e of a){let t=e.replace(/^data: /,``).trim();if(t)try{let e=JSON.parse(t);e.type===`phase`?(Nt(`${Mt[e.phase]||`▸`} ${e.msg}`,`phase`),D(!0)):e.type===`ready`&&e.port?(Nt(`✅ Server ready on port ${e.port}`,`ok`),$e(e.port),tt(!1),setTimeout(()=>st(!1),1500)):e.type===`status`?Nt(` ${e.msg||`Processing...`}`,`info`):e.type===`log`?Nt(` ${e.msg||``}`,`log`):e.type===`warn`?Nt(`⚠ ${e.msg}`,`warn`):e.type===`error`?(Nt(`❌ ${e.msg}`,`error`),at(e.msg)):e.type===`exit`&&e.code!==0&&Nt(`💥 Process crashed (exit code ${e.code})`,`error`)}catch{}}}}catch(e){let t=e.message||`Connection failed`;Nt(`❌ ${t}`,`error`),at(t)}tt(!1)}}async function B(){a&&await Pt(a)}(0,_.useEffect)(()=>{vt.current=jt,yt.current=B});async function Ft(){if(!We||!a)return;let e=await E(`/api/studio/webcraft/grep`,{projectName:a,query:We});e?.matches&&qe(e.matches)}function It(e){let t=p.findIndex(t=>t.name===e);t>=0&&(g(t),i(`files`))}function Lt(){window.open(`/api/studio/webcraft/download/${encodeURIComponent(a)}`,`_blank`)}async function Rt(e,t,n,r){t.endsWith(`.md`)||(t+=`.md`);let i={name:t,content:n,type:r},s;s=e.mode===`edit`&&e.idx!==null?Fe.map((t,n)=>n===e.idx?i:t):[...Fe,i],Ie(s),Be(null);let c=a||`MyProject`;a||o(c),await E(`/api/studio/webcraft/skills/${encodeURIComponent(c)}`,{skills:s})}async function zt(e){let t=Fe[e];!t||!confirm(`Eliminare "${t.name}"?`)||(await E(`/api/studio/webcraft/skills/${encodeURIComponent(a)}/delete`,{name:t.name}),Ie(Fe.filter((t,n)=>n!==e)))}async function Bt(e){let t=Fe[e];if(!t||!confirm(`Svuotare "${t.name}"? Il file rimane ma il contenuto viene cancellato.`))return;let n=Fe.map((t,n)=>n===e?{...t,content:``}:t);Ie(n),await E(`/api/studio/webcraft/skills/${encodeURIComponent(a)}`,{skills:n})}async function Vt(){let e=await T(`/api/studio/webcraft/projects`);e?.projects&&Ze(e.projects)}async function V(e){let t=await T(`/api/studio/webcraft/projects/load/${encodeURIComponent(e.name)}`);if(!t)return;o(t.projectName??e.name),c(t.description??``),m(t.files??[]),g(0),n(`new`),i(`files`),Oe([]),Ie([]),Re(!1);let r=await T(`/api/studio/webcraft/projects/chat/load/${encodeURIComponent(t.projectName??e.name)}`);r?.chat&&Oe(r.chat);let a=await T(`/api/studio/webcraft/skills/${encodeURIComponent(t.projectName??e.name)}`);a?.skills&&(Ie(a.skills),Re(!0))}async function Ht(e){confirm(`Eliminare: ${e.name} - ${e.dir}?`)&&(await E(`/api/studio/webcraft/projects/${encodeURIComponent(e.name)}`,{},`DELETE`),Ze(Xe.filter(t=>t.name!==e.name)),a===e.name&&(o(``),m([]),Oe([]),c(``)))}async function Ut(){if(!Ne)return;let e=Ne.originalMessage;Pe(null),await wt(e+`
|
|
733
733
|
[Piano approvato — procedi con le modifiche]`,null,[])}function Wt(e){e&&Array.from(e).forEach(e=>{let t=new FileReader;t.onload=t=>{let n=(t.target?.result).split(`,`)[1];Me(t=>[...t,{name:e.name,mimeType:e.type,base64:n,size:e.size}])},t.readAsDataURL(e)})}let Gt=a&&p.length>0,Kt=p[h],H=P||pe;return(0,O.jsxs)(`div`,{className:Q.root,children:[(0,O.jsxs)(`div`,{className:Q.header,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:Q.title,children:`⚙ WebCraft`}),(0,O.jsx)(`div`,{className:Q.subtitle,children:`Genera progetti web completi con agenti AI`})]}),(0,O.jsxs)(`div`,{className:Q.headerTabs,children:[(0,O.jsx)(`button`,{className:`${Q.tabBtn} ${t===`new`?Q.tabActive:``}`,onClick:()=>n(`new`),children:`+ Nuovo`}),(0,O.jsx)(`button`,{className:`${Q.tabBtn} ${t===`projects`?Q.tabActive:``}`,onClick:()=>{n(`projects`),Vt()},children:`📁 Progetti`})]})]}),(0,O.jsx)(`div`,{className:Q.body,children:t===`projects`?(0,O.jsx)(`div`,{className:Q.projectsList,children:Xe.length===0?(0,O.jsxs)(`div`,{className:Q.emptyProjects,children:[(0,O.jsx)(`span`,{className:Q.emptyIcon,children:`📁`}),(0,O.jsx)(`span`,{children:e(`webcraft.noProjects`)}),(0,O.jsx)(`span`,{className:Q.emptyHint,children:`Crea un progetto nella tab Nuovo`})]}):Xe.map(e=>(0,O.jsxs)(`div`,{className:Q.projectCard,children:[(0,O.jsxs)(`div`,{className:Q.projectInfo,children:[(0,O.jsx)(`div`,{className:Q.projectName,children:e.name}),(0,O.jsx)(`div`,{className:Q.projectDesc,children:e.description}),(0,O.jsxs)(`div`,{className:Q.projectMeta,children:[(0,O.jsxs)(`span`,{children:[`📄 `,e.fileCount,` file`]}),(0,O.jsxs)(`span`,{children:[`📅 `,e.createdAt?new Date(e.createdAt).toLocaleString():``]})]})]}),(0,O.jsx)(`button`,{className:Q.openBtn,onClick:()=>V(e),children:`↗ Apri`}),(0,O.jsx)(`button`,{className:Q.deleteBtn,onClick:()=>Ht(e),children:`🗑`})]},e.name))}):(0,O.jsxs)(`div`,{className:Q.editor,children:[(0,O.jsxs)(`div`,{className:Q.examples,children:[(0,O.jsx)(`div`,{className:Q.sectionLabel,children:`Esempi`}),(0,O.jsx)(`div`,{className:Q.examplePills,children:RT.map(e=>(0,O.jsx)(`button`,{className:Q.examplePill,onClick:()=>{o(e.name),c(e.desc),Ae(e.desc)},children:e.name},e.name))})]}),(0,O.jsxs)(`div`,{className:Q.editorCols,children:[(0,O.jsxs)(`div`,{className:Q.leftSidebar,children:[(0,O.jsxs)(`div`,{className:Q.panel,children:[(0,O.jsx)(`div`,{className:Q.panelTitle,children:`Blocchi`}),zT.map(e=>(0,O.jsxs)(`label`,{className:Q.blockLabel,children:[(0,O.jsx)(`input`,{type:`checkbox`,checked:l[e.key],onChange:t=>u(n=>({...n,[e.key]:t.target.checked})),className:Q.blockCheck}),(0,O.jsx)(`span`,{children:e.icon}),(0,O.jsx)(`span`,{children:e.label})]},e.key))]}),l.auth&&(0,O.jsxs)(`div`,{className:Q.panel,children:[(0,O.jsxs)(`div`,{className:Q.panelHeader,children:[(0,O.jsx)(`div`,{className:Q.panelTitle,children:`Campi Auth`}),(0,O.jsx)(`button`,{className:Q.addBtn,onClick:()=>f(e=>[...e,{label:`New field`,type:`text`,required:!1}]),children:`+ Campo`})]}),d.map((e,t)=>(0,O.jsxs)(`div`,{className:Q.authField,children:[(0,O.jsx)(`input`,{value:e.label,onChange:e=>f(n=>n.map((n,r)=>r===t?{...n,label:e.target.value}:n)),className:Q.authFieldInput}),(0,O.jsx)(`select`,{value:e.type,onChange:e=>f(n=>n.map((n,r)=>r===t?{...n,type:e.target.value}:n)),className:Q.authFieldSelect,children:[`text`,`email`,`password`,`tel`,`date`,`number`].map(e=>(0,O.jsx)(`option`,{value:e,children:e},e))}),(0,O.jsx)(`input`,{type:`checkbox`,checked:e.required,onChange:e=>f(n=>n.map((n,r)=>r===t?{...n,required:e.target.checked}:n)),title:`Required`,className:Q.authFieldReq}),(0,O.jsx)(`button`,{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:Q.removeFieldBtn,children:`×`})]},t))]}),(0,O.jsxs)(`div`,{className:Q.panel,children:[(0,O.jsxs)(`div`,{className:Q.panelHeader,children:[(0,O.jsx)(`div`,{className:Q.panelTitle,children:`🗂 Contesto AI`}),(0,O.jsx)(`button`,{className:Q.addBtn,onClick:()=>Be({mode:`new`,idx:null,name:``,content:``,type:`skill`,generating:!1}),children:`+ Skill`})]}),Fe.length>0?(0,O.jsx)(`div`,{className:Q.skillsList,children:Fe.map((e,t)=>(0,O.jsxs)(`div`,{className:Q.skillRow,children:[(0,O.jsx)(`span`,{className:Q.skillIcon,children:UT(e.type)}),(0,O.jsx)(`span`,{className:Q.skillName,title:e.name,children:e.name}),(0,O.jsx)(`span`,{className:`${Q.skillBadge} ${Q[`skillBadge_`+e.type]}`,children:e.type}),!e.content&&e.type!==`log`&&(0,O.jsx)(`span`,{className:Q.skillEmpty,children:`⚠`}),(0,O.jsx)(`button`,{className:Q.skillBtn,onClick:()=>Be({mode:e.type===`log`?`view`:`edit`,idx:t,name:e.name,content:e.content,type:e.type,generating:!1}),children:e.type===`log`?`👁`:`✏`}),e.type!==`memory`&&e.type!==`provider`&&e.type!==`log`&&(0,O.jsx)(`button`,{className:Q.skillBtn,onClick:()=>Bt(t),children:`🗑`}),e.type===`log`&&(0,O.jsx)(`button`,{className:Q.skillBtn,onClick:()=>zt(t),children:`🗑`})]},t))}):(0,O.jsx)(`div`,{className:Q.skillsEmpty,children:Le?`Nessun file di contesto. Clicca "+ Skill" per aggiungerne uno.`:`Crea o carica un progetto per i file di contesto.`})]}),I.length>0&&(0,O.jsxs)(`div`,{className:Q.panel,children:[(0,O.jsx)(`div`,{className:Q.panelTitle,children:`💾 Snapshot`}),I.slice(0,5).map(e=>{let t=e.ts.replace(`T`,` `).slice(0,16);return(0,O.jsxs)(`div`,{className:Q.snapshotRow,children:[(0,O.jsx)(`span`,{className:Q.snapshotTs,children:t}),(0,O.jsxs)(`span`,{className:Q.snapshotCount,children:[e.fileCount,`f`]}),(0,O.jsx)(`button`,{className:Q.snapshotBtn,onClick:()=>kt(e.ts),children:`↺`})]},e.ts)})]}),pe&&(0,O.jsx)(`div`,{className:Q.genStatus,children:`⏳ Generazione...`}),he&&(0,O.jsxs)(`div`,{className:Q.repairStatus,children:[(0,O.jsx)(`div`,{className:Q.repairStatusTitle,children:`🔧 Correzione automatica...`}),(0,O.jsxs)(`div`,{className:Q.repairStatusProg,children:[_e,` / `,ye,` file`]}),(0,O.jsx)(`div`,{className:Q.repairStatusFile,children:xe})]}),p.length>0&&!pe&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:Q.actionRow,children:[(0,O.jsx)(`button`,{className:Q.actionBtn,onClick:Lt,children:`⬇ ZIP`}),(0,O.jsx)(`button`,{className:Q.actionBtnIcon,title:`Syntax check`,onClick:At,children:`✅`}),(0,O.jsx)(`button`,{className:`${Q.actionBtnIcon} ${He?Q.actionBtnActive:``}`,title:`Grep`,onClick:()=>Ue(!He),children:`🔍`}),(0,O.jsx)(`button`,{className:Q.actionBtnIcon,title:`Snapshot`,onClick:Dt,children:`💾`})]}),p.some(e=>e._error||e._syntaxError)&&!he&&(0,O.jsx)(`button`,{className:Q.repairBtn,onClick:jt,children:`🔧 Correggi tutti i file rossi`}),(0,O.jsx)(`button`,{className:Q.sandboxBtn,onClick:()=>{a?Pt(a):i(`preview`)},children:et?`⏳ Starting...`:Qe?`🌐 Sandbox Live`:`▶ Sandbox`}),Ee&&(0,O.jsxs)(`div`,{className:Q.statsBar,children:[(0,O.jsxs)(`span`,{children:[`⏱ `,Ee.seconds>=60?`${Math.floor(Ee.seconds/60)}m ${Ee.seconds%60}s`:`${Ee.seconds}s`]}),(0,O.jsxs)(`span`,{children:[`↑ `,Ee.tokIn.toLocaleString(),` tok`]}),(0,O.jsxs)(`span`,{children:[`↓ `,Ee.tokOut.toLocaleString(),` tok`]}),(0,O.jsxs)(`span`,{children:[`📄 `,Ee.files,` file`]})]})]})]}),(0,O.jsxs)(`div`,{className:Q.rightPanel,children:[(0,O.jsxs)(`div`,{className:Q.rightTabBar,children:[(0,O.jsx)(`button`,{className:`${Q.rightTab} ${r===`preview`?``:Q.rightTabActive}`,onClick:()=>i(`files`),children:`📄 File`}),(0,O.jsx)(`button`,{className:`${Q.rightTab} ${r===`preview`?Q.rightTabActive:``}`,onClick:()=>i(`preview`),children:`🌐 Sandbox`})]}),he&&(0,O.jsxs)(`div`,{className:Q.repairBar,children:[(0,O.jsxs)(`div`,{className:Q.repairBarRow,children:[(0,O.jsx)(`span`,{className:Q.repairBarIcon,children:`🔧`}),(0,O.jsx)(`span`,{className:Q.repairBarLabel,children:`Auto-fix`}),(0,O.jsx)(`span`,{className:Q.repairBarFile,children:xe}),(0,O.jsxs)(`span`,{className:Q.repairBarCounter,children:[_e,` / `,ye]}),(0,O.jsx)(`span`,{className:Q.repairBarTime,children:dt}),(0,O.jsx)(`button`,{className:Q.stopBtn,onClick:z,children:`⏹ Stop`})]}),(0,O.jsx)(`div`,{className:Q.progressTrack,children:(0,O.jsx)(`div`,{className:Q.repairProgress,style:{width:ye>0?`${Math.round(_e/ye*100)}%`:`0%`}})})]}),pe&&(0,O.jsxs)(`div`,{className:Q.genBar,children:[(0,O.jsxs)(`div`,{className:Q.genBarRow,children:[(0,O.jsx)(`span`,{className:Q.genBarRobot,children:`🤖`}),(0,O.jsx)(`span`,{className:Q.genBarLabel,children:Ce.total===0?`Pianificazione...`:`Generazione`}),(0,O.jsx)(`span`,{className:Q.genBarFile,children:Ce.name.split(`,`)[0].trim()}),(0,O.jsx)(`span`,{className:Q.genBarCounter,children:Ce.total>0?`${Ce.fi} / ${Ce.total}`:``}),(0,O.jsx)(`span`,{className:Q.genBarCounter,children:we.tokIn+we.tokOut>0?`↑${bt(we.tokIn)} ↓${bt(we.tokOut)}`:``}),(0,O.jsx)(`span`,{className:Q.genBarTime,children:lt}),(0,O.jsxs)(`span`,{className:Q.genDots,children:[(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot1}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot2}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot3}`})]})]}),(0,O.jsx)(`div`,{className:Q.progressTrack,children:(0,O.jsx)(`div`,{className:Q.genProgress,style:{width:Ce.total>0?`${Math.round(Ce.fi/Ce.total*100)}%`:`0%`}})})]}),r===`preview`?(0,O.jsxs)(`div`,{className:Q.sandboxWrap,children:[nt.length>0&&(0,O.jsxs)(`div`,{className:`${Q.sandboxConsole} ${ot?``:Q.sandboxConsoleCollapsed}`,children:[(0,O.jsxs)(`div`,{className:Q.sandboxConsoleHeader,onClick:()=>st(!ot),children:[(0,O.jsxs)(`span`,{className:Q.sandboxConsoleTitle,children:[et?`⏳`:it?`❌`:Qe?`✅`:`🌐`,` Console`]}),Qe&&(0,O.jsxs)(`span`,{className:Q.sandboxConsolePort,children:[`:`,Qe]}),et&&(0,O.jsxs)(`span`,{className:Q.sandboxConsoleDots,children:[(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot1}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot2}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot3}`})]}),(0,O.jsx)(`span`,{className:Q.sandboxConsoleToggle,children:ot?`▼`:`▶`}),Qe&&(0,O.jsx)(`button`,{className:Q.sandboxReloadBtn,onClick:e=>{e.stopPropagation();let t=document.querySelector(`iframe[title="WebCraft Sandbox"]`);t&&(t.src=t.src)},children:`↻`}),Qe&&(0,O.jsx)(`button`,{className:Q.sandboxStopBtn,onClick:e=>{e.stopPropagation(),fetch(`/api/studio/webcraft/sandbox`,{method:`DELETE`}),$e(null),rt([])},children:`⏹`})]}),ot&&(0,O.jsx)(`div`,{className:Q.sandboxConsoleBody,ref:ct,children:nt.map((e,t)=>(0,O.jsx)(`div`,{className:`${Q.sandboxLogLine} ${e.includes(`❌`)||e.includes(`💥`)?Q.sandboxLogError:e.includes(`⚠`)?Q.sandboxLogWarn:e.includes(`✅`)?Q.sandboxLogOk:e.includes(`🔌`)||e.includes(`📦`)||e.includes(`🚀`)||e.includes(`🔧`)||e.includes(`🧹`)?Q.sandboxLogPhase:``}`,children:e},t))})]}),Qe?(0,O.jsx)(`iframe`,{src:`http://127.0.0.1:${Qe}`,className:Q.sandboxFrame,title:`WebCraft Sandbox`,sandbox:`allow-scripts allow-same-origin allow-forms allow-popups`}):(0,O.jsxs)(`div`,{className:Q.sandboxEmpty,children:[(0,O.jsx)(`span`,{style:{fontSize:40},children:et?`⏳`:it?`❌`:`🌐`}),(0,O.jsx)(`span`,{style:{fontWeight:600},children:et?`Avvio sandbox in corso...`:it?`Errore sandbox`:`Sandbox`}),it&&(0,O.jsx)(`span`,{style:{fontSize:11,maxWidth:400,textAlign:`center`},children:it}),!et&&(0,O.jsxs)(`button`,{className:Q.sandboxStartBtn,onClick:()=>{a&&Pt(a)},children:[`▶ `,it?`Riprova`:`Avvia Sandbox`]})]})]}):(0,O.jsx)(`div`,{className:Q.codeArea,children:p.length===0&&pe?(0,O.jsx)(`div`,{className:Q.noFiles,children:(0,O.jsxs)(`div`,{className:Q.noFilesHero,children:[(0,O.jsx)(`span`,{className:Q.noFilesIcon,children:`⏳`}),(0,O.jsx)(`span`,{className:Q.noFilesTitle,children:`Pianificazione...`}),(0,O.jsx)(`span`,{className:Q.noFilesTagline,children:Ce.name||`Analisi della struttura del progetto in corso`})]})}):p.length===0?(0,O.jsxs)(`div`,{className:Q.noFiles,children:[(0,O.jsxs)(`div`,{className:Q.noFilesHero,children:[(0,O.jsx)(`span`,{className:Q.noFilesIcon,children:`🔨`}),(0,O.jsx)(`span`,{className:Q.noFilesTitle,children:`WebCraft`}),(0,O.jsx)(`span`,{className:Q.noFilesTagline,children:`Genera progetti web completi con AI`})]}),(0,O.jsxs)(`div`,{className:Q.noFilesSteps,children:[(0,O.jsxs)(`div`,{className:Q.noFilesStep,children:[(0,O.jsx)(`span`,{className:Q.noFilesStepNum,children:`1`}),(0,O.jsx)(`span`,{children:`Scegli un esempio o scrivi una descrizione nel box in basso`})]}),(0,O.jsxs)(`div`,{className:Q.noFilesStep,children:[(0,O.jsx)(`span`,{className:Q.noFilesStepNum,children:`2`}),(0,O.jsxs)(`span`,{children:[`Premi `,(0,O.jsx)(`strong`,{children:`▶ Genera`}),` — l'AI crea tutti i file del progetto`]})]}),(0,O.jsxs)(`div`,{className:Q.noFilesStep,children:[(0,O.jsx)(`span`,{className:Q.noFilesStepNum,children:`3`}),(0,O.jsx)(`span`,{children:`Chiedi modifiche in chat, scarica lo ZIP o avvia il Sandbox`})]})]}),(0,O.jsxs)(`div`,{className:Q.noFilesExamplesHint,children:[`💡 Prova: `,(0,O.jsx)(`button`,{className:Q.noFilesExampleBtn,onClick:()=>{let e=RT[0];o(e.name),c(e.desc),Ae(e.desc)},children:`MySaaS`}),(0,O.jsx)(`button`,{className:Q.noFilesExampleBtn,onClick:()=>{let e=RT[1];o(e.name),c(e.desc),Ae(e.desc)},children:`MyShop`}),(0,O.jsx)(`button`,{className:Q.noFilesExampleBtn,onClick:()=>{let e=RT[3];o(e.name),c(e.desc),Ae(e.desc)},children:`MyPortfolio`})]})]}):(0,O.jsxs)(`div`,{className:Q.codeLayout,children:[(0,O.jsx)(`div`,{className:Q.ideTabBar,children:p.map((e,t)=>{let n=e._error||!!e._syntaxError,r=t===h;return(0,O.jsxs)(`button`,{className:`${Q.ideTab} ${r?Q.ideTabActive:``} ${n?Q.ideTabError:``} ${e._pending?Q.ideTabPending:``}`,onClick:()=>{g(t),x(null),y(null)},title:e.name,children:[(0,O.jsx)(`span`,{className:Q.ideTabIcon,children:e._pending?`⌛`:n?`⚠`:VT(e.name)}),(0,O.jsx)(`span`,{className:Q.ideTabName,children:e.name.split(`/`).pop()}),S.has(e.name)&&(0,O.jsx)(`span`,{className:Q.ideTabUnsaved,children:`●`}),n&&(0,O.jsx)(`span`,{className:Q.ideTabDot})]},t)})}),fe&&(0,O.jsxs)(`div`,{className:Q.diffOverlay,children:[(0,O.jsxs)(`div`,{className:Q.diffOverlayHeader,children:[(0,O.jsxs)(`span`,{children:[`✏ Modifica proposta — `,(0,O.jsx)(`strong`,{children:fe.file})]}),(0,O.jsxs)(`div`,{className:Q.diffOverlayActions,children:[(0,O.jsx)(`button`,{className:Q.diffAcceptBtn,onClick:()=>{m(e=>e.map(e=>e.name===fe.file?{...e,content:fe.after}:e)),j(null)},children:`✓ Accetta`}),(0,O.jsx)(`button`,{className:Q.diffRejectBtn,onClick:()=>j(null),children:`✕ Rifiuta`})]})]}),(0,O.jsxs)(`div`,{className:Q.diffOverlayBody,children:[fe.before.split(`
|
|
734
734
|
`).map((e,t)=>e===(fe.after.split(`
|
|
735
735
|
`)[t]??``)?(0,O.jsxs)(`div`,{className:Q.diffSame,children:[`\xA0`,e||` `]},t):(0,O.jsxs)(`div`,{className:Q.diffRem,children:[`- `,e]},`r${t}`)),fe.after.split(`
|
|
736
736
|
`).map((e,t)=>e===(fe.before.split(`
|
|
737
737
|
`)[t]??``)?null:(0,O.jsxs)(`div`,{className:Q.diffAdd,children:[`+ `,e]},`a${t}`))]})]}),(0,O.jsxs)(`div`,{className:Q.codeRow,children:[(0,O.jsx)(`div`,{className:Q.fileTreeWrap,children:(0,O.jsx)(MT,{files:p,activeIndex:h,unsavedFiles:S,onSelect:e=>{g(e),x(null),y(null)}})}),(0,O.jsx)(`div`,{className:Q.codeEditorWrap,children:Kt&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:Q.codeHeader,children:[(0,O.jsx)(`span`,{className:Q.codeFileIcon,children:VT(Kt.name)}),(0,O.jsx)(`span`,{className:Q.codeFileName,children:Kt.name}),Kt.content&&!Kt._error&&(0,O.jsxs)(`span`,{className:Q.codeFileMeta,children:[Kt.content.split(`
|
|
738
|
-
`).length,` righe · `,HT(Kt.content)]}),!Kt._pending&&!Kt._error&&Kt.content&&(0,O.jsx)(`button`,{className:`${Q.editToggleBtn} ${b===null?``:Q.editToggleBtnActive}`,onClick:()=>{b===null?x(Kt.content):(m(e=>e.map((e,t)=>t===h?{...e,content:b}:e)),E(`/api/studio/webcraft/file/write`,{projectName:a,path:Kt.name,content:b}),x(null))},children:b===null?`✏ Modifica`:`💾 Salva`}),(0,O.jsx)(`button`,{className:Q.headerIconBtn,title:`Split view`,onClick:()=>
|
|
738
|
+
`).length,` righe · `,HT(Kt.content)]}),!Kt._pending&&!Kt._error&&Kt.content&&(0,O.jsx)(`button`,{className:`${Q.editToggleBtn} ${b===null?``:Q.editToggleBtnActive}`,onClick:()=>{b===null?x(Kt.content):(m(e=>e.map((e,t)=>t===h?{...e,content:b}:e)),E(`/api/studio/webcraft/file/write`,{projectName:a,path:Kt.name,content:b}),x(null))},children:b===null?`✏ Modifica`:`💾 Salva`}),(0,O.jsx)(`button`,{className:Q.headerIconBtn,title:`Split view`,onClick:()=>k(oe===null?+(h===0&&p.length>1):null),children:`⫼`}),(0,O.jsx)(`button`,{className:`${Q.headerIconBtn} ${ae?Q.headerIconBtnActive:``}`,title:`Terminal`,onClick:()=>D(!ae),children:`⌨`}),(0,O.jsx)(`button`,{className:Q.headerIconBtn,title:`Development Guide`,onClick:()=>ce(!0),children:`📖`})]}),w&&(0,O.jsxs)(`div`,{className:Q.findBar,children:[(0,O.jsx)(`input`,{className:Q.findInput,value:te,onChange:e=>ne(e.target.value),placeholder:`Find...`,autoFocus:!0}),(0,O.jsx)(`input`,{className:Q.findInput,value:re,onChange:e=>ie(e.target.value),placeholder:`Replace...`}),(0,O.jsx)(`span`,{className:Q.findCount,children:te?((Kt.content||``).match(new RegExp(te.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`gi`))?.length||0)+` found`:``}),(0,O.jsx)(`button`,{className:Q.findBtn,onClick:()=>{!te||b===null||x(b.replace(new RegExp(te.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`i`),re))},children:`Replace`}),(0,O.jsx)(`button`,{className:Q.findBtn,onClick:()=>{!te||b===null||x(b.replace(new RegExp(te.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`gi`),re))},children:`All`}),(0,O.jsx)(`button`,{className:Q.findClose,onClick:()=>ee(!1),children:`×`})]}),Kt._error&&(0,O.jsx)(`div`,{className:Q.fileError,children:`⚠ Generazione fallita — chiedi al modello di rigenerare questo file`}),Kt._syntaxError&&!Kt._error&&(0,O.jsxs)(`div`,{className:Q.fileSyntaxError,children:[`⚠ Syntax error: `,Kt._syntaxError]}),(0,O.jsx)(ET,{value:b===null?(pe&&v!==null?v:Kt.content)||``:b,filename:Kt.name,readOnly:b===null,projectName:a,onChange:e=>{x(e),Kt&&C(e=>new Set(e).add(Kt.name))},onSave:e=>{m(t=>t.map((t,n)=>n===h?{...t,content:e}:t)),E(`/api/studio/webcraft/file/write`,{projectName:a,path:Kt.name,content:e}),x(null),C(e=>{let t=new Set(e);return t.delete(Kt.name),t})}})]})}),oe!==null&&p[oe]&&(0,O.jsxs)(`div`,{className:Q.codeEditorWrap,children:[(0,O.jsxs)(`div`,{className:Q.codeHeader,children:[(0,O.jsx)(`span`,{className:Q.codeFileIcon,children:VT(p[oe].name)}),(0,O.jsx)(`span`,{className:Q.codeFileName,children:p[oe].name}),(0,O.jsx)(`button`,{className:Q.headerIconBtn,onClick:()=>k(null),children:`✕`})]}),(0,O.jsx)(ET,{value:p[oe].content||``,filename:p[oe].name,readOnly:!0})]})]}),ae&&(0,O.jsxs)(`div`,{className:Q.terminalPanel,children:[(0,O.jsxs)(`div`,{className:Q.terminalHeader,children:[(0,O.jsx)(`span`,{className:Q.terminalTitle,children:`Terminal`}),(0,O.jsx)(`button`,{className:Q.terminalClose,onClick:()=>D(!1),children:`✕`})]}),(0,O.jsx)(LT,{projectDir:a||void 0})]})]})})]})]})]})}),Ne&&t!==`projects`&&(0,O.jsxs)(`div`,{className:Q.planBanner,children:[(0,O.jsx)(`div`,{className:Q.planTitle,children:`📌 Piano proposto — approva per eseguire`}),(0,O.jsx)(`pre`,{className:Q.planText,children:Ne.plan}),(0,O.jsxs)(`div`,{className:Q.planActions,children:[(0,O.jsx)(`button`,{className:Q.planApprove,onClick:Ut,children:`✓ Esegui`}),(0,O.jsx)(`button`,{className:Q.planReject,onClick:()=>Pe(null),children:`✕ Annulla`})]})]}),He&&t!==`projects`&&(0,O.jsxs)(`div`,{className:Q.grepPanel,children:[(0,O.jsxs)(`div`,{className:Q.grepRow,children:[(0,O.jsx)(`input`,{className:Q.grepInput,value:We,onChange:e=>Ge(e.target.value),onKeyDown:e=>e.key===`Enter`&&Ft(),placeholder:`Cerca nel codice...`}),(0,O.jsx)(`button`,{className:Q.grepBtn,onClick:Ft,children:`🔍`}),(0,O.jsx)(`button`,{className:Q.grepClose,onClick:()=>Ue(!1),children:`×`})]}),Ke.length>0&&(0,O.jsxs)(`div`,{className:Q.grepCount,children:[Ke.length,` risultati`]}),(0,O.jsx)(`div`,{className:Q.grepResults,children:Ke.length===0?(0,O.jsx)(`div`,{className:Q.grepEmpty,children:`Nessun risultato.`}):Ke.map((e,t)=>(0,O.jsxs)(`div`,{className:Q.grepMatch,onClick:()=>It(e.file),children:[(0,O.jsxs)(`span`,{className:Q.grepMatchFile,children:[e.file,`:`,e.lineNum]}),(0,O.jsx)(`pre`,{className:Q.grepMatchLine,children:e.line})]},t))})]}),Je.length>0&&t!==`projects`&&(0,O.jsxs)(`div`,{className:Q.diffPanel,children:[(0,O.jsxs)(`div`,{className:Q.diffHeader,children:[(0,O.jsxs)(`span`,{children:[`🔌 Diff — `,Je.length,` file modificati`]}),(0,O.jsx)(`button`,{className:Q.diffClose,onClick:()=>Ye([]),children:`✕ Chiudi`})]}),Je.map((e,t)=>{let n=e.after.split(`
|
|
739
739
|
`).length-e.before.split(`
|
|
740
740
|
`).length;return(0,O.jsxs)(`details`,{open:!0,className:Q.diffFile,children:[(0,O.jsxs)(`summary`,{className:Q.diffSummary,children:[(0,O.jsx)(`span`,{className:Q.diffArrow,children:`▲`}),(0,O.jsx)(`span`,{className:Q.diffFileName,children:e.file}),(0,O.jsxs)(`span`,{className:n>=0?Q.diffAdded:Q.diffRemoved,children:[n>=0?`+`:``,n,` linee`]})]}),(0,O.jsx)(`div`,{className:Q.diffContent,children:(0,O.jsx)(GT,{before:e.before,after:e.after})})]},t)})]}),t!==`projects`&&(0,O.jsxs)(`div`,{className:Q.chatPanel,children:[(0,O.jsxs)(`div`,{className:Q.chatMessages,ref:gt,children:[N.length===0&&Gt&&(0,O.jsxs)(`div`,{className:Q.chatTips,children:[(0,O.jsx)(`div`,{className:Q.chatTipsTitle,children:`💡 Tips`}),(0,O.jsx)(`div`,{className:Q.chatTip,children:`Start with the base site, then add features one by one via chat`}),(0,O.jsxs)(`div`,{className:Q.chatTip,children:[`Try: `,(0,O.jsx)(`em`,{children:`"Add authentication with login/register"`})]}),(0,O.jsxs)(`div`,{className:Q.chatTip,children:[`Try: `,(0,O.jsx)(`em`,{children:`"Add a cookie consent banner"`})]}),(0,O.jsxs)(`div`,{className:Q.chatTip,children:[`Try: `,(0,O.jsx)(`em`,{children:`"Make the hero section more modern"`})]}),(0,O.jsxs)(`div`,{className:Q.chatTip,children:[`Try: `,(0,O.jsx)(`em`,{children:`"Add a contact form with email validation"`})]}),(0,O.jsx)(`div`,{className:Q.chatTip,children:`The agent reads, modifies, and verifies your code automatically`})]}),N.map((e,t)=>(0,O.jsxs)(`div`,{className:e.role===`user`?Q.chatUser:e.role===`system`?Q.chatSystem:Q.chatAgent,children:[e.role===`user`&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:Q.chatUserBubble,children:e.text}),e.attachments&&e.attachments.length>0&&(0,O.jsx)(`div`,{className:Q.chatAttachPreviews,children:e.attachments.map((e,t)=>(0,O.jsxs)(`span`,{className:Q.chatAttachBadge,children:[`📎 `,e.name]},t))})]}),e.role===`system`&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:Q.chatSystemBubble,children:e.text}),e.syntaxErrors?.map((e,t)=>(0,O.jsxs)(`div`,{className:Q.chatSyntaxErr,children:[`✕ `,e.file,`: `,e.error]},t))]}),e.role===`agent`&&(0,O.jsxs)(`div`,{className:Q.chatAgentCard,children:[(0,O.jsxs)(`div`,{className:Q.chatAgentHeader,children:[(0,O.jsx)(`span`,{className:Q.chatAgentRobot,children:`🤖`}),(0,O.jsx)(`span`,{className:Q.chatAgentLabel,children:`WebCraft Agent`})]}),(0,O.jsx)(`div`,{className:Q.chatAgentText,children:e.text.replace(/<tool>[\s\S]*?<\/tool>/g,``).trim()}),e.tools&&e.tools.filter(e=>(e.op===`edit`||e.op===`write`)&&e.result===`ok`&&(e.oldSnippet||e.newSnippet)).map((e,t)=>(0,O.jsxs)(`div`,{className:Q.diffInline,children:[(0,O.jsxs)(`div`,{className:Q.diffInlineHeader,children:[`✏ `,e.path]}),e.oldSnippet?.split(`
|
|
741
741
|
`).map((e,t)=>(0,O.jsxs)(`div`,{className:Q.diffRemLine,children:[`- `,e]},`r${t}`)),e.newSnippet?.split(`
|
|
742
|
-
`).map((e,t)=>(0,O.jsxs)(`div`,{className:Q.diffAddLine,children:[`+ `,e]},`a${t}`))]},t)),e.tools&&e.tools.length>0&&(0,O.jsx)(`div`,{className:Q.chatToolBadges,children:e.tools.map((e,t)=>(0,O.jsxs)(`span`,{className:`${Q.toolBadge} ${e.result===`ok`?Q.toolBadgeOk:Q.toolBadgeErr}`,children:[e.op===`edit`?`✏`:e.op===`write`?`+`:`👁`,` `,e.path]},t))})]})]},t)),P&&(0,O.jsxs)(`div`,{className:Q.chatAgentCard,children:[(0,O.jsxs)(`div`,{className:Q.chatAgentHeader,children:[(0,O.jsx)(`span`,{className:Q.chatAgentRobotAnim,children:`🤖`}),(0,O.jsx)(`span`,{className:Q.chatAgentLabel,children:`WebCraft Agent`}),(0,O.jsxs)(`span`,{className:Q.chatRunningDots,children:[(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot1}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot2}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot3}`})]})]}),(0,O.jsx)(`div`,{className:Q.chatAgentText,children:(0,O.jsx)(`span`,{className:Q.cursor,children:``})})]})]}),je.length>0&&(0,O.jsx)(`div`,{className:Q.attachPreviews,children:je.map((e,t)=>(0,O.jsxs)(`span`,{className:Q.attachBadge,children:[`📎 `,e.name,(0,O.jsx)(`button`,{className:Q.removeAttachBtn,onClick:()=>Me(e=>e.filter((e,n)=>n!==t)),children:`×`})]},t))}),Gt?(0,O.jsxs)(`div`,{className:Q.projActiveRow,children:[`📄 `,(0,O.jsx)(`strong`,{className:Q.projActiveName,children:a}),` — scrivi per modificare o migliorare il progetto`]}):(0,O.jsxs)(`div`,{className:Q.projNameRow,children:[(0,O.jsx)(`span`,{className:Q.projNameLabel,children:`Nome progetto:`}),(0,O.jsx)(`input`,{className:Q.projNameInput,value:a,onChange:e=>o(e.target.value),placeholder:`MioProgetto`})]}),(0,O.jsxs)(`div`,{className:Q.chatInputRow,children:[(0,O.jsxs)(`label`,{className:Q.attachLabel,title:`Allega immagine o PDF`,children:[`📎`,(0,O.jsx)(`input`,{ref:_t,type:`file`,multiple:!0,accept:`image/*,.pdf`,style:{display:`none`},onChange:e=>Wt(e.target.files)})]}),(0,O.jsx)(`textarea`,{className:Q.chatTextarea,value:ke,onChange:e=>Ae(e.target.value),placeholder:Gt?`Parla con il tuo agente: chiedi correzioni, migliorie, nuove funzionalità...`:`Descrivi il progetto da creare, poi premi Genera...`,disabled:H,onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),Ct())},rows:4}),(0,O.jsxs)(`div`,{className:Q.chatSendCol,children:[(0,O.jsx)(`button`,{className:Q.chatSendBtn,onClick:Ct,disabled:H,children:pe?`⏳`:Gt?`▶`:`▶ Genera`}),H&&(0,O.jsx)(`button`,{className:Q.chatStopBtn,onClick:z,children:`⏹ Stop`})]})]})]}),ze&&(0,O.jsx)(KT,{modal:ze,skills:Fe,projectName:a,onClose:()=>Be(null),onSave:(e,t,n)=>Rt(ze,e,t,n)})]})}function GT({before:e,after:t}){let n=e.split(`
|
|
742
|
+
`).map((e,t)=>(0,O.jsxs)(`div`,{className:Q.diffAddLine,children:[`+ `,e]},`a${t}`))]},t)),e.tools&&e.tools.length>0&&(0,O.jsx)(`div`,{className:Q.chatToolBadges,children:e.tools.map((e,t)=>(0,O.jsxs)(`span`,{className:`${Q.toolBadge} ${e.result===`ok`?Q.toolBadgeOk:Q.toolBadgeErr}`,children:[e.op===`edit`?`✏`:e.op===`write`?`+`:`👁`,` `,e.path]},t))})]})]},t)),P&&(0,O.jsxs)(`div`,{className:Q.chatAgentCard,children:[(0,O.jsxs)(`div`,{className:Q.chatAgentHeader,children:[(0,O.jsx)(`span`,{className:Q.chatAgentRobotAnim,children:`🤖`}),(0,O.jsx)(`span`,{className:Q.chatAgentLabel,children:`WebCraft Agent`}),(0,O.jsxs)(`span`,{className:Q.chatRunningDots,children:[(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot1}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot2}`}),(0,O.jsx)(`span`,{className:`${Q.dot} ${Q.dot3}`})]})]}),(0,O.jsx)(`div`,{className:Q.chatAgentText,children:(0,O.jsx)(`span`,{className:Q.cursor,children:``})})]})]}),je.length>0&&(0,O.jsx)(`div`,{className:Q.attachPreviews,children:je.map((e,t)=>(0,O.jsxs)(`span`,{className:Q.attachBadge,children:[`📎 `,e.name,(0,O.jsx)(`button`,{className:Q.removeAttachBtn,onClick:()=>Me(e=>e.filter((e,n)=>n!==t)),children:`×`})]},t))}),Gt?(0,O.jsxs)(`div`,{className:Q.projActiveRow,children:[`📄 `,(0,O.jsx)(`strong`,{className:Q.projActiveName,children:a}),` — scrivi per modificare o migliorare il progetto`]}):(0,O.jsxs)(`div`,{className:Q.projNameRow,children:[(0,O.jsx)(`span`,{className:Q.projNameLabel,children:`Nome progetto:`}),(0,O.jsx)(`input`,{className:Q.projNameInput,value:a,onChange:e=>o(e.target.value),placeholder:`MioProgetto`})]}),(0,O.jsxs)(`div`,{className:Q.chatInputRow,children:[(0,O.jsxs)(`label`,{className:Q.attachLabel,title:`Allega immagine o PDF`,children:[`📎`,(0,O.jsx)(`input`,{ref:_t,type:`file`,multiple:!0,accept:`image/*,.pdf`,style:{display:`none`},onChange:e=>Wt(e.target.files)})]}),(0,O.jsx)(`textarea`,{className:Q.chatTextarea,value:ke,onChange:e=>Ae(e.target.value),placeholder:Gt?`Parla con il tuo agente: chiedi correzioni, migliorie, nuove funzionalità...`:`Descrivi il progetto da creare, poi premi Genera...`,disabled:H,onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),Ct())},rows:4}),(0,O.jsxs)(`div`,{className:Q.chatSendCol,children:[(0,O.jsx)(`button`,{className:Q.chatSendBtn,onClick:Ct,disabled:H,children:pe?`⏳`:Gt?`▶`:`▶ Genera`}),H&&(0,O.jsx)(`button`,{className:Q.chatStopBtn,onClick:z,children:`⏹ Stop`})]})]})]}),se&&(0,O.jsx)(`div`,{className:Q.modalOverlay,onClick:()=>ce(!1),children:(0,O.jsxs)(`div`,{className:Q.modal,onClick:e=>e.stopPropagation(),style:{width:640,maxHeight:`85vh`},children:[(0,O.jsxs)(`div`,{className:Q.modalHeader,children:[(0,O.jsxs)(`span`,{className:Q.modalTitle,children:[`📖 `,e(`webcraft.doctrine.title`)]}),(0,O.jsx)(`button`,{className:Q.modalClose,onClick:()=>ce(!1),children:`✕`})]}),(0,O.jsxs)(`div`,{className:Q.modalBody,style:{gap:16},children:[[1,2,3,4,5].map(t=>(0,O.jsxs)(`div`,{className:Q.doctrinePhase,children:[(0,O.jsx)(`div`,{className:Q.doctrinePhaseNum,children:t}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:Q.doctrinePhaseTitle,children:e(`webcraft.doctrine.phase${t}.title`)}),(0,O.jsx)(`div`,{className:Q.doctrinePhaseDesc,children:e(`webcraft.doctrine.phase${t}.desc`)})]})]},t)),(0,O.jsxs)(`div`,{className:Q.doctrineTips,children:[(0,O.jsx)(`div`,{className:Q.doctrineTipsTitle,children:`💡 Pro Tips`}),[1,2,3,4].map(t=>(0,O.jsx)(`div`,{className:Q.doctrineTip,children:e(`webcraft.doctrine.tip${t}`)},t))]})]}),(0,O.jsx)(`div`,{className:Q.modalFooter,children:(0,O.jsx)(`button`,{className:Q.modalSaveBtn,onClick:()=>ce(!1),children:e(`webcraft.doctrine.close`)})})]})}),ze&&(0,O.jsx)(KT,{modal:ze,skills:Fe,projectName:a,onClose:()=>Be(null),onSave:(e,t,n)=>Rt(ze,e,t,n)})]})}function GT({before:e,after:t}){let n=e.split(`
|
|
743
743
|
`),r=t.split(`
|
|
744
744
|
`),i=[],a=0,o=0;for(;(a<n.length||o<r.length)&&(a>=n.length?i.push({type:`add`,text:r[o++]??``}):o>=r.length?i.push({type:`rem`,text:n[a++]??``}):n[a]===r[o]?(i.push({type:`same`,text:n[a++]??``}),o++):(i.push({type:`rem`,text:n[a++]??``}),i.push({type:`add`,text:r[o++]??``})),!(i.length>2e3)););return(0,O.jsx)(`div`,{style:{fontFamily:`var(--mono)`,fontSize:10},children:i.map((e,t)=>(0,O.jsxs)(`div`,{style:{padding:`1px 8px`,background:e.type===`add`?`#0a3a1a`:e.type===`rem`?`#3a0a0a`:`transparent`,color:e.type===`add`?`#4ade80`:e.type===`rem`?`#f87171`:`var(--dim)`,whiteSpace:`pre-wrap`,wordBreak:`break-all`},children:[e.type===`add`?`+`:e.type===`rem`?`-`:` `,e.text]},t))})}function KT({modal:e,skills:t,projectName:n,onClose:r,onSave:i}){let[a,o]=(0,_.useState)(e.name),[s,c]=(0,_.useState)(e.content),[l,u]=(0,_.useState)(e.type),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(!1),h=l===`skill`?6e3:4e3,g=s.length>h;async function v(){if(!d.trim())return;m(!0);let e={skill:`Sei un esperto di sviluppo web fullstack. Genera un file Markdown "skill" per il WebCraft Agent. Deve contenere istruzioni, pattern di codice, best practice e snippet pronti all uso come contesto persistente. Scrivi SOLO il contenuto Markdown, niente altro.`,memory:`Sei un assistente tecnico. Genera un file Markdown "memory" per il WebCraft Agent. Deve riassumere decisioni architetturali, preferenze dello sviluppatore e contesto generale del progetto. Scrivi SOLO il Markdown.`,provider:`Sei un esperto di prompt engineering. Genera un file Markdown con istruzioni specifiche per calibrare il comportamento del modello AI. Scrivi SOLO il Markdown.`},t=await E(`/api/studio/webcraft`,{system:e[l]??e.skill,user:`Progetto: ${n}\n\n${d}`,max_tokens:2048});t?.text&&(c(t.text),a||o(l===`memory`?`memory.md`:l===`provider`?`liara.md`:d.toLowerCase().replace(/[^a-z0-9]+/g,`-`).slice(0,30)+`.md`)),m(!1)}function y(){if(!a.trim()){alert(`Inserisci un nome per il file.`);return}let n=a.endsWith(`.md`)?a:a+`.md`;if((l===`memory`||l===`provider`)&&e.mode===`new`&&t.findIndex(e=>e.type===l)>=0){alert(`Esiste già un file di tipo "${l}". Modificalo direttamente.`);return}i(n,s,l)}return(0,O.jsx)(`div`,{className:Q.modalOverlay,onClick:e=>{e.target===e.currentTarget&&r()},children:(0,O.jsxs)(`div`,{className:Q.modal,children:[(0,O.jsxs)(`div`,{className:Q.modalHeader,children:[(0,O.jsxs)(`span`,{className:Q.modalTitle,children:[UT(l),` `,e.mode===`new`?`Nuovo file di contesto`:`Modifica ${e.name}`]}),(0,O.jsx)(`button`,{className:Q.modalClose,onClick:r,children:`×`})]}),(0,O.jsx)(`div`,{className:Q.modalBody,children:e.mode===`view`?(0,O.jsx)(`pre`,{className:Q.logView,children:s}):(0,O.jsxs)(O.Fragment,{children:[e.mode===`new`&&(0,O.jsxs)(`div`,{className:Q.modalRow,children:[(0,O.jsxs)(`div`,{className:Q.modalField,children:[(0,O.jsx)(`div`,{className:Q.modalLabel,children:`TIPO`}),(0,O.jsx)(`select`,{value:l,onChange:e=>{let t=e.target.value;u(t),t===`memory`?o(`memory.md`):t===`provider`&&o(`liara.md`)},className:Q.modalSelect,children:[`skill`,`memory`,`provider`].map(e=>{let n=(e===`memory`||e===`provider`)&&t.some(t=>t.type===e);return(0,O.jsxs)(`option`,{value:e,disabled:n,children:[e,n?` (esiste già)`:``]},e)})})]}),(0,O.jsxs)(`div`,{className:Q.modalField,style:{flex:2},children:[(0,O.jsx)(`div`,{className:Q.modalLabel,children:`NOME FILE`}),(0,O.jsx)(`input`,{value:a,onChange:e=>o(e.target.value),placeholder:l===`memory`?`memory.md`:l===`provider`?`liara.md`:`nome-skill.md`,className:Q.modalInput})]})]}),(0,O.jsxs)(`div`,{className:Q.modalHint,children:[`💡 `,l===`skill`?`Istruzioni tecniche, snippet, pattern di codice specifici. Max ~6000 caratteri.`:l===`memory`?`Note persistenti sul progetto: decisioni architetturali, preferenze. Solo UN file. Max ~4000 caratteri.`:`Istruzioni specifiche per il modello AI (tono, formato, vincoli). Solo UN file. Max ~4000 caratteri.`]}),(0,O.jsxs)(`div`,{className:Q.modalAiBox,children:[(0,O.jsx)(`div`,{className:Q.modalLabel,children:`🤖 GENERA CON AI`}),(0,O.jsxs)(`div`,{className:Q.modalAiRow,children:[(0,O.jsx)(`textarea`,{value:d,onChange:e=>f(e.target.value),rows:2,placeholder:`Descrivi cosa deve contenere questo file...`,className:Q.modalAiDesc}),(0,O.jsx)(`button`,{onClick:v,disabled:p,className:Q.modalAiBtn,children:p?`⏳ ...`:`▶ Genera`})]})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsxs)(`div`,{className:Q.modalLabelRow,children:[(0,O.jsx)(`span`,{children:`CONTENUTO (markdown)`}),(0,O.jsxs)(`span`,{style:{color:g?`#e05050`:`var(--dim)`},children:[s.length,` car.`,g?` ⚠ Troppo lungo`:``]})]}),(0,O.jsx)(`textarea`,{value:s,onChange:e=>c(e.target.value),rows:14,placeholder:`# Titolo
|
|
745
745
|
Scrivi le istruzioni in Markdown...`,className:Q.modalContentArea,style:{borderColor:g?`#e05050`:`var(--border2)`}})]})]})}),(0,O.jsxs)(`div`,{className:Q.modalFooter,children:[(0,O.jsx)(`button`,{onClick:r,className:Q.modalCancelBtn,children:`Annulla`}),e.mode!==`view`&&(0,O.jsx)(`button`,{onClick:y,className:Q.modalSaveBtn,children:`✓ Salva`})]})]})})}var qT={root:`_root_x9yvu_1`,loading:`_loading_x9yvu_7`,empty:`_empty_x9yvu_18`,emptyIcon:`_emptyIcon_x9yvu_29`,emptyTitle:`_emptyTitle_x9yvu_30`,emptySub:`_emptySub_x9yvu_31`,generateBtn:`_generateBtn_x9yvu_33`,summary:`_summary_x9yvu_46`,sectionTitle:`_sectionTitle_x9yvu_57`,alertTitle:`_alertTitle_x9yvu_68`,actionCard:`_actionCard_x9yvu_70`,actionTime:`_actionTime_x9yvu_81`,actionText:`_actionText_x9yvu_89`,schedCard:`_schedCard_x9yvu_95`,schedTime:`_schedTime_x9yvu_106`,schedTitle:`_schedTitle_x9yvu_114`,alertCard:`_alertCard_x9yvu_119`,alertSev:`_alertSev_x9yvu_129`,alertAction:`_alertAction_x9yvu_135`,insight:`_insight_x9yvu_141`,regenRow:`_regenRow_x9yvu_148`,regenBtn:`_regenBtn_x9yvu_153`};function JT(){let e=A(),[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(!0),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(!1),l=()=>{i(!0),c(!1),T(`/api/plan`).then(e=>{e?.plan?(n(e.plan),c(!1)):(n(null),c(!0)),i(!1)}).catch(()=>{i(!1),c(!0)})},u=async()=>{o(!0),i(!0),n(null);try{await E(`/api/plan/refresh`,{}),l()}catch{i(!1)}finally{o(!1)}};if((0,_.useEffect)(()=>{l()},[]),r)return(0,O.jsxs)(`div`,{className:qT.loading,children:[(0,O.jsx)(`div`,{className:`spinner`}),(0,O.jsx)(`div`,{children:a?`Generating plan with 5 agents...`:`Loading plan...`})]});if(s||!t)return(0,O.jsxs)(`div`,{className:qT.empty,children:[(0,O.jsx)(`div`,{className:qT.emptyIcon,children:`🗓️`}),(0,O.jsxs)(`div`,{className:qT.emptyTitle,children:[e(`plan.noplan`),` generated yet`]}),(0,O.jsx)(`div`,{className:qT.emptySub,children:`Generate a daily plan using your calendar, tasks, and emails.`}),(0,O.jsx)(`button`,{className:qT.generateBtn,onClick:u,children:e(`plan.generate`)})]});let d=e=>typeof e==`string`?e:e.description??e.message??e.action_required??`Alert`,f=e=>typeof e==`object`&&e.severity?` [${e.severity.toUpperCase()}]`:``,p=e=>typeof e==`object`&&e.action_required&&e.action_required!==d(e)?e.action_required:``,m=e=>typeof e==`string`?e:e.message??e.insight??``;return(0,O.jsxs)(`div`,{className:qT.root,children:[t.executive_summary&&(0,O.jsx)(`div`,{className:qT.summary,children:t.executive_summary}),t.priority_actions&&t.priority_actions.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:qT.sectionTitle,children:`Priority Actions`}),t.priority_actions.map((e,t)=>(0,O.jsxs)(`div`,{className:qT.actionCard,children:[e.time&&(0,O.jsx)(`span`,{className:qT.actionTime,children:e.time}),(0,O.jsx)(`span`,{className:qT.actionText,children:e.action})]},t))]}),t.schedule&&t.schedule.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:qT.sectionTitle,children:`Schedule`}),t.schedule.map((e,t)=>(0,O.jsxs)(`div`,{className:qT.schedCard,children:[(0,O.jsxs)(`span`,{className:qT.schedTime,children:[e.time_start,`–`,e.time_end]}),(0,O.jsx)(`span`,{className:qT.schedTitle,children:e.title})]},t))]}),t.security_alerts&&t.security_alerts.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`${qT.sectionTitle} ${qT.alertTitle}`,children:`Security Alerts`}),t.security_alerts.map((e,t)=>(0,O.jsxs)(`div`,{className:qT.alertCard,children:[(0,O.jsxs)(`span`,{className:qT.alertSev,children:[`!`,f(e)]}),(0,O.jsx)(`span`,{children:d(e)}),p(e)&&(0,O.jsxs)(`div`,{className:qT.alertAction,children:[`Action: `,p(e)]})]},t))]}),t.insights&&t.insights.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:qT.sectionTitle,children:`Insights`}),t.insights.map((e,t)=>(0,O.jsxs)(`div`,{className:qT.insight,children:[`→ `,m(e)]},t))]}),(0,O.jsx)(`div`,{className:qT.regenRow,children:(0,O.jsx)(`button`,{className:qT.regenBtn,onClick:u,disabled:a,children:a?`Regenerating…`:`↺ Regenerate`})})]})}function YT(e){return e===`folder`?`📁`:e===`image`?`🖼`:e===`pdf`?`📕`:e===`video`?`🎬`:e===`audio`?`🎵`:e===`sheet`?`📊`:e===`slides`?`📽`:`📄`}function XT(){let e=A(),[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(!0),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),l=(e=``)=>{i(!0),T(e?`/api/onedrive?q=${encodeURIComponent(e)}`:`/api/onedrive`).then(e=>{n(e??{files:[]}),i(!1)}).catch(()=>{o(`Could not load OneDrive. Run nha microsoft auth in the terminal to connect.`),i(!1)})};if((0,_.useEffect)(()=>{l()},[]),a)return(0,O.jsx)(`div`,{className:W.error,children:a});let u=t?.files??[],d=t?.quota;return(0,O.jsxs)(`div`,{className:W.root,children:[d&&(0,O.jsxs)(`div`,{className:W.quotaBar,children:[(0,O.jsxs)(`div`,{className:W.quotaText,children:[(0,O.jsxs)(`span`,{className:W.quotaUsed,children:[d.usage,` of `,d.limit,` used`]}),(0,O.jsxs)(`span`,{className:W.quotaPct,children:[d.percentUsed,`%`]})]}),(0,O.jsx)(`div`,{className:W.quotaTrack,children:(0,O.jsx)(`div`,{className:W.quotaFill,style:{width:`${Math.min(d.percentUsed,100)}%`,background:d.percentUsed>90?`var(--red)`:d.percentUsed>70?`var(--amber)`:`var(--cyan)`}})})]}),(0,O.jsxs)(`div`,{className:W.searchRow,children:[(0,O.jsx)(`input`,{className:W.searchInput,value:s,onChange:e=>c(e.target.value),placeholder:`Search OneDrive files…`,onKeyDown:e=>e.key===`Enter`&&l(s)}),(0,O.jsx)(`button`,{className:W.searchBtn,onClick:()=>l(s),children:`Search`})]}),r&&(0,O.jsxs)(`div`,{className:W.loading,children:[(0,O.jsx)(`div`,{className:`spinner`}),e(`common.loading`)]}),!r&&u.length===0&&(0,O.jsx)(`div`,{className:W.empty,children:e(`drive.noFiles`)}),(0,O.jsx)(`div`,{className:W.fileList,children:u.map(e=>(0,O.jsxs)(`div`,{className:W.fileRow,children:[(0,O.jsx)(`span`,{className:W.fileIcon,children:YT(e.type)}),(0,O.jsxs)(`div`,{className:W.fileInfo,children:[(0,O.jsx)(`div`,{className:W.fileName,children:e.name}),(0,O.jsxs)(`div`,{className:W.fileMeta,children:[e.modifiedTime?new Date(e.modifiedTime).toLocaleDateString():``,e.size?` · ${e.size}`:``]})]}),(0,O.jsx)(`div`,{className:W.fileBtns,children:e.webViewLink&&(0,O.jsx)(`a`,{className:W.openBtn,href:e.webViewLink,target:`_blank`,rel:`noreferrer`,children:`Open`})})]},e.id))})]})}var ZT={root:`_root_1vbmp_1`,loading:`_loading_1vbmp_2`,error:`_error_1vbmp_3`,empty:`_empty_1vbmp_4`,addRow:`_addRow_1vbmp_6`,addInput:`_addInput_1vbmp_7`,addBtn:`_addBtn_1vbmp_8`,list:`_list_1vbmp_10`,taskRow:`_taskRow_1vbmp_11`,checkBtn:`_checkBtn_1vbmp_12`,taskInfo:`_taskInfo_1vbmp_14`,taskTitle:`_taskTitle_1vbmp_15`,taskDue:`_taskDue_1vbmp_16`,taskImp:`_taskImp_1vbmp_17`};function QT(){let e=A(),[t,n]=(0,_.useState)([]),[r,i]=(0,_.useState)(!0),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(``),l=()=>{T(`/api/mstodo`).then(e=>{n(e?.tasks??[]),i(!1)}).catch(()=>{o(`Microsoft To Do requires Microsoft authentication. Run nha microsoft auth in the terminal.`),i(!1)})};(0,_.useEffect)(()=>{l()},[]);let u=()=>{let e=s.trim();e&&(c(``),E(`/api/mstodo`,{title:e}).then(e=>{e?.task&&l()}))},d=(e,t)=>{E(`/api/mstodo/${e}/complete`,{listId:t}).then(()=>l())};return r?(0,O.jsxs)(`div`,{className:ZT.loading,children:[(0,O.jsx)(`div`,{className:`spinner`}),e(`common.loading`)]}):a?(0,O.jsx)(`div`,{className:ZT.error,children:a}):(0,O.jsxs)(`div`,{className:ZT.root,children:[(0,O.jsxs)(`div`,{className:ZT.addRow,children:[(0,O.jsx)(`input`,{className:ZT.addInput,value:s,onChange:e=>c(e.target.value),placeholder:`Add a new task…`,onKeyDown:e=>e.key===`Enter`&&u()}),(0,O.jsx)(`button`,{className:ZT.addBtn,onClick:u,children:`+ Add`})]}),t.length===0&&(0,O.jsx)(`div`,{className:ZT.empty,children:`No active tasks`}),(0,O.jsx)(`div`,{className:ZT.list,children:t.map(e=>{let t=e.importance===`high`?`var(--red)`:e.importance===`low`?`var(--dim)`:`var(--amber)`;return(0,O.jsxs)(`div`,{className:ZT.taskRow,children:[(0,O.jsx)(`button`,{className:ZT.checkBtn,onClick:()=>d(e.id,e.listId)}),(0,O.jsxs)(`div`,{className:ZT.taskInfo,children:[(0,O.jsx)(`div`,{className:ZT.taskTitle,children:e.title}),e.dueDate&&(0,O.jsxs)(`div`,{className:ZT.taskDue,children:[`Due: `,e.dueDate.split(`T`)[0]]})]}),e.importance&&(0,O.jsx)(`span`,{className:ZT.taskImp,style:{color:t},children:e.importance})]},e.id)})})]})}var $T={root:`_root_1ag4s_1`,header:`_header_1ag4s_3`,title:`_title_1ag4s_4`,subtitle:`_subtitle_1ag4s_5`,controls:`_controls_1ag4s_7`,monitorRow:`_monitorRow_1ag4s_8`,label:`_label_1ag4s_9`,monitorBtn:`_monitorBtn_1ag4s_10`,monitorActive:`_monitorActive_1ag4s_11`,captureBtn:`_captureBtn_1ag4s_12`,analyzeSection:`_analyzeSection_1ag4s_15`,sectionTitle:`_sectionTitle_1ag4s_16`,presets:`_presets_1ag4s_17`,preset:`_preset_1ag4s_17`,presetActive:`_presetActive_1ag4s_20`,questionRow:`_questionRow_1ag4s_21`,questionInput:`_questionInput_1ag4s_22`,analyzeBtn:`_analyzeBtn_1ag4s_23`,error:`_error_1ag4s_26`,screenshotContainer:`_screenshotContainer_1ag4s_28`,screenshot:`_screenshot_1ag4s_28`,screenshotMeta:`_screenshotMeta_1ag4s_30`,analysis:`_analysis_1ag4s_32`,analysisTitle:`_analysisTitle_1ag4s_33`,analysisText:`_analysisText_1ag4s_34`,continueInChat:`_continueInChat_1ag4s_35`,history:`_history_1ag4s_37`,historyGrid:`_historyGrid_1ag4s_38`,historyItem:`_historyItem_1ag4s_39`,historyThumb:`_historyThumb_1ag4s_40`,historyMeta:`_historyMeta_1ag4s_41`,historyTs:`_historyTs_1ag4s_42`,historyQ:`_historyQ_1ag4s_43`,historyA:`_historyA_1ag4s_44`},eE=[`Describe exactly what you see on the screen`,`Identify any errors, warnings, or issues visible`,`What application is open and what is the user doing?`,`Summarize the content visible on screen and suggest next actions`,`Read and extract all visible text from the screen`,`Analyze the code visible on screen and identify bugs or improvements`,`What financial data or charts are visible? Summarize key numbers`,`Is there anything sensitive or that should be kept private?`];function tE(){let e=A(),t=ne(e=>e.setView),n=ne(e=>e.apiBase),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(1),[p,m]=(0,_.useState)([]),h=async()=>{i(!0),c(null);try{let e=await E(`/api/screen/capture`,{monitor:d});c(e),(e?.base64||e?.file)&&m(t=>[{ts:new Date().toLocaleTimeString(),question:`Screenshot`,analysis:``,src:e.base64?`data:image/${e.format??`jpeg`};base64,${e.base64}`:`${n}/api/screenshots/${e.file}`},...t.slice(0,9)])}catch(e){c({error:e.message})}i(!1)},g=async()=>{if(l.trim()){o(!0);try{let e=await E(`/api/screen/analyze`,{question:l.trim(),monitor:d});if(c(e),e?.analysis){let t=e.base64?`data:image/${e.format??`jpeg`};base64,${e.base64}`:e.file?`${n}/api/screenshots/${e.file}`:``;m(n=>[{ts:new Date().toLocaleTimeString(),question:l.trim(),analysis:e.analysis??``,src:t},...n.slice(0,9)])}}catch(e){c({error:e.message})}o(!1)}},v=e=>{try{sessionStorage.setItem(`nha_chat_prefill`,e)}catch{}t(`chat`)},y=s?.base64?`data:image/${s.format??`jpeg`};base64,${s.base64}`:s?.file?`${n}/api/screenshots/${s.file}`:null;return(0,O.jsxs)(`div`,{className:$T.root,children:[(0,O.jsx)(`div`,{className:$T.header,children:(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:$T.title,children:`🖥️ Screen Capture`}),(0,O.jsxs)(`div`,{className:$T.subtitle,children:[e(`screen.capture`),` and analyze your desktop screen with AI vision`]})]})}),(0,O.jsxs)(`div`,{className:$T.controls,children:[(0,O.jsxs)(`div`,{className:$T.monitorRow,children:[(0,O.jsx)(`label`,{className:$T.label,children:`Monitor`}),[1,2,3].map(e=>(0,O.jsxs)(`button`,{className:`${$T.monitorBtn} ${d===e?$T.monitorActive:``}`,onClick:()=>f(e),children:[`Monitor `,e]},e))]}),(0,O.jsx)(`button`,{className:$T.captureBtn,onClick:h,disabled:r||a,children:r?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`spinner`}),` Capturing…`]}):`📷 Capture Screen`})]}),(0,O.jsxs)(`div`,{className:$T.analyzeSection,children:[(0,O.jsx)(`div`,{className:$T.sectionTitle,children:`Capture + Analyze`}),(0,O.jsx)(`div`,{className:$T.presets,children:eE.map(e=>(0,O.jsxs)(`button`,{className:`${$T.preset} ${l===e?$T.presetActive:``}`,onClick:()=>u(e),children:[e.slice(0,50),e.length>50?`…`:``]},e))}),(0,O.jsxs)(`div`,{className:$T.questionRow,children:[(0,O.jsx)(`input`,{className:$T.questionInput,value:l,onChange:e=>u(e.target.value),placeholder:`Ask something about your screen…`,onKeyDown:e=>e.key===`Enter`&&g()}),(0,O.jsx)(`button`,{className:$T.analyzeBtn,onClick:g,disabled:!l.trim()||r||a,children:a?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`spinner`}),` Analyzing…`]}):`🔍 Analyze`})]})]}),s?.error&&(0,O.jsx)(`div`,{className:$T.error,children:s.error}),y&&(0,O.jsxs)(`div`,{className:$T.screenshotContainer,children:[(0,O.jsx)(`img`,{src:y,className:$T.screenshot,alt:`Screen capture`}),s?.width&&s?.height&&(0,O.jsxs)(`div`,{className:$T.screenshotMeta,children:[s.width,` × `,s.height,`px`]})]}),s?.analysis&&(0,O.jsxs)(`div`,{className:$T.analysis,children:[(0,O.jsx)(`div`,{className:$T.analysisTitle,children:`AI Analysis`}),(0,O.jsx)(`div`,{className:$T.analysisText,children:s.analysis}),(0,O.jsx)(`button`,{className:$T.continueInChat,onClick:()=>v(`I captured my screen. Here's what the AI saw:\n\n${s.analysis}\n\nCan you help me with this?`),children:`Continue in Chat →`})]}),p.length>0&&(0,O.jsxs)(`div`,{className:$T.history,children:[(0,O.jsx)(`div`,{className:$T.sectionTitle,children:`Recent Captures`}),(0,O.jsx)(`div`,{className:$T.historyGrid,children:p.map((e,t)=>(0,O.jsxs)(`div`,{className:$T.historyItem,children:[e.src&&(0,O.jsx)(`img`,{src:e.src,className:$T.historyThumb,alt:e.question}),(0,O.jsxs)(`div`,{className:$T.historyMeta,children:[(0,O.jsx)(`div`,{className:$T.historyTs,children:e.ts}),(0,O.jsx)(`div`,{className:$T.historyQ,children:e.question}),e.analysis&&(0,O.jsxs)(`div`,{className:$T.historyA,children:[e.analysis.slice(0,120),`…`]})]})]},t))})]})]})}var nE={root:`_root_v12qq_1`,header:`_header_v12qq_3`,title:`_title_v12qq_4`,subtitle:`_subtitle_v12qq_5`,section:`_section_v12qq_7`,sectionTitle:`_sectionTitle_v12qq_8`,quickBtns:`_quickBtns_v12qq_10`,quickBtn:`_quickBtn_v12qq_10`,searchRow:`_searchRow_v12qq_14`,searchInput:`_searchInput_v12qq_15`,searchBtn:`_searchBtn_v12qq_16`,modeRow:`_modeRow_v12qq_19`,modeBtn:`_modeBtn_v12qq_20`,modeActive:`_modeActive_v12qq_21`,routeInputs:`_routeInputs_v12qq_23`,inputWrapper:`_inputWrapper_v12qq_24`,inputIcon:`_inputIcon_v12qq_25`,routeInput:`_routeInput_v12qq_23`,swapBtn:`_swapBtn_v12qq_27`,dirBtns:`_dirBtns_v12qq_29`,dirBtn:`_dirBtn_v12qq_29`,openMapsBtn:`_openMapsBtn_v12qq_32`,error:`_error_v12qq_34`,resultCard:`_resultCard_v12qq_36`,routeSummary:`_routeSummary_v12qq_37`,routeDistance:`_routeDistance_v12qq_38`,routeDuration:`_routeDuration_v12qq_39`,routeMode:`_routeMode_v12qq_40`,steps:`_steps_v12qq_41`,step:`_step_v12qq_41`,stepNum:`_stepNum_v12qq_43`,stepText:`_stepText_v12qq_44`,mapLink:`_mapLink_v12qq_45`,askChatBtn:`_askChatBtn_v12qq_47`,savedRoute:`_savedRoute_v12qq_49`,savedFrom:`_savedFrom_v12qq_51`,savedArrow:`_savedArrow_v12qq_52`,savedTo:`_savedTo_v12qq_53`,savedTs:`_savedTs_v12qq_54`},rE=[`driving`,`walking`,`bicycling`,`transit`],iE={driving:`🚗`,walking:`🚶`,bicycling:`🚲`,transit:`🚌`},aE=[{label:`🏥 Nearest Hospital`,query:`nearest hospital`},{label:`⛽ Gas Station`,query:`gas station near me`},{label:`🛒 Supermarket`,query:`supermarket near me`},{label:`☕ Coffee Shop`,query:`coffee shop near me`},{label:`🏧 ATM`,query:`ATM near me`},{label:`🍕 Pizza`,query:`pizza restaurant near me`}];function oE(e,t,n){try{let r=JSON.parse(localStorage.getItem(`nha_maps_routes`)??`[]`),i=[{from:e,to:t,label:n,ts:new Date().toISOString()},...r.filter(n=>!(n.from===e&&n.to===t))].slice(0,10);localStorage.setItem(`nha_maps_routes`,JSON.stringify(i))}catch{}}function sE(){try{return JSON.parse(localStorage.getItem(`nha_maps_routes`)??`[]`)}catch{return[]}}function cE(){let e=A(),t=ne(e=>e.setView),[n,r]=(0,_.useState)(``),[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(`driving`),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(sE),[m,h]=(0,_.useState)(``),g=async()=>{if(!(!n.trim()||!i.trim())){l(!0),d(null);try{let e=await T(`/api/maps/directions?from=${encodeURIComponent(n.trim())}&to=${encodeURIComponent(i.trim())}&mode=${o}`);e&&(d(e),e.error||(oE(n.trim(),i.trim()),p(sE())))}catch{d({url:`https://www.google.com/maps/dir/${encodeURIComponent(n.trim())}/${encodeURIComponent(i.trim())}/?travelmode=${o}`}),oE(n.trim(),i.trim()),p(sE())}l(!1)}},v=e=>{let t=`https://www.google.com/maps/search/${encodeURIComponent(e)}`;window.open(t,`_blank`)},y=e=>{try{sessionStorage.setItem(`nha_chat_prefill`,e)}catch{}t(`chat`)},b=e=>{r(e.from),a(e.to)},x=n.trim()&&i.trim()?`https://www.google.com/maps/dir/${encodeURIComponent(n.trim())}/${encodeURIComponent(i.trim())}/?travelmode=${o}`:null;return(0,O.jsxs)(`div`,{className:nE.root,children:[(0,O.jsx)(`div`,{className:nE.header,children:(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:nE.title,children:`🗺️ Maps & Directions`}),(0,O.jsx)(`div`,{className:nE.subtitle,children:e(`maps.directions`)})]})}),(0,O.jsxs)(`div`,{className:nE.section,children:[(0,O.jsx)(`div`,{className:nE.sectionTitle,children:e(`common.search`)}),(0,O.jsx)(`div`,{className:nE.quickBtns,children:aE.map(e=>(0,O.jsx)(`button`,{className:nE.quickBtn,onClick:()=>v(e.query),children:e.label},e.label))}),(0,O.jsxs)(`div`,{className:nE.searchRow,children:[(0,O.jsx)(`input`,{className:nE.searchInput,value:m,onChange:e=>h(e.target.value),placeholder:`Search for a place, address, or business…`,onKeyDown:e=>e.key===`Enter`&&v(m)}),(0,O.jsx)(`button`,{className:nE.searchBtn,onClick:()=>v(m),disabled:!m.trim(),children:`Search ↗`})]})]}),(0,O.jsxs)(`div`,{className:nE.section,children:[(0,O.jsx)(`div`,{className:nE.sectionTitle,children:`Directions`}),(0,O.jsx)(`div`,{className:nE.modeRow,children:rE.map(e=>(0,O.jsxs)(`button`,{className:`${nE.modeBtn} ${o===e?nE.modeActive:``}`,onClick:()=>s(e),title:e,children:[iE[e],` `,e.charAt(0).toUpperCase()+e.slice(1)]},e))}),(0,O.jsxs)(`div`,{className:nE.routeInputs,children:[(0,O.jsxs)(`div`,{className:nE.inputWrapper,children:[(0,O.jsx)(`span`,{className:nE.inputIcon,children:`A`}),(0,O.jsx)(`input`,{className:nE.routeInput,value:n,onChange:e=>r(e.target.value),placeholder:`From (address, city, or 'my location')`,onKeyDown:e=>e.key===`Enter`&&g()})]}),(0,O.jsx)(`button`,{className:nE.swapBtn,onClick:()=>{r(i),a(n)},title:`Swap`,children:`⇅`}),(0,O.jsxs)(`div`,{className:nE.inputWrapper,children:[(0,O.jsx)(`span`,{className:nE.inputIcon,children:`B`}),(0,O.jsx)(`input`,{className:nE.routeInput,value:i,onChange:e=>a(e.target.value),placeholder:`To (address, city, or landmark)`,onKeyDown:e=>e.key===`Enter`&&g()})]})]}),(0,O.jsxs)(`div`,{className:nE.dirBtns,children:[(0,O.jsx)(`button`,{className:nE.dirBtn,onClick:g,disabled:c||!n.trim()||!i.trim(),children:c?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`spinner`}),` Getting route…`]}):`🗺️ Get Directions`}),x&&(0,O.jsx)(`a`,{className:nE.openMapsBtn,href:x,target:`_blank`,rel:`noreferrer`,children:`Open in Google Maps ↗`})]})]}),u?.error&&(0,O.jsx)(`div`,{className:nE.error,children:u.error}),u&&!u.error&&(0,O.jsxs)(`div`,{className:nE.resultCard,children:[(u.distance||u.duration)&&(0,O.jsxs)(`div`,{className:nE.routeSummary,children:[u.distance&&(0,O.jsxs)(`span`,{className:nE.routeDistance,children:[`📏 `,u.distance]}),u.duration&&(0,O.jsxs)(`span`,{className:nE.routeDuration,children:[`⏱ `,u.duration]}),(0,O.jsxs)(`span`,{className:nE.routeMode,children:[iE[o],` `,o]})]}),u.steps&&u.steps.length>0&&(0,O.jsx)(`div`,{className:nE.steps,children:u.steps.map((e,t)=>(0,O.jsxs)(`div`,{className:nE.step,children:[(0,O.jsx)(`span`,{className:nE.stepNum,children:t+1}),(0,O.jsx)(`span`,{className:nE.stepText,children:e})]},t))}),u.url&&(0,O.jsx)(`a`,{className:nE.mapLink,href:u.url,target:`_blank`,rel:`noreferrer`,children:`View full route on Google Maps ↗`}),(0,O.jsx)(`button`,{className:nE.askChatBtn,onClick:()=>y(`Give me directions from "${n}" to "${i}" by ${o}. Include estimated time, distance, and any traffic alerts or alternative routes.`),children:`Ask AI for detailed route advice →`})]}),f.length>0&&(0,O.jsxs)(`div`,{className:nE.section,children:[(0,O.jsx)(`div`,{className:nE.sectionTitle,children:`Recent Routes`}),f.map((e,t)=>(0,O.jsxs)(`div`,{className:nE.savedRoute,onClick:()=>b(e),children:[(0,O.jsx)(`span`,{className:nE.savedFrom,children:e.from}),(0,O.jsx)(`span`,{className:nE.savedArrow,children:`→`}),(0,O.jsx)(`span`,{className:nE.savedTo,children:e.to}),(0,O.jsx)(`span`,{className:nE.savedTs,children:new Date(e.ts).toLocaleDateString()})]},t))]})]})}var $={root:`_root_esnjz_1`,header:`_header_esnjz_3`,title:`_title_esnjz_4`,subtitle:`_subtitle_esnjz_5`,addBtn:`_addBtn_esnjz_6`,quickAdd:`_quickAdd_esnjz_8`,quickLabel:`_quickLabel_esnjz_9`,quickPresets:`_quickPresets_esnjz_10`,quickPreset:`_quickPreset_esnjz_10`,section:`_section_esnjz_14`,sectionTitle:`_sectionTitle_esnjz_15`,loading:`_loading_esnjz_17`,empty:`_empty_esnjz_18`,card:`_card_esnjz_20`,cardPast:`_cardPast_esnjz_21`,cardLeft:`_cardLeft_esnjz_22`,reminderMsg:`_reminderMsg_esnjz_23`,reminderTime:`_reminderTime_esnjz_24`,timeBadge:`_timeBadge_esnjz_25`,countdown:`_countdown_esnjz_26`,timePast:`_timePast_esnjz_27`,sentBadge:`_sentBadge_esnjz_28`,cancelledBadge:`_cancelledBadge_esnjz_29`,cancelBtn:`_cancelBtn_esnjz_30`,repeatBtn:`_repeatBtn_esnjz_31`,aiButtons:`_aiButtons_esnjz_33`,aiBtn:`_aiBtn_esnjz_34`,overlay:`_overlay_esnjz_38`,modal:`_modal_esnjz_39`,modalTitle:`_modalTitle_esnjz_40`,label:`_label_esnjz_41`,input:`_input_esnjz_42`,msgTemplates:`_msgTemplates_esnjz_44`,msgTemplate:`_msgTemplate_esnjz_44`,msgTemplateActive:`_msgTemplateActive_esnjz_47`,typeTabs:`_typeTabs_esnjz_49`,typeTab:`_typeTab_esnjz_49`,typeTabActive:`_typeTabActive_esnjz_51`,relRow:`_relRow_esnjz_53`,inLabel:`_inLabel_esnjz_54`,relInput:`_relInput_esnjz_55`,relSelect:`_relSelect_esnjz_56`,formErr:`_formErr_esnjz_58`,formOk:`_formOk_esnjz_59`,modalBtns:`_modalBtns_esnjz_60`,cancelModalBtn:`_cancelModalBtn_esnjz_61`,saveBtn:`_saveBtn_esnjz_62`},lE=[{label:`In 5 min`,value:`in 5 minutes`},{label:`In 15 min`,value:`in 15 minutes`},{label:`In 30 min`,value:`in 30 minutes`},{label:`In 1 hour`,value:`in 1 hour`},{label:`In 2 hours`,value:`in 2 hours`},{label:`In 3 hours`,value:`in 3 hours`},{label:`Tomorrow 9am`,value:`tomorrow at 09:00`},{label:`Tomorrow noon`,value:`tomorrow at 12:00`}],uE=[`Take a break and stretch`,`Check emails`,`Join the standup call`,`Review and respond to messages`,`Take your medication`,`Drink water`,`Focus review — what did you accomplish in the last hour?`,`Follow up on pending tasks`,`End of work day — log your achievements`,`Weekly review — prepare for next week`];function dE(e){if(e<1)return`now`;if(e<60)return`in ${e}m`;let t=Math.floor(e/60),n=e%60;return n>0?`in ${t}h ${n}m`:`in ${t}h`}function fE(){let e=A(),t=ne(e=>e.setView),[n,r]=(0,_.useState)([]),[i,a]=(0,_.useState)(!0),[o,s]=(0,_.useState)({message:``,atTime:``,atTimeType:`relative`,relValue:`30`,relUnit:`minutes`}),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)(``),[m,h]=(0,_.useState)(!1),g=()=>{a(!0),T(`/api/reminders`).then(e=>{r(e?.reminders??[]),a(!1)}).catch(()=>{r([]),a(!1)})};(0,_.useEffect)(()=>{g()},[]);let v=async()=>{if(!o.message.trim()){d(`Message is required`);return}let e=``;if(o.atTimeType===`relative`)e=`in ${o.relValue} ${o.relUnit}`;else{if(!o.atTime){d(`Time is required`);return}e=o.atTime}l(!0),d(``);try{await E(`/api/reminders`,{message:o.message.trim(),atTime:e}),p(`Reminder set!`),setTimeout(()=>{p(``),h(!1)},1500),g()}catch(e){d(e.message??`Failed to set reminder`)}l(!1)},y=e=>{confirm(`Cancel this reminder?`)&&E(`/api/reminders/cancel`,{id:e}).then(g)},b=e=>{try{sessionStorage.setItem(`nha_chat_prefill`,e)}catch{}t(`chat`)},x=n.filter(e=>e.status===`pending`),S=n.filter(e=>e.status!==`pending`);return(0,O.jsxs)(`div`,{className:$.root,children:[(0,O.jsxs)(`div`,{className:$.header,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:$.title,children:`🔔 Reminders`}),(0,O.jsx)(`div`,{className:$.subtitle,children:`Set one-time notifications via the NHA daemon`})]}),(0,O.jsx)(`button`,{className:$.addBtn,onClick:()=>{h(!0),d(``),p(``)},children:`+ New Reminder`})]}),(0,O.jsxs)(`div`,{className:$.quickAdd,children:[(0,O.jsx)(`div`,{className:$.quickLabel,children:`Quick reminder for now:`}),(0,O.jsx)(`div`,{className:$.quickPresets,children:lE.map(e=>(0,O.jsx)(`button`,{className:$.quickPreset,onClick:()=>{s(e=>({...e,atTimeType:`relative`,atTime:``,message:e.message||`Reminder`})),h(!0),d(``),p(``)},children:e.label},e.value))})]}),i&&(0,O.jsxs)(`div`,{className:$.loading,children:[(0,O.jsx)(`div`,{className:`spinner`}),e(`common.loading`)]}),!i&&(0,O.jsxs)(`div`,{className:$.section,children:[(0,O.jsxs)(`div`,{className:$.sectionTitle,children:[`Pending (`,x.length,`)`]}),x.length===0&&(0,O.jsx)(`div`,{className:$.empty,children:`No pending reminders. Set one to get notified.`}),x.map(e=>(0,O.jsxs)(`div`,{className:$.card,children:[(0,O.jsxs)(`div`,{className:$.cardLeft,children:[(0,O.jsx)(`div`,{className:$.reminderMsg,children:e.message}),(0,O.jsxs)(`div`,{className:$.reminderTime,children:[(0,O.jsx)(`span`,{className:$.timeBadge,children:new Date(e.atTime).toLocaleString()}),e.minutesUntil!==void 0&&(0,O.jsx)(`span`,{className:$.countdown,children:dE(e.minutesUntil)})]})]}),(0,O.jsx)(`button`,{className:$.cancelBtn,onClick:()=>y(e.id),children:`Cancel`})]},e.id))]}),S.length>0&&(0,O.jsxs)(`div`,{className:$.section,children:[(0,O.jsxs)(`div`,{className:$.sectionTitle,children:[`Recent (`,S.length,`)`]}),S.slice(0,10).map(e=>(0,O.jsxs)(`div`,{className:`${$.card} ${$.cardPast}`,children:[(0,O.jsxs)(`div`,{className:$.cardLeft,children:[(0,O.jsx)(`div`,{className:$.reminderMsg,children:e.message}),(0,O.jsxs)(`div`,{className:$.reminderTime,children:[(0,O.jsx)(`span`,{className:e.status===`sent`?$.sentBadge:$.cancelledBadge,children:e.status}),(0,O.jsx)(`span`,{className:$.timePast,children:new Date(e.atTime).toLocaleString()})]})]}),(0,O.jsx)(`button`,{className:$.repeatBtn,onClick:()=>{s(t=>({...t,message:e.message,atTimeType:`relative`,relValue:`30`,relUnit:`minutes`})),h(!0)},children:`Repeat`})]},e.id))]}),(0,O.jsxs)(`div`,{className:$.section,children:[(0,O.jsx)(`div`,{className:$.sectionTitle,children:`AI-Powered Reminders`}),(0,O.jsxs)(`div`,{className:$.aiButtons,children:[(0,O.jsx)(`button`,{className:$.aiBtn,onClick:()=>b(`Set a reminder to check my emails in 30 minutes`),children:`📧 Email check in 30min`}),(0,O.jsx)(`button`,{className:$.aiBtn,onClick:()=>b(`Set a reminder every hour to take a break and drink water`),children:`💧 Hourly water break`}),(0,O.jsx)(`button`,{className:$.aiBtn,onClick:()=>b(`Set a reminder at the end of the work day (6pm) to do an evening review of my tasks and prepare tomorrow's plan`),children:`🌆 Evening review 6pm`}),(0,O.jsx)(`button`,{className:$.aiBtn,onClick:()=>b(`Look at my calendar and set reminders for all events today`),children:`📅 Remind me of today's events`})]})]}),m&&(0,O.jsx)(`div`,{className:$.overlay,onClick:e=>{e.target===e.currentTarget&&h(!1)},children:(0,O.jsxs)(`div`,{className:$.modal,children:[(0,O.jsx)(`div`,{className:$.modalTitle,children:e(`reminders.new`)}),(0,O.jsx)(`div`,{className:$.label,children:`Message *`}),(0,O.jsx)(`div`,{className:$.msgTemplates,children:uE.map(e=>(0,O.jsx)(`button`,{className:`${$.msgTemplate} ${o.message===e?$.msgTemplateActive:``}`,onClick:()=>s(t=>({...t,message:e})),children:e},e))}),(0,O.jsx)(`input`,{className:$.input,value:o.message,onChange:e=>s(t=>({...t,message:e.target.value})),placeholder:`Reminder message (e.g. Call John)`}),(0,O.jsx)(`div`,{className:$.label,children:`When *`}),(0,O.jsxs)(`div`,{className:$.typeTabs,children:[(0,O.jsx)(`button`,{className:`${$.typeTab} ${o.atTimeType===`relative`?$.typeTabActive:``}`,onClick:()=>s(e=>({...e,atTimeType:`relative`})),children:`Relative`}),(0,O.jsx)(`button`,{className:`${$.typeTab} ${o.atTimeType===`absolute`?$.typeTabActive:``}`,onClick:()=>s(e=>({...e,atTimeType:`absolute`})),children:`Exact time`})]}),o.atTimeType===`relative`?(0,O.jsxs)(`div`,{className:$.relRow,children:[(0,O.jsx)(`span`,{className:$.inLabel,children:`in`}),(0,O.jsx)(`input`,{className:$.relInput,type:`number`,min:`1`,value:o.relValue,onChange:e=>s(t=>({...t,relValue:e.target.value}))}),(0,O.jsxs)(`select`,{className:$.relSelect,value:o.relUnit,onChange:e=>s(t=>({...t,relUnit:e.target.value})),children:[(0,O.jsx)(`option`,{value:`minutes`,children:`minutes`}),(0,O.jsx)(`option`,{value:`hours`,children:`hours`}),(0,O.jsx)(`option`,{value:`days`,children:`days`})]})]}):(0,O.jsx)(`input`,{className:$.input,type:`datetime-local`,value:o.atTime,onChange:e=>s(t=>({...t,atTime:e.target.value}))}),u&&(0,O.jsx)(`div`,{className:$.formErr,children:u}),f&&(0,O.jsx)(`div`,{className:$.formOk,children:f}),(0,O.jsxs)(`div`,{className:$.modalBtns,children:[(0,O.jsx)(`button`,{className:$.cancelModalBtn,onClick:()=>h(!1),children:`Cancel`}),(0,O.jsx)(`button`,{className:$.saveBtn,onClick:v,disabled:c,children:c?`Setting…`:`🔔 Set Reminder`})]})]})})]})}var pE={root:`_root_atgeb_1`,icon:`_icon_atgeb_10`,title:`_title_atgeb_11`,sub:`_sub_atgeb_12`},mE={dashboard:`⚡`,email:`📧`,calendar:`📅`,tasks:`✅`,contacts:`👤`,notes:`📝`,drive:`💾`,onedrive:`☁️`,mstodo:`📋`,github:`🐙`,slack:`💬`,notion:`📋`,collab:`🏛️`,maps:`🗺️`,cron:`⏰`,screen:`🖥️`,reminders:`🔔`,birthdays:`🎂`,settings:`⚙️`,agents:`🤖`,plan:`🗓️`,webcraft:`🔨`,connectors:`🔗`};function hE({view:e}){let t=A();return(0,O.jsxs)(`div`,{className:pE.root,children:[(0,O.jsx)(`div`,{className:pE.icon,children:mE[e]??`🔧`}),(0,O.jsx)(`div`,{className:pE.title,children:e.charAt(0).toUpperCase()+e.slice(1)}),(0,O.jsx)(`div`,{className:pE.sub,children:t(`common.comingSoon`)})]})}function gE({activeView:e}){switch(e){case`dashboard`:return(0,O.jsx)(vt,{});case`chat`:return(0,O.jsx)(De,{});case`email`:return(0,O.jsx)(Kt,{});case`calendar`:return(0,O.jsx)(Xt,{});case`tasks`:return(0,O.jsx)(bt,{});case`notes`:return(0,O.jsx)(jt,{});case`contacts`:return(0,O.jsx)(Pt,{});case`birthdays`:return(0,O.jsx)(Tt,{});case`cron`:return(0,O.jsx)(kt,{});case`connectors`:return(0,O.jsx)(Vt,{});case`agents`:return(0,O.jsx)(en,{});case`drive`:return(0,O.jsx)(rn,{});case`onedrive`:return(0,O.jsx)(XT,{});case`mstodo`:return(0,O.jsx)(QT,{});case`github`:return(0,O.jsx)(on,{});case`slack`:return(0,O.jsx)(cn,{});case`notion`:return(0,O.jsx)(ln,{});case`collab`:return(0,O.jsx)(pn,{});case`plan`:return(0,O.jsx)(JT,{});case`screen`:return(0,O.jsx)(tE,{});case`maps`:return(0,O.jsx)(cE,{});case`reminders`:return(0,O.jsx)(fE,{});case`settings`:return(0,O.jsx)(Ct,{});default:return(0,O.jsx)(hE,{view:e})}}function _E(){let{activeView:e}=ne();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{style:{display:e===`studio`?`contents`:`none`},children:(0,O.jsx)(pt,{})}),(0,O.jsx)(`div`,{style:{display:e===`webcraft`?`contents`:`none`},children:(0,O.jsx)(WT,{})}),e!==`studio`&&e!==`webcraft`&&(0,O.jsx)(gE,{activeView:e})]})}(0,v.createRoot)(document.getElementById(`root`)).render((0,O.jsx)(_.StrictMode,{children:(0,O.jsx)(he,{children:(0,O.jsx)(_E,{})})}));
|