@omniviewdev/runtime 0.8.2 → 0.9.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.
Files changed (37) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +183 -186
  3. package/dist/calls-Bg_uMVc9.cjs +1 -0
  4. package/dist/{calls-C1yoW06C.js → calls-BvZkVSse.js} +11 -5
  5. package/dist/context/settings/SettingsContext.d.ts +1 -1
  6. package/dist/{events-CtgYnKmS.cjs → events-DnLqUWri.cjs} +1 -1
  7. package/dist/{events-Bcx6NsMp.js → events-uBheGmqm.js} +1 -1
  8. package/dist/hooks/resource/useResource.d.ts +1 -1
  9. package/dist/index-BVi9X4oU.cjs +6 -0
  10. package/dist/{index-D2mKAO8s.js → index-zyAgCXOO.js} +52 -52
  11. package/dist/index.cjs +4 -4
  12. package/dist/index.js +2960 -2115
  13. package/dist/{legacyEnum-DORXlU_y.js → legacyEnum-CKqyRmbX.js} +3 -1
  14. package/dist/models-CT4kHj47.js +2444 -0
  15. package/dist/models-DQl7tqts.cjs +1 -0
  16. package/dist/models-DU8pTcoZ.js +142 -0
  17. package/dist/models-KV9f8Ceh.cjs +1 -0
  18. package/dist/models.cjs +1 -1
  19. package/dist/models.js +229 -232
  20. package/dist/resourceIcons.d.ts +2 -2
  21. package/dist/router/Link.d.ts +1 -1
  22. package/dist/router/index.d.ts +1 -1
  23. package/dist/router/usePluginRouter.d.ts +1 -1
  24. package/dist/runtime.cjs +1 -1
  25. package/dist/runtime.js +6 -6
  26. package/dist/servicewrapper-CCW7kIVs.cjs +1 -0
  27. package/dist/servicewrapper-Q1ww3DUo.js +849 -0
  28. package/dist/types/app.d.ts +1 -1
  29. package/package.json +22 -16
  30. package/dist/calls-DUhq86Ki.cjs +0 -1
  31. package/dist/graphservice-1J8q3eeL.cjs +0 -1
  32. package/dist/graphservice-CUg1PUsC.js +0 -852
  33. package/dist/index-D_aIcqH0.cjs +0 -6
  34. package/dist/models-4EtitZnM.js +0 -2447
  35. package/dist/models-BQsuB2Lj.cjs +0 -1
  36. package/dist/models-BpVWHqlF.cjs +0 -1
  37. package/dist/models-C5sf8GNY.js +0 -145
