@omniviewdev/providers 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -357
- package/dist/index.d.ts +2 -357
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +10 -7
- package/LICENSE +0 -661
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ye=Object.create;var St=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var xt=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),M=(t,i)=>{for(var l in i)St(t,l,{get:i[l],enumerable:!0})},Xe=(t,i,l,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of qe(i))!Qe.call(t,p)&&p!==l&&St(t,p,{get:()=>i[p],enumerable:!(c=Be(i,p))||c.enumerable});return t};var te=(t,i,l)=>(l=t!=null?Ye(Ke(t)):{},Xe(i||!t||!t.__esModule?St(l,"default",{value:t,enumerable:!0}):l,t));var Le=xt(_=>{"use strict";var kt=Symbol.for("react.transitional.element"),Uo=Symbol.for("react.portal"),Ho=Symbol.for("react.fragment"),$o=Symbol.for("react.strict_mode"),zo=Symbol.for("react.profiler"),Yo=Symbol.for("react.consumer"),Bo=Symbol.for("react.context"),qo=Symbol.for("react.forward_ref"),Ko=Symbol.for("react.suspense"),Qo=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Xo=Symbol.for("react.activity"),Pe=Symbol.iterator;function Zo(t){return t===null||typeof t!="object"?null:(t=Pe&&t[Pe]||t["@@iterator"],typeof t=="function"?t:null)}var Ae={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},De=Object.assign,Me={};function Q(t,i,l){this.props=t,this.context=i,this.refs=Me,this.updater=l||Ae}Q.prototype.isReactComponent={};Q.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,i,"setState")};Q.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ve(){}Ve.prototype=Q.prototype;function Ft(t,i,l){this.props=t,this.context=i,this.refs=Me,this.updater=l||Ae}var Nt=Ft.prototype=new Ve;Nt.constructor=Ft;De(Nt,Q.prototype);Nt.isPureReactComponent=!0;var Te=Array.isArray;function Tt(){}var F={H:null,A:null,T:null,S:null},je=Object.prototype.hasOwnProperty;function At(t,i,l){var c=l.ref;return{$$typeof:kt,type:t,key:i,ref:c!==void 0?c:null,props:l}}function ts(t,i){return At(t.type,i,t.props)}function Dt(t){return typeof t=="object"&&t!==null&&t.$$typeof===kt}function es(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return i[l]})}var ke=/\/+/g;function Pt(t,i){return typeof t=="object"&&t!==null&&t.key!=null?es(""+t.key):i.toString(36)}function ns(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Tt,Tt):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function K(t,i,l,c,p){var w=typeof t;(w==="undefined"||w==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(w){case"bigint":case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case kt:case Uo:o=!0;break;case Ne:return o=t._init,K(o(t._payload),i,l,c,p)}}if(o)return p=p(t),o=c===""?"."+Pt(t,0):c,Te(p)?(l="",o!=null&&(l=o.replace(ke,"$&/")+"/"),K(p,i,l,"",function(a){return a})):p!=null&&(Dt(p)&&(p=ts(p,l+(p.key==null||t&&t.key===p.key?"":(""+p.key).replace(ke,"$&/")+"/")+o)),i.push(p)),1;o=0;var n=c===""?".":c+":";if(Te(t))for(var g=0;g<t.length;g++)c=t[g],w=n+Pt(c,g),o+=K(c,i,l,w,p);else if(g=Zo(t),typeof g=="function")for(t=g.call(t),g=0;!(c=t.next()).done;)c=c.value,w=n+Pt(c,g++),o+=K(c,i,l,w,p);else if(w==="object"){if(typeof t.then=="function")return K(ns(t),i,l,c,p);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return o}function dt(t,i,l){if(t==null)return t;var c=[],p=0;return K(t,c,"","",function(w){return i.call(l,w,p++)}),c}function rs(t){if(t._status===-1){var i=t._result;i=i(),i.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=i)}if(t._status===1)return t._result.default;throw t._result}var Fe=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},is={map:dt,forEach:function(t,i,l){dt(t,function(){i.apply(this,arguments)},l)},count:function(t){var i=0;return dt(t,function(){i++}),i},toArray:function(t){return dt(t,function(i){return i})||[]},only:function(t){if(!Dt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};_.Activity=Xo;_.Children=is;_.Component=Q;_.Fragment=Ho;_.Profiler=zo;_.PureComponent=Ft;_.StrictMode=$o;_.Suspense=Ko;_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F;_.__COMPILER_RUNTIME={__proto__:null,c:function(t){return F.H.useMemoCache(t)}};_.cache=function(t){return function(){return t.apply(null,arguments)}};_.cacheSignal=function(){return null};_.cloneElement=function(t,i,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var c=De({},t.props),p=t.key;if(i!=null)for(w in i.key!==void 0&&(p=""+i.key),i)!je.call(i,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&i.ref===void 0||(c[w]=i[w]);var w=arguments.length-2;if(w===1)c.children=l;else if(1<w){for(var o=Array(w),n=0;n<w;n++)o[n]=arguments[n+2];c.children=o}return At(t.type,p,c)};_.createContext=function(t){return t={$$typeof:Bo,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Yo,_context:t},t};_.createElement=function(t,i,l){var c,p={},w=null;if(i!=null)for(c in i.key!==void 0&&(w=""+i.key),i)je.call(i,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(p[c]=i[c]);var o=arguments.length-2;if(o===1)p.children=l;else if(1<o){for(var n=Array(o),g=0;g<o;g++)n[g]=arguments[g+2];p.children=n}if(t&&t.defaultProps)for(c in o=t.defaultProps,o)p[c]===void 0&&(p[c]=o[c]);return At(t,w,p)};_.createRef=function(){return{current:null}};_.forwardRef=function(t){return{$$typeof:qo,render:t}};_.isValidElement=Dt;_.lazy=function(t){return{$$typeof:Ne,_payload:{_status:-1,_result:t},_init:rs}};_.memo=function(t,i){return{$$typeof:Qo,type:t,compare:i===void 0?null:i}};_.startTransition=function(t){var i=F.T,l={};F.T=l;try{var c=t(),p=F.S;p!==null&&p(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(Tt,Fe)}catch(w){Fe(w)}finally{i!==null&&l.types!==null&&(i.types=l.types),F.T=i}};_.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()};_.use=function(t){return F.H.use(t)};_.useActionState=function(t,i,l){return F.H.useActionState(t,i,l)};_.useCallback=function(t,i){return F.H.useCallback(t,i)};_.useContext=function(t){return F.H.useContext(t)};_.useDebugValue=function(){};_.useDeferredValue=function(t,i){return F.H.useDeferredValue(t,i)};_.useEffect=function(t,i){return F.H.useEffect(t,i)};_.useEffectEvent=function(t){return F.H.useEffectEvent(t)};_.useId=function(){return F.H.useId()};_.useImperativeHandle=function(t,i,l){return F.H.useImperativeHandle(t,i,l)};_.useInsertionEffect=function(t,i){return F.H.useInsertionEffect(t,i)};_.useLayoutEffect=function(t,i){return F.H.useLayoutEffect(t,i)};_.useMemo=function(t,i){return F.H.useMemo(t,i)};_.useOptimistic=function(t,i){return F.H.useOptimistic(t,i)};_.useReducer=function(t,i,l){return F.H.useReducer(t,i,l)};_.useRef=function(t){return F.H.useRef(t)};_.useState=function(t){return F.H.useState(t)};_.useSyncExternalStore=function(t,i,l){return F.H.useSyncExternalStore(t,i,l)};_.useTransition=function(){return F.H.useTransition()};_.version="19.2.4"});var Ge=xt((x,mt)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(r,u){Object.defineProperty(c.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=D&&r[D]||r["@@iterator"],typeof r=="function"?r:null)}function l(r,u){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var f=r+"."+u;Wt[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,r),Wt[f]=!0)}function c(r,u,f){this.props=r,this.context=u,this.refs=vt,this.updater=f||Jt}function p(){}function w(r,u,f){this.props=r,this.context=u,this.refs=vt,this.updater=f||Jt}function o(){}function n(r){return""+r}function g(r){try{n(r);var u=!1}catch{u=!0}if(u){u=console;var f=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),n(r)}}function a(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Je?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case y:return"Profiler";case k:return"StrictMode";case Gt:return"Suspense";case We:return"SuspenseList";case It:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case e:return"Portal";case jt:return r.displayName||"Context";case wt:return(r._context.displayName||"Context")+".Consumer";case Lt:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ht:return u=r.displayName||null,u!==null?u:a(r.type)||"Memo";case nt:u=r._payload,r=r._init;try{return a(r(u))}catch{}}return null}function m(r){if(r===S)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===nt)return"<...>";try{var u=a(r);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function j(){var r=E.A;return r===null?null:r.getOwner()}function P(){return Error("react-stack-top-frame")}function X(r){if(ct.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function s(r,u){function f(){zt||(zt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}function v(){var r=a(this.type);return Bt[r]||(Bt[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function N(r,u,f,d,h,R){var O=f.ref;return r={$$typeof:yt,type:r,key:u,props:f,_owner:d},(O!==void 0?O:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:v}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function b(r,u){return u=N(r.type,u,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(u._store.validated=r._store.validated),u}function Z(r){G(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===nt&&(r._payload.status==="fulfilled"?G(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function G(r){return typeof r=="object"&&r!==null&&r.$$typeof===yt}function at(r){var u={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(f){return u[f]})}function z(r,u){return typeof r=="object"&&r!==null&&r.key!=null?(g(r.key),at(""+r.key)):u.toString(36)}function tt(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(o,o):(r.status="pending",r.then(function(u){r.status==="pending"&&(r.status="fulfilled",r.value=u)},function(u){r.status==="pending"&&(r.status="rejected",r.reason=u)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function I(r,u,f,d,h){var R=typeof r;(R==="undefined"||R==="boolean")&&(r=null);var O=!1;if(r===null)O=!0;else switch(R){case"bigint":case"string":case"number":O=!0;break;case"object":switch(r.$$typeof){case yt:case e:O=!0;break;case nt:return O=r._init,I(O(r._payload),u,f,d,h)}}if(O){O=r,h=h(O);var T=d===""?"."+z(O,0):d;return Ht(h)?(f="",T!=null&&(f=T.replace(Kt,"$&/")+"/"),I(h,u,f,"",function(J){return J})):h!=null&&(G(h)&&(h.key!=null&&(O&&O.key===h.key||g(h.key)),f=b(h,f+(h.key==null||O&&O.key===h.key?"":(""+h.key).replace(Kt,"$&/")+"/")+T),d!==""&&O!=null&&G(O)&&O.key==null&&O._store&&!O._store.validated&&(f._store.validated=2),h=f),u.push(h)),1}if(O=0,T=d===""?".":d+":",Ht(r))for(var C=0;C<r.length;C++)d=r[C],R=T+z(d,C),O+=I(d,u,f,R,h);else if(C=i(r),typeof C=="function")for(C===r.entries&&(qt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),qt=!0),r=C.call(r),C=0;!(d=r.next()).done;)d=d.value,R=T+z(d,C++),O+=I(d,u,f,R,h);else if(R==="object"){if(typeof r.then=="function")return I(tt(r),u,f,d,h);throw u=String(r),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return O}function U(r,u,f){if(r==null)return r;var d=[],h=0;return I(r,d,"","",function(R){return u.call(f,R,h++)}),d}function ut(r){if(r._status===-1){var u=r._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=r._result;var f=u();if(f.then(function(h){if(r._status===0||r._status===-1){r._status=1,r._result=h;var R=r._ioInfo;R!=null&&(R.end=performance.now()),f.status===void 0&&(f.status="fulfilled",f.value=h)}},function(h){if(r._status===0||r._status===-1){r._status=2,r._result=h;var R=r._ioInfo;R!=null&&(R.end=performance.now()),f.status===void 0&&(f.status="rejected",f.reason=h)}}),u=r._ioInfo,u!=null){u.value=f;var d=f.displayName;typeof d=="string"&&(u.name=d)}r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return u=r._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var Ue=Object.create;var _t=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var Ye=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var St=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),j=(t,i)=>{for(var l in i)_t(t,l,{get:i[l],enumerable:!0})},Be=(t,i,l,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of $e(i))!ze.call(t,p)&&p!==l&&_t(t,p,{get:()=>i[p],enumerable:!(c=He(i,p))||c.enumerable});return t};var Xt=(t,i,l)=>(l=t!=null?Ue(Ye(t)):{},Be(i||!t||!t.__esModule?_t(l,"default",{value:t,enumerable:!0}):l,t));var Ae=St(x=>{"use strict";var Pt=Symbol.for("react.transitional.element"),Li=Symbol.for("react.portal"),Ii=Symbol.for("react.fragment"),Ji=Symbol.for("react.strict_mode"),Ui=Symbol.for("react.profiler"),Hi=Symbol.for("react.consumer"),$i=Symbol.for("react.context"),Yi=Symbol.for("react.forward_ref"),zi=Symbol.for("react.suspense"),Bi=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),Wi=Symbol.for("react.activity"),xe=Symbol.iterator;function qi(t){return t===null||typeof t!="object"?null:(t=xe&&t[xe]||t["@@iterator"],typeof t=="function"?t:null)}var Pe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ke=Object.assign,Te={};function Q(t,i,l){this.props=t,this.context=i,this.refs=Te,this.updater=l||Pe}Q.prototype.isReactComponent={};Q.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,i,"setState")};Q.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ne(){}Ne.prototype=Q.prototype;function kt(t,i,l){this.props=t,this.context=i,this.refs=Te,this.updater=l||Pe}var Tt=kt.prototype=new Ne;Tt.constructor=kt;ke(Tt,Q.prototype);Tt.isPureReactComponent=!0;var Re=Array.isArray;function Ct(){}var T={H:null,A:null,T:null,S:null},Fe=Object.prototype.hasOwnProperty;function Nt(t,i,l){var c=l.ref;return{$$typeof:Pt,type:t,key:i,ref:c!==void 0?c:null,props:l}}function Ki(t,i){return Nt(t.type,i,t.props)}function Ft(t){return typeof t=="object"&&t!==null&&t.$$typeof===Pt}function Qi(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return i[l]})}var Oe=/\/+/g;function Et(t,i){return typeof t=="object"&&t!==null&&t.key!=null?Qi(""+t.key):i.toString(36)}function Xi(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Ct,Ct):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function K(t,i,l,c,p){var h=typeof t;(h==="undefined"||h==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(h){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Pt:case Li:s=!0;break;case Ce:return s=t._init,K(s(t._payload),i,l,c,p)}}if(s)return p=p(t),s=c===""?"."+Et(t,0):c,Re(p)?(l="",s!=null&&(l=s.replace(Oe,"$&/")+"/"),K(p,i,l,"",function(a){return a})):p!=null&&(Ft(p)&&(p=Ki(p,l+(p.key==null||t&&t.key===p.key?"":(""+p.key).replace(Oe,"$&/")+"/")+s)),i.push(p)),1;s=0;var n=c===""?".":c+":";if(Re(t))for(var g=0;g<t.length;g++)c=t[g],h=n+Et(c,g),s+=K(c,i,l,h,p);else if(g=qi(t),typeof g=="function")for(t=g.call(t),g=0;!(c=t.next()).done;)c=c.value,h=n+Et(c,g++),s+=K(c,i,l,h,p);else if(h==="object"){if(typeof t.then=="function")return K(Xi(t),i,l,c,p);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return s}function dt(t,i,l){if(t==null)return t;var c=[],p=0;return K(t,c,"","",function(h){return i.call(l,h,p++)}),c}function Zi(t){if(t._status===-1){var i=t._result;i=i(),i.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=i)}if(t._status===1)return t._result.default;throw t._result}var Ee=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},to={map:dt,forEach:function(t,i,l){dt(t,function(){i.apply(this,arguments)},l)},count:function(t){var i=0;return dt(t,function(){i++}),i},toArray:function(t){return dt(t,function(i){return i})||[]},only:function(t){if(!Ft(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};x.Activity=Wi;x.Children=to;x.Component=Q;x.Fragment=Ii;x.Profiler=Ui;x.PureComponent=kt;x.StrictMode=Ji;x.Suspense=zi;x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T;x.__COMPILER_RUNTIME={__proto__:null,c:function(t){return T.H.useMemoCache(t)}};x.cache=function(t){return function(){return t.apply(null,arguments)}};x.cacheSignal=function(){return null};x.cloneElement=function(t,i,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var c=ke({},t.props),p=t.key;if(i!=null)for(h in i.key!==void 0&&(p=""+i.key),i)!Fe.call(i,h)||h==="key"||h==="__self"||h==="__source"||h==="ref"&&i.ref===void 0||(c[h]=i[h]);var h=arguments.length-2;if(h===1)c.children=l;else if(1<h){for(var s=Array(h),n=0;n<h;n++)s[n]=arguments[n+2];c.children=s}return Nt(t.type,p,c)};x.createContext=function(t){return t={$$typeof:$i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Hi,_context:t},t};x.createElement=function(t,i,l){var c,p={},h=null;if(i!=null)for(c in i.key!==void 0&&(h=""+i.key),i)Fe.call(i,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(p[c]=i[c]);var s=arguments.length-2;if(s===1)p.children=l;else if(1<s){for(var n=Array(s),g=0;g<s;g++)n[g]=arguments[g+2];p.children=n}if(t&&t.defaultProps)for(c in s=t.defaultProps,s)p[c]===void 0&&(p[c]=s[c]);return Nt(t,h,p)};x.createRef=function(){return{current:null}};x.forwardRef=function(t){return{$$typeof:Yi,render:t}};x.isValidElement=Ft;x.lazy=function(t){return{$$typeof:Ce,_payload:{_status:-1,_result:t},_init:Zi}};x.memo=function(t,i){return{$$typeof:Bi,type:t,compare:i===void 0?null:i}};x.startTransition=function(t){var i=T.T,l={};T.T=l;try{var c=t(),p=T.S;p!==null&&p(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(Ct,Ee)}catch(h){Ee(h)}finally{i!==null&&l.types!==null&&(i.types=l.types),T.T=i}};x.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()};x.use=function(t){return T.H.use(t)};x.useActionState=function(t,i,l){return T.H.useActionState(t,i,l)};x.useCallback=function(t,i){return T.H.useCallback(t,i)};x.useContext=function(t){return T.H.useContext(t)};x.useDebugValue=function(){};x.useDeferredValue=function(t,i){return T.H.useDeferredValue(t,i)};x.useEffect=function(t,i){return T.H.useEffect(t,i)};x.useEffectEvent=function(t){return T.H.useEffectEvent(t)};x.useId=function(){return T.H.useId()};x.useImperativeHandle=function(t,i,l){return T.H.useImperativeHandle(t,i,l)};x.useInsertionEffect=function(t,i){return T.H.useInsertionEffect(t,i)};x.useLayoutEffect=function(t,i){return T.H.useLayoutEffect(t,i)};x.useMemo=function(t,i){return T.H.useMemo(t,i)};x.useOptimistic=function(t,i){return T.H.useOptimistic(t,i)};x.useReducer=function(t,i,l){return T.H.useReducer(t,i,l)};x.useRef=function(t){return T.H.useRef(t)};x.useState=function(t){return T.H.useState(t)};x.useSyncExternalStore=function(t,i,l){return T.H.useSyncExternalStore(t,i,l)};x.useTransition=function(){return T.H.useTransition()};x.version="19.2.4"});var De=St((S,yt)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(r,u){Object.defineProperty(c.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=D&&r[D]||r["@@iterator"],typeof r=="function"?r:null)}function l(r,u){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var f=r+"."+u;Lt[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,r),Lt[f]=!0)}function c(r,u,f){this.props=r,this.context=u,this.refs=vt,this.updater=f||It}function p(){}function h(r,u,f){this.props=r,this.context=u,this.refs=vt,this.updater=f||It}function s(){}function n(r){return""+r}function g(r){try{n(r);var u=!1}catch{u=!0}if(u){u=console;var f=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),n(r)}}function a(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Me?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case m:return"Profiler";case k:return"StrictMode";case Mt:return"Suspense";case je:return"SuspenseList";case Gt:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case e:return"Portal";case Vt:return r.displayName||"Context";case ht:return(r._context.displayName||"Context")+".Consumer";case jt:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case wt:return u=r.displayName||null,u!==null?u:a(r.type)||"Memo";case nt:u=r._payload,r=r._init;try{return a(r(u))}catch{}}return null}function y(r){if(r===_)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===nt)return"<...>";try{var u=a(r);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function V(){var r=O.A;return r===null?null:r.getOwner()}function A(){return Error("react-stack-top-frame")}function X(r){if(ct.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function o(r,u){function f(){$t||($t=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}function v(){var r=a(this.type);return zt[r]||(zt[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function N(r,u,f,d,w,E){var R=f.ref;return r={$$typeof:mt,type:r,key:u,props:f,_owner:d},(R!==void 0?R:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:v}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:w}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function b(r,u){return u=N(r.type,u,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(u._store.validated=r._store.validated),u}function Z(r){L(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===nt&&(r._payload.status==="fulfilled"?L(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function L(r){return typeof r=="object"&&r!==null&&r.$$typeof===mt}function at(r){var u={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(f){return u[f]})}function z(r,u){return typeof r=="object"&&r!==null&&r.key!=null?(g(r.key),at(""+r.key)):u.toString(36)}function tt(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(s,s):(r.status="pending",r.then(function(u){r.status==="pending"&&(r.status="fulfilled",r.value=u)},function(u){r.status==="pending"&&(r.status="rejected",r.reason=u)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function I(r,u,f,d,w){var E=typeof r;(E==="undefined"||E==="boolean")&&(r=null);var R=!1;if(r===null)R=!0;else switch(E){case"bigint":case"string":case"number":R=!0;break;case"object":switch(r.$$typeof){case mt:case e:R=!0;break;case nt:return R=r._init,I(R(r._payload),u,f,d,w)}}if(R){R=r,w=w(R);var P=d===""?"."+z(R,0):d;return Ut(w)?(f="",P!=null&&(f=P.replace(Wt,"$&/")+"/"),I(w,u,f,"",function(U){return U})):w!=null&&(L(w)&&(w.key!=null&&(R&&R.key===w.key||g(w.key)),f=b(w,f+(w.key==null||R&&R.key===w.key?"":(""+w.key).replace(Wt,"$&/")+"/")+P),d!==""&&R!=null&&L(R)&&R.key==null&&R._store&&!R._store.validated&&(f._store.validated=2),w=f),u.push(w)),1}if(R=0,P=d===""?".":d+":",Ut(r))for(var C=0;C<r.length;C++)d=r[C],E=P+z(d,C),R+=I(d,u,f,E,w);else if(C=i(r),typeof C=="function")for(C===r.entries&&(Bt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Bt=!0),r=C.call(r),C=0;!(d=r.next()).done;)d=d.value,E=P+z(d,C++),R+=I(d,u,f,E,w);else if(E==="object"){if(typeof r.then=="function")return I(tt(r),u,f,d,w);throw u=String(r),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return R}function H(r,u,f){if(r==null)return r;var d=[],w=0;return I(r,d,"","",function(E){return u.call(f,E,w++)}),d}function ut(r){if(r._status===-1){var u=r._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=r._result;var f=u();if(f.then(function(w){if(r._status===0||r._status===-1){r._status=1,r._result=w;var E=r._ioInfo;E!=null&&(E.end=performance.now()),f.status===void 0&&(f.status="fulfilled",f.value=w)}},function(w){if(r._status===0||r._status===-1){r._status=2,r._result=w;var E=r._ioInfo;E!=null&&(E.end=performance.now()),f.status===void 0&&(f.status="rejected",f.reason=w)}}),u=r._ioInfo,u!=null){u.value=f;var d=f.displayName;typeof d=="string"&&(u.name=d)}r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return u=r._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -6,11 +6,11 @@ Your code should look like:
|
|
|
6
6
|
Did you accidentally put curly braces around the import?`,u),"default"in u||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default;throw r._result}function
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default;throw r._result}function F(){var r=O.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function et(){E.asyncTransitions--}function H(r){if(lt===null)try{var u=("require"+Math.random()).slice(0,7);lt=(mt&&mt[u]).call(mt,"timers").setImmediate}catch{lt=function(d){Xt===!1&&(Xt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var h=new MessageChannel;h.port1.onmessage=d,h.port2.postMessage(void 0)}}return lt(r)}function W(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function $(r,u){u!==pt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pt=u}function Y(r,u,f){var d=E.actQueue;if(d!==null)if(d.length!==0)try{B(d),H(function(){return Y(r,u,f)});return}catch(h){E.thrownErrors.push(h)}else E.actQueue=null;0<E.thrownErrors.length?(d=W(E.thrownErrors),E.thrownErrors.length=0,f(d)):u(r)}function B(r){if(!bt){bt=!0;var u=0;try{for(;u<r.length;u++){var f=r[u];do{E.didUsePromise=!1;var d=f(!1);if(d!==null){if(E.didUsePromise){r[u]=f,r.splice(0,u);return}f=d}else break}while(!0)}r.length=0}catch(h){r.splice(0,u+1),E.thrownErrors.push(h)}finally{bt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var yt=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),wt=Symbol.for("react.consumer"),jt=Symbol.for("react.context"),Lt=Symbol.for("react.forward_ref"),Gt=Symbol.for("react.suspense"),We=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),It=Symbol.for("react.activity"),D=Symbol.iterator,Wt={},Jt={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},Ut=Object.assign,vt={};Object.freeze(vt),c.prototype.isReactComponent={},c.prototype.setState=function(r,u){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,u,"setState")},c.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(rt in L)L.hasOwnProperty(rt)&&t(rt,L[rt]);p.prototype=c.prototype,L=w.prototype=new p,L.constructor=w,Ut(L,c.prototype),L.isPureReactComponent=!0;var Ht=Array.isArray,Je=Symbol.for("react.client.reference"),E={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ct=Object.prototype.hasOwnProperty,$t=console.createTask?console.createTask:function(){return null};L={react_stack_bottom_frame:function(r){return r()}};var zt,Yt,Bt={},Ue=L.react_stack_bottom_frame.bind(L,P)(),He=$t(m(P)),qt=!1,Kt=/\/+/g,Qt=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Xt=!1,lt=null,pt=0,ft=!1,bt=!1,Zt=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:H;L=Object.freeze({__proto__:null,c:function(r){return A().useMemoCache(r)}});var rt={map:U,forEach:function(r,u,f){U(r,function(){u.apply(this,arguments)},f)},count:function(r){var u=0;return U(r,function(){u++}),u},toArray:function(r){return U(r,function(u){return u})||[]},only:function(r){if(!G(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};x.Activity=It,x.Children=rt,x.Component=c,x.Fragment=S,x.Profiler=y,x.PureComponent=w,x.StrictMode=k,x.Suspense=Gt,x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,x.__COMPILER_RUNTIME=L,x.act=function(r){var u=E.actQueue,f=pt;pt++;var d=E.actQueue=u!==null?u:[],h=!1;try{var R=r()}catch(C){E.thrownErrors.push(C)}if(0<E.thrownErrors.length)throw $(u,f),r=W(E.thrownErrors),E.thrownErrors.length=0,r;if(R!==null&&typeof R=="object"&&typeof R.then=="function"){var O=R;return Zt(function(){h||ft||(ft=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(C,J){h=!0,O.then(function(q){if($(u,f),f===0){try{B(d),H(function(){return Y(q,C,J)})}catch(ze){E.thrownErrors.push(ze)}if(0<E.thrownErrors.length){var $e=W(E.thrownErrors);E.thrownErrors.length=0,J($e)}}else C(q)},function(q){$(u,f),0<E.thrownErrors.length&&(q=W(E.thrownErrors),E.thrownErrors.length=0),J(q)})}}}var T=R;if($(u,f),f===0&&(B(d),d.length!==0&&Zt(function(){h||ft||(ft=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E.actQueue=null),0<E.thrownErrors.length)throw r=W(E.thrownErrors),E.thrownErrors.length=0,r;return{then:function(C,J){h=!0,f===0?(E.actQueue=d,H(function(){return Y(T,C,J)})):C(T)}}},x.cache=function(r){return function(){return r.apply(null,arguments)}},x.cacheSignal=function(){return null},x.captureOwnerStack=function(){var r=E.getCurrentStack;return r===null?null:r()},x.cloneElement=function(r,u,f){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var d=Ut({},r.props),h=r.key,R=r._owner;if(u!=null){var O;t:{if(ct.call(u,"ref")&&(O=Object.getOwnPropertyDescriptor(u,"ref").get)&&O.isReactWarning){O=!1;break t}O=u.ref!==void 0}O&&(R=j()),X(u)&&(g(u.key),h=""+u.key);for(T in u)!ct.call(u,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&u.ref===void 0||(d[T]=u[T])}var T=arguments.length-2;if(T===1)d.children=f;else if(1<T){O=Array(T);for(var C=0;C<T;C++)O[C]=arguments[C+2];d.children=O}for(d=N(r.type,h,d,R,r._debugStack,r._debugTask),h=2;h<arguments.length;h++)Z(arguments[h]);return d},x.createContext=function(r){return r={$$typeof:jt,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:wt,_context:r},r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=function(r,u,f){for(var d=2;d<arguments.length;d++)Z(arguments[d]);d={};var h=null;if(u!=null)for(C in Yt||!("__self"in u)||"key"in u||(Yt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),X(u)&&(g(u.key),h=""+u.key),u)ct.call(u,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(d[C]=u[C]);var R=arguments.length-2;if(R===1)d.children=f;else if(1<R){for(var O=Array(R),T=0;T<R;T++)O[T]=arguments[T+2];Object.freeze&&Object.freeze(O),d.children=O}if(r&&r.defaultProps)for(C in R=r.defaultProps,R)d[C]===void 0&&(d[C]=R[C]);h&&s(d,typeof r=="function"?r.displayName||r.name||"Unknown":r);var C=1e4>E.recentlyCreatedOwnerStacks++;return N(r,h,d,j(),C?Error("react-stack-top-frame"):Ue,C?$t(m(r)):He)},x.createRef=function(){var r={current:null};return Object.seal(r),r},x.forwardRef=function(r){r!=null&&r.$$typeof===ht?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?console.error("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&r.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:Lt,render:r},f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},x.isValidElement=G,x.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:nt,_payload:r,_init:ut},f={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return r._ioInfo=f,u._debugInfo=[{awaited:f}],u},x.memo=function(r,u){r==null&&console.error("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r),u={$$typeof:ht,type:r,compare:u===void 0?null:u};var f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},x.startTransition=function(r){var u=E.T,f={};f._updatedFibers=new Set,E.T=f;try{var d=r(),h=E.S;h!==null&&h(f,d),typeof d=="object"&&d!==null&&typeof d.then=="function"&&(E.asyncTransitions++,d.then(et,et),d.then(o,Qt))}catch(R){Qt(R)}finally{u===null&&f._updatedFibers&&(r=f._updatedFibers.size,f._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),E.T=u}},x.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},x.use=function(r){return A().use(r)},x.useActionState=function(r,u,f){return A().useActionState(r,u,f)},x.useCallback=function(r,u){return A().useCallback(r,u)},x.useContext=function(r){var u=A();return r.$$typeof===wt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(r)},x.useDebugValue=function(r,u){return A().useDebugValue(r,u)},x.useDeferredValue=function(r,u){return A().useDeferredValue(r,u)},x.useEffect=function(r,u){return r==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(r,u)},x.useEffectEvent=function(r){return A().useEffectEvent(r)},x.useId=function(){return A().useId()},x.useImperativeHandle=function(r,u,f){return A().useImperativeHandle(r,u,f)},x.useInsertionEffect=function(r,u){return r==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(r,u)},x.useLayoutEffect=function(r,u){return r==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(r,u)},x.useMemo=function(r,u){return A().useMemo(r,u)},x.useOptimistic=function(r,u){return A().useOptimistic(r,u)},x.useReducer=function(r,u,f){return A().useReducer(r,u,f)},x.useRef=function(r){return A().useRef(r)},x.useState=function(r){return A().useState(r)},x.useSyncExternalStore=function(r,u,f){return A().useSyncExternalStore(r,u,f)},x.useTransition=function(){return A().useTransition()},x.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Vt=xt((ls,Mt)=>{"use strict";process.env.NODE_ENV==="production"?Mt.exports=Le():Mt.exports=Ge()});var gt;(n=>{class t{static createFrom(a={}){return new t(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email,this.url=a.url}}n.PluginAuthor=t;class i{static createFrom(a={}){return new i(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.plugin=a.plugin,this.area=a.area,this.resources=a.resources,this.extension=a.extension}}n.PluginResourceComponent=i;class l{static createFrom(a={}){return new l(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.resource=this.convertValues(a.resource,i)}convertValues(a,m,j=!1){if(!a)return a;if(a.slice&&a.map)return a.map(P=>this.convertValues(P,m));if(typeof a=="object"){if(j){for(let P of Object.keys(a))a[P]=new m(a[P]);return a}return new m(a)}return a}}n.PluginComponents=l;class c{static createFrom(a={}){return new c(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email}}n.PluginMaintainer=c;class p{static createFrom(a={}){return new p(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.primary=a.primary,this.secondary=a.secondary,this.tertiary=a.tertiary}}n.PluginThemeColors=p;class w{static createFrom(a={}){return new w(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.colors=this.convertValues(a.colors,p)}convertValues(a,m,j=!1){if(!a)return a;if(a.slice&&a.map)return a.map(P=>this.convertValues(P,m));if(typeof a=="object"){if(j){for(let P of Object.keys(a))a[P]=new m(a[P]);return a}return new m(a)}return a}}n.PluginTheme=w;class o{static createFrom(a={}){return new o(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.id=a.id,this.version=a.version,this.name=a.name,this.icon=a.icon,this.icon_url=a.icon_url,this.description=a.description,this.repository=a.repository,this.website=a.website,this.category=a.category,this.license=a.license,this.author=this.convertValues(a.author,t),this.maintainers=this.convertValues(a.maintainers,c),this.tags=a.tags,this.dependencies=a.dependencies,this.capabilities=a.capabilities,this.theme=this.convertValues(a.theme,w),this.components=this.convertValues(a.components,l)}convertValues(a,m,j=!1){if(!a)return a;if(a.slice&&a.map)return a.map(P=>this.convertValues(P,m));if(typeof a=="object"){if(j){for(let P of Object.keys(a))a[P]=new m(a[P]);return a}return new m(a)}return a}}n.PluginMeta=o})(gt||(gt={}));var ee;(p=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.pid=o.pid,this.protocol=o.protocol,this.protocolVersion=o.protocolVersion,this.addr=o.addr,this.vitePort=o.vitePort,this.pluginId=o.pluginId,this.version=o.version,this.startedAt=o.startedAt}}p.DevInfoFile=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o))}}p.DevServerManager=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.pluginID=o.pluginID,this.mode=o.mode,this.devPath=o.devPath,this.vitePort=o.vitePort,this.viteURL=o.viteURL,this.viteStatus=o.viteStatus,this.goStatus=o.goStatus,this.lastBuildDuration=o.lastBuildDuration,this.lastBuildTime=this.convertValues(o.lastBuildTime,V.Time),this.lastError=o.lastError,this.grpcConnected=o.grpcConnected}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.DevServerState=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,V.Time),this.source=o.source,this.level=o.level,this.message=o.message,this.pluginID=o.pluginID}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.LogEntry=c})(ee||(ee={}));var ne;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,V.Time),this.labels=n.labels,this.params=n.params,this.id=n.id,this.command=n.command,this.attached=n.attached}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Session=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.session=this.convertValues(n.session,t),this.buffer=n.buffer}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.AttachSessionResult=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.labels=n.labels,this.command=n.command}}w.CreateTerminalOptions=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,ot.ActionTargetBuilder),this.default_command=n.default_command}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Handler=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.params=n.params,this.labels=n.labels,this.id=n.id,this.resource_plugin=n.resource_plugin,this.resource_key=n.resource_key,this.resource_data=n.resource_data,this.command=n.command,this.tty=n.tty}}w.SessionOptions=p})(ne||(ne={}));var re;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.target=n.target,this.follow=n.follow,this.include_previous=n.include_previous,this.include_timestamps=n.include_timestamps,this.tail_lines=n.tail_lines,this.since_seconds=n.since_seconds,this.since_time=this.convertValues(n.since_time,V.Time),this.limit_bytes=n.limit_bytes,this.include_source_events=n.include_source_events,this.params=n.params}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.LogSessionOptions=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_data=n.resource_data,this.options=this.convertValues(n.options,t)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.CreateSessionOptions=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,ot.ActionTargetBuilder)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Handler=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.labels=n.labels}}w.LogSource=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.plugin_id=n.plugin_id,this.connection_id=n.connection_id,this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.options=this.convertValues(n.options,t),this.status=n.status,this.active_sources=this.convertValues(n.active_sources,c),this.created_at=this.convertValues(n.created_at,V.Time)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.LogSession=p})(re||(re={}));var ie;(l=>{class t{static createFrom(p={}){return new t(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.displayName=p.displayName,this.pattern=p.pattern}}l.FileFilter=t;class i{static createFrom(p={}){return new i(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.defaultDirectory=p.defaultDirectory,this.defaultFilename=p.defaultFilename,this.title=p.title,this.filters=this.convertValues(p.filters,t),this.showHiddenFiles=p.showHiddenFiles,this.canCreateDirectories=p.canCreateDirectories,this.resolvesAliases=p.resolvesAliases,this.treatPackagesAsDirectories=p.treatPackagesAsDirectories}convertValues(p,w,o=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,w));if(typeof p=="object"){if(o){for(let n of Object.keys(p))p[n]=new w(p[n]);return p}return new w(p)}return p}}l.FileDialogOptions=i})(ie||(ie={}));var oe;(P=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.metric_id=s.metric_id,this.min=s.min,this.max=s.max,this.avg=s.avg,this.sum=s.sum,this.p50=s.p50,this.p90=s.p90,this.p99=s.p99,this.count=s.count,this.window=s.window,this.labels=s.labels}}P.AggregateValue=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.min=s.min,this.max=s.max,this.color=s.color}}P.ColorRange=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.metric_id=s.metric_id,this.value=s.value,this.timestamp=this.convertValues(s.timestamp,V.Time),this.labels=s.labels}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.CurrentValue=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.timestamp=this.convertValues(s.timestamp,V.Time),this.value=s.value,this.labels=s.labels}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.DataPoint=c;class p{static createFrom(s={}){return new p(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.id=s.id,this.name=s.name,this.unit=s.unit,this.icon=s.icon,this.color_ranges=this.convertValues(s.color_ranges,i),this.format_string=s.format_string,this.supported_shapes=s.supported_shapes,this.chart_group=s.chart_group}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.MetricDescriptor=p;class w{static createFrom(s={}){return new w(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource=s.resource,this.metrics=this.convertValues(s.metrics,p)}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.Handler=w;class o{static createFrom(s={}){return new o(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin_id=s.plugin_id,this.provider_id=s.provider_id,this.name=s.name,this.icon=s.icon,this.description=s.description,this.handlers=this.convertValues(s.handlers,w)}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.MetricProviderSummary=o;class n{static createFrom(s={}){return new n(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.metric_id=s.metric_id,this.data_points=this.convertValues(s.data_points,c),this.labels=s.labels}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.TimeSeries=n;class g{static createFrom(s={}){return new g(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.time_series=this.convertValues(s.time_series,n),this.current_value=this.convertValues(s.current_value,l),this.aggregate_value=this.convertValues(s.aggregate_value,t)}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.MetricResult=g;class a{static createFrom(s={}){return new a(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource_key=s.resource_key,this.resource_id=s.resource_id,this.resource_namespace=s.resource_namespace,this.resource_data=s.resource_data,this.metric_ids=s.metric_ids,this.shape=s.shape,this.start_time=this.convertValues(s.start_time,V.Time),this.end_time=this.convertValues(s.end_time,V.Time),this.step=s.step,this.params=s.params}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.QueryRequest=a;class m{static createFrom(s={}){return new m(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.success=s.success,this.results=this.convertValues(s.results,g),this.error=s.error}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.QueryResponse=m;class j{static createFrom(s={}){return new j(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource_key=s.resource_key,this.resource_id=s.resource_id,this.resource_namespace=s.resource_namespace,this.resource_data=s.resource_data,this.metric_ids=s.metric_ids,this.interval=s.interval}}P.SubscribeRequest=j})(oe||(oe={}));var it;(p=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource_id=o.resource_id,this.connection_id=o.connection_id}}p.FindPortForwardSessionRequest=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.algorithm=o.algorithm,this.key=o.key,this.enabled=o.enabled}}p.PortForwardSessionEncryption=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.created_at=this.convertValues(o.created_at,V.Time),this.updated_at=this.convertValues(o.updated_at,V.Time),this.connection=o.connection,this.labels=o.labels,this.id=o.id,this.protocol=o.protocol,this.state=o.state,this.connection_type=o.connection_type,this.encryption=this.convertValues(o.encryption,i),this.local_port=o.local_port,this.remote_port=o.remote_port}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.PortForwardSession=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.connection=o.connection,this.labels=o.labels,this.params=o.params,this.protocol=o.protocol,this.connection_type=o.connection_type,this.encryption=this.convertValues(o.encryption,i),this.local_port=o.local_port,this.remote_port=o.remote_port}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.PortForwardSessionOptions=c})(it||(it={}));var se;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.DevMode=c.DevMode,this.DevModePath=c.DevModePath,this.ExistingState=this.convertValues(c.ExistingState,ot.PluginState)}convertValues(c,p,w=!1){if(!c)return c;if(c.slice&&c.map)return c.map(o=>this.convertValues(o,p));if(typeof c=="object"){if(w){for(let o of Object.keys(c))c[o]=new p(c[o]);return c}return new p(c)}return c}}i.LoadPluginOptions=t})(se||(se={}));var ae;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.description=n.description,this.icon_url=n.icon_url,this.category=n.category,this.tags=n.tags,this.license=n.license,this.official=n.official,this.featured=n.featured,this.download_count=n.download_count,this.average_rating=n.average_rating,this.review_count=n.review_count,this.repository=n.repository,this.url=n.url,this.installed=n.installed,this.installed_version=n.installed_version,this.latest_version=n.latest_version,this.update_available=n.update_available}}w.AvailablePlugin=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.date=n.date,this.count=n.count}}w.DailyStat=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.total=n.total,this.last_month=n.last_month,this.last_week=n.last_week,this.daily_stats=this.convertValues(n.daily_stats,i)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.DownloadStats=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.user_id=n.user_id,this.rating=n.rating,this.title=n.title,this.body=n.body,this.created_at=n.created_at}}w.Review=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.version=n.version,this.description=n.description,this.changelog=n.changelog,this.min_ide_version=n.min_ide_version,this.max_ide_version=n.max_ide_version,this.capabilities=n.capabilities,this.created_at=n.created_at}}w.VersionInfo=p})(ae||(ae={}));var ue;(w=>{let t;(v=>(v.TEXT="text",v.SELECT="select",v.MULTISELECT="multiselect",v.INTEGER="integer",v.FLOAT="float",v.TOGGLE="toggle",v.COLOR="color",v.DATETIME="datetime",v.PASSWORD="password"))(t=w.SettingType||(w.SettingType={}));class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}}w.SettingFileSelection=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}}w.SettingOption=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,l),this.fileSelection=this.convertValues(n.fileSelection,i),this.sensitive=n.sensitive}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Setting=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,c,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Category=p})(ue||(ue={}));var V;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c))}}i.Time=t})(V||(V={}));var ce;(p=>{let t;(P=>(P.CONFIG="config",P.FILESYSTEM="fs",P.IMAGE="image",P.KUBERNETES="kubernetes",P.REPOSITORY="repository",P.ROOTFS="rootfs",P.SBOM="sbom"))(t=p.Command||(p.Command={}));let i;(a=>(a.VULN="vuln",a.MISCONFIG="misconfig",a.SECRET="secret",a.LICENSE="license"))(i=p.Scanner||(p.Scanner={}));class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.filePatterns=o.filePatterns,this.skipDirs=o.skipDirs,this.skipFiles=o.skipFiles,this.scanners=o.scanners}}p.ScanOptions=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,V.Time),this.result=o.result,this.id=o.id,this.command=o.command}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.ScanResult=c})(ce||(ce={}));var ot;(B=>{let t;(D=>(D.UNKNOWN="UNKNOWN",D.CONNECTED="CONNECTED",D.DISCONNECTED="DISCONNECTED",D.PENDING="PENDING",D.FAILED="FAILED",D.ERROR="ERROR",D.UNAUTHORIZED="UNAUTHORIZED",D.FORBIDDEN="FORBIDDEN",D.BAD_REQUEST="BAD_REQUEST",D.NOT_FOUND="NOT_FOUND",D.TIMEOUT="TIMEOUT",D.UNAVAILABLE="UNAVAILABLE",D.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"))(t=B.ConnectionStatusCode||(B.ConnectionStatusCode={}));class i{static createFrom(e={}){return new i(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.label=e.label,this.description=e.description,this.icon=e.icon,this.scope=e.scope,this.streaming=e.streaming}}B.ActionDescriptor=i;class l{static createFrom(e={}){return new l(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.namespace=e.namespace,this.params=e.params}}B.ActionInput=l;class c{static createFrom(e={}){return new c(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.success=e.success,this.data=e.data,this.message=e.message}}B.ActionResult=c;class p{static createFrom(e={}){return new p(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.selectors=e.selectors,this.label_selector=e.label_selector,this.label=e.label,this.paths=e.paths}}B.ActionTargetBuilder=p;class w{static createFrom(e={}){return new w(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.idAccessor=e.idAccessor,this.namespaceAccessor=e.namespaceAccessor,this.namespaced=e.namespaced,this.resourceKey=e.resourceKey,this.keyAccessor=e.keyAccessor,this.keyMap=e.keyMap,this.detailExtractors=e.detailExtractors,this.displayId=e.displayId}}B.ResourceLink=w;class o{static createFrom(e={}){return new o(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.header=e.header,this.accessor=e.accessor,this.accessorPriority=e.accessorPriority,this.colorMap=e.colorMap,this.color=e.color,this.align=e.align,this.hidden=e.hidden,this.width=e.width,this.formatter=e.formatter,this.component=e.component,this.componentParams=e.componentParams,this.resourceLink=this.convertValues(e.resourceLink,w),this.valueMap=e.valueMap}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ColumnDef=o;class n{static createFrom(e={}){return new n(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.last_refresh=this.convertValues(e.last_refresh,V.Time),this.data=e.data,this.labels=e.labels,this.id=e.id,this.uid=e.uid,this.name=e.name,this.description=e.description,this.avatar=e.avatar,this.expiry_time=e.expiry_time,this.Client=e.Client}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.Connection=n;class g{static createFrom(e={}){return new g(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=this.convertValues(e.connection,n),this.status=e.status,this.error=e.error,this.details=e.details}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ConnectionStatus=g;class a{static createFrom(e={}){return new a(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.input=e.input,this.namespace=e.namespace}}B.CreateInput=a;class m{static createFrom(e={}){return new m(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.CreateResult=m;class j{static createFrom(e={}){return new j(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}B.DeleteInput=j;class P{static createFrom(e={}){return new P(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.DeleteResult=P;class X{static createFrom(e={}){return new X(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.resourceKey=e.resourceKey,this.fileMatch=e.fileMatch,this.uri=e.uri,this.url=e.url,this.content=e.content,this.language=e.language}}B.EditorSchema=X;class s{static createFrom(e={}){return new s(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize}}B.PaginationParams=s;class v{static createFrom(e={}){return new v(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.by=e.by,this.direction=e.direction}}B.OrderParams=v;class N{static createFrom(e={}){return new N(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.conditions=e.conditions,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,s)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.FindInput=N;class b{static createFrom(e={}){return new b(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize,this.total=e.total,this.pages=e.pages}}B.PaginationResult=b;class Z{static createFrom(e={}){return new Z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.FindResult=Z;class G{static createFrom(e={}){return new G(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.id=e.id,this.namespace=e.namespace}}B.GetInput=G;class at{static createFrom(e={}){return new at(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.GetResult=at;class z{static createFrom(e={}){return new z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=e.connection,this.resources=e.resources,this.resourceCounts=e.resourceCounts,this.totalResources=e.totalResources,this.syncedCount=e.syncedCount,this.errorCount=e.errorCount}}B.InformerConnectionSummary=z;class tt{static createFrom(e={}){return new tt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.title=e.title,this.icon=e.icon,this.description=e.description,this.items=this.convertValues(e.items,tt)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.LayoutItem=tt;class I{static createFrom(e={}){return new I(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,s)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ListInput=I;class U{static createFrom(e={}){return new U(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ListResult=U;class ut{static createFrom(e={}){return new ut(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,gt.PluginMeta),this.enabled=e.enabled,this.running=e.running,this.devMode=e.devMode,this.devPath=e.devPath,this.loading=e.loading,this.loadError=e.loadError,this.capabilities=e.capabilities}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.Plugin=ut;class A{static createFrom(e={}){return new A(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,gt.PluginMeta),this.ID=e.ID,this.DevPath=e.DevPath,this.Enabled=e.Enabled,this.DevMode=e.DevMode}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.PluginState=A;class et{static createFrom(e={}){return new et(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id_accessor=e.id_accessor,this.namespace_accessor=e.namespace_accessor,this.memoizer_accessor=e.memoizer_accessor,this.columnDefs=this.convertValues(e.columnDefs,o),this.supportedOperations=e.supportedOperations}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ResourceDefinition=et;class H{static createFrom(e={}){return new H(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.name=e.name,this.description=e.description,this.icon=e.icon,this.resources=this.convertValues(e.resources,Array,!0)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ResourceGroup=H;class W{static createFrom(e={}){return new W(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.group=e.group,this.version=e.version,this.kind=e.kind,this.label=e.label,this.icon=e.icon,this.description=e.description,this.category=e.category}}B.ResourceMeta=W;class ${static createFrom(e={}){return new $(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}B.UpdateInput=$;class Y{static createFrom(e={}){return new Y(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.UpdateResult=Y})(ot||(ot={}));var le;(p=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin=o.plugin}}p.GetPluginComponentsInput=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin=o.plugin,this.resource=o.resource,this.area=o.area}}p.GetResourceAreaComponentInput=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin=o.plugin,this.resource=o.resource}}p.GetResourceComponentsInput=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.owner=o.owner,this.name=o.name,this.plugin=o.plugin,this.resource=o.resource,this.area=o.area,this.extension=o.extension}}p.ResourceComponent=c})(le||(le={}));var pe;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.filename=c.filename,this.contents=c.contents}}i.GetLanguageInput=t})(pe||(pe={}));var fe={};M(fe,{GetOperatingSystem:()=>Ze,OpenFileSelectionDialog:()=>tn,SaveFileDialog:()=>en,WriteFileContent:()=>nn});function Ze(){return window.go.main.App.GetOperatingSystem()}function tn(t){return window.go.main.App.OpenFileSelectionDialog(t)}function en(t){return window.go.main.App.SaveFileDialog(t)}function nn(t,i){return window.go.main.App.WriteFileContent(t,i)}var ge={};M(ge,{Delete:()=>rn,Get:()=>on,Keys:()=>sn,Set:()=>an});function rn(t,i){return window.go.data.Client.Delete(t,i)}function on(t,i){return window.go.data.Client.Get(t,i)}function sn(t){return window.go.data.Client.Keys(t)}function an(t,i,l){return window.go.data.Client.Set(t,i,l)}var de={};M(de,{GetDevServerLogs:()=>un,GetDevServerState:()=>cn,GetExternalPluginInfo:()=>ln,Initialize:()=>pn,IsManaged:()=>fn,ListDevServerStates:()=>gn,RestartDevServer:()=>dn,Shutdown:()=>mn,StartDevServer:()=>yn,StartDevServerForPath:()=>wn,StopDevServer:()=>hn});function un(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function cn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function ln(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function pn(t){return window.go.devserver.DevServerManager.Initialize(t)}function fn(t){return window.go.devserver.DevServerManager.IsManaged(t)}function gn(){return window.go.devserver.DevServerManager.ListDevServerStates()}function dn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function mn(){return window.go.devserver.DevServerManager.Shutdown()}function yn(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function wn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function hn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var me={};M(me,{Debug:()=>vn,Error:()=>bn,Info:()=>Sn,Log:()=>xn,ReadLog:()=>_n,StartTail:()=>On,StopTail:()=>En,Warn:()=>Rn});function vn(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function bn(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function Sn(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function xn(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function _n(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function On(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function En(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function Rn(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var ye={};M(ye,{AttachSession:()=>Cn,CloseSession:()=>Pn,CreateSession:()=>Tn,CreateTerminal:()=>kn,DetachSession:()=>Fn,GetHandler:()=>Nn,GetHandlers:()=>An,GetPluginHandlers:()=>Dn,GetSession:()=>Mn,ListPlugins:()=>Vn,ListSessions:()=>jn,ResizeSession:()=>Ln,WriteSession:()=>Gn});function Cn(t){return window.go.exec.Client.AttachSession(t)}function Pn(t){return window.go.exec.Client.CloseSession(t)}function Tn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function kn(t){return window.go.exec.Client.CreateTerminal(t)}function Fn(t){return window.go.exec.Client.DetachSession(t)}function Nn(t,i){return window.go.exec.Client.GetHandler(t,i)}function An(){return window.go.exec.Client.GetHandlers()}function Dn(t){return window.go.exec.Client.GetPluginHandlers(t)}function Mn(t){return window.go.exec.Client.GetSession(t)}function Vn(){return window.go.exec.Client.ListPlugins()}function jn(){return window.go.exec.Client.ListSessions()}function Ln(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function Gn(t,i){return window.go.exec.Client.WriteSession(t,i)}var we={};M(we,{CloseSession:()=>In,CreateSession:()=>Wn,GetSession:()=>Jn,GetSupportedResources:()=>Un,ListSessions:()=>Hn,PauseSession:()=>$n,ResumeSession:()=>zn,UpdateSessionOptions:()=>Yn});function In(t){return window.go.logs.Client.CloseSession(t)}function Wn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function Jn(t){return window.go.logs.Client.GetSession(t)}function Un(t){return window.go.logs.Client.GetSupportedResources(t)}function Hn(){return window.go.logs.Client.ListSessions()}function $n(t){return window.go.logs.Client.PauseSession(t)}function zn(t){return window.go.logs.Client.ResumeSession(t)}function Yn(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var he={};M(he,{GetProviders:()=>Bn,GetProvidersForResource:()=>qn,Query:()=>Kn,QueryAll:()=>Qn,Subscribe:()=>Xn,Unsubscribe:()=>Zn});function Bn(){return window.go.metric.Client.GetProviders()}function qn(t){return window.go.metric.Client.GetProvidersForResource(t)}function Kn(t,i,l){return window.go.metric.Client.Query(t,i,l)}function Qn(t,i,l,c,p,w,o,n,g,a){return window.go.metric.Client.QueryAll(t,i,l,c,p,w,o,n,g,a)}function Xn(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function Zn(t){return window.go.metric.Client.Unsubscribe(t)}var ve={};M(ve,{ClosePortForwardSession:()=>_t,FindPortForwardSessions:()=>Ot,GetPortForwardSession:()=>tr,GetSupportedPortForwardTargets:()=>er,ListAllPortForwardSessions:()=>nr,ListPortForwardSessions:()=>rr,StartResourcePortForwardingSession:()=>Et});function _t(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Ot(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function tr(t){return window.go.networker.Client.GetPortForwardSession(t)}function er(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function nr(){return window.go.networker.Client.ListAllPortForwardSessions()}function rr(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function Et(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var be={};M(be,{AddTarget:()=>ir,GetPlugin:()=>or,GetPluginDownloadStats:()=>sr,GetPluginMeta:()=>ar,GetPluginReadme:()=>ur,GetPluginReleaseHistory:()=>cr,GetPluginReviews:()=>lr,GetPluginVersions:()=>pr,Initialize:()=>fr,InstallFromPathPrompt:()=>gr,InstallInDevMode:()=>dr,InstallPluginFromPath:()=>mr,InstallPluginVersion:()=>yr,ListAvailablePlugins:()=>wr,ListPluginMetas:()=>hr,ListPlugins:()=>vr,LoadPlugin:()=>br,ReloadPlugin:()=>Sr,RemoveTarget:()=>xr,Run:()=>_r,SearchPlugins:()=>Or,SetDevServerChecker:()=>Er,SetDevServerManager:()=>Rr,Shutdown:()=>Cr,UninstallPlugin:()=>Pr,UnloadPlugin:()=>Tr});function ir(t){return window.go.plugin.pluginManager.AddTarget(t)}function or(t){return window.go.plugin.pluginManager.GetPlugin(t)}function sr(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function ar(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function ur(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function cr(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function lr(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function pr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function fr(t){return window.go.plugin.pluginManager.Initialize(t)}function gr(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function dr(){return window.go.plugin.pluginManager.InstallInDevMode()}function mr(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function yr(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function wr(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function hr(){return window.go.plugin.pluginManager.ListPluginMetas()}function vr(){return window.go.plugin.pluginManager.ListPlugins()}function br(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function Sr(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function xr(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function _r(t){return window.go.plugin.pluginManager.Run(t)}function Or(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function Er(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function Rr(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function Cr(){return window.go.plugin.pluginManager.Shutdown()}function Pr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function Tr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var Se={};M(Se,{AddConnection:()=>kr,Create:()=>Fr,Delete:()=>Nr,EnsureInformerForResource:()=>Ar,ExecuteAction:()=>Dr,Find:()=>Mr,Get:()=>Vr,GetActions:()=>jr,GetConnection:()=>Lr,GetConnectionNamespaces:()=>Gr,GetDefaultLayout:()=>Ir,GetEditorSchemas:()=>Wr,GetInformerState:()=>Jr,GetLayout:()=>Ur,GetResourceDefinition:()=>Hr,GetResourceGroup:()=>$r,GetResourceGroups:()=>zr,GetResourceType:()=>Yr,GetResourceTypes:()=>Br,HasResourceType:()=>qr,List:()=>Kr,ListAllConnections:()=>Qr,ListConnections:()=>Xr,ListPlugins:()=>Zr,LoadConnections:()=>ti,RemoveConnection:()=>ei,SetLayout:()=>ni,StartConnection:()=>ri,StartConnectionInformer:()=>ii,StopConnection:()=>oi,StopConnectionInformer:()=>si,StreamAction:()=>ai,Update:()=>ui,UpdateConnection:()=>ci});function kr(t,i){return window.go.resource.Client.AddConnection(t,i)}function Fr(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Nr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Ar(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function Dr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Mr(t,i,l,c){return window.go.resource.Client.Find(t,i,l,c)}function Vr(t,i,l,c){return window.go.resource.Client.Get(t,i,l,c)}function jr(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Lr(t,i){return window.go.resource.Client.GetConnection(t,i)}function Gr(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Ir(t){return window.go.resource.Client.GetDefaultLayout(t)}function Wr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function Jr(t,i){return window.go.resource.Client.GetInformerState(t,i)}function Ur(t,i){return window.go.resource.Client.GetLayout(t,i)}function Hr(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function $r(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function zr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Yr(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Br(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function qr(t,i){return window.go.resource.Client.HasResourceType(t,i)}function Kr(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function Qr(){return window.go.resource.Client.ListAllConnections()}function Xr(t){return window.go.resource.Client.ListConnections(t)}function Zr(){return window.go.resource.Client.ListPlugins()}function ti(t){return window.go.resource.Client.LoadConnections(t)}function ei(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function ni(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function ri(t,i){return window.go.resource.Client.StartConnection(t,i)}function ii(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function oi(t,i){return window.go.resource.Client.StopConnection(t,i)}function si(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function ai(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function ui(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function ci(t,i){return window.go.resource.Client.UpdateConnection(t,i)}var xe={};M(xe,{BrowserOpenURL:()=>Ct,CanResolveFilePaths:()=>oo,ClipboardGetText:()=>eo,ClipboardSetText:()=>no,Environment:()=>Qi,EventsEmit:()=>Si,EventsOff:()=>hi,EventsOffAll:()=>vi,EventsOn:()=>wi,EventsOnMultiple:()=>Rt,EventsOnce:()=>bi,Hide:()=>Zi,LogDebug:()=>fi,LogError:()=>mi,LogFatal:()=>yi,LogInfo:()=>gi,LogPrint:()=>li,LogTrace:()=>pi,LogWarning:()=>di,OnFileDrop:()=>ro,OnFileDropOff:()=>io,Quit:()=>Xi,ResolveFilePaths:()=>so,ScreenGetAll:()=>Bi,Show:()=>to,WindowCenter:()=>Pi,WindowFullscreen:()=>ki,WindowGetPosition:()=>Li,WindowGetSize:()=>Ai,WindowHide:()=>Gi,WindowIsFullscreen:()=>Ni,WindowIsMaximised:()=>Hi,WindowIsMinimised:()=>qi,WindowIsNormal:()=>Ki,WindowMaximise:()=>Wi,WindowMinimise:()=>$i,WindowReload:()=>xi,WindowReloadApp:()=>_i,WindowSetAlwaysOnTop:()=>Oi,WindowSetBackgroundColour:()=>Yi,WindowSetDarkTheme:()=>Ci,WindowSetLightTheme:()=>Ri,WindowSetMaxSize:()=>Mi,WindowSetMinSize:()=>Vi,WindowSetPosition:()=>ji,WindowSetSize:()=>Di,WindowSetSystemDefaultTheme:()=>Ei,WindowSetTitle:()=>Ti,WindowShow:()=>Ii,WindowToggleMaximise:()=>Ji,WindowUnfullscreen:()=>Fi,WindowUnmaximise:()=>Ui,WindowUnminimise:()=>zi});function li(t){window.runtime.LogPrint(t)}function pi(t){window.runtime.LogTrace(t)}function fi(t){window.runtime.LogDebug(t)}function gi(t){window.runtime.LogInfo(t)}function di(t){window.runtime.LogWarning(t)}function mi(t){window.runtime.LogError(t)}function yi(t){window.runtime.LogFatal(t)}function Rt(t,i,l){return window.runtime.EventsOnMultiple(t,i,l)}function wi(t,i){return Rt(t,i,-1)}function hi(t,...i){return window.runtime.EventsOff(t,...i)}function vi(){return window.runtime.EventsOffAll()}function bi(t,i){return Rt(t,i,1)}function Si(t){let i=[t].slice.call(arguments);return window.runtime.EventsEmit.apply(null,i)}function xi(){window.runtime.WindowReload()}function _i(){window.runtime.WindowReloadApp()}function Oi(t){window.runtime.WindowSetAlwaysOnTop(t)}function Ei(){window.runtime.WindowSetSystemDefaultTheme()}function Ri(){window.runtime.WindowSetLightTheme()}function Ci(){window.runtime.WindowSetDarkTheme()}function Pi(){window.runtime.WindowCenter()}function Ti(t){window.runtime.WindowSetTitle(t)}function ki(){window.runtime.WindowFullscreen()}function Fi(){window.runtime.WindowUnfullscreen()}function Ni(){return window.runtime.WindowIsFullscreen()}function Ai(){return window.runtime.WindowGetSize()}function Di(t,i){window.runtime.WindowSetSize(t,i)}function Mi(t,i){window.runtime.WindowSetMaxSize(t,i)}function Vi(t,i){window.runtime.WindowSetMinSize(t,i)}function ji(t,i){window.runtime.WindowSetPosition(t,i)}function Li(){return window.runtime.WindowGetPosition()}function Gi(){window.runtime.WindowHide()}function Ii(){window.runtime.WindowShow()}function Wi(){window.runtime.WindowMaximise()}function Ji(){window.runtime.WindowToggleMaximise()}function Ui(){window.runtime.WindowUnmaximise()}function Hi(){return window.runtime.WindowIsMaximised()}function $i(){window.runtime.WindowMinimise()}function zi(){window.runtime.WindowUnminimise()}function Yi(t,i,l,c){window.runtime.WindowSetBackgroundColour(t,i,l,c)}function Bi(){return window.runtime.ScreenGetAll()}function qi(){return window.runtime.WindowIsMinimised()}function Ki(){return window.runtime.WindowIsNormal()}function Ct(t){window.runtime.BrowserOpenURL(t)}function Qi(){return window.runtime.Environment()}function Xi(){window.runtime.Quit()}function Zi(){window.runtime.Hide()}function to(){window.runtime.Show()}function eo(){return window.runtime.ClipboardGetText()}function no(t){return window.runtime.ClipboardSetText(t)}function ro(t,i){return window.runtime.OnFileDrop(t,i)}function io(){return window.runtime.OnFileDropOff()}function oo(){return window.runtime.CanResolveFilePaths()}function so(t){return window.runtime.ResolveFilePaths(t)}var _e={};M(_e,{GetSetting:()=>ao,ListPlugins:()=>uo,ListSettings:()=>co,PluginValues:()=>lo,SetSetting:()=>po,SetSettings:()=>fo,Values:()=>go});function ao(t,i){return window.go.settings.Client.GetSetting(t,i)}function uo(){return window.go.settings.Client.ListPlugins()}function co(t){return window.go.settings.Client.ListSettings(t)}function lo(t){return window.go.settings.Client.PluginValues(t)}function po(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function fo(t,i){return window.go.settings.Client.SetSettings(t,i)}function go(){return window.go.settings.Client.Values()}var Oe={};M(Oe,{GetBool:()=>mo,GetCategories:()=>yo,GetCategory:()=>wo,GetCategoryValues:()=>ho,GetFloat:()=>vo,GetFloatSlice:()=>bo,GetInt:()=>So,GetIntSlice:()=>xo,GetSetting:()=>_o,GetSettingValue:()=>Oo,GetString:()=>Eo,GetStringSlice:()=>Ro,HasSetting:()=>Co,Initialize:()=>Po,ListSettings:()=>To,LoadSettings:()=>ko,RegisterSetting:()=>Fo,RegisterSettings:()=>No,ResetSetting:()=>Ao,SaveSettings:()=>Do,SetSetting:()=>Mo,SetSettings:()=>Vo,Values:()=>jo});function mo(t){return window.go.settings.provider.GetBool(t)}function yo(){return window.go.settings.provider.GetCategories()}function wo(t){return window.go.settings.provider.GetCategory(t)}function ho(t){return window.go.settings.provider.GetCategoryValues(t)}function vo(t){return window.go.settings.provider.GetFloat(t)}function bo(t){return window.go.settings.provider.GetFloatSlice(t)}function So(t){return window.go.settings.provider.GetInt(t)}function xo(t){return window.go.settings.provider.GetIntSlice(t)}function _o(t){return window.go.settings.provider.GetSetting(t)}function Oo(t){return window.go.settings.provider.GetSettingValue(t)}function Eo(t){return window.go.settings.provider.GetString(t)}function Ro(t){return window.go.settings.provider.GetStringSlice(t)}function Co(t){return window.go.settings.provider.HasSetting(t)}function Po(t,i){return window.go.settings.provider.Initialize(t,i)}function To(){return window.go.settings.provider.ListSettings()}function ko(){return window.go.settings.provider.LoadSettings()}function Fo(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function No(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Ao(t){return window.go.settings.provider.ResetSetting(t)}function Do(){return window.go.settings.provider.SaveSettings()}function Mo(t,i){return window.go.settings.provider.SetSetting(t,i)}function Vo(t){return window.go.settings.provider.SetSettings(t)}function jo(){return window.go.settings.provider.Values()}var Ee={};M(Ee,{Scan:()=>Lo});function Lo(t,i,l){return window.go.trivy.Manager.Scan(t,i,l)}var Re={};M(Re,{GetPluginComponents:()=>Go,GetResourceAreaComponent:()=>Io,GetResourceComponents:()=>Wo});function Go(t){return window.go.ui.Client.GetPluginComponents(t)}function Io(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Wo(t){return window.go.ui.Client.GetResourceComponents(t)}var Ce={};M(Ce,{DetectLanguage:()=>Jo});function Jo(t){return window.go.utils.Client.DetectLanguage(t)}var Ie=te(Vt()),os=Ie.default.createContext(void 0);import.meta.env.DEV&&(os.displayName="PortForwardContext");var st=te(Vt());function ss({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=st.default.useState([]);st.default.useEffect(()=>{!t||!i||!l||Ot(t,i,it.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let w=st.default.useCallback(async n=>{let g=it.PortForwardSessionOptions.createFrom({local_port:n.toPort||0,remote_port:n.fromPort,protocol:n.protocol||"TCP",connection_type:"RESOURCE",connection:{resource_data:n.resource,connection_id:i,plugin_id:t,resource_id:n.resourceId,resource_key:n.resourceKey},labels:n.labels??{},params:n.parameters??{}});try{let a=await Et(t,i,g);return p([...c,a]),n.openInBrowser&&Ct(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),o=st.default.useCallback(async n=>{try{await _t(n),p(c.filter(g=>g.id!==n))}catch(g){throw g instanceof Error&&console.log(g),g}},[c]);return{sessions:c,forward:w,close:o}}export{os as PortForwardContext,fe as app,gt as config,ge as data,de as devserver,me as diagnostics,ye as exec,we as logs,ie as main,he as metric,ve as networker,se as plugin,be as pluginManager,ae as registry,Se as resource,xe as runtime,_e as settings,Oe as settingsProvider,V as time,Ee as trivy,ot as types,Re as ui,ss as useResourcePortForwarder,Ce as utils};
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function et(){O.asyncTransitions--}function $(r){if(lt===null)try{var u=("require"+Math.random()).slice(0,7);lt=(yt&&yt[u]).call(yt,"timers").setImmediate}catch{lt=function(d){Kt===!1&&(Kt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var w=new MessageChannel;w.port1.onmessage=d,w.port2.postMessage(void 0)}}return lt(r)}function J(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function Y(r,u){u!==pt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pt=u}function B(r,u,f){var d=O.actQueue;if(d!==null)if(d.length!==0)try{W(d),$(function(){return B(r,u,f)});return}catch(w){O.thrownErrors.push(w)}else O.actQueue=null;0<O.thrownErrors.length?(d=J(O.thrownErrors),O.thrownErrors.length=0,f(d)):u(r)}function W(r){if(!bt){bt=!0;var u=0;try{for(;u<r.length;u++){var f=r[u];do{O.didUsePromise=!1;var d=f(!1);if(d!==null){if(O.didUsePromise){r[u]=f,r.splice(0,u);return}f=d}else break}while(!0)}r.length=0}catch(w){r.splice(0,u+1),O.thrownErrors.push(w)}finally{bt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var mt=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),ht=Symbol.for("react.consumer"),Vt=Symbol.for("react.context"),jt=Symbol.for("react.forward_ref"),Mt=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),wt=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Gt=Symbol.for("react.activity"),D=Symbol.iterator,Lt={},It={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},Jt=Object.assign,vt={};Object.freeze(vt),c.prototype.isReactComponent={},c.prototype.setState=function(r,u){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,u,"setState")},c.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};var G={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(rt in G)G.hasOwnProperty(rt)&&t(rt,G[rt]);p.prototype=c.prototype,G=h.prototype=new p,G.constructor=h,Jt(G,c.prototype),G.isPureReactComponent=!0;var Ut=Array.isArray,Me=Symbol.for("react.client.reference"),O={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ct=Object.prototype.hasOwnProperty,Ht=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(r){return r()}};var $t,Yt,zt={},Ge=G.react_stack_bottom_frame.bind(G,A)(),Le=Ht(y(A)),Bt=!1,Wt=/\/+/g,qt=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Kt=!1,lt=null,pt=0,ft=!1,bt=!1,Qt=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:$;G=Object.freeze({__proto__:null,c:function(r){return F().useMemoCache(r)}});var rt={map:H,forEach:function(r,u,f){H(r,function(){u.apply(this,arguments)},f)},count:function(r){var u=0;return H(r,function(){u++}),u},toArray:function(r){return H(r,function(u){return u})||[]},only:function(r){if(!L(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};S.Activity=Gt,S.Children=rt,S.Component=c,S.Fragment=_,S.Profiler=m,S.PureComponent=h,S.StrictMode=k,S.Suspense=Mt,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,S.__COMPILER_RUNTIME=G,S.act=function(r){var u=O.actQueue,f=pt;pt++;var d=O.actQueue=u!==null?u:[],w=!1;try{var E=r()}catch(C){O.thrownErrors.push(C)}if(0<O.thrownErrors.length)throw Y(u,f),r=J(O.thrownErrors),O.thrownErrors.length=0,r;if(E!==null&&typeof E=="object"&&typeof E.then=="function"){var R=E;return Qt(function(){w||ft||(ft=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(C,U){w=!0,R.then(function(q){if(Y(u,f),f===0){try{W(d),$(function(){return B(q,C,U)})}catch(Je){O.thrownErrors.push(Je)}if(0<O.thrownErrors.length){var Ie=J(O.thrownErrors);O.thrownErrors.length=0,U(Ie)}}else C(q)},function(q){Y(u,f),0<O.thrownErrors.length&&(q=J(O.thrownErrors),O.thrownErrors.length=0),U(q)})}}}var P=E;if(Y(u,f),f===0&&(W(d),d.length!==0&&Qt(function(){w||ft||(ft=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),O.actQueue=null),0<O.thrownErrors.length)throw r=J(O.thrownErrors),O.thrownErrors.length=0,r;return{then:function(C,U){w=!0,f===0?(O.actQueue=d,$(function(){return B(P,C,U)})):C(P)}}},S.cache=function(r){return function(){return r.apply(null,arguments)}},S.cacheSignal=function(){return null},S.captureOwnerStack=function(){var r=O.getCurrentStack;return r===null?null:r()},S.cloneElement=function(r,u,f){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var d=Jt({},r.props),w=r.key,E=r._owner;if(u!=null){var R;t:{if(ct.call(u,"ref")&&(R=Object.getOwnPropertyDescriptor(u,"ref").get)&&R.isReactWarning){R=!1;break t}R=u.ref!==void 0}R&&(E=V()),X(u)&&(g(u.key),w=""+u.key);for(P in u)!ct.call(u,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&u.ref===void 0||(d[P]=u[P])}var P=arguments.length-2;if(P===1)d.children=f;else if(1<P){R=Array(P);for(var C=0;C<P;C++)R[C]=arguments[C+2];d.children=R}for(d=N(r.type,w,d,E,r._debugStack,r._debugTask),w=2;w<arguments.length;w++)Z(arguments[w]);return d},S.createContext=function(r){return r={$$typeof:Vt,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:ht,_context:r},r._currentRenderer=null,r._currentRenderer2=null,r},S.createElement=function(r,u,f){for(var d=2;d<arguments.length;d++)Z(arguments[d]);d={};var w=null;if(u!=null)for(C in Yt||!("__self"in u)||"key"in u||(Yt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),X(u)&&(g(u.key),w=""+u.key),u)ct.call(u,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(d[C]=u[C]);var E=arguments.length-2;if(E===1)d.children=f;else if(1<E){for(var R=Array(E),P=0;P<E;P++)R[P]=arguments[P+2];Object.freeze&&Object.freeze(R),d.children=R}if(r&&r.defaultProps)for(C in E=r.defaultProps,E)d[C]===void 0&&(d[C]=E[C]);w&&o(d,typeof r=="function"?r.displayName||r.name||"Unknown":r);var C=1e4>O.recentlyCreatedOwnerStacks++;return N(r,w,d,V(),C?Error("react-stack-top-frame"):Ge,C?Ht(y(r)):Le)},S.createRef=function(){var r={current:null};return Object.seal(r),r},S.forwardRef=function(r){r!=null&&r.$$typeof===wt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?console.error("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&r.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:jt,render:r},f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},S.isValidElement=L,S.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:nt,_payload:r,_init:ut},f={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return r._ioInfo=f,u._debugInfo=[{awaited:f}],u},S.memo=function(r,u){r==null&&console.error("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r),u={$$typeof:wt,type:r,compare:u===void 0?null:u};var f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},S.startTransition=function(r){var u=O.T,f={};f._updatedFibers=new Set,O.T=f;try{var d=r(),w=O.S;w!==null&&w(f,d),typeof d=="object"&&d!==null&&typeof d.then=="function"&&(O.asyncTransitions++,d.then(et,et),d.then(s,qt))}catch(E){qt(E)}finally{u===null&&f._updatedFibers&&(r=f._updatedFibers.size,f._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),O.T=u}},S.unstable_useCacheRefresh=function(){return F().useCacheRefresh()},S.use=function(r){return F().use(r)},S.useActionState=function(r,u,f){return F().useActionState(r,u,f)},S.useCallback=function(r,u){return F().useCallback(r,u)},S.useContext=function(r){var u=F();return r.$$typeof===ht&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(r)},S.useDebugValue=function(r,u){return F().useDebugValue(r,u)},S.useDeferredValue=function(r,u){return F().useDeferredValue(r,u)},S.useEffect=function(r,u){return r==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useEffect(r,u)},S.useEffectEvent=function(r){return F().useEffectEvent(r)},S.useId=function(){return F().useId()},S.useImperativeHandle=function(r,u,f){return F().useImperativeHandle(r,u,f)},S.useInsertionEffect=function(r,u){return r==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useInsertionEffect(r,u)},S.useLayoutEffect=function(r,u){return r==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useLayoutEffect(r,u)},S.useMemo=function(r,u){return F().useMemo(r,u)},S.useOptimistic=function(r,u){return F().useOptimistic(r,u)},S.useReducer=function(r,u,f){return F().useReducer(r,u,f)},S.useRef=function(r){return F().useRef(r)},S.useState=function(r){return F().useState(r)},S.useSyncExternalStore=function(r,u,f){return F().useSyncExternalStore(r,u,f)},S.useTransition=function(){return F().useTransition()},S.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Dt=St((ao,At)=>{"use strict";process.env.NODE_ENV==="production"?At.exports=Ae():At.exports=De()});var gt;(n=>{class t{static createFrom(a={}){return new t(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email,this.url=a.url}}n.PluginAuthor=t;class i{static createFrom(a={}){return new i(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.plugin=a.plugin,this.area=a.area,this.resources=a.resources,this.extension=a.extension}}n.PluginResourceComponent=i;class l{static createFrom(a={}){return new l(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.resource=this.convertValues(a.resource,i)}convertValues(a,y,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginComponents=l;class c{static createFrom(a={}){return new c(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email}}n.PluginMaintainer=c;class p{static createFrom(a={}){return new p(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.primary=a.primary,this.secondary=a.secondary,this.tertiary=a.tertiary}}n.PluginThemeColors=p;class h{static createFrom(a={}){return new h(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.colors=this.convertValues(a.colors,p)}convertValues(a,y,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginTheme=h;class s{static createFrom(a={}){return new s(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.id=a.id,this.version=a.version,this.name=a.name,this.icon=a.icon,this.icon_url=a.icon_url,this.description=a.description,this.repository=a.repository,this.website=a.website,this.category=a.category,this.license=a.license,this.author=this.convertValues(a.author,t),this.maintainers=this.convertValues(a.maintainers,c),this.tags=a.tags,this.dependencies=a.dependencies,this.capabilities=a.capabilities,this.theme=this.convertValues(a.theme,h),this.components=this.convertValues(a.components,l)}convertValues(a,y,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginMeta=s})(gt||(gt={}));var Zt;(p=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.pid=s.pid,this.protocol=s.protocol,this.protocolVersion=s.protocolVersion,this.addr=s.addr,this.vitePort=s.vitePort,this.pluginId=s.pluginId,this.version=s.version,this.startedAt=s.startedAt}}p.DevInfoFile=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s))}}p.DevServerManager=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.pluginID=s.pluginID,this.mode=s.mode,this.devPath=s.devPath,this.vitePort=s.vitePort,this.viteURL=s.viteURL,this.viteStatus=s.viteStatus,this.goStatus=s.goStatus,this.lastBuildDuration=s.lastBuildDuration,this.lastBuildTime=this.convertValues(s.lastBuildTime,M.Time),this.lastError=s.lastError,this.grpcConnected=s.grpcConnected}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.DevServerState=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.timestamp=this.convertValues(s.timestamp,M.Time),this.source=s.source,this.level=s.level,this.message=s.message,this.pluginID=s.pluginID}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.LogEntry=c})(Zt||(Zt={}));var te;(h=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,M.Time),this.labels=n.labels,this.params=n.params,this.id=n.id,this.command=n.command,this.attached=n.attached}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Session=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.session=this.convertValues(n.session,t),this.buffer=n.buffer}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.AttachSessionResult=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.labels=n.labels,this.command=n.command}}h.CreateTerminalOptions=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,ot.ActionTargetBuilder),this.default_command=n.default_command}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Handler=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.params=n.params,this.labels=n.labels,this.id=n.id,this.resource_plugin=n.resource_plugin,this.resource_key=n.resource_key,this.resource_data=n.resource_data,this.command=n.command,this.tty=n.tty}}h.SessionOptions=p})(te||(te={}));var ee;(h=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.target=n.target,this.follow=n.follow,this.include_previous=n.include_previous,this.include_timestamps=n.include_timestamps,this.tail_lines=n.tail_lines,this.since_seconds=n.since_seconds,this.since_time=this.convertValues(n.since_time,M.Time),this.limit_bytes=n.limit_bytes,this.include_source_events=n.include_source_events,this.params=n.params}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.LogSessionOptions=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_data=n.resource_data,this.options=this.convertValues(n.options,t)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.CreateSessionOptions=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,ot.ActionTargetBuilder)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Handler=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.labels=n.labels}}h.LogSource=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.plugin_id=n.plugin_id,this.connection_id=n.connection_id,this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.options=this.convertValues(n.options,t),this.status=n.status,this.active_sources=this.convertValues(n.active_sources,c),this.created_at=this.convertValues(n.created_at,M.Time)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.LogSession=p})(ee||(ee={}));var ne;(l=>{class t{static createFrom(p={}){return new t(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.displayName=p.displayName,this.pattern=p.pattern}}l.FileFilter=t;class i{static createFrom(p={}){return new i(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.defaultDirectory=p.defaultDirectory,this.defaultFilename=p.defaultFilename,this.title=p.title,this.filters=this.convertValues(p.filters,t),this.showHiddenFiles=p.showHiddenFiles,this.canCreateDirectories=p.canCreateDirectories,this.resolvesAliases=p.resolvesAliases,this.treatPackagesAsDirectories=p.treatPackagesAsDirectories}convertValues(p,h,s=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,h));if(typeof p=="object"){if(s){for(let n of Object.keys(p))p[n]=new h(p[n]);return p}return new h(p)}return p}}l.FileDialogOptions=i})(ne||(ne={}));var re;(A=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.metric_id=o.metric_id,this.min=o.min,this.max=o.max,this.avg=o.avg,this.sum=o.sum,this.p50=o.p50,this.p90=o.p90,this.p99=o.p99,this.count=o.count,this.window=o.window,this.labels=o.labels}}A.AggregateValue=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.min=o.min,this.max=o.max,this.color=o.color}}A.ColorRange=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.metric_id=o.metric_id,this.value=o.value,this.timestamp=this.convertValues(o.timestamp,M.Time),this.labels=o.labels}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.CurrentValue=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,M.Time),this.value=o.value,this.labels=o.labels}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.DataPoint=c;class p{static createFrom(o={}){return new p(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.id=o.id,this.name=o.name,this.unit=o.unit,this.icon=o.icon,this.color_ranges=this.convertValues(o.color_ranges,i),this.format_string=o.format_string,this.supported_shapes=o.supported_shapes,this.chart_group=o.chart_group}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.MetricDescriptor=p;class h{static createFrom(o={}){return new h(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource=o.resource,this.metrics=this.convertValues(o.metrics,p)}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.Handler=h;class s{static createFrom(o={}){return new s(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin_id=o.plugin_id,this.provider_id=o.provider_id,this.name=o.name,this.icon=o.icon,this.description=o.description,this.handlers=this.convertValues(o.handlers,h)}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.MetricProviderSummary=s;class n{static createFrom(o={}){return new n(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.metric_id=o.metric_id,this.data_points=this.convertValues(o.data_points,c),this.labels=o.labels}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.TimeSeries=n;class g{static createFrom(o={}){return new g(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.time_series=this.convertValues(o.time_series,n),this.current_value=this.convertValues(o.current_value,l),this.aggregate_value=this.convertValues(o.aggregate_value,t)}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.MetricResult=g;class a{static createFrom(o={}){return new a(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource_key=o.resource_key,this.resource_id=o.resource_id,this.resource_namespace=o.resource_namespace,this.resource_data=o.resource_data,this.metric_ids=o.metric_ids,this.shape=o.shape,this.start_time=this.convertValues(o.start_time,M.Time),this.end_time=this.convertValues(o.end_time,M.Time),this.step=o.step,this.params=o.params}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.QueryRequest=a;class y{static createFrom(o={}){return new y(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.success=o.success,this.results=this.convertValues(o.results,g),this.error=o.error}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.QueryResponse=y;class V{static createFrom(o={}){return new V(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource_key=o.resource_key,this.resource_id=o.resource_id,this.resource_namespace=o.resource_namespace,this.resource_data=o.resource_data,this.metric_ids=o.metric_ids,this.interval=o.interval}}A.SubscribeRequest=V})(re||(re={}));var it;(p=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource_id=s.resource_id,this.connection_id=s.connection_id}}p.FindPortForwardSessionRequest=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.algorithm=s.algorithm,this.key=s.key,this.enabled=s.enabled}}p.PortForwardSessionEncryption=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.created_at=this.convertValues(s.created_at,M.Time),this.updated_at=this.convertValues(s.updated_at,M.Time),this.connection=s.connection,this.labels=s.labels,this.id=s.id,this.protocol=s.protocol,this.state=s.state,this.connection_type=s.connection_type,this.encryption=this.convertValues(s.encryption,i),this.local_port=s.local_port,this.remote_port=s.remote_port}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.PortForwardSession=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.connection=s.connection,this.labels=s.labels,this.params=s.params,this.protocol=s.protocol,this.connection_type=s.connection_type,this.encryption=this.convertValues(s.encryption,i),this.local_port=s.local_port,this.remote_port=s.remote_port}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.PortForwardSessionOptions=c})(it||(it={}));var ie;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.DevMode=c.DevMode,this.DevModePath=c.DevModePath,this.ExistingState=this.convertValues(c.ExistingState,ot.PluginState)}convertValues(c,p,h=!1){if(!c)return c;if(c.slice&&c.map)return c.map(s=>this.convertValues(s,p));if(typeof c=="object"){if(h){for(let s of Object.keys(c))c[s]=new p(c[s]);return c}return new p(c)}return c}}i.LoadPluginOptions=t})(ie||(ie={}));var oe;(h=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.description=n.description,this.icon_url=n.icon_url,this.category=n.category,this.tags=n.tags,this.license=n.license,this.official=n.official,this.featured=n.featured,this.download_count=n.download_count,this.average_rating=n.average_rating,this.review_count=n.review_count,this.repository=n.repository,this.url=n.url,this.installed=n.installed,this.installed_version=n.installed_version,this.latest_version=n.latest_version,this.update_available=n.update_available}}h.AvailablePlugin=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.date=n.date,this.count=n.count}}h.DailyStat=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.total=n.total,this.last_month=n.last_month,this.last_week=n.last_week,this.daily_stats=this.convertValues(n.daily_stats,i)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.DownloadStats=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.user_id=n.user_id,this.rating=n.rating,this.title=n.title,this.body=n.body,this.created_at=n.created_at}}h.Review=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.version=n.version,this.description=n.description,this.changelog=n.changelog,this.min_ide_version=n.min_ide_version,this.max_ide_version=n.max_ide_version,this.capabilities=n.capabilities,this.created_at=n.created_at}}h.VersionInfo=p})(oe||(oe={}));var se;(h=>{let t;(v=>(v.TEXT="text",v.SELECT="select",v.MULTISELECT="multiselect",v.INTEGER="integer",v.FLOAT="float",v.TOGGLE="toggle",v.COLOR="color",v.DATETIME="datetime",v.PASSWORD="password"))(t=h.SettingType||(h.SettingType={}));class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}}h.SettingFileSelection=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}}h.SettingOption=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,l),this.fileSelection=this.convertValues(n.fileSelection,i),this.sensitive=n.sensitive}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Setting=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,c,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Category=p})(se||(se={}));var M;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c))}}i.Time=t})(M||(M={}));var ot;(W=>{let t;(D=>(D.UNKNOWN="UNKNOWN",D.CONNECTED="CONNECTED",D.DISCONNECTED="DISCONNECTED",D.PENDING="PENDING",D.FAILED="FAILED",D.ERROR="ERROR",D.UNAUTHORIZED="UNAUTHORIZED",D.FORBIDDEN="FORBIDDEN",D.BAD_REQUEST="BAD_REQUEST",D.NOT_FOUND="NOT_FOUND",D.TIMEOUT="TIMEOUT",D.UNAVAILABLE="UNAVAILABLE",D.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"))(t=W.ConnectionStatusCode||(W.ConnectionStatusCode={}));class i{static createFrom(e={}){return new i(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.label=e.label,this.description=e.description,this.icon=e.icon,this.scope=e.scope,this.streaming=e.streaming}}W.ActionDescriptor=i;class l{static createFrom(e={}){return new l(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.namespace=e.namespace,this.params=e.params}}W.ActionInput=l;class c{static createFrom(e={}){return new c(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.success=e.success,this.data=e.data,this.message=e.message}}W.ActionResult=c;class p{static createFrom(e={}){return new p(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.selectors=e.selectors,this.label_selector=e.label_selector,this.label=e.label,this.paths=e.paths}}W.ActionTargetBuilder=p;class h{static createFrom(e={}){return new h(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.idAccessor=e.idAccessor,this.namespaceAccessor=e.namespaceAccessor,this.namespaced=e.namespaced,this.resourceKey=e.resourceKey,this.keyAccessor=e.keyAccessor,this.keyMap=e.keyMap,this.detailExtractors=e.detailExtractors,this.displayId=e.displayId}}W.ResourceLink=h;class s{static createFrom(e={}){return new s(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.header=e.header,this.accessor=e.accessor,this.accessorPriority=e.accessorPriority,this.colorMap=e.colorMap,this.color=e.color,this.align=e.align,this.hidden=e.hidden,this.width=e.width,this.formatter=e.formatter,this.component=e.component,this.componentParams=e.componentParams,this.resourceLink=this.convertValues(e.resourceLink,h),this.valueMap=e.valueMap}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.ColumnDef=s;class n{static createFrom(e={}){return new n(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.last_refresh=this.convertValues(e.last_refresh,M.Time),this.data=e.data,this.labels=e.labels,this.id=e.id,this.uid=e.uid,this.name=e.name,this.description=e.description,this.avatar=e.avatar,this.expiry_time=e.expiry_time,this.Client=e.Client}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.Connection=n;class g{static createFrom(e={}){return new g(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=this.convertValues(e.connection,n),this.status=e.status,this.error=e.error,this.details=e.details}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.ConnectionStatus=g;class a{static createFrom(e={}){return new a(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.input=e.input,this.namespace=e.namespace}}W.CreateInput=a;class y{static createFrom(e={}){return new y(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.CreateResult=y;class V{static createFrom(e={}){return new V(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}W.DeleteInput=V;class A{static createFrom(e={}){return new A(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.DeleteResult=A;class X{static createFrom(e={}){return new X(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.resourceKey=e.resourceKey,this.fileMatch=e.fileMatch,this.uri=e.uri,this.url=e.url,this.content=e.content,this.language=e.language}}W.EditorSchema=X;class o{static createFrom(e={}){return new o(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize}}W.PaginationParams=o;class v{static createFrom(e={}){return new v(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.by=e.by,this.direction=e.direction}}W.OrderParams=v;class N{static createFrom(e={}){return new N(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.conditions=e.conditions,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,o)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.FindInput=N;class b{static createFrom(e={}){return new b(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize,this.total=e.total,this.pages=e.pages}}W.PaginationResult=b;class Z{static createFrom(e={}){return new Z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.FindResult=Z;class L{static createFrom(e={}){return new L(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.id=e.id,this.namespace=e.namespace}}W.GetInput=L;class at{static createFrom(e={}){return new at(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.GetResult=at;class z{static createFrom(e={}){return new z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=e.connection,this.resources=e.resources,this.resourceCounts=e.resourceCounts,this.totalResources=e.totalResources,this.syncedCount=e.syncedCount,this.errorCount=e.errorCount}}W.InformerConnectionSummary=z;class tt{static createFrom(e={}){return new tt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.title=e.title,this.icon=e.icon,this.description=e.description,this.items=this.convertValues(e.items,tt)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.LayoutItem=tt;class I{static createFrom(e={}){return new I(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,o)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.ListInput=I;class H{static createFrom(e={}){return new H(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.ListResult=H;class ut{static createFrom(e={}){return new ut(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,gt.PluginMeta),this.enabled=e.enabled,this.running=e.running,this.devMode=e.devMode,this.devPath=e.devPath,this.loading=e.loading,this.loadError=e.loadError,this.capabilities=e.capabilities}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.Plugin=ut;class F{static createFrom(e={}){return new F(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,gt.PluginMeta),this.ID=e.ID,this.DevPath=e.DevPath,this.Enabled=e.Enabled,this.DevMode=e.DevMode}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.PluginState=F;class et{static createFrom(e={}){return new et(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id_accessor=e.id_accessor,this.namespace_accessor=e.namespace_accessor,this.memoizer_accessor=e.memoizer_accessor,this.columnDefs=this.convertValues(e.columnDefs,s),this.supportedOperations=e.supportedOperations}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.ResourceDefinition=et;class ${static createFrom(e={}){return new $(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.name=e.name,this.description=e.description,this.icon=e.icon,this.resources=this.convertValues(e.resources,Array,!0)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}W.ResourceGroup=$;class J{static createFrom(e={}){return new J(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.group=e.group,this.version=e.version,this.kind=e.kind,this.label=e.label,this.icon=e.icon,this.description=e.description,this.category=e.category}}W.ResourceMeta=J;class Y{static createFrom(e={}){return new Y(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}W.UpdateInput=Y;class B{static createFrom(e={}){return new B(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.UpdateResult=B})(ot||(ot={}));var ae;(p=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin=s.plugin}}p.GetPluginComponentsInput=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin=s.plugin,this.resource=s.resource,this.area=s.area}}p.GetResourceAreaComponentInput=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin=s.plugin,this.resource=s.resource}}p.GetResourceComponentsInput=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.owner=s.owner,this.name=s.name,this.plugin=s.plugin,this.resource=s.resource,this.area=s.area,this.extension=s.extension}}p.ResourceComponent=c})(ae||(ae={}));var ue;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.filename=c.filename,this.contents=c.contents}}i.GetLanguageInput=t})(ue||(ue={}));var ce={};j(ce,{GetOperatingSystem:()=>We,OpenFileSelectionDialog:()=>qe,SaveFileDialog:()=>Ke,WriteFileContent:()=>Qe});function We(){return window.go.main.App.GetOperatingSystem()}function qe(t){return window.go.main.App.OpenFileSelectionDialog(t)}function Ke(t){return window.go.main.App.SaveFileDialog(t)}function Qe(t,i){return window.go.main.App.WriteFileContent(t,i)}var le={};j(le,{Delete:()=>Xe,Get:()=>Ze,Keys:()=>tn,Set:()=>en});function Xe(t,i){return window.go.data.Client.Delete(t,i)}function Ze(t,i){return window.go.data.Client.Get(t,i)}function tn(t){return window.go.data.Client.Keys(t)}function en(t,i,l){return window.go.data.Client.Set(t,i,l)}var pe={};j(pe,{GetDevServerLogs:()=>nn,GetDevServerState:()=>rn,GetExternalPluginInfo:()=>on,Initialize:()=>sn,IsManaged:()=>an,ListDevServerStates:()=>un,RestartDevServer:()=>cn,Shutdown:()=>ln,StartDevServer:()=>pn,StartDevServerForPath:()=>fn,StopDevServer:()=>gn});function nn(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function rn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function on(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function sn(t){return window.go.devserver.DevServerManager.Initialize(t)}function an(t){return window.go.devserver.DevServerManager.IsManaged(t)}function un(){return window.go.devserver.DevServerManager.ListDevServerStates()}function cn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function ln(){return window.go.devserver.DevServerManager.Shutdown()}function pn(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function fn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function gn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var fe={};j(fe,{Debug:()=>dn,Error:()=>yn,Info:()=>mn,Log:()=>hn,ReadLog:()=>wn,StartTail:()=>vn,StopTail:()=>bn,Warn:()=>_n});function dn(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function yn(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function mn(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function hn(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function wn(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function vn(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function bn(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function _n(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var ge={};j(ge,{AttachSession:()=>Sn,CloseSession:()=>xn,CreateSession:()=>Rn,CreateTerminal:()=>On,DetachSession:()=>En,GetHandler:()=>Cn,GetHandlers:()=>Pn,GetPluginHandlers:()=>kn,GetSession:()=>Tn,ListPlugins:()=>Nn,ListSessions:()=>Fn,ResizeSession:()=>An,WriteSession:()=>Dn});function Sn(t){return window.go.exec.Client.AttachSession(t)}function xn(t){return window.go.exec.Client.CloseSession(t)}function Rn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function On(t){return window.go.exec.Client.CreateTerminal(t)}function En(t){return window.go.exec.Client.DetachSession(t)}function Cn(t,i){return window.go.exec.Client.GetHandler(t,i)}function Pn(){return window.go.exec.Client.GetHandlers()}function kn(t){return window.go.exec.Client.GetPluginHandlers(t)}function Tn(t){return window.go.exec.Client.GetSession(t)}function Nn(){return window.go.exec.Client.ListPlugins()}function Fn(){return window.go.exec.Client.ListSessions()}function An(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function Dn(t,i){return window.go.exec.Client.WriteSession(t,i)}var de={};j(de,{CloseSession:()=>Vn,CreateSession:()=>jn,GetSession:()=>Mn,GetSupportedResources:()=>Gn,ListSessions:()=>Ln,PauseSession:()=>In,ResumeSession:()=>Jn,UpdateSessionOptions:()=>Un});function Vn(t){return window.go.logs.Client.CloseSession(t)}function jn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function Mn(t){return window.go.logs.Client.GetSession(t)}function Gn(t){return window.go.logs.Client.GetSupportedResources(t)}function Ln(){return window.go.logs.Client.ListSessions()}function In(t){return window.go.logs.Client.PauseSession(t)}function Jn(t){return window.go.logs.Client.ResumeSession(t)}function Un(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var ye={};j(ye,{GetProviders:()=>Hn,GetProvidersForResource:()=>$n,Query:()=>Yn,QueryAll:()=>zn,Subscribe:()=>Bn,Unsubscribe:()=>Wn});function Hn(){return window.go.metric.Client.GetProviders()}function $n(t){return window.go.metric.Client.GetProvidersForResource(t)}function Yn(t,i,l){return window.go.metric.Client.Query(t,i,l)}function zn(t,i,l,c,p,h,s,n,g,a){return window.go.metric.Client.QueryAll(t,i,l,c,p,h,s,n,g,a)}function Bn(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function Wn(t){return window.go.metric.Client.Unsubscribe(t)}var me={};j(me,{ClosePortForwardSession:()=>xt,FindPortForwardSessions:()=>Rt,GetPortForwardSession:()=>qn,GetSupportedPortForwardTargets:()=>Kn,ListAllPortForwardSessions:()=>Qn,ListPortForwardSessions:()=>Xn,StartResourcePortForwardingSession:()=>Ot});function xt(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Rt(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function qn(t){return window.go.networker.Client.GetPortForwardSession(t)}function Kn(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function Qn(){return window.go.networker.Client.ListAllPortForwardSessions()}function Xn(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function Ot(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var he={};j(he,{AddTarget:()=>Zn,GetPlugin:()=>tr,GetPluginDownloadStats:()=>er,GetPluginMeta:()=>nr,GetPluginReadme:()=>rr,GetPluginReleaseHistory:()=>ir,GetPluginReviews:()=>or,GetPluginVersions:()=>sr,Initialize:()=>ar,InstallFromPathPrompt:()=>ur,InstallInDevMode:()=>cr,InstallPluginFromPath:()=>lr,InstallPluginVersion:()=>pr,ListAvailablePlugins:()=>fr,ListPluginMetas:()=>gr,ListPlugins:()=>dr,LoadPlugin:()=>yr,ReloadPlugin:()=>mr,RemoveTarget:()=>hr,Run:()=>wr,SearchPlugins:()=>vr,SetDevServerChecker:()=>br,SetDevServerManager:()=>_r,Shutdown:()=>Sr,UninstallPlugin:()=>xr,UnloadPlugin:()=>Rr});function Zn(t){return window.go.plugin.pluginManager.AddTarget(t)}function tr(t){return window.go.plugin.pluginManager.GetPlugin(t)}function er(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function nr(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function rr(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function ir(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function or(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function sr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function ar(t){return window.go.plugin.pluginManager.Initialize(t)}function ur(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function cr(){return window.go.plugin.pluginManager.InstallInDevMode()}function lr(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function pr(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function fr(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function gr(){return window.go.plugin.pluginManager.ListPluginMetas()}function dr(){return window.go.plugin.pluginManager.ListPlugins()}function yr(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function mr(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function hr(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function wr(t){return window.go.plugin.pluginManager.Run(t)}function vr(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function br(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function _r(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function Sr(){return window.go.plugin.pluginManager.Shutdown()}function xr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function Rr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var we={};j(we,{AddConnection:()=>Or,Create:()=>Er,Delete:()=>Cr,EnsureInformerForResource:()=>Pr,ExecuteAction:()=>kr,Find:()=>Tr,Get:()=>Nr,GetActions:()=>Fr,GetConnection:()=>Ar,GetConnectionNamespaces:()=>Dr,GetDefaultLayout:()=>Vr,GetEditorSchemas:()=>jr,GetInformerState:()=>Mr,GetLayout:()=>Gr,GetResourceDefinition:()=>Lr,GetResourceGroup:()=>Ir,GetResourceGroups:()=>Jr,GetResourceType:()=>Ur,GetResourceTypes:()=>Hr,HasResourceType:()=>$r,List:()=>Yr,ListAllConnections:()=>zr,ListConnections:()=>Br,ListPlugins:()=>Wr,LoadConnections:()=>qr,RemoveConnection:()=>Kr,SetLayout:()=>Qr,StartConnection:()=>Xr,StartConnectionInformer:()=>Zr,StopConnection:()=>ti,StopConnectionInformer:()=>ei,StreamAction:()=>ni,Update:()=>ri,UpdateConnection:()=>ii});function Or(t,i){return window.go.resource.Client.AddConnection(t,i)}function Er(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Cr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Pr(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function kr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Tr(t,i,l,c){return window.go.resource.Client.Find(t,i,l,c)}function Nr(t,i,l,c){return window.go.resource.Client.Get(t,i,l,c)}function Fr(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Ar(t,i){return window.go.resource.Client.GetConnection(t,i)}function Dr(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Vr(t){return window.go.resource.Client.GetDefaultLayout(t)}function jr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function Mr(t,i){return window.go.resource.Client.GetInformerState(t,i)}function Gr(t,i){return window.go.resource.Client.GetLayout(t,i)}function Lr(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function Ir(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function Jr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Ur(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Hr(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function $r(t,i){return window.go.resource.Client.HasResourceType(t,i)}function Yr(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function zr(){return window.go.resource.Client.ListAllConnections()}function Br(t){return window.go.resource.Client.ListConnections(t)}function Wr(){return window.go.resource.Client.ListPlugins()}function qr(t){return window.go.resource.Client.LoadConnections(t)}function Kr(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function Qr(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function Xr(t,i){return window.go.resource.Client.StartConnection(t,i)}function Zr(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function ti(t,i){return window.go.resource.Client.StopConnection(t,i)}function ei(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function ni(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function ri(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function ii(t,i){return window.go.resource.Client.UpdateConnection(t,i)}import{Application as ho,Browser as wo,Clipboard as vo,Events as bo,Screens as _o,System as So,Window as xo,WML as Ro}from"@wailsio/runtime";var ve={};j(ve,{GetSetting:()=>oi,ListPlugins:()=>si,ListSettings:()=>ai,PluginValues:()=>ui,SetSetting:()=>ci,SetSettings:()=>li,Values:()=>pi});function oi(t,i){return window.go.settings.Client.GetSetting(t,i)}function si(){return window.go.settings.Client.ListPlugins()}function ai(t){return window.go.settings.Client.ListSettings(t)}function ui(t){return window.go.settings.Client.PluginValues(t)}function ci(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function li(t,i){return window.go.settings.Client.SetSettings(t,i)}function pi(){return window.go.settings.Client.Values()}var be={};j(be,{GetBool:()=>fi,GetCategories:()=>gi,GetCategory:()=>di,GetCategoryValues:()=>yi,GetFloat:()=>mi,GetFloatSlice:()=>hi,GetInt:()=>wi,GetIntSlice:()=>vi,GetSetting:()=>bi,GetSettingValue:()=>_i,GetString:()=>Si,GetStringSlice:()=>xi,HasSetting:()=>Ri,Initialize:()=>Oi,ListSettings:()=>Ei,LoadSettings:()=>Ci,RegisterSetting:()=>Pi,RegisterSettings:()=>ki,ResetSetting:()=>Ti,SaveSettings:()=>Ni,SetSetting:()=>Fi,SetSettings:()=>Ai,Values:()=>Di});function fi(t){return window.go.settings.provider.GetBool(t)}function gi(){return window.go.settings.provider.GetCategories()}function di(t){return window.go.settings.provider.GetCategory(t)}function yi(t){return window.go.settings.provider.GetCategoryValues(t)}function mi(t){return window.go.settings.provider.GetFloat(t)}function hi(t){return window.go.settings.provider.GetFloatSlice(t)}function wi(t){return window.go.settings.provider.GetInt(t)}function vi(t){return window.go.settings.provider.GetIntSlice(t)}function bi(t){return window.go.settings.provider.GetSetting(t)}function _i(t){return window.go.settings.provider.GetSettingValue(t)}function Si(t){return window.go.settings.provider.GetString(t)}function xi(t){return window.go.settings.provider.GetStringSlice(t)}function Ri(t){return window.go.settings.provider.HasSetting(t)}function Oi(t,i){return window.go.settings.provider.Initialize(t,i)}function Ei(){return window.go.settings.provider.ListSettings()}function Ci(){return window.go.settings.provider.LoadSettings()}function Pi(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function ki(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Ti(t){return window.go.settings.provider.ResetSetting(t)}function Ni(){return window.go.settings.provider.SaveSettings()}function Fi(t,i){return window.go.settings.provider.SetSetting(t,i)}function Ai(t){return window.go.settings.provider.SetSettings(t)}function Di(){return window.go.settings.provider.Values()}var _e={};j(_e,{GetPluginComponents:()=>Vi,GetResourceAreaComponent:()=>ji,GetResourceComponents:()=>Mi});function Vi(t){return window.go.ui.Client.GetPluginComponents(t)}function ji(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Mi(t){return window.go.ui.Client.GetResourceComponents(t)}var Se={};j(Se,{DetectLanguage:()=>Gi});function Gi(t){return window.go.utils.Client.DetectLanguage(t)}var Ve=Xt(Dt()),eo=Ve.default.createContext(void 0);import.meta.env.DEV&&(eo.displayName="PortForwardContext");var st=Xt(Dt());import{Browser as no}from"@wailsio/runtime";function ro({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=st.default.useState([]);st.default.useEffect(()=>{!t||!i||!l||Rt(t,i,it.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let h=st.default.useCallback(async n=>{let g=it.PortForwardSessionOptions.createFrom({local_port:n.toPort||0,remote_port:n.fromPort,protocol:n.protocol||"TCP",connection_type:"RESOURCE",connection:{resource_data:n.resource,connection_id:i,plugin_id:t,resource_id:n.resourceId,resource_key:n.resourceKey},labels:n.labels??{},params:n.parameters??{}});try{let a=await Ot(t,i,g);return p([...c,a]),n.openInBrowser&&no.OpenURL(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),s=st.default.useCallback(async n=>{try{await xt(n),p(c.filter(g=>g.id!==n))}catch(g){throw g instanceof Error&&console.log(g),g}},[c]);return{sessions:c,forward:h,close:s}}export{ho as Application,wo as Browser,vo as Clipboard,bo as Events,eo as PortForwardContext,_o as Screens,So as System,Ro as WML,xo as Window,ce as app,gt as config,le as data,pe as devserver,fe as diagnostics,ge as exec,de as logs,ne as main,ye as metric,me as networker,ie as plugin,he as pluginManager,oe as registry,we as resource,ve as settings,be as settingsProvider,M as time,ot as types,_e as ui,ro as useResourcePortForwarder,Se as utils};
|
|
14
14
|
/*! Bundled license information:
|
|
15
15
|
|
|
16
16
|
react/cjs/react.production.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniviewdev/providers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Package to interact with the various providers in Omniview via the UI.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"registry": "https://registry.npmjs.org/",
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsup index.ts --minify --dts --format cjs,esm --out-dir dist",
|
|
21
|
+
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
22
|
+
"lint:fix": "npm run lint -- --fix"
|
|
23
|
+
},
|
|
19
24
|
"keywords": [
|
|
20
25
|
"omniview"
|
|
21
26
|
],
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
"node": ">=20"
|
|
26
31
|
},
|
|
27
32
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^25.5.0",
|
|
29
34
|
"@types/react": "^19.0.0",
|
|
30
35
|
"@vitejs/plugin-react": "^4.2.1",
|
|
31
36
|
"react": "^19.0.0",
|
|
@@ -33,9 +38,7 @@
|
|
|
33
38
|
"typescript": "^5.4.5",
|
|
34
39
|
"vite": "^5.2.10"
|
|
35
40
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
39
|
-
"lint:fix": "npm run lint -- --fix"
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@wailsio/runtime": "3.0.0-beta.29"
|
|
40
43
|
}
|
|
41
|
-
}
|
|
44
|
+
}
|