@yuneta/gobj-js 7.26.14 → 7.26.15
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/gobj-js.cjs.js +11 -15
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +187 -190
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +11 -15
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +211 -214
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +11 -15
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +187 -190
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +11 -15
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +187 -190
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -714,7 +714,7 @@ function Be(e, t) {
|
|
|
714
714
|
t.parent && ir(`_add_child() ALREADY HAS PARENT: ${t.gobj_name}`), e.dl_children.push(t), t.parent = e;
|
|
715
715
|
}
|
|
716
716
|
function Je(e, t) {
|
|
717
|
-
let n =
|
|
717
|
+
let n = ko(e.dl_children, t);
|
|
718
718
|
n >= 0 && (Vr(e.dl_children, n), t.parent = null);
|
|
719
719
|
}
|
|
720
720
|
function qe(e, t) {
|
|
@@ -1223,7 +1223,7 @@ function Tn(e, n, r, l) {
|
|
|
1223
1223
|
if (1 === W) Y(t("🔄 %s %s%s %s from %s%s", n || "", e.running ? "" : "!!", Rt(e), o.state_name, l && !l.running ? "!!" : "", Rt(l)));
|
|
1224
1224
|
else {
|
|
1225
1225
|
let r = "";
|
|
1226
|
-
s.action && (r =
|
|
1226
|
+
s.action && (r = Lo(s.action)), Y(t("🔄 mach(%s%s^%s), st: %s, ev: %s%s%s, ac: %s, from(%s%s^%s)", e.running ? "" : "!!", $t(e), jt(e), o.state_name, "", n || "", "", r, l && !l.running ? "!!" : "", $t(l), jt(l)));
|
|
1227
1227
|
}
|
|
1228
1228
|
r && le(e) && Mr(r) && wr(r);
|
|
1229
1229
|
}
|
|
@@ -1574,7 +1574,11 @@ function lr(e) {
|
|
|
1574
1574
|
try {
|
|
1575
1575
|
return JSON.stringify(e);
|
|
1576
1576
|
} catch (t) {
|
|
1577
|
-
|
|
1577
|
+
try {
|
|
1578
|
+
return String(e);
|
|
1579
|
+
} catch (t) {
|
|
1580
|
+
return `<${typeof e}: not printable>`;
|
|
1581
|
+
}
|
|
1578
1582
|
}
|
|
1579
1583
|
}
|
|
1580
1584
|
function or(e) {
|
|
@@ -1601,27 +1605,27 @@ function or(e) {
|
|
|
1601
1605
|
return n;
|
|
1602
1606
|
}
|
|
1603
1607
|
function ir(e, ...t) {
|
|
1604
|
-
let n = or(e, ...t), r =
|
|
1608
|
+
let n = or(e, ...t), r = Do();
|
|
1605
1609
|
Mn && (Mn === Gn.error ? Zn("error", n) && Mn("%c" + r + " ERROR: " + String(n), "color:red") : (Zn("error", n) && Gn.error("%c" + r + " ERROR: " + String(n), "color:red"), Mn(`${r} ERROR: ${String(n)}`))), tr("error", n, r);
|
|
1606
1610
|
}
|
|
1607
1611
|
function sr(e, ...t) {
|
|
1608
|
-
let n = or(e, ...t), r =
|
|
1612
|
+
let n = or(e, ...t), r = Do();
|
|
1609
1613
|
Wn && (Wn === Gn.warn ? Zn("warning", n) && Wn("%c" + r + " WARNING: " + String(n), "color:yellow") : (Zn("warning", n) && Gn.warn("%c" + r + " WARNING: " + String(n), "color:yellow"), Wn(`${r} WARNING: ${String(n)}`))), tr("warning", n, r);
|
|
1610
1614
|
}
|
|
1611
1615
|
function ar(e, ...t) {
|
|
1612
|
-
let n = or(e, ...t), r =
|
|
1616
|
+
let n = or(e, ...t), r = Do();
|
|
1613
1617
|
xn && Zn("info", n) && xn("%c" + r + " INFO: " + String(n), "color:cyan"), tr("info", n, r);
|
|
1614
1618
|
}
|
|
1615
1619
|
function ur(e, ...t) {
|
|
1616
|
-
let n = or(e, ...t), r =
|
|
1620
|
+
let n = or(e, ...t), r = Do();
|
|
1617
1621
|
Kn && Zn("debug", n) && Kn("%c" + r + " DEBUG: " + String(n), "color:silver"), tr("debug", n, r);
|
|
1618
1622
|
}
|
|
1619
1623
|
function _r(e, ...t) {
|
|
1620
|
-
let n = or(e, ...t), r =
|
|
1624
|
+
let n = or(e, ...t), r = Do();
|
|
1621
1625
|
Kn && Zn("msg", n) && Kn("%c" + r + " MSG: " + String(n), "color:cyan"), tr("msg", n, r);
|
|
1622
1626
|
}
|
|
1623
1627
|
function cr(e, t) {
|
|
1624
|
-
Zn("json", t) && (t && Gn.warn("=====> " + t), Gn.dir(e)), tr("json", e,
|
|
1628
|
+
Zn("json", t) && (t && Gn.warn("=====> " + t), Gn.dir(e)), tr("json", e, Do());
|
|
1625
1629
|
}
|
|
1626
1630
|
var fr = [
|
|
1627
1631
|
"passw",
|
|
@@ -2513,21 +2517,14 @@ function ro(e, t, n) {
|
|
|
2513
2517
|
"__" === t.substring(0, 2) || Yr(n) || Ol(null, o, l, jr(r), Vn.KW_CREATE);
|
|
2514
2518
|
}, t), e;
|
|
2515
2519
|
}
|
|
2516
|
-
function lo(e) {
|
|
2517
|
-
try {
|
|
2518
|
-
return JSON.stringify(e);
|
|
2519
|
-
} catch (t) {
|
|
2520
|
-
return `<${typeof e}: not json (${t.message})>`;
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
function oo(e, t, n, r) {
|
|
2520
|
+
function lo(e, t, n, r) {
|
|
2524
2521
|
let l = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|
|
2525
2522
|
if (!l) return ir("jdb_update: topic not found: " + t), null;
|
|
2526
|
-
if (!Yr(r) || tl(r.id)) return ir(`jdb_update: record without id: ${
|
|
2523
|
+
if (!Yr(r) || tl(r.id)) return ir(`jdb_update: record without id: ${lr(r)}`), null;
|
|
2527
2524
|
if (!Jr(n)) return ir(`jdb_update: path must be a string: ${String(n)}`), null;
|
|
2528
2525
|
if ("" !== n && n.split("`").includes("")) return ir(`jdb_update: empty segment in path: '${n}'`), null;
|
|
2529
2526
|
let o, i, s = n.split("`"), a = l;
|
|
2530
|
-
for (; (o = s.shift()) && !tl(o) && a;) Yr(a) && (a = Ol(null, a, e.hook, null, 0)), a =
|
|
2527
|
+
for (; (o = s.shift()) && !tl(o) && a;) Yr(a) && (a = Ol(null, a, e.hook, null, 0)), a = uo(a, null, o, !1);
|
|
2531
2528
|
if (!a || 0 !== s.length) return ir(`jdb_update: path not found in topic '${t}': '${n}'`), null;
|
|
2532
2529
|
if (Br(a)) i = a;
|
|
2533
2530
|
else {
|
|
@@ -2535,35 +2532,35 @@ function oo(e, t, n, r) {
|
|
|
2535
2532
|
if (i = Ol(null, a, e.hook, null, 0), null == i) i = [], Lr(a, e.hook, i);
|
|
2536
2533
|
else if (!Br(i)) return ir(`jdb_update: the hook '${e.hook}' of '${n}' is not a list in topic '${t}'`), null;
|
|
2537
2534
|
}
|
|
2538
|
-
let u =
|
|
2535
|
+
let u = uo(i, e.hook, r.id, !1);
|
|
2539
2536
|
return u ? Dr(u, r) : i.push(r), l;
|
|
2540
2537
|
}
|
|
2541
|
-
function
|
|
2538
|
+
function oo(e, t, n, r) {
|
|
2542
2539
|
let l = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|
|
2543
2540
|
if (!l) return ir("jdb_delete: topic not found: " + t), null;
|
|
2544
|
-
if (!Yr(r) || tl(r.id)) return ir(`jdb_delete: record without id: ${
|
|
2541
|
+
if (!Yr(r) || tl(r.id)) return ir(`jdb_delete: record without id: ${lr(r)}`), null;
|
|
2545
2542
|
if (!Jr(n)) return ir(`jdb_delete: path must be a string: ${String(n)}`), null;
|
|
2546
2543
|
if ("" !== n && n.split("`").includes("")) return ir(`jdb_delete: empty segment in path: '${n}'`), null;
|
|
2547
2544
|
let o, i = n.split("`"), s = l;
|
|
2548
|
-
for (; (o = i.shift()) && !tl(o) && s;) Yr(s) && (s = Ol(null, s, e.hook, null, 0)), s =
|
|
2545
|
+
for (; (o = i.shift()) && !tl(o) && s;) Yr(s) && (s = Ol(null, s, e.hook, null, 0)), s = uo(s, null, o, !1);
|
|
2549
2546
|
if (!s || 0 !== i.length) return ir(`jdb_delete: path not found in topic '${t}': '${n}'`), null;
|
|
2550
2547
|
let a = Br(s) ? s : Ol(null, s, e.hook, null, 0), u = Kl(a, r.id);
|
|
2551
2548
|
return u < 0 ? (ir(`jdb_delete: record not found in topic '${t}': '${n}' '${r.id}'`), null) : (a.splice(u, 1), l);
|
|
2552
2549
|
}
|
|
2553
|
-
function
|
|
2550
|
+
function io(e, t) {
|
|
2554
2551
|
let n = Ol(null, e, "topics", null, 0);
|
|
2555
2552
|
if (!n) return ir("jdb topics section not found"), _r(e), null;
|
|
2556
2553
|
return Ol(null, n, t, null, 0) || (ir("jdb topic not found: " + t), _r(n), null);
|
|
2557
2554
|
}
|
|
2558
|
-
function
|
|
2555
|
+
function so(e, t, n, r) {
|
|
2559
2556
|
let l = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|
|
2560
|
-
return l ? (void 0 === r && (r = !0),
|
|
2557
|
+
return l ? (void 0 === r && (r = !0), uo(l, e.hook, n, r)) : (ir("jdb_get: topic not found: " + t), null);
|
|
2561
2558
|
}
|
|
2562
|
-
function
|
|
2559
|
+
function ao(e, t, n) {
|
|
2563
2560
|
let r = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|
|
2564
2561
|
return r ? n < r.length ? r[n] : {} : (ir("jdb_get_by_idx: topic not found: " + t), null);
|
|
2565
2562
|
}
|
|
2566
|
-
function
|
|
2563
|
+
function uo(e, t, n, r) {
|
|
2567
2564
|
if (!e) return null;
|
|
2568
2565
|
let l, o = e.length;
|
|
2569
2566
|
for (l = 0; l < o; l++) {
|
|
@@ -2572,18 +2569,18 @@ function _o(e, t, n, r) {
|
|
|
2572
2569
|
let e = o.id;
|
|
2573
2570
|
if (e && e === n) return o;
|
|
2574
2571
|
if (r && cl(o, t)) {
|
|
2575
|
-
let e =
|
|
2572
|
+
let e = uo(o[t], t, n, r);
|
|
2576
2573
|
if (e) return e;
|
|
2577
2574
|
}
|
|
2578
2575
|
}
|
|
2579
2576
|
}
|
|
2580
2577
|
return null;
|
|
2581
2578
|
}
|
|
2582
|
-
function
|
|
2579
|
+
function _o(e, t) {
|
|
2583
2580
|
let n = jr(e);
|
|
2584
2581
|
return Ar(n, t), n;
|
|
2585
2582
|
}
|
|
2586
|
-
function
|
|
2583
|
+
function co(e) {
|
|
2587
2584
|
function t(e) {
|
|
2588
2585
|
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
2589
2586
|
switch (t.length % 4) {
|
|
@@ -2614,9 +2611,9 @@ function fo(e) {
|
|
|
2614
2611
|
signature: t(n[2])
|
|
2615
2612
|
};
|
|
2616
2613
|
}
|
|
2617
|
-
function
|
|
2614
|
+
function fo(e, t) {
|
|
2618
2615
|
try {
|
|
2619
|
-
let n =
|
|
2616
|
+
let n = co(e);
|
|
2620
2617
|
switch (t) {
|
|
2621
2618
|
case "header": return JSON.parse(n.header);
|
|
2622
2619
|
case "signature": return JSON.parse(n.signature);
|
|
@@ -2626,15 +2623,15 @@ function go(e, t) {
|
|
|
2626
2623
|
return null;
|
|
2627
2624
|
}
|
|
2628
2625
|
}
|
|
2629
|
-
function
|
|
2626
|
+
function go(e) {
|
|
2630
2627
|
return null == e ? "" : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2631
2628
|
}
|
|
2632
|
-
function
|
|
2629
|
+
function bo(e) {
|
|
2633
2630
|
if (!e) return "";
|
|
2634
2631
|
const t = String(e).trim();
|
|
2635
|
-
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" :
|
|
2632
|
+
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" : go(t);
|
|
2636
2633
|
}
|
|
2637
|
-
var
|
|
2634
|
+
var po = class {
|
|
2638
2635
|
constructor(e) {
|
|
2639
2636
|
this.html = e, Object.freeze(this);
|
|
2640
2637
|
}
|
|
@@ -2642,28 +2639,28 @@ var mo = class {
|
|
|
2642
2639
|
return this.html;
|
|
2643
2640
|
}
|
|
2644
2641
|
};
|
|
2642
|
+
function mo(e) {
|
|
2643
|
+
return "string" != typeof e ? (ir("html_markup: not a string, type " + typeof e), new po("")) : new po(e);
|
|
2644
|
+
}
|
|
2645
2645
|
function ho(e) {
|
|
2646
|
-
return
|
|
2646
|
+
return e instanceof po;
|
|
2647
2647
|
}
|
|
2648
2648
|
function Eo(e) {
|
|
2649
|
-
return e instanceof mo;
|
|
2650
|
-
}
|
|
2651
|
-
function yo(e) {
|
|
2652
2649
|
const t = document.createElement("template");
|
|
2653
2650
|
return t.innerHTML = e.html.trim(), t.content;
|
|
2654
2651
|
}
|
|
2655
|
-
var
|
|
2656
|
-
function
|
|
2657
|
-
|
|
2652
|
+
var yo = !1, To = /* @__PURE__ */ new Set();
|
|
2653
|
+
function vo(e) {
|
|
2654
|
+
yo = !!e;
|
|
2658
2655
|
}
|
|
2659
|
-
function
|
|
2660
|
-
return
|
|
2656
|
+
function Oo() {
|
|
2657
|
+
return yo;
|
|
2661
2658
|
}
|
|
2662
|
-
function
|
|
2659
|
+
function So(e) {
|
|
2663
2660
|
const t = document.createElement("template");
|
|
2664
2661
|
return t.innerHTML = e.trim(), t.content.firstChild;
|
|
2665
2662
|
}
|
|
2666
|
-
function
|
|
2663
|
+
function No(e, t) {
|
|
2667
2664
|
let [n, r, l, o] = e;
|
|
2668
2665
|
if (!n) return void ir("Tag must be a valid HTML element.");
|
|
2669
2666
|
let i = document.createElement(n), s = "";
|
|
@@ -2672,22 +2669,22 @@ function wo(e, t) {
|
|
|
2672
2669
|
for (const n of Object.keys(r[e])) t += `${n}: ${r[e][n]};`;
|
|
2673
2670
|
i.style.cssText = t;
|
|
2674
2671
|
} else "style" === e ? i.style.cssText = r[e] : "i18n" === e || "data-i18n" === e || "data_i18next" === e || "data-i18next" === e ? null !== r[e] && void 0 !== r[e] && (s = r[e], i.setAttribute("data-i18n", s)) : i.setAttribute(e, r[e]);
|
|
2675
|
-
if (
|
|
2676
|
-
else if (Jr(l)) if (l = l.trim(), l.length > 0 && "<" === l[0] && !
|
|
2672
|
+
if (ho(l)) i.appendChild(Eo(l));
|
|
2673
|
+
else if (Jr(l)) if (l = l.trim(), l.length > 0 && "<" === l[0] && !yo) i.appendChild(So(l));
|
|
2677
2674
|
else if (l.length > 0 && "<" === l[0] && function(e) {
|
|
2678
|
-
if (
|
|
2675
|
+
if (To.size >= 100) return;
|
|
2679
2676
|
const t = e.slice(0, 80);
|
|
2680
|
-
|
|
2677
|
+
To.has(t) || (To.add(t), sr(`createElement2: a string that starts with '<' is TEXT (set_strings_are_text): use html_markup() if it is markup: ${JSON.stringify(t)}`));
|
|
2681
2678
|
}(l), t && s) i.textContent = t(s) || l;
|
|
2682
2679
|
else i.textContent = l;
|
|
2683
2680
|
else if (Br(l)) {
|
|
2684
|
-
if (l.length > 0) if (Jr(l[0])) i.appendChild(
|
|
2685
|
-
else for (let e of l) Array.isArray(e) ? e.length > 0 && i.appendChild(
|
|
2681
|
+
if (l.length > 0) if (Jr(l[0])) i.appendChild(No(l, t));
|
|
2682
|
+
else for (let e of l) Array.isArray(e) ? e.length > 0 && i.appendChild(No(e, t)) : e instanceof Node ? i.appendChild(e) : ho(e) ? i.appendChild(Eo(e)) : Jr(e) ? i.appendChild(document.createTextNode(e)) : null != e && !1 !== e && ir("createElement2: child ignored, type " + typeof e);
|
|
2686
2683
|
} else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? i.appendChild(l) : null != l && (ir("content ignored"), cr(l));
|
|
2687
2684
|
if (o && "object" == typeof o) for (const e of Object.keys(o)) i.addEventListener(e, o[e]);
|
|
2688
2685
|
return i;
|
|
2689
2686
|
}
|
|
2690
|
-
function
|
|
2687
|
+
function wo(e) {
|
|
2691
2688
|
if (!e) return {
|
|
2692
2689
|
top: 0,
|
|
2693
2690
|
left: 0,
|
|
@@ -2707,10 +2704,10 @@ function jo(e) {
|
|
|
2707
2704
|
bottom: t + i + l
|
|
2708
2705
|
};
|
|
2709
2706
|
}
|
|
2710
|
-
function
|
|
2707
|
+
function jo(e) {
|
|
2711
2708
|
return new DOMParser().parseFromString(e, "image/svg+xml").firstChild;
|
|
2712
2709
|
}
|
|
2713
|
-
function
|
|
2710
|
+
function $o(e, t) {
|
|
2714
2711
|
if (!Zr(t)) return void ir("You must supply a translation function");
|
|
2715
2712
|
e || (e = document);
|
|
2716
2713
|
const n = (t) => {
|
|
@@ -2734,7 +2731,7 @@ function Ro(e, t) {
|
|
|
2734
2731
|
n && e.setAttribute("placeholder", t(n));
|
|
2735
2732
|
});
|
|
2736
2733
|
}
|
|
2737
|
-
function
|
|
2734
|
+
function Ro(e = "Time Tracker", t = !1) {
|
|
2738
2735
|
const n = e, r = performance.now();
|
|
2739
2736
|
let l = r;
|
|
2740
2737
|
return t && sr(`--\x3e ${n} - starting`), { mark: (e = "Intermediate", o = "") => {
|
|
@@ -2745,30 +2742,30 @@ function Do(e = "Time Tracker", t = !1) {
|
|
|
2745
2742
|
};
|
|
2746
2743
|
} };
|
|
2747
2744
|
}
|
|
2748
|
-
function
|
|
2745
|
+
function Do(e) {
|
|
2749
2746
|
const t = (e, t) => String(e).padStart(t, "0"), n = `${(e = e || /* @__PURE__ */ new Date()).getFullYear()}-${t(e.getMonth() + 1, 2)}-${t(e.getDate(), 2)}T${t(e.getHours(), 2)}:${t(e.getMinutes(), 2)}:${t(e.getSeconds(), 2)}`, r = t(e.getMilliseconds(), 3), l = e.getTimezoneOffset();
|
|
2750
2747
|
return `${n}.${r}${l > 0 ? "-" : "+"}${t(Math.floor(Math.abs(l) / 60), 2)}${t(Math.abs(l) % 60, 2)}`;
|
|
2751
2748
|
}
|
|
2752
|
-
function
|
|
2749
|
+
function Ao() {
|
|
2753
2750
|
return Math.floor(Date.now() / 1e3);
|
|
2754
2751
|
}
|
|
2755
|
-
function
|
|
2752
|
+
function ko(e, t) {
|
|
2756
2753
|
if (!e) throw "ERROR: index_in_list() list empty";
|
|
2757
2754
|
for (let n = 0; n < e.length; n++) if (t === e[n]) return n;
|
|
2758
2755
|
return -1;
|
|
2759
2756
|
}
|
|
2760
|
-
function
|
|
2757
|
+
function Io() {
|
|
2761
2758
|
let e = "";
|
|
2762
2759
|
return "undefined" != typeof window && window.localStorage ? (e = window.localStorage.getItem("host_uuid"), !e && window.crypto?.randomUUID && (e = window.crypto.randomUUID(), window.localStorage.setItem("host_uuid", e))) : e = "undefined" != typeof globalThis && globalThis.crypto?.randomUUID ? globalThis.crypto.randomUUID() : "00000000-0000-0000-0000-000000000000", e;
|
|
2763
2760
|
}
|
|
2764
|
-
function
|
|
2761
|
+
function Co(e) {
|
|
2765
2762
|
return e.replace(/[?# ^:]/g, "_");
|
|
2766
2763
|
}
|
|
2767
|
-
function
|
|
2764
|
+
function Lo(e) {
|
|
2768
2765
|
let t = null;
|
|
2769
2766
|
return "function" != typeof e && "object" != typeof e || (t = ("" + e).match(/function\s*([\w\$]*)\s*\(/)), null !== t ? t[1] + "()" : "";
|
|
2770
2767
|
}
|
|
2771
|
-
function
|
|
2768
|
+
function Po(e, t = 0, n = !1) {
|
|
2772
2769
|
let r = null, l = null, o = null;
|
|
2773
2770
|
const i = (...i) => {
|
|
2774
2771
|
o = this, l = i;
|
|
@@ -2783,20 +2780,20 @@ function Uo(e, t = 0, n = !1) {
|
|
|
2783
2780
|
clearTimeout(r), r = null, l = null, o = null;
|
|
2784
2781
|
}, i;
|
|
2785
2782
|
}
|
|
2786
|
-
function
|
|
2783
|
+
function Uo(...e) {
|
|
2787
2784
|
let t = "", n = 0;
|
|
2788
2785
|
for (let r of e) null != r && "" !== r && (r = String(r), r = 0 === n ? r.replace(/\/+$/, "") : r.replace(/^\/+/, "").replace(/\/+$/, ""), "" !== r && (n > 0 && (t += "/"), t += r, n++));
|
|
2789
2786
|
return t;
|
|
2790
2787
|
}
|
|
2791
|
-
var
|
|
2792
|
-
function
|
|
2788
|
+
var Fo = 256, Vo = 1e5;
|
|
2789
|
+
function Go(e) {
|
|
2793
2790
|
const t = String(e).replace(/`/g, "``");
|
|
2794
2791
|
return "[" === t[0] ? "[" + t : t;
|
|
2795
2792
|
}
|
|
2796
|
-
function
|
|
2797
|
-
return Array.isArray(e) && 0 !== e.length ? e.map((e) => "number" == typeof e ? `[${e}]` :
|
|
2793
|
+
function Mo(e) {
|
|
2794
|
+
return Array.isArray(e) && 0 !== e.length ? e.map((e) => "number" == typeof e ? `[${e}]` : Go(e)).join("`") : "";
|
|
2798
2795
|
}
|
|
2799
|
-
function
|
|
2796
|
+
function Wo(e) {
|
|
2800
2797
|
if ("string" != typeof e) return null;
|
|
2801
2798
|
let t = [], n = "";
|
|
2802
2799
|
for (let r = 0; r < e.length; r++) if ("`" !== e[r]) n += e[r];
|
|
@@ -2817,9 +2814,9 @@ function xo(e) {
|
|
|
2817
2814
|
return null !== t ? t : "[" === e[0] && "[" === e[1] ? e.slice(1) : e;
|
|
2818
2815
|
});
|
|
2819
2816
|
}
|
|
2820
|
-
function
|
|
2817
|
+
function xo(e) {
|
|
2821
2818
|
const t = {}, n = (e, r, l) => {
|
|
2822
|
-
if (l >
|
|
2819
|
+
if (l > Fo) throw new Error("json2flat: deeper than 256");
|
|
2823
2820
|
if (null === e || "object" != typeof e || Array.isArray(e)) {
|
|
2824
2821
|
if (Array.isArray(e) && e.length > 0) return void e.forEach((e, t) => {
|
|
2825
2822
|
const o = `[${t}]`;
|
|
@@ -2829,7 +2826,7 @@ function Ko(e) {
|
|
|
2829
2826
|
const t = Object.keys(e);
|
|
2830
2827
|
if (t.length > 0) {
|
|
2831
2828
|
for (const o of t) {
|
|
2832
|
-
const t =
|
|
2829
|
+
const t = Go(o);
|
|
2833
2830
|
n(e[o], 0 === l ? t : r + "`" + t, l + 1);
|
|
2834
2831
|
}
|
|
2835
2832
|
return;
|
|
@@ -2839,20 +2836,20 @@ function Ko(e) {
|
|
|
2839
2836
|
};
|
|
2840
2837
|
return null == e || n(e, "", 0), t;
|
|
2841
2838
|
}
|
|
2842
|
-
function
|
|
2839
|
+
function Ko(e) {
|
|
2843
2840
|
if (null === e || "object" != typeof e || Array.isArray(e)) throw new Error("flat2json: a flat json is an object of id -> value");
|
|
2844
2841
|
let t = null;
|
|
2845
2842
|
for (const n of Object.keys(e)) {
|
|
2846
|
-
const r =
|
|
2843
|
+
const r = Wo(n);
|
|
2847
2844
|
if (!r || 0 === r.length) throw new Error(`flat2json: malformed flat id: '${n}'`);
|
|
2848
|
-
if (r.length >
|
|
2845
|
+
if (r.length > Fo) throw new Error(`flat2json: '${n}' deeper than 256`);
|
|
2849
2846
|
const l = "number" == typeof r[0];
|
|
2850
2847
|
if (null === t) t = l ? [] : {};
|
|
2851
2848
|
else if (l !== Array.isArray(t)) throw new Error(`flat2json: '${n}' does not fit a ${Array.isArray(t) ? "array" : "object"} root`);
|
|
2852
2849
|
let o = t;
|
|
2853
2850
|
for (let t = 0; t < r.length; t++) {
|
|
2854
2851
|
const l = r[t], i = "number" == typeof l, s = t === r.length - 1, a = !s && "number" == typeof r[t + 1];
|
|
2855
|
-
if (i && l >
|
|
2852
|
+
if (i && l > Vo) throw new Error(`flat2json: array index ${l} over the limit (100000) in '${n}'`);
|
|
2856
2853
|
if (i !== Array.isArray(o)) throw new Error(`flat2json: '${n}' uses a ${i ? "array index" : "key"} where the tree already has a ${Array.isArray(o) ? "array" : "object"}`);
|
|
2857
2854
|
if (s) {
|
|
2858
2855
|
if (Array.isArray(o)) {
|
|
@@ -2876,23 +2873,23 @@ function Yo(e) {
|
|
|
2876
2873
|
}
|
|
2877
2874
|
return null === t ? {} : t;
|
|
2878
2875
|
}
|
|
2879
|
-
function
|
|
2876
|
+
function Yo(e, t) {
|
|
2880
2877
|
return e === t || null !== e && null !== t && "object" == typeof e && "object" == typeof t && JSON.stringify(e) === JSON.stringify(t);
|
|
2881
2878
|
}
|
|
2882
|
-
function
|
|
2879
|
+
function Bo(e, t) {
|
|
2883
2880
|
const n = e && "object" == typeof e ? e : {}, r = t && "object" == typeof t ? t : {}, l = {
|
|
2884
2881
|
added: {},
|
|
2885
2882
|
removed: {},
|
|
2886
2883
|
changed: {}
|
|
2887
2884
|
};
|
|
2888
|
-
for (const e of Object.keys(n)) Object.prototype.hasOwnProperty.call(r, e) ?
|
|
2885
|
+
for (const e of Object.keys(n)) Object.prototype.hasOwnProperty.call(r, e) ? Yo(n[e], r[e]) || gl(l.changed, e, {
|
|
2889
2886
|
from: n[e],
|
|
2890
2887
|
to: r[e]
|
|
2891
2888
|
}) : gl(l.removed, e, n[e]);
|
|
2892
2889
|
for (const e of Object.keys(r)) Object.prototype.hasOwnProperty.call(n, e) || gl(l.added, e, r[e]);
|
|
2893
2890
|
return l;
|
|
2894
2891
|
}
|
|
2895
|
-
function
|
|
2892
|
+
function Jo(e, t) {
|
|
2896
2893
|
if (null === e || "object" != typeof e || Array.isArray(e)) throw new Error("flat_apply: a flat json is an object of id -> value");
|
|
2897
2894
|
if (null === t || "object" != typeof t) throw new Error("flat_apply: a diff is the object flat_diff() answers");
|
|
2898
2895
|
for (const n of Object.keys(t.removed || {})) delete e[n];
|
|
@@ -2904,36 +2901,36 @@ function qo(e, t) {
|
|
|
2904
2901
|
}
|
|
2905
2902
|
return e;
|
|
2906
2903
|
}
|
|
2907
|
-
function
|
|
2904
|
+
function qo(e) {
|
|
2908
2905
|
return "persistent-attrs-" + Rt(e);
|
|
2909
2906
|
}
|
|
2910
|
-
function
|
|
2911
|
-
let n = Xt(e, v.SDF_PERSIST), r = Cl(
|
|
2907
|
+
function Ho(e, t) {
|
|
2908
|
+
let n = Xt(e, v.SDF_PERSIST), r = Cl(qo(e), null, !1);
|
|
2912
2909
|
if (r && Yr(r)) {
|
|
2913
2910
|
let l = kl(e, r, t, !1);
|
|
2914
2911
|
l = kl(e, l, n, !1), on(e, l, v.SDF_PERSIST);
|
|
2915
2912
|
}
|
|
2916
2913
|
}
|
|
2914
|
+
function zo(e, t) {
|
|
2915
|
+
let n = kl(e, Xt(e, v.SDF_PERSIST), t, !1), r = Cl(qo(e), null, !1);
|
|
2916
|
+
return r && Yr(r) && kr(n, r), Ll(qo(e), n);
|
|
2917
|
+
}
|
|
2917
2918
|
function Qo(e, t) {
|
|
2918
|
-
let n =
|
|
2919
|
-
|
|
2919
|
+
let n = Il(e, Cl(qo(e), null, !1), t, !1);
|
|
2920
|
+
0 === Mr(n) ? Pl(qo(e)) : Ll(qo(e), n);
|
|
2920
2921
|
}
|
|
2921
2922
|
function Xo(e, t) {
|
|
2922
|
-
let n =
|
|
2923
|
-
0 === Mr(n) ? Pl(Ho(e)) : Ll(Ho(e), n);
|
|
2924
|
-
}
|
|
2925
|
-
function Zo(e, t) {
|
|
2926
|
-
let n = Cl(Ho(e), null, !1), r = {};
|
|
2923
|
+
let n = Cl(qo(e), null, !1), r = {};
|
|
2927
2924
|
return n && Yr(n) && (r = kl(e, n, t, !1)), r;
|
|
2928
2925
|
}
|
|
2929
|
-
function
|
|
2926
|
+
function Zo(e) {
|
|
2930
2927
|
if (Br(e) && 1 === xr(e)) {
|
|
2931
2928
|
let t = e[0];
|
|
2932
2929
|
return cl(t, "size") ? t.size : 1;
|
|
2933
2930
|
}
|
|
2934
2931
|
return xr(e);
|
|
2935
2932
|
}
|
|
2936
|
-
function
|
|
2933
|
+
function ei(e, t) {
|
|
2937
2934
|
if (Jr(t)) {
|
|
2938
2935
|
if (-1 === t.indexOf("^")) {
|
|
2939
2936
|
let n, r, l = e.fkey;
|
|
@@ -2963,11 +2960,11 @@ function ti(e, t) {
|
|
|
2963
2960
|
hook_name: t.hook_name
|
|
2964
2961
|
} : (ir("bad fkey 3"), ir(e), ir(t), null);
|
|
2965
2962
|
}
|
|
2966
|
-
function
|
|
2967
|
-
let n =
|
|
2963
|
+
function ti(e, t) {
|
|
2964
|
+
let n = ei(e, t);
|
|
2968
2965
|
return n ? n.topic_name + "^" + n.id + "^" + n.hook_name : null;
|
|
2969
2966
|
}
|
|
2970
|
-
function
|
|
2967
|
+
function ni(e, t) {
|
|
2971
2968
|
if (Jr(t)) {
|
|
2972
2969
|
if (-1 === t.indexOf("^")) {
|
|
2973
2970
|
let n, r = e.hook;
|
|
@@ -2994,7 +2991,7 @@ function ri(e, t) {
|
|
|
2994
2991
|
id: t.id
|
|
2995
2992
|
} : (ir("bad hook 3"), ir(e), ir(t), null);
|
|
2996
2993
|
}
|
|
2997
|
-
var
|
|
2994
|
+
var ri = [
|
|
2998
2995
|
"string",
|
|
2999
2996
|
"integer",
|
|
3000
2997
|
"object",
|
|
@@ -3004,7 +3001,7 @@ var li = [
|
|
|
3004
3001
|
"real",
|
|
3005
3002
|
"boolean",
|
|
3006
3003
|
"blob"
|
|
3007
|
-
],
|
|
3004
|
+
], li = [
|
|
3008
3005
|
"persistent",
|
|
3009
3006
|
"required",
|
|
3010
3007
|
"notnull",
|
|
@@ -3016,7 +3013,7 @@ var li = [
|
|
|
3016
3013
|
"stats",
|
|
3017
3014
|
"rstats",
|
|
3018
3015
|
"pstats"
|
|
3019
|
-
],
|
|
3016
|
+
], oi = [
|
|
3020
3017
|
"hook",
|
|
3021
3018
|
"fkey",
|
|
3022
3019
|
"enum",
|
|
@@ -3045,7 +3042,7 @@ var li = [
|
|
|
3045
3042
|
"coordinates",
|
|
3046
3043
|
"gbuffer"
|
|
3047
3044
|
];
|
|
3048
|
-
function
|
|
3045
|
+
function ii(e) {
|
|
3049
3046
|
let t = {
|
|
3050
3047
|
name: e.id,
|
|
3051
3048
|
header: e.header,
|
|
@@ -3064,7 +3061,7 @@ function si(e) {
|
|
|
3064
3061
|
if (!e.flag) return t;
|
|
3065
3062
|
for (let n = 0; n < e.flag.length; n++) {
|
|
3066
3063
|
let r = e.flag[n];
|
|
3067
|
-
if (Yl(
|
|
3064
|
+
if (Yl(oi, r)) {
|
|
3068
3065
|
switch (r) {
|
|
3069
3066
|
case "enum":
|
|
3070
3067
|
t.enum_list = e.enum;
|
|
@@ -3078,7 +3075,7 @@ function si(e) {
|
|
|
3078
3075
|
case "file": t.is_file = !0;
|
|
3079
3076
|
}
|
|
3080
3077
|
t.type = r;
|
|
3081
|
-
} else if (Yl(
|
|
3078
|
+
} else if (Yl(li, r)) switch (r) {
|
|
3082
3079
|
case "writable":
|
|
3083
3080
|
t.is_writable = !0;
|
|
3084
3081
|
break;
|
|
@@ -3091,7 +3088,7 @@ function si(e) {
|
|
|
3091
3088
|
}
|
|
3092
3089
|
return t.is_file && (t.type = "file"), t;
|
|
3093
3090
|
}
|
|
3094
|
-
function
|
|
3091
|
+
function si(e, t) {
|
|
3095
3092
|
let n = {
|
|
3096
3093
|
name: e,
|
|
3097
3094
|
header: e,
|
|
@@ -3109,9 +3106,9 @@ function ai(e, t) {
|
|
|
3109
3106
|
let e = t.split(".");
|
|
3110
3107
|
for (let t = 0; t < e.length; t++) {
|
|
3111
3108
|
let r = e[t];
|
|
3112
|
-
if (Yl(
|
|
3113
|
-
else if (Yl(
|
|
3114
|
-
else if (Yl(
|
|
3109
|
+
if (Yl(ri, r)) n.real_type || (n.real_type = r);
|
|
3110
|
+
else if (Yl(oi, r)) n.type || (n.type = r);
|
|
3111
|
+
else if (Yl(li, r)) switch (r) {
|
|
3115
3112
|
case "writable":
|
|
3116
3113
|
n.is_writable = !0;
|
|
3117
3114
|
break;
|
|
@@ -3123,10 +3120,10 @@ function ai(e, t) {
|
|
|
3123
3120
|
}
|
|
3124
3121
|
}
|
|
3125
3122
|
n.real_type || (n.real_type = "string");
|
|
3126
|
-
} else Yr(t) ? (n =
|
|
3123
|
+
} else Yr(t) ? (n = ii(t), n.name || (n.name = e), n.header || (n.header = e)) : Br(t) && (n.real_type = "array", n.enum_list = t);
|
|
3127
3124
|
return n.type || (n.type = n.real_type), n;
|
|
3128
3125
|
}
|
|
3129
|
-
function
|
|
3126
|
+
function ai(e, t) {
|
|
3130
3127
|
let n = {};
|
|
3131
3128
|
return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
|
|
3132
3129
|
let l;
|
|
@@ -3135,23 +3132,23 @@ function ui(e, t) {
|
|
|
3135
3132
|
Lr(n, e, o);
|
|
3136
3133
|
}), n;
|
|
3137
3134
|
}
|
|
3138
|
-
var
|
|
3135
|
+
var ui = [
|
|
3139
3136
|
N(T.DTP_POINTER, "subscriber", 0, null, "Subscriber of output events"),
|
|
3140
3137
|
N(T.DTP_BOOLEAN, "periodic", 0, 0, "True for periodic timeouts"),
|
|
3141
3138
|
N(T.DTP_INTEGER, "msec", 0, 0, "Timeout in milliseconds"),
|
|
3142
3139
|
S()
|
|
3143
|
-
],
|
|
3140
|
+
], _i = {
|
|
3144
3141
|
periodic: !1,
|
|
3145
3142
|
msec: 0,
|
|
3146
3143
|
timer_id: -1
|
|
3147
|
-
},
|
|
3148
|
-
function
|
|
3144
|
+
}, ci = null;
|
|
3145
|
+
function fi(e, t, n, r) {
|
|
3149
3146
|
let l = e.priv, o = l.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
|
|
3150
3147
|
return l.periodic && l.msec > 0 ? l.timer_id = setTimeout(function() {
|
|
3151
3148
|
Tn(e, "EV_TIMEOUT", {}, e);
|
|
3152
3149
|
}, l.msec) : l.timer_id = -1, It(e) ? Tn(At(e), o, {}, e) : Pn(e, o, {}), l.periodic || -1 !== l.timer_id || Et(e) && gt(e), 0;
|
|
3153
3150
|
}
|
|
3154
|
-
var
|
|
3151
|
+
var gi = {
|
|
3155
3152
|
mt_create: function(e) {
|
|
3156
3153
|
let t = e.priv;
|
|
3157
3154
|
const n = nn(e, "subscriber");
|
|
@@ -3176,31 +3173,31 @@ var di = {
|
|
|
3176
3173
|
},
|
|
3177
3174
|
mt_destroy: function(e) {}
|
|
3178
3175
|
};
|
|
3179
|
-
function
|
|
3176
|
+
function di() {
|
|
3180
3177
|
return function(e) {
|
|
3181
|
-
if (
|
|
3178
|
+
if (ci) return ir(`GClass ALREADY created: ${e}`), -1;
|
|
3182
3179
|
const t = [["ST_IDLE", [[
|
|
3183
3180
|
"EV_TIMEOUT",
|
|
3184
|
-
|
|
3181
|
+
fi,
|
|
3185
3182
|
null
|
|
3186
3183
|
]]]];
|
|
3187
|
-
return (
|
|
3184
|
+
return (ci = Ae(e, [
|
|
3188
3185
|
["EV_TIMEOUT", U.EVF_OUTPUT_EVENT],
|
|
3189
3186
|
["EV_TIMEOUT_PERIODIC", U.EVF_OUTPUT_EVENT],
|
|
3190
3187
|
[0, 0]
|
|
3191
|
-
], t,
|
|
3188
|
+
], t, gi, 0, ui, _i, 0, 0, 0, C.gcflag_manual_start)) ? 0 : -1;
|
|
3192
3189
|
}("C_TIMER");
|
|
3193
3190
|
}
|
|
3194
|
-
function
|
|
3191
|
+
function bi(e, t) {
|
|
3195
3192
|
return e instanceof I ? "C_TIMER" !== $t(e) ? (ir("not C_TIMER GObj"), -1) : (sn(e, "periodic", !1), void an(e, "msec", t)) : (ir("not GObj TYPE"), -1);
|
|
3196
3193
|
}
|
|
3197
|
-
function
|
|
3194
|
+
function pi(e, t) {
|
|
3198
3195
|
return e instanceof I ? "C_TIMER" !== $t(e) ? (ir("not C_TIMER GObj"), -1) : (sn(e, "periodic", !0), void an(e, "msec", t)) : (ir("not GObj TYPE"), -1);
|
|
3199
3196
|
}
|
|
3200
|
-
function
|
|
3197
|
+
function mi(e) {
|
|
3201
3198
|
return e instanceof I ? "C_TIMER" !== $t(e) ? (ir("not C_TIMER GObj"), -1) : void an(e, "msec", -1) : (ir("not GObj TYPE"), -1);
|
|
3202
3199
|
}
|
|
3203
|
-
var
|
|
3200
|
+
var hi = [
|
|
3204
3201
|
N(T.DTP_BOOLEAN, "changesLost", 0, !1, "Set true to warn about leaving page"),
|
|
3205
3202
|
N(T.DTP_BOOLEAN, "browser_beforeunload", 0, !1, "Set true to refreshing browser"),
|
|
3206
3203
|
N(T.DTP_STRING, "__username__", 0, "", "Username"),
|
|
@@ -3220,26 +3217,26 @@ var Ei = [
|
|
|
3220
3217
|
N(T.DTP_BOOLEAN, "developer", 0, !1, "Developer mode enabled"),
|
|
3221
3218
|
N(T.DTP_INTEGER, "periodic_timeout", 0, "1000", "Timeout periodic, in miliseconds."),
|
|
3222
3219
|
S()
|
|
3223
|
-
],
|
|
3224
|
-
function
|
|
3220
|
+
], Ei = { gobj_timer: null }, yi = null;
|
|
3221
|
+
function Ti(e, t, n, r) {
|
|
3225
3222
|
let l = Qt(e, t);
|
|
3226
3223
|
return Yr(l) || (l = {}), l[n] = r, rn(e, t, l), He(e, t);
|
|
3227
3224
|
}
|
|
3228
|
-
function
|
|
3225
|
+
function vi(e) {
|
|
3229
3226
|
if (!0 === e || !1 === e) return e;
|
|
3230
3227
|
let t = String(null == e ? "" : e).toLowerCase();
|
|
3231
3228
|
return "true" === t || "set" === t || "false" !== t && "reset" !== t && ("" === t || isNaN(Number(t)) ? null : !!Number(t));
|
|
3232
3229
|
}
|
|
3233
|
-
function
|
|
3230
|
+
function Oi() {
|
|
3234
3231
|
return `${Nt()}^${St()}`;
|
|
3235
3232
|
}
|
|
3236
|
-
function
|
|
3233
|
+
function Si(e, t, n, r) {
|
|
3237
3234
|
return Pn(e, t, n), 0;
|
|
3238
3235
|
}
|
|
3239
|
-
var
|
|
3236
|
+
var Ni = {
|
|
3240
3237
|
mt_create: function(e) {
|
|
3241
3238
|
let t = e.priv;
|
|
3242
|
-
un(e, "start_date",
|
|
3239
|
+
un(e, "start_date", Do()), un(e, "node_uuid", Io()), e.priv.gobj_timer = ot(jt(e), "C_TIMER", {}, e), t.periodic_timeout = Qt(e, "periodic_timeout"), function(e) {
|
|
3243
3240
|
let t = Qt(e, "trace_levels");
|
|
3244
3241
|
if (!Yr(t)) return 0;
|
|
3245
3242
|
let n = t.__global_trace__;
|
|
@@ -3273,10 +3270,10 @@ var wi = {
|
|
|
3273
3270
|
},
|
|
3274
3271
|
mt_writing: function(e, t) {},
|
|
3275
3272
|
mt_start: function(e) {
|
|
3276
|
-
return
|
|
3273
|
+
return pi(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
|
|
3277
3274
|
},
|
|
3278
3275
|
mt_stop: function(e) {
|
|
3279
|
-
return
|
|
3276
|
+
return mi(e.priv.gobj_timer), bt(e), 0;
|
|
3280
3277
|
},
|
|
3281
3278
|
mt_destroy: function(e) {},
|
|
3282
3279
|
mt_play: function(e) {
|
|
@@ -3293,35 +3290,35 @@ var wi = {
|
|
|
3293
3290
|
case "get-global-no-trace": return o(0, 0, null, null, de());
|
|
3294
3291
|
case "set-global-trace":
|
|
3295
3292
|
case "set-global-no-trace": {
|
|
3296
|
-
let r = "set-global-no-trace" === t, l = n.level, i =
|
|
3297
|
-
return l ? null === i ? o(0, -1, `${
|
|
3293
|
+
let r = "set-global-no-trace" === t, l = n.level, i = vi(n.set);
|
|
3294
|
+
return l ? null === i ? o(0, -1, `${Oi()}: bitmask set or re-set?`, null, null) : (r ? ae(l, i) : se(l, i)) < 0 ? o(0, -1, `${Oi()}: global trace level not found: ${l}`, null, null) : r ? (Ti(e, "no_trace_levels", "__global_no_trace__", de()), o(0, 0, null, null, de())) : (Ti(e, "trace_levels", "__global_trace__", ge()), o(0, 0, null, null, ge())) : o(0, -1, `${Oi()}: what level?`, null, null);
|
|
3298
3295
|
}
|
|
3299
3296
|
case "get-gclass-trace":
|
|
3300
3297
|
case "get-gclass-no-trace":
|
|
3301
3298
|
case "set-gclass-trace":
|
|
3302
3299
|
case "set-gclass-no-trace": {
|
|
3303
3300
|
let r = t.indexOf("no-trace") >= 0, l = n.gclass_name || n.gclass || "", i = Me(l);
|
|
3304
|
-
if (!i) return o(0, -1, `${
|
|
3301
|
+
if (!i) return o(0, -1, `${Oi()}: what gclass is '${l}'?`, null, null);
|
|
3305
3302
|
if (0 === t.indexOf("get-")) return o(0, 0, null, null, r ? me(i) : be(i));
|
|
3306
|
-
let s = n.level, a =
|
|
3307
|
-
return s ? null === a ? o(0, -1, `${
|
|
3303
|
+
let s = n.level, a = vi(n.set);
|
|
3304
|
+
return s ? null === a ? o(0, -1, `${Oi()}: bitmask set or re-set?`, null, null) : (r ? Te(i, s, a) : Ee(i, s, a)) < 0 ? o(0, -1, `${Oi()}: trace level of ${l} not found: ${s}`, null, null) : r ? (Ti(e, "no_trace_levels", l, me(i)), o(0, 0, null, null, me(i))) : (Ti(e, "trace_levels", l, pe(i)), o(0, 0, null, null, be(i))) : o(0, -1, `${Oi()}: what level?`, null, null);
|
|
3308
3305
|
}
|
|
3309
|
-
default: return o(0, -1, `${
|
|
3306
|
+
default: return o(0, -1, `${Oi()}: command not available: ${t}`, null, null);
|
|
3310
3307
|
}
|
|
3311
3308
|
}
|
|
3312
3309
|
};
|
|
3313
|
-
function
|
|
3310
|
+
function wi() {
|
|
3314
3311
|
return function(e) {
|
|
3315
|
-
if (
|
|
3312
|
+
if (yi) return ir(`GClass ALREADY created: ${e}`), -1;
|
|
3316
3313
|
const t = [["ST_IDLE", [[
|
|
3317
3314
|
"EV_TIMEOUT_PERIODIC",
|
|
3318
|
-
|
|
3315
|
+
Si,
|
|
3319
3316
|
null
|
|
3320
3317
|
]]]];
|
|
3321
|
-
return (
|
|
3318
|
+
return (yi = Ae(e, [["EV_TIMEOUT_PERIODIC", U.EVF_OUTPUT_EVENT | U.EVF_NO_WARN_SUBS], [0, 0]], t, Ni, 0, hi, Ei, 0, 0, 0, 0)) ? 0 : -1;
|
|
3322
3319
|
}("C_YUNO");
|
|
3323
3320
|
}
|
|
3324
|
-
var
|
|
3321
|
+
var ji = "ievent_gate_stack", $i = [
|
|
3325
3322
|
N(T.DTP_STRING, "wanted_yuno_role", v.SDF_RD, "", "wanted yuno role"),
|
|
3326
3323
|
N(T.DTP_STRING, "wanted_yuno_name", v.SDF_RD, "", "wanted yuno name"),
|
|
3327
3324
|
N(T.DTP_STRING, "wanted_yuno_service", v.SDF_RD, "", "wanted yuno service"),
|
|
@@ -3338,15 +3335,15 @@ var $i = "ievent_gate_stack", Ri = [
|
|
|
3338
3335
|
N(T.DTP_INTEGER, "timeout_idack", v.SDF_RD, "5000", "timeout waiting idAck"),
|
|
3339
3336
|
N(T.DTP_POINTER, "subscriber", 0, 0, "subscriber of output-events. If null then subscriber is the parent"),
|
|
3340
3337
|
S()
|
|
3341
|
-
],
|
|
3338
|
+
], Ri = [
|
|
3342
3339
|
["ievents", "Trace inter-events with metadata of kw"],
|
|
3343
3340
|
["ievents2", "Trace inter-events with full kw"],
|
|
3344
3341
|
["identity-card", "Trace identity_card messages"]
|
|
3345
3342
|
];
|
|
3346
|
-
function
|
|
3343
|
+
function Di(e) {
|
|
3347
3344
|
return !!(3 & Z(e));
|
|
3348
3345
|
}
|
|
3349
|
-
var
|
|
3346
|
+
var Ai = {
|
|
3350
3347
|
url: null,
|
|
3351
3348
|
remote_yuno_name: null,
|
|
3352
3349
|
remote_yuno_role: null,
|
|
@@ -3356,8 +3353,8 @@ var ki = {
|
|
|
3356
3353
|
websocket: null,
|
|
3357
3354
|
inside_on_open: !1,
|
|
3358
3355
|
retry_ms: 0
|
|
3359
|
-
},
|
|
3360
|
-
function
|
|
3356
|
+
}, ki = null;
|
|
3357
|
+
function Ii(e) {
|
|
3361
3358
|
e.priv.websocket && ir("Websocket ALREADY setup");
|
|
3362
3359
|
const t = tn(e, "url");
|
|
3363
3360
|
ur(`====> Starting WebSocket to '${t}' (${Rt(e)})`);
|
|
@@ -3372,7 +3369,7 @@ function Ci(e) {
|
|
|
3372
3369
|
code: 1006,
|
|
3373
3370
|
reason: r.message,
|
|
3374
3371
|
was_clean: !1
|
|
3375
|
-
}, e) < 0 &&
|
|
3372
|
+
}, e) < 0 && bi(e.priv.gobj_timer, Ki(e)), null;
|
|
3376
3373
|
}
|
|
3377
3374
|
return r ? (r.onopen = () => {
|
|
3378
3375
|
n !== e.priv.ws_seq || Ct(e) || Tn(e, "EV_ON_OPEN", {
|
|
@@ -3394,7 +3391,7 @@ function Ci(e) {
|
|
|
3394
3391
|
}, e));
|
|
3395
3392
|
}, r) : (ir(`${Rt(e)}: Failed to initialize WebSocket.`), null);
|
|
3396
3393
|
}
|
|
3397
|
-
function
|
|
3394
|
+
function Ci(e, t = 1e3, n = "") {
|
|
3398
3395
|
let r = e.priv, l = r.websocket;
|
|
3399
3396
|
if (r.websocket = null, l && l.readyState !== WebSocket.CLOSED && l.readyState !== WebSocket.CLOSING) {
|
|
3400
3397
|
ur(`Closing WebSocket (Code: ${t}, Reason: "${n}")`);
|
|
@@ -3405,25 +3402,25 @@ function Li(e, t = 1e3, n = "") {
|
|
|
3405
3402
|
}
|
|
3406
3403
|
} else sr("WebSocket is already closed or in the process of closing.");
|
|
3407
3404
|
}
|
|
3408
|
-
function
|
|
3409
|
-
let r =
|
|
3405
|
+
function Li(e, t, n) {
|
|
3406
|
+
let r = Do();
|
|
3410
3407
|
try {
|
|
3411
3408
|
ur("\n" + r + " " + t + "\n"), wr(n);
|
|
3412
3409
|
} catch (e) {
|
|
3413
3410
|
ur("ERROR in trace_inter_event: " + e);
|
|
3414
3411
|
}
|
|
3415
3412
|
}
|
|
3416
|
-
var
|
|
3413
|
+
var Pi = class {
|
|
3417
3414
|
constructor(e, t) {
|
|
3418
3415
|
this.event = e, this.kw = t || {};
|
|
3419
3416
|
}
|
|
3420
3417
|
};
|
|
3421
|
-
function
|
|
3418
|
+
function Ui(e, t, n, r) {
|
|
3422
3419
|
return function(e, t) {
|
|
3423
3420
|
let n = e.priv, r = JSON.stringify(t);
|
|
3424
|
-
if (
|
|
3421
|
+
if (Di(e)) {
|
|
3425
3422
|
let n = tn(e, "url"), l = jt(Ot()) + " ==> " + n, o = Qt(Ot(), "trace_ievent_callback");
|
|
3426
|
-
o ? o(l, t, 1, r.length) :
|
|
3423
|
+
o ? o(l, t, 1, r.length) : Li(0, l, t);
|
|
3427
3424
|
}
|
|
3428
3425
|
if (!n.websocket || n.websocket.readyState !== WebSocket.OPEN) return sr(`${Rt(e)}: send_iev(): websocket not open, message lost`), -1;
|
|
3429
3426
|
try {
|
|
@@ -3433,10 +3430,10 @@ function Fi(e, t, n, r) {
|
|
|
3433
3430
|
}
|
|
3434
3431
|
return 0;
|
|
3435
3432
|
}(e, function(e, t) {
|
|
3436
|
-
return tl(e) ? (ir("iev_create() event NULL"), null) : new
|
|
3433
|
+
return tl(e) ? (ir("iev_create() event NULL"), null) : new Pi(e, t);
|
|
3437
3434
|
}(t, n));
|
|
3438
3435
|
}
|
|
3439
|
-
function
|
|
3436
|
+
function Fi(e, t, n) {
|
|
3440
3437
|
return tl(n) && (n = tn(e, "wanted_yuno_service")), {
|
|
3441
3438
|
dst_yuno: tn(e, "wanted_yuno_name"),
|
|
3442
3439
|
dst_role: tn(e, "wanted_yuno_role"),
|
|
@@ -3444,10 +3441,10 @@ function Vi(e, t, n) {
|
|
|
3444
3441
|
src_yuno: St(),
|
|
3445
3442
|
src_role: Nt(),
|
|
3446
3443
|
src_service: t,
|
|
3447
|
-
host:
|
|
3444
|
+
host: Io()
|
|
3448
3445
|
};
|
|
3449
3446
|
}
|
|
3450
|
-
function
|
|
3447
|
+
function Vi(e) {
|
|
3451
3448
|
let t = e.priv, n = vt(Ot()), r = tn(Ot(), "yuno_version"), l = tn(Ot(), "yuno_release"), o = tn(Ot(), "yuno_tag"), i = Qt(e, "required_services");
|
|
3452
3449
|
i && i.length || (i = Qt(Ot(), "required_services"));
|
|
3453
3450
|
let s = {
|
|
@@ -3465,27 +3462,27 @@ function Gi(e) {
|
|
|
3465
3462
|
username: tn(Ot(), "__username__"),
|
|
3466
3463
|
launch_id: 0,
|
|
3467
3464
|
yuno_startdate: tn(Ot(), "start_date"),
|
|
3468
|
-
id:
|
|
3465
|
+
id: Io(),
|
|
3469
3466
|
user_agent: "undefined" != typeof window ? window.navigator.userAgent : "",
|
|
3470
3467
|
language: "undefined" != typeof window ? window.navigator.language : "",
|
|
3471
3468
|
required_services: i
|
|
3472
3469
|
};
|
|
3473
|
-
return zl(e, s,
|
|
3470
|
+
return zl(e, s, ji, Fi(e, jt(At(e)), null)), Xl(e, s, "__identity__"), bi(t.gobj_timer, en(e, "timeout_idack")), Ui(e, "EV_IDENTITY_CARD", s);
|
|
3474
3471
|
}
|
|
3475
|
-
function
|
|
3472
|
+
function Gi(e, t) {
|
|
3476
3473
|
if (tl(t.event)) return -1;
|
|
3477
3474
|
let n = {}, r = t.__global__, l = t.__config__, o = t.__filter__, i = t.__service__, s = t.subscriber;
|
|
3478
3475
|
l && (n.__config__ = l), r && (n.__global__ = r), o && (n.__filter__ = o);
|
|
3479
|
-
return zl(e, n,
|
|
3476
|
+
return zl(e, n, ji, Fi(e, jt(s), i)), Xl(e, n, "__subscribing__"), Ui(e, t.event, n);
|
|
3480
3477
|
}
|
|
3481
|
-
function
|
|
3478
|
+
function Mi(e, t, n, r) {
|
|
3482
3479
|
let l = e.priv;
|
|
3483
|
-
return Et(e) && (l.websocket =
|
|
3480
|
+
return Et(e) && (l.websocket = Ii(e)), 0;
|
|
3484
3481
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return ur("Websocket opened: " + e.priv.url),
|
|
3482
|
+
function Wi(e, t, n, r) {
|
|
3483
|
+
return ur("Websocket opened: " + e.priv.url), Vi(e), 0;
|
|
3487
3484
|
}
|
|
3488
|
-
function
|
|
3485
|
+
function xi(e, t, n, r) {
|
|
3489
3486
|
let l = e.priv, o = n.url;
|
|
3490
3487
|
return void 0 !== n.ws_seq && n.ws_seq !== l.ws_seq || (rr(), sr(`${Rt(e)}: WebSocket closed ${o} (Code: ${n.code}, Reason: "${n.reason}", Clean: ${n.was_clean})`), l.websocket && (l.websocket.onopen = null, l.websocket.onmessage = null, l.websocket.onerror = null, l.websocket.onclose = null, l.websocket = null), l.inform_on_close ? (l.inform_on_close = !1, Pn(e, "EV_ON_CLOSE", {
|
|
3491
3488
|
url: o,
|
|
@@ -3500,25 +3497,25 @@ function Ki(e, t, n, r) {
|
|
|
3500
3497
|
code: n.code,
|
|
3501
3498
|
reason: n.reason,
|
|
3502
3499
|
was_clean: n.was_clean
|
|
3503
|
-
})), Et(e) &&
|
|
3500
|
+
})), Et(e) && bi(l.gobj_timer, Ki(e))), 0;
|
|
3504
3501
|
}
|
|
3505
|
-
function
|
|
3502
|
+
function Ki(e) {
|
|
3506
3503
|
let t = e.priv, n = en(e, "timeout_retry"), r = en(e, "timeout_retry_max");
|
|
3507
3504
|
r < n && (r = n), t.retry_ms = t.retry_ms ? Math.min(2 * t.retry_ms, r) : n;
|
|
3508
3505
|
let l = .2 * t.retry_ms, o = t.retry_ms - l + 2 * Math.random() * l;
|
|
3509
3506
|
return Math.max(1, Math.round(o));
|
|
3510
3507
|
}
|
|
3511
|
-
function
|
|
3512
|
-
return
|
|
3508
|
+
function Yi(e, t, n, r) {
|
|
3509
|
+
return Vi(e), 0;
|
|
3513
3510
|
}
|
|
3514
|
-
function
|
|
3511
|
+
function Bi(e, t, n, r) {
|
|
3515
3512
|
let l = e.priv;
|
|
3516
|
-
|
|
3517
|
-
let o = Ql(e, n,
|
|
3513
|
+
mi(l.gobj_timer);
|
|
3514
|
+
let o = Ql(e, n, ji, !0), i = yl(e, o, "src_yuno", ""), s = yl(e, o, "src_role", ""), a = yl(e, o, "src_service", "");
|
|
3518
3515
|
un(e, "remote_yuno_name", i), un(e, "remote_yuno_role", s), un(e, "remote_yuno_service", a);
|
|
3519
3516
|
let u = hl(e, n, "result", -1, 0), _ = yl(e, n, "comment", "", 0), c = yl(e, n, "username", "", 0), f = Ol(e, n, "services_roles", {});
|
|
3520
3517
|
if (u < 0) {
|
|
3521
|
-
|
|
3518
|
+
Ci(e);
|
|
3522
3519
|
let t = {
|
|
3523
3520
|
url: tn(e, "url"),
|
|
3524
3521
|
result: u,
|
|
@@ -3543,12 +3540,12 @@ function Ji(e, t, n, r) {
|
|
|
3543
3540
|
}
|
|
3544
3541
|
l.inside_on_open = !1, function(e) {
|
|
3545
3542
|
let t = In(e, null, null, null);
|
|
3546
|
-
for (let n = 0; n < t.length; n++)
|
|
3543
|
+
for (let n = 0; n < t.length; n++) Gi(e, t[n]);
|
|
3547
3544
|
}(e);
|
|
3548
3545
|
}
|
|
3549
3546
|
return 0;
|
|
3550
3547
|
}
|
|
3551
|
-
function
|
|
3548
|
+
function Ji(e, t, n, r) {
|
|
3552
3549
|
let l = e.priv.url, o = function(e, t) {
|
|
3553
3550
|
let n;
|
|
3554
3551
|
try {
|
|
@@ -3567,19 +3564,19 @@ function qi(e, t, n, r) {
|
|
|
3567
3564
|
} : (sr(`${Rt(e)}: parsing inter_event: kw not a json object`), null) : (sr(`${Rt(e)}: parsing inter_kw: no kw`), null);
|
|
3568
3565
|
}(e, n.data);
|
|
3569
3566
|
if (!o) return sr(`${Rt(e)}: frame dropped from ${l}: ${String(n.data).substring(0, 256)}`), -1;
|
|
3570
|
-
if (
|
|
3567
|
+
if (Di(e)) {
|
|
3571
3568
|
let e = jt(Ot()) + " <== " + l, t = n.data.length, r = Qt(Ot(), "trace_ievent_callback");
|
|
3572
|
-
r ? r(e, o, 2, t) :
|
|
3569
|
+
r ? r(e, o, 2, t) : Li(0, e, o);
|
|
3573
3570
|
}
|
|
3574
3571
|
let i = o.event, s = o.kw;
|
|
3575
3572
|
if ("ST_SESSION" !== cn(e)) {
|
|
3576
3573
|
if (dn(e, i, U.EVF_PUBLIC_EVENT)) {
|
|
3577
3574
|
if (!(Tn(e, i, s, e) < 0)) return 0;
|
|
3578
3575
|
} else ir(`${Rt(e)}: event UNKNOWN in not-session state ${i}`);
|
|
3579
|
-
return
|
|
3576
|
+
return Ci(e), -1;
|
|
3580
3577
|
}
|
|
3581
3578
|
o = null;
|
|
3582
|
-
let a = Zl(e, s), u = Ql(e, s,
|
|
3579
|
+
let a = Zl(e, s), u = Ql(e, s, ji), _ = yl(e, u, "dst_role", "");
|
|
3583
3580
|
if (_.toLowerCase() !== Nt().toLowerCase()) return ir(`"It's not my role, dst_role: ${_}, my_role: ${Nt()}`), 0;
|
|
3584
3581
|
let c = yl(e, u, "dst_service", "");
|
|
3585
3582
|
if ("__subscribing__" === a) return sr(`${Rt(e)}: subscription event ignored, I'm client (service: ${c}, event: ${i})`), -1;
|
|
@@ -3591,13 +3588,13 @@ function qi(e, t, n, r) {
|
|
|
3591
3588
|
}
|
|
3592
3589
|
return It(e) ? Tn(At(e), i, s, e) : Pn(e, i, s), 0;
|
|
3593
3590
|
}
|
|
3594
|
-
function
|
|
3591
|
+
function qi(e, t, n, r) {
|
|
3595
3592
|
return 0;
|
|
3596
3593
|
}
|
|
3597
|
-
function
|
|
3594
|
+
function Hi(e, t, n, r) {
|
|
3598
3595
|
return 0;
|
|
3599
3596
|
}
|
|
3600
|
-
var
|
|
3597
|
+
var zi = {
|
|
3601
3598
|
mt_create: function(e) {
|
|
3602
3599
|
let t = e.priv;
|
|
3603
3600
|
t.gobj_timer = ot(jt(e), "C_TIMER", {}, e), t.ws_seq = 0, t.url = tn(e, "url"), t.remote_yuno_name = tn(e, "remote_yuno_name"), t.remote_yuno_role = tn(e, "remote_yuno_role"), t.remote_yuno_service = tn(e, "remote_yuno_service"), un(e, "wanted_yuno_name", t.remote_yuno_name), un(e, "wanted_yuno_role", t.remote_yuno_role), un(e, "wanted_yuno_service", t.remote_yuno_service);
|
|
@@ -3627,43 +3624,43 @@ var Qi = {
|
|
|
3627
3624
|
code: 1e3,
|
|
3628
3625
|
reason: "restarted",
|
|
3629
3626
|
was_clean: !0
|
|
3630
|
-
}, e),
|
|
3627
|
+
}, e), mi(t.gobj_timer)), t.websocket = Ii(e), 0;
|
|
3631
3628
|
},
|
|
3632
3629
|
mt_stop: function(e) {
|
|
3633
3630
|
let t = e.priv;
|
|
3634
|
-
return
|
|
3631
|
+
return mi(t.gobj_timer), t.websocket && Ci(e), 0;
|
|
3635
3632
|
},
|
|
3636
3633
|
mt_destroy: function(e) {},
|
|
3637
3634
|
mt_stats: function(e, t, n, r) {
|
|
3638
3635
|
if ("ST_SESSION" !== cn(e)) return ir("Not in session"), null;
|
|
3639
3636
|
n || (n = {});
|
|
3640
|
-
let l =
|
|
3637
|
+
let l = Fi(e, jt(r), yl(e, n, "service", null, 0)), o = Ol(e, n, "__md_stats__", null, Vn.KW_EXTRACT);
|
|
3641
3638
|
return o || (o = {}), zl(e, n, "stats_stack", {
|
|
3642
3639
|
stats: t,
|
|
3643
3640
|
kw: o
|
|
3644
|
-
}), zl(e, n,
|
|
3641
|
+
}), zl(e, n, ji, l), n.__stats__ = t, Xl(e, n, "__stats__"), Ui(e, "EV_MT_STATS", n, r), null;
|
|
3645
3642
|
},
|
|
3646
3643
|
mt_command_parser: function(e, t, n, r) {
|
|
3647
3644
|
if ("ST_SESSION" !== cn(e)) return ir("Not in session"), null;
|
|
3648
3645
|
n || (n = {});
|
|
3649
|
-
let l =
|
|
3646
|
+
let l = Fi(e, jt(r), yl(e, n, "service", "", 0)), o = Ol(e, n, "__md_command__", null, Vn.KW_EXTRACT);
|
|
3650
3647
|
return o || (o = {}), zl(e, n, "command_stack", {
|
|
3651
3648
|
command: t,
|
|
3652
3649
|
kw: o
|
|
3653
|
-
}), zl(e, n,
|
|
3650
|
+
}), zl(e, n, ji, l), n.__command__ = t, Xl(e, n, "__command__"), Ui(e, "EV_MT_COMMAND", n, r), null;
|
|
3654
3651
|
},
|
|
3655
3652
|
mt_inject_event: function(e, t, n, r) {
|
|
3656
3653
|
if ("ST_SESSION" !== cn(e)) return window.console.error("Not in session"), -1;
|
|
3657
|
-
if (n = Dr({}, Yr(n) ? n : {}), Yr(n.__md_iev__) && (n.__md_iev__ = jr(n.__md_iev__)), Ql(e, n,
|
|
3654
|
+
if (n = Dr({}, Yr(n) ? n : {}), Yr(n.__md_iev__) && (n.__md_iev__ = jr(n.__md_iev__)), Ql(e, n, ji));
|
|
3658
3655
|
else {
|
|
3659
|
-
let l =
|
|
3660
|
-
Cr(n, "__service__"), zl(e, n, "__message__", t), zl(e, n,
|
|
3656
|
+
let l = Fi(e, jt(r), yl(e, n, "__service__", 0, 0));
|
|
3657
|
+
Cr(n, "__service__"), zl(e, n, "__message__", t), zl(e, n, ji, l);
|
|
3661
3658
|
}
|
|
3662
|
-
return Xl(e, n, "__message__"),
|
|
3659
|
+
return Xl(e, n, "__message__"), Ui(e, t, n, r);
|
|
3663
3660
|
},
|
|
3664
3661
|
mt_subscription_added: function(e, t) {
|
|
3665
3662
|
let n = e.priv;
|
|
3666
|
-
return "ST_SESSION" === cn(e) && n.websocket ? n.inside_on_open ? 0 :
|
|
3663
|
+
return "ST_SESSION" === cn(e) && n.websocket ? n.inside_on_open ? 0 : Gi(e, t) : 0;
|
|
3667
3664
|
},
|
|
3668
3665
|
mt_subscription_deleted: function(e, t) {
|
|
3669
3666
|
let n = e.priv;
|
|
@@ -3672,27 +3669,27 @@ var Qi = {
|
|
|
3672
3669
|
if (tl(t.event)) return 0;
|
|
3673
3670
|
let r = {}, l = t.__global__, o = t.__config__, i = t.__filter__, s = t.__service__, a = t.subscriber;
|
|
3674
3671
|
o && (r.__config__ = o), l && (r.__global__ = l), i && (r.__filter__ = i);
|
|
3675
|
-
return zl(e, r,
|
|
3672
|
+
return zl(e, r, ji, Fi(e, jt(a), s)), Xl(e, r, "__unsubscribing__"), Ui(e, t.event, r, e);
|
|
3676
3673
|
}
|
|
3677
3674
|
};
|
|
3678
|
-
function
|
|
3675
|
+
function Qi() {
|
|
3679
3676
|
return function(e) {
|
|
3680
|
-
if (
|
|
3677
|
+
if (ki) return ir(`GClass ALREADY created: ${e}`), -1;
|
|
3681
3678
|
const t = [
|
|
3682
3679
|
["ST_DISCONNECTED", [
|
|
3683
3680
|
[
|
|
3684
3681
|
"EV_ON_OPEN",
|
|
3685
|
-
|
|
3682
|
+
Wi,
|
|
3686
3683
|
"ST_WAIT_IDENTITY_CARD_ACK"
|
|
3687
3684
|
],
|
|
3688
3685
|
[
|
|
3689
3686
|
"EV_ON_CLOSE",
|
|
3690
|
-
|
|
3687
|
+
xi,
|
|
3691
3688
|
null
|
|
3692
3689
|
],
|
|
3693
3690
|
[
|
|
3694
3691
|
"EV_TIMEOUT",
|
|
3695
|
-
|
|
3692
|
+
Mi,
|
|
3696
3693
|
null
|
|
3697
3694
|
],
|
|
3698
3695
|
[
|
|
@@ -3704,22 +3701,22 @@ function Xi() {
|
|
|
3704
3701
|
["ST_WAIT_IDENTITY_CARD_ACK", [
|
|
3705
3702
|
[
|
|
3706
3703
|
"EV_ON_MESSAGE",
|
|
3707
|
-
|
|
3704
|
+
Ji,
|
|
3708
3705
|
null
|
|
3709
3706
|
],
|
|
3710
3707
|
[
|
|
3711
3708
|
"EV_IDENTITY_CARD_ACK",
|
|
3712
|
-
|
|
3709
|
+
Bi,
|
|
3713
3710
|
null
|
|
3714
3711
|
],
|
|
3715
3712
|
[
|
|
3716
3713
|
"EV_ON_CLOSE",
|
|
3717
|
-
|
|
3714
|
+
xi,
|
|
3718
3715
|
"ST_DISCONNECTED"
|
|
3719
3716
|
],
|
|
3720
3717
|
[
|
|
3721
3718
|
"EV_TIMEOUT",
|
|
3722
|
-
|
|
3719
|
+
Yi,
|
|
3723
3720
|
null
|
|
3724
3721
|
],
|
|
3725
3722
|
[
|
|
@@ -3731,22 +3728,22 @@ function Xi() {
|
|
|
3731
3728
|
["ST_SESSION", [
|
|
3732
3729
|
[
|
|
3733
3730
|
"EV_ON_MESSAGE",
|
|
3734
|
-
|
|
3731
|
+
Ji,
|
|
3735
3732
|
null
|
|
3736
3733
|
],
|
|
3737
3734
|
[
|
|
3738
3735
|
"EV_MT_STATS",
|
|
3739
|
-
|
|
3736
|
+
qi,
|
|
3740
3737
|
null
|
|
3741
3738
|
],
|
|
3742
3739
|
[
|
|
3743
3740
|
"EV_MT_COMMAND",
|
|
3744
|
-
|
|
3741
|
+
Hi,
|
|
3745
3742
|
null
|
|
3746
3743
|
],
|
|
3747
3744
|
[
|
|
3748
3745
|
"EV_ON_CLOSE",
|
|
3749
|
-
|
|
3746
|
+
xi,
|
|
3750
3747
|
"ST_DISCONNECTED"
|
|
3751
3748
|
],
|
|
3752
3749
|
[
|
|
@@ -3757,7 +3754,7 @@ function Xi() {
|
|
|
3757
3754
|
]],
|
|
3758
3755
|
[null, null]
|
|
3759
3756
|
];
|
|
3760
|
-
return (
|
|
3757
|
+
return (ki = Ae(e, [
|
|
3761
3758
|
["EV_ON_MESSAGE", U.EVF_OUTPUT_EVENT],
|
|
3762
3759
|
["EV_IDENTITY_CARD_ACK", U.EVF_PUBLIC_EVENT],
|
|
3763
3760
|
["EV_ON_ID_NAK", U.EVF_PUBLIC_EVENT | U.EVF_OUTPUT_EVENT],
|
|
@@ -3768,9 +3765,9 @@ function Xi() {
|
|
|
3768
3765
|
["EV_ON_OPEN_ERROR", U.EVF_OUTPUT_EVENT | U.EVF_NO_WARN_SUBS],
|
|
3769
3766
|
["EV_TIMEOUT", 0],
|
|
3770
3767
|
[null, 0]
|
|
3771
|
-
], t,
|
|
3768
|
+
], t, zi, 0, $i, Ai, 0, 0, Ri, C.gcflag_no_check_output_events)) ? 0 : -1;
|
|
3772
3769
|
}("C_IEVENT_CLI");
|
|
3773
3770
|
}
|
|
3774
|
-
export { I as GObj, N as SDATA, R as SDATAAUTHZ, w as SDATACM, j as SDATACM2, A as SDATADF, $ as SDATAPM, D as SDATAPM0, S as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, h as __yuno__, o as build_command_response,
|
|
3771
|
+
export { I as GObj, N as SDATA, R as SDATAAUTHZ, w as SDATACM, j as SDATACM2, A as SDATADF, $ as SDATAPM, D as SDATAPM0, S as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, h as __yuno__, o as build_command_response, Uo as build_path, s as build_stats_response, Co as clean_name, mi as clear_timeout, il as cmp_two_simple_json, l as command_parser, No as createElement2, So as createOneHtml, _o as create_json_record, ai as create_template_record, Do as current_timestamp, T as data_type_t, Xo as db_list_persistent_attrs, Ho as db_load_persistent_attrs, Qo as db_remove_persistent_attrs, zo as db_save_persistent_attrs, Po as debounce, Jl as delete_from_list, $r as duplicate_objects, Kr as empty_json, tl as empty_string, go as escapeHtml, U as event_flag_t, Ko as flat2json, Jo as flat_apply, Bo as flat_diff, Mo as flat_key_join, Wo as flat_key_split, Pe as gclass_add_ev_action, Fe as gclass_add_event_type, Le as gclass_add_state, Ge as gclass_check_fsm, Ae as gclass_create, Ve as gclass_event_type, Me as gclass_find_by_name, C as gclass_flag_t, ke as gclass_unregister, wo as getPositionRelativeToBody, Lo as get_function_name, Ao as get_now, Lt as gobj_bottom_gobj, fn as gobj_change_parent, _n as gobj_change_state, Un as gobj_command, it as gobj_create, et as gobj_create2, rt as gobj_create_default_service, ot as gobj_create_pure_child, nt as gobj_create_service, lt as gobj_create_volatil, tt as gobj_create_yuno, cn as gobj_current_state, xe as gobj_default_service, yn as gobj_deliver_posted_events, st as gobj_destroy, Bt as gobj_find_child, Kt as gobj_find_gobj, Ke as gobj_find_service, Ln as gobj_find_subscribings, In as gobj_find_subscriptions, L as gobj_flag_t, Dt as gobj_full_name, $t as gobj_gclass_name, be as gobj_get_gclass_trace_level, pe as gobj_get_gclass_trace_level2, me as gobj_get_gclass_trace_no_level, ge as gobj_get_global_trace_level, de as gobj_get_global_trace_no_level, ue as gobj_global_trace_level, _e as gobj_global_trace_no_level, zt as gobj_has_attr, dn as gobj_has_event, bn as gobj_has_output_event, $e as gobj_hsdata, Ct as gobj_is_destroying, vt as gobj_is_playing, It as gobj_is_pure_child, Et as gobj_is_running, Tt as gobj_is_service, kt as gobj_is_volatil, Qe as gobj_list_persistent_attrs, Cn as gobj_list_subscriptions, qe as gobj_load_persistent_attrs, Jt as gobj_match_children, qt as gobj_match_children_tree, Yt as gobj_match_gobj, jt as gobj_name, At as gobj_parent, ht as gobj_pause, mt as gobj_play, hn as gobj_post_event, En as gobj_posted_events_size, Pn as gobj_publish_event, Qt as gobj_read_attr, Xt as gobj_read_attrs, Zt as gobj_read_bool_attr, en as gobj_read_integer_attr, nn as gobj_read_pointer_attr, tn as gobj_read_str_attr, ze as gobj_remove_persistent_attrs, Oe as gobj_repr_global_trace_levels, ln as gobj_reset_volatil_attrs, He as gobj_save_persistent_attrs, Ht as gobj_search_path, Tn as gobj_send_event, We as gobj_services, Pt as gobj_set_bottom_gobj, he as gobj_set_deep_trace, Te as gobj_set_gclass_no_trace, Ee as gobj_set_gclass_trace, ae as gobj_set_global_no_trace, fe as gobj_set_global_no_trace2, se as gobj_set_global_trace, ce as gobj_set_global_trace2, ve as gobj_set_gobj_no_trace, ye as gobj_set_gobj_trace, x as gobj_set_trace_machine_format, Rt as gobj_short_name, at as gobj_start, _t as gobj_start_children, ft as gobj_start_tree, Se as gobj_start_up, Fn as gobj_stats, gt as gobj_stop, bt as gobj_stop_children, pt as gobj_stop_tree, Dn as gobj_subscribe_event, Z as gobj_trace_level, K as gobj_trace_machine_format, ee as gobj_trace_no_level, An as gobj_unsubscribe_event, kn as gobj_unsubscribe_list, Ft as gobj_walk_gobj_children, Vt as gobj_walk_gobj_children_tree, rn as gobj_write_attr, on as gobj_write_attrs, sn as gobj_write_bool_attr, an as gobj_write_integer_attr, un as gobj_write_str_attr, Ot as gobj_yuno, wt as gobj_yuno_id, St as gobj_yuno_name, Nt as gobj_yuno_role, mo as html_markup, Kl as id_index_in_obj_list, ko as index_in_list, Br as is_array, Hr as is_boolean, Xr as is_date, Zr as is_function, el as is_gobj, ho as is_html_markup, al as is_metadata_key, zr as is_null, qr as is_number, Yr as is_object, ul as is_private_key, Qr as is_pure_number, br as is_secret_name, Jr as is_string, oo as jdb_delete, so as jdb_get, ao as jdb_get_by_idx, io as jdb_get_topic, ro as jdb_init, lo as jdb_update, xo as json2flat, Ur as json_array_append, Fr as json_array_append_new, Gr as json_array_extend, Vr as json_array_remove, Wr as json_array_size, jr as json_deep_copy, Rr as json_is_identical, Nr as json_mask_secrets, Cr as json_object_del, Ir as json_object_get, Lr as json_object_set, Pr as json_object_set_new, Mr as json_object_size, Dr as json_object_update, Ar as json_object_update_existing, kr as json_object_update_missing, xr as json_size, fo as jwt2json, co as jwtDecode, kl as kw_clone_by_keys, Il as kw_clone_by_not_keys, Al as kw_collect, pl as kw_delete, Rl as kw_find_json_in_list, bl as kw_find_path, Vn as kw_flag_t, ml as kw_get_bool, vl as kw_get_dict, Ol as kw_get_dict_value, hl as kw_get_int, Sl as kw_get_list, Cl as kw_get_local_storage_value, Tl as kw_get_pointer, El as kw_get_real, yl as kw_get_str, cl as kw_has_key, $l as kw_match_simple, _l as kw_pop, Pl as kw_remove_local_storage_value, Dl as kw_select, Nl as kw_set_dict_value, Ll as kw_set_local_storage_value, wl as kw_set_subdict_value, Fl as kwid_collect, Ml as kwid_find_one_record, Wl as kwid_get_ids, Ul as kwid_match_id, Vl as kwid_new_dict, Gl as kwid_new_list, xl as list2options, eo as load_json_file, ur as log_debug, ir as log_error, ar as log_info, sr as log_warning, yr as mask_secrets_inline, Zl as msg_iev_get_msg_type, Ql as msg_iev_get_stack, zl as msg_iev_push_stack, ql as msg_iev_read_key, Xl as msg_iev_set_msg_type, Hl as msg_iev_write_key, Io as node_uuid, nl as parseBoolean, jo as parseSVG, $o as refresh_language, Qi as register_c_ievent_cli, di as register_c_timer, wi as register_c_yuno, bo as safeSrc, v as sdata_flag_t, to as send_http_json_post, zn as set_console_log_enabled, Xn as set_console_log_filter, qn as set_log_callback, rr as set_remote_log_functions, vo as set_strings_are_text, bi as set_timeout, pi as set_timeout_periodic, t as sprintf, i as stats_parser, Yl as str_in_list, ol as strcasecmp, ll as strcmp, Oo as strings_are_text, rl as strncmp, Bl as strs_in_list, sl as strstr, si as template_get_field_desc, Ro as timeTracker, cr as trace_json, wr as trace_json_masked, B as trace_level_t, _r as trace_msg, ei as treedb_decoder_fkey, ni as treedb_decoder_hook, ti as treedb_encoder_fkey, ii as treedb_get_field_desc, Zo as treedb_hook_data_size, n as vsprintf, F as walk_type_t };
|
|
3775
3772
|
|
|
3776
3773
|
//# sourceMappingURL=gobj-js.es.min.js.map
|