@kwirthmagnify/kwirth-plugin-magnify 0.3.3 → 0.3.5

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.
Files changed (2) hide show
  1. package/front.js +31 -31
  2. package/package.json +5 -1
package/front.js CHANGED
@@ -1,38 +1,38 @@
1
- "use strict";(()=>{var A1=Object.create;var ec=Object.defineProperty;var P1=Object.getOwnPropertyDescriptor;var F1=Object.getOwnPropertyNames;var _1=Object.getPrototypeOf,z1=Object.prototype.hasOwnProperty;var Fm=e=>{throw TypeError(e)};var L1=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V1=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var W1=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of F1(t))!z1.call(e,r)&&r!==n&&ec(e,r,{get:()=>t[r],enumerable:!(a=P1(t,r))||a.enumerable});return e};var k=(e,t,n)=>(n=e!=null?A1(_1(e)):{},W1(t||!e||!e.__esModule?ec(n,"default",{value:e,enumerable:!0}):n,e));var _m=(e,t,n)=>L1(e,typeof t!="symbol"?t+"":t,n),tc=(e,t,n)=>t.has(e)||Fm("Cannot "+n);var T=(e,t,n)=>(tc(e,t,"read from private field"),n?n.call(e):t.get(e)),Ne=(e,t,n)=>t.has(e)?Fm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n,a)=>(tc(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),J=(e,t,n)=>(tc(e,t,"access private method"),n);var je=O((eD,zm)=>{u();var ja=window.__kwirth__.React,Zr=ja!=null&&"default"in Object(ja)?ja.default:ja;typeof Zr!="function"&&Zr!=null&&typeof Zr.default<"u"&&(Zr=Zr.default);zm.exports=Object.assign({},typeof ja=="object"&&ja!==null?ja:{},{default:Zr,__esModule:!0})});var C,u=V1(()=>{"use strict";C=k(je(),1)});var Dt=O((iD,Wm)=>{u();var Za=window.__kwirth__.kwirthCommonFront,Xr=Za!=null&&"default"in Object(Za)?Za.default:Za;typeof Xr!="function"&&Xr!=null&&typeof Xr.default<"u"&&(Xr=Xr.default);Wm.exports=Object.assign({},typeof Za=="object"&&Za!==null?Za:{},{default:Xr,__esModule:!0})});var Gt=O((cD,Bm)=>{u();var Xa=window.__kwirth__.MUI.icons,Qr=Xa!=null&&"default"in Object(Xa)?Xa.default:Xa;typeof Qr!="function"&&Qr!=null&&typeof Qr.default<"u"&&(Qr=Qr.default);Bm.exports=Object.assign({},typeof Xa=="object"&&Xa!==null?Xa:{},{default:Qr,__esModule:!0})});var $m=O(bo=>{"use strict";u();var $1=je(),q1=Symbol.for("react.element"),U1=Symbol.for("react.fragment"),Y1=Object.prototype.hasOwnProperty,G1=$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,K1={key:!0,ref:!0,__self:!0,__source:!0};function Hm(e,t,n){var a,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)Y1.call(t,a)&&!K1.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:q1,type:e,key:i,ref:s,props:r,_owner:G1.current}}bo.Fragment=U1;bo.jsx=Hm;bo.jsxs=Hm});var he=O((fD,qm)=>{"use strict";u();qm.exports=$m()});var va=O((yD,Km)=>{u();var Qa=window.__kwirth__.kwirthCommon,ei=Qa!=null&&"default"in Object(Qa)?Qa.default:Qa;typeof ei!="function"&&ei!=null&&typeof ei.default<"u"&&(ei=ei.default);Km.exports=Object.assign({},typeof Qa=="object"&&Qa!==null?Qa:{},{default:ei,__esModule:!0})});var ft=O((ID,Jm)=>{u();var er=window.__kwirth__.MUI.material,ni=er!=null&&"default"in Object(er)?er.default:er;typeof ni!="function"&&ni!=null&&typeof ni.default<"u"&&(ni=ni.default);Jm.exports=Object.assign({},typeof er=="object"&&er!==null?er:{},{default:ni,__esModule:!0})});var td=O((ED,ed)=>{u();var tr=window.__kwirth_dce__["file-manager"].instance.fileManager,ai=tr!=null&&"default"in Object(tr)?tr.default:tr;typeof ai!="function"&&ai!=null&&typeof ai.default<"u"&&(ai=ai.default);ed.exports=Object.assign({},typeof tr=="object"&&tr!==null?tr:{},{default:ai,__esModule:!0})});var kd=O((yO,Id)=>{"use strict";u();var tb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Id.exports=tb});var Od=O((bO,Dd)=>{"use strict";u();var nb=kd();function Td(){}function Md(){}Md.resetWarningCache=Td;Dd.exports=function(){function e(a,r,i,s,o,l){if(l!==nb){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Md,resetWarningCache:Td};return n.PropTypes=n,n}});var nr=O((vO,Rd)=>{u();Rd.exports=Od()();var SO,CO});var ys=O((kO,Nd)=>{u();var ar=window.__kwirth__.ReactDOM,oi=ar!=null&&"default"in Object(ar)?ar.default:ar;typeof oi!="function"&&oi!=null&&typeof oi.default<"u"&&(oi=oi.default);Nd.exports=Object.assign({},typeof ar=="object"&&ar!==null?ar:{},{default:oi,__esModule:!0})});var Yd=O((zO,wc)=>{u();function Ud(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ud(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function qd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ud(e))&&(a&&(a+=" "),a+=t);return a}wc.exports=qd,wc.exports.clsx=qd});var af=O((VO,nf)=>{"use strict";u();var kb=Object.create,To=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,Mb=Object.getOwnPropertyNames,Db=Object.getPrototypeOf,Ob=Object.prototype.hasOwnProperty,Rb=(e,t)=>{for(var n in t)To(e,n,{get:t[n],enumerable:!0})},Xd=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Mb(t))!Ob.call(e,r)&&r!==n&&To(e,r,{get:()=>t[r],enumerable:!(a=Tb(t,r))||a.enumerable});return e},mi=(e,t,n)=>(n=e!=null?kb(Db(e)):{},Xd(t||!e||!e.__esModule?To(n,"default",{value:e,enumerable:!0}):n,e)),Nb=e=>Xd(To({},"__esModule",{value:!0}),e),Qd={};Rb(Qd,{DraggableCore:()=>or,default:()=>Mo});nf.exports=Nb(Qd);var ko=mi(je()),st=mi(nr()),Eb=mi(ys()),Ab=Yd();function Dc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Gd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function ws(e){return typeof e=="number"&&!isNaN(e)}function Vt(e){return parseInt(e,10)}function ui(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var Sc=["Moz","Webkit","O","ms"];function Pb(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<Sc.length;r++)if(ef(e,Sc[r])in a)return Sc[r];return""}function ef(e,t){return t?`${t}${Fb(e)}`:e}function Fb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var _b=Pb(),Cc="";function zb(e,t){var n;Cc||(Cc=(n=Dc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return Gd(e[r])}))!=null?n:"");let a=e[Cc];return Gd(a)?!!a.call(e,t):!1}function Kd(e,t,n){let a=e;do{if(zb(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function vc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function sr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function Lb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Vt(n.borderTopWidth),t+=Vt(n.borderBottomWidth),t}function Vb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Vt(n.borderLeftWidth),t+=Vt(n.borderRightWidth),t}function Wb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Vt(n.paddingTop),t-=Vt(n.paddingBottom),t}function Bb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Vt(n.paddingLeft),t-=Vt(n.paddingRight),t}function Hb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function $b(e,t){let n=tf(e,t,"px");return{[ef("transform",_b)]:n}}function qb(e,t){return tf(e,t,"")}function tf({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function Ub(e,t){return e.targetTouches&&Dc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&Dc(e.changedTouches,n=>t===n.identifier)}function Yb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Gb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function Kb(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??Gb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1
+ "use strict";(()=>{var z1=Object.create;var nc=Object.defineProperty;var L1=Object.getOwnPropertyDescriptor;var V1=Object.getOwnPropertyNames;var W1=Object.getPrototypeOf,B1=Object.prototype.hasOwnProperty;var zm=e=>{throw TypeError(e)};var H1=(e,t,n)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $1=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var q1=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of V1(t))!B1.call(e,r)&&r!==n&&nc(e,r,{get:()=>t[r],enumerable:!(a=L1(t,r))||a.enumerable});return e};var k=(e,t,n)=>(n=e!=null?z1(W1(e)):{},q1(t||!e||!e.__esModule?nc(n,"default",{value:e,enumerable:!0}):n,e));var Lm=(e,t,n)=>H1(e,typeof t!="symbol"?t+"":t,n),ac=(e,t,n)=>t.has(e)||zm("Cannot "+n);var T=(e,t,n)=>(ac(e,t,"read from private field"),n?n.call(e):t.get(e)),Ee=(e,t,n)=>t.has(e)?zm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n,a)=>(ac(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),J=(e,t,n)=>(ac(e,t,"access private method"),n);var je=O((rD,Vm)=>{u();var ja=window.__kwirth__.React,Qr=ja!=null&&"default"in Object(ja)?ja.default:ja;typeof Qr!="function"&&Qr!=null&&typeof Qr.default<"u"&&(Qr=Qr.default);Vm.exports=Object.assign({},typeof ja=="object"&&ja!==null?ja:{},{default:Qr,__esModule:!0})});var S,u=$1(()=>{"use strict";S=k(je(),1)});var Ct=O((cD,Hm)=>{u();var Za=window.__kwirth__.kwirthCommonFront,ei=Za!=null&&"default"in Object(Za)?Za.default:Za;typeof ei!="function"&&ei!=null&&typeof ei.default<"u"&&(ei=ei.default);Hm.exports=Object.assign({},typeof Za=="object"&&Za!==null?Za:{},{default:ei,__esModule:!0})});var Kt=O((fD,$m)=>{u();var Xa=window.__kwirth__.MUI.icons,ti=Xa!=null&&"default"in Object(Xa)?Xa.default:Xa;typeof ti!="function"&&ti!=null&&typeof ti.default<"u"&&(ti=ti.default);$m.exports=Object.assign({},typeof Xa=="object"&&Xa!==null?Xa:{},{default:ti,__esModule:!0})});var Um=O(bo=>{"use strict";u();var G1=je(),K1=Symbol.for("react.element"),J1=Symbol.for("react.fragment"),j1=Object.prototype.hasOwnProperty,Z1=G1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X1={key:!0,ref:!0,__self:!0,__source:!0};function qm(e,t,n){var a,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)j1.call(t,a)&&!X1.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:K1,type:e,key:i,ref:s,props:r,_owner:Z1.current}}bo.Fragment=J1;bo.jsx=qm;bo.jsxs=qm});var he=O((yD,Ym)=>{"use strict";u();Ym.exports=Um()});var ka=O((CD,jm)=>{u();var Qa=window.__kwirth__.kwirthCommon,ni=Qa!=null&&"default"in Object(Qa)?Qa.default:Qa;typeof ni!="function"&&ni!=null&&typeof ni.default<"u"&&(ni=ni.default);jm.exports=Object.assign({},typeof Qa=="object"&&Qa!==null?Qa:{},{default:ni,__esModule:!0})});var ft=O((DD,Zm)=>{u();var er=window.__kwirth__.MUI.material,ri=er!=null&&"default"in Object(er)?er.default:er;typeof ri!="function"&&ri!=null&&typeof ri.default<"u"&&(ri=ri.default);Zm.exports=Object.assign({},typeof er=="object"&&er!==null?er:{},{default:ri,__esModule:!0})});var ad=O((_D,nd)=>{u();var tr=window.__kwirth_dce__["file-manager"].instance.fileManager,ii=tr!=null&&"default"in Object(tr)?tr.default:tr;typeof ii!="function"&&ii!=null&&typeof ii.default<"u"&&(ii=ii.default);nd.exports=Object.assign({},typeof tr=="object"&&tr!==null?tr:{},{default:ii,__esModule:!0})});var Md=O((CO,Td)=>{"use strict";u();var ib="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Td.exports=ib});var Ed=O((vO,Rd)=>{"use strict";u();var sb=Md();function Dd(){}function Od(){}Od.resetWarningCache=Dd;Rd.exports=function(){function e(a,r,i,s,o,l){if(l!==sb){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Od,resetWarningCache:Dd};return n.PropTypes=n,n}});var nr=O((MO,Nd)=>{u();Nd.exports=Ed()();var kO,TO});var xs=O((OO,Ad)=>{u();var ar=window.__kwirth__.ReactDOM,ci=ar!=null&&"default"in Object(ar)?ar.default:ar;typeof ci!="function"&&ci!=null&&typeof ci.default<"u"&&(ci=ci.default);Ad.exports=Object.assign({},typeof ar=="object"&&ar!==null?ar:{},{default:ci,__esModule:!0})});var Kd=O((BO,Sc)=>{u();function Gd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Gd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Yd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Gd(e))&&(a&&(a+=" "),a+=t);return a}Sc.exports=Yd,Sc.exports.clsx=Yd});var sf=O(($O,rf)=>{"use strict";u();var Ob=Object.create,To=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Eb=Object.getOwnPropertyNames,Nb=Object.getPrototypeOf,Ab=Object.prototype.hasOwnProperty,Pb=(e,t)=>{for(var n in t)To(e,n,{get:t[n],enumerable:!0})},ef=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Eb(t))!Ab.call(e,r)&&r!==n&&To(e,r,{get:()=>t[r],enumerable:!(a=Rb(t,r))||a.enumerable});return e},fi=(e,t,n)=>(n=e!=null?Ob(Nb(e)):{},ef(t||!e||!e.__esModule?To(n,"default",{value:e,enumerable:!0}):n,e)),Fb=e=>ef(To({},"__esModule",{value:!0}),e),tf={};Pb(tf,{DraggableCore:()=>or,default:()=>Mo});rf.exports=Fb(tf);var ko=fi(je()),st=fi(nr()),_b=fi(xs()),zb=Kd();function Rc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Jd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function Cs(e){return typeof e=="number"&&!isNaN(e)}function Vt(e){return parseInt(e,10)}function di(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var vc=["Moz","Webkit","O","ms"];function Lb(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<vc.length;r++)if(nf(e,vc[r])in a)return vc[r];return""}function nf(e,t){return t?`${t}${Vb(e)}`:e}function Vb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var Wb=Lb(),Ic="";function Bb(e,t){var n;Ic||(Ic=(n=Rc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return Jd(e[r])}))!=null?n:"");let a=e[Ic];return Jd(a)?!!a.call(e,t):!1}function jd(e,t,n){let a=e;do{if(Bb(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function kc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function sr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function Hb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Vt(n.borderTopWidth),t+=Vt(n.borderBottomWidth),t}function $b(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Vt(n.borderLeftWidth),t+=Vt(n.borderRightWidth),t}function qb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Vt(n.paddingTop),t-=Vt(n.paddingBottom),t}function Ub(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Vt(n.paddingLeft),t-=Vt(n.paddingRight),t}function Yb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function Gb(e,t){let n=af(e,t,"px");return{[nf("transform",Wb)]:n}}function Kb(e,t){return af(e,t,"")}function af({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function Jb(e,t){return e.targetTouches&&Rc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&Rc(e.changedTouches,n=>t===n.identifier)}function jb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Zb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function Xb(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??Zb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
2
2
  `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
3
- `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&Jb(e.body,"react-draggable-transparent-selection")}function Jd(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{jd(e)}):jd(e)}function jd(e){if(e)try{e.body&&jb(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function Jb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function jb(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function Zb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:ew(a);let r=Oc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Vt(d.paddingLeft)+Vt(c.marginLeft),top:-r.offsetTop+Vt(d.paddingTop)+Vt(c.marginTop),right:Bb(l)-Vb(r)-r.offsetLeft+Vt(d.paddingRight)-Vt(c.marginRight),bottom:Wb(l)-Lb(r)-r.offsetTop+Vt(d.paddingBottom)-Vt(c.marginBottom)}}return ws(a.right)&&(t=Math.min(t,a.right)),ws(a.bottom)&&(n=Math.min(n,a.bottom)),ws(a.left)&&(t=Math.max(t,a.left)),ws(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Zd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function Xb(e){return e.props.axis==="both"||e.props.axis==="x"}function Qb(e){return e.props.axis==="both"||e.props.axis==="y"}function Ic(e,t,n){let a=typeof t=="number"?Ub(e,t):null;if(typeof t=="number"&&!a)return null;let r=Oc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return Hb(a||e,i,n.props.scale)}function kc(e,t,n){let a=!ws(e.lastX),r=Oc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Tc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function ew(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Oc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Mc=mi(je()),Lt=mi(nr()),tw=mi(ys()),nw=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Qn=nw,$n={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ma=$n.mouse,or=class extends Mc.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Kd(e.target,this.props.handle,t)||this.props.cancel&&Kd(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=Yb(e);this.touchIdentifier=a;let r=Ic(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=kc(this,i,s);Qn("DraggableCore: handleDragStart: %j",o),Qn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&Kb(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,vc(n,Ma.move,this.handleDrag),vc(n,Ma.stop,this.handleDragStop))},this.handleDrag=e=>{let t=Ic(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Zd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=kc(this,n,a);if(Qn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=Ic(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Zd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=kc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Jd(s.ownerDocument),Qn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Qn("DraggableCore: Removing handlers"),sr(s.ownerDocument,Ma.move,this.handleDrag),sr(s.ownerDocument,Ma.stop,this.handleDragStop))},this.onMouseDown=e=>(Ma=$n.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ma=$n.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ma=$n.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ma=$n.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&vc(e,$n.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;sr(t,$n.mouse.move,this.handleDrag),sr(t,$n.touch.move,this.handleDrag),sr(t,$n.mouse.stop,this.handleDragStop),sr(t,$n.touch.stop,this.handleDragStop),sr(e,$n.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Jd(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=tw.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Qn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return Mc.cloneElement(Mc.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};or.displayName="DraggableCore";or.propTypes={allowAnyClick:Lt.default.bool,allowMobileScroll:Lt.default.bool,children:Lt.default.node.isRequired,disabled:Lt.default.bool,enableUserSelectHack:Lt.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Lt.default.arrayOf(Lt.default.number),handle:Lt.default.string,cancel:Lt.default.string,nodeRef:Lt.default.object,nonce:Lt.default.string,onStart:Lt.default.func,onDrag:Lt.default.func,onStop:Lt.default.func,onMouseDown:Lt.default.func,scale:Lt.default.number,className:ui,style:ui,transform:ui};or.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var Mo=class extends ko.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Qn("Draggable: onDragStart: %j",n),this.props.onStart(t,Tc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Qn("Draggable: onDrag: %j",n);let a=Tc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=Zb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,Tc(this,n))===!1)return!1;Qn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Qn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Eb.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,I=!!!o||this.state.dragging,S=o||a,L={x:Xb(this)&&I?this.state.x:S.x,y:Qb(this)&&I?this.state.y:S.y};this.state.isElementSVG?f=qb(L,l):m=$b(L,l);let U=ko.Children.only(n),se=(0,Ab.clsx)(U.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return ko.createElement(or,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},ko.cloneElement(U,{className:se,style:{...U.props.style,...m},transform:f}))}};Mo.displayName="Draggable";Mo.propTypes={...or.propTypes,axis:st.default.oneOf(["both","x","y","none"]),bounds:st.default.oneOfType([st.default.shape({left:st.default.number,right:st.default.number,top:st.default.number,bottom:st.default.number}),st.default.string,st.default.oneOf([!1])]),defaultClassName:st.default.string,defaultClassNameDragging:st.default.string,defaultClassNameDragged:st.default.string,defaultPosition:st.default.shape({x:st.default.number,y:st.default.number}),positionOffset:st.default.shape({x:st.default.oneOfType([st.default.number,st.default.string]),y:st.default.oneOfType([st.default.number,st.default.string])}),position:st.default.shape({x:st.default.number,y:st.default.number}),className:ui,style:ui,transform:ui};Mo.defaultProps={...or.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}});var Nc=O(($O,Do)=>{"use strict";u();var Rc=af(),aw=Rc.DraggableCore,rf=Rc.default||Rc;Do.exports=rf;Do.exports.default=rf;Do.exports.DraggableCore=aw});var lf=O(Ec=>{"use strict";u();Ec.__esModule=!0;Ec.cloneElement=cw;var rw=iw(je());function iw(e){return e&&e.__esModule?e:{default:e}}function sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sf(Object(n),!0).forEach(function(a){sw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function sw(e,t,n){return(t=ow(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ow(e){var t=lw(e,"string");return typeof t=="symbol"?t:t+""}function lw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cw(e,t){return t.style&&e.props.style&&(t.style=of(of({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),rw.default.cloneElement(e,t)}});var Ac=O(Oo=>{"use strict";u();Oo.__esModule=!0;Oo.resizableProps=void 0;var Te=uw(nr()),GO=Nc();function uw(e){return e&&e.__esModule?e:{default:e}}var KO=Oo.resizableProps={axis:Te.default.oneOf(["both","x","y","none"]),className:Te.default.string,children:Te.default.element.isRequired,draggableOpts:Te.default.shape({allowAnyClick:Te.default.bool,cancel:Te.default.string,children:Te.default.node,disabled:Te.default.bool,enableUserSelectHack:Te.default.bool,offsetParent:typeof Element<"u"?Te.default.instanceOf(Element):Te.default.any,grid:Te.default.arrayOf(Te.default.number),handle:Te.default.string,nodeRef:Te.default.object,onStart:Te.default.func,onDrag:Te.default.func,onStop:Te.default.func,onMouseDown:Te.default.func,scale:Te.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="y"?Te.default.number.isRequired(...t):Te.default.number(...t)},handle:Te.default.oneOfType([Te.default.node,Te.default.func]),handleSize:Te.default.arrayOf(Te.default.number),lockAspectRatio:Te.default.bool,maxConstraints:Te.default.arrayOf(Te.default.number),minConstraints:Te.default.arrayOf(Te.default.number),onResizeStop:Te.default.func,onResizeStart:Te.default.func,onResize:Te.default.func,resizeHandles:Te.default.arrayOf(Te.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Te.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="x"?Te.default.number.isRequired(...t):Te.default.number(...t)}}});var _c=O(Ro=>{"use strict";u();Ro.__esModule=!0;Ro.default=void 0;var di=uf(je()),mw=Nc(),dw=lf(),fw=Ac(),pw=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function uf(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(uf=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fc.apply(null,arguments)}function hw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Pc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cf(Object(n),!0).forEach(function(a){gw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function gw(e,t,n){return(t=yw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yw(e){var t=xw(e,"string");return typeof t=="symbol"?t:t+""}function xw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ss=class extends di.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(t,n){let a=this.props,r=a.minConstraints,i=a.maxConstraints,s=a.lockAspectRatio;if(!r&&!i&&!s)return[t,n];if(s){let f=this.props.width/this.props.height,g=t-this.props.width,I=n-this.props.height;Math.abs(g)>Math.abs(I*f)?n=t/f:t=n*f}let o=t,l=n,c=this.slack||[0,0],d=c[0],m=c[1];return t+=d,n+=m,r&&(t=Math.max(r[0],t),n=Math.max(r[1],n)),i&&(t=Math.min(i[0],t),n=Math.min(i[1],n)),this.slack=[d+(o-t),m+(l-n)],[t,n]}resizeHandler(t,n){return(a,r)=>{var i,s,o,l;let c=r.node,d=r.deltaX,m=r.deltaY;t==="onResizeStart"&&this.resetData();let f=(this.props.axis==="both"||this.props.axis==="x")&&n!=="n"&&n!=="s",g=(this.props.axis==="both"||this.props.axis==="y")&&n!=="e"&&n!=="w";if(!f&&!g)return;let I=n[0],S=n[n.length-1],L=c.getBoundingClientRect();if(this.lastHandleRect!=null){if(S==="w"){let W=L.left-this.lastHandleRect.left;d+=W}if(I==="n"){let W=L.top-this.lastHandleRect.top;m+=W}}this.lastHandleRect=L,S==="w"&&(d=-d),I==="n"&&(m=-m);let U=(i=(s=this.lastSize)==null?void 0:s.width)!=null?i:this.props.width,se=(o=(l=this.lastSize)==null?void 0:l.height)!=null?o:this.props.height,le=U+(f?d/this.props.transformScale:0),$=se+(g?m/this.props.transformScale:0);var me=this.runConstraints(le,$);if(le=me[0],$=me[1],t==="onResizeStop"&&this.lastSize){var N=this.lastSize;le=N.width,$=N.height}let oe=le!==U||$!==se;t!=="onResizeStop"&&(this.lastSize={width:le,height:$});let Ce=typeof this.props[t]=="function"?this.props[t]:null;Ce&&!(t==="onResize"&&!oe)&&(a.persist==null||a.persist(),Ce(a,{node:c,size:{width:le,height:$},handle:n})),t==="onResizeStop"&&this.resetData()}}renderResizeHandle(t,n){let a=this.props.handle;if(!a)return di.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if(typeof a=="function")return a(t,n);let r=typeof a.type=="string",i=Pc({ref:n},r?{}:{handleAxis:t});return di.cloneElement(a,i)}render(){let t=this.props,n=t.children,a=t.className,r=t.draggableOpts,i=t.width,s=t.height,o=t.handle,l=t.handleSize,c=t.lockAspectRatio,d=t.axis,m=t.minConstraints,f=t.maxConstraints,g=t.onResize,I=t.onResizeStop,S=t.onResizeStart,L=t.resizeHandles,U=t.transformScale,se=hw(t,pw);return(0,dw.cloneElement)(n,Pc(Pc({},se),{},{className:(a?a+" ":"")+"react-resizable",children:[...di.Children.toArray(n.props.children),...L.map(le=>{var $;let me=($=this.handleRefs[le])!=null?$:this.handleRefs[le]=di.createRef();return di.createElement(mw.DraggableCore,Fc({},r,{nodeRef:me,key:"resizableHandle-"+le,onStop:this.resizeHandler("onResizeStop",le),onStart:this.resizeHandler("onResizeStart",le),onDrag:this.resizeHandler("onResize",le)}),this.renderResizeHandle(le,me))})]}))}};Ro.default=Ss;Ss.propTypes=fw.resizableProps;Ss.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}});var pf=O(Ao=>{"use strict";u();Ao.__esModule=!0;Ao.default=void 0;var zc=ff(je()),bw=df(nr()),ww=df(_c()),Sw=Ac(),Cw=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function df(e){return e&&e.__esModule?e:{default:e}}function ff(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(ff=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Lc.apply(null,arguments)}function mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mf(Object(n),!0).forEach(function(a){vw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mf(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function vw(e,t,n){return(t=Iw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iw(e){var t=kw(e,"string");return typeof t=="symbol"?t:t+""}function kw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var Eo=class extends zc.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(t,n)=>{let a=n.size;this.props.onResize?(t.persist==null||t.persist(),this.setState(a,()=>this.props.onResize&&this.props.onResize(t,n))):this.setState(a)}}static getDerivedStateFromProps(t,n){return n.propsWidth!==t.width||n.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null}render(){let t=this.props,n=t.handle,a=t.handleSize,r=t.onResize,i=t.onResizeStart,s=t.onResizeStop,o=t.draggableOpts,l=t.minConstraints,c=t.maxConstraints,d=t.lockAspectRatio,m=t.axis,f=t.width,g=t.height,I=t.resizeHandles,S=t.style,L=t.transformScale,U=Tw(t,Cw);return zc.createElement(ww.default,{axis:m,draggableOpts:o,handle:n,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:l,onResizeStart:i,onResize:this.onResize,onResizeStop:s,resizeHandles:I,transformScale:L,width:this.state.width},zc.createElement("div",Lc({},U,{style:No(No({},S),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};Ao.default=Eo;Eo.propTypes=No(No({},Sw.resizableProps),{},{children:bw.default.element})});var hf=O((tR,Po)=>{"use strict";u();Po.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};Po.exports.Resizable=_c().default;Po.exports.ResizableBox=pf().default});var bf=O(xf=>{"use strict";u();Object.defineProperty(xf,"__esModule",{value:!0})});var Da=O(_o=>{"use strict";u();Object.defineProperty(_o,"__esModule",{value:!0});_o.CronField=void 0;var Cs,vs,fi,aa,Fo,wf,Wc=class Wc{constructor(t,n={rawValue:""}){Ne(this,Fo);Ne(this,Cs,!1);Ne(this,vs,!1);Ne(this,fi,!1);Ne(this,aa,[]);_m(this,"options",{rawValue:""});if(!Array.isArray(t))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(t.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...n,rawValue:n.rawValue??""},ae(this,aa,[...t].sort(Wc.sorter)),ae(this,fi,this.options.wildcard!==void 0?this.options.wildcard:J(this,Fo,wf).call(this)),ae(this,Cs,this.options.rawValue.includes("L")||t.includes("L")),ae(this,vs,this.options.rawValue.includes("?")||t.includes("?"))}static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return T(this,Cs)}get hasQuestionMarkChar(){return T(this,vs)}get isWildcard(){return T(this,fi)}get values(){return T(this,aa)}static sorter(t,n){let a=typeof t=="number",r=typeof n=="number";return a&&r?t-n:!a&&!r?t.localeCompare(n):a?-1:1}static findNearestValueInList(t,n,a){if(a){for(let r=t.length-1;r>=0;r--)if(t[r]<n)return t[r];return null}for(let r=0;r<t.length;r++)if(t[r]>n)return t[r];return null}findNearestValue(t,n){return this.constructor.findNearestValueInList(this.values,t,n)}serialize(){return{wildcard:T(this,fi),values:T(this,aa)}}validate(){let t,n=this.chars.length>0?` or chars ${this.chars.join("")}`:"",a=o=>l=>new RegExp(`^\\d{0,2}${l}$`).test(o),r=o=>(t=o,typeof o=="number"?o>=this.min&&o<=this.max:this.chars.some(a(o)));if(!T(this,aa).every(r))throw new Error(`${this.constructor.name} Validation error, got value ${t} expected range ${this.min}-${this.max}${n}`);let s=T(this,aa).find((o,l)=>T(this,aa).indexOf(o)!==l);if(s!==void 0)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}};Cs=new WeakMap,vs=new WeakMap,fi=new WeakMap,aa=new WeakMap,Fo=new WeakSet,wf=function(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(t,n)=>n+this.min).every(t=>T(this,aa).includes(t))};var Vc=Wc;_o.CronField=Vc});var jp=O(pn=>{"use strict";u();Object.defineProperty(pn,"__esModule",{value:!0});var ga=class extends Error{},jc=class extends ga{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Zc=class extends ga{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Xc=class extends ga{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Na=class extends ga{},qo=class extends ga{constructor(t){super(`Invalid unit ${t}`)}},Ot=class extends ga{},ra=class extends ga{constructor(){super("Zone is an abstract class")}},Z="numeric",Yn="short",dn="long",Uo={year:Z,month:Z,day:Z},Zf={year:Z,month:Yn,day:Z},Rw={year:Z,month:Yn,day:Z,weekday:Yn},Xf={year:Z,month:dn,day:Z},Qf={year:Z,month:dn,day:Z,weekday:dn},ep={hour:Z,minute:Z},tp={hour:Z,minute:Z,second:Z},np={hour:Z,minute:Z,second:Z,timeZoneName:Yn},ap={hour:Z,minute:Z,second:Z,timeZoneName:dn},rp={hour:Z,minute:Z,hourCycle:"h23"},ip={hour:Z,minute:Z,second:Z,hourCycle:"h23"},sp={hour:Z,minute:Z,second:Z,hourCycle:"h23",timeZoneName:Yn},op={hour:Z,minute:Z,second:Z,hourCycle:"h23",timeZoneName:dn},lp={year:Z,month:Z,day:Z,hour:Z,minute:Z},cp={year:Z,month:Z,day:Z,hour:Z,minute:Z,second:Z},up={year:Z,month:Yn,day:Z,hour:Z,minute:Z},mp={year:Z,month:Yn,day:Z,hour:Z,minute:Z,second:Z},Nw={year:Z,month:Yn,day:Z,weekday:Yn,hour:Z,minute:Z},dp={year:Z,month:dn,day:Z,hour:Z,minute:Z,timeZoneName:Yn},fp={year:Z,month:dn,day:Z,hour:Z,minute:Z,second:Z,timeZoneName:Yn},pp={year:Z,month:dn,day:Z,weekday:dn,hour:Z,minute:Z,timeZoneName:dn},hp={year:Z,month:dn,day:Z,weekday:dn,hour:Z,minute:Z,second:Z,timeZoneName:dn},Aa=class{get type(){throw new ra}get name(){throw new ra}get ianaName(){return this.name}get isUniversal(){throw new ra}offsetName(t,n){throw new ra}formatOffset(t,n){throw new ra}offset(t){throw new ra}equals(t){throw new ra}get isValid(){throw new ra}},Bc=null,Os=class e extends Aa{static get instance(){return Bc===null&&(Bc=new e),Bc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return Tp(t,n,a)}formatOffset(t,n){return Ds(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},Qc=new Map;function Ew(e){let t=Qc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Qc.set(e,t)),t}var Aw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Pw(e,t){let n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,s,o,l,c,d]=a;return[s,r,i,o,l,c,d]}function Fw(e,t){let n=e.formatToParts(t),a=[];for(let r=0;r<n.length;r++){let{type:i,value:s}=n[r],o=Aw[i];i==="era"?a[o]=s:ge(o)||(a[o]=parseInt(s,10))}return a}var Hc=new Map,ya=class e extends Aa{static create(t){let n=Hc.get(t);return n===void 0&&Hc.set(t,n=new e(t)),n}static resetCache(){Hc.clear(),Qc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return Tp(t,n,a,this.name)}formatOffset(t,n){return Ds(this.offset(t),n)}offset(t){if(!this.valid)return NaN;let n=new Date(t);if(isNaN(n))return NaN;let a=Ew(this.name),[r,i,s,o,l,c,d]=a.formatToParts?Fw(a,n):Pw(a,n);o==="BC"&&(r=-Math.abs(r)+1);let f=Xo({year:r,month:i,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0}),g=+n,I=g%1e3;return g-=I>=0?I:1e3+I,(f-g)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},Sf={};function _w(e,t={}){let n=JSON.stringify([e,t]),a=Sf[n];return a||(a=new Intl.ListFormat(e,t),Sf[n]=a),a}var eu=new Map;function tu(e,t={}){let n=JSON.stringify([e,t]),a=eu.get(n);return a===void 0&&(a=new Intl.DateTimeFormat(e,t),eu.set(n,a)),a}var nu=new Map;function zw(e,t={}){let n=JSON.stringify([e,t]),a=nu.get(n);return a===void 0&&(a=new Intl.NumberFormat(e,t),nu.set(n,a)),a}var au=new Map;function Lw(e,t={}){let{base:n,...a}=t,r=JSON.stringify([e,a]),i=au.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),au.set(r,i)),i}var ks=null;function Vw(){return ks||(ks=new Intl.DateTimeFormat().resolvedOptions().locale,ks)}var ru=new Map;function gp(e){let t=ru.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),ru.set(e,t)),t}var iu=new Map;function Ww(e){let t=iu.get(e);if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...yp,...t}),iu.set(e,t)}return t}function Bw(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(n===-1)return[e];{let a,r;try{a=tu(e).resolvedOptions(),r=e}catch{let l=e.substring(0,n);a=tu(l).resolvedOptions(),r=l}let{numberingSystem:i,calendar:s}=a;return[r,i,s]}}function Hw(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function $w(e){let t=[];for(let n=1;n<=12;n++){let a=ct.utc(2009,n,1);t.push(e(a))}return t}function qw(e){let t=[];for(let n=1;n<=7;n++){let a=ct.utc(2016,11,13+n);t.push(e(a))}return t}function zo(e,t,n,a){let r=e.listingMode();return r==="error"?null:r==="en"?n(t):a(t)}function Uw(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||gp(e.locale).numberingSystem==="latn"}var su=class{constructor(t,n,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:i,...s}=a;if(!n||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=zw(t,o)}}format(t){if(this.inf){let n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{let n=this.floor?Math.floor(t):yu(t,3);return St(n,this.padTo)}}},ou=class{constructor(t,n,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&ya.create(o).valid?(r=o,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=tu(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:a}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},lu=class{constructor(t,n,a){this.opts={style:"long",...a},!n&&Ip()&&(this.rtf=Lw(t,a))}format(t,n){return this.rtf?this.rtf.format(t,n):dS(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}},yp={firstDay:1,minimalDays:4,weekend:[6,7]},Ze=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,a,r,i=!1){let s=t||ot.defaultLocale,o=s||(i?"en-US":Vw()),l=n||ot.defaultNumberingSystem,c=a||ot.defaultOutputCalendar,d=uu(r)||ot.defaultWeekSettings;return new e(o,l,c,d,s)}static resetCache(){ks=null,eu.clear(),nu.clear(),au.clear(),ru.clear(),iu.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:a,weekSettings:r}={}){return e.create(t,n,a,r)}constructor(t,n,a,r,i){let[s,o,l]=Bw(t);this.locale=s,this.numberingSystem=n||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=Hw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Uw(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,uu(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return zo(this,t,Op,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");n&=!a;let r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][t]=$w(s)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return zo(this,t,Ep,()=>{let a=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=qw(i=>this.extract(i,a,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return zo(this,void 0,()=>Ap,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ct.utc(2016,11,13,9),ct.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return zo(this,t,Pp,()=>{let n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ct.utc(-40,1,1),ct.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[t]})}extract(t,n,a){let r=this.dtFormatter(t,n),i=r.formatToParts(),s=i.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(t={}){return new su(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new ou(t,this.intl,n)}relFormatter(t={}){return new lu(this.intl,this.isEnglish(),t)}listFormatter(t={}){return _w(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||gp(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:kp()?Ww(this.locale):yp}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},$c=null,fn=class e extends Aa{static get utcInstance(){return $c===null&&($c=new e(0)),$c}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Qo(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ds(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ds(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Ds(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Yo=class extends Aa{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Ra(e,t){if(ge(e)||e===null)return t;if(e instanceof Aa)return e;if(Zw(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Os.instance:n==="utc"||n==="gmt"?fn.utcInstance:fn.parseSpecifier(n)||ya.create(e)}else return Ea(e)?fn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Yo(e)}var fu={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Cf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Yw=fu.hanidec.replace(/[\[|\]]/g,"").split("");function Gw(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(e[n].search(fu.hanidec)!==-1)t+=Yw.indexOf(e[n]);else for(let r in Cf){let[i,s]=Cf[r];a>=i&&a<=s&&(t+=a-i)}}return parseInt(t,10)}else return t}var cu=new Map;function Kw(){cu.clear()}function qn({numberingSystem:e},t=""){let n=e||"latn",a=cu.get(n);a===void 0&&(a=new Map,cu.set(n,a));let r=a.get(t);return r===void 0&&(r=new RegExp(`${fu[n]}${t}`),a.set(t,r)),r}var vf=()=>Date.now(),If="system",kf=null,Tf=null,Mf=null,Df=60,Of,Rf=null,ot=class{static get now(){return vf}static set now(t){vf=t}static set defaultZone(t){If=t}static get defaultZone(){return Ra(If,Os.instance)}static get defaultLocale(){return kf}static set defaultLocale(t){kf=t}static get defaultNumberingSystem(){return Tf}static set defaultNumberingSystem(t){Tf=t}static get defaultOutputCalendar(){return Mf}static set defaultOutputCalendar(t){Mf=t}static get defaultWeekSettings(){return Rf}static set defaultWeekSettings(t){Rf=uu(t)}static get twoDigitCutoffYear(){return Df}static set twoDigitCutoffYear(t){Df=t%100}static get throwOnInvalid(){return Of}static set throwOnInvalid(t){Of=t}static resetCaches(){Ze.resetCache(),ya.resetCache(),ct.resetCache(),Kw()}},mn=class{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},xp=[0,31,59,90,120,151,181,212,243,273,304,334],bp=[0,31,60,91,121,152,182,213,244,274,305,335];function vn(e,t){return new mn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function pu(e,t,n){let a=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function wp(e,t,n){return n+(Ns(e)?bp:xp)[t-1]}function Sp(e,t){let n=Ns(e)?bp:xp,a=n.findIndex(i=>i<t),r=t-n[a];return{month:a+1,day:r}}function hu(e,t){return(e-t+7)%7+1}function Go(e,t=4,n=1){let{year:a,month:r,day:i}=e,s=wp(a,r,i),o=hu(pu(a,r,i),n),l=Math.floor((s-o+14-t)/7),c;return l<1?(c=a-1,l=Rs(c,t,n)):l>Rs(a,t,n)?(c=a+1,l=1):c=a,{weekYear:c,weekNumber:l,weekday:o,...el(e)}}function Nf(e,t=4,n=1){let{weekYear:a,weekNumber:r,weekday:i}=e,s=hu(pu(a,1,t),n),o=yi(a),l=r*7+i-s-7+t,c;l<1?(c=a-1,l+=yi(c)):l>o?(c=a+1,l-=yi(a)):c=a;let{month:d,day:m}=Sp(c,l);return{year:c,month:d,day:m,...el(e)}}function qc(e){let{year:t,month:n,day:a}=e,r=wp(t,n,a);return{year:t,ordinal:r,...el(e)}}function Ef(e){let{year:t,ordinal:n}=e,{month:a,day:r}=Sp(t,n);return{year:t,month:a,day:r,...el(e)}}function Af(e,t){if(!ge(e.localWeekday)||!ge(e.localWeekNumber)||!ge(e.localWeekYear)){if(!ge(e.weekday)||!ge(e.weekNumber)||!ge(e.weekYear))throw new Na("Cannot mix locale-based week fields with ISO-based week fields");return ge(e.localWeekday)||(e.weekday=e.localWeekday),ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Jw(e,t=4,n=1){let a=Zo(e.weekYear),r=In(e.weekNumber,1,Rs(e.weekYear,t,n)),i=In(e.weekday,1,7);return a?r?i?!1:vn("weekday",e.weekday):vn("week",e.weekNumber):vn("weekYear",e.weekYear)}function jw(e){let t=Zo(e.year),n=In(e.ordinal,1,yi(e.year));return t?n?!1:vn("ordinal",e.ordinal):vn("year",e.year)}function Cp(e){let t=Zo(e.year),n=In(e.month,1,12),a=In(e.day,1,Ko(e.year,e.month));return t?n?a?!1:vn("day",e.day):vn("month",e.month):vn("year",e.year)}function vp(e){let{hour:t,minute:n,second:a,millisecond:r}=e,i=In(t,0,23)||t===24&&n===0&&a===0&&r===0,s=In(n,0,59),o=In(a,0,59),l=In(r,0,999);return i?s?o?l?!1:vn("millisecond",r):vn("second",a):vn("minute",n):vn("hour",t)}function ge(e){return typeof e>"u"}function Ea(e){return typeof e=="number"}function Zo(e){return typeof e=="number"&&e%1===0}function Zw(e){return typeof e=="string"}function Xw(e){return Object.prototype.toString.call(e)==="[object Date]"}function Ip(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function kp(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Qw(e){return Array.isArray(e)?e:[e]}function Pf(e,t,n){if(e.length!==0)return e.reduce((a,r)=>{let i=[t(r),r];return a&&n(a[0],i[0])===a[0]?a:i},null)[1]}function eS(e,t){return t.reduce((n,a)=>(n[a]=e[a],n),{})}function bi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function uu(e){if(e==null)return null;if(typeof e!="object")throw new Ot("Week settings must be an object");if(!In(e.firstDay,1,7)||!In(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!In(t,1,7)))throw new Ot("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function In(e,t,n){return Zo(e)&&e>=t&&e<=n}function tS(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){let n=e<0,a;return n?a="-"+(""+-e).padStart(t,"0"):a=(""+e).padStart(t,"0"),a}function Oa(e){if(!(ge(e)||e===null||e===""))return parseInt(e,10)}function lr(e){if(!(ge(e)||e===null||e===""))return parseFloat(e)}function gu(e){if(!(ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function yu(e,t,n="round"){let a=10**t;switch(n){case"expand":return e>0?Math.ceil(e*a)/a:Math.floor(e*a)/a;case"trunc":return Math.trunc(e*a)/a;case"round":return Math.round(e*a)/a;case"floor":return Math.floor(e*a)/a;case"ceil":return Math.ceil(e*a)/a;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ns(e){return e%4===0&&(e%100!==0||e%400===0)}function yi(e){return Ns(e)?366:365}function Ko(e,t){let n=tS(t-1,12)+1,a=e+(t-n)/12;return n===2?Ns(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Xo(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Ff(e,t,n){return-hu(pu(e,1,t),n)+t-1}function Rs(e,t=4,n=1){let a=Ff(e,t,n),r=Ff(e+1,t,n);return(yi(e)-a+r)/7}function mu(e){return e>99?e:e>ot.twoDigitCutoffYear?1900+e:2e3+e}function Tp(e,t,n,a=null){let r=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(i.timeZone=a);let s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Qo(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let a=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-a:a;return n*60+r}function Mp(e){let t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new Ot(`Invalid unit value ${e}`);return t}function Jo(e,t){let n={};for(let a in e)if(bi(e,a)){let r=e[a];if(r==null)continue;n[t(a)]=Mp(r)}return n}function Ds(e,t){let n=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${St(n,2)}:${St(a,2)}`;case"narrow":return`${r}${n}${a>0?`:${a}`:""}`;case"techie":return`${r}${St(n,2)}${St(a,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function el(e){return eS(e,["hour","minute","second","millisecond"])}var nS=["January","February","March","April","May","June","July","August","September","October","November","December"],Dp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aS=["J","F","M","A","M","J","J","A","S","O","N","D"];function Op(e){switch(e){case"narrow":return[...aS];case"short":return[...Dp];case"long":return[...nS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Rp=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Np=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],rS=["M","T","W","T","F","S","S"];function Ep(e){switch(e){case"narrow":return[...rS];case"short":return[...Np];case"long":return[...Rp];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ap=["AM","PM"],iS=["Before Christ","Anno Domini"],sS=["BC","AD"],oS=["B","A"];function Pp(e){switch(e){case"narrow":return[...oS];case"short":return[...sS];case"long":return[...iS];default:return null}}function lS(e){return Ap[e.hour<12?0:1]}function cS(e,t){return Ep(t)[e.weekday-1]}function uS(e,t){return Op(t)[e.month-1]}function mS(e,t){return Pp(t)[e.year<0?0:1]}function dS(e,t,n="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){let m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${r[e][0]}`;case-1:return m?"yesterday":`last ${r[e][0]}`;case 0:return m?"today":`this ${r[e][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,c=r[e],d=a?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return s?`${o} ${d} ago`:`in ${o} ${d}`}function _f(e,t){let n="";for(let a of e)a.literal?n+=a.val:n+=t(a.val);return n}var fS={D:Uo,DD:Zf,DDD:Xf,DDDD:Qf,t:ep,tt:tp,ttt:np,tttt:ap,T:rp,TT:ip,TTT:sp,TTTT:op,f:lp,ff:up,fff:dp,ffff:pp,F:cp,FF:mp,FFF:fp,FFFF:hp},un=class e{static create(t,n={}){return new e(t,n)}static parseFormat(t){let n=null,a="",r=!1,i=[];for(let s=0;s<t.length;s++){let o=t.charAt(s);o==="'"?((a.length>0||r)&&i.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),n=null,a="",r=!r):r||o===n?a+=o:(a.length>0&&i.push({literal:/^\s+$/.test(a),val:a}),a=o,n=o)}return a.length>0&&i.push({literal:r||/^\s+$/.test(a),val:a}),i}static macroTokenToFormatOpts(t){return fS[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,a=void 0){if(this.opts.forceSimple)return St(t,n);let r={...this.opts};return n>0&&(r.padTo=n),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(g,I)=>this.loc.extract(t,g,I),s=g=>t.isOffsetFixed&&t.offset===0&&g.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,g.format):"",o=()=>a?lS(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(g,I)=>a?uS(t,g):i(I?{month:g}:{month:g,day:"numeric"},"month"),c=(g,I)=>a?cS(t,g):i(I?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),d=g=>{let I=e.macroTokenToFormatOpts(g);return I?this.formatWithSystemDefault(t,I):g},m=g=>a?mS(t,g):i({era:g},"era"),f=g=>{switch(g){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(g)}};return _f(e.parseFormat(n),f)}formatDurationFromString(t,n){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>f=>{let g=r(f);if(g){let I=m.isNegativeDuration&&g!==m.largestUnit?a:1,S;return this.opts.signMode==="negativeLargestOnly"&&g!==m.largestUnit?S="never":this.opts.signMode==="all"?S="always":S="auto",this.num(d.get(g)*I,f.length,S)}else return f},s=e.parseFormat(n),o=s.reduce((d,{literal:m,val:f})=>m?d:d.concat(f),[]),l=t.shiftTo(...o.map(r).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return _f(s,i(l,c))}},Fp=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wi(...e){let t=e.reduce((n,a)=>n+a.source,"");return RegExp(`^${t}$`)}function Si(...e){return t=>e.reduce(([n,a,r],i)=>{let[s,o,l]=i(t,r);return[{...n,...s},o||a,l]},[{},null,1]).slice(0,2)}function Ci(e,...t){if(e==null)return[null,null];for(let[n,a]of t){let r=n.exec(e);if(r)return a(r)}return[null,null]}function _p(...e){return(t,n)=>{let a={},r;for(r=0;r<e.length;r++)a[e[r]]=Oa(t[n+r]);return[a,null,n+r]}}var zp=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,pS=`(?:${zp.source}?(?:\\[(${Fp.source})\\])?)?`,xu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Lp=RegExp(`${xu.source}${pS}`),bu=RegExp(`(?:[Tt]${Lp.source})?`),hS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yS=/(\d{4})-?(\d{3})/,xS=_p("weekYear","weekNumber","weekDay"),bS=_p("year","ordinal"),wS=/(\d{4})-(\d\d)-(\d\d)/,Vp=RegExp(`${xu.source} ?(?:${zp.source}|(${Fp.source}))?`),SS=RegExp(`(?: ${Vp.source})?`);function xi(e,t,n){let a=e[t];return ge(a)?n:Oa(a)}function CS(e,t){return[{year:xi(e,t),month:xi(e,t+1,1),day:xi(e,t+2,1)},null,t+3]}function vi(e,t){return[{hours:xi(e,t,0),minutes:xi(e,t+1,0),seconds:xi(e,t+2,0),milliseconds:gu(e[t+3])},null,t+4]}function Es(e,t){let n=!e[t]&&!e[t+1],a=Qo(e[t+1],e[t+2]),r=n?null:fn.instance(a);return[{},r,t+3]}function As(e,t){let n=e[t]?ya.create(e[t]):null;return[{},n,t+1]}var vS=RegExp(`^T?${xu.source}$`),IS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function kS(e){let[t,n,a,r,i,s,o,l,c]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(g,I=!1)=>g!==void 0&&(I||g&&d)?-g:g;return[{years:f(lr(n)),months:f(lr(a)),weeks:f(lr(r)),days:f(lr(i)),hours:f(lr(s)),minutes:f(lr(o)),seconds:f(lr(l),l==="-0"),milliseconds:f(gu(c),m)}]}var TS={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wu(e,t,n,a,r,i,s){let o={year:t.length===2?mu(Oa(t)):Oa(t),month:Dp.indexOf(n)+1,day:Oa(a),hour:Oa(r),minute:Oa(i)};return s&&(o.second=Oa(s)),e&&(o.weekday=e.length>3?Rp.indexOf(e)+1:Np.indexOf(e)+1),o}var MS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function DS(e){let[,t,n,a,r,i,s,o,l,c,d,m]=e,f=wu(t,r,a,n,i,s,o),g;return l?g=TS[l]:c?g=0:g=Qo(d,m),[f,new fn(g)]}function OS(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var RS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,NS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ES=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function zf(e){let[,t,n,a,r,i,s,o]=e;return[wu(t,r,a,n,i,s,o),fn.utcInstance]}function AS(e){let[,t,n,a,r,i,s,o]=e;return[wu(t,o,n,a,r,i,s),fn.utcInstance]}var PS=wi(hS,bu),FS=wi(gS,bu),_S=wi(yS,bu),zS=wi(Lp),Wp=Si(CS,vi,Es,As),LS=Si(xS,vi,Es,As),VS=Si(bS,vi,Es,As),WS=Si(vi,Es,As);function BS(e){return Ci(e,[PS,Wp],[FS,LS],[_S,VS],[zS,WS])}function HS(e){return Ci(OS(e),[MS,DS])}function $S(e){return Ci(e,[RS,zf],[NS,zf],[ES,AS])}function qS(e){return Ci(e,[IS,kS])}var US=Si(vi);function YS(e){return Ci(e,[vS,US])}var GS=wi(wS,SS),KS=wi(Vp),JS=Si(vi,Es,As);function jS(e){return Ci(e,[GS,Wp],[KS,JS])}var Lf="Invalid Duration",Bp={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},ZS={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Bp},Cn=146097/400,pi=146097/4800,XS={years:{quarters:4,months:12,weeks:Cn/7,days:Cn,hours:Cn*24,minutes:Cn*24*60,seconds:Cn*24*60*60,milliseconds:Cn*24*60*60*1e3},quarters:{months:3,weeks:Cn/28,days:Cn/4,hours:Cn*24/4,minutes:Cn*24*60/4,seconds:Cn*24*60*60/4,milliseconds:Cn*24*60*60*1e3/4},months:{weeks:pi/7,days:pi,hours:pi*24,minutes:pi*24*60,seconds:pi*24*60*60,milliseconds:pi*24*60*60*1e3},...Bp},ur=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],QS=ur.slice(0).reverse();function ha(e,t,n=!1){let a={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Mt(a)}function Hp(e,t){var n;let a=(n=t.milliseconds)!=null?n:0;for(let r of QS.slice(1))t[r]&&(a+=t[r]*e[r].milliseconds);return a}function Vf(e,t){let n=Hp(e,t)<0?-1:1;ur.reduceRight((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]*n,s=e[r][a],o=Math.floor(i/s);t[r]+=o*n,t[a]-=o*s*n}return r},null),ur.reduce((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]%1;t[a]-=i,t[r]+=i*e[a][r]}return r},null)}function Wf(e){let t={};for(let[n,a]of Object.entries(e))a!==0&&(t[n]=a);return t}var Mt=class e{constructor(t){let n=t.conversionAccuracy==="longterm"||!1,a=n?XS:ZS;t.matrix&&(a=t.matrix),this.values=t.values,this.loc=t.loc||Ze.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Ot(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Jo(t,e.normalizeUnit),loc:Ze.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Ea(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new Ot(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[a]=qS(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[a]=YS(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Ot("need to specify a reason the Duration is invalid");let a=t instanceof mn?t:new mn(t,n);if(ot.throwOnInvalid)throw new Xc(a);return new e({invalid:a})}static normalizeUnit(t){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new qo(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){let a={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?un.create(this.loc,a).formatDurationFromString(this,t):Lf}toHuman(t={}){if(!this.isValid)return Lf;let n=t.showZeros!==!1,a=ur.map(r=>{let i=this.values[r];return ge(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=yu(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ct.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Hp(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),a={};for(let r of ur)(bi(n.values,r)||bi(this.values,r))&&(a[r]=n.get(r)+this.get(r));return ha(this,{values:a},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;let n={};for(let a of Object.keys(this.values))n[a]=Mp(t(this.values[a],a));return ha(this,{values:n},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Jo(t,e.normalizeUnit)};return ha(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:a};return ha(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return Vf(this.matrix,t),ha(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=Wf(this.normalize().shiftToAll().toObject());return ha(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let n={},a={},r=this.toObject(),i;for(let s of ur)if(t.indexOf(s)>=0){i=s;let o=0;for(let c in a)o+=this.matrix[c][s]*a[c],a[c]=0;Ea(r[s])&&(o+=r[s]);let l=Math.trunc(o);n[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Ea(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(n[i]+=s===i?a[s]:a[s]/this.matrix[i][s]);return Vf(this.matrix,n),ha(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return ha(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;let t=Wf(this.values);return ha(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of ur)if(!n(this.values[a],t.values[a]))return!1;return!0}},hi="Invalid Interval";function eC(e,t){return!e||!e.isValid?dr.invalid("missing or invalid start"):!t||!t.isValid?dr.invalid("missing or invalid end"):t<e?dr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var dr=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Ot("need to specify a reason the Interval is invalid");let a=t instanceof mn?t:new mn(t,n);if(ot.throwOnInvalid)throw new Zc(a);return new e({invalid:a})}static fromDateTimes(t,n){let a=Is(t),r=Is(n),i=eC(a,r);return i??new e({start:a,end:r})}static after(t,n){let a=Mt.fromDurationLike(n),r=Is(t);return e.fromDateTimes(r,r.plus(a))}static before(t,n){let a=Mt.fromDurationLike(n),r=Is(t);return e.fromDateTimes(r.minus(a),r)}static fromISO(t,n){let[a,r]=(t||"").split("/",2);if(a&&r){let i,s;try{i=ct.fromISO(a,n),s=i.isValid}catch{s=!1}let o,l;try{o=ct.fromISO(r,n),l=o.isValid}catch{l=!1}if(s&&l)return e.fromDateTimes(i,o);if(s){let c=Mt.fromISO(r,n);if(c.isValid)return e.after(i,c)}else if(l){let c=Mt.fromISO(a,n);if(c.isValid)return e.before(o,c)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;let a=this.start.startOf(t,n),r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(t,n),Math.floor(r.diff(a,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(Is).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,i=0;for(;r<this.e;){let s=n[i]||this.e,o=+s>+this.e?this.e:s;a.push(e.fromDateTimes(r,o)),r=o,i+=1}return a}splitBy(t){let n=Mt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:a}=this,r=1,i,s=[];for(;a<this.e;){let o=this.start.plus(n.mapUnits(l=>l*r));i=+o>+this.e?this.e:o,s.push(e.fromDateTimes(a,i)),a=i,r+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,a=this.e<t.e?this.e:t.e;return n>=a?null:e.fromDateTimes(n,a)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,a=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,a)}static merge(t){let[n,a]=t.sort((r,i)=>r.s-i.s).reduce(([r,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[r,i.union(s)]:[r.concat([i]),s]:[r,s],[[],null]);return a&&n.push(a),n}static xor(t){let n=null,a=0,r=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),o=s.sort((l,c)=>l.time-c.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?n=l.time:(n&&+n!=+l.time&&r.push(e.fromDateTimes(n,l.time)),n=null);return e.merge(r)}difference(...t){return e.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:hi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Uo,n={}){return this.isValid?un.create(this.s.loc.clone(n),t).formatInterval(this):hi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:hi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:hi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:hi}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:hi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Mt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},mr=class{static hasDST(t=ot.defaultZone){let n=ct.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ya.isValidZone(t)}static normalizeZone(t){return Ra(t,ot.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ze.create(n,a,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ze.create(n,a,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Ze.create(n,a,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Ze.create(n,a,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ze.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Ze.create(n,null,"gregory").eras(t)}static features(){return{relative:Ip(),localeWeek:kp()}}};function Bf(e,t){let n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(t)-n(e);return Math.floor(Mt.fromMillis(a).as("days"))}function tC(e,t,n){let a=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Bf(l,c);return(d-d%7)/7}],["days",Bf]],r={},i=e,s,o;for(let[l,c]of a)n.indexOf(l)>=0&&(s=l,r[l]=c(e,t),o=i.plus(r),o>t?(r[l]--,e=i.plus(r),e>t&&(o=e,r[l]--,e=i.plus(r))):e=o);return[e,r,o,s]}function nC(e,t,n,a){let[r,i,s,o]=tC(e,t,n),l=t-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(i[o]=(i[o]||0)+l/(s-r)));let d=Mt.fromObject(i,a);return c.length>0?Mt.fromMillis(l,a).shiftTo(...c).plus(d):d}var aC="missing Intl.DateTimeFormat.formatToParts support";function We(e,t=n=>n){return{regex:e,deser:([n])=>t(Gw(n))}}var rC="\xA0",$p=`[ ${rC}]`,qp=new RegExp($p,"g");function iC(e){return e.replace(/\./g,"\\.?").replace(qp,$p)}function Hf(e){return e.replace(/\./g,"").replace(qp," ").toLowerCase()}function Un(e,t){return e===null?null:{regex:RegExp(e.map(iC).join("|")),deser:([n])=>e.findIndex(a=>Hf(n)===Hf(a))+t}}function $f(e,t){return{regex:e,deser:([,n,a])=>Qo(n,a),groups:t}}function Lo(e){return{regex:e,deser:([t])=>t}}function sC(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function oC(e,t){let n=qn(t),a=qn(t,"{2}"),r=qn(t,"{3}"),i=qn(t,"{4}"),s=qn(t,"{6}"),o=qn(t,"{1,2}"),l=qn(t,"{1,3}"),c=qn(t,"{1,6}"),d=qn(t,"{1,9}"),m=qn(t,"{2,4}"),f=qn(t,"{4,6}"),g=L=>({regex:RegExp(sC(L.val)),deser:([U])=>U,literal:!0}),S=(L=>{if(e.literal)return g(L);switch(L.val){case"G":return Un(t.eras("short"),0);case"GG":return Un(t.eras("long"),0);case"y":return We(c);case"yy":return We(m,mu);case"yyyy":return We(i);case"yyyyy":return We(f);case"yyyyyy":return We(s);case"M":return We(o);case"MM":return We(a);case"MMM":return Un(t.months("short",!0),1);case"MMMM":return Un(t.months("long",!0),1);case"L":return We(o);case"LL":return We(a);case"LLL":return Un(t.months("short",!1),1);case"LLLL":return Un(t.months("long",!1),1);case"d":return We(o);case"dd":return We(a);case"o":return We(l);case"ooo":return We(r);case"HH":return We(a);case"H":return We(o);case"hh":return We(a);case"h":return We(o);case"mm":return We(a);case"m":return We(o);case"q":return We(o);case"qq":return We(a);case"s":return We(o);case"ss":return We(a);case"S":return We(l);case"SSS":return We(r);case"u":return Lo(d);case"uu":return Lo(o);case"uuu":return We(n);case"a":return Un(t.meridiems(),0);case"kkkk":return We(i);case"kk":return We(m,mu);case"W":return We(o);case"WW":return We(a);case"E":case"c":return We(n);case"EEE":return Un(t.weekdays("short",!1),1);case"EEEE":return Un(t.weekdays("long",!1),1);case"ccc":return Un(t.weekdays("short",!0),1);case"cccc":return Un(t.weekdays("long",!0),1);case"Z":case"ZZ":return $f(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return $f(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return Lo(/[a-z_+-/]{1,256}?/i);case" ":return Lo(/[^\S\n\r]/);default:return g(L)}})(e)||{invalidReason:aC};return S.token=e,S}var lC={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function cC(e,t,n){let{type:a,value:r}=e;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let i=t[a],s=a;a==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let o=lC[s];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function uC(e){return[`^${e.map(n=>n.regex).reduce((n,a)=>`${n}(${a.source})`,"")}$`,e]}function mC(e,t,n){let a=e.match(t);if(a){let r={},i=1;for(let s in n)if(bi(n,s)){let o=n[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(i,i+l))),i+=l}return[a,r]}else return[a,{}]}function dC(e){let t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,a;return ge(e.z)||(n=ya.create(e.z)),ge(e.Z)||(n||(n=new fn(e.Z)),a=e.Z),ge(e.q)||(e.M=(e.q-1)*3+1),ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ge(e.u)||(e.S=gu(e.u)),[Object.keys(e).reduce((i,s)=>{let o=t(s);return o&&(i[o]=e[s]),i},{}),n,a]}var Uc=null;function fC(){return Uc||(Uc=ct.fromMillis(1555555555555)),Uc}function pC(e,t){if(e.literal)return e;let n=un.macroTokenToFormatOpts(e.val),a=Gp(n,t);return a==null||a.includes(void 0)?e:a}function Up(e,t){return Array.prototype.concat(...e.map(n=>pC(n,t)))}var jo=class{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Up(un.parseFormat(n),t),this.units=this.tokens.map(a=>oC(a,t)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=uC(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[n,a]=mC(t,this.regex,this.handlers),[r,i,s]=a?dC(a):[null,null,void 0];if(bi(a,"a")&&bi(a,"H"))throw new Na("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:a,result:r,zone:i,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Yp(e,t,n){return new jo(e,n).explainFromTokens(t)}function hC(e,t,n){let{result:a,zone:r,specificOffset:i,invalidReason:s}=Yp(e,t,n);return[a,r,i,s]}function Gp(e,t){if(!e)return null;let a=un.create(t,e).dtFormatter(fC()),r=a.formatToParts(),i=a.resolvedOptions();return r.map(s=>cC(s,e,i))}var Yc="Invalid DateTime",qf=864e13;function Ts(e){return new mn("unsupported zone",`the zone "${e.name}" is not supported`)}function Gc(e){return e.weekData===null&&(e.weekData=Go(e.c)),e.weekData}function Kc(e){return e.localWeekData===null&&(e.localWeekData=Go(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function cr(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ct({...n,...t,old:n})}function Kp(e,t,n){let a=e-t*60*1e3,r=n.offset(a);if(t===r)return[a,t];a-=(r-t)*60*1e3;let i=n.offset(a);return r===i?[a,r]:[e-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Vo(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Bo(e,t,n){return Kp(Xo(e),t,n)}function Uf(e,t){let n=e.o,a=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:a,month:r,day:Math.min(e.c.day,Ko(a,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Mt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Xo(i),[l,c]=Kp(o,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function gi(e,t,n,a,r,i){let{setZone:s,zone:o}=n;if(e&&Object.keys(e).length!==0||t){let l=t||o,c=ct.fromObject(e,{...n,zone:l,specificOffset:i});return s?c:c.setZone(o)}else return ct.invalid(new mn("unparsable",`the input "${r}" can't be parsed as ${a}`))}function Wo(e,t,n=!0){return e.isValid?un.create(Ze.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Jc(e,t,n){let a=e.c.year>9999||e.c.year<0,r="";if(a&&e.c.year>=0&&(r+="+"),r+=St(e.c.year,a?6:4),n==="year")return r;if(t){if(r+="-",r+=St(e.c.month),n==="month")return r;r+="-"}else if(r+=St(e.c.month),n==="month")return r;return r+=St(e.c.day),r}function Yf(e,t,n,a,r,i,s){let o=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=St(e.c.hour),s==="hour")break;if(t){if(l+=":",l+=St(e.c.minute),s==="minute")break;o&&(l+=":",l+=St(e.c.second))}else{if(l+=St(e.c.minute),s==="minute")break;o&&(l+=St(e.c.second))}if(s==="second")break;o&&(!a||e.c.millisecond!==0)&&(l+=".",l+=St(e.c.millisecond,3))}return r&&(e.isOffsetFixed&&e.offset===0&&!i?l+="Z":e.o<0?(l+="-",l+=St(Math.trunc(-e.o/60)),l+=":",l+=St(Math.trunc(-e.o%60))):(l+="+",l+=St(Math.trunc(e.o/60)),l+=":",l+=St(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}var Jp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},gC={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},yC={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ho=["year","month","day","hour","minute","second","millisecond"],xC=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],bC=["year","ordinal","hour","minute","second","millisecond"];function $o(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new qo(e);return t}function Gf(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return $o(e)}}function wC(e){if(Ms===void 0&&(Ms=ot.now()),e.type!=="iana")return e.offset(Ms);let t=e.name,n=du.get(t);return n===void 0&&(n=e.offset(Ms),du.set(t,n)),n}function Kf(e,t){let n=Ra(t.zone,ot.defaultZone);if(!n.isValid)return ct.invalid(Ts(n));let a=Ze.fromObject(t),r,i;if(ge(e.year))r=ot.now();else{for(let l of Ho)ge(e[l])&&(e[l]=Jp[l]);let s=Cp(e)||vp(e);if(s)return ct.invalid(s);let o=wC(n);[r,i]=Bo(e,o,n)}return new ct({ts:r,zone:n,loc:a,o:i})}function Jf(e,t,n){let a=ge(n.round)?!0:n.round,r=ge(n.rounding)?"trunc":n.rounding,i=(o,l)=>(o=yu(o,a||n.calendary?0:2,n.calendary?"round":r),t.loc.clone(n).relFormatter(n).format(o,l)),s=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(s(n.unit),n.unit);for(let o of n.units){let l=s(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function jf(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var Ms,du=new Map,ct=class e{constructor(t){let n=t.zone||ot.defaultZone,a=t.invalid||(Number.isNaN(t.ts)?new mn("invalid input"):null)||(n.isValid?null:Ts(n));this.ts=ge(t.ts)?ot.now():t.ts;let r=null,i=null;if(!a)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,i]=[t.old.c,t.old.o];else{let o=Ea(t.o)&&!t.old?t.o:n.offset(this.ts);r=Vo(this.ts,o),a=Number.isNaN(r.year)?new mn("invalid input"):null,r=a?null:r,i=a?null:o}this._zone=n,this.loc=t.loc||Ze.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,n]=jf(arguments),[a,r,i,s,o,l,c]=n;return Kf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static utc(){let[t,n]=jf(arguments),[a,r,i,s,o,l,c]=n;return t.zone=fn.utcInstance,Kf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static fromJSDate(t,n={}){let a=Xw(t)?t.valueOf():NaN;if(Number.isNaN(a))return e.invalid("invalid input");let r=Ra(n.zone,ot.defaultZone);return r.isValid?new e({ts:a,zone:r,loc:Ze.fromObject(n)}):e.invalid(Ts(r))}static fromMillis(t,n={}){if(Ea(t))return t<-qf||t>qf?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ra(n.zone,ot.defaultZone),loc:Ze.fromObject(n)});throw new Ot(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Ea(t))return new e({ts:t*1e3,zone:Ra(n.zone,ot.defaultZone),loc:Ze.fromObject(n)});throw new Ot("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};let a=Ra(n.zone,ot.defaultZone);if(!a.isValid)return e.invalid(Ts(a));let r=Ze.fromObject(n),i=Jo(t,Gf),{minDaysInFirstWeek:s,startOfWeek:o}=Af(i,r),l=ot.now(),c=ge(n.specificOffset)?a.offset(l):n.specificOffset,d=!ge(i.ordinal),m=!ge(i.year),f=!ge(i.month)||!ge(i.day),g=m||f,I=i.weekYear||i.weekNumber;if((g||d)&&I)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&d)throw new Na("Can't mix ordinal dates with month/day");let S=I||i.weekday&&!g,L,U,se=Vo(l,c);S?(L=xC,U=gC,se=Go(se,s,o)):d?(L=bC,U=yC,se=qc(se)):(L=Ho,U=Jp);let le=!1;for(let W of L){let B=i[W];ge(B)?le?i[W]=U[W]:i[W]=se[W]:le=!0}let $=S?Jw(i,s,o):d?jw(i):Cp(i),me=$||vp(i);if(me)return e.invalid(me);let N=S?Nf(i,s,o):d?Ef(i):i,[oe,Ce]=Bo(N,c,a),Ie=new e({ts:oe,zone:a,o:Ce,loc:r});return i.weekday&&g&&t.weekday!==Ie.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Ie.toISO()}`):Ie.isValid?Ie:e.invalid(Ie.invalid)}static fromISO(t,n={}){let[a,r]=BS(t);return gi(a,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){let[a,r]=HS(t);return gi(a,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){let[a,r]=$S(t);return gi(a,r,n,"HTTP",n)}static fromFormat(t,n,a={}){if(ge(t)||ge(n))throw new Ot("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,l,c,d]=hC(s,t,n);return d?e.invalid(d):gi(o,l,a,`format ${n}`,t,c)}static fromString(t,n,a={}){return e.fromFormat(t,n,a)}static fromSQL(t,n={}){let[a,r]=jS(t);return gi(a,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Ot("need to specify a reason the DateTime is invalid");let a=t instanceof mn?t:new mn(t,n);if(ot.throwOnInvalid)throw new jc(a);return new e({invalid:a})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){let a=Gp(t,Ze.fromObject(n));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return Up(un.parseFormat(t),Ze.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ms=void 0,du.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Gc(this).weekYear:NaN}get weekNumber(){return this.isValid?Gc(this).weekNumber:NaN}get weekday(){return this.isValid?Gc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Kc(this).weekday:NaN}get localWeekNumber(){return this.isValid?Kc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Kc(this).weekYear:NaN}get ordinal(){return this.isValid?qc(this.c).ordinal:NaN}get monthShort(){return this.isValid?mr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?mr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?mr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?mr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,n=6e4,a=Xo(this.c),r=this.zone.offset(a-t),i=this.zone.offset(a+t),s=this.zone.offset(a-r*n),o=this.zone.offset(a-i*n);if(s===o)return[this];let l=a-s*n,c=a-o*n,d=Vo(l,s),m=Vo(c,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[cr(this,{ts:l}),cr(this,{ts:c})]:[this]}get isInLeapYear(){return Ns(this.year)}get daysInMonth(){return Ko(this.year,this.month)}get daysInYear(){return this.isValid?yi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Rs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Rs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:n,numberingSystem:a,calendar:r}=un.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:a,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(fn.instance(t),n)}toLocal(){return this.setZone(ot.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:a=!1}={}){if(t=Ra(t,ot.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||a){let i=t.offset(this.ts),s=this.toObject();[r]=Bo(s,i,t)}return cr(this,{ts:r,zone:t})}else return e.invalid(Ts(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:a}={}){let r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:a});return cr(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let n=Jo(t,Gf),{minDaysInFirstWeek:a,startOfWeek:r}=Af(n,this.loc),i=!ge(n.weekYear)||!ge(n.weekNumber)||!ge(n.weekday),s=!ge(n.ordinal),o=!ge(n.year),l=!ge(n.month)||!ge(n.day),c=o||l,d=n.weekYear||n.weekNumber;if((c||s)&&d)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Na("Can't mix ordinal dates with month/day");let m;i?m=Nf({...Go(this.c,a,r),...n},a,r):ge(n.ordinal)?(m={...this.toObject(),...n},ge(n.day)&&(m.day=Math.min(Ko(m.year,m.month),m.day))):m=Ef({...qc(this.c),...n});let[f,g]=Bo(m,this.o,this.zone);return cr(this,{ts:f,o:g})}plus(t){if(!this.isValid)return this;let n=Mt.fromDurationLike(t);return cr(this,Uf(this,n))}minus(t){if(!this.isValid)return this;let n=Mt.fromDurationLike(t).negate();return cr(this,Uf(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let a={},r=Mt.normalizeUnit(t);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(a.weekNumber=this.weekNumber-1),a.weekday=i}else a.weekday=1;if(r==="quarters"){let i=Math.ceil(this.month/3);a.month=(i-1)*3+1}return this.set(a)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?un.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Yc}toLocaleString(t=Uo,n={}){return this.isValid?un.create(this.loc.clone(n),t).formatDateTime(this):Yc}toLocaleParts(t={}){return this.isValid?un.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:i=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=$o(s);let o=t==="extended",l=Jc(this,o,s);return Ho.indexOf(s)>=3&&(l+="T"),l+=Yf(this,o,n,a,r,i,s),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Jc(this,t==="extended",$o(n)):null}toISOWeekDate(){return Wo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:i=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=$o(o),(r&&Ho.indexOf(o)>=3?"T":"")+Yf(this,s==="extended",n,t,a,i,o)):null}toRFC2822(){return Wo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Wo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Jc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(a&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Wo(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Yc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",a={}){if(!this.isValid||!t.isValid)return Mt.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},i=Qw(n).map(Mt.normalizeUnit),s=t.valueOf()>this.valueOf(),o=s?this:t,l=s?t:this,c=nC(o,l,i,r);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(t){return this.isValid?dr.fromDateTimes(this,t):this}hasSame(t,n,a){if(!this.isValid)return!1;let r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,a)<=r&&r<=i.endOf(n,a)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),a=t.padding?this<n?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),Jf(n,this.plus(a),{...t,numeric:"always",units:r,unit:i})}toRelativeCalendar(t={}){return this.isValid?Jf(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Ot("min requires all arguments be DateTimes");return Pf(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Ot("max requires all arguments be DateTimes");return Pf(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,a={}){let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Yp(s,t,n)}static fromStringExplain(t,n,a={}){return e.fromFormatExplain(t,n,a)}static buildFormatParser(t,n={}){let{locale:a=null,numberingSystem:r=null}=n,i=Ze.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new jo(i,t)}static fromFormatParser(t,n,a={}){if(ge(t)||ge(n))throw new Ot("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!s.equals(n.locale))throw new Ot(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);let{result:o,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):gi(o,l,a,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Uo}static get DATE_MED(){return Zf}static get DATE_MED_WITH_WEEKDAY(){return Rw}static get DATE_FULL(){return Xf}static get DATE_HUGE(){return Qf}static get TIME_SIMPLE(){return ep}static get TIME_WITH_SECONDS(){return tp}static get TIME_WITH_SHORT_OFFSET(){return np}static get TIME_WITH_LONG_OFFSET(){return ap}static get TIME_24_SIMPLE(){return rp}static get TIME_24_WITH_SECONDS(){return ip}static get TIME_24_WITH_SHORT_OFFSET(){return sp}static get TIME_24_WITH_LONG_OFFSET(){return op}static get DATETIME_SHORT(){return lp}static get DATETIME_SHORT_WITH_SECONDS(){return cp}static get DATETIME_MED(){return up}static get DATETIME_MED_WITH_SECONDS(){return mp}static get DATETIME_MED_WITH_WEEKDAY(){return Nw}static get DATETIME_FULL(){return dp}static get DATETIME_FULL_WITH_SECONDS(){return fp}static get DATETIME_HUGE(){return pp}static get DATETIME_HUGE_WITH_SECONDS(){return hp}};function Is(e){if(ct.isDateTime(e))return e;if(e&&e.valueOf&&Ea(e.valueOf()))return ct.fromJSDate(e);if(e&&typeof e=="object")return ct.fromObject(e);throw new Ot(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var SC="3.7.2";pn.DateTime=ct;pn.Duration=Mt;pn.FixedOffsetZone=fn;pn.IANAZone=ya;pn.Info=mr;pn.Interval=dr;pn.InvalidZone=Yo;pn.Settings=ot;pn.SystemZone=Os;pn.VERSION=SC;pn.Zone=Aa});var nl=O(Kt=>{"use strict";u();Object.defineProperty(Kt,"__esModule",{value:!0});Kt.CronDate=Kt.DAYS_IN_MONTH=Kt.DateMathOp=Kt.TimeUnit=void 0;var fr=jp(),Wt;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.Day="Day",e.Month="Month",e.Year="Year"})(Wt||(Kt.TimeUnit=Wt={}));var Ps;(function(e){e.Add="Add",e.Subtract="Subtract"})(Ps||(Kt.DateMathOp=Ps={}));Kt.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var K,Fa,_a,pr,Fs,Su,ia,Pa,Ii=class Ii{constructor(t,n){Ne(this,ia);Ne(this,K);Ne(this,Fa,null);Ne(this,_a,null);Ne(this,pr,null);let a={zone:n};if(t?t instanceof Ii?(ae(this,K,T(t,K)),ae(this,Fa,T(t,Fa)),ae(this,_a,T(t,_a)),ae(this,pr,T(t,pr))):t instanceof Date?ae(this,K,fr.DateTime.fromJSDate(t,a)):typeof t=="number"?ae(this,K,fr.DateTime.fromMillis(t,a)):(ae(this,K,fr.DateTime.fromISO(t,a)),T(this,K).isValid||ae(this,K,fr.DateTime.fromRFC2822(t,a)),T(this,K).isValid||ae(this,K,fr.DateTime.fromSQL(t,a)),T(this,K).isValid||ae(this,K,fr.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",a))):ae(this,K,fr.DateTime.local()),!T(this,K).isValid)throw new Error(`CronDate: unhandled timestamp: ${t}`);n&&n!==T(this,K).zoneName&&ae(this,K,T(this,K).setZone(n))}get dstStart(){return T(this,Fa)}get dstStartLandingHour(){return T(this,_a)}clearDstStart(){ae(this,Fa,null),ae(this,_a,null)}get dstEnd(){return T(this,pr)}set dstEnd(t){ae(this,pr,t)}addYear(){ae(this,K,T(this,K).plus({years:1}))}addMonth(){ae(this,K,T(this,K).plus({months:1}).startOf("month"))}addDay(){ae(this,K,T(this,K).plus({days:1}).startOf("day"))}addHour(){ae(this,K,T(this,K).plus({hours:1}).startOf("hour"))}addMinute(){ae(this,K,T(this,K).plus({minutes:1}).startOf("minute"))}addSecond(){ae(this,K,T(this,K).plus({seconds:1}))}subtractYear(){ae(this,K,T(this,K).minus({years:1}))}subtractMonth(){ae(this,K,T(this,K).minus({months:1}).endOf("month").startOf("second"))}subtractDay(){ae(this,K,T(this,K).minus({days:1}).endOf("day").startOf("second"))}subtractHour(){ae(this,K,T(this,K).minus({hours:1}).endOf("hour").startOf("second"))}subtractMinute(){ae(this,K,T(this,K).minus({minutes:1}).endOf("minute").startOf("second"))}subtractSecond(){ae(this,K,T(this,K).minus({seconds:1}))}addUnit(t){switch(t){case Wt.Year:return this.addYear();case Wt.Month:return this.addMonth();case Wt.Day:return this.addDay();case Wt.Hour:return this.addHour();case Wt.Minute:return this.addMinute();case Wt.Second:return this.addSecond()}}subtractUnit(t){switch(t){case Wt.Year:return this.subtractYear();case Wt.Month:return this.subtractMonth();case Wt.Day:return this.subtractDay();case Wt.Hour:return this.subtractHour();case Wt.Minute:return this.subtractMinute();case Wt.Second:return this.subtractSecond()}}invokeDateOperation(t,n){if(t===Ps.Add){this.addUnit(n);return}if(t===Ps.Subtract){this.subtractUnit(n);return}throw new Error(`Invalid verb: ${t}`)}getDate(){return T(this,K).day}getFullYear(){return T(this,K).year}getDay(){let t=T(this,K).weekday;return t===7?0:t}getMonth(){return T(this,K).month-1}getHours(){return T(this,K).hour}getMinutes(){return T(this,K).minute}getSeconds(){return T(this,K).second}getMilliseconds(){return T(this,K).millisecond}getUTCOffset(){return T(this,K).offset}setStartOfDay(){ae(this,K,T(this,K).startOf("day"))}setEndOfDay(){ae(this,K,T(this,K).endOf("day"))}getTime(){return T(this,K).valueOf()}getUTCDate(){return J(this,ia,Pa).call(this).day}getUTCFullYear(){return J(this,ia,Pa).call(this).year}getUTCDay(){let t=J(this,ia,Pa).call(this).weekday;return t===7?0:t}getUTCMonth(){return J(this,ia,Pa).call(this).month-1}getUTCHours(){return J(this,ia,Pa).call(this).hour}getUTCMinutes(){return J(this,ia,Pa).call(this).minute}getUTCSeconds(){return J(this,ia,Pa).call(this).second}toISOString(){return T(this,K).toUTC().toISO()}toJSON(){return T(this,K).toJSON()}setDate(t){ae(this,K,T(this,K).set({day:t}))}setFullYear(t){ae(this,K,T(this,K).set({year:t}))}setDay(t){ae(this,K,T(this,K).set({weekday:t}))}setMonth(t){ae(this,K,T(this,K).set({month:t+1}))}setHours(t){ae(this,K,T(this,K).set({hour:t}))}setMinutes(t){ae(this,K,T(this,K).set({minute:t}))}setSeconds(t){ae(this,K,T(this,K).set({second:t}))}setMilliseconds(t){ae(this,K,T(this,K).set({millisecond:t}))}toString(){return this.toDate().toString()}toDate(){return T(this,K).toJSDate()}isLastDayOfMonth(){var a;let{day:t,month:n}=T(this,K);if(n===2){let r=J(a=Ii,Fs,Su).call(a,T(this,K).year);return t===Kt.DAYS_IN_MONTH[n-1]-(r?0:1)}return t===Kt.DAYS_IN_MONTH[n-1]}isLastWeekdayOfMonth(){var r;let{day:t,month:n}=T(this,K),a;return n===2?a=Kt.DAYS_IN_MONTH[n-1]-(J(r=Ii,Fs,Su).call(r,T(this,K).year)?0:1):a=Kt.DAYS_IN_MONTH[n-1],t>a-7}applyDateOperation(t,n,a){if(n===Wt.Month||n===Wt.Day){this.invokeDateOperation(t,n);return}let r=this.getHours(),i=this.getUTCOffset();this.invokeDateOperation(t,n);let s=this.getHours(),o=(s-r+24)%24;t===Ps.Add&&this.getUTCOffset()>i&&o>=2?a!==24&&(ae(this,Fa,(r+1)%24),ae(this,_a,s)):o===0&&this.getMinutes()===0&&this.getSeconds()===0&&a!==24&&(this.dstEnd=s)}};K=new WeakMap,Fa=new WeakMap,_a=new WeakMap,pr=new WeakMap,Fs=new WeakSet,Su=function(t){return t%4===0&&t%100!==0||t%400===0},ia=new WeakSet,Pa=function(){return T(this,K).toUTC()},Ne(Ii,Fs);var tl=Ii;Kt.CronDate=tl;Kt.default=tl});var vu=O(al=>{"use strict";u();Object.defineProperty(al,"__esModule",{value:!0});al.CronMonth=void 0;var CC=nl(),vC=Da(),IC=1,kC=12,TC=Object.freeze([]),Cu=class extends vC.CronField{static get min(){return IC}static get max(){return kC}static get chars(){return TC}static get daysInMonth(){return CC.DAYS_IN_MONTH}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};al.CronMonth=Cu});var Zp=O(rl=>{"use strict";u();Object.defineProperty(rl,"__esModule",{value:!0});rl.CronDayOfMonth=void 0;var MC=Da(),DC=vu(),OC=1,RC=31,NC=Object.freeze(["L"]),Iu=class e extends MC.CronField{static fromMonth(t,n,a){if(t.length!==1)return new e(n,a);let r=DC.CronMonth.daysInMonth[t[0]-1],i=n.filter(s=>typeof s!="number"||s<=r);return new e(i.length>0?i:n,a)}static get min(){return OC}static get max(){return RC}static get chars(){return NC}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};rl.CronDayOfMonth=Iu});var Xp=O(il=>{"use strict";u();Object.defineProperty(il,"__esModule",{value:!0});il.CronDayOfWeek=void 0;var EC=Da(),AC=0,PC=7,FC=Object.freeze(["L"]),ku=class extends EC.CronField{static get min(){return AC}static get max(){return PC}static get chars(){return FC}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){if(super(t,n),this.validate(),this.values.some(a=>a==="L"))throw new Error(`${this.constructor.name} Validation error, unexpected standalone L`)}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};il.CronDayOfWeek=ku});var Qp=O(sl=>{"use strict";u();Object.defineProperty(sl,"__esModule",{value:!0});sl.CronHour=void 0;var _C=Da(),zC=0,LC=23,VC=Object.freeze([]),Tu=class extends _C.CronField{static get min(){return zC}static get max(){return LC}static get chars(){return VC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};sl.CronHour=Tu});var eh=O(ol=>{"use strict";u();Object.defineProperty(ol,"__esModule",{value:!0});ol.CronMinute=void 0;var WC=Da(),BC=0,HC=59,$C=Object.freeze([]),Mu=class extends WC.CronField{static get min(){return BC}static get max(){return HC}static get chars(){return $C}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};ol.CronMinute=Mu});var th=O(ll=>{"use strict";u();Object.defineProperty(ll,"__esModule",{value:!0});ll.CronSecond=void 0;var qC=Da(),UC=0,YC=59,GC=Object.freeze([]),Du=class extends qC.CronField{static get min(){return UC}static get max(){return YC}static get chars(){return GC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};ll.CronSecond=Du});var cl=O(Zt=>{"use strict";u();var KC=Zt&&Zt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),za=Zt&&Zt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&KC(t,e,n)};Object.defineProperty(Zt,"__esModule",{value:!0});za(bf(),Zt);za(Zp(),Zt);za(Xp(),Zt);za(Da(),Zt);za(Qp(),Zt);za(eh(),Zt);za(vu(),Zt);za(th(),Zt)});var Ru=O(ul=>{"use strict";u();Object.defineProperty(ul,"__esModule",{value:!0});ul.CronFieldCollection=void 0;var Xt=cl(),gr,yr,xr,br,xa,La,ki,nh,ah,hr=class hr{constructor({second:t,minute:n,hour:a,dayOfMonth:r,month:i,dayOfWeek:s}){Ne(this,gr);Ne(this,yr);Ne(this,xr);Ne(this,br);Ne(this,xa);Ne(this,La);if(!t)throw new Error("Validation error, Field second is missing");if(!n)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!r)throw new Error("Validation error, Field dayOfMonth is missing");if(!i)throw new Error("Validation error, Field month is missing");if(!s)throw new Error("Validation error, Field dayOfWeek is missing");if(i.values.length===1&&!r.hasLastChar&&s.isWildcard&&!(parseInt(r.values[0],10)<=Xt.CronMonth.daysInMonth[i.values[0]-1]))throw new Error("Invalid explicit day of month definition");ae(this,gr,t),ae(this,yr,n),ae(this,xr,a),ae(this,xa,i),ae(this,La,s),ae(this,br,r)}static from(t,n){return new hr({second:this.resolveField(Xt.CronSecond,t.second,n.second),minute:this.resolveField(Xt.CronMinute,t.minute,n.minute),hour:this.resolveField(Xt.CronHour,t.hour,n.hour),dayOfMonth:this.resolveField(Xt.CronDayOfMonth,t.dayOfMonth,n.dayOfMonth),month:this.resolveField(Xt.CronMonth,t.month,n.month),dayOfWeek:this.resolveField(Xt.CronDayOfWeek,t.dayOfWeek,n.dayOfWeek)})}static resolveField(t,n,a){return a?a instanceof Xt.CronField?a:new t(a):n}get second(){return T(this,gr)}get minute(){return T(this,yr)}get hour(){return T(this,xr)}get dayOfMonth(){return T(this,br)}get month(){return T(this,xa)}get dayOfWeek(){return T(this,La)}static compactField(t){if(t.length===0)return[];let n=[],a;return t.forEach((r,i,s)=>{if(a===void 0){a={start:r,count:1};return}let o=s[i-1]||a.start,l=s[i+1];if(r==="L"||r==="W"){n.push(a),n.push({start:r,count:1}),a=void 0;return}if(a.step===void 0&&l!==void 0){let c=r-o,d=l-r;if(c<=d){a={...a,count:2,end:r,step:c};return}a.step=1}r-(a.end??0)===a.step?(a.count++,a.end=r):(a.count===1?n.push({start:a.start,count:1}):a.count===2?(n.push({start:a.start,count:1}),n.push({start:a.end??o,count:1})):n.push(a),a={start:r,count:1})}),a&&n.push(a),n}stringifyField(t){var i;let n=t.max,a=t.values;if(t instanceof Xt.CronDayOfWeek){n=6;let s=T(this,La).values;a=s[s.length-1]===7?s.slice(0,-1):s}t instanceof Xt.CronDayOfMonth&&(n=T(this,xa).values.length===1?Xt.CronMonth.daysInMonth[T(this,xa).values[0]-1]:t.max);let r=hr.compactField(a);if(r.length===1){let s=J(i=hr,ki,nh).call(i,t,r[0],n);if(s)return s}return r.map(s=>{var l;let o=s.count===1?s.start.toString():J(l=hr,ki,ah).call(l,s);return t instanceof Xt.CronDayOfWeek&&t.nthDay>0?`${o}#${t.nthDay}`:o}).join(",")}stringify(t=!1){let n=[];return t&&n.push(this.stringifyField(T(this,gr))),n.push(this.stringifyField(T(this,yr)),this.stringifyField(T(this,xr)),this.stringifyField(T(this,br)),this.stringifyField(T(this,xa)),this.stringifyField(T(this,La))),n.join(" ")}serialize(){return{second:T(this,gr).serialize(),minute:T(this,yr).serialize(),hour:T(this,xr).serialize(),dayOfMonth:T(this,br).serialize(),month:T(this,xa).serialize(),dayOfWeek:T(this,La).serialize()}}};gr=new WeakMap,yr=new WeakMap,xr=new WeakMap,br=new WeakMap,xa=new WeakMap,La=new WeakMap,ki=new WeakSet,nh=function(t,n,a){let r=n.step;return r?r===1&&n.start===t.min&&n.end&&n.end>=a?(t instanceof Xt.CronDayOfMonth||t instanceof Xt.CronDayOfWeek)&&!t.isWildcard?null:t.hasQuestionMarkChar?"?":"*":r!==1&&n.start===t.min&&n.end&&n.end>=a-r+1?`*/${r}`:null:null},ah=function(t){let n=t.step;if(n===1)return`${t.start}-${t.end}`;let a=t.start===0?t.count-1:t.count;if(!n)throw new Error("Unexpected range step");if(!t.end)throw new Error("Unexpected range end");if(n*a>t.end){let r=(s,o)=>{if(typeof t.start!="number")throw new Error("Unexpected range start");return o%n===0?t.start+o:null};if(typeof t.start!="number")throw new Error("Unexpected range start");let i={length:t.end-t.start+1};return Array.from(i,r).filter(s=>s!==null).join(",")}return`${t.start}-${t.end}/${n}`},Ne(hr,ki);var Ou=hr;ul.CronFieldCollection=Ou});var Eu=O(kn=>{"use strict";u();Object.defineProperty(kn,"__esModule",{value:!0});kn.CronExpression=kn.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=kn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var ht=nl();kn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";kn.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var rh=1e4,Mi,sa,Gn,oa,la,Fe,_s,Di,Qt,Va,Ye,wr,ih,sh,oh,lh,ch,Nu,uh,mh,Ti,hn=class hn{constructor(t,n){Ne(this,Ye);Ne(this,Mi);Ne(this,sa);Ne(this,Gn);Ne(this,oa);Ne(this,la);Ne(this,Fe);Ne(this,_s,null);Ne(this,Di,!1);ae(this,Mi,n),ae(this,sa,n.tz),ae(this,oa,n.startDate?new ht.CronDate(n.startDate,T(this,sa)):null),ae(this,la,n.endDate?new ht.CronDate(n.endDate,T(this,sa)):null);let a=n.currentDate??n.startDate;if(a){let r=new ht.CronDate(a,T(this,sa));T(this,oa)&&r.getTime()<T(this,oa).getTime()?a=T(this,oa):T(this,la)&&r.getTime()>T(this,la).getTime()&&(a=T(this,la))}ae(this,Gn,new ht.CronDate(a,T(this,sa))),ae(this,Fe,t)}get fields(){return T(this,Fe)}static fieldsToExpression(t,n){return new hn(t,n||{})}next(){return J(this,Ye,Ti).call(this)}prev(){return J(this,Ye,Ti).call(this,!0)}hasNext(){let t=T(this,Gn);try{return J(this,Ye,Ti).call(this),!0}catch{return!1}finally{ae(this,Gn,t)}}hasPrev(){let t=T(this,Gn);try{return J(this,Ye,Ti).call(this,!0),!0}catch{return!1}finally{ae(this,Gn,t)}}take(t){let n=[];if(t>=0)for(let a=0;a<t;a++)try{n.push(this.next())}catch{return n}else for(let a=0;a>t;a--)try{n.push(this.prev())}catch{return n}return n}reset(t){ae(this,Gn,new ht.CronDate(t||T(this,Mi).currentDate,T(this,sa)))}stringify(t=!1){return T(this,Fe).stringify(t)}includesDate(t){let{second:n,minute:a,hour:r,month:i}=T(this,Fe),s=new ht.CronDate(t,T(this,sa));return!(!n.values.includes(s.getSeconds())||!a.values.includes(s.getMinutes())||!r.values.includes(s.getHours())||!i.values.includes(s.getMonth()+1)||!J(this,Ye,Nu).call(this,s))}toString(){return T(this,Mi).expression||this.stringify(!0)}[Symbol.iterator](){return{next:()=>{try{return{value:J(this,Ye,Ti).call(this),done:!1}}catch{return{value:void 0,done:!0}}}}}};Mi=new WeakMap,sa=new WeakMap,Gn=new WeakMap,oa=new WeakMap,la=new WeakMap,Fe=new WeakMap,_s=new WeakMap,Di=new WeakMap,Qt=new WeakSet,Va=function(t,n){return n.some(a=>a===t)},Ye=new WeakSet,wr=function(t,n){return t[n?t.length-1:0]},ih=function(t){let n=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(T(this,_s)===n)return T(this,Di);let a=new ht.CronDate(t);a.setStartOfDay();let r=new ht.CronDate(t);return r.setEndOfDay(),ae(this,_s,n),ae(this,Di,a.getUTCOffset()!==r.getUTCOffset()),T(this,Di)},sh=function(t,n,a){let r=T(this,Fe).second.values,i=t.getSeconds(),s=T(this,Fe).second.findNearestValue(i,a);if(s!==null){t.setSeconds(s);return}t.applyDateOperation(n,ht.TimeUnit.Minute,T(this,Fe).hour.values.length),t.setSeconds(J(this,Ye,wr).call(this,r,a))},oh=function(t,n,a){let r=T(this,Fe).minute.values,i=T(this,Fe).second.values,s=t.getMinutes(),o=T(this,Fe).minute.findNearestValue(s,a);if(o!==null){t.setMinutes(o),t.setSeconds(J(this,Ye,wr).call(this,i,a));return}t.applyDateOperation(n,ht.TimeUnit.Hour,T(this,Fe).hour.values.length),t.setMinutes(J(this,Ye,wr).call(this,r,a)),t.setSeconds(J(this,Ye,wr).call(this,i,a))},lh=function(t,n){if(!n.isLastWeekdayOfMonth())return!1;let a=n.getDay();return t.some(r=>a===parseInt(r.toString().charAt(0),10)%7)},ch=function(t,n){return t<=0||Math.ceil(n.getDate()/7)===t},Nu=function(t){var c,d,m,f;let n=T(this,Fe).dayOfMonth.isWildcard,a=!n,r=T(this,Fe).dayOfWeek.isWildcard,i=!r,s=J(c=hn,Qt,Va).call(c,t.getDate(),T(this,Fe).dayOfMonth.values)||T(this,Fe).dayOfMonth.hasLastChar&&t.isLastDayOfMonth(),o=T(this,Fe).dayOfWeek.nthDay,l=J(d=hn,Qt,Va).call(d,t.getDay(),T(this,Fe).dayOfWeek.values)&&J(m=hn,Qt,ch).call(m,o,t)||T(this,Fe).dayOfWeek.hasLastChar&&J(f=hn,Qt,lh).call(f,T(this,Fe).dayOfWeek.values,t);return!!(a&&i&&(s||l)||s&&!i||n&&!r&&l)},uh=function(t,n,a){var d,m;let r=T(this,Fe).hour.values,i=r,s=t.getHours(),o=J(d=hn,Qt,Va).call(d,s,r),l=t.dstEnd===s;if(t.dstStart!==null&&t.dstStartLandingHour===s){for(let f=t.dstStart;f!==s;f=(f+1)%24)if(J(m=hn,Qt,Va).call(m,f,r))return!0}if(l&&!a)return t.dstEnd=null,t.applyDateOperation(ht.DateMathOp.Add,ht.TimeUnit.Hour,i.length),!1;if(o)return!0;t.clearDstStart();let c=T(this,Fe).hour.findNearestValue(s,a);if(c===null)return t.applyDateOperation(n,ht.TimeUnit.Day,i.length),!1;if(J(this,Ye,ih).call(this,t)){let f=a?s-c:c-s;for(let g=0;g<f&&(t.applyDateOperation(n,ht.TimeUnit.Hour,i.length),!(!a&&t.getHours()>=c||a&&t.getHours()<=c));g++);}else t.setHours(c);return t.setMinutes(J(this,Ye,wr).call(this,T(this,Fe).minute.values,a)),t.setSeconds(J(this,Ye,wr).call(this,T(this,Fe).second.values,a)),!1},mh=function(t){if(!T(this,oa)&&!T(this,la))return;let n=t.getTime();if(T(this,oa)&&n<T(this,oa).getTime())throw new Error(kn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(T(this,la)&&n>T(this,la).getTime())throw new Error(kn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)},Ti=function(t=!1){var s,o,l;let n=t?ht.DateMathOp.Subtract:ht.DateMathOp.Add,a=new ht.CronDate(T(this,Gn)),r=a.getTime();a.getMilliseconds()>0&&(a.setMilliseconds(0),t||a.applyDateOperation(ht.DateMathOp.Add,ht.TimeUnit.Second,T(this,Fe).hour.values.length));let i=0;for(;++i<rh;){if(J(this,Ye,mh).call(this,a),!J(this,Ye,Nu).call(this,a)){a.applyDateOperation(n,ht.TimeUnit.Day,T(this,Fe).hour.values.length);continue}if(!J(s=hn,Qt,Va).call(s,a.getMonth()+1,T(this,Fe).month.values)){a.applyDateOperation(n,ht.TimeUnit.Month,T(this,Fe).hour.values.length);continue}if(J(this,Ye,uh).call(this,a,n,t)){if(!J(o=hn,Qt,Va).call(o,a.getMinutes(),T(this,Fe).minute.values)){J(this,Ye,oh).call(this,a,n,t);continue}if(!J(l=hn,Qt,Va).call(l,a.getSeconds(),T(this,Fe).second.values)){J(this,Ye,sh).call(this,a,n,t);continue}if(r===a.getTime()){a.applyDateOperation(n,ht.TimeUnit.Second,T(this,Fe).hour.values.length);continue}break}}if(i>=rh)throw new Error(kn.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return ae(this,Gn,a),a},Ne(hn,Qt);var ml=hn;kn.CronExpression=ml;kn.default=ml});var dh=O(Au=>{"use strict";u();Object.defineProperty(Au,"__esModule",{value:!0});Au.seededRandom=ZC;function JC(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return()=>t>>>0}function jC(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function ZC(e){let t=e?JC(e)():Math.floor(Math.random()*1e10);return jC(t)}});var hl=O(Dn=>{"use strict";u();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.CronExpressionParser=Dn.DayOfWeek=Dn.Months=Dn.CronUnit=Dn.PredefinedExpressions=void 0;var XC=Ru(),QC=Eu(),ev=dh(),Tn=cl(),Pu;(function(e){e["@yearly"]="0 0 0 1 1 *",e["@annually"]="0 0 0 1 1 *",e["@monthly"]="0 0 0 1 * *",e["@weekly"]="0 0 0 * * 0",e["@daily"]="0 0 0 * * *",e["@hourly"]="0 0 * * * *",e["@minutely"]="0 * * * * *",e["@secondly"]="* * * * * *",e["@weekdays"]="0 0 0 * * 1-5",e["@weekends"]="0 0 0 * * 0,6"})(Pu||(Dn.PredefinedExpressions=Pu={}));var Mn;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.DayOfMonth="DayOfMonth",e.Month="Month",e.DayOfWeek="DayOfWeek"})(Mn||(Dn.CronUnit=Mn={}));var Fu;(function(e){e[e.jan=1]="jan",e[e.feb=2]="feb",e[e.mar=3]="mar",e[e.apr=4]="apr",e[e.may=5]="may",e[e.jun=6]="jun",e[e.jul=7]="jul",e[e.aug=8]="aug",e[e.sep=9]="sep",e[e.oct=10]="oct",e[e.nov=11]="nov",e[e.dec=12]="dec"})(Fu||(Dn.Months=Fu={}));var _u;(function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"})(_u||(Dn.DayOfWeek=_u={}));var fh=256,ph=1024,pe,hh,Sr,gh,yh,dl,fl,Lu,Vu,pl,xh,bh,wh,Sh,Ch,Wu,vh,Ih,Ge=class Ge{static parse(t,n={}){var L,U,se,le,$,me,N,oe;let{strict:a=!1,hashSeed:r}=n,i=(0,ev.seededRandom)(r);t=Pu[t]||t;let s=J(L=Ge,pe,hh).call(L,t,a);if(!(s.dayOfMonth==="*"||s.dayOfWeek==="*"||!a))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let o=J(U=Ge,pe,Sr).call(U,Mn.Second,s.second,Tn.CronSecond.constraints,i,a),l=J(se=Ge,pe,Sr).call(se,Mn.Minute,s.minute,Tn.CronMinute.constraints,i,a),c=J(le=Ge,pe,Sr).call(le,Mn.Hour,s.hour,Tn.CronHour.constraints,i,a),d=J($=Ge,pe,Sr).call($,Mn.Month,s.month,Tn.CronMonth.constraints,i,a),m=J(me=Ge,pe,Sr).call(me,Mn.DayOfMonth,s.dayOfMonth,Tn.CronDayOfMonth.constraints,i,a),{dayOfWeek:f,nthDayOfWeek:g}=J(N=Ge,pe,vh).call(N,s.dayOfWeek),I=J(oe=Ge,pe,Sr).call(oe,Mn.DayOfWeek,f,Tn.CronDayOfWeek.constraints,i,a),S=new XC.CronFieldCollection({second:new Tn.CronSecond(o,{rawValue:s.second}),minute:new Tn.CronMinute(l,{rawValue:s.minute}),hour:new Tn.CronHour(c,{rawValue:s.hour}),dayOfMonth:Tn.CronDayOfMonth.fromMonth(d,m,{rawValue:s.dayOfMonth}),month:new Tn.CronMonth(d,{rawValue:s.month}),dayOfWeek:new Tn.CronDayOfWeek(I,{rawValue:s.dayOfWeek,nthDayOfWeek:g})});return new QC.CronExpression(S,{...n,expression:t})}};pe=new WeakSet,hh=function(t,n){if(n&&!t.length)throw new Error("Invalid cron expression");if(t=t||"0 * * * * *",t.length>ph)throw new Error(`Invalid cron expression, too long, expected at most ${ph} characters`);let a=t.trim().split(/\s+/);if(n&&a.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(a.length>6)throw new Error("Invalid cron expression, too many fields");let r=["0","*","*","*","*","*"];a.length<r.length&&a.unshift(...r.slice(0,r.length-a.length));let[i,s,o,l,c,d]=a;return{second:i,minute:s,hour:o,dayOfMonth:l,month:c,dayOfWeek:d}},Sr=function(t,n,a,r,i){if((t===Mn.Month||t===Mn.DayOfWeek)&&(n=n.replace(/[a-z]{3}/gi,s=>{s=s.toLowerCase();let o=Fu[s]||_u[s];if(o===void 0)throw new Error(`Validation error, cannot resolve alias "${s}"`);return o.toString()})),!a.validChars.test(n))throw new Error(`Invalid characters, got value: ${n}`);return n=J(this,pe,gh).call(this,n,a),n=J(this,pe,yh).call(this,n,a,r,t,i),J(this,pe,xh).call(this,t,n,a)},gh=function(t,n){return t.replace(/[*?]/g,n.min+"-"+n.max)},yh=function(t,n,a,r,i){let s=a(),o=0;return t.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(l,c,d,m)=>{var f,g,I,S,L,U,se,le;if(c&&d&&m){let $=parseInt(c,10),me=parseInt(d,10),N=parseInt(m,10);if(N<=0)throw new Error(`Invalid step: ${N}, must be positive`);let oe=J(f=Ge,pe,Lu).call(f,$,me,n,r,i);return o+=Math.ceil((oe.max-oe.min+1)/N),J(g=Ge,pe,pl).call(g,r,o),J(I=Ge,pe,Vu).call(I,s,oe.min,oe.max,N,r,i)}else if(c&&d){let $=parseInt(c,10),me=parseInt(d,10),N=J(S=Ge,pe,Lu).call(S,$,me,n,r,i);return String(J(L=Ge,pe,dl).call(L,s,N.min,N.max))}else if(m){let $=parseInt(m,10);if($<=0)throw new Error(`Invalid step: ${$}, must be positive`);return o+=Math.ceil((n.max-n.min+1)/$),J(U=Ge,pe,pl).call(U,r,o),J(se=Ge,pe,Vu).call(se,s,n.min,n.max,$,r,i)}else return String(J(le=Ge,pe,dl).call(le,s,n.min,n.max))})},dl=function(t,n,a){return Math.floor(t*(a-n+1))+n},fl=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Lu=function(t,n,a,r,i){var l,c;if(t>n)throw new Error(`Invalid range: ${t}-${n}, min > max`);if(i&&(t<a.min||n>a.max))throw new Error(`Invalid range: ${t}-${n}, outside the ${a.min}-${a.max} range of the ${J(l=Ge,pe,fl).call(l,r)} field`);let s=Math.max(t,a.min),o=Math.min(n,a.max);if(s>o)throw new Error(`Invalid range: ${t}-${n}, no usable value in the ${J(c=Ge,pe,fl).call(c,r)} field`);return{min:s,max:o}},Vu=function(t,n,a,r,i,s){var c,d;if(s&&r>a-n+1)throw new Error(`Invalid step: ${r}, wider than the ${n}-${a} range of the ${J(c=Ge,pe,fl).call(c,i)} field`);let o=Math.floor(t*r),l=[];for(let m=Math.floor(n/r)*r+o;m<=a;m+=r)m>=n&&l.push(m);return l.length===0?String(J(d=Ge,pe,dl).call(d,t,n,a)):l.join(",")},pl=function(t,n){if(n>fh)throw new Error(`Constraint error, too many values in ${t} field, expected at most ${fh}`)},xh=function(t,n,a){var o,l;let r=[];function i(c,d){var m;if(Array.isArray(c))r.push(...c);else if(J(m=Ge,pe,Ih).call(m,d,c))r.push(c);else{let f=parseInt(c.toString(),10);if(!(f>=d.min&&f<=d.max))throw new Error(`Constraint error, got value ${c} expected range ${d.min}-${d.max}`);r.push(t===Mn.DayOfWeek?f%7:c)}}let s=n.split(",");for(let c of s){if(J(o=Ge,pe,pl).call(o,t,r.length),!(c.length>0))throw new Error("Invalid list value format");i(J(l=Ge,pe,bh).call(l,t,c,a),a)}return r},bh=function(t,n,a){var i,s;let r=n.split("/");if(r.length>2)throw new Error(`Invalid repeat: ${n}`);return r.length===2?(r[0].includes("-")||(r[0]=`${r[0]}-${a.max}`),J(i=Ge,pe,Wu).call(i,t,r[0],parseInt(r[1],10),a)):J(s=Ge,pe,Wu).call(s,t,n,1,a)},wh=function(t,n,a){if(!(!isNaN(t)&&!isNaN(n)&&t>=a.min&&n<=a.max))throw new Error(`Constraint error, got range ${t}-${n} expected range ${a.min}-${a.max}`);if(t>n)throw new Error(`Invalid range: ${t}-${n}, min(${t}) > max(${n})`)},Sh=function(t){if(!(!isNaN(t)&&t>0))throw new Error(`Constraint error, cannot repeat at every ${t} time.`)},Ch=function(t,n,a,r){let i=[];t===Mn.DayOfWeek&&a%7===0&&(a-n)%r===0&&i.push(0);for(let s=n;s<=a;s+=r)i.indexOf(s)===-1&&i.push(s);return i},Wu=function(t,n,a,r){let i=n.split("-");if(i.length<=1)return isNaN(+n)?n:+n;let[s,o]=i.map(l=>parseInt(l,10));return J(this,pe,wh).call(this,s,o,r),J(this,pe,Sh).call(this,a),J(this,pe,Ch).call(this,t,s,o,a)},vh=function(t){let n=t.split("#");if(n.length<=1)return{dayOfWeek:n[0]};let a=+n[n.length-1],r=t.match(/([,\-/])/);if(r!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${r?.[0]}\` special characters are incompatible`);if(!(n.length<=2&&!isNaN(a)&&a>=1&&a<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:n[0],nthDayOfWeek:a}},Ih=function(t,n){return t.chars.some(a=>n.toString().includes(a))},Ne(Ge,pe);var zu=Ge;Dn.CronExpressionParser=zu});var kh=O(()=>{u()});var Th=O(()=>{u()});var Dh=O(gl=>{"use strict";u();Object.defineProperty(gl,"__esModule",{value:!0});gl.CronFileParser=void 0;var tv=hl(),Cr,Hu,Mh,Oi=class Oi{static async parseFile(t){var r;let{readFile:n}=kh(),a=await n(t,"utf8");return J(r=Oi,Cr,Hu).call(r,a)}static parseFileSync(t){var r;let{readFileSync:n}=Th(),a=n(t,"utf8");return J(r=Oi,Cr,Hu).call(r,a)}};Cr=new WeakSet,Hu=function(t){var r;let n=t.split(`
4
- `),a={variables:{},expressions:[],errors:{}};for(let i of n){let s=i.trim();if(s.length===0||s.startsWith("#"))continue;let o=s.match(/^(.*)=(.*)$/);if(o){let[,l,c]=o;a.variables[l]=c.replace(/["']/g,"");continue}try{let l=J(r=Oi,Cr,Mh).call(r,s);a.expressions.push(l.interval)}catch(l){a.errors[s]=l}}return a},Mh=function(t){let n=t.split(/\s+/);return{interval:tv.CronExpressionParser.parse(n.slice(0,5).join(" ")),command:n.slice(5,n.length)}},Ne(Oi,Cr);var Bu=Oi;gl.CronFileParser=Bu});var Oh=O(Rt=>{"use strict";u();var nv=Rt&&Rt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),av=Rt&&Rt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&nv(t,e,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.CronFileParser=Rt.CronExpressionParser=Rt.CronExpression=Rt.CronFieldCollection=Rt.CronDate=void 0;var rv=hl(),iv=nl();Object.defineProperty(Rt,"CronDate",{enumerable:!0,get:function(){return iv.CronDate}});var sv=Ru();Object.defineProperty(Rt,"CronFieldCollection",{enumerable:!0,get:function(){return sv.CronFieldCollection}});var ov=Eu();Object.defineProperty(Rt,"CronExpression",{enumerable:!0,get:function(){return ov.CronExpression}});var lv=hl();Object.defineProperty(Rt,"CronExpressionParser",{enumerable:!0,get:function(){return lv.CronExpressionParser}});var cv=Dh();Object.defineProperty(Rt,"CronFileParser",{enumerable:!0,get:function(){return cv.CronFileParser}});av(cl(),Rt);Rt.default=rv.CronExpressionParser});var Ri=O((rN,vr)=>{"use strict";u();function Rh(e){return typeof e>"u"||e===null}function uv(e){return typeof e=="object"&&e!==null}function mv(e){return Array.isArray(e)?e:Rh(e)?[]:[e]}function dv(e,t){if(t){let n=Object.keys(t);for(let a=0,r=n.length;a<r;a+=1){let i=n[a];e[i]=t[i]}}return e}function fv(e,t){let n="";for(let a=0;a<t;a+=1)n+=e;return n}function pv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}vr.exports.isNothing=Rh;vr.exports.isObject=uv;vr.exports.toArray=mv;vr.exports.repeat=fv;vr.exports.isNegativeZero=pv;vr.exports.extend=dv});var Ni=O((sN,Eh)=>{"use strict";u();function Nh(e,t){let n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
5
-
6
- `+e.mark.snippet),a+" "+n):a}function zs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Nh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}zs.prototype=Object.create(Error.prototype);zs.prototype.constructor=zs;zs.prototype.toString=function(t){return this.name+": "+Nh(this,t)};Eh.exports=zs});var Ph=O((lN,Ah)=>{"use strict";u();var Ls=Ri();function $u(e,t,n,a,r){let i="",s="",o=Math.floor(r/2)-1;return a-t>o&&(i=" ... ",t=a-o+i.length),n-a>o&&(s=" ...",n=a+o-s.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+s,pos:a-t+i.length}}function qu(e,t){return Ls.repeat(" ",t-e.length)+e}function hv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);let n=/\r?\n|\r|\0/g,a=[0],r=[],i,s=-1;for(;i=n.exec(e.buffer);)r.push(i.index),a.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);let o="",l=Math.min(e.line+t.linesAfter,r.length).toString().length,c=t.maxLength-(t.indent+l+3);for(let m=1;m<=t.linesBefore&&!(s-m<0);m++){let f=$u(e.buffer,a[s-m],r[s-m],e.position-(a[s]-a[s-m]),c);o=Ls.repeat(" ",t.indent)+qu((e.line-m+1).toString(),l)+" | "+f.str+`
7
- `+o}let d=$u(e.buffer,a[s],r[s],e.position,c);o+=Ls.repeat(" ",t.indent)+qu((e.line+1).toString(),l)+" | "+d.str+`
8
- `,o+=Ls.repeat("-",t.indent+l+3+d.pos)+`^
9
- `;for(let m=1;m<=t.linesAfter&&!(s+m>=r.length);m++){let f=$u(e.buffer,a[s+m],r[s+m],e.position-(a[s]-a[s+m]),c);o+=Ls.repeat(" ",t.indent)+qu((e.line+m+1).toString(),l)+" | "+f.str+`
10
- `}return o.replace(/\n$/,"")}Ah.exports=hv});var Bt=O((uN,_h)=>{"use strict";u();var Fh=Ni(),gv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yv=["scalar","sequence","mapping"];function xv(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){t[String(a)]=n})}),t}function bv(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(gv.indexOf(n)===-1)throw new Fh('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=xv(t.styleAliases||null),yv.indexOf(this.kind)===-1)throw new Fh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}_h.exports=bv});var Gu=O((dN,Lh)=>{"use strict";u();var Vs=Ni(),Uu=Bt();function zh(e,t){let n=[];return e[t].forEach(function(a){let r=n.length;n.forEach(function(i,s){i.tag===a.tag&&i.kind===a.kind&&i.multi===a.multi&&(r=s)}),n[r]=a}),n}function wv(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(let n=0,a=arguments.length;n<a;n+=1)arguments[n].forEach(t);return e}function Yu(e){return this.extend(e)}Yu.prototype.extend=function(t){let n=[],a=[];if(t instanceof Uu)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new Vs("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof Uu))throw new Vs("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Vs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Vs("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(i){if(!(i instanceof Uu))throw new Vs("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let r=Object.create(Yu.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(a),r.compiledImplicit=zh(r,"implicit"),r.compiledExplicit=zh(r,"explicit"),r.compiledTypeMap=wv(r.compiledImplicit,r.compiledExplicit),r};Lh.exports=Yu});var Ku=O((pN,Vh)=>{"use strict";u();var Sv=Bt();Vh.exports=new Sv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Ju=O((gN,Wh)=>{"use strict";u();var Cv=Bt();Wh.exports=new Cv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var ju=O((xN,Bh)=>{"use strict";u();var vv=Bt();Bh.exports=new vv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Zu=O((wN,Hh)=>{"use strict";u();var Iv=Gu();Hh.exports=new Iv({explicit:[Ku(),Ju(),ju()]})});var Xu=O((CN,$h)=>{"use strict";u();var kv=Bt();function Tv(e){if(e===null)return!0;let t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Mv(){return null}function Dv(e){return e===null}$h.exports=new kv("tag:yaml.org,2002:null",{kind:"scalar",resolve:Tv,construct:Mv,predicate:Dv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Qu=O((IN,qh)=>{"use strict";u();var Ov=Bt();function Rv(e){if(e===null)return!1;let t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Nv(e){return e==="true"||e==="True"||e==="TRUE"}function Ev(e){return Object.prototype.toString.call(e)==="[object Boolean]"}qh.exports=new Ov("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Rv,construct:Nv,predicate:Ev,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var em=O((TN,Uh)=>{"use strict";u();var Av=Ri(),Pv=Bt();function Fv(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function _v(e){return e>=48&&e<=55}function zv(e){return e>=48&&e<=57}function Lv(e){if(e===null)return!1;let t=e.length,n=0,a=!1;if(!t)return!1;let r=e[n];if((r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++){if(r=e[n],r!=="0"&&r!=="1")return!1;a=!0}return a&&isFinite(Ws(e))}if(r==="x"){for(n++;n<t;n++){if(!Fv(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(Ws(e))}if(r==="o"){for(n++;n<t;n++){if(!_v(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(Ws(e))}}for(;n<t;n++){if(!zv(e.charCodeAt(n)))return!1;a=!0}return a?isFinite(Ws(e)):!1}function Ws(e){let t=e,n=1,a=t[0];if((a==="-"||a==="+")&&(a==="-"&&(n=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Vv(e){return Ws(e)}function Wv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Av.isNegativeZero(e)}Uh.exports=new Pv("tag:yaml.org,2002:int",{kind:"scalar",resolve:Lv,construct:Vv,predicate:Wv,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var tm=O((DN,Gh)=>{"use strict";u();var Yh=Ri(),Bv=Bt(),Hv=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),$v=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qv(e){return e===null||!Hv.test(e)?!1:isFinite(parseFloat(e,10))?!0:$v.test(e)}function Uv(e){let t=e.toLowerCase(),n=t[0]==="-"?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Yv=/^[-+]?[0-9]+e/;function Gv(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Yh.isNegativeZero(e))return"-0.0";let n=e.toString(10);return Yv.test(n)?n.replace("e",".e"):n}function Kv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Yh.isNegativeZero(e))}Gh.exports=new Bv("tag:yaml.org,2002:float",{kind:"scalar",resolve:qv,construct:Uv,predicate:Kv,represent:Gv,defaultStyle:"lowercase"})});var nm=O((RN,Kh)=>{"use strict";u();Kh.exports=Zu().extend({implicit:[Xu(),Qu(),em(),tm()]})});var am=O((EN,Jh)=>{"use strict";u();Jh.exports=nm()});var rm=O((PN,Xh)=>{"use strict";u();var Jv=Bt(),jh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Zh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function jv(e){return e===null?!1:jh.exec(e)!==null||Zh.exec(e)!==null}function Zv(e){let t=0,n=null,a=jh.exec(e);if(a===null&&(a=Zh.exec(e)),a===null)throw new Error("Date resolve error");let r=+a[1],i=+a[2]-1,s=+a[3];if(!a[4])return new Date(Date.UTC(r,i,s));let o=+a[4],l=+a[5],c=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+="0";t=+t}if(a[9]){let m=+a[10],f=+(a[11]||0);n=(m*60+f)*6e4,a[9]==="-"&&(n=-n)}let d=new Date(Date.UTC(r,i,s,o,l,c,t));return n&&d.setTime(d.getTime()-n),d}function Xv(e){return e.toISOString()}Xh.exports=new Jv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:jv,construct:Zv,instanceOf:Date,represent:Xv})});var im=O((_N,Qh)=>{"use strict";u();var Qv=Bt();function eI(e){return e==="<<"||e===null}Qh.exports=new Qv("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eI})});var om=O((LN,eg)=>{"use strict";u();var tI=Bt(),sm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
- \r`;function nI(e){if(e===null)return!1;let t=0,n=e.length,a=sm;for(let r=0;r<n;r++){let i=a.indexOf(e.charAt(r));if(!(i>64)){if(i<0)return!1;t+=6}}return t%8===0}function aI(e){let t=e.replace(/[\r\n=]/g,""),n=t.length,a=sm,r=0,i=[];for(let o=0;o<n;o++)o%4===0&&o&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|a.indexOf(t.charAt(o));let s=n%4*6;return s===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):s===18?(i.push(r>>10&255),i.push(r>>2&255)):s===12&&i.push(r>>4&255),new Uint8Array(i)}function rI(e){let t="",n=0,a=e.length,r=sm;for(let s=0;s<a;s++)s%3===0&&s&&(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]),n=(n<<8)+e[s];let i=a%3;return i===0?(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]):i===2?(t+=r[n>>10&63],t+=r[n>>4&63],t+=r[n<<2&63],t+=r[64]):i===1&&(t+=r[n>>2&63],t+=r[n<<4&63],t+=r[64],t+=r[64]),t}function iI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}eg.exports=new tI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nI,construct:aI,predicate:iI,represent:rI})});var lm=O((WN,ng)=>{"use strict";u();var sI=Bt(),tg=Object.prototype.hasOwnProperty,oI=Object.prototype.toString;function lI(e){if(e===null)return!0;let t={},n=e;for(let a=0,r=n.length;a<r;a+=1){let i=n[a],s=!1;if(oI.call(i)!=="[object Object]")return!1;let o;for(o in i)if(tg.call(i,o))if(!s)s=!0;else return!1;if(!s||tg.call(t,o))return!1;Object.defineProperty(t,o,{value:!0})}return!0}function cI(e){return e!==null?e:[]}ng.exports=new sI("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lI,construct:cI})});var cm=O((HN,ag)=>{"use strict";u();var uI=Bt(),mI=Object.prototype.toString;function dI(e){if(e===null)return!0;let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a];if(mI.call(i)!=="[object Object]")return!1;let s=Object.keys(i);if(s.length!==1)return!1;n[a]=[s[0],i[s[0]]]}return!0}function fI(e){if(e===null)return[];let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a],s=Object.keys(i);n[a]=[s[0],i[s[0]]]}return n}ag.exports=new uI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dI,construct:fI})});var um=O((qN,rg)=>{"use strict";u();var pI=Bt(),hI=Object.prototype.hasOwnProperty;function gI(e){if(e===null)return!0;let t=e;for(let n in t)if(hI.call(t,n)&&t[n]!==null)return!1;return!0}function yI(e){return e!==null?e:{}}rg.exports=new pI("tag:yaml.org,2002:set",{kind:"mapping",resolve:gI,construct:yI})});var yl=O((YN,ig)=>{"use strict";u();ig.exports=am().extend({implicit:[rm(),im()],explicit:[om(),lm(),cm(),um()]})});var Tg=O((KN,pm)=>{"use strict";u();var Ir=Ri(),pg=Ni(),xI=Ph(),bI=yl(),Kn=Object.prototype.hasOwnProperty,xl=1,hg=2,gg=3,bl=4,mm=1,wI=2,sg=3,SI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,CI=/[\x85\u2028\u2029]/,vI=/[,\[\]{}]/,yg=/^(?:!|!!|![0-9A-Za-z-]+!)$/,xg=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function og(e){return Object.prototype.toString.call(e)}function ca(e){return e===10||e===13}function ba(e){return e===9||e===32}function en(e){return e===9||e===32||e===10||e===13}function Ei(e){return e===44||e===91||e===93||e===123||e===125}function II(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function kI(e){return e===120?2:e===117?4:e===85?8:0}function TI(e){return e>=48&&e<=57?e-48:-1}function lg(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
12
- `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function MI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function bg(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var wg=new Array(256),Sg=new Array(256);for(let e=0;e<256;e++)wg[e]=lg(e)?1:0,Sg[e]=lg(e);function DI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||bI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys=="number"?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function Cg(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xI(n),new pg(t,n)}function ie(e,t){throw Cg(e,t)}function wl(e,t){e.onWarning&&e.onWarning.call(null,Cg(e,t))}function kr(e,t,n){let a=e.anchorMapTransactions;if(a.length!==0){let r=a[a.length-1];Kn.call(r,t)||(r[t]={existed:Kn.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function OI(e){e.anchorMapTransactions.push(Object.create(null))}function RI(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let a=n[n.length-1],r=Object.keys(t);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];Kn.call(a,o)||(a[o]=t[o])}}function NI(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let a=n.length-1;a>=0;a-=1){let r=t[n[a]];r.existed?e.anchorMap[n[a]]=r.value:delete e.anchorMap[n[a]]}}function vg(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function cg(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var ug={YAML:function(t,n,a){t.version!==null&&ie(t,"duplication of %YAML directive"),a.length!==1&&ie(t,"YAML directive accepts exactly one argument");let r=/^([0-9]+)\.([0-9]+)$/.exec(a[0]);r===null&&ie(t,"ill-formed argument of the YAML directive");let i=parseInt(r[1],10),s=parseInt(r[2],10);i!==1&&ie(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&wl(t,"unsupported YAML version of the document")},TAG:function(t,n,a){let r;a.length!==2&&ie(t,"TAG directive accepts exactly two arguments");let i=a[0];r=a[1],yg.test(i)||ie(t,"ill-formed tag handle (first argument) of the TAG directive"),Kn.call(t.tagMap,i)&&ie(t,'there is a previously declared suffix for "'+i+'" tag handle'),xg.test(r)||ie(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{ie(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Wa(e,t,n,a){if(t<n){let r=e.input.slice(t,n);if(a)for(let i=0,s=r.length;i<s;i+=1){let o=r.charCodeAt(i);o===9||o>=32&&o<=1114111||ie(e,"expected valid JSON character")}else SI.test(r)&&ie(e,"the stream contains non-printable characters");e.result+=r}}function mg(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&ie(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function dg(e,t,n,a){Ir.isObject(n)||ie(e,"cannot merge mappings; the provided source object is unacceptable"),mg(e);let r=Object.keys(n);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];mg(e),Kn.call(t,o)||(bg(t,o,n[o]),a[o]=!0)}}function Ai(e,t,n,a,r,i,s,o,l){if(Array.isArray(r)){r=Array.prototype.slice.call(r);for(let c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&ie(e,"nested arrays are not supported inside keys"),typeof r=="object"&&og(r[c])==="[object Object]"&&(r[c]="[object Object]")}if(typeof r=="object"&&og(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(i)){i.length>100&&ie(e,"abnormal merge sequence size");for(let c=0,d=i.length;c<d;c+=1)dg(e,t,i[c],n)}else dg(e,t,i,n);else!e.json&&!Kn.call(n,r)&&Kn.call(t,r)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,ie(e,"duplicated mapping key")),bg(t,r,i),delete n[r];return t}function dm(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ie(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ct(e,t,n){let a=0,r=e.input.charCodeAt(e.position);for(;r!==0;){for(;ba(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ca(r))for(dm(e),r=e.input.charCodeAt(e.position),a++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&wl(e,"deficient indentation"),a}function Sl(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||en(n)))}function fm(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ir.repeat(`
13
- `,t-1))}function EI(e,t,n){let a,r,i,s,o,l,c=e.kind,d=e.result,m=e.input.charCodeAt(e.position);if(en(m)||Ei(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96)return!1;if(m===63||m===45){let f=e.input.charCodeAt(e.position+1);if(en(f)||n&&Ei(f))return!1}for(e.kind="scalar",e.result="",a=r=e.position,i=!1;m!==0;){if(m===58){let f=e.input.charCodeAt(e.position+1);if(en(f)||n&&Ei(f))break}else if(m===35){let f=e.input.charCodeAt(e.position-1);if(en(f))break}else{if(e.position===e.lineStart&&Sl(e)||n&&Ei(m))break;if(ca(m))if(s=e.line,o=e.lineStart,l=e.lineIndent,Ct(e,!1,-1),e.lineIndent>=t){i=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=r,e.line=s,e.lineStart=o,e.lineIndent=l;break}}i&&(Wa(e,a,r,!1),fm(e,e.line-s),a=r=e.position,i=!1),ba(m)||(r=e.position+1),m=e.input.charCodeAt(++e.position)}return Wa(e,a,r,!1),e.result?!0:(e.kind=c,e.result=d,!1)}function AI(e,t){let n,a,r=e.input.charCodeAt(e.position);if(r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Wa(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,a=e.position;else return!0;else ca(r)?(Wa(e,n,a,!0),fm(e,Ct(e,!1,t)),n=a=e.position):e.position===e.lineStart&&Sl(e)?ie(e,"unexpected end of the document within a single quoted scalar"):(e.position++,ba(r)||(a=e.position));ie(e,"unexpected end of the stream within a single quoted scalar")}function PI(e,t){let n,a,r,i=e.input.charCodeAt(e.position);if(i!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(i=e.input.charCodeAt(e.position))!==0;){if(i===34)return Wa(e,n,e.position,!0),e.position++,!0;if(i===92){if(Wa(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),ca(i))Ct(e,!1,t);else if(i<256&&wg[i])e.result+=Sg[i],e.position++;else if((r=kI(i))>0){let s=r,o=0;for(;s>0;s--)i=e.input.charCodeAt(++e.position),(r=II(i))>=0?o=(o<<4)+r:ie(e,"expected hexadecimal character");e.result+=MI(o),e.position++}else ie(e,"unknown escape sequence");n=a=e.position}else ca(i)?(Wa(e,n,a,!0),fm(e,Ct(e,!1,t)),n=a=e.position):e.position===e.lineStart&&Sl(e)?ie(e,"unexpected end of the document within a double quoted scalar"):(e.position++,ba(i)||(a=e.position))}ie(e,"unexpected end of the stream within a double quoted scalar")}function FI(e,t){let n=!0,a,r,i,s=e.tag,o,l=e.anchor,c,d,m,f,g=Object.create(null),I,S,L,U=e.input.charCodeAt(e.position);if(U===91)c=93,f=!1,o=[];else if(U===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&kr(e,e.anchor,o),U=e.input.charCodeAt(++e.position);U!==0;){if(Ct(e,!0,t),U=e.input.charCodeAt(e.position),U===c)return e.position++,e.tag=s,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=o,!0;if(n?U===44&&ie(e,"expected the node content, but found ','"):ie(e,"missed comma between flow collection entries"),S=I=L=null,d=m=!1,U===63){let se=e.input.charCodeAt(e.position+1);en(se)&&(d=m=!0,e.position++,Ct(e,!0,t))}a=e.line,r=e.lineStart,i=e.position,Pi(e,t,xl,!1,!0),S=e.tag,I=e.result,Ct(e,!0,t),U=e.input.charCodeAt(e.position),(m||e.line===a)&&U===58&&(d=!0,U=e.input.charCodeAt(++e.position),Ct(e,!0,t),Pi(e,t,xl,!1,!0),L=e.result),f?Ai(e,o,g,S,I,L,a,r,i):d?o.push(Ai(e,null,g,S,I,L,a,r,i)):o.push(I),Ct(e,!0,t),U=e.input.charCodeAt(e.position),U===44?(n=!0,U=e.input.charCodeAt(++e.position)):n=!1}ie(e,"unexpected end of the stream within a flow collection")}function _I(e,t){let n,a=mm,r=!1,i=!1,s=t,o=0,l=!1,c,d=e.input.charCodeAt(e.position);if(d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)mm===a?a=d===43?sg:wI:ie(e,"repeat of a chomping mode identifier");else if((c=TI(d))>=0)c===0?ie(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?ie(e,"repeat of an indentation width identifier"):(s=t+c-1,i=!0);else break;if(ba(d)){do d=e.input.charCodeAt(++e.position);while(ba(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ca(d)&&d!==0)}for(;d!==0;){for(dm(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),ca(d)){o++;continue}if(!i&&s===0&&ie(e,"missing indentation for block scalar"),e.lineIndent<s){a===sg?e.result+=Ir.repeat(`
14
- `,r?1+o:o):a===mm&&r&&(e.result+=`
15
- `);break}n?ba(d)?(l=!0,e.result+=Ir.repeat(`
3
+ `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&Qb(e.body,"react-draggable-transparent-selection")}function Zd(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Xd(e)}):Xd(e)}function Xd(e){if(e)try{e.body&&ew(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function Qb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function ew(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function tw(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:rw(a);let r=Ec(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Vt(d.paddingLeft)+Vt(c.marginLeft),top:-r.offsetTop+Vt(d.paddingTop)+Vt(c.marginTop),right:Ub(l)-$b(r)-r.offsetLeft+Vt(d.paddingRight)-Vt(c.marginRight),bottom:qb(l)-Hb(r)-r.offsetTop+Vt(d.paddingBottom)-Vt(c.marginBottom)}}return Cs(a.right)&&(t=Math.min(t,a.right)),Cs(a.bottom)&&(n=Math.min(n,a.bottom)),Cs(a.left)&&(t=Math.max(t,a.left)),Cs(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Qd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function nw(e){return e.props.axis==="both"||e.props.axis==="x"}function aw(e){return e.props.axis==="both"||e.props.axis==="y"}function Tc(e,t,n){let a=typeof t=="number"?Jb(e,t):null;if(typeof t=="number"&&!a)return null;let r=Ec(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return Yb(a||e,i,n.props.scale)}function Mc(e,t,n){let a=!Cs(e.lastX),r=Ec(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Dc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function rw(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Ec(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Oc=fi(je()),Lt=fi(nr()),iw=fi(xs()),sw=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Qn=sw,$n={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Oa=$n.mouse,or=class extends Oc.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!jd(e.target,this.props.handle,t)||this.props.cancel&&jd(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=jb(e);this.touchIdentifier=a;let r=Tc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=Mc(this,i,s);Qn("DraggableCore: handleDragStart: %j",o),Qn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&Xb(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,kc(n,Oa.move,this.handleDrag),kc(n,Oa.stop,this.handleDragStop))},this.handleDrag=e=>{let t=Tc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Qd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=Mc(this,n,a);if(Qn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=Tc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Qd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=Mc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Zd(s.ownerDocument),Qn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Qn("DraggableCore: Removing handlers"),sr(s.ownerDocument,Oa.move,this.handleDrag),sr(s.ownerDocument,Oa.stop,this.handleDragStop))},this.onMouseDown=e=>(Oa=$n.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Oa=$n.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Oa=$n.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Oa=$n.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&kc(e,$n.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;sr(t,$n.mouse.move,this.handleDrag),sr(t,$n.touch.move,this.handleDrag),sr(t,$n.mouse.stop,this.handleDragStop),sr(t,$n.touch.stop,this.handleDragStop),sr(e,$n.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Zd(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=iw.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Qn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return Oc.cloneElement(Oc.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};or.displayName="DraggableCore";or.propTypes={allowAnyClick:Lt.default.bool,allowMobileScroll:Lt.default.bool,children:Lt.default.node.isRequired,disabled:Lt.default.bool,enableUserSelectHack:Lt.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Lt.default.arrayOf(Lt.default.number),handle:Lt.default.string,cancel:Lt.default.string,nodeRef:Lt.default.object,nonce:Lt.default.string,onStart:Lt.default.func,onDrag:Lt.default.func,onStop:Lt.default.func,onMouseDown:Lt.default.func,scale:Lt.default.number,className:di,style:di,transform:di};or.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var Mo=class extends ko.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Qn("Draggable: onDragStart: %j",n),this.props.onStart(t,Dc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Qn("Draggable: onDrag: %j",n);let a=Dc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=tw(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,Dc(this,n))===!1)return!1;Qn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Qn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=_b.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,I=!!!o||this.state.dragging,C=o||a,L={x:nw(this)&&I?this.state.x:C.x,y:aw(this)&&I?this.state.y:C.y};this.state.isElementSVG?f=Kb(L,l):m=Gb(L,l);let U=ko.Children.only(n),se=(0,zb.clsx)(U.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return ko.createElement(or,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},ko.cloneElement(U,{className:se,style:{...U.props.style,...m},transform:f}))}};Mo.displayName="Draggable";Mo.propTypes={...or.propTypes,axis:st.default.oneOf(["both","x","y","none"]),bounds:st.default.oneOfType([st.default.shape({left:st.default.number,right:st.default.number,top:st.default.number,bottom:st.default.number}),st.default.string,st.default.oneOf([!1])]),defaultClassName:st.default.string,defaultClassNameDragging:st.default.string,defaultClassNameDragged:st.default.string,defaultPosition:st.default.shape({x:st.default.number,y:st.default.number}),positionOffset:st.default.shape({x:st.default.oneOfType([st.default.number,st.default.string]),y:st.default.oneOfType([st.default.number,st.default.string])}),position:st.default.shape({x:st.default.number,y:st.default.number}),className:di,style:di,transform:di};Mo.defaultProps={...or.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}});var Ac=O((GO,Do)=>{"use strict";u();var Nc=sf(),ow=Nc.DraggableCore,of=Nc.default||Nc;Do.exports=of;Do.exports.default=of;Do.exports.DraggableCore=ow});var uf=O(Pc=>{"use strict";u();Pc.__esModule=!0;Pc.cloneElement=fw;var lw=cw(je());function cw(e){return e&&e.__esModule?e:{default:e}}function lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function cf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lf(Object(n),!0).forEach(function(a){uw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function uw(e,t,n){return(t=mw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mw(e){var t=dw(e,"string");return typeof t=="symbol"?t:t+""}function dw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fw(e,t){return t.style&&e.props.style&&(t.style=cf(cf({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),lw.default.cloneElement(e,t)}});var Fc=O(Oo=>{"use strict";u();Oo.__esModule=!0;Oo.resizableProps=void 0;var Te=pw(nr()),ZO=Ac();function pw(e){return e&&e.__esModule?e:{default:e}}var XO=Oo.resizableProps={axis:Te.default.oneOf(["both","x","y","none"]),className:Te.default.string,children:Te.default.element.isRequired,draggableOpts:Te.default.shape({allowAnyClick:Te.default.bool,cancel:Te.default.string,children:Te.default.node,disabled:Te.default.bool,enableUserSelectHack:Te.default.bool,offsetParent:typeof Element<"u"?Te.default.instanceOf(Element):Te.default.any,grid:Te.default.arrayOf(Te.default.number),handle:Te.default.string,nodeRef:Te.default.object,onStart:Te.default.func,onDrag:Te.default.func,onStop:Te.default.func,onMouseDown:Te.default.func,scale:Te.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="y"?Te.default.number.isRequired(...t):Te.default.number(...t)},handle:Te.default.oneOfType([Te.default.node,Te.default.func]),handleSize:Te.default.arrayOf(Te.default.number),lockAspectRatio:Te.default.bool,maxConstraints:Te.default.arrayOf(Te.default.number),minConstraints:Te.default.arrayOf(Te.default.number),onResizeStop:Te.default.func,onResizeStart:Te.default.func,onResize:Te.default.func,resizeHandles:Te.default.arrayOf(Te.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Te.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="x"?Te.default.number.isRequired(...t):Te.default.number(...t)}}});var Lc=O(Ro=>{"use strict";u();Ro.__esModule=!0;Ro.default=void 0;var pi=df(je()),hw=Ac(),gw=uf(),yw=Fc(),xw=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function df(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(df=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},zc.apply(null,arguments)}function bw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function _c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mf(Object(n),!0).forEach(function(a){ww(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mf(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ww(e,t,n){return(t=Cw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cw(e){var t=Sw(e,"string");return typeof t=="symbol"?t:t+""}function Sw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ss=class extends pi.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(t,n){let a=this.props,r=a.minConstraints,i=a.maxConstraints,s=a.lockAspectRatio;if(!r&&!i&&!s)return[t,n];if(s){let f=this.props.width/this.props.height,g=t-this.props.width,I=n-this.props.height;Math.abs(g)>Math.abs(I*f)?n=t/f:t=n*f}let o=t,l=n,c=this.slack||[0,0],d=c[0],m=c[1];return t+=d,n+=m,r&&(t=Math.max(r[0],t),n=Math.max(r[1],n)),i&&(t=Math.min(i[0],t),n=Math.min(i[1],n)),this.slack=[d+(o-t),m+(l-n)],[t,n]}resizeHandler(t,n){return(a,r)=>{var i,s,o,l;let c=r.node,d=r.deltaX,m=r.deltaY;t==="onResizeStart"&&this.resetData();let f=(this.props.axis==="both"||this.props.axis==="x")&&n!=="n"&&n!=="s",g=(this.props.axis==="both"||this.props.axis==="y")&&n!=="e"&&n!=="w";if(!f&&!g)return;let I=n[0],C=n[n.length-1],L=c.getBoundingClientRect();if(this.lastHandleRect!=null){if(C==="w"){let V=L.left-this.lastHandleRect.left;d+=V}if(I==="n"){let V=L.top-this.lastHandleRect.top;m+=V}}this.lastHandleRect=L,C==="w"&&(d=-d),I==="n"&&(m=-m);let U=(i=(s=this.lastSize)==null?void 0:s.width)!=null?i:this.props.width,se=(o=(l=this.lastSize)==null?void 0:l.height)!=null?o:this.props.height,le=U+(f?d/this.props.transformScale:0),$=se+(g?m/this.props.transformScale:0);var me=this.runConstraints(le,$);if(le=me[0],$=me[1],t==="onResizeStop"&&this.lastSize){var E=this.lastSize;le=E.width,$=E.height}let oe=le!==U||$!==se;t!=="onResizeStop"&&(this.lastSize={width:le,height:$});let Se=typeof this.props[t]=="function"?this.props[t]:null;Se&&!(t==="onResize"&&!oe)&&(a.persist==null||a.persist(),Se(a,{node:c,size:{width:le,height:$},handle:n})),t==="onResizeStop"&&this.resetData()}}renderResizeHandle(t,n){let a=this.props.handle;if(!a)return pi.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if(typeof a=="function")return a(t,n);let r=typeof a.type=="string",i=_c({ref:n},r?{}:{handleAxis:t});return pi.cloneElement(a,i)}render(){let t=this.props,n=t.children,a=t.className,r=t.draggableOpts,i=t.width,s=t.height,o=t.handle,l=t.handleSize,c=t.lockAspectRatio,d=t.axis,m=t.minConstraints,f=t.maxConstraints,g=t.onResize,I=t.onResizeStop,C=t.onResizeStart,L=t.resizeHandles,U=t.transformScale,se=bw(t,xw);return(0,gw.cloneElement)(n,_c(_c({},se),{},{className:(a?a+" ":"")+"react-resizable",children:[...pi.Children.toArray(n.props.children),...L.map(le=>{var $;let me=($=this.handleRefs[le])!=null?$:this.handleRefs[le]=pi.createRef();return pi.createElement(hw.DraggableCore,zc({},r,{nodeRef:me,key:"resizableHandle-"+le,onStop:this.resizeHandler("onResizeStop",le),onStart:this.resizeHandler("onResizeStart",le),onDrag:this.resizeHandler("onResize",le)}),this.renderResizeHandle(le,me))})]}))}};Ro.default=Ss;Ss.propTypes=yw.resizableProps;Ss.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}});var gf=O(Ao=>{"use strict";u();Ao.__esModule=!0;Ao.default=void 0;var Vc=hf(je()),vw=pf(nr()),Iw=pf(Lc()),kw=Fc(),Tw=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function pf(e){return e&&e.__esModule?e:{default:e}}function hf(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(hf=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Wc.apply(null,arguments)}function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ff(Object(n),!0).forEach(function(a){Mw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Mw(e,t,n){return(t=Dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dw(e){var t=Ow(e,"string");return typeof t=="symbol"?t:t+""}function Ow(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var No=class extends Vc.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(t,n)=>{let a=n.size;this.props.onResize?(t.persist==null||t.persist(),this.setState(a,()=>this.props.onResize&&this.props.onResize(t,n))):this.setState(a)}}static getDerivedStateFromProps(t,n){return n.propsWidth!==t.width||n.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null}render(){let t=this.props,n=t.handle,a=t.handleSize,r=t.onResize,i=t.onResizeStart,s=t.onResizeStop,o=t.draggableOpts,l=t.minConstraints,c=t.maxConstraints,d=t.lockAspectRatio,m=t.axis,f=t.width,g=t.height,I=t.resizeHandles,C=t.style,L=t.transformScale,U=Rw(t,Tw);return Vc.createElement(Iw.default,{axis:m,draggableOpts:o,handle:n,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:l,onResizeStart:i,onResize:this.onResize,onResizeStop:s,resizeHandles:I,transformScale:L,width:this.state.width},Vc.createElement("div",Wc({},U,{style:Eo(Eo({},C),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};Ao.default=No;No.propTypes=Eo(Eo({},kw.resizableProps),{},{children:vw.default.element})});var yf=O((iR,Po)=>{"use strict";u();Po.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};Po.exports.Resizable=Lc().default;Po.exports.ResizableBox=gf().default});var Cf=O(wf=>{"use strict";u();Object.defineProperty(wf,"__esModule",{value:!0})});var Ra=O(_o=>{"use strict";u();Object.defineProperty(_o,"__esModule",{value:!0});_o.CronField=void 0;var vs,Is,hi,aa,Fo,Sf,Hc=class Hc{constructor(t,n={rawValue:""}){Ee(this,Fo);Ee(this,vs,!1);Ee(this,Is,!1);Ee(this,hi,!1);Ee(this,aa,[]);Lm(this,"options",{rawValue:""});if(!Array.isArray(t))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(t.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...n,rawValue:n.rawValue??""},ae(this,aa,[...t].sort(Hc.sorter)),ae(this,hi,this.options.wildcard!==void 0?this.options.wildcard:J(this,Fo,Sf).call(this)),ae(this,vs,this.options.rawValue.includes("L")||t.includes("L")),ae(this,Is,this.options.rawValue.includes("?")||t.includes("?"))}static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return T(this,vs)}get hasQuestionMarkChar(){return T(this,Is)}get isWildcard(){return T(this,hi)}get values(){return T(this,aa)}static sorter(t,n){let a=typeof t=="number",r=typeof n=="number";return a&&r?t-n:!a&&!r?t.localeCompare(n):a?-1:1}static findNearestValueInList(t,n,a){if(a){for(let r=t.length-1;r>=0;r--)if(t[r]<n)return t[r];return null}for(let r=0;r<t.length;r++)if(t[r]>n)return t[r];return null}findNearestValue(t,n){return this.constructor.findNearestValueInList(this.values,t,n)}serialize(){return{wildcard:T(this,hi),values:T(this,aa)}}validate(){let t,n=this.chars.length>0?` or chars ${this.chars.join("")}`:"",a=o=>l=>new RegExp(`^\\d{0,2}${l}$`).test(o),r=o=>(t=o,typeof o=="number"?o>=this.min&&o<=this.max:this.chars.some(a(o)));if(!T(this,aa).every(r))throw new Error(`${this.constructor.name} Validation error, got value ${t} expected range ${this.min}-${this.max}${n}`);let s=T(this,aa).find((o,l)=>T(this,aa).indexOf(o)!==l);if(s!==void 0)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}};vs=new WeakMap,Is=new WeakMap,hi=new WeakMap,aa=new WeakMap,Fo=new WeakSet,Sf=function(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(t,n)=>n+this.min).every(t=>T(this,aa).includes(t))};var Bc=Hc;_o.CronField=Bc});var Xp=O(gn=>{"use strict";u();Object.defineProperty(gn,"__esModule",{value:!0});var ya=class extends Error{},Xc=class extends ya{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Qc=class extends ya{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},eu=class extends ya{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Aa=class extends ya{},qo=class extends ya{constructor(t){super(`Invalid unit ${t}`)}},Ot=class extends ya{},ra=class extends ya{constructor(){super("Zone is an abstract class")}},Z="numeric",Yn="short",pn="long",Uo={year:Z,month:Z,day:Z},Qf={year:Z,month:Yn,day:Z},Pw={year:Z,month:Yn,day:Z,weekday:Yn},ep={year:Z,month:pn,day:Z},tp={year:Z,month:pn,day:Z,weekday:pn},np={hour:Z,minute:Z},ap={hour:Z,minute:Z,second:Z},rp={hour:Z,minute:Z,second:Z,timeZoneName:Yn},ip={hour:Z,minute:Z,second:Z,timeZoneName:pn},sp={hour:Z,minute:Z,hourCycle:"h23"},op={hour:Z,minute:Z,second:Z,hourCycle:"h23"},lp={hour:Z,minute:Z,second:Z,hourCycle:"h23",timeZoneName:Yn},cp={hour:Z,minute:Z,second:Z,hourCycle:"h23",timeZoneName:pn},up={year:Z,month:Z,day:Z,hour:Z,minute:Z},mp={year:Z,month:Z,day:Z,hour:Z,minute:Z,second:Z},dp={year:Z,month:Yn,day:Z,hour:Z,minute:Z},fp={year:Z,month:Yn,day:Z,hour:Z,minute:Z,second:Z},Fw={year:Z,month:Yn,day:Z,weekday:Yn,hour:Z,minute:Z},pp={year:Z,month:pn,day:Z,hour:Z,minute:Z,timeZoneName:Yn},hp={year:Z,month:pn,day:Z,hour:Z,minute:Z,second:Z,timeZoneName:Yn},gp={year:Z,month:pn,day:Z,weekday:pn,hour:Z,minute:Z,timeZoneName:pn},yp={year:Z,month:pn,day:Z,weekday:pn,hour:Z,minute:Z,second:Z,timeZoneName:pn},Fa=class{get type(){throw new ra}get name(){throw new ra}get ianaName(){return this.name}get isUniversal(){throw new ra}offsetName(t,n){throw new ra}formatOffset(t,n){throw new ra}offset(t){throw new ra}equals(t){throw new ra}get isValid(){throw new ra}},$c=null,Rs=class e extends Fa{static get instance(){return $c===null&&($c=new e),$c}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return Dp(t,n,a)}formatOffset(t,n){return Os(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},tu=new Map;function _w(e){let t=tu.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),tu.set(e,t)),t}var zw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Lw(e,t){let n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,s,o,l,c,d]=a;return[s,r,i,o,l,c,d]}function Vw(e,t){let n=e.formatToParts(t),a=[];for(let r=0;r<n.length;r++){let{type:i,value:s}=n[r],o=zw[i];i==="era"?a[o]=s:ge(o)||(a[o]=parseInt(s,10))}return a}var qc=new Map,xa=class e extends Fa{static create(t){let n=qc.get(t);return n===void 0&&qc.set(t,n=new e(t)),n}static resetCache(){qc.clear(),tu.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return Dp(t,n,a,this.name)}formatOffset(t,n){return Os(this.offset(t),n)}offset(t){if(!this.valid)return NaN;let n=new Date(t);if(isNaN(n))return NaN;let a=_w(this.name),[r,i,s,o,l,c,d]=a.formatToParts?Vw(a,n):Lw(a,n);o==="BC"&&(r=-Math.abs(r)+1);let f=Xo({year:r,month:i,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0}),g=+n,I=g%1e3;return g-=I>=0?I:1e3+I,(f-g)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},vf={};function Ww(e,t={}){let n=JSON.stringify([e,t]),a=vf[n];return a||(a=new Intl.ListFormat(e,t),vf[n]=a),a}var nu=new Map;function au(e,t={}){let n=JSON.stringify([e,t]),a=nu.get(n);return a===void 0&&(a=new Intl.DateTimeFormat(e,t),nu.set(n,a)),a}var ru=new Map;function Bw(e,t={}){let n=JSON.stringify([e,t]),a=ru.get(n);return a===void 0&&(a=new Intl.NumberFormat(e,t),ru.set(n,a)),a}var iu=new Map;function Hw(e,t={}){let{base:n,...a}=t,r=JSON.stringify([e,a]),i=iu.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),iu.set(r,i)),i}var Ts=null;function $w(){return Ts||(Ts=new Intl.DateTimeFormat().resolvedOptions().locale,Ts)}var su=new Map;function xp(e){let t=su.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),su.set(e,t)),t}var ou=new Map;function qw(e){let t=ou.get(e);if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...bp,...t}),ou.set(e,t)}return t}function Uw(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(n===-1)return[e];{let a,r;try{a=au(e).resolvedOptions(),r=e}catch{let l=e.substring(0,n);a=au(l).resolvedOptions(),r=l}let{numberingSystem:i,calendar:s}=a;return[r,i,s]}}function Yw(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Gw(e){let t=[];for(let n=1;n<=12;n++){let a=ct.utc(2009,n,1);t.push(e(a))}return t}function Kw(e){let t=[];for(let n=1;n<=7;n++){let a=ct.utc(2016,11,13+n);t.push(e(a))}return t}function zo(e,t,n,a){let r=e.listingMode();return r==="error"?null:r==="en"?n(t):a(t)}function Jw(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||xp(e.locale).numberingSystem==="latn"}var lu=class{constructor(t,n,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:i,...s}=a;if(!n||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=Bw(t,o)}}format(t){if(this.inf){let n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{let n=this.floor?Math.floor(t):bu(t,3);return St(n,this.padTo)}}},cu=class{constructor(t,n,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&xa.create(o).valid?(r=o,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=au(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:a}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},uu=class{constructor(t,n,a){this.opts={style:"long",...a},!n&&Tp()&&(this.rtf=Hw(t,a))}format(t,n){return this.rtf?this.rtf.format(t,n):gC(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}},bp={firstDay:1,minimalDays:4,weekend:[6,7]},Ze=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,a,r,i=!1){let s=t||ot.defaultLocale,o=s||(i?"en-US":$w()),l=n||ot.defaultNumberingSystem,c=a||ot.defaultOutputCalendar,d=du(r)||ot.defaultWeekSettings;return new e(o,l,c,d,s)}static resetCache(){Ts=null,nu.clear(),ru.clear(),iu.clear(),su.clear(),ou.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:a,weekSettings:r}={}){return e.create(t,n,a,r)}constructor(t,n,a,r,i){let[s,o,l]=Uw(t);this.locale=s,this.numberingSystem=n||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=Yw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Jw(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,du(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return zo(this,t,Ep,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");n&=!a;let r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][t]=Gw(s)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return zo(this,t,Pp,()=>{let a=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=Kw(i=>this.extract(i,a,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return zo(this,void 0,()=>Fp,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ct.utc(2016,11,13,9),ct.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return zo(this,t,_p,()=>{let n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ct.utc(-40,1,1),ct.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[t]})}extract(t,n,a){let r=this.dtFormatter(t,n),i=r.formatToParts(),s=i.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(t={}){return new lu(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new cu(t,this.intl,n)}relFormatter(t={}){return new uu(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Ww(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||xp(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Mp()?qw(this.locale):bp}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Uc=null,hn=class e extends Fa{static get utcInstance(){return Uc===null&&(Uc=new e(0)),Uc}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Qo(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Os(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Os(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Os(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Yo=class extends Fa{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Na(e,t){if(ge(e)||e===null)return t;if(e instanceof Fa)return e;if(tC(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Rs.instance:n==="utc"||n==="gmt"?hn.utcInstance:hn.parseSpecifier(n)||xa.create(e)}else return Pa(e)?hn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Yo(e)}var hu={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},If={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},jw=hu.hanidec.replace(/[\[|\]]/g,"").split("");function Zw(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(e[n].search(hu.hanidec)!==-1)t+=jw.indexOf(e[n]);else for(let r in If){let[i,s]=If[r];a>=i&&a<=s&&(t+=a-i)}}return parseInt(t,10)}else return t}var mu=new Map;function Xw(){mu.clear()}function qn({numberingSystem:e},t=""){let n=e||"latn",a=mu.get(n);a===void 0&&(a=new Map,mu.set(n,a));let r=a.get(t);return r===void 0&&(r=new RegExp(`${hu[n]}${t}`),a.set(t,r)),r}var kf=()=>Date.now(),Tf="system",Mf=null,Df=null,Of=null,Rf=60,Ef,Nf=null,ot=class{static get now(){return kf}static set now(t){kf=t}static set defaultZone(t){Tf=t}static get defaultZone(){return Na(Tf,Rs.instance)}static get defaultLocale(){return Mf}static set defaultLocale(t){Mf=t}static get defaultNumberingSystem(){return Df}static set defaultNumberingSystem(t){Df=t}static get defaultOutputCalendar(){return Of}static set defaultOutputCalendar(t){Of=t}static get defaultWeekSettings(){return Nf}static set defaultWeekSettings(t){Nf=du(t)}static get twoDigitCutoffYear(){return Rf}static set twoDigitCutoffYear(t){Rf=t%100}static get throwOnInvalid(){return Ef}static set throwOnInvalid(t){Ef=t}static resetCaches(){Ze.resetCache(),xa.resetCache(),ct.resetCache(),Xw()}},fn=class{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},wp=[0,31,59,90,120,151,181,212,243,273,304,334],Cp=[0,31,60,91,121,152,182,213,244,274,305,335];function kn(e,t){return new fn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function gu(e,t,n){let a=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function Sp(e,t,n){return n+(Ns(e)?Cp:wp)[t-1]}function vp(e,t){let n=Ns(e)?Cp:wp,a=n.findIndex(i=>i<t),r=t-n[a];return{month:a+1,day:r}}function yu(e,t){return(e-t+7)%7+1}function Go(e,t=4,n=1){let{year:a,month:r,day:i}=e,s=Sp(a,r,i),o=yu(gu(a,r,i),n),l=Math.floor((s-o+14-t)/7),c;return l<1?(c=a-1,l=Es(c,t,n)):l>Es(a,t,n)?(c=a+1,l=1):c=a,{weekYear:c,weekNumber:l,weekday:o,...el(e)}}function Af(e,t=4,n=1){let{weekYear:a,weekNumber:r,weekday:i}=e,s=yu(gu(a,1,t),n),o=bi(a),l=r*7+i-s-7+t,c;l<1?(c=a-1,l+=bi(c)):l>o?(c=a+1,l-=bi(a)):c=a;let{month:d,day:m}=vp(c,l);return{year:c,month:d,day:m,...el(e)}}function Yc(e){let{year:t,month:n,day:a}=e,r=Sp(t,n,a);return{year:t,ordinal:r,...el(e)}}function Pf(e){let{year:t,ordinal:n}=e,{month:a,day:r}=vp(t,n);return{year:t,month:a,day:r,...el(e)}}function Ff(e,t){if(!ge(e.localWeekday)||!ge(e.localWeekNumber)||!ge(e.localWeekYear)){if(!ge(e.weekday)||!ge(e.weekNumber)||!ge(e.weekYear))throw new Aa("Cannot mix locale-based week fields with ISO-based week fields");return ge(e.localWeekday)||(e.weekday=e.localWeekday),ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Qw(e,t=4,n=1){let a=Zo(e.weekYear),r=Tn(e.weekNumber,1,Es(e.weekYear,t,n)),i=Tn(e.weekday,1,7);return a?r?i?!1:kn("weekday",e.weekday):kn("week",e.weekNumber):kn("weekYear",e.weekYear)}function eC(e){let t=Zo(e.year),n=Tn(e.ordinal,1,bi(e.year));return t?n?!1:kn("ordinal",e.ordinal):kn("year",e.year)}function Ip(e){let t=Zo(e.year),n=Tn(e.month,1,12),a=Tn(e.day,1,Ko(e.year,e.month));return t?n?a?!1:kn("day",e.day):kn("month",e.month):kn("year",e.year)}function kp(e){let{hour:t,minute:n,second:a,millisecond:r}=e,i=Tn(t,0,23)||t===24&&n===0&&a===0&&r===0,s=Tn(n,0,59),o=Tn(a,0,59),l=Tn(r,0,999);return i?s?o?l?!1:kn("millisecond",r):kn("second",a):kn("minute",n):kn("hour",t)}function ge(e){return typeof e>"u"}function Pa(e){return typeof e=="number"}function Zo(e){return typeof e=="number"&&e%1===0}function tC(e){return typeof e=="string"}function nC(e){return Object.prototype.toString.call(e)==="[object Date]"}function Tp(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Mp(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function aC(e){return Array.isArray(e)?e:[e]}function _f(e,t,n){if(e.length!==0)return e.reduce((a,r)=>{let i=[t(r),r];return a&&n(a[0],i[0])===a[0]?a:i},null)[1]}function rC(e,t){return t.reduce((n,a)=>(n[a]=e[a],n),{})}function Ci(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function du(e){if(e==null)return null;if(typeof e!="object")throw new Ot("Week settings must be an object");if(!Tn(e.firstDay,1,7)||!Tn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Tn(t,1,7)))throw new Ot("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Tn(e,t,n){return Zo(e)&&e>=t&&e<=n}function iC(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){let n=e<0,a;return n?a="-"+(""+-e).padStart(t,"0"):a=(""+e).padStart(t,"0"),a}function Ea(e){if(!(ge(e)||e===null||e===""))return parseInt(e,10)}function lr(e){if(!(ge(e)||e===null||e===""))return parseFloat(e)}function xu(e){if(!(ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function bu(e,t,n="round"){let a=10**t;switch(n){case"expand":return e>0?Math.ceil(e*a)/a:Math.floor(e*a)/a;case"trunc":return Math.trunc(e*a)/a;case"round":return Math.round(e*a)/a;case"floor":return Math.floor(e*a)/a;case"ceil":return Math.ceil(e*a)/a;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ns(e){return e%4===0&&(e%100!==0||e%400===0)}function bi(e){return Ns(e)?366:365}function Ko(e,t){let n=iC(t-1,12)+1,a=e+(t-n)/12;return n===2?Ns(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Xo(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function zf(e,t,n){return-yu(gu(e,1,t),n)+t-1}function Es(e,t=4,n=1){let a=zf(e,t,n),r=zf(e+1,t,n);return(bi(e)-a+r)/7}function fu(e){return e>99?e:e>ot.twoDigitCutoffYear?1900+e:2e3+e}function Dp(e,t,n,a=null){let r=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(i.timeZone=a);let s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Qo(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let a=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-a:a;return n*60+r}function Op(e){let t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new Ot(`Invalid unit value ${e}`);return t}function Jo(e,t){let n={};for(let a in e)if(Ci(e,a)){let r=e[a];if(r==null)continue;n[t(a)]=Op(r)}return n}function Os(e,t){let n=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${St(n,2)}:${St(a,2)}`;case"narrow":return`${r}${n}${a>0?`:${a}`:""}`;case"techie":return`${r}${St(n,2)}${St(a,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function el(e){return rC(e,["hour","minute","second","millisecond"])}var sC=["January","February","March","April","May","June","July","August","September","October","November","December"],Rp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],oC=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ep(e){switch(e){case"narrow":return[...oC];case"short":return[...Rp];case"long":return[...sC];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Np=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ap=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lC=["M","T","W","T","F","S","S"];function Pp(e){switch(e){case"narrow":return[...lC];case"short":return[...Ap];case"long":return[...Np];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Fp=["AM","PM"],cC=["Before Christ","Anno Domini"],uC=["BC","AD"],mC=["B","A"];function _p(e){switch(e){case"narrow":return[...mC];case"short":return[...uC];case"long":return[...cC];default:return null}}function dC(e){return Fp[e.hour<12?0:1]}function fC(e,t){return Pp(t)[e.weekday-1]}function pC(e,t){return Ep(t)[e.month-1]}function hC(e,t){return _p(t)[e.year<0?0:1]}function gC(e,t,n="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){let m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${r[e][0]}`;case-1:return m?"yesterday":`last ${r[e][0]}`;case 0:return m?"today":`this ${r[e][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,c=r[e],d=a?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return s?`${o} ${d} ago`:`in ${o} ${d}`}function Lf(e,t){let n="";for(let a of e)a.literal?n+=a.val:n+=t(a.val);return n}var yC={D:Uo,DD:Qf,DDD:ep,DDDD:tp,t:np,tt:ap,ttt:rp,tttt:ip,T:sp,TT:op,TTT:lp,TTTT:cp,f:up,ff:dp,fff:pp,ffff:gp,F:mp,FF:fp,FFF:hp,FFFF:yp},dn=class e{static create(t,n={}){return new e(t,n)}static parseFormat(t){let n=null,a="",r=!1,i=[];for(let s=0;s<t.length;s++){let o=t.charAt(s);o==="'"?((a.length>0||r)&&i.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),n=null,a="",r=!r):r||o===n?a+=o:(a.length>0&&i.push({literal:/^\s+$/.test(a),val:a}),a=o,n=o)}return a.length>0&&i.push({literal:r||/^\s+$/.test(a),val:a}),i}static macroTokenToFormatOpts(t){return yC[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,a=void 0){if(this.opts.forceSimple)return St(t,n);let r={...this.opts};return n>0&&(r.padTo=n),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(g,I)=>this.loc.extract(t,g,I),s=g=>t.isOffsetFixed&&t.offset===0&&g.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,g.format):"",o=()=>a?dC(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(g,I)=>a?pC(t,g):i(I?{month:g}:{month:g,day:"numeric"},"month"),c=(g,I)=>a?fC(t,g):i(I?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),d=g=>{let I=e.macroTokenToFormatOpts(g);return I?this.formatWithSystemDefault(t,I):g},m=g=>a?hC(t,g):i({era:g},"era"),f=g=>{switch(g){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(g)}};return Lf(e.parseFormat(n),f)}formatDurationFromString(t,n){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>f=>{let g=r(f);if(g){let I=m.isNegativeDuration&&g!==m.largestUnit?a:1,C;return this.opts.signMode==="negativeLargestOnly"&&g!==m.largestUnit?C="never":this.opts.signMode==="all"?C="always":C="auto",this.num(d.get(g)*I,f.length,C)}else return f},s=e.parseFormat(n),o=s.reduce((d,{literal:m,val:f})=>m?d:d.concat(f),[]),l=t.shiftTo(...o.map(r).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Lf(s,i(l,c))}},zp=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Si(...e){let t=e.reduce((n,a)=>n+a.source,"");return RegExp(`^${t}$`)}function vi(...e){return t=>e.reduce(([n,a,r],i)=>{let[s,o,l]=i(t,r);return[{...n,...s},o||a,l]},[{},null,1]).slice(0,2)}function Ii(e,...t){if(e==null)return[null,null];for(let[n,a]of t){let r=n.exec(e);if(r)return a(r)}return[null,null]}function Lp(...e){return(t,n)=>{let a={},r;for(r=0;r<e.length;r++)a[e[r]]=Ea(t[n+r]);return[a,null,n+r]}}var Vp=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,xC=`(?:${Vp.source}?(?:\\[(${zp.source})\\])?)?`,wu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Wp=RegExp(`${wu.source}${xC}`),Cu=RegExp(`(?:[Tt]${Wp.source})?`),bC=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wC=/(\d{4})-?W(\d\d)(?:-?(\d))?/,CC=/(\d{4})-?(\d{3})/,SC=Lp("weekYear","weekNumber","weekDay"),vC=Lp("year","ordinal"),IC=/(\d{4})-(\d\d)-(\d\d)/,Bp=RegExp(`${wu.source} ?(?:${Vp.source}|(${zp.source}))?`),kC=RegExp(`(?: ${Bp.source})?`);function wi(e,t,n){let a=e[t];return ge(a)?n:Ea(a)}function TC(e,t){return[{year:wi(e,t),month:wi(e,t+1,1),day:wi(e,t+2,1)},null,t+3]}function ki(e,t){return[{hours:wi(e,t,0),minutes:wi(e,t+1,0),seconds:wi(e,t+2,0),milliseconds:xu(e[t+3])},null,t+4]}function As(e,t){let n=!e[t]&&!e[t+1],a=Qo(e[t+1],e[t+2]),r=n?null:hn.instance(a);return[{},r,t+3]}function Ps(e,t){let n=e[t]?xa.create(e[t]):null;return[{},n,t+1]}var MC=RegExp(`^T?${wu.source}$`),DC=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function OC(e){let[t,n,a,r,i,s,o,l,c]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(g,I=!1)=>g!==void 0&&(I||g&&d)?-g:g;return[{years:f(lr(n)),months:f(lr(a)),weeks:f(lr(r)),days:f(lr(i)),hours:f(lr(s)),minutes:f(lr(o)),seconds:f(lr(l),l==="-0"),milliseconds:f(xu(c),m)}]}var RC={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Su(e,t,n,a,r,i,s){let o={year:t.length===2?fu(Ea(t)):Ea(t),month:Rp.indexOf(n)+1,day:Ea(a),hour:Ea(r),minute:Ea(i)};return s&&(o.second=Ea(s)),e&&(o.weekday=e.length>3?Np.indexOf(e)+1:Ap.indexOf(e)+1),o}var EC=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function NC(e){let[,t,n,a,r,i,s,o,l,c,d,m]=e,f=Su(t,r,a,n,i,s,o),g;return l?g=RC[l]:c?g=0:g=Qo(d,m),[f,new hn(g)]}function AC(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var PC=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,FC=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,_C=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Vf(e){let[,t,n,a,r,i,s,o]=e;return[Su(t,r,a,n,i,s,o),hn.utcInstance]}function zC(e){let[,t,n,a,r,i,s,o]=e;return[Su(t,o,n,a,r,i,s),hn.utcInstance]}var LC=Si(bC,Cu),VC=Si(wC,Cu),WC=Si(CC,Cu),BC=Si(Wp),Hp=vi(TC,ki,As,Ps),HC=vi(SC,ki,As,Ps),$C=vi(vC,ki,As,Ps),qC=vi(ki,As,Ps);function UC(e){return Ii(e,[LC,Hp],[VC,HC],[WC,$C],[BC,qC])}function YC(e){return Ii(AC(e),[EC,NC])}function GC(e){return Ii(e,[PC,Vf],[FC,Vf],[_C,zC])}function KC(e){return Ii(e,[DC,OC])}var JC=vi(ki);function jC(e){return Ii(e,[MC,JC])}var ZC=Si(IC,kC),XC=Si(Bp),QC=vi(ki,As,Ps);function eS(e){return Ii(e,[ZC,Hp],[XC,QC])}var Wf="Invalid Duration",$p={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},tS={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...$p},In=146097/400,gi=146097/4800,nS={years:{quarters:4,months:12,weeks:In/7,days:In,hours:In*24,minutes:In*24*60,seconds:In*24*60*60,milliseconds:In*24*60*60*1e3},quarters:{months:3,weeks:In/28,days:In/4,hours:In*24/4,minutes:In*24*60/4,seconds:In*24*60*60/4,milliseconds:In*24*60*60*1e3/4},months:{weeks:gi/7,days:gi,hours:gi*24,minutes:gi*24*60,seconds:gi*24*60*60,milliseconds:gi*24*60*60*1e3},...$p},ur=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],aS=ur.slice(0).reverse();function ga(e,t,n=!1){let a={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Dt(a)}function qp(e,t){var n;let a=(n=t.milliseconds)!=null?n:0;for(let r of aS.slice(1))t[r]&&(a+=t[r]*e[r].milliseconds);return a}function Bf(e,t){let n=qp(e,t)<0?-1:1;ur.reduceRight((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]*n,s=e[r][a],o=Math.floor(i/s);t[r]+=o*n,t[a]-=o*s*n}return r},null),ur.reduce((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]%1;t[a]-=i,t[r]+=i*e[a][r]}return r},null)}function Hf(e){let t={};for(let[n,a]of Object.entries(e))a!==0&&(t[n]=a);return t}var Dt=class e{constructor(t){let n=t.conversionAccuracy==="longterm"||!1,a=n?nS:tS;t.matrix&&(a=t.matrix),this.values=t.values,this.loc=t.loc||Ze.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Ot(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Jo(t,e.normalizeUnit),loc:Ze.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Pa(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new Ot(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[a]=KC(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[a]=jC(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Ot("need to specify a reason the Duration is invalid");let a=t instanceof fn?t:new fn(t,n);if(ot.throwOnInvalid)throw new eu(a);return new e({invalid:a})}static normalizeUnit(t){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new qo(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){let a={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?dn.create(this.loc,a).formatDurationFromString(this,t):Wf}toHuman(t={}){if(!this.isValid)return Wf;let n=t.showZeros!==!1,a=ur.map(r=>{let i=this.values[r];return ge(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=bu(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ct.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qp(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),a={};for(let r of ur)(Ci(n.values,r)||Ci(this.values,r))&&(a[r]=n.get(r)+this.get(r));return ga(this,{values:a},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;let n={};for(let a of Object.keys(this.values))n[a]=Op(t(this.values[a],a));return ga(this,{values:n},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Jo(t,e.normalizeUnit)};return ga(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:a};return ga(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return Bf(this.matrix,t),ga(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=Hf(this.normalize().shiftToAll().toObject());return ga(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let n={},a={},r=this.toObject(),i;for(let s of ur)if(t.indexOf(s)>=0){i=s;let o=0;for(let c in a)o+=this.matrix[c][s]*a[c],a[c]=0;Pa(r[s])&&(o+=r[s]);let l=Math.trunc(o);n[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Pa(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(n[i]+=s===i?a[s]:a[s]/this.matrix[i][s]);return Bf(this.matrix,n),ga(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return ga(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;let t=Hf(this.values);return ga(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of ur)if(!n(this.values[a],t.values[a]))return!1;return!0}},yi="Invalid Interval";function rS(e,t){return!e||!e.isValid?dr.invalid("missing or invalid start"):!t||!t.isValid?dr.invalid("missing or invalid end"):t<e?dr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var dr=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Ot("need to specify a reason the Interval is invalid");let a=t instanceof fn?t:new fn(t,n);if(ot.throwOnInvalid)throw new Qc(a);return new e({invalid:a})}static fromDateTimes(t,n){let a=ks(t),r=ks(n),i=rS(a,r);return i??new e({start:a,end:r})}static after(t,n){let a=Dt.fromDurationLike(n),r=ks(t);return e.fromDateTimes(r,r.plus(a))}static before(t,n){let a=Dt.fromDurationLike(n),r=ks(t);return e.fromDateTimes(r.minus(a),r)}static fromISO(t,n){let[a,r]=(t||"").split("/",2);if(a&&r){let i,s;try{i=ct.fromISO(a,n),s=i.isValid}catch{s=!1}let o,l;try{o=ct.fromISO(r,n),l=o.isValid}catch{l=!1}if(s&&l)return e.fromDateTimes(i,o);if(s){let c=Dt.fromISO(r,n);if(c.isValid)return e.after(i,c)}else if(l){let c=Dt.fromISO(a,n);if(c.isValid)return e.before(o,c)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;let a=this.start.startOf(t,n),r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(t,n),Math.floor(r.diff(a,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(ks).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,i=0;for(;r<this.e;){let s=n[i]||this.e,o=+s>+this.e?this.e:s;a.push(e.fromDateTimes(r,o)),r=o,i+=1}return a}splitBy(t){let n=Dt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:a}=this,r=1,i,s=[];for(;a<this.e;){let o=this.start.plus(n.mapUnits(l=>l*r));i=+o>+this.e?this.e:o,s.push(e.fromDateTimes(a,i)),a=i,r+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,a=this.e<t.e?this.e:t.e;return n>=a?null:e.fromDateTimes(n,a)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,a=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,a)}static merge(t){let[n,a]=t.sort((r,i)=>r.s-i.s).reduce(([r,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[r,i.union(s)]:[r.concat([i]),s]:[r,s],[[],null]);return a&&n.push(a),n}static xor(t){let n=null,a=0,r=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),o=s.sort((l,c)=>l.time-c.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?n=l.time:(n&&+n!=+l.time&&r.push(e.fromDateTimes(n,l.time)),n=null);return e.merge(r)}difference(...t){return e.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:yi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Uo,n={}){return this.isValid?dn.create(this.s.loc.clone(n),t).formatInterval(this):yi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:yi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:yi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:yi}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:yi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Dt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},mr=class{static hasDST(t=ot.defaultZone){let n=ct.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return xa.isValidZone(t)}static normalizeZone(t){return Na(t,ot.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ze.create(n,a,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ze.create(n,a,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Ze.create(n,a,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Ze.create(n,a,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ze.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Ze.create(n,null,"gregory").eras(t)}static features(){return{relative:Tp(),localeWeek:Mp()}}};function $f(e,t){let n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(t)-n(e);return Math.floor(Dt.fromMillis(a).as("days"))}function iS(e,t,n){let a=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=$f(l,c);return(d-d%7)/7}],["days",$f]],r={},i=e,s,o;for(let[l,c]of a)n.indexOf(l)>=0&&(s=l,r[l]=c(e,t),o=i.plus(r),o>t?(r[l]--,e=i.plus(r),e>t&&(o=e,r[l]--,e=i.plus(r))):e=o);return[e,r,o,s]}function sS(e,t,n,a){let[r,i,s,o]=iS(e,t,n),l=t-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(i[o]=(i[o]||0)+l/(s-r)));let d=Dt.fromObject(i,a);return c.length>0?Dt.fromMillis(l,a).shiftTo(...c).plus(d):d}var oS="missing Intl.DateTimeFormat.formatToParts support";function We(e,t=n=>n){return{regex:e,deser:([n])=>t(Zw(n))}}var lS="\xA0",Up=`[ ${lS}]`,Yp=new RegExp(Up,"g");function cS(e){return e.replace(/\./g,"\\.?").replace(Yp,Up)}function qf(e){return e.replace(/\./g,"").replace(Yp," ").toLowerCase()}function Un(e,t){return e===null?null:{regex:RegExp(e.map(cS).join("|")),deser:([n])=>e.findIndex(a=>qf(n)===qf(a))+t}}function Uf(e,t){return{regex:e,deser:([,n,a])=>Qo(n,a),groups:t}}function Lo(e){return{regex:e,deser:([t])=>t}}function uS(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function mS(e,t){let n=qn(t),a=qn(t,"{2}"),r=qn(t,"{3}"),i=qn(t,"{4}"),s=qn(t,"{6}"),o=qn(t,"{1,2}"),l=qn(t,"{1,3}"),c=qn(t,"{1,6}"),d=qn(t,"{1,9}"),m=qn(t,"{2,4}"),f=qn(t,"{4,6}"),g=L=>({regex:RegExp(uS(L.val)),deser:([U])=>U,literal:!0}),C=(L=>{if(e.literal)return g(L);switch(L.val){case"G":return Un(t.eras("short"),0);case"GG":return Un(t.eras("long"),0);case"y":return We(c);case"yy":return We(m,fu);case"yyyy":return We(i);case"yyyyy":return We(f);case"yyyyyy":return We(s);case"M":return We(o);case"MM":return We(a);case"MMM":return Un(t.months("short",!0),1);case"MMMM":return Un(t.months("long",!0),1);case"L":return We(o);case"LL":return We(a);case"LLL":return Un(t.months("short",!1),1);case"LLLL":return Un(t.months("long",!1),1);case"d":return We(o);case"dd":return We(a);case"o":return We(l);case"ooo":return We(r);case"HH":return We(a);case"H":return We(o);case"hh":return We(a);case"h":return We(o);case"mm":return We(a);case"m":return We(o);case"q":return We(o);case"qq":return We(a);case"s":return We(o);case"ss":return We(a);case"S":return We(l);case"SSS":return We(r);case"u":return Lo(d);case"uu":return Lo(o);case"uuu":return We(n);case"a":return Un(t.meridiems(),0);case"kkkk":return We(i);case"kk":return We(m,fu);case"W":return We(o);case"WW":return We(a);case"E":case"c":return We(n);case"EEE":return Un(t.weekdays("short",!1),1);case"EEEE":return Un(t.weekdays("long",!1),1);case"ccc":return Un(t.weekdays("short",!0),1);case"cccc":return Un(t.weekdays("long",!0),1);case"Z":case"ZZ":return Uf(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Uf(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return Lo(/[a-z_+-/]{1,256}?/i);case" ":return Lo(/[^\S\n\r]/);default:return g(L)}})(e)||{invalidReason:oS};return C.token=e,C}var dS={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function fS(e,t,n){let{type:a,value:r}=e;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let i=t[a],s=a;a==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let o=dS[s];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function pS(e){return[`^${e.map(n=>n.regex).reduce((n,a)=>`${n}(${a.source})`,"")}$`,e]}function hS(e,t,n){let a=e.match(t);if(a){let r={},i=1;for(let s in n)if(Ci(n,s)){let o=n[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(i,i+l))),i+=l}return[a,r]}else return[a,{}]}function gS(e){let t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,a;return ge(e.z)||(n=xa.create(e.z)),ge(e.Z)||(n||(n=new hn(e.Z)),a=e.Z),ge(e.q)||(e.M=(e.q-1)*3+1),ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ge(e.u)||(e.S=xu(e.u)),[Object.keys(e).reduce((i,s)=>{let o=t(s);return o&&(i[o]=e[s]),i},{}),n,a]}var Gc=null;function yS(){return Gc||(Gc=ct.fromMillis(1555555555555)),Gc}function xS(e,t){if(e.literal)return e;let n=dn.macroTokenToFormatOpts(e.val),a=Jp(n,t);return a==null||a.includes(void 0)?e:a}function Gp(e,t){return Array.prototype.concat(...e.map(n=>xS(n,t)))}var jo=class{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Gp(dn.parseFormat(n),t),this.units=this.tokens.map(a=>mS(a,t)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=pS(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[n,a]=hS(t,this.regex,this.handlers),[r,i,s]=a?gS(a):[null,null,void 0];if(Ci(a,"a")&&Ci(a,"H"))throw new Aa("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:a,result:r,zone:i,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Kp(e,t,n){return new jo(e,n).explainFromTokens(t)}function bS(e,t,n){let{result:a,zone:r,specificOffset:i,invalidReason:s}=Kp(e,t,n);return[a,r,i,s]}function Jp(e,t){if(!e)return null;let a=dn.create(t,e).dtFormatter(yS()),r=a.formatToParts(),i=a.resolvedOptions();return r.map(s=>fS(s,e,i))}var Kc="Invalid DateTime",Yf=864e13;function Ms(e){return new fn("unsupported zone",`the zone "${e.name}" is not supported`)}function Jc(e){return e.weekData===null&&(e.weekData=Go(e.c)),e.weekData}function jc(e){return e.localWeekData===null&&(e.localWeekData=Go(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function cr(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ct({...n,...t,old:n})}function jp(e,t,n){let a=e-t*60*1e3,r=n.offset(a);if(t===r)return[a,t];a-=(r-t)*60*1e3;let i=n.offset(a);return r===i?[a,r]:[e-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Vo(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Bo(e,t,n){return jp(Xo(e),t,n)}function Gf(e,t){let n=e.o,a=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:a,month:r,day:Math.min(e.c.day,Ko(a,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Dt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Xo(i),[l,c]=jp(o,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function xi(e,t,n,a,r,i){let{setZone:s,zone:o}=n;if(e&&Object.keys(e).length!==0||t){let l=t||o,c=ct.fromObject(e,{...n,zone:l,specificOffset:i});return s?c:c.setZone(o)}else return ct.invalid(new fn("unparsable",`the input "${r}" can't be parsed as ${a}`))}function Wo(e,t,n=!0){return e.isValid?dn.create(Ze.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Zc(e,t,n){let a=e.c.year>9999||e.c.year<0,r="";if(a&&e.c.year>=0&&(r+="+"),r+=St(e.c.year,a?6:4),n==="year")return r;if(t){if(r+="-",r+=St(e.c.month),n==="month")return r;r+="-"}else if(r+=St(e.c.month),n==="month")return r;return r+=St(e.c.day),r}function Kf(e,t,n,a,r,i,s){let o=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=St(e.c.hour),s==="hour")break;if(t){if(l+=":",l+=St(e.c.minute),s==="minute")break;o&&(l+=":",l+=St(e.c.second))}else{if(l+=St(e.c.minute),s==="minute")break;o&&(l+=St(e.c.second))}if(s==="second")break;o&&(!a||e.c.millisecond!==0)&&(l+=".",l+=St(e.c.millisecond,3))}return r&&(e.isOffsetFixed&&e.offset===0&&!i?l+="Z":e.o<0?(l+="-",l+=St(Math.trunc(-e.o/60)),l+=":",l+=St(Math.trunc(-e.o%60))):(l+="+",l+=St(Math.trunc(e.o/60)),l+=":",l+=St(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}var Zp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wS={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},CS={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ho=["year","month","day","hour","minute","second","millisecond"],SS=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],vS=["year","ordinal","hour","minute","second","millisecond"];function $o(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new qo(e);return t}function Jf(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return $o(e)}}function IS(e){if(Ds===void 0&&(Ds=ot.now()),e.type!=="iana")return e.offset(Ds);let t=e.name,n=pu.get(t);return n===void 0&&(n=e.offset(Ds),pu.set(t,n)),n}function jf(e,t){let n=Na(t.zone,ot.defaultZone);if(!n.isValid)return ct.invalid(Ms(n));let a=Ze.fromObject(t),r,i;if(ge(e.year))r=ot.now();else{for(let l of Ho)ge(e[l])&&(e[l]=Zp[l]);let s=Ip(e)||kp(e);if(s)return ct.invalid(s);let o=IS(n);[r,i]=Bo(e,o,n)}return new ct({ts:r,zone:n,loc:a,o:i})}function Zf(e,t,n){let a=ge(n.round)?!0:n.round,r=ge(n.rounding)?"trunc":n.rounding,i=(o,l)=>(o=bu(o,a||n.calendary?0:2,n.calendary?"round":r),t.loc.clone(n).relFormatter(n).format(o,l)),s=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(s(n.unit),n.unit);for(let o of n.units){let l=s(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function Xf(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var Ds,pu=new Map,ct=class e{constructor(t){let n=t.zone||ot.defaultZone,a=t.invalid||(Number.isNaN(t.ts)?new fn("invalid input"):null)||(n.isValid?null:Ms(n));this.ts=ge(t.ts)?ot.now():t.ts;let r=null,i=null;if(!a)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,i]=[t.old.c,t.old.o];else{let o=Pa(t.o)&&!t.old?t.o:n.offset(this.ts);r=Vo(this.ts,o),a=Number.isNaN(r.year)?new fn("invalid input"):null,r=a?null:r,i=a?null:o}this._zone=n,this.loc=t.loc||Ze.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,n]=Xf(arguments),[a,r,i,s,o,l,c]=n;return jf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static utc(){let[t,n]=Xf(arguments),[a,r,i,s,o,l,c]=n;return t.zone=hn.utcInstance,jf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static fromJSDate(t,n={}){let a=nC(t)?t.valueOf():NaN;if(Number.isNaN(a))return e.invalid("invalid input");let r=Na(n.zone,ot.defaultZone);return r.isValid?new e({ts:a,zone:r,loc:Ze.fromObject(n)}):e.invalid(Ms(r))}static fromMillis(t,n={}){if(Pa(t))return t<-Yf||t>Yf?e.invalid("Timestamp out of range"):new e({ts:t,zone:Na(n.zone,ot.defaultZone),loc:Ze.fromObject(n)});throw new Ot(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Pa(t))return new e({ts:t*1e3,zone:Na(n.zone,ot.defaultZone),loc:Ze.fromObject(n)});throw new Ot("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};let a=Na(n.zone,ot.defaultZone);if(!a.isValid)return e.invalid(Ms(a));let r=Ze.fromObject(n),i=Jo(t,Jf),{minDaysInFirstWeek:s,startOfWeek:o}=Ff(i,r),l=ot.now(),c=ge(n.specificOffset)?a.offset(l):n.specificOffset,d=!ge(i.ordinal),m=!ge(i.year),f=!ge(i.month)||!ge(i.day),g=m||f,I=i.weekYear||i.weekNumber;if((g||d)&&I)throw new Aa("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&d)throw new Aa("Can't mix ordinal dates with month/day");let C=I||i.weekday&&!g,L,U,se=Vo(l,c);C?(L=SS,U=wS,se=Go(se,s,o)):d?(L=vS,U=CS,se=Yc(se)):(L=Ho,U=Zp);let le=!1;for(let V of L){let B=i[V];ge(B)?le?i[V]=U[V]:i[V]=se[V]:le=!0}let $=C?Qw(i,s,o):d?eC(i):Ip(i),me=$||kp(i);if(me)return e.invalid(me);let E=C?Af(i,s,o):d?Pf(i):i,[oe,Se]=Bo(E,c,a),Ie=new e({ts:oe,zone:a,o:Se,loc:r});return i.weekday&&g&&t.weekday!==Ie.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Ie.toISO()}`):Ie.isValid?Ie:e.invalid(Ie.invalid)}static fromISO(t,n={}){let[a,r]=UC(t);return xi(a,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){let[a,r]=YC(t);return xi(a,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){let[a,r]=GC(t);return xi(a,r,n,"HTTP",n)}static fromFormat(t,n,a={}){if(ge(t)||ge(n))throw new Ot("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,l,c,d]=bS(s,t,n);return d?e.invalid(d):xi(o,l,a,`format ${n}`,t,c)}static fromString(t,n,a={}){return e.fromFormat(t,n,a)}static fromSQL(t,n={}){let[a,r]=eS(t);return xi(a,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Ot("need to specify a reason the DateTime is invalid");let a=t instanceof fn?t:new fn(t,n);if(ot.throwOnInvalid)throw new Xc(a);return new e({invalid:a})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){let a=Jp(t,Ze.fromObject(n));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return Gp(dn.parseFormat(t),Ze.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ds=void 0,pu.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Jc(this).weekYear:NaN}get weekNumber(){return this.isValid?Jc(this).weekNumber:NaN}get weekday(){return this.isValid?Jc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?jc(this).weekday:NaN}get localWeekNumber(){return this.isValid?jc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?jc(this).weekYear:NaN}get ordinal(){return this.isValid?Yc(this.c).ordinal:NaN}get monthShort(){return this.isValid?mr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?mr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?mr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?mr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,n=6e4,a=Xo(this.c),r=this.zone.offset(a-t),i=this.zone.offset(a+t),s=this.zone.offset(a-r*n),o=this.zone.offset(a-i*n);if(s===o)return[this];let l=a-s*n,c=a-o*n,d=Vo(l,s),m=Vo(c,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[cr(this,{ts:l}),cr(this,{ts:c})]:[this]}get isInLeapYear(){return Ns(this.year)}get daysInMonth(){return Ko(this.year,this.month)}get daysInYear(){return this.isValid?bi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Es(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Es(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:n,numberingSystem:a,calendar:r}=dn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:a,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(hn.instance(t),n)}toLocal(){return this.setZone(ot.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:a=!1}={}){if(t=Na(t,ot.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||a){let i=t.offset(this.ts),s=this.toObject();[r]=Bo(s,i,t)}return cr(this,{ts:r,zone:t})}else return e.invalid(Ms(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:a}={}){let r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:a});return cr(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let n=Jo(t,Jf),{minDaysInFirstWeek:a,startOfWeek:r}=Ff(n,this.loc),i=!ge(n.weekYear)||!ge(n.weekNumber)||!ge(n.weekday),s=!ge(n.ordinal),o=!ge(n.year),l=!ge(n.month)||!ge(n.day),c=o||l,d=n.weekYear||n.weekNumber;if((c||s)&&d)throw new Aa("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Aa("Can't mix ordinal dates with month/day");let m;i?m=Af({...Go(this.c,a,r),...n},a,r):ge(n.ordinal)?(m={...this.toObject(),...n},ge(n.day)&&(m.day=Math.min(Ko(m.year,m.month),m.day))):m=Pf({...Yc(this.c),...n});let[f,g]=Bo(m,this.o,this.zone);return cr(this,{ts:f,o:g})}plus(t){if(!this.isValid)return this;let n=Dt.fromDurationLike(t);return cr(this,Gf(this,n))}minus(t){if(!this.isValid)return this;let n=Dt.fromDurationLike(t).negate();return cr(this,Gf(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let a={},r=Dt.normalizeUnit(t);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(a.weekNumber=this.weekNumber-1),a.weekday=i}else a.weekday=1;if(r==="quarters"){let i=Math.ceil(this.month/3);a.month=(i-1)*3+1}return this.set(a)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?dn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Kc}toLocaleString(t=Uo,n={}){return this.isValid?dn.create(this.loc.clone(n),t).formatDateTime(this):Kc}toLocaleParts(t={}){return this.isValid?dn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:i=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=$o(s);let o=t==="extended",l=Zc(this,o,s);return Ho.indexOf(s)>=3&&(l+="T"),l+=Kf(this,o,n,a,r,i,s),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Zc(this,t==="extended",$o(n)):null}toISOWeekDate(){return Wo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:i=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=$o(o),(r&&Ho.indexOf(o)>=3?"T":"")+Kf(this,s==="extended",n,t,a,i,o)):null}toRFC2822(){return Wo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Wo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Zc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(a&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Wo(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Kc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",a={}){if(!this.isValid||!t.isValid)return Dt.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},i=aC(n).map(Dt.normalizeUnit),s=t.valueOf()>this.valueOf(),o=s?this:t,l=s?t:this,c=sS(o,l,i,r);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(t){return this.isValid?dr.fromDateTimes(this,t):this}hasSame(t,n,a){if(!this.isValid)return!1;let r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,a)<=r&&r<=i.endOf(n,a)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),a=t.padding?this<n?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),Zf(n,this.plus(a),{...t,numeric:"always",units:r,unit:i})}toRelativeCalendar(t={}){return this.isValid?Zf(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Ot("min requires all arguments be DateTimes");return _f(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Ot("max requires all arguments be DateTimes");return _f(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,a={}){let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Kp(s,t,n)}static fromStringExplain(t,n,a={}){return e.fromFormatExplain(t,n,a)}static buildFormatParser(t,n={}){let{locale:a=null,numberingSystem:r=null}=n,i=Ze.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new jo(i,t)}static fromFormatParser(t,n,a={}){if(ge(t)||ge(n))throw new Ot("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!s.equals(n.locale))throw new Ot(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);let{result:o,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):xi(o,l,a,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Uo}static get DATE_MED(){return Qf}static get DATE_MED_WITH_WEEKDAY(){return Pw}static get DATE_FULL(){return ep}static get DATE_HUGE(){return tp}static get TIME_SIMPLE(){return np}static get TIME_WITH_SECONDS(){return ap}static get TIME_WITH_SHORT_OFFSET(){return rp}static get TIME_WITH_LONG_OFFSET(){return ip}static get TIME_24_SIMPLE(){return sp}static get TIME_24_WITH_SECONDS(){return op}static get TIME_24_WITH_SHORT_OFFSET(){return lp}static get TIME_24_WITH_LONG_OFFSET(){return cp}static get DATETIME_SHORT(){return up}static get DATETIME_SHORT_WITH_SECONDS(){return mp}static get DATETIME_MED(){return dp}static get DATETIME_MED_WITH_SECONDS(){return fp}static get DATETIME_MED_WITH_WEEKDAY(){return Fw}static get DATETIME_FULL(){return pp}static get DATETIME_FULL_WITH_SECONDS(){return hp}static get DATETIME_HUGE(){return gp}static get DATETIME_HUGE_WITH_SECONDS(){return yp}};function ks(e){if(ct.isDateTime(e))return e;if(e&&e.valueOf&&Pa(e.valueOf()))return ct.fromJSDate(e);if(e&&typeof e=="object")return ct.fromObject(e);throw new Ot(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var kS="3.7.2";gn.DateTime=ct;gn.Duration=Dt;gn.FixedOffsetZone=hn;gn.IANAZone=xa;gn.Info=mr;gn.Interval=dr;gn.InvalidZone=Yo;gn.Settings=ot;gn.SystemZone=Rs;gn.VERSION=kS;gn.Zone=Fa});var nl=O(Jt=>{"use strict";u();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CronDate=Jt.DAYS_IN_MONTH=Jt.DateMathOp=Jt.TimeUnit=void 0;var fr=Xp(),Wt;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.Day="Day",e.Month="Month",e.Year="Year"})(Wt||(Jt.TimeUnit=Wt={}));var Fs;(function(e){e.Add="Add",e.Subtract="Subtract"})(Fs||(Jt.DateMathOp=Fs={}));Jt.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var G,za,La,pr,_s,vu,ia,_a,Ti=class Ti{constructor(t,n){Ee(this,ia);Ee(this,G);Ee(this,za,null);Ee(this,La,null);Ee(this,pr,null);let a={zone:n};if(t?t instanceof Ti?(ae(this,G,T(t,G)),ae(this,za,T(t,za)),ae(this,La,T(t,La)),ae(this,pr,T(t,pr))):t instanceof Date?ae(this,G,fr.DateTime.fromJSDate(t,a)):typeof t=="number"?ae(this,G,fr.DateTime.fromMillis(t,a)):(ae(this,G,fr.DateTime.fromISO(t,a)),T(this,G).isValid||ae(this,G,fr.DateTime.fromRFC2822(t,a)),T(this,G).isValid||ae(this,G,fr.DateTime.fromSQL(t,a)),T(this,G).isValid||ae(this,G,fr.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",a))):ae(this,G,fr.DateTime.local()),!T(this,G).isValid)throw new Error(`CronDate: unhandled timestamp: ${t}`);n&&n!==T(this,G).zoneName&&ae(this,G,T(this,G).setZone(n))}get dstStart(){return T(this,za)}get dstStartLandingHour(){return T(this,La)}clearDstStart(){ae(this,za,null),ae(this,La,null)}get dstEnd(){return T(this,pr)}set dstEnd(t){ae(this,pr,t)}addYear(){ae(this,G,T(this,G).plus({years:1}))}addMonth(){ae(this,G,T(this,G).plus({months:1}).startOf("month"))}addDay(){ae(this,G,T(this,G).plus({days:1}).startOf("day"))}addHour(){ae(this,G,T(this,G).plus({hours:1}).startOf("hour"))}addMinute(){ae(this,G,T(this,G).plus({minutes:1}).startOf("minute"))}addSecond(){ae(this,G,T(this,G).plus({seconds:1}))}subtractYear(){ae(this,G,T(this,G).minus({years:1}))}subtractMonth(){ae(this,G,T(this,G).minus({months:1}).endOf("month").startOf("second"))}subtractDay(){ae(this,G,T(this,G).minus({days:1}).endOf("day").startOf("second"))}subtractHour(){ae(this,G,T(this,G).minus({hours:1}).endOf("hour").startOf("second"))}subtractMinute(){ae(this,G,T(this,G).minus({minutes:1}).endOf("minute").startOf("second"))}subtractSecond(){ae(this,G,T(this,G).minus({seconds:1}))}addUnit(t){switch(t){case Wt.Year:return this.addYear();case Wt.Month:return this.addMonth();case Wt.Day:return this.addDay();case Wt.Hour:return this.addHour();case Wt.Minute:return this.addMinute();case Wt.Second:return this.addSecond()}}subtractUnit(t){switch(t){case Wt.Year:return this.subtractYear();case Wt.Month:return this.subtractMonth();case Wt.Day:return this.subtractDay();case Wt.Hour:return this.subtractHour();case Wt.Minute:return this.subtractMinute();case Wt.Second:return this.subtractSecond()}}invokeDateOperation(t,n){if(t===Fs.Add){this.addUnit(n);return}if(t===Fs.Subtract){this.subtractUnit(n);return}throw new Error(`Invalid verb: ${t}`)}getDate(){return T(this,G).day}getFullYear(){return T(this,G).year}getDay(){let t=T(this,G).weekday;return t===7?0:t}getMonth(){return T(this,G).month-1}getHours(){return T(this,G).hour}getMinutes(){return T(this,G).minute}getSeconds(){return T(this,G).second}getMilliseconds(){return T(this,G).millisecond}getUTCOffset(){return T(this,G).offset}setStartOfDay(){ae(this,G,T(this,G).startOf("day"))}setEndOfDay(){ae(this,G,T(this,G).endOf("day"))}getTime(){return T(this,G).valueOf()}getUTCDate(){return J(this,ia,_a).call(this).day}getUTCFullYear(){return J(this,ia,_a).call(this).year}getUTCDay(){let t=J(this,ia,_a).call(this).weekday;return t===7?0:t}getUTCMonth(){return J(this,ia,_a).call(this).month-1}getUTCHours(){return J(this,ia,_a).call(this).hour}getUTCMinutes(){return J(this,ia,_a).call(this).minute}getUTCSeconds(){return J(this,ia,_a).call(this).second}toISOString(){return T(this,G).toUTC().toISO()}toJSON(){return T(this,G).toJSON()}setDate(t){ae(this,G,T(this,G).set({day:t}))}setFullYear(t){ae(this,G,T(this,G).set({year:t}))}setDay(t){ae(this,G,T(this,G).set({weekday:t}))}setMonth(t){ae(this,G,T(this,G).set({month:t+1}))}setHours(t){ae(this,G,T(this,G).set({hour:t}))}setMinutes(t){ae(this,G,T(this,G).set({minute:t}))}setSeconds(t){ae(this,G,T(this,G).set({second:t}))}setMilliseconds(t){ae(this,G,T(this,G).set({millisecond:t}))}toString(){return this.toDate().toString()}toDate(){return T(this,G).toJSDate()}isLastDayOfMonth(){var a;let{day:t,month:n}=T(this,G);if(n===2){let r=J(a=Ti,_s,vu).call(a,T(this,G).year);return t===Jt.DAYS_IN_MONTH[n-1]-(r?0:1)}return t===Jt.DAYS_IN_MONTH[n-1]}isLastWeekdayOfMonth(){var r;let{day:t,month:n}=T(this,G),a;return n===2?a=Jt.DAYS_IN_MONTH[n-1]-(J(r=Ti,_s,vu).call(r,T(this,G).year)?0:1):a=Jt.DAYS_IN_MONTH[n-1],t>a-7}applyDateOperation(t,n,a){if(n===Wt.Month||n===Wt.Day){this.invokeDateOperation(t,n);return}let r=this.getHours(),i=this.getUTCOffset();this.invokeDateOperation(t,n);let s=this.getHours(),o=(s-r+24)%24;t===Fs.Add&&this.getUTCOffset()>i&&o>=2?a!==24&&(ae(this,za,(r+1)%24),ae(this,La,s)):o===0&&this.getMinutes()===0&&this.getSeconds()===0&&a!==24&&(this.dstEnd=s)}};G=new WeakMap,za=new WeakMap,La=new WeakMap,pr=new WeakMap,_s=new WeakSet,vu=function(t){return t%4===0&&t%100!==0||t%400===0},ia=new WeakSet,_a=function(){return T(this,G).toUTC()},Ee(Ti,_s);var tl=Ti;Jt.CronDate=tl;Jt.default=tl});var ku=O(al=>{"use strict";u();Object.defineProperty(al,"__esModule",{value:!0});al.CronMonth=void 0;var TS=nl(),MS=Ra(),DS=1,OS=12,RS=Object.freeze([]),Iu=class extends MS.CronField{static get min(){return DS}static get max(){return OS}static get chars(){return RS}static get daysInMonth(){return TS.DAYS_IN_MONTH}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};al.CronMonth=Iu});var Qp=O(rl=>{"use strict";u();Object.defineProperty(rl,"__esModule",{value:!0});rl.CronDayOfMonth=void 0;var ES=Ra(),NS=ku(),AS=1,PS=31,FS=Object.freeze(["L"]),Tu=class e extends ES.CronField{static fromMonth(t,n,a){if(t.length!==1)return new e(n,a);let r=NS.CronMonth.daysInMonth[t[0]-1],i=n.filter(s=>typeof s!="number"||s<=r);return new e(i.length>0?i:n,a)}static get min(){return AS}static get max(){return PS}static get chars(){return FS}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};rl.CronDayOfMonth=Tu});var eh=O(il=>{"use strict";u();Object.defineProperty(il,"__esModule",{value:!0});il.CronDayOfWeek=void 0;var _S=Ra(),zS=0,LS=7,VS=Object.freeze(["L"]),Mu=class extends _S.CronField{static get min(){return zS}static get max(){return LS}static get chars(){return VS}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){if(super(t,n),this.validate(),this.values.some(a=>a==="L"))throw new Error(`${this.constructor.name} Validation error, unexpected standalone L`)}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};il.CronDayOfWeek=Mu});var th=O(sl=>{"use strict";u();Object.defineProperty(sl,"__esModule",{value:!0});sl.CronHour=void 0;var WS=Ra(),BS=0,HS=23,$S=Object.freeze([]),Du=class extends WS.CronField{static get min(){return BS}static get max(){return HS}static get chars(){return $S}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};sl.CronHour=Du});var nh=O(ol=>{"use strict";u();Object.defineProperty(ol,"__esModule",{value:!0});ol.CronMinute=void 0;var qS=Ra(),US=0,YS=59,GS=Object.freeze([]),Ou=class extends qS.CronField{static get min(){return US}static get max(){return YS}static get chars(){return GS}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};ol.CronMinute=Ou});var ah=O(ll=>{"use strict";u();Object.defineProperty(ll,"__esModule",{value:!0});ll.CronSecond=void 0;var KS=Ra(),JS=0,jS=59,ZS=Object.freeze([]),Ru=class extends KS.CronField{static get min(){return JS}static get max(){return jS}static get chars(){return ZS}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};ll.CronSecond=Ru});var cl=O(Zt=>{"use strict";u();var XS=Zt&&Zt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),Va=Zt&&Zt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&XS(t,e,n)};Object.defineProperty(Zt,"__esModule",{value:!0});Va(Cf(),Zt);Va(Qp(),Zt);Va(eh(),Zt);Va(Ra(),Zt);Va(th(),Zt);Va(nh(),Zt);Va(ku(),Zt);Va(ah(),Zt)});var Nu=O(ul=>{"use strict";u();Object.defineProperty(ul,"__esModule",{value:!0});ul.CronFieldCollection=void 0;var Xt=cl(),gr,yr,xr,br,ba,Wa,Mi,rh,ih,hr=class hr{constructor({second:t,minute:n,hour:a,dayOfMonth:r,month:i,dayOfWeek:s}){Ee(this,gr);Ee(this,yr);Ee(this,xr);Ee(this,br);Ee(this,ba);Ee(this,Wa);if(!t)throw new Error("Validation error, Field second is missing");if(!n)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!r)throw new Error("Validation error, Field dayOfMonth is missing");if(!i)throw new Error("Validation error, Field month is missing");if(!s)throw new Error("Validation error, Field dayOfWeek is missing");if(i.values.length===1&&!r.hasLastChar&&s.isWildcard&&!(parseInt(r.values[0],10)<=Xt.CronMonth.daysInMonth[i.values[0]-1]))throw new Error("Invalid explicit day of month definition");ae(this,gr,t),ae(this,yr,n),ae(this,xr,a),ae(this,ba,i),ae(this,Wa,s),ae(this,br,r)}static from(t,n){return new hr({second:this.resolveField(Xt.CronSecond,t.second,n.second),minute:this.resolveField(Xt.CronMinute,t.minute,n.minute),hour:this.resolveField(Xt.CronHour,t.hour,n.hour),dayOfMonth:this.resolveField(Xt.CronDayOfMonth,t.dayOfMonth,n.dayOfMonth),month:this.resolveField(Xt.CronMonth,t.month,n.month),dayOfWeek:this.resolveField(Xt.CronDayOfWeek,t.dayOfWeek,n.dayOfWeek)})}static resolveField(t,n,a){return a?a instanceof Xt.CronField?a:new t(a):n}get second(){return T(this,gr)}get minute(){return T(this,yr)}get hour(){return T(this,xr)}get dayOfMonth(){return T(this,br)}get month(){return T(this,ba)}get dayOfWeek(){return T(this,Wa)}static compactField(t){if(t.length===0)return[];let n=[],a;return t.forEach((r,i,s)=>{if(a===void 0){a={start:r,count:1};return}let o=s[i-1]||a.start,l=s[i+1];if(r==="L"||r==="W"){n.push(a),n.push({start:r,count:1}),a=void 0;return}if(a.step===void 0&&l!==void 0){let c=r-o,d=l-r;if(c<=d){a={...a,count:2,end:r,step:c};return}a.step=1}r-(a.end??0)===a.step?(a.count++,a.end=r):(a.count===1?n.push({start:a.start,count:1}):a.count===2?(n.push({start:a.start,count:1}),n.push({start:a.end??o,count:1})):n.push(a),a={start:r,count:1})}),a&&n.push(a),n}stringifyField(t){var i;let n=t.max,a=t.values;if(t instanceof Xt.CronDayOfWeek){n=6;let s=T(this,Wa).values;a=s[s.length-1]===7?s.slice(0,-1):s}t instanceof Xt.CronDayOfMonth&&(n=T(this,ba).values.length===1?Xt.CronMonth.daysInMonth[T(this,ba).values[0]-1]:t.max);let r=hr.compactField(a);if(r.length===1){let s=J(i=hr,Mi,rh).call(i,t,r[0],n);if(s)return s}return r.map(s=>{var l;let o=s.count===1?s.start.toString():J(l=hr,Mi,ih).call(l,s);return t instanceof Xt.CronDayOfWeek&&t.nthDay>0?`${o}#${t.nthDay}`:o}).join(",")}stringify(t=!1){let n=[];return t&&n.push(this.stringifyField(T(this,gr))),n.push(this.stringifyField(T(this,yr)),this.stringifyField(T(this,xr)),this.stringifyField(T(this,br)),this.stringifyField(T(this,ba)),this.stringifyField(T(this,Wa))),n.join(" ")}serialize(){return{second:T(this,gr).serialize(),minute:T(this,yr).serialize(),hour:T(this,xr).serialize(),dayOfMonth:T(this,br).serialize(),month:T(this,ba).serialize(),dayOfWeek:T(this,Wa).serialize()}}};gr=new WeakMap,yr=new WeakMap,xr=new WeakMap,br=new WeakMap,ba=new WeakMap,Wa=new WeakMap,Mi=new WeakSet,rh=function(t,n,a){let r=n.step;return r?r===1&&n.start===t.min&&n.end&&n.end>=a?(t instanceof Xt.CronDayOfMonth||t instanceof Xt.CronDayOfWeek)&&!t.isWildcard?null:t.hasQuestionMarkChar?"?":"*":r!==1&&n.start===t.min&&n.end&&n.end>=a-r+1?`*/${r}`:null:null},ih=function(t){let n=t.step;if(n===1)return`${t.start}-${t.end}`;let a=t.start===0?t.count-1:t.count;if(!n)throw new Error("Unexpected range step");if(!t.end)throw new Error("Unexpected range end");if(n*a>t.end){let r=(s,o)=>{if(typeof t.start!="number")throw new Error("Unexpected range start");return o%n===0?t.start+o:null};if(typeof t.start!="number")throw new Error("Unexpected range start");let i={length:t.end-t.start+1};return Array.from(i,r).filter(s=>s!==null).join(",")}return`${t.start}-${t.end}/${n}`},Ee(hr,Mi);var Eu=hr;ul.CronFieldCollection=Eu});var Pu=O(Mn=>{"use strict";u();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CronExpression=Mn.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=Mn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var ht=nl();Mn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";Mn.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var sh=1e4,Oi,sa,Gn,oa,la,Fe,zs,Ri,Qt,Ba,Ye,wr,oh,lh,ch,uh,mh,Au,dh,fh,Di,yn=class yn{constructor(t,n){Ee(this,Ye);Ee(this,Oi);Ee(this,sa);Ee(this,Gn);Ee(this,oa);Ee(this,la);Ee(this,Fe);Ee(this,zs,null);Ee(this,Ri,!1);ae(this,Oi,n),ae(this,sa,n.tz),ae(this,oa,n.startDate?new ht.CronDate(n.startDate,T(this,sa)):null),ae(this,la,n.endDate?new ht.CronDate(n.endDate,T(this,sa)):null);let a=n.currentDate??n.startDate;if(a){let r=new ht.CronDate(a,T(this,sa));T(this,oa)&&r.getTime()<T(this,oa).getTime()?a=T(this,oa):T(this,la)&&r.getTime()>T(this,la).getTime()&&(a=T(this,la))}ae(this,Gn,new ht.CronDate(a,T(this,sa))),ae(this,Fe,t)}get fields(){return T(this,Fe)}static fieldsToExpression(t,n){return new yn(t,n||{})}next(){return J(this,Ye,Di).call(this)}prev(){return J(this,Ye,Di).call(this,!0)}hasNext(){let t=T(this,Gn);try{return J(this,Ye,Di).call(this),!0}catch{return!1}finally{ae(this,Gn,t)}}hasPrev(){let t=T(this,Gn);try{return J(this,Ye,Di).call(this,!0),!0}catch{return!1}finally{ae(this,Gn,t)}}take(t){let n=[];if(t>=0)for(let a=0;a<t;a++)try{n.push(this.next())}catch{return n}else for(let a=0;a>t;a--)try{n.push(this.prev())}catch{return n}return n}reset(t){ae(this,Gn,new ht.CronDate(t||T(this,Oi).currentDate,T(this,sa)))}stringify(t=!1){return T(this,Fe).stringify(t)}includesDate(t){let{second:n,minute:a,hour:r,month:i}=T(this,Fe),s=new ht.CronDate(t,T(this,sa));return!(!n.values.includes(s.getSeconds())||!a.values.includes(s.getMinutes())||!r.values.includes(s.getHours())||!i.values.includes(s.getMonth()+1)||!J(this,Ye,Au).call(this,s))}toString(){return T(this,Oi).expression||this.stringify(!0)}[Symbol.iterator](){return{next:()=>{try{return{value:J(this,Ye,Di).call(this),done:!1}}catch{return{value:void 0,done:!0}}}}}};Oi=new WeakMap,sa=new WeakMap,Gn=new WeakMap,oa=new WeakMap,la=new WeakMap,Fe=new WeakMap,zs=new WeakMap,Ri=new WeakMap,Qt=new WeakSet,Ba=function(t,n){return n.some(a=>a===t)},Ye=new WeakSet,wr=function(t,n){return t[n?t.length-1:0]},oh=function(t){let n=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(T(this,zs)===n)return T(this,Ri);let a=new ht.CronDate(t);a.setStartOfDay();let r=new ht.CronDate(t);return r.setEndOfDay(),ae(this,zs,n),ae(this,Ri,a.getUTCOffset()!==r.getUTCOffset()),T(this,Ri)},lh=function(t,n,a){let r=T(this,Fe).second.values,i=t.getSeconds(),s=T(this,Fe).second.findNearestValue(i,a);if(s!==null){t.setSeconds(s);return}t.applyDateOperation(n,ht.TimeUnit.Minute,T(this,Fe).hour.values.length),t.setSeconds(J(this,Ye,wr).call(this,r,a))},ch=function(t,n,a){let r=T(this,Fe).minute.values,i=T(this,Fe).second.values,s=t.getMinutes(),o=T(this,Fe).minute.findNearestValue(s,a);if(o!==null){t.setMinutes(o),t.setSeconds(J(this,Ye,wr).call(this,i,a));return}t.applyDateOperation(n,ht.TimeUnit.Hour,T(this,Fe).hour.values.length),t.setMinutes(J(this,Ye,wr).call(this,r,a)),t.setSeconds(J(this,Ye,wr).call(this,i,a))},uh=function(t,n){if(!n.isLastWeekdayOfMonth())return!1;let a=n.getDay();return t.some(r=>a===parseInt(r.toString().charAt(0),10)%7)},mh=function(t,n){return t<=0||Math.ceil(n.getDate()/7)===t},Au=function(t){var c,d,m,f;let n=T(this,Fe).dayOfMonth.isWildcard,a=!n,r=T(this,Fe).dayOfWeek.isWildcard,i=!r,s=J(c=yn,Qt,Ba).call(c,t.getDate(),T(this,Fe).dayOfMonth.values)||T(this,Fe).dayOfMonth.hasLastChar&&t.isLastDayOfMonth(),o=T(this,Fe).dayOfWeek.nthDay,l=J(d=yn,Qt,Ba).call(d,t.getDay(),T(this,Fe).dayOfWeek.values)&&J(m=yn,Qt,mh).call(m,o,t)||T(this,Fe).dayOfWeek.hasLastChar&&J(f=yn,Qt,uh).call(f,T(this,Fe).dayOfWeek.values,t);return!!(a&&i&&(s||l)||s&&!i||n&&!r&&l)},dh=function(t,n,a){var d,m;let r=T(this,Fe).hour.values,i=r,s=t.getHours(),o=J(d=yn,Qt,Ba).call(d,s,r),l=t.dstEnd===s;if(t.dstStart!==null&&t.dstStartLandingHour===s){for(let f=t.dstStart;f!==s;f=(f+1)%24)if(J(m=yn,Qt,Ba).call(m,f,r))return!0}if(l&&!a)return t.dstEnd=null,t.applyDateOperation(ht.DateMathOp.Add,ht.TimeUnit.Hour,i.length),!1;if(o)return!0;t.clearDstStart();let c=T(this,Fe).hour.findNearestValue(s,a);if(c===null)return t.applyDateOperation(n,ht.TimeUnit.Day,i.length),!1;if(J(this,Ye,oh).call(this,t)){let f=a?s-c:c-s;for(let g=0;g<f&&(t.applyDateOperation(n,ht.TimeUnit.Hour,i.length),!(!a&&t.getHours()>=c||a&&t.getHours()<=c));g++);}else t.setHours(c);return t.setMinutes(J(this,Ye,wr).call(this,T(this,Fe).minute.values,a)),t.setSeconds(J(this,Ye,wr).call(this,T(this,Fe).second.values,a)),!1},fh=function(t){if(!T(this,oa)&&!T(this,la))return;let n=t.getTime();if(T(this,oa)&&n<T(this,oa).getTime())throw new Error(Mn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(T(this,la)&&n>T(this,la).getTime())throw new Error(Mn.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)},Di=function(t=!1){var s,o,l;let n=t?ht.DateMathOp.Subtract:ht.DateMathOp.Add,a=new ht.CronDate(T(this,Gn)),r=a.getTime();a.getMilliseconds()>0&&(a.setMilliseconds(0),t||a.applyDateOperation(ht.DateMathOp.Add,ht.TimeUnit.Second,T(this,Fe).hour.values.length));let i=0;for(;++i<sh;){if(J(this,Ye,fh).call(this,a),!J(this,Ye,Au).call(this,a)){a.applyDateOperation(n,ht.TimeUnit.Day,T(this,Fe).hour.values.length);continue}if(!J(s=yn,Qt,Ba).call(s,a.getMonth()+1,T(this,Fe).month.values)){a.applyDateOperation(n,ht.TimeUnit.Month,T(this,Fe).hour.values.length);continue}if(J(this,Ye,dh).call(this,a,n,t)){if(!J(o=yn,Qt,Ba).call(o,a.getMinutes(),T(this,Fe).minute.values)){J(this,Ye,ch).call(this,a,n,t);continue}if(!J(l=yn,Qt,Ba).call(l,a.getSeconds(),T(this,Fe).second.values)){J(this,Ye,lh).call(this,a,n,t);continue}if(r===a.getTime()){a.applyDateOperation(n,ht.TimeUnit.Second,T(this,Fe).hour.values.length);continue}break}}if(i>=sh)throw new Error(Mn.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return ae(this,Gn,a),a},Ee(yn,Qt);var ml=yn;Mn.CronExpression=ml;Mn.default=ml});var ph=O(Fu=>{"use strict";u();Object.defineProperty(Fu,"__esModule",{value:!0});Fu.seededRandom=tv;function QS(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return()=>t>>>0}function ev(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function tv(e){let t=e?QS(e)():Math.floor(Math.random()*1e10);return ev(t)}});var hl=O(Rn=>{"use strict";u();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.CronExpressionParser=Rn.DayOfWeek=Rn.Months=Rn.CronUnit=Rn.PredefinedExpressions=void 0;var nv=Nu(),av=Pu(),rv=ph(),Dn=cl(),_u;(function(e){e["@yearly"]="0 0 0 1 1 *",e["@annually"]="0 0 0 1 1 *",e["@monthly"]="0 0 0 1 * *",e["@weekly"]="0 0 0 * * 0",e["@daily"]="0 0 0 * * *",e["@hourly"]="0 0 * * * *",e["@minutely"]="0 * * * * *",e["@secondly"]="* * * * * *",e["@weekdays"]="0 0 0 * * 1-5",e["@weekends"]="0 0 0 * * 0,6"})(_u||(Rn.PredefinedExpressions=_u={}));var On;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.DayOfMonth="DayOfMonth",e.Month="Month",e.DayOfWeek="DayOfWeek"})(On||(Rn.CronUnit=On={}));var zu;(function(e){e[e.jan=1]="jan",e[e.feb=2]="feb",e[e.mar=3]="mar",e[e.apr=4]="apr",e[e.may=5]="may",e[e.jun=6]="jun",e[e.jul=7]="jul",e[e.aug=8]="aug",e[e.sep=9]="sep",e[e.oct=10]="oct",e[e.nov=11]="nov",e[e.dec=12]="dec"})(zu||(Rn.Months=zu={}));var Lu;(function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"})(Lu||(Rn.DayOfWeek=Lu={}));var hh=256,gh=1024,pe,yh,Cr,xh,bh,dl,fl,Wu,Bu,pl,wh,Ch,Sh,vh,Ih,Hu,kh,Th,Ge=class Ge{static parse(t,n={}){var L,U,se,le,$,me,E,oe;let{strict:a=!1,hashSeed:r}=n,i=(0,rv.seededRandom)(r);t=_u[t]||t;let s=J(L=Ge,pe,yh).call(L,t,a);if(!(s.dayOfMonth==="*"||s.dayOfWeek==="*"||!a))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let o=J(U=Ge,pe,Cr).call(U,On.Second,s.second,Dn.CronSecond.constraints,i,a),l=J(se=Ge,pe,Cr).call(se,On.Minute,s.minute,Dn.CronMinute.constraints,i,a),c=J(le=Ge,pe,Cr).call(le,On.Hour,s.hour,Dn.CronHour.constraints,i,a),d=J($=Ge,pe,Cr).call($,On.Month,s.month,Dn.CronMonth.constraints,i,a),m=J(me=Ge,pe,Cr).call(me,On.DayOfMonth,s.dayOfMonth,Dn.CronDayOfMonth.constraints,i,a),{dayOfWeek:f,nthDayOfWeek:g}=J(E=Ge,pe,kh).call(E,s.dayOfWeek),I=J(oe=Ge,pe,Cr).call(oe,On.DayOfWeek,f,Dn.CronDayOfWeek.constraints,i,a),C=new nv.CronFieldCollection({second:new Dn.CronSecond(o,{rawValue:s.second}),minute:new Dn.CronMinute(l,{rawValue:s.minute}),hour:new Dn.CronHour(c,{rawValue:s.hour}),dayOfMonth:Dn.CronDayOfMonth.fromMonth(d,m,{rawValue:s.dayOfMonth}),month:new Dn.CronMonth(d,{rawValue:s.month}),dayOfWeek:new Dn.CronDayOfWeek(I,{rawValue:s.dayOfWeek,nthDayOfWeek:g})});return new av.CronExpression(C,{...n,expression:t})}};pe=new WeakSet,yh=function(t,n){if(n&&!t.length)throw new Error("Invalid cron expression");if(t=t||"0 * * * * *",t.length>gh)throw new Error(`Invalid cron expression, too long, expected at most ${gh} characters`);let a=t.trim().split(/\s+/);if(n&&a.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(a.length>6)throw new Error("Invalid cron expression, too many fields");let r=["0","*","*","*","*","*"];a.length<r.length&&a.unshift(...r.slice(0,r.length-a.length));let[i,s,o,l,c,d]=a;return{second:i,minute:s,hour:o,dayOfMonth:l,month:c,dayOfWeek:d}},Cr=function(t,n,a,r,i){if((t===On.Month||t===On.DayOfWeek)&&(n=n.replace(/[a-z]{3}/gi,s=>{s=s.toLowerCase();let o=zu[s]||Lu[s];if(o===void 0)throw new Error(`Validation error, cannot resolve alias "${s}"`);return o.toString()})),!a.validChars.test(n))throw new Error(`Invalid characters, got value: ${n}`);return n=J(this,pe,xh).call(this,n,a),n=J(this,pe,bh).call(this,n,a,r,t,i),J(this,pe,wh).call(this,t,n,a)},xh=function(t,n){return t.replace(/[*?]/g,n.min+"-"+n.max)},bh=function(t,n,a,r,i){let s=a(),o=0;return t.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(l,c,d,m)=>{var f,g,I,C,L,U,se,le;if(c&&d&&m){let $=parseInt(c,10),me=parseInt(d,10),E=parseInt(m,10);if(E<=0)throw new Error(`Invalid step: ${E}, must be positive`);let oe=J(f=Ge,pe,Wu).call(f,$,me,n,r,i);return o+=Math.ceil((oe.max-oe.min+1)/E),J(g=Ge,pe,pl).call(g,r,o),J(I=Ge,pe,Bu).call(I,s,oe.min,oe.max,E,r,i)}else if(c&&d){let $=parseInt(c,10),me=parseInt(d,10),E=J(C=Ge,pe,Wu).call(C,$,me,n,r,i);return String(J(L=Ge,pe,dl).call(L,s,E.min,E.max))}else if(m){let $=parseInt(m,10);if($<=0)throw new Error(`Invalid step: ${$}, must be positive`);return o+=Math.ceil((n.max-n.min+1)/$),J(U=Ge,pe,pl).call(U,r,o),J(se=Ge,pe,Bu).call(se,s,n.min,n.max,$,r,i)}else return String(J(le=Ge,pe,dl).call(le,s,n.min,n.max))})},dl=function(t,n,a){return Math.floor(t*(a-n+1))+n},fl=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Wu=function(t,n,a,r,i){var l,c;if(t>n)throw new Error(`Invalid range: ${t}-${n}, min > max`);if(i&&(t<a.min||n>a.max))throw new Error(`Invalid range: ${t}-${n}, outside the ${a.min}-${a.max} range of the ${J(l=Ge,pe,fl).call(l,r)} field`);let s=Math.max(t,a.min),o=Math.min(n,a.max);if(s>o)throw new Error(`Invalid range: ${t}-${n}, no usable value in the ${J(c=Ge,pe,fl).call(c,r)} field`);return{min:s,max:o}},Bu=function(t,n,a,r,i,s){var c,d;if(s&&r>a-n+1)throw new Error(`Invalid step: ${r}, wider than the ${n}-${a} range of the ${J(c=Ge,pe,fl).call(c,i)} field`);let o=Math.floor(t*r),l=[];for(let m=Math.floor(n/r)*r+o;m<=a;m+=r)m>=n&&l.push(m);return l.length===0?String(J(d=Ge,pe,dl).call(d,t,n,a)):l.join(",")},pl=function(t,n){if(n>hh)throw new Error(`Constraint error, too many values in ${t} field, expected at most ${hh}`)},wh=function(t,n,a){var o,l;let r=[];function i(c,d){var m;if(Array.isArray(c))r.push(...c);else if(J(m=Ge,pe,Th).call(m,d,c))r.push(c);else{let f=parseInt(c.toString(),10);if(!(f>=d.min&&f<=d.max))throw new Error(`Constraint error, got value ${c} expected range ${d.min}-${d.max}`);r.push(t===On.DayOfWeek?f%7:c)}}let s=n.split(",");for(let c of s){if(J(o=Ge,pe,pl).call(o,t,r.length),!(c.length>0))throw new Error("Invalid list value format");i(J(l=Ge,pe,Ch).call(l,t,c,a),a)}return r},Ch=function(t,n,a){var i,s;let r=n.split("/");if(r.length>2)throw new Error(`Invalid repeat: ${n}`);return r.length===2?(r[0].includes("-")||(r[0]=`${r[0]}-${a.max}`),J(i=Ge,pe,Hu).call(i,t,r[0],parseInt(r[1],10),a)):J(s=Ge,pe,Hu).call(s,t,n,1,a)},Sh=function(t,n,a){if(!(!isNaN(t)&&!isNaN(n)&&t>=a.min&&n<=a.max))throw new Error(`Constraint error, got range ${t}-${n} expected range ${a.min}-${a.max}`);if(t>n)throw new Error(`Invalid range: ${t}-${n}, min(${t}) > max(${n})`)},vh=function(t){if(!(!isNaN(t)&&t>0))throw new Error(`Constraint error, cannot repeat at every ${t} time.`)},Ih=function(t,n,a,r){let i=[];t===On.DayOfWeek&&a%7===0&&(a-n)%r===0&&i.push(0);for(let s=n;s<=a;s+=r)i.indexOf(s)===-1&&i.push(s);return i},Hu=function(t,n,a,r){let i=n.split("-");if(i.length<=1)return isNaN(+n)?n:+n;let[s,o]=i.map(l=>parseInt(l,10));return J(this,pe,Sh).call(this,s,o,r),J(this,pe,vh).call(this,a),J(this,pe,Ih).call(this,t,s,o,a)},kh=function(t){let n=t.split("#");if(n.length<=1)return{dayOfWeek:n[0]};let a=+n[n.length-1],r=t.match(/([,\-/])/);if(r!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${r?.[0]}\` special characters are incompatible`);if(!(n.length<=2&&!isNaN(a)&&a>=1&&a<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:n[0],nthDayOfWeek:a}},Th=function(t,n){return t.chars.some(a=>n.toString().includes(a))},Ee(Ge,pe);var Vu=Ge;Rn.CronExpressionParser=Vu});var Mh=O(()=>{u()});var Dh=O(()=>{u()});var Rh=O(gl=>{"use strict";u();Object.defineProperty(gl,"__esModule",{value:!0});gl.CronFileParser=void 0;var iv=hl(),Sr,qu,Oh,Ei=class Ei{static async parseFile(t){var r;let{readFile:n}=Mh(),a=await n(t,"utf8");return J(r=Ei,Sr,qu).call(r,a)}static parseFileSync(t){var r;let{readFileSync:n}=Dh(),a=n(t,"utf8");return J(r=Ei,Sr,qu).call(r,a)}};Sr=new WeakSet,qu=function(t){var r;let n=t.split(`
4
+ `),a={variables:{},expressions:[],errors:{}};for(let i of n){let s=i.trim();if(s.length===0||s.startsWith("#"))continue;let o=s.match(/^(.*)=(.*)$/);if(o){let[,l,c]=o;a.variables[l]=c.replace(/["']/g,"");continue}try{let l=J(r=Ei,Sr,Oh).call(r,s);a.expressions.push(l.interval)}catch(l){a.errors[s]=l}}return a},Oh=function(t){let n=t.split(/\s+/);return{interval:iv.CronExpressionParser.parse(n.slice(0,5).join(" ")),command:n.slice(5,n.length)}},Ee(Ei,Sr);var $u=Ei;gl.CronFileParser=$u});var Eh=O(Rt=>{"use strict";u();var sv=Rt&&Rt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),ov=Rt&&Rt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&sv(t,e,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.CronFileParser=Rt.CronExpressionParser=Rt.CronExpression=Rt.CronFieldCollection=Rt.CronDate=void 0;var lv=hl(),cv=nl();Object.defineProperty(Rt,"CronDate",{enumerable:!0,get:function(){return cv.CronDate}});var uv=Nu();Object.defineProperty(Rt,"CronFieldCollection",{enumerable:!0,get:function(){return uv.CronFieldCollection}});var mv=Pu();Object.defineProperty(Rt,"CronExpression",{enumerable:!0,get:function(){return mv.CronExpression}});var dv=hl();Object.defineProperty(Rt,"CronExpressionParser",{enumerable:!0,get:function(){return dv.CronExpressionParser}});var fv=Rh();Object.defineProperty(Rt,"CronFileParser",{enumerable:!0,get:function(){return fv.CronFileParser}});ov(cl(),Rt);Rt.default=lv.CronExpressionParser});var Ni=O((lE,vr)=>{"use strict";u();function Nh(e){return typeof e>"u"||e===null}function pv(e){return typeof e=="object"&&e!==null}function hv(e){return Array.isArray(e)?e:Nh(e)?[]:[e]}function gv(e,t){if(t){let n=Object.keys(t);for(let a=0,r=n.length;a<r;a+=1){let i=n[a];e[i]=t[i]}}return e}function yv(e,t){let n="";for(let a=0;a<t;a+=1)n+=e;return n}function xv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}vr.exports.isNothing=Nh;vr.exports.isObject=pv;vr.exports.toArray=hv;vr.exports.repeat=yv;vr.exports.isNegativeZero=xv;vr.exports.extend=gv});var Ai=O((uE,Ph)=>{"use strict";u();function Ah(e,t){let n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
5
+
6
+ `+e.mark.snippet),a+" "+n):a}function Ls(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ah(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ls.prototype=Object.create(Error.prototype);Ls.prototype.constructor=Ls;Ls.prototype.toString=function(t){return this.name+": "+Ah(this,t)};Ph.exports=Ls});var _h=O((dE,Fh)=>{"use strict";u();var Vs=Ni();function Uu(e,t,n,a,r){let i="",s="",o=Math.floor(r/2)-1;return a-t>o&&(i=" ... ",t=a-o+i.length),n-a>o&&(s=" ...",n=a+o-s.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+s,pos:a-t+i.length}}function Yu(e,t){return Vs.repeat(" ",t-e.length)+e}function bv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);let n=/\r?\n|\r|\0/g,a=[0],r=[],i,s=-1;for(;i=n.exec(e.buffer);)r.push(i.index),a.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);let o="",l=Math.min(e.line+t.linesAfter,r.length).toString().length,c=t.maxLength-(t.indent+l+3);for(let m=1;m<=t.linesBefore&&!(s-m<0);m++){let f=Uu(e.buffer,a[s-m],r[s-m],e.position-(a[s]-a[s-m]),c);o=Vs.repeat(" ",t.indent)+Yu((e.line-m+1).toString(),l)+" | "+f.str+`
7
+ `+o}let d=Uu(e.buffer,a[s],r[s],e.position,c);o+=Vs.repeat(" ",t.indent)+Yu((e.line+1).toString(),l)+" | "+d.str+`
8
+ `,o+=Vs.repeat("-",t.indent+l+3+d.pos)+`^
9
+ `;for(let m=1;m<=t.linesAfter&&!(s+m>=r.length);m++){let f=Uu(e.buffer,a[s+m],r[s+m],e.position-(a[s]-a[s+m]),c);o+=Vs.repeat(" ",t.indent)+Yu((e.line+m+1).toString(),l)+" | "+f.str+`
10
+ `}return o.replace(/\n$/,"")}Fh.exports=bv});var Bt=O((pE,Lh)=>{"use strict";u();var zh=Ai(),wv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Cv=["scalar","sequence","mapping"];function Sv(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){t[String(a)]=n})}),t}function vv(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(wv.indexOf(n)===-1)throw new zh('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Sv(t.styleAliases||null),Cv.indexOf(this.kind)===-1)throw new zh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}Lh.exports=vv});var Ju=O((gE,Wh)=>{"use strict";u();var Ws=Ai(),Gu=Bt();function Vh(e,t){let n=[];return e[t].forEach(function(a){let r=n.length;n.forEach(function(i,s){i.tag===a.tag&&i.kind===a.kind&&i.multi===a.multi&&(r=s)}),n[r]=a}),n}function Iv(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(let n=0,a=arguments.length;n<a;n+=1)arguments[n].forEach(t);return e}function Ku(e){return this.extend(e)}Ku.prototype.extend=function(t){let n=[],a=[];if(t instanceof Gu)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new Ws("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof Gu))throw new Ws("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Ws("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Ws("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(i){if(!(i instanceof Gu))throw new Ws("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let r=Object.create(Ku.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(a),r.compiledImplicit=Vh(r,"implicit"),r.compiledExplicit=Vh(r,"explicit"),r.compiledTypeMap=Iv(r.compiledImplicit,r.compiledExplicit),r};Wh.exports=Ku});var ju=O((xE,Bh)=>{"use strict";u();var kv=Bt();Bh.exports=new kv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Zu=O((wE,Hh)=>{"use strict";u();var Tv=Bt();Hh.exports=new Tv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Xu=O((SE,$h)=>{"use strict";u();var Mv=Bt();$h.exports=new Mv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Qu=O((IE,qh)=>{"use strict";u();var Dv=Ju();qh.exports=new Dv({explicit:[ju(),Zu(),Xu()]})});var em=O((TE,Uh)=>{"use strict";u();var Ov=Bt();function Rv(e){if(e===null)return!0;let t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Ev(){return null}function Nv(e){return e===null}Uh.exports=new Ov("tag:yaml.org,2002:null",{kind:"scalar",resolve:Rv,construct:Ev,predicate:Nv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var tm=O((DE,Yh)=>{"use strict";u();var Av=Bt();function Pv(e){if(e===null)return!1;let t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Fv(e){return e==="true"||e==="True"||e==="TRUE"}function _v(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Yh.exports=new Av("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Pv,construct:Fv,predicate:_v,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var nm=O((RE,Gh)=>{"use strict";u();var zv=Ni(),Lv=Bt();function Vv(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Wv(e){return e>=48&&e<=55}function Bv(e){return e>=48&&e<=57}function Hv(e){if(e===null)return!1;let t=e.length,n=0,a=!1;if(!t)return!1;let r=e[n];if((r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++){if(r=e[n],r!=="0"&&r!=="1")return!1;a=!0}return a&&isFinite(Bs(e))}if(r==="x"){for(n++;n<t;n++){if(!Vv(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(Bs(e))}if(r==="o"){for(n++;n<t;n++){if(!Wv(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(Bs(e))}}for(;n<t;n++){if(!Bv(e.charCodeAt(n)))return!1;a=!0}return a?isFinite(Bs(e)):!1}function Bs(e){let t=e,n=1,a=t[0];if((a==="-"||a==="+")&&(a==="-"&&(n=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function $v(e){return Bs(e)}function qv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!zv.isNegativeZero(e)}Gh.exports=new Lv("tag:yaml.org,2002:int",{kind:"scalar",resolve:Hv,construct:$v,predicate:qv,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var am=O((NE,Jh)=>{"use strict";u();var Kh=Ni(),Uv=Bt(),Yv=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Gv=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Kv(e){return e===null||!Yv.test(e)?!1:isFinite(parseFloat(e,10))?!0:Gv.test(e)}function Jv(e){let t=e.toLowerCase(),n=t[0]==="-"?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var jv=/^[-+]?[0-9]+e/;function Zv(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Kh.isNegativeZero(e))return"-0.0";let n=e.toString(10);return jv.test(n)?n.replace("e",".e"):n}function Xv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Kh.isNegativeZero(e))}Jh.exports=new Uv("tag:yaml.org,2002:float",{kind:"scalar",resolve:Kv,construct:Jv,predicate:Xv,represent:Zv,defaultStyle:"lowercase"})});var rm=O((PE,jh)=>{"use strict";u();jh.exports=Qu().extend({implicit:[em(),tm(),nm(),am()]})});var im=O((_E,Zh)=>{"use strict";u();Zh.exports=rm()});var sm=O((LE,eg)=>{"use strict";u();var Qv=Bt(),Xh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Qh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function eI(e){return e===null?!1:Xh.exec(e)!==null||Qh.exec(e)!==null}function tI(e){let t=0,n=null,a=Xh.exec(e);if(a===null&&(a=Qh.exec(e)),a===null)throw new Error("Date resolve error");let r=+a[1],i=+a[2]-1,s=+a[3];if(!a[4])return new Date(Date.UTC(r,i,s));let o=+a[4],l=+a[5],c=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+="0";t=+t}if(a[9]){let m=+a[10],f=+(a[11]||0);n=(m*60+f)*6e4,a[9]==="-"&&(n=-n)}let d=new Date(Date.UTC(r,i,s,o,l,c,t));return n&&d.setTime(d.getTime()-n),d}function nI(e){return e.toISOString()}eg.exports=new Qv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:eI,construct:tI,instanceOf:Date,represent:nI})});var om=O((WE,tg)=>{"use strict";u();var aI=Bt();function rI(e){return e==="<<"||e===null}tg.exports=new aI("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rI})});var cm=O((HE,ng)=>{"use strict";u();var iI=Bt(),lm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
+ \r`;function sI(e){if(e===null)return!1;let t=0,n=e.length,a=lm;for(let r=0;r<n;r++){let i=a.indexOf(e.charAt(r));if(!(i>64)){if(i<0)return!1;t+=6}}return t%8===0}function oI(e){let t=e.replace(/[\r\n=]/g,""),n=t.length,a=lm,r=0,i=[];for(let o=0;o<n;o++)o%4===0&&o&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|a.indexOf(t.charAt(o));let s=n%4*6;return s===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):s===18?(i.push(r>>10&255),i.push(r>>2&255)):s===12&&i.push(r>>4&255),new Uint8Array(i)}function lI(e){let t="",n=0,a=e.length,r=lm;for(let s=0;s<a;s++)s%3===0&&s&&(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]),n=(n<<8)+e[s];let i=a%3;return i===0?(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]):i===2?(t+=r[n>>10&63],t+=r[n>>4&63],t+=r[n<<2&63],t+=r[64]):i===1&&(t+=r[n>>2&63],t+=r[n<<4&63],t+=r[64],t+=r[64]),t}function cI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}ng.exports=new iI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sI,construct:oI,predicate:cI,represent:lI})});var um=O((qE,rg)=>{"use strict";u();var uI=Bt(),ag=Object.prototype.hasOwnProperty,mI=Object.prototype.toString;function dI(e){if(e===null)return!0;let t={},n=e;for(let a=0,r=n.length;a<r;a+=1){let i=n[a],s=!1;if(mI.call(i)!=="[object Object]")return!1;let o;for(o in i)if(ag.call(i,o))if(!s)s=!0;else return!1;if(!s||ag.call(t,o))return!1;Object.defineProperty(t,o,{value:!0})}return!0}function fI(e){return e!==null?e:[]}rg.exports=new uI("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dI,construct:fI})});var mm=O((YE,ig)=>{"use strict";u();var pI=Bt(),hI=Object.prototype.toString;function gI(e){if(e===null)return!0;let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a];if(hI.call(i)!=="[object Object]")return!1;let s=Object.keys(i);if(s.length!==1)return!1;n[a]=[s[0],i[s[0]]]}return!0}function yI(e){if(e===null)return[];let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a],s=Object.keys(i);n[a]=[s[0],i[s[0]]]}return n}ig.exports=new pI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gI,construct:yI})});var dm=O((KE,sg)=>{"use strict";u();var xI=Bt(),bI=Object.prototype.hasOwnProperty;function wI(e){if(e===null)return!0;let t=e;for(let n in t)if(bI.call(t,n)&&t[n]!==null)return!1;return!0}function CI(e){return e!==null?e:{}}sg.exports=new xI("tag:yaml.org,2002:set",{kind:"mapping",resolve:wI,construct:CI})});var yl=O((jE,og)=>{"use strict";u();og.exports=im().extend({implicit:[sm(),om()],explicit:[cm(),um(),mm(),dm()]})});var Dg=O((XE,gm)=>{"use strict";u();var Ir=Ni(),gg=Ai(),SI=_h(),vI=yl(),Kn=Object.prototype.hasOwnProperty,xl=1,yg=2,xg=3,bl=4,fm=1,II=2,lg=3,kI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,TI=/[\x85\u2028\u2029]/,MI=/[,\[\]{}]/,bg=/^(?:!|!!|![0-9A-Za-z-]+!)$/,wg=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function cg(e){return Object.prototype.toString.call(e)}function ca(e){return e===10||e===13}function wa(e){return e===9||e===32}function en(e){return e===9||e===32||e===10||e===13}function Pi(e){return e===44||e===91||e===93||e===123||e===125}function DI(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function OI(e){return e===120?2:e===117?4:e===85?8:0}function RI(e){return e>=48&&e<=57?e-48:-1}function ug(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
12
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function EI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Cg(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var Sg=new Array(256),vg=new Array(256);for(let e=0;e<256;e++)Sg[e]=ug(e)?1:0,vg[e]=ug(e);function NI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||vI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys=="number"?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function Ig(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=SI(n),new gg(t,n)}function ie(e,t){throw Ig(e,t)}function wl(e,t){e.onWarning&&e.onWarning.call(null,Ig(e,t))}function kr(e,t,n){let a=e.anchorMapTransactions;if(a.length!==0){let r=a[a.length-1];Kn.call(r,t)||(r[t]={existed:Kn.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function AI(e){e.anchorMapTransactions.push(Object.create(null))}function PI(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let a=n[n.length-1],r=Object.keys(t);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];Kn.call(a,o)||(a[o]=t[o])}}function FI(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let a=n.length-1;a>=0;a-=1){let r=t[n[a]];r.existed?e.anchorMap[n[a]]=r.value:delete e.anchorMap[n[a]]}}function kg(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function mg(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var dg={YAML:function(t,n,a){t.version!==null&&ie(t,"duplication of %YAML directive"),a.length!==1&&ie(t,"YAML directive accepts exactly one argument");let r=/^([0-9]+)\.([0-9]+)$/.exec(a[0]);r===null&&ie(t,"ill-formed argument of the YAML directive");let i=parseInt(r[1],10),s=parseInt(r[2],10);i!==1&&ie(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&wl(t,"unsupported YAML version of the document")},TAG:function(t,n,a){let r;a.length!==2&&ie(t,"TAG directive accepts exactly two arguments");let i=a[0];r=a[1],bg.test(i)||ie(t,"ill-formed tag handle (first argument) of the TAG directive"),Kn.call(t.tagMap,i)&&ie(t,'there is a previously declared suffix for "'+i+'" tag handle'),wg.test(r)||ie(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{ie(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Ha(e,t,n,a){if(t<n){let r=e.input.slice(t,n);if(a)for(let i=0,s=r.length;i<s;i+=1){let o=r.charCodeAt(i);o===9||o>=32&&o<=1114111||ie(e,"expected valid JSON character")}else kI.test(r)&&ie(e,"the stream contains non-printable characters");e.result+=r}}function fg(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&ie(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function pg(e,t,n,a){Ir.isObject(n)||ie(e,"cannot merge mappings; the provided source object is unacceptable"),fg(e);let r=Object.keys(n);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];fg(e),Kn.call(t,o)||(Cg(t,o,n[o]),a[o]=!0)}}function Fi(e,t,n,a,r,i,s,o,l){if(Array.isArray(r)){r=Array.prototype.slice.call(r);for(let c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&ie(e,"nested arrays are not supported inside keys"),typeof r=="object"&&cg(r[c])==="[object Object]"&&(r[c]="[object Object]")}if(typeof r=="object"&&cg(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(i)){i.length>100&&ie(e,"abnormal merge sequence size");for(let c=0,d=i.length;c<d;c+=1)pg(e,t,i[c],n)}else pg(e,t,i,n);else!e.json&&!Kn.call(n,r)&&Kn.call(t,r)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,ie(e,"duplicated mapping key")),Cg(t,r,i),delete n[r];return t}function pm(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ie(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function vt(e,t,n){let a=0,r=e.input.charCodeAt(e.position);for(;r!==0;){for(;wa(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ca(r))for(pm(e),r=e.input.charCodeAt(e.position),a++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&wl(e,"deficient indentation"),a}function Cl(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||en(n)))}function hm(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ir.repeat(`
13
+ `,t-1))}function _I(e,t,n){let a,r,i,s,o,l,c=e.kind,d=e.result,m=e.input.charCodeAt(e.position);if(en(m)||Pi(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96)return!1;if(m===63||m===45){let f=e.input.charCodeAt(e.position+1);if(en(f)||n&&Pi(f))return!1}for(e.kind="scalar",e.result="",a=r=e.position,i=!1;m!==0;){if(m===58){let f=e.input.charCodeAt(e.position+1);if(en(f)||n&&Pi(f))break}else if(m===35){let f=e.input.charCodeAt(e.position-1);if(en(f))break}else{if(e.position===e.lineStart&&Cl(e)||n&&Pi(m))break;if(ca(m))if(s=e.line,o=e.lineStart,l=e.lineIndent,vt(e,!1,-1),e.lineIndent>=t){i=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=r,e.line=s,e.lineStart=o,e.lineIndent=l;break}}i&&(Ha(e,a,r,!1),hm(e,e.line-s),a=r=e.position,i=!1),wa(m)||(r=e.position+1),m=e.input.charCodeAt(++e.position)}return Ha(e,a,r,!1),e.result?!0:(e.kind=c,e.result=d,!1)}function zI(e,t){let n,a,r=e.input.charCodeAt(e.position);if(r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ha(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,a=e.position;else return!0;else ca(r)?(Ha(e,n,a,!0),hm(e,vt(e,!1,t)),n=a=e.position):e.position===e.lineStart&&Cl(e)?ie(e,"unexpected end of the document within a single quoted scalar"):(e.position++,wa(r)||(a=e.position));ie(e,"unexpected end of the stream within a single quoted scalar")}function LI(e,t){let n,a,r,i=e.input.charCodeAt(e.position);if(i!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(i=e.input.charCodeAt(e.position))!==0;){if(i===34)return Ha(e,n,e.position,!0),e.position++,!0;if(i===92){if(Ha(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),ca(i))vt(e,!1,t);else if(i<256&&Sg[i])e.result+=vg[i],e.position++;else if((r=OI(i))>0){let s=r,o=0;for(;s>0;s--)i=e.input.charCodeAt(++e.position),(r=DI(i))>=0?o=(o<<4)+r:ie(e,"expected hexadecimal character");e.result+=EI(o),e.position++}else ie(e,"unknown escape sequence");n=a=e.position}else ca(i)?(Ha(e,n,a,!0),hm(e,vt(e,!1,t)),n=a=e.position):e.position===e.lineStart&&Cl(e)?ie(e,"unexpected end of the document within a double quoted scalar"):(e.position++,wa(i)||(a=e.position))}ie(e,"unexpected end of the stream within a double quoted scalar")}function VI(e,t){let n=!0,a,r,i,s=e.tag,o,l=e.anchor,c,d,m,f,g=Object.create(null),I,C,L,U=e.input.charCodeAt(e.position);if(U===91)c=93,f=!1,o=[];else if(U===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&kr(e,e.anchor,o),U=e.input.charCodeAt(++e.position);U!==0;){if(vt(e,!0,t),U=e.input.charCodeAt(e.position),U===c)return e.position++,e.tag=s,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=o,!0;if(n?U===44&&ie(e,"expected the node content, but found ','"):ie(e,"missed comma between flow collection entries"),C=I=L=null,d=m=!1,U===63){let se=e.input.charCodeAt(e.position+1);en(se)&&(d=m=!0,e.position++,vt(e,!0,t))}a=e.line,r=e.lineStart,i=e.position,_i(e,t,xl,!1,!0),C=e.tag,I=e.result,vt(e,!0,t),U=e.input.charCodeAt(e.position),(m||e.line===a)&&U===58&&(d=!0,U=e.input.charCodeAt(++e.position),vt(e,!0,t),_i(e,t,xl,!1,!0),L=e.result),f?Fi(e,o,g,C,I,L,a,r,i):d?o.push(Fi(e,null,g,C,I,L,a,r,i)):o.push(I),vt(e,!0,t),U=e.input.charCodeAt(e.position),U===44?(n=!0,U=e.input.charCodeAt(++e.position)):n=!1}ie(e,"unexpected end of the stream within a flow collection")}function WI(e,t){let n,a=fm,r=!1,i=!1,s=t,o=0,l=!1,c,d=e.input.charCodeAt(e.position);if(d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)fm===a?a=d===43?lg:II:ie(e,"repeat of a chomping mode identifier");else if((c=RI(d))>=0)c===0?ie(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?ie(e,"repeat of an indentation width identifier"):(s=t+c-1,i=!0);else break;if(wa(d)){do d=e.input.charCodeAt(++e.position);while(wa(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ca(d)&&d!==0)}for(;d!==0;){for(pm(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),ca(d)){o++;continue}if(!i&&s===0&&ie(e,"missing indentation for block scalar"),e.lineIndent<s){a===lg?e.result+=Ir.repeat(`
14
+ `,r?1+o:o):a===fm&&r&&(e.result+=`
15
+ `);break}n?wa(d)?(l=!0,e.result+=Ir.repeat(`
16
16
  `,r?1+o:o)):l?(l=!1,e.result+=Ir.repeat(`
17
17
  `,o+1)):o===0?r&&(e.result+=" "):e.result+=Ir.repeat(`
18
18
  `,o):e.result+=Ir.repeat(`
19
- `,r?1+o:o),r=!0,i=!0,o=0;let m=e.position;for(;!ca(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Wa(e,m,e.position,!1)}return!0}function fg(e,t){let n=e.tag,a=e.anchor,r=[],i=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&kr(e,e.anchor,r);let s=e.input.charCodeAt(e.position);for(;s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ie(e,"tab characters must not be used in indentation")),s===45);){let o=e.input.charCodeAt(e.position+1);if(!en(o))break;if(i=!0,e.position++,Ct(e,!0,-1)&&e.lineIndent<=t){r.push(null),s=e.input.charCodeAt(e.position);continue}let l=e.line;if(Pi(e,t,gg,!1,!0),r.push(e.result),Ct(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&s!==0)ie(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i?(e.tag=n,e.anchor=a,e.kind="sequence",e.result=r,!0):!1}function Ig(e,t,n){let a,r,i,s,o=e.tag,l=e.anchor,c={},d=Object.create(null),m=null,f=null,g=null,I=!1,S=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&kr(e,e.anchor,c);let L=e.input.charCodeAt(e.position);for(;L!==0;){!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ie(e,"tab characters must not be used in indentation"));let U=e.input.charCodeAt(e.position+1),se=e.line;if((L===63||L===58)&&en(U))L===63?(I&&(Ai(e,c,d,m,f,null,r,i,s),m=f=g=null),S=!0,I=!0,a=!0):I?(I=!1,a=!0):ie(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,L=U;else{if(r=e.line,i=e.lineStart,s=e.position,!Pi(e,n,hg,!1,!0))break;if(e.line===se){for(L=e.input.charCodeAt(e.position);ba(L);)L=e.input.charCodeAt(++e.position);if(L===58)L=e.input.charCodeAt(++e.position),en(L)||ie(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(Ai(e,c,d,m,f,null,r,i,s),m=f=g=null),S=!0,I=!1,a=!1,m=e.tag,f=e.result;else if(S)ie(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=l,!0}else if(S)ie(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=l,!0}if((e.line===se||e.lineIndent>t)&&(I&&(r=e.line,i=e.lineStart,s=e.position),Pi(e,t,bl,!0,a)&&(I?f=e.result:g=e.result),I||(Ai(e,c,d,m,f,g,r,i,s),m=f=g=null),Ct(e,!0,-1),L=e.input.charCodeAt(e.position)),(e.line===se||e.lineIndent>t)&&L!==0)ie(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return I&&Ai(e,c,d,m,f,null,r,i,s),S&&(e.tag=o,e.anchor=l,e.kind="mapping",e.result=c),S}function zI(e){let t=!1,n=!1,a,r,i=e.input.charCodeAt(e.position);if(i!==33)return!1;e.tag!==null&&ie(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(t=!0,i=e.input.charCodeAt(++e.position)):i===33?(n=!0,a="!!",i=e.input.charCodeAt(++e.position)):a="!";let s=e.position;if(t){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(r=e.input.slice(s,e.position),i=e.input.charCodeAt(++e.position)):ie(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!en(i);)i===33&&(n?ie(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(s-1,e.position+1),yg.test(a)||ie(e,"named tag handle cannot contain such characters"),n=!0,s=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(s,e.position),vI.test(r)&&ie(e,"tag suffix cannot contain flow indicator characters")}r&&!xg.test(r)&&ie(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch{ie(e,"tag name is malformed: "+r)}return t?e.tag=r:Kn.call(e.tagMap,a)?e.tag=e.tagMap[a]+r:a==="!"?e.tag="!"+r:a==="!!"?e.tag="tag:yaml.org,2002:"+r:ie(e,'undeclared tag handle "'+a+'"'),!0}function LI(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&ie(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!en(t)&&!Ei(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&ie(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function VI(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!en(t)&&!Ei(t);)t=e.input.charCodeAt(++e.position);e.position===n&&ie(e,"name of an alias node must contain at least one character");let a=e.input.slice(n,e.position);return Kn.call(e.anchorMap,a)||ie(e,'unidentified alias "'+a+'"'),e.result=e.anchorMap[a],Ct(e,!0,-1),!0}function WI(e,t,n,a){let r=vg(e);return OI(e),cg(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,Ig(e,n,a)&&e.kind==="mapping"?(RI(e),!0):(NI(e),cg(e,r),!1)}function Pi(e,t,n,a,r){let i,s,o=1,l=!1,c=!1,d=null,m,f,g;e.depth>=e.maxDepth&&ie(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let I=i=s=bl===n||gg===n;if(a&&Ct(e,!0,-1)&&(l=!0,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)),o===1)for(;;){let S=e.input.charCodeAt(e.position),L=vg(e);if(l&&(S===33&&e.tag!==null||S===38&&e.anchor!==null)||!zI(e)&&!LI(e))break;d===null&&(d=L),Ct(e,!0,-1)?(l=!0,s=I,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)):s=!1}if(s&&(s=l||r),o===1||bl===n)if(xl===n||hg===n?f=t:f=t+1,g=e.position-e.lineStart,o===1)if(s&&(fg(e,g)||Ig(e,g,f))||FI(e,f))c=!0;else{let S=e.input.charCodeAt(e.position);d!==null&&I&&!s&&S!==124&&S!==62&&WI(e,d,d.position-d.lineStart,f)||i&&_I(e,f)||AI(e,f)||PI(e,f)?c=!0:VI(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ie(e,"alias node should not have any properties")):EI(e,f,xl===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&kr(e,e.anchor,e.result)}else o===0&&(c=s&&fg(e,g));if(e.tag===null)e.anchor!==null&&kr(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&ie(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let S=0,L=e.implicitTypes.length;S<L;S+=1)if(m=e.implicitTypes[S],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&kr(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(Kn.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else{m=null;let S=e.typeMap.multi[e.kind||"fallback"];for(let L=0,U=S.length;L<U;L+=1)if(e.tag.slice(0,S[L].tag.length)===S[L].tag){m=S[L];break}}m||ie(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&ie(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&kr(e,e.anchor,e.result)):ie(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||c}function BI(e){let t=e.position,n=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ct(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){n=!0,a=e.input.charCodeAt(++e.position);let r=e.position;for(;a!==0&&!en(a);)a=e.input.charCodeAt(++e.position);let i=e.input.slice(r,e.position),s=[];for(i.length<1&&ie(e,"directive name must not be less than one character in length");a!==0;){for(;ba(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ca(a));break}if(ca(a))break;for(r=e.position;a!==0&&!en(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}a!==0&&dm(e),Kn.call(ug,i)?ug[i](e,i,s):wl(e,'unknown document directive "'+i+'"')}if(Ct(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ct(e,!0,-1)):n&&ie(e,"directives end mark is expected"),Pi(e,e.lineIndent-1,bl,!1,!0),Ct(e,!0,-1),e.checkLineBreaks&&CI.test(e.input.slice(t,e.position))&&wl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Sl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ct(e,!0,-1));return}e.position<e.length-1&&ie(e,"end of the stream or a document separator is expected")}function kg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new DI(e,t),a=e.indexOf("\0");for(a!==-1&&(n.position=a,ie(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)BI(n);return n.documents}function HI(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);let a=kg(e,n);if(typeof t!="function")return a;for(let r=0,i=a.length;r<i;r+=1)t(a[r])}function $I(e,t){let n=kg(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new pg("expected a single document in the stream, but found more")}}pm.exports.loadAll=HI;pm.exports.load=$I});var Gg=O((jN,Yg)=>{"use strict";u();var Il=Ri(),Us=Ni(),qI=yl(),Fg=Object.prototype.toString,_g=Object.prototype.hasOwnProperty,bm=65279,UI=9,Hs=10,YI=13,GI=32,KI=33,JI=34,hm=35,jI=37,ZI=38,XI=39,QI=42,zg=44,ek=45,Cl=58,tk=61,nk=62,ak=63,rk=64,Lg=91,Vg=93,ik=96,Wg=123,sk=124,Bg=125,Ht={};Ht[0]="\\0";Ht[7]="\\a";Ht[8]="\\b";Ht[9]="\\t";Ht[10]="\\n";Ht[11]="\\v";Ht[12]="\\f";Ht[13]="\\r";Ht[27]="\\e";Ht[34]='\\"';Ht[92]="\\\\";Ht[133]="\\N";Ht[160]="\\_";Ht[8232]="\\L";Ht[8233]="\\P";var ok=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],lk=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ck(e,t){if(t===null)return{};let n={},a=Object.keys(t);for(let r=0,i=a.length;r<i;r+=1){let s=a[r],o=String(t[s]);s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2));let l=e.compiledTypeMap.fallback[s];l&&_g.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o}return n}function uk(e){let t,n,a=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new Us("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Il.repeat("0",n-a.length)+a}var mk=1,$s=2;function dk(e){this.schema=e.schema||qI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Il.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ck(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?$s:mk,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Mg(e,t){let n=Il.repeat(" ",t),a=0,r="",i=e.length;for(;a<i;){let s,o=e.indexOf(`
19
+ `,r?1+o:o),r=!0,i=!0,o=0;let m=e.position;for(;!ca(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ha(e,m,e.position,!1)}return!0}function hg(e,t){let n=e.tag,a=e.anchor,r=[],i=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&kr(e,e.anchor,r);let s=e.input.charCodeAt(e.position);for(;s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ie(e,"tab characters must not be used in indentation")),s===45);){let o=e.input.charCodeAt(e.position+1);if(!en(o))break;if(i=!0,e.position++,vt(e,!0,-1)&&e.lineIndent<=t){r.push(null),s=e.input.charCodeAt(e.position);continue}let l=e.line;if(_i(e,t,xg,!1,!0),r.push(e.result),vt(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&s!==0)ie(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i?(e.tag=n,e.anchor=a,e.kind="sequence",e.result=r,!0):!1}function Tg(e,t,n){let a,r,i,s,o=e.tag,l=e.anchor,c={},d=Object.create(null),m=null,f=null,g=null,I=!1,C=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&kr(e,e.anchor,c);let L=e.input.charCodeAt(e.position);for(;L!==0;){!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ie(e,"tab characters must not be used in indentation"));let U=e.input.charCodeAt(e.position+1),se=e.line;if((L===63||L===58)&&en(U))L===63?(I&&(Fi(e,c,d,m,f,null,r,i,s),m=f=g=null),C=!0,I=!0,a=!0):I?(I=!1,a=!0):ie(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,L=U;else{if(r=e.line,i=e.lineStart,s=e.position,!_i(e,n,yg,!1,!0))break;if(e.line===se){for(L=e.input.charCodeAt(e.position);wa(L);)L=e.input.charCodeAt(++e.position);if(L===58)L=e.input.charCodeAt(++e.position),en(L)||ie(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(Fi(e,c,d,m,f,null,r,i,s),m=f=g=null),C=!0,I=!1,a=!1,m=e.tag,f=e.result;else if(C)ie(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=l,!0}else if(C)ie(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=l,!0}if((e.line===se||e.lineIndent>t)&&(I&&(r=e.line,i=e.lineStart,s=e.position),_i(e,t,bl,!0,a)&&(I?f=e.result:g=e.result),I||(Fi(e,c,d,m,f,g,r,i,s),m=f=g=null),vt(e,!0,-1),L=e.input.charCodeAt(e.position)),(e.line===se||e.lineIndent>t)&&L!==0)ie(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return I&&Fi(e,c,d,m,f,null,r,i,s),C&&(e.tag=o,e.anchor=l,e.kind="mapping",e.result=c),C}function BI(e){let t=!1,n=!1,a,r,i=e.input.charCodeAt(e.position);if(i!==33)return!1;e.tag!==null&&ie(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(t=!0,i=e.input.charCodeAt(++e.position)):i===33?(n=!0,a="!!",i=e.input.charCodeAt(++e.position)):a="!";let s=e.position;if(t){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(r=e.input.slice(s,e.position),i=e.input.charCodeAt(++e.position)):ie(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!en(i);)i===33&&(n?ie(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(s-1,e.position+1),bg.test(a)||ie(e,"named tag handle cannot contain such characters"),n=!0,s=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(s,e.position),MI.test(r)&&ie(e,"tag suffix cannot contain flow indicator characters")}r&&!wg.test(r)&&ie(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch{ie(e,"tag name is malformed: "+r)}return t?e.tag=r:Kn.call(e.tagMap,a)?e.tag=e.tagMap[a]+r:a==="!"?e.tag="!"+r:a==="!!"?e.tag="tag:yaml.org,2002:"+r:ie(e,'undeclared tag handle "'+a+'"'),!0}function HI(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&ie(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!en(t)&&!Pi(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&ie(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function $I(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!en(t)&&!Pi(t);)t=e.input.charCodeAt(++e.position);e.position===n&&ie(e,"name of an alias node must contain at least one character");let a=e.input.slice(n,e.position);return Kn.call(e.anchorMap,a)||ie(e,'unidentified alias "'+a+'"'),e.result=e.anchorMap[a],vt(e,!0,-1),!0}function qI(e,t,n,a){let r=kg(e);return AI(e),mg(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,Tg(e,n,a)&&e.kind==="mapping"?(PI(e),!0):(FI(e),mg(e,r),!1)}function _i(e,t,n,a,r){let i,s,o=1,l=!1,c=!1,d=null,m,f,g;e.depth>=e.maxDepth&&ie(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let I=i=s=bl===n||xg===n;if(a&&vt(e,!0,-1)&&(l=!0,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)),o===1)for(;;){let C=e.input.charCodeAt(e.position),L=kg(e);if(l&&(C===33&&e.tag!==null||C===38&&e.anchor!==null)||!BI(e)&&!HI(e))break;d===null&&(d=L),vt(e,!0,-1)?(l=!0,s=I,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)):s=!1}if(s&&(s=l||r),o===1||bl===n)if(xl===n||yg===n?f=t:f=t+1,g=e.position-e.lineStart,o===1)if(s&&(hg(e,g)||Tg(e,g,f))||VI(e,f))c=!0;else{let C=e.input.charCodeAt(e.position);d!==null&&I&&!s&&C!==124&&C!==62&&qI(e,d,d.position-d.lineStart,f)||i&&WI(e,f)||zI(e,f)||LI(e,f)?c=!0:$I(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ie(e,"alias node should not have any properties")):_I(e,f,xl===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&kr(e,e.anchor,e.result)}else o===0&&(c=s&&hg(e,g));if(e.tag===null)e.anchor!==null&&kr(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&ie(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let C=0,L=e.implicitTypes.length;C<L;C+=1)if(m=e.implicitTypes[C],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&kr(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(Kn.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else{m=null;let C=e.typeMap.multi[e.kind||"fallback"];for(let L=0,U=C.length;L<U;L+=1)if(e.tag.slice(0,C[L].tag.length)===C[L].tag){m=C[L];break}}m||ie(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&ie(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&kr(e,e.anchor,e.result)):ie(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||c}function UI(e){let t=e.position,n=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(vt(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){n=!0,a=e.input.charCodeAt(++e.position);let r=e.position;for(;a!==0&&!en(a);)a=e.input.charCodeAt(++e.position);let i=e.input.slice(r,e.position),s=[];for(i.length<1&&ie(e,"directive name must not be less than one character in length");a!==0;){for(;wa(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ca(a));break}if(ca(a))break;for(r=e.position;a!==0&&!en(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}a!==0&&pm(e),Kn.call(dg,i)?dg[i](e,i,s):wl(e,'unknown document directive "'+i+'"')}if(vt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,vt(e,!0,-1)):n&&ie(e,"directives end mark is expected"),_i(e,e.lineIndent-1,bl,!1,!0),vt(e,!0,-1),e.checkLineBreaks&&TI.test(e.input.slice(t,e.position))&&wl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Cl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,vt(e,!0,-1));return}e.position<e.length-1&&ie(e,"end of the stream or a document separator is expected")}function Mg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new NI(e,t),a=e.indexOf("\0");for(a!==-1&&(n.position=a,ie(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)UI(n);return n.documents}function YI(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);let a=Mg(e,n);if(typeof t!="function")return a;for(let r=0,i=a.length;r<i;r+=1)t(a[r])}function GI(e,t){let n=Mg(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new gg("expected a single document in the stream, but found more")}}gm.exports.loadAll=YI;gm.exports.load=GI});var Jg=O((eN,Kg)=>{"use strict";u();var Il=Ni(),Ys=Ai(),KI=yl(),zg=Object.prototype.toString,Lg=Object.prototype.hasOwnProperty,Cm=65279,JI=9,$s=10,jI=13,ZI=32,XI=33,QI=34,ym=35,ek=37,tk=38,nk=39,ak=42,Vg=44,rk=45,Sl=58,ik=61,sk=62,ok=63,lk=64,Wg=91,Bg=93,ck=96,Hg=123,uk=124,$g=125,Ht={};Ht[0]="\\0";Ht[7]="\\a";Ht[8]="\\b";Ht[9]="\\t";Ht[10]="\\n";Ht[11]="\\v";Ht[12]="\\f";Ht[13]="\\r";Ht[27]="\\e";Ht[34]='\\"';Ht[92]="\\\\";Ht[133]="\\N";Ht[160]="\\_";Ht[8232]="\\L";Ht[8233]="\\P";var mk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],dk=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function fk(e,t){if(t===null)return{};let n={},a=Object.keys(t);for(let r=0,i=a.length;r<i;r+=1){let s=a[r],o=String(t[s]);s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2));let l=e.compiledTypeMap.fallback[s];l&&Lg.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o}return n}function pk(e){let t,n,a=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new Ys("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Il.repeat("0",n-a.length)+a}var hk=1,qs=2;function gk(e){this.schema=e.schema||KI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Il.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=fk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?qs:hk,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Og(e,t){let n=Il.repeat(" ",t),a=0,r="",i=e.length;for(;a<i;){let s,o=e.indexOf(`
21
21
  `,a);o===-1?(s=e.slice(a),a=i):(s=e.slice(a,o+1),a=o+1),s.length&&s!==`
22
- `&&(r+=n),r+=s}return r}function gm(e,t){return`
23
- `+Il.repeat(" ",e.indent*t)}function fk(e,t){for(let n=0,a=e.implicitTypes.length;n<a;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function vl(e){return e===GI||e===UI}function qs(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==bm||e>=65536&&e<=1114111}function Dg(e){return qs(e)&&e!==bm&&e!==YI&&e!==Hs}function Og(e,t,n){let a=Dg(e),r=a&&!vl(e);return(n?a:a&&e!==zg&&e!==Lg&&e!==Vg&&e!==Wg&&e!==Bg)&&e!==hm&&!(t===Cl&&!r)||Dg(t)&&!vl(t)&&e===hm||t===Cl&&r}function pk(e){return qs(e)&&e!==bm&&!vl(e)&&e!==ek&&e!==ak&&e!==Cl&&e!==zg&&e!==Lg&&e!==Vg&&e!==Wg&&e!==Bg&&e!==hm&&e!==ZI&&e!==QI&&e!==KI&&e!==sk&&e!==tk&&e!==nk&&e!==XI&&e!==JI&&e!==jI&&e!==rk&&e!==ik}function hk(e){return!vl(e)&&e!==Cl}function Bs(e,t){let n=e.charCodeAt(t),a;return n>=55296&&n<=56319&&t+1<e.length&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function Hg(e){return/^\n* /.test(e)}var $g=1,ym=2,qg=3,Ug=4,Fi=5;function gk(e,t,n,a,r,i,s,o){let l,c=0,d=null,m=!1,f=!1,g=a!==-1,I=-1,S=pk(Bs(e,0))&&hk(Bs(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Bs(e,l),!qs(c))return Fi;S=S&&Og(c,d,o),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Bs(e,l),c===Hs)m=!0,g&&(f=f||l-I-1>a&&e[I+1]!==" ",I=l);else if(!qs(c))return Fi;S=S&&Og(c,d,o),d=c}f=f||g&&l-I-1>a&&e[I+1]!==" "}return!m&&!f?S&&!s&&!r(e)?$g:i===$s?Fi:ym:n>9&&Hg(e)?Fi:s?i===$s?Fi:ym:f?Ug:qg}function yk(e,t,n,a,r){e.dump=(function(){if(t.length===0)return e.quotingType===$s?'""':"''";if(!e.noCompatMode&&(ok.indexOf(t)!==-1||lk.test(t)))return e.quotingType===$s?'"'+t+'"':"'"+t+"'";let i=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=a||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return fk(e,c)}switch(gk(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!a,r)){case $g:return t;case ym:return"'"+t.replace(/'/g,"''")+"'";case qg:return"|"+Rg(t,e.indent)+Ng(Mg(t,i));case Ug:return">"+Rg(t,e.indent)+Ng(Mg(xk(t,s),i));case Fi:return'"'+bk(t,s)+'"';default:throw new Us("impossible error: invalid scalar style")}})()}function Rg(e,t){let n=Hg(e)?String(t):"",a=e[e.length-1]===`
22
+ `&&(r+=n),r+=s}return r}function xm(e,t){return`
23
+ `+Il.repeat(" ",e.indent*t)}function yk(e,t){for(let n=0,a=e.implicitTypes.length;n<a;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function vl(e){return e===ZI||e===JI}function Us(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Cm||e>=65536&&e<=1114111}function Rg(e){return Us(e)&&e!==Cm&&e!==jI&&e!==$s}function Eg(e,t,n){let a=Rg(e),r=a&&!vl(e);return(n?a:a&&e!==Vg&&e!==Wg&&e!==Bg&&e!==Hg&&e!==$g)&&e!==ym&&!(t===Sl&&!r)||Rg(t)&&!vl(t)&&e===ym||t===Sl&&r}function xk(e){return Us(e)&&e!==Cm&&!vl(e)&&e!==rk&&e!==ok&&e!==Sl&&e!==Vg&&e!==Wg&&e!==Bg&&e!==Hg&&e!==$g&&e!==ym&&e!==tk&&e!==ak&&e!==XI&&e!==uk&&e!==ik&&e!==sk&&e!==nk&&e!==QI&&e!==ek&&e!==lk&&e!==ck}function bk(e){return!vl(e)&&e!==Sl}function Hs(e,t){let n=e.charCodeAt(t),a;return n>=55296&&n<=56319&&t+1<e.length&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function qg(e){return/^\n* /.test(e)}var Ug=1,bm=2,Yg=3,Gg=4,zi=5;function wk(e,t,n,a,r,i,s,o){let l,c=0,d=null,m=!1,f=!1,g=a!==-1,I=-1,C=xk(Hs(e,0))&&bk(Hs(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Hs(e,l),!Us(c))return zi;C=C&&Eg(c,d,o),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Hs(e,l),c===$s)m=!0,g&&(f=f||l-I-1>a&&e[I+1]!==" ",I=l);else if(!Us(c))return zi;C=C&&Eg(c,d,o),d=c}f=f||g&&l-I-1>a&&e[I+1]!==" "}return!m&&!f?C&&!s&&!r(e)?Ug:i===qs?zi:bm:n>9&&qg(e)?zi:s?i===qs?zi:bm:f?Gg:Yg}function Ck(e,t,n,a,r){e.dump=(function(){if(t.length===0)return e.quotingType===qs?'""':"''";if(!e.noCompatMode&&(mk.indexOf(t)!==-1||dk.test(t)))return e.quotingType===qs?'"'+t+'"':"'"+t+"'";let i=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=a||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return yk(e,c)}switch(wk(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!a,r)){case Ug:return t;case bm:return"'"+t.replace(/'/g,"''")+"'";case Yg:return"|"+Ng(t,e.indent)+Ag(Og(t,i));case Gg:return">"+Ng(t,e.indent)+Ag(Og(Sk(t,s),i));case zi:return'"'+vk(t,s)+'"';default:throw new Ys("impossible error: invalid scalar style")}})()}function Ng(e,t){let n=qg(e)?String(t):"",a=e[e.length-1]===`
24
24
  `,i=a&&(e[e.length-2]===`
25
25
  `||e===`
26
26
  `)?"+":a?"":"-";return n+i+`
27
- `}function Ng(e){return e[e.length-1]===`
28
- `?e.slice(0,-1):e}function xk(e,t){let n=/(\n+)([^\n]*)/g,a=(function(){let o=e.indexOf(`
29
- `);return o=o!==-1?o:e.length,n.lastIndex=o,Eg(e.slice(0,o),t)})(),r=e[0]===`
27
+ `}function Ag(e){return e[e.length-1]===`
28
+ `?e.slice(0,-1):e}function Sk(e,t){let n=/(\n+)([^\n]*)/g,a=(function(){let o=e.indexOf(`
29
+ `);return o=o!==-1?o:e.length,n.lastIndex=o,Pg(e.slice(0,o),t)})(),r=e[0]===`
30
30
  `||e[0]===" ",i,s;for(;s=n.exec(e);){let o=s[1],l=s[2];i=l[0]===" ",a+=o+(!r&&!i&&l!==""?`
31
- `:"")+Eg(l,t),r=i}return a}function Eg(e,t){if(e===""||e[0]===" ")return e;let n=/ [^ ]/g,a,r=0,i,s=0,o=0,l="";for(;a=n.exec(e);)o=a.index,o-r>t&&(i=s>r?s:o,l+=`
31
+ `:"")+Pg(l,t),r=i}return a}function Pg(e,t){if(e===""||e[0]===" ")return e;let n=/ [^ ]/g,a,r=0,i,s=0,o=0,l="";for(;a=n.exec(e);)o=a.index,o-r>t&&(i=s>r?s:o,l+=`
32
32
  `+e.slice(r,i),r=i+1),s=o;return l+=`
33
33
  `,e.length-r>t&&s>r?l+=e.slice(r,s)+`
34
- `+e.slice(s+1):l+=e.slice(r),l.slice(1)}function bk(e){let t="",n=0;for(let a=0;a<e.length;n>=65536?a+=2:a++){n=Bs(e,a);let r=Ht[n];!r&&qs(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||uk(n)}return t}function wk(e,t,n){let a="",r=e.tag;for(let i=0,s=n.length;i<s;i+=1){let o=n[i];e.replacer&&(o=e.replacer.call(n,String(i),o)),(wa(e,t,o,!1,!1)||typeof o>"u"&&wa(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump)}e.tag=r,e.dump="["+a+"]"}function Ag(e,t,n,a){let r="",i=e.tag;for(let s=0,o=n.length;s<o;s+=1){let l=n[s];e.replacer&&(l=e.replacer.call(n,String(s),l)),(wa(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!a||r!=="")&&(r+=gm(e,t)),e.dump&&Hs===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump)}e.tag=i,e.dump=r||"[]"}function Sk(e,t,n){let a="",r=e.tag,i=Object.keys(n);for(let s=0,o=i.length;s<o;s+=1){let l="";a!==""&&(l+=", "),e.condenseFlow&&(l+='"');let c=i[s],d=n[c];e.replacer&&(d=e.replacer.call(n,c,d)),wa(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,d,!1,!1)&&(l+=e.dump,a+=l))}e.tag=r,e.dump="{"+a+"}"}function Ck(e,t,n,a){let r="",i=e.tag,s=Object.keys(n);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Us("sortKeys must be a boolean or a function");for(let o=0,l=s.length;o<l;o+=1){let c="";(!a||r!=="")&&(c+=gm(e,t));let d=s[o],m=n[d];if(e.replacer&&(m=e.replacer.call(n,d,m)),!wa(e,t+1,d,!0,!0,!0))continue;let f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;f&&(e.dump&&Hs===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,f&&(c+=gm(e,t)),wa(e,t+1,m,!0,f)&&(e.dump&&Hs===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,r+=c)}e.tag=i,e.dump=r||"{}"}function Pg(e,t,n){let a=n?e.explicitTypes:e.implicitTypes;for(let r=0,i=a.length;r<i;r+=1){let s=a[r];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){let o=e.styleMap[s.tag]||s.defaultStyle,l;if(Fg.call(s.represent)==="[object Function]")l=s.represent(t,o);else if(_g.call(s.represent,o))l=s.represent[o](t,o);else throw new Us("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=l}return!0}}return!1}function wa(e,t,n,a,r,i,s){e.tag=null,e.dump=n,Pg(e,n,!1)||Pg(e,n,!0);let o=Fg.call(e.dump),l=a;a&&(a=e.flowLevel<0||e.flowLevel>t);let c=o==="[object Object]"||o==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(r=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")a&&Object.keys(e.dump).length!==0?(Ck(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(Sk(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Ag(e,t-1,e.dump,r):Ag(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(wk(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&yk(e,e.dump,t,i,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Us("unacceptable kind of an object to dump "+o)}if(e.tag!==null&&e.tag!=="?"){let f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump}}return!0}function vk(e,t){let n=[],a=[];xm(e,n,a);let r=a.length;for(let i=0;i<r;i+=1)t.duplicates.push(n[a[i]]);t.usedDuplicates=new Array(r)}function xm(e,t,n){if(e!==null&&typeof e=="object"){let a=t.indexOf(e);if(a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)xm(e[r],t,n);else{let r=Object.keys(e);for(let i=0,s=r.length;i<s;i+=1)xm(e[r[i]],t,n)}}}function Ik(e,t){t=t||{};let n=new dk(t);n.noRefs||vk(e,n);let a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),wa(n,0,a,!0,!0)?n.dump+`
35
- `:""}Yg.exports.dump=Ik});var kl=O((XN,Jt)=>{"use strict";u();var Kg=Tg(),kk=Gg();function wm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}Jt.exports.Type=Bt();Jt.exports.Schema=Gu();Jt.exports.FAILSAFE_SCHEMA=Zu();Jt.exports.JSON_SCHEMA=nm();Jt.exports.CORE_SCHEMA=am();Jt.exports.DEFAULT_SCHEMA=yl();Jt.exports.load=Kg.load;Jt.exports.loadAll=Kg.loadAll;Jt.exports.dump=kk.dump;Jt.exports.YAMLException=Ni();Jt.exports.types={binary:om(),float:tm(),map:ju(),null:Xu(),pairs:cm(),set:um(),timestamp:rm(),bool:Qu(),int:em(),merge:im(),omap:lm(),seq:Ju(),str:Ku()};Jt.exports.safeLoad=wm("safeLoad","load");Jt.exports.safeLoadAll=wm("safeLoadAll","loadAll");Jt.exports.safeDump=wm("safeDump","dump")});var Dl=O((CE,ny)=>{u();var Nk=Array.isArray;ny.exports=Nk});var ry=O((IE,ay)=>{u();var Ek=typeof global=="object"&&global&&global.Object===Object&&global;ay.exports=Ek});var Ol=O((TE,iy)=>{u();var Ak=ry(),Pk=typeof self=="object"&&self&&self.Object===Object&&self,Fk=Ak||Pk||Function("return this")();iy.exports=Fk});var Rl=O((DE,sy)=>{u();var _k=Ol(),zk=_k.Symbol;sy.exports=zk});var uy=O((RE,cy)=>{u();var oy=Rl(),ly=Object.prototype,Lk=ly.hasOwnProperty,Vk=ly.toString,js=oy?oy.toStringTag:void 0;function Wk(e){var t=Lk.call(e,js),n=e[js];try{e[js]=void 0;var a=!0}catch{}var r=Vk.call(e);return a&&(t?e[js]=n:delete e[js]),r}cy.exports=Wk});var dy=O((EE,my)=>{u();var Bk=Object.prototype,Hk=Bk.toString;function $k(e){return Hk.call(e)}my.exports=$k});var vm=O((PE,hy)=>{u();var fy=Rl(),qk=uy(),Uk=dy(),Yk="[object Null]",Gk="[object Undefined]",py=fy?fy.toStringTag:void 0;function Kk(e){return e==null?e===void 0?Gk:Yk:py&&py in Object(e)?qk(e):Uk(e)}hy.exports=Kk});var yy=O((_E,gy)=>{u();function Jk(e){return e!=null&&typeof e=="object"}gy.exports=Jk});var Nl=O((LE,xy)=>{u();var jk=vm(),Zk=yy(),Xk="[object Symbol]";function Qk(e){return typeof e=="symbol"||Zk(e)&&jk(e)==Xk}xy.exports=Qk});var wy=O((WE,by)=>{u();var e2=Dl(),t2=Nl(),n2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a2=/^\w*$/;function r2(e,t){if(e2(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||t2(e)?!0:a2.test(e)||!n2.test(e)||t!=null&&e in Object(t)}by.exports=r2});var El=O((HE,Sy)=>{u();function i2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Sy.exports=i2});var vy=O((qE,Cy)=>{u();var s2=vm(),o2=El(),l2="[object AsyncFunction]",c2="[object Function]",u2="[object GeneratorFunction]",m2="[object Proxy]";function d2(e){if(!o2(e))return!1;var t=s2(e);return t==c2||t==u2||t==l2||t==m2}Cy.exports=d2});var ky=O((YE,Iy)=>{u();var f2=Ol(),p2=f2["__core-js_shared__"];Iy.exports=p2});var Dy=O((KE,My)=>{u();var Im=ky(),Ty=(function(){var e=/[^.]+$/.exec(Im&&Im.keys&&Im.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function h2(e){return!!Ty&&Ty in e}My.exports=h2});var Ry=O((jE,Oy)=>{u();var g2=Function.prototype,y2=g2.toString;function x2(e){if(e!=null){try{return y2.call(e)}catch{}try{return e+""}catch{}}return""}Oy.exports=x2});var Ey=O((XE,Ny)=>{u();var b2=vy(),w2=Dy(),S2=El(),C2=Ry(),v2=/[\\^$.*+?()[\]{}|]/g,I2=/^\[object .+?Constructor\]$/,k2=Function.prototype,T2=Object.prototype,M2=k2.toString,D2=T2.hasOwnProperty,O2=RegExp("^"+M2.call(D2).replace(v2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function R2(e){if(!S2(e)||w2(e))return!1;var t=b2(e)?O2:I2;return t.test(C2(e))}Ny.exports=R2});var Py=O((eA,Ay)=>{u();function N2(e,t){return e?.[t]}Ay.exports=N2});var Al=O((nA,Fy)=>{u();var E2=Ey(),A2=Py();function P2(e,t){var n=A2(e,t);return E2(n)?n:void 0}Fy.exports=P2});var Zs=O((rA,_y)=>{u();var F2=Al(),_2=F2(Object,"create");_y.exports=_2});var Vy=O((sA,Ly)=>{u();var zy=Zs();function z2(){this.__data__=zy?zy(null):{},this.size=0}Ly.exports=z2});var By=O((lA,Wy)=>{u();function L2(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Wy.exports=L2});var $y=O((uA,Hy)=>{u();var V2=Zs(),W2="__lodash_hash_undefined__",B2=Object.prototype,H2=B2.hasOwnProperty;function $2(e){var t=this.__data__;if(V2){var n=t[e];return n===W2?void 0:n}return H2.call(t,e)?t[e]:void 0}Hy.exports=$2});var Uy=O((dA,qy)=>{u();var q2=Zs(),U2=Object.prototype,Y2=U2.hasOwnProperty;function G2(e){var t=this.__data__;return q2?t[e]!==void 0:Y2.call(t,e)}qy.exports=G2});var Gy=O((pA,Yy)=>{u();var K2=Zs(),J2="__lodash_hash_undefined__";function j2(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K2&&t===void 0?J2:t,this}Yy.exports=j2});var Jy=O((gA,Ky)=>{u();var Z2=Vy(),X2=By(),Q2=$y(),eT=Uy(),tT=Gy();function zi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}zi.prototype.clear=Z2;zi.prototype.delete=X2;zi.prototype.get=Q2;zi.prototype.has=eT;zi.prototype.set=tT;Ky.exports=zi});var Zy=O((xA,jy)=>{u();function nT(){this.__data__=[],this.size=0}jy.exports=nT});var km=O((wA,Xy)=>{u();function aT(e,t){return e===t||e!==e&&t!==t}Xy.exports=aT});var Xs=O((CA,Qy)=>{u();var rT=km();function iT(e,t){for(var n=e.length;n--;)if(rT(e[n][0],t))return n;return-1}Qy.exports=iT});var t0=O((IA,e0)=>{u();var sT=Xs(),oT=Array.prototype,lT=oT.splice;function cT(e){var t=this.__data__,n=sT(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():lT.call(t,n,1),--this.size,!0}e0.exports=cT});var a0=O((TA,n0)=>{u();var uT=Xs();function mT(e){var t=this.__data__,n=uT(t,e);return n<0?void 0:t[n][1]}n0.exports=mT});var i0=O((DA,r0)=>{u();var dT=Xs();function fT(e){return dT(this.__data__,e)>-1}r0.exports=fT});var o0=O((RA,s0)=>{u();var pT=Xs();function hT(e,t){var n=this.__data__,a=pT(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}s0.exports=hT});var c0=O((EA,l0)=>{u();var gT=Zy(),yT=t0(),xT=a0(),bT=i0(),wT=o0();function Li(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Li.prototype.clear=gT;Li.prototype.delete=yT;Li.prototype.get=xT;Li.prototype.has=bT;Li.prototype.set=wT;l0.exports=Li});var m0=O((PA,u0)=>{u();var ST=Al(),CT=Ol(),vT=ST(CT,"Map");u0.exports=vT});var p0=O((_A,f0)=>{u();var d0=Jy(),IT=c0(),kT=m0();function TT(){this.size=0,this.__data__={hash:new d0,map:new(kT||IT),string:new d0}}f0.exports=TT});var g0=O((LA,h0)=>{u();function MT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}h0.exports=MT});var Qs=O((WA,y0)=>{u();var DT=g0();function OT(e,t){var n=e.__data__;return DT(t)?n[typeof t=="string"?"string":"hash"]:n.map}y0.exports=OT});var b0=O((HA,x0)=>{u();var RT=Qs();function NT(e){var t=RT(this,e).delete(e);return this.size-=t?1:0,t}x0.exports=NT});var S0=O((qA,w0)=>{u();var ET=Qs();function AT(e){return ET(this,e).get(e)}w0.exports=AT});var v0=O((YA,C0)=>{u();var PT=Qs();function FT(e){return PT(this,e).has(e)}C0.exports=FT});var k0=O((KA,I0)=>{u();var _T=Qs();function zT(e,t){var n=_T(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}I0.exports=zT});var M0=O((jA,T0)=>{u();var LT=p0(),VT=b0(),WT=S0(),BT=v0(),HT=k0();function Vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Vi.prototype.clear=LT;Vi.prototype.delete=VT;Vi.prototype.get=WT;Vi.prototype.has=BT;Vi.prototype.set=HT;T0.exports=Vi});var R0=O((XA,O0)=>{u();var D0=M0(),$T="Expected a function";function Tm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($T);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(Tm.Cache||D0),n}Tm.Cache=D0;O0.exports=Tm});var E0=O((eP,N0)=>{u();var qT=R0(),UT=500;function YT(e){var t=qT(e,function(a){return n.size===UT&&n.clear(),a}),n=t.cache;return t}N0.exports=YT});var P0=O((nP,A0)=>{u();var GT=E0(),KT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JT=/\\(\\)?/g,jT=GT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(KT,function(n,a,r,i){t.push(r?i.replace(JT,"$1"):a||n)}),t});A0.exports=jT});var _0=O((rP,F0)=>{u();function ZT(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}F0.exports=ZT});var H0=O((sP,B0)=>{u();var z0=Rl(),XT=_0(),QT=Dl(),eM=Nl(),tM=1/0,L0=z0?z0.prototype:void 0,V0=L0?L0.toString:void 0;function W0(e){if(typeof e=="string")return e;if(QT(e))return XT(e,W0)+"";if(eM(e))return V0?V0.call(e):"";var t=e+"";return t=="0"&&1/e==-tM?"-0":t}B0.exports=W0});var q0=O((lP,$0)=>{u();var nM=H0();function aM(e){return e==null?"":nM(e)}$0.exports=aM});var Mm=O((uP,U0)=>{u();var rM=Dl(),iM=wy(),sM=P0(),oM=q0();function lM(e,t){return rM(e)?e:iM(e,t)?[e]:sM(oM(e))}U0.exports=lM});var Dm=O((dP,Y0)=>{u();var cM=Nl(),uM=1/0;function mM(e){if(typeof e=="string"||cM(e))return e;var t=e+"";return t=="0"&&1/e==-uM?"-0":t}Y0.exports=mM});var K0=O((pP,G0)=>{u();var dM=Mm(),fM=Dm();function pM(e,t){t=dM(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[fM(t[n++])];return n&&n==a?e:void 0}G0.exports=pM});var Pl=O((gP,J0)=>{u();var hM=K0();function gM(e,t,n){var a=e==null?void 0:hM(e,t);return a===void 0?n:a}J0.exports=gM});var Z0=O((xP,j0)=>{u();var yM=Al(),xM=(function(){try{var e=yM(Object,"defineProperty");return e({},"",{}),e}catch{}})();j0.exports=xM});var ex=O((wP,Q0)=>{u();var X0=Z0();function bM(e,t,n){t=="__proto__"&&X0?X0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Q0.exports=bM});var nx=O((CP,tx)=>{u();var wM=ex(),SM=km(),CM=Object.prototype,vM=CM.hasOwnProperty;function IM(e,t,n){var a=e[t];(!(vM.call(e,t)&&SM(a,n))||n===void 0&&!(t in e))&&wM(e,t,n)}tx.exports=IM});var rx=O((IP,ax)=>{u();var kM=9007199254740991,TM=/^(?:0|[1-9]\d*)$/;function MM(e,t){var n=typeof e;return t=t??kM,!!t&&(n=="number"||n!="symbol"&&TM.test(e))&&e>-1&&e%1==0&&e<t}ax.exports=MM});var ox=O((TP,sx)=>{u();var DM=nx(),OM=Mm(),RM=rx(),ix=El(),NM=Dm();function EM(e,t,n,a){if(!ix(e))return e;t=OM(t,e);for(var r=-1,i=t.length,s=i-1,o=e;o!=null&&++r<i;){var l=NM(t[r]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var d=o[l];c=a?a(d,l,o):void 0,c===void 0&&(c=ix(d)?d:RM(t[r+1])?[]:{})}DM(o,l,c),o=o[l]}return e}sx.exports=EM});var Fl=O((DP,lx)=>{u();var AM=ox();function PM(e,t,n){return e==null?e:AM(e,t,n)}lx.exports=PM});var hx=O((_P,px)=>{u();px.exports=LM;function Om(){return new DOMException("The request is not allowed","NotAllowedError")}async function _M(e){if(!navigator.clipboard)throw Om();return navigator.clipboard.writeText(e)}async function zM(e){let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);let n=window.getSelection(),a=window.document.createRange();n.removeAllRanges(),a.selectNode(t),n.addRange(a);let r=!1;try{r=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!r)throw Om()}async function LM(e){try{await _M(e)}catch(t){try{await zM(e)}catch(n){throw n||t||Om()}}}});var vx=O((GP,Cx)=>{u();var Mr=window.__kwirth__.uiwReactCodeMirror,Wi=Mr!=null&&"default"in Object(Mr)?Mr.default:Mr;typeof Wi!="function"&&Wi!=null&&typeof Wi.default<"u"&&(Wi=Wi.default);Cx.exports=Object.assign({},typeof Mr=="object"&&Mr!==null?Mr:{},{default:Wi,__esModule:!0})});var kx=O((JP,Ix)=>{u();var Dr=window.__kwirth__.codeMirrorState,Bi=Dr!=null&&"default"in Object(Dr)?Dr.default:Dr;typeof Bi!="function"&&Bi!=null&&typeof Bi.default<"u"&&(Bi=Bi.default);Ix.exports=Object.assign({},typeof Dr=="object"&&Dr!==null?Dr:{},{default:Bi,__esModule:!0})});var Mx=O((ZP,Tx)=>{u();var Or=window.__kwirth__.codeMirrorLangYaml,Hi=Or!=null&&"default"in Object(Or)?Or.default:Or;typeof Hi!="function"&&Hi!=null&&typeof Hi.default<"u"&&(Hi=Hi.default);Tx.exports=Object.assign({},typeof Or=="object"&&Or!==null?Or:{},{default:Hi,__esModule:!0})});var Ox=O((QP,Dx)=>{u();var Rr=window.__kwirth__.codeMirrorSearch,$i=Rr!=null&&"default"in Object(Rr)?Rr.default:Rr;typeof $i!="function"&&$i!=null&&typeof $i.default<"u"&&($i=$i.default);Dx.exports=Object.assign({},typeof Rr=="object"&&Rr!==null?Rr:{},{default:$i,__esModule:!0})});var Nx=O((t3,Rx)=>{u();var Nr=window.__kwirth__.codeMirrorView,qi=Nr!=null&&"default"in Object(Nr)?Nr.default:Nr;typeof qi!="function"&&qi!=null&&typeof qi.default<"u"&&(qi=qi.default);Rx.exports=Object.assign({},typeof Nr=="object"&&Nr!==null?Nr:{},{default:qi,__esModule:!0})});var Ax=O((a3,Ex)=>{u();var Er=window.__kwirth__.codeMirrorCommands,Ui=Er!=null&&"default"in Object(Er)?Er.default:Er;typeof Ui!="function"&&Ui!=null&&typeof Ui.default<"u"&&(Ui=Ui.default);Ex.exports=Object.assign({},typeof Er=="object"&&Er!==null?Er:{},{default:Ui,__esModule:!0})});var Fx=O((i3,Px)=>{u();var Ar=window.__kwirth__.codeMirrorLanguage,Yi=Ar!=null&&"default"in Object(Ar)?Ar.default:Ar;typeof Yi!="function"&&Yi!=null&&typeof Yi.default<"u"&&(Yi=Yi.default);Px.exports=Object.assign({},typeof Ar=="object"&&Ar!==null?Ar:{},{default:Yi,__esModule:!0})});var zx=O((o3,_x)=>{u();var Pr=window.__kwirth__.codeMirrorThemeOneDark,Gi=Pr!=null&&"default"in Object(Pr)?Pr.default:Pr;typeof Gi!="function"&&Gi!=null&&typeof Gi.default<"u"&&(Gi=Gi.default);_x.exports=Object.assign({},typeof Pr=="object"&&Pr!==null?Pr:{},{default:Gi,__esModule:!0})});var Em=O((F3,Zx)=>{u();var _r=window.__kwirth__.recharts,Ji=_r!=null&&"default"in Object(_r)?_r.default:_r;typeof Ji!="function"&&Ji!=null&&typeof Ji.default<"u"&&(Ji=Ji.default);Zx.exports=Object.assign({},typeof _r=="object"&&_r!==null?_r:{},{default:Ji,__esModule:!0})});u();var Lm=`.custom-fm-magnify.file-explorer {
34
+ `+e.slice(s+1):l+=e.slice(r),l.slice(1)}function vk(e){let t="",n=0;for(let a=0;a<e.length;n>=65536?a+=2:a++){n=Hs(e,a);let r=Ht[n];!r&&Us(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||pk(n)}return t}function Ik(e,t,n){let a="",r=e.tag;for(let i=0,s=n.length;i<s;i+=1){let o=n[i];e.replacer&&(o=e.replacer.call(n,String(i),o)),(Ca(e,t,o,!1,!1)||typeof o>"u"&&Ca(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump)}e.tag=r,e.dump="["+a+"]"}function Fg(e,t,n,a){let r="",i=e.tag;for(let s=0,o=n.length;s<o;s+=1){let l=n[s];e.replacer&&(l=e.replacer.call(n,String(s),l)),(Ca(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Ca(e,t+1,null,!0,!0,!1,!0))&&((!a||r!=="")&&(r+=xm(e,t)),e.dump&&$s===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump)}e.tag=i,e.dump=r||"[]"}function kk(e,t,n){let a="",r=e.tag,i=Object.keys(n);for(let s=0,o=i.length;s<o;s+=1){let l="";a!==""&&(l+=", "),e.condenseFlow&&(l+='"');let c=i[s],d=n[c];e.replacer&&(d=e.replacer.call(n,c,d)),Ca(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ca(e,t,d,!1,!1)&&(l+=e.dump,a+=l))}e.tag=r,e.dump="{"+a+"}"}function Tk(e,t,n,a){let r="",i=e.tag,s=Object.keys(n);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ys("sortKeys must be a boolean or a function");for(let o=0,l=s.length;o<l;o+=1){let c="";(!a||r!=="")&&(c+=xm(e,t));let d=s[o],m=n[d];if(e.replacer&&(m=e.replacer.call(n,d,m)),!Ca(e,t+1,d,!0,!0,!0))continue;let f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;f&&(e.dump&&$s===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,f&&(c+=xm(e,t)),Ca(e,t+1,m,!0,f)&&(e.dump&&$s===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,r+=c)}e.tag=i,e.dump=r||"{}"}function _g(e,t,n){let a=n?e.explicitTypes:e.implicitTypes;for(let r=0,i=a.length;r<i;r+=1){let s=a[r];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){let o=e.styleMap[s.tag]||s.defaultStyle,l;if(zg.call(s.represent)==="[object Function]")l=s.represent(t,o);else if(Lg.call(s.represent,o))l=s.represent[o](t,o);else throw new Ys("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=l}return!0}}return!1}function Ca(e,t,n,a,r,i,s){e.tag=null,e.dump=n,_g(e,n,!1)||_g(e,n,!0);let o=zg.call(e.dump),l=a;a&&(a=e.flowLevel<0||e.flowLevel>t);let c=o==="[object Object]"||o==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(r=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")a&&Object.keys(e.dump).length!==0?(Tk(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(kk(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Fg(e,t-1,e.dump,r):Fg(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(Ik(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Ck(e,e.dump,t,i,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ys("unacceptable kind of an object to dump "+o)}if(e.tag!==null&&e.tag!=="?"){let f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump}}return!0}function Mk(e,t){let n=[],a=[];wm(e,n,a);let r=a.length;for(let i=0;i<r;i+=1)t.duplicates.push(n[a[i]]);t.usedDuplicates=new Array(r)}function wm(e,t,n){if(e!==null&&typeof e=="object"){let a=t.indexOf(e);if(a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)wm(e[r],t,n);else{let r=Object.keys(e);for(let i=0,s=r.length;i<s;i+=1)wm(e[r[i]],t,n)}}}function Dk(e,t){t=t||{};let n=new gk(t);n.noRefs||Mk(e,n);let a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),Ca(n,0,a,!0,!0)?n.dump+`
35
+ `:""}Kg.exports.dump=Dk});var kl=O((nN,jt)=>{"use strict";u();var jg=Dg(),Ok=Jg();function Sm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}jt.exports.Type=Bt();jt.exports.Schema=Ju();jt.exports.FAILSAFE_SCHEMA=Qu();jt.exports.JSON_SCHEMA=rm();jt.exports.CORE_SCHEMA=im();jt.exports.DEFAULT_SCHEMA=yl();jt.exports.load=jg.load;jt.exports.loadAll=jg.loadAll;jt.exports.dump=Ok.dump;jt.exports.YAMLException=Ai();jt.exports.types={binary:cm(),float:am(),map:Xu(),null:em(),pairs:mm(),set:dm(),timestamp:sm(),bool:tm(),int:nm(),merge:om(),omap:um(),seq:Zu(),str:ju()};jt.exports.safeLoad=Sm("safeLoad","load");jt.exports.safeLoadAll=Sm("safeLoadAll","loadAll");jt.exports.safeDump=Sm("safeDump","dump")});var Ol=O((TN,iy)=>{u();var Fk=Array.isArray;iy.exports=Fk});var oy=O((DN,sy)=>{u();var _k=typeof global=="object"&&global&&global.Object===Object&&global;sy.exports=_k});var Rl=O((RN,ly)=>{u();var zk=oy(),Lk=typeof self=="object"&&self&&self.Object===Object&&self,Vk=zk||Lk||Function("return this")();ly.exports=Vk});var El=O((NN,cy)=>{u();var Wk=Rl(),Bk=Wk.Symbol;cy.exports=Bk});var fy=O((PN,dy)=>{u();var uy=El(),my=Object.prototype,Hk=my.hasOwnProperty,$k=my.toString,Zs=uy?uy.toStringTag:void 0;function qk(e){var t=Hk.call(e,Zs),n=e[Zs];try{e[Zs]=void 0;var a=!0}catch{}var r=$k.call(e);return a&&(t?e[Zs]=n:delete e[Zs]),r}dy.exports=qk});var hy=O((_N,py)=>{u();var Uk=Object.prototype,Yk=Uk.toString;function Gk(e){return Yk.call(e)}py.exports=Gk});var km=O((LN,xy)=>{u();var gy=El(),Kk=fy(),Jk=hy(),jk="[object Null]",Zk="[object Undefined]",yy=gy?gy.toStringTag:void 0;function Xk(e){return e==null?e===void 0?Zk:jk:yy&&yy in Object(e)?Kk(e):Jk(e)}xy.exports=Xk});var wy=O((WN,by)=>{u();function Qk(e){return e!=null&&typeof e=="object"}by.exports=Qk});var Nl=O((HN,Cy)=>{u();var e2=km(),t2=wy(),n2="[object Symbol]";function a2(e){return typeof e=="symbol"||t2(e)&&e2(e)==n2}Cy.exports=a2});var vy=O((qN,Sy)=>{u();var r2=Ol(),i2=Nl(),s2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o2=/^\w*$/;function l2(e,t){if(r2(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||i2(e)?!0:o2.test(e)||!s2.test(e)||t!=null&&e in Object(t)}Sy.exports=l2});var Al=O((YN,Iy)=>{u();function c2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Iy.exports=c2});var Ty=O((KN,ky)=>{u();var u2=km(),m2=Al(),d2="[object AsyncFunction]",f2="[object Function]",p2="[object GeneratorFunction]",h2="[object Proxy]";function g2(e){if(!m2(e))return!1;var t=u2(e);return t==f2||t==p2||t==d2||t==h2}ky.exports=g2});var Dy=O((jN,My)=>{u();var y2=Rl(),x2=y2["__core-js_shared__"];My.exports=x2});var Ey=O((XN,Ry)=>{u();var Tm=Dy(),Oy=(function(){var e=/[^.]+$/.exec(Tm&&Tm.keys&&Tm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function b2(e){return!!Oy&&Oy in e}Ry.exports=b2});var Ay=O((eA,Ny)=>{u();var w2=Function.prototype,C2=w2.toString;function S2(e){if(e!=null){try{return C2.call(e)}catch{}try{return e+""}catch{}}return""}Ny.exports=S2});var Fy=O((nA,Py)=>{u();var v2=Ty(),I2=Ey(),k2=Al(),T2=Ay(),M2=/[\\^$.*+?()[\]{}|]/g,D2=/^\[object .+?Constructor\]$/,O2=Function.prototype,R2=Object.prototype,E2=O2.toString,N2=R2.hasOwnProperty,A2=RegExp("^"+E2.call(N2).replace(M2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function P2(e){if(!k2(e)||I2(e))return!1;var t=v2(e)?A2:D2;return t.test(T2(e))}Py.exports=P2});var zy=O((rA,_y)=>{u();function F2(e,t){return e?.[t]}_y.exports=F2});var Pl=O((sA,Ly)=>{u();var _2=Fy(),z2=zy();function L2(e,t){var n=z2(e,t);return _2(n)?n:void 0}Ly.exports=L2});var Xs=O((lA,Vy)=>{u();var V2=Pl(),W2=V2(Object,"create");Vy.exports=W2});var Hy=O((uA,By)=>{u();var Wy=Xs();function B2(){this.__data__=Wy?Wy(null):{},this.size=0}By.exports=B2});var qy=O((dA,$y)=>{u();function H2(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}$y.exports=H2});var Yy=O((pA,Uy)=>{u();var $2=Xs(),q2="__lodash_hash_undefined__",U2=Object.prototype,Y2=U2.hasOwnProperty;function G2(e){var t=this.__data__;if($2){var n=t[e];return n===q2?void 0:n}return Y2.call(t,e)?t[e]:void 0}Uy.exports=G2});var Ky=O((gA,Gy)=>{u();var K2=Xs(),J2=Object.prototype,j2=J2.hasOwnProperty;function Z2(e){var t=this.__data__;return K2?t[e]!==void 0:j2.call(t,e)}Gy.exports=Z2});var jy=O((xA,Jy)=>{u();var X2=Xs(),Q2="__lodash_hash_undefined__";function eT(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X2&&t===void 0?Q2:t,this}Jy.exports=eT});var Xy=O((wA,Zy)=>{u();var tT=Hy(),nT=qy(),aT=Yy(),rT=Ky(),iT=jy();function Vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Vi.prototype.clear=tT;Vi.prototype.delete=nT;Vi.prototype.get=aT;Vi.prototype.has=rT;Vi.prototype.set=iT;Zy.exports=Vi});var e0=O((SA,Qy)=>{u();function sT(){this.__data__=[],this.size=0}Qy.exports=sT});var Mm=O((IA,t0)=>{u();function oT(e,t){return e===t||e!==e&&t!==t}t0.exports=oT});var Qs=O((TA,n0)=>{u();var lT=Mm();function cT(e,t){for(var n=e.length;n--;)if(lT(e[n][0],t))return n;return-1}n0.exports=cT});var r0=O((DA,a0)=>{u();var uT=Qs(),mT=Array.prototype,dT=mT.splice;function fT(e){var t=this.__data__,n=uT(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():dT.call(t,n,1),--this.size,!0}a0.exports=fT});var s0=O((RA,i0)=>{u();var pT=Qs();function hT(e){var t=this.__data__,n=pT(t,e);return n<0?void 0:t[n][1]}i0.exports=hT});var l0=O((NA,o0)=>{u();var gT=Qs();function yT(e){return gT(this.__data__,e)>-1}o0.exports=yT});var u0=O((PA,c0)=>{u();var xT=Qs();function bT(e,t){var n=this.__data__,a=xT(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}c0.exports=bT});var d0=O((_A,m0)=>{u();var wT=e0(),CT=r0(),ST=s0(),vT=l0(),IT=u0();function Wi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Wi.prototype.clear=wT;Wi.prototype.delete=CT;Wi.prototype.get=ST;Wi.prototype.has=vT;Wi.prototype.set=IT;m0.exports=Wi});var p0=O((LA,f0)=>{u();var kT=Pl(),TT=Rl(),MT=kT(TT,"Map");f0.exports=MT});var y0=O((WA,g0)=>{u();var h0=Xy(),DT=d0(),OT=p0();function RT(){this.size=0,this.__data__={hash:new h0,map:new(OT||DT),string:new h0}}g0.exports=RT});var b0=O((HA,x0)=>{u();function ET(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}x0.exports=ET});var eo=O((qA,w0)=>{u();var NT=b0();function AT(e,t){var n=e.__data__;return NT(t)?n[typeof t=="string"?"string":"hash"]:n.map}w0.exports=AT});var S0=O((YA,C0)=>{u();var PT=eo();function FT(e){var t=PT(this,e).delete(e);return this.size-=t?1:0,t}C0.exports=FT});var I0=O((KA,v0)=>{u();var _T=eo();function zT(e){return _T(this,e).get(e)}v0.exports=zT});var T0=O((jA,k0)=>{u();var LT=eo();function VT(e){return LT(this,e).has(e)}k0.exports=VT});var D0=O((XA,M0)=>{u();var WT=eo();function BT(e,t){var n=WT(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}M0.exports=BT});var R0=O((eP,O0)=>{u();var HT=y0(),$T=S0(),qT=I0(),UT=T0(),YT=D0();function Bi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Bi.prototype.clear=HT;Bi.prototype.delete=$T;Bi.prototype.get=qT;Bi.prototype.has=UT;Bi.prototype.set=YT;O0.exports=Bi});var A0=O((nP,N0)=>{u();var E0=R0(),GT="Expected a function";function Dm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GT);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(Dm.Cache||E0),n}Dm.Cache=E0;N0.exports=Dm});var F0=O((rP,P0)=>{u();var KT=A0(),JT=500;function jT(e){var t=KT(e,function(a){return n.size===JT&&n.clear(),a}),n=t.cache;return t}P0.exports=jT});var z0=O((sP,_0)=>{u();var ZT=F0(),XT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QT=/\\(\\)?/g,eM=ZT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XT,function(n,a,r,i){t.push(r?i.replace(QT,"$1"):a||n)}),t});_0.exports=eM});var V0=O((lP,L0)=>{u();function tM(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}L0.exports=tM});var U0=O((uP,q0)=>{u();var W0=El(),nM=V0(),aM=Ol(),rM=Nl(),iM=1/0,B0=W0?W0.prototype:void 0,H0=B0?B0.toString:void 0;function $0(e){if(typeof e=="string")return e;if(aM(e))return nM(e,$0)+"";if(rM(e))return H0?H0.call(e):"";var t=e+"";return t=="0"&&1/e==-iM?"-0":t}q0.exports=$0});var G0=O((dP,Y0)=>{u();var sM=U0();function oM(e){return e==null?"":sM(e)}Y0.exports=oM});var Om=O((pP,K0)=>{u();var lM=Ol(),cM=vy(),uM=z0(),mM=G0();function dM(e,t){return lM(e)?e:cM(e,t)?[e]:uM(mM(e))}K0.exports=dM});var Rm=O((gP,J0)=>{u();var fM=Nl(),pM=1/0;function hM(e){if(typeof e=="string"||fM(e))return e;var t=e+"";return t=="0"&&1/e==-pM?"-0":t}J0.exports=hM});var Z0=O((xP,j0)=>{u();var gM=Om(),yM=Rm();function xM(e,t){t=gM(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[yM(t[n++])];return n&&n==a?e:void 0}j0.exports=xM});var Fl=O((wP,X0)=>{u();var bM=Z0();function wM(e,t,n){var a=e==null?void 0:bM(e,t);return a===void 0?n:a}X0.exports=wM});var ex=O((SP,Q0)=>{u();var CM=Pl(),SM=(function(){try{var e=CM(Object,"defineProperty");return e({},"",{}),e}catch{}})();Q0.exports=SM});var ax=O((IP,nx)=>{u();var tx=ex();function vM(e,t,n){t=="__proto__"&&tx?tx(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}nx.exports=vM});var ix=O((TP,rx)=>{u();var IM=ax(),kM=Mm(),TM=Object.prototype,MM=TM.hasOwnProperty;function DM(e,t,n){var a=e[t];(!(MM.call(e,t)&&kM(a,n))||n===void 0&&!(t in e))&&IM(e,t,n)}rx.exports=DM});var ox=O((DP,sx)=>{u();var OM=9007199254740991,RM=/^(?:0|[1-9]\d*)$/;function EM(e,t){var n=typeof e;return t=t??OM,!!t&&(n=="number"||n!="symbol"&&RM.test(e))&&e>-1&&e%1==0&&e<t}sx.exports=EM});var ux=O((RP,cx)=>{u();var NM=ix(),AM=Om(),PM=ox(),lx=Al(),FM=Rm();function _M(e,t,n,a){if(!lx(e))return e;t=AM(t,e);for(var r=-1,i=t.length,s=i-1,o=e;o!=null&&++r<i;){var l=FM(t[r]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var d=o[l];c=a?a(d,l,o):void 0,c===void 0&&(c=lx(d)?d:PM(t[r+1])?[]:{})}NM(o,l,c),o=o[l]}return e}cx.exports=_M});var _l=O((NP,mx)=>{u();var zM=ux();function LM(e,t,n){return e==null?e:zM(e,t,n)}mx.exports=LM});var bx=O((WP,xx)=>{u();xx.exports=HM;function Em(){return new DOMException("The request is not allowed","NotAllowedError")}async function WM(e){if(!navigator.clipboard)throw Em();return navigator.clipboard.writeText(e)}async function BM(e){let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);let n=window.getSelection(),a=window.document.createRange();n.removeAllRanges(),a.selectNode(t),n.addRange(a);let r=!1;try{r=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!r)throw Em()}async function HM(e){try{await WM(e)}catch(t){try{await BM(e)}catch(n){throw n||t||Em()}}}});var Mx=O((ZP,Tx)=>{u();var Mr=window.__kwirth__.uiwReactCodeMirror,Hi=Mr!=null&&"default"in Object(Mr)?Mr.default:Mr;typeof Hi!="function"&&Hi!=null&&typeof Hi.default<"u"&&(Hi=Hi.default);Tx.exports=Object.assign({},typeof Mr=="object"&&Mr!==null?Mr:{},{default:Hi,__esModule:!0})});var Ox=O((QP,Dx)=>{u();var Dr=window.__kwirth__.codeMirrorState,$i=Dr!=null&&"default"in Object(Dr)?Dr.default:Dr;typeof $i!="function"&&$i!=null&&typeof $i.default<"u"&&($i=$i.default);Dx.exports=Object.assign({},typeof Dr=="object"&&Dr!==null?Dr:{},{default:$i,__esModule:!0})});var Ex=O((t3,Rx)=>{u();var Or=window.__kwirth__.codeMirrorLangYaml,qi=Or!=null&&"default"in Object(Or)?Or.default:Or;typeof qi!="function"&&qi!=null&&typeof qi.default<"u"&&(qi=qi.default);Rx.exports=Object.assign({},typeof Or=="object"&&Or!==null?Or:{},{default:qi,__esModule:!0})});var Ax=O((a3,Nx)=>{u();var Rr=window.__kwirth__.codeMirrorSearch,Ui=Rr!=null&&"default"in Object(Rr)?Rr.default:Rr;typeof Ui!="function"&&Ui!=null&&typeof Ui.default<"u"&&(Ui=Ui.default);Nx.exports=Object.assign({},typeof Rr=="object"&&Rr!==null?Rr:{},{default:Ui,__esModule:!0})});var Fx=O((i3,Px)=>{u();var Er=window.__kwirth__.codeMirrorView,Yi=Er!=null&&"default"in Object(Er)?Er.default:Er;typeof Yi!="function"&&Yi!=null&&typeof Yi.default<"u"&&(Yi=Yi.default);Px.exports=Object.assign({},typeof Er=="object"&&Er!==null?Er:{},{default:Yi,__esModule:!0})});var zx=O((o3,_x)=>{u();var Nr=window.__kwirth__.codeMirrorCommands,Gi=Nr!=null&&"default"in Object(Nr)?Nr.default:Nr;typeof Gi!="function"&&Gi!=null&&typeof Gi.default<"u"&&(Gi=Gi.default);_x.exports=Object.assign({},typeof Nr=="object"&&Nr!==null?Nr:{},{default:Gi,__esModule:!0})});var Vx=O((c3,Lx)=>{u();var Ar=window.__kwirth__.codeMirrorLanguage,Ki=Ar!=null&&"default"in Object(Ar)?Ar.default:Ar;typeof Ki!="function"&&Ki!=null&&typeof Ki.default<"u"&&(Ki=Ki.default);Lx.exports=Object.assign({},typeof Ar=="object"&&Ar!==null?Ar:{},{default:Ki,__esModule:!0})});var Bx=O((m3,Wx)=>{u();var Pr=window.__kwirth__.codeMirrorThemeOneDark,Ji=Pr!=null&&"default"in Object(Pr)?Pr.default:Pr;typeof Ji!="function"&&Ji!=null&&typeof Ji.default<"u"&&(Ji=Ji.default);Wx.exports=Object.assign({},typeof Pr=="object"&&Pr!==null?Pr:{},{default:Ji,__esModule:!0})});var Pm=O((V3,t1)=>{u();var _r=window.__kwirth__.recharts,Zi=_r!=null&&"default"in Object(_r)?_r.default:_r;typeof Zi!="function"&&Zi!=null&&typeof Zi.default<"u"&&(Zi=Zi.default);t1.exports=Object.assign({},typeof _r=="object"&&_r!==null?_r:{},{default:Zi,__esModule:!0})});u();var Wm=`.custom-fm-magnify.file-explorer {
36
36
  border: 1px solid #666;
37
37
  }
38
38
 
@@ -108,7 +108,7 @@
108
108
  .file-explorer .toolbar .file-action-container .file-action:hover {
109
109
  background-color: var(--mui-palette-action-selected) !important;
110
110
 
111
- }`;var Vm=`.react-resizable {
111
+ }`;var Bm=`.react-resizable {
112
112
  position: relative;
113
113
  }
114
114
 
@@ -242,9 +242,9 @@
242
242
  height: 5px;
243
243
  border-right: 2px solid #999;
244
244
  border-bottom: 2px solid #999;
245
- } */`;u();var Fn=k(Dt(),1);u();var yo=class{},xo=class{};u();var Um=k(Gt(),1),fs=k(he(),1),Ym=(0,fs.jsx)(Um.Search,{}),Gm=e=>(0,fs.jsx)(fs.Fragment,{});var Ee=k(va(),1);u();u();var ps=[{name:"ComponentStatus",priority:5},{name:"Node",priority:1},{name:"V1APIResource",priority:5},{name:"Namespace",priority:1},{name:"NodeMetrics",priority:3},{name:"Pod",priority:2},{name:"PodMetrics",priority:3},{name:"Deployment",priority:2},{name:"DaemonSet",priority:2},{name:"ReplicaSet",priority:2},{name:"ReplicationController",priority:2},{name:"StatefulSet",priority:2},{name:"Job",priority:2},{name:"CronJob",priority:2},{name:"ConfigMap",priority:2},{name:"Secret",priority:2},{name:"ResourceQuota",priority:4},{name:"LimitRange",priority:4},{name:"HorizontalPodAutoscaler",priority:4},{name:"PodDisruptionBudget",priority:4},{name:"PriorityClass",priority:4},{name:"RuntimeClass",priority:4},{name:"Lease",priority:9},{name:"ValidatingWebhookConfiguration",priority:8},{name:"MutatingWebhookConfiguration",priority:8},{name:"Service",priority:2},{name:"Endpoints",priority:3},{name:"Ingress",priority:2},{name:"IngressClass",priority:5},{name:"NetworkPolicy",priority:3},{name:"PersistentVolumeClaim",priority:2},{name:"PersistentVolume",priority:2},{name:"StorageClass",priority:3},{name:"VolumeAttachment",priority:4},{name:"CSIDriver",priority:5},{name:"CSINode",priority:5},{name:"CSIStorageCapacity",priority:5},{name:"ServiceAccount",priority:5},{name:"ClusterRole",priority:2},{name:"Role",priority:2},{name:"ClusterRoleBinding",priority:2},{name:"RoleBinding",priority:2},{name:"CustomResourceDefinition",priority:4},{name:"CRD Instances",priority:4}].sort((e,t)=>e.priority-t.priority),nc=class{constructor(){this.source=ps;this.sync=ps}},ti=class{constructor(){this.palette="light";this.logLines=5e3;this.dataConfig=new nc;this.dataHelm=!1;this.dataManagedFields=!1;this.tracing=!1;this.customActions=[]}};var wo=class{constructor(){this.clusterInfo=void 0;this.paused=!1;this.started=!1;this.files=[];this.clusterEvents=[];this.currentPath="/";this.timers=[];this.windows=[];this.contentWindows=[];this.pendingWebSocketRequests=new Map;this.metricsCluster=[];this.metricsProviderMissing=!1;this.eventsProviderMissing=!1;this.metricsPodDetail=[];this.logSearchResults=[];this.logSearchDone=!0;this.updateNamespaces=void 0;this.userPreferences=new ti}};u();var Xe=k(je(),1);var Me=k(ft(),1),lt=k(va(),1);u();var Co=k(va(),1);u();var jm="hideKinds";var So="cluster",ac="admin",Zm=["","magnify$user","magnify$read","magnify$write",So,ac];var Qm=e=>Zm.indexOf(e);var J1=e=>{if(!e)return[];try{return(0,Co.parseResources)(e.resources).map(t=>{let n=(t.namespaces||"").split(",").map(i=>i.trim()).filter(Boolean),a=-1,r;for(let i of(t.scopes||"").split(",").map(s=>s.trim()).filter(Boolean)){let s=(0,Co.parseThinScope)(i),o=Qm(s?s.wide:i);if(o<0||(o>a&&(a=o,r=void 0),o!==a))continue;let l=s?Z1(s.config):new Set;r=r===void 0?l:j1(r,l)}return{level:a,hidden:r??new Set,namespaces:n}})}catch{return[]}},j1=(e,t)=>new Set([...e].filter(n=>t.has(n))),Z1=e=>{if(!e||typeof e!="object")return new Set;let t=e[jm],n=Array.isArray(t)?t.map(String):typeof t=="string"?t.split(","):[];return new Set(n.map(a=>a.trim()).filter(Boolean))};var vo=(e,t)=>{let n=Qm(t);return J1(e).some(a=>a.level>=n)};var M1=k(td(),1);u();u();var At=[];for(let e=0;e<256;++e)At.push((e+256).toString(16).slice(1));function nd(e,t=0){return(At[e[t+0]]+At[e[t+1]]+At[e[t+2]]+At[e[t+3]]+"-"+At[e[t+4]]+At[e[t+5]]+"-"+At[e[t+6]]+At[e[t+7]]+"-"+At[e[t+8]]+At[e[t+9]]+"-"+At[e[t+10]]+At[e[t+11]]+At[e[t+12]]+At[e[t+13]]+At[e[t+14]]+At[e[t+15]]).toLowerCase()}u();var rc,X1=new Uint8Array(16);function ic(){if(!rc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rc=crypto.getRandomValues.bind(crypto)}return rc(X1)}u();u();var Q1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sc={randomUUID:Q1};function eb(e,t,n){if(sc.randomUUID&&!t&&!e)return sc.randomUUID();e=e||{};let a=e.random??e.rng?.()??ic();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let r=0;r<16;++r)t[n+r]=a[r];return t}return nd(a)}var it=eb;var no=k(Dt(),1);u();var w=k(Gt(),1);u();var Vn=k(ft(),1),yt=k(he(),1),ad=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7z"})}),rd=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11m-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2M5 20v2h14v-2z"})}),id=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M4 11h16v2H4z"})}),oc=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3M2 19h10v-2H2z"})}),hs=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2zM19 19H5L19 5zm-2-2v-1.5h-5V17z"})}),sd=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M18 16h-2v-1H8v1H6v-1H2v5h20v-5h-4zm2-8h-3V6c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v4h4v-2h2v2h8v-2h2v2h4v-4c0-1.1-.9-2-2-2m-5 0H9V6h6z"})}),od=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"})}),ld=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"})}),cd=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"})}),Wn=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})});u();var Ue=k(he(),1),ud=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M13.95 13.5h-.23c-.18.11-.26.32-.18.5l.86 2.11c.83-.53 1.46-1.32 1.79-2.25l-2.23-.36h-.01m-3.45.29a.415.415 0 0 0-.38-.29h-.08l-2.22.37c.33.92.96 1.7 1.79 2.23l.85-2.07V14c.04-.05.04-.14.04-.21m1.83.81a.378.378 0 0 0-.51-.15c-.07.05-.12.08-.15.15h-.01l-1.09 1.97c.78.26 1.62.31 2.43.12c.14-.03.29-.07.43-.12l-1.09-1.97h-.01m3.45-4.57L14.1 11.5l.01.03a.37.37 0 0 0-.04.53c.05.06.11.1.18.12l.01.01l2.17.62c.07-.97-.14-1.95-.65-2.78m-3.11.16c.01.21.18.37.39.36c.08 0 .15-.02.21-.05h.01l1.83-1.31a4.45 4.45 0 0 0-2.57-1.24l.13 2.24m-1.94.31c.17.11.4.08.52-.09c.05-.06.07-.13.08-.21h.01l.12-2.25c-.15.02-.3.05-.46.08c-.8.18-1.54.58-2.12 1.16l1.84 1.31h.01m-.99 1.69c.2-.05.32-.26.26-.46c0-.08-.05-.14-.11-.19v-.01L8.21 10c-.52.86-.74 1.84-.63 2.82l2.16-.62v-.01m1.64.66l.62.3l.62-.3l.15-.67l-.43-.53h-.69l-.43.53l.16.67m10.89 1.32L20.5 6.5c-.09-.42-.37-.76-.74-.94l-7.17-3.43c-.37-.17-.81-.17-1.19 0L4.24 5.56c-.37.18-.65.52-.74.94l-1.77 7.67c-.05.2-.05.4 0 .59c.01.06.03.12.05.18c.03.09.08.19.13.27c.03.04.05.08.09.11l4.95 6.18c.02 0 .05.04.05.06c.1.09.19.16.28.22c.12.08.26.14.4.17c.11.05.23.05.32.05h8.12c.07 0 .14-.03.2-.05c.05-.01.1-.03.14-.04c.04-.02.07-.03.11-.05c.05-.02.1-.05.15-.08c.12-.08.23-.18.33-.28l.15-.2l4.8-5.98c.1-.12.17-.25.22-.38c.02-.06.04-.12.05-.18c.05-.19.05-.4 0-.59m-7.43 2.99c.02.06.04.12.07.17c-.04.08-.06.17-.03.26c.12.24.23.46.38.68c.08.11.16.23.24.34c0 .03.03.08.04.12c.12.2.06.46-.15.59s-.47.05-.59-.15c-.01-.03-.02-.05-.03-.08c-.02-.03-.04-.09-.06-.09c-.05-.15-.09-.28-.12-.41c-.09-.25-.17-.49-.3-.72a.375.375 0 0 0-.21-.14l-.08-.16c-1.29.48-2.7.48-3.97-.01l-.1.18c-.07.01-.14.04-.19.09c-.14.24-.24.49-.33.77c-.03.13-.07.26-.12.4c-.02 0-.04.07-.06.1a.43.43 0 0 1-.81-.29c.01-.03.03-.05.04-.08c.04-.03.04-.08.04-.11c.09-.12.16-.23.24-.35c.16-.21.29-.45.39-.69a.54.54 0 0 0-.03-.25l.07-.18a5.611 5.611 0 0 1-2.47-3.09l-.2.03a.388.388 0 0 0-.23-.09c-.27.05-.51.13-.77.22c-.11.06-.24.11-.37.15c-.03.01-.07.02-.13.03a.438.438 0 0 1-.54-.27c-.07-.23.04-.47.28-.55c.02 0 .05-.01.08-.01v-.01h.01l.11-.02c.14-.04.28-.04.41-.04c.26 0 .52-.06.77-.12c.08-.05.14-.11.19-.19l.19-.05c-.21-1.36.1-2.73.86-3.87l-.14-.12c0-.09-.03-.18-.08-.25c-.2-.17-.41-.32-.64-.45c-.12-.06-.24-.13-.36-.21c-.02-.02-.06-.05-.08-.07l-.01-.01c-.2-.16-.25-.42-.11-.63c.09-.1.21-.15.35-.15c.11.01.21.05.3.12l.09.07c.1.09.19.2.28.3c.18.19.37.37.58.52c.08.04.17.05.26.03l.15.11c.75-.8 1.73-1.36 2.8-1.6c.25-.06.52-.1.78-.12l.01-.18a.45.45 0 0 0 .14-.23c.01-.26-.01-.52-.05-.77c-.03-.13-.05-.27-.06-.41V5.1c-.02-.24.15-.45.39-.48s.44.15.47.38v.22c-.01.14-.03.28-.06.41c-.04.25-.06.51-.05.77c.02.1.07.17.14.22l.01.19c1.36.12 2.62.73 3.56 1.72l.16-.12c.09.02.18.01.26-.03c.21-.15.41-.33.58-.52c.09-.1.18-.2.28-.3c.03-.02.07-.06.1-.06c.17-.18.44-.18.59 0c.19.16.18.43 0 .6c0 .02-.03.04-.06.06a2.495 2.495 0 0 1-.44.28c-.23.13-.45.28-.64.45c-.06.07-.09.15-.08.24l-.16.14a5.44 5.44 0 0 1 .88 3.86l.19.05c.04.08.11.14.19.18c.25.07.51.11.77.14h.41c.03.03.08.04.12.05c.24.03.4.25.37.49c-.05.23-.24.4-.48.37c-.03-.01-.07-.01-.07-.02v-.01c-.06 0-.1-.01-.14-.02c-.13-.04-.25-.09-.36-.15c-.26-.1-.5-.17-.77-.21c-.09 0-.17 0-.23.08c-.07-.01-.13-.02-.19-.03c-.41 1.31-1.31 2.41-2.47 3.11Z"})}),md=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 0h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM10 13H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm8 1h-2v2h-2v2h2v2h2v-2h2v-2h-2z"})}),dd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.05 6.462a2 2 0 0 0 2.63-1.519l.32-1.72a9 9 0 0 1 3.998 0l.322 1.72a2 2 0 0 0 2.63 1.519l1.649-.58a9 9 0 0 1 2.001 3.46l-1.33 1.14a2 2 0 0 0 0 3.037l1.33 1.139a9 9 0 0 1-2.001 3.46l-1.65-.58a2 2 0 0 0-2.63 1.519L14 20.777a9 9 0 0 1-3.998 0l-.322-1.72a2 2 0 0 0-2.63-1.519l-1.649.58a9 9 0 0 1-2.001-3.46l1.33-1.14a2 2 0 0 0 0-3.036L3.4 9.342a9 9 0 0 1 2-3.46zM12 9a3 3 0 1 1 0 6a3 3 0 0 1 0-6",clipRule:"evenodd"})}),fd=({size:e})=>(0,Ue.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M12 12h7c-.53 4.11-3.28 7.78-7 8.92zH5V6.3l7-3.11M12 1L3 5v6c0 5.55 3.84 10.73 9 12c5.16-1.27 9-6.45 9-12V5z"})}),pd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M2 5.077S3.667 2 12 2s10 3.077 10 3.077v13.846S20.333 22 12 22S2 18.923 2 18.923V5.077ZM2 13s3.333 3 10 3s10-3 10-3M2 7s3.333 3 10 3s10-3 10-3"})}),hd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M992 512H832v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H704q-27 0-45.5-18.5T640 960V832q0-26 18.5-45t45.5-19h64V512H320v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H192q-27 0-45.5-18.5T128 960V832q0-26 18.5-45t45.5-19h64V512H32q-13 0-22.5-9.5T0 480t9.5-22.5T32 448h480V256h-64q-27 0-45.5-18.5T384 192V64q0-26 18.5-45T448 0h192q26 0 45 19t19 45v128q0 27-19 45.5T640 256h-64v192h416q13 0 22.5 9.5t9.5 22.5t-9.5 22.5T992 512z"})}),gd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:(0,Ue.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.248 1.87l4.485 2.562L8 7.136L3.268 4.432l4.484-2.563a.5.5 0 0 1 .496 0ZM2.5 10.84V5.72l4.75 2.714v5.409l-4.498-2.57a.5.5 0 0 1-.252-.435Zm6.25 3.004l4.498-2.57a.5.5 0 0 0 .252-.435V5.721L8.75 8.435v5.409ZM8.992.567a2 2 0 0 0-1.984 0l-5 2.857A2 2 0 0 0 1 5.161v5.678a2 2 0 0 0 1.008 1.737l5 2.857a2 2 0 0 0 1.984 0l5-2.857A2 2 0 0 0 15 10.839V5.161a2 2 0 0 0-1.008-1.737l-5-2.857Z",clipRule:"evenodd"})}),yd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M1 13v10h22V13Zm12 6H4v-2h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1ZM1 1v10h22V1Zm12 6H4V5h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Z"})}),xd=({size:e})=>(0,Ue.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,Ue.jsx)("path",{fillRule:"evenodd",d:"M4 7H3V2h1v5zm-1 7h1v-3H3v3zm5 0h1V8H8v6zm5 0h1v-2h-1v2zm1-12h-1v6h1V2zM9 2H8v2h1V2zM5 8H2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5-3H7c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5 4h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1z",fill:"currentColor"})}),bd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",children:[(0,Ue.jsx)("path",{d:"M1.5 12 7 3h10l5.5 9-5.5 9H7z"}),(0,Ue.jsx)("path",{d:"m5 14 5-5 5 5m4 0-4.5-4.5-1 1m-5 2V14"})]})}),wd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"m18.5 10.57-.2.37c.26-.78.11-1.63.15-2.37l-.07-.02c-.07-1.85-1.67-3.82-3.09-4.48-1.23-.57-3.12-.67-3.99-.24.12-.11.6-.15.45-.23-1.37.13-1.06.47-2.11.74-.29.28.86-.22.23.16-.56.13-.82-.12-1.65.74.07.12.53-.35.15.12-.79-.09-2.48 1.8-2.84 2.42l.19.04c-.31.77-.72 1.26-.77 1.72-.08 1.14-.45 3.21.08 3.85l-.06.53.23.45-.12.01c.58 1.83.62.04 1.39 1.94-.11-.04-.23-.08-.39-.32-.02.19.24.69.54 1.08l-.12.14c.16.31.32.38.43.49-.63-.35.57 1.13.7 1.32l.1-.17c-.02.24.17.56.53 1.01l.3-.01c.13.24.58.68.85.7l-.18.24c.69.2.33.29 1.18.59l-.17-.3c.43.37.56.7 1.17.98.85.3.96.18 1.82.43-.73 0-1.59 0-2.17-.22-3.96-1.07-7.56-5.72-7.32-10.5-.06-.97.1-2.18-.06-2.42.22-.74.48-1.64 1.01-2.71-.04-.07.09.21.36-.24.16-.36.29-.75.5-1.1l.1-.03c.11-.61 1.43-1.55 1.85-2.02v.18c.86-.81 2.4-1.35 3.26-1.73-.23.25.51-.03 1.04-.06l-.49.28c.63-.16.6.07 1.25-.03-.23.03-.5.1-.46.16.72.08.84-.22 1.51 0l-.05-.2c.94.34 1.13.28 2.14.82.36.01.4-.22.93 0 .1.16-.02.19.64.59.07-.03-.13-.22-.27-.37 1.3.71 2.75 2.22 3.18 3.84-.41-.74-.04.39-.18.33.18.49.33 1 .43 1.53-.12-.43-.39-1.48-.86-2.15-.03.43-.6-.3-.29.66.22.34.05-.35.34.25 0 .29.11.58.18.95-.1-.02-.22-.41-.3-.31.1.5.27.72.33.76-.03.08-.12-.08-.12.24.04.74.21.43.29.46-.09.37-.41.79-.25 1.42l-.2-.56c-.05.53.11.63-.13 1.28.18-.6.16-1.1-.01-.85.09.82-.65 1.45-.58 1.98l-.21-.29c-.57.83-.01.45-.4 1.06.14-.23-.07-.08.11-.36-.12.01-.55.53-.94.83-1.54 1.23-3.39 1.4-5.15.73h-.01c.01-.04 0-.09-.12-.17-1.51-1.15-2.4-2.13-2.11-4.41.25-.17.31-1.12.84-1.45.32-.71 1.28-1.36 2.31-1.38 1.05-.06 1.94.56 2.39 1.14-.82-.75-2.14-.98-3.28-.43-1.15.53-1.84 1.8-1.76 3.07.06-.07.1-.02.12-.18-.03 2.47 2.66 4.28 4.6 3.37l.03.05c.78-.22.68-.39 1.19-.75-.04.09-.34.3-.16.3.25-.06 1.03-.79 1.42-1.13.17-.38-.1-.23.15-.69l.3-.15c.17-.48.35-.75.35-1.32"})}),lc=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M17.61.455a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41M12.92.8C8.923.777 5.137 2.941 3.148 6.451a5 5 0 0 1 .26-.007 4.9 4.9 0 0 1 2.585.737A8.32 8.32 0 0 1 12.688 3.6 4.94 4.94 0 0 1 13.723.834 11 11 0 0 0 12.92.8m9.226 4.994a4.9 4.9 0 0 1-1.918 2.246 8.36 8.36 0 0 1-.273 8.303 4.9 4.9 0 0 1 1.632 2.54 11.16 11.16 0 0 0 .559-13.089M3.41 7.932A3.41 3.41 0 0 0 0 11.342a3.41 3.41 0 0 0 3.41 3.409 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41zm2.027 7.866a4.9 4.9 0 0 1-2.915.358 11.1 11.1 0 0 0 7.991 6.698 11.2 11.2 0 0 0 2.422.249 4.88 4.88 0 0 1-.999-2.85 9 9 0 0 1-.836-.136 8.3 8.3 0 0 1-5.663-4.32zm11.405.928a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41"})});var x=k(he(),1),_=new Map,Io=[{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0}],Sd=[{name:"Overview",isDirectory:!0,path:"/overview",class:"classOverview",layout:"own"},{name:"Cluster",isDirectory:!0,path:"/cluster",class:"classCluster",layout:"own"},{name:"Overview",isDirectory:!0,path:"/cluster/overview",class:"classClusterOverview",layout:"own"},{name:"Nodes",isDirectory:!0,path:"/cluster/Node",class:"classmenu",children:"Node"},{name:"Namespaces",isDirectory:!0,path:"/cluster/Namespace",class:"classNamespace",children:"Namespace"},{name:"API Resources",isDirectory:!0,path:"/cluster/V1APIResource",class:"classV1APIResource",children:"V1APIResource"},{name:"Images",isDirectory:!0,path:"/cluster/Image",class:"classImage",children:"Image"},{name:"Component status",isDirectory:!0,path:"/cluster/ComponentStatus",class:"classComponentStatus",children:"ComponentStatus"},{name:"Workload",isDirectory:!0,path:"/workload",class:"classWorkload",layout:"own"},{name:"Overview",isDirectory:!0,path:"/workload/overview",class:"classmenu",layout:"own"},{name:"Pods",isDirectory:!0,path:"/workload/Pod",layout:"list",class:"classPod",categories:["Node","Namespace","controller"],children:"Pod"},{name:"Deployments",isDirectory:!0,path:"/workload/Deployment",class:"classDeployment",categories:["Namespace"],children:"Deployment"},{name:"Daemon Sets",isDirectory:!0,path:"/workload/DaemonSet",class:"classDaemonSet",categories:["Namespace"],children:"DaemonSet"},{name:"Replica Sets",isDirectory:!0,path:"/workload/ReplicaSet",class:"classReplicaSet",categories:["Namespace"],children:"ReplicaSet"},{name:"Replication Controllers",isDirectory:!0,path:"/workload/ReplicationController",class:"classReplicationController",categories:["Namespace"],children:"ReplicationController"},{name:"Stateful Sets",isDirectory:!0,path:"/workload/StatefulSet",class:"classStatefulSet",categories:["Namespace"],children:"StatefulSet"},{name:"Jobs",isDirectory:!0,path:"/workload/Job",class:"classJob",categories:["Namespace"],children:"Job"},{name:"Cron jobs",isDirectory:!0,path:"/workload/CronJob",class:"classCronJob",categories:["Namespace"],children:"CronJob"},{name:"Config",isDirectory:!0,path:"/config",class:"classConfig",layout:"own"},{name:"Overview",isDirectory:!0,path:"/config/overview",class:"classmenu",layout:"own"},{name:"Config Maps",isDirectory:!0,path:"/config/ConfigMap",class:"classConfigMap",categories:["Namespace"],children:"ConfigMap"},{name:"Secrets",isDirectory:!0,path:"/config/Secret",class:"classSecret",categories:["Namespace"],children:"Secret"},{name:"Resource Quota",isDirectory:!0,path:"/config/ResourceQuota",class:"classResourceQuota",categories:["Namespace"],children:"ResourceQuota"},{name:"Limit Range",isDirectory:!0,path:"/config/LimitRange",class:"classLimitRange",categories:["Namespace"],children:"LimitRange"},{name:"Horizontal Pod Autoscaler",isDirectory:!0,path:"/config/HorizontalPodAutoscaler",class:"classHorizontalPodAutoscaler",categories:["Namespace"],children:"HorizontalPodAutoscaler"},{name:"Pod Disruption Budget",isDirectory:!0,path:"/config/PodDisruptionBudget",class:"classPodDisruptionBudget",categories:["Namespace"],children:"PodDisruptionBudget"},{name:"Priority Classes",isDirectory:!0,path:"/config/PriorityClass",class:"classPriorityClass",children:"PriorityClass"},{name:"Runtime Classes",path:"/config/RuntimeClass",isDirectory:!0,class:"classRuntimeClass",children:"RuntimeClass"},{name:"Leases",isDirectory:!0,path:"/config/Lease",class:"classLease",categories:["Namespace"],children:"Lease"},{name:"Validating webhooks",isDirectory:!0,path:"/config/ValidatingWebhookConfiguration",class:"classValidatingWebhookConfiguration",children:"ValidatingWebhookConfiguration"},{name:"Mutating webhooks",isDirectory:!0,path:"/config/MutatingWebhookConfiguration",class:"classMutatingWebhookConfiguration",children:"MutatingWebhookConfiguration"},{name:"Network",isDirectory:!0,path:"/network",class:"classNetwork",layout:"own"},{name:"Overview",isDirectory:!0,path:"/network/overview",class:"classmenu",layout:"own"},{name:"Services",isDirectory:!0,path:"/network/Service",layout:"list",class:"classService",categories:["Namespace"],children:"Service"},{name:"Endpoints\xA0",isDirectory:!0,path:"/network/Endpoints",layout:"list",class:"classEndpoints",categories:["Namespace"],children:"Endpoints"},{name:"Ingresses",isDirectory:!0,path:"/network/Ingress",layout:"list",class:"classIngress",categories:["Namespace"],children:"Ingress"},{name:"Ingress classes",isDirectory:!0,path:"/network/IngressClass",layout:"list",class:"classIngressClass",children:"IngressClass"},{name:"Network policies",isDirectory:!0,path:"/network/NetworkPolicy",layout:"list",class:"classNetworkPolicy",categories:["Namespace"],children:"NetworkPolicy"},{name:"Storage",isDirectory:!0,path:"/storage",class:"classStorage",layout:"own"},{name:"Overview",isDirectory:!0,path:"/storage/overview",class:"classmenu",layout:"own"},{name:"Persistent volume claims",isDirectory:!0,path:"/storage/PersistentVolumeClaim",class:"classPersistentVolumeClaim",categories:["Namespace"],children:"PersistentVolumeClaim"},{name:"Persistent volumes",isDirectory:!0,path:"/storage/PersistentVolume",class:"classPersistentVolume",children:"PersistentVolume"},{name:"Volume attachments",isDirectory:!0,path:"/storage/VolumeAttachment",class:"classVolumeAttachment",children:"VolumeAttachment"},{name:"Storage classes",isDirectory:!0,path:"/storage/StorageClass",class:"classStorageClass",children:"StorageClass"},{name:"CSI Drivers",isDirectory:!0,path:"/storage/CSIDriver",class:"classCSIDriver",children:"CSIDriver"},{name:"CSI Nodes",isDirectory:!0,path:"/storage/CSINode",class:"classCSINode",children:"CSINode"},{name:"CSI Storage Capacity",isDirectory:!0,path:"/storage/CSIStorageCapacity",class:"classCSIStorageCapacity",children:"CSIStorageCapacity"},{name:"Access",isDirectory:!0,path:"/access",class:"classAccess",layout:"own"},{name:"Overview",isDirectory:!0,path:"/access/overview",class:"classmenu",layout:"own"},{name:"Service accounts",isDirectory:!0,path:"/access/ServiceAccount",class:"classServiceAccount",categories:["Namespace"],children:"ServiceAccount"},{name:"Cluster roles",isDirectory:!0,path:"/access/ClusterRole",class:"classClusterRole",children:"ClusterRole"},{name:"Roles",isDirectory:!0,path:"/access/Role",class:"classRole",categories:["Namespace"],children:"Role"},{name:"Cluster role bindings",isDirectory:!0,path:"/access/ClusterRoleBinding",class:"classClusterRoleBinding",children:"ClusterRoleBinding"},{name:"Role bindings",isDirectory:!0,path:"/access/RoleBinding",class:"classRoleBinding",categories:["Namespace"],children:"RoleBinding"},{name:"Custom",isDirectory:!0,path:"/custom",class:"classCustom",layout:"own"},{name:"Definitions",isDirectory:!0,path:"/custom/CustomResourceDefinition",class:"classCustomResourceDefinition",children:"CustomResourceDefinition"},{name:"Preferences",isDirectory:!0,path:"/preferences",class:"classSettings",layout:"own"}];_.set("classClusterOverview",{leftItems:[{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"logsearch",icon:(0,x.jsx)(oc,{fontSize:"small"}),text:"Log search",permission:!0},{name:"add",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Add",permission:!0}]});_.set("classService",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New service",permission:!0}]});_.set("Service",{text:"Service name",source:"name",width:20,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit service",permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:10,sortable:!0,visible:!0},{name:"clusterIp",text:"ClusterIP",source:"clusterIp",format:"string",width:10,sortable:!1,visible:!0},{name:"ports",text:"Ports",source:"ports",format:"string",width:10,sortable:!1,visible:!0},{name:"externalIp",text:"ExternalIP",source:"externalIp",format:"string",width:10,sortable:!1,visible:!0},{name:"selector",text:"Selector",source:"function",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classEndpoints",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Endpoints",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"endpoints",text:"Endpoints",source:"endpoints",format:"string",width:45,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classIngress",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New ingress",permission:!0}]});_.set("Ingress",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"loadBalancers",text:"LoadBalancers",source:"loadBalancers",format:"string",width:10,sortable:!0,visible:!0},{name:"rules",text:"Rules",source:"rules",format:"function",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classIngressClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("IngressClass",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"default",icon:(0,x.jsx)(w.CheckCircle,{fontSize:"small"}),text:"Set Default",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"controller",text:"Controller",source:"controller",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classNetworkPolicy",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("NetworkPolicy",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"policyTypes",text:"Policy Types",source:"policyTypes",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classConfigMap",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ConfigMap",{text:"Config Map name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classSecret",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Secret",{text:"Secret name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0}]});_.set("classResourceQuota",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ResourceQuota",{text:"Quota name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classLimitRange",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("LimitRange",{text:"Limit name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classHorizontalPodAutoscaler",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("HorizontalPodAutoscaler",{text:"HPA name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"metrics",text:"Metrics",source:"metrics",format:"string",width:8,sortable:!0,visible:!0},{name:"minpods",text:"Min Pods",source:"minpods",format:"string",width:8,sortable:!0,visible:!0},{name:"maxpods",text:"Max Pods",source:"maxpods",format:"string",width:8,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"string",width:8,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:8,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPodDisruptionBudget",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("PodDisruptionBudget",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"minAvailable",text:"Min available",source:"minAvailable",format:"string",width:10,sortable:!0,visible:!0},{name:"maxUnavailable",text:"Max unavailable",source:"maxUnavailable",format:"string",width:10,sortable:!0,visible:!0},{name:"currentHealthy",text:"Current Healthy",source:"currentHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"desiredHealthy",text:"Desired Healthy",source:"desiredHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPriorityClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("PriorityClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"value",text:"Value",source:"value",format:"string",width:40,sortable:!0,visible:!0},{name:"globalDefault",text:"Global default",source:"globalDefault",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classRuntimeClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("RuntimeClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"handler",text:"Handler",source:"handler",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classLease",{leftItems:[]});_.set("Lease",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"holder",text:"Holder",source:"holder",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classValidatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ValidatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classMutatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("MutatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classNamespace",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New namespace",permission:!0}]});_.set("Namespace",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"logsearch",icon:(0,x.jsx)(oc,{fontSize:"small"}),text:"Log search",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"labels",text:"Labels",source:"labels",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:15,sortable:!0,visible:!0}]});_.set("Node",{text:"Name",source:"name",width:30,configurable:!1,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"shell",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",multi:!1,permission:!0},{name:"cordon",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Cordon",multi:!0,permission:!0},{name:"uncordon",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"UnCordon",multi:!0,permission:!0},{name:"drain",icon:(0,x.jsx)(w.Stop,{fontSize:"small"}),text:"Drain",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"cpu",text:"CPU",source:"cpu",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"taints",text:"Taints",source:"taints",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"roles",text:"Roles",source:"roles",format:"string",width:20,removable:!1,sortable:!1,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:8,sortable:!0,visible:!0}]});_.set("classImage",{leftItems:[]});_.set("Image",{text:"Name",source:"name",width:80,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"tag",text:"Tag",source:"tag",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:10,sortable:!0,visible:!0}]});_.set("classV1APIResource",{leftItems:[]});_.set("V1APIResource",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",multi:!1,permission:!0}],properties:[{name:"kindName",text:"Kind",source:"kind",format:"string",width:30,sortable:!0,visible:!0},{name:"singularName",text:"Singular",source:"singular",format:"string",width:30,sortable:!0,visible:!0},{name:"namespaced",text:"Namespaced",source:"namespaced",format:"string",width:10,sortable:!0,visible:!0}]});_.set("classComponentStatus",{leftItems:[]});_.set("ComponentStatus",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"status",text:"Status",source:"status",format:"string",width:20,sortable:!0,visible:!0},{name:"message",text:"Message",source:"message",format:"string",width:50,sortable:!0,visible:!0}]});_.set("classPod",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New pod",permission:!0}]});_.set("Pod",{text:"Name",source:"name",width:25,configurable:!0,leftItems:[{name:"details",text:"Pod details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),permission:!0},{name:"ops",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"evict",icon:(0,x.jsx)(w.DeleteSweep,{fontSize:"small"}),text:"Evict",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"container",text:"Container",source:"na",format:"function",width:10,sortable:!1,removable:!0,visible:!0},{name:"cpu",text:"CPU",source:"cpu",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"storage",width:10,sortable:!0,removable:!0,visible:!0},{name:"restarts",text:"Restarts",source:"restartCount",format:"number",width:5,sortable:!0,visible:!0},{name:"controller",text:"Controller",source:"controller",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"node",text:"Node",source:"node",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"age",text:"Age",source:"startTime",format:"age",width:5,sortable:!0,removable:!0,visible:!0},{name:"status",text:"Status",source:"function",format:"string",width:5,sortable:!1,removable:!0,visible:!0}]});_.set("classDeployment",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Deployment",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"scale",icon:(0,x.jsx)(hs,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"function",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classDaemonSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("DaemonSet",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:8,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:8,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:8,sortable:!0,visible:!0},{name:"upToDate",text:"Up-to-Date",source:"upToDate",format:"number",width:8,sortable:!0,visible:!0},{name:"available",text:"Available",source:"available",format:"number",width:8,sortable:!0,visible:!0},{name:"nodeSelector",text:"Node Selector",source:"nodeSelector",format:"string",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classReplicaSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ReplicaSet",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(hs,{fontSize:"small"}),text:"Scale",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:10,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classReplicationController",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ReplicationController",{text:"Name",source:"name",width:60,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},{name:"scale",icon:(0,x.jsx)(hs,{fontSize:"small"}),text:"Scale",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:10,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0}]});_.set("classStatefulSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("StatefulSet",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(hs,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Job",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:25,sortable:!0,visible:!0},{name:"completions",text:"Completions",source:"completions",format:"string",width:15,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"function",width:15,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCronJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("CronJob",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"trigger",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Trigger",permission:!0},{name:"suspend",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Suspend",permission:!0},{name:"resume",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Resume",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"schedule",text:"Schedule",source:"schedule",format:"string",width:10,sortable:!1,visible:!0},{name:"suspend",text:"Suspend",source:"suspend",format:"string",width:5,sortable:!0,visible:!0},{name:"active",text:"Active",source:"active",format:"function",width:5,sortable:!0,visible:!0},{name:"lastSchedule",text:"Last schedule",source:"lastSchedule",format:"age",width:10,sortable:!0,visible:!0},{name:"nextExecution",text:"Next execution",source:"nextExecution",format:"function",width:10,sortable:!0,visible:!0},{name:"timeZone",text:"Time zone",source:"timezone",format:"string",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPersistentVolumeClaim",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PVC",permission:!0}]});_.set("PersistentVolumeClaim",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:5,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPersistentVolume",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PV",permission:!0}]});_.set("PersistentVolume",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"capacity",text:"Capacity",source:"capacity",format:"storage",width:10,sortable:!0,visible:!0},{name:"clain",text:"Claim",source:"claim",format:"string",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classVolumeAttachment",{leftItems:[]});_.set("VolumeAttachment",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attacher",text:"Attacher",source:"attacher",format:"string",width:15,sortable:!0,visible:!0},{name:"nodeName",text:"Node name",source:"nodeName",format:"string",width:20,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:5,sortable:!0,visible:!0}]});_.set("classStorageClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New storage class",permission:!0}]});_.set("StorageClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"provisioner",text:"Provisioner",source:"provisioner",format:"string",width:15,sortable:!0,visible:!0},{name:"reclaimPolicy",text:"Reclaim policy",source:"reclaimPolicy",format:"string",width:15,sortable:!0,visible:!0},{name:"default",text:"Default",source:"default",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCSIDriver",{leftItems:[]});_.set("CSIDriver",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attachRequired",text:"Attach Required",source:"attachRequired",format:"string",width:15,sortable:!0,visible:!0},{name:"storageCapacity",text:"Storage Capacity",source:"storageCapacity",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCSINode",{leftItems:[]});_.set("CSINode",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"divers",text:"Drivers",source:"drivers",format:"string",width:55,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classStorageCapacity",{leftItems:[]});_.set("CSIStorageCapacity",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classServiceAccount",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ServiceAccount",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classClusterRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ClusterRole",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Role",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classClusterRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ClusterRoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:50,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("RoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCustomResourceDefinition",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("CustomResourceDefinition",{text:"Name",source:"name",width:40,leftItems:[{name:"instantiate",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Instantiate",permission:!0},{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"group",text:"Group",source:"group",format:"string",width:15,sortable:!0,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:15,sortable:!0,visible:!0},{name:"scope",text:"Scope",source:"scope",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("crdGroup",{text:"Name",source:"name",width:40,leftItems:[],properties:[]});_.set("crdInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("crdNamespacedInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classOverview",{leftItems:[{name:"kubeworks",icon:(0,x.jsx)(sd,{fontSize:"small"}),text:"Kube works",permission:!0}]});_.set("classmenu",{});_.set("classWorkload",{});_.set("classConfig",{});_.set("classNetwork",{});_.set("classStorage",{});_.set("classAccess",{});_.set("classCustom",{});_.set("classSettings",{});var Bn=new Map;Bn.set("classOverview",{default:(0,x.jsx)(ud,{size:"16"})});Bn.set("classCluster",{default:(0,x.jsx)(yd,{size:"16"})});Bn.set("classWorkload",{default:(0,x.jsx)(gd,{size:"16"})});Bn.set("classConfig",{default:(0,x.jsx)(dd,{size:"16"})});Bn.set("classNetwork",{default:(0,x.jsx)(hd,{size:"16"})});Bn.set("classStorage",{default:(0,x.jsx)(pd,{size:"16"})});Bn.set("classAccess",{default:(0,x.jsx)(fd,{size:"16"})});Bn.set("classCustom",{default:(0,x.jsx)(md,{size:"16"})});Bn.set("classSettings",{default:(0,x.jsx)(xd,{size:"16"})});var Cd=new Map;u();var fe=new Map,Tt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string",style:["ifpresent"]},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","ifpresent","char:50","collapse"]}],pt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string"},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#metadata.namespace"],format:"string",style:["link:$Namespace:metadata.namespace:."]},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","char:50","ifpresent","collapse"]}],ri={name:"conditions",text:"Conditions",source:["status.conditions"],format:"objectlist",style:["table","ifpresent"],items:[{name:"type",text:"Type",source:["type"],format:"string",style:["property:status:True:text.primary","property:status:False:text.disabled"]},{name:"reason",text:"Reason",source:["reason"],format:"string",style:["FailedCreate:red","Available:green","Progressing:green","NewReplicaSetAvailable:green","MinimumReplicasUnavailable:red","MinimumReplicasAvailable:green","InsufficientPods:red","PodCompleted:green","KubeletHasSufficientMemory:green","KubeletHasNoDiskPressure:green","KubeletHasSufficientPID:green","KubeletReady:green","CompletionsReached:green","KernelHasNoDeadlock:green","NoFrequentContainerdRestart:green","NoFrequentKubeletRestart:green","ContainerRuntimeIsUp:green","FilesystemIsOK:green","KubeletIsUp:green","NoFrequentDockerRestart:green","NoFrequentUnregisterNetDevice:green","SufficientPods:green","NoConflicts:green","InitialNamesAccepted:green","Unschedulable:red","BackoffLimitExceeded:red","ContainersNotReady:red","NoVMEventScheduled:green","FilesystemIsNotReadOnly:orange","ApprovedAnnotation:green"]},{name:"message",text:"Message",source:["message"],format:"string"},{name:"age",text:"Age",source:["lastUpdateTime||lastTransitionTime||$default"],format:"age"}]},ke={name:"events",text:"Events",root:"events",items:[{name:"events",text:"",source:["list"],format:"objectlist",style:["table"],items:[{name:"message",text:"Message",source:["message"],format:"string"},{name:"count",text:"Count",source:["count"],format:"string"},{name:"age",text:"Age",source:["lastTimestamp"],format:"age"}]}]},Ia={name:"pods",text:"Pods",root:"origin",items:[{name:"pods",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Pod:metadata.name:metadata.namespace"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]}]}]};fe.set("PersistentVolumeClaim",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"storage",text:"Storage",source:["spec.resources.requests.storage"],format:"string"},{name:"pods",text:"Pods",source:["#@string[]"],format:"stringlist",style:["column","link:$Pod:name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Bound:green","Pending:orange"]},{name:"pv",text:"PV",source:["#spec.volumeName"],format:"string",style:["link:$PersistentVolume:spec.volumeName:."]}]},ke]);fe.set("PersistentVolume",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"capacity",text:"Capacity",source:["spec.capacity.storage"],format:"string"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"persistentVolumeReclaimPolicy",text:"Reclaim Policy",source:["spec.persistentVolumeReclaimPolicy"],format:"string"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"status",text:"Status",source:["status.phase"],format:"string"},{name:"pvc",text:"PVC",source:["#spec.claimRef.name"],format:"string",style:["link:spec.claimRef.kind:spec.claimRef.name:spec.claimRef.namespace"]}]},ke]);fe.set("StorageClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"provisioner",text:"Provisioner",source:["#provisioner"],format:"string",style:["link:$CSIDriver:provisioner:."]},{name:"volumeBindingMode",text:"Binding Mode",source:["volumeBindingMode"],format:"string"},{name:"reclaimPolicy",text:"Reclaim Policy",source:["reclaimPolicy"],format:"string"},{name:"pvs",text:"PV",source:["#@string[]"],format:"stringlist",style:["column","link:$PersistentVolume:.:.","ifpresent"]},{name:"pvcs",text:"PVC",source:["@object[]"],items:[{name:"pvc",text:"",source:["#name"],format:"string",style:["link:$PersistentVolumeClaim:name:namespace"]}],format:"objectlist",style:["column"]}]},ke]);fe.set("VolumeAttachment",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"attacher",text:"Attacher",source:["#spec.attacher"],format:"string",style:["link:$CSIDriver:spec.attacher:."]},{name:"nodeName",text:"Node Name",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"persistentVolumeName",text:"PV",source:["#spec.source.persistentVolumeName"],format:"string",style:["link:$PersistentVolume:spec.source.persistentVolumeName:."]},{name:"attached",text:"Attached",source:["status.attached"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"attachError",text:"Attach Error",source:["status.attachError.time","$\xA0\xA0-\xA0\xA0","status.attachError.message"],format:"string",style:["ifpresent","color:red"]},{name:"detachError",text:"Detach Error",source:["status.detachError.time","$\xA0\xA0-\xA0\xA0","status.detachError.message"],format:"string",style:["ifpresent","color:red"]}]},ke]);fe.set("CSIDriver",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"attachRequired",text:"Attach Required",source:["spec.attachRequired"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"fsGroupPolicy",text:"Group Policy",source:["spec.fsGroupPolicy"],format:"string"},{name:"republish",text:"Requires republish",source:["spec.requiresRepublish"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"linuxMount",text:"LinuxMount",source:["spec.seLinuxMount"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"stgCap",text:"Stg Capacity",source:["spec.storageCapacity"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"volumeLifecycleModes",text:"Lifecycle modes",source:["spec.volumeLifecycleModes"],format:"stringlist"},{name:"storageClasses",text:"",source:["@jsx[]"],format:"string",style:["column"]}]},ke]);fe.set("CSINode",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"drivers",text:"Drivers",source:["spec.drivers"],format:"objectlist",style:["column"],items:[{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$CSIDriver:name:."]}]}]},ke]);fe.set("CSIStorageCapacity",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},ke]);fe.set("NetworkPolicy",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"podSelector",text:"Pod Selector",source:["spec.podSelector.matchLabels"],format:"objectprops"}]},ke]);fe.set("Service",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops",style:["column"]}]},{name:"connection",text:"Connection",root:"origin",items:[{name:"clusterIp",text:"Cluster IP",source:["spec.clusterIP"],format:"string"},{name:"clusterIps",text:"Cluster IPs",source:["spec.clusterIPs"],format:"stringlist"},{name:"ipFamilies",text:"IP families",source:["spec.ipFamilies"],format:"stringlist"},{name:"ipFamilyPolicy",text:"IP family policy",source:["spec.ipFamilyPolicy"],format:"string"},{name:"ports",text:"Ports",source:["spec.ports"],format:"objectlist",style:["column"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]}]},ke]);fe.set("Endpoints",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"subsets",text:"Subsets",root:"origin",items:[{name:"subsetlist",text:"",source:["subsets"],format:"objectlist",items:[{name:"address",text:"Address",source:["addresses"],format:"objectlist",style:["table"],items:[{name:"ip",text:"IP",source:["ip"],format:"string"},{name:"target",text:"Target",source:["targetRef.kind","$\xA0","#targetRef.name","$\xA0(namespace:\xA0","targetRef.namespace","$)"],format:"string",style:["link:targetRef.kind:targetRef.name:targetRef.namespace","ifpresent"]}]}]}]},ke]);fe.set("Ingress",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"ingressClass",text:"Ingress class",source:["#spec.ingressClassName"],format:"string",style:["bold","link:$IngressClass:spec.ingressClassName:."]}]},{name:"rules",text:"Rules",root:"origin",items:[{name:"host",text:"Host",source:["spec.rules"],format:"objectlist",style:["table"],items:[{name:"host",text:"Host",source:["host"],format:"string",style:["bold"]},{name:"paths",text:"Paths",source:["http.paths"],format:"objectlist",style:["column"],items:[{name:"path",text:"Path",source:["path","$\xA0(","#backend.service.name","$:","backend.service.port.number","$)"],format:"string",style:["link:$Service:backend.service.name:$$namespace"]}]}]}]},ke]);fe.set("IngressClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"controller",text:"Controller",source:["spec.controller"],format:"string"},{name:"default",text:"Default",source:['metadata.annotations["ingressclass.kubernetes.io/is-default-class"]'],format:"boolean",style:["true:Yes:green","false:No:red","undefined:No:red",":No:red"]},{name:"ingresses",text:"Ingress",source:["@object[]"],items:[{name:"ingress",text:"",source:["#name"],format:"string",style:["link:$Ingress:name:namespace"]}],format:"objectlist",style:["column"]}]},ke]);fe.set("Namespace",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Active:green"]}]},{name:"content",text:"Content",root:"origin",items:[{name:"content",text:"Content",source:["@jsx[]"],format:"string",style:["column"]}]},ke]);fe.set("Node",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist",style:["column"]},{name:"os",text:"OS",source:["status.nodeInfo.operatingSystem","$(","status.nodeInfo.architecture","$)"],format:"string"},{name:"osImage",text:"OS Image",source:["status.nodeInfo.osImage"],format:"string"},{name:"kernelVersion",text:"Kernel version",source:["status.nodeInfo.kernelVersion"],format:"string"},{name:"containerRuntime",text:"CRI",source:["status.nodeInfo.containerRuntimeVersion"],format:"string"},{name:"kubeletVersion",text:"Kubelet",source:["status.nodeInfo.kubeletVersion"],format:"string"},ri]},{name:"workload",text:"Workload",root:"origin",items:[{name:"taints",text:"Taints",source:["spec.taints"],format:"objectlist",style:["table"],items:[{name:"taint",text:"Taint",source:["key"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"age",text:"Age",source:["timeAdded"],format:"age"}]}]},{name:"compute",text:"Compute",root:"origin",items:[{name:"capacity",text:"Capacity",source:["status.capacity"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.capacity.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.capacity.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.capacity.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.capacity.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.capacity.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.capacity.pods"],format:"string"}]},{name:"allocatable",text:"Allocatable",source:["status.allocatable"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.allocatable.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.allocatable.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.allocatable.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.allocatable.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.allocatable.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.allocatable.pods"],format:"string"}]}]},{name:"storage",text:"Storage",root:"origin",items:[{name:"inuse",text:"In Use",source:["#status.volumesInUse"],format:"stringlist",style:["column","link:$PersistentVolume:.:."],processValue:e=>e.split("/")[e.split("/").length-1]},{name:"attached",text:"Attached",source:["status.volumesAttached"],format:"objectlist",style:["column"],items:[{name:"name",text:"",source:["#name"],format:"string",style:["column","link:$PersistentVolume:name:."],processValue:e=>e.split("/")[e.split("/").length-1]}]}]},{name:"network",text:"Network",root:"origin",items:[{name:"addresses",text:"Addresses",source:["status.addresses"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"value",text:"Value",source:["address"],format:"string"}]}]},ke]);fe.set("V1APIResource",[{name:"properties",text:"Properties",root:"origin",items:[{name:"kind",text:"Kind",format:"string",source:["kindName"]},{name:"namespaced",text:"Namespaced",format:"boolean",source:["namespaced"],style:["ifpresent","true:Yes:green","false:No:red",":No:red"]},{name:"shortNames",text:"Short names",format:"string",source:["shortNames"],style:["ifpresent"]},{name:"singularName",text:"Singular",format:"string",source:["singularName"],style:["ifpresent"]},{name:"categories",text:"Categories",format:"stringlist",source:["categories"],style:["ifpresent"]},{name:"verbs",text:"Verbs",format:"stringlist",source:["verbs"],style:["ifpresent"]}]}]);fe.set("Image",[{name:"properties",text:"Properties",root:"origin",items:[{name:"name",text:"Name",source:["displayName"],format:"string"},{name:"registry",text:"Registry",source:["registry"],format:"string"},{name:"tag",text:"Tag",source:["tag"],format:"string"},{name:"sha",text:"SHA",source:["sha"],format:"string"},{name:"names",text:"Names",source:["names"],format:"stringlist",style:["column"]},{name:"nodes",text:"Nodes",source:["#nodes"],format:"stringlist",style:["column","link:$Node:.:."]}]}]);fe.set("ComponentStatus",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"conditions",text:"Conditions",root:"origin",items:[{name:"conditions",text:"",source:["conditions"],format:"objectlist",style:["table"],items:[{name:"status",text:"Status",source:["status"],format:"string"},{name:"type",text:"Type",source:["type"],format:"string"},{name:"message",text:"Message",source:["message"],format:"string"}]}]},ke]);fe.set("ConfigMap",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline"]}]},ke]);fe.set("Secret",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"type",text:"Type",source:["type"],format:"string"}]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline","lockicon","base64"]}]},ke]);fe.set("LimitRange",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"limits",text:"Limits",root:"origin",items:[{name:"limits",text:"",source:["spec.limits"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"maxcpu",text:"MaxCPU",source:["max.cpu"],format:"string"},{name:"maxmem",text:"MaxMem",source:["max.memory"],format:"string"},{name:"mincpu",text:"MinCPU",source:["min.cpu"],format:"string"},{name:"minmem",text:"MinMem",source:["min.memory"],format:"string"},{name:"defcpu",text:"DefaultCPU",source:["default.cpu"],format:"string"},{name:"defmem",text:"DefaultMem",source:["default.memory"],format:"string"},{name:"defreqcpu",text:"DefReqCPU",source:["defaultRequest.cpu"],format:"string"},{name:"defreqmem",text:"DefReqMem",source:["defaultRequest.memory"],format:"string"}]}]},ke]);fe.set("HorizontalPodAutoscaler",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"reference",text:"Reference",source:["spec.scaleTargetRef.kind","$\xA0/\xA0","spec.scaleTargetRef.name"],format:"string"},{name:"minPods",text:"Min Pods",source:["spec.minReplicas"],format:"string"},{name:"maxPods",text:"Max Pods",source:["spec.maxReplicas"],format:"string"},{name:"replicas",text:"Replicas",source:["status.desiredReplicas"],format:"string"}]},ke]);fe.set("PodDisruptionBudget",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"minAvailable",text:"Min Available",source:["spec.minAvailable"],format:"string",style:["ifpresent"]},{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},ri]},ke]);fe.set("PriorityClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"preemptionPolicy",text:"Policy",source:["preemptionPolicy"],format:"string"}]},ke]);fe.set("RuntimeClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"handler",text:"Handler",source:["handler"],format:"string"}]},ke]);fe.set("Lease",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"holderIdentity",text:"Holder",source:["spec.holderIdentity"],format:"string"},{name:"leaseDurationSeconds",text:"Duration",source:["spec.leaseDurationSeconds"],format:"string"},{name:"acquireTime",text:"Acquire",source:["spec.acquireTime"],format:"string",style:["ifpresent"]},{name:"renewTime",text:"Renew",source:["spec.renewTime"],format:"string"},{name:"leaseTransitions",text:"Transitions",source:["spec.leaseTransitions"],format:"string",style:["ifpresent"]}]},ke]);fe.set("ValidatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"route",text:"Route",source:["clientConfig.service.path","$:","clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},ke]);fe.set("MutatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"port",text:"Port",source:["clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},ke]);fe.set("Pod",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Running:green","Pending:orange"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"podip",text:"Pod IP",source:["status.podIP"],format:"string"},{name:"podips",text:"Pod IPs",source:["status.podIPs"],format:"objectlist",items:[{name:"ip",text:"IP",source:["ip"],format:"string"}]},{name:"sa",text:"Service Account",source:["#spec.serviceAccount"],format:"string",style:["link:$ServiceAccount:spec.serviceAccount:$$namespace"]},{name:"qosclass",text:"QoS Class",source:["status.qosClass"],format:"string"},ri,{name:"tolerations",text:"Tolerations",source:["spec.tolerations"],format:"table",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"value",text:"Value",source:["value"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"seconds",text:"Seconds",source:["tolerationSeconds"],format:"string"}]}]},{name:"containers",text:"Containers",root:"origin",items:[{name:"container",text:"",source:["status.containerStatuses|spec.containers:name"],format:"objectobject",style:["column"],items:[{name:"name",text:"",source:["name"],format:"string",style:["bold"]},{name:"id",text:"Id",source:["containerID"],format:"string",style:[""]},{name:"state",text:"State",source:["state"],format:"keylist",style:["running:green","waiting:orange"]},{name:"image",text:"Image",source:["#image"],format:"string",style:["link:$Image:image:."]},{name:"ports",text:"Ports",source:["ports"],format:"objectlist",style:["fullwidth","ifpresent"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]},{name:"envs",text:"Environment",source:["env"],format:"objectlist",style:["table"],items:[{name:"env",text:"Variable",source:["name"],format:"string"},{name:"val",text:"Value",source:["value","valueFrom.fieldRef.fieldPath"],format:"string"},{name:"valSecret",text:"From Secret",source:["#valueFrom.secretKeyRef.name","$/","valueFrom.secretKeyRef.key"],format:"string",style:["ifpresent","link:$Secret:valueFrom.secretKeyRef.name:$$namespace"]},{name:"valCm",text:"From CM",source:["#valueFrom.configMapKeyRef.name","$/","valueFrom.configMapKeyRef.key"],format:"string",style:["ifpresent","link:$ConfigMap:valueFrom.configMapKeyRef.name:$$namespace"]}]},{name:"mounts",text:"Mounts",source:["volumeMounts"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"path",text:"Path",source:["mountPath"],format:"string"}]},{name:"requests",text:"Requests",source:["resources.requests"],format:"objectprops",style:["table","ifpresent"]},{name:"limits",text:"Limits",source:["resources.limits"],format:"objectprops",style:["table","ifpresent"]}]}]},{name:"volumes",text:"Volumes",root:"origin",items:[{name:"volume",text:"",source:["spec.volumes"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"mode",text:"Mount Mode",source:["projected.defaultMode","configMap.defaultMode","secret.defaultMode"],format:"string"},{name:"pvc",text:"PVC",source:["#persistentVolumeClaim.claimName"],format:"string",style:["link:$PersistentVolumeClaim:persistentVolumeClaim.claimName:$$namespace"]},{name:"configmap",text:"ConfigMap",source:["#configMap.name"],format:"string",style:["link:$ConfigMap:configMap.name:$$namespace"]},{name:"secret",text:"Secret",source:["#secret.secretName"],format:"string",style:["link:$Secret:secret.secretName:$$namespace"]},{name:"projected",text:"Projected",source:["projected.sources"],format:"boolean",style:["true:\u2714\uFE0F:green","false::"]}]}]},ke]);fe.set("Deployment",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"strategyType",text:"Strategy Type",source:["spec.strategy.type"],format:"string"},{name:"status",text:"Status",source:["@string[]"],format:"string",style:["running:green"]},ri]},Ia,ke]);fe.set("DaemonSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["#image"],format:"string",style:["link:$Image:image:."]}],style:["column"]},{name:"strategy",text:"Strategy",source:["spec.updateStrategy.type"],format:"string"},{name:"tolerations",text:"Tolerations",source:["spec.template.spec.tolerations"],format:"objectlist",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"}],style:["table"]}]},Ia,ke]);fe.set("ReplicaSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},{name:"replicas",text:"Replicas",source:["status.readyReplicas||0","$/","spec.replicas"],format:"string"}]},Ia,ke]);fe.set("ReplicationController",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"spec",text:"Spec",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops"}]},{name:"status",text:"Status",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"availableReplicas",text:"Available",source:["status.availableReplicas"],format:"string"},{name:"labelled",text:"Labelled",source:["status.fullyLabeledReplicas"],format:"string"},{name:"generation",text:"Generation",source:["status.observedGeneration"],format:"string"}]},Ia,ke]);fe.set("StatefulSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]}]},Ia,ke]);fe.set("Job",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops"},{name:"nodeSelector",text:"Node Selector",source:["spec.template.spec.nodeSelector"],format:"objectprops",style:["ifpresent"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},ri,{name:"completions",text:"Completions",source:["spec.completions"],format:"string"},{name:"parallelism",text:"Parallelism",source:["spec.parallelism"],format:"string"}]},Ia,ke]);fe.set("CronJob",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"schedule",text:"Schedule",source:["spec.schedule"],format:"string"},{name:"suspended",text:"Suspended",source:["spec.suspend"],format:"boolean",style:["true:Yes:red","false:No:green"]},{name:"lastSchedule",text:"Last Schedule",source:["status.lastScheduleTime"],format:"string",style:["ifpresent"]},{name:"lastSuccessful",text:"Last Success",source:["status.lastSuccessfulTime"],format:"string",style:["ifpresent"]},{name:"nextExecution",text:"Next Execution",source:["@string[]"],format:"string"},{name:"timeLeft",text:"Time Left",source:["@string[]"],format:"string"}]},{name:"history",text:"History",root:"origin",items:[{name:"jobs",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Job:metadata.name:$$namespace"]},{name:"age",text:"Age",source:["status.startTime"],format:"age"}]}]},ke]);fe.set("ServiceAccount",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"tokens",text:"Tokens",source:["@object[]"],format:"objectlist",style:["column"],items:[{name:"tokens",text:"",source:["#name"],format:"string",style:["column","char:30","ifpresent","link:$Secret:name:namespace"]}]}]},ke]);fe.set("ClusterRole",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]},{name:"nonResourceURLs",text:"Non Resource URLs",source:["nonResourceURLs"],format:"stringlist",style:["column"]}],style:["table"]}]},ke]);fe.set("Role",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]}],style:["table"]}]}]);fe.set("ClusterRoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$ClusterRole:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},ke]);fe.set("RoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$Role:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},ke]);fe.set("ResourceQuota",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"quotas",text:"Quotas",root:"origin",items:[{name:"limitcpu",text:"Limit CPU",source:["status.used['limits.cpu']","status.hard['limits.cpu']"],format:"bar",style:["ifpresent"]},{name:"limitmemory",text:"Limit Memory",source:["status.used['limits.memory']","status.hard['limits.memory']"],format:"bar",style:["ifpresent"]},{name:"requestcpu",text:"Request CPU",source:["status.used['requests.cpu']","status.hard['requests.cpu']"],format:"bar",style:["ifpresent"]},{name:"requestmemory",text:"Request Memory",source:["status.used['requests.memory']","status.hard['requests.memory']"],format:"bar",style:["ifpresent"]},{name:"pods",text:"Pods",source:["status.used['count/pods']","status.hard['count/pods']"],format:"bar",style:["ifpresent"]},{name:"persistentvolumeclaims",text:"PVCs",source:["status.used['count/persistentvolumeclaims']","status.hard['count/persistentvolumeclaims']"],format:"bar",style:["ifpresent"]},{name:"services",text:"Services",source:["status.used['count/services']","status.hard['count/services']"],format:"bar",style:["ifpresent"]},{name:"configmaps",text:"ConfigMaps",source:["status.used['count/configmaps']","status.hard['count/configmaps']"],format:"bar",style:["ifpresent"]},{name:"secrets",text:"Secrets",source:["status.used['count/secrets']","status.hard['count/secrets']"],format:"bar",style:["ifpresent"]}]},ke]);fe.set("CustomResourceDefinition",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"group",text:"Group",source:["spec.group"],format:"string"},{name:"versions",text:"Versions",source:["spec.versions"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"served",text:"Served",source:["served"],format:"boolean",style:["true:Yes:green","false:No:red"]},{name:"storage",text:"Storage",source:["storage"],format:"boolean",style:["true:Yes:green","false:No:red"]}]},ri]},{name:"names",text:"Names",root:"origin",items:[{name:"singular",text:"Singular",source:["spec.names.singular"],format:"string"},{name:"plural",text:"Plural",source:["spec.names.plural"],format:"string"},{name:"kind",text:"Kind",source:["spec.names.kind"],format:"string"},{name:"listKind",text:"List Kind",source:["spec.names.listKind"],format:"string"}]},ke]);fe.set("#crdInstance#",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"source",text:"Source",source:["spec.source"],format:"string"},{name:"checksum",text:"checksum",source:["spec.checksum"],format:"string",style:["char:80"]}]},ke]);var xn=k(Gt(),1);var vt=k(Dt(),1);u();var On=k(je(),1);u();var vd=k(je());u();u();var gs=function(){return gs=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},gs.apply(this,arguments)};var si=k(je());u();var ii=k(je());function cc(){var e=(0,ii.useRef)(!1),t=(0,ii.useCallback)(function(){return e.current},[]);return(0,ii.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}function uc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var a=(0,si.useRef)(0),r=cc(),i=(0,si.useState)(n),s=i[0],o=i[1],l=(0,si.useCallback)(function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var m=++a.current;return s.loading||o(function(f){return gs(gs({},f),{loading:!0})}),e.apply(void 0,c).then(function(f){return r()&&m===a.current&&o({value:f,loading:!1}),f},function(f){return r()&&m===a.current&&o({error:f,loading:!1}),f})},t);return[s,l]}function mc(e,t){t===void 0&&(t=[]);var n=uc(e,t,{loading:!0}),a=n[0],r=n[1];return(0,vd.useEffect)(function(){r()},[r]),a}var ye=k(ft(),1),ua=k(Gt(),1),Re=k(va(),1),Cm=k(Dt(),1),Ml=k(Dt(),1),ey=k(Dt(),1);u();var Ft=k(je(),1),Sn=k(ft(),1);u();u();var Ta=k(je(),1),et=k(nr(),1),Vd=k(ys(),1);u();function Ed(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ed(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Ad(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ed(e))&&(a&&(a+=" "),a+=t);return a}var ci=k(je(),1),Pt=k(nr(),1),Hd=k(ys(),1);function xc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Pd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function xs(e){return typeof e=="number"&&!isNaN(e)}function zt(e){return parseInt(e,10)}function li(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var dc=["Moz","Webkit","O","ms"];function ab(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<dc.length;r++)if(Wd(e,dc[r])in a)return dc[r];return""}function Wd(e,t){return t?`${t}${rb(e)}`:e}function rb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var ib=ab(),fc="";function sb(e,t){var n;fc||(fc=(n=xc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return Pd(e[r])}))!=null?n:"");let a=e[fc];return Pd(a)?!!a.call(e,t):!1}function Fd(e,t,n){let a=e;do{if(sb(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function pc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function rr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function ob(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=zt(n.borderTopWidth),t+=zt(n.borderBottomWidth),t}function lb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=zt(n.borderLeftWidth),t+=zt(n.borderRightWidth),t}function cb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=zt(n.paddingTop),t-=zt(n.paddingBottom),t}function ub(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=zt(n.paddingLeft),t-=zt(n.paddingRight),t}function mb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function db(e,t){let n=Bd(e,t,"px");return{[Wd("transform",ib)]:n}}function fb(e,t){return Bd(e,t,"")}function Bd({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function pb(e,t){return e.targetTouches&&xc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&xc(e.changedTouches,n=>t===n.identifier)}function hb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function gb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function yb(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??gb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
245
+ } */`;u();var zn=k(Ct(),1);u();var yo=class{},xo=class{};u();var Gm=k(Kt(),1),ps=k(he(),1),Km=(0,ps.jsx)(Gm.Search,{}),Jm=e=>(0,ps.jsx)(ps.Fragment,{});var Ne=k(ka(),1);u();u();var hs=[{name:"ComponentStatus",priority:5},{name:"Node",priority:1},{name:"V1APIResource",priority:5},{name:"Namespace",priority:1},{name:"NodeMetrics",priority:3},{name:"Pod",priority:2},{name:"PodMetrics",priority:3},{name:"Deployment",priority:2},{name:"DaemonSet",priority:2},{name:"ReplicaSet",priority:2},{name:"ReplicationController",priority:2},{name:"StatefulSet",priority:2},{name:"Job",priority:2},{name:"CronJob",priority:2},{name:"ConfigMap",priority:2},{name:"Secret",priority:2},{name:"ResourceQuota",priority:4},{name:"LimitRange",priority:4},{name:"HorizontalPodAutoscaler",priority:4},{name:"PodDisruptionBudget",priority:4},{name:"PriorityClass",priority:4},{name:"RuntimeClass",priority:4},{name:"Lease",priority:9},{name:"ValidatingWebhookConfiguration",priority:8},{name:"MutatingWebhookConfiguration",priority:8},{name:"Service",priority:2},{name:"Endpoints",priority:3},{name:"Ingress",priority:2},{name:"IngressClass",priority:5},{name:"NetworkPolicy",priority:3},{name:"PersistentVolumeClaim",priority:2},{name:"PersistentVolume",priority:2},{name:"StorageClass",priority:3},{name:"VolumeAttachment",priority:4},{name:"CSIDriver",priority:5},{name:"CSINode",priority:5},{name:"CSIStorageCapacity",priority:5},{name:"ServiceAccount",priority:5},{name:"ClusterRole",priority:2},{name:"Role",priority:2},{name:"ClusterRoleBinding",priority:2},{name:"RoleBinding",priority:2},{name:"CustomResourceDefinition",priority:4},{name:"CRD Instances",priority:4}].sort((e,t)=>e.priority-t.priority),rc=class{constructor(){this.source=hs;this.sync=hs}},ai=class{constructor(){this.palette="light";this.logLines=5e3;this.dataConfig=new rc;this.dataHelm=!1;this.dataManagedFields=!1;this.tracing=!1;this.customActions=[]}};var wo=class{constructor(){this.clusterInfo=void 0;this.paused=!1;this.started=!1;this.files=[];this.clusterEvents=[];this.currentPath="/";this.timers=[];this.windows=[];this.contentWindows=[];this.pendingWebSocketRequests=new Map;this.metricsCluster=[];this.metricsProviderMissing=!1;this.eventsProviderMissing=!1;this.metricsPodDetail=[];this.logSearchResults=[];this.logSearchDone=!0;this.updateNamespaces=void 0;this.userPreferences=new ai}};u();var Xe=k(je(),1),E1=k(Ct(),1);var De=k(ft(),1),lt=k(ka(),1);u();var So=k(ka(),1);u();var Xm="hideKinds";var Co="cluster",ic="admin",Qm=["","magnify$user","magnify$read","magnify$write",Co,ic];var td=e=>Qm.indexOf(e);var Q1=e=>{if(!e)return[];try{return(0,So.parseResources)(e.resources).map(t=>{let n=(t.namespaces||"").split(",").map(i=>i.trim()).filter(Boolean),a=-1,r;for(let i of(t.scopes||"").split(",").map(s=>s.trim()).filter(Boolean)){let s=(0,So.parseThinScope)(i),o=td(s?s.wide:i);if(o<0||(o>a&&(a=o,r=void 0),o!==a))continue;let l=s?tb(s.config):new Set;r=r===void 0?l:eb(r,l)}return{level:a,hidden:r??new Set,namespaces:n}})}catch{return[]}},eb=(e,t)=>new Set([...e].filter(n=>t.has(n))),tb=e=>{if(!e||typeof e!="object")return new Set;let t=e[Xm],n=Array.isArray(t)?t.map(String):typeof t=="string"?t.split(","):[];return new Set(n.map(a=>a.trim()).filter(Boolean))};var vo=(e,t)=>{let n=td(t);return Q1(e).some(a=>a.level>=n)};var N1=k(ad(),1);u();u();var At=[];for(let e=0;e<256;++e)At.push((e+256).toString(16).slice(1));function rd(e,t=0){return(At[e[t+0]]+At[e[t+1]]+At[e[t+2]]+At[e[t+3]]+"-"+At[e[t+4]]+At[e[t+5]]+"-"+At[e[t+6]]+At[e[t+7]]+"-"+At[e[t+8]]+At[e[t+9]]+"-"+At[e[t+10]]+At[e[t+11]]+At[e[t+12]]+At[e[t+13]]+At[e[t+14]]+At[e[t+15]]).toLowerCase()}u();var sc,nb=new Uint8Array(16);function oc(){if(!sc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sc=crypto.getRandomValues.bind(crypto)}return sc(nb)}u();u();var ab=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lc={randomUUID:ab};function rb(e,t,n){if(lc.randomUUID&&!t&&!e)return lc.randomUUID();e=e||{};let a=e.random??e.rng?.()??oc();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let r=0;r<16;++r)t[n+r]=a[r];return t}return rd(a)}var it=rb;var ao=k(Ct(),1);u();var w=k(Kt(),1);u();var Vn=k(ft(),1),yt=k(he(),1),id=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7z"})}),sd=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11m-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2M5 20v2h14v-2z"})}),od=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M4 11h16v2H4z"})}),cc=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3M2 19h10v-2H2z"})}),gs=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2zM19 19H5L19 5zm-2-2v-1.5h-5V17z"})}),ld=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M18 16h-2v-1H8v1H6v-1H2v5h20v-5h-4zm2-8h-3V6c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v4h4v-2h2v2h8v-2h2v2h4v-4c0-1.1-.9-2-2-2m-5 0H9V6h6z"})}),cd=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"})}),ud=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"})}),md=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"})}),Wn=e=>(0,yt.jsx)(Vn.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})});u();var Ue=k(he(),1),dd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M13.95 13.5h-.23c-.18.11-.26.32-.18.5l.86 2.11c.83-.53 1.46-1.32 1.79-2.25l-2.23-.36h-.01m-3.45.29a.415.415 0 0 0-.38-.29h-.08l-2.22.37c.33.92.96 1.7 1.79 2.23l.85-2.07V14c.04-.05.04-.14.04-.21m1.83.81a.378.378 0 0 0-.51-.15c-.07.05-.12.08-.15.15h-.01l-1.09 1.97c.78.26 1.62.31 2.43.12c.14-.03.29-.07.43-.12l-1.09-1.97h-.01m3.45-4.57L14.1 11.5l.01.03a.37.37 0 0 0-.04.53c.05.06.11.1.18.12l.01.01l2.17.62c.07-.97-.14-1.95-.65-2.78m-3.11.16c.01.21.18.37.39.36c.08 0 .15-.02.21-.05h.01l1.83-1.31a4.45 4.45 0 0 0-2.57-1.24l.13 2.24m-1.94.31c.17.11.4.08.52-.09c.05-.06.07-.13.08-.21h.01l.12-2.25c-.15.02-.3.05-.46.08c-.8.18-1.54.58-2.12 1.16l1.84 1.31h.01m-.99 1.69c.2-.05.32-.26.26-.46c0-.08-.05-.14-.11-.19v-.01L8.21 10c-.52.86-.74 1.84-.63 2.82l2.16-.62v-.01m1.64.66l.62.3l.62-.3l.15-.67l-.43-.53h-.69l-.43.53l.16.67m10.89 1.32L20.5 6.5c-.09-.42-.37-.76-.74-.94l-7.17-3.43c-.37-.17-.81-.17-1.19 0L4.24 5.56c-.37.18-.65.52-.74.94l-1.77 7.67c-.05.2-.05.4 0 .59c.01.06.03.12.05.18c.03.09.08.19.13.27c.03.04.05.08.09.11l4.95 6.18c.02 0 .05.04.05.06c.1.09.19.16.28.22c.12.08.26.14.4.17c.11.05.23.05.32.05h8.12c.07 0 .14-.03.2-.05c.05-.01.1-.03.14-.04c.04-.02.07-.03.11-.05c.05-.02.1-.05.15-.08c.12-.08.23-.18.33-.28l.15-.2l4.8-5.98c.1-.12.17-.25.22-.38c.02-.06.04-.12.05-.18c.05-.19.05-.4 0-.59m-7.43 2.99c.02.06.04.12.07.17c-.04.08-.06.17-.03.26c.12.24.23.46.38.68c.08.11.16.23.24.34c0 .03.03.08.04.12c.12.2.06.46-.15.59s-.47.05-.59-.15c-.01-.03-.02-.05-.03-.08c-.02-.03-.04-.09-.06-.09c-.05-.15-.09-.28-.12-.41c-.09-.25-.17-.49-.3-.72a.375.375 0 0 0-.21-.14l-.08-.16c-1.29.48-2.7.48-3.97-.01l-.1.18c-.07.01-.14.04-.19.09c-.14.24-.24.49-.33.77c-.03.13-.07.26-.12.4c-.02 0-.04.07-.06.1a.43.43 0 0 1-.81-.29c.01-.03.03-.05.04-.08c.04-.03.04-.08.04-.11c.09-.12.16-.23.24-.35c.16-.21.29-.45.39-.69a.54.54 0 0 0-.03-.25l.07-.18a5.611 5.611 0 0 1-2.47-3.09l-.2.03a.388.388 0 0 0-.23-.09c-.27.05-.51.13-.77.22c-.11.06-.24.11-.37.15c-.03.01-.07.02-.13.03a.438.438 0 0 1-.54-.27c-.07-.23.04-.47.28-.55c.02 0 .05-.01.08-.01v-.01h.01l.11-.02c.14-.04.28-.04.41-.04c.26 0 .52-.06.77-.12c.08-.05.14-.11.19-.19l.19-.05c-.21-1.36.1-2.73.86-3.87l-.14-.12c0-.09-.03-.18-.08-.25c-.2-.17-.41-.32-.64-.45c-.12-.06-.24-.13-.36-.21c-.02-.02-.06-.05-.08-.07l-.01-.01c-.2-.16-.25-.42-.11-.63c.09-.1.21-.15.35-.15c.11.01.21.05.3.12l.09.07c.1.09.19.2.28.3c.18.19.37.37.58.52c.08.04.17.05.26.03l.15.11c.75-.8 1.73-1.36 2.8-1.6c.25-.06.52-.1.78-.12l.01-.18a.45.45 0 0 0 .14-.23c.01-.26-.01-.52-.05-.77c-.03-.13-.05-.27-.06-.41V5.1c-.02-.24.15-.45.39-.48s.44.15.47.38v.22c-.01.14-.03.28-.06.41c-.04.25-.06.51-.05.77c.02.1.07.17.14.22l.01.19c1.36.12 2.62.73 3.56 1.72l.16-.12c.09.02.18.01.26-.03c.21-.15.41-.33.58-.52c.09-.1.18-.2.28-.3c.03-.02.07-.06.1-.06c.17-.18.44-.18.59 0c.19.16.18.43 0 .6c0 .02-.03.04-.06.06a2.495 2.495 0 0 1-.44.28c-.23.13-.45.28-.64.45c-.06.07-.09.15-.08.24l-.16.14a5.44 5.44 0 0 1 .88 3.86l.19.05c.04.08.11.14.19.18c.25.07.51.11.77.14h.41c.03.03.08.04.12.05c.24.03.4.25.37.49c-.05.23-.24.4-.48.37c-.03-.01-.07-.01-.07-.02v-.01c-.06 0-.1-.01-.14-.02c-.13-.04-.25-.09-.36-.15c-.26-.1-.5-.17-.77-.21c-.09 0-.17 0-.23.08c-.07-.01-.13-.02-.19-.03c-.41 1.31-1.31 2.41-2.47 3.11Z"})}),fd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 0h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM10 13H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm8 1h-2v2h-2v2h2v2h2v-2h2v-2h-2z"})}),pd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.05 6.462a2 2 0 0 0 2.63-1.519l.32-1.72a9 9 0 0 1 3.998 0l.322 1.72a2 2 0 0 0 2.63 1.519l1.649-.58a9 9 0 0 1 2.001 3.46l-1.33 1.14a2 2 0 0 0 0 3.037l1.33 1.139a9 9 0 0 1-2.001 3.46l-1.65-.58a2 2 0 0 0-2.63 1.519L14 20.777a9 9 0 0 1-3.998 0l-.322-1.72a2 2 0 0 0-2.63-1.519l-1.649.58a9 9 0 0 1-2.001-3.46l1.33-1.14a2 2 0 0 0 0-3.036L3.4 9.342a9 9 0 0 1 2-3.46zM12 9a3 3 0 1 1 0 6a3 3 0 0 1 0-6",clipRule:"evenodd"})}),hd=({size:e})=>(0,Ue.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M12 12h7c-.53 4.11-3.28 7.78-7 8.92zH5V6.3l7-3.11M12 1L3 5v6c0 5.55 3.84 10.73 9 12c5.16-1.27 9-6.45 9-12V5z"})}),gd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M2 5.077S3.667 2 12 2s10 3.077 10 3.077v13.846S20.333 22 12 22S2 18.923 2 18.923V5.077ZM2 13s3.333 3 10 3s10-3 10-3M2 7s3.333 3 10 3s10-3 10-3"})}),yd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M992 512H832v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H704q-27 0-45.5-18.5T640 960V832q0-26 18.5-45t45.5-19h64V512H320v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H192q-27 0-45.5-18.5T128 960V832q0-26 18.5-45t45.5-19h64V512H32q-13 0-22.5-9.5T0 480t9.5-22.5T32 448h480V256h-64q-27 0-45.5-18.5T384 192V64q0-26 18.5-45T448 0h192q26 0 45 19t19 45v128q0 27-19 45.5T640 256h-64v192h416q13 0 22.5 9.5t9.5 22.5t-9.5 22.5T992 512z"})}),xd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:(0,Ue.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.248 1.87l4.485 2.562L8 7.136L3.268 4.432l4.484-2.563a.5.5 0 0 1 .496 0ZM2.5 10.84V5.72l4.75 2.714v5.409l-4.498-2.57a.5.5 0 0 1-.252-.435Zm6.25 3.004l4.498-2.57a.5.5 0 0 0 .252-.435V5.721L8.75 8.435v5.409ZM8.992.567a2 2 0 0 0-1.984 0l-5 2.857A2 2 0 0 0 1 5.161v5.678a2 2 0 0 0 1.008 1.737l5 2.857a2 2 0 0 0 1.984 0l5-2.857A2 2 0 0 0 15 10.839V5.161a2 2 0 0 0-1.008-1.737l-5-2.857Z",clipRule:"evenodd"})}),bd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M1 13v10h22V13Zm12 6H4v-2h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1ZM1 1v10h22V1Zm12 6H4V5h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Z"})}),wd=({size:e})=>(0,Ue.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,Ue.jsx)("path",{fillRule:"evenodd",d:"M4 7H3V2h1v5zm-1 7h1v-3H3v3zm5 0h1V8H8v6zm5 0h1v-2h-1v2zm1-12h-1v6h1V2zM9 2H8v2h1V2zM5 8H2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5-3H7c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5 4h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1z",fill:"currentColor"})}),Cd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",children:[(0,Ue.jsx)("path",{d:"M1.5 12 7 3h10l5.5 9-5.5 9H7z"}),(0,Ue.jsx)("path",{d:"m5 14 5-5 5 5m4 0-4.5-4.5-1 1m-5 2V14"})]})}),Sd=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"m18.5 10.57-.2.37c.26-.78.11-1.63.15-2.37l-.07-.02c-.07-1.85-1.67-3.82-3.09-4.48-1.23-.57-3.12-.67-3.99-.24.12-.11.6-.15.45-.23-1.37.13-1.06.47-2.11.74-.29.28.86-.22.23.16-.56.13-.82-.12-1.65.74.07.12.53-.35.15.12-.79-.09-2.48 1.8-2.84 2.42l.19.04c-.31.77-.72 1.26-.77 1.72-.08 1.14-.45 3.21.08 3.85l-.06.53.23.45-.12.01c.58 1.83.62.04 1.39 1.94-.11-.04-.23-.08-.39-.32-.02.19.24.69.54 1.08l-.12.14c.16.31.32.38.43.49-.63-.35.57 1.13.7 1.32l.1-.17c-.02.24.17.56.53 1.01l.3-.01c.13.24.58.68.85.7l-.18.24c.69.2.33.29 1.18.59l-.17-.3c.43.37.56.7 1.17.98.85.3.96.18 1.82.43-.73 0-1.59 0-2.17-.22-3.96-1.07-7.56-5.72-7.32-10.5-.06-.97.1-2.18-.06-2.42.22-.74.48-1.64 1.01-2.71-.04-.07.09.21.36-.24.16-.36.29-.75.5-1.1l.1-.03c.11-.61 1.43-1.55 1.85-2.02v.18c.86-.81 2.4-1.35 3.26-1.73-.23.25.51-.03 1.04-.06l-.49.28c.63-.16.6.07 1.25-.03-.23.03-.5.1-.46.16.72.08.84-.22 1.51 0l-.05-.2c.94.34 1.13.28 2.14.82.36.01.4-.22.93 0 .1.16-.02.19.64.59.07-.03-.13-.22-.27-.37 1.3.71 2.75 2.22 3.18 3.84-.41-.74-.04.39-.18.33.18.49.33 1 .43 1.53-.12-.43-.39-1.48-.86-2.15-.03.43-.6-.3-.29.66.22.34.05-.35.34.25 0 .29.11.58.18.95-.1-.02-.22-.41-.3-.31.1.5.27.72.33.76-.03.08-.12-.08-.12.24.04.74.21.43.29.46-.09.37-.41.79-.25 1.42l-.2-.56c-.05.53.11.63-.13 1.28.18-.6.16-1.1-.01-.85.09.82-.65 1.45-.58 1.98l-.21-.29c-.57.83-.01.45-.4 1.06.14-.23-.07-.08.11-.36-.12.01-.55.53-.94.83-1.54 1.23-3.39 1.4-5.15.73h-.01c.01-.04 0-.09-.12-.17-1.51-1.15-2.4-2.13-2.11-4.41.25-.17.31-1.12.84-1.45.32-.71 1.28-1.36 2.31-1.38 1.05-.06 1.94.56 2.39 1.14-.82-.75-2.14-.98-3.28-.43-1.15.53-1.84 1.8-1.76 3.07.06-.07.1-.02.12-.18-.03 2.47 2.66 4.28 4.6 3.37l.03.05c.78-.22.68-.39 1.19-.75-.04.09-.34.3-.16.3.25-.06 1.03-.79 1.42-1.13.17-.38-.1-.23.15-.69l.3-.15c.17-.48.35-.75.35-1.32"})}),uc=({size:e})=>(0,Ue.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{fill:"currentColor",d:"M17.61.455a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41M12.92.8C8.923.777 5.137 2.941 3.148 6.451a5 5 0 0 1 .26-.007 4.9 4.9 0 0 1 2.585.737A8.32 8.32 0 0 1 12.688 3.6 4.94 4.94 0 0 1 13.723.834 11 11 0 0 0 12.92.8m9.226 4.994a4.9 4.9 0 0 1-1.918 2.246 8.36 8.36 0 0 1-.273 8.303 4.9 4.9 0 0 1 1.632 2.54 11.16 11.16 0 0 0 .559-13.089M3.41 7.932A3.41 3.41 0 0 0 0 11.342a3.41 3.41 0 0 0 3.41 3.409 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41zm2.027 7.866a4.9 4.9 0 0 1-2.915.358 11.1 11.1 0 0 0 7.991 6.698 11.2 11.2 0 0 0 2.422.249 4.88 4.88 0 0 1-.999-2.85 9 9 0 0 1-.836-.136 8.3 8.3 0 0 1-5.663-4.32zm11.405.928a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41"})});var x=k(he(),1),_=new Map,Io=[{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0}],vd=[{name:"Overview",isDirectory:!0,path:"/overview",class:"classOverview",layout:"own"},{name:"Cluster",isDirectory:!0,path:"/cluster",class:"classCluster",layout:"own"},{name:"Overview",isDirectory:!0,path:"/cluster/overview",class:"classClusterOverview",layout:"own"},{name:"Nodes",isDirectory:!0,path:"/cluster/Node",class:"classmenu",children:"Node"},{name:"Namespaces",isDirectory:!0,path:"/cluster/Namespace",class:"classNamespace",children:"Namespace"},{name:"API Resources",isDirectory:!0,path:"/cluster/V1APIResource",class:"classV1APIResource",children:"V1APIResource"},{name:"Images",isDirectory:!0,path:"/cluster/Image",class:"classImage",children:"Image"},{name:"Component status",isDirectory:!0,path:"/cluster/ComponentStatus",class:"classComponentStatus",children:"ComponentStatus"},{name:"Workload",isDirectory:!0,path:"/workload",class:"classWorkload",layout:"own"},{name:"Overview",isDirectory:!0,path:"/workload/overview",class:"classmenu",layout:"own"},{name:"Pods",isDirectory:!0,path:"/workload/Pod",layout:"list",class:"classPod",categories:["Node","Namespace","controller"],children:"Pod"},{name:"Deployments",isDirectory:!0,path:"/workload/Deployment",class:"classDeployment",categories:["Namespace"],children:"Deployment"},{name:"Daemon Sets",isDirectory:!0,path:"/workload/DaemonSet",class:"classDaemonSet",categories:["Namespace"],children:"DaemonSet"},{name:"Replica Sets",isDirectory:!0,path:"/workload/ReplicaSet",class:"classReplicaSet",categories:["Namespace"],children:"ReplicaSet"},{name:"Replication Controllers",isDirectory:!0,path:"/workload/ReplicationController",class:"classReplicationController",categories:["Namespace"],children:"ReplicationController"},{name:"Stateful Sets",isDirectory:!0,path:"/workload/StatefulSet",class:"classStatefulSet",categories:["Namespace"],children:"StatefulSet"},{name:"Jobs",isDirectory:!0,path:"/workload/Job",class:"classJob",categories:["Namespace"],children:"Job"},{name:"Cron jobs",isDirectory:!0,path:"/workload/CronJob",class:"classCronJob",categories:["Namespace"],children:"CronJob"},{name:"Config",isDirectory:!0,path:"/config",class:"classConfig",layout:"own"},{name:"Overview",isDirectory:!0,path:"/config/overview",class:"classmenu",layout:"own"},{name:"Config Maps",isDirectory:!0,path:"/config/ConfigMap",class:"classConfigMap",categories:["Namespace"],children:"ConfigMap"},{name:"Secrets",isDirectory:!0,path:"/config/Secret",class:"classSecret",categories:["Namespace"],children:"Secret"},{name:"Resource Quota",isDirectory:!0,path:"/config/ResourceQuota",class:"classResourceQuota",categories:["Namespace"],children:"ResourceQuota"},{name:"Limit Range",isDirectory:!0,path:"/config/LimitRange",class:"classLimitRange",categories:["Namespace"],children:"LimitRange"},{name:"Horizontal Pod Autoscaler",isDirectory:!0,path:"/config/HorizontalPodAutoscaler",class:"classHorizontalPodAutoscaler",categories:["Namespace"],children:"HorizontalPodAutoscaler"},{name:"Pod Disruption Budget",isDirectory:!0,path:"/config/PodDisruptionBudget",class:"classPodDisruptionBudget",categories:["Namespace"],children:"PodDisruptionBudget"},{name:"Priority Classes",isDirectory:!0,path:"/config/PriorityClass",class:"classPriorityClass",children:"PriorityClass"},{name:"Runtime Classes",path:"/config/RuntimeClass",isDirectory:!0,class:"classRuntimeClass",children:"RuntimeClass"},{name:"Leases",isDirectory:!0,path:"/config/Lease",class:"classLease",categories:["Namespace"],children:"Lease"},{name:"Validating webhooks",isDirectory:!0,path:"/config/ValidatingWebhookConfiguration",class:"classValidatingWebhookConfiguration",children:"ValidatingWebhookConfiguration"},{name:"Mutating webhooks",isDirectory:!0,path:"/config/MutatingWebhookConfiguration",class:"classMutatingWebhookConfiguration",children:"MutatingWebhookConfiguration"},{name:"Network",isDirectory:!0,path:"/network",class:"classNetwork",layout:"own"},{name:"Overview",isDirectory:!0,path:"/network/overview",class:"classmenu",layout:"own"},{name:"Services",isDirectory:!0,path:"/network/Service",layout:"list",class:"classService",categories:["Namespace"],children:"Service"},{name:"Endpoints\xA0",isDirectory:!0,path:"/network/Endpoints",layout:"list",class:"classEndpoints",categories:["Namespace"],children:"Endpoints"},{name:"Ingresses",isDirectory:!0,path:"/network/Ingress",layout:"list",class:"classIngress",categories:["Namespace"],children:"Ingress"},{name:"Ingress classes",isDirectory:!0,path:"/network/IngressClass",layout:"list",class:"classIngressClass",children:"IngressClass"},{name:"Network policies",isDirectory:!0,path:"/network/NetworkPolicy",layout:"list",class:"classNetworkPolicy",categories:["Namespace"],children:"NetworkPolicy"},{name:"Storage",isDirectory:!0,path:"/storage",class:"classStorage",layout:"own"},{name:"Overview",isDirectory:!0,path:"/storage/overview",class:"classmenu",layout:"own"},{name:"Persistent volume claims",isDirectory:!0,path:"/storage/PersistentVolumeClaim",class:"classPersistentVolumeClaim",categories:["Namespace"],children:"PersistentVolumeClaim"},{name:"Persistent volumes",isDirectory:!0,path:"/storage/PersistentVolume",class:"classPersistentVolume",children:"PersistentVolume"},{name:"Volume attachments",isDirectory:!0,path:"/storage/VolumeAttachment",class:"classVolumeAttachment",children:"VolumeAttachment"},{name:"Storage classes",isDirectory:!0,path:"/storage/StorageClass",class:"classStorageClass",children:"StorageClass"},{name:"CSI Drivers",isDirectory:!0,path:"/storage/CSIDriver",class:"classCSIDriver",children:"CSIDriver"},{name:"CSI Nodes",isDirectory:!0,path:"/storage/CSINode",class:"classCSINode",children:"CSINode"},{name:"CSI Storage Capacity",isDirectory:!0,path:"/storage/CSIStorageCapacity",class:"classCSIStorageCapacity",children:"CSIStorageCapacity"},{name:"Access",isDirectory:!0,path:"/access",class:"classAccess",layout:"own"},{name:"Overview",isDirectory:!0,path:"/access/overview",class:"classmenu",layout:"own"},{name:"Service accounts",isDirectory:!0,path:"/access/ServiceAccount",class:"classServiceAccount",categories:["Namespace"],children:"ServiceAccount"},{name:"Cluster roles",isDirectory:!0,path:"/access/ClusterRole",class:"classClusterRole",children:"ClusterRole"},{name:"Roles",isDirectory:!0,path:"/access/Role",class:"classRole",categories:["Namespace"],children:"Role"},{name:"Cluster role bindings",isDirectory:!0,path:"/access/ClusterRoleBinding",class:"classClusterRoleBinding",children:"ClusterRoleBinding"},{name:"Role bindings",isDirectory:!0,path:"/access/RoleBinding",class:"classRoleBinding",categories:["Namespace"],children:"RoleBinding"},{name:"Custom",isDirectory:!0,path:"/custom",class:"classCustom",layout:"own"},{name:"Definitions",isDirectory:!0,path:"/custom/CustomResourceDefinition",class:"classCustomResourceDefinition",children:"CustomResourceDefinition"},{name:"Preferences",isDirectory:!0,path:"/preferences",class:"classSettings",layout:"own"}];_.set("classClusterOverview",{leftItems:[{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"logsearch",icon:(0,x.jsx)(cc,{fontSize:"small"}),text:"Log search",permission:!0},{name:"add",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Add",permission:!0}]});_.set("classService",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New service",permission:!0}]});_.set("Service",{text:"Service name",source:"name",width:20,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit service",permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:10,sortable:!0,visible:!0},{name:"clusterIp",text:"ClusterIP",source:"clusterIp",format:"string",width:10,sortable:!1,visible:!0},{name:"ports",text:"Ports",source:"ports",format:"string",width:10,sortable:!1,visible:!0},{name:"externalIp",text:"ExternalIP",source:"externalIp",format:"string",width:10,sortable:!1,visible:!0},{name:"selector",text:"Selector",source:"function",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classEndpoints",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Endpoints",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"endpoints",text:"Endpoints",source:"endpoints",format:"string",width:45,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classIngress",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New ingress",permission:!0}]});_.set("Ingress",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"loadBalancers",text:"LoadBalancers",source:"loadBalancers",format:"string",width:10,sortable:!0,visible:!0},{name:"rules",text:"Rules",source:"rules",format:"function",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classIngressClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("IngressClass",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"default",icon:(0,x.jsx)(w.CheckCircle,{fontSize:"small"}),text:"Set Default",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"controller",text:"Controller",source:"controller",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classNetworkPolicy",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("NetworkPolicy",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"policyTypes",text:"Policy Types",source:"policyTypes",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classConfigMap",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ConfigMap",{text:"Config Map name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classSecret",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Secret",{text:"Secret name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0}]});_.set("classResourceQuota",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ResourceQuota",{text:"Quota name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classLimitRange",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("LimitRange",{text:"Limit name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classHorizontalPodAutoscaler",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("HorizontalPodAutoscaler",{text:"HPA name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"metrics",text:"Metrics",source:"metrics",format:"string",width:8,sortable:!0,visible:!0},{name:"minpods",text:"Min Pods",source:"minpods",format:"string",width:8,sortable:!0,visible:!0},{name:"maxpods",text:"Max Pods",source:"maxpods",format:"string",width:8,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"string",width:8,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:8,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPodDisruptionBudget",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("PodDisruptionBudget",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"minAvailable",text:"Min available",source:"minAvailable",format:"string",width:10,sortable:!0,visible:!0},{name:"maxUnavailable",text:"Max unavailable",source:"maxUnavailable",format:"string",width:10,sortable:!0,visible:!0},{name:"currentHealthy",text:"Current Healthy",source:"currentHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"desiredHealthy",text:"Desired Healthy",source:"desiredHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPriorityClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("PriorityClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"value",text:"Value",source:"value",format:"string",width:40,sortable:!0,visible:!0},{name:"globalDefault",text:"Global default",source:"globalDefault",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classRuntimeClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("RuntimeClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"handler",text:"Handler",source:"handler",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classLease",{leftItems:[]});_.set("Lease",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"holder",text:"Holder",source:"holder",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classValidatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ValidatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classMutatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("MutatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classNamespace",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New namespace",permission:!0}]});_.set("Namespace",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"logsearch",icon:(0,x.jsx)(cc,{fontSize:"small"}),text:"Log search",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"labels",text:"Labels",source:"labels",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:15,sortable:!0,visible:!0}]});_.set("Node",{text:"Name",source:"name",width:30,configurable:!1,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"shell",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",multi:!1,permission:!0},{name:"cordon",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Cordon",multi:!0,permission:!0},{name:"uncordon",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"UnCordon",multi:!0,permission:!0},{name:"drain",icon:(0,x.jsx)(w.Stop,{fontSize:"small"}),text:"Drain",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"cpu",text:"CPU",source:"cpu",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"taints",text:"Taints",source:"taints",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"roles",text:"Roles",source:"roles",format:"string",width:20,removable:!1,sortable:!1,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:8,sortable:!0,visible:!0}]});_.set("classImage",{leftItems:[]});_.set("Image",{text:"Name",source:"name",width:80,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"tag",text:"Tag",source:"tag",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:10,sortable:!0,visible:!0}]});_.set("classV1APIResource",{leftItems:[]});_.set("V1APIResource",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",multi:!1,permission:!0}],properties:[{name:"kindName",text:"Kind",source:"kind",format:"string",width:30,sortable:!0,visible:!0},{name:"singularName",text:"Singular",source:"singular",format:"string",width:30,sortable:!0,visible:!0},{name:"namespaced",text:"Namespaced",source:"namespaced",format:"string",width:10,sortable:!0,visible:!0}]});_.set("classComponentStatus",{leftItems:[]});_.set("ComponentStatus",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"status",text:"Status",source:"status",format:"string",width:20,sortable:!0,visible:!0},{name:"message",text:"Message",source:"message",format:"string",width:50,sortable:!0,visible:!0}]});_.set("classPod",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New pod",permission:!0}]});_.set("Pod",{text:"Name",source:"name",width:25,configurable:!0,leftItems:[{name:"details",text:"Pod details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),permission:!0},{name:"ops",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"evict",icon:(0,x.jsx)(w.DeleteSweep,{fontSize:"small"}),text:"Evict",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"container",text:"Container",source:"na",format:"function",width:10,sortable:!1,removable:!0,visible:!0},{name:"cpu",text:"CPU",source:"cpu",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"storage",width:10,sortable:!0,removable:!0,visible:!0},{name:"restarts",text:"Restarts",source:"restartCount",format:"number",width:5,sortable:!0,visible:!0},{name:"controller",text:"Controller",source:"controller",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"node",text:"Node",source:"node",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"age",text:"Age",source:"startTime",format:"age",width:5,sortable:!0,removable:!0,visible:!0},{name:"status",text:"Status",source:"function",format:"string",width:5,sortable:!1,removable:!0,visible:!0}]});_.set("classDeployment",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Deployment",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"scale",icon:(0,x.jsx)(gs,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"function",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classDaemonSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("DaemonSet",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:8,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:8,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:8,sortable:!0,visible:!0},{name:"upToDate",text:"Up-to-Date",source:"upToDate",format:"number",width:8,sortable:!0,visible:!0},{name:"available",text:"Available",source:"available",format:"number",width:8,sortable:!0,visible:!0},{name:"nodeSelector",text:"Node Selector",source:"nodeSelector",format:"string",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classReplicaSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ReplicaSet",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(gs,{fontSize:"small"}),text:"Scale",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:10,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classReplicationController",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ReplicationController",{text:"Name",source:"name",width:60,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},{name:"scale",icon:(0,x.jsx)(gs,{fontSize:"small"}),text:"Scale",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:10,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0}]});_.set("classStatefulSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("StatefulSet",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(gs,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...Io,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Job",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:25,sortable:!0,visible:!0},{name:"completions",text:"Completions",source:"completions",format:"string",width:15,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"function",width:15,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCronJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("CronJob",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"trigger",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Trigger",permission:!0},{name:"suspend",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Suspend",permission:!0},{name:"resume",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Resume",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"schedule",text:"Schedule",source:"schedule",format:"string",width:10,sortable:!1,visible:!0},{name:"suspend",text:"Suspend",source:"suspend",format:"string",width:5,sortable:!0,visible:!0},{name:"active",text:"Active",source:"active",format:"function",width:5,sortable:!0,visible:!0},{name:"lastSchedule",text:"Last schedule",source:"lastSchedule",format:"age",width:10,sortable:!0,visible:!0},{name:"nextExecution",text:"Next execution",source:"nextExecution",format:"function",width:10,sortable:!0,visible:!0},{name:"timeZone",text:"Time zone",source:"timezone",format:"string",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPersistentVolumeClaim",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PVC",permission:!0}]});_.set("PersistentVolumeClaim",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:5,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPersistentVolume",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PV",permission:!0}]});_.set("PersistentVolume",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"capacity",text:"Capacity",source:"capacity",format:"storage",width:10,sortable:!0,visible:!0},{name:"clain",text:"Claim",source:"claim",format:"string",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classVolumeAttachment",{leftItems:[]});_.set("VolumeAttachment",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attacher",text:"Attacher",source:"attacher",format:"string",width:15,sortable:!0,visible:!0},{name:"nodeName",text:"Node name",source:"nodeName",format:"string",width:20,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:5,sortable:!0,visible:!0}]});_.set("classStorageClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New storage class",permission:!0}]});_.set("StorageClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"provisioner",text:"Provisioner",source:"provisioner",format:"string",width:15,sortable:!0,visible:!0},{name:"reclaimPolicy",text:"Reclaim policy",source:"reclaimPolicy",format:"string",width:15,sortable:!0,visible:!0},{name:"default",text:"Default",source:"default",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCSIDriver",{leftItems:[]});_.set("CSIDriver",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attachRequired",text:"Attach Required",source:"attachRequired",format:"string",width:15,sortable:!0,visible:!0},{name:"storageCapacity",text:"Storage Capacity",source:"storageCapacity",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCSINode",{leftItems:[]});_.set("CSINode",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"divers",text:"Drivers",source:"drivers",format:"string",width:55,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classStorageCapacity",{leftItems:[]});_.set("CSIStorageCapacity",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Wn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classServiceAccount",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ServiceAccount",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classClusterRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ClusterRole",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Role",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classClusterRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ClusterRoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:50,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("RoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCustomResourceDefinition",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("CustomResourceDefinition",{text:"Name",source:"name",width:40,leftItems:[{name:"instantiate",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Instantiate",permission:!0},{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"group",text:"Group",source:"group",format:"string",width:15,sortable:!0,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:15,sortable:!0,visible:!0},{name:"scope",text:"Scope",source:"scope",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("crdGroup",{text:"Name",source:"name",width:40,leftItems:[],properties:[]});_.set("crdInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("crdNamespacedInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classOverview",{leftItems:[{name:"kubeworks",icon:(0,x.jsx)(ld,{fontSize:"small"}),text:"Kube works",permission:!0}]});_.set("classmenu",{});_.set("classWorkload",{});_.set("classConfig",{});_.set("classNetwork",{});_.set("classStorage",{});_.set("classAccess",{});_.set("classCustom",{});_.set("classSettings",{});var Bn=new Map;Bn.set("classOverview",{default:(0,x.jsx)(dd,{size:"16"})});Bn.set("classCluster",{default:(0,x.jsx)(bd,{size:"16"})});Bn.set("classWorkload",{default:(0,x.jsx)(xd,{size:"16"})});Bn.set("classConfig",{default:(0,x.jsx)(pd,{size:"16"})});Bn.set("classNetwork",{default:(0,x.jsx)(yd,{size:"16"})});Bn.set("classStorage",{default:(0,x.jsx)(gd,{size:"16"})});Bn.set("classAccess",{default:(0,x.jsx)(hd,{size:"16"})});Bn.set("classCustom",{default:(0,x.jsx)(fd,{size:"16"})});Bn.set("classSettings",{default:(0,x.jsx)(wd,{size:"16"})});var Id=new Map;u();var fe=new Map,Mt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string",style:["ifpresent"]},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","ifpresent","char:50","collapse"]}],pt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string"},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#metadata.namespace"],format:"string",style:["link:$Namespace:metadata.namespace:."]},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","char:50","ifpresent","collapse"]}],si={name:"conditions",text:"Conditions",source:["status.conditions"],format:"objectlist",style:["table","ifpresent"],items:[{name:"type",text:"Type",source:["type"],format:"string",style:["property:status:True:text.primary","property:status:False:text.disabled"]},{name:"reason",text:"Reason",source:["reason"],format:"string",style:["FailedCreate:red","Available:green","Progressing:green","NewReplicaSetAvailable:green","MinimumReplicasUnavailable:red","MinimumReplicasAvailable:green","InsufficientPods:red","PodCompleted:green","KubeletHasSufficientMemory:green","KubeletHasNoDiskPressure:green","KubeletHasSufficientPID:green","KubeletReady:green","CompletionsReached:green","KernelHasNoDeadlock:green","NoFrequentContainerdRestart:green","NoFrequentKubeletRestart:green","ContainerRuntimeIsUp:green","FilesystemIsOK:green","KubeletIsUp:green","NoFrequentDockerRestart:green","NoFrequentUnregisterNetDevice:green","SufficientPods:green","NoConflicts:green","InitialNamesAccepted:green","Unschedulable:red","BackoffLimitExceeded:red","ContainersNotReady:red","NoVMEventScheduled:green","FilesystemIsNotReadOnly:orange","ApprovedAnnotation:green"]},{name:"message",text:"Message",source:["message"],format:"string"},{name:"age",text:"Age",source:["lastUpdateTime||lastTransitionTime||$default"],format:"age"}]},ke={name:"events",text:"Events",root:"events",items:[{name:"events",text:"",source:["list"],format:"objectlist",style:["table"],items:[{name:"message",text:"Message",source:["message"],format:"string"},{name:"count",text:"Count",source:["count"],format:"string"},{name:"age",text:"Age",source:["lastTimestamp"],format:"age"}]}]},Ta={name:"pods",text:"Pods",root:"origin",items:[{name:"pods",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Pod:metadata.name:metadata.namespace"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]}]}]};fe.set("PersistentVolumeClaim",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"storage",text:"Storage",source:["spec.resources.requests.storage"],format:"string"},{name:"pods",text:"Pods",source:["#@string[]"],format:"stringlist",style:["column","link:$Pod:name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Bound:green","Pending:orange"]},{name:"pv",text:"PV",source:["#spec.volumeName"],format:"string",style:["link:$PersistentVolume:spec.volumeName:."]}]},ke]);fe.set("PersistentVolume",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"capacity",text:"Capacity",source:["spec.capacity.storage"],format:"string"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"persistentVolumeReclaimPolicy",text:"Reclaim Policy",source:["spec.persistentVolumeReclaimPolicy"],format:"string"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"status",text:"Status",source:["status.phase"],format:"string"},{name:"pvc",text:"PVC",source:["#spec.claimRef.name"],format:"string",style:["link:spec.claimRef.kind:spec.claimRef.name:spec.claimRef.namespace"]}]},ke]);fe.set("StorageClass",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"provisioner",text:"Provisioner",source:["#provisioner"],format:"string",style:["link:$CSIDriver:provisioner:."]},{name:"volumeBindingMode",text:"Binding Mode",source:["volumeBindingMode"],format:"string"},{name:"reclaimPolicy",text:"Reclaim Policy",source:["reclaimPolicy"],format:"string"},{name:"pvs",text:"PV",source:["#@string[]"],format:"stringlist",style:["column","link:$PersistentVolume:.:.","ifpresent"]},{name:"pvcs",text:"PVC",source:["@object[]"],items:[{name:"pvc",text:"",source:["#name"],format:"string",style:["link:$PersistentVolumeClaim:name:namespace"]}],format:"objectlist",style:["column"]}]},ke]);fe.set("VolumeAttachment",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"attacher",text:"Attacher",source:["#spec.attacher"],format:"string",style:["link:$CSIDriver:spec.attacher:."]},{name:"nodeName",text:"Node Name",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"persistentVolumeName",text:"PV",source:["#spec.source.persistentVolumeName"],format:"string",style:["link:$PersistentVolume:spec.source.persistentVolumeName:."]},{name:"attached",text:"Attached",source:["status.attached"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"attachError",text:"Attach Error",source:["status.attachError.time","$\xA0\xA0-\xA0\xA0","status.attachError.message"],format:"string",style:["ifpresent","color:red"]},{name:"detachError",text:"Detach Error",source:["status.detachError.time","$\xA0\xA0-\xA0\xA0","status.detachError.message"],format:"string",style:["ifpresent","color:red"]}]},ke]);fe.set("CSIDriver",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"attachRequired",text:"Attach Required",source:["spec.attachRequired"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"fsGroupPolicy",text:"Group Policy",source:["spec.fsGroupPolicy"],format:"string"},{name:"republish",text:"Requires republish",source:["spec.requiresRepublish"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"linuxMount",text:"LinuxMount",source:["spec.seLinuxMount"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"stgCap",text:"Stg Capacity",source:["spec.storageCapacity"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"volumeLifecycleModes",text:"Lifecycle modes",source:["spec.volumeLifecycleModes"],format:"stringlist"},{name:"storageClasses",text:"",source:["@jsx[]"],format:"string",style:["column"]}]},ke]);fe.set("CSINode",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"drivers",text:"Drivers",source:["spec.drivers"],format:"objectlist",style:["column"],items:[{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$CSIDriver:name:."]}]}]},ke]);fe.set("CSIStorageCapacity",[{name:"properties",text:"Properties",root:"origin",items:[...Mt]},ke]);fe.set("NetworkPolicy",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"podSelector",text:"Pod Selector",source:["spec.podSelector.matchLabels"],format:"objectprops"}]},ke]);fe.set("Service",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops",style:["column"]}]},{name:"connection",text:"Connection",root:"origin",items:[{name:"clusterIp",text:"Cluster IP",source:["spec.clusterIP"],format:"string"},{name:"clusterIps",text:"Cluster IPs",source:["spec.clusterIPs"],format:"stringlist"},{name:"ipFamilies",text:"IP families",source:["spec.ipFamilies"],format:"stringlist"},{name:"ipFamilyPolicy",text:"IP family policy",source:["spec.ipFamilyPolicy"],format:"string"},{name:"ports",text:"Ports",source:["spec.ports"],format:"objectlist",style:["column"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]}]},ke]);fe.set("Endpoints",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"subsets",text:"Subsets",root:"origin",items:[{name:"subsetlist",text:"",source:["subsets"],format:"objectlist",items:[{name:"address",text:"Address",source:["addresses"],format:"objectlist",style:["table"],items:[{name:"ip",text:"IP",source:["ip"],format:"string"},{name:"target",text:"Target",source:["targetRef.kind","$\xA0","#targetRef.name","$\xA0(namespace:\xA0","targetRef.namespace","$)"],format:"string",style:["link:targetRef.kind:targetRef.name:targetRef.namespace","ifpresent"]}]}]}]},ke]);fe.set("Ingress",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"ingressClass",text:"Ingress class",source:["#spec.ingressClassName"],format:"string",style:["bold","link:$IngressClass:spec.ingressClassName:."]}]},{name:"rules",text:"Rules",root:"origin",items:[{name:"host",text:"Host",source:["spec.rules"],format:"objectlist",style:["table"],items:[{name:"host",text:"Host",source:["host"],format:"string",style:["bold"]},{name:"paths",text:"Paths",source:["http.paths"],format:"objectlist",style:["column"],items:[{name:"path",text:"Path",source:["path","$\xA0(","#backend.service.name","$:","backend.service.port.number","$)"],format:"string",style:["link:$Service:backend.service.name:$$namespace"]}]}]}]},ke]);fe.set("IngressClass",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"controller",text:"Controller",source:["spec.controller"],format:"string"},{name:"default",text:"Default",source:['metadata.annotations["ingressclass.kubernetes.io/is-default-class"]'],format:"boolean",style:["true:Yes:green","false:No:red","undefined:No:red",":No:red"]},{name:"ingresses",text:"Ingress",source:["@object[]"],items:[{name:"ingress",text:"",source:["#name"],format:"string",style:["link:$Ingress:name:namespace"]}],format:"objectlist",style:["column"]}]},ke]);fe.set("Namespace",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Active:green"]}]},{name:"content",text:"Content",root:"origin",items:[{name:"content",text:"Content",source:["@jsx[]"],format:"string",style:["column"]}]},ke]);fe.set("Node",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist",style:["column"]},{name:"os",text:"OS",source:["status.nodeInfo.operatingSystem","$(","status.nodeInfo.architecture","$)"],format:"string"},{name:"osImage",text:"OS Image",source:["status.nodeInfo.osImage"],format:"string"},{name:"kernelVersion",text:"Kernel version",source:["status.nodeInfo.kernelVersion"],format:"string"},{name:"containerRuntime",text:"CRI",source:["status.nodeInfo.containerRuntimeVersion"],format:"string"},{name:"kubeletVersion",text:"Kubelet",source:["status.nodeInfo.kubeletVersion"],format:"string"},si]},{name:"workload",text:"Workload",root:"origin",items:[{name:"taints",text:"Taints",source:["spec.taints"],format:"objectlist",style:["table"],items:[{name:"taint",text:"Taint",source:["key"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"age",text:"Age",source:["timeAdded"],format:"age"}]}]},{name:"compute",text:"Compute",root:"origin",items:[{name:"capacity",text:"Capacity",source:["status.capacity"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.capacity.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.capacity.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.capacity.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.capacity.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.capacity.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.capacity.pods"],format:"string"}]},{name:"allocatable",text:"Allocatable",source:["status.allocatable"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.allocatable.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.allocatable.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.allocatable.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.allocatable.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.allocatable.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.allocatable.pods"],format:"string"}]}]},{name:"storage",text:"Storage",root:"origin",items:[{name:"inuse",text:"In Use",source:["#status.volumesInUse"],format:"stringlist",style:["column","link:$PersistentVolume:.:."],processValue:e=>e.split("/")[e.split("/").length-1]},{name:"attached",text:"Attached",source:["status.volumesAttached"],format:"objectlist",style:["column"],items:[{name:"name",text:"",source:["#name"],format:"string",style:["column","link:$PersistentVolume:name:."],processValue:e=>e.split("/")[e.split("/").length-1]}]}]},{name:"network",text:"Network",root:"origin",items:[{name:"addresses",text:"Addresses",source:["status.addresses"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"value",text:"Value",source:["address"],format:"string"}]}]},ke]);fe.set("V1APIResource",[{name:"properties",text:"Properties",root:"origin",items:[{name:"kind",text:"Kind",format:"string",source:["kindName"]},{name:"namespaced",text:"Namespaced",format:"boolean",source:["namespaced"],style:["ifpresent","true:Yes:green","false:No:red",":No:red"]},{name:"shortNames",text:"Short names",format:"string",source:["shortNames"],style:["ifpresent"]},{name:"singularName",text:"Singular",format:"string",source:["singularName"],style:["ifpresent"]},{name:"categories",text:"Categories",format:"stringlist",source:["categories"],style:["ifpresent"]},{name:"verbs",text:"Verbs",format:"stringlist",source:["verbs"],style:["ifpresent"]}]}]);fe.set("Image",[{name:"properties",text:"Properties",root:"origin",items:[{name:"name",text:"Name",source:["displayName"],format:"string"},{name:"registry",text:"Registry",source:["registry"],format:"string"},{name:"tag",text:"Tag",source:["tag"],format:"string"},{name:"sha",text:"SHA",source:["sha"],format:"string"},{name:"names",text:"Names",source:["names"],format:"stringlist",style:["column"]},{name:"nodes",text:"Nodes",source:["#nodes"],format:"stringlist",style:["column","link:$Node:.:."]}]}]);fe.set("ComponentStatus",[{name:"properties",text:"Properties",root:"origin",items:[...Mt]},{name:"conditions",text:"Conditions",root:"origin",items:[{name:"conditions",text:"",source:["conditions"],format:"objectlist",style:["table"],items:[{name:"status",text:"Status",source:["status"],format:"string"},{name:"type",text:"Type",source:["type"],format:"string"},{name:"message",text:"Message",source:["message"],format:"string"}]}]},ke]);fe.set("ConfigMap",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline"]}]},ke]);fe.set("Secret",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"type",text:"Type",source:["type"],format:"string"}]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline","lockicon","base64"]}]},ke]);fe.set("LimitRange",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"limits",text:"Limits",root:"origin",items:[{name:"limits",text:"",source:["spec.limits"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"maxcpu",text:"MaxCPU",source:["max.cpu"],format:"string"},{name:"maxmem",text:"MaxMem",source:["max.memory"],format:"string"},{name:"mincpu",text:"MinCPU",source:["min.cpu"],format:"string"},{name:"minmem",text:"MinMem",source:["min.memory"],format:"string"},{name:"defcpu",text:"DefaultCPU",source:["default.cpu"],format:"string"},{name:"defmem",text:"DefaultMem",source:["default.memory"],format:"string"},{name:"defreqcpu",text:"DefReqCPU",source:["defaultRequest.cpu"],format:"string"},{name:"defreqmem",text:"DefReqMem",source:["defaultRequest.memory"],format:"string"}]}]},ke]);fe.set("HorizontalPodAutoscaler",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"reference",text:"Reference",source:["spec.scaleTargetRef.kind","$\xA0/\xA0","spec.scaleTargetRef.name"],format:"string"},{name:"minPods",text:"Min Pods",source:["spec.minReplicas"],format:"string"},{name:"maxPods",text:"Max Pods",source:["spec.maxReplicas"],format:"string"},{name:"replicas",text:"Replicas",source:["status.desiredReplicas"],format:"string"}]},ke]);fe.set("PodDisruptionBudget",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"minAvailable",text:"Min Available",source:["spec.minAvailable"],format:"string",style:["ifpresent"]},{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},si]},ke]);fe.set("PriorityClass",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"preemptionPolicy",text:"Policy",source:["preemptionPolicy"],format:"string"}]},ke]);fe.set("RuntimeClass",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"handler",text:"Handler",source:["handler"],format:"string"}]},ke]);fe.set("Lease",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"holderIdentity",text:"Holder",source:["spec.holderIdentity"],format:"string"},{name:"leaseDurationSeconds",text:"Duration",source:["spec.leaseDurationSeconds"],format:"string"},{name:"acquireTime",text:"Acquire",source:["spec.acquireTime"],format:"string",style:["ifpresent"]},{name:"renewTime",text:"Renew",source:["spec.renewTime"],format:"string"},{name:"leaseTransitions",text:"Transitions",source:["spec.leaseTransitions"],format:"string",style:["ifpresent"]}]},ke]);fe.set("ValidatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Mt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"route",text:"Route",source:["clientConfig.service.path","$:","clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},ke]);fe.set("MutatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Mt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"port",text:"Port",source:["clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},ke]);fe.set("Pod",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Running:green","Pending:orange"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"podip",text:"Pod IP",source:["status.podIP"],format:"string"},{name:"podips",text:"Pod IPs",source:["status.podIPs"],format:"objectlist",items:[{name:"ip",text:"IP",source:["ip"],format:"string"}]},{name:"sa",text:"Service Account",source:["#spec.serviceAccount"],format:"string",style:["link:$ServiceAccount:spec.serviceAccount:$$namespace"]},{name:"qosclass",text:"QoS Class",source:["status.qosClass"],format:"string"},si,{name:"tolerations",text:"Tolerations",source:["spec.tolerations"],format:"table",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"value",text:"Value",source:["value"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"seconds",text:"Seconds",source:["tolerationSeconds"],format:"string"}]}]},{name:"containers",text:"Containers",root:"origin",items:[{name:"container",text:"",source:["status.containerStatuses|spec.containers:name"],format:"objectobject",style:["column"],items:[{name:"name",text:"",source:["name"],format:"string",style:["bold"]},{name:"id",text:"Id",source:["containerID"],format:"string",style:[""]},{name:"state",text:"State",source:["state"],format:"keylist",style:["running:green","waiting:orange"]},{name:"image",text:"Image",source:["#image"],format:"string",style:["link:$Image:image:."]},{name:"ports",text:"Ports",source:["ports"],format:"objectlist",style:["fullwidth","ifpresent"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]},{name:"envs",text:"Environment",source:["env"],format:"objectlist",style:["table"],items:[{name:"env",text:"Variable",source:["name"],format:"string"},{name:"val",text:"Value",source:["value","valueFrom.fieldRef.fieldPath"],format:"string"},{name:"valSecret",text:"From Secret",source:["#valueFrom.secretKeyRef.name","$/","valueFrom.secretKeyRef.key"],format:"string",style:["ifpresent","link:$Secret:valueFrom.secretKeyRef.name:$$namespace"]},{name:"valCm",text:"From CM",source:["#valueFrom.configMapKeyRef.name","$/","valueFrom.configMapKeyRef.key"],format:"string",style:["ifpresent","link:$ConfigMap:valueFrom.configMapKeyRef.name:$$namespace"]}]},{name:"mounts",text:"Mounts",source:["volumeMounts"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"path",text:"Path",source:["mountPath"],format:"string"}]},{name:"requests",text:"Requests",source:["resources.requests"],format:"objectprops",style:["table","ifpresent"]},{name:"limits",text:"Limits",source:["resources.limits"],format:"objectprops",style:["table","ifpresent"]}]}]},{name:"volumes",text:"Volumes",root:"origin",items:[{name:"volume",text:"",source:["spec.volumes"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"mode",text:"Mount Mode",source:["projected.defaultMode","configMap.defaultMode","secret.defaultMode"],format:"string"},{name:"pvc",text:"PVC",source:["#persistentVolumeClaim.claimName"],format:"string",style:["link:$PersistentVolumeClaim:persistentVolumeClaim.claimName:$$namespace"]},{name:"configmap",text:"ConfigMap",source:["#configMap.name"],format:"string",style:["link:$ConfigMap:configMap.name:$$namespace"]},{name:"secret",text:"Secret",source:["#secret.secretName"],format:"string",style:["link:$Secret:secret.secretName:$$namespace"]},{name:"projected",text:"Projected",source:["projected.sources"],format:"boolean",style:["true:\u2714\uFE0F:green","false::"]}]}]},ke]);fe.set("Deployment",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"strategyType",text:"Strategy Type",source:["spec.strategy.type"],format:"string"},{name:"status",text:"Status",source:["@string[]"],format:"string",style:["running:green"]},si]},Ta,ke]);fe.set("DaemonSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["#image"],format:"string",style:["link:$Image:image:."]}],style:["column"]},{name:"strategy",text:"Strategy",source:["spec.updateStrategy.type"],format:"string"},{name:"tolerations",text:"Tolerations",source:["spec.template.spec.tolerations"],format:"objectlist",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"}],style:["table"]}]},Ta,ke]);fe.set("ReplicaSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},{name:"replicas",text:"Replicas",source:["status.readyReplicas||0","$/","spec.replicas"],format:"string"}]},Ta,ke]);fe.set("ReplicationController",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"spec",text:"Spec",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops"}]},{name:"status",text:"Status",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"availableReplicas",text:"Available",source:["status.availableReplicas"],format:"string"},{name:"labelled",text:"Labelled",source:["status.fullyLabeledReplicas"],format:"string"},{name:"generation",text:"Generation",source:["status.observedGeneration"],format:"string"}]},Ta,ke]);fe.set("StatefulSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]}]},Ta,ke]);fe.set("Job",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops"},{name:"nodeSelector",text:"Node Selector",source:["spec.template.spec.nodeSelector"],format:"objectprops",style:["ifpresent"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},si,{name:"completions",text:"Completions",source:["spec.completions"],format:"string"},{name:"parallelism",text:"Parallelism",source:["spec.parallelism"],format:"string"}]},Ta,ke]);fe.set("CronJob",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"schedule",text:"Schedule",source:["spec.schedule"],format:"string"},{name:"suspended",text:"Suspended",source:["spec.suspend"],format:"boolean",style:["true:Yes:red","false:No:green"]},{name:"lastSchedule",text:"Last Schedule",source:["status.lastScheduleTime"],format:"string",style:["ifpresent"]},{name:"lastSuccessful",text:"Last Success",source:["status.lastSuccessfulTime"],format:"string",style:["ifpresent"]},{name:"nextExecution",text:"Next Execution",source:["@string[]"],format:"string"},{name:"timeLeft",text:"Time Left",source:["@string[]"],format:"string"}]},{name:"history",text:"History",root:"origin",items:[{name:"jobs",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Job:metadata.name:$$namespace"]},{name:"age",text:"Age",source:["status.startTime"],format:"age"}]}]},ke]);fe.set("ServiceAccount",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"tokens",text:"Tokens",source:["@object[]"],format:"objectlist",style:["column"],items:[{name:"tokens",text:"",source:["#name"],format:"string",style:["column","char:30","ifpresent","link:$Secret:name:namespace"]}]}]},ke]);fe.set("ClusterRole",[{name:"properties",text:"Properties",root:"origin",items:[...Mt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]},{name:"nonResourceURLs",text:"Non Resource URLs",source:["nonResourceURLs"],format:"stringlist",style:["column"]}],style:["table"]}]},ke]);fe.set("Role",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]}],style:["table"]}]}]);fe.set("ClusterRoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...Mt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$ClusterRole:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},ke]);fe.set("RoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$Role:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},ke]);fe.set("ResourceQuota",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"quotas",text:"Quotas",root:"origin",items:[{name:"limitcpu",text:"Limit CPU",source:["status.used['limits.cpu']","status.hard['limits.cpu']"],format:"bar",style:["ifpresent"]},{name:"limitmemory",text:"Limit Memory",source:["status.used['limits.memory']","status.hard['limits.memory']"],format:"bar",style:["ifpresent"]},{name:"requestcpu",text:"Request CPU",source:["status.used['requests.cpu']","status.hard['requests.cpu']"],format:"bar",style:["ifpresent"]},{name:"requestmemory",text:"Request Memory",source:["status.used['requests.memory']","status.hard['requests.memory']"],format:"bar",style:["ifpresent"]},{name:"pods",text:"Pods",source:["status.used['count/pods']","status.hard['count/pods']"],format:"bar",style:["ifpresent"]},{name:"persistentvolumeclaims",text:"PVCs",source:["status.used['count/persistentvolumeclaims']","status.hard['count/persistentvolumeclaims']"],format:"bar",style:["ifpresent"]},{name:"services",text:"Services",source:["status.used['count/services']","status.hard['count/services']"],format:"bar",style:["ifpresent"]},{name:"configmaps",text:"ConfigMaps",source:["status.used['count/configmaps']","status.hard['count/configmaps']"],format:"bar",style:["ifpresent"]},{name:"secrets",text:"Secrets",source:["status.used['count/secrets']","status.hard['count/secrets']"],format:"bar",style:["ifpresent"]}]},ke]);fe.set("CustomResourceDefinition",[{name:"properties",text:"Properties",root:"origin",items:[...Mt,{name:"group",text:"Group",source:["spec.group"],format:"string"},{name:"versions",text:"Versions",source:["spec.versions"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"served",text:"Served",source:["served"],format:"boolean",style:["true:Yes:green","false:No:red"]},{name:"storage",text:"Storage",source:["storage"],format:"boolean",style:["true:Yes:green","false:No:red"]}]},si]},{name:"names",text:"Names",root:"origin",items:[{name:"singular",text:"Singular",source:["spec.names.singular"],format:"string"},{name:"plural",text:"Plural",source:["spec.names.plural"],format:"string"},{name:"kind",text:"Kind",source:["spec.names.kind"],format:"string"},{name:"listKind",text:"List Kind",source:["spec.names.listKind"],format:"string"}]},ke]);fe.set("#crdInstance#",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"source",text:"Source",source:["spec.source"],format:"string"},{name:"checksum",text:"checksum",source:["spec.checksum"],format:"string",style:["char:80"]}]},ke]);var on=k(Kt(),1);var It=k(Ct(),1);u();var En=k(je(),1);u();var kd=k(je());u();u();var ys=function(){return ys=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ys.apply(this,arguments)};var li=k(je());u();var oi=k(je());function mc(){var e=(0,oi.useRef)(!1),t=(0,oi.useCallback)(function(){return e.current},[]);return(0,oi.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}function dc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var a=(0,li.useRef)(0),r=mc(),i=(0,li.useState)(n),s=i[0],o=i[1],l=(0,li.useCallback)(function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var m=++a.current;return s.loading||o(function(f){return ys(ys({},f),{loading:!0})}),e.apply(void 0,c).then(function(f){return r()&&m===a.current&&o({value:f,loading:!1}),f},function(f){return r()&&m===a.current&&o({error:f,loading:!1}),f})},t);return[s,l]}function fc(e,t){t===void 0&&(t=[]);var n=dc(e,t,{loading:!0}),a=n[0],r=n[1];return(0,kd.useEffect)(function(){r()},[r]),a}var ye=k(ft(),1),ua=k(Kt(),1),Re=k(ka(),1),Im=k(Ct(),1),Ml=k(Ct(),1),ny=k(Ct(),1);u();var Ft=k(je(),1),vn=k(ft(),1);u();u();var Da=k(je(),1),et=k(nr(),1),Bd=k(xs(),1);u();function Pd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Pd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Fd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Pd(e))&&(a&&(a+=" "),a+=t);return a}var mi=k(je(),1),Pt=k(nr(),1),qd=k(xs(),1);function wc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function _d(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function bs(e){return typeof e=="number"&&!isNaN(e)}function zt(e){return parseInt(e,10)}function ui(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var pc=["Moz","Webkit","O","ms"];function ob(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<pc.length;r++)if(Hd(e,pc[r])in a)return pc[r];return""}function Hd(e,t){return t?`${t}${lb(e)}`:e}function lb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var cb=ob(),hc="";function ub(e,t){var n;hc||(hc=(n=wc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return _d(e[r])}))!=null?n:"");let a=e[hc];return _d(a)?!!a.call(e,t):!1}function zd(e,t,n){let a=e;do{if(ub(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function gc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function rr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function mb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=zt(n.borderTopWidth),t+=zt(n.borderBottomWidth),t}function db(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=zt(n.borderLeftWidth),t+=zt(n.borderRightWidth),t}function fb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=zt(n.paddingTop),t-=zt(n.paddingBottom),t}function pb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=zt(n.paddingLeft),t-=zt(n.paddingRight),t}function hb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function gb(e,t){let n=$d(e,t,"px");return{[Hd("transform",cb)]:n}}function yb(e,t){return $d(e,t,"")}function $d({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function xb(e,t){return e.targetTouches&&wc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&wc(e.changedTouches,n=>t===n.identifier)}function bb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function wb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function Cb(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??wb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
246
246
  `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
247
- `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&xb(e.body,"react-draggable-transparent-selection")}function _d(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{zd(e)}):zd(e)}function zd(e){if(e)try{e.body&&bb(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function xb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function bb(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function wb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:vb(a);let r=bc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+zt(d.paddingLeft)+zt(c.marginLeft),top:-r.offsetTop+zt(d.paddingTop)+zt(c.marginTop),right:ub(l)-lb(r)-r.offsetLeft+zt(d.paddingRight)-zt(c.marginRight),bottom:cb(l)-ob(r)-r.offsetTop+zt(d.paddingBottom)-zt(c.marginBottom)}}return xs(a.right)&&(t=Math.min(t,a.right)),xs(a.bottom)&&(n=Math.min(n,a.bottom)),xs(a.left)&&(t=Math.max(t,a.left)),xs(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Ld(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function Sb(e){return e.props.axis==="both"||e.props.axis==="x"}function Cb(e){return e.props.axis==="both"||e.props.axis==="y"}function hc(e,t,n){let a=typeof t=="number"?pb(e,t):null;if(typeof t=="number"&&!a)return null;let r=bc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return mb(a||e,i,n.props.scale)}function gc(e,t,n){let a=!xs(e.lastX),r=bc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function yc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function vb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function bc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Ib=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Xn=Ib,Hn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},ka=Hn.mouse,ir=class extends ci.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Fd(e.target,this.props.handle,t)||this.props.cancel&&Fd(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=hb(e);this.touchIdentifier=a;let r=hc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=gc(this,i,s);Xn("DraggableCore: handleDragStart: %j",o),Xn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&yb(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,pc(n,ka.move,this.handleDrag),pc(n,ka.stop,this.handleDragStop))},this.handleDrag=e=>{let t=hc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Ld(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=gc(this,n,a);if(Xn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=hc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Ld(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=gc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&_d(s.ownerDocument),Xn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Xn("DraggableCore: Removing handlers"),rr(s.ownerDocument,ka.move,this.handleDrag),rr(s.ownerDocument,ka.stop,this.handleDragStop))},this.onMouseDown=e=>(ka=Hn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(ka=Hn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(ka=Hn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(ka=Hn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&pc(e,Hn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;rr(t,Hn.mouse.move,this.handleDrag),rr(t,Hn.touch.move,this.handleDrag),rr(t,Hn.mouse.stop,this.handleDragStop),rr(t,Hn.touch.stop,this.handleDragStop),rr(e,Hn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&_d(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Hd.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Xn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return ci.cloneElement(ci.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};ir.displayName="DraggableCore";ir.propTypes={allowAnyClick:Pt.default.bool,allowMobileScroll:Pt.default.bool,children:Pt.default.node.isRequired,disabled:Pt.default.bool,enableUserSelectHack:Pt.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Pt.default.arrayOf(Pt.default.number),handle:Pt.default.string,cancel:Pt.default.string,nodeRef:Pt.default.object,nonce:Pt.default.string,onStart:Pt.default.func,onDrag:Pt.default.func,onStop:Pt.default.func,onMouseDown:Pt.default.func,scale:Pt.default.number,className:li,style:li,transform:li};ir.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var bs=class extends Ta.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Xn("Draggable: onDragStart: %j",n),this.props.onStart(t,yc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Xn("Draggable: onDrag: %j",n);let a=yc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=wb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,yc(this,n))===!1)return!1;Xn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Xn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Vd.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,I=!!!o||this.state.dragging,S=o||a,L={x:Sb(this)&&I?this.state.x:S.x,y:Cb(this)&&I?this.state.y:S.y};this.state.isElementSVG?f=fb(L,l):m=db(L,l);let U=Ta.Children.only(n),se=Ad(U.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return Ta.createElement(ir,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},Ta.cloneElement(U,{className:se,style:{...U.props.style,...m},transform:f}))}};bs.displayName="Draggable";bs.propTypes={...ir.propTypes,axis:et.default.oneOf(["both","x","y","none"]),bounds:et.default.oneOfType([et.default.shape({left:et.default.number,right:et.default.number,top:et.default.number,bottom:et.default.number}),et.default.string,et.default.oneOf([!1])]),defaultClassName:et.default.string,defaultClassNameDragging:et.default.string,defaultClassNameDragged:et.default.string,defaultPosition:et.default.shape({x:et.default.number,y:et.default.number}),positionOffset:et.default.shape({x:et.default.oneOfType([et.default.number,et.default.string]),y:et.default.oneOfType([et.default.number,et.default.string])}),position:et.default.shape({x:et.default.number,y:et.default.number}),className:li,style:li,transform:li};bs.defaultProps={...ir.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var $d=bs;var gf=k(hf(),1),cn=k(he(),1),Mw=Ft.default.forwardRef((e,t)=>{let{handleAxis:n,...a}=e,r=n==="ne"||n==="nw",i=n==="se"||n==="ne",s={se:"nwse-resize",sw:"nesw-resize",ne:"nesw-resize",nw:"nwse-resize"},o={position:"absolute",[r?"top":"bottom"]:3,[i?"right":"left"]:3,width:"12px",height:"12px",zIndex:20,cursor:s[n]??"pointer",borderRight:i?"3px solid #bdbdbd":"none",borderLeft:i?"none":"3px solid #bdbdbd",borderTop:r?"3px solid #bdbdbd":"none",borderBottom:r?"none":"3px solid #bdbdbd",borderRadius:n==="se"?"0 0 4px 0":n==="sw"?"0 0 0 4px":n==="ne"?"0 4px 0 0":"4px 0 0 0"};return(0,cn.jsx)("div",{ref:t,style:o,...a})}),Dw=Ft.default.forwardRef((e,t)=>{let{nodeRef:n,position:a,onDragMove:r,onStart:i,onStop:s,disabled:o,...l}=e;return(0,cn.jsx)($d,{nodeRef:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiIconButton-root"], [class*="MuiButton-root"], .no-drag',position:o?{x:0,y:0}:a,onStart:i,onDrag:r,onStop:s,disabled:o,children:(0,cn.jsx)(Sn.Paper,{...l,ref:n,style:{...l.style,position:"fixed",top:0,left:0,margin:0,display:"flex",flexDirection:"column",overflow:"hidden"}})})});function Ow({id:e,children:t,isMaximized:n=!1,isActive:a=!1,onFocus:r,onWindowChange:i,x:s=100,y:o=50,width:l=800,height:c=600},d){let[m,f]=(0,Ft.useState)(!1),[g,I]=(0,Ft.useState)(!1),[S,L]=(0,Ft.useState)({x:s,y:o,width:l,height:c}),U=(0,Ft.useRef)(null),se=(0,Ft.useRef)(null),le=(0,Ft.useRef)(null),$=(0,Sn.useTheme)();(0,Ft.useImperativeHandle)(d,()=>({snapTo:te=>{let Oe=Math.floor(window.innerWidth/2),He=window.innerHeight,De=te==="left"?{x:0,y:0,width:Oe,height:He}:{x:Oe,y:0,width:Oe,height:He};L(De),i?.(e,!1,De.x,De.y,De.width,De.height)}}));let me=()=>{U.current&&se.current&&(se.current.innerHTML=U.current.innerHTML)},N=()=>{me(),f(!0),r?.()},oe=()=>{f(!1),i?.(e,n,S.x,S.y,S.width,S.height)},Ce=()=>{I(!0),r?.()},Ie=()=>{I(!1),i?.(e,n,S.x,S.y,S.width,S.height)},W=(0,Ft.useCallback)((te,Oe)=>{L(He=>({...He,x:Oe.x,y:Oe.y}))},[]),B=(0,Ft.useCallback)((te,{size:Oe,handle:He})=>{L(De=>{let It=De.x,bt=De.y;return(He==="sw"||He==="nw")&&(It=De.x-(Oe.width-De.width)),(He==="ne"||He==="nw")&&(bt=De.y-(Oe.height-De.height)),{...De,width:Oe.width,height:Oe.height,x:It,y:bt}})},[]),de={nodeRef:le,position:{x:S.x,y:S.y},onStart:N,onDragMove:W,onStop:oe,disabled:n};return(0,cn.jsx)(Sn.Dialog,{open:!0,hideBackdrop:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,disablePortal:!0,maxWidth:!1,onMouseDown:r,PaperComponent:Dw,sx:{pointerEvents:"none","& .MuiDialog-container":{display:"block"},"& .MuiDialog-paper":{pointerEvents:"auto",maxWidth:"none",maxHeight:"none",transition:m||g?"none":"all 0.2s ease-in-out"}},slotProps:{paper:de},children:(0,cn.jsx)(gf.ResizableBox,{width:n?window.innerWidth:S.width,height:n?window.innerHeight:S.height,onResizeStart:Ce,onResize:B,onResizeStop:Ie,resizeHandles:n?[]:["se","sw","ne","nw"],handle:(te,Oe)=>(0,cn.jsx)(Mw,{handleAxis:te,ref:Oe}),children:(0,cn.jsxs)(Sn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative",overflow:"hidden",bgcolor:"background.paper",border:$.palette.mode==="dark"?`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(255,255,255,0.05)"}`:`1px solid ${$.palette.divider}`,boxShadow:$.palette.mode==="dark"?a?"0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 40px rgba(0,0,0,1), 0 4px 12px rgba(0,0,0,0.8)":"0 2px 8px rgba(0,0,0,0.6)":void 0,opacity:$.palette.mode==="dark"&&!a?.6:1,transition:"box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},children:[g&&(0,cn.jsx)(Sn.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"text.secondary"},children:"Resizing..."}),(0,cn.jsx)(Sn.Box,{ref:se,sx:{display:m?"block":"none",width:"100%",height:"100%",filter:"blur(3px)",opacity:.8,pointerEvents:"none",transform:"translateZ(0)"}}),(0,cn.jsx)(Sn.Box,{ref:U,sx:{display:m||g?"none":"block",width:"100%",height:"100%"},children:(0,cn.jsx)(Sn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",border:$.palette.mode==="dark"?`1px solid ${a?"#444":"#1e1e1e"}`:"1px solid #ccc",backgroundColor:$.palette.background.default,position:"relative",borderRadius:n?0:"4px",overflow:"hidden"},children:t})})]})})})}var ea=Ft.default.forwardRef(Ow);u();var yf=k(je(),1),mt=k(ft(),1),ta=k(Gt(),1);var Ve=k(he(),1),na=({id:e,atTop:t,isMaximized:n,onMinimize:a,onTop:r,onMaximize:i,onClose:s,onSnap:o})=>{let[l,c]=(0,yf.useState)(null),d=()=>c(null);return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(mt.IconButton,{size:"small",onClick:m=>c(m.currentTarget),children:(0,Ve.jsx)(ta.MoreVert,{fontSize:"small"})}),(0,Ve.jsxs)(mt.Menu,{anchorEl:l,open:!!l,onClose:d,children:[(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{r(),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:t?(0,Ve.jsx)(rd,{fontSize:"small",sx:{color:"info.main"}}):(0,Ve.jsx)(ta.Place,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:t?"Unpin from top":"Pin to top"})]}),(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{i(),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:n?(0,Ve.jsx)(ta.FullscreenExit,{fontSize:"small"}):(0,Ve.jsx)(cd,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:n?"Restore":"Maximize"})]}),o&&(0,Ve.jsx)(mt.Divider,{}),o&&(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{o("left"),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:(0,Ve.jsx)(ad,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:"Snap left"})]}),o&&(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{o("right"),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:(0,Ve.jsx)(ta.East,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:"Snap right"})]})]}),(0,Ve.jsx)(mt.IconButton,{size:"small",onClick:a,children:(0,Ve.jsx)(id,{fontSize:"small"})}),(0,Ve.jsx)(mt.IconButton,{size:"small",onClick:s,sx:{"&:hover":{color:"error.main"}},children:(0,Ve.jsx)(ta.Close,{fontSize:"small"})})]})};u();var _e=k(ft(),1),_i=k(je(),1);u();var Jg=k(Oh(),1),Tk=kl(),jg=e=>{try{let t=["apiVersion","kind","metadata","status","spec"],n={};return t.forEach(a=>{e&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}),Object.keys(e).forEach(a=>{t.includes(a)||(n[a]=e[a])}),n}catch(t){return console.error("Error al convertir JSON a YAML:",t),{}}};function Ys(e){if(e)return JSON.parse(JSON.stringify(e))}function Gs(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r of n)if(!a.includes(r)||!Gs(e[r],t[r]))return!1;return!0}function Sm(e,t,n){let a=[];if(!t)return[];let r=n?t:t.toLowerCase();function i(s,o){if(s!=null)if(typeof s=="object"){for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=Array.isArray(s)?`${o}[${l}]`:o?`${o}.${l}`:l;(n?l:l.toLowerCase()).includes(r)&&a.push(c),i(s[l],c)}}else{let l=String(s);(n?l:l.toLowerCase()).includes(r)&&a.push(o)}}return i(e,""),[...new Set(a)].filter(s=>s!=="")}function Ks(e,t=2){if(!Number.isFinite(e)||e===0)return"0 Bytes";let n=1024,a=t<0?0:t,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(a))+" "+r[i]}function Js(e){let t=e;return e.endsWith("n")&&(t=(+e.replace("n","")/1e9).toString()),e.endsWith("m")&&(t=(+e.replace("m","")/1e6).toString()),e.endsWith("k")&&(t=(+e.replace("k","")/1e3).toString()),+t}function Jn(e){if(!e)return 0;e=e.toString();let t=e.trim().match(/^([\d.]+)\s*([KMGTPE]i?)B?$/i);if(!t)return/^\d+$/.test(e)?+e:(console.error(`'size' format is not recognized: ${e}`),0);let n=parseFloat(t[1]),a=t[2].toUpperCase().replace(/B$/,""),r,i=1024;switch(a){case"EI":case"E":r=i**6;break;case"PI":case"P":r=i**5;break;case"TI":case"T":r=i**4;break;case"GI":case"G":r=i**3;break;case"MI":case"M":r=i**2;break;case"KI":case"K":r=i**1;break;case"":case"B":r=1;break;default:console.warn(`Unknown unit '${a}'. We assume Bytes.`),r=1;break}return n*r}function Tl(e){try{let n=Jg.CronExpressionParser.parse(e).next().toDate(),a=new Date,r=n.getTime()-a.getTime(),i=Math.floor(r/1e3%60),s=Math.floor(r/(1e3*60)%60),o=Math.floor(r/(1e3*60*60)%24),l=Math.floor(r/(1e3*60*60*24));return{date:n,isoString:n.toISOString(),timeLeft:{days:l,hours:o,minutes:s,seconds:i},description:`${l}d ${o}h ${s}m ${i}s`}}catch{return}}function Zg(e){let t=e.spec.versions.find(l=>l.served);if(!t)return"";let n=e.spec.group,a=e.spec.names.kind,r=t.name,i=t.schema.openAPIV3Schema;function s(l){if(!l)return;if(l.type==="object"){let d={};return l.required&&l.properties&&l.required.forEach(m=>{let f=s(l.properties[m]);f!==void 0&&(d[m]=f)}),Object.keys(d).length>0?d:void 0}if(l.type==="array"&&l.items){let d=s(l.items);return d!==void 0?[d]:[]}if(l.default!==void 0)return l.default;let c={string:"example-value",integer:1,number:1,boolean:!0};return l.type?c[l.type]:"todo-value"}let o={apiVersion:`${n}/${r}`,kind:a,metadata:{name:`minimal-${a.toLowerCase()}`,namespace:"default"},spec:s(i.properties?.spec)||{}};return Tk.dump(o,{indent:2,noRefs:!0})}var gt=k(he(),1),Xg=e=>{let[t,n]=(0,_i.useState)(null),[a,r]=(0,_i.useState)({}),[i,s]=(0,_i.useState)({});(0,_i.useEffect)(()=>{if(e.model){let d=Ys(e.model);n(d),Object.keys(d).forEach(m=>{let f=d[m];f&&typeof f=="object"&&f.text&&typeof e.model[m]?.asyncAction=="function"&&e.model[m].asyncAction().then(g=>{r(I=>({...I,[m]:g}))})})}},[e.model]);let o=(d,m)=>{n(f=>({...f,[d]:m}))},l=(d,m,f)=>{n(g=>({...g,[d]:{...g[d],[m]:f}}))},c=()=>{t&&e.onApply(Ys(t))};return t?(0,gt.jsxs)(_e.Menu,{open:!!e.anchorParent,anchorEl:e.anchorParent,onClose:e.onClose,children:[(0,gt.jsx)(_e.Stack,{direction:"column",spacing:1.5,sx:{width:"460px",p:2},children:Object.keys(t).map((d,m)=>{let f=t[d];return(0,gt.jsxs)(_e.Stack,{direction:"row",spacing:2,sx:{alignItems:"center",justifyContent:"space-between"},children:[(0,gt.jsxs)(_e.Typography,{variant:"body2",sx:{fontWeight:"bold",textTransform:"capitalize"},children:[d,":"]}),typeof f=="boolean"&&(0,gt.jsx)(_e.Switch,{checked:f,onChange:g=>o(d,g.target.checked)}),typeof f=="number"&&(0,gt.jsx)(_e.TextField,{type:"number",variant:"standard",value:f,onChange:g=>o(d,Number(g.target.value)),slotProps:{htmlInput:{style:{textAlign:"right",width:"80px"}}}}),f&&typeof f=="object"&&f.options&&f.value!==void 0&&(0,gt.jsx)(_e.Select,{variant:"standard",value:f.value,onChange:g=>l(d,"value",g.target.value),sx:{minWidth:"100px"},children:f.options.map((g,I)=>(0,gt.jsx)(_e.MenuItem,{value:g,children:g},I))}),f&&typeof f=="object"&&f.button&&(0,gt.jsx)(_e.Button,{variant:"outlined",size:"small",onClick:()=>e.model[d].action(),children:f.button}),f&&typeof f=="object"&&f.text&&(0,gt.jsx)(_e.Typography,{variant:"body2",sx:{color:"text.secondary"},children:a[d]!==void 0?a[d]:"..."}),f&&typeof f=="object"&&Array.isArray(f.available)&&Array.isArray(f.value)&&(0,gt.jsxs)(_e.Stack,{spacing:.5,sx:{width:"100%",mt:.5},children:[f.available.length>8&&(0,gt.jsx)(_e.TextField,{size:"small",variant:"outlined",placeholder:"Filter...",value:i[d]??"",onChange:g=>s(I=>({...I,[d]:g.target.value})),slotProps:{htmlInput:{style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,gt.jsx)(_e.List,{dense:!0,disablePadding:!0,sx:{maxHeight:200,overflowY:"auto",width:"100%",border:"1px solid",borderColor:"divider",borderRadius:1},children:f.available.filter(g=>!i[d]||g.toLowerCase().includes(i[d].toLowerCase())).map((g,I)=>(0,gt.jsx)(_e.ListItem,{disablePadding:!0,sx:{px:1},children:(0,gt.jsx)(_e.FormControlLabel,{control:(0,gt.jsx)(_e.Checkbox,{size:"small",checked:f.value.includes(g),onChange:S=>{let L=S.target.checked?[...f.value,g]:f.value.filter(U=>U!==g);l(d,"value",L)}}),label:(0,gt.jsx)(_e.Typography,{variant:"caption",children:g})})},I))})]})]},m)})}),(0,gt.jsxs)(_e.DialogActions,{sx:{p:2},children:[(0,gt.jsx)(_e.Button,{onClick:e.onClose,color:"inherit",children:"Cancel"}),(0,gt.jsx)(_e.Button,{onClick:c,variant:"contained",color:"primary",children:"Apply"})]})]}):null};u();var Mk=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t)%360},Qg=(e,t="light")=>{if(!e)return{dot:"transparent",tabBg:t==="dark"?"#2a2a2a":"#ebebeb"};let n=Mk(e);return{dot:`hsl(${n}, 55%, 45%)`,tabBg:t==="dark"?`hsl(${n}, 30%, 26%)`:`hsl(${n}, 22%, 89%)`}},Tr=e=>({headers:{Authorization:e?"Bearer "+e:"","X-Kwirth-App":"true"}});var tn=k(Dt(),1),X=k(he(),1),ty=e=>{let t=e.data,n=(0,On.useRef)(null),a=(0,On.useRef)(null),[r,i]=(0,On.useState)((0,X.jsx)(X.Fragment,{})),[s,o]=(0,On.useState)(void 0),[l,c]=(0,On.useState)(void 0),[d,m]=(0,On.useState)(e.isMaximized),[,f]=(0,On.useState)(0),g=()=>f(W=>W+1);(0,On.useEffect)(()=>{if(!t.isInitialized){if(t.isInitialized=!0,t.content=I(t.channelId),!t.content)return;switch(t.channelId){case"log":{let W=t.content?.externalChannel;if(W?.prepareExternalChannel){let B=W.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.content.externalChannelObject.config.maxMessages=t.settings?.logLines??5e3}t.formConfig={lines:t.settings?.logLines??5e3,showNames:!1,timestamp:!1,startDiagnostics:!1};break}case"metrics":{let W=t.content?.externalChannel;if(W?.prepareExternalChannel){let Oe=W.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=Oe.data,t.content.externalChannelObject.config=Oe.config,t.content.externalChannelObject.instanceConfig=Oe.instanceConfig}let B=Array.from(t.channelObject?.metricsList?.keys()||[]).filter(Oe=>Oe.startsWith("container_")||Oe.startsWith("kwirth_")),de=["kwirth_container_cpu_percentage","kwirth_container_memory_percentage","kwirth_container_transmit_mbps","kwirth_container_receive_mbps","kwirth_container_write_mbps","kwirth_container_read_mbps"],te=t.content?.externalChannelObject?.instanceConfig?.metrics;t.formConfig={aggregate:!0,merge:!1,type:{value:"line",options:["line","bar","area"]},width:3,depth:50,legend:!0,metrics:{available:B,value:te?.length?te:de}};break}case"fileman":t.formConfig={},L(t.content);break;case"trivy":{let W=t.content?.externalChannel;if(W?.prepareExternalChannel){let de=W.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=de.data,t.content.externalChannelObject.config=de.config,t.content.externalChannelObject.instanceConfig=de.instanceConfig}let B=t.content.externalChannelObject.instanceConfig;t.formConfig={ignoreCritical:B?.ignoreCritical??!1,ignoreHigh:B?.ignoreHigh??!1,ignoreMedium:B?.ignoreMedium??!1,ignoreLow:B?.ignoreLow??!0,Status:{text:"Status",asyncAction:async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}}},"Install Trivy operator":{button:"Install",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,tn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}},"Remove Trivy operator":{button:"Remove",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,tn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}}};break}case"news":t.formConfig={maxItems:50,feeds:{available:["kubernetes","ai"],value:["kubernetes","ai"]}};break;default:{let W=t.content?.externalChannel;if(W?.prepareExternalChannel){let B=W.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.formConfig=B.formConfig}else t.formConfig={};break}}}},[]),(0,On.useEffect)(()=>{if(t.channelId==="ops"){let W=async B=>{if(!a.current?.contains(document.activeElement)||["Control","Alt","Shift","Meta"].includes(B.key))return;let de=t.content.termId||e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name+"/"+e.container,te=t.content?.externalChannelObject?.data?.terminalManager?.terminals.get(de),Oe=te?.socket;if(!Oe||Oe.readyState!==WebSocket.OPEN)return;let He=B.key.toLowerCase(),De=null;if(B.ctrlKey,B.ctrlKey&&B.shiftKey&&He==="c"){B.preventDefault();let It=te.term?te.term.getSelection():window.getSelection()?.toString();It&&await navigator.clipboard.writeText(It);return}if(B.ctrlKey&&B.shiftKey&&He==="v"){B.preventDefault();try{let It=await navigator.clipboard.readText();It&&Oe.send(It)}catch(It){console.error("Clipboard could not be accessed",It)}return}De=Ok(B),!De&&B.ctrlKey&&(De=Rk(B.key)),!De&&B.altKey&&B.key.length===1&&(De="\x1B"+B.key),De||(De=Dk[B.key]||(B.key.length===1?B.key:null)),De&&(B.preventDefault(),B.stopPropagation(),Oe.send(De))};return window.addEventListener("keydown",W,!0),()=>{window.removeEventListener("keydown",W,!0)}}},[e.container,e.selectedFiles,t.content?.externalChannelObject]),mc(async()=>{if(t.content&&!t.content.externalChannelObject.data&&await t.content.externalChannel.initChannel(t.content.externalChannelObject),t.options.autostart&&t.content&&!t.content.externalChannelStarted){for(;t.content?.ws?.readyState!==WebSocket.OPEN;)await new Promise(W=>setTimeout(W,10));t.content?.ws?.readyState===WebSocket.OPEN&&U()}},[]);let I=W=>{let B=(0,Ml.createChannelInstance)(t.frontChannels.get(W));if(!B){console.log("Invaid channel instance created");return}let de={ws:void 0,externalChannel:B,externalChannelObject:{isDesktop:t.isDesktop,clusterName:t.channelObject?.clusterName,instanceId:"",view:t.contentView,namespace:t.contentView===Re.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(te=>te.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(te=>te.data.origin.metadata.namespace))].join(","),group:t.contentView===Re.EInstanceConfigView.GROUP?e.selectedFiles.map(te=>te.data.origin.kind+"+"+te.data.origin.metadata.name).join(","):"",pod:t.contentView===Re.EInstanceConfigView.POD?e.selectedFiles.map(te=>te.data.origin.metadata.name).join(","):"",container:t.contentView===Re.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",config:void 0,data:void 0,instanceConfig:void 0,channelId:B.channelId},externalChannelStarted:!1,externalChannelPaused:!1,externalChannelPending:!1,settings:t.settings,termId:e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name.split("+")[0]+"/"+e.container};return B.requirements.notifier&&(de.externalChannelObject.notify=t.channelObject?.notify),B.requirements.metrics&&(de.externalChannelObject.metricsList=t.channelObject?.metricsList),B.requirements.clusterUrl&&(de.externalChannelObject.clusterUrl=t.channelObject?.clusterUrl),B.requirements.accessString&&(de.externalChannelObject.accessString=t.channelObject?.accessString),de.ws=new WebSocket(t.channelObject?.clusterUrl),de.ws.onmessage=te=>S(te),de.ws.onerror=te=>()=>{console.log("WebSocket error:"+te,new Date().toISOString())},de.ws.onclose=te=>{console.log("WebSocket disconnect:"+te.reason,new Date().toISOString())},B.requirements.webSocket&&(de.externalChannelObject.webSocket=de.ws),t.onOpenExternal&&(de.externalChannelObject.openExternal=t.onOpenExternal),de},S=W=>{let B;try{B=JSON.parse(W.data)}catch(de){console.log(de.stack),console.log(W.data);return}if(!(B.action===Re.EInstanceMessageAction.PING||B.channel===""))if(t.frontChannels.has(B.channel)){let de=t.content.externalChannel?.processChannelMessage(t.content.externalChannelObject,W);de&&(de.action===Cm.EChannelRefreshAction.REFRESH?t.onRefresh():de.action===Cm.EChannelRefreshAction.STOP&&le())}else console.log("Received invalid channel in message: ",B),t.onNotify(void 0,ey.ENotifyLevel.ERROR,`'Received invalid channel in message: ${B.channel}`)},L=W=>{let B={paused:!1,started:!1,files:[],currentPath:"",ri:void 0},de={notify:t.onNotify};W.externalChannelObject.webSocket=t.content.ws,W.externalChannelObject.data=B,W.externalChannelObject.config=de},U=()=>{if(!(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)){if(t.content.externalChannelPaused){t.content.externalChannel.continueChannel(t.content.externalChannelObject);let W={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.CONTINUE,flow:Re.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.contentView,scope:Re.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Re.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!1,t.content.ws.send(JSON.stringify(W))}else{t.content.externalChannel.startChannel(t.content.externalChannelObject);let W={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.START,flow:Re.EInstanceMessageFlow.REQUEST,instance:"",accessKey:t.channelObject?.accessString,scope:Re.EInstanceConfigScope.NONE,view:t.contentView,namespace:t.contentView===Re.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(B=>B.data.origin.metadata.namespace))].join(","),group:t.contentView===Re.EInstanceConfigView.GROUP?e.selectedFiles.map(B=>B.data.origin.kind+"+"+B.data.origin.metadata.name).join(","):"",pod:t.contentView===Re.EInstanceConfigView.POD?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):"",container:t.contentView===Re.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",type:Re.EInstanceMessageType.SIGNAL};W.scope=t.content.externalChannel.getScope()||"",W.data=t.content.externalChannelObject.instanceConfig,t.content.ws.send(JSON.stringify(W)),t.content.externalChannelStarted=!0,t.content.externalChannelPaused=!1}g()}},se=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;t.content.externalChannel.pauseChannel(t.content.externalChannelObject);let W={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.PAUSE,flow:Re.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Re.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Re.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!0,W.action=Re.EInstanceMessageAction.PAUSE,t.content.ws.send(JSON.stringify(W)),g()},le=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let W={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.STOP,flow:Re.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Re.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Re.EInstanceMessageType.SIGNAL};t.content.externalChannel.stopChannel(t.content.externalChannelObject),t.content.ws.send(JSON.stringify(W)),t.content.externalChannelStarted=!1,t.content.externalChannelPaused=!1,g()},$=()=>{let W=(0,X.jsx)(X.Fragment,{});switch(t.channelId){case"log":W=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Log"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can configure log depth (number of lines) on the configuration menu."}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"Other configuration options, like Start Diagnostics, are not available to Magnify, but you can use them in log channel."})]});break;case"metrics":W=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Metrics"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can change every individual chart type, but it won't be saved. Next time you'll need to reconfigure it again."}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"Data visualization refreshment depends on your Kwirth front configuration, your Magnify configuration."}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"On the other side, data freshness depends on Kwirth backend configuration. If you ser a visualization refresh lower than your data freshness, you'll get repeated values on different intervals."})]});break;case"ops":W=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Ops"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsxs)(ye.Typography,{sx:{fontSize:12},children:["You can use clipboard functions by pressing ",(0,X.jsx)("b",{children:"Ctrl+Shift+C"})," for copying and ",(0,X.jsx)("b",{children:"Ctrl+Shift+V"})," for pasting"]}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can minimize this window and the connection will keep open, or you can close this window and the connection to the container will be closed."})]});break;case"fileman":W=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Fileman"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can refresh filesystem data everytime you suspect what you are viewing is not acccurate. Just click on top-righ icon to refresh content."}),(0,X.jsx)(ye.Typography,{sx:{fontSize:12},children:"Upload and Download capabilities depend on your kind of Kwirth deployment. These actions are not available for all architectures. They should be available, at least, on Kubernetes Deployment. Accessing them via Electron may not be working."})]});break;case"trivy":W=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Trivy"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"Kwirth Trivy channel is a powerful tool for managing your workload security. It is based on Trivy Operator, which you can install by your own or use Kwirth for deploying Trivy without any effort (perform installation from a Trivy channel or from 'Settings' on this window)."}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"Once Trivy Operator is installed, you will see here Trivy information related to artifacts you've selected in Magnify. You can select, for instance, several pods and access this Trivy channel for viewing Trivy information about those set of pods."}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"From the asset list you will be able to see: Vulnerabilities report, Config Audit report, Exposed secrets report and also a SBOM (Software Bill of Materials, where you can analyze pacakges and its dependencies)."})]});break;case"pinocchio":W=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Pinocchio"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"This is real WIP."})]});break;default:{let B=t.content?.externalChannel?.getExternalHelpContent?.();B&&(W=(0,X.jsx)(X.Fragment,{children:B}));break}}return(0,X.jsx)(ye.Popover,{anchorEl:s,open:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{width:400,maxHeight:500}}},onClose:()=>o(void 0),children:(0,X.jsx)(ye.Box,{sx:{p:2,display:"flex",alignItems:"left",gap:1,flexDirection:"column"},children:W})})},me=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let W=t.content.externalChannel.TabContent,B={channelObject:t.content.externalChannelObject,onEnd:()=>e.onClose(e.id)};return B.channelObject.channelId==="ops"?(0,X.jsx)("div",{ref:a,children:(0,X.jsx)(W,{...B})}):(0,X.jsx)(W,{...B})},N=()=>{e.onFocus&&e.onFocus()},oe=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},Ce=W=>{m(!1),n.current?.snapTo(W)},Ie=W=>{switch(c(void 0),t.formConfig=W,t.channelId){case"log":{let te=t.content.externalChannelObject.config;te.maxMessages=W.lines,te.showNames=W.showNames,te.startDiagnostics=W.startDiagnostics;let Oe=t.content.externalChannelObject.instanceConfig;Oe.timestamp=W.timestamp,le(),U();break}case"metrics":let B=t.content.externalChannelObject.config,de=t.content.externalChannelObject.instanceConfig;B.width=W.width,B.merge=W.merge,B.depth=W.depth,B.legend=W.legend,B.chart=W.type?.value??B.chart,de.aggregate=W.aggregate,de.metrics=W.metrics?.value??de.metrics,le(),U();break;case"shell":break;case"fileman":break;case"trivy":{let te=t.content.externalChannelObject.instanceConfig;te.ignoreCritical=W.ignoreCritical??!1,te.ignoreHigh=W.ignoreHigh??!1,te.ignoreMedium=W.ignoreMedium??!1,te.ignoreLow=W.ignoreLow??!0,t.formConfig.Status.asyncAction=async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}},t.formConfig["Install Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,tn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))},t.formConfig["Remove Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,tn.MsgBoxOk)("Trivy remove","Running instance is not yet available, please try again in a few seconds",i))};break}case"news":{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,W),le(),U();break}case"pinocchio":break;default:{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,W)&&g();break}}};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ea,{ref:n,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:N,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,X.jsx)(ye.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,X.jsxs)(ye.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,X.jsx)(ye.IconButton,{size:"small",onClick:U,disabled:!t.options.autostart||t.content?.externalChannelStarted&&!t.content?.externalChannelPaused,children:(0,X.jsx)(ua.PlayArrow,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:se,disabled:!t.options.pauseable||!t.content?.externalChannelStarted||t.content?.externalChannelPaused,children:(0,X.jsx)(ua.Pause,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:le,disabled:!t.options.stoppable||!t.content?.externalChannelStarted,children:(0,X.jsx)(ua.Stop,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",disabled:!t.options.configurable,onClick:W=>c(W.target),children:(0,X.jsx)(ua.Settings,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:W=>o(W.currentTarget),children:(0,X.jsx)(ua.Info,{fontSize:"small"})}),(0,X.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,X.jsxs)(ye.Typography,{children:[(0,Ml.getChannelIconOf)(t.content?.externalChannel),"\xA0",e.title]}),(0,X.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,X.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:oe,onClose:()=>e.onClose(e.id),onSnap:Ce})]})}),(0,X.jsx)(ye.DialogContent,{sx:{display:"flex",flexDirection:"column",p:0,overflow:"hidden",height:"100%",minHeight:0,paddingBottom:1},children:me()})]}),s&&$(),l&&(0,X.jsx)(Xg,{anchorParent:l,model:t.formConfig,onApply:Ie,onClose:()=>c(void 0)}),r]})},Dk={ArrowUp:"\x1B[A",ArrowDown:"\x1B[B",ArrowRight:"\x1B[C",ArrowLeft:"\x1B[D",Home:"\x1B[H",End:"\x1B[F",PageUp:"\x1B[5~",PageDown:"\x1B[6~",Insert:"\x1B[2~",Delete:"\x1B[3~",Backspace:"\x7F",Tab:" ",Enter:"\r",Escape:"\x1B",F1:"\x1BOP",F2:"\x1BOQ",F3:"\x1BOR",F4:"\x1BOS",F5:"\x1B[15~",F6:"\x1B[17~",F7:"\x1B[18~",F8:"\x1B[19~",F9:"\x1B[20~",F10:"\x1B[21~",F11:"\x1B[23~",F12:"\x1B[24~"},Ok=e=>{let{key:t,ctrlKey:n,altKey:a,shiftKey:r}=e,i=1;if(r&&(i+=1),a&&(i+=2),n&&(i+=4),i===1)return null;let s={F1:"P",F2:"Q",F3:"R",F4:"S"};if(s[t])return`\x1B[1;${i}${s[t]}`;let o={F5:15,F6:17,F7:18,F8:19,F9:20,F10:21,F11:23,F12:24};if(o[t])return`\x1B[${o[t]};${i}~`;let l={ArrowUp:"A",ArrowDown:"B",ArrowRight:"C",ArrowLeft:"D",Home:"H",End:"F"};if(l[t])return`\x1B[1;${i}${l[t]}`;let c={Insert:2,Delete:3,PageUp:5,PageDown:6};return c[t]?`\x1B[${c[t]};${i}~`:null};function Rk(e){let t=e.toLowerCase().charCodeAt(0);return t>=97&&t<=122?String.fromCharCode(t-96):null}u();var jn=k(je(),1),ut=k(ft(),1),yx=k(Gt(),1);u();var cx=k(Gt(),1),Y=k(ft(),1);var Rn=k(je(),1),ux=k(Pl(),1),mx=k(Fl(),1),v=k(he(),1),Ae={get:ux.default,set:mx.default};function FM(e){let t=[],n=Math.floor(e.days);n>0&&(t.push(`${n}d`),e.days-=e.days);let a=Math.floor(e.hours);(a>0||t.length>0)&&(t.push(`${a}h`),e.hours-=e.hours);let r=Math.floor(e.minutes);return r>0&&t.length<2&&t.push(`${r}m`),t.slice(0,2).join("")}var dx=e=>{let t=0,n=15,a=Rn.default.useMemo(()=>!e.sections||!e.object.data?!1:e.sections.some(c=>c.items.some(d=>d.format==="edit"||d.style&&d.style.includes("edit"))),[e.sections,e.object.data]);Rn.default.useEffect(()=>{e.onContainsEdit&&e.onContainsEdit(a)},[a,e.onContainsEdit]);let r=(c,d)=>{let m;if(d.includes("||")){let f=d.split("||");f[f.length-1]==="$default"?m="$default":m=f[f.length-1];for(let g of f)if(Ae.get(c,g)){m=Ae.get(c,g);break}}else m=Ae.get(c,d);return m},i=(c,d,m,f,g,I,S,L,U)=>{let se=m;if(m.startsWith("$"))return(0,v.jsx)(Y.Typography,{variant:"body2",sx:{fontWeight:g.includes("bold")?"700":""},children:m.substring(1)});let le=!1;m.startsWith("#")&&(m=m.substring(1),le=!0);let $=JSON.parse(JSON.stringify(d));if(m.includes("|")&&m.includes(":")){let N=m.split(":")[1],oe=m.split(":")[0].split("|"),Ce=[],Ie=[];Ae.get($,oe[0])&&(Ce=Ae.get($,oe[0]).map(W=>W[N]));for(let W of Ce){let B=Ae.get($,oe[0]).filter(te=>te[N]===W),de=Ae.get($,oe[1]).filter(te=>te[N]===W);if(B.length===1&&de.length===1){let te={...B[0],...de[0]};Ie.push(te)}}Ae.set($,oe[0],Ie),m=oe[0]}let me=g&&g.includes("header")&&U?U.text+":\xA0":"";switch(f){case"age":let N=Date.parse(r($,m)),Ce=new Date().getTime()-N,Ie=Math.floor(Ce/(1e3*60*60*24));Ce-=Ie*(1e3*60*60*24);let W=Math.floor(Ce/(1e3*60*60));Ce-=W*(1e3*60*60);let B=Math.floor(Ce/(1e3*60));return(0,v.jsx)(Y.Typography,{variant:"body2",children:FM({days:Ie,hours:W,minutes:B})});case"boolean":let te=!1;m==="@string[]"&&L?te=!!L(c,$,e.onLink)[0]:te=!!Ae.get($,m);let Oe=g.filter(A=>A.startsWith(te+":"));if(g&&Oe.length===1){let A=Oe[0].split(":");return te?(0,v.jsx)(Y.Typography,{sx:{color:A[2]},variant:"body2",children:A[1]}):(0,v.jsx)(Y.Typography,{sx:{color:A[2]},variant:"body2",children:A[1]})}else return te?(0,v.jsx)(Y.Typography,{sx:{color:"success.main"},variant:"body2",children:"OK"}):(0,v.jsx)(Y.Typography,{sx:{color:"error.main"},variant:"body2",children:"ko"});case"string":let He="";if((m==="@string"||m==="@jsx")&&U?.invoke)return(0,v.jsx)(v.Fragment,{children:U.invoke(c,$,e.onLink)});if(m==="@string[]"&&L?He=L(c,$,e.onLink)[0]:He=r($,m),U?.processValue)try{He=U.processValue(He)}catch{}if(g&&g.includes("mb")&&(He=Ks(Jn(He))),g&&g.includes("edit"))return(0,v.jsxs)(v.Fragment,{children:[me,i(c,d,m,"edit",g,I,[],void 0)]});{let A=He,ee="",ce=[],$e=(0,v.jsx)(v.Fragment,{children:A});if(A&&g){let _t=g.find(Le=>Le.startsWith("char:"));if(_t){let Le=+_t.substring(5);A&&A.length>Le&&($e=(0,v.jsx)(v.Fragment,{children:A.substring(0,Le)+"..."}))}g.includes("bold")&&(ee="700"),ce=g.filter(Le=>Le.startsWith(He+":"));let rt=g.find(Le=>Le.startsWith("color:"));rt&&(ce=[rt]);let _n=g.find(Le=>Le.startsWith("link:"));if(_n&&le){let Le=_n.split(":");Le.length<4&&console.log("link<4",_n);for(let on=1;on<=3;on++)Le[on].startsWith("$")?Le[on]=Le[on].substring(1):Le[on]=Ae.get($,Le[on]);Le[3]==="$namespace"&&(Le[3]=c.metadata.namespace),$e=(0,v.jsx)("a",{href:"#",onClick:()=>e.onLink(Le[1],A,Le[3]),children:A})}}if(ce.length>0)return(0,v.jsxs)(Y.Typography,{component:"div",color:ce[0].split(":")[1],variant:"body2",sx:{fontWeight:ee},children:[me,$e]});if(g){let _t=g.filter(rt=>rt.startsWith("property:"));if(_t.length>0)for(let rt of _t){let _n=rt.split(":");if(Ae.get($,_n[1])===_n[2])return(0,v.jsxs)(Y.Typography,{component:"div",color:_n[3],variant:"body2",sx:{fontWeight:ee},children:[me,$e]})}}return(0,v.jsxs)(Y.Typography,{component:"div",variant:"body2",sx:{fontWeight:ee},children:[me,$e]})}case"edit":let De=Ae.get($,m);return g.includes("base64")&&(De=atob(De)),g.includes("multiline")?(0,v.jsx)(Y.TextareaAutosize,{name:m,defaultValue:De,style:{width:"100%",marginTop:1,marginBottom:1,resize:"vertical",minHeight:"64px"},onChange:A=>e.onChangeData(m,A.target.value)}):(0,v.jsx)(Y.TextField,{name:m,defaultValue:De,maxRows:5,sx:{width:"100%",mt:1,mb:1},size:"small",onChange:A=>e.onChangeData(m,A.target.value)});case"booleankey":return Ae.get($,m)===!0?(0,v.jsx)(v.Fragment,{children:m}):(0,v.jsx)(v.Fragment,{});case"keylist":let It=Object.keys(Ae.get($,m));return(0,v.jsx)(v.Fragment,{children:i(c,{keys:It},"keys","stringlist",g,I,[],void 0)});case"stringlist":let bt=[];if(m==="@string[]"&&L?bt=L(c,$,e.onLink):bt=Ae.get($,m),!bt)return(0,v.jsx)(v.Fragment,{});if(U?.processValue)try{for(let A=0;A<bt.length;A++)bt[A]=U.processValue(bt[A])}catch{}if(g.includes("column")){let A=se.startsWith("#")?"#":"";return(0,v.jsx)(Y.Stack,{direction:"column",children:bt.map((ee,ce)=>(0,v.jsx)(Y.Typography,{component:"div",variant:"body2",children:i(c,bt,A+"["+ce+"]","string",g,I+1,void 0,void 0)},ce))})}else{let A=bt.join(",\xA0"),ee=g.filter(ce=>ce.startsWith(A+":"));return ee.length>0?(0,v.jsxs)(Y.Typography,{color:ee[0].split(":")[1],variant:"body2",children:[me,A]}):(0,v.jsxs)(Y.Typography,{variant:"body2",children:[me,A]})}case"objectlist":let Yt=[];return m==="@string[]"&&L||m==="@object[]"&&L?Yt=L(c,$,e.onLink):Yt=Ae.get($,m),Yt?g.includes("table")&&S?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",sx:{width:"100%"},children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:S.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A.text},ee))})}),(0,v.jsx)(Y.TableBody,{children:Yt.map((A,ee)=>(0,v.jsx)(Y.TableRow,{children:S.map((ce,$e)=>{let _t=S.find(rt=>rt.name===ce.name);return!_t||!S?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)(Y.TableCell,{children:[" ",typeof Ae.get(A,ce.source[0])=="object"?Array.isArray(Ae.get(A,ce.source[0]))?(0,v.jsx)(v.Fragment,{children:i(c,A,ce.source[0],_t.format,ce.style||[],I+1,_t.items,void 0)}):(0,v.jsx)(v.Fragment,{children:i(c,A,ce.source[0],S.find(rt=>rt.source[0]===ce.source[0]).format,S.find(rt=>rt.source[0]===ce.source[0]).style||[],I+1,[_t],void 0)}):(0,v.jsx)(v.Fragment,{children:s(c,A,ce,I+1)})]},$e)})},ee))})]})}):(0,v.jsx)(v.Fragment,{children:Yt.map((A,ee)=>S?(0,v.jsx)(Y.Stack,{direction:g.includes("column")?"column":"row",sx:{width:g.includes("fullwidth")?"100%":"auto"},children:g.includes("column")?S.map((ce,$e)=>(0,v.jsx)(Rn.default.Fragment,{children:s(c,A,ce,I+1)},$e)):S.map((ce,$e)=>(0,v.jsxs)(Rn.default.Fragment,{children:[s(c,A,ce,I+1)," ",(0,v.jsx)(v.Fragment,{children:ee<Yt.length-1?",\xA0":""})," "]},$e))},ee):(0,v.jsx)(Rn.default.Fragment,{},ee))}):(0,v.jsx)(v.Fragment,{});case"objectobject":return g.includes("table")?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)[0]).map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A},ee))})}),(0,v.jsx)(Y.TableBody,{children:Ae.get($,m).map((A,ee)=>(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)[0]).map((ce,$e)=>(0,v.jsx)(Y.TableCell,{children:i(c,A,m,"string",[],I+1,[],void 0)},$e))},ee))})]})}):(0,v.jsx)(v.Fragment,{children:Ae.get($,m).map((A,ee)=>S?(0,v.jsx)(Rn.default.Fragment,{children:S.map((ce,$e)=>(0,v.jsx)(Rn.default.Fragment,{children:o(c,A,ce,n,I+1)},$e))},ee):(0,v.jsx)(v.Fragment,{}))});case"objectprops":return Ae.get($,m)?g&&g.includes("table")?U&&U?.items?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:U.items.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A.text},ee))})}),(0,v.jsx)(Y.TableBody,{children:(0,v.jsx)(Y.TableRow,{children:U.items.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:i(c,$,A.source[0],A.format,A.style||[],I)},ee))})})]})}):(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)).map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A},ee))})}),(0,v.jsx)(Y.TableBody,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)).map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:Ae.get($,m+".['"+A+"']")},ee))})})]})}):S?(0,v.jsx)(v.Fragment,{children:S.map((A,ee)=>(0,v.jsxs)(Y.Stack,{direction:A.style&&A.style.includes("column")?"column":"row",children:[(0,v.jsxs)(Y.Typography,{variant:"body2",sx:{fontWeight:g&&g.includes("keybold")?"700":""},children:[A.text,":\xA0"]}),s(c,$,A,I+1)]},ee))}):(0,v.jsx)(v.Fragment,{children:Object.keys(Ae.get($,m)).map((A,ee)=>g&&g.includes("edit")?(0,v.jsxs)(Y.Stack,{direction:"column",sx:{mt:1},children:[(0,v.jsxs)(Y.Stack,{direction:"row",children:[(0,v.jsx)(Y.Tooltip,{title:A,placement:"top",children:(0,v.jsx)(Y.Typography,{variant:"body2",sx:{fontWeight:g.includes("keybold")?"700":""},children:A})}),g.includes("lockicon")&&(0,v.jsx)(cx.Https,{fontSize:"small",sx:{color:"error.main"}})]}),i(c,$,m+".['"+A+"']","edit",g,I+1,[],void 0)]},ee):(0,v.jsxs)(Y.Stack,{direction:"row",children:[(0,v.jsxs)(Y.Typography,{variant:"body2",sx:{fontWeight:g.includes("keybold")?"700":""},children:[A,":\xA0"]}),i(c,$,m+".['"+A+"']","string",g,I+1,[],void 0)]},ee))}):(0,v.jsx)(v.Fragment,{});case"table":return S?Ae.get($,m)&&(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:S.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A.text},ee))})}),(0,v.jsx)(Y.TableBody,{children:Ae.get($,m).map((A,ee)=>(0,v.jsx)(Y.TableRow,{children:S.map((ce,$e)=>(0,v.jsx)(Y.TableCell,{children:s(c,A,ce,I+1)},$e))},ee))})]})}):(0,v.jsx)(v.Fragment,{});default:return(0,v.jsx)(v.Fragment,{})}},s=(c,d,m,f)=>{let g=m.source[0].replace("#","");if(!g.startsWith("@")&&m.style?.includes("ifpresent")&&Ae.get(d,g)===void 0)return(0,v.jsx)(v.Fragment,{});if(m.format==="bar"){let I=Ae.get(d,m.source[0]),S=Ae.get(d,m.source[1]);if(!I||!S)return(0,v.jsx)(v.Fragment,{});let L=+I/+S*100;return(0,v.jsxs)(Y.Stack,{direction:"row",sx:{width:"100%",alignItems:"center"},children:[(0,v.jsx)(Y.LinearProgress,{variant:"determinate",value:L>100?100:L,sx:{width:"90%"}}),"\xA0",(0,v.jsxs)(Y.Typography,{variant:"body2",children:[I||0,"/",S||0]})]})}else return(0,v.jsx)(Y.Stack,{direction:m.style?.includes("column")?"column":"row",sx:{width:"100%",alignItems:m.style?.includes("row")?"center":""},children:m.source.map((I,S)=>(0,v.jsx)(Rn.default.Fragment,{children:i(c,d,I,m.format,m.style||[],f+1,m.items,m.invoke,m)},S))})},o=(c,d,m,f,g)=>{let I="class-kwirth-"+t,S=m.source[0].replace("#","");if(!S.startsWith("@")&&m.style?.includes("ifpresent")&&Ae.get(d,S)===void 0)return(0,v.jsx)(v.Fragment,{});if(m.source&&S==="@jsx[]")return m.invoke?(0,v.jsx)(Y.Stack,{direction:m.style&&m.style.includes("column")?"column":"row",sx:{alignItems:"stretch",width:"100%"},children:m.invoke(c,d,e.onLink).map((L,U)=>(0,v.jsx)(Rn.default.Fragment,{children:L},U))}):(0,v.jsx)(v.Fragment,{children:"Inexistent Invoke"});{let L=0;return m.source&&Ae.get(d,m.source[0])&&(L=Object.keys(Ae.get(d,m.source[0])).length),t++,(0,v.jsxs)(Y.Stack,{direction:"row",sx:{alignItems:"baseline"},children:[m.text===""&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(Y.Typography,{component:"div",variant:"body2",sx:{width:"100%"},children:s(c,d,m,g)})}),m.text!==""&&(0,v.jsxs)(v.Fragment,{children:[L>1&&m.style&&m.style.includes("collapse")?(0,v.jsxs)(Y.Stack,{direction:"row",sx:{width:`${f-2}%`,alignItems:"center"},children:[(0,v.jsx)(Y.Typography,{variant:"body2",children:m.text}),(0,v.jsx)("svg",{className:"svg-"+I,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{let U=document.getElementsByClassName(I)[0];U&&(U.style.height==="auto"?(U.style.height="22px",document.getElementsByClassName("svg-"+I)[0].innerHTML='<path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" />'):(U.style.height="auto",document.getElementsByClassName("svg-"+I)[0].innerHTML='<path d="M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z" />'))},children:(0,v.jsx)("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z"})})]}):(0,v.jsx)(Y.Typography,{variant:"body2",sx:{width:`${f}%`},children:m.text}),L>1&&m.style&&m.style.includes("collapse")?(0,v.jsx)("div",{className:I,style:{height:"22px",overflow:"hidden"},children:s(c,d,m,g)}):s(c,d,m,g)]})]})}},l=(c,d)=>{if(c)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Y.Typography,{sx:{mt:2,mb:1},variant:"body1",children:(0,v.jsx)("b",{children:d.text})}),d.items.map((m,f)=>(0,v.jsx)(Rn.default.Fragment,{children:o(c,c,m,n,0)},f))]})};if(e.object.data)if(e.sections){let c=e.sections.map((d,m)=>(0,v.jsx)(Rn.default.Fragment,{children:l(e.object.data[d.root],d)},m));return(0,v.jsx)(v.Fragment,{children:c})}else return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("pre",{children:JSON.stringify(e.object.data.origin,void 0,2)})});else return console.log(e.object),(0,v.jsx)(v.Fragment,{children:"No data"})};u();var $t=k(ft(),1),fx=k(je(),1),nn=k(he(),1),_l=e=>((0,fx.useEffect)(()=>{e.file&&e.file.data.origin.status.containerStatuses?.length===1&&e.onContainerSelected(e.channel,e.file,e.file.data.origin.status.containerStatuses[0].name)},[e.file,e.channel,e.onContainerSelected]),!e.file||!e.file.data.origin.status.containerStatuses||e.file.data.origin.status.containerStatuses.length===1?null:(0,nn.jsx)($t.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,nn.jsxs)($t.MenuList,{dense:!0,sx:{minWidth:120},children:[e.file.data.origin.status.containerStatuses.map(t=>{let n="orange";return t.started?(n="green",e.file&&e.file.data.origin.metadata.deletionTimestamp&&(n="blue")):t.state.terminated&&(n="gray"),(0,nn.jsx)($t.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,t.name),children:(0,nn.jsxs)($t.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,nn.jsx)($t.Box,{sx:{width:"10px",height:"10px",backgroundColor:n,margin:"1px",display:"inline-block"}}),(0,nn.jsxs)($t.Typography,{children:["\xA0",t.name]})]})},t.name)}),e.includeAllContainers&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)($t.Divider,{}),(0,nn.jsx)($t.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,"*all"),children:(0,nn.jsx)($t.Typography,{children:"All containers"})},"all")]})]})}));var xx=k(Dt(),1),bx=k(Pl(),1),wx=k(Fl(),1),tt=k(he(),1),gx={get:bx.default,set:wx.default},VM=hx(),Sx=e=>{let t=(0,jn.useRef)(null),n=(0,jn.useRef)(e.data.source.data.origin),[a,r]=(0,jn.useState)(!1),[i,s]=(0,jn.useState)(!1),[o,l]=(0,jn.useState)(),[c,d]=(0,jn.useState)(""),[m,f]=(0,jn.useState)(e.isMaximized),g=e.data;(0,jn.useEffect)(()=>{n.current||(n.current={})},[]),(0,xx.useKeyboard)(e.onClose,e.id);let I=(N,oe,Ce)=>{e.onClose(e.id),e.data.onLink(N,oe,Ce)},S=e.data.actions.filter(N=>N.name!=="details"&&(N.isVisible?.(N.name??"",e.data.source,e.selectedFiles)??!0)),L=N=>N.isEnabled?.(N.name??"",e.data.source,e.selectedFiles)??!0,U=(N,oe)=>{if(e.selectedFiles[0].class==="Pod"&&(e.data.containerSelectionOptions.get(N)||0)>=1){d(N),l(oe);return}e.data.onAction(N,e.selectedFiles[0].path||"",void 0)},se=()=>{e.onFocus&&e.onFocus()},le=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},$=N=>{f(!1),t.current?.snapTo(N)},me=(N,oe)=>{e.data.source.data.origin.kind==="ConfigMap"&&gx.set(n.current,N,oe),e.data.source.data.origin.kind==="Secret"&&gx.set(n.current,N,btoa(oe)),s(!0)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(ea,{ref:t,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:se,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,tt.jsx)(ut.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,tt.jsxs)(ut.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,tt.jsx)(ut.Typography,{variant:"subtitle1",noWrap:!0,sx:{fontWeight:"bold",flexShrink:0},children:`${g.source.data.origin.kind}:`}),(0,tt.jsx)(ut.Typography,{variant:"body2",noWrap:!0,children:e.title}),(0,tt.jsx)(ut.Tooltip,{title:"Copy",children:(0,tt.jsx)(ut.IconButton,{size:"small",onClick:()=>VM(e.title),children:(0,tt.jsx)(yx.ContentCopy,{fontSize:"inherit"})})}),(0,tt.jsx)(ut.Stack,{direction:"row",spacing:.5,className:"no-drag",children:S.map((N,oe)=>N.name==="divider"?(0,tt.jsx)(ut.Typography,{sx:{flexGrow:1}}):(0,tt.jsx)(ut.Tooltip,{title:N.text,children:(0,tt.jsx)("span",{children:(0,tt.jsx)(ut.IconButton,{size:"small",color:"primary",disabled:!L(N),onClick:Ce=>U(N.name,Ce.currentTarget),children:N.icon})})},oe))}),(0,tt.jsx)(ut.Typography,{sx:{flexGrow:1}}),(0,tt.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:le,onClose:()=>e.onClose(e.id),onSnap:$})]})}),(0,tt.jsx)(ut.DialogContent,{dividers:!0,sx:{p:0,display:"flex",flexDirection:"column"},children:(0,tt.jsx)(ut.Box,{sx:{p:2,flexGrow:1,overflow:"auto"},children:(0,tt.jsx)(dx,{object:g.source,sections:g.sections,onChangeData:me,onLink:I,onContainsEdit:r})})}),(0,tt.jsx)(ut.DialogActions,{sx:{p:.5,pr:2},children:(0,tt.jsx)(ut.Button,{onClick:()=>e.data.onApply(g.path,n.current),disabled:!a||!i,variant:"contained",size:"small",children:"Apply"})})]}),o&&e.selectedFiles.length>0&&(0,tt.jsx)(_l,{channel:c,file:e.selectedFiles[0],onClose:()=>l(void 0),anchorParent:o,onContainerSelected:(N,oe,Ce)=>{e.data.onAction(N,oe.path||"",Ce),l(void 0)},includeAllContainers:g.containerSelectionOptions.get(c)===2})]})};u();var qt=k(ft(),1),Nn=k(je(),1),Lx=k(vx(),1),Vx=k(kx(),1),Wx=k(Mx(),1),Bx=k(Gt(),1);var Ki=k(Ox(),1),zl=k(Nx(),1),Hx=k(Ax(),1),$x=k(Fx(),1);var Ll=k(Dt(),1),qx=k(zx(),1),xt=k(he(),1),Rm=kl(),Ux=e=>{let t=(0,qt.useTheme)(),n=t.palette.mode==="dark"?qx.oneDark:"light",[a,r]=(0,Nn.useState)((0,xt.jsx)(xt.Fragment,{})),[i,s]=(0,Nn.useState)(""),o=(0,Nn.useRef)(null),l=(0,Nn.useRef)(!1),c=(0,Nn.useRef)(null),d=(0,Nn.useRef)(null),[m,f]=(0,Nn.useState)(e.isMaximized),g=e.data,I=zl.EditorView.theme({"&":{height:"100%",fontSize:"12px",fontFamily:"'Fira Code', 'Source Code Pro', monospace"},".cm-foldGutter":{width:"25px",pointerEvents:"auto !important"},".cm-gutterElement":{display:"flex !important",alignItems:"center",justifyContent:"center",cursor:"pointer !important",pointerEvents:"auto !important"},".cm-foldGutter span":{pointerEvents:"none"}},{dark:t.palette.mode==="dark"});(0,Nn.useEffect)(()=>{let $=me=>{if(me.key==="Escape"&&S(),!c.current?.contains(document.activeElement))return;let N=me.ctrlKey||me.metaKey;N&&me.key.toLowerCase()==="f"&&(me.preventDefault(),me.stopPropagation(),d.current&&(0,Ki.openSearchPanel)(d.current)),N&&me.key.toLowerCase()==="d"&&(me.preventDefault(),me.stopPropagation())};return window.addEventListener("keydown",$,!0),()=>window.removeEventListener("keydown",$,!0)},[]);let S=()=>{l.current?r((0,Ll.MsgBoxYesNo)("Edit exit","You have some changes not applied. Are you sure you want to exit without applying?",r,$=>{$===Ll.MsgBoxButtons.Yes&&e.onClose(e.id)})):e.onClose(e.id)};(0,Nn.useEffect)(()=>{if(g.isInitialized)g.code&&s(g.code);else{if(g.isInitialized=!0,g.code===void 0){let $=e.selectedFiles[0].data.origin,me=jg($);g.code=Rm.dump(me),s(g.code)}else s(g.code);g.oldCode=g.code}},[]);let L=()=>{e.onFocus&&e.onFocus()},U=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},se=$=>{f(!1),o.current?.snapTo($)},le=$=>{g.code=$,s($);try{let me=Rm.load(g.oldCode),N=Rm.load($);l.current=!Gs(N,me)}catch{l.current=($??"")!==(g.oldCode??"")}};return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsxs)(ea,{ref:o,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:L,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,xt.jsx)(qt.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,xt.jsxs)(qt.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,xt.jsx)(qt.Typography,{sx:{flexGrow:1}}),(0,xt.jsxs)(qt.Typography,{children:[g.allowEdit?(0,xt.jsx)(Bx.Edit,{}):(0,xt.jsx)(Wn,{}),"\xA0",e.title]}),(0,xt.jsx)(qt.Typography,{sx:{flexGrow:1}}),(0,xt.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:U,onClose:S,onSnap:se})]})}),(0,xt.jsx)(qt.DialogContent,{children:(0,xt.jsx)("div",{ref:c,style:{height:"100%",width:"100%",paddingTop:"2px"},onMouseDownCapture:$=>{$.target.closest(".cm-foldGutter")&&d.current&&($.preventDefault(),$.stopPropagation(),d.current.focus(),(0,$x.foldCode)(d.current))},className:"no-drag",children:(0,xt.jsx)(Lx.default,{value:i,onChange:le,theme:n,onUpdate:$=>{$.view&&(d.current=$.view)},extensions:[Vx.EditorState.readOnly.of(!g.allowEdit),(0,Wx.yaml)(),(0,Ki.search)({top:!0}),I,zl.keymap.of([...Hx.defaultKeymap,...Ki.searchKeymap])]})})}),(0,xt.jsx)(qt.DialogActions,{sx:{p:"4px 4px",pr:2},children:(0,xt.jsx)(qt.Button,{onClick:()=>g.onOk?.(i,g.source),disabled:!l.current,children:"Ok"})})]}),a]})};u();var Pe=new Map;Pe.set("Pod",`
247
+ `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&Sb(e.body,"react-draggable-transparent-selection")}function Ld(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Vd(e)}):Vd(e)}function Vd(e){if(e)try{e.body&&vb(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function Sb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function vb(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function Ib(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:Mb(a);let r=Cc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+zt(d.paddingLeft)+zt(c.marginLeft),top:-r.offsetTop+zt(d.paddingTop)+zt(c.marginTop),right:pb(l)-db(r)-r.offsetLeft+zt(d.paddingRight)-zt(c.marginRight),bottom:fb(l)-mb(r)-r.offsetTop+zt(d.paddingBottom)-zt(c.marginBottom)}}return bs(a.right)&&(t=Math.min(t,a.right)),bs(a.bottom)&&(n=Math.min(n,a.bottom)),bs(a.left)&&(t=Math.max(t,a.left)),bs(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Wd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function kb(e){return e.props.axis==="both"||e.props.axis==="x"}function Tb(e){return e.props.axis==="both"||e.props.axis==="y"}function yc(e,t,n){let a=typeof t=="number"?xb(e,t):null;if(typeof t=="number"&&!a)return null;let r=Cc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return hb(a||e,i,n.props.scale)}function xc(e,t,n){let a=!bs(e.lastX),r=Cc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function bc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Mb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Cc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Db=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Xn=Db,Hn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ma=Hn.mouse,ir=class extends mi.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!zd(e.target,this.props.handle,t)||this.props.cancel&&zd(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=bb(e);this.touchIdentifier=a;let r=yc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=xc(this,i,s);Xn("DraggableCore: handleDragStart: %j",o),Xn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&Cb(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,gc(n,Ma.move,this.handleDrag),gc(n,Ma.stop,this.handleDragStop))},this.handleDrag=e=>{let t=yc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Wd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=xc(this,n,a);if(Xn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=yc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Wd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=xc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Ld(s.ownerDocument),Xn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Xn("DraggableCore: Removing handlers"),rr(s.ownerDocument,Ma.move,this.handleDrag),rr(s.ownerDocument,Ma.stop,this.handleDragStop))},this.onMouseDown=e=>(Ma=Hn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ma=Hn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ma=Hn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ma=Hn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&gc(e,Hn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;rr(t,Hn.mouse.move,this.handleDrag),rr(t,Hn.touch.move,this.handleDrag),rr(t,Hn.mouse.stop,this.handleDragStop),rr(t,Hn.touch.stop,this.handleDragStop),rr(e,Hn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Ld(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=qd.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Xn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return mi.cloneElement(mi.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};ir.displayName="DraggableCore";ir.propTypes={allowAnyClick:Pt.default.bool,allowMobileScroll:Pt.default.bool,children:Pt.default.node.isRequired,disabled:Pt.default.bool,enableUserSelectHack:Pt.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Pt.default.arrayOf(Pt.default.number),handle:Pt.default.string,cancel:Pt.default.string,nodeRef:Pt.default.object,nonce:Pt.default.string,onStart:Pt.default.func,onDrag:Pt.default.func,onStop:Pt.default.func,onMouseDown:Pt.default.func,scale:Pt.default.number,className:ui,style:ui,transform:ui};ir.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var ws=class extends Da.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Xn("Draggable: onDragStart: %j",n),this.props.onStart(t,bc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Xn("Draggable: onDrag: %j",n);let a=bc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=Ib(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,bc(this,n))===!1)return!1;Xn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Xn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Bd.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,I=!!!o||this.state.dragging,C=o||a,L={x:kb(this)&&I?this.state.x:C.x,y:Tb(this)&&I?this.state.y:C.y};this.state.isElementSVG?f=yb(L,l):m=gb(L,l);let U=Da.Children.only(n),se=Fd(U.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return Da.createElement(ir,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},Da.cloneElement(U,{className:se,style:{...U.props.style,...m},transform:f}))}};ws.displayName="Draggable";ws.propTypes={...ir.propTypes,axis:et.default.oneOf(["both","x","y","none"]),bounds:et.default.oneOfType([et.default.shape({left:et.default.number,right:et.default.number,top:et.default.number,bottom:et.default.number}),et.default.string,et.default.oneOf([!1])]),defaultClassName:et.default.string,defaultClassNameDragging:et.default.string,defaultClassNameDragged:et.default.string,defaultPosition:et.default.shape({x:et.default.number,y:et.default.number}),positionOffset:et.default.shape({x:et.default.oneOfType([et.default.number,et.default.string]),y:et.default.oneOfType([et.default.number,et.default.string])}),position:et.default.shape({x:et.default.number,y:et.default.number}),className:ui,style:ui,transform:ui};ws.defaultProps={...ir.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var Ud=ws;var xf=k(yf(),1),mn=k(he(),1),Ew=Ft.default.forwardRef((e,t)=>{let{handleAxis:n,...a}=e,r=n==="ne"||n==="nw",i=n==="se"||n==="ne",s={se:"nwse-resize",sw:"nesw-resize",ne:"nesw-resize",nw:"nwse-resize"},o={position:"absolute",[r?"top":"bottom"]:3,[i?"right":"left"]:3,width:"12px",height:"12px",zIndex:20,cursor:s[n]??"pointer",borderRight:i?"3px solid #bdbdbd":"none",borderLeft:i?"none":"3px solid #bdbdbd",borderTop:r?"3px solid #bdbdbd":"none",borderBottom:r?"none":"3px solid #bdbdbd",borderRadius:n==="se"?"0 0 4px 0":n==="sw"?"0 0 0 4px":n==="ne"?"0 4px 0 0":"4px 0 0 0"};return(0,mn.jsx)("div",{ref:t,style:o,...a})}),Nw=Ft.default.forwardRef((e,t)=>{let{nodeRef:n,position:a,onDragMove:r,onStart:i,onStop:s,disabled:o,...l}=e;return(0,mn.jsx)(Ud,{nodeRef:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiIconButton-root"], [class*="MuiButton-root"], .no-drag',position:o?{x:0,y:0}:a,onStart:i,onDrag:r,onStop:s,disabled:o,children:(0,mn.jsx)(vn.Paper,{...l,ref:n,style:{...l.style,position:"fixed",top:0,left:0,margin:0,display:"flex",flexDirection:"column",overflow:"hidden"}})})});function Aw({id:e,children:t,isMaximized:n=!1,isActive:a=!1,onFocus:r,onWindowChange:i,x:s=100,y:o=50,width:l=800,height:c=600},d){let[m,f]=(0,Ft.useState)(!1),[g,I]=(0,Ft.useState)(!1),[C,L]=(0,Ft.useState)({x:s,y:o,width:l,height:c}),U=(0,Ft.useRef)(null),se=(0,Ft.useRef)(null),le=(0,Ft.useRef)(null),$=(0,vn.useTheme)();(0,Ft.useImperativeHandle)(d,()=>({snapTo:te=>{let Oe=Math.floor(window.innerWidth/2),He=window.innerHeight,Me=te==="left"?{x:0,y:0,width:Oe,height:He}:{x:Oe,y:0,width:Oe,height:He};L(Me),i?.(e,!1,Me.x,Me.y,Me.width,Me.height)}}));let me=()=>{U.current&&se.current&&(se.current.innerHTML=U.current.innerHTML)},E=()=>{me(),f(!0),r?.()},oe=()=>{f(!1),i?.(e,n,C.x,C.y,C.width,C.height)},Se=()=>{I(!0),r?.()},Ie=()=>{I(!1),i?.(e,n,C.x,C.y,C.width,C.height)},V=(0,Ft.useCallback)((te,Oe)=>{L(He=>({...He,x:Oe.x,y:Oe.y}))},[]),B=(0,Ft.useCallback)((te,{size:Oe,handle:He})=>{L(Me=>{let kt=Me.x,bt=Me.y;return(He==="sw"||He==="nw")&&(kt=Me.x-(Oe.width-Me.width)),(He==="ne"||He==="nw")&&(bt=Me.y-(Oe.height-Me.height)),{...Me,width:Oe.width,height:Oe.height,x:kt,y:bt}})},[]),de={nodeRef:le,position:{x:C.x,y:C.y},onStart:E,onDragMove:V,onStop:oe,disabled:n};return(0,mn.jsx)(vn.Dialog,{open:!0,hideBackdrop:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,disablePortal:!0,maxWidth:!1,onMouseDown:r,PaperComponent:Nw,sx:{pointerEvents:"none","& .MuiDialog-container":{display:"block"},"& .MuiDialog-paper":{pointerEvents:"auto",maxWidth:"none",maxHeight:"none",transition:m||g?"none":"all 0.2s ease-in-out"}},slotProps:{paper:de},children:(0,mn.jsx)(xf.ResizableBox,{width:n?window.innerWidth:C.width,height:n?window.innerHeight:C.height,onResizeStart:Se,onResize:B,onResizeStop:Ie,resizeHandles:n?[]:["se","sw","ne","nw"],handle:(te,Oe)=>(0,mn.jsx)(Ew,{handleAxis:te,ref:Oe}),children:(0,mn.jsxs)(vn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative",overflow:"hidden",bgcolor:"background.paper",border:$.palette.mode==="dark"?`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(255,255,255,0.05)"}`:`1px solid ${$.palette.divider}`,boxShadow:$.palette.mode==="dark"?a?"0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 40px rgba(0,0,0,1), 0 4px 12px rgba(0,0,0,0.8)":"0 2px 8px rgba(0,0,0,0.6)":void 0,opacity:$.palette.mode==="dark"&&!a?.6:1,transition:"box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},children:[g&&(0,mn.jsx)(vn.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"text.secondary"},children:"Resizing..."}),(0,mn.jsx)(vn.Box,{ref:se,sx:{display:m?"block":"none",width:"100%",height:"100%",filter:"blur(3px)",opacity:.8,pointerEvents:"none",transform:"translateZ(0)"}}),(0,mn.jsx)(vn.Box,{ref:U,sx:{display:m||g?"none":"block",width:"100%",height:"100%"},children:(0,mn.jsx)(vn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",border:$.palette.mode==="dark"?`1px solid ${a?"#444":"#1e1e1e"}`:"1px solid #ccc",backgroundColor:$.palette.background.default,position:"relative",borderRadius:n?0:"4px",overflow:"hidden"},children:t})})]})})})}var ea=Ft.default.forwardRef(Aw);u();var bf=k(je(),1),mt=k(ft(),1),ta=k(Kt(),1);var Ve=k(he(),1),na=({id:e,atTop:t,isMaximized:n,onMinimize:a,onTop:r,onMaximize:i,onClose:s,onSnap:o})=>{let[l,c]=(0,bf.useState)(null),d=()=>c(null);return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(mt.IconButton,{size:"small",onClick:m=>c(m.currentTarget),children:(0,Ve.jsx)(ta.MoreVert,{fontSize:"small"})}),(0,Ve.jsxs)(mt.Menu,{anchorEl:l,open:!!l,onClose:d,children:[(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{r(),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:t?(0,Ve.jsx)(sd,{fontSize:"small",sx:{color:"info.main"}}):(0,Ve.jsx)(ta.Place,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:t?"Unpin from top":"Pin to top"})]}),(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{i(),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:n?(0,Ve.jsx)(ta.FullscreenExit,{fontSize:"small"}):(0,Ve.jsx)(md,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:n?"Restore":"Maximize"})]}),o&&(0,Ve.jsx)(mt.Divider,{}),o&&(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{o("left"),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:(0,Ve.jsx)(id,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:"Snap left"})]}),o&&(0,Ve.jsxs)(mt.MenuItem,{onClick:()=>{o("right"),d()},children:[(0,Ve.jsx)(mt.ListItemIcon,{children:(0,Ve.jsx)(ta.East,{fontSize:"small"})}),(0,Ve.jsx)(mt.ListItemText,{children:"Snap right"})]})]}),(0,Ve.jsx)(mt.IconButton,{size:"small",onClick:a,children:(0,Ve.jsx)(od,{fontSize:"small"})}),(0,Ve.jsx)(mt.IconButton,{size:"small",onClick:s,sx:{"&:hover":{color:"error.main"}},children:(0,Ve.jsx)(ta.Close,{fontSize:"small"})})]})};u();var _e=k(ft(),1),Li=k(je(),1);u();var Zg=k(Eh(),1),Rk=kl(),Xg=e=>{try{let t=["apiVersion","kind","metadata","status","spec"],n={};return t.forEach(a=>{e&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}),Object.keys(e).forEach(a=>{t.includes(a)||(n[a]=e[a])}),n}catch(t){return console.error("Error al convertir JSON a YAML:",t),{}}};function Gs(e){if(e)return JSON.parse(JSON.stringify(e))}function Ks(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r of n)if(!a.includes(r)||!Ks(e[r],t[r]))return!1;return!0}function vm(e,t,n){let a=[];if(!t)return[];let r=n?t:t.toLowerCase();function i(s,o){if(s!=null)if(typeof s=="object"){for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=Array.isArray(s)?`${o}[${l}]`:o?`${o}.${l}`:l;(n?l:l.toLowerCase()).includes(r)&&a.push(c),i(s[l],c)}}else{let l=String(s);(n?l:l.toLowerCase()).includes(r)&&a.push(o)}}return i(e,""),[...new Set(a)].filter(s=>s!=="")}function Js(e,t=2){if(!Number.isFinite(e)||e===0)return"0 Bytes";let n=1024,a=t<0?0:t,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(a))+" "+r[i]}function js(e){let t=e;return e.endsWith("n")&&(t=(+e.replace("n","")/1e9).toString()),e.endsWith("m")&&(t=(+e.replace("m","")/1e6).toString()),e.endsWith("k")&&(t=(+e.replace("k","")/1e3).toString()),+t}function Jn(e){if(!e)return 0;e=e.toString();let t=e.trim().match(/^([\d.]+)\s*([KMGTPE]i?)B?$/i);if(!t)return/^\d+$/.test(e)?+e:(console.error(`'size' format is not recognized: ${e}`),0);let n=parseFloat(t[1]),a=t[2].toUpperCase().replace(/B$/,""),r,i=1024;switch(a){case"EI":case"E":r=i**6;break;case"PI":case"P":r=i**5;break;case"TI":case"T":r=i**4;break;case"GI":case"G":r=i**3;break;case"MI":case"M":r=i**2;break;case"KI":case"K":r=i**1;break;case"":case"B":r=1;break;default:console.warn(`Unknown unit '${a}'. We assume Bytes.`),r=1;break}return n*r}function Tl(e){try{let n=Zg.CronExpressionParser.parse(e).next().toDate(),a=new Date,r=n.getTime()-a.getTime(),i=Math.floor(r/1e3%60),s=Math.floor(r/(1e3*60)%60),o=Math.floor(r/(1e3*60*60)%24),l=Math.floor(r/(1e3*60*60*24));return{date:n,isoString:n.toISOString(),timeLeft:{days:l,hours:o,minutes:s,seconds:i},description:`${l}d ${o}h ${s}m ${i}s`}}catch{return}}function Qg(e){let t=e.spec.versions.find(l=>l.served);if(!t)return"";let n=e.spec.group,a=e.spec.names.kind,r=t.name,i=t.schema.openAPIV3Schema;function s(l){if(!l)return;if(l.type==="object"){let d={};return l.required&&l.properties&&l.required.forEach(m=>{let f=s(l.properties[m]);f!==void 0&&(d[m]=f)}),Object.keys(d).length>0?d:void 0}if(l.type==="array"&&l.items){let d=s(l.items);return d!==void 0?[d]:[]}if(l.default!==void 0)return l.default;let c={string:"example-value",integer:1,number:1,boolean:!0};return l.type?c[l.type]:"todo-value"}let o={apiVersion:`${n}/${r}`,kind:a,metadata:{name:`minimal-${a.toLowerCase()}`,namespace:"default"},spec:s(i.properties?.spec)||{}};return Rk.dump(o,{indent:2,noRefs:!0})}var gt=k(he(),1),ey=e=>{let[t,n]=(0,Li.useState)(null),[a,r]=(0,Li.useState)({}),[i,s]=(0,Li.useState)({});(0,Li.useEffect)(()=>{if(e.model){let d=Gs(e.model);n(d),Object.keys(d).forEach(m=>{let f=d[m];f&&typeof f=="object"&&f.text&&typeof e.model[m]?.asyncAction=="function"&&e.model[m].asyncAction().then(g=>{r(I=>({...I,[m]:g}))})})}},[e.model]);let o=(d,m)=>{n(f=>({...f,[d]:m}))},l=(d,m,f)=>{n(g=>({...g,[d]:{...g[d],[m]:f}}))},c=()=>{t&&e.onApply(Gs(t))};return t?(0,gt.jsxs)(_e.Menu,{open:!!e.anchorParent,anchorEl:e.anchorParent,onClose:e.onClose,children:[(0,gt.jsx)(_e.Stack,{direction:"column",spacing:1.5,sx:{width:"460px",p:2},children:Object.keys(t).map((d,m)=>{let f=t[d];return(0,gt.jsxs)(_e.Stack,{direction:"row",spacing:2,sx:{alignItems:"center",justifyContent:"space-between"},children:[(0,gt.jsxs)(_e.Typography,{variant:"body2",sx:{fontWeight:"bold",textTransform:"capitalize"},children:[d,":"]}),typeof f=="boolean"&&(0,gt.jsx)(_e.Switch,{checked:f,onChange:g=>o(d,g.target.checked)}),typeof f=="number"&&(0,gt.jsx)(_e.TextField,{type:"number",variant:"standard",value:f,onChange:g=>o(d,Number(g.target.value)),slotProps:{htmlInput:{style:{textAlign:"right",width:"80px"}}}}),f&&typeof f=="object"&&f.options&&f.value!==void 0&&(0,gt.jsx)(_e.Select,{variant:"standard",value:f.value,onChange:g=>l(d,"value",g.target.value),sx:{minWidth:"100px"},children:f.options.map((g,I)=>(0,gt.jsx)(_e.MenuItem,{value:g,children:g},I))}),f&&typeof f=="object"&&f.button&&(0,gt.jsx)(_e.Button,{variant:"outlined",size:"small",onClick:()=>e.model[d].action(),children:f.button}),f&&typeof f=="object"&&f.text&&(0,gt.jsx)(_e.Typography,{variant:"body2",sx:{color:"text.secondary"},children:a[d]!==void 0?a[d]:"..."}),f&&typeof f=="object"&&Array.isArray(f.available)&&Array.isArray(f.value)&&(0,gt.jsxs)(_e.Stack,{spacing:.5,sx:{width:"100%",mt:.5},children:[f.available.length>8&&(0,gt.jsx)(_e.TextField,{size:"small",variant:"outlined",placeholder:"Filter...",value:i[d]??"",onChange:g=>s(I=>({...I,[d]:g.target.value})),slotProps:{htmlInput:{style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,gt.jsx)(_e.List,{dense:!0,disablePadding:!0,sx:{maxHeight:200,overflowY:"auto",width:"100%",border:"1px solid",borderColor:"divider",borderRadius:1},children:f.available.filter(g=>!i[d]||g.toLowerCase().includes(i[d].toLowerCase())).map((g,I)=>(0,gt.jsx)(_e.ListItem,{disablePadding:!0,sx:{px:1},children:(0,gt.jsx)(_e.FormControlLabel,{control:(0,gt.jsx)(_e.Checkbox,{size:"small",checked:f.value.includes(g),onChange:C=>{let L=C.target.checked?[...f.value,g]:f.value.filter(U=>U!==g);l(d,"value",L)}}),label:(0,gt.jsx)(_e.Typography,{variant:"caption",children:g})})},I))})]})]},m)})}),(0,gt.jsxs)(_e.DialogActions,{sx:{p:2},children:[(0,gt.jsx)(_e.Button,{onClick:e.onClose,color:"inherit",children:"Cancel"}),(0,gt.jsx)(_e.Button,{onClick:c,variant:"contained",color:"primary",children:"Apply"})]})]}):null};u();var Ek=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t)%360},ty=(e,t="light")=>{if(!e)return{dot:"transparent",tabBg:t==="dark"?"#2a2a2a":"#ebebeb"};let n=Ek(e);return{dot:`hsl(${n}, 55%, 45%)`,tabBg:t==="dark"?`hsl(${n}, 30%, 26%)`:`hsl(${n}, 22%, 89%)`}},Tr=e=>({headers:{Authorization:e?"Bearer "+e:"","X-Kwirth-App":"true"}});var tn=k(Ct(),1),Q=k(he(),1),ay=e=>{let t=e.content;if(!(!t?.externalChannel||!t.externalChannelObject))return{channel:t.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.STOP,flow:Re.EInstanceMessageFlow.REQUEST,instance:t.externalChannelObject.instanceId,accessKey:e.channelObject?.accessString,view:t.externalChannelObject.view,scope:Re.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Re.EInstanceMessageType.SIGNAL}},Dl=e=>{let t=e.content;if(!t?.ws)return;let n=t.ws,a=ay(e);a&&t.externalChannelStarted&&n.readyState===WebSocket.OPEN&&n.send(JSON.stringify(a)),t.externalChannel&&t.externalChannelObject&&t.externalChannel.stopChannel(t.externalChannelObject),n.onmessage=null,n.onerror=null,n.onclose=null,n.close(),t.ws=void 0,t.externalChannelStarted=!1,t.externalChannelPaused=!1},ry=e=>{let t=e.data,n=(0,En.useRef)(null),a=(0,En.useRef)(null),[r,i]=(0,En.useState)((0,Q.jsx)(Q.Fragment,{})),[s,o]=(0,En.useState)(void 0),[l,c]=(0,En.useState)(void 0),[d,m]=(0,En.useState)(e.isMaximized),[,f]=(0,En.useState)(0),g=()=>f(V=>V+1);(0,En.useEffect)(()=>{if(!t.isInitialized){if(t.isInitialized=!0,t.content=I(t.channelId),!t.content)return;switch(t.channelId){case"log":{let V=t.content?.externalChannel;if(V?.prepareExternalChannel){let B=V.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.content.externalChannelObject.config.maxMessages=t.settings?.logLines??5e3}t.formConfig={lines:t.settings?.logLines??5e3,showNames:!1,timestamp:!1,startDiagnostics:!1};break}case"metrics":{let V=t.content?.externalChannel;if(V?.prepareExternalChannel){let Oe=V.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=Oe.data,t.content.externalChannelObject.config=Oe.config,t.content.externalChannelObject.instanceConfig=Oe.instanceConfig}let B=Array.from(t.channelObject?.metricsList?.keys()||[]).filter(Oe=>Oe.startsWith("container_")||Oe.startsWith("kwirth_")),de=["kwirth_container_cpu_percentage","kwirth_container_memory_percentage","kwirth_container_transmit_mbps","kwirth_container_receive_mbps","kwirth_container_write_mbps","kwirth_container_read_mbps"],te=t.content?.externalChannelObject?.instanceConfig?.metrics;t.formConfig={aggregate:!0,merge:!1,type:{value:"line",options:["line","bar","area"]},width:3,depth:50,legend:!0,metrics:{available:B,value:te?.length?te:de}};break}case"fileman":t.formConfig={},L(t.content);break;case"trivy":{let V=t.content?.externalChannel;if(V?.prepareExternalChannel){let de=V.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=de.data,t.content.externalChannelObject.config=de.config,t.content.externalChannelObject.instanceConfig=de.instanceConfig}let B=t.content.externalChannelObject.instanceConfig;t.formConfig={ignoreCritical:B?.ignoreCritical??!1,ignoreHigh:B?.ignoreHigh??!1,ignoreMedium:B?.ignoreMedium??!1,ignoreLow:B?.ignoreLow??!0,Status:{text:"Status",asyncAction:async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}}},"Install Trivy operator":{button:"Install",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,tn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}},"Remove Trivy operator":{button:"Remove",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,tn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}}};break}case"news":t.formConfig={maxItems:50,feeds:{available:["kubernetes","ai"],value:["kubernetes","ai"]}};break;default:{let V=t.content?.externalChannel;if(V?.prepareExternalChannel){let B=V.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.formConfig=B.formConfig}else t.formConfig={};break}}}},[]),(0,En.useEffect)(()=>{if(t.channelId==="ops"){let V=async B=>{if(!a.current?.contains(document.activeElement)||["Control","Alt","Shift","Meta"].includes(B.key))return;let de=t.content.termId||e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name+"/"+e.container,te=t.content?.externalChannelObject?.data?.terminalManager?.terminals.get(de),Oe=te?.socket;if(!Oe||Oe.readyState!==WebSocket.OPEN)return;let He=B.key.toLowerCase(),Me=null;if(B.ctrlKey,B.ctrlKey&&B.shiftKey&&He==="c"){B.preventDefault();let kt=te.term?te.term.getSelection():window.getSelection()?.toString();kt&&await navigator.clipboard.writeText(kt);return}if(B.ctrlKey&&B.shiftKey&&He==="v"){B.preventDefault();try{let kt=await navigator.clipboard.readText();kt&&Oe.send(kt)}catch(kt){console.error("Clipboard could not be accessed",kt)}return}Me=Ak(B),!Me&&B.ctrlKey&&(Me=Pk(B.key)),!Me&&B.altKey&&B.key.length===1&&(Me="\x1B"+B.key),Me||(Me=Nk[B.key]||(B.key.length===1?B.key:null)),Me&&(B.preventDefault(),B.stopPropagation(),Oe.send(Me))};return window.addEventListener("keydown",V,!0),()=>{window.removeEventListener("keydown",V,!0)}}},[e.container,e.selectedFiles,t.content?.externalChannelObject]),fc(async()=>{if(t.content&&!t.content.externalChannelObject.data&&await t.content.externalChannel.initChannel(t.content.externalChannelObject),t.options.autostart&&t.content&&!t.content.externalChannelStarted){for(;t.content?.ws?.readyState!==WebSocket.OPEN;)await new Promise(V=>setTimeout(V,10));t.content?.ws?.readyState===WebSocket.OPEN&&U()}},[]);let I=V=>{let B=(0,Ml.createChannelInstance)(t.frontChannels.get(V));if(!B){console.log("Invaid channel instance created");return}let de={ws:void 0,externalChannel:B,externalChannelObject:{isDesktop:t.isDesktop,clusterName:t.channelObject?.clusterName,instanceId:"",view:t.contentView,namespace:t.contentView===Re.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(te=>te.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(te=>te.data.origin.metadata.namespace))].join(","),group:t.contentView===Re.EInstanceConfigView.GROUP?e.selectedFiles.map(te=>te.data.origin.kind+"+"+te.data.origin.metadata.name).join(","):"",pod:t.contentView===Re.EInstanceConfigView.POD?e.selectedFiles.map(te=>te.data.origin.metadata.name).join(","):"",container:t.contentView===Re.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",config:void 0,data:void 0,instanceConfig:void 0,channelId:B.channelId},externalChannelStarted:!1,externalChannelPaused:!1,externalChannelPending:!1,settings:t.settings,termId:e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name.split("+")[0]+"/"+e.container};return B.requirements.notifier&&(de.externalChannelObject.notify=t.channelObject?.notify),B.requirements.metrics&&(de.externalChannelObject.metricsList=t.channelObject?.metricsList),B.requirements.clusterUrl&&Object.defineProperty(de.externalChannelObject,"clusterUrl",{configurable:!0,enumerable:!0,get:()=>t.channelObject?.clusterUrl}),B.requirements.accessString&&(de.externalChannelObject.accessString=t.channelObject?.accessString),de.ws=new WebSocket(t.channelObject?.clusterUrl),de.ws.onmessage=te=>C(te),de.ws.onerror=te=>()=>{console.log("WebSocket error:"+te,new Date().toISOString())},de.ws.onclose=te=>{console.log("WebSocket disconnect:"+te.reason,new Date().toISOString())},B.requirements.webSocket&&(de.externalChannelObject.webSocket=de.ws),t.onOpenExternal&&(de.externalChannelObject.openExternal=t.onOpenExternal),de},C=V=>{let B;try{B=JSON.parse(V.data)}catch(de){console.log(de.stack),console.log(V.data);return}if(!(B.action===Re.EInstanceMessageAction.PING||B.channel===""))if(t.frontChannels.has(B.channel)){let de=t.content.externalChannel?.processChannelMessage(t.content.externalChannelObject,V);de&&(de.action===Im.EChannelRefreshAction.REFRESH?t.onRefresh():de.action===Im.EChannelRefreshAction.STOP&&le())}else console.log("Received invalid channel in message: ",B),t.onNotify(void 0,ny.ENotifyLevel.ERROR,`'Received invalid channel in message: ${B.channel}`)},L=V=>{let B={paused:!1,started:!1,files:[],currentPath:"",ri:void 0},de={notify:t.onNotify};V.externalChannelObject.webSocket=t.content.ws,V.externalChannelObject.data=B,V.externalChannelObject.config=de},U=()=>{if(!(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)){if(t.content.externalChannelPaused){t.content.externalChannel.continueChannel(t.content.externalChannelObject);let V={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.CONTINUE,flow:Re.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.contentView,scope:Re.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Re.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!1,t.content.ws.send(JSON.stringify(V))}else{t.content.externalChannel.startChannel(t.content.externalChannelObject);let V={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.START,flow:Re.EInstanceMessageFlow.REQUEST,instance:"",accessKey:t.channelObject?.accessString,scope:Re.EInstanceConfigScope.NONE,view:t.contentView,namespace:t.contentView===Re.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(B=>B.data.origin.metadata.namespace))].join(","),group:t.contentView===Re.EInstanceConfigView.GROUP?e.selectedFiles.map(B=>B.data.origin.kind+"+"+B.data.origin.metadata.name).join(","):"",pod:t.contentView===Re.EInstanceConfigView.POD?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):"",container:t.contentView===Re.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",type:Re.EInstanceMessageType.SIGNAL};V.scope=t.content.externalChannel.getScope()||"",V.data=t.content.externalChannelObject.instanceConfig,t.content.ws.send(JSON.stringify(V)),t.content.externalChannelStarted=!0,t.content.externalChannelPaused=!1}g()}},se=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;t.content.externalChannel.pauseChannel(t.content.externalChannelObject);let V={channel:t.content.externalChannel.channelId,objects:Re.EInstanceConfigObject.PODS,action:Re.EInstanceMessageAction.PAUSE,flow:Re.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Re.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Re.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!0,V.action=Re.EInstanceMessageAction.PAUSE,t.content.ws.send(JSON.stringify(V)),g()},le=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let V=ay(t);t.content.externalChannel.stopChannel(t.content.externalChannelObject),t.content.ws.send(JSON.stringify(V)),t.content.externalChannelStarted=!1,t.content.externalChannelPaused=!1,g()},$=()=>{let V=(0,Q.jsx)(Q.Fragment,{});switch(t.channelId){case"log":V=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Log"}),(0,Q.jsx)(ye.Divider,{}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can configure log depth (number of lines) on the configuration menu."}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"Other configuration options, like Start Diagnostics, are not available to Magnify, but you can use them in log channel."})]});break;case"metrics":V=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Metrics"}),(0,Q.jsx)(ye.Divider,{}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can change every individual chart type, but it won't be saved. Next time you'll need to reconfigure it again."}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"Data visualization refreshment depends on your Kwirth front configuration, your Magnify configuration."}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"On the other side, data freshness depends on Kwirth backend configuration. If you ser a visualization refresh lower than your data freshness, you'll get repeated values on different intervals."})]});break;case"ops":V=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Ops"}),(0,Q.jsx)(ye.Divider,{}),(0,Q.jsxs)(ye.Typography,{sx:{fontSize:12},children:["You can use clipboard functions by pressing ",(0,Q.jsx)("b",{children:"Ctrl+Shift+C"})," for copying and ",(0,Q.jsx)("b",{children:"Ctrl+Shift+V"})," for pasting"]}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can minimize this window and the connection will keep open, or you can close this window and the connection to the container will be closed."})]});break;case"fileman":V=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Fileman"}),(0,Q.jsx)(ye.Divider,{}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"You can refresh filesystem data everytime you suspect what you are viewing is not acccurate. Just click on top-righ icon to refresh content."}),(0,Q.jsx)(ye.Typography,{sx:{fontSize:12},children:"Upload and Download capabilities depend on your kind of Kwirth deployment. These actions are not available for all architectures. They should be available, at least, on Kubernetes Deployment. Accessing them via Electron may not be working."})]});break;case"trivy":V=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Trivy"}),(0,Q.jsx)(ye.Divider,{}),(0,Q.jsx)(ye.Typography,{variant:"body2",children:"Kwirth Trivy channel is a powerful tool for managing your workload security. It is based on Trivy Operator, which you can install by your own or use Kwirth for deploying Trivy without any effort (perform installation from a Trivy channel or from 'Settings' on this window)."}),(0,Q.jsx)(ye.Typography,{variant:"body2",children:"Once Trivy Operator is installed, you will see here Trivy information related to artifacts you've selected in Magnify. You can select, for instance, several pods and access this Trivy channel for viewing Trivy information about those set of pods."}),(0,Q.jsx)(ye.Typography,{variant:"body2",children:"From the asset list you will be able to see: Vulnerabilities report, Config Audit report, Exposed secrets report and also a SBOM (Software Bill of Materials, where you can analyze pacakges and its dependencies)."})]});break;case"pinocchio":V=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Pinocchio"}),(0,Q.jsx)(ye.Divider,{}),(0,Q.jsx)(ye.Typography,{variant:"body2",children:"This is real WIP."})]});break;default:{let B=t.content?.externalChannel?.getExternalHelpContent?.();B&&(V=(0,Q.jsx)(Q.Fragment,{children:B}));break}}return(0,Q.jsx)(ye.Popover,{anchorEl:s,open:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{width:400,maxHeight:500}}},onClose:()=>o(void 0),children:(0,Q.jsx)(ye.Box,{sx:{p:2,display:"flex",alignItems:"left",gap:1,flexDirection:"column"},children:V})})},me=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let V=t.content.externalChannel.TabContent,B={channelObject:t.content.externalChannelObject,onEnd:()=>e.onClose(e.id)};return B.channelObject.channelId==="ops"?(0,Q.jsx)("div",{ref:a,children:(0,Q.jsx)(V,{...B})}):(0,Q.jsx)(V,{...B})},E=()=>{e.onFocus&&e.onFocus()},oe=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},Se=V=>{m(!1),n.current?.snapTo(V)},Ie=V=>{switch(c(void 0),t.formConfig=V,t.channelId){case"log":{let te=t.content.externalChannelObject.config;te.maxMessages=V.lines,te.showNames=V.showNames,te.startDiagnostics=V.startDiagnostics;let Oe=t.content.externalChannelObject.instanceConfig;Oe.timestamp=V.timestamp,le(),U();break}case"metrics":let B=t.content.externalChannelObject.config,de=t.content.externalChannelObject.instanceConfig;B.width=V.width,B.merge=V.merge,B.depth=V.depth,B.legend=V.legend,B.chart=V.type?.value??B.chart,de.aggregate=V.aggregate,de.metrics=V.metrics?.value??de.metrics,le(),U();break;case"shell":break;case"fileman":break;case"trivy":{let te=t.content.externalChannelObject.instanceConfig;te.ignoreCritical=V.ignoreCritical??!1,te.ignoreHigh=V.ignoreHigh??!1,te.ignoreMedium=V.ignoreMedium??!1,te.ignoreLow=V.ignoreLow??!0,t.formConfig.Status.asyncAction=async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}},t.formConfig["Install Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,tn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))},t.formConfig["Remove Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,tn.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,tn.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,tn.MsgBoxOk)("Trivy remove","Running instance is not yet available, please try again in a few seconds",i))};break}case"news":{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,V),le(),U();break}case"pinocchio":break;default:{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,V)&&g();break}}};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(ea,{ref:n,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:E,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Q.jsx)(ye.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Q.jsxs)(ye.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,Q.jsx)(ye.IconButton,{size:"small",onClick:U,disabled:!t.options.autostart||t.content?.externalChannelStarted&&!t.content?.externalChannelPaused,children:(0,Q.jsx)(ua.PlayArrow,{fontSize:"small"})}),(0,Q.jsx)(ye.IconButton,{size:"small",onClick:se,disabled:!t.options.pauseable||!t.content?.externalChannelStarted||t.content?.externalChannelPaused,children:(0,Q.jsx)(ua.Pause,{fontSize:"small"})}),(0,Q.jsx)(ye.IconButton,{size:"small",onClick:le,disabled:!t.options.stoppable||!t.content?.externalChannelStarted,children:(0,Q.jsx)(ua.Stop,{fontSize:"small"})}),(0,Q.jsx)(ye.IconButton,{size:"small",disabled:!t.options.configurable,onClick:V=>c(V.target),children:(0,Q.jsx)(ua.Settings,{fontSize:"small"})}),(0,Q.jsx)(ye.IconButton,{size:"small",onClick:V=>o(V.currentTarget),children:(0,Q.jsx)(ua.Info,{fontSize:"small"})}),(0,Q.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,Q.jsxs)(ye.Typography,{children:[(0,Ml.getChannelIconOf)(t.content?.externalChannel),"\xA0",e.title]}),(0,Q.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,Q.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:oe,onClose:()=>e.onClose(e.id),onSnap:Se})]})}),(0,Q.jsx)(ye.DialogContent,{sx:{display:"flex",flexDirection:"column",p:0,overflow:"hidden",height:"100%",minHeight:0,paddingBottom:1},children:me()})]}),s&&$(),l&&(0,Q.jsx)(ey,{anchorParent:l,model:t.formConfig,onApply:Ie,onClose:()=>c(void 0)}),r]})},Nk={ArrowUp:"\x1B[A",ArrowDown:"\x1B[B",ArrowRight:"\x1B[C",ArrowLeft:"\x1B[D",Home:"\x1B[H",End:"\x1B[F",PageUp:"\x1B[5~",PageDown:"\x1B[6~",Insert:"\x1B[2~",Delete:"\x1B[3~",Backspace:"\x7F",Tab:" ",Enter:"\r",Escape:"\x1B",F1:"\x1BOP",F2:"\x1BOQ",F3:"\x1BOR",F4:"\x1BOS",F5:"\x1B[15~",F6:"\x1B[17~",F7:"\x1B[18~",F8:"\x1B[19~",F9:"\x1B[20~",F10:"\x1B[21~",F11:"\x1B[23~",F12:"\x1B[24~"},Ak=e=>{let{key:t,ctrlKey:n,altKey:a,shiftKey:r}=e,i=1;if(r&&(i+=1),a&&(i+=2),n&&(i+=4),i===1)return null;let s={F1:"P",F2:"Q",F3:"R",F4:"S"};if(s[t])return`\x1B[1;${i}${s[t]}`;let o={F5:15,F6:17,F7:18,F8:19,F9:20,F10:21,F11:23,F12:24};if(o[t])return`\x1B[${o[t]};${i}~`;let l={ArrowUp:"A",ArrowDown:"B",ArrowRight:"C",ArrowLeft:"D",Home:"H",End:"F"};if(l[t])return`\x1B[1;${i}${l[t]}`;let c={Insert:2,Delete:3,PageUp:5,PageDown:6};return c[t]?`\x1B[${c[t]};${i}~`:null};function Pk(e){let t=e.toLowerCase().charCodeAt(0);return t>=97&&t<=122?String.fromCharCode(t-96):null}u();var jn=k(je(),1),ut=k(ft(),1),Cx=k(Kt(),1);u();var dx=k(Kt(),1),fx=k(Ct(),1),Y=k(ft(),1);var Nn=k(je(),1),px=k(Fl(),1),hx=k(_l(),1),v=k(he(),1),Ae={get:px.default,set:hx.default};function VM(e){let t=[],n=Math.floor(e.days);n>0&&(t.push(`${n}d`),e.days-=e.days);let a=Math.floor(e.hours);(a>0||t.length>0)&&(t.push(`${a}h`),e.hours-=e.hours);let r=Math.floor(e.minutes);return r>0&&t.length<2&&t.push(`${r}m`),t.slice(0,2).join("")}var gx=e=>{let t=0,n=15,a=Nn.default.useMemo(()=>!e.sections||!e.object.data?!1:e.sections.some(c=>c.items.some(d=>d.format==="edit"||d.style&&d.style.includes("edit"))),[e.sections,e.object.data]);Nn.default.useEffect(()=>{e.onContainsEdit&&e.onContainsEdit(a)},[a,e.onContainsEdit]);let r=(c,d)=>{let m;if(d.includes("||")){let f=d.split("||");f[f.length-1]==="$default"?m="$default":m=f[f.length-1];for(let g of f)if(Ae.get(c,g)){m=Ae.get(c,g);break}}else m=Ae.get(c,d);return m},i=(c,d,m,f,g,I,C,L,U)=>{let se=m;if(m.startsWith("$"))return(0,v.jsx)(Y.Typography,{variant:"body2",sx:{fontWeight:g.includes("bold")?"700":""},children:m.substring(1)});let le=!1;m.startsWith("#")&&(m=m.substring(1),le=!0);let $=JSON.parse(JSON.stringify(d));if(m.includes("|")&&m.includes(":")){let E=m.split(":")[1],oe=m.split(":")[0].split("|"),Se=[],Ie=[];Ae.get($,oe[0])&&(Se=Ae.get($,oe[0]).map(V=>V[E]));for(let V of Se){let B=Ae.get($,oe[0]).filter(te=>te[E]===V),de=Ae.get($,oe[1]).filter(te=>te[E]===V);if(B.length===1&&de.length===1){let te={...B[0],...de[0]};Ie.push(te)}}Ae.set($,oe[0],Ie),m=oe[0]}let me=g&&g.includes("header")&&U?U.text+":\xA0":"";switch(f){case"age":let E=Date.parse(r($,m)),Se=new Date().getTime()-E,Ie=Math.floor(Se/(1e3*60*60*24));Se-=Ie*(1e3*60*60*24);let V=Math.floor(Se/(1e3*60*60));Se-=V*(1e3*60*60);let B=Math.floor(Se/(1e3*60));return(0,v.jsx)(Y.Typography,{variant:"body2",children:VM({days:Ie,hours:V,minutes:B})});case"boolean":let te=!1;m==="@string[]"&&L?te=!!L(c,$,e.onLink)[0]:te=!!Ae.get($,m);let Oe=g.filter(A=>A.startsWith(te+":"));if(g&&Oe.length===1){let A=Oe[0].split(":");return te?(0,v.jsx)(Y.Typography,{sx:{color:A[2]},variant:"body2",children:A[1]}):(0,v.jsx)(Y.Typography,{sx:{color:A[2]},variant:"body2",children:A[1]})}else return te?(0,v.jsx)(Y.Typography,{sx:{color:"success.main"},variant:"body2",children:"OK"}):(0,v.jsx)(Y.Typography,{sx:{color:"error.main"},variant:"body2",children:"ko"});case"string":let He="";if((m==="@string"||m==="@jsx")&&U?.invoke)return(0,v.jsx)(v.Fragment,{children:U.invoke(c,$,e.onLink)});if(m==="@string[]"&&L?He=L(c,$,e.onLink)[0]:He=r($,m),U?.processValue)try{He=U.processValue(He)}catch{}if(g&&g.includes("mb")&&(He=Js(Jn(He))),g&&g.includes("edit"))return(0,v.jsxs)(v.Fragment,{children:[me,i(c,d,m,"edit",g,I,[],void 0)]});{let A=He,ee="",ce=[],$e=(0,v.jsx)(v.Fragment,{children:A});if(A&&g){let _t=g.find(Le=>Le.startsWith("char:"));if(_t){let Le=+_t.substring(5);A&&A.length>Le&&($e=(0,v.jsx)(v.Fragment,{children:A.substring(0,Le)+"..."}))}g.includes("bold")&&(ee="700"),ce=g.filter(Le=>Le.startsWith(He+":"));let rt=g.find(Le=>Le.startsWith("color:"));rt&&(ce=[rt]);let Ln=g.find(Le=>Le.startsWith("link:"));if(Ln&&le){let Le=Ln.split(":");Le.length<4&&console.log("link<4",Ln);for(let ln=1;ln<=3;ln++)Le[ln].startsWith("$")?Le[ln]=Le[ln].substring(1):Le[ln]=Ae.get($,Le[ln]);Le[3]==="$namespace"&&(Le[3]=c.metadata.namespace),$e=(0,v.jsx)("a",{href:"#",onClick:()=>e.onLink(Le[1],A,Le[3]),children:A})}}if(ce.length>0)return(0,v.jsxs)(Y.Typography,{component:"div",color:ce[0].split(":")[1],variant:"body2",sx:{fontWeight:ee},children:[me,$e]});if(g){let _t=g.filter(rt=>rt.startsWith("property:"));if(_t.length>0)for(let rt of _t){let Ln=rt.split(":");if(Ae.get($,Ln[1])===Ln[2])return(0,v.jsxs)(Y.Typography,{component:"div",color:Ln[3],variant:"body2",sx:{fontWeight:ee},children:[me,$e]})}}return(0,v.jsxs)(Y.Typography,{component:"div",variant:"body2",sx:{fontWeight:ee},children:[me,$e]})}case"edit":let Me=Ae.get($,m);return g.includes("base64")&&(Me=atob(Me)),g.includes("multiline")?(0,v.jsx)(Y.TextareaAutosize,{name:m,defaultValue:Me,style:{width:"100%",marginTop:1,marginBottom:1,resize:"vertical",minHeight:"64px"},onChange:A=>e.onChangeData(m,A.target.value)}):(0,v.jsx)(Y.TextField,{name:m,defaultValue:Me,maxRows:5,sx:{width:"100%",mt:1,mb:1},size:"small",onChange:A=>e.onChangeData(m,A.target.value)});case"booleankey":return Ae.get($,m)===!0?(0,v.jsx)(v.Fragment,{children:m}):(0,v.jsx)(v.Fragment,{});case"keylist":let kt=Object.keys(Ae.get($,m));return(0,v.jsx)(v.Fragment,{children:i(c,{keys:kt},"keys","stringlist",g,I,[],void 0)});case"stringlist":let bt=[];if(m==="@string[]"&&L?bt=L(c,$,e.onLink):bt=Ae.get($,m),!bt)return(0,v.jsx)(v.Fragment,{});if(U?.processValue)try{for(let A=0;A<bt.length;A++)bt[A]=U.processValue(bt[A])}catch{}if(g.includes("column")){let A=se.startsWith("#")?"#":"";return(0,v.jsx)(Y.Stack,{direction:"column",children:bt.map((ee,ce)=>(0,v.jsx)(Y.Typography,{component:"div",variant:"body2",children:i(c,bt,A+"["+ce+"]","string",g,I+1,void 0,void 0)},ce))})}else{let A=bt.join(",\xA0"),ee=g.filter(ce=>ce.startsWith(A+":"));return ee.length>0?(0,v.jsxs)(Y.Typography,{color:ee[0].split(":")[1],variant:"body2",children:[me,A]}):(0,v.jsxs)(Y.Typography,{variant:"body2",children:[me,A]})}case"objectlist":let Yt=[];return m==="@string[]"&&L||m==="@object[]"&&L?Yt=L(c,$,e.onLink):Yt=Ae.get($,m),Yt?g.includes("table")&&C?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",sx:{width:"100%"},children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:C.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A.text},ee))})}),(0,v.jsx)(Y.TableBody,{children:Yt.map((A,ee)=>(0,v.jsx)(Y.TableRow,{children:C.map((ce,$e)=>{let _t=C.find(rt=>rt.name===ce.name);return!_t||!C?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)(Y.TableCell,{children:[" ",typeof Ae.get(A,ce.source[0])=="object"?Array.isArray(Ae.get(A,ce.source[0]))?(0,v.jsx)(v.Fragment,{children:i(c,A,ce.source[0],_t.format,ce.style||[],I+1,_t.items,void 0)}):(0,v.jsx)(v.Fragment,{children:i(c,A,ce.source[0],C.find(rt=>rt.source[0]===ce.source[0]).format,C.find(rt=>rt.source[0]===ce.source[0]).style||[],I+1,[_t],void 0)}):(0,v.jsx)(v.Fragment,{children:s(c,A,ce,I+1)})]},$e)})},ee))})]})}):(0,v.jsx)(v.Fragment,{children:Yt.map((A,ee)=>C?(0,v.jsx)(Y.Stack,{direction:g.includes("column")?"column":"row",sx:{width:g.includes("fullwidth")?"100%":"auto"},children:g.includes("column")?C.map((ce,$e)=>(0,v.jsx)(Nn.default.Fragment,{children:s(c,A,ce,I+1)},$e)):C.map((ce,$e)=>(0,v.jsxs)(Nn.default.Fragment,{children:[s(c,A,ce,I+1)," ",(0,v.jsx)(v.Fragment,{children:ee<Yt.length-1?",\xA0":""})," "]},$e))},ee):(0,v.jsx)(Nn.default.Fragment,{},ee))}):(0,v.jsx)(v.Fragment,{});case"objectobject":return g.includes("table")?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)[0]).map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A},ee))})}),(0,v.jsx)(Y.TableBody,{children:Ae.get($,m).map((A,ee)=>(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)[0]).map((ce,$e)=>(0,v.jsx)(Y.TableCell,{children:i(c,A,m,"string",[],I+1,[],void 0)},$e))},ee))})]})}):(0,v.jsx)(v.Fragment,{children:Ae.get($,m).map((A,ee)=>C?(0,v.jsx)(Nn.default.Fragment,{children:C.map((ce,$e)=>(0,v.jsx)(Nn.default.Fragment,{children:o(c,A,ce,n,I+1)},$e))},ee):(0,v.jsx)(v.Fragment,{}))});case"objectprops":return Ae.get($,m)?g&&g.includes("table")?U&&U?.items?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:U.items.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A.text},ee))})}),(0,v.jsx)(Y.TableBody,{children:(0,v.jsx)(Y.TableRow,{children:U.items.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:i(c,$,A.source[0],A.format,A.style||[],I)},ee))})})]})}):(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)).map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A},ee))})}),(0,v.jsx)(Y.TableBody,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Ae.get($,m)).map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:Ae.get($,m+".['"+A+"']")},ee))})})]})}):C?(0,v.jsx)(v.Fragment,{children:C.map((A,ee)=>(0,v.jsxs)(Y.Stack,{direction:A.style&&A.style.includes("column")?"column":"row",children:[(0,v.jsxs)(Y.Typography,{variant:"body2",sx:{fontWeight:g&&g.includes("keybold")?"700":""},children:[A.text,":\xA0"]}),s(c,$,A,I+1)]},ee))}):(0,v.jsx)(v.Fragment,{children:Object.keys(Ae.get($,m)).map((A,ee)=>g&&g.includes("edit")?(0,v.jsxs)(Y.Stack,{direction:"column",sx:{mt:1},children:[(0,v.jsxs)(Y.Stack,{direction:"row",children:[(0,v.jsx)(Y.Tooltip,{title:A,placement:"top",children:(0,v.jsx)(Y.Typography,{variant:"body2",sx:{fontWeight:g.includes("keybold")?"700":""},children:A})}),g.includes("lockicon")&&(0,v.jsx)(dx.Https,{fontSize:"small",sx:{color:"error.main"}})]}),i(c,$,m+".['"+A+"']","edit",g,I+1,[],void 0)]},ee):(0,v.jsxs)(Y.Stack,{direction:"row",children:[(0,v.jsxs)(Y.Typography,{variant:"body2",sx:{fontWeight:g.includes("keybold")?"700":""},children:[A,":\xA0"]}),i(c,$,m+".['"+A+"']","string",g,I+1,[],void 0)]},ee))}):(0,v.jsx)(v.Fragment,{});case"table":return C?Ae.get($,m)&&(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:C.map((A,ee)=>(0,v.jsx)(Y.TableCell,{children:A.text},ee))})}),(0,v.jsx)(Y.TableBody,{children:Ae.get($,m).map((A,ee)=>(0,v.jsx)(Y.TableRow,{children:C.map((ce,$e)=>(0,v.jsx)(Y.TableCell,{children:s(c,A,ce,I+1)},$e))},ee))})]})}):(0,v.jsx)(v.Fragment,{});default:return(0,v.jsx)(v.Fragment,{})}},s=(c,d,m,f)=>{let g=m.source[0].replace("#","");if(!g.startsWith("@")&&m.style?.includes("ifpresent")&&Ae.get(d,g)===void 0)return(0,v.jsx)(v.Fragment,{});if(m.format==="bar"){let I=Ae.get(d,m.source[0]),C=Ae.get(d,m.source[1]);if(!I||!C)return(0,v.jsx)(v.Fragment,{});let L=+I/+C*100;return(0,v.jsxs)(Y.Stack,{direction:"row",sx:{width:"100%",alignItems:"center"},children:[(0,v.jsx)(Y.LinearProgress,{variant:"determinate",value:L>100?100:L,sx:{width:"90%"}}),"\xA0",(0,v.jsxs)(Y.Typography,{variant:"body2",children:[I||0,"/",C||0]})]})}else return(0,v.jsx)(Y.Stack,{direction:m.style?.includes("column")?"column":"row",sx:{width:"100%",alignItems:m.style?.includes("row")?"center":""},children:m.source.map((I,C)=>(0,v.jsx)(Nn.default.Fragment,{children:i(c,d,I,m.format,m.style||[],f+1,m.items,m.invoke,m)},C))})},o=(c,d,m,f,g)=>{let I="class-kwirth-"+t,C=m.source[0].replace("#","");if(!C.startsWith("@")&&m.style?.includes("ifpresent")&&Ae.get(d,C)===void 0)return(0,v.jsx)(v.Fragment,{});if(m.source&&C==="@jsx[]")return m.invoke?(0,v.jsx)(Y.Stack,{direction:m.style&&m.style.includes("column")?"column":"row",sx:{alignItems:"stretch",width:"100%"},children:m.invoke(c,d,e.onLink).map((L,U)=>(0,v.jsx)(Nn.default.Fragment,{children:L},U))}):(0,v.jsx)(v.Fragment,{children:"Inexistent Invoke"});{let L=0;return m.source&&Ae.get(d,m.source[0])&&(L=Object.keys(Ae.get(d,m.source[0])).length),t++,(0,v.jsxs)(Y.Stack,{direction:"row",sx:{alignItems:"baseline"},children:[m.text===""&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(Y.Typography,{component:"div",variant:"body2",sx:{width:"100%"},children:s(c,d,m,g)})}),m.text!==""&&(0,v.jsxs)(v.Fragment,{children:[L>1&&m.style&&m.style.includes("collapse")?(0,v.jsxs)(Y.Stack,{direction:"row",sx:{width:`${f-2}%`,alignItems:"center"},children:[(0,v.jsx)(Y.Typography,{variant:"body2",children:m.text}),(0,v.jsx)("svg",{className:"svg-"+I,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{let U=document.getElementsByClassName(I)[0];U&&(U.style.height==="auto"?(U.style.height="22px",document.getElementsByClassName("svg-"+I)[0].innerHTML='<path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" />'):(U.style.height="auto",document.getElementsByClassName("svg-"+I)[0].innerHTML='<path d="M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z" />'))},children:(0,v.jsx)("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z"})})]}):(0,v.jsx)(Y.Typography,{variant:"body2",sx:{width:`${f}%`},children:m.text}),L>1&&m.style&&m.style.includes("collapse")?(0,v.jsx)("div",{className:I,style:{height:"22px",overflow:"hidden"},children:s(c,d,m,g)}):s(c,d,m,g)]})]})}},l=(c,d)=>{if(c)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Y.Typography,{sx:{mt:2,mb:1},variant:"body1",children:(0,v.jsx)("b",{children:d.text})}),d.items.map((m,f)=>(0,v.jsx)(Nn.default.Fragment,{children:o(c,c,m,n,0)},f))]})};if(e.object.data)if(e.sections){let c=e.sections.map((d,m)=>(0,v.jsx)(Nn.default.Fragment,{children:l(e.object.data[d.root],d)},m));return(0,v.jsx)(v.Fragment,{children:c})}else return(0,v.jsx)(fx.JsonBlock,{value:e.object.data.origin});else return console.log(e.object),(0,v.jsx)(v.Fragment,{children:"No data"})};u();var $t=k(ft(),1),yx=k(je(),1),nn=k(he(),1),zl=e=>((0,yx.useEffect)(()=>{e.file&&e.file.data.origin.status.containerStatuses?.length===1&&e.onContainerSelected(e.channel,e.file,e.file.data.origin.status.containerStatuses[0].name)},[e.file,e.channel,e.onContainerSelected]),!e.file||!e.file.data.origin.status.containerStatuses||e.file.data.origin.status.containerStatuses.length===1?null:(0,nn.jsx)($t.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,nn.jsxs)($t.MenuList,{dense:!0,sx:{minWidth:120},children:[e.file.data.origin.status.containerStatuses.map(t=>{let n="orange";return t.started?(n="green",e.file&&e.file.data.origin.metadata.deletionTimestamp&&(n="blue")):t.state.terminated&&(n="gray"),(0,nn.jsx)($t.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,t.name),children:(0,nn.jsxs)($t.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,nn.jsx)($t.Box,{sx:{width:"10px",height:"10px",backgroundColor:n,margin:"1px",display:"inline-block"}}),(0,nn.jsxs)($t.Typography,{children:["\xA0",t.name]})]})},t.name)}),e.includeAllContainers&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)($t.Divider,{}),(0,nn.jsx)($t.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,"*all"),children:(0,nn.jsx)($t.Typography,{children:"All containers"})},"all")]})]})}));var Sx=k(Ct(),1),vx=k(Fl(),1),Ix=k(_l(),1),tt=k(he(),1),wx={get:vx.default,set:Ix.default},$M=bx(),kx=e=>{let t=(0,jn.useRef)(null),n=(0,jn.useRef)(e.data.source.data.origin),[a,r]=(0,jn.useState)(!1),[i,s]=(0,jn.useState)(!1),[o,l]=(0,jn.useState)(),[c,d]=(0,jn.useState)(""),[m,f]=(0,jn.useState)(e.isMaximized),g=e.data;(0,jn.useEffect)(()=>{n.current||(n.current={})},[]),(0,Sx.useKeyboard)(e.onClose,e.id);let I=(E,oe,Se)=>{e.onClose(e.id),e.data.onLink(E,oe,Se)},C=e.data.actions.filter(E=>E.name!=="details"&&(E.isVisible?.(E.name??"",e.data.source,e.selectedFiles)??!0)),L=E=>E.isEnabled?.(E.name??"",e.data.source,e.selectedFiles)??!0,U=(E,oe)=>{if(e.selectedFiles[0].class==="Pod"&&(e.data.containerSelectionOptions.get(E)||0)>=1){d(E),l(oe);return}e.data.onAction(E,e.selectedFiles[0].path||"",void 0)},se=()=>{e.onFocus&&e.onFocus()},le=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},$=E=>{f(!1),t.current?.snapTo(E)},me=(E,oe)=>{e.data.source.data.origin.kind==="ConfigMap"&&wx.set(n.current,E,oe),e.data.source.data.origin.kind==="Secret"&&wx.set(n.current,E,btoa(oe)),s(!0)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(ea,{ref:t,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:se,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,tt.jsx)(ut.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,tt.jsxs)(ut.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,tt.jsx)(ut.Typography,{variant:"subtitle1",noWrap:!0,sx:{fontWeight:"bold",flexShrink:0},children:`${g.source.data.origin.kind}:`}),(0,tt.jsx)(ut.Typography,{variant:"body2",noWrap:!0,children:e.title}),(0,tt.jsx)(ut.Tooltip,{title:"Copy",children:(0,tt.jsx)(ut.IconButton,{size:"small",onClick:()=>$M(e.title),children:(0,tt.jsx)(Cx.ContentCopy,{fontSize:"inherit"})})}),(0,tt.jsx)(ut.Stack,{direction:"row",spacing:.5,className:"no-drag",children:C.map((E,oe)=>E.name==="divider"?(0,tt.jsx)(ut.Typography,{sx:{flexGrow:1}}):(0,tt.jsx)(ut.Tooltip,{title:E.text,children:(0,tt.jsx)("span",{children:(0,tt.jsx)(ut.IconButton,{size:"small",color:"primary",disabled:!L(E),onClick:Se=>U(E.name,Se.currentTarget),children:E.icon})})},oe))}),(0,tt.jsx)(ut.Typography,{sx:{flexGrow:1}}),(0,tt.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:le,onClose:()=>e.onClose(e.id),onSnap:$})]})}),(0,tt.jsx)(ut.DialogContent,{dividers:!0,sx:{p:0,display:"flex",flexDirection:"column"},children:(0,tt.jsx)(ut.Box,{sx:{p:2,flexGrow:1,overflow:"auto"},children:(0,tt.jsx)(gx,{object:g.source,sections:g.sections,onChangeData:me,onLink:I,onContainsEdit:r})})}),(0,tt.jsx)(ut.DialogActions,{sx:{p:.5,pr:2},children:(0,tt.jsx)(ut.Button,{onClick:()=>e.data.onApply(g.path,n.current),disabled:!a||!i,variant:"contained",size:"small",children:"Apply"})})]}),o&&e.selectedFiles.length>0&&(0,tt.jsx)(zl,{channel:c,file:e.selectedFiles[0],onClose:()=>l(void 0),anchorParent:o,onContainerSelected:(E,oe,Se)=>{e.data.onAction(E,oe.path||"",Se),l(void 0)},includeAllContainers:g.containerSelectionOptions.get(c)===2})]})};u();var qt=k(ft(),1),An=k(je(),1),Hx=k(Mx(),1),$x=k(Ox(),1),qx=k(Ex(),1),Ux=k(Kt(),1);var ji=k(Ax(),1),Ll=k(Fx(),1),Yx=k(zx(),1),Gx=k(Vx(),1);var Vl=k(Ct(),1),Kx=k(Bx(),1),xt=k(he(),1),Nm=kl(),Jx=e=>{let t=(0,qt.useTheme)(),n=t.palette.mode==="dark"?Kx.oneDark:"light",[a,r]=(0,An.useState)((0,xt.jsx)(xt.Fragment,{})),[i,s]=(0,An.useState)(""),o=(0,An.useRef)(null),l=(0,An.useRef)(!1),c=(0,An.useRef)(null),d=(0,An.useRef)(null),[m,f]=(0,An.useState)(e.isMaximized),g=e.data,I=Ll.EditorView.theme({"&":{height:"100%",fontSize:"12px",fontFamily:"'Fira Code', 'Source Code Pro', monospace"},".cm-foldGutter":{width:"25px",pointerEvents:"auto !important"},".cm-gutterElement":{display:"flex !important",alignItems:"center",justifyContent:"center",cursor:"pointer !important",pointerEvents:"auto !important"},".cm-foldGutter span":{pointerEvents:"none"}},{dark:t.palette.mode==="dark"});(0,An.useEffect)(()=>{let $=me=>{if(me.key==="Escape"&&C(),!c.current?.contains(document.activeElement))return;let E=me.ctrlKey||me.metaKey;E&&me.key.toLowerCase()==="f"&&(me.preventDefault(),me.stopPropagation(),d.current&&(0,ji.openSearchPanel)(d.current)),E&&me.key.toLowerCase()==="d"&&(me.preventDefault(),me.stopPropagation())};return window.addEventListener("keydown",$,!0),()=>window.removeEventListener("keydown",$,!0)},[]);let C=()=>{l.current?r((0,Vl.MsgBoxYesNo)("Edit exit","You have some changes not applied. Are you sure you want to exit without applying?",r,$=>{$===Vl.MsgBoxButtons.Yes&&e.onClose(e.id)})):e.onClose(e.id)};(0,An.useEffect)(()=>{if(g.isInitialized)g.code&&s(g.code);else{if(g.isInitialized=!0,g.code===void 0){let $=e.selectedFiles[0].data.origin,me=Xg($);g.code=Nm.dump(me),s(g.code)}else s(g.code);g.oldCode=g.code}},[]);let L=()=>{e.onFocus&&e.onFocus()},U=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},se=$=>{f(!1),o.current?.snapTo($)},le=$=>{g.code=$,s($);try{let me=Nm.load(g.oldCode),E=Nm.load($);l.current=!Ks(E,me)}catch{l.current=($??"")!==(g.oldCode??"")}};return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsxs)(ea,{ref:o,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:L,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,xt.jsx)(qt.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,xt.jsxs)(qt.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,xt.jsx)(qt.Typography,{sx:{flexGrow:1}}),(0,xt.jsxs)(qt.Typography,{children:[g.allowEdit?(0,xt.jsx)(Ux.Edit,{}):(0,xt.jsx)(Wn,{}),"\xA0",e.title]}),(0,xt.jsx)(qt.Typography,{sx:{flexGrow:1}}),(0,xt.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:U,onClose:C,onSnap:se})]})}),(0,xt.jsx)(qt.DialogContent,{children:(0,xt.jsx)("div",{ref:c,style:{height:"100%",width:"100%",paddingTop:"2px"},onMouseDownCapture:$=>{$.target.closest(".cm-foldGutter")&&d.current&&($.preventDefault(),$.stopPropagation(),d.current.focus(),(0,Gx.foldCode)(d.current))},className:"no-drag",children:(0,xt.jsx)(Hx.default,{value:i,onChange:le,theme:n,onUpdate:$=>{$.view&&(d.current=$.view)},extensions:[$x.EditorState.readOnly.of(!g.allowEdit),(0,qx.yaml)(),(0,ji.search)({top:!0}),I,Ll.keymap.of([...Yx.defaultKeymap,...ji.searchKeymap])]})})}),(0,xt.jsx)(qt.DialogActions,{sx:{p:"4px 4px",pr:2},children:(0,xt.jsx)(qt.Button,{onClick:()=>g.onOk?.(i,g.source),disabled:!l.current,children:"Ok"})})]}),a]})};u();var Pe=new Map;Pe.set("Pod",`
248
248
  apiVersion: v1
249
249
  kind: Pod
250
250
  metadata:
@@ -800,17 +800,17 @@ spec:
800
800
  plural: crds
801
801
  singular: crd
802
802
  kind: Crd
803
- `);u();var Je=k(ft(),1),Ba=k(je(),1),Yx=k(Gt(),1);var Gx=k(Dt(),1);var Kx=k(Dt(),1),Ke=k(he(),1),Jx=e=>{let t=(0,Ba.useRef)(null),[n,a]=(0,Ba.useState)(e.data.searchText),[r,i]=(0,Ba.useState)(e.data.includeStatus),[s,o]=(0,Ba.useState)(e.data.merge),[l,c]=(0,Ba.useState)(e.data.matchCase),[d,m]=(0,Ba.useState)(e.isMaximized),f=e.data;(0,Kx.useKeyboard)(e.onClose,e.id);let g=()=>{e.onFocus&&e.onFocus()},I=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},S=N=>{m(!1),t.current?.snapTo(N)},L=N=>{a(N.target.value),e.data.searchText=N.target.value},U=()=>{i(!r),e.data.includeStatus=!e.data.includeStatus},se=()=>{c(!l),e.data.matchCase=!e.data.matchCase},le=()=>{o(!s),e.data.merge=!e.data.merge};function $(N,oe){if(!N||!oe)return;let Ce=oe.replace(/\[(\d+)\]/g,".$1").split(".").filter(W=>W!==""),Ie=N;for(let W of Ce){if(Ie===null||typeof Ie!="object")return;if(W in Ie)Ie=Ie[W];else return}return Ie}let me=(N,oe,Ce,Ie,W)=>{if(!N||!N.kind)return[];let B=[];if(N.kind==="Secret"&&N.data){let de=Ys(N);for(let te of Object.keys(de.data))de.data[te]=atob(de.data[te]);B=Sm(de,oe,Ie)}else B=Sm(N,oe,Ie);return Ce||(B=B.filter(de=>!de.startsWith("status"))),W&&B.length>1&&(B=[B[0]]),B};return(0,Ke.jsxs)(ea,{ref:t,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:g,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Ke.jsx)(Je.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Ke.jsxs)(Je.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,Ke.jsx)(Yx.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Ke.jsxs)(Je.Typography,{variant:"body2",sx:{fontWeight:500,flex:1},children:["Search \u2014 ",f.scope===":cluster:"?"All cluster":"Namespace: "+f.scope]}),(0,Ke.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:I,onClose:()=>e.onClose(e.id),onSnap:S})]})}),(0,Ke.jsxs)(Je.DialogContent,{children:[(0,Ke.jsxs)(Je.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,Ke.jsx)(Je.TextField,{value:n,onChange:L,variant:"standard",label:"Search..."}),(0,Ke.jsx)(Je.FormControlLabel,{control:(0,Ke.jsx)(Je.Checkbox,{}),checked:r,onChange:U,label:"Include status"}),(0,Ke.jsx)(Je.FormControlLabel,{control:(0,Ke.jsx)(Je.Checkbox,{}),checked:l,onChange:se,label:"Match case"}),(0,Ke.jsx)(Je.FormControlLabel,{control:(0,Ke.jsx)(Je.Checkbox,{}),checked:s,onChange:le,label:"Merge repeated results"}),(0,Ke.jsx)(Je.Typography,{sx:{flexGrow:1}}),n.trim()!==""&&n.length>=3&&(0,Ke.jsxs)(Je.Typography,{children:["Results: ",f.selectedFiles.reduce((N,oe)=>N+me(oe.data?.origin,n,r,l,s).length,0)]})]}),(0,Ke.jsx)(Je.Stack,{direction:"column",sx:{mt:1},children:n.trim()!==""&&n.length>=3&&f.selectedFiles.map(N=>me(N.data?.origin,n,r,l,s).map((Ce,Ie)=>{let W=$(N.data.origin,Ce),B;return N.data.origin.metadata?B=(0,Ke.jsx)(Je.Typography,{variant:"body2",children:(0,Ke.jsx)("a",{href:"#",onClick:()=>f.onLink(N.data.origin.kind,N.data.origin.metadata.name,N.data.origin.metadata.namespace),children:N.data.origin.metadata.name})}):B=(0,Ke.jsx)(Je.Typography,{variant:"body2",children:(0,Ke.jsx)("a",{href:"#",onClick:()=>f.onLink(N.data.origin.kind,N.data.origin.name,""),children:N.data.origin.name})}),(0,Ke.jsxs)(Je.Stack,{direction:"row",sx:{alignItems:"center",mb:2,ml:1},children:[(0,Gx.getIconFromKind)(N.data?.origin?.kind,32),(0,Ke.jsxs)(Je.Stack,{direction:"column",sx:{ml:2},children:[B,(0,Ke.jsx)(Je.Typography,{variant:"body2",children:Ce}),(0,Ke.jsxs)(Je.Typography,{variant:"body2",children:[String(W).substring(0,80),String(W).length>80?"...":""]})]})]},Ie)}))})]})]})};u();var Zn=k(je(),1),xe=k(ft(),1),Fr=k(Gt(),1);var En=k(va(),1);var ve=k(he(),1),jx=e=>{let t=(0,Zn.useRef)(null),[n,a]=(0,Zn.useState)(""),[r,i]=(0,Zn.useState)(!1),[s,o]=(0,Zn.useState)(!1),[l,c]=(0,Zn.useState)(100),[d,m]=(0,Zn.useState)(!1),[f,g]=(0,Zn.useState)(null),{magnifyData:I}=e,S=!I.logSearchDone,L=I.logSearchResults,U=()=>{if(!n.trim()||!e.channelObject.webSocket)return;I.logSearchResults=[],I.logSearchDone=!1;let N=it();g(N);let oe=JSON.stringify({query:n,namespaces:e.data.namespaces,pods:e.data.pods,tailLines:l,caseSensitive:r,useRegex:s}),Ce={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:N,command:"logsearch",namespace:"",group:"",pod:"",container:"",params:[oe],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(Ce))},se=()=>{if(!f||!e.channelObject.webSocket)return;let N={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:it(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(N)),I.logSearchDone=!0,g(null)};(0,Zn.useEffect)(()=>()=>{if(f&&e.channelObject.webSocket){let N={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:it(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(N))}},[f]);let le=N=>{e.data.onOpenLog(N.namespace,N.pod,N.container)},$=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},me=N=>{m(!1),t.current?.snapTo(N)};return(0,ve.jsxs)(ea,{ref:t,id:e.id,x:e.x,y:e.y,width:e.width,height:e.height,isMaximized:d,isActive:e.atFront,onFocus:e.onFocus,onWindowChange:e.onWindowChange,children:[(0,ve.jsx)(xe.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,ve.jsxs)(xe.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,ve.jsx)(Fr.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,ve.jsxs)(xe.Typography,{variant:"body2",sx:{fontWeight:500,flex:1},children:["Log Search \u2014 ",e.data.scopeLabel]}),(0,ve.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:$,onClose:()=>e.onClose(e.id),onSnap:me})]})}),(0,ve.jsxs)(xe.DialogContent,{sx:{display:"flex",flexDirection:"column",p:1,gap:1,overflow:"hidden",height:"100%"},children:[(0,ve.jsx)(xe.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:(0,ve.jsx)(xe.TextField,{size:"small",fullWidth:!0,placeholder:"Search in logs\u2026",value:n,onChange:N=>a(N.target.value),onKeyDown:N=>{N.key==="Enter"&&U(),N.key==="Escape"&&e.onClose(e.id)},slotProps:{input:{endAdornment:(0,ve.jsx)(xe.InputAdornment,{position:"end",children:(0,ve.jsx)(xe.IconButton,{size:"small",onClick:U,disabled:S||!n.trim(),children:S?(0,ve.jsx)(xe.CircularProgress,{size:16}):(0,ve.jsx)(Fr.Search,{fontSize:"small"})})})}}})}),(0,ve.jsxs)(xe.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,ve.jsx)(xe.FormControlLabel,{control:(0,ve.jsx)(xe.Checkbox,{size:"small",checked:r,onChange:N=>i(N.target.checked)}),label:(0,ve.jsx)(xe.Typography,{variant:"caption",children:"Case"}),sx:{mr:0}}),(0,ve.jsx)(xe.FormControlLabel,{control:(0,ve.jsx)(xe.Checkbox,{size:"small",checked:s,onChange:N=>o(N.target.checked)}),label:(0,ve.jsx)(xe.Typography,{variant:"caption",children:"Regex"}),sx:{mr:0}}),(0,ve.jsx)(xe.TextField,{size:"small",type:"number",label:"Lines",value:l,onChange:N=>c(Math.min(500,+N.target.value)),sx:{width:90},slotProps:{htmlInput:{min:1,max:500,style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,ve.jsx)(xe.Tooltip,{title:"Stop search",children:(0,ve.jsx)("span",{children:(0,ve.jsx)(xe.IconButton,{size:"small",onClick:se,disabled:!S,children:(0,ve.jsx)(Fr.Stop,{fontSize:"small",color:S?"error":"disabled"})})})}),S&&(0,ve.jsx)(xe.Typography,{variant:"caption",sx:{color:"text.secondary"},children:"Searching\u2026"}),I.logSearchDone&&L.length>0&&!S&&(0,ve.jsx)(xe.Chip,{label:`${L.length} container${L.length>1?"s":""} with matches`,size:"small",color:"primary",variant:"outlined"}),I.logSearchDone&&L.length===0&&!S&&n&&(0,ve.jsx)(xe.Typography,{variant:"caption",sx:{color:"text.secondary"},children:"No matches found."})]}),(0,ve.jsx)(xe.Divider,{}),(0,ve.jsx)(xe.Box,{sx:{flex:1,overflowY:"auto"},children:L.map((N,oe)=>(0,ve.jsxs)(xe.Box,{sx:{mb:1.5},children:[(0,ve.jsxs)(xe.Stack,{direction:"row",spacing:.5,sx:{alignItems:"center",mb:.5},children:[(0,ve.jsxs)(xe.Typography,{variant:"caption",sx:{fontWeight:600,fontFamily:"monospace",color:"primary.main"},children:[N.namespace,"/",N.pod]}),(0,ve.jsx)(xe.Chip,{label:N.container,size:"small",variant:"outlined",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,ve.jsx)(xe.Chip,{label:`${N.lines.length} line${N.lines.length>1?"s":""}`,size:"small",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,ve.jsx)(xe.Tooltip,{title:"Open log",children:(0,ve.jsx)(xe.IconButton,{size:"small",sx:{p:0},onClick:()=>le(N),children:(0,ve.jsx)(Fr.Launch,{sx:{fontSize:12}})})})]}),N.lines.map((Ce,Ie)=>(0,ve.jsx)(xe.Typography,{variant:"caption",sx:{display:"block",fontFamily:"monospace",fontSize:"10px",pl:1,color:"text.secondary",wordBreak:"break-all",borderLeft:"2px solid",borderColor:"divider",mb:.25},children:Ce},Ie))]},oe))})]})]})};u();var z=k(ft(),1);u();var Vl=k(ft(),1),qe=k(Em(),1),nt=k(he(),1),Xx=e=>{let t=e.channelObject.data;if(t.metricsProviderMissing)return(0,nt.jsx)(Vl.Alert,{severity:"info",sx:{my:1},children:"The metrics provider is not installed in this cluster, so there is no cluster usage to draw. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."});let n=[...t.metricsCluster];return(0,nt.jsxs)(Vl.Stack,{direction:"row",sx:{height:"200px"},children:[(0,nt.jsx)(qe.ResponsiveContainer,{children:(0,nt.jsxs)(qe.LineChart,{data:n,title:"CPU",children:[(0,nt.jsx)(qe.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(qe.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(qe.YAxis,{fontSize:8}),(0,nt.jsx)(qe.Legend,{}),(0,nt.jsx)(qe.Line,{name:"% CPU",type:"monotone",dataKey:"cpuUsage",dot:!1})]})}),(0,nt.jsx)(qe.ResponsiveContainer,{children:(0,nt.jsxs)(qe.LineChart,{data:n,title:"Memory",children:[(0,nt.jsx)(qe.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(qe.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(qe.YAxis,{fontSize:8}),(0,nt.jsx)(qe.Legend,{}),(0,nt.jsx)(qe.Line,{name:"% Memory",type:"monotone",dataKey:"memoryUsage",dot:!1})]})}),(0,nt.jsx)(qe.ResponsiveContainer,{children:(0,nt.jsxs)(qe.LineChart,{data:n,title:"Network",children:[(0,nt.jsx)(qe.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(qe.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(qe.YAxis,{fontSize:8}),(0,nt.jsx)(qe.Legend,{}),(0,nt.jsx)(qe.Line,{name:"Tx Mbps",type:"monotone",dataKey:"txmbps",stroke:"#6e5bb8",dot:!1}),(0,nt.jsx)(qe.Line,{name:"Rx Mbps",type:"monotone",dataKey:"rxmbps",stroke:"#4a9076",dot:!1})]})})]})};u();var Pn=k(ft(),1),Nt=k(Dt(),1),Qx=k(je(),1),an=k(Dt(),1),e1=k(Pl(),1),t1=k(Fl(),1),An=k(he(),1),ji={get:e1.default,set:t1.default},gn=(e,t)=>(0,An.jsx)(Pn.Stack,{direction:"column",children:e.map((n,a)=>(0,An.jsxs)(Pn.Typography,{variant:"body2",children:[n.text,":\xA0",(0,An.jsx)("a",{href:"#",onClick:()=>t(n.kind,n.name,n.namespace),children:n.name})]},a))}),n1=e=>{let t=[];for(let n of e.filter(a=>a.class==="ReplicaSet").map(a=>a.data.origin))n.status?.replicas===0||n.status?.availableReplicas===0||n.status?.readyReplicas===0?t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Nt.ENotifyLevel.WARNING,text:"Unneeded ReplicaSet"}):(n.status?.replicas===0||n.spec.availableReplicas===0)&&t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Nt.ENotifyLevel.WARNING,text:"0 replicas desired"});return t},a1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Deployment").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"Deployment",name:n.metadata.name,namespace:n.metadata.namespace,level:Nt.ENotifyLevel.WARNING,text:"Unready replicas"});return t},r1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Job").map(a=>a.data.origin))n.status?.failed!==void 0&&+n.status?.failed>0&&t.push({kind:"Job",name:n.metadata.name,namespace:n.metadata.namespace,level:Nt.ENotifyLevel.ERROR,text:"Failed Job"});return t},i1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Nt.ENotifyLevel.ERROR,text:"SS Replicas unready"});return t},s1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Nt.ENotifyLevel.ERROR,text:"DS replicas unready"});return t},o1=e=>{let t=e.filter(i=>i.class==="ConfigMap"&&i.data?.origin?.metadata?.namespace!=="kube-system"&&i.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t],a=(i,s)=>{let o=i.envFrom||[];for(let c of o)if(c.configMapRef?.name===s)return!0;let l=i.env||[];for(let c of l)if(c.valueFrom?.configMapRef?.name===s)return!0;return!1},r=(i,s)=>{for(let l of i.spec?.containers||[])if(a(l,s))return!0;let o=i.spec?.volumes||[];for(let l of o)if(l.configMap?.name===s||l.projected?.sources?.some(c=>c.configMap?.name===s))return!0;return!1};for(let i of t){let s=i.data.origin.metadata.name;" kwirth.keys kwirth-keys ".includes(s)&&(n=n.filter(o=>o!==i));for(let o of e.filter(l=>l.class==="Pod/").map(l=>l.data.origin))r(o,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="StatefulSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicaSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="Deployment").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="DaemonSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicationController").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i))}return n.map(i=>({name:i.data.origin.metadata.name,namespace:i.data.origin.metadata.namespace,kind:"ConfigMap",text:"Unreferenced ConfigMap",level:Nt.ENotifyLevel.WARNING}))},l1=e=>{let t=e.filter(a=>a.class==="Secret"&&a.data?.origin?.metadata?.namespace!=="kube-system"&&a.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t];for(let a of t){let r=a.data.origin.metadata.name;" kwirth-sa-kwirthtoken kwirth-users kwirth.keys kwirth-keys ".includes(r)&&(n=n.filter(i=>i!==a)),a.data?.origin?.type?.startsWith("helm.sh/release.")&&(n=n.filter(i=>i!==a));for(let i of e.filter(s=>s.class==="Pod")){let s=i.data.origin;if((ji.get(s,"spec.imagePullSecrets")||[]).map(c=>c.name).some(c=>c===r)){n=n.filter(c=>c!==a);break}let o=s.spec?.containers||[];for(let c of o){let d=c.envFrom||[];for(let f of d)f.secretRef?.name===r&&(n=n.filter(g=>g!==a));let m=c.env||[];for(let f of m)f.valueFrom?.secretKeyRef?.name===r&&(n=n.filter(g=>g!==a))}let l=s.spec?.volumes||[];for(let c of l)c.secret?.secretName===r&&(n=n.filter(d=>d!==a)),c.projected?.sources?.some(d=>d.secret?.name===r)&&(n=n.filter(d=>d!==a))}for(let i of e.filter(s=>s.class==="Deployment"||s.class==="Job"||s.class==="ReplicaSet"||s.class==="DaemonSet"||s.class==="StatefulSet").map(s=>s.data.origin))if((ji.get(i,"spec.template.spec.imagePullSecrets")||[]).map(s=>s.name).some(s=>s===r)){n=n.filter(s=>s!==a);break}for(let i of e.filter(s=>s.class==="Ingress")){let s=i.data.origin;(ji.get(s,"spec.tls")||[]).some(o=>o.secretName===r)&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="PersistentVolume")){let s=i.data.origin;ji.get(s,"spec.csi.nodeStageSecretRef.name")===r&&(n=n.filter(o=>o!==a)),ji.get(s,"spec.csi.volumeAttributes.secretName")===r&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="StorageClass")){let s=i.data.origin;ji.get(s,"parameters.secretName")===r&&(n=n.filter(o=>o!==a))}}return n.map(a=>({name:a.data.origin.metadata.name,namespace:a.data.origin.metadata.namespace,kind:"Secret",text:"Unreferenced Secret",level:Nt.ENotifyLevel.WARNING}))},c1=e=>{let t=e.filter(a=>a.class==="VolumeAttachment"),n=[];for(let a of t)(a.data.origin.status.attachError||a.data.origin.status.detachError)&&n.push({kind:"VolumeAttach",name:a.data.origin.metadata.name,namespace:"",level:Nt.ENotifyLevel.ERROR,text:"Attach/detach error"});return n},u1=e=>{let t=[],n=e.filter(a=>a.class==="Node").map(a=>a.data.origin);for(let a of n)a.status.conditions.some(i=>i.type==="Ready"&&i.status==="True")||t.push({name:a.metadata.name,namespace:"",kind:"Node",text:"Node not ready",level:Nt.ENotifyLevel.ERROR});return t},m1=e=>{let t=[],n=e.filter(a=>a.class==="Ingress").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec?.rules;for(let s of i){let o=s.http?.paths;for(let l of o){let c=l.backend?.service?.name;e.find(d=>d.class==="Service"&&d.data.origin?.metadata?.name===c&&d.data.origin?.metadata?.namespace===r)||t.push({kind:"Ingress",name:a.metadata.name,namespace:a.metadata.namespace,level:Nt.ENotifyLevel.ERROR,text:"Inexistent service "+c})}}}return t},d1=e=>{let t=[],n=e.filter(a=>a.class==="Service"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec.selector;if(i){let s=!1;for(let o of e.filter(l=>l.class==="Pod"&&l.data.origin?.metadata?.namespace===r).map(l=>l.data.origin)){let l=0;for(let c of Object.keys(i))o.metadata?.labels?.[c]===i[c]&&l++;if(l===Object.keys(i).length){s=!0;break}}s||t.push({kind:"Service",name:a.metadata.name,namespace:a.metadata.namespace,level:Nt.ENotifyLevel.ERROR,text:"Inexistent service destination pods"})}}return t},f1=e=>{let t=[],n=e.filter(a=>a.class==="Role"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="RoleBinding").map(s=>s.data.origin))if(r=i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===a.metadata.name&&s.namespace===a.metadata.namespace),r)break;r||t.push({kind:"Role",name:a.metadata.name,namespace:a.metadata.namespace,level:Nt.ENotifyLevel.WARNING,text:"Role not in use"})}return t},p1=e=>{let t=[],n=e.filter(a=>a.class==="ClusterRole").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="ClusterRoleBinding").map(s=>s.data.origin))if(r=i.subjects&&i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===i.metadata.name&&s.namespace===i.metadata.namespace),r)break;r||t.push({kind:"ClusterRole",name:a.metadata.name,namespace:"",level:Nt.ENotifyLevel.WARNING,text:"ClusterRole not in use"})}return t},yn=(e,t,n,a)=>{let r=e.filter(s=>s.level===Nt.ENotifyLevel.ERROR).length,i=e.filter(s=>s.level===Nt.ENotifyLevel.WARNING).length;return(0,An.jsx)(Pn.Button,{onClick:()=>n(a),sx:{backgroundColor:r>0?"#ffaaaa":""},children:(0,An.jsxs)(Pn.Stack,{direction:"column",sx:{alignItems:"center"},children:[t,(0,An.jsxs)(Pn.Stack,{direction:"row",children:[(0,An.jsxs)(Pn.Typography,{variant:"caption",color:r>0?"red":"gray",children:[r,"\xA0\xA0"]}),(0,An.jsx)(Pn.Typography,{variant:"caption",color:i>0?"orange":r>0?"gray":"orange",children:e.filter(s=>s.level===Nt.ENotifyLevel.WARNING).length})]})]})})},WM=(e,t)=>(0,An.jsxs)(Pn.Stack,{direction:"row",sx:{flex:1,justifyContent:"space-between"},children:[yn(u1(e),(0,an.getIconFromKind)("Node",50),t,"/cluster/Node"),yn(o1(e),(0,an.getIconFromKind)("ConfigMap",50),t,"/config/ConfigMap"),yn(l1(e),(0,an.getIconFromKind)("Secret",50),t,"/config/Secret"),yn(a1(e),(0,an.getIconFromKind)("Deployment",50),t,"/workload/Deployment"),yn(n1(e),(0,an.getIconFromKind)("ReplicaSet",50),t,"/workload/ReplicaSet"),yn(i1(e),(0,an.getIconFromKind)("StatefulSet",50),t,"/workload/StatefulSet"),yn(s1(e),(0,an.getIconFromKind)("DaemonSet",50),t,"/workload/DaemonSet"),yn(r1(e),(0,an.getIconFromKind)("Job",50),t,"/workload/Job"),yn(m1(e),(0,an.getIconFromKind)("Ingress",50),t,"/network/Ingress"),yn(d1(e),(0,an.getIconFromKind)("Service",50),t,"/network/Service"),yn(c1(e),(0,an.getIconFromKind)("VolumeAttachment",50),t,"/storage/VolumeAttachment"),yn(f1(e),(0,an.getIconFromKind)("Role",50),t,"/access/Role"),yn(p1(e),(0,an.getIconFromKind)("ClusterRole",50),t,"/access/ClusterRole")]}),Ha=e=>{let t=(0,Qx.useMemo)(()=>{let n={},{options:a,files:r,onNavigate:i}=e;return a.node&&(n.node=u1(r)),a.configMap&&(n.configMap=o1(r)),a.secret&&(n.secret=l1(r)),a.deployment&&(n.deployment=a1(r)),a.replicaSet&&(n.replicaSet=n1(r)),a.statefulSet&&(n.statefulSet=i1(r)),a.daemonSet&&(n.daemonSet=s1(r)),a.job&&(n.job=r1(r)),a.volumeAttachment&&(n.volumeAttachment=c1(r)),a.ingress&&(n.ingress=m1(r)),a.service&&(n.service=d1(r)),a.role&&(n.role=f1(r)),a.custerRole&&(n.clusterRole=p1(r)),a.summary&&(n.summary=WM(r,i)),n},[e.files,e.options,e.onNavigate]);return(0,An.jsxs)(Pn.Stack,{children:[e.options.node&&gn(t.node,e.onLink),e.options.configMap&&gn(t.configMap,e.onLink),e.options.secret&&gn(t.secret,e.onLink),e.options.deployment&&gn(t.deployment,e.onLink),e.options.replicaSet&&gn(t.replicaSet,e.onLink),e.options.statefulSet&&gn(t.statefulSet,e.onLink),e.options.daemonSet&&gn(t.daemonSet,e.onLink),e.options.job&&gn(t.job,e.onLink),e.options.volumeAttachment&&gn(t.volumeAttachment,e.onLink),e.options.ingress&&gn(t.ingress,e.onLink),e.options.service&&gn(t.service,e.onLink),e.options.role&&gn(t.role,e.onLink),e.options.custerRole&&gn(t.clusterRole,e.onLink),e.options.summary&&t.summary]})};u();var Ut=k(je(),1),F=k(ft(),1),zr=k(Gt(),1);var g1=k(Dt(),1);u();var Be=k(ft(),1),at=k(he(),1),h1=e=>(0,at.jsxs)(Be.Dialog,{open:!0,onClose:e.onClose,disableRestoreFocus:!0,maxWidth:"xs",fullWidth:!0,children:[(0,at.jsx)(Be.DialogTitle,{children:"About Kwirth..."}),(0,at.jsx)(Be.DialogContent,{children:(0,at.jsxs)(Be.Stack,{spacing:2,sx:{p:2,borderRadius:2,backgroundColor:"rgba(245,130,10,0.07)",border:"1px solid rgba(245,130,10,0.2)"},children:[(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"h5",sx:{fontWeight:"bold",color:"#f5820a"},children:"Kwirth"}),(0,at.jsx)(Be.Typography,{variant:"body2",sx:{color:"text.secondary"},children:"Kubernetes observability platform"})]}),(0,at.jsx)(Be.Divider,{}),(0,at.jsxs)(Be.Stack,{spacing:1.5,children:[(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary",display:"block"},children:"VERSION"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:e.kwirthVersion??"unknown"})]}),(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary",display:"block"},children:"HOMEPAGE"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:(0,at.jsx)("a",{href:"https://kwirthmagnify.dev",target:"_blank",rel:"noreferrer",children:"kwirthmagnify.dev"})})]}),(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary",display:"block"},children:"SOURCE CODE"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:(0,at.jsx)("a",{href:"https://github.com/kwirthmagnify/kwirth",target:"_blank",rel:"noreferrer",children:"github.com/kwirthmagnify/kwirth"})})]})]}),(0,at.jsx)(Be.Divider,{}),(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary"},children:"\xA9 2025 Kwirth contributors \xB7 Apache 2.0"})]})}),(0,at.jsx)(Be.DialogActions,{children:(0,at.jsx)(Be.Button,{onClick:e.onClose,children:"OK"})})]});var Lr=k(va(),1);var P=k(he(),1),Am=(e,t)=>{try{return vo((0,Lr.accessKeyDeserialize)(e??""),t)}catch{return!1}},y1=e=>{let t=Am(e.channelObject.accessString,"magnify$read"),n=Am(e.channelObject.accessString,"magnify$write"),a=Am(e.channelObject.accessString,ac),[r,i]=(0,Ut.useState)(e.preferences.palette||"light"),[s,o]=(0,Ut.useState)(e.preferences.logLines),[l,c]=(0,Ut.useState)(e.preferences.tracing),[d,m]=(0,Ut.useState)(e.preferences.dataConfig?.source),[f,g]=(0,Ut.useState)(e.preferences.dataConfig?.sync),[I,S]=(0,Ut.useState)(e.preferences.dataHelm),[L,U]=(0,Ut.useState)(e.preferences.dataManagedFields),[se,le]=(0,Ut.useState)(e.preferences.customActions||[]),[$,me]=(0,Ut.useState)(!1),[N,oe]=(0,Ut.useState)(!1),[Ce,Ie]=(0,Ut.useState)(!1),[W,B]=(0,Ut.useState)(!1),de=(0,Ut.useRef)(null),[te,Oe]=(0,Ut.useState)(!1),He="Paste here a complete YAML of a pod that will be launched when a user selects this action in Magnify 'Overview' top menu ('Kwirth Works' action)";(0,g1.useKeyboard)();let De=()=>{e.channelObject.writeChannelUserPreferences&&(e.preferences.palette=r,e.preferences.dataHelm=I,e.preferences.dataManagedFields=L,e.preferences.dataConfig.source=d,e.preferences.dataConfig.sync=f,e.preferences.logLines=s,e.preferences.tracing=l,e.preferences.customActions=se,e.channelObject.writeChannelUserPreferences(e.channelObject.channelId,e.preferences),me(!1),oe(!1),Ie(!1),B(!1))},It=()=>{e.onDataReload&&e.onDataReload()},bt=()=>{console.log(e.files.filter(A=>A.name.includes(de.current.value)||A.path.includes(de.current.value)))},Yt=(A,ee)=>{let ce=d;A==="sync"&&(ce=f),ce.some($e=>$e.name===ee.name)?ce=ce.filter($e=>$e.name!==ee.name):ce.push(ee),A==="source"&&m([...ce]),A==="sync"&&g([...ce]),oe(!0)},fa=A=>{se.splice(A,1),le([...se])};return(0,P.jsxs)(F.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,P.jsxs)(F.Accordion,{defaultExpanded:!0,children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Display"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Palette mode"}),(0,P.jsx)(F.Typography,{variant:"body2",sx:{color:"text.secondary",mr:1},children:r==="dark"?"Dark":"Light"}),(0,P.jsx)(F.Switch,{size:"small",checked:r==="dark",onChange:A=>{let ee=A.target.checked?"dark":"light";i(ee),e.channelObject.setPalette?.(ee),me(!0)}})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"About Kwirth"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>Oe(!0),children:"About"})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:De,disabled:!$,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!n,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Custom actions"})}),!n&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$write","'"]})]}),(0,P.jsxs)(F.AccordionDetails,{children:[se.map((A,ee)=>(0,P.jsxs)(F.Stack,{direction:"column",spacing:1,sx:{mb:2},children:[(0,P.jsxs)(F.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,P.jsxs)(F.Select,{value:A.type,onChange:ce=>{A.type=ce.target.value,le([...se])},variant:"standard",sx:{width:100},children:[(0,P.jsx)(F.MenuItem,{value:"kwirth",disabled:!0,children:"Kwirth"}),(0,P.jsx)(F.MenuItem,{value:"kube",children:"Kube"})]}),(0,P.jsx)(F.TextField,{value:A.name,onChange:ce=>{A.name=ce.target.value,le([...se])},variant:"standard",placeholder:"Name",sx:{minWidth:"15%"}}),(0,P.jsxs)(F.Select,{value:A.onReady,onChange:ce=>{A.onReady=ce.target.value,le([...se])},variant:"standard",sx:{minWidth:"10%"},children:[(0,P.jsx)(F.MenuItem,{value:"nothing",children:"Nothing"}),(0,P.jsx)(F.MenuItem,{value:"shell",children:"Shell"}),(0,P.jsx)(F.MenuItem,{value:"http",disabled:!0,children:"HTTP"}),(0,P.jsx)(F.MenuItem,{value:"https",disabled:!0,children:"HTTPS"})]}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:ce=>{A.forward=ce.target.checked,le([...se])},checked:A.forward,disabled:"nothing shell".includes(A.onReady)}),label:"Forward"}),(0,P.jsx)(F.TextField,{value:A.url,onChange:ce=>{A.url=ce.target.value,le([...se])},disabled:"nothing shell".includes(A.onReady)||A.forward,fullWidth:!0,variant:"standard",placeholder:"URL"}),(0,P.jsx)(F.Box,{sx:{flexGrow:1}}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>fa(ee),children:"Remove"})]}),(0,P.jsx)(F.TextareaAutosize,{value:A.podYaml,onChange:ce=>{A.podYaml=ce.target.value,le([...se])},style:{height:100,fontFamily:"monospace",fontSize:12,padding:8,boxSizing:"border-box",width:"100%"},placeholder:He},"yaml"+ee)]},"action"+ee)),(0,P.jsx)(F.Stack,{direction:"row",sx:{justifyContent:"flex-end"},children:(0,P.jsx)(F.Button,{size:"small",onClick:()=>le([...se,{type:"kube",name:"",podYaml:"",onReady:"nothing"}]),children:"Add"})})]}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:De,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"External content"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.TextField,{value:s,onChange:A=>{o(+A.target.value),B(!0)},variant:"standard",label:"Max messages",type:"number",fullWidth:!0})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:De,disabled:!W,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Data management"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"row",spacing:2,children:[(0,P.jsxs)(F.Stack,{direction:"column",sx:{flex:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:"Storage"}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:A=>{S(A.target.checked),oe(!0)},checked:I}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep Helm data"})}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:A=>{U(A.target.checked),oe(!0)},checked:L}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep managed fields"})})]}),(0,P.jsxs)(F.Stack,{direction:"column",sx:{flex:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:"Source"}),ps.map(A=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>Yt("source",A),checked:d.some(ee=>ee.name===A.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:A.name})},A.name))]}),(0,P.jsxs)(F.Stack,{direction:"column",sx:{flex:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:"Sync"}),ps.map(A=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>Yt("sync",A),checked:f.some(ee=>ee.name===A.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:A.name})},A.name))]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:De,disabled:!N,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Debug"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,P.jsxs)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:["Files collection (",e.files.length," objects, ",(JSON.stringify(e.files).length/1024/1024).toFixed(2)," MB)"]}),(0,P.jsx)(F.TextField,{inputRef:de,label:"Filter",variant:"standard",size:"small"}),(0,P.jsx)(F.Button,{size:"small",onClick:It,children:"Reload"}),(0,P.jsx)(F.Button,{size:"small",onClick:bt,children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Metrics names"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject.metricsList?.keys()),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Channel object"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Message tracing (log received messages to console)"}),(0,P.jsx)(F.Checkbox,{size:"small",checked:l,onChange:()=>{c(!l),Ie(!0)}})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:De,disabled:!Ce,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!a,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Extensions"})}),!a&&(0,P.jsx)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:"\u2014 needs 'admin'"})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.Stack,{direction:"row",spacing:1,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[{type:Lr.EExtensionType.PLUGIN,label:"Plugins",desc:"Install, update and remove channel plugins that extend Kwirth with new visualization and analysis capabilities."},{type:Lr.EExtensionType.PROVIDER,label:"Providers",desc:"Configure data source providers that feed events and metrics into your channels from external systems."},{type:Lr.EExtensionType.SENDER,label:"Senders",desc:"Manage notification senders to forward alerts and reports to Slack, Teams, email and other destinations."},{type:Lr.EExtensionType.THEME,label:"Themes",desc:"Install and activate visual themes to customize the look and feel of Kwirth."}].map(({type:A,label:ee,desc:ce})=>(0,P.jsxs)(F.Box,{sx:{border:1,borderColor:"divider",borderRadius:1,p:1.5,flex:1,minWidth:120,display:"flex",flexDirection:"column",gap:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:ee}),(0,P.jsx)(F.Typography,{variant:"caption",sx:{color:"text.secondary",flexGrow:1},children:ce}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>e.channelObject.openManager?.(A),children:"Manage"})]},A))})})]}),te&&(0,P.jsx)(h1,{kwirthVersion:e.channelObject.kwirthVersion,onClose:()=>Oe(!1)})]})};var Zi=k(va(),1);u();var R=k(he(),1),ma="var(--magnify-section-bg, white)",Vr=e=>(0,R.jsxs)("svg",{viewBox:"0 0 360 400",width:"300",height:"333",role:"img","aria-label":e.label,children:[(0,R.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",children:e.children}),(0,R.jsx)("text",{x:"180",y:"378",textAnchor:"middle",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"30",fill:"currentColor",children:e.label})]}),rn=e=>{let t=e.r??11,n=[0,1,2,3,4,5].map(a=>{let r=Math.PI/6+a*Math.PI/3;return`${(e.cx+t*Math.cos(r)).toFixed(1)},${(e.cy+t*Math.sin(r)).toFixed(1)}`}).join(" ");return(0,R.jsx)("polygon",{points:n})},eo=e=>{let{cx:t,cy:n,r:a}=e;return(0,R.jsxs)("g",{children:[(0,R.jsx)("circle",{cx:t,cy:n,r:a}),(0,R.jsx)("circle",{cx:t,cy:n,r:a*.4}),[0,1,2,3,4,5,6,7].map(r=>{let i=r*Math.PI/4;return(0,R.jsx)("line",{x1:t+a*Math.cos(i),y1:n+a*Math.sin(i),x2:t+(a+a*.45)*Math.cos(i),y2:n+(a+a*.45)*Math.sin(i)},r)})]})},Wl=e=>{let{cx:t,cy:n,s:a}=e;return(0,R.jsxs)("g",{children:[(0,R.jsx)("path",{d:`M${t},${n-a} L${t+a},${n-a/2} L${t},${n} L${t-a},${n-a/2} Z`}),(0,R.jsx)("path",{d:`M${t-a},${n-a/2} L${t-a},${n+a/2} L${t},${n+a} L${t},${n}`}),(0,R.jsx)("path",{d:`M${t+a},${n-a/2} L${t+a},${n+a/2} L${t},${n+a}`}),[0,1,2].map(r=>(0,R.jsx)("line",{x1:t+a*.25,y1:n+a*.1+r*a*.22,x2:t+a*.75,y2:n-a*.15+r*a*.22},r))]})},BM=()=>(0,R.jsxs)(Vr,{label:"WORKLOAD",children:[(0,R.jsxs)("g",{fill:"currentColor",stroke:"none",children:[(0,R.jsx)("rect",{x:"62",y:"198",width:"34",height:"57",rx:"3"}),(0,R.jsx)("rect",{x:"110",y:"212",width:"34",height:"43",rx:"3"}),(0,R.jsx)("rect",{x:"158",y:"150",width:"34",height:"105",rx:"3"}),(0,R.jsx)("rect",{x:"206",y:"162",width:"34",height:"93",rx:"3"}),(0,R.jsx)("rect",{x:"254",y:"106",width:"34",height:"149",rx:"3"})]}),(0,R.jsx)("line",{x1:"52",y1:"268",x2:"298",y2:"268"}),(0,R.jsx)("circle",{cx:"44",cy:"268",r:"8"}),(0,R.jsx)("circle",{cx:"306",cy:"268",r:"8"}),(0,R.jsx)("polyline",{points:"70,170 158,100 198,124 282,46",strokeWidth:"12"}),(0,R.jsx)("polyline",{points:"248,44 286,42 284,80",strokeWidth:"12"}),(0,R.jsx)(eo,{cx:130,cy:178,r:12})]}),HM=()=>(0,R.jsxs)(Vr,{label:"NETWORKING",children:[(0,R.jsx)("circle",{cx:"180",cy:"165",r:"130"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"52"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"62",ry:"130"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(-35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),[[50,165],[310,165],[180,35],[180,295],[242,98],[136,175],[210,222],[262,52],[100,78],[292,222]].map(([e,t],n)=>(0,R.jsx)("circle",{cx:e,cy:t,r:"10",fill:ma},n))]}),$M=()=>(0,R.jsxs)(Vr,{label:"SECURITY",children:[(0,R.jsx)("rect",{x:"34",y:"26",width:"292",height:"254",strokeDasharray:"14 10",strokeWidth:"4"}),(0,R.jsx)(rn,{cx:34,cy:26}),(0,R.jsx)(rn,{cx:326,cy:26}),(0,R.jsx)(rn,{cx:34,cy:280}),(0,R.jsx)(rn,{cx:326,cy:280}),(0,R.jsx)("circle",{cx:"180",cy:"26",r:"8"}),(0,R.jsx)("circle",{cx:"180",cy:"280",r:"8"}),(0,R.jsx)("circle",{cx:"34",cy:"153",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"153",r:"8"}),(0,R.jsx)("path",{d:"M180,52 C214,72 244,78 270,78 L270,160 C270,226 232,262 180,290 C128,262 90,226 90,160 L90,78 C116,78 146,72 180,52 Z"}),(0,R.jsx)("path",{d:"M180,72 C208,88 232,94 252,94 L252,160 C252,214 222,244 180,268 C138,244 108,214 108,160 L108,94 C128,94 152,88 180,72 Z",strokeWidth:"4"}),(0,R.jsx)("rect",{x:"142",y:"150",width:"76",height:"62",rx:"8"}),(0,R.jsx)("path",{d:"M156,150 V132 a24,24 0 0 1 48,0 V150"}),(0,R.jsx)("circle",{cx:"180",cy:"176",r:"7"}),(0,R.jsx)("line",{x1:"180",y1:"183",x2:"180",y2:"198"})]}),qM=()=>(0,R.jsxs)(Vr,{label:"CLUSTER",children:[(0,R.jsx)("circle",{cx:"180",cy:"168",r:"150",strokeDasharray:"12 10",strokeWidth:"4"}),[[110,102],[250,102],[110,236],[250,236]].map(([e,t],n)=>(0,R.jsxs)("g",{children:[(0,R.jsx)("line",{x1:e,y1:t,x2:e<180?70:290,y2:t,strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("circle",{cx:e<180?64:296,cy:t,r:"7"})]},n)),(0,R.jsx)("line",{x1:"180",y1:"130",x2:"180",y2:"206"}),(0,R.jsx)("line",{x1:"140",y1:"168",x2:"220",y2:"168"}),(0,R.jsx)(Wl,{cx:180,cy:92,s:40}),(0,R.jsx)(Wl,{cx:104,cy:168,s:40}),(0,R.jsx)(Wl,{cx:256,cy:168,s:40}),(0,R.jsx)(Wl,{cx:180,cy:236,s:40})]}),x1=()=>(0,R.jsxs)("g",{children:[(0,R.jsx)("circle",{cx:"180",cy:"62",r:"32",fill:ma}),(0,R.jsx)("circle",{cx:"180",cy:"258",r:"32",fill:ma}),(0,R.jsx)("rect",{x:"166",y:"86",width:"28",height:"148",rx:"10",fill:ma}),(0,R.jsx)("rect",{x:"168",y:"22",width:"24",height:"38",rx:"3",fill:ma}),(0,R.jsx)("rect",{x:"168",y:"260",width:"24",height:"38",rx:"3",fill:ma}),(0,R.jsx)("rect",{x:"170",y:"16",width:"20",height:"12",fill:ma,stroke:"none"}),(0,R.jsx)("rect",{x:"170",y:"292",width:"20",height:"12",fill:ma,stroke:"none"})]}),UM=()=>(0,R.jsxs)(Vr,{label:"CONFIG",children:[(0,R.jsx)(rn,{cx:86,cy:86,r:52}),(0,R.jsx)(eo,{cx:86,cy:86,r:20}),(0,R.jsx)(rn,{cx:274,cy:236,r:50}),(0,R.jsx)(eo,{cx:274,cy:236,r:19}),(0,R.jsx)(rn,{cx:326,cy:96,r:16}),(0,R.jsx)(rn,{cx:34,cy:226,r:16}),(0,R.jsx)(rn,{cx:186,cy:24,r:14}),(0,R.jsx)("line",{x1:"150",y1:"24",x2:"170",y2:"24",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"326",y1:"114",x2:"326",y2:"140",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"34",y1:"192",x2:"34",y2:"208",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("g",{transform:"rotate(45 180 160)",children:(0,R.jsx)(x1,{})}),(0,R.jsx)("text",{x:"20",y:"176",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"}),(0,R.jsx)("text",{x:"296",y:"162",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"})]}),YM=()=>(0,R.jsxs)(Vr,{label:"STORAGE",children:[[26,70,114].map((e,t)=>(0,R.jsxs)("g",{children:[(0,R.jsx)("rect",{x:"92",y:e,width:"176",height:"40",rx:"8"}),(0,R.jsx)("circle",{cx:"112",cy:e+20,r:"7"}),[0,1,2,3].map(n=>[0,1].map(a=>(0,R.jsx)("circle",{cx:210+n*14,cy:e+13+a*14,r:"2.5",fill:"currentColor",stroke:"none"},`${n}${a}`)))]},t)),(0,R.jsx)("line",{x1:"62",y1:"150",x2:"42",y2:"76"}),(0,R.jsx)("line",{x1:"298",y1:"150",x2:"318",y2:"76"}),(0,R.jsx)("rect",{x:"34",y:"154",width:"292",height:"36",rx:"18"}),(0,R.jsx)("path",{d:"M58,190 L94,302 L266,302 L302,190"}),(0,R.jsx)("line",{x1:"116",y1:"190",x2:"132",y2:"302",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"244",y1:"190",x2:"228",y2:"302",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"70",y1:"238",x2:"290",y2:"238",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"180",y1:"284",x2:"180",y2:"214"}),(0,R.jsx)("polyline",{points:"162,232 180,212 198,232"})]}),GM=()=>(0,R.jsxs)(Vr,{label:"CUSTOMIZATION",children:[(0,R.jsx)("g",{transform:"translate(180 160) rotate(-45) scale(0.8) translate(-180 -160)",children:(0,R.jsx)(x1,{})}),(0,R.jsxs)("g",{transform:"rotate(45 180 160)",children:[(0,R.jsx)("rect",{x:"170",y:"160",width:"20",height:"118",rx:"10"}),(0,R.jsx)("rect",{x:"162",y:"122",width:"36",height:"40",rx:"4"}),(0,R.jsx)("path",{d:"M162,122 C158,96 166,64 180,44 C194,64 202,96 198,122"}),(0,R.jsx)("line",{x1:"180",y1:"60",x2:"180",y2:"120",strokeWidth:"3"})]}),(0,R.jsx)("line",{x1:"262",y1:"150",x2:"318",y2:"150"}),(0,R.jsx)("circle",{cx:"300",cy:"150",r:"8",fill:ma}),(0,R.jsx)("line",{x1:"262",y1:"184",x2:"318",y2:"184"}),(0,R.jsx)("circle",{cx:"276",cy:"184",r:"8",fill:ma}),(0,R.jsx)(eo,{cx:178,cy:36,r:10}),(0,R.jsx)(eo,{cx:130,cy:262,r:12}),(0,R.jsx)(rn,{cx:32,cy:150}),(0,R.jsx)(rn,{cx:84,cy:160,r:14}),(0,R.jsx)(rn,{cx:48,cy:232}),(0,R.jsx)(rn,{cx:180,cy:268,r:14}),(0,R.jsx)(rn,{cx:292,cy:112,r:12}),(0,R.jsx)("circle",{cx:"34",cy:"36",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"36",r:"8"}),(0,R.jsx)("circle",{cx:"34",cy:"270",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"270",r:"8"}),(0,R.jsx)("line",{x1:"44",y1:"36",x2:"96",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"264",y1:"36",x2:"316",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"44",y1:"270",x2:"96",y2:"270",strokeDasharray:"4 8",strokeWidth:"4"})]}),b1={access:$M,cluster:qM,config:UM,custom:GM,network:HM,storage:YM,workload:BM};var M=k(he(),1),Sa=(e,t,n)=>{if(!e.properties)return;let a=e.properties.find(r=>r.name===t);a&&(a.format="function",a.source=n)},h=(e,t,n,a,r)=>{let i=e.leftItems?.find(s=>s.name===t);i&&(i.onClick=n,a&&(i.isVisible=a),r&&(i.isEnabled=r))};function KM(e){let t=e.state??{};if(e.ready)return"green";if(t.terminated)return"gray";if(t.waiting){let n=t.waiting.reason??"";return["ContainerCreating","PodInitializing"].includes(n)?"orange":"red"}return"blue"}var w1=(e,t,n,a,r,i,s,o,l,c,d,m)=>{let f=(E,q)=>{let re=t.files.find(ne=>ne.path===E);re&&(re.children=q)},g=()=>{let E={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"events",action:Zi.EInstanceMessageAction.COMMAND,flow:Zi.EInstanceMessageFlow.REQUEST,type:Zi.EInstanceMessageType.DATA,channel:n.channelId,params:["cluster","","","","500"]};n.webSocket&&n.webSocket.send(JSON.stringify(E))},I=()=>t.clusterInfo?(0,M.jsx)(z.Box,{sx:{width:"100%",height:"100%",bgcolor:"background.default"},children:(0,M.jsx)(z.Card,{sx:{m:2,display:"flex",flexDirection:"column",height:"calc(100% - 55px)"},children:(0,M.jsxs)(z.CardContent,{sx:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",p:2},children:[(0,M.jsxs)(z.Stack,{direction:"row",sx:{justifyContent:"space-between",width:"100%",px:1},children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Cluster:"})," ",n.clusterInfo?.name]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Version:"})," ",t.clusterInfo.major,".",t.clusterInfo.minor,"\xA0\xA0(",t.clusterInfo.gitVersion,")"]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Platform:"})," ",t.clusterInfo.platform]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Nodes:"})," ",t.files.filter(E=>E.class==="Node").length]})]}),(0,M.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,M.jsx)(Xx,{channelObject:n}),(0,M.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{summary:!0}}),(0,M.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,M.jsxs)(z.Box,{sx:{flex:1,overflowY:"auto",ml:1,mr:1},children:[t.eventsProviderMissing&&(0,M.jsx)(z.Alert,{severity:"info",sx:{my:1},children:"The events provider is not installed in this cluster, so there are no cluster events to show. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."}),(0,M.jsx)(z.Stack,{direction:"column",children:t.clusterEvents?.map((E,q)=>{let re=E.type?E.type[0]:"",ne="--mui-palette-text-primary";return re==="W"&&(ne="orange"),re==="E"&&(ne="red"),(0,M.jsxs)(z.Stack,{direction:"row",children:[(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"5%",color:ne},children:re}),(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"25%",color:ne},children:E.eventTime||E.lastTimestamp||E.firstTimestamp}),(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"70%",color:ne},children:E.message})]},q)})}),(0,M.jsxs)(z.Stack,{direction:"row",children:[(0,M.jsx)(z.Typography,{sx:{flexGrow:1}}),(0,M.jsx)(z.Button,{onClick:g,children:"More Events"})]})]})]})})}):(0,M.jsx)(M.Fragment,{}),S=E=>{let q=E.path.replaceAll("/",""),re=b1[q];return(0,M.jsx)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"background.default",color:"text.secondary","--magnify-section-bg":ne=>ne.palette.background.default},children:re&&(0,M.jsx)(re,{})})},L=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total CPU: ",t.files.filter(E=>E.class==="Node").reduce((E,q)=>E+ +q.data.origin.status.capacity.cpu,0)]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total Memory: ",Ks(t.files.filter(E=>E.class==="Node").reduce((E,q)=>E+Jn(q.data.origin.status.capacity.memory),0))]}),(0,M.jsx)(z.Typography,{sx:{mt:1}}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Actual pods: ",t.files.filter(E=>E.class==="Pod").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Max pods: ",t.files.filter(E=>E.class==="Node").reduce((E,q)=>E+ +q.data.origin.status.capacity.pods,0)]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{node:!0}})})]})]}),U=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Pods: ",t.files.filter(E=>E.class==="Pod").length]}),(0,M.jsx)(z.Typography,{sx:{mt:1}}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Deployments: ",t.files.filter(E=>E.class==="Deployment").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Daemon sets: ",t.files.filter(E=>E.class==="DaemonSet").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Replica sets: ",t.files.filter(E=>E.class==="ReplicaSet").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Replication Controllers: ",t.files.filter(E=>E.class==="ReplicationController").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Stateful sets: ",t.files.filter(E=>E.class==="StatefulSet").length]}),(0,M.jsx)(z.Typography,{sx:{mt:1}}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Jobs: ",t.files.filter(E=>E.class==="Job").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Cron jobs: ",t.files.filter(E=>E.class==="CronJob").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{replicaSet:!0,daemonSet:!0,deployment:!0,statefulSet:!0,job:!0}})})]})]}),se=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Services: ",t.files.filter(E=>E.class==="Service").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Ingresses: ",t.files.filter(E=>E.class==="Ingress").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Ingress classes: ",t.files.filter(E=>E.class==="IngressClass").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{ingress:!0,service:!0}})})]})]}),le=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["ConfigMap: ",t.files.filter(E=>E.class==="ConfigMap").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Secret: ",t.files.filter(E=>E.class==="Secret").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{configMap:!0,secret:!0}})})]})]}),$=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total SA's: ",t.files.filter(E=>E.class==="ServiceAccount").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total Roles: ",t.files.filter(E=>E.class==="Role").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total Cluster Roles: ",t.files.filter(E=>E.class==="ClusterRole").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{role:!0,custerRole:!0}})})]})]}),me=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total PV's: ",t.files.filter(E=>E.class==="PersistentVolume").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total PVC's: ",t.files.filter(E=>E.class==="PersistentVolumeClaim").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total storage: ",Ks(t.files.filter(E=>E.class==="PersistentVolumeClaim").reduce((E,q)=>E+q.data.size,0))]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(Ha,{files:t.files,onLink:r,onNavigate:i,options:{volumeAttachment:!0}})})]})]}),N=()=>(0,M.jsx)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default"},children:(0,M.jsx)(y1,{preferences:t.userPreferences,files:t.files,onDataReload:oe,channelObject:n})}),oe=()=>{t.files=t.files.filter(E=>E.isDirectory&&E.path.split("/").length-1<=2),t.files=t.files.filter(E=>E.class!=="crdGroup"),t.currentPath="/overview",Pm(n)};f("/overview",I),f("/cluster",S),f("/workload",S),f("/config",S),f("/network",S),f("/storage",S),f("/access",S),f("/custom",S),f("/cluster/overview",L),f("/workload/overview",U),f("/network/overview",se),f("/config/overview",le),f("/storage/overview",me),f("/access/overview",$),f("/preferences",N);let Ce=a.get("classOverview");h(Ce,"create",()=>s("Pod"));let Ie=Ia.items.find(E=>E.name==="pods");Ie&&(Ie.invoke=(E,q)=>{let re=E.kind,ne=t.files.filter(ue=>ue.class==="Pod");return ne=ne.filter(ue=>{let wt=!1;if(re==="Deployment"){let dt=ue.data.origin.metadata.ownerReferences?.filter(Et=>Et.kind==="ReplicaSet")||[];if(dt&&dt.length>0){let Et=t.files.find(jr=>jr.path===`/workload/ReplicaSet/${dt[0].name}:${E.metadata.namespace}`);wt=Et&&Et.data.origin.metadata.ownerReferences.some(jr=>jr.kind==="Deployment"&&jr.name===E.metadata.name)}}else wt=ue.data.origin.metadata.ownerReferences?.some(dt=>dt.kind===re&&dt.name===E.metadata.name)||!1;return wt}),ne.map(ue=>ue.data.origin)});let W=E=>{let q=t.files.find(ue=>E===ue.path);if(!q||!q.data.origin.status?.containerStatuses)return(0,M.jsx)(M.Fragment,{});let re=[],ne=(ue,wt)=>{wt.map((dt,Et)=>{re.push((0,M.jsx)(z.Box,{sx:{width:"8px",height:"8px",backgroundColor:KM(dt),margin:"1px",display:"inline-block"}},(ue*1e3+Et).toString()))})};return q.data.origin.status.initContainerStatuses&&q.data.origin.status.initContainerStatuses.length>0&&ne(0,q.data.origin.status.initContainerStatuses),q.data.origin.status.containerStatuses&&q.data.origin.status.containerStatuses.length>0&&ne(1,q.data.origin.status.containerStatuses),re},B=E=>{let q=t.files.find(ne=>E===ne.path);if(!q||!q.data?.origin?.status)return(0,M.jsx)(M.Fragment,{});let re=q.data.origin?.metadata?.deletionTimestamp?"Terminating":q.data.origin?.status.phase;return(0,M.jsx)(z.Typography,{color:re==="Running"?"green":re==="Terminating"?"blue":re==="Succeeded"?"gray":re==="Pending"?"orange":"red",sx:{fontSize:12},children:re})},de=a.get("classPod");h(de,"create",()=>s("Pod"));let te=a.get("Pod");h(te,"details",l),h(te,"edit",c),h(te,"delete",o),Sa(te,"container",W),Sa(te,"status",B);let Oe=E=>{let q=t.files.find(ne=>E===ne.path);if(!q)return;if(!q.data?.origin?.status?.conditions)return(0,M.jsx)(M.Fragment,{});let re=[];for(let ne of q.data.origin.status.conditions)ne.status==="True"&&re.push((0,M.jsx)(z.Typography,{sx:{fontSize:12},children:ne.type},ne.type));return(0,M.jsx)(z.Stack,{direction:"column",children:re})},He=E=>{let q=t.files.find(ne=>E===ne.path);if(!q)return;let re=Tl(q.data.origin.spec.schedule);return[`${re?.timeLeft.days}d${re?.timeLeft.hours}h${re?.timeLeft.minutes}m${re?.timeLeft.seconds}s`]},De=E=>{let q=t.files.find(re=>E===re.path);if(q)return[`${q.data.origin.status?.active?.length||0}`]},It=a.get("classDeployment");h(It,"create",()=>s("Deployment"));let bt=a.get("Deployment");h(bt,"details",l),h(bt,"edit",c),h(bt,"delete",o);let Yt=a.get("classDaemonSet");h(Yt,"create",()=>s("DaemonSet"));let fa=a.get("DaemonSet");h(fa,"details",l),h(fa,"edit",c),h(fa,"delete",o);let A=a.get("classReplicaSet");h(A,"create",()=>s("ReplicaSet"));let ee=a.get("ReplicaSet");h(ee,"details",l),h(ee,"edit",c),h(ee,"delete",o);let ce=a.get("classReplicationController");h(ce,"create",()=>s("ReplicationController"));let $e=a.get("ReplicationController");h($e,"details",l),h($e,"edit",c),h($e,"delete",o);let _t=a.get("classStatefulSet");h(_t,"create",()=>s("StatefulSet"));let rt=a.get("StatefulSet");h(rt,"details",l),h(rt,"edit",c),h(rt,"delete",o);let _n=a.get("classJob");h(_n,"create",()=>s("Job"));let Le=a.get("Job");Sa(Le,"conditions",Oe),h(Le,"details",l),h(Le,"edit",c),h(Le,"delete",o);let on=a.get("classCronJob");h(on,"create",()=>s("CronJob"));let qa=a.get("CronJob");Sa(qa,"active",De),Sa(qa,"nextExecution",He),h(qa,"details",l),h(qa,"edit",c),h(qa,"delete",o);let Wr=fe.get("CronJob");if(Wr){let E=Wr.find(q=>q.name==="properties").items.find(q=>q.name==="nextExecution");E&&(E.invoke=(q,re)=>[Tl(re.spec.schedule)?.isoString]),E=Wr.find(q=>q.name==="properties").items.find(q=>q.name==="timeLeft"),E&&(E.invoke=(q,re)=>{let ne=Tl(re.spec.schedule);return[`${ne?.timeLeft.days}d${ne?.timeLeft.hours}h${ne?.timeLeft.minutes}m${ne?.timeLeft.seconds}s`]}),E=Wr.find(q=>q.name==="history").items.find(q=>q.name==="jobs"),E&&(E.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.class==="Job");return ne=ne.filter(ue=>(ue.data.origin.metadata.ownerReferences||[]).some(dt=>dt.name===re.metadata.name&&dt.kind==="CronJob")),ne=ne.map(ue=>ue.data.origin),ne})}let Br=a.get("Node");h(Br,"details",l),h(Br,"edit",c),h(Br,"delete",o);let ro=a.get("V1APIResource");h(ro,"details",l),h(ro,"browse",d);let io=a.get("Image");h(io,"details",l),h(io,"delete",o);let bn=a.get("classClusterOverview");h(bn,"search",m);let ln=a.get("Namespace");h(ln,"details",l),h(ln,"edit",c),h(ln,"delete",o),h(ln,"search",m);let zn=fe.get("Namespace");if(zn){let E=(re,ne,ue)=>{let wt=ne;ne.includes("+")&&([ne,wt]=ne.split("+"));let dt=t.files.filter(Et=>Et.data?.origin?.kind===ne&&Et.data?.origin?.metadata.namespace===re)?.map(Et=>Et.data?.origin);return dt.length===0?(0,M.jsx)(M.Fragment,{}):(0,M.jsxs)(z.Stack,{sx:{flexDirection:"row"},children:[(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"13%"},children:wt}),(0,M.jsx)(z.Stack,{sx:{flexDirection:"column"},children:dt.map((Et,jr)=>(0,M.jsx)(z.Typography,{variant:"body2",children:(0,M.jsx)("a",{href:"#",onClick:()=>ue(ne,Et.metadata.name,Et.metadata.namespace),children:Et.metadata.name},jr)}))})]})},q=zn?.find(re=>re.name==="content")?.items.find(re=>re.name==="content");q&&(q.invoke=(re,ne,ue)=>["Pod","Deployment","DaemonSet","ReplicaSet","ReplicationController+RepController","StatefulSet","Job","CronJob","PersistentVolumeClaim+PVC","PersistentVolume+PV","ConfigMap","Secret","Service","Endpoints","Ingress","ServiceAccount+SrvAccnt","Role","RoleBinding"].map(wt=>E(ne.metadata.name,wt,ue)))}let Ca=a.get("ComponentStatus");h(Ca,"details",l),h(Ca,"browse",d);let Hl=E=>{let q=t.files.find(re=>E===re.path);if(q)return q.data?.origin?.spec?.selector?(0,M.jsx)(z.Stack,{direction:"column",children:Object.keys(q.data.origin.spec.selector).map((re,ne)=>(0,M.jsxs)(z.Typography,{sx:{fontSize:12},children:[re,"=",q?.data.origin.spec.selector[re]]},ne))}):(0,M.jsx)(M.Fragment,{})},$l=a.get("classService");h($l,"create",()=>s("Service"));let Ua=a.get("Service");Sa(Ua,"selector",Hl),h(Ua,"details",l),h(Ua,"edit",c),h(Ua,"delete",o);let so=a.get("classEndpoints");h(so,"create",()=>s("Endpoints"));let Hr=a.get("Endpoints");h(Hr,"details",l),h(Hr,"edit",c),h(Hr,"delete",o);let oo=E=>{let q=t.files.find(re=>E===re.path);if(q)return q.data?.origin?.spec?.rules?(0,M.jsx)(z.Stack,{direction:"column",children:q.data.origin.spec.rules.map((re,ne)=>re.http.paths.map((ue,wt)=>(0,M.jsxs)(z.Typography,{sx:{fontSize:12},children:["http://",re.host,ue.path,"\xA0\u2192\xA0",ue.backend.service.name,":",ue.backend.service.port.number]},ne+"-"+wt)))}):(0,M.jsx)(M.Fragment,{})},kt=a.get("classIngress");h(kt,"create",()=>s("Ingress"));let $r=a.get("Ingress");Sa($r,"rules",oo),h($r,"details",l),h($r,"edit",c),h($r,"delete",o);let ns=a.get("classIngressClass");h(ns,"create",()=>s("IngressClass"));let qr=a.get("IngressClass");h(qr,"details",l),h(qr,"edit",c),h(qr,"delete",o);let lo=fe.get("IngressClass");if(lo){let E=lo?.find(q=>q.name==="properties")?.items.find(q=>q.name==="ingresses");E&&(E.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.path.startsWith("/network/Ingress/"));return ne=ne.filter(ue=>ue.data.origin.spec?.ingressClassName===q.metadata?.name||ue.data.origin.metadata?.annotations?.["kubernetes.io/ingress.class"]===q.metadata?.name),ne.map(ue=>({name:ue.data.origin.metadata.name,namespace:ue.data.origin.metadata.namespace}))})}let ql=a.get("classNetworkPolicy");h(ql,"create",()=>s("NetworkPolicy"));let Ur=a.get("NetworkPolicy");h(Ur,"details",l),h(Ur,"edit",c),h(Ur,"delete",o);let Ul=a.get("classConfigMap");h(Ul,"create",()=>s("ConfigMap"));let as=a.get("ConfigMap");h(as,"details",l),h(as,"edit",c),h(as,"delete",o);let Yl=a.get("classSecret");h(Yl,"create",()=>s("Secret"));let rs=a.get("Secret");h(rs,"details",l),h(rs,"edit",c),h(rs,"delete",o);let Ya=a.get("classResourceQuota");h(Ya,"create",()=>s("ResourceQuota"));let pa=a.get("ResourceQuota");h(pa,"details",l),h(pa,"edit",c),h(pa,"delete",o);let ze=a.get("classLimitRange");h(ze,"create",()=>s("LimitRange"));let is=a.get("LimitRange");h(is,"details",l),h(is,"edit",c),h(is,"delete",o);let co=a.get("classHorizontalPodAutoscaler");h(co,"create",()=>s("HorizontalPodAutoscaler"));let Yr=a.get("HorizontalPodAutoscaler");h(Yr,"details",l),h(Yr,"edit",c),h(Yr,"delete",o);let uo=a.get("classPodDisruptionBudget");h(uo,"create",()=>s("PodDisruptionBudget"));let Gr=a.get("PodDisruptionBudget");h(Gr,"details",l),h(Gr,"edit",c),h(Gr,"delete",o);let mo=a.get("classPriorityClass");h(mo,"create",()=>s("PriorityClass"));let Kr=a.get("PriorityClass");h(Kr,"details",l),h(Kr,"edit",c),h(Kr,"delete",o);let fo=a.get("classRuntimeClass");h(fo,"create",()=>s("RuntimeClass"));let Jr=a.get("RuntimeClass");h(Jr,"details",l),h(Jr,"edit",c),h(Jr,"delete",o);let Gl=a.get("classLease");h(Gl,"create",()=>s("Lease"));let Qe=a.get("Lease");h(Qe,"details",l),h(Qe,"edit",c),h(Qe,"delete",o);let Kl=a.get("classValidatingWebhookConfiguration");h(Kl,"create",()=>s("ValidatingWebhookConfiguration"));let ss=a.get("ValidatingWebhookConfiguration");h(ss,"details",l),h(ss,"edit",c),h(ss,"delete",o);let os=a.get("classMutatingWebhookConfiguration");h(os,"create",()=>s("MutatingWebhookConfiguration"));let ls=a.get("MutatingWebhookConfiguration");h(ls,"details",l),h(ls,"edit",c),h(ls,"delete",o);let jt=a.get("classPersistentVolumeClaim");h(jt,"create",()=>s("PersistentVolumeClaim"));let wn=a.get("PersistentVolumeClaim");h(wn,"details",l),h(wn,"edit",c),h(wn,"delete",o);let Ln=fe.get("PersistentVolumeClaim");if(Ln){let E=Ln.find(q=>q.name==="properties").items.find(q=>q.name==="pods");E&&(E.invoke=(q,re)=>t.files.filter(dt=>dt.class==="Pod").filter(dt=>dt.data.origin.spec?.volumes?.some(Et=>Et.persistentVolumeClaim?.claimName===re.metadata.name)).map(dt=>dt.data.origin.metadata.name))}let po=a.get("classPersistentVolume");h(po,"create",()=>s("PersistentVolume"));let cs=a.get("PersistentVolume");h(cs,"details",l),h(cs,"edit",c),h(cs,"delete",o);let Jl=a.get("classStorageClass");h(Jl,"create",()=>s("StorageClass"));let us=a.get("StorageClass");h(us,"details",l),h(us,"edit",c),h(us,"delete",o);let ms=fe.get("StorageClass");if(ms){let E=ms.find(q=>q.name==="properties").items.find(q=>q.name==="pvs");E&&(E.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.path.startsWith("/storage/PersistentVolume/"));return ne=ne.filter(ue=>ue.data.origin.spec?.storageClassName===q.metadata.name),ne.map(ue=>ue.data.origin.metadata.name)}),E=ms.find(q=>q.name==="properties").items.find(q=>q.name==="pvcs"),E&&(E.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.path.startsWith("/storage/PersistentVolumeClaim/"));return ne=ne.filter(ue=>ue.data.origin.spec?.storageClassName===q.metadata.name),ne.map(ue=>({name:ue.data.origin.metadata.name,namespace:ue.data.origin.metadata.namespace}))})}let ho=a.get("VolumeAttachment");h(ho,"details",l),h(ho,"browse",d);let Ga=a.get("CSIDriver");h(Ga,"details",l),h(Ga,"browse",d);let p=fe.get("CSIDriver");if(p){let E=p?.find(q=>q.name==="properties")?.items.find(q=>q.name==="storageClasses");E&&(E.invoke=(q,re,ne)=>{let ue=t.files.filter(wt=>wt.path.startsWith("/storage/StorageClass/"));return[(0,M.jsxs)(z.Stack,{sx:{flexDirection:"row"},children:[(0,M.jsx)(z.Typography,{sx:{width:"13%"},children:"StgClass"}),(0,M.jsx)(z.Stack,{sx:{flexDirection:"column"},children:ue.map((wt,dt)=>{if(wt.data.origin.provisioner===q.metadata?.name)return(0,M.jsx)("a",{href:"#",onClick:()=>ne("StorageClass",wt.data.origin.metadata.name,""),children:wt.data.origin.metadata.name},dt)})})]})]})}let y=a.get("CSINode");h(y,"details",l),h(y,"browse",d);let b=a.get("CSIStorageCapacity");h(b,"details",l),h(b,"browse",d);let D=a.get("classServiceAccount");h(D,"create",()=>s("ServiceAccount"));let V=a.get("ServiceAccount");h(V,"details",l),h(V,"edit",c),h(V,"delete",o);let H=fe.get("ServiceAccount");if(H){let E=H.find(q=>q.name==="properties").items.find(q=>q.name==="tokens");E&&(E.invoke=(q,re)=>t.files.filter(ue=>ue.data?.origin?.metadata?.annotations&&ue.data?.origin?.metadata?.namespace&&ue.data?.origin?.metadata?.annotations["kubernetes.io/service-account.name"]==="kwirth-sa"&&ue.data?.origin?.metadata?.namespace===re.metadata.namespace).map(ue=>({name:ue.data.origin.metadata.name,namespace:ue.data.origin.metadata.namespace})))}let Q=a.get("classClusterRole");h(Q,"create",()=>s("ClusterRole"));let G=a.get("ClusterRole");h(G,"details",l),h(G,"edit",c),h(G,"delete",o);let Ka=a.get("classRole");h(Ka,"create",()=>s("Role"));let Ja=a.get("Role");h(Ja,"details",l),h(Ja,"edit",c),h(Ja,"delete",o);let go=a.get("classClusterRoleBinding");h(go,"create",()=>s("ClusterRoleBinding"));let ds=a.get("ClusterRoleBinding");h(ds,"details",l),h(ds,"edit",c),h(ds,"delete",o);let N1=a.get("classRoleBinding");h(N1,"create",()=>s("RoleBinding"));let jl=a.get("RoleBinding");h(jl,"details",l),h(jl,"edit",c),h(jl,"delete",o);let E1=a.get("classCustomResourceDefinition");h(E1,"create",()=>s("CustomResourceDefinition"));let Zl=a.get("CustomResourceDefinition");h(Zl,"details",l),h(Zl,"edit",c),h(Zl,"delete",o);let Xl=a.get("crdInstance");h(Xl,"details",l),h(Xl,"edit",c),h(Xl,"delete",o);let Ql=a.get("crdNamespacedInstance");h(Ql,"details",l),h(Ql,"edit",c),h(Ql,"delete",o)};var ao=k(Dt(),1);u();var da=k(ft(),1);var S1=k(Gt(),1),sn=k(he(),1),C1=e=>(0,sn.jsx)(da.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,sn.jsxs)(da.MenuList,{dense:!0,sx:{minWidth:140},children:[(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("ubuntu"),children:[(0,sn.jsx)(lc,{size:"18"}),"\xA0Ubuntu"]}),(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("alpine"),children:[(0,sn.jsx)(bd,{size:"18"}),"\xA0Alpine"]}),(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("dnsutils"),children:[(0,sn.jsx)(wd,{size:"18"}),"\xA0DNS Utils"]}),(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("jubuntu"),children:[(0,sn.jsx)(lc,{size:"18"}),"\xA0jUbuntu"]}),e.customActions&&e.customActions.filter(t=>t.type==="kube").map((t,n)=>(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,sn.jsx)(S1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))]})});var D1=k(ft(),1);u();var Qi=k(ft(),1),v1=k(Gt(),1),Xi=k(he(),1),I1=e=>(0,Xi.jsx)(Qi.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,Xi.jsx)(Qi.MenuList,{dense:!0,sx:{minWidth:140},children:e.customActions.filter(t=>t.type==="kwirth").map((t,n)=>(0,Xi.jsxs)(Qi.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,Xi.jsx)(v1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))})});var O1=k(Dt(),1);u();var we=k(ft(),1),$a=k(Em(),1),es=k(Gt(),1),k1=k(je(),1);var Se=k(he(),1),T1=e=>{if(!(e.channelObject.isFullscreen===!0)||e.channelObject.isDesktop)return null;let[n,a]=(0,k1.useState)(!1),i=e.channelObject.data?.metricsCluster??[],s=i.map(S=>({value:S.cpuUsage})),o=i.map(S=>({value:S.memoryUsage})),l=i.map(S=>({value:S.txmbps+S.rxmbps||0})),c=i.length>0?i[i.length-1]:null,d=c?.cpuUsage??0,m=c?.memoryUsage??0,f=c?.txmbps??0,g=c?.rxmbps??0,I=e.channelObject.clusters??[];return(0,Se.jsxs)(we.AppBar,{position:"sticky",color:"default",elevation:1,sx:{zIndex:1300},children:[(0,Se.jsxs)(we.Toolbar,{sx:{gap:1.5},children:[(0,Se.jsx)(we.IconButton,{size:"small",onClick:()=>a(!0),children:(0,Se.jsx)(es.Menu,{fontSize:"small"})}),(0,Se.jsxs)(we.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Se.jsx)(es.Search,{}),(0,Se.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700,color:"#f5820a"},children:"Kwirth"}),(0,Se.jsxs)(we.Box,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[(0,Se.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700},children:"Magnify"}),e.channelObject.clusterName&&(0,Se.jsxs)(we.Typography,{variant:"subtitle1",sx:{fontWeight:600,color:"text.secondary"},children:["\xB7 ",e.channelObject.clusterName]})]})]}),(0,Se.jsx)(we.Box,{sx:{flex:1}}),(0,Se.jsx)(we.Tooltip,{title:`${(d||0).toFixed(2)}%`,children:(0,Se.jsxs)(we.Stack,{direction:"column",sx:{alignItems:"center",mr:"2px"},children:[(0,Se.jsx)(we.Typography,{sx:{fontSize:8,mb:-1},children:"CPU"}),(0,Se.jsx)($a.AreaChart,{width:120,height:20,data:s,margin:{top:0,right:0,bottom:0,left:0},children:(0,Se.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#8884d8",strokeWidth:2,dot:!1,fill:"#bbbbdd"})})]})}),(0,Se.jsx)(we.Tooltip,{title:`${(m||0).toFixed(2)}%`,children:(0,Se.jsxs)(we.Stack,{direction:"column",sx:{alignItems:"center",mr:"2px"},children:[(0,Se.jsx)(we.Typography,{sx:{fontSize:8,mb:-1},children:"Mem"}),(0,Se.jsx)($a.AreaChart,{width:120,height:20,data:o,margin:{top:0,right:0,bottom:0,left:0},children:(0,Se.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#d88488",strokeWidth:2,dot:!1,fill:"#ddbbbb"})})]})}),(0,Se.jsx)(we.Tooltip,{title:`${(f||0).toFixed(2)}Mbps / ${(g||0).toFixed(2)}Mbps`,children:(0,Se.jsxs)(we.Stack,{direction:"column",sx:{alignItems:"center"},children:[(0,Se.jsx)(we.Typography,{sx:{fontSize:8,mb:-1},children:"Net"}),(0,Se.jsx)($a.AreaChart,{width:120,height:20,data:l,margin:{top:0,right:0,bottom:0,left:0},children:(0,Se.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#88d884",strokeWidth:2,dot:!1,fill:"#bbddbb"})})]})}),e.channelObject.clusterUrl&&(0,Se.jsx)(we.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:e.channelObject.clusterUrl}),(0,Se.jsx)(we.Tooltip,{title:"Exit fullscreen",children:(0,Se.jsx)(we.IconButton,{size:"small",onClick:()=>e.channelObject.exitFullscreen?.(),children:(0,Se.jsx)(es.FullscreenExit,{fontSize:"small"})})})]}),(0,Se.jsx)(we.Drawer,{anchor:"left",open:n,onClose:()=>a(!1),children:(0,Se.jsxs)(we.Box,{sx:{width:250},children:[(0,Se.jsx)(we.Typography,{variant:"subtitle1",sx:{fontWeight:700,px:2,py:1.5},children:"Clusters"}),(0,Se.jsx)(we.Divider,{}),(0,Se.jsxs)(we.List,{dense:!0,children:[I.map(S=>{let L=S.home?!0:!!S.reachable;return(0,Se.jsxs)(we.ListItemButton,{disabled:!L,selected:S.name===e.channelObject.clusterName,onClick:()=>{e.channelObject.switchCluster?.(S.name),a(!1)},children:[(0,Se.jsx)(we.ListItemIcon,{sx:{minWidth:28},children:(0,Se.jsx)(we.Box,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:Qg(S.name).dot,flexShrink:0}})}),(0,Se.jsx)(we.ListItemText,{primary:S.name,secondary:S.home?"home":void 0})]},S.name)}),I.length===0&&(0,Se.jsx)(we.ListItemText,{primary:"No clusters",sx:{px:2,color:"text.secondary"}})]})]})})]})};var j=k(he(),1),JM=e=>{let t=(0,Xe.useRef)(null);return e.title?(0,j.jsxs)(Me.Dialog,{open:!0,onClose:()=>{e.onClose(),e.onResult?.(void 0)},children:[(0,j.jsx)(Me.DialogTitle,{children:e.title}),(0,j.jsx)(Me.DialogContent,{children:(0,j.jsxs)(Me.Stack,{sx:{mt:2},direction:"column",children:[typeof e.message=="string"?(0,j.jsx)(Me.Typography,{component:"div",sx:{ml:2},children:(0,j.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}})}):e.message,(0,j.jsx)(Me.TextField,{inputRef:t,sx:{width:e.width},defaultValue:e.default},e.message?.toString())]})}),(0,j.jsxs)(Me.DialogActions,{children:[(0,j.jsx)(Me.Button,{onClick:()=>{e.onClose(),e.onResult?.(t.current?.value)},children:"ok"}),(0,j.jsx)(Me.Button,{onClick:()=>e.onClose(),children:"cancel"})]})]}):null},to=kl(),jM={ContentDetails:(0,j.jsx)(ld,{}),ArtifactSearch:(0,j.jsx)(xn.Search,{}),LogSearchPanel:(0,j.jsx)(xn.Search,{}),ContentEdit:(0,j.jsx)(xn.Edit,{}),ContentBrowse:(0,j.jsx)(Wn,{})},R1=e=>{let t=(0,D1.useTheme)(),n=e.channelObject.data,a=p=>{try{return vo((0,lt.accessKeyDeserialize)(e.channelObject.accessString??""),p)}catch{return!1}},r=a("magnify$write"),i=a(So),s={create:!1,delete:!1,download:!1,copy:!1,move:!1,rename:!1,upload:!1},[o,l]=(0,Xe.useState)(0),c=(0,Xe.useRef)(null),d=(0,Xe.useRef)(null),m=(0,Xe.useRef)(null),[f,g]=(0,Xe.useState)(0),[I,S]=(0,Xe.useState)((0,j.jsx)(j.Fragment,{})),[L,U]=(0,Xe.useState)(),[se,le]=(0,Xe.useState)(),[$,me]=(0,Xe.useState)(),[N,oe]=(0,Xe.useState)(),[Ce,Ie]=(0,Xe.useState)(),[W,B]=(0,Xe.useState)(),[de,te]=(0,Xe.useState)(),[Oe,He]=(0,Xe.useState)(),[De,It]=(0,Xe.useState)(""),[bt,Yt]=(0,Xe.useState)(!1),[fa,A]=(0,Xe.useState)(void 0),[,ee]=(0,Xe.useState)(0),ce=(p,y)=>{let b=rt.find(V=>V.key===p);if(!b)return!0;let D=!0;switch(p){case"Node":D=b.selected.includes("all")||b.selected.some(V=>y.data?.origin?.spec?.nodeName?.includes(V));break;case"Namespace":D=b.selected.includes("all")||b.selected.some(V=>y.data?.origin?.metadata?.namespace===V);break;case"controller":D=b.selected.includes("all")||b.selected.some(V=>y.data?.origin?.metadata?.ownerReferences?.[0]?.kind===V);break}return D},$e=p=>{let y=rt.find(b=>b.key===p);return y?!(y.selected.length===1&&y.selected[0]==="all"):!1},_t=(p,y,b)=>{let D=rt.find(V=>V.key===p);D&&(y==="all"?b=["all"]:y!=="all"&&b.length===2&&b.includes("all")?b=b.filter(V=>V!=="all"):b.length===0&&(b=["all"]),D.selected=b,n.selectedCategories||(n.selectedCategories={}),n.selectedCategories[p]=b,_n([...rt]))},[rt,_n]=(0,Xe.useState)([{key:"Node",text:"Node",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Node??["all"],onCategoryValuesChange:_t,onCategoryFilter:ce,isFilterActive:$e},{key:"Namespace",text:"Namespace",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Namespace??["all"],onCategoryValuesChange:_t,onCategoryFilter:ce,isFilterActive:$e},{key:"controller",text:"Controller",all:[{key:"all",text:"All..."},{key:"-"},{key:"ReplicaSet"},{key:"DaemonSet"},{key:"StatefulSet"},{key:"ReplicationController"},{key:"Job"}],selected:n.selectedCategories?.controller??["all"],onCategoryValuesChange:_t,onCategoryFilter:ce,isFilterActive:$e}]),Le=p=>{switch(p){case"exit":return(0,j.jsx)(xn.ExitToApp,{sx:{color:"gray"}});case"notifications":return e.channelObject.notifications.length>0?(0,j.jsx)(xn.NotificationsActive,{sx:{color:"success.main"}}):(0,j.jsx)(xn.Notifications,{sx:{color:"text.disabled"}});case"cloud":return e.channelObject.webSocket?.readyState===1?(0,j.jsx)(Me.Tooltip,{title:(0,j.jsxs)("div",{style:{textAlign:"center"},children:["Communications to",(0,j.jsx)("br",{})," Kwirth backend are ok"]}),children:(0,j.jsx)(xn.CloudQueue,{sx:{color:"success.main"}})}):(0,j.jsx)(Me.Tooltip,{title:(0,j.jsxs)("div",{style:{textAlign:"center"},children:["Communications to Kwirth backend",(0,j.jsx)("br",{}),"have been interrupted.",(0,j.jsx)("br",{}),"You need to exit cluster and reenter."]}),children:(0,j.jsx)(od,{sx:{color:"error.main",animation:"blink 1.5s infinite","@keyframes blink":{"0%":{opacity:1},"50%":{opacity:.1},"100%":{opacity:1}}}})})}},on=(p,y)=>{switch(p){case"exit":S((0,vt.MsgBoxYesNo)("Exit cluster","Are you sure you want to leave this cluster and go back to initial cluster selection?",S,b=>{b===vt.MsgBoxButtons.Yes&&e.channelObject.exit?.()}));break;case"notifications":A(y);break;case"cloud":e.channelObject.webSocket?.readyState!==1&&S((0,vt.MsgBoxYesNo)("Reconnect Kwirth","Kwirth has been disconnected. Do you want to reconnect?",S,b=>{}));break}},qa=[{name:"cloud",onClick:(p,y)=>on(p,y),onDraw:p=>Le(p)},{name:"notifications",onClick:(p,y)=>on(p,y),onDraw:p=>Le(p)},{name:"exit",onClick:(p,y)=>on(p,y),onDraw:p=>Le(p)}];(0,Xe.useLayoutEffect)(()=>{let p=new ResizeObserver(()=>{requestAnimationFrame(()=>{if(!c.current)return;let{top:y}=c.current.getBoundingClientRect();l(window.innerHeight-y)})});return p.observe(document.body),()=>p.disconnect()},[]),(0,Xe.useLayoutEffect)(()=>{m.current&&g(m.current.getBoundingClientRect().top)},[n.started]),(0,Xe.useEffect)(()=>{e.channelObject.setPalette?.(n.userPreferences?.palette),n.files.some(b=>b.path==="/overview")||n.files.push(...Sd),w1(t,n,e.channelObject,_,os,Gl,Hl,Ua,Ca,so,Hr,$r),ql(),Ul(),lo(),as(),rs(),n.refreshUsage=()=>ee(b=>b+1);let p=rt.find(b=>b.key==="Namespace");if(p)for(let b of n.files.filter(D=>D.data?.origin?.kind==="Namespace"))p.all.some(D=>D.key===b.name)||p.all.push({key:b.name,text:b.name});let y=rt.find(b=>b.key==="Node");if(y)for(let b of n.files.filter(D=>D.data?.origin?.kind==="Node"))y.all.some(D=>D.key===b.name)||y.all.push({key:b.name,text:b.name});return n.updateCategoryValues=(b,D,V)=>{let H=rt.find(Q=>Q.key===b);H&&(D==="DELETED"?H.all=H.all.filter(Q=>Q.key!==V):H.all.some(Q=>Q.key===V)||H.all.push({key:V}))},()=>{te(void 0)}},[]);let Wr=(p,y,b)=>{te(void 0),b==="*all"?kt(p,[y],lt.EInstanceConfigView.POD,void 0,void 0):kt(p,[y],lt.EInstanceConfigView.CONTAINER,void 0,b)},Br=p=>{if(p.onReady==="shell"&&!Yr())return;let y=to.load(p.podYaml);Qe("apply",[p.podYaml]);let b=p.url;if(p.onReady==="http"||p.onReady==="https"){p.forward&&(b="http://localhost:3000/kwirth/port-forward/pod/default/galaga/80");let D=window.setInterval(async()=>{try{let V=await fetch(b);V.status>=200&&V.status<400&&(clearInterval(D),S((0,j.jsx)(j.Fragment,{})))}catch(V){console.log(V)}},1e3);S((0,vt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for... ${b})...`,S,V=>{V===vt.MsgBoxButtons.Cancel&&clearInterval(D)}))}else if(p.onReady==="shell"){let D=window.setInterval(async()=>{try{let V=n.files.find(H=>H.class==="Pod"&&H.data.origin.metadata.namespace===(y.metadata.namespace||"default")&&H.data.origin.metadata.name===y.metadata.name);V&&V.data.origin.status.phase==="Running"&&(clearInterval(D),S((0,j.jsx)(j.Fragment,{})),kt("ops",[V],lt.EInstanceConfigView.CONTAINER,void 0,V.data.origin.spec.containers[0].name))}catch(V){console.log(V)}},1e3);S((0,vt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for shell)...`,S,V=>{V===vt.MsgBoxButtons.Cancel&&clearInterval(D)}))}},ro=p=>{Ie(void 0);let y=n.userPreferences.customActions.find(b=>b.name===p);y?Br(y):Qe("Pod",["work",p])},io=p=>{let y=n.userPreferences.customActions.find(b=>b.name===p);y&&Br(y)},bn=p=>{n.windows.forEach(b=>b.atFront=!1);let y=n.windows.find(b=>b.id===p);if(y){y.visible=!0,y.atFront=!0,ee(b=>b+1);return}},ln=p=>{n.windows.forEach(y=>y.atFront=!1),n.windows.push(p),ee(y=>y+1)},zn=(p,y,b,D,V,H)=>{let Q=n.windows.find(G=>G.id===p);Q&&(Q.isMaximized=y,Q.x=b,Q.y=D,Q.width=V,Q.height=H)},Ca=(p,y)=>{let b=n.files.filter(H=>p.includes(H.path)),D=fe.get(b[0].data.origin.kind);b[0].path.startsWith("/custom/")&&!b[0].path.startsWith("/custom/CustomResourceDefinition/")&&(D=fe.get("#crdInstance#"));let V=n.windows.find(H=>H.selectedFiles.find(Q=>Q.path===b[0].path)&&H.class==="ContentDetails");if(V)bn(V.id);else{let H=_.get(b[0].data.origin.kind),Q={id:"details-"+b[0].path+"-"+it(),class:"ContentDetails",visible:!0,atTop:!1,atFront:!0,title:b[0].data.origin.metadata?.name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{source:b[0],path:b[0].path,sections:D,actions:H&&H.leftItems?H.leftItems:[],onApply:Jl,onAction:us,onLink:os,containerSelectionOptions:new Map([["log",2],["metrics",2],["fileman",2],["trivy",0],["topology",0],["ops",1],["evict",0],["cordon",0],["uncordon",0],["drain",0],["scale",0],["restart",0],["trigger",0],["suspend",0],["resume",0]])},selectedFiles:[b[0]],onWindowChange:zn,onMinimize:wn,onTop:Ln,onClose:jt};ln(Q)}b[0].data.origin.metadata&&(b[0].data.events&&delete b[0].data.events,Qe("events",["object",b[0].data.origin.metadata.namespace,b[0].data.origin.kind,b[0].data.origin.metadata.name]))},Hl=p=>{let y=(Pe.get(p)||`apiVersion: v1
803
+ `);u();var Je=k(ft(),1),$a=k(je(),1),jx=k(Kt(),1);var Zx=k(Ct(),1);var Xx=k(Ct(),1),Ke=k(he(),1),Qx=e=>{let t=(0,$a.useRef)(null),[n,a]=(0,$a.useState)(e.data.searchText),[r,i]=(0,$a.useState)(e.data.includeStatus),[s,o]=(0,$a.useState)(e.data.merge),[l,c]=(0,$a.useState)(e.data.matchCase),[d,m]=(0,$a.useState)(e.isMaximized),f=e.data;(0,Xx.useKeyboard)(e.onClose,e.id);let g=()=>{e.onFocus&&e.onFocus()},I=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},C=E=>{m(!1),t.current?.snapTo(E)},L=E=>{a(E.target.value),e.data.searchText=E.target.value},U=()=>{i(!r),e.data.includeStatus=!e.data.includeStatus},se=()=>{c(!l),e.data.matchCase=!e.data.matchCase},le=()=>{o(!s),e.data.merge=!e.data.merge};function $(E,oe){if(!E||!oe)return;let Se=oe.replace(/\[(\d+)\]/g,".$1").split(".").filter(V=>V!==""),Ie=E;for(let V of Se){if(Ie===null||typeof Ie!="object")return;if(V in Ie)Ie=Ie[V];else return}return Ie}let me=(E,oe,Se,Ie,V)=>{if(!E||!E.kind)return[];let B=[];if(E.kind==="Secret"&&E.data){let de=Gs(E);for(let te of Object.keys(de.data))de.data[te]=atob(de.data[te]);B=vm(de,oe,Ie)}else B=vm(E,oe,Ie);return Se||(B=B.filter(de=>!de.startsWith("status"))),V&&B.length>1&&(B=[B[0]]),B};return(0,Ke.jsxs)(ea,{ref:t,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:g,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Ke.jsx)(Je.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Ke.jsxs)(Je.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,Ke.jsx)(jx.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Ke.jsxs)(Je.Typography,{variant:"body2",sx:{fontWeight:500,flex:1},children:["Search \u2014 ",f.scope===":cluster:"?"All cluster":"Namespace: "+f.scope]}),(0,Ke.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:I,onClose:()=>e.onClose(e.id),onSnap:C})]})}),(0,Ke.jsxs)(Je.DialogContent,{children:[(0,Ke.jsxs)(Je.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,Ke.jsx)(Je.TextField,{value:n,onChange:L,variant:"standard",label:"Search..."}),(0,Ke.jsx)(Je.FormControlLabel,{control:(0,Ke.jsx)(Je.Checkbox,{}),checked:r,onChange:U,label:"Include status"}),(0,Ke.jsx)(Je.FormControlLabel,{control:(0,Ke.jsx)(Je.Checkbox,{}),checked:l,onChange:se,label:"Match case"}),(0,Ke.jsx)(Je.FormControlLabel,{control:(0,Ke.jsx)(Je.Checkbox,{}),checked:s,onChange:le,label:"Merge repeated results"}),(0,Ke.jsx)(Je.Typography,{sx:{flexGrow:1}}),n.trim()!==""&&n.length>=3&&(0,Ke.jsxs)(Je.Typography,{children:["Results: ",f.selectedFiles.reduce((E,oe)=>E+me(oe.data?.origin,n,r,l,s).length,0)]})]}),(0,Ke.jsx)(Je.Stack,{direction:"column",sx:{mt:1},children:n.trim()!==""&&n.length>=3&&f.selectedFiles.map(E=>me(E.data?.origin,n,r,l,s).map((Se,Ie)=>{let V=$(E.data.origin,Se),B;return E.data.origin.metadata?B=(0,Ke.jsx)(Je.Typography,{variant:"body2",children:(0,Ke.jsx)("a",{href:"#",onClick:()=>f.onLink(E.data.origin.kind,E.data.origin.metadata.name,E.data.origin.metadata.namespace),children:E.data.origin.metadata.name})}):B=(0,Ke.jsx)(Je.Typography,{variant:"body2",children:(0,Ke.jsx)("a",{href:"#",onClick:()=>f.onLink(E.data.origin.kind,E.data.origin.name,""),children:E.data.origin.name})}),(0,Ke.jsxs)(Je.Stack,{direction:"row",sx:{alignItems:"center",mb:2,ml:1},children:[(0,Zx.getIconFromKind)(E.data?.origin?.kind,32),(0,Ke.jsxs)(Je.Stack,{direction:"column",sx:{ml:2},children:[B,(0,Ke.jsx)(Je.Typography,{variant:"body2",children:Se}),(0,Ke.jsxs)(Je.Typography,{variant:"body2",children:[String(V).substring(0,80),String(V).length>80?"...":""]})]})]},Ie)}))})]})]})};u();var Zn=k(je(),1),xe=k(ft(),1),Fr=k(Kt(),1);var Pn=k(ka(),1);var ve=k(he(),1),e1=e=>{let t=(0,Zn.useRef)(null),[n,a]=(0,Zn.useState)(""),[r,i]=(0,Zn.useState)(!1),[s,o]=(0,Zn.useState)(!1),[l,c]=(0,Zn.useState)(100),[d,m]=(0,Zn.useState)(!1),[f,g]=(0,Zn.useState)(null),{magnifyData:I}=e,C=!I.logSearchDone,L=I.logSearchResults,U=()=>{if(!n.trim()||!e.channelObject.webSocket)return;I.logSearchResults=[],I.logSearchDone=!1;let E=it();g(E);let oe=JSON.stringify({query:n,namespaces:e.data.namespaces,pods:e.data.pods,tailLines:l,caseSensitive:r,useRegex:s}),Se={flow:Pn.EInstanceMessageFlow.REQUEST,action:Pn.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:Pn.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:E,command:"logsearch",namespace:"",group:"",pod:"",container:"",params:[oe],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(Se))},se=()=>{if(!f||!e.channelObject.webSocket)return;let E={flow:Pn.EInstanceMessageFlow.REQUEST,action:Pn.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:Pn.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:it(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(E)),I.logSearchDone=!0,g(null)};(0,Zn.useEffect)(()=>()=>{if(f&&e.channelObject.webSocket){let E={flow:Pn.EInstanceMessageFlow.REQUEST,action:Pn.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:Pn.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:it(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(E))}},[f]);let le=E=>{e.data.onOpenLog(E.namespace,E.pod,E.container)},$=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},me=E=>{m(!1),t.current?.snapTo(E)};return(0,ve.jsxs)(ea,{ref:t,id:e.id,x:e.x,y:e.y,width:e.width,height:e.height,isMaximized:d,isActive:e.atFront,onFocus:e.onFocus,onWindowChange:e.onWindowChange,children:[(0,ve.jsx)(xe.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,ve.jsxs)(xe.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,ve.jsx)(Fr.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,ve.jsxs)(xe.Typography,{variant:"body2",sx:{fontWeight:500,flex:1},children:["Log Search \u2014 ",e.data.scopeLabel]}),(0,ve.jsx)(na,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:$,onClose:()=>e.onClose(e.id),onSnap:me})]})}),(0,ve.jsxs)(xe.DialogContent,{sx:{display:"flex",flexDirection:"column",p:1,gap:1,overflow:"hidden",height:"100%"},children:[(0,ve.jsx)(xe.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:(0,ve.jsx)(xe.TextField,{size:"small",fullWidth:!0,placeholder:"Search in logs\u2026",value:n,onChange:E=>a(E.target.value),onKeyDown:E=>{E.key==="Enter"&&U(),E.key==="Escape"&&e.onClose(e.id)},slotProps:{input:{endAdornment:(0,ve.jsx)(xe.InputAdornment,{position:"end",children:(0,ve.jsx)(xe.IconButton,{size:"small",onClick:U,disabled:C||!n.trim(),children:C?(0,ve.jsx)(xe.CircularProgress,{size:16}):(0,ve.jsx)(Fr.Search,{fontSize:"small"})})})}}})}),(0,ve.jsxs)(xe.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,ve.jsx)(xe.FormControlLabel,{control:(0,ve.jsx)(xe.Checkbox,{size:"small",checked:r,onChange:E=>i(E.target.checked)}),label:(0,ve.jsx)(xe.Typography,{variant:"caption",children:"Case"}),sx:{mr:0}}),(0,ve.jsx)(xe.FormControlLabel,{control:(0,ve.jsx)(xe.Checkbox,{size:"small",checked:s,onChange:E=>o(E.target.checked)}),label:(0,ve.jsx)(xe.Typography,{variant:"caption",children:"Regex"}),sx:{mr:0}}),(0,ve.jsx)(xe.TextField,{size:"small",type:"number",label:"Lines",value:l,onChange:E=>c(Math.min(500,+E.target.value)),sx:{width:90},slotProps:{htmlInput:{min:1,max:500,style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,ve.jsx)(xe.Tooltip,{title:"Stop search",children:(0,ve.jsx)("span",{children:(0,ve.jsx)(xe.IconButton,{size:"small",onClick:se,disabled:!C,children:(0,ve.jsx)(Fr.Stop,{fontSize:"small",color:C?"error":"disabled"})})})}),C&&(0,ve.jsx)(xe.Typography,{variant:"caption",sx:{color:"text.secondary"},children:"Searching\u2026"}),I.logSearchDone&&L.length>0&&!C&&(0,ve.jsx)(xe.Chip,{label:`${L.length} container${L.length>1?"s":""} with matches`,size:"small",color:"primary",variant:"outlined"}),I.logSearchDone&&L.length===0&&!C&&n&&(0,ve.jsx)(xe.Typography,{variant:"caption",sx:{color:"text.secondary"},children:"No matches found."})]}),(0,ve.jsx)(xe.Divider,{}),(0,ve.jsx)(xe.Box,{sx:{flex:1,overflowY:"auto"},children:L.map((E,oe)=>(0,ve.jsxs)(xe.Box,{sx:{mb:1.5},children:[(0,ve.jsxs)(xe.Stack,{direction:"row",spacing:.5,sx:{alignItems:"center",mb:.5},children:[(0,ve.jsxs)(xe.Typography,{variant:"caption",sx:{fontWeight:600,fontFamily:"monospace",color:"primary.main"},children:[E.namespace,"/",E.pod]}),(0,ve.jsx)(xe.Chip,{label:E.container,size:"small",variant:"outlined",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,ve.jsx)(xe.Chip,{label:`${E.lines.length} line${E.lines.length>1?"s":""}`,size:"small",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,ve.jsx)(xe.Tooltip,{title:"Open log",children:(0,ve.jsx)(xe.IconButton,{size:"small",sx:{p:0},onClick:()=>le(E),children:(0,ve.jsx)(Fr.Launch,{sx:{fontSize:12}})})})]}),E.lines.map((Se,Ie)=>(0,ve.jsx)(xe.Typography,{variant:"caption",sx:{display:"block",fontFamily:"monospace",fontSize:"10px",pl:1,color:"text.secondary",wordBreak:"break-all",borderLeft:"2px solid",borderColor:"divider",mb:.25},children:Se},Ie))]},oe))})]})]})};u();var z=k(ft(),1);u();var Wl=k(ft(),1),qe=k(Pm(),1),nt=k(he(),1),n1=e=>{let t=e.channelObject.data;if(t.metricsProviderMissing)return(0,nt.jsx)(Wl.Alert,{severity:"info",sx:{my:1},children:"The metrics provider is not installed in this cluster, so there is no cluster usage to draw. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."});let n=[...t.metricsCluster];return(0,nt.jsxs)(Wl.Stack,{direction:"row",sx:{height:"200px"},children:[(0,nt.jsx)(qe.ResponsiveContainer,{children:(0,nt.jsxs)(qe.LineChart,{data:n,title:"CPU",children:[(0,nt.jsx)(qe.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(qe.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(qe.YAxis,{fontSize:8}),(0,nt.jsx)(qe.Legend,{}),(0,nt.jsx)(qe.Line,{name:"% CPU",type:"monotone",dataKey:"cpuUsage",dot:!1})]})}),(0,nt.jsx)(qe.ResponsiveContainer,{children:(0,nt.jsxs)(qe.LineChart,{data:n,title:"Memory",children:[(0,nt.jsx)(qe.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(qe.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(qe.YAxis,{fontSize:8}),(0,nt.jsx)(qe.Legend,{}),(0,nt.jsx)(qe.Line,{name:"% Memory",type:"monotone",dataKey:"memoryUsage",dot:!1})]})}),(0,nt.jsx)(qe.ResponsiveContainer,{children:(0,nt.jsxs)(qe.LineChart,{data:n,title:"Network",children:[(0,nt.jsx)(qe.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(qe.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(qe.YAxis,{fontSize:8}),(0,nt.jsx)(qe.Legend,{}),(0,nt.jsx)(qe.Line,{name:"Tx Mbps",type:"monotone",dataKey:"txmbps",stroke:"#6e5bb8",dot:!1}),(0,nt.jsx)(qe.Line,{name:"Rx Mbps",type:"monotone",dataKey:"rxmbps",stroke:"#4a9076",dot:!1})]})})]})};u();var _n=k(ft(),1),Et=k(Ct(),1),a1=k(je(),1),an=k(Ct(),1),r1=k(Fl(),1),i1=k(_l(),1),Fn=k(he(),1),Xi={get:r1.default,set:i1.default},xn=(e,t)=>(0,Fn.jsx)(_n.Stack,{direction:"column",children:e.map((n,a)=>(0,Fn.jsxs)(_n.Typography,{variant:"body2",children:[n.text,":\xA0",(0,Fn.jsx)("a",{href:"#",onClick:()=>t(n.kind,n.name,n.namespace),children:n.name})]},a))}),s1=e=>{let t=[];for(let n of e.filter(a=>a.class==="ReplicaSet").map(a=>a.data.origin))n.status?.replicas===0||n.status?.availableReplicas===0||n.status?.readyReplicas===0?t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"Unneeded ReplicaSet"}):(n.status?.replicas===0||n.spec.availableReplicas===0)&&t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"0 replicas desired"});return t},o1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Deployment").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"Deployment",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"Unready replicas"});return t},l1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Job").map(a=>a.data.origin))n.status?.failed!==void 0&&+n.status?.failed>0&&t.push({kind:"Job",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"Failed Job"});return t},c1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"SS Replicas unready"});return t},u1=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"DS replicas unready"});return t},m1=e=>{let t=e.filter(i=>i.class==="ConfigMap"&&i.data?.origin?.metadata?.namespace!=="kube-system"&&i.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t],a=(i,s)=>{let o=i.envFrom||[];for(let c of o)if(c.configMapRef?.name===s)return!0;let l=i.env||[];for(let c of l)if(c.valueFrom?.configMapRef?.name===s)return!0;return!1},r=(i,s)=>{for(let l of i.spec?.containers||[])if(a(l,s))return!0;let o=i.spec?.volumes||[];for(let l of o)if(l.configMap?.name===s||l.projected?.sources?.some(c=>c.configMap?.name===s))return!0;return!1};for(let i of t){let s=i.data.origin.metadata.name;" kwirth.keys kwirth-keys ".includes(s)&&(n=n.filter(o=>o!==i));for(let o of e.filter(l=>l.class==="Pod/").map(l=>l.data.origin))r(o,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="StatefulSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicaSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="Deployment").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="DaemonSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicationController").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i))}return n.map(i=>({name:i.data.origin.metadata.name,namespace:i.data.origin.metadata.namespace,kind:"ConfigMap",text:"Unreferenced ConfigMap",level:Et.ENotifyLevel.WARNING}))},d1=e=>{let t=e.filter(a=>a.class==="Secret"&&a.data?.origin?.metadata?.namespace!=="kube-system"&&a.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t];for(let a of t){let r=a.data.origin.metadata.name;" kwirth-sa-kwirthtoken kwirth-users kwirth.keys kwirth-keys ".includes(r)&&(n=n.filter(i=>i!==a)),a.data?.origin?.type?.startsWith("helm.sh/release.")&&(n=n.filter(i=>i!==a));for(let i of e.filter(s=>s.class==="Pod")){let s=i.data.origin;if((Xi.get(s,"spec.imagePullSecrets")||[]).map(c=>c.name).some(c=>c===r)){n=n.filter(c=>c!==a);break}let o=s.spec?.containers||[];for(let c of o){let d=c.envFrom||[];for(let f of d)f.secretRef?.name===r&&(n=n.filter(g=>g!==a));let m=c.env||[];for(let f of m)f.valueFrom?.secretKeyRef?.name===r&&(n=n.filter(g=>g!==a))}let l=s.spec?.volumes||[];for(let c of l)c.secret?.secretName===r&&(n=n.filter(d=>d!==a)),c.projected?.sources?.some(d=>d.secret?.name===r)&&(n=n.filter(d=>d!==a))}for(let i of e.filter(s=>s.class==="Deployment"||s.class==="Job"||s.class==="ReplicaSet"||s.class==="DaemonSet"||s.class==="StatefulSet").map(s=>s.data.origin))if((Xi.get(i,"spec.template.spec.imagePullSecrets")||[]).map(s=>s.name).some(s=>s===r)){n=n.filter(s=>s!==a);break}for(let i of e.filter(s=>s.class==="Ingress")){let s=i.data.origin;(Xi.get(s,"spec.tls")||[]).some(o=>o.secretName===r)&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="PersistentVolume")){let s=i.data.origin;Xi.get(s,"spec.csi.nodeStageSecretRef.name")===r&&(n=n.filter(o=>o!==a)),Xi.get(s,"spec.csi.volumeAttributes.secretName")===r&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="StorageClass")){let s=i.data.origin;Xi.get(s,"parameters.secretName")===r&&(n=n.filter(o=>o!==a))}}return n.map(a=>({name:a.data.origin.metadata.name,namespace:a.data.origin.metadata.namespace,kind:"Secret",text:"Unreferenced Secret",level:Et.ENotifyLevel.WARNING}))},f1=e=>{let t=e.filter(a=>a.class==="VolumeAttachment"),n=[];for(let a of t)(a.data.origin.status.attachError||a.data.origin.status.detachError)&&n.push({kind:"VolumeAttach",name:a.data.origin.metadata.name,namespace:"",level:Et.ENotifyLevel.ERROR,text:"Attach/detach error"});return n},p1=e=>{let t=[],n=e.filter(a=>a.class==="Node").map(a=>a.data.origin);for(let a of n)a.status.conditions.some(i=>i.type==="Ready"&&i.status==="True")||t.push({name:a.metadata.name,namespace:"",kind:"Node",text:"Node not ready",level:Et.ENotifyLevel.ERROR});return t},h1=e=>{let t=[],n=e.filter(a=>a.class==="Ingress").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec?.rules;for(let s of i){let o=s.http?.paths;for(let l of o){let c=l.backend?.service?.name;e.find(d=>d.class==="Service"&&d.data.origin?.metadata?.name===c&&d.data.origin?.metadata?.namespace===r)||t.push({kind:"Ingress",name:a.metadata.name,namespace:a.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"Inexistent service "+c})}}}return t},g1=e=>{let t=[],n=e.filter(a=>a.class==="Service"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec.selector;if(i){let s=!1;for(let o of e.filter(l=>l.class==="Pod"&&l.data.origin?.metadata?.namespace===r).map(l=>l.data.origin)){let l=0;for(let c of Object.keys(i))o.metadata?.labels?.[c]===i[c]&&l++;if(l===Object.keys(i).length){s=!0;break}}s||t.push({kind:"Service",name:a.metadata.name,namespace:a.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"Inexistent service destination pods"})}}return t},y1=e=>{let t=[],n=e.filter(a=>a.class==="Role"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="RoleBinding").map(s=>s.data.origin))if(r=i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===a.metadata.name&&s.namespace===a.metadata.namespace),r)break;r||t.push({kind:"Role",name:a.metadata.name,namespace:a.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"Role not in use"})}return t},x1=e=>{let t=[],n=e.filter(a=>a.class==="ClusterRole").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="ClusterRoleBinding").map(s=>s.data.origin))if(r=i.subjects&&i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===i.metadata.name&&s.namespace===i.metadata.namespace),r)break;r||t.push({kind:"ClusterRole",name:a.metadata.name,namespace:"",level:Et.ENotifyLevel.WARNING,text:"ClusterRole not in use"})}return t},bn=(e,t,n,a)=>{let r=e.filter(s=>s.level===Et.ENotifyLevel.ERROR).length,i=e.filter(s=>s.level===Et.ENotifyLevel.WARNING).length;return(0,Fn.jsx)(_n.Button,{onClick:()=>n(a),sx:{backgroundColor:r>0?"#ffaaaa":""},children:(0,Fn.jsxs)(_n.Stack,{direction:"column",sx:{alignItems:"center"},children:[t,(0,Fn.jsxs)(_n.Stack,{direction:"row",children:[(0,Fn.jsxs)(_n.Typography,{variant:"caption",color:r>0?"red":"gray",children:[r,"\xA0\xA0"]}),(0,Fn.jsx)(_n.Typography,{variant:"caption",color:i>0?"orange":r>0?"gray":"orange",children:e.filter(s=>s.level===Et.ENotifyLevel.WARNING).length})]})]})})},qM=(e,t)=>(0,Fn.jsxs)(_n.Stack,{direction:"row",sx:{flex:1,justifyContent:"space-between"},children:[bn(p1(e),(0,an.getIconFromKind)("Node",50),t,"/cluster/Node"),bn(m1(e),(0,an.getIconFromKind)("ConfigMap",50),t,"/config/ConfigMap"),bn(d1(e),(0,an.getIconFromKind)("Secret",50),t,"/config/Secret"),bn(o1(e),(0,an.getIconFromKind)("Deployment",50),t,"/workload/Deployment"),bn(s1(e),(0,an.getIconFromKind)("ReplicaSet",50),t,"/workload/ReplicaSet"),bn(c1(e),(0,an.getIconFromKind)("StatefulSet",50),t,"/workload/StatefulSet"),bn(u1(e),(0,an.getIconFromKind)("DaemonSet",50),t,"/workload/DaemonSet"),bn(l1(e),(0,an.getIconFromKind)("Job",50),t,"/workload/Job"),bn(h1(e),(0,an.getIconFromKind)("Ingress",50),t,"/network/Ingress"),bn(g1(e),(0,an.getIconFromKind)("Service",50),t,"/network/Service"),bn(f1(e),(0,an.getIconFromKind)("VolumeAttachment",50),t,"/storage/VolumeAttachment"),bn(y1(e),(0,an.getIconFromKind)("Role",50),t,"/access/Role"),bn(x1(e),(0,an.getIconFromKind)("ClusterRole",50),t,"/access/ClusterRole")]}),qa=e=>{let t=(0,a1.useMemo)(()=>{let n={},{options:a,files:r,onNavigate:i}=e;return a.node&&(n.node=p1(r)),a.configMap&&(n.configMap=m1(r)),a.secret&&(n.secret=d1(r)),a.deployment&&(n.deployment=o1(r)),a.replicaSet&&(n.replicaSet=s1(r)),a.statefulSet&&(n.statefulSet=c1(r)),a.daemonSet&&(n.daemonSet=u1(r)),a.job&&(n.job=l1(r)),a.volumeAttachment&&(n.volumeAttachment=f1(r)),a.ingress&&(n.ingress=h1(r)),a.service&&(n.service=g1(r)),a.role&&(n.role=y1(r)),a.custerRole&&(n.clusterRole=x1(r)),a.summary&&(n.summary=qM(r,i)),n},[e.files,e.options,e.onNavigate]);return(0,Fn.jsxs)(_n.Stack,{children:[e.options.node&&xn(t.node,e.onLink),e.options.configMap&&xn(t.configMap,e.onLink),e.options.secret&&xn(t.secret,e.onLink),e.options.deployment&&xn(t.deployment,e.onLink),e.options.replicaSet&&xn(t.replicaSet,e.onLink),e.options.statefulSet&&xn(t.statefulSet,e.onLink),e.options.daemonSet&&xn(t.daemonSet,e.onLink),e.options.job&&xn(t.job,e.onLink),e.options.volumeAttachment&&xn(t.volumeAttachment,e.onLink),e.options.ingress&&xn(t.ingress,e.onLink),e.options.service&&xn(t.service,e.onLink),e.options.role&&xn(t.role,e.onLink),e.options.custerRole&&xn(t.clusterRole,e.onLink),e.options.summary&&t.summary]})};u();var Ut=k(je(),1),F=k(ft(),1),zr=k(Kt(),1);var w1=k(Ct(),1);u();var Be=k(ft(),1),at=k(he(),1),b1=e=>(0,at.jsxs)(Be.Dialog,{open:!0,onClose:e.onClose,disableRestoreFocus:!0,maxWidth:"xs",fullWidth:!0,children:[(0,at.jsx)(Be.DialogTitle,{children:"About Kwirth..."}),(0,at.jsx)(Be.DialogContent,{children:(0,at.jsxs)(Be.Stack,{spacing:2,sx:{p:2,borderRadius:2,backgroundColor:"rgba(245,130,10,0.07)",border:"1px solid rgba(245,130,10,0.2)"},children:[(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"h5",sx:{fontWeight:"bold",color:"#f5820a"},children:"Kwirth"}),(0,at.jsx)(Be.Typography,{variant:"body2",sx:{color:"text.secondary"},children:"Kubernetes observability platform"})]}),(0,at.jsx)(Be.Divider,{}),(0,at.jsxs)(Be.Stack,{spacing:1.5,children:[(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary",display:"block"},children:"VERSION"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:e.kwirthVersion??"unknown"})]}),(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary",display:"block"},children:"HOMEPAGE"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:(0,at.jsx)("a",{href:"https://kwirthmagnify.dev",target:"_blank",rel:"noreferrer",children:"kwirthmagnify.dev"})})]}),(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary",display:"block"},children:"SOURCE CODE"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:(0,at.jsx)("a",{href:"https://github.com/kwirthmagnify/kwirth",target:"_blank",rel:"noreferrer",children:"github.com/kwirthmagnify/kwirth"})})]})]}),(0,at.jsx)(Be.Divider,{}),(0,at.jsx)(Be.Typography,{variant:"caption",sx:{color:"text.secondary"},children:"\xA9 2025 Kwirth contributors \xB7 Apache 2.0"})]})}),(0,at.jsx)(Be.DialogActions,{children:(0,at.jsx)(Be.Button,{onClick:e.onClose,children:"OK"})})]});var Lr=k(ka(),1);var P=k(he(),1),Fm=(e,t)=>{try{return vo((0,Lr.accessKeyDeserialize)(e??""),t)}catch{return!1}},C1=e=>{let t=Fm(e.channelObject.accessString,"magnify$read"),n=Fm(e.channelObject.accessString,"magnify$write"),a=Fm(e.channelObject.accessString,ic),[r,i]=(0,Ut.useState)(e.preferences.palette||"light"),[s,o]=(0,Ut.useState)(e.preferences.logLines),[l,c]=(0,Ut.useState)(e.preferences.tracing),[d,m]=(0,Ut.useState)(e.preferences.dataConfig?.source),[f,g]=(0,Ut.useState)(e.preferences.dataConfig?.sync),[I,C]=(0,Ut.useState)(e.preferences.dataHelm),[L,U]=(0,Ut.useState)(e.preferences.dataManagedFields),[se,le]=(0,Ut.useState)(e.preferences.customActions||[]),[$,me]=(0,Ut.useState)(!1),[E,oe]=(0,Ut.useState)(!1),[Se,Ie]=(0,Ut.useState)(!1),[V,B]=(0,Ut.useState)(!1),de=(0,Ut.useRef)(null),[te,Oe]=(0,Ut.useState)(!1),He="Paste here a complete YAML of a pod that will be launched when a user selects this action in Magnify 'Overview' top menu ('Kwirth Works' action)";(0,w1.useKeyboard)();let Me=()=>{e.channelObject.writeChannelUserPreferences&&(e.preferences.palette=r,e.preferences.dataHelm=I,e.preferences.dataManagedFields=L,e.preferences.dataConfig.source=d,e.preferences.dataConfig.sync=f,e.preferences.logLines=s,e.preferences.tracing=l,e.preferences.customActions=se,e.channelObject.writeChannelUserPreferences(e.channelObject.channelId,e.preferences),me(!1),oe(!1),Ie(!1),B(!1))},kt=()=>{e.onDataReload&&e.onDataReload()},bt=()=>{console.log(e.files.filter(A=>A.name.includes(de.current.value)||A.path.includes(de.current.value)))},Yt=(A,ee)=>{let ce=d;A==="sync"&&(ce=f),ce.some($e=>$e.name===ee.name)?ce=ce.filter($e=>$e.name!==ee.name):ce.push(ee),A==="source"&&m([...ce]),A==="sync"&&g([...ce]),oe(!0)},fa=A=>{se.splice(A,1),le([...se])};return(0,P.jsxs)(F.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,P.jsxs)(F.Accordion,{defaultExpanded:!0,children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Display"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Palette mode"}),(0,P.jsx)(F.Typography,{variant:"body2",sx:{color:"text.secondary",mr:1},children:r==="dark"?"Dark":"Light"}),(0,P.jsx)(F.Switch,{size:"small",checked:r==="dark",onChange:A=>{let ee=A.target.checked?"dark":"light";i(ee),e.channelObject.setPalette?.(ee),me(!0)}})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"About Kwirth"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>Oe(!0),children:"About"})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Me,disabled:!$,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!n,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Custom actions"})}),!n&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$write","'"]})]}),(0,P.jsxs)(F.AccordionDetails,{children:[se.map((A,ee)=>(0,P.jsxs)(F.Stack,{direction:"column",spacing:1,sx:{mb:2},children:[(0,P.jsxs)(F.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,P.jsxs)(F.Select,{value:A.type,onChange:ce=>{A.type=ce.target.value,le([...se])},variant:"standard",sx:{width:100},children:[(0,P.jsx)(F.MenuItem,{value:"kwirth",disabled:!0,children:"Kwirth"}),(0,P.jsx)(F.MenuItem,{value:"kube",children:"Kube"})]}),(0,P.jsx)(F.TextField,{value:A.name,onChange:ce=>{A.name=ce.target.value,le([...se])},variant:"standard",placeholder:"Name",sx:{minWidth:"15%"}}),(0,P.jsxs)(F.Select,{value:A.onReady,onChange:ce=>{A.onReady=ce.target.value,le([...se])},variant:"standard",sx:{minWidth:"10%"},children:[(0,P.jsx)(F.MenuItem,{value:"nothing",children:"Nothing"}),(0,P.jsx)(F.MenuItem,{value:"shell",children:"Shell"}),(0,P.jsx)(F.MenuItem,{value:"http",disabled:!0,children:"HTTP"}),(0,P.jsx)(F.MenuItem,{value:"https",disabled:!0,children:"HTTPS"})]}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:ce=>{A.forward=ce.target.checked,le([...se])},checked:A.forward,disabled:"nothing shell".includes(A.onReady)}),label:"Forward"}),(0,P.jsx)(F.TextField,{value:A.url,onChange:ce=>{A.url=ce.target.value,le([...se])},disabled:"nothing shell".includes(A.onReady)||A.forward,fullWidth:!0,variant:"standard",placeholder:"URL"}),(0,P.jsx)(F.Box,{sx:{flexGrow:1}}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>fa(ee),children:"Remove"})]}),(0,P.jsx)(F.TextareaAutosize,{value:A.podYaml,onChange:ce=>{A.podYaml=ce.target.value,le([...se])},style:{height:100,fontFamily:"monospace",fontSize:12,padding:8,boxSizing:"border-box",width:"100%"},placeholder:He},"yaml"+ee)]},"action"+ee)),(0,P.jsx)(F.Stack,{direction:"row",sx:{justifyContent:"flex-end"},children:(0,P.jsx)(F.Button,{size:"small",onClick:()=>le([...se,{type:"kube",name:"",podYaml:"",onReady:"nothing"}]),children:"Add"})})]}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Me,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"External content"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.TextField,{value:s,onChange:A=>{o(+A.target.value),B(!0)},variant:"standard",label:"Max messages",type:"number",fullWidth:!0})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Me,disabled:!V,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Data management"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"row",spacing:2,children:[(0,P.jsxs)(F.Stack,{direction:"column",sx:{flex:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:"Storage"}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:A=>{C(A.target.checked),oe(!0)},checked:I}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep Helm data"})}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:A=>{U(A.target.checked),oe(!0)},checked:L}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep managed fields"})})]}),(0,P.jsxs)(F.Stack,{direction:"column",sx:{flex:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:"Source"}),hs.map(A=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>Yt("source",A),checked:d.some(ee=>ee.name===A.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:A.name})},A.name))]}),(0,P.jsxs)(F.Stack,{direction:"column",sx:{flex:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:"Sync"}),hs.map(A=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>Yt("sync",A),checked:f.some(ee=>ee.name===A.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:A.name})},A.name))]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Me,disabled:!E,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Debug"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,P.jsxs)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:["Files collection (",e.files.length," objects, ",(JSON.stringify(e.files).length/1024/1024).toFixed(2)," MB)"]}),(0,P.jsx)(F.TextField,{inputRef:de,label:"Filter",variant:"standard",size:"small"}),(0,P.jsx)(F.Button,{size:"small",onClick:kt,children:"Reload"}),(0,P.jsx)(F.Button,{size:"small",onClick:bt,children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Metrics names"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject.metricsList?.keys()),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Channel object"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",sx:{alignItems:"center"},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Message tracing (log received messages to console)"}),(0,P.jsx)(F.Checkbox,{size:"small",checked:l,onChange:()=>{c(!l),Ie(!0)}})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Me,disabled:!Se,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!a,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Extensions"})}),!a&&(0,P.jsx)(F.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:"\u2014 needs 'admin'"})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.Stack,{direction:"row",spacing:1,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[{type:Lr.EExtensionType.PLUGIN,label:"Plugins",desc:"Install, update and remove channel plugins that extend Kwirth with new visualization and analysis capabilities."},{type:Lr.EExtensionType.PROVIDER,label:"Providers",desc:"Configure data source providers that feed events and metrics into your channels from external systems."},{type:Lr.EExtensionType.SENDER,label:"Senders",desc:"Manage notification senders to forward alerts and reports to Slack, Teams, email and other destinations."},{type:Lr.EExtensionType.THEME,label:"Themes",desc:"Install and activate visual themes to customize the look and feel of Kwirth."}].map(({type:A,label:ee,desc:ce})=>(0,P.jsxs)(F.Box,{sx:{border:1,borderColor:"divider",borderRadius:1,p:1.5,flex:1,minWidth:120,display:"flex",flexDirection:"column",gap:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{fontWeight:"bold"},children:ee}),(0,P.jsx)(F.Typography,{variant:"caption",sx:{color:"text.secondary",flexGrow:1},children:ce}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>e.channelObject.openManager?.(A),children:"Manage"})]},A))})})]}),te&&(0,P.jsx)(b1,{kwirthVersion:e.channelObject.kwirthVersion,onClose:()=>Oe(!1)})]})};var Qi=k(ka(),1);u();var R=k(he(),1),ma="var(--magnify-section-bg, white)",Vr=e=>(0,R.jsxs)("svg",{viewBox:"0 0 360 400",width:"300",height:"333",role:"img","aria-label":e.label,children:[(0,R.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",children:e.children}),(0,R.jsx)("text",{x:"180",y:"378",textAnchor:"middle",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"30",fill:"currentColor",children:e.label})]}),rn=e=>{let t=e.r??11,n=[0,1,2,3,4,5].map(a=>{let r=Math.PI/6+a*Math.PI/3;return`${(e.cx+t*Math.cos(r)).toFixed(1)},${(e.cy+t*Math.sin(r)).toFixed(1)}`}).join(" ");return(0,R.jsx)("polygon",{points:n})},to=e=>{let{cx:t,cy:n,r:a}=e;return(0,R.jsxs)("g",{children:[(0,R.jsx)("circle",{cx:t,cy:n,r:a}),(0,R.jsx)("circle",{cx:t,cy:n,r:a*.4}),[0,1,2,3,4,5,6,7].map(r=>{let i=r*Math.PI/4;return(0,R.jsx)("line",{x1:t+a*Math.cos(i),y1:n+a*Math.sin(i),x2:t+(a+a*.45)*Math.cos(i),y2:n+(a+a*.45)*Math.sin(i)},r)})]})},Bl=e=>{let{cx:t,cy:n,s:a}=e;return(0,R.jsxs)("g",{children:[(0,R.jsx)("path",{d:`M${t},${n-a} L${t+a},${n-a/2} L${t},${n} L${t-a},${n-a/2} Z`}),(0,R.jsx)("path",{d:`M${t-a},${n-a/2} L${t-a},${n+a/2} L${t},${n+a} L${t},${n}`}),(0,R.jsx)("path",{d:`M${t+a},${n-a/2} L${t+a},${n+a/2} L${t},${n+a}`}),[0,1,2].map(r=>(0,R.jsx)("line",{x1:t+a*.25,y1:n+a*.1+r*a*.22,x2:t+a*.75,y2:n-a*.15+r*a*.22},r))]})},UM=()=>(0,R.jsxs)(Vr,{label:"WORKLOAD",children:[(0,R.jsxs)("g",{fill:"currentColor",stroke:"none",children:[(0,R.jsx)("rect",{x:"62",y:"198",width:"34",height:"57",rx:"3"}),(0,R.jsx)("rect",{x:"110",y:"212",width:"34",height:"43",rx:"3"}),(0,R.jsx)("rect",{x:"158",y:"150",width:"34",height:"105",rx:"3"}),(0,R.jsx)("rect",{x:"206",y:"162",width:"34",height:"93",rx:"3"}),(0,R.jsx)("rect",{x:"254",y:"106",width:"34",height:"149",rx:"3"})]}),(0,R.jsx)("line",{x1:"52",y1:"268",x2:"298",y2:"268"}),(0,R.jsx)("circle",{cx:"44",cy:"268",r:"8"}),(0,R.jsx)("circle",{cx:"306",cy:"268",r:"8"}),(0,R.jsx)("polyline",{points:"70,170 158,100 198,124 282,46",strokeWidth:"12"}),(0,R.jsx)("polyline",{points:"248,44 286,42 284,80",strokeWidth:"12"}),(0,R.jsx)(to,{cx:130,cy:178,r:12})]}),YM=()=>(0,R.jsxs)(Vr,{label:"NETWORKING",children:[(0,R.jsx)("circle",{cx:"180",cy:"165",r:"130"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"52"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"62",ry:"130"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(-35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),[[50,165],[310,165],[180,35],[180,295],[242,98],[136,175],[210,222],[262,52],[100,78],[292,222]].map(([e,t],n)=>(0,R.jsx)("circle",{cx:e,cy:t,r:"10",fill:ma},n))]}),GM=()=>(0,R.jsxs)(Vr,{label:"SECURITY",children:[(0,R.jsx)("rect",{x:"34",y:"26",width:"292",height:"254",strokeDasharray:"14 10",strokeWidth:"4"}),(0,R.jsx)(rn,{cx:34,cy:26}),(0,R.jsx)(rn,{cx:326,cy:26}),(0,R.jsx)(rn,{cx:34,cy:280}),(0,R.jsx)(rn,{cx:326,cy:280}),(0,R.jsx)("circle",{cx:"180",cy:"26",r:"8"}),(0,R.jsx)("circle",{cx:"180",cy:"280",r:"8"}),(0,R.jsx)("circle",{cx:"34",cy:"153",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"153",r:"8"}),(0,R.jsx)("path",{d:"M180,52 C214,72 244,78 270,78 L270,160 C270,226 232,262 180,290 C128,262 90,226 90,160 L90,78 C116,78 146,72 180,52 Z"}),(0,R.jsx)("path",{d:"M180,72 C208,88 232,94 252,94 L252,160 C252,214 222,244 180,268 C138,244 108,214 108,160 L108,94 C128,94 152,88 180,72 Z",strokeWidth:"4"}),(0,R.jsx)("rect",{x:"142",y:"150",width:"76",height:"62",rx:"8"}),(0,R.jsx)("path",{d:"M156,150 V132 a24,24 0 0 1 48,0 V150"}),(0,R.jsx)("circle",{cx:"180",cy:"176",r:"7"}),(0,R.jsx)("line",{x1:"180",y1:"183",x2:"180",y2:"198"})]}),KM=()=>(0,R.jsxs)(Vr,{label:"CLUSTER",children:[(0,R.jsx)("circle",{cx:"180",cy:"168",r:"150",strokeDasharray:"12 10",strokeWidth:"4"}),[[110,102],[250,102],[110,236],[250,236]].map(([e,t],n)=>(0,R.jsxs)("g",{children:[(0,R.jsx)("line",{x1:e,y1:t,x2:e<180?70:290,y2:t,strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("circle",{cx:e<180?64:296,cy:t,r:"7"})]},n)),(0,R.jsx)("line",{x1:"180",y1:"130",x2:"180",y2:"206"}),(0,R.jsx)("line",{x1:"140",y1:"168",x2:"220",y2:"168"}),(0,R.jsx)(Bl,{cx:180,cy:92,s:40}),(0,R.jsx)(Bl,{cx:104,cy:168,s:40}),(0,R.jsx)(Bl,{cx:256,cy:168,s:40}),(0,R.jsx)(Bl,{cx:180,cy:236,s:40})]}),S1=()=>(0,R.jsxs)("g",{children:[(0,R.jsx)("circle",{cx:"180",cy:"62",r:"32",fill:ma}),(0,R.jsx)("circle",{cx:"180",cy:"258",r:"32",fill:ma}),(0,R.jsx)("rect",{x:"166",y:"86",width:"28",height:"148",rx:"10",fill:ma}),(0,R.jsx)("rect",{x:"168",y:"22",width:"24",height:"38",rx:"3",fill:ma}),(0,R.jsx)("rect",{x:"168",y:"260",width:"24",height:"38",rx:"3",fill:ma}),(0,R.jsx)("rect",{x:"170",y:"16",width:"20",height:"12",fill:ma,stroke:"none"}),(0,R.jsx)("rect",{x:"170",y:"292",width:"20",height:"12",fill:ma,stroke:"none"})]}),JM=()=>(0,R.jsxs)(Vr,{label:"CONFIG",children:[(0,R.jsx)(rn,{cx:86,cy:86,r:52}),(0,R.jsx)(to,{cx:86,cy:86,r:20}),(0,R.jsx)(rn,{cx:274,cy:236,r:50}),(0,R.jsx)(to,{cx:274,cy:236,r:19}),(0,R.jsx)(rn,{cx:326,cy:96,r:16}),(0,R.jsx)(rn,{cx:34,cy:226,r:16}),(0,R.jsx)(rn,{cx:186,cy:24,r:14}),(0,R.jsx)("line",{x1:"150",y1:"24",x2:"170",y2:"24",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"326",y1:"114",x2:"326",y2:"140",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"34",y1:"192",x2:"34",y2:"208",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("g",{transform:"rotate(45 180 160)",children:(0,R.jsx)(S1,{})}),(0,R.jsx)("text",{x:"20",y:"176",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"}),(0,R.jsx)("text",{x:"296",y:"162",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"})]}),jM=()=>(0,R.jsxs)(Vr,{label:"STORAGE",children:[[26,70,114].map((e,t)=>(0,R.jsxs)("g",{children:[(0,R.jsx)("rect",{x:"92",y:e,width:"176",height:"40",rx:"8"}),(0,R.jsx)("circle",{cx:"112",cy:e+20,r:"7"}),[0,1,2,3].map(n=>[0,1].map(a=>(0,R.jsx)("circle",{cx:210+n*14,cy:e+13+a*14,r:"2.5",fill:"currentColor",stroke:"none"},`${n}${a}`)))]},t)),(0,R.jsx)("line",{x1:"62",y1:"150",x2:"42",y2:"76"}),(0,R.jsx)("line",{x1:"298",y1:"150",x2:"318",y2:"76"}),(0,R.jsx)("rect",{x:"34",y:"154",width:"292",height:"36",rx:"18"}),(0,R.jsx)("path",{d:"M58,190 L94,302 L266,302 L302,190"}),(0,R.jsx)("line",{x1:"116",y1:"190",x2:"132",y2:"302",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"244",y1:"190",x2:"228",y2:"302",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"70",y1:"238",x2:"290",y2:"238",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"180",y1:"284",x2:"180",y2:"214"}),(0,R.jsx)("polyline",{points:"162,232 180,212 198,232"})]}),ZM=()=>(0,R.jsxs)(Vr,{label:"CUSTOMIZATION",children:[(0,R.jsx)("g",{transform:"translate(180 160) rotate(-45) scale(0.8) translate(-180 -160)",children:(0,R.jsx)(S1,{})}),(0,R.jsxs)("g",{transform:"rotate(45 180 160)",children:[(0,R.jsx)("rect",{x:"170",y:"160",width:"20",height:"118",rx:"10"}),(0,R.jsx)("rect",{x:"162",y:"122",width:"36",height:"40",rx:"4"}),(0,R.jsx)("path",{d:"M162,122 C158,96 166,64 180,44 C194,64 202,96 198,122"}),(0,R.jsx)("line",{x1:"180",y1:"60",x2:"180",y2:"120",strokeWidth:"3"})]}),(0,R.jsx)("line",{x1:"262",y1:"150",x2:"318",y2:"150"}),(0,R.jsx)("circle",{cx:"300",cy:"150",r:"8",fill:ma}),(0,R.jsx)("line",{x1:"262",y1:"184",x2:"318",y2:"184"}),(0,R.jsx)("circle",{cx:"276",cy:"184",r:"8",fill:ma}),(0,R.jsx)(to,{cx:178,cy:36,r:10}),(0,R.jsx)(to,{cx:130,cy:262,r:12}),(0,R.jsx)(rn,{cx:32,cy:150}),(0,R.jsx)(rn,{cx:84,cy:160,r:14}),(0,R.jsx)(rn,{cx:48,cy:232}),(0,R.jsx)(rn,{cx:180,cy:268,r:14}),(0,R.jsx)(rn,{cx:292,cy:112,r:12}),(0,R.jsx)("circle",{cx:"34",cy:"36",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"36",r:"8"}),(0,R.jsx)("circle",{cx:"34",cy:"270",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"270",r:"8"}),(0,R.jsx)("line",{x1:"44",y1:"36",x2:"96",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"264",y1:"36",x2:"316",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"44",y1:"270",x2:"96",y2:"270",strokeDasharray:"4 8",strokeWidth:"4"})]}),v1={access:GM,cluster:KM,config:JM,custom:ZM,network:YM,storage:jM,workload:UM};var M=k(he(),1),Sa=(e,t,n)=>{if(!e.properties)return;let a=e.properties.find(r=>r.name===t);a&&(a.format="function",a.source=n)},h=(e,t,n,a,r)=>{let i=e.leftItems?.find(s=>s.name===t);i&&(i.onClick=n,a&&(i.isVisible=a),r&&(i.isEnabled=r))};function XM(e){let t=e.state??{};if(e.ready)return"green";if(t.terminated)return"gray";if(t.waiting){let n=t.waiting.reason??"";return["ContainerCreating","PodInitializing"].includes(n)?"orange":"red"}return"blue"}var I1=(e,t,n,a,r,i,s,o,l,c,d,m)=>{let f=(N,q)=>{let re=t.files.find(ne=>ne.path===N);re&&(re.children=q)},g=()=>{let N={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"events",action:Qi.EInstanceMessageAction.COMMAND,flow:Qi.EInstanceMessageFlow.REQUEST,type:Qi.EInstanceMessageType.DATA,channel:n.channelId,params:["cluster","","","","500"]};n.webSocket&&n.webSocket.send(JSON.stringify(N))},I=()=>t.clusterInfo?(0,M.jsx)(z.Box,{sx:{width:"100%",height:"100%",bgcolor:"background.default"},children:(0,M.jsx)(z.Card,{sx:{m:2,display:"flex",flexDirection:"column",height:"calc(100% - 55px)"},children:(0,M.jsxs)(z.CardContent,{sx:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",p:2},children:[(0,M.jsxs)(z.Stack,{direction:"row",sx:{justifyContent:"space-between",width:"100%",px:1},children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Cluster:"})," ",n.clusterInfo?.name]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Version:"})," ",t.clusterInfo.major,".",t.clusterInfo.minor,"\xA0\xA0(",t.clusterInfo.gitVersion,")"]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Platform:"})," ",t.clusterInfo.platform]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Nodes:"})," ",t.files.filter(N=>N.class==="Node").length]})]}),(0,M.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,M.jsx)(n1,{channelObject:n}),(0,M.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{summary:!0}}),(0,M.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,M.jsxs)(z.Box,{sx:{flex:1,overflowY:"auto",ml:1,mr:1},children:[t.eventsProviderMissing&&(0,M.jsx)(z.Alert,{severity:"info",sx:{my:1},children:"The events provider is not installed in this cluster, so there are no cluster events to show. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."}),(0,M.jsx)(z.Stack,{direction:"column",children:t.clusterEvents?.map((N,q)=>{let re=N.type?N.type[0]:"",ne="--mui-palette-text-primary";return re==="W"&&(ne="orange"),re==="E"&&(ne="red"),(0,M.jsxs)(z.Stack,{direction:"row",children:[(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"5%",color:ne},children:re}),(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"25%",color:ne},children:N.eventTime||N.lastTimestamp||N.firstTimestamp}),(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"70%",color:ne},children:N.message})]},q)})}),(0,M.jsxs)(z.Stack,{direction:"row",children:[(0,M.jsx)(z.Typography,{sx:{flexGrow:1}}),(0,M.jsx)(z.Button,{onClick:g,children:"More Events"})]})]})]})})}):(0,M.jsx)(M.Fragment,{}),C=N=>{let q=N.path.replaceAll("/",""),re=v1[q];return(0,M.jsx)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"background.default",color:"text.secondary","--magnify-section-bg":ne=>ne.palette.background.default},children:re&&(0,M.jsx)(re,{})})},L=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total CPU: ",t.files.filter(N=>N.class==="Node").reduce((N,q)=>N+ +q.data.origin.status.capacity.cpu,0)]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total Memory: ",Js(t.files.filter(N=>N.class==="Node").reduce((N,q)=>N+Jn(q.data.origin.status.capacity.memory),0))]}),(0,M.jsx)(z.Typography,{sx:{mt:1}}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Actual pods: ",t.files.filter(N=>N.class==="Pod").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Max pods: ",t.files.filter(N=>N.class==="Node").reduce((N,q)=>N+ +q.data.origin.status.capacity.pods,0)]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{node:!0}})})]})]}),U=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Pods: ",t.files.filter(N=>N.class==="Pod").length]}),(0,M.jsx)(z.Typography,{sx:{mt:1}}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Deployments: ",t.files.filter(N=>N.class==="Deployment").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Daemon sets: ",t.files.filter(N=>N.class==="DaemonSet").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Replica sets: ",t.files.filter(N=>N.class==="ReplicaSet").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Replication Controllers: ",t.files.filter(N=>N.class==="ReplicationController").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Stateful sets: ",t.files.filter(N=>N.class==="StatefulSet").length]}),(0,M.jsx)(z.Typography,{sx:{mt:1}}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Jobs: ",t.files.filter(N=>N.class==="Job").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Cron jobs: ",t.files.filter(N=>N.class==="CronJob").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{replicaSet:!0,daemonSet:!0,deployment:!0,statefulSet:!0,job:!0}})})]})]}),se=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Services: ",t.files.filter(N=>N.class==="Service").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Ingresses: ",t.files.filter(N=>N.class==="Ingress").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Ingress classes: ",t.files.filter(N=>N.class==="IngressClass").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{ingress:!0,service:!0}})})]})]}),le=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["ConfigMap: ",t.files.filter(N=>N.class==="ConfigMap").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Secret: ",t.files.filter(N=>N.class==="Secret").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{configMap:!0,secret:!0}})})]})]}),$=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total SA's: ",t.files.filter(N=>N.class==="ServiceAccount").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total Roles: ",t.files.filter(N=>N.class==="Role").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total Cluster Roles: ",t.files.filter(N=>N.class==="ClusterRole").length]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{role:!0,custerRole:!0}})})]})]}),me=()=>(0,M.jsxs)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Status"}),(0,M.jsxs)(z.CardContent,{children:[(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total PV's: ",t.files.filter(N=>N.class==="PersistentVolume").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total PVC's: ",t.files.filter(N=>N.class==="PersistentVolumeClaim").length]}),(0,M.jsxs)(z.Typography,{variant:"body2",children:["Total storage: ",Js(t.files.filter(N=>N.class==="PersistentVolumeClaim").reduce((N,q)=>N+q.data.size,0))]})]})]}),(0,M.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(z.CardHeader,{title:"Validations"}),(0,M.jsx)(z.CardContent,{children:(0,M.jsx)(qa,{files:t.files,onLink:r,onNavigate:i,options:{volumeAttachment:!0}})})]})]}),E=()=>(0,M.jsx)(z.Box,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,bgcolor:"background.default"},children:(0,M.jsx)(C1,{preferences:t.userPreferences,files:t.files,onDataReload:oe,channelObject:n})}),oe=()=>{t.files=t.files.filter(N=>N.isDirectory&&N.path.split("/").length-1<=2),t.files=t.files.filter(N=>N.class!=="crdGroup"),t.currentPath="/overview",_m(n)};f("/overview",I),f("/cluster",C),f("/workload",C),f("/config",C),f("/network",C),f("/storage",C),f("/access",C),f("/custom",C),f("/cluster/overview",L),f("/workload/overview",U),f("/network/overview",se),f("/config/overview",le),f("/storage/overview",me),f("/access/overview",$),f("/preferences",E);let Se=a.get("classOverview");h(Se,"create",()=>s("Pod"));let Ie=Ta.items.find(N=>N.name==="pods");Ie&&(Ie.invoke=(N,q)=>{let re=N.kind,ne=t.files.filter(ue=>ue.class==="Pod");return ne=ne.filter(ue=>{let wt=!1;if(re==="Deployment"){let dt=ue.data.origin.metadata.ownerReferences?.filter(Nt=>Nt.kind==="ReplicaSet")||[];if(dt&&dt.length>0){let Nt=t.files.find(Xr=>Xr.path===`/workload/ReplicaSet/${dt[0].name}:${N.metadata.namespace}`);wt=Nt&&Nt.data.origin.metadata.ownerReferences.some(Xr=>Xr.kind==="Deployment"&&Xr.name===N.metadata.name)}}else wt=ue.data.origin.metadata.ownerReferences?.some(dt=>dt.kind===re&&dt.name===N.metadata.name)||!1;return wt}),ne.map(ue=>ue.data.origin)});let V=N=>{let q=t.files.find(ue=>N===ue.path);if(!q||!q.data.origin.status?.containerStatuses)return(0,M.jsx)(M.Fragment,{});let re=[],ne=(ue,wt)=>{wt.map((dt,Nt)=>{re.push((0,M.jsx)(z.Box,{sx:{width:"8px",height:"8px",backgroundColor:XM(dt),margin:"1px",display:"inline-block"}},(ue*1e3+Nt).toString()))})};return q.data.origin.status.initContainerStatuses&&q.data.origin.status.initContainerStatuses.length>0&&ne(0,q.data.origin.status.initContainerStatuses),q.data.origin.status.containerStatuses&&q.data.origin.status.containerStatuses.length>0&&ne(1,q.data.origin.status.containerStatuses),re},B=N=>{let q=t.files.find(ne=>N===ne.path);if(!q||!q.data?.origin?.status)return(0,M.jsx)(M.Fragment,{});let re=q.data.origin?.metadata?.deletionTimestamp?"Terminating":q.data.origin?.status.phase;return(0,M.jsx)(z.Typography,{color:re==="Running"?"green":re==="Terminating"?"blue":re==="Succeeded"?"gray":re==="Pending"?"orange":"red",sx:{fontSize:12},children:re})},de=a.get("classPod");h(de,"create",()=>s("Pod"));let te=a.get("Pod");h(te,"details",l),h(te,"edit",c),h(te,"delete",o),Sa(te,"container",V),Sa(te,"status",B);let Oe=N=>{let q=t.files.find(ne=>N===ne.path);if(!q)return;if(!q.data?.origin?.status?.conditions)return(0,M.jsx)(M.Fragment,{});let re=[];for(let ne of q.data.origin.status.conditions)ne.status==="True"&&re.push((0,M.jsx)(z.Typography,{sx:{fontSize:12},children:ne.type},ne.type));return(0,M.jsx)(z.Stack,{direction:"column",children:re})},He=N=>{let q=t.files.find(ne=>N===ne.path);if(!q)return;let re=Tl(q.data.origin.spec.schedule);return[`${re?.timeLeft.days}d${re?.timeLeft.hours}h${re?.timeLeft.minutes}m${re?.timeLeft.seconds}s`]},Me=N=>{let q=t.files.find(re=>N===re.path);if(q)return[`${q.data.origin.status?.active?.length||0}`]},kt=a.get("classDeployment");h(kt,"create",()=>s("Deployment"));let bt=a.get("Deployment");h(bt,"details",l),h(bt,"edit",c),h(bt,"delete",o);let Yt=a.get("classDaemonSet");h(Yt,"create",()=>s("DaemonSet"));let fa=a.get("DaemonSet");h(fa,"details",l),h(fa,"edit",c),h(fa,"delete",o);let A=a.get("classReplicaSet");h(A,"create",()=>s("ReplicaSet"));let ee=a.get("ReplicaSet");h(ee,"details",l),h(ee,"edit",c),h(ee,"delete",o);let ce=a.get("classReplicationController");h(ce,"create",()=>s("ReplicationController"));let $e=a.get("ReplicationController");h($e,"details",l),h($e,"edit",c),h($e,"delete",o);let _t=a.get("classStatefulSet");h(_t,"create",()=>s("StatefulSet"));let rt=a.get("StatefulSet");h(rt,"details",l),h(rt,"edit",c),h(rt,"delete",o);let Ln=a.get("classJob");h(Ln,"create",()=>s("Job"));let Le=a.get("Job");Sa(Le,"conditions",Oe),h(Le,"details",l),h(Le,"edit",c),h(Le,"delete",o);let ln=a.get("classCronJob");h(ln,"create",()=>s("CronJob"));let Ya=a.get("CronJob");Sa(Ya,"active",Me),Sa(Ya,"nextExecution",He),h(Ya,"details",l),h(Ya,"edit",c),h(Ya,"delete",o);let Wr=fe.get("CronJob");if(Wr){let N=Wr.find(q=>q.name==="properties").items.find(q=>q.name==="nextExecution");N&&(N.invoke=(q,re)=>[Tl(re.spec.schedule)?.isoString]),N=Wr.find(q=>q.name==="properties").items.find(q=>q.name==="timeLeft"),N&&(N.invoke=(q,re)=>{let ne=Tl(re.spec.schedule);return[`${ne?.timeLeft.days}d${ne?.timeLeft.hours}h${ne?.timeLeft.minutes}m${ne?.timeLeft.seconds}s`]}),N=Wr.find(q=>q.name==="history").items.find(q=>q.name==="jobs"),N&&(N.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.class==="Job");return ne=ne.filter(ue=>(ue.data.origin.metadata.ownerReferences||[]).some(dt=>dt.name===re.metadata.name&&dt.kind==="CronJob")),ne=ne.map(ue=>ue.data.origin),ne})}let Br=a.get("Node");h(Br,"details",l),h(Br,"edit",c),h(Br,"delete",o);let io=a.get("V1APIResource");h(io,"details",l),h(io,"browse",d);let so=a.get("Image");h(so,"details",l),h(so,"delete",o);let wn=a.get("classClusterOverview");h(wn,"search",m);let cn=a.get("Namespace");h(cn,"details",l),h(cn,"edit",c),h(cn,"delete",o),h(cn,"search",m);let Cn=fe.get("Namespace");if(Cn){let N=(re,ne,ue)=>{let wt=ne;ne.includes("+")&&([ne,wt]=ne.split("+"));let dt=t.files.filter(Nt=>Nt.data?.origin?.kind===ne&&Nt.data?.origin?.metadata.namespace===re)?.map(Nt=>Nt.data?.origin);return dt.length===0?(0,M.jsx)(M.Fragment,{}):(0,M.jsxs)(z.Stack,{sx:{flexDirection:"row"},children:[(0,M.jsx)(z.Typography,{variant:"body2",sx:{width:"13%"},children:wt}),(0,M.jsx)(z.Stack,{sx:{flexDirection:"column"},children:dt.map((Nt,Xr)=>(0,M.jsx)(z.Typography,{variant:"body2",children:(0,M.jsx)("a",{href:"#",onClick:()=>ue(ne,Nt.metadata.name,Nt.metadata.namespace),children:Nt.metadata.name},Xr)}))})]})},q=Cn?.find(re=>re.name==="content")?.items.find(re=>re.name==="content");q&&(q.invoke=(re,ne,ue)=>["Pod","Deployment","DaemonSet","ReplicaSet","ReplicationController+RepController","StatefulSet","Job","CronJob","PersistentVolumeClaim+PVC","PersistentVolume+PV","ConfigMap","Secret","Service","Endpoints","Ingress","ServiceAccount+SrvAccnt","Role","RoleBinding"].map(wt=>N(ne.metadata.name,wt,ue)))}let va=a.get("ComponentStatus");h(va,"details",l),h(va,"browse",d);let $l=N=>{let q=t.files.find(re=>N===re.path);if(q)return q.data?.origin?.spec?.selector?(0,M.jsx)(z.Stack,{direction:"column",children:Object.keys(q.data.origin.spec.selector).map((re,ne)=>(0,M.jsxs)(z.Typography,{sx:{fontSize:12},children:[re,"=",q?.data.origin.spec.selector[re]]},ne))}):(0,M.jsx)(M.Fragment,{})},ql=a.get("classService");h(ql,"create",()=>s("Service"));let Ga=a.get("Service");Sa(Ga,"selector",$l),h(Ga,"details",l),h(Ga,"edit",c),h(Ga,"delete",o);let oo=a.get("classEndpoints");h(oo,"create",()=>s("Endpoints"));let Hr=a.get("Endpoints");h(Hr,"details",l),h(Hr,"edit",c),h(Hr,"delete",o);let lo=N=>{let q=t.files.find(re=>N===re.path);if(q)return q.data?.origin?.spec?.rules?(0,M.jsx)(z.Stack,{direction:"column",children:q.data.origin.spec.rules.map((re,ne)=>re.http.paths.map((ue,wt)=>(0,M.jsxs)(z.Typography,{sx:{fontSize:12},children:["http://",re.host,ue.path,"\xA0\u2192\xA0",ue.backend.service.name,":",ue.backend.service.port.number]},ne+"-"+wt)))}):(0,M.jsx)(M.Fragment,{})},Tt=a.get("classIngress");h(Tt,"create",()=>s("Ingress"));let $r=a.get("Ingress");Sa($r,"rules",lo),h($r,"details",l),h($r,"edit",c),h($r,"delete",o);let rs=a.get("classIngressClass");h(rs,"create",()=>s("IngressClass"));let qr=a.get("IngressClass");h(qr,"details",l),h(qr,"edit",c),h(qr,"delete",o);let co=fe.get("IngressClass");if(co){let N=co?.find(q=>q.name==="properties")?.items.find(q=>q.name==="ingresses");N&&(N.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.path.startsWith("/network/Ingress/"));return ne=ne.filter(ue=>ue.data.origin.spec?.ingressClassName===q.metadata?.name||ue.data.origin.metadata?.annotations?.["kubernetes.io/ingress.class"]===q.metadata?.name),ne.map(ue=>({name:ue.data.origin.metadata.name,namespace:ue.data.origin.metadata.namespace}))})}let Ul=a.get("classNetworkPolicy");h(Ul,"create",()=>s("NetworkPolicy"));let Ur=a.get("NetworkPolicy");h(Ur,"details",l),h(Ur,"edit",c),h(Ur,"delete",o);let Yl=a.get("classConfigMap");h(Yl,"create",()=>s("ConfigMap"));let is=a.get("ConfigMap");h(is,"details",l),h(is,"edit",c),h(is,"delete",o);let Gl=a.get("classSecret");h(Gl,"create",()=>s("Secret"));let ss=a.get("Secret");h(ss,"details",l),h(ss,"edit",c),h(ss,"delete",o);let Ka=a.get("classResourceQuota");h(Ka,"create",()=>s("ResourceQuota"));let pa=a.get("ResourceQuota");h(pa,"details",l),h(pa,"edit",c),h(pa,"delete",o);let ze=a.get("classLimitRange");h(ze,"create",()=>s("LimitRange"));let os=a.get("LimitRange");h(os,"details",l),h(os,"edit",c),h(os,"delete",o);let uo=a.get("classHorizontalPodAutoscaler");h(uo,"create",()=>s("HorizontalPodAutoscaler"));let Yr=a.get("HorizontalPodAutoscaler");h(Yr,"details",l),h(Yr,"edit",c),h(Yr,"delete",o);let mo=a.get("classPodDisruptionBudget");h(mo,"create",()=>s("PodDisruptionBudget"));let Gr=a.get("PodDisruptionBudget");h(Gr,"details",l),h(Gr,"edit",c),h(Gr,"delete",o);let fo=a.get("classPriorityClass");h(fo,"create",()=>s("PriorityClass"));let Kr=a.get("PriorityClass");h(Kr,"details",l),h(Kr,"edit",c),h(Kr,"delete",o);let po=a.get("classRuntimeClass");h(po,"create",()=>s("RuntimeClass"));let Jr=a.get("RuntimeClass");h(Jr,"details",l),h(Jr,"edit",c),h(Jr,"delete",o);let Kl=a.get("classLease");h(Kl,"create",()=>s("Lease"));let Qe=a.get("Lease");h(Qe,"details",l),h(Qe,"edit",c),h(Qe,"delete",o);let Jl=a.get("classValidatingWebhookConfiguration");h(Jl,"create",()=>s("ValidatingWebhookConfiguration"));let ls=a.get("ValidatingWebhookConfiguration");h(ls,"details",l),h(ls,"edit",c),h(ls,"delete",o);let cs=a.get("classMutatingWebhookConfiguration");h(cs,"create",()=>s("MutatingWebhookConfiguration"));let jr=a.get("MutatingWebhookConfiguration");h(jr,"details",l),h(jr,"edit",c),h(jr,"delete",o);let Gt=a.get("classPersistentVolumeClaim");h(Gt,"create",()=>s("PersistentVolumeClaim"));let un=a.get("PersistentVolumeClaim");h(un,"details",l),h(un,"edit",c),h(un,"delete",o);let Sn=fe.get("PersistentVolumeClaim");if(Sn){let N=Sn.find(q=>q.name==="properties").items.find(q=>q.name==="pods");N&&(N.invoke=(q,re)=>t.files.filter(dt=>dt.class==="Pod").filter(dt=>dt.data.origin.spec?.volumes?.some(Nt=>Nt.persistentVolumeClaim?.claimName===re.metadata.name)).map(dt=>dt.data.origin.metadata.name))}let ho=a.get("classPersistentVolume");h(ho,"create",()=>s("PersistentVolume"));let us=a.get("PersistentVolume");h(us,"details",l),h(us,"edit",c),h(us,"delete",o);let jl=a.get("classStorageClass");h(jl,"create",()=>s("StorageClass"));let ms=a.get("StorageClass");h(ms,"details",l),h(ms,"edit",c),h(ms,"delete",o);let ds=fe.get("StorageClass");if(ds){let N=ds.find(q=>q.name==="properties").items.find(q=>q.name==="pvs");N&&(N.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.path.startsWith("/storage/PersistentVolume/"));return ne=ne.filter(ue=>ue.data.origin.spec?.storageClassName===q.metadata.name),ne.map(ue=>ue.data.origin.metadata.name)}),N=ds.find(q=>q.name==="properties").items.find(q=>q.name==="pvcs"),N&&(N.invoke=(q,re)=>{let ne=t.files.filter(ue=>ue.path.startsWith("/storage/PersistentVolumeClaim/"));return ne=ne.filter(ue=>ue.data.origin.spec?.storageClassName===q.metadata.name),ne.map(ue=>({name:ue.data.origin.metadata.name,namespace:ue.data.origin.metadata.namespace}))})}let go=a.get("VolumeAttachment");h(go,"details",l),h(go,"browse",d);let Ia=a.get("CSIDriver");h(Ia,"details",l),h(Ia,"browse",d);let Ja=fe.get("CSIDriver");if(Ja){let N=Ja?.find(q=>q.name==="properties")?.items.find(q=>q.name==="storageClasses");N&&(N.invoke=(q,re,ne)=>{let ue=t.files.filter(wt=>wt.path.startsWith("/storage/StorageClass/"));return[(0,M.jsxs)(z.Stack,{sx:{flexDirection:"row"},children:[(0,M.jsx)(z.Typography,{sx:{width:"13%"},children:"StgClass"}),(0,M.jsx)(z.Stack,{sx:{flexDirection:"column"},children:ue.map((wt,dt)=>{if(wt.data.origin.provisioner===q.metadata?.name)return(0,M.jsx)("a",{href:"#",onClick:()=>ne("StorageClass",wt.data.origin.metadata.name,""),children:wt.data.origin.metadata.name},dt)})})]})]})}let p=a.get("CSINode");h(p,"details",l),h(p,"browse",d);let y=a.get("CSIStorageCapacity");h(y,"details",l),h(y,"browse",d);let b=a.get("classServiceAccount");h(b,"create",()=>s("ServiceAccount"));let D=a.get("ServiceAccount");h(D,"details",l),h(D,"edit",c),h(D,"delete",o);let W=fe.get("ServiceAccount");if(W){let N=W.find(q=>q.name==="properties").items.find(q=>q.name==="tokens");N&&(N.invoke=(q,re)=>t.files.filter(ue=>ue.data?.origin?.metadata?.annotations&&ue.data?.origin?.metadata?.namespace&&ue.data?.origin?.metadata?.annotations["kubernetes.io/service-account.name"]==="kwirth-sa"&&ue.data?.origin?.metadata?.namespace===re.metadata.namespace).map(ue=>({name:ue.data.origin.metadata.name,namespace:ue.data.origin.metadata.namespace})))}let H=a.get("classClusterRole");h(H,"create",()=>s("ClusterRole"));let X=a.get("ClusterRole");h(X,"details",l),h(X,"edit",c),h(X,"delete",o);let K=a.get("classRole");h(K,"create",()=>s("Role"));let ha=a.get("Role");h(ha,"details",l),h(ha,"edit",c),h(ha,"delete",o);let fs=a.get("classClusterRoleBinding");h(fs,"create",()=>s("ClusterRoleBinding"));let Zr=a.get("ClusterRoleBinding");h(Zr,"details",l),h(Zr,"edit",c),h(Zr,"delete",o);let Zl=a.get("classRoleBinding");h(Zl,"create",()=>s("RoleBinding"));let Xl=a.get("RoleBinding");h(Xl,"details",l),h(Xl,"edit",c),h(Xl,"delete",o);let _1=a.get("classCustomResourceDefinition");h(_1,"create",()=>s("CustomResourceDefinition"));let Ql=a.get("CustomResourceDefinition");h(Ql,"details",l),h(Ql,"edit",c),h(Ql,"delete",o);let ec=a.get("crdInstance");h(ec,"details",l),h(ec,"edit",c),h(ec,"delete",o);let tc=a.get("crdNamespacedInstance");h(tc,"details",l),h(tc,"edit",c),h(tc,"delete",o)};var ro=k(Ct(),1);u();var da=k(ft(),1);var k1=k(Kt(),1),sn=k(he(),1),T1=e=>(0,sn.jsx)(da.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,sn.jsxs)(da.MenuList,{dense:!0,sx:{minWidth:140},children:[(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("ubuntu"),children:[(0,sn.jsx)(uc,{size:"18"}),"\xA0Ubuntu"]}),(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("alpine"),children:[(0,sn.jsx)(Cd,{size:"18"}),"\xA0Alpine"]}),(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("dnsutils"),children:[(0,sn.jsx)(Sd,{size:"18"}),"\xA0DNS Utils"]}),(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected("jubuntu"),children:[(0,sn.jsx)(uc,{size:"18"}),"\xA0jUbuntu"]}),e.customActions&&e.customActions.filter(t=>t.type==="kube").map((t,n)=>(0,sn.jsxs)(da.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,sn.jsx)(k1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))]})});var A1=k(ft(),1);u();var ts=k(ft(),1),M1=k(Kt(),1),es=k(he(),1),D1=e=>(0,es.jsx)(ts.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,es.jsx)(ts.MenuList,{dense:!0,sx:{minWidth:140},children:e.customActions.filter(t=>t.type==="kwirth").map((t,n)=>(0,es.jsxs)(ts.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,es.jsx)(M1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))})});var P1=k(Ct(),1);u();var be=k(ft(),1),Ua=k(Pm(),1),ns=k(Kt(),1),O1=k(je(),1);var Ce=k(he(),1),R1=e=>{if(!(e.channelObject.isFullscreen===!0)||e.channelObject.isDesktop)return null;let[n,a]=(0,O1.useState)(!1),i=e.channelObject.data?.metricsCluster??[],s=i.map(C=>({value:C.cpuUsage})),o=i.map(C=>({value:C.memoryUsage})),l=i.map(C=>({value:C.txmbps+C.rxmbps||0})),c=i.length>0?i[i.length-1]:null,d=c?.cpuUsage??0,m=c?.memoryUsage??0,f=c?.txmbps??0,g=c?.rxmbps??0,I=e.channelObject.clusters??[];return(0,Ce.jsxs)(be.AppBar,{position:"sticky",color:"default",elevation:1,sx:{zIndex:1300},children:[(0,Ce.jsxs)(be.Toolbar,{sx:{gap:1.5},children:[(0,Ce.jsx)(be.IconButton,{size:"small",onClick:()=>a(!0),children:(0,Ce.jsx)(ns.Menu,{fontSize:"small"})}),(0,Ce.jsxs)(be.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Ce.jsx)(ns.Search,{}),(0,Ce.jsxs)(be.Typography,{variant:"h6",sx:{fontWeight:700,color:"#f5820a"},children:[(0,Ce.jsx)(be.Box,{component:"span",sx:{color:"#8b949e"},children:"[k]"}),"wirth"]}),(0,Ce.jsxs)(be.Box,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[(0,Ce.jsx)(be.Typography,{variant:"h6",sx:{fontWeight:700},children:"Magnify"}),e.channelObject.clusterName&&(0,Ce.jsxs)(be.Typography,{variant:"subtitle1",sx:{fontWeight:600,color:"text.secondary"},children:["\xB7 ",e.channelObject.clusterName]})]})]}),(0,Ce.jsx)(be.Box,{sx:{flex:1}}),(0,Ce.jsx)(be.Tooltip,{title:`${(d||0).toFixed(2)}%`,children:(0,Ce.jsxs)(be.Stack,{direction:"column",sx:{alignItems:"center",mr:"2px"},children:[(0,Ce.jsx)(be.Typography,{sx:{fontSize:8,mb:-1},children:"CPU"}),(0,Ce.jsx)(Ua.AreaChart,{width:120,height:20,data:s,margin:{top:0,right:0,bottom:0,left:0},children:(0,Ce.jsx)(Ua.Area,{type:"monotone",dataKey:"value",stroke:"#8884d8",strokeWidth:2,dot:!1,fill:"#bbbbdd"})})]})}),(0,Ce.jsx)(be.Tooltip,{title:`${(m||0).toFixed(2)}%`,children:(0,Ce.jsxs)(be.Stack,{direction:"column",sx:{alignItems:"center",mr:"2px"},children:[(0,Ce.jsx)(be.Typography,{sx:{fontSize:8,mb:-1},children:"Mem"}),(0,Ce.jsx)(Ua.AreaChart,{width:120,height:20,data:o,margin:{top:0,right:0,bottom:0,left:0},children:(0,Ce.jsx)(Ua.Area,{type:"monotone",dataKey:"value",stroke:"#d88488",strokeWidth:2,dot:!1,fill:"#ddbbbb"})})]})}),(0,Ce.jsx)(be.Tooltip,{title:`${(f||0).toFixed(2)}Mbps / ${(g||0).toFixed(2)}Mbps`,children:(0,Ce.jsxs)(be.Stack,{direction:"column",sx:{alignItems:"center"},children:[(0,Ce.jsx)(be.Typography,{sx:{fontSize:8,mb:-1},children:"Net"}),(0,Ce.jsx)(Ua.AreaChart,{width:120,height:20,data:l,margin:{top:0,right:0,bottom:0,left:0},children:(0,Ce.jsx)(Ua.Area,{type:"monotone",dataKey:"value",stroke:"#88d884",strokeWidth:2,dot:!1,fill:"#bbddbb"})})]})}),e.channelObject.clusterUrl&&(0,Ce.jsx)(be.Typography,{variant:"caption",sx:{color:"text.secondary",ml:1},children:e.channelObject.clusterUrl}),(0,Ce.jsx)(be.Tooltip,{title:"Exit fullscreen",children:(0,Ce.jsx)(be.IconButton,{size:"small",onClick:()=>e.channelObject.exitFullscreen?.(),children:(0,Ce.jsx)(ns.FullscreenExit,{fontSize:"small"})})})]}),(0,Ce.jsx)(be.Drawer,{anchor:"left",open:n,onClose:()=>a(!1),children:(0,Ce.jsxs)(be.Box,{sx:{width:250},children:[(0,Ce.jsx)(be.Typography,{variant:"subtitle1",sx:{fontWeight:700,px:2,py:1.5},children:"Clusters"}),(0,Ce.jsx)(be.Divider,{}),(0,Ce.jsxs)(be.List,{dense:!0,children:[I.map(C=>{let L=C.home?!0:!!C.reachable;return(0,Ce.jsxs)(be.ListItemButton,{disabled:!L,selected:C.name===e.channelObject.clusterName,onClick:()=>{e.channelObject.switchCluster?.(C.name),a(!1)},children:[(0,Ce.jsx)(be.ListItemIcon,{sx:{minWidth:28},children:(0,Ce.jsx)(be.Box,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:ty(C.name).dot,flexShrink:0}})}),(0,Ce.jsx)(be.ListItemText,{primary:C.name,secondary:C.home?"home":void 0})]},C.name)}),I.length===0&&(0,Ce.jsx)(be.ListItemText,{primary:"No clusters",sx:{px:2,color:"text.secondary"}})]})]})})]})};var j=k(he(),1),QM=e=>{let t=(0,Xe.useRef)(null);return e.title?(0,j.jsxs)(De.Dialog,{open:!0,onClose:()=>{e.onClose(),e.onResult?.(void 0)},children:[(0,j.jsx)(De.DialogTitle,{children:e.title}),(0,j.jsx)(De.DialogContent,{children:(0,j.jsxs)(De.Stack,{sx:{mt:2},direction:"column",children:[typeof e.message=="string"?(0,j.jsx)(De.Typography,{component:"div",sx:{ml:2},children:(0,j.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}})}):e.message,(0,j.jsx)(De.TextField,{inputRef:t,sx:{width:e.width},defaultValue:e.default},e.message?.toString())]})}),(0,j.jsxs)(De.DialogActions,{children:[(0,j.jsx)(De.Button,{onClick:()=>{e.onClose(),e.onResult?.(t.current?.value)},children:"ok"}),(0,j.jsx)(De.Button,{onClick:()=>e.onClose(),children:"cancel"})]})]}):null},no=kl(),eD={ContentDetails:(0,j.jsx)(ud,{}),ArtifactSearch:(0,j.jsx)(on.Search,{}),LogSearchPanel:(0,j.jsx)(on.Search,{}),ContentEdit:(0,j.jsx)(on.Edit,{}),ContentBrowse:(0,j.jsx)(Wn,{})},F1=e=>{let t=(0,A1.useTheme)(),n=e.channelObject.data,a=p=>{try{return vo((0,lt.accessKeyDeserialize)(e.channelObject.accessString??""),p)}catch{return!1}},r=a("magnify$write"),i=a(Co),s={create:!1,delete:!1,download:!1,copy:!1,move:!1,rename:!1,upload:!1},[o,l]=(0,Xe.useState)(0),c=(0,Xe.useRef)(null),d=(0,Xe.useRef)(null),m=(0,Xe.useRef)(null),[f,g]=(0,Xe.useState)(0),[I,C]=(0,Xe.useState)((0,j.jsx)(j.Fragment,{})),[L,U]=(0,Xe.useState)(),[se,le]=(0,Xe.useState)(),[$,me]=(0,Xe.useState)(),[E,oe]=(0,Xe.useState)(),[Se,Ie]=(0,Xe.useState)(),[V,B]=(0,Xe.useState)(),[de,te]=(0,Xe.useState)(),[Oe,He]=(0,Xe.useState)(),[Me,kt]=(0,Xe.useState)(""),[bt,Yt]=(0,Xe.useState)(!1),[fa,A]=(0,Xe.useState)(void 0),[,ee]=(0,Xe.useState)(0),ce=(p,y)=>{let b=rt.find(W=>W.key===p);if(!b)return!0;let D=!0;switch(p){case"Node":D=b.selected.includes("all")||b.selected.some(W=>y.data?.origin?.spec?.nodeName?.includes(W));break;case"Namespace":D=b.selected.includes("all")||b.selected.some(W=>y.data?.origin?.metadata?.namespace===W);break;case"controller":D=b.selected.includes("all")||b.selected.some(W=>y.data?.origin?.metadata?.ownerReferences?.[0]?.kind===W);break}return D},$e=p=>{let y=rt.find(b=>b.key===p);return y?!(y.selected.length===1&&y.selected[0]==="all"):!1},_t=(p,y,b)=>{let D=rt.find(W=>W.key===p);D&&(y==="all"?b=["all"]:y!=="all"&&b.length===2&&b.includes("all")?b=b.filter(W=>W!=="all"):b.length===0&&(b=["all"]),D.selected=b,n.selectedCategories||(n.selectedCategories={}),n.selectedCategories[p]=b,Ln([...rt]))},[rt,Ln]=(0,Xe.useState)([{key:"Node",text:"Node",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Node??["all"],onCategoryValuesChange:_t,onCategoryFilter:ce,isFilterActive:$e},{key:"Namespace",text:"Namespace",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Namespace??["all"],onCategoryValuesChange:_t,onCategoryFilter:ce,isFilterActive:$e},{key:"controller",text:"Controller",all:[{key:"all",text:"All..."},{key:"-"},{key:"ReplicaSet"},{key:"DaemonSet"},{key:"StatefulSet"},{key:"ReplicationController"},{key:"Job"}],selected:n.selectedCategories?.controller??["all"],onCategoryValuesChange:_t,onCategoryFilter:ce,isFilterActive:$e}]),Le=p=>{switch(p){case"exit":return(0,j.jsx)(on.ExitToApp,{sx:{color:"gray"}});case"notifications":return e.channelObject.notifications.length>0?(0,j.jsx)(on.NotificationsActive,{sx:{color:"success.main"}}):(0,j.jsx)(on.Notifications,{sx:{color:"text.disabled"}});case"cloud":return e.channelObject.webSocket?.readyState===1?(0,j.jsx)(De.Tooltip,{title:(0,j.jsxs)("div",{style:{textAlign:"center"},children:["Communications to",(0,j.jsx)("br",{})," Kwirth backend are ok"]}),children:(0,j.jsx)(on.CloudQueue,{sx:{color:"success.main"}})}):(0,j.jsx)(De.Tooltip,{title:(0,j.jsxs)("div",{style:{textAlign:"center"},children:["Communications to Kwirth backend",(0,j.jsx)("br",{}),"have been interrupted.",(0,j.jsx)("br",{}),"You need to exit cluster and reenter."]}),children:(0,j.jsx)(cd,{sx:{color:"error.main",animation:"blink 1.5s infinite","@keyframes blink":{"0%":{opacity:1},"50%":{opacity:.1},"100%":{opacity:1}}}})})}},ln=(p,y)=>{switch(p){case"exit":C((0,It.MsgBoxYesNo)("Exit cluster","Are you sure you want to leave this cluster and go back to initial cluster selection?",C,b=>{b===It.MsgBoxButtons.Yes&&e.channelObject.exit?.()}));break;case"notifications":A(y);break;case"cloud":e.channelObject.webSocket?.readyState!==1&&C((0,It.MsgBoxYesNo)("Reconnect Kwirth","Kwirth has been disconnected. Do you want to reconnect?",C,b=>{}));break}},Ya=[{name:"cloud",onClick:(p,y)=>ln(p,y),onDraw:p=>Le(p)},{name:"notifications",onClick:(p,y)=>ln(p,y),onDraw:p=>Le(p)},{name:"exit",onClick:(p,y)=>ln(p,y),onDraw:p=>Le(p)}];(0,Xe.useLayoutEffect)(()=>{let p=new ResizeObserver(()=>{requestAnimationFrame(()=>{if(!c.current)return;let{top:y}=c.current.getBoundingClientRect();l(window.innerHeight-y)})});return p.observe(document.body),()=>p.disconnect()},[]),(0,Xe.useLayoutEffect)(()=>{m.current&&g(m.current.getBoundingClientRect().top)},[n.started]),(0,Xe.useEffect)(()=>{e.channelObject.setPalette?.(n.userPreferences?.palette),n.files.some(b=>b.path==="/overview")||n.files.push(...vd),I1(t,n,e.channelObject,_,cs,Kl,$l,Ga,va,oo,Hr,$r),Ul(),Yl(),co(),is(),ss(),n.refreshUsage=()=>ee(b=>b+1);let p=rt.find(b=>b.key==="Namespace");if(p)for(let b of n.files.filter(D=>D.data?.origin?.kind==="Namespace"))p.all.some(D=>D.key===b.name)||p.all.push({key:b.name,text:b.name});let y=rt.find(b=>b.key==="Node");if(y)for(let b of n.files.filter(D=>D.data?.origin?.kind==="Node"))y.all.some(D=>D.key===b.name)||y.all.push({key:b.name,text:b.name});return n.updateCategoryValues=(b,D,W)=>{let H=rt.find(X=>X.key===b);H&&(D==="DELETED"?H.all=H.all.filter(X=>X.key!==W):H.all.some(X=>X.key===W)||H.all.push({key:W}))},()=>{te(void 0)}},[]);let Wr=(p,y,b)=>{te(void 0),b==="*all"?Tt(p,[y],lt.EInstanceConfigView.POD,void 0,void 0):Tt(p,[y],lt.EInstanceConfigView.CONTAINER,void 0,b)},Br=p=>{if(p.onReady==="shell"&&!Yr())return;let y=no.load(p.podYaml);Qe("apply",[p.podYaml]);let b=p.url;if(p.onReady==="http"||p.onReady==="https"){p.forward&&(b="http://localhost:3000/kwirth/port-forward/pod/default/galaga/80");let D=window.setInterval(async()=>{try{let W=await fetch(b);W.status>=200&&W.status<400&&(clearInterval(D),C((0,j.jsx)(j.Fragment,{})))}catch(W){console.log(W)}},1e3);C((0,It.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for... ${b})...`,C,W=>{W===It.MsgBoxButtons.Cancel&&clearInterval(D)}))}else if(p.onReady==="shell"){let D=window.setInterval(async()=>{try{let W=n.files.find(H=>H.class==="Pod"&&H.data.origin.metadata.namespace===(y.metadata.namespace||"default")&&H.data.origin.metadata.name===y.metadata.name);W&&W.data.origin.status.phase==="Running"&&(clearInterval(D),C((0,j.jsx)(j.Fragment,{})),Tt("ops",[W],lt.EInstanceConfigView.CONTAINER,void 0,W.data.origin.spec.containers[0].name))}catch(W){console.log(W)}},1e3);C((0,It.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for shell)...`,C,W=>{W===It.MsgBoxButtons.Cancel&&clearInterval(D)}))}},io=p=>{Ie(void 0);let y=n.userPreferences.customActions.find(b=>b.name===p);y?Br(y):Qe("Pod",["work",p])},so=p=>{let y=n.userPreferences.customActions.find(b=>b.name===p);y&&Br(y)},wn=p=>{n.windows.forEach(b=>b.atFront=!1);let y=n.windows.find(b=>b.id===p);if(y){y.visible=!0,y.atFront=!0,ee(b=>b+1);return}},cn=p=>{n.windows.forEach(y=>y.atFront=!1),n.windows.push(p),ee(y=>y+1)},Cn=(p,y,b,D,W,H)=>{let X=n.windows.find(K=>K.id===p);X&&(X.isMaximized=y,X.x=b,X.y=D,X.width=W,X.height=H)},va=(p,y)=>{let b=n.files.filter(H=>p.includes(H.path)),D=fe.get(b[0].data.origin.kind);b[0].path.startsWith("/custom/")&&!b[0].path.startsWith("/custom/CustomResourceDefinition/")&&(D=fe.get("#crdInstance#"));let W=n.windows.find(H=>H.selectedFiles.find(X=>X.path===b[0].path)&&H.class==="ContentDetails");if(W)wn(W.id);else{let H=_.get(b[0].data.origin.kind),X={id:"details-"+b[0].path+"-"+it(),class:"ContentDetails",visible:!0,atTop:!1,atFront:!0,title:b[0].data.origin.metadata?.name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{source:b[0],path:b[0].path,sections:D,actions:H&&H.leftItems?H.leftItems:[],onApply:jl,onAction:ms,onLink:cs,containerSelectionOptions:new Map([["log",2],["metrics",2],["fileman",2],["trivy",0],["topology",0],["ops",1],["evict",0],["cordon",0],["uncordon",0],["drain",0],["scale",0],["restart",0],["trigger",0],["suspend",0],["resume",0]])},selectedFiles:[b[0]],onWindowChange:Cn,onMinimize:un,onTop:Sn,onClose:Gt};cn(X)}b[0].data.origin.metadata&&(b[0].data.events&&delete b[0].data.events,Qe("events",["object",b[0].data.origin.metadata.namespace,b[0].data.origin.kind,b[0].data.origin.metadata.name]))},$l=p=>{let y=(Pe.get(p)||`apiVersion: v1
804
804
  Kind: ${p}
805
- ejemplo: true`).trim(),b="create-"+p+"-"+it(),D={id:b,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+p,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(V,H)=>{Qe("apply",[V]),jt(b)},code:y,oldCode:void 0},onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt,selectedFiles:[]};ln(D)},$l=()=>{let p="add-resources-"+it();ln({id:p,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Add resources",isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:D=>{let V=[];try{to.loadAll(D,H=>{H&&V.push(to.dump(H,{indent:2}))})}catch(H){e.channelObject.notify?.(e.channelObject.channelId,no.ENotifyLevel.ERROR,"Invalid YAML: "+(H?.message??H));return}if(V.length===0){e.channelObject.notify?.(e.channelObject.channelId,no.ENotifyLevel.WARNING,"No resources found in the provided YAML");return}Qe("apply",V),jt(p)},code:`# Paste one or more Kubernetes resources here.
805
+ ejemplo: true`).trim(),b="create-"+p+"-"+it(),D={id:b,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+p,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(W,H)=>{Qe("apply",[W]),Gt(b)},code:y,oldCode:void 0},onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt,selectedFiles:[]};cn(D)},ql=()=>{let p="add-resources-"+it();cn({id:p,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Add resources",isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:D=>{let W=[];try{no.loadAll(D,H=>{H&&W.push(no.dump(H,{indent:2}))})}catch(H){e.channelObject.notify?.(e.channelObject.channelId,ao.ENotifyLevel.ERROR,"Invalid YAML: "+(H?.message??H));return}if(W.length===0){e.channelObject.notify?.(e.channelObject.channelId,ao.ENotifyLevel.WARNING,"No resources found in the provided YAML");return}Qe("apply",W),Gt(p)},code:`# Paste one or more Kubernetes resources here.
806
806
  # Separate multiple resources with a line containing only:
807
807
  # ---
808
- `,oldCode:void 0},onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt,selectedFiles:[]})},Ua=p=>{let y=n.files.filter(b=>p.includes(b.path));if(y.length>0)if(y[0].class==="Image")S((0,vt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,j.jsxs)(Me.Box,{children:["Are you sure you want to delete image ",(0,j.jsx)("b",{children:y[0].displayName}),p.length>1?` (and other ${p.length-1} items)`:""," (take into account that removing images is an asynchronous process (a DaemonSet in fact) and may take up to 30 seconds)?"]}),S,b=>{b===vt.MsgBoxButtons.Yes&&Qe("Image",["delete",...y.map(D=>D.data.origin.metadata.name)])}));else{let b=y[0].data.origin.kind==="Pod",D={on:!1},V=p.length>1?` (and other ${p.length-1} items)`:"",H=(0,j.jsxs)(Me.Box,{children:["Are you sure you want to delete ",y[0].data.origin.kind,(0,j.jsxs)("b",{children:[" ",y[0].displayName]}),V,"?",b&&(0,j.jsxs)(Me.Box,{sx:{mt:1},children:[(0,j.jsx)(Me.FormControlLabel,{label:(0,j.jsx)(Me.Typography,{variant:"body2",children:"Force (do not wait for it to terminate)"}),control:(0,j.jsx)(Me.Checkbox,{size:"small",onChange:Q=>{D.on=Q.target.checked}})}),(0,j.jsx)(Me.Typography,{variant:"caption",sx:{color:"warning.main",display:"block"},children:"Forcing removes the pod from Kubernetes immediately. If its node is still alive the container may keep running. Use it for a node that is unreachable."})]})]});S((0,vt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,H,S,Q=>{if(Q===vt.MsgBoxButtons.Yes){let G=y.map(Ka=>to.dump(Ka.data.origin,{indent:2}));Qe("delete",D.on?[...G,"force"]:G)}}))}},so=p=>oo(p,!0),Hr=p=>oo(p,!1),oo=(p,y)=>{let b=n.files.filter(H=>p.includes(H.path)),D=(y?"edit-":"browse-")+b[0].path+"-"+it(),V={id:D,class:y?"ContentEdit":"ContentBrowse",visible:!0,atTop:!1,atFront:!0,title:(y?"Edit ":"Browse ")+b[0].name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{allowEdit:y,onOk:(H,Q)=>{Qe("apply",[H]),jt(D)},isInitialized:!1,code:void 0,oldCode:void 0},selectedFiles:[b[0]],onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt};ln(V)},kt=(p,y,b,D,V)=>{let H=800,Q=600;p==="trivy"&&(H=window.innerWidth*.9,Q=window.innerHeight*.9),p==="pinocchio"&&(H=window.innerWidth*.9,Q=window.innerHeight*.8),p==="topology"&&(H=window.innerWidth*.9,Q=window.innerHeight*.9);let G={id:"external-"+p+"-"+it(),class:"ContentExternal",visible:!0,atTop:!1,atFront:!0,title:y.length>0?y[0].data.origin.metadata.name+(V||""):p==="pinocchio"?"Pinocchio":p==="topology"?"Topology":p.charAt(0).toUpperCase()+p.slice(1),isMaximized:!1,x:100,y:50,width:H,height:Q,data:{isInitialized:!1,isDesktop:e.channelObject.isDesktop,channelObject:e.channelObject,settings:n.userPreferences,channelId:p,contentView:b,frontChannels:e.channelObject.frontChannels,onNotify:ms,onRefresh:ls,onOpenExternal:kt,formConfig:void 0,options:p==="ops"||p==="pinocchio"?{autostart:!0,pauseable:!1,stoppable:!1,configurable:!1,data:D}:{autostart:!0,pauseable:!0,stoppable:!0,configurable:p!=="fileman",data:D}},selectedFiles:y,container:V,onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt};ln(G)},$r=p=>{let y=n.files.filter(H=>p.includes(H.path)),b=[],D;p[0]==="/cluster/overview"?(D=":cluster:",b=n.files):(D=y[0].data.origin.metadata.name,b=n.files.filter(H=>H.data?.origin?.metadata.namespace===y[0].data.origin.metadata.name));let V={id:"search-"+D+"-"+it(),class:"ArtifactSearch",visible:!0,atTop:!1,atFront:!0,title:"Search...",isMaximized:!1,x:100,y:50,width:800,height:600,data:{scope:D,selectedFiles:b,onLink:os,searchText:"",includeStatus:!1,merge:!0,matchCase:!1},selectedFiles:[y[0]],onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt};ln(V)},ns=(p,y,b)=>{n.logSearchResults=[],n.logSearchDone=!0;let D={id:"logsearch-"+it(),class:"LogSearchPanel",visible:!0,atTop:!1,atFront:!0,title:"Log Search",isMaximized:!1,x:120,y:60,width:700,height:500,data:{namespaces:p,pods:y,scopeLabel:b??"Cluster",onOpenLog:(V,H,Q)=>{let G={name:H,isDirectory:!1,path:`/workload/Pod/${V}/${H}`,data:{origin:{metadata:{name:H,namespace:V},kind:"Pod"}}};kt("log",[G],lt.EInstanceConfigView.CONTAINER,void 0,Q)},clusterName:e.channelObject.clusterName,accessString:e.channelObject.accessString,instanceId:e.channelObject.instanceId},selectedFiles:[],onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt};ln(D)};{let p=new Set(["search","logsearch","add"]),y=_.get("classClusterOverview");y.leftItems=y.leftItems.filter(b=>!b.name||p.has(b.name))}{let p=new Set(["create","add","edit","delete","scale","restart","suspend","resume","trigger","instantiate","evict","kubeworks","kwirthworks"]),y=new Set(["cordon","uncordon","drain","shell","default"]);for(let b of _.values())for(let D of b.leftItems??[])D.name&&(p.has(D.name)?(D.permission=r,D.isVisible=()=>r):y.has(D.name)&&(D.permission=i,D.isVisible=()=>i))}let qr=_.get("classOverview");h(qr,"kwirthworks",(p,y)=>B(y),()=>!0,()=>n.userPreferences?.customActions&&n.userPreferences.customActions.filter(p=>p.type==="kwirth").length>0),h(qr,"kubeworks",(p,y)=>Ie(y)),h(_.get("classClusterOverview"),"logsearch",()=>ns(void 0,void 0,"Cluster")),h(_.get("classClusterOverview"),"add",()=>$l());let lo=()=>{let p=_.get("classClusterOverview"),y=_.get("Node");h(y,"shell",uo,()=>e.channelObject.frontChannels?.has("ops")??!1),h(y,"cordon",Gr),h(y,"uncordon",mo),h(y,"drain",co);let b=_.get("Namespace");h(b,"log",V=>{let H=n.files.filter(Q=>V.includes(Q.path));kt("log",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",V=>{let H=n.files.filter(Q=>V.includes(Q.path));kt("metrics",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"fileman",V=>{let H=n.files.filter(Q=>V.includes(Q.path));kt("fileman",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",V=>{let H=n.files.filter(Q=>V.includes(Q.path));kt("trivy",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",V=>{let H=n.files.filter(Q=>V.includes(Q.path));kt("topology",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),h(b,"logsearch",V=>{let Q=n.files.filter(G=>V.includes(G.path))[0]?.data?.origin?.metadata?.name;Q&&ns([Q],void 0,`Namespace: ${Q}`)});let D=_.get("classNamespace");h(D,"create",V=>{oe(()=>H=>{if(H){let Q=`
808
+ `,oldCode:void 0},onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt,selectedFiles:[]})},Ga=p=>{let y=n.files.filter(b=>p.includes(b.path));if(y.length>0)if(y[0].class==="Image")C((0,It.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,j.jsxs)(De.Box,{children:["Are you sure you want to delete image ",(0,j.jsx)("b",{children:y[0].displayName}),p.length>1?` (and other ${p.length-1} items)`:""," (take into account that removing images is an asynchronous process (a DaemonSet in fact) and may take up to 30 seconds)?"]}),C,b=>{b===It.MsgBoxButtons.Yes&&Qe("Image",["delete",...y.map(D=>D.data.origin.metadata.name)])}));else{let b=y[0].data.origin.kind==="Pod",D={on:!1},W=p.length>1?` (and other ${p.length-1} items)`:"",H=(0,j.jsxs)(De.Box,{children:["Are you sure you want to delete ",y[0].data.origin.kind,(0,j.jsxs)("b",{children:[" ",y[0].displayName]}),W,"?",b&&(0,j.jsxs)(De.Box,{sx:{mt:1},children:[(0,j.jsx)(De.FormControlLabel,{label:(0,j.jsx)(De.Typography,{variant:"body2",children:"Force (do not wait for it to terminate)"}),control:(0,j.jsx)(De.Checkbox,{size:"small",onChange:X=>{D.on=X.target.checked}})}),(0,j.jsx)(De.Typography,{variant:"caption",sx:{color:"warning.main",display:"block"},children:"Forcing removes the pod from Kubernetes immediately. If its node is still alive the container may keep running. Use it for a node that is unreachable."})]})]});C((0,It.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,H,C,X=>{if(X===It.MsgBoxButtons.Yes){let K=y.map(ha=>no.dump(ha.data.origin,{indent:2}));Qe("delete",D.on?[...K,"force"]:K)}}))}},oo=p=>lo(p,!0),Hr=p=>lo(p,!1),lo=(p,y)=>{let b=n.files.filter(H=>p.includes(H.path)),D=(y?"edit-":"browse-")+b[0].path+"-"+it(),W={id:D,class:y?"ContentEdit":"ContentBrowse",visible:!0,atTop:!1,atFront:!0,title:(y?"Edit ":"Browse ")+b[0].name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{allowEdit:y,onOk:(H,X)=>{Qe("apply",[H]),Gt(D)},isInitialized:!1,code:void 0,oldCode:void 0},selectedFiles:[b[0]],onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt};cn(W)},Tt=(p,y,b,D,W)=>{let H=800,X=600;p==="trivy"&&(H=window.innerWidth*.9,X=window.innerHeight*.9),p==="pinocchio"&&(H=window.innerWidth*.9,X=window.innerHeight*.8),p==="topology"&&(H=window.innerWidth*.9,X=window.innerHeight*.9);let K={id:"external-"+p+"-"+it(),class:"ContentExternal",visible:!0,atTop:!1,atFront:!0,title:y.length>0?y[0].data.origin.metadata.name+(W||""):p==="pinocchio"?"Pinocchio":p==="topology"?"Topology":p.charAt(0).toUpperCase()+p.slice(1),isMaximized:!1,x:100,y:50,width:H,height:X,data:{isInitialized:!1,isDesktop:e.channelObject.isDesktop,channelObject:e.channelObject,settings:n.userPreferences,channelId:p,contentView:b,frontChannels:e.channelObject.frontChannels,onNotify:ds,onRefresh:jr,onOpenExternal:Tt,formConfig:void 0,options:p==="ops"||p==="pinocchio"?{autostart:!0,pauseable:!1,stoppable:!1,configurable:!1,data:D}:{autostart:!0,pauseable:!0,stoppable:!0,configurable:p!=="fileman",data:D}},selectedFiles:y,container:W,onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt};cn(K)},$r=p=>{let y=n.files.filter(H=>p.includes(H.path)),b=[],D;p[0]==="/cluster/overview"?(D=":cluster:",b=n.files):(D=y[0].data.origin.metadata.name,b=n.files.filter(H=>H.data?.origin?.metadata.namespace===y[0].data.origin.metadata.name));let W={id:"search-"+D+"-"+it(),class:"ArtifactSearch",visible:!0,atTop:!1,atFront:!0,title:"Search...",isMaximized:!1,x:100,y:50,width:800,height:600,data:{scope:D,selectedFiles:b,onLink:cs,searchText:"",includeStatus:!1,merge:!0,matchCase:!1},selectedFiles:[y[0]],onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt};cn(W)},rs=(p,y,b)=>{n.logSearchResults=[],n.logSearchDone=!0;let D={id:"logsearch-"+it(),class:"LogSearchPanel",visible:!0,atTop:!1,atFront:!0,title:"Log Search",isMaximized:!1,x:120,y:60,width:700,height:500,data:{namespaces:p,pods:y,scopeLabel:b??"Cluster",onOpenLog:(W,H,X)=>{let K={name:H,isDirectory:!1,path:`/workload/Pod/${W}/${H}`,data:{origin:{metadata:{name:H,namespace:W},kind:"Pod"}}};Tt("log",[K],lt.EInstanceConfigView.CONTAINER,void 0,X)},clusterName:e.channelObject.clusterName,accessString:e.channelObject.accessString,instanceId:e.channelObject.instanceId},selectedFiles:[],onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt};cn(D)};{let p=new Set(["search","logsearch","add"]),y=_.get("classClusterOverview");y.leftItems=y.leftItems.filter(b=>!b.name||p.has(b.name))}{let p=new Set(["create","add","edit","delete","scale","restart","suspend","resume","trigger","instantiate","evict","kubeworks","kwirthworks"]),y=new Set(["cordon","uncordon","drain","shell","default"]);for(let b of _.values())for(let D of b.leftItems??[])D.name&&(p.has(D.name)?(D.permission=r,D.isVisible=()=>r):y.has(D.name)&&(D.permission=i,D.isVisible=()=>i))}let qr=_.get("classOverview");h(qr,"kwirthworks",(p,y)=>B(y),()=>!0,()=>n.userPreferences?.customActions&&n.userPreferences.customActions.filter(p=>p.type==="kwirth").length>0),h(qr,"kubeworks",(p,y)=>Ie(y)),h(_.get("classClusterOverview"),"logsearch",()=>rs(void 0,void 0,"Cluster")),h(_.get("classClusterOverview"),"add",()=>ql());let co=()=>{let p=_.get("classClusterOverview"),y=_.get("Node");h(y,"shell",mo,()=>e.channelObject.frontChannels?.has("ops")??!1),h(y,"cordon",Gr),h(y,"uncordon",fo),h(y,"drain",uo);let b=_.get("Namespace");h(b,"log",W=>{let H=n.files.filter(X=>W.includes(X.path));Tt("log",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",W=>{let H=n.files.filter(X=>W.includes(X.path));Tt("metrics",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"fileman",W=>{let H=n.files.filter(X=>W.includes(X.path));Tt("fileman",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",W=>{let H=n.files.filter(X=>W.includes(X.path));Tt("trivy",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",W=>{let H=n.files.filter(X=>W.includes(X.path));Tt("topology",H,lt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),h(b,"logsearch",W=>{let X=n.files.filter(K=>W.includes(K.path))[0]?.data?.origin?.metadata?.name;X&&rs([X],void 0,`Namespace: ${X}`)});let D=_.get("classNamespace");h(D,"create",W=>{oe(()=>H=>{if(H){let X=`
809
809
  apiVersion: 'v1'
810
810
  kind: 'Namespace'
811
811
  metadata:
812
812
  name: ${H}
813
- `;Qe("create",[Q])}}),le("Enter namespace name"),U("Create namespace")})},ql=()=>{let p=(D,V,H)=>{let Q=n.files.filter(G=>V.includes(G.path));Q.length>1?kt(D,Q,lt.EInstanceConfigView.POD,void 0,void 0):(It(D),He(Q[0]),Yt(!0),te(H))},y=(D,V,H)=>{let Q=n.files.filter(G=>V.includes(G.path));It(D),He(Q[0]),Yt(!1),te(H)},b=_.get("Pod");h(b,"log",(D,V)=>p("log",D,V),()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",(D,V)=>p("metrics",D,V),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"ops",(D,V)=>y("ops",D,V),()=>e.channelObject.frontChannels?.has("ops")??!1),h(b,"fileman",(D,V)=>p("fileman",D,V),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",(D,V)=>p("trivy",D,V),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",D=>{let V=n.files.filter(H=>D.includes(H.path));kt("topology",V,lt.EInstanceConfigView.POD,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),h(b,"evict",Ur),h(b,"logsearch",D=>{let H=n.files.filter(Q=>D.includes(Q.path)).map(Q=>`${Q.data?.origin?.metadata?.namespace}/${Q.data?.origin?.metadata?.name}`);ns(void 0,H,`Pods (${H.length})`)})},Ur=p=>{let y=n.files.filter(b=>p.includes(b.path));S((0,vt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,j.jsxs)(Me.Box,{children:["Are you sure you want to evict ",y[0].data.origin.kind," ",(0,j.jsx)("b",{children:y[0].data.origin.metadata.name}),"?"]}),S,b=>{b===vt.MsgBoxButtons.Yes&&y.map(D=>Qe("Pod",["evict",D.data.origin.metadata.namespace,D.data.origin.metadata.name]))}))},Ul=()=>{let p=_.get("Deployment");Sa(p,"status",Yl),h(p,"scale",pa),h(p,"restart",Ya),h(p,"log",G=>ze(G,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(p,"metrics",G=>ze(G,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(p,"fileman",G=>ze(G,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(p,"trivy",G=>ze(G,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(p,"topology",G=>ze(G,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=_.get("DaemonSet");h(y,"restart",Ya),h(y,"log",G=>ze(G,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(y,"metrics",G=>ze(G,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(y,"topology",G=>ze(G,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=_.get("ReplicaSet");h(b,"scale",pa),h(b,"log",G=>ze(G,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",G=>ze(G,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"fileman",G=>ze(G,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",G=>ze(G,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",G=>ze(G,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let D=_.get("ReplicationController");h(D,"restart",Ya),h(D,"scale",pa),h(D,"log",G=>ze(G,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(D,"metrics",G=>ze(G,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(D,"fileman",G=>ze(G,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(D,"trivy",G=>ze(G,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(D,"topology",G=>ze(G,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let V=_.get("StatefulSet");h(V,"scale",pa),h(V,"restart",Ya),h(V,"log",G=>ze(G,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(V,"metrics",G=>ze(G,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(V,"fileman",G=>ze(G,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(V,"trivy",G=>ze(G,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(V,"topology",G=>ze(G,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let H=_.get("Job");h(H,"log",G=>ze(G,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(H,"metrics",G=>ze(G,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(H,"fileman",G=>ze(G,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(H,"trivy",G=>ze(G,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(H,"topology",G=>ze(G,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let Q=_.get("CronJob");h(Q,"trigger",Kr),h(Q,"suspend",fo),h(Q,"resume",Jr)},as=()=>{let p=_.get("Service");h(p,"topology",D=>ze(D,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=_.get("Ingress");h(y,"topology",D=>ze(D,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=_.get("IngressClass");h(b,"default",is)},Yl=p=>{let y=n.files.find(D=>p===D.path);if(!y||!y.data?.origin?.status)return(0,j.jsx)(j.Fragment,{});let b="Stalled";return y.data.origin?.status?.conditions&&y.data.origin.status.conditions.length>0&&(y.data.origin.status.conditions.some(D=>D.type+D.status==="AvailableTrue")&&y.data.origin.status.conditions.some(D=>D.type+D.status==="ProgressingTrue")?b="Running":y.data.origin.status.conditions.some(D=>D.type+D.status==="AvailableFalse")&&y.data.origin.status.conditions.some(D=>D.type+D.status==="ProgressingTrue")&&(b="Scaling")),(0,j.jsx)(Me.Typography,{color:b==="Running"?"green":b==="Scaling"?"orange":"red",variant:"body2",children:b})},rs=()=>{let p=(b,D)=>{let V=n.files.filter(H=>b.includes(H.path));if(V.length>=1){let H=Zg(V[0].data.origin),Q="create-"+V[0].data.origin.spec.names.kind+"-"+it(),G={id:Q,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+V[0].data.origin.spec.names.kind,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(Ka,Ja)=>{Qe("apply",[Ka]),jt(Q)},code:H,oldCode:void 0},onWindowChange:zn,onTop:Ln,onMinimize:wn,onClose:jt,selectedFiles:[]};ln(G)}},y=_.get("CustomResourceDefinition");h(y,"instantiate",p)},Ya=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&Qe("Controller",["restart",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},pa=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&(oe(()=>b=>{b&&Qe("Controller",["scale",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name,b])}),le("Enter scaling value"),me(y[0].data.origin.spec.replicas),U("Scale "+y[0].data.origin.kind))},ze=(p,y)=>{let b=n.files.filter(D=>p.includes(D.path));kt(y,b,lt.EInstanceConfigView.GROUP,void 0,void 0)},is=p=>{n.files.filter(b=>p.includes(b.path)).map(b=>Qe("IngressClass",["default",b.data.origin.metadata.name]))},co=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("Node",["drain",y[0].data.origin.metadata.name])},Yr=()=>e.channelObject.frontChannels?.has("ops")?!0:(e.channelObject.notify?.(e.channelObject.channelId,no.ENotifyLevel.WARNING,"A shell needs the Ops plugin: install it from \u2630 \u2192 Manage extensions \u2192 Plugins"),!1),uo=p=>{if(!Yr())return;let y=n.files.filter(H=>p.includes(H.path)),b="kwirth-node-shell-"+y[0].name,D="default";Qe("Node",["shell",y[0].data.origin.metadata.name,D,b]);let V=window.setInterval(async()=>{try{let H=n.files.find(Q=>Q.class==="Pod"&&Q.data.origin.metadata.namespace===D&&Q.data.origin.metadata.name===b);H&&H.data.origin.status.phase==="Running"&&(clearInterval(V),S((0,j.jsx)(j.Fragment,{})),kt("ops",[H],lt.EInstanceConfigView.CONTAINER,{nodeShell:!0},H.data.origin.spec.containers[0].name))}catch(H){console.log(H)}},1e3);S((0,vt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the node shell to start (pod '${b}' on namespace '${D}' is starting)...`,S,H=>{H===vt.MsgBoxButtons.Cancel&&clearInterval(V)}))},Gr=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("Node",["cordon",y[0].data.origin.metadata.name])},mo=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("Node",["uncordon",y[0].data.origin.metadata.name])},Kr=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("CronJob",["trigger",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},fo=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("CronJob",["suspend",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Jr=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("CronJob",["resume",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Gl=p=>{d.current?.changeFolder(p)},Qe=(p,y)=>{if(!e.channelObject.webSocket)return;let b={flow:lt.EInstanceMessageFlow.REQUEST,action:lt.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:lt.EInstanceMessageType.DATA,accessKey:e.channelObject.accessString,instance:e.channelObject.instanceId,id:it(),command:p,namespace:"",group:"",pod:"",container:"",params:y,msgtype:"magnifymessage"},D=JSON.stringify(b);e.channelObject.webSocket.send(D)},Kl=(p,y)=>{e.channelObject.notify?.(e.channelObject.channelId,no.ENotifyLevel.ERROR,p.message)},ss=p=>{n.currentPath=p},os=(p,y,b)=>{let D=be(p,y,b);if(D.startsWith("//")){if(n.files.find(H=>H.class==="crdInstance"&&H.data.origin.metadata.name===y&&H.data.origin.kind===p)){let H=`/custom/${p}/`+y+(b?":"+b:"");Ca([H],void 0);return}}else{let V=n.files.find(H=>H.path===D);if(V){Ca([V.path],void 0);return}else if(p==="Image"){let H="docker.io/library/"+y;y.includes("/")&&(H="docker.io/"+y);let Q=n.files.find(G=>G.class==="Image"&&G.data.origin?.names?.includes(H));if(Q){Ca([Q.path],void 0);return}if(y.includes("@sha256:")){let G=y.indexOf("@sha256:"),Ka=y.substring(G).toLowerCase(),Ja=n.files.find(go=>go.class==="Image"&&go.data.origin?.names?.some(ds=>ds.toLowerCase().endsWith(Ka)));if(Ja){Ca([Ja.path],void 0);return}}}}S((0,vt.MsgBoxOkError)("Object details",(0,j.jsxs)(Me.Box,{children:["Image '",(0,j.jsx)("b",{children:y}),"' has not been found on artifacts database. Maybe it exist but is stored with any kind of prefix"]}),S))},ls=()=>ee(p=>p+1),jt=p=>{let y=n.windows.findIndex(D=>D.id===p);if(y<0)return;n.windows.splice(y,1);let b=[...n.windows].reverse().find(D=>D.visible);b&&bn(b.id),ee(D=>D+1)},wn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible=!1,y.atFront=!1,po(),ee(b=>b+1))},Ln=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.atTop=!y.atTop,ee(b=>b+1))},po=()=>{let p;for(let y of n.windows)y.visible&&!y.atFront&&!y.atTop&&(p=y);p&&bn(p.id)},cs=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible?y.atFront?(y.visible=!1,y.atFront=!1,po()):bn(y.id):(y.visible=!0,bn(y.id)),ee(b=>b+1))},Jl=(p,y)=>{Qe("apply",[to.dump(y,{indent:2})])},us=(p,y,b)=>{let D=n.files.find(V=>V.path===y);if(D){switch(p){case"delete":Ua([y]);break;case"edit":so([y]);break;case"browse":Hr([y]);break;case"ops":kt("ops",[D],lt.EInstanceConfigView.CONTAINER,void 0,b);break;case"log":case"metrics":case"fileman":case"trivy":b==="*all"?kt(p,[D],lt.EInstanceConfigView.POD,void 0,void 0):kt(p,[D],lt.EInstanceConfigView.CONTAINER,void 0,b);break;case"evict":Ur([y]);break;case"cordon":Gr([y]);break;case"shell":uo([y]);break;case"uncordon":mo([y]);break;case"drain":co([y]);break;case"scale":pa([y]);break;case"restart":Ya([y]);break;case"trigger":Kr([y]);break;case"suspend":fo([y]);break;case"resume":Jr([y]);break}ee(V=>V+1)}},ms=(p,y,b)=>{b="Channel message: "+b},ho=p=>{let y=e.channelObject.frontChannels.get(p.data.channelId);return y?(0,ao.getChannelIconSafe)(y,p.data.channelId):(console.log("Inexistent channel:",p.data.channelId),(0,j.jsx)(j.Fragment,{}))},Ga=(p,y,b)=>{if(p.visible&&p.atFront===y&&p.atTop===b)switch(p.class){case"ContentDetails":return(0,j.jsx)(Sx,{onFocus:()=>bn(p.id),...p},p.id);case"ArtifactSearch":return(0,j.jsx)(Jx,{onFocus:()=>bn(p.id),...p},p.id);case"LogSearchPanel":return(0,j.jsx)(jx,{onFocus:()=>bn(p.id),...p,channelObject:e.channelObject,magnifyData:n},p.id);case"ContentBrowse":case"ContentEdit":return(0,j.jsx)(Ux,{onFocus:()=>bn(p.id),...p},p.id);case"ContentExternal":return(0,j.jsx)(ty,{onFocus:()=>bn(p.id),...p},p.id);default:console.error("Invalid window class:",p.class)}};return n.started?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(T1,{channelObject:e.channelObject}),n.started&&(0,j.jsxs)(Me.Box,{ref:c,sx:{display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",flexGrow:1,height:`${o}px`,ml:1,mr:1,mt:1},children:[(0,j.jsx)(M1.FileManager,{ref:d,files:n.files,spaces:_,rightItems:qa,actions:Cd,icons:Bn,initialPath:n.currentPath,layout:"list",enableFilePreview:!1,onCreateFolder:void 0,onError:Kl,onRename:void 0,onPaste:void 0,onDelete:void 0,onFolderChange:ss,onRefresh:void 0,permissions:s,filePreviewPath:"http://avoid-console-error",primaryColor:"#1976d2",fontFamily:"Roboto, Helvetica, Arial, sans-serif",height:"100%",className:"custom-fm-magnify",searchMode:"auto",searchRegex:!0,searchCasing:!0,showContextMenu:!1,showRefresh:!1,categories:rt,maxNavigationPaneLevel:2,minFileActionsLevel:2,openMode:"none"}),de&&(0,j.jsx)(_l,{channel:De,file:Oe,onClose:()=>te(void 0),onContainerSelected:Wr,anchorParent:de,includeAllContainers:bt}),Ce&&(0,j.jsx)(C1,{onWorkSelected:ro,onClose:()=>Ie(void 0),anchorParent:Ce,customActions:n.userPreferences.customActions}),W&&(0,j.jsx)(I1,{onWorkSelected:io,onClose:()=>B(void 0),anchorParent:W,customActions:n.userPreferences.customActions}),fa&&(0,j.jsx)(O1.MenuNotification,{anchorParent:fa,notifications:e.channelObject.notifications,onRefresh:()=>ee(p=>p+1),onClose:()=>A(void 0),renderIcon:p=>p?(0,ao.getChannelIconSafe)(e.channelObject.frontChannels.get(p),p):(0,ao.getIconFromKind)("IconK8s",20)}),(0,j.jsx)(Me.Stack,{direction:"row",sx:{mt:1},children:n.windows.map(p=>{let y=p.title||"notitle",b=y;b.length>20&&(b=b.substring(0,10)+"..."+b.substring(b.length-10));let D=jM[p.class]||(p.class==="ContentExternal"?ho(p):null),V=p.class==="ContentDetails"?y:p.title;return(0,j.jsx)(Me.Tooltip,{title:V,children:(0,j.jsxs)(Me.Button,{onClick:()=>cs(p.id),children:[D,b]})},p.id)})})]}),I,(0,j.jsx)(JM,{title:L,default:$,message:se,onClose:()=>U(void 0),onResult:N,width:"300px",password:!0}),n.windows.map(p=>Ga(p,!1,!1)),n.windows.map(p=>Ga(p,!0,!1)),n.windows.map(p=>Ga(p,!1,!0)),n.windows.map(p=>Ga(p,!0,!0))]}):(0,j.jsxs)(Me.Box,{ref:m,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",height:`calc(100vh - ${f}px - 8px)`,px:4},children:[(0,j.jsx)(Me.Typography,{variant:"h6",sx:{color:"text.secondary",mb:1},children:"Magnify not started"}),(0,j.jsx)(Me.Typography,{variant:"body2",sx:{color:"text.secondary",maxWidth:480},children:"Start the channel (tab settings \u2699 \u2192 Start) to explore your cluster."})]})};var ts=k(Dt(),1);var Bl=class{constructor(){this.channelId="magnify";this.setupVisible=!1;this.SetupDialog=Gm;this.TabContent=R1;this.tasks=[];this.requirements={accessString:!0,clusterUrl:!0,clusterInfo:!0,clusterManagement:!0,multiCluster:!0,exit:!0,frontChannels:!0,metrics:!0,notifier:!0,notifications:!0,setup:!1,settings:!1,palette:!0,userSettings:!0,webSocket:!0,backChannels:!0,openManager:!0};this.launchTasks=t=>{this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"usage",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},15e3,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"list",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:this.channelId,params:["PodMetrics","NodeMetrics"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},3e4,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"events",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster","","","","25"]};n.webSocket&&n.webSocket.send(JSON.stringify(a))},1e4,t))}}getScope(){return"magnify$read"}getChannelIcon(){return Ym}getSetupVisibility(){return this.setupVisible}setSetupVisibility(t){this.setupVisible=t}processChannelMessage(t,n){let a=JSON.parse(n.data),r=t.data;if(r.userPreferences.tracing&&(console.warn(new Date().toTimeString()),console.log(JSON.parse(n.data))),a.id&&r.pendingWebSocketRequests.has(a.id))return r.pendingWebSocketRequests.get(a.id)(n.data),r.pendingWebSocketRequests.delete(a.id),{action:Fn.EChannelRefreshAction.NONE};switch(a.type){case Ee.EInstanceMessageType.DATA:{let s=JSON.parse(n.data);switch(s.action){case Ee.EInstanceMessageAction.COMMAND:switch(s.command){case"clusterinfo":let o=JSON.parse(s.data);r.clusterInfo=o;break;case"usage":let l=JSON.parse(s.data);r.metricsProviderMissing=l.metricsProvider===!1,r.eventsProviderMissing=l.eventsProvider===!1,r.metricsProviderMissing||(l.timestamp=new Date().toLocaleTimeString("en-GB"),r.metricsCluster.push(l),r.metricsCluster.length>50&&r.metricsCluster.shift()),t.data?.refreshUsage?.();break;case"Pod":JSON.parse(s.data)[0];break;case"list":case"listcrd":let d=JSON.parse(s.data);return d.kind.endsWith("List")?d.items&&d.items.forEach?d.items.forEach(f=>this.loadObject("NONE",t,d.kind.replace("List",""),r,f)):console.log(d):t.notify?.(this.channelId,ts.ENotifyLevel.ERROR,"Unexpected list: "+d.kind),r.files=[...r.files],{action:Fn.EChannelRefreshAction.REFRESH};case"events":let m=JSON.parse(s.data);if(m.type==="cluster"&&m.events)for(let f of m.events){let g=!1;for(let I of r.clusterEvents)if(Gs(I,f)){g=!0;break}g||(r.clusterEvents.push(f),r.clusterEvents=r.clusterEvents.sort((I,S)=>Date.parse(S.eventTime||S.lastTimestamp||S.firstTimestamp)-Date.parse(I.eventTime||I.lastTimestamp||I.firstTimestamp)))}else if(m.events){m.events=m.events.sort((f,g)=>Date.parse(g.eventTime||g.lastTimestamp||g.firstTimestamp)-Date.parse(f.eventTime||f.lastTimestamp||f.firstTimestamp));for(let f of m.events){let g=be(f.involvedObject.kind,f.involvedObject.name,f.involvedObject.namespace),I=r.files.find(S=>S.path===g);(I&&I?.data.origin.metadata.namespace===f.involvedObject.namespace||I&&!f.involvedObject.namespace)&&(I.data.events||(I.data.events={},I.data.events.list=[]),I.data.events.list.push(f))}r.files=[...r.files]}return{action:Fn.EChannelRefreshAction.REFRESH};case"k8event":switch(s.event){case"ADDED":case"MODIFIED":this.loadObject(s.event,t,s.data.kind,r,s.data),r.files=[...r.files];break;case"DELETED":"Namespace Node".includes(s.data.kind)&&r.updateCategoryValues&&r.updateCategoryValues(s.data.kind,"DELETED",s.data.metadata.name);let f=be(s.data.kind,s.data.metadata.name,s.data.metadata.namespace);if(f.startsWith("//"))r.files=r.files.filter(g=>g.path!=="/custom/"+s.data.kind+"/"+s.data.metadata.name+(s.data.metadata.namespace?":"+s.data.metadata.namespace:""));else if(r.files=r.files.filter(g=>g.path!==f),f.startsWith("/custom/CustomResourceDefinition/")){let g=s.data?.spec?.names?.kind;g&&(r.files=r.files.filter(I=>!I.path.startsWith(`/custom/${g}/`)),r.files=r.files.filter(I=>I.path!==`/custom/${g}`))}break}return{action:Fn.EChannelRefreshAction.REFRESH};case"delete":{console.log("DEL",s.data);let f=JSON.parse(s.data);return f.status==="Success"||t.notify?.(this.channelId,ts.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:Fn.EChannelRefreshAction.REFRESH}}case"create":{let f=JSON.parse(s.data);return f.status==="Success"?t.notify?.(this.channelId,ts.ENotifyLevel.INFO,"Created: "+(f.text||f.message)):t.notify?.(this.channelId,ts.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:Fn.EChannelRefreshAction.REFRESH}}case"logsearch":{let f=JSON.parse(s.data);return f.type==="result"?r.logSearchResults=[...r.logSearchResults,{namespace:f.namespace,pod:f.pod,container:f.container,lines:f.lines}]:f.type==="done"&&(r.logSearchDone=!0),{action:Fn.EChannelRefreshAction.REFRESH}}}}return{action:Fn.EChannelRefreshAction.NONE}}case Ee.EInstanceMessageType.SIGNAL:let i=JSON.parse(n.data);if(i.flow===Ee.EInstanceMessageFlow.RESPONSE)if(i.action===Ee.EInstanceMessageAction.START){if(i.level===Ee.ESignalMessageLevel.ERROR)return t.notify?.(this.channelId,ts.ENotifyLevel.ERROR,i.text||"Magnify could not be started"),{action:Fn.EChannelRefreshAction.NONE};t.instanceId=i.instance,setTimeout(()=>{ZM(t),Pm(t),XM(t)},300)}else i.action===Ee.EInstanceMessageAction.COMMAND&&i.text&&t.notify?.(this.channelId,i.level,i.text);else i.flow===Ee.EInstanceMessageFlow.UNSOLICITED&&(i.event===Ee.ESignalMessageEvent.ADD||i.event===Ee.ESignalMessageEvent.DELETE||i.text&&t.notify?.(this.channelId,i.level,i.text));return{action:Fn.EChannelRefreshAction.REFRESH};default:return console.log(`Invalid message type ${a.type}`),{action:Fn.EChannelRefreshAction.NONE}}}async initChannel(t){let n=new yo;return t.instanceConfig=new xo,t.config=n,t.data=new wo,t.readChannelUserPreferences&&(t.data.userPreferences=await t.readChannelUserPreferences(this.channelId)),t.data.userPreferences||(t.data.userPreferences=new ti),!1}startChannel(t){let n=t.data;return n.paused=!1,n.started=!0,n.files=n.files.filter(a=>a.isDirectory&&a.path.split("/").length-1<=2),n.files=n.files.filter(a=>a.class!=="crdGroup"),n.currentPath="/overview",this.launchTasks(t),!0}pauseChannel(t){let n=t.data;return n.paused=!0,!1}continueChannel(t){let n=t.data;return n.paused=!1,!0}stopChannel(t){let n=t.data;return n.paused=!1,n.started=!1,this.tasks.forEach(a=>clearInterval(a)),this.tasks=[],!0}onClusterSwitch(t){let n=t.data;n&&(n.clusterInfo=void 0,n.clusterEvents=[],n.metricsCluster=[],n.started=!1,n.currentPath="/overview",n.pendingWebSocketRequests=new Map)}socketDisconnected(t){return!1}socketReconnect(t){return!1}loadObject(t,n,a,r,i){i.metadata?.managedFields&&(r.userPreferences.dataManagedFields||delete i.metadata.managedFields),a==="Pod"?this.loadPod(r,i):a==="ConfigMap"?this.loadConfigMap(r,i):a==="Secret"?this.loadSecret(r,i):a==="ResourceQuota"?this.loadResourceQuota(r,i):a==="LimitRange"?this.loadLimitRange(r,i):a==="HorizontalPodAutoscaler"?this.loadHorizontalPodAutoscaler(r,i):a==="PodDisruptionBudget"?this.loadPodDisruptionBudget(r,i):a==="PriorityClass"?this.loadPriorityClass(r,i):a==="RuntimeClass"?this.loadRuntimeClass(r,i):a==="Lease"?this.loadLease(r,i):a==="ValidatingWebhookConfiguration"?this.loadValidatingWebhookConfiguration(r,i):a==="MutatingWebhookConfiguration"?this.loadMutatingWebhookConfiguration(r,i):a==="Namespace"?this.loadNamespace(r,i):a==="Node"?this.loadNode(r,i):a==="Service"?this.loadService(r,i):a==="Endpoints"?this.loadEndpoints(r,i):a==="Ingress"?this.loadIngress(r,i):a==="IngressClass"?this.loadIngressClass(r,i):a==="NetworkPolicy"?this.loadNetworkPolicy(r,i):a==="Deployment"?this.loadDeployment(r,i):a==="DaemonSet"?this.loadDaemonSet(r,i):a==="ReplicaSet"?this.loadReplicaSet(r,i):a==="ReplicationController"?this.loadReplicationController(r,i):a==="StatefulSet"?this.loadStatefulSet(r,i):a==="Job"?this.loadJob(r,i):a==="CronJob"?this.loadCronJob(r,i):a==="PersistentVolumeClaim"?this.loadPersistentVolumeClaim(r,i):a==="PersistentVolume"?this.loadPersistentVolume(r,i):a==="StorageClass"?this.loadStorageClass(r,i):a==="VolumeAttachment"?this.loadVolumeAttachment(r,i):a==="CSIDriver"?this.loadCSIDriver(r,i):a==="CSINode"?this.loadCSINode(r,i):a==="CSIStorageCapacity"?this.loadCSIStorageCapacity(r,i):a==="ServiceAccount"?this.loadServiceAccount(r,i):a==="ClusterRole"?this.loadClusterRole(r,i):a==="Role"?this.loadRole(r,i):a==="ClusterRoleBinding"?this.loadClusterRoleBinding(r,i):a==="RoleBinding"?this.loadRoleBinding(r,i):a==="V1APIResource"?this.loadApiResource(r,i):a==="CustomResourceDefinition"?this.loadCustomResourceDefinition(n,r,i):a==="PodMetrics"?this.loadPodMetrics(r,i):a==="NodeMetrics"?this.loadNodeMetrics(r,i):a==="ComponentStatus"?this.loadComponentStatus(r,i):a==="Event"||this.loadCustomResourceDefinitionInstance(r,i)||console.log("*** ERR INVALID Kind:",a)}upsertObject(t,n){let a=t.files.findIndex(r=>r.path===n.path);a>=0?t.files[a]=n:t.files.push(n)}loadNamespace(t,n){n.apiVersion="v1",n.kind="Namespace",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Namespace",n.metadata.name,void 0),class:"Namespace",data:{creationTimestamp:n.metadata.creationTimestamp,status:n.status?.phase,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Namespace","ADD",n.metadata.name)}loadConfigMap(t,n){n.apiVersion="v1",n.kind="ConfigMap",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ConfigMap",n.metadata.name,n.metadata.namespace),class:"ConfigMap",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadSecret(t,n){!t.userPreferences.dataHelm&&n.metadata.name.startsWith("sh.helm.release.")||(n.apiVersion="v1",n.kind="Secret",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Secret",n.metadata.name,n.metadata.namespace),class:"Secret",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,type:n.type,origin:n}}))}loadResourceQuota(t,n){n.apiVersion="v1",n.kind="ResourceQuota",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ResourceQuota",n.metadata.name,n.metadata.namespace),class:"ResourceQuota",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLimitRange(t,n){n.apiVersion="v1",n.kind="LimitRange",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("LimitRange",n.metadata.name,n.metadata.namespace),class:"LimitRange",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadHorizontalPodAutoscaler(t,n){n.apiVersion="autoscaling/v2",n.kind="HorizontalPodAutoscaler",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("HorizontalPodAutoscaler",n.metadata.name,n.metadata.namespace),class:"HorizontalPodAutoscaler",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPodDisruptionBudget(t,n){n.apiVersion="policy/v1",n.kind="PodDisruptionBudget";let a=t.files.find(r=>r.class==="Pod"&&r.data.origin.metadata.name===n.metadata.name&&r.data.origin.metadata.namespace===n.metadata.namespace);this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PodDisruptionBudget",n.metadata.name,n.metadata.namespace),class:"PodDisruptionBudget",data:{...a?.data?{cpu:a.data.cpu,memory:a.data.memory}:{},namespace:n.metadata.namespace,minAvailable:n.spec.minAvailable||"",maxUnavailable:n.spec.maxUnavailable||"",currentHealthy:n.status.currentHealthy,desiredHealthy:n.status.desiredHealthy,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPriorityClass(t,n){n.apiVersion="scheduling.k8s.io/v1",n.kind="PriorityClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PriorityClass",n.metadata.name,n.metadata.namespace),class:"PriorityClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRuntimeClass(t,n){n.apiVersion="node.k8s.io/v1",n.kind="RuntimeClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RuntimeClass",n.metadata.name,n.metadata.namespace),class:"RuntimeClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLease(t,n){n.apiVersion="node.k8s.io/v1",n.kind="Lease",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Lease",n.metadata.name,n.metadata.namespace),class:"Lease",data:{namespace:n.metadata.namespace,holder:n.spec.holderIdentity,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadValidatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="ValidatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ValidatingWebhookConfiguration",n.metadata.name,void 0),class:"ValidatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadMutatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="MutatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("MutatingWebhookConfiguration",n.metadata.name,void 0),class:"MutatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNode(t,n){n.apiVersion="v1",n.kind="Node";let a=[];Object.keys(n.metadata.labels).forEach(i=>{i.startsWith("node-role.kubernetes.io")&&n.metadata.labels[i]==="true"&&a.push(i.substring(24))}),n.status.capacity.cpu=Js(n.status.capacity.cpu),n.status.allocatable.cpu=Js(n.status.allocatable.cpu),n.status.capacity.memory=Jn(n.status.capacity.memory),n.status.allocatable.memory=Jn(n.status.allocatable.memory);let r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===n.metadata?.name);this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Node",n.metadata.name,void 0),class:"Node",data:{...r?.data?{cpu:r.data.cpu,memory:r.data.memory}:{},creationTimestamp:n.metadata.creationTimestamp,taints:n.spec.taints?n.spec.taints.length:0,roles:a.join(","),conditions:n.spec.unschedulable===!0?"Unschedulable":n.status.conditions.filter(i=>i.status==="True").map(i=>i.type).join(" "),version:n.status.nodeInfo.kubeletVersion,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Node","ADD",n.metadata.name);for(let i of t.files.filter(s=>s.class==="Image")){let s=i.data.origin.nodes.indexOf(n.metadata.name);s>=0&&i.data.origin.nodes.splice(s,1)}t.files=t.files.filter(i=>!(i.class==="Image"&&i.data.origin.nodes.length===0));for(let i of n.status?.images){let s=i.sizeBytes,o=[];i.names?(o=i.names.filter(c=>!c.includes("@")),o.length===0&&(o=i.names)):o=["*unnamed"];let l=t.files.find(c=>c.path==="/cluster/Image/"+o[0]);if(l)l.data.origin.nodes.includes(n.metadata.name)||l.data.origin.nodes.push(n.metadata.name);else{let c,d,m,f,g=/^(?:((?:[a-z0-9-]+\.)+[a-z0-9]+(?::\d+)?)\/)?((?:[a-z0-9._-]+\/)*[a-z0-9._-]+)(?::([a-z0-9._-]+))?(?:@(sha256:[a-f0-9]{64}))?$/i;if(i.names)for(let S of i.names){let L=S.match(g);L&&(c||(c=L[1]),d||(d=L[2]),m||(m=L[3]),f||(f=L[4]))}let I={name:o[0],displayName:d,isDirectory:!1,path:"/cluster/Image/"+o[0],class:"Image",data:{size:s,tag:m,origin:{kind:"Image",metadata:{name:o[0]},name:o[0],displayName:o[0],registry:c,tag:m,sha:f,names:i.names,nodes:[n.metadata.name]}}};t.files.push(I)}}}loadNodeMetrics(t,n){let a=n.metadata?.name,r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===a);if(r){let i=r.data.origin.status.capacity.cpu;r.data.cpu=(Js(n.usage.cpu)/i*100).toFixed(2)+"%",r.data.memory=(Jn(n.usage.memory)/r.data.origin.status.capacity.memory*100).toFixed(2)+"%"}}loadService(t,n){n.apiVersion="v1",n.kind="Service",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Service",n.metadata.name,n.metadata.namespace),class:"Service",data:{namespace:n.metadata.namespace,type:n.spec.type,clusterIp:n.spec.clusterIP,ports:n.spec?.ports?.map(a=>a.port+"/"+a.protocol).join(",")||"-",externalIp:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(",")||"-",selector:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadEndpoints(t,n){n.apiVersion="v1",n.kind="Endpoints",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Endpoints",n.metadata.name,n.metadata.namespace),class:"Endpoints",data:{namespace:n.metadata.namespace,endpoints:n.subsets?n.subsets?.map(a=>a.addresses?.map(r=>a.ports?.map(i=>r.ip+":"+i.port)).join(",")):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngress(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="Ingress",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Ingress",n.metadata.name,n.metadata.namespace),class:"Ingress",data:{namespace:n.metadata.namespace,loadBalancers:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(","),rules:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngressClass(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="IngressClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("IngressClass",n.metadata.name,n.metadata.namespace),class:"IngressClass",data:{namespace:n.metadata.namespace,controller:n.spec.controller,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNetworkPolicy(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="NetworkPolicy",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("NetworkPolicy",n.metadata.name,n.metadata.namespace),class:"NetworkPolicy",data:{namespace:n.metadata.namespace,policyTypes:n.spec.policyTypes?n.spec.policyTypes.join(","):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDeployment(t,n){n.apiVersion="apps/v1",n.kind="Deployment",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Deployment",n.metadata.name,n.metadata.namespace),class:"Deployment",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.status.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDaemonSet(t,n){n.apiVersion="apps/v1",n.kind="DaemonSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("DaemonSet",n.metadata.name,n.metadata.namespace),class:"DaemonSet",data:{namespace:n.metadata.namespace,desired:n.status.desiredNumberScheduled,current:n.status.currentNumberScheduled,ready:n.status.numberReady,upToDate:n.status.updatedNumberScheduled,available:n.status.numberAvailable,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicaSet(t,n){n.apiVersion="apps/v1",n.kind="ReplicaSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicaSet",n.metadata.name,n.metadata.namespace),class:"ReplicaSet",data:{namespace:n.metadata.namespace,desired:n.status.replicas||0,current:n.status.availableReplicas||0,ready:n.status.readyReplicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicationController(t,n){n.apiVersion="v1",n.kind="ReplicationController",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicationController",n.metadata.name,n.metadata.namespace),class:"ReplicationController",data:{namespace:n.metadata.namespace,replicas:n.status.replicas||0,desired:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadStatefulSet(t,n){n.apiVersion="apps/v1",n.kind="StatefulSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("StatefulSet",n.metadata.name,n.metadata.namespace),class:"StatefulSet",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadJob(t,n){n.apiVersion="batch/v1",n.kind="Job",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Job",n.metadata.name,n.metadata.namespace),class:"Job",data:{namespace:n.metadata.namespace,completions:n.spec.completions+"/"+n.spec.parallelism,conditions:n.status.conditions?n.status.conditions.filter(a=>a.status.toLowerCase()==="true").map(a=>a.name):"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCronJob(t,n){n.apiVersion="batch/v1",n.kind="CronJob",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("CronJob",n.metadata.name,n.metadata.namespace),class:"CronJob",data:{namespace:n.metadata.namespace,schedule:n.spec.schedule,suspend:n.spec.suspend||"-",active:"-",lastSchedule:n.status.lastScheduleTime,nextExecution:"-",timezone:"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPersistentVolumeClaim(t,n){n.apiVersion="v1",n.kind="PersistentVolumeClaim",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PersistentVolumeClaim",n.metadata.name,n.metadata.namespace),class:"PersistentVolumeClaim",data:{namespace:n.metadata.namespace,storageClass:n.spec.storageClassName,size:n.status?.capacity?.storage?Jn(n.status?.capacity?.storage):0,creationTimestamp:n.metadata.creationTimestamp,status:n.status.phase,origin:n}})}loadPersistentVolume(t,n){n.apiVersion="v1",n.kind="PersistentVolume",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("PersistentVolume",n.metadata.name,void 0),class:"PersistentVolume",data:{storageClass:n.spec?.storageClassName,size:n.status?.capacity?.storage?Jn(n.status?.capacity?.storage):0,claim:n.spec?.claimRef?.name,creationTimestamp:n.metadata?.creationTimestamp,status:n.status?.phase,origin:n}})}loadStorageClass(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="StorageClass",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("StorageClass",n.metadata.name,void 0),class:"StorageClass",data:{provisioner:n.provisioner,reclaimPolicy:n.reclaimPolicy,default:(n.metadata?.annotations&&n.metadata.annotations["storageclass.kubernetes.io/is-default-class"]==="true"?"Yes":"")||"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadVolumeAttachment(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="VolumeAttachment",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("VolumeAttachment",n.metadata.name,void 0),class:"VolumeAttachment",data:{attacher:n.spec.attacher,nodeName:n.spec.nodeName,source:n.spec.source?.persistentVolumeName||"",status:n.status.attached?"attached":"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIDriver(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIDriver",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIDriver",n.metadata.name,void 0),class:"CSIDriver",data:{attachRequired:n.spec.attachRequired?"Yes":"No",storageCapacity:n.spec.storageCapacity?"Yes":"No",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSINode(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSINode",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSINode",n.metadata.name,void 0),class:"CSINode",data:{drivers:n.spec.drivers?.map(a=>a.name).join(","),creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIStorageCapacity(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIStorageCapacity",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIStorageCapacity",n.metadata.name,void 0),class:"CSIStorageCapacity",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadServiceAccount(t,n){n.apiVersion="v1",n.kind="ServiceAccount",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ServiceAccount",n.metadata.name,n.metadata.namespace),class:"ServiceAccount",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRole",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRole",n.metadata.name,void 0),class:"ClusterRole",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="Role",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Role",n.metadata.name,n.metadata.namespace),class:"Role",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRoleBinding",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRoleBinding",n.metadata.name,void 0),class:"ClusterRoleBinding",data:{bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="RoleBinding",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RoleBinding",n.metadata.name,n.metadata.namespace),class:"RoleBinding",data:{namespace:n.metadata.namespace,bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadApiResource(t,n){n.kindName=n.kind,n.metadata={name:n.kind},n.apiVersion="v1",n.kind="V1APIResource",this.upsertObject(t,{name:n.name,isDirectory:!1,path:be("V1APIResource",n.name,void 0),class:"V1APIResource",data:{kind:n.kindName,singular:n.singularName,namespaced:n.namespaced?"Yes":"",origin:n}})}loadPod(t,n){n.apiVersion="v1",n.kind="Pod",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Pod",n.metadata.name,n.metadata.namespace),class:"Pod",data:{namespace:n.metadata.namespace,controller:n.metadata.ownerReferences&&n.metadata.ownerReferences.length>0?n.metadata.ownerReferences[0].kind:"-",node:n.spec.nodeName,startTime:n.status.startTime,status:n.metadata.deletionTimestamp?"Terminating":n.status.phase,restartCount:n.status.containerStatuses?.reduce((a,r)=>a+=r.restartCount,0)||0,origin:n}})}loadPodMetrics(t,n){let a=n.metadata.name,r=n.metadata.namespace,i=t.files.find(s=>s.class==="Pod"&&s.data.origin.metadata.name===a&&s.data.origin.metadata.namespace===r);i&&(i.data.metrics=n,i.data.cpu=n.containers.reduce((s,o)=>s+Js(o.usage.cpu),0),i.data.cpu=i.data.cpu.toFixed(3),i.data.memory=n.containers.reduce((s,o)=>s+Jn(o.usage.memory),0))}loadComponentStatus(t,n){n.apiVersion="v1",n.kind="ComponentStatus",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ComponentStatus",n.metadata.name,void 0),class:"ComponentStatus",data:{status:n.conditions[0].status,message:n.conditions[0].message,origin:n}})}loadCustomResourceDefinition(t,n,a){a.apiVersion="apiextensions.k8s.io/v1",a.kind="CustomResourceDefinition";let r=a.spec.versions&&a.spec.versions.length>0?a.spec.versions[0].name:"-";this.upsertObject(n,{name:a.metadata.name,displayName:a.metadata.name,isDirectory:!1,path:be("CustomResourceDefinition",a.metadata.name,a.metadata.namespace),class:"CustomResourceDefinition",data:{group:a.spec.group,version:r,scope:a.spec.scope,creationTimestamp:a.metadata.creationTimestamp,origin:a}});let i={name:a.spec.names.kind,isDirectory:!0,path:"/custom/"+a.spec.names.kind,class:"crdGroup",children:"crdInstance"};if(a.spec.scope==="Namespaced"&&(i.categories=["namespace"],i.children="crdNamespacedInstance"),this.upsertObject(n,i),a.spec.versions&&a.spec.versions.length>0){let s={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"listcrd",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:this.channelId,params:[a.spec.group,a.spec.versions[0].name,a.spec.names.plural]};t.webSocket.send(JSON.stringify(s))}}loadCustomResourceDefinitionInstance(t,n){return this.upsertObject(t,{name:n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),displayName:n.metadata.name,isDirectory:!1,path:"/custom/"+n.kind+"/"+n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),class:"crdInstance",data:{namespace:n.metadata.namespace,source:n.spec?.source,checksum:n.spec?.checksum,creationTimestamp:n.metadata.creationTimestamp,origin:n}}),!0}},be=(e,t,n)=>{let a="";return" V1APIResource Node Namespace ComponentStatus Image ".includes(" "+e+" ")&&(a="cluster")," Pod Deployment DaemonSet ReplicaSet ReplicationController StatefulSet Job CronJob ".includes(" "+e+" ")&&(a="workload")," ConfigMap Secret ResourceQuota LimitRange HorizontalPodAutoscaler PodDisruptionBudget PriorityClass RuntimeClass Lease ValidatingWebhookConfiguration MutatingWebhookConfiguration ".includes(" "+e+" ")&&(a="config")," Service Endpoints Ingress IngressClass NetworkPolicy ".includes(" "+e+" ")&&(a="network")," PersistentVolumeClaim PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ".includes(" "+e+" ")&&(a="storage")," ServiceAccount ClusterRole Role ClusterRoleBinding RoleBinding ".includes(" "+e+" ")&&(a="access")," CustomResourceDefinition ".includes(" "+e+" ")&&(a="custom")," V1APIResource Node Namespace V1APIResource Image ComponentStatus ValidatingWebhookConfiguration MutatingWebhookConfiguration PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ClusterRole ClusterRoleBinding CustomResourceDefinition ".includes(" "+e+" ")?"/"+a+"/"+e+"/"+t:"/"+a+"/"+e+"/"+t+":"+n},ZM=e=>{let t={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"clusterinfo",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:e.channelId,params:[]};e.webSocket.send(JSON.stringify(t))},Pm=async e=>{for(let t=1;t<10;t++){let a=e.data.userPreferences?.dataConfig?.source.filter(i=>i.priority===t).map(i=>i.name);if(a.length===0)break;let r={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"list",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:e.channelId,params:[...a]};e.webSocket.send(JSON.stringify(r)),await new Promise(i=>setTimeout(i,250))}},XM=e=>{let t=e.data,n={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"subscribe",action:Ee.EInstanceMessageAction.COMMAND,flow:Ee.EInstanceMessageFlow.REQUEST,type:Ee.EInstanceMessageType.DATA,channel:e.channelId,params:t.userPreferences?.dataConfig?.sync.map(a=>a.name)};e.webSocket.send(JSON.stringify(n))};for(let[e,t]of[["kwirth-plugin-magnify-css",Lm],["kwirth-plugin-magnify-resizable-css",Vm]]){if(document.getElementById(e))continue;let n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}window.__kwirth_plugins__||(window.__kwirth_plugins__={});window.__kwirth_plugins__.magnify=Bl;})();
813
+ `;Qe("create",[X])}}),le("Enter namespace name"),U("Create namespace")})},Ul=()=>{let p=(D,W,H)=>{let X=n.files.filter(K=>W.includes(K.path));X.length>1?Tt(D,X,lt.EInstanceConfigView.POD,void 0,void 0):(kt(D),He(X[0]),Yt(!0),te(H))},y=(D,W,H)=>{let X=n.files.filter(K=>W.includes(K.path));kt(D),He(X[0]),Yt(!1),te(H)},b=_.get("Pod");h(b,"log",(D,W)=>p("log",D,W),()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",(D,W)=>p("metrics",D,W),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"ops",(D,W)=>y("ops",D,W),()=>e.channelObject.frontChannels?.has("ops")??!1),h(b,"fileman",(D,W)=>p("fileman",D,W),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",(D,W)=>p("trivy",D,W),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",D=>{let W=n.files.filter(H=>D.includes(H.path));Tt("topology",W,lt.EInstanceConfigView.POD,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),h(b,"evict",Ur),h(b,"logsearch",D=>{let H=n.files.filter(X=>D.includes(X.path)).map(X=>`${X.data?.origin?.metadata?.namespace}/${X.data?.origin?.metadata?.name}`);rs(void 0,H,`Pods (${H.length})`)})},Ur=p=>{let y=n.files.filter(b=>p.includes(b.path));C((0,It.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,j.jsxs)(De.Box,{children:["Are you sure you want to evict ",y[0].data.origin.kind," ",(0,j.jsx)("b",{children:y[0].data.origin.metadata.name}),"?"]}),C,b=>{b===It.MsgBoxButtons.Yes&&y.map(D=>Qe("Pod",["evict",D.data.origin.metadata.namespace,D.data.origin.metadata.name]))}))},Yl=()=>{let p=_.get("Deployment");Sa(p,"status",Gl),h(p,"scale",pa),h(p,"restart",Ka),h(p,"log",K=>ze(K,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(p,"metrics",K=>ze(K,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(p,"fileman",K=>ze(K,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(p,"trivy",K=>ze(K,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(p,"topology",K=>ze(K,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=_.get("DaemonSet");h(y,"restart",Ka),h(y,"log",K=>ze(K,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(y,"metrics",K=>ze(K,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(y,"topology",K=>ze(K,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=_.get("ReplicaSet");h(b,"scale",pa),h(b,"log",K=>ze(K,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",K=>ze(K,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"fileman",K=>ze(K,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",K=>ze(K,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",K=>ze(K,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let D=_.get("ReplicationController");h(D,"restart",Ka),h(D,"scale",pa),h(D,"log",K=>ze(K,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(D,"metrics",K=>ze(K,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(D,"fileman",K=>ze(K,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(D,"trivy",K=>ze(K,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(D,"topology",K=>ze(K,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let W=_.get("StatefulSet");h(W,"scale",pa),h(W,"restart",Ka),h(W,"log",K=>ze(K,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(W,"metrics",K=>ze(K,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(W,"fileman",K=>ze(K,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(W,"trivy",K=>ze(K,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(W,"topology",K=>ze(K,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let H=_.get("Job");h(H,"log",K=>ze(K,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(H,"metrics",K=>ze(K,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(H,"fileman",K=>ze(K,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(H,"trivy",K=>ze(K,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(H,"topology",K=>ze(K,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let X=_.get("CronJob");h(X,"trigger",Kr),h(X,"suspend",po),h(X,"resume",Jr)},is=()=>{let p=_.get("Service");h(p,"topology",D=>ze(D,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=_.get("Ingress");h(y,"topology",D=>ze(D,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=_.get("IngressClass");h(b,"default",os)},Gl=p=>{let y=n.files.find(D=>p===D.path);if(!y||!y.data?.origin?.status)return(0,j.jsx)(j.Fragment,{});let b="Stalled";return y.data.origin?.status?.conditions&&y.data.origin.status.conditions.length>0&&(y.data.origin.status.conditions.some(D=>D.type+D.status==="AvailableTrue")&&y.data.origin.status.conditions.some(D=>D.type+D.status==="ProgressingTrue")?b="Running":y.data.origin.status.conditions.some(D=>D.type+D.status==="AvailableFalse")&&y.data.origin.status.conditions.some(D=>D.type+D.status==="ProgressingTrue")&&(b="Scaling")),(0,j.jsx)(De.Typography,{color:b==="Running"?"green":b==="Scaling"?"orange":"red",variant:"body2",children:b})},ss=()=>{let p=(b,D)=>{let W=n.files.filter(H=>b.includes(H.path));if(W.length>=1){let H=Qg(W[0].data.origin),X="create-"+W[0].data.origin.spec.names.kind+"-"+it(),K={id:X,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+W[0].data.origin.spec.names.kind,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(ha,fs)=>{Qe("apply",[ha]),Gt(X)},code:H,oldCode:void 0},onWindowChange:Cn,onTop:Sn,onMinimize:un,onClose:Gt,selectedFiles:[]};cn(K)}},y=_.get("CustomResourceDefinition");h(y,"instantiate",p)},Ka=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&Qe("Controller",["restart",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},pa=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&(oe(()=>b=>{b&&Qe("Controller",["scale",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name,b])}),le("Enter scaling value"),me(y[0].data.origin.spec.replicas),U("Scale "+y[0].data.origin.kind))},ze=(p,y)=>{let b=n.files.filter(D=>p.includes(D.path));Tt(y,b,lt.EInstanceConfigView.GROUP,void 0,void 0)},os=p=>{n.files.filter(b=>p.includes(b.path)).map(b=>Qe("IngressClass",["default",b.data.origin.metadata.name]))},uo=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("Node",["drain",y[0].data.origin.metadata.name])},Yr=()=>e.channelObject.frontChannels?.has("ops")?!0:(e.channelObject.notify?.(e.channelObject.channelId,ao.ENotifyLevel.WARNING,"A shell needs the Ops plugin: install it from \u2630 \u2192 Manage extensions \u2192 Plugins"),!1),mo=p=>{if(!Yr())return;let y=n.files.filter(H=>p.includes(H.path)),b="kwirth-node-shell-"+y[0].name,D="default";Qe("Node",["shell",y[0].data.origin.metadata.name,D,b]);let W=window.setInterval(async()=>{try{let H=n.files.find(X=>X.class==="Pod"&&X.data.origin.metadata.namespace===D&&X.data.origin.metadata.name===b);H&&H.data.origin.status.phase==="Running"&&(clearInterval(W),C((0,j.jsx)(j.Fragment,{})),Tt("ops",[H],lt.EInstanceConfigView.CONTAINER,{nodeShell:!0},H.data.origin.spec.containers[0].name))}catch(H){console.log(H)}},1e3);C((0,It.MsgBoxWaitCancel)("Launch Work",`We are waiting for the node shell to start (pod '${b}' on namespace '${D}' is starting)...`,C,H=>{H===It.MsgBoxButtons.Cancel&&clearInterval(W)}))},Gr=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("Node",["cordon",y[0].data.origin.metadata.name])},fo=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("Node",["uncordon",y[0].data.origin.metadata.name])},Kr=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("CronJob",["trigger",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},po=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("CronJob",["suspend",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Jr=p=>{let y=n.files.filter(b=>p.includes(b.path));Qe("CronJob",["resume",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Kl=p=>{d.current?.changeFolder(p)},Qe=(p,y)=>{if(!e.channelObject.webSocket)return;let b={flow:lt.EInstanceMessageFlow.REQUEST,action:lt.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:lt.EInstanceMessageType.DATA,accessKey:e.channelObject.accessString,instance:e.channelObject.instanceId,id:it(),command:p,namespace:"",group:"",pod:"",container:"",params:y,msgtype:"magnifymessage"},D=JSON.stringify(b);e.channelObject.webSocket.send(D)},Jl=(p,y)=>{e.channelObject.notify?.(e.channelObject.channelId,ao.ENotifyLevel.ERROR,p.message)},ls=p=>{n.currentPath=p},cs=(p,y,b)=>{let D=we(p,y,b);if(D.startsWith("//")){if(n.files.find(H=>H.class==="crdInstance"&&H.data.origin.metadata.name===y&&H.data.origin.kind===p)){let H=`/custom/${p}/`+y+(b?":"+b:"");va([H],void 0);return}}else{let W=n.files.find(H=>H.path===D);if(W){va([W.path],void 0);return}else if(p==="Image"){let H="docker.io/library/"+y;y.includes("/")&&(H="docker.io/"+y);let X=n.files.find(K=>K.class==="Image"&&K.data.origin?.names?.includes(H));if(X){va([X.path],void 0);return}if(y.includes("@sha256:")){let K=y.indexOf("@sha256:"),ha=y.substring(K).toLowerCase(),fs=n.files.find(Zr=>Zr.class==="Image"&&Zr.data.origin?.names?.some(Zl=>Zl.toLowerCase().endsWith(ha)));if(fs){va([fs.path],void 0);return}}}}C((0,It.MsgBoxOkError)("Object details",(0,j.jsxs)(De.Box,{children:["Image '",(0,j.jsx)("b",{children:y}),"' has not been found on artifacts database. Maybe it exist but is stored with any kind of prefix"]}),C))},jr=()=>ee(p=>p+1),Gt=p=>{let y=n.windows.findIndex(D=>D.id===p);if(y<0)return;n.windows[y].class==="ContentExternal"&&Dl(n.windows[y].data),n.windows.splice(y,1);let b=[...n.windows].reverse().find(D=>D.visible);b&&wn(b.id),ee(D=>D+1)},un=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible=!1,y.atFront=!1,ho(),ee(b=>b+1))},Sn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.atTop=!y.atTop,ee(b=>b+1))},ho=()=>{let p;for(let y of n.windows)y.visible&&!y.atFront&&!y.atTop&&(p=y);p&&wn(p.id)},us=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible?y.atFront?(y.visible=!1,y.atFront=!1,ho()):wn(y.id):(y.visible=!0,wn(y.id)),ee(b=>b+1))},jl=(p,y)=>{Qe("apply",[no.dump(y,{indent:2})])},ms=(p,y,b)=>{let D=n.files.find(W=>W.path===y);if(D){switch(p){case"delete":Ga([y]);break;case"edit":oo([y]);break;case"browse":Hr([y]);break;case"ops":Tt("ops",[D],lt.EInstanceConfigView.CONTAINER,void 0,b);break;case"log":case"metrics":case"fileman":case"trivy":b==="*all"?Tt(p,[D],lt.EInstanceConfigView.POD,void 0,void 0):Tt(p,[D],lt.EInstanceConfigView.CONTAINER,void 0,b);break;case"evict":Ur([y]);break;case"cordon":Gr([y]);break;case"shell":mo([y]);break;case"uncordon":fo([y]);break;case"drain":uo([y]);break;case"scale":pa([y]);break;case"restart":Ka([y]);break;case"trigger":Kr([y]);break;case"suspend":po([y]);break;case"resume":Jr([y]);break}ee(W=>W+1)}},ds=(p,y,b)=>{b="Channel message: "+b},go=p=>{let y=e.channelObject.frontChannels.get(p.data.channelId);return y?(0,ro.getChannelIconSafe)(y,p.data.channelId):(console.log("Inexistent channel:",p.data.channelId),(0,j.jsx)(j.Fragment,{}))},Ia={onClose:Gt,onMinimize:un,onTop:Sn,onWindowChange:Cn},Ja=(p,y,b)=>{if(p.visible&&p.atFront===y&&p.atTop===b)switch(p.class){case"ContentDetails":return(0,j.jsx)(kx,{...p,...Ia,onFocus:()=>wn(p.id)},p.id);case"ArtifactSearch":return(0,j.jsx)(Qx,{...p,...Ia,onFocus:()=>wn(p.id)},p.id);case"LogSearchPanel":return(0,j.jsx)(e1,{...p,...Ia,onFocus:()=>wn(p.id),channelObject:e.channelObject,magnifyData:n},p.id);case"ContentBrowse":case"ContentEdit":return(0,j.jsx)(Jx,{...p,...Ia,onFocus:()=>wn(p.id)},p.id);case"ContentExternal":return p.data.onRefresh=jr,(0,j.jsx)(ry,{...p,...Ia,onFocus:()=>wn(p.id)},p.id);default:console.error("Invalid window class:",p.class)}};return n.started?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(R1,{channelObject:e.channelObject}),n.started&&(0,j.jsxs)(De.Box,{ref:c,sx:{display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",flexGrow:1,height:`${o}px`,ml:1,mr:1,mt:1},children:[(0,j.jsx)(N1.FileManager,{ref:d,files:n.files,spaces:_,rightItems:Ya,actions:Id,icons:Bn,initialPath:n.currentPath,layout:"list",enableFilePreview:!1,onCreateFolder:void 0,onError:Jl,onRename:void 0,onPaste:void 0,onDelete:void 0,onFolderChange:ls,onRefresh:void 0,permissions:s,filePreviewPath:"http://avoid-console-error",primaryColor:"#1976d2",fontFamily:"Roboto, Helvetica, Arial, sans-serif",height:"100%",className:"custom-fm-magnify",searchMode:"auto",searchRegex:!0,searchCasing:!0,showContextMenu:!1,showRefresh:!1,categories:rt,maxNavigationPaneLevel:2,minFileActionsLevel:2,openMode:"none"}),de&&(0,j.jsx)(zl,{channel:Me,file:Oe,onClose:()=>te(void 0),onContainerSelected:Wr,anchorParent:de,includeAllContainers:bt}),Se&&(0,j.jsx)(T1,{onWorkSelected:io,onClose:()=>Ie(void 0),anchorParent:Se,customActions:n.userPreferences.customActions}),V&&(0,j.jsx)(D1,{onWorkSelected:so,onClose:()=>B(void 0),anchorParent:V,customActions:n.userPreferences.customActions}),fa&&(0,j.jsx)(P1.MenuNotification,{anchorParent:fa,notifications:e.channelObject.notifications,onRefresh:()=>ee(p=>p+1),onClose:()=>A(void 0),renderIcon:p=>p?(0,ro.getChannelIconSafe)(e.channelObject.frontChannels.get(p),p):(0,ro.getIconFromKind)("IconK8s",20)}),(0,j.jsx)(De.Stack,{direction:"row",sx:{mt:1},children:n.windows.map(p=>{let y=p.title||"notitle",b=y;b.length>20&&(b=b.substring(0,10)+"..."+b.substring(b.length-10));let D=eD[p.class]||(p.class==="ContentExternal"?go(p):null),W=p.class==="ContentDetails"?y:p.title;return(0,j.jsx)(De.Tooltip,{title:W,children:(0,j.jsxs)(De.Button,{onClick:()=>us(p.id),children:[D,b]})},p.id)})})]}),I,(0,j.jsx)(QM,{title:L,default:$,message:se,onClose:()=>U(void 0),onResult:E,width:"300px",password:!0}),n.windows.map(p=>Ja(p,!1,!1)),n.windows.map(p=>Ja(p,!0,!1)),n.windows.map(p=>Ja(p,!1,!0)),n.windows.map(p=>Ja(p,!0,!0))]}):(0,j.jsx)(De.Box,{ref:m,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",height:`calc(100vh - ${f}px - 8px)`,px:4},children:(0,j.jsx)(E1.ChannelNotStarted,{icon:(0,j.jsx)(on.Search,{color:"primary"}),name:"Magnify",hint:"Magnify not started. Start the channel to explore your cluster.",channelObject:e.channelObject})})};var as=k(Ct(),1);var Hl=class{constructor(){this.channelId="magnify";this.setupVisible=!1;this.SetupDialog=Jm;this.TabContent=F1;this.tasks=[];this.requirements={accessString:!0,clusterUrl:!0,clusterInfo:!0,clusterManagement:!0,multiCluster:!0,exit:!0,frontChannels:!0,metrics:!0,notifier:!0,notifications:!0,setup:!1,settings:!1,palette:!0,userSettings:!0,webSocket:!0,backChannels:!0,openManager:!0};this.launchTasks=t=>{this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"usage",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},15e3,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"list",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:this.channelId,params:["PodMetrics","NodeMetrics"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},3e4,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"events",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster","","","","25"]};n.webSocket&&n.webSocket.send(JSON.stringify(a))},1e4,t))}}getScope(){return"magnify$read"}getChannelIcon(){return Km}getSetupVisibility(){return this.setupVisible}setSetupVisibility(t){this.setupVisible=t}processChannelMessage(t,n){let a=JSON.parse(n.data),r=t.data;if(r.userPreferences.tracing&&(console.warn(new Date().toTimeString()),console.log(JSON.parse(n.data))),a.id&&r.pendingWebSocketRequests.has(a.id))return r.pendingWebSocketRequests.get(a.id)(n.data),r.pendingWebSocketRequests.delete(a.id),{action:zn.EChannelRefreshAction.NONE};switch(a.type){case Ne.EInstanceMessageType.DATA:{let s=JSON.parse(n.data);switch(s.action){case Ne.EInstanceMessageAction.COMMAND:switch(s.command){case"clusterinfo":let o=JSON.parse(s.data);r.clusterInfo=o;break;case"usage":let l=JSON.parse(s.data);r.metricsProviderMissing=l.metricsProvider===!1,r.eventsProviderMissing=l.eventsProvider===!1,r.metricsProviderMissing||(l.timestamp=new Date().toLocaleTimeString("en-GB"),r.metricsCluster.push(l),r.metricsCluster.length>50&&r.metricsCluster.shift()),t.data?.refreshUsage?.();break;case"Pod":JSON.parse(s.data)[0];break;case"list":case"listcrd":let d=JSON.parse(s.data);return d.kind.endsWith("List")?d.items&&d.items.forEach?d.items.forEach(f=>this.loadObject("NONE",t,d.kind.replace("List",""),r,f)):console.log(d):t.notify?.(this.channelId,as.ENotifyLevel.ERROR,"Unexpected list: "+d.kind),r.files=[...r.files],{action:zn.EChannelRefreshAction.REFRESH};case"events":let m=JSON.parse(s.data);if(m.type==="cluster"&&m.events)for(let f of m.events){let g=!1;for(let I of r.clusterEvents)if(Ks(I,f)){g=!0;break}g||(r.clusterEvents.push(f),r.clusterEvents=r.clusterEvents.sort((I,C)=>Date.parse(C.eventTime||C.lastTimestamp||C.firstTimestamp)-Date.parse(I.eventTime||I.lastTimestamp||I.firstTimestamp)))}else if(m.events){m.events=m.events.sort((f,g)=>Date.parse(g.eventTime||g.lastTimestamp||g.firstTimestamp)-Date.parse(f.eventTime||f.lastTimestamp||f.firstTimestamp));for(let f of m.events){let g=we(f.involvedObject.kind,f.involvedObject.name,f.involvedObject.namespace),I=r.files.find(C=>C.path===g);(I&&I?.data.origin.metadata.namespace===f.involvedObject.namespace||I&&!f.involvedObject.namespace)&&(I.data.events||(I.data.events={},I.data.events.list=[]),I.data.events.list.push(f))}r.files=[...r.files]}return{action:zn.EChannelRefreshAction.REFRESH};case"k8event":switch(s.event){case"ADDED":case"MODIFIED":this.loadObject(s.event,t,s.data.kind,r,s.data),r.files=[...r.files];break;case"DELETED":"Namespace Node".includes(s.data.kind)&&r.updateCategoryValues&&r.updateCategoryValues(s.data.kind,"DELETED",s.data.metadata.name);let f=we(s.data.kind,s.data.metadata.name,s.data.metadata.namespace);if(f.startsWith("//"))r.files=r.files.filter(g=>g.path!=="/custom/"+s.data.kind+"/"+s.data.metadata.name+(s.data.metadata.namespace?":"+s.data.metadata.namespace:""));else if(r.files=r.files.filter(g=>g.path!==f),f.startsWith("/custom/CustomResourceDefinition/")){let g=s.data?.spec?.names?.kind;g&&(r.files=r.files.filter(I=>!I.path.startsWith(`/custom/${g}/`)),r.files=r.files.filter(I=>I.path!==`/custom/${g}`))}break}return{action:zn.EChannelRefreshAction.REFRESH};case"delete":{console.log("DEL",s.data);let f=JSON.parse(s.data);return f.status==="Success"||t.notify?.(this.channelId,as.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:zn.EChannelRefreshAction.REFRESH}}case"create":{let f=JSON.parse(s.data);return f.status==="Success"?t.notify?.(this.channelId,as.ENotifyLevel.INFO,"Created: "+(f.text||f.message)):t.notify?.(this.channelId,as.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:zn.EChannelRefreshAction.REFRESH}}case"logsearch":{let f=JSON.parse(s.data);return f.type==="result"?r.logSearchResults=[...r.logSearchResults,{namespace:f.namespace,pod:f.pod,container:f.container,lines:f.lines}]:f.type==="done"&&(r.logSearchDone=!0),{action:zn.EChannelRefreshAction.REFRESH}}}}return{action:zn.EChannelRefreshAction.NONE}}case Ne.EInstanceMessageType.SIGNAL:let i=JSON.parse(n.data);if(i.flow===Ne.EInstanceMessageFlow.RESPONSE)if(i.action===Ne.EInstanceMessageAction.START){if(i.level===Ne.ESignalMessageLevel.ERROR)return t.notify?.(this.channelId,as.ENotifyLevel.ERROR,i.text||"Magnify could not be started"),{action:zn.EChannelRefreshAction.NONE};t.instanceId=i.instance,setTimeout(()=>{tD(t),_m(t),nD(t)},300)}else i.action===Ne.EInstanceMessageAction.COMMAND&&i.text&&t.notify?.(this.channelId,i.level,i.text);else i.flow===Ne.EInstanceMessageFlow.UNSOLICITED&&(i.event===Ne.ESignalMessageEvent.ADD||i.event===Ne.ESignalMessageEvent.DELETE||i.text&&t.notify?.(this.channelId,i.level,i.text));return{action:zn.EChannelRefreshAction.REFRESH};default:return console.log(`Invalid message type ${a.type}`),{action:zn.EChannelRefreshAction.NONE}}}async initChannel(t){let n=new yo;return t.instanceConfig=new xo,t.config=n,t.data=new wo,t.readChannelUserPreferences&&(t.data.userPreferences=await t.readChannelUserPreferences(this.channelId)),t.data.userPreferences||(t.data.userPreferences=new ai),!1}startChannel(t){let n=t.data;return n.paused=!1,n.started=!0,n.files=n.files.filter(a=>a.isDirectory&&a.path.split("/").length-1<=2),n.files=n.files.filter(a=>a.class!=="crdGroup"),n.currentPath="/overview",this.launchTasks(t),!0}pauseChannel(t){let n=t.data;return n.paused=!0,!1}continueChannel(t){let n=t.data;return n.paused=!1,!0}stopChannel(t){let n=t.data;n.paused=!1,n.started=!1,this.tasks.forEach(a=>clearInterval(a)),this.tasks=[];for(let a of n.windows.filter(r=>r.class==="ContentExternal"))Dl(a.data);return n.windows=n.windows.filter(a=>a.class!=="ContentExternal"),!0}onClusterSwitch(t){let n=t.data;n&&(n.clusterInfo=void 0,n.clusterEvents=[],n.metricsCluster=[],n.started=!1,n.currentPath="/overview",n.pendingWebSocketRequests=new Map)}socketDisconnected(t){return!1}socketReconnect(t){return!1}loadObject(t,n,a,r,i){i.metadata?.managedFields&&(r.userPreferences.dataManagedFields||delete i.metadata.managedFields),a==="Pod"?this.loadPod(r,i):a==="ConfigMap"?this.loadConfigMap(r,i):a==="Secret"?this.loadSecret(r,i):a==="ResourceQuota"?this.loadResourceQuota(r,i):a==="LimitRange"?this.loadLimitRange(r,i):a==="HorizontalPodAutoscaler"?this.loadHorizontalPodAutoscaler(r,i):a==="PodDisruptionBudget"?this.loadPodDisruptionBudget(r,i):a==="PriorityClass"?this.loadPriorityClass(r,i):a==="RuntimeClass"?this.loadRuntimeClass(r,i):a==="Lease"?this.loadLease(r,i):a==="ValidatingWebhookConfiguration"?this.loadValidatingWebhookConfiguration(r,i):a==="MutatingWebhookConfiguration"?this.loadMutatingWebhookConfiguration(r,i):a==="Namespace"?this.loadNamespace(r,i):a==="Node"?this.loadNode(r,i):a==="Service"?this.loadService(r,i):a==="Endpoints"?this.loadEndpoints(r,i):a==="Ingress"?this.loadIngress(r,i):a==="IngressClass"?this.loadIngressClass(r,i):a==="NetworkPolicy"?this.loadNetworkPolicy(r,i):a==="Deployment"?this.loadDeployment(r,i):a==="DaemonSet"?this.loadDaemonSet(r,i):a==="ReplicaSet"?this.loadReplicaSet(r,i):a==="ReplicationController"?this.loadReplicationController(r,i):a==="StatefulSet"?this.loadStatefulSet(r,i):a==="Job"?this.loadJob(r,i):a==="CronJob"?this.loadCronJob(r,i):a==="PersistentVolumeClaim"?this.loadPersistentVolumeClaim(r,i):a==="PersistentVolume"?this.loadPersistentVolume(r,i):a==="StorageClass"?this.loadStorageClass(r,i):a==="VolumeAttachment"?this.loadVolumeAttachment(r,i):a==="CSIDriver"?this.loadCSIDriver(r,i):a==="CSINode"?this.loadCSINode(r,i):a==="CSIStorageCapacity"?this.loadCSIStorageCapacity(r,i):a==="ServiceAccount"?this.loadServiceAccount(r,i):a==="ClusterRole"?this.loadClusterRole(r,i):a==="Role"?this.loadRole(r,i):a==="ClusterRoleBinding"?this.loadClusterRoleBinding(r,i):a==="RoleBinding"?this.loadRoleBinding(r,i):a==="V1APIResource"?this.loadApiResource(r,i):a==="CustomResourceDefinition"?this.loadCustomResourceDefinition(n,r,i):a==="PodMetrics"?this.loadPodMetrics(r,i):a==="NodeMetrics"?this.loadNodeMetrics(r,i):a==="ComponentStatus"?this.loadComponentStatus(r,i):a==="Event"||this.loadCustomResourceDefinitionInstance(r,i)||console.log("*** ERR INVALID Kind:",a)}upsertObject(t,n){let a=t.files.findIndex(r=>r.path===n.path);a>=0?t.files[a]=n:t.files.push(n)}loadNamespace(t,n){n.apiVersion="v1",n.kind="Namespace",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("Namespace",n.metadata.name,void 0),class:"Namespace",data:{creationTimestamp:n.metadata.creationTimestamp,status:n.status?.phase,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Namespace","ADD",n.metadata.name)}loadConfigMap(t,n){n.apiVersion="v1",n.kind="ConfigMap",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("ConfigMap",n.metadata.name,n.metadata.namespace),class:"ConfigMap",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadSecret(t,n){!t.userPreferences.dataHelm&&n.metadata.name.startsWith("sh.helm.release.")||(n.apiVersion="v1",n.kind="Secret",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Secret",n.metadata.name,n.metadata.namespace),class:"Secret",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,type:n.type,origin:n}}))}loadResourceQuota(t,n){n.apiVersion="v1",n.kind="ResourceQuota",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("ResourceQuota",n.metadata.name,n.metadata.namespace),class:"ResourceQuota",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLimitRange(t,n){n.apiVersion="v1",n.kind="LimitRange",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("LimitRange",n.metadata.name,n.metadata.namespace),class:"LimitRange",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadHorizontalPodAutoscaler(t,n){n.apiVersion="autoscaling/v2",n.kind="HorizontalPodAutoscaler",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("HorizontalPodAutoscaler",n.metadata.name,n.metadata.namespace),class:"HorizontalPodAutoscaler",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPodDisruptionBudget(t,n){n.apiVersion="policy/v1",n.kind="PodDisruptionBudget";let a=t.files.find(r=>r.class==="Pod"&&r.data.origin.metadata.name===n.metadata.name&&r.data.origin.metadata.namespace===n.metadata.namespace);this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("PodDisruptionBudget",n.metadata.name,n.metadata.namespace),class:"PodDisruptionBudget",data:{...a?.data?{cpu:a.data.cpu,memory:a.data.memory}:{},namespace:n.metadata.namespace,minAvailable:n.spec.minAvailable||"",maxUnavailable:n.spec.maxUnavailable||"",currentHealthy:n.status.currentHealthy,desiredHealthy:n.status.desiredHealthy,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPriorityClass(t,n){n.apiVersion="scheduling.k8s.io/v1",n.kind="PriorityClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("PriorityClass",n.metadata.name,n.metadata.namespace),class:"PriorityClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRuntimeClass(t,n){n.apiVersion="node.k8s.io/v1",n.kind="RuntimeClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("RuntimeClass",n.metadata.name,n.metadata.namespace),class:"RuntimeClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLease(t,n){n.apiVersion="node.k8s.io/v1",n.kind="Lease",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Lease",n.metadata.name,n.metadata.namespace),class:"Lease",data:{namespace:n.metadata.namespace,holder:n.spec.holderIdentity,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadValidatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="ValidatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("ValidatingWebhookConfiguration",n.metadata.name,void 0),class:"ValidatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadMutatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="MutatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("MutatingWebhookConfiguration",n.metadata.name,void 0),class:"MutatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNode(t,n){n.apiVersion="v1",n.kind="Node";let a=[];Object.keys(n.metadata.labels).forEach(i=>{i.startsWith("node-role.kubernetes.io")&&n.metadata.labels[i]==="true"&&a.push(i.substring(24))}),n.status.capacity.cpu=js(n.status.capacity.cpu),n.status.allocatable.cpu=js(n.status.allocatable.cpu),n.status.capacity.memory=Jn(n.status.capacity.memory),n.status.allocatable.memory=Jn(n.status.allocatable.memory);let r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===n.metadata?.name);this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("Node",n.metadata.name,void 0),class:"Node",data:{...r?.data?{cpu:r.data.cpu,memory:r.data.memory}:{},creationTimestamp:n.metadata.creationTimestamp,taints:n.spec.taints?n.spec.taints.length:0,roles:a.join(","),conditions:n.spec.unschedulable===!0?"Unschedulable":n.status.conditions.filter(i=>i.status==="True").map(i=>i.type).join(" "),version:n.status.nodeInfo.kubeletVersion,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Node","ADD",n.metadata.name);for(let i of t.files.filter(s=>s.class==="Image")){let s=i.data.origin.nodes.indexOf(n.metadata.name);s>=0&&i.data.origin.nodes.splice(s,1)}t.files=t.files.filter(i=>!(i.class==="Image"&&i.data.origin.nodes.length===0));for(let i of n.status?.images){let s=i.sizeBytes,o=[];i.names?(o=i.names.filter(c=>!c.includes("@")),o.length===0&&(o=i.names)):o=["*unnamed"];let l=t.files.find(c=>c.path==="/cluster/Image/"+o[0]);if(l)l.data.origin.nodes.includes(n.metadata.name)||l.data.origin.nodes.push(n.metadata.name);else{let c,d,m,f,g=/^(?:((?:[a-z0-9-]+\.)+[a-z0-9]+(?::\d+)?)\/)?((?:[a-z0-9._-]+\/)*[a-z0-9._-]+)(?::([a-z0-9._-]+))?(?:@(sha256:[a-f0-9]{64}))?$/i;if(i.names)for(let C of i.names){let L=C.match(g);L&&(c||(c=L[1]),d||(d=L[2]),m||(m=L[3]),f||(f=L[4]))}let I={name:o[0],displayName:d,isDirectory:!1,path:"/cluster/Image/"+o[0],class:"Image",data:{size:s,tag:m,origin:{kind:"Image",metadata:{name:o[0]},name:o[0],displayName:o[0],registry:c,tag:m,sha:f,names:i.names,nodes:[n.metadata.name]}}};t.files.push(I)}}}loadNodeMetrics(t,n){let a=n.metadata?.name,r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===a);if(r){let i=r.data.origin.status.capacity.cpu;r.data.cpu=(js(n.usage.cpu)/i*100).toFixed(2)+"%",r.data.memory=(Jn(n.usage.memory)/r.data.origin.status.capacity.memory*100).toFixed(2)+"%"}}loadService(t,n){n.apiVersion="v1",n.kind="Service",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Service",n.metadata.name,n.metadata.namespace),class:"Service",data:{namespace:n.metadata.namespace,type:n.spec.type,clusterIp:n.spec.clusterIP,ports:n.spec?.ports?.map(a=>a.port+"/"+a.protocol).join(",")||"-",externalIp:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(",")||"-",selector:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadEndpoints(t,n){n.apiVersion="v1",n.kind="Endpoints",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Endpoints",n.metadata.name,n.metadata.namespace),class:"Endpoints",data:{namespace:n.metadata.namespace,endpoints:n.subsets?n.subsets?.map(a=>a.addresses?.map(r=>a.ports?.map(i=>r.ip+":"+i.port)).join(",")):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngress(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="Ingress",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Ingress",n.metadata.name,n.metadata.namespace),class:"Ingress",data:{namespace:n.metadata.namespace,loadBalancers:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(","),rules:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngressClass(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="IngressClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("IngressClass",n.metadata.name,n.metadata.namespace),class:"IngressClass",data:{namespace:n.metadata.namespace,controller:n.spec.controller,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNetworkPolicy(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="NetworkPolicy",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("NetworkPolicy",n.metadata.name,n.metadata.namespace),class:"NetworkPolicy",data:{namespace:n.metadata.namespace,policyTypes:n.spec.policyTypes?n.spec.policyTypes.join(","):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDeployment(t,n){n.apiVersion="apps/v1",n.kind="Deployment",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Deployment",n.metadata.name,n.metadata.namespace),class:"Deployment",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.status.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDaemonSet(t,n){n.apiVersion="apps/v1",n.kind="DaemonSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("DaemonSet",n.metadata.name,n.metadata.namespace),class:"DaemonSet",data:{namespace:n.metadata.namespace,desired:n.status.desiredNumberScheduled,current:n.status.currentNumberScheduled,ready:n.status.numberReady,upToDate:n.status.updatedNumberScheduled,available:n.status.numberAvailable,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicaSet(t,n){n.apiVersion="apps/v1",n.kind="ReplicaSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("ReplicaSet",n.metadata.name,n.metadata.namespace),class:"ReplicaSet",data:{namespace:n.metadata.namespace,desired:n.status.replicas||0,current:n.status.availableReplicas||0,ready:n.status.readyReplicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicationController(t,n){n.apiVersion="v1",n.kind="ReplicationController",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("ReplicationController",n.metadata.name,n.metadata.namespace),class:"ReplicationController",data:{namespace:n.metadata.namespace,replicas:n.status.replicas||0,desired:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadStatefulSet(t,n){n.apiVersion="apps/v1",n.kind="StatefulSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("StatefulSet",n.metadata.name,n.metadata.namespace),class:"StatefulSet",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadJob(t,n){n.apiVersion="batch/v1",n.kind="Job",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Job",n.metadata.name,n.metadata.namespace),class:"Job",data:{namespace:n.metadata.namespace,completions:n.spec.completions+"/"+n.spec.parallelism,conditions:n.status.conditions?n.status.conditions.filter(a=>a.status.toLowerCase()==="true").map(a=>a.name):"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCronJob(t,n){n.apiVersion="batch/v1",n.kind="CronJob",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("CronJob",n.metadata.name,n.metadata.namespace),class:"CronJob",data:{namespace:n.metadata.namespace,schedule:n.spec.schedule,suspend:n.spec.suspend||"-",active:"-",lastSchedule:n.status.lastScheduleTime,nextExecution:"-",timezone:"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPersistentVolumeClaim(t,n){n.apiVersion="v1",n.kind="PersistentVolumeClaim",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("PersistentVolumeClaim",n.metadata.name,n.metadata.namespace),class:"PersistentVolumeClaim",data:{namespace:n.metadata.namespace,storageClass:n.spec.storageClassName,size:n.status?.capacity?.storage?Jn(n.status?.capacity?.storage):0,creationTimestamp:n.metadata.creationTimestamp,status:n.status.phase,origin:n}})}loadPersistentVolume(t,n){n.apiVersion="v1",n.kind="PersistentVolume",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("PersistentVolume",n.metadata.name,void 0),class:"PersistentVolume",data:{storageClass:n.spec?.storageClassName,size:n.status?.capacity?.storage?Jn(n.status?.capacity?.storage):0,claim:n.spec?.claimRef?.name,creationTimestamp:n.metadata?.creationTimestamp,status:n.status?.phase,origin:n}})}loadStorageClass(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="StorageClass",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("StorageClass",n.metadata.name,void 0),class:"StorageClass",data:{provisioner:n.provisioner,reclaimPolicy:n.reclaimPolicy,default:(n.metadata?.annotations&&n.metadata.annotations["storageclass.kubernetes.io/is-default-class"]==="true"?"Yes":"")||"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadVolumeAttachment(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="VolumeAttachment",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("VolumeAttachment",n.metadata.name,void 0),class:"VolumeAttachment",data:{attacher:n.spec.attacher,nodeName:n.spec.nodeName,source:n.spec.source?.persistentVolumeName||"",status:n.status.attached?"attached":"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIDriver(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIDriver",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("CSIDriver",n.metadata.name,void 0),class:"CSIDriver",data:{attachRequired:n.spec.attachRequired?"Yes":"No",storageCapacity:n.spec.storageCapacity?"Yes":"No",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSINode(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSINode",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("CSINode",n.metadata.name,void 0),class:"CSINode",data:{drivers:n.spec.drivers?.map(a=>a.name).join(","),creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIStorageCapacity(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIStorageCapacity",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("CSIStorageCapacity",n.metadata.name,void 0),class:"CSIStorageCapacity",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadServiceAccount(t,n){n.apiVersion="v1",n.kind="ServiceAccount",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("ServiceAccount",n.metadata.name,n.metadata.namespace),class:"ServiceAccount",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRole",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("ClusterRole",n.metadata.name,void 0),class:"ClusterRole",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="Role",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Role",n.metadata.name,n.metadata.namespace),class:"Role",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRoleBinding",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("ClusterRoleBinding",n.metadata.name,void 0),class:"ClusterRoleBinding",data:{bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="RoleBinding",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("RoleBinding",n.metadata.name,n.metadata.namespace),class:"RoleBinding",data:{namespace:n.metadata.namespace,bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadApiResource(t,n){n.kindName=n.kind,n.metadata={name:n.kind},n.apiVersion="v1",n.kind="V1APIResource",this.upsertObject(t,{name:n.name,isDirectory:!1,path:we("V1APIResource",n.name,void 0),class:"V1APIResource",data:{kind:n.kindName,singular:n.singularName,namespaced:n.namespaced?"Yes":"",origin:n}})}loadPod(t,n){n.apiVersion="v1",n.kind="Pod",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:we("Pod",n.metadata.name,n.metadata.namespace),class:"Pod",data:{namespace:n.metadata.namespace,controller:n.metadata.ownerReferences&&n.metadata.ownerReferences.length>0?n.metadata.ownerReferences[0].kind:"-",node:n.spec.nodeName,startTime:n.status.startTime,status:n.metadata.deletionTimestamp?"Terminating":n.status.phase,restartCount:n.status.containerStatuses?.reduce((a,r)=>a+=r.restartCount,0)||0,origin:n}})}loadPodMetrics(t,n){let a=n.metadata.name,r=n.metadata.namespace,i=t.files.find(s=>s.class==="Pod"&&s.data.origin.metadata.name===a&&s.data.origin.metadata.namespace===r);i&&(i.data.metrics=n,i.data.cpu=n.containers.reduce((s,o)=>s+js(o.usage.cpu),0),i.data.cpu=i.data.cpu.toFixed(3),i.data.memory=n.containers.reduce((s,o)=>s+Jn(o.usage.memory),0))}loadComponentStatus(t,n){n.apiVersion="v1",n.kind="ComponentStatus",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:we("ComponentStatus",n.metadata.name,void 0),class:"ComponentStatus",data:{status:n.conditions[0].status,message:n.conditions[0].message,origin:n}})}loadCustomResourceDefinition(t,n,a){a.apiVersion="apiextensions.k8s.io/v1",a.kind="CustomResourceDefinition";let r=a.spec.versions&&a.spec.versions.length>0?a.spec.versions[0].name:"-";this.upsertObject(n,{name:a.metadata.name,displayName:a.metadata.name,isDirectory:!1,path:we("CustomResourceDefinition",a.metadata.name,a.metadata.namespace),class:"CustomResourceDefinition",data:{group:a.spec.group,version:r,scope:a.spec.scope,creationTimestamp:a.metadata.creationTimestamp,origin:a}});let i={name:a.spec.names.kind,isDirectory:!0,path:"/custom/"+a.spec.names.kind,class:"crdGroup",children:"crdInstance"};if(a.spec.scope==="Namespaced"&&(i.categories=["namespace"],i.children="crdNamespacedInstance"),this.upsertObject(n,i),a.spec.versions&&a.spec.versions.length>0){let s={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"listcrd",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:this.channelId,params:[a.spec.group,a.spec.versions[0].name,a.spec.names.plural]};t.webSocket.send(JSON.stringify(s))}}loadCustomResourceDefinitionInstance(t,n){return this.upsertObject(t,{name:n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),displayName:n.metadata.name,isDirectory:!1,path:"/custom/"+n.kind+"/"+n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),class:"crdInstance",data:{namespace:n.metadata.namespace,source:n.spec?.source,checksum:n.spec?.checksum,creationTimestamp:n.metadata.creationTimestamp,origin:n}}),!0}},we=(e,t,n)=>{let a="";return" V1APIResource Node Namespace ComponentStatus Image ".includes(" "+e+" ")&&(a="cluster")," Pod Deployment DaemonSet ReplicaSet ReplicationController StatefulSet Job CronJob ".includes(" "+e+" ")&&(a="workload")," ConfigMap Secret ResourceQuota LimitRange HorizontalPodAutoscaler PodDisruptionBudget PriorityClass RuntimeClass Lease ValidatingWebhookConfiguration MutatingWebhookConfiguration ".includes(" "+e+" ")&&(a="config")," Service Endpoints Ingress IngressClass NetworkPolicy ".includes(" "+e+" ")&&(a="network")," PersistentVolumeClaim PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ".includes(" "+e+" ")&&(a="storage")," ServiceAccount ClusterRole Role ClusterRoleBinding RoleBinding ".includes(" "+e+" ")&&(a="access")," CustomResourceDefinition ".includes(" "+e+" ")&&(a="custom")," V1APIResource Node Namespace V1APIResource Image ComponentStatus ValidatingWebhookConfiguration MutatingWebhookConfiguration PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ClusterRole ClusterRoleBinding CustomResourceDefinition ".includes(" "+e+" ")?"/"+a+"/"+e+"/"+t:"/"+a+"/"+e+"/"+t+":"+n},tD=e=>{let t={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"clusterinfo",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:e.channelId,params:[]};e.webSocket.send(JSON.stringify(t))},_m=async e=>{for(let t=1;t<10;t++){let a=e.data.userPreferences?.dataConfig?.source.filter(i=>i.priority===t).map(i=>i.name);if(a.length===0)break;let r={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"list",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:e.channelId,params:[...a]};e.webSocket.send(JSON.stringify(r)),await new Promise(i=>setTimeout(i,250))}},nD=e=>{let t=e.data,n={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"subscribe",action:Ne.EInstanceMessageAction.COMMAND,flow:Ne.EInstanceMessageFlow.REQUEST,type:Ne.EInstanceMessageType.DATA,channel:e.channelId,params:t.userPreferences?.dataConfig?.sync.map(a=>a.name)};e.webSocket.send(JSON.stringify(n))};for(let[e,t]of[["kwirth-plugin-magnify-css",Wm],["kwirth-plugin-magnify-resizable-css",Bm]]){if(document.getElementById(e))continue;let n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}window.__kwirth_plugins__||(window.__kwirth_plugins__={});window.__kwirth_plugins__.magnify=Hl;})();
814
814
  /*! Bundled license information:
815
815
 
816
816
  react/cjs/react-jsx-runtime.production.min.js: