@yuneta/gobj-js 7.9.6 → 7.9.9

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.
@@ -169,11 +169,11 @@ var h = class {
169
169
  constructor(e, t, n = 0, r = null, o = "", s = null, i = null, l = 0, _ = null, a = null, u = null) {
170
170
  this.type = e, this.name = t, this.alias = s, this.flag = n, this.default_value = r, this.header = i, this.fillspace = l, this.description = o, this.json_fn = _, this.schema = a, this.authpth = u;
171
171
  }
172
- }, y = () => new h(0, null), v = (e, t, n, r, o) => new h(e, t, n, r, o), S = class {
172
+ }, y = () => new h(0, null), v = (e, t, n, r, o) => new h(e, t, n, r, o), j = class {
173
173
  constructor(e, t, n, r, o, s, i, l, _) {
174
174
  this.gclass_name = e, this.dl_states = [], this.dl_events = [], this.gmt = t, this.lmt = n, this.attrs_table = r, this.priv = o, this.authz_table = s, this.command_table = i, this.s_user_trace_level = l, this.gclass_flag = Number(_) || 0, this.instances = 0, this.trace_level = 0, this.no_trace_level = 0, this.jn_trace_filter = null, this.fsm_checked = !1;
175
175
  }
176
- }, j = class {
176
+ }, S = class {
177
177
  constructor(e, t, n, r, o) {
178
178
  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(o) || 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 = Bt(t.priv), this.running = !1, this.playing = !1, this.disabled = !1, this.bottom_gobj = null, this.trace_level = 0, this.no_trace_level = 0;
179
179
  }
@@ -469,7 +469,7 @@ function Q(e, t, n) {
469
469
  return tt(e, t) ? z(e) : e && e.bottom_gobj ? Q(e.bottom_gobj, t, n) : (n && Vt(`GClass Attribute NOT FOUND: ${Ue(e)}, attr ${t}`), null);
470
470
  }
471
471
  function X(e, t, n) {
472
- if (!(e && e instanceof S)) return n && Vt("gclass NULL"), null;
472
+ if (!(e && e instanceof j)) return n && Vt("gclass NULL"), null;
473
473
  if (!t) return e.attrs_table;
474
474
  for (let n = 0; n < e.attrs_table.length; n++) {
475
475
  const r = e.attrs_table[n];
@@ -481,9 +481,9 @@ function Z(e, t, n, r, o, s, i, l, _, a, u) {
481
481
  if (bn(e)) return Vt("gclass_name EMPTY"), null;
482
482
  if (e.includes("`") || e.includes("^") || e.includes(".")) return Vt(`GClass name CANNOT have '.' or '^' or '\`' char: ${e}`), null;
483
483
  if (ae(e)) return Vt(`GClass ALREADY exists: ${e}`), null;
484
- let c = new S(e, r, o, s, i, l, _, a, u);
484
+ let c = new j(e, r, o, s, i, l, _, a, u);
485
485
  (function(e, t) {
486
- e && e instanceof S ? t ? g[t] ? Vt(`gclass ALREADY REGISTERED: ${t}`) : g[t] = e : Vt("gclass_name undefined") : Vt("gclass undefined");
486
+ e && e instanceof j ? t ? g[t] ? Vt(`gclass ALREADY REGISTERED: ${t}`) : g[t] = e : Vt("gclass_name undefined") : Vt("gclass undefined");
487
487
  })(c, e);
488
488
  const f = n.length;
489
489
  for (let e = 0; e < f; e++) {
@@ -513,7 +513,7 @@ function ee(e) {
513
513
  let t;
514
514
  if (un(e)) t = e;
515
515
  else {
516
- if (!(e instanceof S)) return Vt("Cannot unregister gclass, type unknown"), -1;
516
+ if (!(e instanceof j)) return Vt("Cannot unregister gclass, type unknown"), -1;
517
517
  t = e.gclass_name;
518
518
  }
519
519
  let n = g[t];
@@ -536,10 +536,10 @@ function ne(e, t) {
536
536
  return null;
537
537
  }
538
538
  function re(e, t) {
539
- return e instanceof S ? te(e, t) ? (Vt(`state already exists: ${t}`), -1) : (e.dl_states.push(new A(t)), 0) : (Vt("Cannot add state, typeof not GClass"), -1);
539
+ return e instanceof j ? te(e, t) ? (Vt(`state already exists: ${t}`), -1) : (e.dl_states.push(new A(t)), 0) : (Vt("Cannot add state, typeof not GClass"), -1);
540
540
  }
541
541
  function oe(e, t, n, r, o) {
542
- if (!(e instanceof S)) return Vt("Cannot add state, typeof not GClass"), -1;
542
+ if (!(e instanceof j)) return Vt("Cannot add state, typeof not GClass"), -1;
543
543
  if (bn(t)) return Vt("state_name EMPTY"), -1;
544
544
  let s = te(e, t);
545
545
  return s ? ne(s, n) ? (Vt(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (s.dl_actions.push(new x(n, r, o)), 0) : (Vt(`state not found: ${t}`), -1);
@@ -548,10 +548,10 @@ function se(e, t, n) {
548
548
  bn(t) || e.push(new k(t, n));
549
549
  }
550
550
  function ie(e, t, n) {
551
- return e instanceof S ? se(e.dl_events, t, n) : (Vt("Cannot add state, typeof not GClass"), -1);
551
+ return e instanceof j ? se(e.dl_events, t, n) : (Vt("Cannot add state, typeof not GClass"), -1);
552
552
  }
553
553
  function le(e, t) {
554
- if (!(e instanceof S)) return Vt("Cannot add state, typeof not GClass"), 0;
554
+ if (!(e instanceof j)) return Vt("Cannot add state, typeof not GClass"), 0;
555
555
  const n = e.dl_events.length, r = e.dl_events;
556
556
  for (let e = 0; e < n; e++) {
557
557
  let n = r[e];
@@ -560,7 +560,7 @@ function le(e, t) {
560
560
  return null;
561
561
  }
562
562
  function _e(e) {
563
- if (!(e instanceof S)) return Vt("Cannot add state, typeof not GClass"), -1;
563
+ if (!(e instanceof j)) return Vt("Cannot add state, typeof not GClass"), -1;
564
564
  let t = 0;
565
565
  sn(e.dl_states) || (Vt(`GClass without states: ${e.gclass_name}`), t += -1);
566
566
  for (let n = 0; n < e.dl_states.length; n++) {
@@ -630,7 +630,7 @@ function me(e, n, r, o, s) {
630
630
  s |= N.gobj_flag_service;
631
631
  } else {
632
632
  if (!o) return Vt("gobj NEEDS a parent!"), null;
633
- if (!("string" == typeof o || o instanceof j)) return Vt(`BAD TYPE of parent: ${o}`), null;
633
+ if (!("string" == typeof o || o instanceof S)) return Vt(`BAD TYPE of parent: ${o}`), null;
634
634
  if (un(o) && !(o = ce(o))) return Mt(`parent service not found: ${o}`), null;
635
635
  }
636
636
  if (s & N.gobj_flag_service && ce(e, !1)) return Vt(`service ALREADY registered: ${n}^${e}`), null;
@@ -646,7 +646,7 @@ function me(e, n, r, o, s) {
646
646
  if (e.includes("`")) return Vt(`gobj_name cannot contain char ': ${n}^${e}`), null;
647
647
  if (e.includes("^")) return Vt(`gobj_name cannot contain char ^: ${n}^${e}`), null;
648
648
  }
649
- let _ = new j(e, l, r, o, s);
649
+ let _ = new S(e, l, r, o, s);
650
650
  _.jn_attrs = J(_, l.attrs_table);
651
651
  for (const [e, t] of Object.entries(_.jn_attrs)) e in _.priv && (_.priv[e] = t);
652
652
  let a = K(_);
@@ -657,7 +657,7 @@ function Ee(e, t, n, r) {
657
657
  }
658
658
  function Te(e) {
659
659
  if (We(e)) return void Vt("gobj NULL or DESTROYED");
660
- e.__refs__ > 0 && Vt(`${Ue(e)}: gobj DESTROYING with references: ${e.__refs__}`), e.playing && (Vt(`Destroying a PLAYING gobj: ${Fe(e)}`), Re(e)), e.running && (Vt(`Destroying a RUNNING gobj: ${Fe(e)}`), Se(e)), e.obflag |= R.obflag_destroying;
660
+ e.__refs__ > 0 && Vt(`${Ue(e)}: gobj DESTROYING with references: ${e.__refs__}`), e.playing && (Vt(`Destroying a PLAYING gobj: ${Fe(e)}`), Re(e)), e.running && (Vt(`Destroying a RUNNING gobj: ${Fe(e)}`), je(e)), e.obflag |= R.obflag_destroying;
661
661
  let n = K(e);
662
662
  n && $(t("💔💔⏩ destroying: %s", Fe(e)));
663
663
  let r = Ge(e);
@@ -686,18 +686,18 @@ function ye(e, t, n) {
686
686
  function ve(e, t, n) {
687
687
  return e.gclass.gclass_flag & O.gcflag_manual_start || De(e) ? 1 : (we(e) || he(e), 0);
688
688
  }
689
- function Se(e) {
689
+ function je(e) {
690
690
  if (We(e)) return Vt("gobj NULL or DESTROYED"), -1;
691
691
  if (!e.running) return Vt(`${Ue(e)}: GObj NOT RUNNING`), -1;
692
692
  e.playing && (Mt(`${Ue(e)}: GObj stopping without previous pause`), Re(e)), Y(e) && $(t("⏹ ⏹ stop: %s", Fe(e))), e.running = !1;
693
693
  let n = 0;
694
694
  return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
695
695
  }
696
- function je(e, t, n) {
697
- return we(e) && Se(e), 0;
696
+ function Se(e, t, n) {
697
+ return we(e) && je(e), 0;
698
698
  }
699
699
  function Oe(e) {
700
- return We(e) ? (Vt("gobj NULL or DESTROYED"), -1) : Je(e, D.WALK_FIRST2LAST, je, 0, 0);
700
+ return We(e) ? (Vt("gobj NULL or DESTROYED"), -1) : Je(e, D.WALK_FIRST2LAST, Se, 0, 0);
701
701
  }
702
702
  function Ne(e) {
703
703
  if (We(e)) return Vt(`gobj NULL or DESTROYED: ${Ue(e)}`), -1;
@@ -965,7 +965,7 @@ function bt(e, t, n) {
965
965
  return !!r && !(n && !(r.event_flag & n)) && !!(r.event_flag & w.EVF_OUTPUT_EVENT);
966
966
  }
967
967
  function mt(e, n, r, o) {
968
- if (!(e && e instanceof j)) return Vt("gobj dst NULL"), -1;
968
+ if (!(e && e instanceof S)) return Vt("gobj dst NULL"), -1;
969
969
  if (e.obflag & (R.obflag_destroyed | R.obflag_destroying)) return Vt("gobj dst DESTROYED"), -1;
970
970
  let s = e.current_state;
971
971
  if (!s) return Vt(`${Ue(e)}: current_state NULL`), -1;
@@ -1041,14 +1041,14 @@ function vt(e, t, n, r, o) {
1041
1041
  for (let s = 0; s < e.length; s++) if (ht(e[s], t, n, r, o)) return s;
1042
1042
  return -1;
1043
1043
  }
1044
- function St(e, n, r, o) {
1044
+ function jt(e, n, r, o) {
1045
1045
  let s = wn(e, n, "publisher", null, Dt.KW_REQUIRED), i = wn(e, n, "subscriber", null, Dt.KW_REQUIRED), l = Rn(e, n, "event", "", Dt.KW_REQUIRED);
1046
1046
  if (!!(Nn(e, n, "subs_flag", null, Dt.KW_REQUIRED) & Et.__hard_subscription__) && !r) return -1;
1047
1047
  d && ot(d, "trace_subscriptions") && ($(t("💜💜👎 unsubscribing event '%s': publisher %s, subscriber'%s'", l || "", Ue(s), Ue(i))), Yt(n)), s.obflag & R.obflag_destroyed || o || s.gclass.gmt.mt_subscription_deleted && s.gclass.gmt.mt_subscription_deleted(s, n);
1048
1048
  let _ = vt(s.dl_subscriptions, s, l, n, i);
1049
1049
  return _ >= 0 ? rn(s.dl_subscriptions, _) : (Vt(`${Ue(e)}: subscription in publisher not found`), Yt(n)), _ = vt(i.dl_subscribings, s, l, n, i), _ >= 0 ? rn(i.dl_subscribings, _) : (Vt(`${Ue(e)}: subscription in subscriber not found`), Yt(n)), 0;
1050
1050
  }
1051
- function jt(e, n, r, o) {
1051
+ function St(e, n, r, o) {
1052
1052
  if (null == r && (r = {}), !e) return Vt(`publisher NULL: ev ${n}`), 0;
1053
1053
  if (!o) return Vt(`subscriber NULL: ev ${n}`), 0;
1054
1054
  const s = new Set([
@@ -1085,11 +1085,11 @@ function jt(e, n, r, o) {
1085
1085
  }
1086
1086
  return en(o, "subs_flag", s), o;
1087
1087
  }(e, n, r, o);
1088
- return l ? (tn(e.dl_subscriptions, l), tn(o.dl_subscribings, l), d && ot(d, "trace_subscriptions") && ($(t("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", n || "", Ue(e), Ue(o))), r && Yt(r)), e.gclass.gmt.mt_subscription_added && e.gclass.gmt.mt_subscription_added(e, l) < 0 && (St(e, l, !0, !0), l = 0), l) : (Vt(`${Ue(e)}: _create_subscription() FAILED`), 0);
1088
+ return l ? (tn(e.dl_subscriptions, l), tn(o.dl_subscribings, l), d && ot(d, "trace_subscriptions") && ($(t("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", n || "", Ue(e), Ue(o))), r && Yt(r)), e.gclass.gmt.mt_subscription_added && e.gclass.gmt.mt_subscription_added(e, l) < 0 && (jt(e, l, !0, !0), l = 0), l) : (Vt(`${Ue(e)}: _create_subscription() FAILED`), 0);
1089
1089
  }
1090
1090
  function Ot(e, t, n) {
1091
1091
  let r = [...t];
1092
- for (let t = 0; t < r.length; t++) St(e, r[t], n, !1);
1092
+ for (let t = 0; t < r.length; t++) jt(e, r[t], n, !1);
1093
1093
  return 0;
1094
1094
  }
1095
1095
  function Nt(e, t, n, r) {
@@ -1303,7 +1303,7 @@ function pn(e) {
1303
1303
  return "function" == typeof e;
1304
1304
  }
1305
1305
  function dn(e) {
1306
- return e instanceof j;
1306
+ return e instanceof S;
1307
1307
  }
1308
1308
  function bn(e) {
1309
1309
  return !un(e) || 0 === e.length;
@@ -1338,7 +1338,7 @@ function yn(e, t) {
1338
1338
  function vn(e, t) {
1339
1339
  return !(!(t in e) || !e.hasOwnProperty(t));
1340
1340
  }
1341
- function Sn(e, t, n, r) {
1341
+ function jn(e, t, n, r) {
1342
1342
  if (e && !dn(e) && Vt("GObj bad instanceof"), !_n(t) && !an(t)) return Vt(`${Ue(e)}: kw must be list or dict`), 0;
1343
1343
  if (!un(n)) return Vt(`${Ue(e)}: path must be a string: ${String(n)}`), 0;
1344
1344
  let o = n.split("`");
@@ -1347,17 +1347,17 @@ function Sn(e, t, n, r) {
1347
1347
  for (let i = 0; i < s; i++) if (void 0 === (t = t[o[i]])) return void (r && Vt(`${Ue(e)}: path not found: ${String(n)}`));
1348
1348
  return t;
1349
1349
  }
1350
- function jn(e, t, n) {
1350
+ function Sn(e, t, n) {
1351
1351
  e && !dn(e) && Vt("GObj bad instanceof");
1352
1352
  let [r, o] = function(e, t) {
1353
1353
  let n = e.lastIndexOf(t);
1354
1354
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
1355
1355
  }(n, "`");
1356
- return bn(o) ? Xt(t, n) : Xt(Sn(e, t, r, !0), o), 0;
1356
+ return bn(o) ? Xt(t, n) : Xt(jn(e, t, r, !0), o), 0;
1357
1357
  }
1358
1358
  function On(e, t, n, r, o) {
1359
1359
  e && !dn(e) && Vt("GObj bad instanceof");
1360
- let s = Sn(e, t, n, !1);
1360
+ let s = jn(e, t, n, !1);
1361
1361
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
1362
1362
  if (void 0 === s) {
1363
1363
  if (l) {
@@ -1366,11 +1366,11 @@ function On(e, t, n, r, o) {
1366
1366
  }
1367
1367
  return i && (Vt(`path not found: '${n}'`), Yt(t)), Boolean(r);
1368
1368
  }
1369
- return _ && jn(e, t, n), Boolean(s);
1369
+ return _ && Sn(e, t, n), Boolean(s);
1370
1370
  }
1371
1371
  function Nn(e, t, n, r, o) {
1372
1372
  e && !dn(e) && Vt("GObj bad instanceof");
1373
- let s = Sn(e, t, n, !1);
1373
+ let s = jn(e, t, n, !1);
1374
1374
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
1375
1375
  if (void 0 === s) {
1376
1376
  if (l) {
@@ -1379,11 +1379,11 @@ function Nn(e, t, n, r, o) {
1379
1379
  }
1380
1380
  return i && (Vt(`path not found: '${n}'`), Yt(t)), parseInt(r);
1381
1381
  }
1382
- return _ && jn(e, t, n), cn(s) ? parseInt(s) : (i && (Vt(`path value MUST BE a number: ${n}`), Kt(t)), parseInt(r));
1382
+ return _ && Sn(e, t, n), cn(s) ? parseInt(s) : (i && (Vt(`path value MUST BE a number: ${n}`), Kt(t)), parseInt(r));
1383
1383
  }
1384
1384
  function Rn(e, t, n, r, o) {
1385
1385
  e && !dn(e) && Vt("GObj bad instanceof");
1386
- let s = Sn(e, t, n, !1);
1386
+ let s = jn(e, t, n, !1);
1387
1387
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
1388
1388
  if (void 0 === s) {
1389
1389
  if (l) {
@@ -1392,11 +1392,11 @@ function Rn(e, t, n, r, o) {
1392
1392
  }
1393
1393
  return i && (Vt(`path not found: '${n}'`), Yt(t)), String(r);
1394
1394
  }
1395
- return _ && jn(e, t, n), un(s) ? String(s) : (i && (Vt(`${Ue(e)}: path value MUST BE a string: ${n}`), Kt(t)), String(r));
1395
+ return _ && Sn(e, t, n), un(s) ? String(s) : (i && (Vt(`${Ue(e)}: path value MUST BE a string: ${n}`), Kt(t)), String(r));
1396
1396
  }
1397
1397
  function wn(e, t, n, r, o) {
1398
1398
  e && !dn(e) && Vt("GObj bad instanceof");
1399
- let s = Sn(e, t, n, !1);
1399
+ let s = jn(e, t, n, !1);
1400
1400
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
1401
1401
  if (void 0 === s) {
1402
1402
  if (l) {
@@ -1405,11 +1405,11 @@ function wn(e, t, n, r, o) {
1405
1405
  }
1406
1406
  return i && (Vt(`path not found: '${n}'`), Yt(t)), r;
1407
1407
  }
1408
- return _ && jn(e, t, n), s;
1408
+ return _ && Sn(e, t, n), s;
1409
1409
  }
1410
1410
  function Dn(e, t, n, r, o) {
1411
1411
  e && !dn(e) && Vt("GObj bad instanceof");
1412
- let s = Sn(e, t, n, !1);
1412
+ let s = jn(e, t, n, !1);
1413
1413
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
1414
1414
  if (void 0 === s) {
1415
1415
  if (l) {
@@ -1418,11 +1418,11 @@ function Dn(e, t, n, r, o) {
1418
1418
  }
1419
1419
  return i && (Vt(`path not found: '${n}'`), Yt(t)), Object(r);
1420
1420
  }
1421
- return _ && jn(e, t, n), _n(s) ? Object(s) : (i && (Vt(`path value MUST BE a dict: ${n}`), Kt(t)), Object(r));
1421
+ return _ && Sn(e, t, n), _n(s) ? Object(s) : (i && (Vt(`path value MUST BE a dict: ${n}`), Kt(t)), Object(r));
1422
1422
  }
1423
1423
  function xn(e, t, n, r, o) {
1424
1424
  e && !dn(e) && Vt("GObj bad instanceof");
1425
- let s = Sn(e, t, n, !1);
1425
+ let s = jn(e, t, n, !1);
1426
1426
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
1427
1427
  if (void 0 === s) {
1428
1428
  if (l) {
@@ -1431,7 +1431,7 @@ function xn(e, t, n, r, o) {
1431
1431
  }
1432
1432
  return i && (Vt(`path not found: '${n}'`), Yt(t)), r;
1433
1433
  }
1434
- return _ && jn(e, t, n), s;
1434
+ return _ && Sn(e, t, n), s;
1435
1435
  }
1436
1436
  function An(e, t, n, r) {
1437
1437
  if (e && !dn(e) && Vt("GObj bad instanceof"), !_n(t)) return Vt("kw is not an object"), -1;
@@ -1618,7 +1618,7 @@ function Jn(e, t, n, r) {
1618
1618
  return o ? 0 === o.length ? (r && Vt(`stack empty: ${n}`), null) : o[0] : (r && Vt(`stack NOT FOUND: ${n}`), null);
1619
1619
  }
1620
1620
  function Hn(e, t, n) {
1621
- return bn(n) ? jn(e, t, "__md_iev__`__msg_type__") : kn(e, t, "__md_iev__", "__msg_type__", n), 0;
1621
+ return bn(n) ? Sn(e, t, "__md_iev__`__msg_type__") : kn(e, t, "__md_iev__", "__msg_type__", n), 0;
1622
1622
  }
1623
1623
  function qn(e, t) {
1624
1624
  return Rn(e, t, "__md_iev__`__msg_type__", "", 0);
@@ -1850,7 +1850,7 @@ var dr = {
1850
1850
  mt_create: function(e) {
1851
1851
  let t = e.priv;
1852
1852
  const n = lt(e, "subscriber");
1853
- n && jt(e, null, {}, n), t.periodic = ot(e, "periodic"), t.msec = st(e, "msec");
1853
+ n && St(e, null, {}, n), t.periodic = ot(e, "periodic"), t.msec = st(e, "msec");
1854
1854
  },
1855
1855
  mt_writing: function(e, t) {
1856
1856
  let n = e.priv;
@@ -1872,13 +1872,13 @@ var dr = {
1872
1872
  mt_destroy: function(e) {}
1873
1873
  };
1874
1874
  function br(e, t) {
1875
- return e instanceof j ? "C_TIMER" !== Pe(e) ? (Vt("not C_TIMER GObj"), -1) : (at(e, "periodic", !1), void ut(e, "msec", t)) : (Vt("not GObj TYPE"), -1);
1875
+ return e instanceof S ? "C_TIMER" !== Pe(e) ? (Vt("not C_TIMER GObj"), -1) : (at(e, "periodic", !1), void ut(e, "msec", t)) : (Vt("not GObj TYPE"), -1);
1876
1876
  }
1877
1877
  function mr(e, t) {
1878
- return e instanceof j ? "C_TIMER" !== Pe(e) ? (Vt("not C_TIMER GObj"), -1) : (at(e, "periodic", !0), void ut(e, "msec", t)) : (Vt("not GObj TYPE"), -1);
1878
+ return e instanceof S ? "C_TIMER" !== Pe(e) ? (Vt("not C_TIMER GObj"), -1) : (at(e, "periodic", !0), void ut(e, "msec", t)) : (Vt("not GObj TYPE"), -1);
1879
1879
  }
1880
1880
  function Er(e) {
1881
- return e instanceof j ? "C_TIMER" !== Pe(e) ? (Vt("not C_TIMER GObj"), -1) : void ut(e, "msec", -1) : (Vt("not GObj TYPE"), -1);
1881
+ return e instanceof S ? "C_TIMER" !== Pe(e) ? (Vt("not C_TIMER GObj"), -1) : void ut(e, "msec", -1) : (Vt("not GObj TYPE"), -1);
1882
1882
  }
1883
1883
  var Tr = [
1884
1884
  v(E.DTP_BOOLEAN, "changesLost", 0, !1, "Set true to warn about leaving page"),
@@ -1910,7 +1910,7 @@ var Tr = [
1910
1910
  function vr(e, t, n, r) {
1911
1911
  return wt(e, t, n), 0;
1912
1912
  }
1913
- var Sr = {
1913
+ var jr = {
1914
1914
  mt_create: function(e) {
1915
1915
  let t = e.priv;
1916
1916
  ct(e, "start_date", tr()), ct(e, "node_uuid", rr()), e.priv.gobj_timer = Ee(Le(e), "C_TIMER", {}, e), t.periodic_timeout = nt(e, "periodic_timeout");
@@ -1920,7 +1920,7 @@ var Sr = {
1920
1920
  return he(e.priv.gobj_timer), mr(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
1921
1921
  },
1922
1922
  mt_stop: function(e) {
1923
- return Se(e.priv.gobj_timer), Oe(e), 0;
1923
+ return je(e.priv.gobj_timer), Oe(e), 0;
1924
1924
  },
1925
1925
  mt_destroy: function(e) {},
1926
1926
  mt_play: function(e) {
@@ -1931,7 +1931,7 @@ var Sr = {
1931
1931
  return Re(ue()), 0;
1932
1932
  }
1933
1933
  };
1934
- var jr = "ievent_gate_stack", Or = [
1934
+ var Sr = "ievent_gate_stack", Or = [
1935
1935
  v(E.DTP_STRING, "wanted_yuno_role", T.SDF_RD, "", "wanted yuno role"),
1936
1936
  v(E.DTP_STRING, "wanted_yuno_name", T.SDF_RD, "", "wanted yuno name"),
1937
1937
  v(E.DTP_STRING, "wanted_yuno_service", T.SDF_RD, "", "wanted yuno service"),
@@ -2059,12 +2059,12 @@ function $r(e) {
2059
2059
  language: "undefined" != typeof window ? window.navigator.language : "",
2060
2060
  required_services: l
2061
2061
  };
2062
- return Bn(e, _, jr, Ir(e, Le(Ge(e)), null)), Hn(e, _, "__identity__"), br(t.gobj_timer, st(e, "timeout_idack")), kr(e, "EV_IDENTITY_CARD", _);
2062
+ return Bn(e, _, Sr, Ir(e, Le(Ge(e)), null)), Hn(e, _, "__identity__"), br(t.gobj_timer, st(e, "timeout_idack")), kr(e, "EV_IDENTITY_CARD", _);
2063
2063
  }
2064
2064
  function Cr(e, t) {
2065
2065
  if (bn(t.event)) return -1;
2066
2066
  let n = {}, r = t.__global__, o = t.__config__, s = t.__filter__, i = t.__service__, l = t.subscriber;
2067
- return o && (n.__config__ = o), r && (n.__global__ = r), s && (n.__filter__ = s), Bn(e, n, jr, Ir(e, Le(l), i)), Hn(e, n, "__subscribing__"), kr(e, t.event, n);
2067
+ return o && (n.__config__ = o), r && (n.__global__ = r), s && (n.__filter__ = s), Bn(e, n, Sr, Ir(e, Le(l), i)), Hn(e, n, "__subscribing__"), kr(e, t.event, n);
2068
2068
  }
2069
2069
  function Lr(e, t, n, r) {
2070
2070
  let o = e.priv;
@@ -2102,7 +2102,7 @@ function Fr(e, t, n, r) {
2102
2102
  function Gr(e, t, n, r) {
2103
2103
  let o = e.priv;
2104
2104
  Er(o.gobj_timer);
2105
- let s = Jn(e, n, jr, !0), i = Rn(e, s, "src_yuno", ""), l = Rn(e, s, "src_role", ""), _ = Rn(e, s, "src_service", "");
2105
+ let s = Jn(e, n, Sr, !0), i = Rn(e, s, "src_yuno", ""), l = Rn(e, s, "src_role", ""), _ = Rn(e, s, "src_service", "");
2106
2106
  ct(e, "remote_yuno_name", i), ct(e, "remote_yuno_role", l), ct(e, "remote_yuno_service", _);
2107
2107
  let a = Nn(e, n, "result", -1, 0), u = Rn(e, n, "comment", "", 0), c = Rn(e, n, "username", "", 0), f = xn(e, n, "services_roles", {});
2108
2108
  if (a < 0) {
@@ -2166,7 +2166,7 @@ function Vr(e, t, n, r) {
2166
2166
  return Dr(e), -1;
2167
2167
  }
2168
2168
  s = null;
2169
- let _ = qn(e, l), a = Jn(e, l, jr), u = Rn(e, a, "dst_role", "");
2169
+ let _ = qn(e, l), a = Jn(e, l, Sr), u = Rn(e, a, "dst_role", "");
2170
2170
  if (u.toLowerCase() !== $e().toLowerCase()) return Vt(`"It's not my role, dst_role: ${u}, my_role: ${$e()}`), 0;
2171
2171
  let c = Rn(e, a, "dst_service", "");
2172
2172
  if ("__subscribing__" === _) return -1;
@@ -2190,7 +2190,7 @@ var Kr = {
2190
2190
  let t = e.priv;
2191
2191
  t.gobj_timer = Ee(Le(e), "C_TIMER", {}, e), t.url = it(e, "url"), t.remote_yuno_name = it(e, "remote_yuno_name"), t.remote_yuno_role = it(e, "remote_yuno_role"), t.remote_yuno_service = it(e, "remote_yuno_service"), ct(e, "wanted_yuno_name", t.remote_yuno_name), ct(e, "wanted_yuno_role", t.remote_yuno_role), ct(e, "wanted_yuno_service", t.remote_yuno_service);
2192
2192
  const n = lt(e, "subscriber");
2193
- n && jt(e, null, {}, n);
2193
+ n && St(e, null, {}, n);
2194
2194
  },
2195
2195
  mt_writing: function(e, t) {
2196
2196
  let n = e.priv;
@@ -2213,7 +2213,7 @@ var Kr = {
2213
2213
  },
2214
2214
  mt_stop: function(e) {
2215
2215
  let t = e.priv;
2216
- return Er(t.gobj_timer), Se(t.gobj_timer), t.websocket && Dr(e), 0;
2216
+ return Er(t.gobj_timer), je(t.gobj_timer), t.websocket && Dr(e), 0;
2217
2217
  },
2218
2218
  mt_destroy: function(e) {},
2219
2219
  mt_stats: function(e, t, n, r) {
@@ -2223,7 +2223,7 @@ var Kr = {
2223
2223
  return s || (s = {}), Bn(e, n, "stats_stack", {
2224
2224
  stats: t,
2225
2225
  kw: s
2226
- }), Bn(e, n, jr, o), n.__stats__ = t, Hn(e, n, "__stats__"), kr(e, "EV_MT_STATS", n, r), null;
2226
+ }), Bn(e, n, Sr, o), n.__stats__ = t, Hn(e, n, "__stats__"), kr(e, "EV_MT_STATS", n, r), null;
2227
2227
  },
2228
2228
  mt_command_parser: function(e, t, n, r) {
2229
2229
  if ("ST_SESSION" !== gt(e)) return Vt("Not in session"), null;
@@ -2232,14 +2232,14 @@ var Kr = {
2232
2232
  return s || (s = {}), Bn(e, n, "command_stack", {
2233
2233
  command: t,
2234
2234
  kw: s
2235
- }), Bn(e, n, jr, o), n.__command__ = t, Hn(e, n, "__command__"), kr(e, "EV_MT_COMMAND", n, r), null;
2235
+ }), Bn(e, n, Sr, o), n.__command__ = t, Hn(e, n, "__command__"), kr(e, "EV_MT_COMMAND", n, r), null;
2236
2236
  },
2237
2237
  mt_inject_event: function(e, t, n, r) {
2238
2238
  if ("ST_SESSION" !== gt(e)) return window.console.error("Not in session"), -1;
2239
- if (n || (n = {}), Jn(e, n, jr));
2239
+ if (n || (n = {}), Jn(e, n, Sr));
2240
2240
  else {
2241
2241
  let o = Ir(e, Le(r), Rn(e, n, "__service__", 0, 0));
2242
- Xt(n, "__service__"), Bn(e, n, "__message__", t), Bn(e, n, jr, o);
2242
+ Xt(n, "__service__"), Bn(e, n, "__message__", t), Bn(e, n, Sr, o);
2243
2243
  }
2244
2244
  return Hn(e, n, "__message__"), kr(e, t, n, r);
2245
2245
  },
@@ -2253,10 +2253,10 @@ var Kr = {
2253
2253
  if (n.inside_on_open) return 0;
2254
2254
  if (bn(t.event)) return 0;
2255
2255
  let r = {}, o = t.__global__, s = t.__config__, i = t.__filter__, l = t.__service__, _ = t.subscriber;
2256
- return s && (r.__config__ = s), o && (r.__global__ = o), i && (r.__filter__ = i), Bn(e, r, jr, Ir(e, Le(_), l)), Hn(e, r, "__unsubscribing__"), kr(e, t.event, r, e);
2256
+ return s && (r.__config__ = s), o && (r.__global__ = o), i && (r.__filter__ = i), Bn(e, r, Sr, Ir(e, Le(_), l)), Hn(e, r, "__unsubscribing__"), kr(e, t.event, r, e);
2257
2257
  }
2258
2258
  };
2259
- exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) => new h(e, t, n, null, s, r, null, 0, null, o, null), exports.SDATACM = (e, t, n, r, o, s) => new h(e, t, 0, null, s, n, null, 0, o, r, null), exports.SDATACM2 = (e, t, n, r, o, s, i) => new h(e, t, n, null, i, r, null, 0, s, o, null), exports.SDATADF = (e, t, n, r, o, s) => new h(e, t, n, null, s, null, r, o), exports.SDATAPM = (e, t, n, r, o) => new h(e, t, n, r, o), exports.SDATAPM0 = (e, t, n, r, o) => new h(e, t, n, null, o, null, null, 0, null, null, r), exports.SDATA_END = y, exports.SDataDesc = h, exports.YUNETA_VERSION = s, Object.defineProperty(exports, "__yuno__", {
2259
+ exports.GObj = S, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) => new h(e, t, n, null, s, r, null, 0, null, o, null), exports.SDATACM = (e, t, n, r, o, s) => new h(e, t, 0, null, s, n, null, 0, o, r, null), exports.SDATACM2 = (e, t, n, r, o, s, i) => new h(e, t, n, null, i, r, null, 0, s, o, null), exports.SDATADF = (e, t, n, r, o, s) => new h(e, t, n, null, s, null, r, o), exports.SDATAPM = (e, t, n, r, o) => new h(e, t, n, r, o), exports.SDATAPM0 = (e, t, n, r, o) => new h(e, t, n, null, o, null, null, 0, null, null, r), exports.SDATA_END = y, exports.SDataDesc = h, exports.YUNETA_VERSION = s, Object.defineProperty(exports, "__yuno__", {
2260
2260
  enumerable: !0,
2261
2261
  get: function() {
2262
2262
  return d;
@@ -2355,7 +2355,7 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2355
2355
  }, exports.get_function_name = or, exports.get_now = function() {
2356
2356
  return Math.floor(Date.now() / 1e3);
2357
2357
  }, exports.gobj_bottom_gobj = Ke, exports.gobj_change_parent = function(e, n) {
2358
- return We(e) ? (Vt("gobj NULL or DESTROYED"), null) : n instanceof j ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (pe(e.parent, e), e.parent = null), ge(n, e), n.mt_child_added && (K(e) && Wt(t("👦👦🔵 child_added(%s): %s", Fe(n), Ue(e))), n.mt_child_added(n, e)), 0) : (Vt(`${Ue(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
2358
+ return We(e) ? (Vt("gobj NULL or DESTROYED"), null) : n instanceof S ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (pe(e.parent, e), e.parent = null), ge(n, e), n.mt_child_added && (K(e) && Wt(t("👦👦🔵 child_added(%s): %s", Fe(n), Ue(e))), n.mt_child_added(n, e)), 0) : (Vt(`${Ue(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
2359
2359
  }, exports.gobj_change_state = ft, exports.gobj_command = function(e, n, o, s) {
2360
2360
  if (We(e)) return Vt("gobj NULL or DESTROYED"), -1;
2361
2361
  let i = d && st(d, "tracing");
@@ -2451,6 +2451,11 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2451
2451
  return e;
2452
2452
  }, exports.gobj_set_bottom_gobj = Ye, exports.gobj_set_deep_trace = function(e) {
2453
2453
  return F = Number(e) || 0, 0;
2454
+ }, exports.gobj_set_gclass_no_trace = function(e, t, n) {
2455
+ const r = un(e) ? ae(e) : e;
2456
+ if (!r) return Vt(`gobj_set_gclass_no_trace: gclass NOT FOUND: ${e}`), -1;
2457
+ const o = G(t, "gobj_set_gclass_no_trace");
2458
+ return o ? (n ? r.no_trace_level |= o : r.no_trace_level &= ~o, 0) : -1;
2454
2459
  }, exports.gobj_set_gclass_trace = function(e, t, n) {
2455
2460
  const r = un(e) ? ae(e) : e;
2456
2461
  if (!r) return Vt(`gobj_set_gclass_trace: gclass NOT FOUND: ${e}`), -1;
@@ -2486,9 +2491,9 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2486
2491
  return 0;
2487
2492
  }, exports.gobj_stats = function(e, n, r, s) {
2488
2493
  return We(e) ? (Vt("gobj NULL or DESTROYED"), -1) : e.gclass.gmt.mt_stats ? e.gclass.gmt.mt_stats(e, n, r, s) : c ? c(e, n, r, s) : o(0, -1, t("%s, stats parser not available", Ue(e)), 0, 0);
2489
- }, exports.gobj_stop = Se, exports.gobj_stop_children = Oe, exports.gobj_stop_tree = function(e) {
2490
- return We(e) ? (Vt("gobj NULL or DESTROYED"), -1) : (Y(e) && $(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", Fe(e))), we(e) && Se(e), He(e, D.WALK_TOP2BOTTOM, je, 0, 0));
2491
- }, exports.gobj_subscribe_event = jt, exports.gobj_trace_level = V, exports.gobj_trace_machine_format = function() {
2494
+ }, exports.gobj_stop = je, exports.gobj_stop_children = Oe, exports.gobj_stop_tree = function(e) {
2495
+ return We(e) ? (Vt("gobj NULL or DESTROYED"), -1) : (Y(e) && $(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", Fe(e))), we(e) && je(e), He(e, D.WALK_TOP2BOTTOM, Se, 0, 0));
2496
+ }, exports.gobj_subscribe_event = St, exports.gobj_trace_level = V, exports.gobj_trace_machine_format = function() {
2492
2497
  return I;
2493
2498
  }, exports.gobj_trace_no_level = M, exports.gobj_unsubscribe_event = function(e, t, n, r) {
2494
2499
  if (null == n && (n = {}), !e) return Vt(`publisher NULL: ev ${t}`), 0;
@@ -2507,7 +2512,7 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2507
2512
  let s = yt(e.dl_subscriptions, e, t, n, r), i = 0;
2508
2513
  for (let t = 0; t < s.length; t++) {
2509
2514
  let n = s[t];
2510
- St(e, n, !1, !1), i++;
2515
+ jt(e, n, !1, !1), i++;
2511
2516
  }
2512
2517
  return i || (Mt(`${Ue(e)}: No subscription found`), Yt(n, "No subscription found")), 0;
2513
2518
  }, exports.gobj_unsubscribe_list = Ot, exports.gobj_walk_gobj_children = Je, exports.gobj_walk_gobj_children_tree = He, exports.gobj_write_attr = function(e, n, r, o) {
@@ -2618,13 +2623,13 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2618
2623
  r(t, n) && o.push(t);
2619
2624
  }
2620
2625
  return o;
2621
- }, exports.kw_delete = jn, exports.kw_find_json_in_list = function(e, t, n, r) {
2626
+ }, exports.kw_delete = Sn, exports.kw_find_json_in_list = function(e, t, n, r) {
2622
2627
  if (!n || !an(t)) return r && Vt("item NULL or kw_list is not a list"), -1;
2623
2628
  for (let e = 0; e < t.length; e++) if (Jt(n, t[e])) return e;
2624
2629
  return r && Vt("item not found in this list"), -1;
2625
- }, exports.kw_find_path = Sn, exports.kw_flag_t = Dt, exports.kw_get_bool = On, exports.kw_get_dict = Dn, exports.kw_get_dict_value = xn, exports.kw_get_int = Nn, exports.kw_get_list = function(e, t, n, r, o) {
2630
+ }, exports.kw_find_path = jn, exports.kw_flag_t = Dt, exports.kw_get_bool = On, exports.kw_get_dict = Dn, exports.kw_get_dict_value = xn, exports.kw_get_int = Nn, exports.kw_get_list = function(e, t, n, r, o) {
2626
2631
  e && !dn(e) && Vt("GObj bad instanceof");
2627
- let s = Sn(e, t, n, !1);
2632
+ let s = jn(e, t, n, !1);
2628
2633
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
2629
2634
  if (void 0 === s) {
2630
2635
  if (l) {
@@ -2633,10 +2638,10 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2633
2638
  }
2634
2639
  return i && (Vt(`path not found: '${n}'`), Yt(t)), Array(r);
2635
2640
  }
2636
- return _ && jn(e, t, n), an(s) ? Array(s) : (i && (Vt(`path value MUST BE an array: ${n}`), Kt(t)), Array(r));
2641
+ return _ && Sn(e, t, n), an(s) ? Array(s) : (i && (Vt(`path value MUST BE an array: ${n}`), Kt(t)), Array(r));
2637
2642
  }, exports.kw_get_local_storage_value = Pn, exports.kw_get_pointer = wn, exports.kw_get_real = function(e, t, n, r, o) {
2638
2643
  e && !dn(e) && Vt("GObj bad instanceof");
2639
- let s = Sn(e, t, n, !1);
2644
+ let s = jn(e, t, n, !1);
2640
2645
  const i = o && o & Dt.KW_REQUIRED, l = o && o & Dt.KW_CREATE, _ = o && o & Dt.KW_EXTRACT;
2641
2646
  if (void 0 === s) {
2642
2647
  if (l) {
@@ -2645,7 +2650,7 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2645
2650
  }
2646
2651
  return i && (Vt(`path not found: '${n}'`), Yt(t)), Number(r);
2647
2652
  }
2648
- return _ && jn(e, t, n), cn(s) ? Number(s) : (i && (Vt(`path value MUST BE a number: ${n}`), Kt(t)), Number(r));
2653
+ return _ && Sn(e, t, n), cn(s) ? Number(s) : (i && (Vt(`path value MUST BE a number: ${n}`), Kt(t)), Number(r));
2649
2654
  }, exports.kw_get_str = Rn, exports.kw_has_key = vn, exports.kw_match_simple = $n, exports.kw_pop = yn, exports.kw_remove_local_storage_value = Fn, exports.kw_select = function(e, t, n, r) {
2650
2655
  if (e && !dn(e) && Vt("GObj bad instanceof"), !t) return null;
2651
2656
  r || (r = $n);
@@ -2679,7 +2684,7 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2679
2684
  }, exports.kwid_match_id = Gn, exports.kwid_new_dict = function(e, t, n) {
2680
2685
  e && !dn(e) && Vt("GObj bad instanceof");
2681
2686
  let r = {};
2682
- if (bn(n) || (t = Sn(e, t, n)), _n(t)) r = t;
2687
+ if (bn(n) || (t = jn(e, t, n)), _n(t)) r = t;
2683
2688
  else if (an(t)) for (let n = 0; n < t.length; n++) {
2684
2689
  let o = t[n], s = Rn(e, o, "id", "", 0);
2685
2690
  bn(s) || (r[s] = o);
@@ -2872,7 +2877,7 @@ exports.GObj = j, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2872
2877
  vr,
2873
2878
  null
2874
2879
  ]]]];
2875
- return (yr = Z(e, [["EV_TIMEOUT_PERIODIC", w.EVF_OUTPUT_EVENT | w.EVF_NO_WARN_SUBS], [0, 0]], t, Sr, 0, Tr, hr, 0, 0, 0, 0)) ? 0 : -1;
2880
+ return (yr = Z(e, [["EV_TIMEOUT_PERIODIC", w.EVF_OUTPUT_EVENT | w.EVF_NO_WARN_SUBS], [0, 0]], t, jr, 0, Tr, hr, 0, 0, 0, 0)) ? 0 : -1;
2876
2881
  }("C_YUNO");
2877
2882
  }, exports.safeSrc = function(e) {
2878
2883
  if (!e) return "";