@yuneta/gobj-js 7.3.4 → 7.6.6

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.
@@ -173,11 +173,11 @@ var O = class {
173
173
  constructor(e, t, n = 0, r = null, l = "", i = null, o = null, s = 0, a = null, u = null, _ = null) {
174
174
  this.type = e, this.name = t, this.alias = i, this.flag = n, this.default_value = r, this.header = o, this.fillspace = s, this.description = l, this.json_fn = a, this.schema = u, this.authpth = _;
175
175
  }
176
- }, v = () => new O(0, null), N = (e, t, n, r, l) => new O(e, t, n, r, l), w = (e, t, n, r, l, i) => new O(e, t, 0, null, i, n, null, 0, l, r, null), D = (e, t, n, r, l, i, o) => new O(e, t, n, null, o, r, null, 0, i, l, null), R = (e, t, n, r, l) => new O(e, t, n, r, l), j = (e, t, n, r, l, i) => new O(e, t, n, null, i, r, null, 0, null, l, null), $ = (e, t, n, r, l) => new O(e, t, n, null, l, null, null, 0, null, null, r), I = (e, t, n, r, l, i) => new O(e, t, n, null, i, null, r, l), A = class {
176
+ }, v = () => new O(0, null), N = (e, t, n, r, l) => new O(e, t, n, r, l), w = (e, t, n, r, l, i) => new O(e, t, 0, null, i, n, null, 0, l, r, null), D = (e, t, n, r, l, i, o) => new O(e, t, n, null, o, r, null, 0, i, l, null), R = (e, t, n, r, l) => new O(e, t, n, r, l), j = (e, t, n, r, l, i) => new O(e, t, n, null, i, r, null, 0, null, l, null), $ = (e, t, n, r, l) => new O(e, t, n, null, l, null, null, 0, null, null, r), I = (e, t, n, r, l, i) => new O(e, t, n, null, i, null, r, l), k = class {
177
177
  constructor(e, t, n, r, l, i, o, s, a) {
178
178
  this.gclass_name = e, this.dl_states = [], this.dl_events = [], this.gmt = t, this.lmt = n, this.attrs_table = r, this.priv = l, this.authz_table = i, this.command_table = o, this.s_user_trace_level = s, this.gclass_flag = Number(a) || 0, this.instances = 0, this.trace_level = 0, this.no_trace_level = 0, this.jn_trace_filter = null, this.fsm_checked = !1;
179
179
  }
180
- }, k = class {
180
+ }, A = class {
181
181
  constructor(e, t, n, r, l) {
182
182
  this.__refs__ = 0, this.gclass = t, this.parent = null, this.dl_children = [], this.dl_subscriptions = [], this.dl_subscribings = [], this.current_state = t.dl_states[0], this.last_state = null, this.obflag = 0, this.gobj_flag = Number(l) || 0, this.gobj_name = e, this.jn_attrs = null, this.jn_stats = {}, this.jn_user_data = {}, this.full_name = null, this.short_name = null, this.priv = cn(t.priv), this.running = !1, this.playing = !1, this.disabled = !1, this.bottom_gobj = null, this.trace_level = 0, this.no_trace_level = 0;
183
183
  }
@@ -347,7 +347,7 @@ function Q(e, t, n) {
347
347
  return dt(e, t) ? J(e) : e && e.bottom_gobj ? Q(e.bottom_gobj, t, n) : (n && ln(`GClass Attribute NOT FOUND: ${Qe(e)}, attr ${t}`), null);
348
348
  }
349
349
  function q(e, t, n) {
350
- if (!(e && e instanceof A)) return n && ln("gclass NULL"), null;
350
+ if (!(e && e instanceof k)) return n && ln("gclass NULL"), null;
351
351
  if (!t) return e.attrs_table;
352
352
  for (let n = 0; n < e.attrs_table.length; n++) {
353
353
  const r = e.attrs_table[n];
@@ -359,9 +359,9 @@ function z(e, t, n, r, l, i, o, s, a, u, _) {
359
359
  if (Fn(e)) return ln("gclass_name EMPTY"), null;
360
360
  if (e.includes("`") || e.includes("^") || e.includes(".")) return ln(`GClass name CANNOT have '.' or '^' or '\`' char: ${e}`), null;
361
361
  if (oe(e)) return ln(`GClass ALREADY exists: ${e}`), null;
362
- let c = new A(e, r, l, i, o, s, a, u, _);
362
+ let c = new k(e, r, l, i, o, s, a, u, _);
363
363
  (function(e, t) {
364
- e && e instanceof A ? t ? p[t] ? ln(`gclass ALREADY REGISTERED: ${t}`) : p[t] = e : ln("gclass_name undefined") : ln("gclass undefined");
364
+ e && e instanceof k ? t ? p[t] ? ln(`gclass ALREADY REGISTERED: ${t}`) : p[t] = e : ln("gclass_name undefined") : ln("gclass undefined");
365
365
  })(c, e);
366
366
  const f = n.length;
367
367
  for (let e = 0; e < f; e++) {
@@ -391,7 +391,7 @@ function X(e) {
391
391
  let t;
392
392
  if ($n(e)) t = e;
393
393
  else {
394
- if (!(e instanceof A)) return ln("Cannot unregister gclass, type unknown"), -1;
394
+ if (!(e instanceof k)) return ln("Cannot unregister gclass, type unknown"), -1;
395
395
  t = e.gclass_name;
396
396
  }
397
397
  let n = p[t];
@@ -414,10 +414,10 @@ function Z(e, t) {
414
414
  return null;
415
415
  }
416
416
  function ee(e, t) {
417
- return e instanceof A ? H(e, t) ? (ln(`state already exists: ${t}`), -1) : (e.dl_states.push(new V(t)), 0) : (ln("Cannot add state, typeof not GClass"), -1);
417
+ return e instanceof k ? H(e, t) ? (ln(`state already exists: ${t}`), -1) : (e.dl_states.push(new V(t)), 0) : (ln("Cannot add state, typeof not GClass"), -1);
418
418
  }
419
419
  function te(e, t, n, r, l) {
420
- if (!(e instanceof A)) return ln("Cannot add state, typeof not GClass"), -1;
420
+ if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), -1;
421
421
  if (Fn(t)) return ln("state_name EMPTY"), -1;
422
422
  let i = H(e, t);
423
423
  return i ? Z(i, n) ? (ln(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (i.dl_actions.push(new G(n, r, l)), 0) : (ln(`state not found: ${t}`), -1);
@@ -426,10 +426,10 @@ function ne(e, t, n) {
426
426
  Fn(t) || e.push(new W(t, n));
427
427
  }
428
428
  function re(e, t, n) {
429
- return e instanceof A ? ne(e.dl_events, t, n) : (ln("Cannot add state, typeof not GClass"), -1);
429
+ return e instanceof k ? ne(e.dl_events, t, n) : (ln("Cannot add state, typeof not GClass"), -1);
430
430
  }
431
431
  function le(e, t) {
432
- if (!(e instanceof A)) return ln("Cannot add state, typeof not GClass"), 0;
432
+ if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), 0;
433
433
  const n = e.dl_events.length, r = e.dl_events;
434
434
  for (let e = 0; e < n; e++) {
435
435
  let n = r[e];
@@ -438,7 +438,7 @@ function le(e, t) {
438
438
  return null;
439
439
  }
440
440
  function ie(e) {
441
- if (!(e instanceof A)) return ln("Cannot add state, typeof not GClass"), -1;
441
+ if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), -1;
442
442
  let t = 0;
443
443
  wn(e.dl_states) || (ln(`GClass without states: ${e.gclass_name}`), t += -1);
444
444
  for (let n = 0; n < e.dl_states.length; n++) {
@@ -525,7 +525,7 @@ function he(e, n, r, l, i) {
525
525
  i |= P.gobj_flag_service;
526
526
  } else {
527
527
  if (!l) return ln("gobj NEEDS a parent!"), null;
528
- if (!("string" == typeof l || l instanceof k)) return ln(`BAD TYPE of parent: ${l}`), null;
528
+ if (!("string" == typeof l || l instanceof A)) return ln(`BAD TYPE of parent: ${l}`), null;
529
529
  if ($n(l) && !(l = ue(l))) return on(`parent service not found: ${l}`), null;
530
530
  }
531
531
  if (i & P.gobj_flag_service && ue(e, !1)) return ln(`service ALREADY registered: ${n}^${e}`), null;
@@ -541,7 +541,7 @@ function he(e, n, r, l, i) {
541
541
  if (e.includes("`")) return ln(`gobj_name cannot contain char ': ${n}^${e}`), null;
542
542
  if (e.includes("^")) return ln(`gobj_name cannot contain char ^: ${n}^${e}`), null;
543
543
  }
544
- let s = new k(e, o, r, l, i);
544
+ let s = new A(e, o, r, l, i);
545
545
  s.jn_attrs = Y(s, o.attrs_table);
546
546
  for (const [e, t] of Object.entries(s.jn_attrs)) e in s.priv && (s.priv[e] = t);
547
547
  let a = E && mt(E, "trace_creation");
@@ -574,7 +574,7 @@ function we(e) {
574
574
  r && r.gclass.gmt.mt_child_removed && (n && M(t("👦👦🔴 child_removed(%s): %s", qe(r), Qe(e))), r.gclass.gmt.mt_child_removed(r, e)), e.gobj_flag & P.gobj_flag_service && function(e) {
575
575
  let t = Be(e);
576
576
  t = t.toLowerCase(), m[t] ? delete m[t] : ln(`"service NOT found in register": ${t}`);
577
- }(e), e.playing && (ln(`Destroying a PLAYING gobj: ${qe(e)}`), Ce(e)), e.running && (ln(`Destroying a RUNNING gobj: ${qe(e)}`), Ae(e)), Kt(e, e.dl_subscriptions, !0), Kt(e, e.dl_subscribings, !0), r && (fe(r, e), Xe(e) && (et(r) !== e || Ze(r) || tt(r, null))), function(e) {
577
+ }(e), e.playing && (ln(`Destroying a PLAYING gobj: ${qe(e)}`), Ce(e)), e.running && (ln(`Destroying a RUNNING gobj: ${qe(e)}`), ke(e)), Kt(e, e.dl_subscriptions, !0), Kt(e, e.dl_subscribings, !0), r && (fe(r, e), Xe(e) && (et(r) !== e || Ze(r) || tt(r, null))), function(e) {
578
578
  let t = e.dl_children.slice();
579
579
  for (let e = 0; e < t.length; e++) {
580
580
  let n = t[e];
@@ -602,21 +602,21 @@ function $e(e, t, n) {
602
602
  function Ie(e) {
603
603
  return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", qe(e))), e.gclass.gclass_flag & L.gcflag_manual_start || e.disabled ? 0 : (e.running || De(e), lt(e, F.WALK_TOP2BOTTOM, $e, 0, 0)));
604
604
  }
605
- function Ae(e) {
605
+ function ke(e) {
606
606
  if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
607
607
  if (!e.running) return ln(`${Qe(e)}: GObj NOT RUNNING`), -1;
608
608
  e.playing && (on(`${Qe(e)}: GObj stopping without previous pause`), Ce(e)), E && mt(E, "trace_start_stop") && M(t("⏹ ⏹ stop: %s", qe(e))), e.running = !1;
609
609
  let n = 0;
610
610
  return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
611
611
  }
612
- function ke(e, t, n) {
613
- return Fe(e) && Ae(e), 0;
612
+ function Ae(e, t, n) {
613
+ return Fe(e) && ke(e), 0;
614
614
  }
615
615
  function Le(e) {
616
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : rt(e, F.WALK_FIRST2LAST, ke, 0, 0);
616
+ return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : rt(e, F.WALK_FIRST2LAST, Ae, 0, 0);
617
617
  }
618
618
  function Pe(e) {
619
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", qe(e))), Fe(e) && Ae(e), lt(e, F.WALK_TOP2BOTTOM, ke, 0, 0));
619
+ return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", qe(e))), Fe(e) && ke(e), lt(e, F.WALK_TOP2BOTTOM, Ae, 0, 0));
620
620
  }
621
621
  function Ue(e) {
622
622
  if (Ze(e)) return ln(`gobj NULL or DESTROYED: ${Qe(e)}`), -1;
@@ -825,8 +825,8 @@ function pt(e, t, n) {
825
825
  for (let n = 0; n < l.length; n++) {
826
826
  const i = l[n];
827
827
  if (i.name && (-1 === t || i.flag & t)) {
828
- let t = mn(e.jn_attrs, i.name);
829
- hn(r, i.name, t);
828
+ let t;
829
+ !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? t = mn(e.jn_attrs, i.name) : (t = e.gclass.gmt.mt_reading(e, i.name), void 0 === t && (t = mn(e.jn_attrs, i.name))), hn(r, i.name, t);
830
830
  }
831
831
  }
832
832
  return r;
@@ -917,10 +917,10 @@ function Dt(e, t) {
917
917
  return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (ln(`${Qe(e)}: state unknown, state ${t}`), !1);
918
918
  }
919
919
  function Rt(e) {
920
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), null) : e.current_state.state_name;
920
+ return Cn(e) ? e.current_state.state_name : (ln("hgobj NULL"), "");
921
921
  }
922
922
  function jt(e, n) {
923
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), null) : n instanceof k ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (fe(e.parent, e), e.parent = null), ce(n, e), n.mt_child_added && (E && mt(E, "trace_creation") && an(t("👦👦🔵 child_added(%s): %s", qe(n), Qe(e))), n.mt_child_added(n, e)), 0) : (ln(`${Qe(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
923
+ return Ze(e) ? (ln("gobj NULL or DESTROYED"), null) : n instanceof A ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (fe(e.parent, e), e.parent = null), ce(n, e), n.mt_child_added && (E && mt(E, "trace_creation") && an(t("👦👦🔵 child_added(%s): %s", qe(n), Qe(e))), n.mt_child_added(n, e)), 0) : (ln(`${Qe(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
924
924
  }
925
925
  function $t(e, t, n) {
926
926
  if (!Cn(e)) return ln("gobj NULL of bad type"), null;
@@ -939,17 +939,17 @@ function It(e, t, n) {
939
939
  let r = $t(e, t, !1);
940
940
  return !!r && !(n && !(r.event_flag & n));
941
941
  }
942
- function At(e, t, n) {
942
+ function kt(e, t, n) {
943
943
  let r = $t(e, t, !1);
944
944
  return !!r && !(n && !(r.event_flag & n)) && !!(r.event_flag & C.EVF_OUTPUT_EVENT);
945
945
  }
946
- function kt(e, t, n, r) {
946
+ function At(e, t, n, r) {
947
947
  setTimeout(() => {
948
948
  Ze(e) || Lt(e, t, n, r);
949
949
  }, 10);
950
950
  }
951
951
  function Lt(e, n, r, l) {
952
- if (!(e && e instanceof k)) return ln("gobj dst NULL"), -1;
952
+ if (!(e && e instanceof A)) return ln("gobj dst NULL"), -1;
953
953
  if (e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return ln("gobj dst DESTROYED"), -1;
954
954
  let i = e.current_state;
955
955
  if (!i) return ln(`${Qe(e)}: current_state NULL`), -1;
@@ -1036,7 +1036,7 @@ function Wt(e, n, r, l) {
1036
1036
  if (Object.keys(r).forEach((t) => {
1037
1037
  i.has(t) || ln(`${Qe(e)}: key ignored in subscription (key: ${t}, event: ${n})`);
1038
1038
  }), Fn(n)) n = "";
1039
- else if (!(At(e, n, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ${n}`), 0;
1039
+ else if (!(kt(e, n, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ${n}`), 0;
1040
1040
  let o = Ft(e.dl_subscriptions, e, n, r, l);
1041
1041
  wn(o) > 0 && (ln(`${Qe(e)}: ${wn(o)} subscription(s) REPEATED, will be deleted and override`), _n(o, "subscription REPEATED"), Kt(e, o, !1));
1042
1042
  let s = function(e, t, n, r) {
@@ -1075,7 +1075,7 @@ function Mt(e, t, n, r) {
1075
1075
  if (Object.keys(n).forEach((n) => {
1076
1076
  l.has(n) || ln(`${Qe(e)}: key ignored in subscription (key: ${n}, event: ${t})`);
1077
1077
  }), Fn(t)) t = "";
1078
- else if (!(At(e, t, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ev ${t}`), 0;
1078
+ else if (!(kt(e, t, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ev ${t}`), 0;
1079
1079
  let i = Ft(e.dl_subscriptions, e, t, n, r), o = 0;
1080
1080
  for (let t = 0; t < i.length; t++) {
1081
1081
  let n = i[t];
@@ -1318,10 +1318,10 @@ function $n(e) {
1318
1318
  function In(e) {
1319
1319
  return "number" == typeof e && Number.isFinite(e);
1320
1320
  }
1321
- function An(e) {
1321
+ function kn(e) {
1322
1322
  return "boolean" == typeof e;
1323
1323
  }
1324
- function kn(e) {
1324
+ function An(e) {
1325
1325
  return null == e;
1326
1326
  }
1327
1327
  function Ln(e) {
@@ -1337,7 +1337,7 @@ function Un(e) {
1337
1337
  return "function" == typeof e;
1338
1338
  }
1339
1339
  function Cn(e) {
1340
- return e instanceof k;
1340
+ return e instanceof A;
1341
1341
  }
1342
1342
  function Fn(e) {
1343
1343
  return !$n(e) || 0 === e.length;
@@ -1362,7 +1362,7 @@ function Kn(e, t) {
1362
1362
  let n = Number(e), r = Number(t);
1363
1363
  return n > r ? 1 : n < r ? -1 : 0;
1364
1364
  }
1365
- if (An(e) || An(t)) {
1365
+ if (kn(e) || kn(t)) {
1366
1366
  let n = Number(e), r = Number(t);
1367
1367
  return n > r ? 1 : n < r ? -1 : 0;
1368
1368
  }
@@ -1651,7 +1651,7 @@ function pr(e) {
1651
1651
  else window.console.warn(`Invalid key for localStorage removal: ${e}`);
1652
1652
  }
1653
1653
  function mr(e, t) {
1654
- if (kn(e) || kn(t)) return !0;
1654
+ if (An(e) || An(t)) return !0;
1655
1655
  if (jn(e)) {
1656
1656
  if (0 === e.length) return !0;
1657
1657
  for (let n = 0; n < e.length; n++) if (e[n] === t) return !0;
@@ -1809,10 +1809,10 @@ function $r(e, t, n, r) {
1809
1809
  function Ir(e, t, n) {
1810
1810
  return Fn(n) ? zn(e, t, "__md_iev__`__msg_type__") : or(e, t, "__md_iev__", "__msg_type__", n), 0;
1811
1811
  }
1812
- function Ar(e, t) {
1812
+ function kr(e, t) {
1813
1813
  return er(e, t, "__md_iev__`__msg_type__", "", 0);
1814
1814
  }
1815
- function kr(e, t, n) {
1815
+ function Ar(e, t, n) {
1816
1816
  let r = new XMLHttpRequest();
1817
1817
  r.open("GET", e, !0), r.setRequestHeader("Accept", "application/json"), r.onreadystatechange = function() {
1818
1818
  if (4 === r.readyState) if (200 === r.status || 0 === (e = r).status && e.responseText && e.responseURL.startsWith("file:")) try {
@@ -2356,15 +2356,15 @@ function Rl() {
2356
2356
  }("C_TIMER");
2357
2357
  }
2358
2358
  function jl(e, t) {
2359
- return e instanceof k ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : (vt(e, "periodic", !1), void Nt(e, "msec", t)) : (ln("not GObj TYPE"), -1);
2359
+ return e instanceof A ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : (vt(e, "periodic", !1), void Nt(e, "msec", t)) : (ln("not GObj TYPE"), -1);
2360
2360
  }
2361
2361
  function $l(e, t) {
2362
- return e instanceof k ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : (vt(e, "periodic", !0), void Nt(e, "msec", t)) : (ln("not GObj TYPE"), -1);
2362
+ return e instanceof A ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : (vt(e, "periodic", !0), void Nt(e, "msec", t)) : (ln("not GObj TYPE"), -1);
2363
2363
  }
2364
2364
  function Il(e) {
2365
- return e instanceof k ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : void Nt(e, "msec", -1) : (ln("not GObj TYPE"), -1);
2365
+ return e instanceof A ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : void Nt(e, "msec", -1) : (ln("not GObj TYPE"), -1);
2366
2366
  }
2367
- var Al = [
2367
+ var kl = [
2368
2368
  N(y.DTP_BOOLEAN, "changesLost", 0, !1, "Set true to warn about leaving page"),
2369
2369
  N(y.DTP_BOOLEAN, "browser_beforeunload", 0, !1, "Set true to refreshing browser"),
2370
2370
  N(y.DTP_STRING, "__username__", 0, "", "Username"),
@@ -2390,7 +2390,7 @@ var Al = [
2390
2390
  N(y.DTP_BOOLEAN, "developer", 0, !1, "Developer mode enabled"),
2391
2391
  N(y.DTP_INTEGER, "periodic_timeout", 0, "1000", "Timeout periodic, in miliseconds."),
2392
2392
  v()
2393
- ], kl = { gobj_timer: null }, Ll = null;
2393
+ ], Al = { gobj_timer: null }, Ll = null;
2394
2394
  function Pl(e, t, n, r) {
2395
2395
  return Jt(e, t, n), 0;
2396
2396
  }
@@ -2404,7 +2404,7 @@ var Ul = {
2404
2404
  return De(e.priv.gobj_timer), $l(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
2405
2405
  },
2406
2406
  mt_stop: function(e) {
2407
- return Ae(e.priv.gobj_timer), Le(e), 0;
2407
+ return ke(e.priv.gobj_timer), Le(e), 0;
2408
2408
  },
2409
2409
  mt_destroy: function(e) {},
2410
2410
  mt_play: function(e) {
@@ -2423,7 +2423,7 @@ function Cl() {
2423
2423
  Pl,
2424
2424
  null
2425
2425
  ]]]];
2426
- return (Ll = z(e, [["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]], t, Ul, 0, Al, kl, 0, 0, 0, 0)) ? 0 : -1;
2426
+ return (Ll = z(e, [["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]], t, Ul, 0, kl, Al, 0, 0, 0, 0)) ? 0 : -1;
2427
2427
  }("C_YUNO");
2428
2428
  }
2429
2429
  var Fl = "ievent_gate_stack", Gl = [
@@ -2649,7 +2649,7 @@ function ti(e, t, n, r) {
2649
2649
  return Kl(e), -1;
2650
2650
  }
2651
2651
  i = null;
2652
- let a = Ar(e, s), u = $r(e, s, Fl), _ = er(e, u, "dst_role", "");
2652
+ let a = kr(e, s), u = $r(e, s, Fl), _ = er(e, u, "dst_role", "");
2653
2653
  if (_ !== Ye()) return ln(`"It's not my role, dst_role: ${_}, my_role: ${Ye()}`), 0;
2654
2654
  let c = er(e, u, "dst_service", "");
2655
2655
  if ("__subscribing__" === a) return -1;
@@ -2696,7 +2696,7 @@ var li = {
2696
2696
  },
2697
2697
  mt_stop: function(e) {
2698
2698
  let t = e.priv;
2699
- return Il(t.gobj_timer), Ae(t.gobj_timer), t.websocket && Kl(e), 0;
2699
+ return Il(t.gobj_timer), ke(t.gobj_timer), t.websocket && (t.websocket.onopen = null, t.websocket.onmessage = null, t.websocket.onerror = null, t.websocket.onclose = null, Kl(e)), 0;
2700
2700
  },
2701
2701
  mt_destroy: function(e) {},
2702
2702
  mt_stats: function(e, t, n, r) {
@@ -2835,6 +2835,6 @@ function ii() {
2835
2835
  ], t, li, 0, Gl, Vl, 0, 0, 0, L.gcflag_no_check_output_events)) ? 0 : -1;
2836
2836
  }("C_IEVENT_CLI");
2837
2837
  }
2838
- export { k as GObj, N as SDATA, j as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, R as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response, sl as build_path, s as build_stats_response, ll as clean_name, Il as clear_timeout, Kn as cmp_two_simple_json, l as command_parser, qr as createElement2, Qr as createOneHtml, Kr as create_json_record, Sl as create_template_record, el as current_timestamp, y as data_type_t, fl as db_list_persistent_attrs, ul as db_load_persistent_attrs, cl as db_remove_persistent_attrs, _l as db_save_persistent_attrs, ol as debounce, wr as delete_from_list, fn as duplicate_objects, Fn as empty_string, Br as escapeHtml, C as event_flag_t, te as gclass_add_ev_action, re as gclass_add_event_type, ee as gclass_add_state, ie as gclass_check_fsm, z as gclass_create, le as gclass_event_type, oe as gclass_find_by_name, L as gclass_flag_t, X as gclass_unregister, zr as getPositionRelativeToBody, il as get_function_name, tl as get_now, et as gobj_bottom_gobj, jt as gobj_change_parent, Dt as gobj_change_state, Qt as gobj_command, Ne as gobj_create, he as gobj_create2, Se as gobj_create_default_service, ve as gobj_create_pure_child, ye as gobj_create_service, Oe as gobj_create_volatil, Te as gobj_create_yuno, Rt as gobj_current_state, ae as gobj_default_service, we as gobj_destroy, _t as gobj_find_child, at as gobj_find_gobj, ue as gobj_find_service, Bt as gobj_find_subscribings, Yt as gobj_find_subscriptions, P as gobj_flag_t, qe as gobj_full_name, Je as gobj_gclass_name, dt as gobj_has_attr, It as gobj_has_event, At as gobj_has_output_event, J as gobj_hsdata, Ze as gobj_is_destroying, We as gobj_is_playing, He as gobj_is_pure_child, Fe as gobj_is_running, Ve as gobj_is_service, Xe as gobj_is_volatil, pe as gobj_list_persistent_attrs, xt as gobj_list_subscriptions, ge as gobj_load_persistent_attrs, ct as gobj_match_children, ft as gobj_match_children_tree, ut as gobj_match_gobj, Be as gobj_name, ze as gobj_parent, Ce as gobj_pause, Ue as gobj_play, kt as gobj_post_event, Jt as gobj_publish_event, bt as gobj_read_attr, pt as gobj_read_attrs, mt as gobj_read_bool_attr, Et as gobj_read_integer_attr, Tt as gobj_read_pointer_attr, ht as gobj_read_str_attr, be as gobj_remove_persistent_attrs, St as gobj_reset_volatil_attrs, de as gobj_save_persistent_attrs, gt as gobj_search_path, Lt as gobj_send_event, se as gobj_services, tt as gobj_set_bottom_gobj, Qe as gobj_short_name, De as gobj_start, je as gobj_start_children, Ie as gobj_start_tree, K as gobj_start_up, qt as gobj_stats, Ae as gobj_stop, Le as gobj_stop_children, Pe as gobj_stop_tree, Wt as gobj_subscribe_event, Mt as gobj_unsubscribe_event, Kt as gobj_unsubscribe_list, rt as gobj_walk_gobj_children, lt as gobj_walk_gobj_children_tree, yt as gobj_write_attr, Ot as gobj_write_attrs, vt as gobj_write_bool_attr, Nt as gobj_write_integer_attr, wt as gobj_write_str_attr, Me as gobj_yuno, xe as gobj_yuno_id, Ke as gobj_yuno_name, Ye as gobj_yuno_role, Or as id_index_in_obj_list, nl as index_in_list, jn as is_array, An as is_boolean, Pn as is_date, Un as is_function, Cn as is_gobj, xn as is_metadata_key, kn as is_null, In as is_number, Rn as is_object, Bn as is_private_key, Ln as is_pure_number, $n as is_string, Fr as jdb_delete, Vr as jdb_get, Wr as jdb_get_by_idx, Gr as jdb_get_topic, Ur as jdb_init, Cr as jdb_update, yn as json_array_append, Sn as json_array_append_new, vn as json_array_extend, On as json_array_remove, wn as json_array_size, cn as json_deep_copy, gn as json_is_identical, En as json_object_del, mn as json_object_get, hn as json_object_set, Tn as json_object_set_new, Nn as json_object_size, dn as json_object_update, bn as json_object_update_existing, pn as json_object_update_missing, Dn as json_size, xr as jwt2json, Yr as jwtDecode, fr as kw_clone_by_keys, gr as kw_clone_by_not_keys, cr as kw_collect, zn as kw_delete, ur as kw_find_json_in_list, qn as kw_find_path, zt as kw_flag_t, Xn as kw_get_bool, nr as kw_get_dict, rr as kw_get_dict_value, Hn as kw_get_int, lr as kw_get_list, dr as kw_get_local_storage_value, tr as kw_get_pointer, Zn as kw_get_real, er as kw_get_str, Qn as kw_has_key, ar as kw_match_simple, Jn as kw_pop, pr as kw_remove_local_storage_value, _r as kw_select, ir as kw_set_dict_value, br as kw_set_local_storage_value, or as kw_set_subdict_value, Er as kwid_collect, Tr as kwid_find_one_record, yr as kwid_get_ids, mr as kwid_match_id, hr as kwid_new_dict, Sr as list2options, kr as load_json_file, an as log_debug, ln as log_error, sn as log_info, on as log_warning, Ar as msg_iev_get_msg_type, $r as msg_iev_get_stack, jr as msg_iev_push_stack, Dr as msg_iev_read_key, Ir as msg_iev_set_msg_type, Rr as msg_iev_write_key, rl as node_uuid, Gn as parseBoolean, Xr as parseSVG, Hr as refresh_language, ii as register_c_ievent_cli, Rl as register_c_timer, Cl as register_c_yuno, Jr as safeSrc, S as sdata_flag_t, Lr as send_http_json_post, nn as set_remote_log_functions, jl as set_timeout, $l as set_timeout_periodic, t as sprintf, o as stats_parser, vr as str_in_list, Mn as strcasecmp, Wn as strcmp, Vn as strncmp, Nr as strs_in_list, Yn as strstr, yl as template_get_field_desc, Zr as timeTracker, _n as trace_json, un as trace_msg, dl as treedb_decoder_fkey, pl as treedb_decoder_hook, bl as treedb_encoder_fkey, Tl as treedb_get_field_desc, gl as treedb_hook_data_size, n as vsprintf };
2838
+ export { A as GObj, N as SDATA, j as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, R as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response, sl as build_path, s as build_stats_response, ll as clean_name, Il as clear_timeout, Kn as cmp_two_simple_json, l as command_parser, qr as createElement2, Qr as createOneHtml, Kr as create_json_record, Sl as create_template_record, el as current_timestamp, y as data_type_t, fl as db_list_persistent_attrs, ul as db_load_persistent_attrs, cl as db_remove_persistent_attrs, _l as db_save_persistent_attrs, ol as debounce, wr as delete_from_list, fn as duplicate_objects, Fn as empty_string, Br as escapeHtml, C as event_flag_t, te as gclass_add_ev_action, re as gclass_add_event_type, ee as gclass_add_state, ie as gclass_check_fsm, z as gclass_create, le as gclass_event_type, oe as gclass_find_by_name, L as gclass_flag_t, X as gclass_unregister, zr as getPositionRelativeToBody, il as get_function_name, tl as get_now, et as gobj_bottom_gobj, jt as gobj_change_parent, Dt as gobj_change_state, Qt as gobj_command, Ne as gobj_create, he as gobj_create2, Se as gobj_create_default_service, ve as gobj_create_pure_child, ye as gobj_create_service, Oe as gobj_create_volatil, Te as gobj_create_yuno, Rt as gobj_current_state, ae as gobj_default_service, we as gobj_destroy, _t as gobj_find_child, at as gobj_find_gobj, ue as gobj_find_service, Bt as gobj_find_subscribings, Yt as gobj_find_subscriptions, P as gobj_flag_t, qe as gobj_full_name, Je as gobj_gclass_name, dt as gobj_has_attr, It as gobj_has_event, kt as gobj_has_output_event, J as gobj_hsdata, Ze as gobj_is_destroying, We as gobj_is_playing, He as gobj_is_pure_child, Fe as gobj_is_running, Ve as gobj_is_service, Xe as gobj_is_volatil, pe as gobj_list_persistent_attrs, xt as gobj_list_subscriptions, ge as gobj_load_persistent_attrs, ct as gobj_match_children, ft as gobj_match_children_tree, ut as gobj_match_gobj, Be as gobj_name, ze as gobj_parent, Ce as gobj_pause, Ue as gobj_play, At as gobj_post_event, Jt as gobj_publish_event, bt as gobj_read_attr, pt as gobj_read_attrs, mt as gobj_read_bool_attr, Et as gobj_read_integer_attr, Tt as gobj_read_pointer_attr, ht as gobj_read_str_attr, be as gobj_remove_persistent_attrs, St as gobj_reset_volatil_attrs, de as gobj_save_persistent_attrs, gt as gobj_search_path, Lt as gobj_send_event, se as gobj_services, tt as gobj_set_bottom_gobj, Qe as gobj_short_name, De as gobj_start, je as gobj_start_children, Ie as gobj_start_tree, K as gobj_start_up, qt as gobj_stats, ke as gobj_stop, Le as gobj_stop_children, Pe as gobj_stop_tree, Wt as gobj_subscribe_event, Mt as gobj_unsubscribe_event, Kt as gobj_unsubscribe_list, rt as gobj_walk_gobj_children, lt as gobj_walk_gobj_children_tree, yt as gobj_write_attr, Ot as gobj_write_attrs, vt as gobj_write_bool_attr, Nt as gobj_write_integer_attr, wt as gobj_write_str_attr, Me as gobj_yuno, xe as gobj_yuno_id, Ke as gobj_yuno_name, Ye as gobj_yuno_role, Or as id_index_in_obj_list, nl as index_in_list, jn as is_array, kn as is_boolean, Pn as is_date, Un as is_function, Cn as is_gobj, xn as is_metadata_key, An as is_null, In as is_number, Rn as is_object, Bn as is_private_key, Ln as is_pure_number, $n as is_string, Fr as jdb_delete, Vr as jdb_get, Wr as jdb_get_by_idx, Gr as jdb_get_topic, Ur as jdb_init, Cr as jdb_update, yn as json_array_append, Sn as json_array_append_new, vn as json_array_extend, On as json_array_remove, wn as json_array_size, cn as json_deep_copy, gn as json_is_identical, En as json_object_del, mn as json_object_get, hn as json_object_set, Tn as json_object_set_new, Nn as json_object_size, dn as json_object_update, bn as json_object_update_existing, pn as json_object_update_missing, Dn as json_size, xr as jwt2json, Yr as jwtDecode, fr as kw_clone_by_keys, gr as kw_clone_by_not_keys, cr as kw_collect, zn as kw_delete, ur as kw_find_json_in_list, qn as kw_find_path, zt as kw_flag_t, Xn as kw_get_bool, nr as kw_get_dict, rr as kw_get_dict_value, Hn as kw_get_int, lr as kw_get_list, dr as kw_get_local_storage_value, tr as kw_get_pointer, Zn as kw_get_real, er as kw_get_str, Qn as kw_has_key, ar as kw_match_simple, Jn as kw_pop, pr as kw_remove_local_storage_value, _r as kw_select, ir as kw_set_dict_value, br as kw_set_local_storage_value, or as kw_set_subdict_value, Er as kwid_collect, Tr as kwid_find_one_record, yr as kwid_get_ids, mr as kwid_match_id, hr as kwid_new_dict, Sr as list2options, Ar as load_json_file, an as log_debug, ln as log_error, sn as log_info, on as log_warning, kr as msg_iev_get_msg_type, $r as msg_iev_get_stack, jr as msg_iev_push_stack, Dr as msg_iev_read_key, Ir as msg_iev_set_msg_type, Rr as msg_iev_write_key, rl as node_uuid, Gn as parseBoolean, Xr as parseSVG, Hr as refresh_language, ii as register_c_ievent_cli, Rl as register_c_timer, Cl as register_c_yuno, Jr as safeSrc, S as sdata_flag_t, Lr as send_http_json_post, nn as set_remote_log_functions, jl as set_timeout, $l as set_timeout_periodic, t as sprintf, o as stats_parser, vr as str_in_list, Mn as strcasecmp, Wn as strcmp, Vn as strncmp, Nr as strs_in_list, Yn as strstr, yl as template_get_field_desc, Zr as timeTracker, _n as trace_json, un as trace_msg, dl as treedb_decoder_fkey, pl as treedb_decoder_hook, bl as treedb_encoder_fkey, Tl as treedb_get_field_desc, gl as treedb_hook_data_size, n as vsprintf };
2839
2839
 
2840
2840
  //# sourceMappingURL=gobj-js.es.min.js.map