@placeos/ts-client 4.3.0 → 4.3.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.es.js CHANGED
@@ -676,7 +676,7 @@ var ei = function(t) {
676
676
  var r, i;
677
677
  return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Ln;
678
678
  }, e;
679
- }(me), ae = function(t) {
679
+ }(me), le = function(t) {
680
680
  Z(e, t);
681
681
  function e(n) {
682
682
  var r = t.call(this) || this;
@@ -2050,14 +2050,14 @@ function z(t) {
2050
2050
  )}`);
2051
2051
  return e;
2052
2052
  }
2053
- const _e = {}, Fe = {}, ue = {};
2053
+ const _e = {}, Fe = {}, ce = {};
2054
2054
  function Ki() {
2055
2055
  for (const t in _e)
2056
2056
  _e.hasOwnProperty(t) && ve(t);
2057
2057
  for (const t in Fe)
2058
2058
  Fe.hasOwnProperty(t) && Zi(t);
2059
- for (const t in ue)
2060
- ue.hasOwnProperty(t) && Gi(t);
2059
+ for (const t in ce)
2060
+ ce.hasOwnProperty(t) && Gi(t);
2061
2061
  }
2062
2062
  function ne(t, e, n = 300) {
2063
2063
  if (t && e && e instanceof Function)
@@ -2076,7 +2076,7 @@ function Zi(t) {
2076
2076
  Fe[t] && (clearInterval(Fe[t]), delete Fe[t]);
2077
2077
  }
2078
2078
  function Gi(t) {
2079
- ue && ue[t] && (ue[t] instanceof ge ? ue[t].unsubscribe() : ue[t](), delete ue[t]);
2079
+ ce && ce[t] && (ce[t] instanceof ge ? ce[t].unsubscribe() : ce[t](), delete ce[t]);
2080
2080
  }
2081
2081
  const Xi = {
2082
2082
  id: "mock-authority",
@@ -2093,9 +2093,9 @@ const Xi = {
2093
2093
  let v = {}, A, F;
2094
2094
  const b = {};
2095
2095
  let w = "", ye = "";
2096
- const Ee = new ae(""), wt = new ae("");
2096
+ const Ee = new le(""), wt = new le("");
2097
2097
  let an = "/api/engine/v2";
2098
- const ce = new ae(!1), eo = ce.asObservable();
2098
+ const ae = new le(!1), eo = ae.asObservable();
2099
2099
  let gt = 0;
2100
2100
  function be() {
2101
2101
  return `${`${v.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${v.host || window.location?.host}`}${hr()}`;
@@ -2150,7 +2150,7 @@ function vt() {
2150
2150
  return F;
2151
2151
  }
2152
2152
  function ys() {
2153
- return ce.getValue();
2153
+ return ae.getValue();
2154
2154
  }
2155
2155
  function ln() {
2156
2156
  return !!v.mock;
@@ -2179,7 +2179,7 @@ function vs(t) {
2179
2179
  return v = t || v, v.token_header = v.token_header ?? Qi(), window.AbortController || (window.AbortController = Ji), A = v.storage === "session" ? sessionStorage : localStorage, w = W.hashStr(v.redirect_uri, !1), dn();
2180
2180
  }
2181
2181
  function bs() {
2182
- v = {}, F = void 0, Ee.next(""), wt.next(""), ce.next(!1), w = "", ye = "", an = "/api/engine/v2";
2182
+ v = {}, F = void 0, Ee.next(""), wt.next(""), ae.next(!1), w = "", ye = "", an = "/api/engine/v2";
2183
2183
  for (const t in b)
2184
2184
  t in b && delete b[t];
2185
2185
  Ki();
@@ -2240,13 +2240,13 @@ function Ss() {
2240
2240
  }
2241
2241
  function dn(t = 0) {
2242
2242
  return b.load_authority || (b.load_authority = new Promise((e) => {
2243
- if (ce.next(!1), v.mock) {
2244
- F = Xi, d("Auth", "System in mock mode"), ce.next(!0), e();
2243
+ if (ae.next(!1), v.mock) {
2244
+ F = Xi, d("Auth", "System in mock mode"), ae.next(!0), e();
2245
2245
  return;
2246
2246
  }
2247
2247
  d("Auth", `Fixed: ${dr()} | Trusted: ${fn()}`), d("Auth", "Loading authority...");
2248
2248
  const n = v.secure || window.location?.protocol.indexOf("https") >= 0, r = (i) => {
2249
- d("Auth", `Failed to load authority(${i})`), ce.next(!1), ne(
2249
+ d("Auth", `Failed to load authority(${i})`), ae.next(!1), ne(
2250
2250
  "load_authority",
2251
2251
  () => {
2252
2252
  delete b.load_authority, dn(t).then((o) => e());
@@ -2269,7 +2269,7 @@ function dn(t = 0) {
2269
2269
  `Config Keys: ${Object.keys(F.config || {}).length}`
2270
2270
  )), d("Auth", "", [], "groupEnd");
2271
2271
  const o = () => {
2272
- ce.next(!0), d("Auth", "Application set online."), e();
2272
+ ae.next(!0), d("Auth", "Application set online."), e();
2273
2273
  };
2274
2274
  delete b.load_authority, _r("").then(o, o);
2275
2275
  }, r);
@@ -2433,7 +2433,7 @@ function pn(t) {
2433
2433
  ), he("access_token")), t.refresh_token && (A.setItem(
2434
2434
  `${w}_refresh_token`,
2435
2435
  t.refresh_token
2436
- ), he("refresh_token"))), t.expires_in && (A.setItem(`${w}_expires_at`, `${e.valueOf()}`), he("expires_in")), ce.next(!0), Ee.next(t.access_token || ""), wt.next(t.refresh_token || "");
2436
+ ), he("refresh_token"))), t.expires_in && (A.setItem(`${w}_expires_at`, `${e.valueOf()}`), he("expires_in")), ae.next(!0), Ee.next(t.access_token || ""), wt.next(t.refresh_token || "");
2437
2437
  }
2438
2438
  function yo() {
2439
2439
  const t = Hi();
@@ -2997,15 +2997,15 @@ class $r extends B {
2997
2997
  }));
2998
2998
  }
2999
2999
  }
3000
- const le = "drivers";
3000
+ const oe = "drivers";
3001
3001
  function Ut(t) {
3002
3002
  return new $r(t);
3003
3003
  }
3004
3004
  function Ws(t = {}) {
3005
- return E({ query_params: t, fn: Ut, path: le });
3005
+ return E({ query_params: t, fn: Ut, path: oe });
3006
3006
  }
3007
3007
  function Bs(t, e = {}) {
3008
- return $({ id: t, query_params: e, fn: Ut, path: le });
3008
+ return $({ id: t, query_params: e, fn: Ut, path: oe });
3009
3009
  }
3010
3010
  function Vs(t, e, n = "patch") {
3011
3011
  return C({
@@ -3014,23 +3014,26 @@ function Vs(t, e, n = "patch") {
3014
3014
  query_params: {},
3015
3015
  method: n,
3016
3016
  fn: Ut,
3017
- path: le
3017
+ path: oe
3018
3018
  });
3019
3019
  }
3020
3020
  function Qs(t) {
3021
- return q({ form_data: t, query_params: {}, fn: Ut, path: le });
3021
+ return q({ form_data: t, query_params: {}, fn: Ut, path: oe });
3022
3022
  }
3023
3023
  function Ys(t, e = {}) {
3024
- return M({ id: t, query_params: e, path: le });
3024
+ return M({ id: t, query_params: e, path: oe });
3025
3025
  }
3026
3026
  function Js(t) {
3027
- return y({ id: t, task_name: "recompile", path: le });
3027
+ return y({ id: t, task_name: "recompile", path: oe });
3028
3028
  }
3029
3029
  function Ks(t) {
3030
- return y({ id: t, task_name: "reload", path: le });
3030
+ return y({ id: t, task_name: "reload", path: oe });
3031
3031
  }
3032
3032
  function Zs(t) {
3033
- return y({ id: t, task_name: "compiled", method: "get", path: le });
3033
+ return y({ id: t, task_name: "compiled", method: "get", path: oe });
3034
+ }
3035
+ function Gs(t) {
3036
+ return y({ id: t, task_name: "readme", method: "get", path: oe });
3034
3037
  }
3035
3038
  class Ro extends B {
3036
3039
  description;
@@ -3050,13 +3053,13 @@ const Pe = "edges";
3050
3053
  function Dt(t) {
3051
3054
  return new Ro(t);
3052
3055
  }
3053
- function Gs(t = {}) {
3056
+ function Xs(t = {}) {
3054
3057
  return E({ query_params: t, fn: Dt, path: Pe });
3055
3058
  }
3056
- function Xs(t, e = {}) {
3059
+ function eu(t, e = {}) {
3057
3060
  return $({ id: t, query_params: e, fn: Dt, path: Pe });
3058
3061
  }
3059
- function eu(t, e, n = "patch") {
3062
+ function tu(t, e, n = "patch") {
3060
3063
  return C({
3061
3064
  id: t,
3062
3065
  form_data: e,
@@ -3066,13 +3069,13 @@ function eu(t, e, n = "patch") {
3066
3069
  path: Pe
3067
3070
  });
3068
3071
  }
3069
- function tu(t) {
3072
+ function nu(t) {
3070
3073
  return q({ form_data: t, query_params: {}, fn: Dt, path: Pe });
3071
3074
  }
3072
- function nu(t, e = {}) {
3075
+ function ru(t, e = {}) {
3073
3076
  return M({ id: t, query_params: e, path: Pe });
3074
3077
  }
3075
- function ru(t, e = {}) {
3078
+ function iu(t, e = {}) {
3076
3079
  return y({
3077
3080
  id: t,
3078
3081
  task_name: "token",
@@ -3113,13 +3116,13 @@ const Je = "ldap_auths";
3113
3116
  function Nt(t) {
3114
3117
  return new Uo(t);
3115
3118
  }
3116
- function iu(t = {}) {
3119
+ function ou(t = {}) {
3117
3120
  return E({ query_params: t, fn: Nt, path: Je });
3118
3121
  }
3119
- function ou(t, e = {}) {
3122
+ function su(t, e = {}) {
3120
3123
  return $({ id: t, query_params: e, fn: Nt, path: Je });
3121
3124
  }
3122
- function su(t, e, n = "patch") {
3125
+ function uu(t, e, n = "patch") {
3123
3126
  return C({
3124
3127
  id: t,
3125
3128
  form_data: e,
@@ -3129,10 +3132,10 @@ function su(t, e, n = "patch") {
3129
3132
  path: Je
3130
3133
  });
3131
3134
  }
3132
- function uu(t) {
3135
+ function cu(t) {
3133
3136
  return q({ form_data: t, query_params: {}, fn: Nt, path: Je });
3134
3137
  }
3135
- function cu(t, e = {}) {
3138
+ function au(t, e = {}) {
3136
3139
  return M({ id: t, query_params: e, path: Je });
3137
3140
  }
3138
3141
  class Ar {
@@ -3296,7 +3299,7 @@ const ke = "metadata";
3296
3299
  function Ke(t) {
3297
3300
  return new Ar(t);
3298
3301
  }
3299
- function au(t, e = {}) {
3302
+ function lu(t, e = {}) {
3300
3303
  return $({
3301
3304
  id: t,
3302
3305
  query_params: e,
@@ -3312,7 +3315,7 @@ function No(t) {
3312
3315
  }
3313
3316
  return n.reverse();
3314
3317
  }
3315
- function lu(t, e = {}) {
3318
+ function fu(t, e = {}) {
3316
3319
  return y({
3317
3320
  id: t,
3318
3321
  task_name: "history",
@@ -3326,7 +3329,7 @@ function lu(t, e = {}) {
3326
3329
  path: ke
3327
3330
  });
3328
3331
  }
3329
- function fu(t, e, n = {}) {
3332
+ function hu(t, e, n = {}) {
3330
3333
  return $({
3331
3334
  id: t,
3332
3335
  query_params: { ...n, name: e },
@@ -3334,7 +3337,7 @@ function fu(t, e, n = {}) {
3334
3337
  path: ke
3335
3338
  });
3336
3339
  }
3337
- function hu(t, e, n = "put") {
3340
+ function du(t, e, n = "put") {
3338
3341
  return C({
3339
3342
  id: t,
3340
3343
  form_data: e,
@@ -3344,13 +3347,13 @@ function hu(t, e, n = "put") {
3344
3347
  path: ke
3345
3348
  });
3346
3349
  }
3347
- function du(t) {
3350
+ function pu(t) {
3348
3351
  return q({ form_data: t, query_params: {}, fn: Ke, path: ke });
3349
3352
  }
3350
- function pu(t, e = {}) {
3353
+ function _u(t, e = {}) {
3351
3354
  return M({ id: t, query_params: e, path: ke });
3352
3355
  }
3353
- function _u(t, e) {
3356
+ function mu(t, e) {
3354
3357
  return y({
3355
3358
  id: t,
3356
3359
  task_name: "children",
@@ -3491,13 +3494,13 @@ const K = "modules";
3491
3494
  function qt(t) {
3492
3495
  return new Or(t);
3493
3496
  }
3494
- function mu(t = {}) {
3497
+ function yu(t = {}) {
3495
3498
  return E({ query_params: t, fn: qt, path: K });
3496
3499
  }
3497
- function yu(t, e = {}) {
3500
+ function gu(t, e = {}) {
3498
3501
  return $({ id: t, query_params: e, fn: qt, path: K });
3499
3502
  }
3500
- function gu(t, e, n = "patch") {
3503
+ function vu(t, e, n = "patch") {
3501
3504
  return C({
3502
3505
  id: t,
3503
3506
  form_data: e,
@@ -3507,28 +3510,28 @@ function gu(t, e, n = "patch") {
3507
3510
  path: K
3508
3511
  });
3509
3512
  }
3510
- function vu(t) {
3513
+ function bu(t) {
3511
3514
  return q({ form_data: t, query_params: {}, fn: qt, path: K });
3512
3515
  }
3513
- function bu(t, e = {}) {
3516
+ function Su(t, e = {}) {
3514
3517
  return M({ id: t, query_params: e, path: K });
3515
3518
  }
3516
- function Su(t) {
3519
+ function ku(t) {
3517
3520
  return y({ id: t, task_name: "start", path: K });
3518
3521
  }
3519
- function ku(t) {
3522
+ function xu(t) {
3520
3523
  return y({ id: t, task_name: "stop", path: K });
3521
3524
  }
3522
- function xu(t) {
3525
+ function $u(t) {
3523
3526
  return y({ id: t, task_name: "state", method: "get", path: K });
3524
3527
  }
3525
- function $u(t, e) {
3528
+ function Au(t, e) {
3526
3529
  return y({ id: t, task_name: `state${e}`, method: "get", path: K });
3527
3530
  }
3528
- function Au(t) {
3531
+ function wu(t) {
3529
3532
  return y({ id: t, task_name: "load", method: "post", path: K });
3530
3533
  }
3531
- function wu(t) {
3534
+ function Ou(t) {
3532
3535
  return y({
3533
3536
  id: t,
3534
3537
  task_name: "settings",
@@ -3537,7 +3540,7 @@ function wu(t) {
3537
3540
  path: K
3538
3541
  });
3539
3542
  }
3540
- function Ou(t) {
3543
+ function Eu(t) {
3541
3544
  return y({
3542
3545
  id: t,
3543
3546
  task_name: "error",
@@ -3582,13 +3585,13 @@ const Ze = "oauth_auths";
3582
3585
  function Ct(t) {
3583
3586
  return new qo(t);
3584
3587
  }
3585
- function Eu(t = {}) {
3588
+ function Iu(t = {}) {
3586
3589
  return E({ query_params: t, fn: Ct, path: Ze });
3587
3590
  }
3588
- function Iu(t, e = {}) {
3591
+ function Tu(t, e = {}) {
3589
3592
  return $({ id: t, query_params: e, fn: Ct, path: Ze });
3590
3593
  }
3591
- function Tu(t, e, n = "patch") {
3594
+ function Pu(t, e, n = "patch") {
3592
3595
  return C({
3593
3596
  id: t,
3594
3597
  form_data: e,
@@ -3598,10 +3601,10 @@ function Tu(t, e, n = "patch") {
3598
3601
  path: Ze
3599
3602
  });
3600
3603
  }
3601
- function Pu(t) {
3604
+ function Mu(t) {
3602
3605
  return q({ form_data: t, query_params: {}, fn: Ct, path: Ze });
3603
3606
  }
3604
- function Mu(t, e = {}) {
3607
+ function Ru(t, e = {}) {
3605
3608
  return M({ id: t, query_params: e, path: Ze });
3606
3609
  }
3607
3610
  var Er = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Er || {});
@@ -3636,13 +3639,13 @@ const V = "repositories";
3636
3639
  function jt(t) {
3637
3640
  return new Co(t);
3638
3641
  }
3639
- function Ru(t = {}) {
3642
+ function Uu(t = {}) {
3640
3643
  return E({ query_params: t, fn: jt, path: V });
3641
3644
  }
3642
- function Uu(t, e = {}) {
3645
+ function Du(t, e = {}) {
3643
3646
  return $({ id: t, query_params: e, fn: jt, path: V });
3644
3647
  }
3645
- function Du(t, e, n = "patch") {
3648
+ function Nu(t, e, n = "patch") {
3646
3649
  return C({
3647
3650
  id: t,
3648
3651
  form_data: e,
@@ -3652,41 +3655,41 @@ function Du(t, e, n = "patch") {
3652
3655
  path: V
3653
3656
  });
3654
3657
  }
3655
- function Nu(t) {
3658
+ function qu(t) {
3656
3659
  return q({ form_data: t, query_params: {}, fn: jt, path: V });
3657
3660
  }
3658
- function qu(t, e = {}) {
3661
+ function Cu(t, e = {}) {
3659
3662
  return M({ id: t, query_params: e, path: V });
3660
3663
  }
3661
- function Cu(t = {}) {
3664
+ function ju(t = {}) {
3662
3665
  return $({
3663
3666
  id: "interfaces",
3664
3667
  query_params: t,
3665
3668
  path: V
3666
3669
  });
3667
3670
  }
3668
- function ju(t) {
3671
+ function Fu(t) {
3669
3672
  return $({
3670
3673
  id: "remote_default_branch",
3671
3674
  query_params: t,
3672
3675
  path: V
3673
3676
  });
3674
3677
  }
3675
- function Fu(t) {
3678
+ function zu(t) {
3676
3679
  return $({
3677
3680
  id: "remote_branches",
3678
3681
  query_params: t,
3679
3682
  path: V
3680
3683
  });
3681
3684
  }
3682
- function zu(t) {
3685
+ function Lu(t) {
3683
3686
  return $({
3684
3687
  id: "remote_commits",
3685
3688
  query_params: t,
3686
3689
  path: V
3687
3690
  });
3688
3691
  }
3689
- function Lu(t, e) {
3692
+ function Hu(t, e) {
3690
3693
  return y({
3691
3694
  id: t,
3692
3695
  task_name: "drivers",
@@ -3695,7 +3698,7 @@ function Lu(t, e) {
3695
3698
  path: V
3696
3699
  });
3697
3700
  }
3698
- function Hu(t, e) {
3701
+ function Wu(t, e) {
3699
3702
  return y({
3700
3703
  id: t,
3701
3704
  task_name: "commits",
@@ -3704,7 +3707,7 @@ function Hu(t, e) {
3704
3707
  path: V
3705
3708
  });
3706
3709
  }
3707
- function Wu(t) {
3710
+ function Bu(t) {
3708
3711
  return y({
3709
3712
  id: t,
3710
3713
  task_name: "branches",
@@ -3712,7 +3715,7 @@ function Wu(t) {
3712
3715
  path: V
3713
3716
  });
3714
3717
  }
3715
- function Bu(t) {
3718
+ function Vu(t) {
3716
3719
  return y({
3717
3720
  id: t,
3718
3721
  task_name: "default_branch",
@@ -3720,7 +3723,7 @@ function Bu(t) {
3720
3723
  path: V
3721
3724
  });
3722
3725
  }
3723
- function Vu(t, e) {
3726
+ function Qu(t, e) {
3724
3727
  return y({
3725
3728
  id: t,
3726
3729
  task_name: "details",
@@ -3729,7 +3732,7 @@ function Vu(t, e) {
3729
3732
  path: V
3730
3733
  });
3731
3734
  }
3732
- function Qu(t, e) {
3735
+ function Yu(t, e) {
3733
3736
  return y({
3734
3737
  id: t,
3735
3738
  task_name: "pull",
@@ -3780,13 +3783,13 @@ const Ge = "saml_auths";
3780
3783
  function Ft(t) {
3781
3784
  return new jo(t);
3782
3785
  }
3783
- function Yu(t = {}) {
3786
+ function Ju(t = {}) {
3784
3787
  return E({ query_params: t, fn: Ft, path: Ge });
3785
3788
  }
3786
- function Ju(t, e = {}) {
3789
+ function Ku(t, e = {}) {
3787
3790
  return $({ id: t, query_params: e, fn: Ft, path: Ge });
3788
3791
  }
3789
- function Ku(t, e, n = "patch") {
3792
+ function Zu(t, e, n = "patch") {
3790
3793
  return C({
3791
3794
  id: t,
3792
3795
  form_data: e,
@@ -3796,23 +3799,23 @@ function Ku(t, e, n = "patch") {
3796
3799
  path: Ge
3797
3800
  });
3798
3801
  }
3799
- function Zu(t) {
3802
+ function Gu(t) {
3800
3803
  return q({ form_data: t, query_params: {}, fn: Ft, path: Ge });
3801
3804
  }
3802
- function Gu(t, e = {}) {
3805
+ function Xu(t, e = {}) {
3803
3806
  return M({ id: t, query_params: e, path: Ge });
3804
3807
  }
3805
3808
  const Re = "settings";
3806
3809
  function Xe(t) {
3807
3810
  return new Se(t);
3808
3811
  }
3809
- function Xu(t = {}) {
3812
+ function ec(t = {}) {
3810
3813
  return E({ query_params: t, fn: Xe, path: Re });
3811
3814
  }
3812
- function ec(t, e = {}) {
3815
+ function tc(t, e = {}) {
3813
3816
  return $({ id: t, query_params: e, fn: Xe, path: Re });
3814
3817
  }
3815
- function tc(t, e, n = {}, r = "patch") {
3818
+ function nc(t, e, n = {}, r = "patch") {
3816
3819
  return C({
3817
3820
  id: t,
3818
3821
  form_data: e,
@@ -3822,13 +3825,13 @@ function tc(t, e, n = {}, r = "patch") {
3822
3825
  path: Re
3823
3826
  });
3824
3827
  }
3825
- function nc(t, e = {}) {
3828
+ function rc(t, e = {}) {
3826
3829
  return q({ form_data: t, query_params: e, fn: Xe, path: Re });
3827
3830
  }
3828
- function rc(t, e = {}) {
3831
+ function ic(t, e = {}) {
3829
3832
  return M({ id: t, query_params: e, path: Re });
3830
3833
  }
3831
- function ic(t, e = {}) {
3834
+ function oc(t, e = {}) {
3832
3835
  return y({
3833
3836
  id: t,
3834
3837
  task_name: "history",
@@ -3842,16 +3845,16 @@ const R = "systems";
3842
3845
  function xe(t) {
3843
3846
  return new wr(t);
3844
3847
  }
3845
- function oc(t = {}) {
3848
+ function sc(t = {}) {
3846
3849
  return E({ query_params: t, fn: xe, path: R });
3847
3850
  }
3848
- function sc(t = {}) {
3851
+ function uc(t = {}) {
3849
3852
  return E({ query_params: t, fn: xe, path: `${R}/with_emails` });
3850
3853
  }
3851
- function uc(t, e = {}) {
3854
+ function cc(t, e = {}) {
3852
3855
  return $({ id: t, query_params: e, fn: xe, path: R });
3853
3856
  }
3854
- function cc(t, e, n = "patch") {
3857
+ function ac(t, e, n = "patch") {
3855
3858
  return C({
3856
3859
  id: t,
3857
3860
  form_data: e,
@@ -3861,13 +3864,13 @@ function cc(t, e, n = "patch") {
3861
3864
  path: R
3862
3865
  });
3863
3866
  }
3864
- function ac(t) {
3867
+ function lc(t) {
3865
3868
  return q({ form_data: t, query_params: {}, fn: xe, path: R });
3866
3869
  }
3867
- function lc(t, e = {}) {
3870
+ function fc(t, e = {}) {
3868
3871
  return M({ id: t, query_params: e, path: R });
3869
3872
  }
3870
- function fc(t, e, n = {}) {
3873
+ function hc(t, e, n = {}) {
3871
3874
  return y({
3872
3875
  id: t,
3873
3876
  task_name: `module/${e}`,
@@ -3877,7 +3880,7 @@ function fc(t, e, n = {}) {
3877
3880
  path: R
3878
3881
  });
3879
3882
  }
3880
- function hc(t, e) {
3883
+ function dc(t, e) {
3881
3884
  return y({
3882
3885
  id: t,
3883
3886
  task_name: `module/${e}`,
@@ -3887,7 +3890,7 @@ function hc(t, e) {
3887
3890
  path: R
3888
3891
  });
3889
3892
  }
3890
- function dc(t) {
3893
+ function pc(t) {
3891
3894
  return y({
3892
3895
  id: t,
3893
3896
  task_name: "start",
@@ -3895,14 +3898,14 @@ function dc(t) {
3895
3898
  path: R
3896
3899
  });
3897
3900
  }
3898
- function pc(t) {
3901
+ function _c(t) {
3899
3902
  return y({
3900
3903
  id: t,
3901
3904
  task_name: "stop",
3902
3905
  path: R
3903
3906
  });
3904
3907
  }
3905
- function _c(t, e, n, r = 1, i = []) {
3908
+ function mc(t, e, n, r = 1, i = []) {
3906
3909
  return y({
3907
3910
  id: t,
3908
3911
  task_name: `${n}_${r}/${encodeURIComponent(e)}`,
@@ -3910,7 +3913,7 @@ function _c(t, e, n, r = 1, i = []) {
3910
3913
  path: R
3911
3914
  });
3912
3915
  }
3913
- function mc(t, e, n = 1) {
3916
+ function yc(t, e, n = 1) {
3914
3917
  return y({
3915
3918
  id: t,
3916
3919
  task_name: `${e}_${n}`,
@@ -3918,7 +3921,7 @@ function mc(t, e, n = 1) {
3918
3921
  path: R
3919
3922
  });
3920
3923
  }
3921
- function yc(t, e, n = 1, r) {
3924
+ function gc(t, e, n = 1, r) {
3922
3925
  return y({
3923
3926
  id: t,
3924
3927
  task_name: `${e}_${n}/${r}`,
@@ -3926,7 +3929,7 @@ function yc(t, e, n = 1, r) {
3926
3929
  path: R
3927
3930
  });
3928
3931
  }
3929
- function gc(t, e, n = 1) {
3932
+ function vc(t, e, n = 1) {
3930
3933
  return y({
3931
3934
  id: t,
3932
3935
  task_name: `functions/${e}_${n}`,
@@ -3934,21 +3937,21 @@ function gc(t, e, n = 1) {
3934
3937
  path: R
3935
3938
  });
3936
3939
  }
3937
- function vc(t) {
3940
+ function bc(t) {
3938
3941
  return E({
3939
3942
  query_params: {},
3940
3943
  fn: (e) => new mn(e),
3941
3944
  path: `${R}/${t}/zones`
3942
3945
  });
3943
3946
  }
3944
- function bc(t) {
3947
+ function Sc(t) {
3945
3948
  return E({
3946
3949
  query_params: {},
3947
3950
  fn: (e) => new Me(e),
3948
3951
  path: `${R}/${t}/triggers`
3949
3952
  });
3950
3953
  }
3951
- function Sc(t, e) {
3954
+ function kc(t, e) {
3952
3955
  return y({
3953
3956
  id: t,
3954
3957
  task_name: "triggers",
@@ -3958,7 +3961,7 @@ function Sc(t, e) {
3958
3961
  path: R
3959
3962
  });
3960
3963
  }
3961
- function kc(t, e) {
3964
+ function xc(t, e) {
3962
3965
  return y({
3963
3966
  id: t,
3964
3967
  task_name: `triggers/${e}`,
@@ -3966,7 +3969,7 @@ function kc(t, e) {
3966
3969
  path: R
3967
3970
  });
3968
3971
  }
3969
- function xc(t) {
3972
+ function $c(t) {
3970
3973
  return y({
3971
3974
  id: t,
3972
3975
  task_name: "settings",
@@ -3979,13 +3982,13 @@ const Ue = "triggers";
3979
3982
  function zt(t) {
3980
3983
  return new Me(t);
3981
3984
  }
3982
- function $c(t = {}) {
3985
+ function Ac(t = {}) {
3983
3986
  return E({ query_params: t, fn: zt, path: Ue });
3984
3987
  }
3985
- function Ac(t, e = {}) {
3988
+ function wc(t, e = {}) {
3986
3989
  return $({ id: t, query_params: e, fn: zt, path: Ue });
3987
3990
  }
3988
- function wc(t, e, n = "patch") {
3991
+ function Oc(t, e, n = "patch") {
3989
3992
  return C({
3990
3993
  id: t,
3991
3994
  form_data: e,
@@ -3995,13 +3998,13 @@ function wc(t, e, n = "patch") {
3995
3998
  path: Ue
3996
3999
  });
3997
4000
  }
3998
- function Oc(t) {
4001
+ function Ec(t) {
3999
4002
  return q({ form_data: t, query_params: {}, fn: zt, path: Ue });
4000
4003
  }
4001
- function Ec(t, e = {}) {
4004
+ function Ic(t, e = {}) {
4002
4005
  return M({ id: t, query_params: e, path: Ue });
4003
4006
  }
4004
- function Ic(t) {
4007
+ function Tc(t) {
4005
4008
  return y({
4006
4009
  id: t,
4007
4010
  task_name: "instances",
@@ -4069,16 +4072,16 @@ const De = "users";
4069
4072
  function et(t) {
4070
4073
  return new Ho(t);
4071
4074
  }
4072
- function Tc(t = {}) {
4075
+ function Pc(t = {}) {
4073
4076
  return E({ query_params: t, fn: et, path: De });
4074
4077
  }
4075
- function Pc(t, e = {}) {
4078
+ function Mc(t, e = {}) {
4076
4079
  return $({ id: t, query_params: e, fn: et, path: De });
4077
4080
  }
4078
- function Mc(t = {}) {
4081
+ function Rc(t = {}) {
4079
4082
  return $({ id: "current", query_params: t, fn: et, path: De });
4080
4083
  }
4081
- function Rc(t, e, n = "patch") {
4084
+ function Uc(t, e, n = "patch") {
4082
4085
  return C({
4083
4086
  id: t,
4084
4087
  form_data: e,
@@ -4088,20 +4091,20 @@ function Rc(t, e, n = "patch") {
4088
4091
  path: De
4089
4092
  });
4090
4093
  }
4091
- function Uc(t) {
4094
+ function Dc(t) {
4092
4095
  return q({ form_data: t, query_params: {}, fn: et, path: De });
4093
4096
  }
4094
- function Dc(t, e = {}) {
4097
+ function Nc(t, e = {}) {
4095
4098
  return M({ id: t, query_params: e, path: De });
4096
4099
  }
4097
4100
  const fe = "zones";
4098
4101
  function Lt(t) {
4099
4102
  return new mn(t);
4100
4103
  }
4101
- function Nc(t = {}) {
4104
+ function qc(t = {}) {
4102
4105
  return E({ query_params: t, fn: Lt, path: fe });
4103
4106
  }
4104
- function qc(t = {}) {
4107
+ function Cc(t = {}) {
4105
4108
  return $({
4106
4109
  id: "tags",
4107
4110
  query_params: t,
@@ -4109,10 +4112,10 @@ function qc(t = {}) {
4109
4112
  path: fe
4110
4113
  });
4111
4114
  }
4112
- function Cc(t, e = {}) {
4115
+ function jc(t, e = {}) {
4113
4116
  return $({ id: t, query_params: e, fn: Lt, path: fe });
4114
4117
  }
4115
- function jc(t, e, n = "patch") {
4118
+ function Fc(t, e, n = "patch") {
4116
4119
  return C({
4117
4120
  id: t,
4118
4121
  form_data: e,
@@ -4122,20 +4125,20 @@ function jc(t, e, n = "patch") {
4122
4125
  path: fe
4123
4126
  });
4124
4127
  }
4125
- function Fc(t) {
4128
+ function zc(t) {
4126
4129
  return q({ form_data: t, query_params: {}, fn: Lt, path: fe });
4127
4130
  }
4128
- function zc(t, e = {}) {
4131
+ function Lc(t, e = {}) {
4129
4132
  return M({ id: t, query_params: e, path: fe });
4130
4133
  }
4131
- function Lc(t, e = {}) {
4134
+ function Hc(t, e = {}) {
4132
4135
  return E({
4133
4136
  query_params: e,
4134
4137
  fn: (n) => new Me(n),
4135
4138
  path: `${fe}/${t}/triggers`
4136
4139
  });
4137
4140
  }
4138
- function Hc(t, e, n, r = 1, i = []) {
4141
+ function Wc(t, e, n, r = 1, i = []) {
4139
4142
  return y({
4140
4143
  id: t,
4141
4144
  task_name: `exec/${encodeURIComponent(
@@ -4216,10 +4219,10 @@ class Bo {
4216
4219
  }
4217
4220
  }
4218
4221
  const Tr = "signage";
4219
- function Wc(t, e = {}, n) {
4222
+ function Bc(t, e = {}, n) {
4220
4223
  return $({ id: t, query_params: e, fn: (r) => r, path: `${Tr}`, options: n });
4221
4224
  }
4222
- function Bc(t) {
4225
+ function Vc(t) {
4223
4226
  return y({
4224
4227
  id: t,
4225
4228
  task_name: "metrics",
@@ -4233,13 +4236,13 @@ const tt = "signage/media";
4233
4236
  function Ht(t) {
4234
4237
  return new Wo(t);
4235
4238
  }
4236
- function Vc(t = {}) {
4239
+ function Qc(t = {}) {
4237
4240
  return E({ query_params: t, fn: Ht, path: tt });
4238
4241
  }
4239
- function Qc(t, e = {}) {
4242
+ function Yc(t, e = {}) {
4240
4243
  return $({ id: t, query_params: e, fn: Ht, path: tt });
4241
4244
  }
4242
- function Yc(t, e, n = "patch") {
4245
+ function Jc(t, e, n = "patch") {
4243
4246
  return C({
4244
4247
  id: t,
4245
4248
  form_data: e,
@@ -4249,7 +4252,7 @@ function Yc(t, e, n = "patch") {
4249
4252
  path: tt
4250
4253
  });
4251
4254
  }
4252
- function Jc(t) {
4255
+ function Kc(t) {
4253
4256
  return q({
4254
4257
  form_data: t,
4255
4258
  query_params: {},
@@ -4257,56 +4260,56 @@ function Jc(t) {
4257
4260
  path: tt
4258
4261
  });
4259
4262
  }
4260
- function Kc(t, e = {}) {
4263
+ function Zc(t, e = {}) {
4261
4264
  return M({ id: t, query_params: e, path: tt });
4262
4265
  }
4263
- const oe = "signage/playlists";
4266
+ const se = "signage/playlists";
4264
4267
  function Wt(t) {
4265
4268
  return new Bo(t);
4266
4269
  }
4267
- function Zc(t = {}) {
4268
- return E({ query_params: t, fn: Wt, path: oe });
4270
+ function Gc(t = {}) {
4271
+ return E({ query_params: t, fn: Wt, path: se });
4269
4272
  }
4270
- function Gc(t, e = {}) {
4273
+ function Xc(t, e = {}) {
4271
4274
  return $({
4272
4275
  id: t,
4273
4276
  query_params: e,
4274
4277
  fn: Wt,
4275
- path: oe
4278
+ path: se
4276
4279
  });
4277
4280
  }
4278
- function Xc(t, e, n = "patch") {
4281
+ function ea(t, e, n = "patch") {
4279
4282
  return C({
4280
4283
  id: t,
4281
4284
  form_data: e,
4282
4285
  query_params: {},
4283
4286
  method: n,
4284
4287
  fn: Wt,
4285
- path: oe
4288
+ path: se
4286
4289
  });
4287
4290
  }
4288
- function ea(t) {
4291
+ function ta(t) {
4289
4292
  return q({
4290
4293
  form_data: t,
4291
4294
  query_params: {},
4292
4295
  fn: Wt,
4293
- path: oe
4296
+ path: se
4294
4297
  });
4295
4298
  }
4296
- function ta(t, e = {}) {
4297
- return M({ id: t, query_params: e, path: oe });
4298
- }
4299
4299
  function na(t, e = {}) {
4300
+ return M({ id: t, query_params: e, path: se });
4301
+ }
4302
+ function ra(t, e = {}) {
4300
4303
  return y({
4301
4304
  id: t,
4302
4305
  task_name: "media",
4303
4306
  form_data: e,
4304
4307
  method: "get",
4305
4308
  callback: (n) => new yn(n),
4306
- path: oe
4309
+ path: se
4307
4310
  });
4308
4311
  }
4309
- function ra(t, e = {}) {
4312
+ function ia(t, e = {}) {
4310
4313
  return y({
4311
4314
  id: t,
4312
4315
  task_name: "media/revisions",
@@ -4315,24 +4318,24 @@ function ra(t, e = {}) {
4315
4318
  callback: (n) => n.map(
4316
4319
  (r) => new yn(r)
4317
4320
  ),
4318
- path: oe
4321
+ path: se
4319
4322
  });
4320
4323
  }
4321
- function ia(t) {
4324
+ function oa(t) {
4322
4325
  return y({
4323
4326
  id: t,
4324
4327
  task_name: "media/approve",
4325
4328
  method: "post",
4326
- path: oe
4329
+ path: se
4327
4330
  });
4328
4331
  }
4329
- function oa(t, e) {
4332
+ function sa(t, e) {
4330
4333
  return y({
4331
4334
  id: t,
4332
4335
  task_name: "media",
4333
4336
  form_data: e,
4334
4337
  method: "post",
4335
- path: oe,
4338
+ path: se,
4336
4339
  callback: (n) => new yn(n)
4337
4340
  });
4338
4341
  }
@@ -4347,13 +4350,13 @@ class Pr {
4347
4350
  }
4348
4351
  }
4349
4352
  const Mr = "/api/staff/v1/surveys/answers";
4350
- function sa(t = {}) {
4353
+ function ua(t = {}) {
4351
4354
  const e = z(t);
4352
4355
  return ee(`${Mr}${e ? "?" + e : ""}`).pipe(
4353
4356
  I((n) => n.map((r) => new Pr(r)))
4354
4357
  );
4355
4358
  }
4356
- function ua(t) {
4359
+ function ca(t) {
4357
4360
  return Ie(`${Mr}`, t).pipe(
4358
4361
  I((e) => e.map((n) => new Pr(n)))
4359
4362
  );
@@ -4369,29 +4372,29 @@ class Bt {
4369
4372
  }
4370
4373
  }
4371
4374
  const nt = "/api/staff/v1/surveys/invitations";
4372
- function ca(t = {}) {
4375
+ function aa(t = {}) {
4373
4376
  const e = z(t);
4374
4377
  return ee(`${nt}${e ? "?" + e : ""}`).pipe(
4375
4378
  I((n) => n.map((r) => new Bt(r)))
4376
4379
  );
4377
4380
  }
4378
- function aa(t, e = {}) {
4381
+ function la(t, e = {}) {
4379
4382
  const n = z(e);
4380
4383
  return ee(`${nt}/${t}${n ? "?" + n : ""}`).pipe(
4381
4384
  I((r) => new Bt(r))
4382
4385
  );
4383
4386
  }
4384
- function la(t, e, n = "patch") {
4387
+ function fa(t, e, n = "patch") {
4385
4388
  return (n === "put" ? He : It)(`${nt}/${t}`, e).pipe(
4386
4389
  I((r) => new Bt(r))
4387
4390
  );
4388
4391
  }
4389
- function fa(t) {
4392
+ function ha(t) {
4390
4393
  return Ie(`${nt}`, t).pipe(
4391
4394
  I((e) => new Bt(e))
4392
4395
  );
4393
4396
  }
4394
- function ha(t, e = {}) {
4397
+ function da(t, e = {}) {
4395
4398
  const n = z(e);
4396
4399
  return We(`${nt}/${t}${n ? "?" + n : ""}`);
4397
4400
  }
@@ -4411,29 +4414,29 @@ class Vt {
4411
4414
  }
4412
4415
  }
4413
4416
  const rt = "/api/staff/v1/surveys/questions";
4414
- function da(t = {}) {
4417
+ function pa(t = {}) {
4415
4418
  const e = z(t);
4416
4419
  return ee(`${rt}${e ? "?" + e : ""}`).pipe(
4417
4420
  I((n) => n.map((r) => new Vt(r)))
4418
4421
  );
4419
4422
  }
4420
- function pa(t, e = {}) {
4423
+ function _a(t, e = {}) {
4421
4424
  const n = z(e);
4422
4425
  return ee(`${rt}/${t}${n ? "?" + n : ""}`).pipe(
4423
4426
  I((r) => new Vt(r))
4424
4427
  );
4425
4428
  }
4426
- function _a(t) {
4429
+ function ma(t) {
4427
4430
  return Ie(`${rt}`, t).pipe(
4428
4431
  I((e) => new Vt(e))
4429
4432
  );
4430
4433
  }
4431
- function ma(t, e, n = "patch") {
4434
+ function ya(t, e, n = "patch") {
4432
4435
  return (n === "put" ? He : It)(`${rt}/${t}`, e).pipe(
4433
4436
  I((r) => new Vt(r))
4434
4437
  );
4435
4438
  }
4436
- function ya(t, e = {}) {
4439
+ function ga(t, e = {}) {
4437
4440
  const n = z(e);
4438
4441
  return We(`${rt}/${t}${n ? "?" + n : ""}`);
4439
4442
  }
@@ -4450,27 +4453,27 @@ class Qt {
4450
4453
  }
4451
4454
  }
4452
4455
  const it = "/api/staff/v1/surveys";
4453
- function ga(t = {}) {
4456
+ function va(t = {}) {
4454
4457
  const e = z(t);
4455
4458
  return ee(`${it}${e ? "?" + e : ""}`).pipe(
4456
4459
  I((n) => n.map((r) => new Qt(r)))
4457
4460
  );
4458
4461
  }
4459
- function va(t, e = {}) {
4462
+ function ba(t, e = {}) {
4460
4463
  const n = z(e);
4461
4464
  return ee(`${it}/${t}${n ? "?" + n : ""}`).pipe(
4462
4465
  I((r) => new Qt(r))
4463
4466
  );
4464
4467
  }
4465
- function ba(t, e, n = "patch") {
4468
+ function Sa(t, e, n = "patch") {
4466
4469
  return (n === "put" ? He : It)(`${it}/${t}`, e).pipe(
4467
4470
  I((r) => new Qt(r))
4468
4471
  );
4469
4472
  }
4470
- function Sa(t) {
4473
+ function ka(t) {
4471
4474
  return Ie(`${it}`, t).pipe(I((e) => new Qt(e)));
4472
4475
  }
4473
- function ka(t, e = {}) {
4476
+ function xa(t, e = {}) {
4474
4477
  const n = z(e);
4475
4478
  return We(`${it}/${t}${n ? "?" + n : ""}`);
4476
4479
  }
@@ -4645,7 +4648,7 @@ class Ko {
4645
4648
  * @param value Initial value of the property
4646
4649
  */
4647
4650
  addProperty(e, n) {
4648
- e[0] === "$" && (e = e.replace("$", "")), this[`_${e}`] = new ae(n), this[`_${e}_obs`] = this[`_${e}`].asObservable(), Object.defineProperty(this, e, {
4651
+ e[0] === "$" && (e = e.replace("$", "")), this[`_${e}`] = new le(n), this[`_${e}_obs`] = this[`_${e}`].asObservable(), Object.defineProperty(this, e, {
4649
4652
  get: () => this[`_${e}`].getValue(),
4650
4653
  set: (r) => this[`_${e}`].next(r)
4651
4654
  });
@@ -4668,22 +4671,22 @@ class Zo {
4668
4671
  }
4669
4672
  }
4670
4673
  const kt = {};
4671
- function xa(t, e) {
4674
+ function $a(t, e) {
4672
4675
  return kt[t] = new Zo(e), kt[t];
4673
4676
  }
4674
4677
  function Go(t) {
4675
4678
  return kt[t];
4676
4679
  }
4677
- function $a(t) {
4680
+ function Aa(t) {
4678
4681
  delete kt[t];
4679
4682
  }
4680
4683
  const Ur = 15;
4681
4684
  let ot = 0, Q, Dr = 0;
4682
- const L = {}, gn = {}, $e = {}, Xo = {}, de = new ae(!1);
4685
+ const L = {}, gn = {}, $e = {}, Xo = {}, de = new le(!1);
4683
4686
  $e._place_os_status = de.asObservable();
4684
- const Nr = new ae([0, 0]);
4687
+ const Nr = new le([0, 0]);
4685
4688
  $e._place_os_sync = Nr.asObservable();
4686
- let qr = Date.now(), we, xt = 0, se = null, ht, vn = 0;
4689
+ let qr = Date.now(), we, xt = 0, ue = null, ht, vn = 0;
4687
4690
  const st = 10 * 1e3, Cr = new me();
4688
4691
  $e._place_os_debug_events = Cr.asObservable();
4689
4692
  function Kt() {
@@ -4695,12 +4698,12 @@ function jr() {
4695
4698
  function es() {
4696
4699
  return $e._place_os_status;
4697
4700
  }
4698
- function Aa() {
4701
+ function wa() {
4699
4702
  return $e._place_os_status;
4700
4703
  }
4701
4704
  function ts(t, e = gn, n = $e) {
4702
4705
  const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
4703
- return e[r] || (e[r] = new ae(void 0), n[r] = e[r].asObservable()), n[r];
4706
+ return e[r] || (e[r] = new le(void 0), n[r] = e[r].asObservable()), n[r];
4704
4707
  }
4705
4708
  function ns(t, e = gn) {
4706
4709
  const n = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
@@ -4731,7 +4734,7 @@ function is(t, e = st, n = Ne) {
4731
4734
  };
4732
4735
  return n(r, e);
4733
4736
  }
4734
- function wa(t, e = st, n = Ne) {
4737
+ function Oa(t, e = st, n = Ne) {
4735
4738
  const r = {
4736
4739
  id: ++ot,
4737
4740
  cmd: "debug",
@@ -4739,7 +4742,7 @@ function wa(t, e = st, n = Ne) {
4739
4742
  };
4740
4743
  return n(r, e);
4741
4744
  }
4742
- function Oa(t, e = st, n = Ne) {
4745
+ function Ea(t, e = st, n = Ne) {
4743
4746
  const r = {
4744
4747
  id: ++ot,
4745
4748
  cmd: "ignore",
@@ -4774,7 +4777,7 @@ function Ne(t, e = st, n = 0) {
4774
4777
  },
4775
4778
  e
4776
4779
  );
4777
- } else se ? setTimeout(() => u(), 1e3) : bn().then(() => u());
4780
+ } else ue ? setTimeout(() => u(), 1e3) : bn().then(() => u());
4778
4781
  }), L[r] = i;
4779
4782
  }
4780
4783
  return L[r].promise;
@@ -4844,7 +4847,7 @@ function ss(t) {
4844
4847
  }
4845
4848
  function us(t, e, n = gn, r = $e) {
4846
4849
  const i = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
4847
- n[i] || (n[i] = new ae(null), r[i] = n[i].asObservable());
4850
+ n[i] || (n[i] = new le(null), r[i] = n[i].asObservable());
4848
4851
  const o = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
4849
4852
  d("WS", `[NOTIFY] ${o} changed`, [
4850
4853
  n[i].getValue(),
@@ -4853,7 +4856,7 @@ function us(t, e, n = gn, r = $e) {
4853
4856
  ]), n[i].next(e);
4854
4857
  }
4855
4858
  function bn(t = 0) {
4856
- return se == null && (se = new Promise((e) => {
4859
+ return ue == null && (ue = new Promise((e) => {
4857
4860
  if (t > 40)
4858
4861
  return location.reload();
4859
4862
  xt++, qr = Date.now(), Q = ln() ? ls() : cs(), Q ? (d("WS(Debug)", "Authority:", [vt()]), d("WS", "Connecting to websocket..."), Q.subscribe(
@@ -4861,16 +4864,16 @@ function bn(t = 0) {
4861
4864
  de.getValue() || (d("WS", "Connection established."), e()), de.next(!0), xt = 0, Zt(), Fr(n);
4862
4865
  },
4863
4866
  (n) => {
4864
- Q = void 0, se = null, Cn(), Zt(), as(n);
4867
+ Q = void 0, ue = null, Cn(), Zt(), as(n);
4865
4868
  },
4866
4869
  () => {
4867
- Q = void 0, se = null, Cn(), d("WS", "Connection closed by browser."), de.next(!1), $t();
4870
+ Q = void 0, ue = null, Cn(), d("WS", "Connection closed by browser."), de.next(!1), $t();
4868
4871
  }
4869
4872
  ), we && clearInterval(we), vn = Date.now(), qn(), we = setInterval(
4870
4873
  () => qn(),
4871
4874
  Ur * 1e3
4872
4875
  ), Zt(), Dr += 1, ht = setTimeout(() => {
4873
- d("WS", "Unhealthy connection. Reconnecting..."), de.next(!1), se = null, $t();
4876
+ d("WS", "Unhealthy connection. Reconnecting..."), de.next(!1), ue = null, $t();
4874
4877
  }, 30 * 1e3)) : (Q ? d(
4875
4878
  "WS",
4876
4879
  `Waiting on auth(${t}). Retrying in ${1e3 * Math.min(10, t + 1)}ms...`,
@@ -4883,11 +4886,11 @@ function bn(t = 0) {
4883
4886
  "error"
4884
4887
  ), setTimeout(
4885
4888
  () => {
4886
- se = null, bn(t).then((n) => e(n));
4889
+ ue = null, bn(t).then((n) => e(n));
4887
4890
  },
4888
4891
  1e3 * Math.min(10, ++t)
4889
4892
  ));
4890
- })), se;
4893
+ })), ue;
4891
4894
  }
4892
4895
  function cs() {
4893
4896
  if (!vt() || !Y()) return null;
@@ -5171,7 +5174,7 @@ const Gt = {};
5171
5174
  function ps(t) {
5172
5175
  return Gt[t] || (Gt[t] = new ds(t)), Gt[t];
5173
5176
  }
5174
- function Ea(t, e, n = 1) {
5177
+ function Ia(t, e, n = 1) {
5175
5178
  return ps(t).module(e, n);
5176
5179
  }
5177
5180
  export {
@@ -5217,63 +5220,64 @@ export {
5217
5220
  Fo as TriggerConditionOperator,
5218
5221
  zo as TriggerTimeConditionType,
5219
5222
  Lo as TriggerWebhookType,
5220
- ua as addAnswer,
5223
+ ca as addAnswer,
5221
5224
  Is as addApplication,
5222
5225
  Us as addBroker,
5223
5226
  Ls as addDomain,
5224
5227
  Qs as addDriver,
5225
- tu as addEdge,
5226
- fa as addInvitation,
5227
- uu as addLDAPSource,
5228
- du as addMetadata,
5229
- vu as addModule,
5230
- Pu as addOAuthSource,
5231
- _a as addQuestion,
5232
- Nu as addRepository,
5233
- Zu as addSAMLSource,
5234
- nc as addSettings,
5235
- Jc as addSignageMedia,
5236
- ea as addSignagePlaylist,
5237
- Sa as addSurvey,
5238
- ac as addSystem,
5239
- fc as addSystemModule,
5240
- Sc as addSystemTrigger,
5241
- Oc as addTrigger,
5242
- Uc as addUser,
5243
- Fc as addZone,
5228
+ nu as addEdge,
5229
+ ha as addInvitation,
5230
+ cu as addLDAPSource,
5231
+ pu as addMetadata,
5232
+ bu as addModule,
5233
+ Mu as addOAuthSource,
5234
+ ma as addQuestion,
5235
+ qu as addRepository,
5236
+ Gu as addSAMLSource,
5237
+ rc as addSettings,
5238
+ Kc as addSignageMedia,
5239
+ ta as addSignagePlaylist,
5240
+ ka as addSurvey,
5241
+ lc as addSystem,
5242
+ hc as addSystemModule,
5243
+ kc as addSystemTrigger,
5244
+ Ec as addTrigger,
5245
+ Dc as addUser,
5246
+ zc as addZone,
5244
5247
  be as apiEndpoint,
5245
5248
  Ot as apiKey,
5246
- ia as approveSignagePlaylist,
5249
+ oa as approveSignagePlaylist,
5247
5250
  _r as authorise,
5248
5251
  vt as authority,
5249
5252
  Nn as bind,
5250
5253
  Bi as cleanObject,
5251
5254
  bs as cleanupAuth,
5252
5255
  no as clientId,
5253
- Aa as connectionState,
5256
+ wa as connectionState,
5254
5257
  Pn as consoleHasColours,
5255
5258
  je as convertPairStringToMap,
5256
5259
  q as create,
5257
- Mc as currentUser,
5258
- wa as debug,
5260
+ Rc as currentUser,
5261
+ Oa as debug,
5259
5262
  Cr as debug_events,
5260
5263
  We as del,
5261
5264
  go as deregisterMockEndpoint,
5262
- $a as deregisterSystem,
5265
+ Aa as deregisterSystem,
5266
+ Gs as driverReadme,
5263
5267
  is as execute,
5264
- _c as executeOnSystem,
5265
- Hc as executeOnZone,
5266
- gc as functionList,
5268
+ mc as executeOnSystem,
5269
+ Wc as executeOnZone,
5270
+ vc as functionList,
5267
5271
  Hi as generateNonce,
5268
5272
  ee as get,
5269
5273
  fr as getFragments,
5270
- Ea as getModule,
5274
+ Ia as getModule,
5271
5275
  ps as getSystem,
5272
5276
  io as hasToken,
5273
5277
  rn as host,
5274
5278
  hr as httpRoute,
5275
5279
  yt as humanReadableByteCount,
5276
- Oa as ignore,
5280
+ Ea as ignore,
5277
5281
  hn as invalidateToken,
5278
5282
  Zs as isDriverCompiled,
5279
5283
  dr as isFixedDevice,
@@ -5285,139 +5289,139 @@ export {
5285
5289
  fn as isTrusted,
5286
5290
  jr as is_connected,
5287
5291
  As as lastRequestTotal,
5288
- _u as listChildMetadata,
5289
- Cu as listInterfaceRepositories,
5290
- au as listMetadata,
5291
- lu as listMetadataHistory,
5292
- Fu as listRemoteRepositoryBranches,
5293
- zu as listRemoteRepositoryCommits,
5294
- ju as listRemoteRepositoryDefaultBranch,
5295
- Wu as listRepositoryBranches,
5296
- Hu as listRepositoryCommits,
5297
- Bu as listRepositoryDefaultBranch,
5298
- Vu as listRepositoryDriverDetails,
5299
- Lu as listRepositoryDrivers,
5300
- na as listSignagePlaylistMedia,
5301
- ra as listSignagePlaylistMediaRevisions,
5302
- bc as listSystemTriggers,
5303
- vc as listSystemZones,
5304
- Ic as listTriggerInstances,
5305
- qc as listZoneTags,
5306
- Lc as listZoneTriggers,
5292
+ mu as listChildMetadata,
5293
+ ju as listInterfaceRepositories,
5294
+ lu as listMetadata,
5295
+ fu as listMetadataHistory,
5296
+ zu as listRemoteRepositoryBranches,
5297
+ Lu as listRemoteRepositoryCommits,
5298
+ Fu as listRemoteRepositoryDefaultBranch,
5299
+ Bu as listRepositoryBranches,
5300
+ Wu as listRepositoryCommits,
5301
+ Vu as listRepositoryDefaultBranch,
5302
+ Qu as listRepositoryDriverDetails,
5303
+ Hu as listRepositoryDrivers,
5304
+ ra as listSignagePlaylistMedia,
5305
+ ia as listSignagePlaylistMediaRevisions,
5306
+ Sc as listSystemTriggers,
5307
+ bc as listSystemZones,
5308
+ Tc as listTriggerInstances,
5309
+ Cc as listZoneTags,
5310
+ Hc as listZoneTriggers,
5307
5311
  ts as listen,
5308
5312
  oo as listenForToken,
5309
- Au as loadModule,
5313
+ wu as loadModule,
5310
5314
  d as log,
5311
5315
  Ss as logout,
5312
- $u as lookupModuleState,
5313
- yc as lookupSystemModuleState,
5316
+ Au as lookupModuleState,
5317
+ gc as lookupSystemModuleState,
5314
5318
  Go as mockSystem,
5315
- Ou as moduleRuntimeError,
5316
- wu as moduleSettings,
5317
- xu as moduleState,
5319
+ Eu as moduleRuntimeError,
5320
+ Ou as moduleSettings,
5321
+ $u as moduleState,
5318
5322
  gs as onlineState,
5319
5323
  Wi as parseLinkHeader,
5320
5324
  It as patch,
5321
5325
  Ie as post,
5322
- Qu as pullRepositoryChanges,
5326
+ Yu as pullRepositoryChanges,
5323
5327
  He as put,
5324
5328
  E as query,
5325
- sa as queryAnswers,
5329
+ ua as queryAnswers,
5326
5330
  ws as queryApplications,
5327
5331
  Ps as queryBrokers,
5328
5332
  Ns as queryClusters,
5329
5333
  js as queryDomains,
5330
5334
  Ws as queryDrivers,
5331
- Gs as queryEdges,
5332
- ca as queryInvitations,
5333
- iu as queryLDAPSources,
5334
- mu as queryModules,
5335
- Eu as queryOAuthSources,
5335
+ Xs as queryEdges,
5336
+ aa as queryInvitations,
5337
+ ou as queryLDAPSources,
5338
+ yu as queryModules,
5339
+ Iu as queryOAuthSources,
5336
5340
  qs as queryProcesses,
5337
- da as queryQuestions,
5338
- Ru as queryRepositories,
5339
- Yu as querySAMLSources,
5340
- Xu as querySettings,
5341
- Vc as querySignageMedia,
5342
- Zc as querySignagePlaylists,
5343
- ga as querySurveys,
5344
- oc as querySystems,
5345
- sc as querySystemsWithEmails,
5346
- $c as queryTriggers,
5347
- Tc as queryUsers,
5348
- Nc as queryZones,
5341
+ pa as queryQuestions,
5342
+ Uu as queryRepositories,
5343
+ Ju as querySAMLSources,
5344
+ ec as querySettings,
5345
+ Qc as querySignageMedia,
5346
+ Gc as querySignagePlaylists,
5347
+ va as querySurveys,
5348
+ sc as querySystems,
5349
+ uc as querySystemsWithEmails,
5350
+ Ac as queryTriggers,
5351
+ Pc as queryUsers,
5352
+ qc as queryZones,
5349
5353
  Js as recompileDriver,
5350
5354
  _s as redirectUri,
5351
5355
  pr as refreshAuthority,
5352
5356
  nn as refreshToken,
5353
5357
  xs as registerMockEndpoint,
5354
- xa as registerSystem,
5358
+ $a as registerSystem,
5355
5359
  Ks as reloadDriver,
5356
5360
  M as remove,
5357
5361
  Ts as removeApplication,
5358
5362
  Ds as removeBroker,
5359
5363
  Hs as removeDomain,
5360
5364
  Ys as removeDriver,
5361
- nu as removeEdge,
5365
+ ru as removeEdge,
5362
5366
  he as removeFragment,
5363
- ha as removeInvitation,
5364
- cu as removeLDAPSource,
5365
- pu as removeMetadata,
5366
- bu as removeModule,
5367
- Mu as removeOAuthSource,
5368
- ya as removeQuestion,
5369
- qu as removeRepository,
5370
- Gu as removeSAMLSource,
5371
- rc as removeSettings,
5372
- Kc as removeSignageMedia,
5373
- ta as removeSignagePlaylist,
5374
- ka as removeSurvey,
5375
- lc as removeSystem,
5376
- hc as removeSystemModule,
5377
- kc as removeSystemTrigger,
5378
- Ec as removeTrigger,
5379
- Dc as removeUser,
5380
- zc as removeZone,
5367
+ da as removeInvitation,
5368
+ au as removeLDAPSource,
5369
+ _u as removeMetadata,
5370
+ Su as removeModule,
5371
+ Ru as removeOAuthSource,
5372
+ ga as removeQuestion,
5373
+ Cu as removeRepository,
5374
+ Xu as removeSAMLSource,
5375
+ ic as removeSettings,
5376
+ Zc as removeSignageMedia,
5377
+ na as removeSignagePlaylist,
5378
+ xa as removeSurvey,
5379
+ fc as removeSystem,
5380
+ dc as removeSystemModule,
5381
+ xc as removeSystemTrigger,
5382
+ Ic as removeTrigger,
5383
+ Nc as removeUser,
5384
+ Lc as removeZone,
5381
5385
  $s as requestTotal,
5382
5386
  xo as responseHeaders,
5383
- ru as retrieveEdgeToken,
5387
+ iu as retrieveEdgeToken,
5384
5388
  ms as setAPI_Key,
5385
5389
  ks as setMockNotFoundHandler,
5386
5390
  ro as setToken,
5387
- ic as settingsHistory,
5391
+ oc as settingsHistory,
5388
5392
  vs as setup,
5389
5393
  $ as show,
5390
5394
  Os as showApplication,
5391
5395
  Ms as showBroker,
5392
5396
  Fs as showDomain,
5393
5397
  Bs as showDriver,
5394
- Xs as showEdge,
5395
- aa as showInvitation,
5396
- ou as showLDAPSource,
5397
- fu as showMetadata,
5398
- yu as showModule,
5399
- Iu as showOAuthSource,
5400
- pa as showQuestion,
5401
- Uu as showRepository,
5402
- Ju as showSAMLSource,
5403
- ec as showSettings,
5404
- Wc as showSignage,
5405
- Qc as showSignageMedia,
5406
- Bc as showSignageMetrics,
5407
- Gc as showSignagePlaylist,
5408
- va as showSurvey,
5409
- uc as showSystem,
5410
- Ac as showTrigger,
5411
- Pc as showUser,
5412
- Cc as showZone,
5398
+ eu as showEdge,
5399
+ la as showInvitation,
5400
+ su as showLDAPSource,
5401
+ hu as showMetadata,
5402
+ gu as showModule,
5403
+ Tu as showOAuthSource,
5404
+ _a as showQuestion,
5405
+ Du as showRepository,
5406
+ Ku as showSAMLSource,
5407
+ tc as showSettings,
5408
+ Bc as showSignage,
5409
+ Yc as showSignageMedia,
5410
+ Vc as showSignageMetrics,
5411
+ Xc as showSignagePlaylist,
5412
+ ba as showSurvey,
5413
+ cc as showSystem,
5414
+ wc as showTrigger,
5415
+ Mc as showUser,
5416
+ jc as showZone,
5413
5417
  Yi as simplifiedTime,
5414
- Su as startModule,
5415
- dc as startSystem,
5418
+ ku as startModule,
5419
+ pc as startSystem,
5416
5420
  es as status,
5417
- ku as stopModule,
5418
- pc as stopSystem,
5419
- mc as systemModuleState,
5420
- xc as systemSettings,
5421
+ xu as stopModule,
5422
+ _c as stopSystem,
5423
+ yc as systemModuleState,
5424
+ $c as systemSettings,
5421
5425
  Cs as terminateProcess,
5422
5426
  Y as token,
5423
5427
  rs as unbind,
@@ -5426,24 +5430,24 @@ export {
5426
5430
  Rs as updateBroker,
5427
5431
  zs as updateDomain,
5428
5432
  Vs as updateDriver,
5429
- eu as updateEdge,
5430
- la as updateInvitation,
5431
- su as updateLDAPSource,
5432
- hu as updateMetadata,
5433
- gu as updateModule,
5434
- Tu as updateOAuthSource,
5435
- ma as updateQuestion,
5436
- Du as updateRepository,
5437
- Ku as updateSAMLSource,
5438
- tc as updateSettings,
5439
- Yc as updateSignageMedia,
5440
- Xc as updateSignagePlaylist,
5441
- oa as updateSignagePlaylistMedia,
5442
- ba as updateSurvey,
5443
- cc as updateSystem,
5444
- wc as updateTrigger,
5445
- Rc as updateUser,
5446
- jc as updateZone,
5433
+ tu as updateEdge,
5434
+ fa as updateInvitation,
5435
+ uu as updateLDAPSource,
5436
+ du as updateMetadata,
5437
+ vu as updateModule,
5438
+ Pu as updateOAuthSource,
5439
+ ya as updateQuestion,
5440
+ Nu as updateRepository,
5441
+ Zu as updateSAMLSource,
5442
+ nc as updateSettings,
5443
+ Jc as updateSignageMedia,
5444
+ ea as updateSignagePlaylist,
5445
+ sa as updateSignagePlaylistMedia,
5446
+ Sa as updateSurvey,
5447
+ ac as updateSystem,
5448
+ Oc as updateTrigger,
5449
+ Uc as updateUser,
5450
+ Fc as updateZone,
5447
5451
  ns as value,
5448
5452
  Kt as websocketRoute
5449
5453
  };