package/dist/api.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty;var w=(t,e,i)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var r=(t,e,i)=>w(t,typeof e!="symbol"?e+"":e,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./graphservice-1J8q3eeL.cjs"),a=require("./index-D_aIcqH0.cjs"),n=require("./calls-DUhq86Ki.cjs"),u=require("./models-BpVWHqlF.cjs");function B(t){return n.ByID(3503478684,t)}const F=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:B},Symbol.toStringTag,{value:"Module"}));function T(t,e){return n.ByID(2691208406,t,e)}function O(t,e){return n.ByID(3932965591,t,e)}function _(t,e){return n.ByID(1686862755,t,e)}function j(t,e,i){return n.ByID(3705442919,t,e,i)}function A(t){return n.ByID(3024854267,t)}function C(t){return n.ByID(3423289677,t)}function E(t){return n.ByID(158417611,t)}function L(t){return n.ByID(3413815733,t)}function M(t,e){return n.ByID(2047870999,t,e)}const N=Object.freeze(Object.defineProperty({__proto__:null,Debug:T,Error:O,Info:_,Log:j,ReadLog:A,ReportStartupReady:C,StartTail:E,StopTail:L,Warn:M},Symbol.toStringTag,{value:"Module"}));function k(t,e){return n.ByID(712656304,t,e).then(i=>W(i))}function P(t){return n.ByID(4153226260,t).then(e=>l(e))}function R(t){return n.ByID(1859413816,t)}function G(){return n.ByID(2707386443).then(t=>Z(t))}function J(t){return n.ByID(2381063937,t)}function x(t){return n.ByID(123659362,t).then(e=>l(e))}function q(t){return n.ByID(709599671,t).then(e=>l(e))}function z(t,e){return n.ByID(2105869281,t,e).then(i=>l(i))}function U(t){return n.ByID(1371062537,t)}const V=u.LogEntry.createFrom,W=a.Array(V),l=u.DevServerState.createFrom,Z=a.Array(l),H=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:k,GetDevServerState:P,IsManaged:R,ListDevServerStates:G,RebuildPlugin:J,RestartDevServer:x,StartDevServer:q,StartDevServerForPath:z,StopDevServer:U},Symbol.toStringTag,{value:"Module"}));function K(t,e){return n.ByID(1867216983,t,e).then(i=>S(i))}function Q(){return n.ByID(3418650705).then(t=>te(t))}function X(t,e){return n.ByID(4138610615,t,e).then(i=>S(i))}function Y(t){return n.ByID(3055914536,t)}function $(t){return n.ByID(1502487629,t)}const ee=u.LogEntry$1.createFrom,S=a.Array(ee),te=a.Array(a.Any),re=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:K,ListStreams:Q,SearchLogs:X,Subscribe:Y,Unsubscribe:$},Symbol.toStringTag,{value:"Module"}));class p{constructor(e={}){r(this,"browser");r(this,"vite");r(this,"hmr");r(this,"mcp");r(this,"control");r(this,"health");"browser"in e||(this.browser=null),"vite"in e||(this.vite=null),"hmr"in e||(this.hmr=null),"mcp"in e||(this.mcp=null),"control"in e||(this.control=null),"health"in e||(this.health=null),Object.assign(this,e)}static createFrom(e={}){let i=typeof e=="string"?JSON.parse(e):e;return new p(i)}}class y{constructor(e={}){r(this,"code");r(this,"message");r(this,"details");"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const i=ne;let o=typeof e=="string"?JSON.parse(e):e;return"details"in o&&(o.details=i(o.details)),new y(o)}}class h{constructor(e={}){r(this,"schemaVersion");r(this,"workspaceID");r(this,"instanceID");r(this,"generation");r(this,"kind");r(this,"channel");r(this,"displayName");r(this,"stateRoot");r(this,"process");r(this,"version");r(this,"commit");r(this,"repositories");r(this,"endpoints");r(this,"plugins");r(this,"readiness");r(this,"lastError");r(this,"startedAt");"schemaVersion"in e||(this.schemaVersion=0),"workspaceID"in e||(this.workspaceID=""),"instanceID"in e||(this.instanceID=""),"generation"in e||(this.generation=""),"kind"in e||(this.kind=""),"channel"in e||(this.channel=""),"displayName"in e||(this.displayName=""),"stateRoot"in e||(this.stateRoot=""),"process"in e||(this.process=new f),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new p),"plugins"in e||(this.plugins=[]),"readiness"in e||(this.readiness=""),"startedAt"in e||(this.startedAt="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const i=ie,o=ae,m=oe,v=le,I=D;let s=typeof e=="string"?JSON.parse(e):e;return"process"in s&&(s.process=i(s.process)),"repositories"in s&&(s.repositories=o(s.repositories)),"endpoints"in s&&(s.endpoints=m(s.endpoints)),"plugins"in s&&(s.plugins=v(s.plugins)),"lastError"in s&&(s.lastError=I(s.lastError)),new h(s)}}class d{constructor(e={}){r(this,"id");r(this,"version");r(this,"source");r(this,"generation");r(this,"mode");r(this,"buildStatus");r(this,"viteStatus");r(this,"rpcStatus");r(this,"controllerStatus");r(this,"operationID");r(this,"lastError");"id"in e||(this.id=""),"version"in e||(this.version=""),"source"in e||(this.source=""),"generation"in e||(this.generation=""),"mode"in e||(this.mode=""),"buildStatus"in e||(this.buildStatus=""),"viteStatus"in e||(this.viteStatus=""),"rpcStatus"in e||(this.rpcStatus=""),"controllerStatus"in e||(this.controllerStatus=""),Object.assign(this,e)}static createFrom(e={}){const i=D;let o=typeof e=="string"?JSON.parse(e):e;return"lastError"in o&&(o.lastError=i(o.lastError)),new d(o)}}class f{constructor(e={}){r(this,"pid");r(this,"startIdentity");r(this,"executable");r(this,"workspaceID");r(this,"generation");r(this,"role");r(this,"source");"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),"workspaceID"in e||(this.workspaceID=""),"generation"in e||(this.generation=""),"role"in e||(this.role=""),Object.assign(this,e)}static createFrom(e={}){let i=typeof e=="string"?JSON.parse(e):e;return new f(i)}}class g{constructor(e={}){r(this,"id");r(this,"path");r(this,"ref");r(this,"commit");"id"in e||(this.id=""),"path"in e||(this.path=""),"ref"in e||(this.ref=""),"commit"in e||(this.commit=""),Object.assign(this,e)}static createFrom(e={}){let i=typeof e=="string"?JSON.parse(e):e;return new g(i)}}const ne=a.Map(a.Any,a.Any),ie=f.createFrom,se=g.createFrom,ae=a.Array(se),oe=p.createFrom,ce=d.createFrom,le=a.Array(ce),pe=y.createFrom,D=a.Nullable(pe);function fe(){return n.ByID(678226073).then(t=>ge(t))}function ue(){return n.ByID(1706570792)}function ye(t){return n.ByID(2957909098,t).then(e=>Se(e))}function he(t){return n.ByID(473489213,t)}function de(t,e){return n.ByID(3778694836,t,e)}const ge=h.createFrom,Se=a.Array(a.Any);exports.DataClient=c.servicewrapper$9;exports.ExecClient=c.servicewrapper;exports.GraphClient=c.graphservice;exports.LogsClient=c.servicewrapper$7;exports.MetricClient=c.servicewrapper$8;exports.NetworkerClient=c.servicewrapper$1;exports.PluginManager=c.servicewrapper$2;exports.ResourceClient=c.servicewrapper$3;exports.SettingsClient=c.servicewrapper$4;exports.SettingsProvider=c.servicewrapper$5;exports.UIClient=c.servicewrapper$6;exports.DevServerManager=H;exports.DiagnosticsClient=N;exports.GetInstanceInfo=fe;exports.GetOperatingSystem=ue;exports.OpenFileSelectionDialog=ye;exports.PluginLogManager=re;exports.SaveFileDialog=he;exports.UtilsClient=F;exports.WriteFileContent=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./servicewrapper-CCW7kIVs.cjs"),s=require("./index-BVi9X4oU.cjs"),r=require("./calls-Bg_uMVc9.cjs"),f=require("./models-KV9f8Ceh.cjs");function I(t){return r.ByID(3503478684,t)}const b=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:I},Symbol.toStringTag,{value:"Module"}));function w(t,e){return r.ByID(2691208406,t,e)}function B(t,e){return r.ByID(3932965591,t,e)}function F(t,e){return r.ByID(1686862755,t,e)}function T(t,e,n){return r.ByID(3705442919,t,e,n)}function O(t){return r.ByID(3024854267,t)}function _(t){return r.ByID(3423289677,t)}function j(t){return r.ByID(158417611,t)}function A(t){return r.ByID(3413815733,t)}function C(t,e){return r.ByID(2047870999,t,e)}const E=Object.freeze(Object.defineProperty({__proto__:null,Debug:w,Error:B,Info:F,Log:T,ReadLog:O,ReportStartupReady:_,StartTail:j,StopTail:A,Warn:C},Symbol.toStringTag,{value:"Module"}));function L(t,e){return r.ByID(712656304,t,e).then(n=>z(n))}function M(t){return r.ByID(4153226260,t).then(e=>c(e))}function N(t){return r.ByID(1859413816,t)}function k(){return r.ByID(2707386443).then(t=>U(t))}function P(t){return r.ByID(2381063937,t)}function R(t){return r.ByID(123659362,t).then(e=>c(e))}function G(t){return r.ByID(709599671,t).then(e=>c(e))}function J(t,e){return r.ByID(2105869281,t,e).then(n=>c(n))}function x(t){return r.ByID(1371062537,t)}const q=f.LogEntry.createFrom,z=s.Array(q),c=f.DevServerState.createFrom,U=s.Array(c),V=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:L,GetDevServerState:M,IsManaged:N,ListDevServerStates:k,RebuildPlugin:P,RestartDevServer:R,StartDevServer:G,StartDevServerForPath:J,StopDevServer:x},Symbol.toStringTag,{value:"Module"}));function W(t,e){return r.ByID(1867216983,t,e).then(n=>g(n))}function Z(){return r.ByID(3418650705).then(t=>Y(t))}function H(t,e){return r.ByID(4138610615,t,e).then(n=>g(n))}function K(t){return r.ByID(3055914536,t)}function Q(t){return r.ByID(1502487629,t)}const X=f.LogEntry$1.createFrom,g=s.Array(X),Y=s.Array(s.Any),$=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:W,ListStreams:Z,SearchLogs:H,Subscribe:K,Unsubscribe:Q},Symbol.toStringTag,{value:"Module"}));class l{browser;vite;hmr;mcp;control;health;constructor(e={}){"browser"in e||(this.browser=null),"vite"in e||(this.vite=null),"hmr"in e||(this.hmr=null),"mcp"in e||(this.mcp=null),"control"in e||(this.control=null),"health"in e||(this.health=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new l(n)}}class u{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const n=ee;let a=typeof e=="string"?JSON.parse(e):e;return"details"in a&&(a.details=n(a.details)),new u(a)}}class y{schemaVersion;workspaceID;instanceID;generation;kind;channel;displayName;stateRoot;process;version;commit;repositories;endpoints;plugins;readiness;lastError;startedAt;constructor(e={}){"schemaVersion"in e||(this.schemaVersion=0),"workspaceID"in e||(this.workspaceID=""),"instanceID"in e||(this.instanceID=""),"generation"in e||(this.generation=""),"kind"in e||(this.kind=""),"channel"in e||(this.channel=""),"displayName"in e||(this.displayName=""),"stateRoot"in e||(this.stateRoot=""),"process"in e||(this.process=new p),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new l),"plugins"in e||(this.plugins=[]),"readiness"in e||(this.readiness=""),"startedAt"in e||(this.startedAt="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const n=te,a=ne,D=ie,m=ae,v=S;let i=typeof e=="string"?JSON.parse(e):e;return"process"in i&&(i.process=n(i.process)),"repositories"in i&&(i.repositories=a(i.repositories)),"endpoints"in i&&(i.endpoints=D(i.endpoints)),"plugins"in i&&(i.plugins=m(i.plugins)),"lastError"in i&&(i.lastError=v(i.lastError)),new y(i)}}class h{id;version;source;generation;mode;buildStatus;viteStatus;rpcStatus;controllerStatus;operationID;lastError;constructor(e={}){"id"in e||(this.id=""),"version"in e||(this.version=""),"source"in e||(this.source=""),"generation"in e||(this.generation=""),"mode"in e||(this.mode=""),"buildStatus"in e||(this.buildStatus=""),"viteStatus"in e||(this.viteStatus=""),"rpcStatus"in e||(this.rpcStatus=""),"controllerStatus"in e||(this.controllerStatus=""),Object.assign(this,e)}static createFrom(e={}){const n=S;let a=typeof e=="string"?JSON.parse(e):e;return"lastError"in a&&(a.lastError=n(a.lastError)),new h(a)}}class p{pid;startIdentity;executable;workspaceID;generation;role;source;constructor(e={}){"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),"workspaceID"in e||(this.workspaceID=""),"generation"in e||(this.generation=""),"role"in e||(this.role=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new p(n)}}class d{id;path;ref;commit;constructor(e={}){"id"in e||(this.id=""),"path"in e||(this.path=""),"ref"in e||(this.ref=""),"commit"in e||(this.commit=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new d(n)}}const ee=s.Map(s.Any,s.Any),te=p.createFrom,re=d.createFrom,ne=s.Array(re),ie=l.createFrom,se=h.createFrom,ae=s.Array(se),oe=u.createFrom,S=s.Nullable(oe);function ce(){return r.ByID(678226073).then(t=>ye(t))}function le(){return r.ByID(1706570792)}function pe(t){return r.ByID(2957909098,t).then(e=>he(e))}function fe(t){return r.ByID(473489213,t)}function ue(t,e){return r.ByID(3778694836,t,e)}const ye=y.createFrom,he=s.Array(s.Any);exports.DataClient=o.servicewrapper;exports.ExecClient=o.servicewrapper$1;exports.GraphClient=o.graphservice;exports.LogsClient=o.servicewrapper$2;exports.MetricClient=o.servicewrapper$3;exports.NetworkerClient=o.servicewrapper$4;exports.PluginManager=o.servicewrapper$5;exports.ResourceClient=o.servicewrapper$6;exports.SettingsClient=o.servicewrapper$7;exports.SettingsProvider=o.servicewrapper$8;exports.UIClient=o.servicewrapper$9;exports.DevServerManager=V;exports.DiagnosticsClient=E;exports.GetInstanceInfo=ce;exports.GetOperatingSystem=le;exports.OpenFileSelectionDialog=pe;exports.PluginLogManager=$;exports.SaveFileDialog=fe;exports.UtilsClient=b;exports.WriteFileContent=ue;
package/dist/api.js CHANGED
@@ -1,283 +1,280 @@
1
- var D = Object.defineProperty;
2
- var F = (e, t, r) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var n = (e, t, r) => F(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { a6 as jt, Y as Et, a0 as Lt, a4 as Ct, a5 as Nt, Z as Mt, _ as kt, $ as Pt, a1 as Rt, a2 as xt, a3 as At } from "./graphservice-CUg1PUsC.js";
5
- import { A as o, a as l, N as T, M as O } from "./index-D2mKAO8s.js";
6
- import { B as i } from "./calls-C1yoW06C.js";
7
- import { D as w, L as I, a as _ } from "./models-C5sf8GNY.js";
8
- function j(e) {
9
- return i(3503478684, e);
10
- }
11
- const St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1
+ import { s as Ot, a as wt, g as It, b as _t, c as jt, d as Et, e as Lt, f as Ct, h as Nt, i as Mt, j as kt } from "./servicewrapper-Q1ww3DUo.js";
2
+ import { A as a, a as c, N as b, M as D } from "./index-zyAgCXOO.js";
3
+ import { B as n } from "./calls-BvZkVSse.js";
4
+ import { D as F, L as T, a as O } from "./models-DU8pTcoZ.js";
5
+ function w(e) {
6
+ return n(3503478684, e);
7
+ }
8
+ const ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
9
  __proto__: null,
13
- DetectLanguage: j
10
+ DetectLanguage: w
14
11
  }, Symbol.toStringTag, { value: "Module" }));
15
- function E(e, t) {
16
- return i(2691208406, e, t);
12
+ function I(e, t) {
13
+ return n(2691208406, e, t);
17
14
  }
18
- function L(e, t) {
19
- return i(3932965591, e, t);
15
+ function _(e, t) {
16
+ return n(3932965591, e, t);
20
17
  }
21
- function C(e, t) {
22
- return i(1686862755, e, t);
18
+ function j(e, t) {
19
+ return n(1686862755, e, t);
23
20
  }
24
- function N(e, t, r) {
25
- return i(3705442919, e, t, r);
21
+ function E(e, t, i) {
22
+ return n(3705442919, e, t, i);
26
23
  }
27
- function M(e) {
28
- return i(3024854267, e);
24
+ function L(e) {
25
+ return n(3024854267, e);
29
26
  }
30
- function k(e) {
31
- return i(3423289677, e);
27
+ function C(e) {
28
+ return n(3423289677, e);
32
29
  }
33
- function P(e) {
34
- return i(158417611, e);
30
+ function N(e) {
31
+ return n(158417611, e);
35
32
  }
36
- function R(e) {
37
- return i(3413815733, e);
33
+ function M(e) {
34
+ return n(3413815733, e);
38
35
  }
39
- function x(e, t) {
40
- return i(2047870999, e, t);
36
+ function k(e, t) {
37
+ return n(2047870999, e, t);
41
38
  }
42
- const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39
+ const dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43
40
  __proto__: null,
44
- Debug: E,
45
- Error: L,
46
- Info: C,
47
- Log: N,
48
- ReadLog: M,
49
- ReportStartupReady: k,
50
- StartTail: P,
51
- StopTail: R,
52
- Warn: x
41
+ Debug: I,
42
+ Error: _,
43
+ Info: j,
44
+ Log: E,
45
+ ReadLog: L,
46
+ ReportStartupReady: C,
47
+ StartTail: N,
48
+ StopTail: M,
49
+ Warn: k
53
50
  }, Symbol.toStringTag, { value: "Module" }));
54
- function A(e, t) {
55
- return i(712656304, e, t).then((r) => q(r));
51
+ function P(e, t) {
52
+ return n(712656304, e, t).then((i) => W(i));
56
53
  }
57
- function G(e) {
58
- return i(4153226260, e).then((t) => c(t));
54
+ function R(e) {
55
+ return n(4153226260, e).then((t) => o(t));
59
56
  }
60
- function J(e) {
61
- return i(1859413816, e);
57
+ function x(e) {
58
+ return n(1859413816, e);
62
59
  }
63
- function z() {
64
- return i(2707386443).then((e) => H(e));
60
+ function A() {
61
+ return n(2707386443).then((e) => Z(e));
65
62
  }
66
- function U(e) {
67
- return i(2381063937, e);
63
+ function G(e) {
64
+ return n(2381063937, e);
68
65
  }
69
- function V(e) {
70
- return i(123659362, e).then((t) => c(t));
66
+ function J(e) {
67
+ return n(123659362, e).then((t) => o(t));
71
68
  }
72
- function B(e) {
73
- return i(709599671, e).then((t) => c(t));
69
+ function z(e) {
70
+ return n(709599671, e).then((t) => o(t));
74
71
  }
75
- function W(e, t) {
76
- return i(2105869281, e, t).then((r) => c(r));
72
+ function U(e, t) {
73
+ return n(2105869281, e, t).then((i) => o(i));
77
74
  }
78
- function Z(e) {
79
- return i(1371062537, e);
75
+ function V(e) {
76
+ return n(1371062537, e);
80
77
  }
81
- const Y = I.createFrom, q = o(Y), c = w.createFrom, H = o(c), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78
+ const B = T.createFrom, W = a(B), o = F.createFrom, Z = a(o), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82
79
  __proto__: null,
83
- GetDevServerLogs: A,
84
- GetDevServerState: G,
85
- IsManaged: J,
86
- ListDevServerStates: z,
87
- RebuildPlugin: U,
88
- RestartDevServer: V,
89
- StartDevServer: B,
90
- StartDevServerForPath: W,
91
- StopDevServer: Z
80
+ GetDevServerLogs: P,
81
+ GetDevServerState: R,
82
+ IsManaged: x,
83
+ ListDevServerStates: A,
84
+ RebuildPlugin: G,
85
+ RestartDevServer: J,
86
+ StartDevServer: z,
87
+ StartDevServerForPath: U,
88
+ StopDevServer: V
92
89
  }, Symbol.toStringTag, { value: "Module" }));
93
- function K(e, t) {
94
- return i(1867216983, e, t).then((r) => m(r));
90
+ function q(e, t) {
91
+ return n(1867216983, e, t).then((i) => g(i));
95
92
  }
96
- function Q() {
97
- return i(3418650705).then((e) => nt(e));
93
+ function H() {
94
+ return n(3418650705).then((e) => $(e));
98
95
  }
99
- function X(e, t) {
100
- return i(4138610615, e, t).then((r) => m(r));
96
+ function K(e, t) {
97
+ return n(4138610615, e, t).then((i) => g(i));
101
98
  }
102
- function $(e) {
103
- return i(3055914536, e);
99
+ function Q(e) {
100
+ return n(3055914536, e);
104
101
  }
105
- function tt(e) {
106
- return i(1502487629, e);
102
+ function X(e) {
103
+ return n(1502487629, e);
107
104
  }
108
- const et = _.createFrom, m = o(et), nt = o(l), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
105
+ const Y = O.createFrom, g = a(Y), $ = a(c), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
109
106
  __proto__: null,
110
- GetLogs: K,
111
- ListStreams: Q,
112
- SearchLogs: X,
113
- Subscribe: $,
114
- Unsubscribe: tt
107
+ GetLogs: q,
108
+ ListStreams: H,
109
+ SearchLogs: K,
110
+ Subscribe: Q,
111
+ Unsubscribe: X
115
112
  }, Symbol.toStringTag, { value: "Module" }));
116
- class p {
113
+ class l {
114
+ browser;
115
+ vite;
116
+ hmr;
117
+ mcp;
118
+ control;
119
+ health;
117
120
  /** Creates a new Endpoints instance. */
118
121
  constructor(t = {}) {
119
- n(this, "browser");
120
- n(this, "vite");
121
- n(this, "hmr");
122
- n(this, "mcp");
123
- n(this, "control");
124
- n(this, "health");
125
122
  "browser" in t || (this.browser = null), "vite" in t || (this.vite = null), "hmr" in t || (this.hmr = null), "mcp" in t || (this.mcp = null), "control" in t || (this.control = null), "health" in t || (this.health = null), Object.assign(this, t);
126
123
  }
127
124
  /**
128
125
  * Creates a new Endpoints instance from a string or object.
129
126
  */
130
127
  static createFrom(t = {}) {
131
- let r = typeof t == "string" ? JSON.parse(t) : t;
132
- return new p(r);
128
+ let i = typeof t == "string" ? JSON.parse(t) : t;
129
+ return new l(i);
133
130
  }
134
131
  }
135
- class u {
132
+ class f {
133
+ code;
134
+ message;
135
+ details;
136
136
  /** Creates a new Error instance. */
137
137
  constructor(t = {}) {
138
- n(this, "code");
139
- n(this, "message");
140
- n(this, "details");
141
138
  "code" in t || (this.code = ""), "message" in t || (this.message = ""), Object.assign(this, t);
142
139
  }
143
140
  /**
144
141
  * Creates a new Error instance from a string or object.
145
142
  */
146
143
  static createFrom(t = {}) {
147
- const r = it;
148
- let a = typeof t == "string" ? JSON.parse(t) : t;
149
- return "details" in a && (a.details = r(a.details)), new u(a);
144
+ const i = tt;
145
+ let s = typeof t == "string" ? JSON.parse(t) : t;
146
+ return "details" in s && (s.details = i(s.details)), new f(s);
150
147
  }
151
148
  }
152
- class h {
149
+ class u {
150
+ schemaVersion;
151
+ workspaceID;
152
+ instanceID;
153
+ generation;
154
+ kind;
155
+ channel;
156
+ displayName;
157
+ stateRoot;
158
+ process;
159
+ version;
160
+ commit;
161
+ repositories;
162
+ endpoints;
163
+ plugins;
164
+ readiness;
165
+ lastError;
166
+ startedAt;
153
167
  /** Creates a new InstanceDescriptor instance. */
154
168
  constructor(t = {}) {
155
- n(this, "schemaVersion");
156
- n(this, "workspaceID");
157
- n(this, "instanceID");
158
- n(this, "generation");
159
- n(this, "kind");
160
- n(this, "channel");
161
- n(this, "displayName");
162
- n(this, "stateRoot");
163
- n(this, "process");
164
- n(this, "version");
165
- n(this, "commit");
166
- n(this, "repositories");
167
- n(this, "endpoints");
168
- n(this, "plugins");
169
- n(this, "readiness");
170
- n(this, "lastError");
171
- n(this, "startedAt");
172
- "schemaVersion" in t || (this.schemaVersion = 0), "workspaceID" in t || (this.workspaceID = ""), "instanceID" in t || (this.instanceID = ""), "generation" in t || (this.generation = ""), "kind" in t || (this.kind = ""), "channel" in t || (this.channel = ""), "displayName" in t || (this.displayName = ""), "stateRoot" in t || (this.stateRoot = ""), "process" in t || (this.process = new f()), "version" in t || (this.version = ""), "commit" in t || (this.commit = ""), "repositories" in t || (this.repositories = []), "endpoints" in t || (this.endpoints = new p()), "plugins" in t || (this.plugins = []), "readiness" in t || (this.readiness = ""), "startedAt" in t || (this.startedAt = "0001-01-01T00:00:00.000Z"), Object.assign(this, t);
169
+ "schemaVersion" in t || (this.schemaVersion = 0), "workspaceID" in t || (this.workspaceID = ""), "instanceID" in t || (this.instanceID = ""), "generation" in t || (this.generation = ""), "kind" in t || (this.kind = ""), "channel" in t || (this.channel = ""), "displayName" in t || (this.displayName = ""), "stateRoot" in t || (this.stateRoot = ""), "process" in t || (this.process = new p()), "version" in t || (this.version = ""), "commit" in t || (this.commit = ""), "repositories" in t || (this.repositories = []), "endpoints" in t || (this.endpoints = new l()), "plugins" in t || (this.plugins = []), "readiness" in t || (this.readiness = ""), "startedAt" in t || (this.startedAt = "0001-01-01T00:00:00.000Z"), Object.assign(this, t);
173
170
  }
174
171
  /**
175
172
  * Creates a new InstanceDescriptor instance from a string or object.
176
173
  */
177
174
  static createFrom(t = {}) {
178
- const r = rt, a = at, y = ot, v = lt, b = S;
179
- let s = typeof t == "string" ? JSON.parse(t) : t;
180
- return "process" in s && (s.process = r(s.process)), "repositories" in s && (s.repositories = a(s.repositories)), "endpoints" in s && (s.endpoints = y(s.endpoints)), "plugins" in s && (s.plugins = v(s.plugins)), "lastError" in s && (s.lastError = b(s.lastError)), new h(s);
175
+ const i = et, s = it, S = rt, y = at, v = m;
176
+ let r = typeof t == "string" ? JSON.parse(t) : t;
177
+ return "process" in r && (r.process = i(r.process)), "repositories" in r && (r.repositories = s(r.repositories)), "endpoints" in r && (r.endpoints = S(r.endpoints)), "plugins" in r && (r.plugins = y(r.plugins)), "lastError" in r && (r.lastError = v(r.lastError)), new u(r);
181
178
  }
182
179
  }
183
- class d {
180
+ class h {
181
+ id;
182
+ version;
183
+ source;
184
+ generation;
185
+ mode;
186
+ buildStatus;
187
+ viteStatus;
188
+ rpcStatus;
189
+ controllerStatus;
190
+ operationID;
191
+ lastError;
184
192
  /** Creates a new PluginState instance. */
185
193
  constructor(t = {}) {
186
- n(this, "id");
187
- n(this, "version");
188
- n(this, "source");
189
- n(this, "generation");
190
- n(this, "mode");
191
- n(this, "buildStatus");
192
- n(this, "viteStatus");
193
- n(this, "rpcStatus");
194
- n(this, "controllerStatus");
195
- n(this, "operationID");
196
- n(this, "lastError");
197
194
  "id" in t || (this.id = ""), "version" in t || (this.version = ""), "source" in t || (this.source = ""), "generation" in t || (this.generation = ""), "mode" in t || (this.mode = ""), "buildStatus" in t || (this.buildStatus = ""), "viteStatus" in t || (this.viteStatus = ""), "rpcStatus" in t || (this.rpcStatus = ""), "controllerStatus" in t || (this.controllerStatus = ""), Object.assign(this, t);
198
195
  }
199
196
  /**
200
197
  * Creates a new PluginState instance from a string or object.
201
198
  */
202
199
  static createFrom(t = {}) {
203
- const r = S;
204
- let a = typeof t == "string" ? JSON.parse(t) : t;
205
- return "lastError" in a && (a.lastError = r(a.lastError)), new d(a);
200
+ const i = m;
201
+ let s = typeof t == "string" ? JSON.parse(t) : t;
202
+ return "lastError" in s && (s.lastError = i(s.lastError)), new h(s);
206
203
  }
207
204
  }
208
- class f {
205
+ class p {
206
+ pid;
207
+ startIdentity;
208
+ executable;
209
+ workspaceID;
210
+ generation;
211
+ role;
212
+ source;
209
213
  /** Creates a new ProcessIdentity instance. */
210
214
  constructor(t = {}) {
211
- n(this, "pid");
212
- n(this, "startIdentity");
213
- n(this, "executable");
214
- n(this, "workspaceID");
215
- n(this, "generation");
216
- n(this, "role");
217
- n(this, "source");
218
215
  "pid" in t || (this.pid = 0), "startIdentity" in t || (this.startIdentity = ""), "executable" in t || (this.executable = ""), "workspaceID" in t || (this.workspaceID = ""), "generation" in t || (this.generation = ""), "role" in t || (this.role = ""), Object.assign(this, t);
219
216
  }
220
217
  /**
221
218
  * Creates a new ProcessIdentity instance from a string or object.
222
219
  */
223
220
  static createFrom(t = {}) {
224
- let r = typeof t == "string" ? JSON.parse(t) : t;
225
- return new f(r);
221
+ let i = typeof t == "string" ? JSON.parse(t) : t;
222
+ return new p(i);
226
223
  }
227
224
  }
228
- class g {
225
+ class d {
226
+ id;
227
+ path;
228
+ ref;
229
+ commit;
229
230
  /** Creates a new RepositoryResolution instance. */
230
231
  constructor(t = {}) {
231
- n(this, "id");
232
- n(this, "path");
233
- n(this, "ref");
234
- n(this, "commit");
235
232
  "id" in t || (this.id = ""), "path" in t || (this.path = ""), "ref" in t || (this.ref = ""), "commit" in t || (this.commit = ""), Object.assign(this, t);
236
233
  }
237
234
  /**
238
235
  * Creates a new RepositoryResolution instance from a string or object.
239
236
  */
240
237
  static createFrom(t = {}) {
241
- let r = typeof t == "string" ? JSON.parse(t) : t;
242
- return new g(r);
238
+ let i = typeof t == "string" ? JSON.parse(t) : t;
239
+ return new d(i);
243
240
  }
244
241
  }
245
- const it = O(l, l), rt = f.createFrom, st = g.createFrom, at = o(st), ot = p.createFrom, ct = d.createFrom, lt = o(ct), pt = u.createFrom, S = T(pt);
246
- function Dt() {
247
- return i(678226073).then((e) => ft(e));
242
+ const tt = D(c, c), et = p.createFrom, nt = d.createFrom, it = a(nt), rt = l.createFrom, st = h.createFrom, at = a(st), ot = f.createFrom, m = b(ot);
243
+ function St() {
244
+ return n(678226073).then((e) => ct(e));
248
245
  }
249
- function Ft() {
250
- return i(1706570792);
246
+ function yt() {
247
+ return n(1706570792);
251
248
  }
252
- function Tt(e) {
253
- return i(2957909098, e).then((t) => ut(t));
249
+ function vt(e) {
250
+ return n(2957909098, e).then((t) => lt(t));
254
251
  }
255
- function Ot(e) {
256
- return i(473489213, e);
252
+ function bt(e) {
253
+ return n(473489213, e);
257
254
  }
258
- function wt(e, t) {
259
- return i(3778694836, e, t);
255
+ function Dt(e, t) {
256
+ return n(3778694836, e, t);
260
257
  }
261
- const ft = h.createFrom, ut = o(l);
258
+ const ct = u.createFrom, lt = a(c);
262
259
  export {
263
- jt as DataClient,
264
- vt as DevServerManager,
265
- yt as DiagnosticsClient,
266
- Et as ExecClient,
267
- Dt as GetInstanceInfo,
268
- Ft as GetOperatingSystem,
269
- Lt as GraphClient,
270
- Ct as LogsClient,
271
- Nt as MetricClient,
272
- Mt as NetworkerClient,
273
- Tt as OpenFileSelectionDialog,
274
- bt as PluginLogManager,
275
- kt as PluginManager,
276
- Pt as ResourceClient,
277
- Ot as SaveFileDialog,
278
- Rt as SettingsClient,
279
- xt as SettingsProvider,
280
- At as UIClient,
281
- St as UtilsClient,
282
- wt as WriteFileContent
260
+ Ot as DataClient,
261
+ gt as DevServerManager,
262
+ dt as DiagnosticsClient,
263
+ wt as ExecClient,
264
+ St as GetInstanceInfo,
265
+ yt as GetOperatingSystem,
266
+ It as GraphClient,
267
+ _t as LogsClient,
268
+ jt as MetricClient,
269
+ Et as NetworkerClient,
270
+ vt as OpenFileSelectionDialog,
271
+ mt as PluginLogManager,
272
+ Lt as PluginManager,
273
+ Ct as ResourceClient,
274
+ bt as SaveFileDialog,
275
+ Nt as SettingsClient,
276
+ Mt as SettingsProvider,
277
+ kt as UIClient,
278
+ ht as UtilsClient,
279
+ Dt as WriteFileContent
283
280
  };
@@ -0,0 +1 @@
1
+ "use strict";const h=require("./index-BVi9X4oU.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,m;if(typeof y=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw m}}),m={},y(function(){throw 42},null,S)}catch(r){r!==m&&(y=null)}else y=null;var k=/^\s*class\b/,E=function(e){try{var t=M.call(e);return k.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,B="[object Object]",N="[object Function]",H="[object GeneratorFunction]",q="[object HTMLAllCollection]",z="[object HTML document.all class]",G="[object HTMLCollection]",J=typeof Symbol=="function"&&!!Symbol.toStringTag,W=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var K=document.all;w.call(K)===w.call(document.all)&&(O=function(e){if((W||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===q||t===z||t===G||t===B)&&e("")==null}catch{}return!1})}function Q(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{y(r,null,S)}catch(e){if(e!==m)return!1}return!E(r)&&R(r)}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(J)return R(r);if(E(r))return!1;var e=w.call(r);return e!==N&&e!==H&&!/^\[object HTML/.test(e)?!1:R(r)}const d=y?Q:V;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+X(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((a,v)=>{n=a,o=v}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(a){t=a??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const s=I(c,i);try{e(L(c,i),s)}catch(a){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",a):s(a)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Y(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>{this.cancel(e.reason)},{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(d(e)||(e=D),d(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(e(s))}catch(v){i(v)}},s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(t(s))}catch(v){i(v)}})},async c=>{try{return n?.(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return d(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>j(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>j(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>j(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>j(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>{n.cancel(t)}):setTimeout(()=>{n.cancel(t)},e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(d(n)){try{let i=t.cancel;if(d(i)){const s=a=>{Reflect.apply(i,t,[a])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:s}),e)(e.reason):r.oncancelled=s}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=I(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function I(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function j(r,e,t){const n=[];for(const o of e){let c;try{if(!d(o.then)||(c=o.cancel,!d(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(s){Promise.reject(new b(r,s,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(s=>{Promise.reject(new b(r,s,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function X(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Y(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,p()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let p=Promise.withResolvers;p&&typeof p=="function"?p=p.bind(Promise):p=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};h.hasDOM&&(window._wails=window._wails||{});const Z=h.newRuntimeCaller(h.objectNames.Call),$=h.newRuntimeCaller(h.objectNames.CancelCall),f=new Map,_=0,ee=0;function te(){let r;do r=h.nanoid();while(f.has(r));return r}function T(r){const e=te(),t=l.withResolvers(),n={resolve:t.resolve,reject:t.reject};f.set(e,n);const o=Z(_,Object.assign({"call-id":e},r));let c=!0;o.then(s=>{c=!1,f.get(e)===n&&(f.delete(e),n.resolve(s))},s=>{c=!1,f.get(e)===n&&(f.delete(e),n.reject(s))});const i=()=>(f.delete(e),$(ee,{"call-id":e}).catch(s=>{console.error("Error while requesting binding call cancellation:",s)}));return t.oncancelled=()=>c?i():o.then(i),t.promise}function re(r,...e){return T({methodName:r,args:e})}function U(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:U,ByName:re,Call:T,RuntimeError:h.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=U;exports.calls=ne;
@@ -1,4 +1,4 @@
1
- import { n as M, b as B, o as x, h as I, R as H } from "./index-D2mKAO8s.js";
1
+ import { b as B, n as M, o as x, h as I, R as H } from "./index-zyAgCXOO.js";
2
2
  var D = Function.prototype.toString, p = typeof Reflect == "object" && Reflect !== null && Reflect.apply, g, j;
3
3
  if (typeof p == "function" && typeof Object.defineProperty == "function")
4
4
  try {
@@ -91,7 +91,7 @@ class v extends Error {
91
91
  super((n ?? "Unhandled rejection in cancelled promise.") + " Reason: " + $(t), { cause: t }), this.promise = e, this.name = "CancelledRejectionError";
92
92
  }
93
93
  }
94
- const u = Symbol("barrier"), T = Symbol("cancelImpl"), P = (w = Symbol.species) !== null && w !== void 0 ? w : Symbol("speciesPolyfill");
94
+ const u = /* @__PURE__ */ Symbol("barrier"), T = /* @__PURE__ */ Symbol("cancelImpl"), P = (w = Symbol.species) !== null && w !== void 0 ? w : /* @__PURE__ */ Symbol("speciesPolyfill");
95
95
  class l extends Promise {
96
96
  /**
97
97
  * Creates a new `CancellablePromise`.
@@ -259,7 +259,9 @@ class l extends Promise {
259
259
  * @returns This promise, for method chaining.
260
260
  */
261
261
  cancelOn(e) {
262
- return e.aborted ? this.cancel(e.reason) : e.addEventListener("abort", () => void this.cancel(e.reason), { capture: !0 }), this;
262
+ return e.aborted ? this.cancel(e.reason) : e.addEventListener("abort", () => {
263
+ this.cancel(e.reason);
264
+ }, { capture: !0 }), this;
263
265
  }
264
266
  /**
265
267
  * Attaches callbacks for the resolution and/or rejection of the `CancellablePromise`.
@@ -316,7 +318,7 @@ class l extends Promise {
316
318
  });
317
319
  }, async (c) => {
318
320
  try {
319
- return n == null ? void 0 : n(c);
321
+ return n?.(c);
320
322
  } finally {
321
323
  await this.cancel(c);
322
324
  }
@@ -456,7 +458,11 @@ class l extends Promise {
456
458
  static timeout(e, t) {
457
459
  const n = new l(() => {
458
460
  });
459
- return AbortSignal && typeof AbortSignal == "function" && AbortSignal.timeout && typeof AbortSignal.timeout == "function" ? AbortSignal.timeout(e).addEventListener("abort", () => void n.cancel(t)) : setTimeout(() => void n.cancel(t), e), n;
461
+ return AbortSignal && typeof AbortSignal == "function" && AbortSignal.timeout && typeof AbortSignal.timeout == "function" ? AbortSignal.timeout(e).addEventListener("abort", () => {
462
+ n.cancel(t);
463
+ }) : setTimeout(() => {
464
+ n.cancel(t);
465
+ }, e), n;
460
466
  }
461
467
  static sleep(e, t) {
462
468
  return new l((n) => {
@@ -6,4 +6,4 @@ export interface SettingsContextType {
6
6
  export declare const SettingsContext: React.Context<SettingsContextType | undefined>;
7
7
  export declare const SettingsProvider: ({ children }: {
8
8
  children: React.ReactNode;
9
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }) => React.JSX.Element;