x-block-lib 0.10.15 → 0.10.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +820 -822
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10,13 +10,13 @@
10
10
  pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#444;background:#f3f3f3}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-a710550b]{opacity:.4;pointer-events:none}.blocklyToolbox{width:56px;overflow-x:hidden}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{place-items:center;height:28px;display:flex;overflow:hidden}.blocklyFlyout{z-index:21}
11
11
  /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as ee, M as te, N as d, O as f, P as ne, Q as p, R as re, S as m, T as h, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as g, a as ue, b as de, c as fe, d as pe, f as me, g as _, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as v, q as Ce, r as we, s as Te, t as Ee, u as De, v as y, w as b, x, y as Oe, z as ke } from "./vendor.7ekzovn9.js";
12
12
  import { globalState as S } from "x-state-lib";
13
- import { addIndent as Ae, finalProperties as C, getElement as w, getImplementMethodName as je, getTag as Me, makeEventId as T, makeEventKeyOfCustomSlot as Ne, makeEventKeyOfElementSlot as Pe, makeMethodId as Fe, makeMethodKeyOfCustomSlot as Ie, makeMethodKeyOfElementSlot as Le, makePropertyId as Re, makePropertyKeyOfCustomSlot as ze, makePropertyKeyOfElementSlot as Be, makeTriggerId as Ve, parsePercent as He, parsePixel as Ue, pkgs as We, themeColors as Ge, toEventName as Ke, toMethodName as qe, toPropertyName as Je, unwrapEventId as Ye, unwrapEventKeyOfCustomSlot as Xe, unwrapEventKeyOfElementSlot as Ze, unwrapMethodId as Qe, unwrapMethodKeyOfCustomSlot as $e, unwrapMethodKeyOfElementSlot as et, unwrapPropertyId as tt, unwrapPropertyKeyOfCustomSlot as nt, unwrapPropertyKeyOfElementSlot as rt, unwrapSlotId as it } from "x-runtime-lib";
14
- import { eventBus as at, globalObjects as ot, messageWarning as st, openConfirmDlg as ct, openPromptDlg as lt, useColor as ut, useSystem as dt, useViewStack as ft } from "x-essential-lib";
15
- import { Fragment as pt, computed as E, createBlock as mt, createCommentVNode as ht, createElementBlock as D, createElementVNode as O, createVNode as k, defineComponent as gt, inject as _t, isRef as vt, mergeModels as yt, mergeProps as bt, nextTick as xt, normalizeStyle as A, onBeforeUnmount as St, onMounted as Ct, onUnmounted as wt, openBlock as j, provide as Tt, ref as Et, renderList as Dt, renderSlot as Ot, resolveComponent as M, resolveDirective as kt, toDisplayString as At, unref as N, useId as jt, useModel as Mt, useTemplateRef as Nt, watch as Pt, withCtx as Ft, withDirectives as It, withKeys as Lt, withModifiers as Rt } from "vue";
16
- import { useDisplay as zt } from "vuetify";
17
- import { useI18n as Bt } from "vue-i18n";
13
+ import { addIndent as Ae, finalProperties as C, getElement as w, getImplementMethodName as je, getItems as Me, getTag as Ne, getTypes as Pe, makeEventId as T, makeEventKeyOfCustomSlot as Fe, makeEventKeyOfElementSlot as Ie, makeMethodId as Le, makeMethodKeyOfCustomSlot as Re, makeMethodKeyOfElementSlot as ze, makePropertyId as Be, makePropertyKeyOfCustomSlot as Ve, makePropertyKeyOfElementSlot as He, makeTriggerId as Ue, parsePercent as We, parsePixel as Ge, pkgs as Ke, themeColors as qe, toEventName as Je, toMethodName as Ye, toPropertyName as Xe, unwrapEventId as Ze, unwrapEventKeyOfCustomSlot as Qe, unwrapEventKeyOfElementSlot as $e, unwrapMethodId as et, unwrapMethodKeyOfCustomSlot as tt, unwrapMethodKeyOfElementSlot as nt, unwrapPropertyId as rt, unwrapPropertyKeyOfCustomSlot as it, unwrapPropertyKeyOfElementSlot as at, unwrapSlotId as ot } from "x-runtime-lib";
14
+ import { eventBus as st, globalObjects as ct, messageWarning as lt, openConfirmDlg as ut, openPromptDlg as dt, useColor as ft, useSystem as pt, useViewStack as mt } from "x-essential-lib";
15
+ import { Fragment as ht, computed as E, createBlock as gt, createCommentVNode as _t, createElementBlock as D, createElementVNode as O, createVNode as k, defineComponent as vt, inject as yt, isRef as bt, mergeModels as xt, mergeProps as St, nextTick as Ct, normalizeStyle as A, onBeforeUnmount as wt, onMounted as Tt, onUnmounted as Et, openBlock as j, provide as Dt, ref as Ot, renderList as kt, renderSlot as At, resolveComponent as M, resolveDirective as jt, toDisplayString as Mt, unref as N, useId as Nt, useModel as Pt, useTemplateRef as Ft, watch as It, withCtx as Lt, withDirectives as Rt, withKeys as zt, withModifiers as Bt } from "vue";
16
+ import { useDisplay as Vt } from "vuetify";
17
+ import { useI18n as Ht } from "vue-i18n";
18
18
  //#region \0rolldown_dynamic_import_helper.js
19
- var Vt = (e, t, n) => {
19
+ var Ut = (e, t, n) => {
20
20
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
21
21
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
22
22
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
@@ -24,8 +24,8 @@ var Vt = (e, t, n) => {
24
24
  };
25
25
  //#endregion
26
26
  //#region src/core/locale/index.ts
27
- async function Ht(e) {
28
- ce((await Vt(/* @__PURE__ */ Object.assign({
27
+ async function Wt(e) {
28
+ ce((await Ut(/* @__PURE__ */ Object.assign({
29
29
  "./msg/en.ts": () => import("./msg-en.mdggqv1h.js").then((e) => e.t),
30
30
  "./msg/zhHans.ts": () => import("./msg-zhHans.nnp59bv2.js").then((e) => e.t)
31
31
  }), `./msg/${e}.ts`, 3)).default);
@@ -35,12 +35,12 @@ function P(e) {
35
35
  }
36
36
  //#endregion
37
37
  //#region src/core/utils/common/misc.ts
38
- var Ut = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Wt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
39
- function Gt(e) {
38
+ var Gt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Kt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
39
+ function qt(e) {
40
40
  let t = e.lastIndexOf("V");
41
41
  return t <= 0 || t >= e.length - 1 ? (console.assert(!1, `invalid key=${e}`), "") : `${pe(e.substring(0, t - 1))}_${"v" + e.substring(t + 1)}`;
42
42
  }
43
- function Kt(e) {
43
+ function Jt(e) {
44
44
  let t = e.lastIndexOf("V");
45
45
  if (t <= 0 || t >= e.length - 1) return console.assert(!1, `invalid key=${e}`), "";
46
46
  let n = e.substring(0, t - 1);
@@ -49,15 +49,15 @@ function Kt(e) {
49
49
  function F(e) {
50
50
  return e.length <= 0 && e.push([P("NO_OPTION"), ""]), e;
51
51
  }
52
- function qt(e) {
52
+ function Yt(e) {
53
53
  let t = 0;
54
54
  for (; e;) t++, e = e.getParent();
55
55
  return t;
56
56
  }
57
- function Jt(e) {
57
+ function Xt(e) {
58
58
  return e.ui === "strInput" ? "string" : e.ui === "numInput" ? "number" : e.ui === "switch" ? "boolean" : "string";
59
59
  }
60
- function Yt(e, t) {
60
+ function Zt(e, t) {
61
61
  return !!(e.startsWith("basic.") || !t.ui || t.readonly);
62
62
  }
63
63
  function I(e) {
@@ -75,49 +75,49 @@ function z(e) {
75
75
  function B(e) {
76
76
  return e.startsWith("multiple_slot_v");
77
77
  }
78
- function Xt(e, t, n) {
79
- let { kind: r, mainKey: i, slotKey: a } = it(e);
78
+ function Qt(e, t, n) {
79
+ let { kind: r, mainKey: i, slotKey: a } = ot(e);
80
80
  return !(r !== "elementSlot" && r !== "multipleElementSlot" || t !== i || n !== a);
81
81
  }
82
- function Zt(e, t, n) {
83
- let { kind: r, mainKey: i, slotKey: a } = it(e);
82
+ function $t(e, t, n) {
83
+ let { kind: r, mainKey: i, slotKey: a } = ot(e);
84
84
  return !(r !== "customSlot" && r !== "multipleCustomSlot" || t !== i || n !== a);
85
85
  }
86
86
  //#endregion
87
87
  //#region src/core/utils/common/block.ts
88
- function Qt(e) {
88
+ function en(e) {
89
89
  let t = `<block type="text_v1"><field name="TEXT">${e}</field></block>`;
90
90
  return p.xml.textToDom(t);
91
91
  }
92
- function $t(e) {
92
+ function tn(e) {
93
93
  let t = `<block type="math_number_v1"><field name="NUM">${e}</field></block>`;
94
94
  return p.xml.textToDom(t);
95
95
  }
96
- function en(e) {
96
+ function nn(e) {
97
97
  let t = `<block type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></block>`;
98
98
  return p.xml.textToDom(t);
99
99
  }
100
- function tn(e, t) {
100
+ function rn(e, t) {
101
101
  let n = null;
102
- return t === "string" ? n = Qt("") : t === "integer" || t === "decimal" ? n = $t(0) : t === "boolean" ? n = en(!1) : t === "enum" || t === "dateTime" ? n = Qt("") : console.assert(!1), n ? re.domToBlock(n, e) : null;
102
+ return t === "string" ? n = en("") : t === "integer" || t === "decimal" ? n = tn(0) : t === "boolean" ? n = nn(!1) : t === "enum" || t === "dateTime" ? n = en("") : console.assert(!1), n ? re.domToBlock(n, e) : null;
103
103
  }
104
104
  //#endregion
105
105
  //#region src/core/utils/common/check.ts
106
- function nn(e) {
106
+ function an(e) {
107
107
  return e === "string" ? "String" : e === "number" ? "Number" : e === "boolean" ? "Boolean" : e === "array" ? "Array" : e === "object" ? "Object" : (e === "any" || console.assert(!1), null);
108
108
  }
109
- function rn(e) {
110
- return e.array ? "Array" : e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Kt(e.items) : e.ui === "multiTypes" ? Kt(e.types) : e.ui === "selectComp" ? "Comp" : e.ui === "selectSlot" ? "Slot" : e.ui === "selectAdaptSlot" ? "AdaptSlot" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
109
+ function on(e) {
110
+ return e.array ? "Array" : e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Jt(e.items) : e.ui === "multiTypes" ? Jt(e.types) : e.ui === "selectComp" ? "Comp" : e.ui === "selectSlot" ? "Slot" : e.ui === "selectAdaptSlot" ? "AdaptSlot" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
111
111
  }
112
- function an(e) {
112
+ function sn(e) {
113
113
  return e === "string" ? "String" : e === "integer" || e === "decimal" ? "Number" : e === "boolean" ? "Boolean" : e === "enum" || e === "dateTime" ? "String" : (console.assert(!1), null);
114
114
  }
115
115
  //#endregion
116
116
  //#region src/core/utils/common/colour.ts
117
- var on = /* @__PURE__ */ "#F44336.#FFEBEE.#FFCDD2.#EF9A9A.#E57373.#EF5350.#E53935.#D32F2F.#C62828.#B71C1C.#FF8A80.#FF5252.#FF1744.#D50000.#e91e63.#fce4ec.#f8bbd0.#f48fb1.#f06292.#ec407a.#d81b60.#c2185b.#ad1457.#880e4f.#ff80ab.#ff4081.#f50057.#c51162.#9c27b0.#f3e5f5.#e1bee7.#ce93d8.#ba68c8.#ab47bc.#8e24aa.#7b1fa2.#6a1b9a.#4a148c.#ea80fc.#e040fb.#d500f9.#aa00ff.#673ab7.#ede7f6.#d1c4e9.#b39ddb.#9575cd.#7e57c2.#5e35b1.#512da8.#4527a0.#311b92.#b388ff.#7c4dff.#651fff.#6200ea.#3f51b5.#e8eaf6.#c5cae9.#9fa8da.#7986cb.#5c6bc0.#3949ab.#303f9f.#283593.#1a237e.#8c9eff.#536dfe.#3d5afe.#304ffe.#2196F3.#E3F2FD.#BBDEFB.#90CAF9.#64B5F6.#42A5F5.#1E88E5.#1976D2.#1565C0.#0D47A1.#82B1FF.#448AFF.#2979FF.#2962FF.#03a9f4.#e1f5fe.#b3e5fc.#81d4fa.#4fc3f7.#29b6f6.#039be5.#0288d1.#0277bd.#01579b.#80d8ff.#40c4ff.#00b0ff.#0091ea.#00bcd4.#e0f7fa.#b2ebf2.#80deea.#4dd0e1.#26c6da.#00acc1.#0097a7.#00838f.#006064.#84ffff.#18ffff.#00e5ff.#00b8d4.#009688.#e0f2f1.#b2dfdb.#80cbc4.#4db6ac.#26a69a.#00897b.#00796b.#00695c.#004d40.#a7ffeb.#64ffda.#1de9b6.#00bfa5.#4CAF50.#E8F5E9.#C8E6C9.#A5D6A7.#81C784.#66BB6A.#43A047.#388E3C.#2E7D32.#1B5E20.#B9F6CA.#69F0AE.#00E676.#00C853.#8bc34a.#f1f8e9.#dcedc8.#c5e1a5.#aed581.#9ccc65.#7cb342.#689f38.#558b2f.#33691e.#ccff90.#b2ff59.#76ff03.#64dd17.#cddc39.#f9fbe7.#f0f4c3.#e6ee9c.#dce775.#d4e157.#c0ca33.#afb42b.#9e9d24.#827717.#f4ff81.#eeff41.#c6ff00.#aeea00.#ffeb3b.#fffde7.#fff9c4.#fff59d.#fff176.#ffee58.#fdd835.#fbc02d.#f9a825.#f57f17.#ffff8d.#ffff00.#ffea00.#ffd600.#ffc107.#fff8e1.#ffecb3.#ffe082.#ffd54f.#ffca28.#ffb300.#ffa000.#ff8f00.#ff6f00.#ffe57f.#ffd740.#ffc400.#ffab00.#ff9800.#fff3e0.#ffe0b2.#ffcc80.#ffb74d.#ffa726.#fb8c00.#f57c00.#ef6c00.#e65100.#ffd180.#ffab40.#ff9100.#ff6d00.#ff5722.#fbe9e7.#ffccbc.#ffab91.#ff8a65.#ff7043.#f4511e.#e64a19.#d84315.#bf360c.#ff9e80.#ff6e40.#ff3d00.#dd2c00.#795548.#efebe9.#d7ccc8.#bcaaa4.#a1887f.#8d6e63.#6d4c41.#5d4037.#4e342e.#3e2723.#.#.#.#.#607d8b.#eceff1.#cfd8dc.#b0bec5.#90a4ae.#78909c.#546e7a.#455a64.#37474f.#263238.#.#.#.#.#9e9e9e.#fafafa.#f5f5f5.#eeeeee.#e0e0e0.#bdbdbd.#757575.#616161.#424242.#212121.#.#.#.#.#000000.#FFFFFF.#FFFFFF00".split(".");
117
+ var cn = /* @__PURE__ */ "#F44336.#FFEBEE.#FFCDD2.#EF9A9A.#E57373.#EF5350.#E53935.#D32F2F.#C62828.#B71C1C.#FF8A80.#FF5252.#FF1744.#D50000.#e91e63.#fce4ec.#f8bbd0.#f48fb1.#f06292.#ec407a.#d81b60.#c2185b.#ad1457.#880e4f.#ff80ab.#ff4081.#f50057.#c51162.#9c27b0.#f3e5f5.#e1bee7.#ce93d8.#ba68c8.#ab47bc.#8e24aa.#7b1fa2.#6a1b9a.#4a148c.#ea80fc.#e040fb.#d500f9.#aa00ff.#673ab7.#ede7f6.#d1c4e9.#b39ddb.#9575cd.#7e57c2.#5e35b1.#512da8.#4527a0.#311b92.#b388ff.#7c4dff.#651fff.#6200ea.#3f51b5.#e8eaf6.#c5cae9.#9fa8da.#7986cb.#5c6bc0.#3949ab.#303f9f.#283593.#1a237e.#8c9eff.#536dfe.#3d5afe.#304ffe.#2196F3.#E3F2FD.#BBDEFB.#90CAF9.#64B5F6.#42A5F5.#1E88E5.#1976D2.#1565C0.#0D47A1.#82B1FF.#448AFF.#2979FF.#2962FF.#03a9f4.#e1f5fe.#b3e5fc.#81d4fa.#4fc3f7.#29b6f6.#039be5.#0288d1.#0277bd.#01579b.#80d8ff.#40c4ff.#00b0ff.#0091ea.#00bcd4.#e0f7fa.#b2ebf2.#80deea.#4dd0e1.#26c6da.#00acc1.#0097a7.#00838f.#006064.#84ffff.#18ffff.#00e5ff.#00b8d4.#009688.#e0f2f1.#b2dfdb.#80cbc4.#4db6ac.#26a69a.#00897b.#00796b.#00695c.#004d40.#a7ffeb.#64ffda.#1de9b6.#00bfa5.#4CAF50.#E8F5E9.#C8E6C9.#A5D6A7.#81C784.#66BB6A.#43A047.#388E3C.#2E7D32.#1B5E20.#B9F6CA.#69F0AE.#00E676.#00C853.#8bc34a.#f1f8e9.#dcedc8.#c5e1a5.#aed581.#9ccc65.#7cb342.#689f38.#558b2f.#33691e.#ccff90.#b2ff59.#76ff03.#64dd17.#cddc39.#f9fbe7.#f0f4c3.#e6ee9c.#dce775.#d4e157.#c0ca33.#afb42b.#9e9d24.#827717.#f4ff81.#eeff41.#c6ff00.#aeea00.#ffeb3b.#fffde7.#fff9c4.#fff59d.#fff176.#ffee58.#fdd835.#fbc02d.#f9a825.#f57f17.#ffff8d.#ffff00.#ffea00.#ffd600.#ffc107.#fff8e1.#ffecb3.#ffe082.#ffd54f.#ffca28.#ffb300.#ffa000.#ff8f00.#ff6f00.#ffe57f.#ffd740.#ffc400.#ffab00.#ff9800.#fff3e0.#ffe0b2.#ffcc80.#ffb74d.#ffa726.#fb8c00.#f57c00.#ef6c00.#e65100.#ffd180.#ffab40.#ff9100.#ff6d00.#ff5722.#fbe9e7.#ffccbc.#ffab91.#ff8a65.#ff7043.#f4511e.#e64a19.#d84315.#bf360c.#ff9e80.#ff6e40.#ff3d00.#dd2c00.#795548.#efebe9.#d7ccc8.#bcaaa4.#a1887f.#8d6e63.#6d4c41.#5d4037.#4e342e.#3e2723.#.#.#.#.#607d8b.#eceff1.#cfd8dc.#b0bec5.#90a4ae.#78909c.#546e7a.#455a64.#37474f.#263238.#.#.#.#.#9e9e9e.#fafafa.#f5f5f5.#eeeeee.#e0e0e0.#bdbdbd.#757575.#616161.#424242.#212121.#.#.#.#.#000000.#FFFFFF.#FFFFFF00".split(".");
118
118
  //#endregion
119
119
  //#region src/core/utils/common/parameter.ts
120
- function sn(e, t, n, r) {
120
+ function ln(e, t, n, r) {
121
121
  let i = `
122
122
  <block type="parameter_v1">
123
123
  <mutation key="${t}" name="${n}" locale="${r ? "TRUE" : "FALSE"}"/>
@@ -136,7 +136,7 @@ function V(e, t) {
136
136
  if (e && e.key === r && e.name === i && e.locale === a) return;
137
137
  s.dispose();
138
138
  }
139
- s = sn(e.workspace, r, i, a), s.outputConnection.connect(o);
139
+ s = ln(e.workspace, r, i, a), s.outputConnection.connect(o);
140
140
  });
141
141
  } finally {
142
142
  x.enable();
@@ -144,56 +144,56 @@ function V(e, t) {
144
144
  }
145
145
  //#endregion
146
146
  //#region src/core/utils/common/shadow.ts
147
- function cn(e) {
147
+ function un(e) {
148
148
  let t = `<shadow type="text_v1"><field name="TEXT">${e}</field></shadow>`;
149
149
  return p.xml.textToDom(t);
150
150
  }
151
- function ln(e) {
151
+ function dn(e) {
152
152
  let t = `<shadow type="math_number_v1"><field name="NUM">${e}</field></shadow>`;
153
153
  return p.xml.textToDom(t);
154
154
  }
155
- function un(e) {
155
+ function fn(e) {
156
156
  let t = `<shadow type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></shadow>`;
157
157
  return p.xml.textToDom(t);
158
158
  }
159
- function dn() {
159
+ function pn() {
160
160
  return p.xml.textToDom("<shadow type=\"list_create_v1\"></shadow>");
161
161
  }
162
- function fn() {
162
+ function mn() {
163
163
  return p.xml.textToDom("<shadow type=\"object_create_v1\"></shadow>");
164
164
  }
165
- function pn(e) {
166
- let t = `<shadow type="${Gt(e)}"></shadow>`;
165
+ function hn(e) {
166
+ let t = `<shadow type="${qt(e)}"></shadow>`;
167
167
  return p.xml.textToDom(t);
168
168
  }
169
- function mn(e) {
170
- let t = `<shadow type="${Gt(e)}"></shadow>`;
169
+ function gn(e) {
170
+ let t = `<shadow type="${qt(e)}"></shadow>`;
171
171
  return p.xml.textToDom(t);
172
172
  }
173
- function hn() {
173
+ function _n() {
174
174
  return p.xml.textToDom("<shadow type=\"select_comp_v1\"></shadow>");
175
175
  }
176
- function gn() {
176
+ function vn() {
177
177
  return p.xml.textToDom("<shadow type=\"select_slot_v1\"></shadow>");
178
178
  }
179
- function _n(e) {
179
+ function yn(e) {
180
180
  let t = `<shadow type="color_picker_v1"><field name="COLOR">${e}</field></shadow>`;
181
181
  return p.xml.textToDom(t);
182
182
  }
183
- function vn() {
183
+ function bn() {
184
184
  return p.xml.textToDom("\n<shadow type=\"app_bind_entry_v1\">\n <field name=\"KIND\">notSet</field>\n</shadow>");
185
185
  }
186
186
  function H(e) {
187
187
  let t = null;
188
- return e === "string" ? t = cn("") : e === "number" ? t = ln(0) : e === "boolean" ? t = un(!1) : e === "array" ? t = dn() : e === "object" ? t = fn() : e === "any" ? t = null : console.assert(!1), t;
188
+ return e === "string" ? t = un("") : e === "number" ? t = dn(0) : e === "boolean" ? t = fn(!1) : e === "array" ? t = pn() : e === "object" ? t = mn() : e === "any" ? t = null : console.assert(!1), t;
189
189
  }
190
- function yn(e) {
190
+ function xn(e) {
191
191
  let t = null;
192
- return e.array ? t = dn() : e.ui === "dummy" ? t = null : e.ui === "strInput" ? t = cn(e.default) : e.ui === "numInput" ? t = ln(e.default) : e.ui === "switch" ? t = un(e.default) : e.ui === "select" ? t = pn(e.items) : e.ui === "multiTypes" ? t = mn(e.types) : e.ui === "selectComp" ? t = hn() : e.ui === "selectSlot" ? t = gn() : e.ui === "colorPicker" ? t = _n(e.default ?? "#ff0000") : console.assert(!1), t;
192
+ return e.array ? t = pn() : e.ui === "dummy" ? t = null : e.ui === "strInput" ? t = un(e.default) : e.ui === "numInput" ? t = dn(e.default) : e.ui === "switch" ? t = fn(e.default) : e.ui === "select" ? t = hn(e.items) : e.ui === "multiTypes" ? t = gn(e.types) : e.ui === "selectComp" ? t = _n() : e.ui === "selectSlot" ? t = vn() : e.ui === "colorPicker" ? t = yn(e.default ?? "#ff0000") : console.assert(!1), t;
193
193
  }
194
194
  //#endregion
195
195
  //#region src/core/utils/app/argument.ts
196
- function bn() {
196
+ function Sn() {
197
197
  let { activeObject: e, activePage: t } = S.app, n = [];
198
198
  if (e.type === "page" && t.meta.arguments) for (let { id: e, name: r, type: i } of t.meta.arguments) n.push({
199
199
  key: e,
@@ -202,7 +202,7 @@ function bn() {
202
202
  });
203
203
  return n;
204
204
  }
205
- function xn(e) {
205
+ function Cn(e) {
206
206
  let { activeObject: t, activePage: n } = S.app;
207
207
  if (t.type === "page") {
208
208
  let t = n.meta.arguments?.find((t) => t.id === e);
@@ -213,9 +213,9 @@ function xn(e) {
213
213
  };
214
214
  }
215
215
  }
216
- function Sn() {
216
+ function wn() {
217
217
  let e = [];
218
- return bn().forEach(({ key: t, name: n }) => {
218
+ return Sn().forEach(({ key: t, name: n }) => {
219
219
  e.push([n, t]);
220
220
  }), F(e);
221
221
  }
@@ -236,7 +236,7 @@ y.get_page_argument_v1 = {
236
236
  }, 0);
237
237
  },
238
238
  genArgumentOpts_: function() {
239
- return Sn();
239
+ return wn();
240
240
  },
241
241
  onchange: function(e) {
242
242
  if (e.type === x.BLOCK_CHANGE) {
@@ -247,7 +247,7 @@ y.get_page_argument_v1 = {
247
247
  }
248
248
  },
249
249
  onArgumentChange_: function(e) {
250
- let t = xn(e);
250
+ let t = Cn(e);
251
251
  if (!t) {
252
252
  console.assert(!1);
253
253
  return;
@@ -255,10 +255,10 @@ y.get_page_argument_v1 = {
255
255
  this.argument.key = t.key, this.argument.name = t.name, this.argument.type = t.type, this.updateShape_();
256
256
  },
257
257
  updateShape_: function() {
258
- this.setOutput(!0, nn(this.argument.type));
258
+ this.setOutput(!0, an(this.argument.type));
259
259
  },
260
260
  checkWarning_: function() {
261
- let e = xn(this.argument.key);
261
+ let e = Cn(this.argument.key);
262
262
  if (!e) {
263
263
  this.setWarningText(P("WARN_ARGUMENT_NOT_FOUND"));
264
264
  return;
@@ -275,14 +275,14 @@ y.get_page_argument_v1 = {
275
275
  };
276
276
  //#endregion
277
277
  //#region src/core/blocks/app/define/items/v1/index.ts
278
- var Cn = (e, t) => {
279
- let n = Gt(e), r = Kt(e);
278
+ var Tn = (e, t) => {
279
+ let n = qt(e), r = Jt(e);
280
280
  y[n] = {
281
281
  init: function() {
282
282
  this.appendDummyInput().appendField(new b(() => this.genOpts_()), "ITEM"), this.setOutput(!0, r), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl("");
283
283
  },
284
284
  genOpts_: function() {
285
- let { i18n: e } = ot, n = [];
285
+ let { i18n: e } = ct, n = [];
286
286
  for (let { title: r, value: i } of t) n.push([e.global.t(r), i]);
287
287
  return F(n);
288
288
  }
@@ -291,14 +291,14 @@ var Cn = (e, t) => {
291
291
  return [t(e.getFieldValue("ITEM")), _.ATOMIC];
292
292
  };
293
293
  };
294
- for (let e in We) {
295
- let t = We[e];
296
- for (let e in t.items) Cn(e, t.items[e]);
294
+ for (let e in Ke) {
295
+ let t = Ke[e];
296
+ for (let e in t.items) Tn(e, Me(t.items[e]));
297
297
  }
298
298
  //#endregion
299
299
  //#region src/core/blocks/app/define/types/v1/index.ts
300
- var wn = ye(), Tn = (e, t) => {
301
- let n = Gt(e), i = Kt(e);
300
+ var En = ye(), Dn = (e, t) => {
301
+ let n = qt(e), i = Jt(e);
302
302
  y[n] = {
303
303
  init: function() {
304
304
  this.value = t[0].default, this.appendDummyInput("DUMMY").appendField(new b(() => this.genOpts_()), "TYPE"), this.setOutput(!0, i), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl(""), this.updateShape_();
@@ -312,7 +312,7 @@ var wn = ye(), Tn = (e, t) => {
312
312
  }, 0);
313
313
  },
314
314
  genOpts_: function() {
315
- let { i18n: e } = ot, n = [];
315
+ let { i18n: e } = ct, n = [];
316
316
  for (let { title: r, value: i } of t) n.push([e.global.t(r), i]);
317
317
  return F(n);
318
318
  },
@@ -339,23 +339,23 @@ var wn = ye(), Tn = (e, t) => {
339
339
  if (!n) return;
340
340
  e.removeField("VALUE", !0), e.removeField("SUFFIX", !0);
341
341
  let i, a;
342
- if (n.trait === "pixel") i = new r(Ue(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
342
+ if (n.trait === "pixel") i = new r(Ge(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
343
343
  this.value = e + "px";
344
344
  }), a = "px";
345
- else if (n.trait === "percent") i = new r(He(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
345
+ else if (n.trait === "percent") i = new r(We(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
346
346
  this.value = e + "%";
347
347
  }), a = "%";
348
- else if (n.trait === "hexColor") i = new wn.FieldColour(this.value, (e) => {
348
+ else if (n.trait === "hexColor") i = new En.FieldColour(this.value, (e) => {
349
349
  this.value = e;
350
350
  }, {
351
- colourOptions: on,
351
+ colourOptions: cn,
352
352
  columns: 14
353
353
  });
354
354
  else if (n.trait === "themeColor") {
355
- let { i18n: e } = ot;
355
+ let { i18n: e } = ct;
356
356
  i = new b(() => {
357
357
  let t = [];
358
- for (let { value: n, title: r } of Ge) t.push([e.global.t(r), n]);
358
+ for (let { value: n, title: r } of qe) t.push([e.global.t(r), n]);
359
359
  return t;
360
360
  }, (e) => {
361
361
  this.value = e;
@@ -375,13 +375,13 @@ var wn = ye(), Tn = (e, t) => {
375
375
  return [t(e.value), _.ATOMIC];
376
376
  };
377
377
  };
378
- for (let e in We) {
379
- let t = We[e];
380
- for (let e in t.types) Tn(e, t.types[e]);
378
+ for (let e in Ke) {
379
+ let t = Ke[e];
380
+ for (let e in t.types) Dn(e, Pe(t.types[e]));
381
381
  }
382
382
  //#endregion
383
383
  //#region src/core/utils/app/app.ts
384
- function En() {
384
+ function On() {
385
385
  let e = [], { appList: t } = S.app;
386
386
  for (let { id: n, name: r } of t) e.push({
387
387
  id: n,
@@ -389,26 +389,26 @@ function En() {
389
389
  });
390
390
  return e;
391
391
  }
392
- function Dn(e) {
392
+ function kn(e) {
393
393
  let { appList: t } = S.app, n = t.find((t) => t.id === e);
394
394
  if (n) return {
395
395
  id: n.id,
396
396
  name: n.name
397
397
  };
398
398
  }
399
- function On() {
399
+ function An() {
400
400
  let e = [];
401
- return En().forEach(({ id: t, name: n }) => {
401
+ return On().forEach(({ id: t, name: n }) => {
402
402
  e.push([n, t]);
403
403
  }), F(e);
404
404
  }
405
405
  //#endregion
406
406
  //#region src/core/utils/app/node.ts
407
- function kn(e, t, n, r, i) {
407
+ function jn(e, t, n, r, i) {
408
408
  let { activeObject: a, activePage: o, activeComp: s, depends: c } = S.app;
409
409
  if (e.events && e.events.length > 0) return !1;
410
410
  if (C[e.key] && C[e.key][t]) {
411
- for (let { keys: n, raw: r } of C[e.key][t]) if (!Yt(n, r)) return !1;
411
+ for (let { keys: n, raw: r } of C[e.key][t]) if (!Zt(n, r)) return !1;
412
412
  }
413
413
  if (L(e.key) && r) {
414
414
  let e = c[r];
@@ -444,7 +444,7 @@ function kn(e, t, n, r, i) {
444
444
  }
445
445
  if (I(e.key) && a.type === "comp" && s.meta.events && s.meta.events.length > 0 || I(e.key) && a.type === "comp" && s.meta.properties && s.meta.properties.length > 0) return !1;
446
446
  if (I(e.key) && a.type === "comp" && i) {
447
- let { kind: e, mainKey: t, slotKey: n } = it(i);
447
+ let { kind: e, mainKey: t, slotKey: n } = ot(i);
448
448
  if (e === "elementSlot") {
449
449
  let e = w(t);
450
450
  if (e && e.slots) {
@@ -466,7 +466,7 @@ function kn(e, t, n, r, i) {
466
466
  }
467
467
  return !0;
468
468
  }
469
- function An(e, t) {
469
+ function Mn(e, t) {
470
470
  let { activeObject: n, activeComp: r } = S.app;
471
471
  if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
472
472
  let e = r.meta.slots.find((e) => e.id === t);
@@ -478,7 +478,7 @@ function An(e, t) {
478
478
  }
479
479
  return !(I(e.key) && n.type === "comp" && r.meta.events && r.meta.events.length > 0);
480
480
  }
481
- function jn(e, t, n) {
481
+ function Nn(e, t, n) {
482
482
  let { activeObject: r, activeComp: i, depends: a } = S.app;
483
483
  if (e.methods && e.methods.length > 0) return !1;
484
484
  if (L(e.key) && t) {
@@ -491,7 +491,7 @@ function jn(e, t, n) {
491
491
  }
492
492
  if (I(e.key) && r.type === "comp" && i.meta.methods && i.meta.methods.length > 0) return !1;
493
493
  if (I(e.key) && n && r.type === "comp") {
494
- let { kind: e, mainKey: t, slotKey: r } = it(n);
494
+ let { kind: e, mainKey: t, slotKey: r } = ot(n);
495
495
  if (e === "elementSlot") {
496
496
  let e = w(t);
497
497
  if (e && e.slots) {
@@ -508,7 +508,7 @@ function jn(e, t, n) {
508
508
  }
509
509
  return !0;
510
510
  }
511
- function Mn(e, t) {
511
+ function Pn(e, t) {
512
512
  let { activeObject: n, activeComp: r } = S.app;
513
513
  if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
514
514
  let e = r.meta.slots.find((e) => e.id === t);
@@ -520,7 +520,7 @@ function Mn(e, t) {
520
520
  }
521
521
  return !(I(e.key) && n.type === "comp" && r.meta.methods && r.meta.methods.length > 0);
522
522
  }
523
- function Nn(e, t) {
523
+ function Fn(e, t) {
524
524
  let { activeObject: n, activeComp: r } = S.app;
525
525
  if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
526
526
  let e = r.meta.slots.find((e) => e.id === t);
@@ -539,7 +539,7 @@ function Nn(e, t) {
539
539
  }
540
540
  return !0;
541
541
  }
542
- function Pn(e, t, n, r, i) {
542
+ function In(e, t, n, r, i) {
543
543
  let { activeObject: a, activeComp: o, depends: s } = S.app;
544
544
  if (C[e.key] && C[e.key][t] && C[e.key][t].length > 0) return !1;
545
545
  if (L(e.key) && r) {
@@ -560,7 +560,7 @@ function Pn(e, t, n, r, i) {
560
560
  }
561
561
  if (I(e.key) && a.type === "comp" && o.meta.properties && o.meta.properties.length > 0) return !1;
562
562
  if (I(e.key) && i && a.type === "comp") {
563
- let { kind: e, mainKey: t, slotKey: n } = it(i);
563
+ let { kind: e, mainKey: t, slotKey: n } = ot(i);
564
564
  if (e === "elementSlot") {
565
565
  let e = w(t);
566
566
  if (e && e.slots) {
@@ -577,10 +577,10 @@ function Pn(e, t, n, r, i) {
577
577
  }
578
578
  return !0;
579
579
  }
580
- function Fn(e, t, n, r, i) {
580
+ function Ln(e, t, n, r, i) {
581
581
  let { activeObject: a, activeComp: o, depends: s } = S.app;
582
582
  if (C[e.key] && C[e.key][t]) {
583
- for (let { keys: n, raw: r } of C[e.key][t]) if (!Yt(n, r)) return !1;
583
+ for (let { keys: n, raw: r } of C[e.key][t]) if (!Zt(n, r)) return !1;
584
584
  }
585
585
  if (L(e.key) && r) {
586
586
  let e = s[r];
@@ -600,7 +600,7 @@ function Fn(e, t, n, r, i) {
600
600
  }
601
601
  if (I(e.key) && a.type === "comp" && o.meta.properties && o.meta.properties.length > 0) return !1;
602
602
  if (I(e.key) && i && a.type === "comp") {
603
- let { kind: e, mainKey: t, slotKey: n } = it(i);
603
+ let { kind: e, mainKey: t, slotKey: n } = ot(i);
604
604
  if (e === "elementSlot") {
605
605
  let e = w(t);
606
606
  if (e && e.slots) {
@@ -617,30 +617,30 @@ function Fn(e, t, n, r, i) {
617
617
  }
618
618
  return !0;
619
619
  }
620
- function In(e, t, n, r, i, a) {
621
- return e ? e === "onEvent" ? kn(t, n, r, i, a) : e === "triggerEvent" ? An(t, r) : e === "callMethod" ? jn(t, i, a) : e === "implementMethod" ? Mn(t, r) : e === "implementMethodOutput" ? Nn(t, r) : e === "getProperty" ? Pn(t, n, r, i, a) : e === "setProperty" ? Fn(t, n, r, i, a) : !1 : !1;
620
+ function Rn(e, t, n, r, i, a) {
621
+ return e ? e === "onEvent" ? jn(t, n, r, i, a) : e === "triggerEvent" ? Mn(t, r) : e === "callMethod" ? Nn(t, i, a) : e === "implementMethod" ? Pn(t, r) : e === "implementMethodOutput" ? Fn(t, r) : e === "getProperty" ? In(t, n, r, i, a) : e === "setProperty" ? Ln(t, n, r, i, a) : !1 : !1;
622
622
  }
623
623
  function U(e) {
624
- let { activeObject: t } = S.app, n = Me(t.type, t.subtype);
624
+ let { activeObject: t } = S.app, n = Ne(t.type, t.subtype);
625
625
  for (let r of t.nodes) {
626
626
  let t = w(r.key);
627
627
  if (!t) {
628
628
  console.assert(!1, "invalid element", r.key);
629
629
  continue;
630
630
  }
631
- if (!In(e, t, n, r.slot, r.comp, r.adaptSlot)) return !0;
631
+ if (!Rn(e, t, n, r.slot, r.comp, r.adaptSlot)) return !0;
632
632
  }
633
633
  return !1;
634
634
  }
635
- function Ln(e) {
636
- let { activeObject: t } = S.app, n = [], r = Me(t.type, t.subtype);
635
+ function zn(e) {
636
+ let { activeObject: t } = S.app, n = [], r = Ne(t.type, t.subtype);
637
637
  for (let i of t.nodes) {
638
638
  let t = w(i.key);
639
639
  if (!t) {
640
640
  console.assert(!1, "invalid element", i.key);
641
641
  continue;
642
642
  }
643
- In(e, t, r, i.slot, i.comp, i.adaptSlot) || n.push({
643
+ Rn(e, t, r, i.slot, i.comp, i.adaptSlot) || n.push({
644
644
  id: i.id,
645
645
  key: i.key,
646
646
  name: t.name,
@@ -664,8 +664,8 @@ function W(e) {
664
664
  alias: n.alias
665
665
  };
666
666
  }
667
- function Rn(e) {
668
- let { i18n: t } = ot, n = [], r = Ln(e);
667
+ function Bn(e) {
668
+ let { i18n: t } = ct, n = [], r = zn(e);
669
669
  for (let { id: e, name: i, alias: a } of r) {
670
670
  let r = t.global.t(i);
671
671
  a && (r += " / " + a), n.push([r, e]);
@@ -674,33 +674,33 @@ function Rn(e) {
674
674
  }
675
675
  //#endregion
676
676
  //#region src/core/utils/app/state.ts
677
- function zn() {
677
+ function Vn() {
678
678
  let { activeObject: e, activePage: t, activeComp: n } = S.app;
679
679
  return e.type === "page" ? t.meta.states ?? [] : e.type === "comp" ? n.meta.states ?? [] : [];
680
680
  }
681
- function Bn(e) {
681
+ function Hn(e) {
682
682
  let { activeObject: t, activePage: n, activeComp: r } = S.app;
683
683
  if (t.type === "page") return n.meta.states?.find((t) => t.id === e);
684
684
  if (t.type === "comp") return r.meta.states?.find((t) => t.id === e);
685
685
  }
686
- function Vn() {
687
- let e = [], t = zn();
686
+ function Un() {
687
+ let e = [], t = Vn();
688
688
  for (let { id: n, name: r } of t) e.push([r, n]);
689
689
  return F(e);
690
690
  }
691
691
  //#endregion
692
692
  //#region src/core/utils/app/bind.ts
693
- function Hn() {
693
+ function Wn() {
694
694
  let e = ["notSet"];
695
- return Ln("setProperty").length > 0 && e.push("property"), zn().length > 0 && e.push("state"), e;
695
+ return zn("setProperty").length > 0 && e.push("property"), Vn().length > 0 && e.push("state"), e;
696
696
  }
697
- function Un() {
698
- let { i18n: e } = ot;
699
- return F(Hn().map((t) => t === "notSet" ? [e.global.t(`x-runtime-lib.${t}`), t] : [P(`APP_${De(t)}`), t]));
697
+ function Gn() {
698
+ let { i18n: e } = ct;
699
+ return F(Wn().map((t) => t === "notSet" ? [e.global.t(`x-runtime-lib.${t}`), t] : [P(`APP_${De(t)}`), t]));
700
700
  }
701
701
  //#endregion
702
702
  //#region src/core/utils/app/comp.ts
703
- function Wn() {
703
+ function Kn() {
704
704
  let { activeApp: e } = S.app, t = [{
705
705
  id: "",
706
706
  name: ""
@@ -711,7 +711,7 @@ function Wn() {
711
711
  });
712
712
  return t;
713
713
  }
714
- function Gn(e) {
714
+ function qn(e) {
715
715
  let { activeApp: t } = S.app;
716
716
  if (!e) return {
717
717
  id: "",
@@ -723,9 +723,9 @@ function Gn(e) {
723
723
  name: n.name
724
724
  };
725
725
  }
726
- function Kn() {
727
- let { i18n: e } = ot, t = [];
728
- return Wn().forEach(({ id: n, name: r }) => {
726
+ function Jn() {
727
+ let { i18n: e } = ct, t = [];
728
+ return Kn().forEach(({ id: n, name: r }) => {
729
729
  let i = r;
730
730
  n === "" && (i = e.global.t("x-runtime-lib.notSet")), t.push([i, n]);
731
731
  }), F(t);
@@ -753,7 +753,7 @@ function K(e) {
753
753
  type: e
754
754
  }];
755
755
  }
756
- function qn(e) {
756
+ function Yn(e) {
757
757
  let t = !0;
758
758
  switch (e) {
759
759
  case "": break;
@@ -794,8 +794,8 @@ function qn(e) {
794
794
  }
795
795
  return t;
796
796
  }
797
- function Jn(e) {
798
- let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = [], o = Me(t.type, t.subtype), s = t.nodes.find((t) => t.id === e);
797
+ function Xn(e) {
798
+ let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = [], o = Ne(t.type, t.subtype), s = t.nodes.find((t) => t.id === e);
799
799
  if (!s) return a;
800
800
  let c = w(s.key);
801
801
  if (!c) return console.assert(!1, "invalid element", s.key), a;
@@ -805,11 +805,11 @@ function Jn(e) {
805
805
  names: [n],
806
806
  params: r
807
807
  });
808
- if (C[c.key] && C[c.key][o]) for (let { keys: t, names: n, raw: r } of C[c.key][o]) Yt(t, r) || a.push({
808
+ if (C[c.key] && C[c.key][o]) for (let { keys: t, names: n, raw: r } of C[c.key][o]) Zt(t, r) || a.push({
809
809
  id: T("elementPropertyChangeEvent", e, t),
810
810
  kind: "elementPropertyChangeEvent",
811
811
  names: n,
812
- params: K(Jt(r))
812
+ params: K(Xt(r))
813
813
  });
814
814
  if (L(c.key) && s.comp) {
815
815
  let t = i[s.comp];
@@ -850,7 +850,7 @@ function Jn(e) {
850
850
  if (z(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
851
851
  let t = r.meta.slots.find((e) => e.id === s.slot);
852
852
  if (t && t.events) for (let n of t.events) a.push({
853
- id: T("customSlotEvent", e, Ne(r.id, t.id, n.id)),
853
+ id: T("customSlotEvent", e, Fe(r.id, t.id, n.id)),
854
854
  kind: "customSlotEvent",
855
855
  names: [t.name, n.name],
856
856
  params: G(n.params)
@@ -859,7 +859,7 @@ function Jn(e) {
859
859
  if (z(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
860
860
  let t = r.meta.slots.find((e) => e.id === s.slot);
861
861
  if (t && t.properties) for (let n of t.properties) a.push({
862
- id: T("customSlotPropertyChangeEvent", e, ze(r.id, t.id, n.id)),
862
+ id: T("customSlotPropertyChangeEvent", e, Ve(r.id, t.id, n.id)),
863
863
  kind: "customSlotPropertyChangeEvent",
864
864
  names: [t.name, n.name],
865
865
  params: K(n.type)
@@ -868,7 +868,7 @@ function Jn(e) {
868
868
  if (B(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
869
869
  let t = r.meta.slots.find((e) => e.id === s.slot);
870
870
  if (t && t.events) for (let n of t.events) a.push({
871
- id: T("multipleCustomSlotEvent", e, Ne(r.id, t.id, n.id)),
871
+ id: T("multipleCustomSlotEvent", e, Fe(r.id, t.id, n.id)),
872
872
  kind: "multipleCustomSlotEvent",
873
873
  names: [t.name, n.name],
874
874
  params: G(n.params)
@@ -877,7 +877,7 @@ function Jn(e) {
877
877
  if (B(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
878
878
  let t = r.meta.slots.find((e) => e.id === s.slot);
879
879
  if (t && t.properties) for (let n of t.properties) a.push({
880
- id: T("multipleCustomSlotPropertyChangeEvent", e, ze(r.id, t.id, n.id)),
880
+ id: T("multipleCustomSlotPropertyChangeEvent", e, Ve(r.id, t.id, n.id)),
881
881
  kind: "multipleCustomSlotPropertyChangeEvent",
882
882
  names: [t.name, n.name],
883
883
  params: K(n.type)
@@ -896,13 +896,13 @@ function Jn(e) {
896
896
  params: K(i)
897
897
  });
898
898
  if (I(c.key) && t.type === "comp" && s.adaptSlot) {
899
- let { kind: t, mainKey: n, slotKey: r } = it(s.adaptSlot);
899
+ let { kind: t, mainKey: n, slotKey: r } = ot(s.adaptSlot);
900
900
  if (t === "elementSlot") {
901
901
  let t = w(n);
902
902
  if (t && t.slots) {
903
903
  let i = t.slots.find((e) => e.key === r);
904
904
  if (i && i.events) for (let o of i.events) a.push({
905
- id: T("elementAdaptSlotEvent", e, Pe(n, r, o.key)),
905
+ id: T("elementAdaptSlotEvent", e, Ie(n, r, o.key)),
906
906
  kind: "elementAdaptSlotEvent",
907
907
  names: [
908
908
  t.name,
@@ -912,7 +912,7 @@ function Jn(e) {
912
912
  params: o.params
913
913
  });
914
914
  if (i && i.properties) for (let n of i.properties) a.push({
915
- id: T("elementAdaptSlotPropertyChangeEvent", e, Be(t.key, i.key, n.key)),
915
+ id: T("elementAdaptSlotPropertyChangeEvent", e, He(t.key, i.key, n.key)),
916
916
  kind: "elementAdaptSlotPropertyChangeEvent",
917
917
  names: [
918
918
  t.name,
@@ -927,7 +927,7 @@ function Jn(e) {
927
927
  if (t && t.meta.slots) {
928
928
  let i = t.meta.slots.find((e) => e.id === r);
929
929
  if (i && i.events) for (let r of i.events) a.push({
930
- id: T("customAdaptSlotEvent", e, Ne(n, i.id, r.id)),
930
+ id: T("customAdaptSlotEvent", e, Fe(n, i.id, r.id)),
931
931
  kind: "customAdaptSlotEvent",
932
932
  names: [
933
933
  t.name,
@@ -937,7 +937,7 @@ function Jn(e) {
937
937
  params: G(r.params)
938
938
  });
939
939
  if (i && i.properties) for (let r of i.properties) a.push({
940
- id: T("customAdaptSlotPropertyChangeEvent", e, ze(n, i.id, r.id)),
940
+ id: T("customAdaptSlotPropertyChangeEvent", e, Ve(n, i.id, r.id)),
941
941
  kind: "customAdaptSlotPropertyChangeEvent",
942
942
  names: [
943
943
  t.name,
@@ -966,9 +966,9 @@ function Jn(e) {
966
966
  }
967
967
  return a;
968
968
  }
969
- function Yn(e) {
969
+ function Zn(e) {
970
970
  if (!e) return;
971
- let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = Me(t.type, t.subtype), { kind: o, nodeId: s, eventKey: c } = Ye(e), l = t.nodes.find((e) => e.id === s);
971
+ let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = Ne(t.type, t.subtype), { kind: o, nodeId: s, eventKey: c } = Ze(e), l = t.nodes.find((e) => e.id === s);
972
972
  if (!l) return;
973
973
  let u = w(l.key);
974
974
  if (!u) {
@@ -990,7 +990,7 @@ function Yn(e) {
990
990
  id: e,
991
991
  kind: o,
992
992
  names: t.names,
993
- params: K(Jt(t.raw))
993
+ params: K(Xt(t.raw))
994
994
  };
995
995
  }
996
996
  } else if (o === "refEvent") {
@@ -1047,7 +1047,7 @@ function Yn(e) {
1047
1047
  }
1048
1048
  } else if (o === "customSlotEvent") {
1049
1049
  if (z(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1050
- let { compId: t, slotId: n, eventId: i } = Xe(c);
1050
+ let { compId: t, slotId: n, eventId: i } = Qe(c);
1051
1051
  if (r.id === t && l.slot === n) {
1052
1052
  let t = r.meta.slots.find((e) => e.id === n);
1053
1053
  if (t && t.events) {
@@ -1063,7 +1063,7 @@ function Yn(e) {
1063
1063
  }
1064
1064
  } else if (o === "customSlotPropertyChangeEvent") {
1065
1065
  if (z(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1066
- let { compId: t, slotId: n, eventId: i } = Xe(c);
1066
+ let { compId: t, slotId: n, eventId: i } = Qe(c);
1067
1067
  if (r.id === t && l.slot === n) {
1068
1068
  let t = r.meta.slots.find((e) => e.id === n);
1069
1069
  if (t && t.properties) {
@@ -1079,7 +1079,7 @@ function Yn(e) {
1079
1079
  }
1080
1080
  } else if (o === "multipleCustomSlotEvent") {
1081
1081
  if (B(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1082
- let { compId: t, slotId: n, eventId: i } = Xe(c);
1082
+ let { compId: t, slotId: n, eventId: i } = Qe(c);
1083
1083
  if (r.id === t && l.slot && n) {
1084
1084
  let t = r.meta.slots.find((e) => e.id === n);
1085
1085
  if (t && t.events) {
@@ -1095,7 +1095,7 @@ function Yn(e) {
1095
1095
  }
1096
1096
  } else if (o === "multipleCustomSlotPropertyChangeEvent") {
1097
1097
  if (B(u.key) && l.slot && t.type === "comp" && r.meta.slots) {
1098
- let { compId: t, slotId: n, eventId: i } = Xe(c);
1098
+ let { compId: t, slotId: n, eventId: i } = Qe(c);
1099
1099
  if (r.id === t && l.slot === n) {
1100
1100
  let t = r.meta.slots.find((e) => e.id === n);
1101
1101
  if (t && t.properties) {
@@ -1131,8 +1131,8 @@ function Yn(e) {
1131
1131
  }
1132
1132
  } else if (o === "elementAdaptSlotEvent") {
1133
1133
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1134
- let { elementKey: t, slotKey: n, eventKey: r } = Ze(c);
1135
- if (Xt(l.adaptSlot, t, n)) {
1134
+ let { elementKey: t, slotKey: n, eventKey: r } = $e(c);
1135
+ if (Qt(l.adaptSlot, t, n)) {
1136
1136
  let i = w(t);
1137
1137
  if (i && i.slots) {
1138
1138
  let t = i.slots.find((e) => e.key === n);
@@ -1154,8 +1154,8 @@ function Yn(e) {
1154
1154
  }
1155
1155
  } else if (o === "elementAdaptSlotPropertyChangeEvent") {
1156
1156
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1157
- let { elementKey: t, slotKey: n, propertyKey: r } = rt(c);
1158
- if (Xt(l.adaptSlot, t, n)) {
1157
+ let { elementKey: t, slotKey: n, propertyKey: r } = at(c);
1158
+ if (Qt(l.adaptSlot, t, n)) {
1159
1159
  let i = w(t);
1160
1160
  if (i && i.slots) {
1161
1161
  let t = i.slots.find((e) => e.key === n);
@@ -1177,8 +1177,8 @@ function Yn(e) {
1177
1177
  }
1178
1178
  } else if (o === "customAdaptSlotEvent") {
1179
1179
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1180
- let { compId: t, slotId: n, eventId: r } = Xe(c);
1181
- if (Zt(l.adaptSlot, t, n)) {
1180
+ let { compId: t, slotId: n, eventId: r } = Qe(c);
1181
+ if ($t(l.adaptSlot, t, n)) {
1182
1182
  let a = i[t];
1183
1183
  if (a && a.meta.slots) {
1184
1184
  let t = a.meta.slots.find((e) => e.id === n);
@@ -1200,8 +1200,8 @@ function Yn(e) {
1200
1200
  }
1201
1201
  } else if (o === "customAdaptSlotPropertyChangeEvent") {
1202
1202
  if (I(u.key) && t.type === "comp" && l.adaptSlot) {
1203
- let { compId: t, slotId: n, propertyId: r } = nt(c);
1204
- if (Zt(l.adaptSlot, t, n)) {
1203
+ let { compId: t, slotId: n, propertyId: r } = it(c);
1204
+ if ($t(l.adaptSlot, t, n)) {
1205
1205
  let a = i[t];
1206
1206
  if (a && a.meta.slots) {
1207
1207
  let t = a.meta.slots.find((e) => e.id === n);
@@ -1241,12 +1241,12 @@ function Yn(e) {
1241
1241
  }
1242
1242
  }
1243
1243
  }
1244
- function Xn(e) {
1245
- let t = [], n = Jn(e), r;
1246
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ke(i, a), e]);
1244
+ function Qn(e) {
1245
+ let t = [], n = Xn(e), r;
1246
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Je(i, a), e]);
1247
1247
  return F(t);
1248
1248
  }
1249
- function Zn(e) {
1249
+ function $n(e) {
1250
1250
  let { activeObject: t, activeComp: n } = S.app, r = [], i = t.nodes.find((t) => t.id === e);
1251
1251
  if (!i) return r;
1252
1252
  let a = w(i.key);
@@ -1254,7 +1254,7 @@ function Zn(e) {
1254
1254
  if (z(a.key) && i.slot && t.type === "comp" && n.meta.slots) {
1255
1255
  let t = n.meta.slots.find((e) => e.id === i.slot);
1256
1256
  if (t && t.events) for (let i of t.events) r.push({
1257
- id: T("customSlotEvent", e, Ne(n.id, t.id, i.id)),
1257
+ id: T("customSlotEvent", e, Fe(n.id, t.id, i.id)),
1258
1258
  kind: "customSlotEvent",
1259
1259
  names: [t.name, i.name],
1260
1260
  params: G(i.params)
@@ -1263,7 +1263,7 @@ function Zn(e) {
1263
1263
  if (B(a.key) && i.slot && t.type === "comp" && n.meta.slots) {
1264
1264
  let t = n.meta.slots.find((e) => e.id === i.slot);
1265
1265
  if (t && t.events) for (let i of t.events) r.push({
1266
- id: T("multipleCustomSlotEvent", e, Ne(n.id, t.id, i.id)),
1266
+ id: T("multipleCustomSlotEvent", e, Fe(n.id, t.id, i.id)),
1267
1267
  kind: "multipleCustomSlotEvent",
1268
1268
  names: [t.name, i.name],
1269
1269
  params: G(i.params)
@@ -1277,9 +1277,9 @@ function Zn(e) {
1277
1277
  });
1278
1278
  return r;
1279
1279
  }
1280
- function Qn(e) {
1280
+ function er(e) {
1281
1281
  if (!e) return;
1282
- let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, eventKey: a } = Ye(e), o = t.nodes.find((e) => e.id === i);
1282
+ let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, eventKey: a } = Ze(e), o = t.nodes.find((e) => e.id === i);
1283
1283
  if (!o) return;
1284
1284
  let s = w(o.key);
1285
1285
  if (!s) {
@@ -1288,7 +1288,7 @@ function Qn(e) {
1288
1288
  }
1289
1289
  if (r === "customSlotEvent") {
1290
1290
  if (z(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1291
- let { compId: t, slotId: i, eventId: s } = Xe(a);
1291
+ let { compId: t, slotId: i, eventId: s } = Qe(a);
1292
1292
  if (n.id === t && o.slot === i) {
1293
1293
  let t = n.meta.slots.find((e) => e.id === i);
1294
1294
  if (t && t.events) {
@@ -1304,7 +1304,7 @@ function Qn(e) {
1304
1304
  }
1305
1305
  } else if (r === "multipleCustomSlotEvent") {
1306
1306
  if (B(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1307
- let { compId: t, slotId: i, eventId: s } = Xe(a);
1307
+ let { compId: t, slotId: i, eventId: s } = Qe(a);
1308
1308
  if (n.id === t && o.slot && i) {
1309
1309
  let t = n.meta.slots.find((e) => e.id === i);
1310
1310
  if (t && t.events) {
@@ -1328,9 +1328,9 @@ function Qn(e) {
1328
1328
  };
1329
1329
  }
1330
1330
  }
1331
- function $n(e) {
1332
- let t = [], n = Zn(e), r;
1333
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ke(i, a), e]);
1331
+ function tr(e) {
1332
+ let t = [], n = $n(e), r;
1333
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Je(i, a), e]);
1334
1334
  return F(t);
1335
1335
  }
1336
1336
  //#endregion
@@ -1355,7 +1355,7 @@ function J(e) {
1355
1355
  });
1356
1356
  return t;
1357
1357
  }
1358
- function er(e) {
1358
+ function nr(e) {
1359
1359
  let t = !0;
1360
1360
  switch (e) {
1361
1361
  case "": break;
@@ -1381,13 +1381,13 @@ function er(e) {
1381
1381
  }
1382
1382
  return t;
1383
1383
  }
1384
- function tr(e) {
1384
+ function rr(e) {
1385
1385
  let { activeObject: t, activeComp: n, depends: r } = S.app, i = [], a = t.nodes.find((t) => t.id === e);
1386
1386
  if (!a) return i;
1387
1387
  let o = w(a.key);
1388
1388
  if (!o) return console.assert(!1, "inavlid element", a.key), i;
1389
1389
  if (o.methods) for (let { key: t, name: n, inputs: r, outputs: a } of o.methods) i.push({
1390
- id: Fe("elementMethod", e, t),
1390
+ id: Le("elementMethod", e, t),
1391
1391
  kind: "elementMethod",
1392
1392
  names: [n],
1393
1393
  inputs: r,
@@ -1396,7 +1396,7 @@ function tr(e) {
1396
1396
  if (L(o.key) && a.comp) {
1397
1397
  let t = r[a.comp];
1398
1398
  if (t && t.meta.methods) for (let { id: n, name: r, inputs: a, outputs: o } of t.meta.methods) i.push({
1399
- id: Fe("refMethod", e, n),
1399
+ id: Le("refMethod", e, n),
1400
1400
  kind: "refMethod",
1401
1401
  names: [r],
1402
1402
  inputs: q(a),
@@ -1406,7 +1406,7 @@ function tr(e) {
1406
1406
  if (R(o.key) && a.comp) {
1407
1407
  let t = r[a.comp];
1408
1408
  if (t && t.meta.methods) for (let { id: n, name: r, inputs: a, outputs: o } of t.meta.methods) i.push({
1409
- id: Fe("multipleRefMethod", e, n),
1409
+ id: Le("multipleRefMethod", e, n),
1410
1410
  kind: "multipleRefMethod",
1411
1411
  names: [r],
1412
1412
  inputs: q(a),
@@ -1414,20 +1414,20 @@ function tr(e) {
1414
1414
  });
1415
1415
  }
1416
1416
  if (I(o.key) && t.type === "comp" && n.meta.methods) for (let { id: t, name: r, inputs: a, outputs: o } of n.meta.methods) i.push({
1417
- id: Fe("customMethod", e, t),
1417
+ id: Le("customMethod", e, t),
1418
1418
  kind: "customMethod",
1419
1419
  names: [r],
1420
1420
  inputs: q(a),
1421
1421
  outputs: J(o)
1422
1422
  });
1423
1423
  if (I(o.key) && t.type === "comp" && a.adaptSlot) {
1424
- let { kind: t, mainKey: n, slotKey: o } = it(a.adaptSlot);
1424
+ let { kind: t, mainKey: n, slotKey: o } = ot(a.adaptSlot);
1425
1425
  if (t === "elementSlot") {
1426
1426
  let t = w(n);
1427
1427
  if (t && t.slots) {
1428
1428
  let n = t.slots.find((e) => e.key === o);
1429
1429
  if (n && n.methods) for (let r of n.methods) i.push({
1430
- id: Fe("elementAdaptSlotMethod", e, Le(t.key, n.key, r.key)),
1430
+ id: Le("elementAdaptSlotMethod", e, ze(t.key, n.key, r.key)),
1431
1431
  kind: "elementAdaptSlotMethod",
1432
1432
  names: [
1433
1433
  t.name,
@@ -1443,7 +1443,7 @@ function tr(e) {
1443
1443
  if (t && t.meta.slots) {
1444
1444
  let r = t.meta.slots.find((e) => e.id === o);
1445
1445
  if (r && r.methods) for (let a of r.methods) i.push({
1446
- id: Fe("customAdaptSlotMethod", e, Ie(n, r.id, a.id)),
1446
+ id: Le("customAdaptSlotMethod", e, Re(n, r.id, a.id)),
1447
1447
  kind: "customAdaptSlotMethod",
1448
1448
  names: [
1449
1449
  t.name,
@@ -1458,9 +1458,9 @@ function tr(e) {
1458
1458
  }
1459
1459
  return i;
1460
1460
  }
1461
- function nr(e) {
1461
+ function ir(e) {
1462
1462
  if (!e) return;
1463
- let { activeObject: t, activeComp: n, depends: r } = S.app, { kind: i, nodeId: a, methodKey: o } = Qe(e), s = t.nodes.find((e) => e.id === a);
1463
+ let { activeObject: t, activeComp: n, depends: r } = S.app, { kind: i, nodeId: a, methodKey: o } = et(e), s = t.nodes.find((e) => e.id === a);
1464
1464
  if (!s) return;
1465
1465
  let c = w(s.key);
1466
1466
  if (!c) {
@@ -1517,7 +1517,7 @@ function nr(e) {
1517
1517
  }
1518
1518
  } else if (i === "customSlotMethod") {
1519
1519
  if (I(c.key) && t.type === "comp" && n.meta.slots) {
1520
- let { slotId: t, methodId: r } = $e(o), a = n.meta.slots.find((e) => e.id === t);
1520
+ let { slotId: t, methodId: r } = tt(o), a = n.meta.slots.find((e) => e.id === t);
1521
1521
  if (a && a.methods) {
1522
1522
  let t = a.methods.find((e) => e.id === r);
1523
1523
  if (t) return {
@@ -1531,8 +1531,8 @@ function nr(e) {
1531
1531
  }
1532
1532
  } else if (i === "elementAdaptSlotMethod") {
1533
1533
  if (I(c.key) && t.type === "comp" && s.adaptSlot) {
1534
- let { elementKey: t, slotKey: n, methodKey: r } = et(o);
1535
- if (Xt(s.adaptSlot, t, n)) {
1534
+ let { elementKey: t, slotKey: n, methodKey: r } = nt(o);
1535
+ if (Qt(s.adaptSlot, t, n)) {
1536
1536
  let a = w(t);
1537
1537
  if (a && a.slots) {
1538
1538
  let t = a.slots.find((e) => e.key === n);
@@ -1554,8 +1554,8 @@ function nr(e) {
1554
1554
  }
1555
1555
  }
1556
1556
  } else if (i === "customAdaptSlotMethod" && I(c.key) && t.type === "comp" && s.adaptSlot) {
1557
- let { compId: t, slotId: n, methodId: a } = $e(o);
1558
- if (Zt(s.adaptSlot, t, n)) {
1557
+ let { compId: t, slotId: n, methodId: a } = tt(o);
1558
+ if ($t(s.adaptSlot, t, n)) {
1559
1559
  let o = r[t];
1560
1560
  if (o && o.meta.slots) {
1561
1561
  let t = o.meta.slots.find((e) => e.id === n);
@@ -1577,12 +1577,12 @@ function nr(e) {
1577
1577
  }
1578
1578
  }
1579
1579
  }
1580
- function rr(e) {
1581
- let t = [], n = tr(e), r;
1582
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([qe(i, a), e]);
1580
+ function ar(e) {
1581
+ let t = [], n = rr(e), r;
1582
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ye(i, a), e]);
1583
1583
  return F(t);
1584
1584
  }
1585
- function ir(e) {
1585
+ function or(e) {
1586
1586
  let t = !0;
1587
1587
  switch (e) {
1588
1588
  case "": break;
@@ -1608,7 +1608,7 @@ function ir(e) {
1608
1608
  }
1609
1609
  return t;
1610
1610
  }
1611
- function ar(e) {
1611
+ function sr(e) {
1612
1612
  let { activeObject: t, activeComp: n } = S.app, r = [], i = t.nodes.find((t) => t.id === e);
1613
1613
  if (!i) return r;
1614
1614
  let a = w(i.key);
@@ -1616,7 +1616,7 @@ function ar(e) {
1616
1616
  if (z(a.key) && i.slot && t.type === "comp" && n.meta.slots) {
1617
1617
  let t = n.meta.slots.find((e) => e.id === i.slot);
1618
1618
  if (t && t.methods) for (let i of t.methods) r.push({
1619
- id: Fe("customSlotMethod", e, Ie(n.id, t.id, i.id)),
1619
+ id: Le("customSlotMethod", e, Re(n.id, t.id, i.id)),
1620
1620
  kind: "customSlotMethod",
1621
1621
  names: [t.name, i.name],
1622
1622
  inputs: q(i.inputs),
@@ -1626,7 +1626,7 @@ function ar(e) {
1626
1626
  if (B(a.key) && i.slot && t.type === "comp" && n.meta.slots) {
1627
1627
  let t = n.meta.slots.find((e) => e.id === i.slot);
1628
1628
  if (t && t.methods) for (let i of t.methods) r.push({
1629
- id: Fe("multipleCustomSlotMethod", e, Ie(n.id, t.id, i.id)),
1629
+ id: Le("multipleCustomSlotMethod", e, Re(n.id, t.id, i.id)),
1630
1630
  kind: "multipleCustomSlotMethod",
1631
1631
  names: [t.name, i.name],
1632
1632
  inputs: q(i.inputs),
@@ -1634,7 +1634,7 @@ function ar(e) {
1634
1634
  });
1635
1635
  }
1636
1636
  if (I(a.key) && t.type === "comp" && n.meta.methods) for (let { id: t, name: i, inputs: a, outputs: o } of n.meta.methods) r.push({
1637
- id: Fe("customMethod", e, t),
1637
+ id: Le("customMethod", e, t),
1638
1638
  kind: "customMethod",
1639
1639
  names: [i],
1640
1640
  inputs: q(a),
@@ -1642,9 +1642,9 @@ function ar(e) {
1642
1642
  });
1643
1643
  return r;
1644
1644
  }
1645
- function or(e) {
1645
+ function cr(e) {
1646
1646
  if (!e) return;
1647
- let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, methodKey: a } = Qe(e), o = t.nodes.find((e) => e.id === i);
1647
+ let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, methodKey: a } = et(e), o = t.nodes.find((e) => e.id === i);
1648
1648
  if (!o) return;
1649
1649
  let s = w(o.key);
1650
1650
  if (!s) {
@@ -1653,7 +1653,7 @@ function or(e) {
1653
1653
  }
1654
1654
  if (r === "customSlotMethod") {
1655
1655
  if (z(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1656
- let { compId: t, slotId: i, methodId: s } = $e(a);
1656
+ let { compId: t, slotId: i, methodId: s } = tt(a);
1657
1657
  if (n.id === t && i === o.slot) {
1658
1658
  let t = n.meta.slots.find((e) => e.id === i);
1659
1659
  if (t && t.methods) {
@@ -1670,7 +1670,7 @@ function or(e) {
1670
1670
  }
1671
1671
  } else if (r === "multipleCustomSlotMethod") {
1672
1672
  if (B(s.key) && o.slot && t.type === "comp" && n.meta.slots) {
1673
- let { compId: t, slotId: i, methodId: s } = $e(a);
1673
+ let { compId: t, slotId: i, methodId: s } = tt(a);
1674
1674
  if (n.id === t && o.slot === i) {
1675
1675
  let t = n.meta.slots.find((e) => e.id === i);
1676
1676
  if (t && t.methods) {
@@ -1696,27 +1696,27 @@ function or(e) {
1696
1696
  };
1697
1697
  }
1698
1698
  }
1699
- function sr(e) {
1700
- let t = [], n = ar(e), r;
1701
- for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([qe(i, a), e]);
1699
+ function lr(e) {
1700
+ let t = [], n = sr(e), r;
1701
+ for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ye(i, a), e]);
1702
1702
  return F(t);
1703
1703
  }
1704
- function cr(e) {
1705
- let t = or(e);
1704
+ function ur(e) {
1705
+ let t = cr(e);
1706
1706
  return t ? t.outputs : [];
1707
1707
  }
1708
- function lr(e, t) {
1709
- let n = or(e);
1708
+ function dr(e, t) {
1709
+ let n = cr(e);
1710
1710
  if (n) return n.outputs?.find((e) => e.key === t);
1711
1711
  }
1712
- function ur(e) {
1713
- let t = [], n = cr(e);
1712
+ function fr(e) {
1713
+ let t = [], n = ur(e);
1714
1714
  if (n) for (let { name: e, key: r } of n) t.push([e, r]);
1715
1715
  return F(t);
1716
1716
  }
1717
1717
  //#endregion
1718
1718
  //#region src/core/utils/app/page.ts
1719
- function dr(e) {
1719
+ function pr(e) {
1720
1720
  let { appList: t } = S.app, n = [], r = t.find((t) => t.id === e);
1721
1721
  if (!r) return n;
1722
1722
  for (let { id: e, name: t } of r.pages) n.push({
@@ -1725,7 +1725,7 @@ function dr(e) {
1725
1725
  });
1726
1726
  return n;
1727
1727
  }
1728
- function fr(e, t) {
1728
+ function mr(e, t) {
1729
1729
  let { appList: n } = S.app, r = n.find((t) => t.id === e);
1730
1730
  if (!r) return;
1731
1731
  let i = r.pages.find((e) => e.id === t);
@@ -1734,21 +1734,21 @@ function fr(e, t) {
1734
1734
  name: i.name
1735
1735
  };
1736
1736
  }
1737
- function pr(e) {
1737
+ function hr(e) {
1738
1738
  let t = [];
1739
- return dr(e).forEach(({ id: e, name: n }) => {
1739
+ return pr(e).forEach(({ id: e, name: n }) => {
1740
1740
  t.push([n, e]);
1741
1741
  }), F(t);
1742
1742
  }
1743
1743
  //#endregion
1744
1744
  //#region src/core/utils/app/property.ts
1745
- function mr(e, t) {
1746
- let { activeObject: n, activeComp: r, depends: i } = S.app, a = [], o = Me(n.type, n.subtype), s = n.nodes.find((t) => t.id === e);
1745
+ function gr(e, t) {
1746
+ let { activeObject: n, activeComp: r, depends: i } = S.app, a = [], o = Ne(n.type, n.subtype), s = n.nodes.find((t) => t.id === e);
1747
1747
  if (!s) return a;
1748
1748
  let c = w(s.key);
1749
1749
  if (!c) return console.assert(!1, "invalid element", s.key), a;
1750
- if (C[c.key] && C[c.key][o]) for (let { keys: n, names: r, raw: i } of C[c.key][o]) t === "write" && Yt(n, i) || a.push({
1751
- id: Re("elementProperty", e, n),
1750
+ if (C[c.key] && C[c.key][o]) for (let { keys: n, names: r, raw: i } of C[c.key][o]) t === "write" && Zt(n, i) || a.push({
1751
+ id: Be("elementProperty", e, n),
1752
1752
  kind: "elementProperty",
1753
1753
  names: r,
1754
1754
  meta: {
@@ -1759,7 +1759,7 @@ function mr(e, t) {
1759
1759
  if (L(c.key) && s.comp) {
1760
1760
  let t = i[s.comp];
1761
1761
  if (t && t.meta.properties) for (let { id: n, name: r, type: i } of t.meta.properties) a.push({
1762
- id: Re("refProperty", e, n),
1762
+ id: Be("refProperty", e, n),
1763
1763
  kind: "refProperty",
1764
1764
  names: [r],
1765
1765
  meta: { raw: { type: i } }
@@ -1768,7 +1768,7 @@ function mr(e, t) {
1768
1768
  if (R(c.key) && s.comp) {
1769
1769
  let t = i[s.comp];
1770
1770
  if (t && t.meta.properties) for (let { id: n, name: r, type: i } of t.meta.properties) a.push({
1771
- id: Re("multipleRefProperty", e, n),
1771
+ id: Be("multipleRefProperty", e, n),
1772
1772
  kind: "multipleRefProperty",
1773
1773
  names: [r],
1774
1774
  meta: { raw: { type: i } }
@@ -1777,7 +1777,7 @@ function mr(e, t) {
1777
1777
  if (z(c.key) && s.slot && n.type === "comp" && r.meta.slots) {
1778
1778
  let t = r.meta.slots.find((e) => e.id === s.slot);
1779
1779
  if (t && t.properties) for (let n of t.properties) a.push({
1780
- id: Re("customSlotProperty", e, ze(r.id, t.id, n.id)),
1780
+ id: Be("customSlotProperty", e, Ve(r.id, t.id, n.id)),
1781
1781
  kind: "customSlotProperty",
1782
1782
  names: [t.name, n.name],
1783
1783
  meta: { raw: { type: n.type } }
@@ -1786,26 +1786,26 @@ function mr(e, t) {
1786
1786
  if (B(c.key) && s.slot && n.type === "comp" && r.meta.slots) {
1787
1787
  let t = r.meta.slots.find((e) => e.id === s.slot);
1788
1788
  if (t && t.properties) for (let n of t.properties) a.push({
1789
- id: Re("multipleCustomSlotProperty", e, ze(r.id, t.id, n.id)),
1789
+ id: Be("multipleCustomSlotProperty", e, Ve(r.id, t.id, n.id)),
1790
1790
  kind: "multipleCustomSlotProperty",
1791
1791
  names: [t.name, n.name],
1792
1792
  meta: { raw: { type: n.type } }
1793
1793
  });
1794
1794
  }
1795
1795
  if (I(c.key) && n.type === "comp" && r.meta.properties) for (let { id: t, name: n, type: i } of r.meta.properties) a.push({
1796
- id: Re("customProperty", e, t),
1796
+ id: Be("customProperty", e, t),
1797
1797
  kind: "customProperty",
1798
1798
  names: [n],
1799
1799
  meta: { raw: { type: i } }
1800
1800
  });
1801
1801
  if (I(c.key) && n.type === "comp" && s.adaptSlot) {
1802
- let { kind: n, mainKey: r, slotKey: o } = it(s.adaptSlot);
1802
+ let { kind: n, mainKey: r, slotKey: o } = ot(s.adaptSlot);
1803
1803
  if (n === "elementSlot") {
1804
1804
  let n = w(r);
1805
1805
  if (n && n.slots) {
1806
1806
  let r = n.slots.find((e) => e.key === o);
1807
1807
  if (r && r.properties) for (let i of r.properties) t === "write" && i.readonly || a.push({
1808
- id: Re("elementAdaptSlotProperty", e, Be(n.key, r.key, i.key)),
1808
+ id: Be("elementAdaptSlotProperty", e, He(n.key, r.key, i.key)),
1809
1809
  kind: "elementAdaptSlotProperty",
1810
1810
  names: [
1811
1811
  n.name,
@@ -1820,7 +1820,7 @@ function mr(e, t) {
1820
1820
  if (t && t.meta.slots) {
1821
1821
  let n = t.meta.slots.find((e) => e.id === o);
1822
1822
  if (n && n.properties) for (let i of n.properties) a.push({
1823
- id: Re("customAdaptSlotProperty", e, ze(r, n.id, i.id)),
1823
+ id: Be("customAdaptSlotProperty", e, Ve(r, n.id, i.id)),
1824
1824
  kind: "customAdaptSlotProperty",
1825
1825
  names: [
1826
1826
  t.name,
@@ -1834,9 +1834,9 @@ function mr(e, t) {
1834
1834
  }
1835
1835
  return a;
1836
1836
  }
1837
- function hr(e) {
1837
+ function _r(e) {
1838
1838
  if (!e) return;
1839
- let { activeObject: t, activeComp: n, depends: r } = S.app, i = Me(t.type, t.subtype), { kind: a, nodeId: o, propertyKey: s } = tt(e), c = t.nodes.find((e) => e.id === o);
1839
+ let { activeObject: t, activeComp: n, depends: r } = S.app, i = Ne(t.type, t.subtype), { kind: a, nodeId: o, propertyKey: s } = rt(e), c = t.nodes.find((e) => e.id === o);
1840
1840
  if (!c) return;
1841
1841
  let l = w(c.key);
1842
1842
  if (!l) {
@@ -1884,7 +1884,7 @@ function hr(e) {
1884
1884
  }
1885
1885
  } else if (a === "customSlotProperty") {
1886
1886
  if (z(l.key) && c.slot && t.type === "comp" && n.meta.slots) {
1887
- let { compId: t, slotId: r, propertyId: i } = nt(s);
1887
+ let { compId: t, slotId: r, propertyId: i } = it(s);
1888
1888
  if (n.id === t && c.slot === r) {
1889
1889
  let t = n.meta.slots.find((e) => e.id === r);
1890
1890
  if (t && t.properties) {
@@ -1900,7 +1900,7 @@ function hr(e) {
1900
1900
  }
1901
1901
  } else if (a === "multipleCustomSlotProperty") {
1902
1902
  if (B(l.key) && c.slot && t.type === "comp" && n.meta.slots) {
1903
- let { compId: t, slotId: r, propertyId: i } = nt(s);
1903
+ let { compId: t, slotId: r, propertyId: i } = it(s);
1904
1904
  if (n.id === t && c.slot === r) {
1905
1905
  let t = n.meta.slots.find((e) => e.id === r);
1906
1906
  if (t && t.properties) {
@@ -1926,8 +1926,8 @@ function hr(e) {
1926
1926
  }
1927
1927
  } else if (a === "elementAdaptSlotProperty") {
1928
1928
  if (I(l.key) && t.type === "comp" && c.adaptSlot) {
1929
- let { elementKey: t, slotKey: n, propertyKey: r } = rt(s);
1930
- if (Xt(c.adaptSlot, t, n)) {
1929
+ let { elementKey: t, slotKey: n, propertyKey: r } = at(s);
1930
+ if (Qt(c.adaptSlot, t, n)) {
1931
1931
  let i = w(t);
1932
1932
  if (i && i.slots) {
1933
1933
  let t = i.slots.find((e) => e.key === n);
@@ -1948,8 +1948,8 @@ function hr(e) {
1948
1948
  }
1949
1949
  }
1950
1950
  } else if (a === "customAdaptSlotProperty" && I(l.key) && t.type === "comp" && c.adaptSlot) {
1951
- let { compId: t, slotId: n, propertyId: i } = nt(s);
1952
- if (Zt(c.adaptSlot, t, n)) {
1951
+ let { compId: t, slotId: n, propertyId: i } = it(s);
1952
+ if ($t(c.adaptSlot, t, n)) {
1953
1953
  let o = r[t];
1954
1954
  if (o && o.meta.slots) {
1955
1955
  let t = o.meta.slots.find((e) => e.id === n);
@@ -1970,14 +1970,14 @@ function hr(e) {
1970
1970
  }
1971
1971
  }
1972
1972
  }
1973
- function gr(e, t) {
1974
- let n = [], r = mr(e, t), i;
1975
- for (let { id: e, kind: t, names: a } of r) t !== i && (i && n.push("separator"), i = t), n.push([Je(t, a), e]);
1973
+ function vr(e, t) {
1974
+ let n = [], r = gr(e, t), i;
1975
+ for (let { id: e, kind: t, names: a } of r) t !== i && (i && n.push("separator"), i = t), n.push([Xe(t, a), e]);
1976
1976
  return F(n);
1977
1977
  }
1978
1978
  //#endregion
1979
1979
  //#region src/core/utils/app/slot.ts
1980
- function _r() {
1980
+ function yr() {
1981
1981
  let { activeObject: e, activeComp: t } = S.app, n = [{
1982
1982
  id: "",
1983
1983
  name: ""
@@ -1989,7 +1989,7 @@ function _r() {
1989
1989
  });
1990
1990
  return n;
1991
1991
  }
1992
- function vr(e) {
1992
+ function br(e) {
1993
1993
  let { activeObject: t, activeComp: n } = S.app;
1994
1994
  if (t.type !== "comp" || !n.meta.slots) return;
1995
1995
  if (!e) return {
@@ -2002,8 +2002,8 @@ function vr(e) {
2002
2002
  name: r.name
2003
2003
  };
2004
2004
  }
2005
- function yr() {
2006
- let { i18n: e } = ot, t = [], n = _r();
2005
+ function xr() {
2006
+ let { i18n: e } = ct, t = [], n = yr();
2007
2007
  for (let { id: r, name: i } of n) {
2008
2008
  let n = i;
2009
2009
  r === "" && (n = e.global.t("x-runtime-lib.notSet")), t.push([n, r]);
@@ -2012,7 +2012,7 @@ function yr() {
2012
2012
  }
2013
2013
  //#endregion
2014
2014
  //#region src/core/blocks/app/event/appBind/v1/index.ts
2015
- var br = p.xml;
2015
+ var Sr = p.xml;
2016
2016
  y.app_bind_container_v1 = { init: function() {
2017
2017
  this.appendDummyInput().appendField("%{BKY_APP_V1_APP_BIND_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("event_blocks"), this.contextMenu = !1;
2018
2018
  } }, y.app_bind_item_v1 = { init: function() {
@@ -2024,7 +2024,7 @@ y.app_bind_container_v1 = { init: function() {
2024
2024
  }, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}");
2025
2025
  },
2026
2026
  mutationToDom: function() {
2027
- let e = br.createElement("mutation");
2027
+ let e = Sr.createElement("mutation");
2028
2028
  return e.setAttribute("items", String(this.itemCount_)), e;
2029
2029
  },
2030
2030
  domToMutation: function(e) {
@@ -2091,7 +2091,7 @@ y.app_bind_container_v1 = { init: function() {
2091
2091
  for (let e = this.itemCount_; this.getInput("ADD" + e); e++) this.removeInput("ADD" + e);
2092
2092
  },
2093
2093
  updateShadow_: function() {
2094
- if (!this.isInsertionMarker()) for (let e = 0; e < this.itemCount_; e++) this.getInput("ADD" + e).setShadowDom(vn());
2094
+ if (!this.isInsertionMarker()) for (let e = 0; e < this.itemCount_; e++) this.getInput("ADD" + e).setShadowDom(bn());
2095
2095
  },
2096
2096
  checkWarning_: function() {
2097
2097
  let e;
@@ -2100,11 +2100,11 @@ y.app_bind_container_v1 = { init: function() {
2100
2100
  if (!n) continue;
2101
2101
  let r;
2102
2102
  if (n.kind === "property") {
2103
- let e = hr(n.property.id);
2104
- e && (r = e.meta.element ? rn(e.meta.raw) : nn(e.meta.raw.type));
2103
+ let e = _r(n.property.id);
2104
+ e && (r = e.meta.element ? on(e.meta.raw) : an(e.meta.raw.type));
2105
2105
  } else if (n.kind === "state") {
2106
- let e = Bn(n.state.id);
2107
- e && (r = nn(e.type));
2106
+ let e = Hn(n.state.id);
2107
+ e && (r = an(e.type));
2108
2108
  }
2109
2109
  if (r && (e ||= r, r !== e)) {
2110
2110
  this.setWarningText(P("WARN_TYPE_NOT_MATCH"));
@@ -2145,16 +2145,16 @@ y.app_bind_container_v1 = { init: function() {
2145
2145
  }, 0);
2146
2146
  },
2147
2147
  genKindOpts_: function() {
2148
- return Un();
2148
+ return Gn();
2149
2149
  },
2150
2150
  genNodeOpts_: function() {
2151
- return this.kind === "property" ? Rn("setProperty") : F([]);
2151
+ return this.kind === "property" ? Bn("setProperty") : F([]);
2152
2152
  },
2153
2153
  genPropertyOpts_: function() {
2154
- return this.kind === "property" ? gr(this.node.id, "write") : F([]);
2154
+ return this.kind === "property" ? vr(this.node.id, "write") : F([]);
2155
2155
  },
2156
2156
  genStateOpts_: function() {
2157
- return this.kind === "state" ? Vn() : F([]);
2157
+ return this.kind === "state" ? Un() : F([]);
2158
2158
  },
2159
2159
  onchange: function(e) {
2160
2160
  if (e.type === x.BLOCK_CHANGE) {
@@ -2170,14 +2170,14 @@ y.app_bind_container_v1 = { init: function() {
2170
2170
  else if (this.kind === "property") {
2171
2171
  let e = this.getField("NODE");
2172
2172
  if (e.getOptions(!1), t) {
2173
- let t = Ln("setProperty")?.[0];
2173
+ let t = zn("setProperty")?.[0];
2174
2174
  e.setValue(t?.id ?? "");
2175
2175
  }
2176
2176
  this.onNodeChange_(e.getValue());
2177
2177
  } else if (this.kind === "state") {
2178
2178
  let e = this.getField("STATE");
2179
2179
  if (e.getOptions(!1), t) {
2180
- let t = zn()?.[0];
2180
+ let t = Vn()?.[0];
2181
2181
  e.setValue(t?.id ?? "");
2182
2182
  }
2183
2183
  this.onStateChange_(e.getValue());
@@ -2193,13 +2193,13 @@ y.app_bind_container_v1 = { init: function() {
2193
2193
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2194
2194
  let r = this.getField("PROPERTY");
2195
2195
  if (r.getOptions(!1), n) {
2196
- let e = mr(this.node.id, "write")?.[0];
2196
+ let e = gr(this.node.id, "write")?.[0];
2197
2197
  r.setValue(e?.id ?? "");
2198
2198
  }
2199
2199
  this.onPropertyChange_(r.getValue());
2200
2200
  },
2201
2201
  onPropertyChange_: function(e) {
2202
- let t = hr(e);
2202
+ let t = _r(e);
2203
2203
  if (!t) {
2204
2204
  console.assert(!1);
2205
2205
  return;
@@ -2207,7 +2207,7 @@ y.app_bind_container_v1 = { init: function() {
2207
2207
  this.property.id = t.id, this.property.kind = t.kind, this.property.names = t.names, this.updateShape_();
2208
2208
  },
2209
2209
  onStateChange_: function(e) {
2210
- let t = Bn(e);
2210
+ let t = Hn(e);
2211
2211
  if (!t) {
2212
2212
  console.assert(!1);
2213
2213
  return;
@@ -2231,7 +2231,7 @@ y.app_bind_container_v1 = { init: function() {
2231
2231
  return;
2232
2232
  }
2233
2233
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2234
- let t = hr(this.property.id);
2234
+ let t = _r(this.property.id);
2235
2235
  if (!t) {
2236
2236
  this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
2237
2237
  return;
@@ -2242,7 +2242,7 @@ y.app_bind_container_v1 = { init: function() {
2242
2242
  }
2243
2243
  v(t.names, this.property.names) || (this.property.names = t.names);
2244
2244
  } else if (this.kind === "state") {
2245
- let e = Bn(this.state.id);
2245
+ let e = Hn(this.state.id);
2246
2246
  if (!e) {
2247
2247
  this.setWarningText(P("WARN_STATE_NOT_FOUND"));
2248
2248
  return;
@@ -2270,12 +2270,12 @@ y.app_bind_container_v1 = { init: function() {
2270
2270
  },
2271
2271
  initData_: function() {
2272
2272
  if (this.node.id) return;
2273
- let e = Ln("onEvent")?.[0];
2273
+ let e = zn("onEvent")?.[0];
2274
2274
  if (!e) return;
2275
2275
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2276
2276
  let t = this.getField("NODE");
2277
2277
  t.getOptions(!1), t.setValue(this.node.id);
2278
- let n = Jn(this.node.id)?.[0];
2278
+ let n = Xn(this.node.id)?.[0];
2279
2279
  if (!n) return;
2280
2280
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
2281
2281
  let r = this.getField("EVENT");
@@ -2293,10 +2293,10 @@ y.app_bind_container_v1 = { init: function() {
2293
2293
  }, 0);
2294
2294
  },
2295
2295
  genNodeOpts_: function() {
2296
- return Rn("onEvent");
2296
+ return Bn("onEvent");
2297
2297
  },
2298
2298
  genEventOpts_: function() {
2299
- return Xn(this.node.id);
2299
+ return Qn(this.node.id);
2300
2300
  },
2301
2301
  onchange: function(e) {
2302
2302
  if (e.type === x.BLOCK_CHANGE) {
@@ -2316,13 +2316,13 @@ y.app_bind_container_v1 = { init: function() {
2316
2316
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2317
2317
  let r = this.getField("EVENT");
2318
2318
  if (r.getOptions(!1), n) {
2319
- let e = Jn(this.node.id)?.[0];
2319
+ let e = Xn(this.node.id)?.[0];
2320
2320
  r.setValue(e?.id ?? "");
2321
2321
  }
2322
2322
  this.onEventChange_(r.getValue());
2323
2323
  },
2324
2324
  onEventChange_: function(e) {
2325
- let t = Yn(e);
2325
+ let t = Zn(e);
2326
2326
  if (!t) {
2327
2327
  console.assert(!1);
2328
2328
  return;
@@ -2359,7 +2359,7 @@ y.app_bind_container_v1 = { init: function() {
2359
2359
  "x-runtime-lib.instance",
2360
2360
  !0
2361
2361
  ]);
2362
- let t = qn(this.event.kind);
2362
+ let t = Yn(this.event.kind);
2363
2363
  if (this.event.params) for (let n = 0; n < this.event.params.length; n++) {
2364
2364
  let { key: r, name: i } = this.event.params[n];
2365
2365
  e.push([
@@ -2382,7 +2382,7 @@ y.app_bind_container_v1 = { init: function() {
2382
2382
  return;
2383
2383
  }
2384
2384
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2385
- let t = Yn(this.event.id);
2385
+ let t = Zn(this.event.id);
2386
2386
  if (!t) {
2387
2387
  this.setWarningText(P("WARN_EVENT_NOT_FOUND"));
2388
2388
  return;
@@ -2425,12 +2425,12 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2425
2425
  },
2426
2426
  initData_: function() {
2427
2427
  if (this.node.id) return;
2428
- let e = Ln("triggerEvent")?.[0];
2428
+ let e = zn("triggerEvent")?.[0];
2429
2429
  if (!e) return;
2430
2430
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2431
2431
  let t = this.getField("NODE");
2432
2432
  t.getOptions(!1), t.setValue(this.node.id);
2433
- let n = Zn(this.node.id)?.[0];
2433
+ let n = $n(this.node.id)?.[0];
2434
2434
  if (!n) return;
2435
2435
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
2436
2436
  let r = this.getField("EVENT");
@@ -2448,10 +2448,10 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2448
2448
  }, 0);
2449
2449
  },
2450
2450
  genNodeOpts_: function() {
2451
- return Rn("triggerEvent");
2451
+ return Bn("triggerEvent");
2452
2452
  },
2453
2453
  genEventOpts_: function() {
2454
- return $n(this.node.id);
2454
+ return tr(this.node.id);
2455
2455
  },
2456
2456
  onchange: function(e) {
2457
2457
  if (e.type === x.BLOCK_CHANGE) {
@@ -2471,13 +2471,13 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2471
2471
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2472
2472
  let r = this.getField("EVENT");
2473
2473
  if (r.getOptions(!1), n) {
2474
- let e = Zn(this.node.id)?.[0];
2474
+ let e = $n(this.node.id)?.[0];
2475
2475
  r.setValue(e?.id ?? "");
2476
2476
  }
2477
2477
  this.onEventChange_(r.getValue());
2478
2478
  },
2479
2479
  onEventChange_: function(e) {
2480
- let t = Qn(e);
2480
+ let t = er(e);
2481
2481
  if (!t) {
2482
2482
  console.assert(!1);
2483
2483
  return;
@@ -2495,7 +2495,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2495
2495
  let { type: t } = this.event.params[e], n = this.getInput("PARAM" + e);
2496
2496
  n.connection.setShadowDom(null);
2497
2497
  let r = n.connection.targetBlock();
2498
- r && !r.isShadow() && r.dispose(), n.setCheck(nn(t));
2498
+ r && !r.isShadow() && r.dispose(), n.setCheck(an(t));
2499
2499
  }
2500
2500
  }
2501
2501
  let e = !1;
@@ -2534,7 +2534,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
2534
2534
  return;
2535
2535
  }
2536
2536
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2537
- let t = Qn(this.event.id);
2537
+ let t = er(this.event.id);
2538
2538
  if (!t) {
2539
2539
  this.setWarningText(P("WARN_EVENT_NOT_FOUND"));
2540
2540
  return;
@@ -2603,9 +2603,9 @@ ${g.statementToCode(e, "HANDLE")}};
2603
2603
  },
2604
2604
  updateShadow_: function() {
2605
2605
  if (this.isInsertionMarker()) return;
2606
- let e = cn("title");
2606
+ let e = un("title");
2607
2607
  this.getInput("TITLE").connection.setShadowDom(e);
2608
- let t = cn("text");
2608
+ let t = un("text");
2609
2609
  this.getInput("TEXT").connection.setShadowDom(t);
2610
2610
  },
2611
2611
  ensureBlocks_: function() {
@@ -2638,11 +2638,11 @@ ${g.statementToCode(e, "HANDLE")}}
2638
2638
  },
2639
2639
  updateShadow_: function() {
2640
2640
  if (this.isInsertionMarker()) return;
2641
- let e = cn("title");
2641
+ let e = un("title");
2642
2642
  this.getInput("TITLE").connection.setShadowDom(e);
2643
- let t = cn("label");
2643
+ let t = un("label");
2644
2644
  this.getInput("LABEL").connection.setShadowDom(t);
2645
- let n = cn("");
2645
+ let n = un("");
2646
2646
  this.getInput("VALUE").connection.setShadowDom(n);
2647
2647
  },
2648
2648
  ensureBlocks_: function() {
@@ -2695,12 +2695,12 @@ ${g.statementToCode(e, "HANDLE")}}
2695
2695
  },
2696
2696
  initData_: function() {
2697
2697
  if (this.node.id) return;
2698
- let e = Ln("callMethod")?.[0];
2698
+ let e = zn("callMethod")?.[0];
2699
2699
  if (!e) return;
2700
2700
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2701
2701
  let t = this.getField("NODE");
2702
2702
  t.getOptions(!1), t.setValue(this.node.id);
2703
- let n = tr(this.node.id)?.[0];
2703
+ let n = rr(this.node.id)?.[0];
2704
2704
  if (!n) return;
2705
2705
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
2706
2706
  let r = this.getField("METHOD");
@@ -2718,10 +2718,10 @@ ${g.statementToCode(e, "HANDLE")}}
2718
2718
  }, 0);
2719
2719
  },
2720
2720
  genNodeOpts_: function() {
2721
- return Rn("callMethod");
2721
+ return Bn("callMethod");
2722
2722
  },
2723
2723
  genMethodOpts_: function() {
2724
- return rr(this.node.id);
2724
+ return ar(this.node.id);
2725
2725
  },
2726
2726
  onchange: function(e) {
2727
2727
  if (e.type === x.BLOCK_CHANGE) {
@@ -2741,13 +2741,13 @@ ${g.statementToCode(e, "HANDLE")}}
2741
2741
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2742
2742
  let r = this.getField("METHOD");
2743
2743
  if (r.getOptions(!1), n) {
2744
- let e = tr(this.node.id)?.[0];
2744
+ let e = rr(this.node.id)?.[0];
2745
2745
  r.setValue(e?.id ?? "");
2746
2746
  }
2747
2747
  this.onMethodChange_(r.getValue());
2748
2748
  },
2749
2749
  onMethodChange_: function(e) {
2750
- let t = nr(e);
2750
+ let t = ir(e);
2751
2751
  if (!t) {
2752
2752
  console.assert(!1);
2753
2753
  return;
@@ -2803,7 +2803,7 @@ ${g.statementToCode(e, "HANDLE")}}
2803
2803
  },
2804
2804
  ensureBlocks_: function() {
2805
2805
  if (this.isInsertionMarker()) return;
2806
- let e = [], t = er(this.method.kind);
2806
+ let e = [], t = nr(this.method.kind);
2807
2807
  if (this.method.outputs) for (let n = 0; n < this.method.outputs.length; n++) {
2808
2808
  let { key: r, name: i } = this.method.outputs[n];
2809
2809
  e.push([
@@ -2826,7 +2826,7 @@ ${g.statementToCode(e, "HANDLE")}}
2826
2826
  return;
2827
2827
  }
2828
2828
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2829
- let t = nr(this.method.id);
2829
+ let t = ir(this.method.id);
2830
2830
  if (!t) {
2831
2831
  this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
2832
2832
  return;
@@ -2878,7 +2878,7 @@ ${g.statementToCode(e, "HANDLE")}}
2878
2878
  let o = "";
2879
2879
  if (r.method.outputs) for (let { key: e } of r.method.outputs) o += `${t}const __output$${e}__ = __outputs__[${n(e)}];\n`;
2880
2880
  if (r.method.kind === "customMethod") {
2881
- let { kind: e, nodeId: t, methodKey: n } = Qe(r.method.id), s = je(e, t, n);
2881
+ let { kind: e, nodeId: t, methodKey: n } = et(r.method.id), s = je(e, t, n);
2882
2882
  if (r.method.outputs && r.method.outputs.length > 0) {
2883
2883
  let e = g.statementToCode(r, "HANDLE");
2884
2884
  return `{
@@ -2907,12 +2907,12 @@ ${o}${e}}
2907
2907
  },
2908
2908
  initData_: function() {
2909
2909
  if (this.node.id) return;
2910
- let e = Ln("implementMethod")?.[0];
2910
+ let e = zn("implementMethod")?.[0];
2911
2911
  if (!e) return;
2912
2912
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2913
2913
  let t = this.getField("NODE");
2914
2914
  t.getOptions(!1), t.setValue(this.node.id);
2915
- let n = ar(this.node.id)?.[0];
2915
+ let n = sr(this.node.id)?.[0];
2916
2916
  if (!n) return;
2917
2917
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs;
2918
2918
  let r = this.getField("METHOD");
@@ -2930,10 +2930,10 @@ ${o}${e}}
2930
2930
  }, 0);
2931
2931
  },
2932
2932
  genNodeOpts_: function() {
2933
- return Rn("implementMethod");
2933
+ return Bn("implementMethod");
2934
2934
  },
2935
2935
  genMethodOpts_: function() {
2936
- return sr(this.node.id);
2936
+ return lr(this.node.id);
2937
2937
  },
2938
2938
  onchange: function(e) {
2939
2939
  if (e.type === x.BLOCK_CHANGE) {
@@ -2953,13 +2953,13 @@ ${o}${e}}
2953
2953
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2954
2954
  let r = this.getField("METHOD");
2955
2955
  if (r.getOptions(!1), n) {
2956
- let e = ar(this.node.id)?.[0];
2956
+ let e = sr(this.node.id)?.[0];
2957
2957
  r.setValue(e?.id ?? "");
2958
2958
  }
2959
2959
  r.setValue(r.getValue());
2960
2960
  },
2961
2961
  onMethodChange_: function(e) {
2962
- let t = or(e);
2962
+ let t = cr(e);
2963
2963
  if (!t) {
2964
2964
  console.assert(!1);
2965
2965
  return;
@@ -2993,7 +2993,7 @@ ${o}${e}}
2993
2993
  "x-runtime-lib.instance",
2994
2994
  !0
2995
2995
  ]);
2996
- let t = ir(this.method.kind);
2996
+ let t = or(this.method.kind);
2997
2997
  if (this.method.inputs) for (let n = 0; n < this.method.inputs.length; n++) {
2998
2998
  let { key: r, name: i } = this.method.inputs[n];
2999
2999
  e.push([
@@ -3016,7 +3016,7 @@ ${o}${e}}
3016
3016
  return;
3017
3017
  }
3018
3018
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3019
- let t = or(this.method.id);
3019
+ let t = cr(this.method.id);
3020
3020
  if (!t) {
3021
3021
  this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
3022
3022
  return;
@@ -3032,7 +3032,7 @@ ${o}${e}}
3032
3032
  this.setWarningText(null);
3033
3033
  }
3034
3034
  }, g.forBlock.implement_app_method_v1 = function(e) {
3035
- let t = g.INDENT, n = g.quote_, r = e, { kind: i, nodeId: a, methodKey: o } = Qe(r.method.id), s = "";
3035
+ let t = g.INDENT, n = g.quote_, r = e, { kind: i, nodeId: a, methodKey: o } = et(r.method.id), s = "";
3036
3036
  if (r.method.inputs) for (let { key: e } of r.method.inputs) s += `${t}const __input$${e}__ = __inputs__[${n(e)}];\n`;
3037
3037
  let c = g.statementToCode(r, "HANDLE");
3038
3038
  return `async function ${je(i, a, o)}(__instance__, __inputs__) {
@@ -3058,17 +3058,17 @@ ${c}${t}return __outputs__;
3058
3058
  },
3059
3059
  initData_: function() {
3060
3060
  if (this.node.id) return;
3061
- let e = Ln("implementMethod")?.[0];
3061
+ let e = zn("implementMethod")?.[0];
3062
3062
  if (!e) return;
3063
3063
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3064
3064
  let t = this.getField("NODE");
3065
3065
  t.getOptions(!1), t.setValue(this.node.id);
3066
- let n = ar(this.node.id)?.[0];
3066
+ let n = sr(this.node.id)?.[0];
3067
3067
  if (!n) return;
3068
3068
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names;
3069
3069
  let r = this.getField("METHOD");
3070
3070
  r.getOptions(!1), r.setValue(this.method.id);
3071
- let i = cr(this.method.id)?.[0];
3071
+ let i = ur(this.method.id)?.[0];
3072
3072
  if (!i) return;
3073
3073
  this.output.key = i.key, this.output.name = i.name, this.output.type = i.type;
3074
3074
  let a = this.getField("OUTPUT");
@@ -3087,13 +3087,13 @@ ${c}${t}return __outputs__;
3087
3087
  }, 0);
3088
3088
  },
3089
3089
  genNodeOpts_: function() {
3090
- return Rn("implementMethod");
3090
+ return Bn("implementMethod");
3091
3091
  },
3092
3092
  genMethodOpts_: function() {
3093
- return sr(this.node.id);
3093
+ return lr(this.node.id);
3094
3094
  },
3095
3095
  genOutputOpts_: function() {
3096
- return ur(this.method.id);
3096
+ return fr(this.method.id);
3097
3097
  },
3098
3098
  onchange: function(e) {
3099
3099
  if (e.type === x.BLOCK_CHANGE) {
@@ -3113,13 +3113,13 @@ ${c}${t}return __outputs__;
3113
3113
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3114
3114
  let r = this.getField("METHOD");
3115
3115
  if (r.getOptions(!1), n) {
3116
- let e = ar(this.node.id)?.[0];
3116
+ let e = sr(this.node.id)?.[0];
3117
3117
  r.setValue(e?.id ?? "");
3118
3118
  }
3119
3119
  r.setValue(r.getValue());
3120
3120
  },
3121
3121
  onMethodChange_: function(e) {
3122
- let t = or(e);
3122
+ let t = cr(e);
3123
3123
  if (!t) {
3124
3124
  console.assert(!1);
3125
3125
  return;
@@ -3127,14 +3127,14 @@ ${c}${t}return __outputs__;
3127
3127
  let n = this.method.id !== t.id;
3128
3128
  this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
3129
3129
  let r = this.getField("OUTPUT");
3130
- if (r.getOptions(!1), n || !lr(this.method.id, this.output.key)) {
3131
- let e = cr(this.method.id)?.[0];
3130
+ if (r.getOptions(!1), n || !dr(this.method.id, this.output.key)) {
3131
+ let e = ur(this.method.id)?.[0];
3132
3132
  r.setValue(e?.key ?? "");
3133
3133
  }
3134
3134
  this.onOutputChange_(r.getValue());
3135
3135
  },
3136
3136
  onOutputChange_: function(e) {
3137
- let t = lr(this.method.id, e);
3137
+ let t = dr(this.method.id, e);
3138
3138
  if (!t) {
3139
3139
  console.assert(!1);
3140
3140
  return;
@@ -3146,7 +3146,7 @@ ${c}${t}return __outputs__;
3146
3146
  e.connection.setShadowDom(null);
3147
3147
  let t = e.connection.targetBlock();
3148
3148
  t && !t.isShadow() && t.dispose();
3149
- let n = nn(this.output.type);
3149
+ let n = an(this.output.type);
3150
3150
  e.setCheck(n);
3151
3151
  },
3152
3152
  updateShadows_: function() {
@@ -3165,7 +3165,7 @@ ${c}${t}return __outputs__;
3165
3165
  return;
3166
3166
  }
3167
3167
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3168
- let t = or(this.method.id);
3168
+ let t = cr(this.method.id);
3169
3169
  if (!t) {
3170
3170
  this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
3171
3171
  return;
@@ -3175,7 +3175,7 @@ ${c}${t}return __outputs__;
3175
3175
  return;
3176
3176
  }
3177
3177
  t.names !== this.method.names && (this.method.names = t.names);
3178
- let n = lr(this.method.id, this.output.key);
3178
+ let n = dr(this.method.id, this.output.key);
3179
3179
  if (!n) {
3180
3180
  this.setWarningText(P("WARN_OUTPUT_NOT_FOUND"));
3181
3181
  return;
@@ -3233,12 +3233,12 @@ ${c}${t}return __outputs__;
3233
3233
  },
3234
3234
  initData_: function() {
3235
3235
  if (this.app.id) return;
3236
- let e = En()?.[0];
3236
+ let e = On()?.[0];
3237
3237
  if (!e) return;
3238
3238
  this.app.id = e.id, this.app.name = e.name;
3239
3239
  let t = this.getField("APP");
3240
3240
  t.getOptions(!1), t.setValue(this.app.id);
3241
- let n = dr(this.app.id)?.[0];
3241
+ let n = pr(this.app.id)?.[0];
3242
3242
  if (!n) return;
3243
3243
  this.page.id = n.id, this.page.name = n.name;
3244
3244
  let r = this.getField("PAGE");
@@ -3256,10 +3256,10 @@ ${c}${t}return __outputs__;
3256
3256
  }, 0);
3257
3257
  },
3258
3258
  genAppOpts_: function() {
3259
- return On();
3259
+ return An();
3260
3260
  },
3261
3261
  genPageOpts_: function() {
3262
- return pr(this.app.id);
3262
+ return hr(this.app.id);
3263
3263
  },
3264
3264
  onchange: function(e) {
3265
3265
  if (e.type === x.BLOCK_CHANGE) {
@@ -3270,7 +3270,7 @@ ${c}${t}return __outputs__;
3270
3270
  }
3271
3271
  },
3272
3272
  onAppChange_: function(e) {
3273
- let t = Dn(e);
3273
+ let t = kn(e);
3274
3274
  if (!t) {
3275
3275
  console.assert(!1);
3276
3276
  return;
@@ -3279,13 +3279,13 @@ ${c}${t}return __outputs__;
3279
3279
  this.app.id = t.id, this.app.name = t.name;
3280
3280
  let r = this.getField("PAGE");
3281
3281
  if (r.getOptions(!1), n) {
3282
- let e = dr(this.app.id)?.[0];
3282
+ let e = pr(this.app.id)?.[0];
3283
3283
  r.setValue(e?.id ?? "");
3284
3284
  }
3285
3285
  this.onPageChange_(r.getValue());
3286
3286
  },
3287
3287
  onPageChange_: function(e) {
3288
- let t = fr(this.app.id, e);
3288
+ let t = mr(this.app.id, e);
3289
3289
  if (!t) {
3290
3290
  console.assert(!1);
3291
3291
  return;
@@ -3293,13 +3293,13 @@ ${c}${t}return __outputs__;
3293
3293
  this.page.id = t.id, this.page.name = t.name;
3294
3294
  },
3295
3295
  checkWarning_: function() {
3296
- let e = Dn(this.app.id);
3296
+ let e = kn(this.app.id);
3297
3297
  if (!e) {
3298
3298
  this.setWarningText(P("WARN_APP_NOT_FOUND"));
3299
3299
  return;
3300
3300
  }
3301
3301
  e.name !== this.app.name && (this.app.name = e.name);
3302
- let t = fr(this.app.id, this.page.id);
3302
+ let t = mr(this.app.id, this.page.id);
3303
3303
  if (!t) {
3304
3304
  this.setWarningText(P("WARN_PAGE_NOT_FOUND"));
3305
3305
  return;
@@ -3318,7 +3318,7 @@ ${c}${t}return __outputs__;
3318
3318
  },
3319
3319
  initData_: function() {
3320
3320
  if (this.comp.id) return;
3321
- let e = Wn()?.[0];
3321
+ let e = Kn()?.[0];
3322
3322
  if (!e) return;
3323
3323
  this.comp.id = e.id, this.comp.name = e.name;
3324
3324
  let t = this.getField("COMP");
@@ -3333,7 +3333,7 @@ ${c}${t}return __outputs__;
3333
3333
  }, 0);
3334
3334
  },
3335
3335
  genCompOpts_: function() {
3336
- return Kn();
3336
+ return Jn();
3337
3337
  },
3338
3338
  onchange: function(e) {
3339
3339
  if (e.type === x.BLOCK_CHANGE) {
@@ -3344,7 +3344,7 @@ ${c}${t}return __outputs__;
3344
3344
  }
3345
3345
  },
3346
3346
  onCompChange_: function(e) {
3347
- let t = Gn(e);
3347
+ let t = qn(e);
3348
3348
  if (!t) {
3349
3349
  console.assert(!1);
3350
3350
  return;
@@ -3352,7 +3352,7 @@ ${c}${t}return __outputs__;
3352
3352
  this.comp.id = t.id, this.comp.name = t.name;
3353
3353
  },
3354
3354
  checkWarning_: function() {
3355
- let e = Gn(this.comp.id);
3355
+ let e = qn(this.comp.id);
3356
3356
  if (!e) {
3357
3357
  this.setWarningText(P("WARN_COMP_NOT_FOUND"));
3358
3358
  return;
@@ -3371,7 +3371,7 @@ ${c}${t}return __outputs__;
3371
3371
  },
3372
3372
  initData_: function() {
3373
3373
  if (this.slot.id) return;
3374
- let e = _r()?.[0];
3374
+ let e = yr()?.[0];
3375
3375
  if (!e) return;
3376
3376
  this.slot.id = e.id, this.slot.name = e.name;
3377
3377
  let t = this.getField("SLOT");
@@ -3386,7 +3386,7 @@ ${c}${t}return __outputs__;
3386
3386
  }, 0);
3387
3387
  },
3388
3388
  genSlotOpts_: function() {
3389
- return yr();
3389
+ return xr();
3390
3390
  },
3391
3391
  onchange: function(e) {
3392
3392
  if (e.type === x.BLOCK_CHANGE) {
@@ -3397,7 +3397,7 @@ ${c}${t}return __outputs__;
3397
3397
  }
3398
3398
  },
3399
3399
  onSlotChange_: function(e) {
3400
- let t = vr(e);
3400
+ let t = br(e);
3401
3401
  if (!t) {
3402
3402
  console.assert(!1);
3403
3403
  return;
@@ -3405,7 +3405,7 @@ ${c}${t}return __outputs__;
3405
3405
  this.slot.id = t.id, this.slot.name = t.name;
3406
3406
  },
3407
3407
  checkWarning_: function() {
3408
- let e = vr(this.slot.id);
3408
+ let e = br(this.slot.id);
3409
3409
  if (!e) {
3410
3410
  this.setWarningText(P("WARN_SLOT_NOT_FOUND"));
3411
3411
  return;
@@ -3429,12 +3429,12 @@ ${c}${t}return __outputs__;
3429
3429
  },
3430
3430
  initData_: function() {
3431
3431
  if (this.node.id) return;
3432
- let e = Ln("getProperty")?.[0];
3432
+ let e = zn("getProperty")?.[0];
3433
3433
  if (!e) return;
3434
3434
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3435
3435
  let t = this.getField("NODE");
3436
3436
  t.getOptions(!1), t.setValue(this.node.id);
3437
- let n = mr(this.node.id, "read")?.[0];
3437
+ let n = gr(this.node.id, "read")?.[0];
3438
3438
  if (!n) return;
3439
3439
  this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
3440
3440
  let r = this.getField("PROPERTY");
@@ -3452,10 +3452,10 @@ ${c}${t}return __outputs__;
3452
3452
  }, 0);
3453
3453
  },
3454
3454
  genNodeOpts_: function() {
3455
- return Rn("getProperty");
3455
+ return Bn("getProperty");
3456
3456
  },
3457
3457
  genPropertyOpts_: function() {
3458
- return gr(this.node.id, "read");
3458
+ return vr(this.node.id, "read");
3459
3459
  },
3460
3460
  onchange: function(e) {
3461
3461
  if (e.type === x.BLOCK_CHANGE) {
@@ -3475,13 +3475,13 @@ ${c}${t}return __outputs__;
3475
3475
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3476
3476
  let r = this.getField("PROPERTY");
3477
3477
  if (r.getOptions(!1), n) {
3478
- let e = mr(this.node.id, "read")?.[0];
3478
+ let e = gr(this.node.id, "read")?.[0];
3479
3479
  r.setValue(e?.id ?? "");
3480
3480
  }
3481
3481
  this.onPropertyChange_(r.getValue());
3482
3482
  },
3483
3483
  onPropertyChange_: function(e) {
3484
- let t = hr(e);
3484
+ let t = _r(e);
3485
3485
  if (!t) {
3486
3486
  console.assert(!1);
3487
3487
  return;
@@ -3520,7 +3520,7 @@ ${c}${t}return __outputs__;
3520
3520
  return;
3521
3521
  }
3522
3522
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3523
- let t = hr(this.property.id);
3523
+ let t = _r(this.property.id);
3524
3524
  if (!t) {
3525
3525
  this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
3526
3526
  return;
@@ -3548,12 +3548,12 @@ ${c}${t}return __outputs__;
3548
3548
  },
3549
3549
  initData_: function() {
3550
3550
  if (this.node.id) return;
3551
- let e = Ln("setProperty")?.[0];
3551
+ let e = zn("setProperty")?.[0];
3552
3552
  if (!e) return;
3553
3553
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3554
3554
  let t = this.getField("NODE");
3555
3555
  t.getOptions(!1), t.setValue(this.node.id);
3556
- let n = mr(this.node.id, "write")?.[0];
3556
+ let n = gr(this.node.id, "write")?.[0];
3557
3557
  if (!n) return;
3558
3558
  this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
3559
3559
  let r = this.getField("PROPERTY");
@@ -3571,10 +3571,10 @@ ${c}${t}return __outputs__;
3571
3571
  }, 0);
3572
3572
  },
3573
3573
  genNodeOpts_: function() {
3574
- return Rn("setProperty");
3574
+ return Bn("setProperty");
3575
3575
  },
3576
3576
  genPropertyOpts_: function() {
3577
- return gr(this.node.id, "write");
3577
+ return vr(this.node.id, "write");
3578
3578
  },
3579
3579
  onchange: function(e) {
3580
3580
  if (e.type === x.BLOCK_CHANGE) {
@@ -3594,13 +3594,13 @@ ${c}${t}return __outputs__;
3594
3594
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3595
3595
  let r = this.getField("PROPERTY");
3596
3596
  if (r.getOptions(!1), n) {
3597
- let e = mr(this.node.id, "write")?.[0];
3597
+ let e = gr(this.node.id, "write")?.[0];
3598
3598
  r.setValue(e?.id ?? "");
3599
3599
  }
3600
3600
  this.onPropertyChange_(r.getValue());
3601
3601
  },
3602
3602
  onPropertyChange_: function(e) {
3603
- let t = hr(e);
3603
+ let t = _r(e);
3604
3604
  if (!t) {
3605
3605
  console.assert(!1);
3606
3606
  return;
@@ -3621,7 +3621,7 @@ ${c}${t}return __outputs__;
3621
3621
  },
3622
3622
  updateShadow_: function() {
3623
3623
  if (this.isInsertionMarker()) return;
3624
- let e = hr(this.property.id);
3624
+ let e = _r(this.property.id);
3625
3625
  if (!e) return;
3626
3626
  let t = this.getInput("INSTANCE");
3627
3627
  if (t) {
@@ -3633,7 +3633,7 @@ ${c}${t}return __outputs__;
3633
3633
  if (n) {
3634
3634
  n.setShadowDom(null);
3635
3635
  let t = n.connection?.targetBlock();
3636
- t && t.dispose(), e.meta.element ? n.setCheck(rn(e.meta.raw)).setShadowDom(yn(e.meta.raw)) : n.setCheck(nn(e.meta.raw.type)).setShadowDom(H(e.meta.raw.type));
3636
+ t && t.dispose(), e.meta.element ? n.setCheck(on(e.meta.raw)).setShadowDom(xn(e.meta.raw)) : n.setCheck(an(e.meta.raw.type)).setShadowDom(H(e.meta.raw.type));
3637
3637
  }
3638
3638
  },
3639
3639
  checkWarning_: function() {
@@ -3647,7 +3647,7 @@ ${c}${t}return __outputs__;
3647
3647
  return;
3648
3648
  }
3649
3649
  e.alias !== this.node.alias && (this.node.alias = e.alias);
3650
- let t = hr(this.property.id);
3650
+ let t = _r(this.property.id);
3651
3651
  if (!t) {
3652
3652
  this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
3653
3653
  return;
@@ -3676,7 +3676,7 @@ ${c}${t}return __outputs__;
3676
3676
  },
3677
3677
  initData_: function() {
3678
3678
  if (this.state.id) return;
3679
- let e = zn()?.[0];
3679
+ let e = Vn()?.[0];
3680
3680
  if (!e) return;
3681
3681
  this.state.id = e.id, this.state.name = e.name, this.state.type = e.type;
3682
3682
  let t = this.getField("STATE");
@@ -3691,7 +3691,7 @@ ${c}${t}return __outputs__;
3691
3691
  }, 0);
3692
3692
  },
3693
3693
  genStateOpts_: function() {
3694
- return Vn();
3694
+ return Un();
3695
3695
  },
3696
3696
  onchange: function(e) {
3697
3697
  if (e.type === x.BLOCK_CHANGE) {
@@ -3700,7 +3700,7 @@ ${c}${t}return __outputs__;
3700
3700
  }
3701
3701
  },
3702
3702
  onStateChange_: function(e) {
3703
- let t = Bn(e);
3703
+ let t = Hn(e);
3704
3704
  if (!t) {
3705
3705
  console.assert(!1);
3706
3706
  return;
@@ -3708,7 +3708,7 @@ ${c}${t}return __outputs__;
3708
3708
  this.state.id = t.id, this.state.name = t.name, this.state.type = t.type;
3709
3709
  },
3710
3710
  checkWarning_: function() {
3711
- let e = Bn(this.state.id);
3711
+ let e = Hn(this.state.id);
3712
3712
  if (!e) {
3713
3713
  this.setWarningText(P("WARN_STATE_NOT_FOUND"));
3714
3714
  return;
@@ -3732,7 +3732,7 @@ ${c}${t}return __outputs__;
3732
3732
  },
3733
3733
  initData_: function() {
3734
3734
  if (this.state.id) return;
3735
- let e = zn()?.[0];
3735
+ let e = Vn()?.[0];
3736
3736
  if (!e) return;
3737
3737
  this.state.id = e.id, this.state.name = e.name, this.state.type = e.type;
3738
3738
  let t = this.getField("STATE");
@@ -3745,7 +3745,7 @@ ${c}${t}return __outputs__;
3745
3745
  this.state.id = e.state?.id ?? "", this.state.name = e.state?.name ?? "", this.state.type = e.state?.type ?? "string";
3746
3746
  },
3747
3747
  genStateOpts_: function() {
3748
- return Vn();
3748
+ return Un();
3749
3749
  },
3750
3750
  onchange: function(e) {
3751
3751
  if (e.type === x.BLOCK_CHANGE) {
@@ -3754,7 +3754,7 @@ ${c}${t}return __outputs__;
3754
3754
  }
3755
3755
  },
3756
3756
  onStateChange_: function(e) {
3757
- let t = Bn(e);
3757
+ let t = Hn(e);
3758
3758
  if (!t) {
3759
3759
  console.assert(!1);
3760
3760
  return;
@@ -3766,11 +3766,11 @@ ${c}${t}return __outputs__;
3766
3766
  this.getInput("VALUE").setShadowDom(null);
3767
3767
  let e = this.getInput("VALUE").connection.targetBlock();
3768
3768
  e && e.dispose();
3769
- let t = nn(this.state.type), n = H(this.state.type);
3769
+ let t = an(this.state.type), n = H(this.state.type);
3770
3770
  this.getInput("VALUE").setCheck(t).setShadowDom(n);
3771
3771
  },
3772
3772
  checkWarning_: function() {
3773
- let e = Bn(this.state.id);
3773
+ let e = Hn(this.state.id);
3774
3774
  if (!e) {
3775
3775
  this.setWarningText(P("WARN_STATE_NOT_FOUND"));
3776
3776
  return;
@@ -3838,7 +3838,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
3838
3838
  type: "field_colour",
3839
3839
  name: "COLOR",
3840
3840
  colour: "#ff0000",
3841
- colourOptions: on,
3841
+ colourOptions: cn,
3842
3842
  columns: 14
3843
3843
  }],
3844
3844
  output: "Color",
@@ -3904,7 +3904,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
3904
3904
  };
3905
3905
  //#endregion
3906
3906
  //#region src/core/blocks/common/parameter/v1/whiteList.ts
3907
- var xr = [
3907
+ var Cr = [
3908
3908
  "add_data_v",
3909
3909
  "call_app_method_v",
3910
3910
  "call_func_v",
@@ -3920,18 +3920,18 @@ var xr = [
3920
3920
  "query_data_v",
3921
3921
  "update_data_v"
3922
3922
  ];
3923
- function Sr(e) {
3924
- return !!xr.find((t) => e.startsWith(t));
3923
+ function wr(e) {
3924
+ return !!Cr.find((t) => e.startsWith(t));
3925
3925
  }
3926
3926
  //#endregion
3927
3927
  //#region src/core/blocks/common/parameter/v1/index.ts
3928
- var Cr = p.xml;
3928
+ var Tr = p.xml;
3929
3929
  y.parameter_v1 = {
3930
3930
  init: function() {
3931
3931
  this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
3932
3932
  },
3933
3933
  mutationToDom: function() {
3934
- let e = Cr.createElement("mutation");
3934
+ let e = Tr.createElement("mutation");
3935
3935
  return e.setAttribute("key", this.key), e.setAttribute("name", this.name), e.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), e;
3936
3936
  },
3937
3937
  domToMutation: function(e) {
@@ -3968,11 +3968,11 @@ y.parameter_v1 = {
3968
3968
  },
3969
3969
  tryDuplicate_: function(e) {
3970
3970
  let t = this.workspace.getBlockById(e.oldParentId);
3971
- if (t && Sr(t.type)) try {
3971
+ if (t && wr(t.type)) try {
3972
3972
  x.disable();
3973
3973
  let n = t.getInput(e.oldInputName)?.connection;
3974
3974
  if (n) {
3975
- let e = sn(this.workspace, this.key, this.name, this.locale);
3975
+ let e = ln(this.workspace, this.key, this.name, this.locale);
3976
3976
  n.connect(e.outputConnection);
3977
3977
  }
3978
3978
  } finally {
@@ -3981,14 +3981,14 @@ y.parameter_v1 = {
3981
3981
  },
3982
3982
  updateShape_: function() {
3983
3983
  if (this.locale) {
3984
- let { i18n: e } = ot;
3984
+ let { i18n: e } = ct;
3985
3985
  this.setFieldValue(e.global.t(this.name), "LABEL");
3986
3986
  } else this.setFieldValue(this.name, "LABEL");
3987
3987
  },
3988
3988
  checkWarning_: function() {
3989
3989
  let e = this.getSurroundParent();
3990
3990
  for (; e;) {
3991
- if (Sr(e.type)) for (let t of e.inputList) {
3991
+ if (wr(e.type)) for (let t of e.inputList) {
3992
3992
  let e = t.connection?.targetBlock();
3993
3993
  if (!e || e.type !== "parameter_v1") continue;
3994
3994
  let n = e;
@@ -4008,28 +4008,28 @@ y.parameter_v1 = {
4008
4008
  };
4009
4009
  //#endregion
4010
4010
  //#region src/core/utils/compute/func.ts
4011
- function wr(e) {
4011
+ function Er(e) {
4012
4012
  let t = S.compute.spaces.find((t) => t.id === e);
4013
4013
  return t ? t.funcs : [];
4014
4014
  }
4015
- function Tr(e, t) {
4015
+ function Dr(e, t) {
4016
4016
  let n = S.compute.spaces.find((t) => t.id === e);
4017
4017
  if (n) return n.funcs.find((e) => e.id === t);
4018
4018
  }
4019
- function Er(e) {
4019
+ function Or(e) {
4020
4020
  let t = [];
4021
- return wr(e).forEach(({ id: e, name: n }) => {
4021
+ return Er(e).forEach(({ id: e, name: n }) => {
4022
4022
  t.push([n, e]);
4023
4023
  }), F(t);
4024
4024
  }
4025
- function Dr() {
4025
+ function kr() {
4026
4026
  return S.compute.activeFunc;
4027
4027
  }
4028
- function Or(e) {
4028
+ function Ar(e) {
4029
4029
  let { activeFunc: t } = S.compute;
4030
4030
  return t.outputs?.find((t) => t.id === e);
4031
4031
  }
4032
- function kr() {
4032
+ function jr() {
4033
4033
  let { activeFunc: e } = S.compute, t = [];
4034
4034
  return e.outputs?.forEach(({ id: e, name: n }) => {
4035
4035
  t.push([n, e]);
@@ -4037,18 +4037,18 @@ function kr() {
4037
4037
  }
4038
4038
  //#endregion
4039
4039
  //#region src/core/utils/compute/space.ts
4040
- function Ar(e) {
4040
+ function Mr(e) {
4041
4041
  let t = [];
4042
4042
  return S.compute.spaces.forEach((n) => {
4043
4043
  e === "func" && n.funcs.length > 0 && t.push(n), e === "flow" && n.flows.length > 0 && t.push(n);
4044
4044
  }), t;
4045
4045
  }
4046
- function jr(e) {
4046
+ function Nr(e) {
4047
4047
  return S.compute.spaces.find((t) => t.id === e);
4048
4048
  }
4049
- function Mr(e) {
4049
+ function Pr(e) {
4050
4050
  let t = [];
4051
- return Ar(e).forEach(({ id: e, name: n }) => {
4051
+ return Mr(e).forEach(({ id: e, name: n }) => {
4052
4052
  t.push([n, e]);
4053
4053
  }), F(t);
4054
4054
  }
@@ -4066,12 +4066,12 @@ y.call_func_v1 = {
4066
4066
  },
4067
4067
  initData_: function() {
4068
4068
  if (this.space.id) return;
4069
- let e = Ar("func")?.[0];
4069
+ let e = Mr("func")?.[0];
4070
4070
  if (!e) return;
4071
4071
  this.space.id = e.id, this.space.name = e.name;
4072
4072
  let t = this.getField("SPACE");
4073
4073
  t.getOptions(!1), t.setValue(this.space.id);
4074
- let n = wr(this.space.id)?.[0];
4074
+ let n = Er(this.space.id)?.[0];
4075
4075
  if (!n) return;
4076
4076
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
4077
4077
  let r = this.getField("FUNC");
@@ -4089,10 +4089,10 @@ y.call_func_v1 = {
4089
4089
  }, 0);
4090
4090
  },
4091
4091
  genSpaceOpts_: function() {
4092
- return Mr("func");
4092
+ return Pr("func");
4093
4093
  },
4094
4094
  genFuncOpts_: function() {
4095
- return Er(this.space.id);
4095
+ return Or(this.space.id);
4096
4096
  },
4097
4097
  onchange: function(e) {
4098
4098
  if (e.type === x.BLOCK_CHANGE) {
@@ -4103,7 +4103,7 @@ y.call_func_v1 = {
4103
4103
  }
4104
4104
  },
4105
4105
  onSpaceChange_: function(e) {
4106
- let t = jr(e);
4106
+ let t = Nr(e);
4107
4107
  if (!t) {
4108
4108
  console.assert(!1);
4109
4109
  return;
@@ -4112,13 +4112,13 @@ y.call_func_v1 = {
4112
4112
  this.space.id = t.id, this.space.name = t.name;
4113
4113
  let r = this.getField("FUNC");
4114
4114
  if (r.getOptions(!1), n) {
4115
- let e = wr(this.space.id)?.[0];
4115
+ let e = Er(this.space.id)?.[0];
4116
4116
  r.setValue(e?.id ?? "");
4117
4117
  }
4118
4118
  this.onFuncChange_(r.getValue());
4119
4119
  },
4120
4120
  onFuncChange_: function(e) {
4121
- let t = Tr(this.space.id, e);
4121
+ let t = Dr(this.space.id, e);
4122
4122
  if (!t) {
4123
4123
  console.assert(!1);
4124
4124
  return;
@@ -4149,7 +4149,7 @@ y.call_func_v1 = {
4149
4149
  },
4150
4150
  updateCheck_: function() {
4151
4151
  for (let e = 0; e < this.func.inputs.length; e++) {
4152
- let { type: t } = this.func.inputs[e], n = nn(t);
4152
+ let { type: t } = this.func.inputs[e], n = an(t);
4153
4153
  this.getInput("INPUT" + e).connection.setCheck(n);
4154
4154
  }
4155
4155
  },
@@ -4174,13 +4174,13 @@ y.call_func_v1 = {
4174
4174
  V(this, e);
4175
4175
  },
4176
4176
  checkWarning_: function() {
4177
- let e = jr(this.space.id);
4177
+ let e = Nr(this.space.id);
4178
4178
  if (!e) {
4179
4179
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
4180
4180
  return;
4181
4181
  }
4182
4182
  e.name !== this.space.name && (this.space.name = e.name);
4183
- let t = Tr(this.space.id, this.func.id);
4183
+ let t = Dr(this.space.id, this.func.id);
4184
4184
  if (!t) {
4185
4185
  this.setWarningText(P("WARN_FUNC_NOT_FOUND"));
4186
4186
  return;
@@ -4225,12 +4225,12 @@ ${c}${l}}
4225
4225
  },
4226
4226
  initData_: function() {
4227
4227
  if (this.space.id) return;
4228
- let e = Ar("func")?.[0];
4228
+ let e = Mr("func")?.[0];
4229
4229
  if (!e) return;
4230
4230
  this.space.id = e.id, this.space.name = e.name;
4231
4231
  let t = this.getField("SPACE");
4232
4232
  t.getOptions(!1), t.setValue(this.space.id);
4233
- let n = wr(this.space.id)?.[0];
4233
+ let n = Er(this.space.id)?.[0];
4234
4234
  if (!n) return;
4235
4235
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
4236
4236
  let r = this.getField("FUNC");
@@ -4248,10 +4248,10 @@ ${c}${l}}
4248
4248
  }, 0);
4249
4249
  },
4250
4250
  genSpaceOpts_: function() {
4251
- return Mr("func");
4251
+ return Pr("func");
4252
4252
  },
4253
4253
  genFuncOpts_: function() {
4254
- return Er(this.space.id);
4254
+ return Or(this.space.id);
4255
4255
  },
4256
4256
  onchange: function(e) {
4257
4257
  if (e.type === x.BLOCK_CHANGE) {
@@ -4262,7 +4262,7 @@ ${c}${l}}
4262
4262
  }
4263
4263
  },
4264
4264
  onSpaceChange_: function(e) {
4265
- let t = jr(e);
4265
+ let t = Nr(e);
4266
4266
  if (!t) {
4267
4267
  console.assert(!1);
4268
4268
  return;
@@ -4271,13 +4271,13 @@ ${c}${l}}
4271
4271
  this.space.id = t.id, this.space.name = t.name;
4272
4272
  let r = this.getField("FUNC");
4273
4273
  if (r.getOptions(!1), n) {
4274
- let e = wr(this.space.id)?.[0];
4274
+ let e = Er(this.space.id)?.[0];
4275
4275
  r.setValue(e?.id ?? "");
4276
4276
  }
4277
4277
  this.onFuncChange_(r.getValue());
4278
4278
  },
4279
4279
  onFuncChange_: function(e) {
4280
- let t = Tr(this.space.id, e);
4280
+ let t = Dr(this.space.id, e);
4281
4281
  if (!t) {
4282
4282
  console.assert(!1);
4283
4283
  return;
@@ -4308,7 +4308,7 @@ ${c}${l}}
4308
4308
  },
4309
4309
  updateCheck_: function() {
4310
4310
  for (let e = 0; e < this.func.inputs.length; e++) {
4311
- let { type: t } = this.func.inputs[e], n = nn(t);
4311
+ let { type: t } = this.func.inputs[e], n = an(t);
4312
4312
  this.getInput("INPUT" + e).connection.setCheck(n);
4313
4313
  }
4314
4314
  },
@@ -4333,13 +4333,13 @@ ${c}${l}}
4333
4333
  V(this, e);
4334
4334
  },
4335
4335
  checkWarning_: function() {
4336
- let e = jr(this.space.id);
4336
+ let e = Nr(this.space.id);
4337
4337
  if (!e) {
4338
4338
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
4339
4339
  return;
4340
4340
  }
4341
4341
  e.name !== this.space.name && (this.space.name = e.name);
4342
- let t = Tr(this.space.id, this.func.id);
4342
+ let t = Dr(this.space.id, this.func.id);
4343
4343
  if (!t) {
4344
4344
  this.setWarningText(P("WARN_FUNC_NOT_FOUND"));
4345
4345
  return;
@@ -4379,7 +4379,7 @@ ${c}${l}}
4379
4379
  },
4380
4380
  initData_: function() {
4381
4381
  if (this.func.id) return;
4382
- let { id: e, inputs: t } = Dr();
4382
+ let { id: e, inputs: t } = kr();
4383
4383
  this.func.id = e, this.func.inputs = t;
4384
4384
  },
4385
4385
  saveExtraState: function() {
@@ -4417,7 +4417,7 @@ ${c}${l}}
4417
4417
  V(this, e);
4418
4418
  },
4419
4419
  checkWarning_: function() {
4420
- let { id: e, inputs: t } = Dr();
4420
+ let { id: e, inputs: t } = kr();
4421
4421
  if (this.func.id !== e && (this.func.id = e), !v(t, this.func.inputs)) {
4422
4422
  this.setWarningText(P("WARN_FUNC_HAS_CHANGED"));
4423
4423
  return;
@@ -4442,7 +4442,7 @@ ${n}}`;
4442
4442
  },
4443
4443
  initData_: function() {
4444
4444
  if (this.output.id) return;
4445
- let e = Dr().outputs?.[0];
4445
+ let e = kr().outputs?.[0];
4446
4446
  e && (this.output.id = e.id, this.output.name = e.name, this.output.type = e.type);
4447
4447
  },
4448
4448
  saveExtraState: function() {
@@ -4454,7 +4454,7 @@ ${n}}`;
4454
4454
  }, 0);
4455
4455
  },
4456
4456
  genOutputOpts_: function() {
4457
- return kr();
4457
+ return jr();
4458
4458
  },
4459
4459
  onchange: function(e) {
4460
4460
  if (e.type === x.BLOCK_CHANGE) {
@@ -4465,7 +4465,7 @@ ${n}}`;
4465
4465
  }
4466
4466
  },
4467
4467
  onOutputChange_: function(e) {
4468
- let t = Or(e);
4468
+ let t = Ar(e);
4469
4469
  if (!t) {
4470
4470
  console.assert(!1);
4471
4471
  return;
@@ -4477,7 +4477,7 @@ ${n}}`;
4477
4477
  e.connection.setShadowDom(null);
4478
4478
  let t = e.connection.targetBlock();
4479
4479
  t && !t.isShadow() && t.dispose();
4480
- let n = nn(this.output.type);
4480
+ let n = an(this.output.type);
4481
4481
  e.setCheck(n);
4482
4482
  },
4483
4483
  updateShadows_: function() {
@@ -4486,7 +4486,7 @@ ${n}}`;
4486
4486
  this.getInput("VALUE").setShadowDom(e);
4487
4487
  },
4488
4488
  checkWarning_: function() {
4489
- let e = Or(this.output.id);
4489
+ let e = Ar(this.output.id);
4490
4490
  if (!e) {
4491
4491
  this.setWarningText(P("WARN_FUNC_HAS_CHANGED"));
4492
4492
  return;
@@ -4556,11 +4556,11 @@ function Y() {
4556
4556
  t.tables.length > 0 && e.push(t);
4557
4557
  }), e;
4558
4558
  }
4559
- function Nr(e) {
4559
+ function Fr(e) {
4560
4560
  let { spaces: t } = S.data;
4561
4561
  return t.find((t) => t.id === e);
4562
4562
  }
4563
- function Pr() {
4563
+ function Ir() {
4564
4564
  let e = [];
4565
4565
  return Y().forEach(({ id: t, name: n }) => {
4566
4566
  e.push([n, t]);
@@ -4572,37 +4572,37 @@ function X(e) {
4572
4572
  let { spaces: t } = S.data, n = t.find((t) => t.id === e);
4573
4573
  return n ? n.tables : [];
4574
4574
  }
4575
- function Fr(e, t) {
4575
+ function Lr(e, t) {
4576
4576
  let { spaces: n } = S.data, r = n.find((t) => t.id === e);
4577
4577
  if (r) return r.tables.find((e) => e.id === t);
4578
4578
  }
4579
- function Ir(e) {
4579
+ function Rr(e) {
4580
4580
  let t = [];
4581
4581
  return X(e).forEach(({ id: e, name: n }) => {
4582
4582
  t.push([n, e]);
4583
4583
  }), F(t);
4584
4584
  }
4585
- function Lr(e, t) {
4585
+ function zr(e, t) {
4586
4586
  let { spaces: n } = S.data, r = n.find((t) => t.id === e);
4587
4587
  if (!r) return [];
4588
4588
  let i = r.tables.find((e) => e.id === t);
4589
4589
  return i ? i.columns : [];
4590
4590
  }
4591
- function Rr(e, t, n) {
4591
+ function Br(e, t, n) {
4592
4592
  let { spaces: r } = S.data, i = r.find((t) => t.id === e);
4593
4593
  if (!i) return;
4594
4594
  let a = i.tables.find((e) => e.id === t);
4595
4595
  if (a) return a.columns.find((e) => e.id === n);
4596
4596
  }
4597
- function zr(e, t) {
4597
+ function Vr(e, t) {
4598
4598
  let n = [];
4599
- return Lr(e, t).forEach(({ id: e, name: t }) => {
4599
+ return zr(e, t).forEach(({ id: e, name: t }) => {
4600
4600
  n.push([t, e]);
4601
4601
  }), F(n);
4602
4602
  }
4603
4603
  //#endregion
4604
4604
  //#region src/core/blocks/data/addData/v1/blocks.ts
4605
- function Br(e) {
4605
+ function Hr(e) {
4606
4606
  let t = e.getInput("TABLE").connection;
4607
4607
  if (t.targetBlock()) return;
4608
4608
  let n, r, i = Y()?.[0];
@@ -4634,7 +4634,7 @@ function Br(e) {
4634
4634
  }, o = l.blocks.append(a, e.workspace);
4635
4635
  t.connect(o.outputConnection);
4636
4636
  }
4637
- function Vr(e) {
4637
+ function Ur(e) {
4638
4638
  let t = e.getInput("HANDLE").connection;
4639
4639
  if (t.targetBlock()) return;
4640
4640
  let n = l.blocks.append({
@@ -4669,7 +4669,7 @@ y.add_data_v1 = {
4669
4669
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
4670
4670
  },
4671
4671
  ensureBlocks_: function() {
4672
- this.isInsertionMarker() || (Br(this), V(this, [
4672
+ this.isInsertionMarker() || (Hr(this), V(this, [
4673
4673
  [
4674
4674
  "SUCCESS",
4675
4675
  "__success__",
@@ -4688,7 +4688,7 @@ y.add_data_v1 = {
4688
4688
  "x-runtime-lib.data",
4689
4689
  !0
4690
4690
  ]
4691
- ]), Vr(this));
4691
+ ]), Ur(this));
4692
4692
  }
4693
4693
  }, g.forBlock.add_data_v1 = function(e) {
4694
4694
  let t = g.INDENT;
@@ -4736,7 +4736,7 @@ ${g.statementToCode(e, "HANDLE")}}
4736
4736
  let t = X(this.space.id)?.[0];
4737
4737
  if (!t) return;
4738
4738
  this.table.id = t.id, this.table.name = t.name;
4739
- let n = Lr(this.space.id, this.table.id)?.[0];
4739
+ let n = zr(this.space.id, this.table.id)?.[0];
4740
4740
  n && (this.column.id = n.id, this.column.name = n.name, this.column.type = n.type, this.column.extend = n.extend);
4741
4741
  },
4742
4742
  saveExtraState: function() {
@@ -4752,13 +4752,13 @@ ${g.statementToCode(e, "HANDLE")}}
4752
4752
  }, 0);
4753
4753
  },
4754
4754
  genSpaceOpts_: function() {
4755
- return Pr();
4755
+ return Ir();
4756
4756
  },
4757
4757
  genTableOpts_: function() {
4758
- return Ir(this.space.id);
4758
+ return Rr(this.space.id);
4759
4759
  },
4760
4760
  genColumnOpts_: function() {
4761
- return zr(this.space.id, this.table.id);
4761
+ return Vr(this.space.id, this.table.id);
4762
4762
  },
4763
4763
  onchange: function(e) {
4764
4764
  if (e.type === x.BLOCK_CHANGE) {
@@ -4769,7 +4769,7 @@ ${g.statementToCode(e, "HANDLE")}}
4769
4769
  }
4770
4770
  },
4771
4771
  onSpaceChange_: function(e) {
4772
- let t = Nr(e);
4772
+ let t = Fr(e);
4773
4773
  if (!t) {
4774
4774
  console.assert(!1);
4775
4775
  return;
@@ -4784,7 +4784,7 @@ ${g.statementToCode(e, "HANDLE")}}
4784
4784
  this.onTableChange_(r.getValue());
4785
4785
  },
4786
4786
  onTableChange_: function(e) {
4787
- let t = Fr(this.space.id, e);
4787
+ let t = Lr(this.space.id, e);
4788
4788
  if (!t) {
4789
4789
  console.assert(!1);
4790
4790
  return;
@@ -4793,13 +4793,13 @@ ${g.statementToCode(e, "HANDLE")}}
4793
4793
  this.table.id = t.id, this.table.name = t.name;
4794
4794
  let r = this.getField("COLUMN");
4795
4795
  if (r.getOptions(!1), n) {
4796
- let e = Lr(this.space.id, this.table.id)?.[0];
4796
+ let e = zr(this.space.id, this.table.id)?.[0];
4797
4797
  r.setValue(e?.id ?? "");
4798
4798
  }
4799
4799
  this.onColumnChange_(r.getValue());
4800
4800
  },
4801
4801
  onColumnChange_: function(e) {
4802
- let t = Rr(this.space.id, this.table.id, e);
4802
+ let t = Br(this.space.id, this.table.id, e);
4803
4803
  if (!t) {
4804
4804
  console.assert(!1);
4805
4805
  return;
@@ -4819,27 +4819,27 @@ ${g.statementToCode(e, "HANDLE")}}
4819
4819
  let t = this.getInput("VALUE").connection, n = t.targetBlock();
4820
4820
  if (e) n && n.dispose();
4821
4821
  else if (n) return;
4822
- let r = tn(this.workspace, this.column.type);
4822
+ let r = rn(this.workspace, this.column.type);
4823
4823
  r && (t.setCheck(null), t.connect(r.outputConnection));
4824
4824
  },
4825
4825
  updateCheck_: function() {
4826
- let e = an(this.column.type);
4826
+ let e = sn(this.column.type);
4827
4827
  this.getInput("VALUE").connection.setCheck(e);
4828
4828
  },
4829
4829
  checkWarning_: function() {
4830
- let e = Nr(this.space.id);
4830
+ let e = Fr(this.space.id);
4831
4831
  if (!e) {
4832
4832
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
4833
4833
  return;
4834
4834
  }
4835
4835
  e.name !== this.space.name && (this.space.name = e.name);
4836
- let t = Fr(this.space.id, this.table.id);
4836
+ let t = Lr(this.space.id, this.table.id);
4837
4837
  if (!t) {
4838
4838
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
4839
4839
  return;
4840
4840
  }
4841
4841
  t.name !== this.table.name && (this.table.name = t.name);
4842
- let n = Rr(this.space.id, this.table.id, this.column.id);
4842
+ let n = Br(this.space.id, this.table.id, this.column.id);
4843
4843
  if (!n) {
4844
4844
  this.setWarningText(P("WARN_COLUMN_NOT_FOUND"));
4845
4845
  return;
@@ -4925,7 +4925,7 @@ ${g.statementToCode(e, "HANDLE")}}
4925
4925
  };
4926
4926
  //#endregion
4927
4927
  //#region src/core/blocks/data/deleteData/v1/blocks.ts
4928
- function Hr(e) {
4928
+ function Wr(e) {
4929
4929
  let t = e.getInput("TABLE").connection;
4930
4930
  if (t.targetBlock()) return;
4931
4931
  let n = Y()?.[0], r = X(n?.id ?? "")?.[0], i = {
@@ -4943,10 +4943,10 @@ function Hr(e) {
4943
4943
  }, a = l.blocks.append(i, e.workspace);
4944
4944
  t.connect(a.outputConnection);
4945
4945
  }
4946
- function Ur(e) {
4946
+ function Gr(e) {
4947
4947
  let t = e.getInput("CONDITION").connection;
4948
4948
  if (t.targetBlock()) return;
4949
- let n = Y()?.[0], r = X(n?.id ?? "")?.[0], i = Lr(n?.id, r?.id)?.[0], a = {
4949
+ let n = Y()?.[0], r = X(n?.id ?? "")?.[0], i = zr(n?.id, r?.id)?.[0], a = {
4950
4950
  type: "cond_atomic_v1",
4951
4951
  extraState: {
4952
4952
  space: {
@@ -4967,7 +4967,7 @@ function Ur(e) {
4967
4967
  }, o = l.blocks.append(a, e.workspace);
4968
4968
  t.connect(o.outputConnection);
4969
4969
  }
4970
- function Wr(e) {
4970
+ function Kr(e) {
4971
4971
  let t = e.getInput("HANDLE").connection;
4972
4972
  if (t.targetBlock()) return;
4973
4973
  let n = l.blocks.append({
@@ -5002,7 +5002,7 @@ y.delete_data_v1 = {
5002
5002
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "HANDLE")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5003
5003
  },
5004
5004
  ensureBlocks_: function() {
5005
- this.isInsertionMarker() || (Hr(this), Ur(this), V(this, [[
5005
+ this.isInsertionMarker() || (Wr(this), Gr(this), V(this, [[
5006
5006
  "SUCCESS",
5007
5007
  "__success__",
5008
5008
  "x-runtime-lib.success",
@@ -5012,7 +5012,7 @@ y.delete_data_v1 = {
5012
5012
  "__message__",
5013
5013
  "x-runtime-lib.message",
5014
5014
  !0
5015
- ]]), Wr(this));
5015
+ ]]), Kr(this));
5016
5016
  }
5017
5017
  }, g.forBlock.delete_data_v1 = function(e) {
5018
5018
  let t = g.INDENT;
@@ -5046,7 +5046,7 @@ ${g.statementToCode(e, "HANDLE")}}
5046
5046
  };
5047
5047
  //#endregion
5048
5048
  //#region src/core/blocks/data/queryData/v1/blocks.ts
5049
- function Gr(e) {
5049
+ function qr(e) {
5050
5050
  let t = e.getInput("TABLE").connection;
5051
5051
  if (t.targetBlock()) return;
5052
5052
  let n, r, i = Y()?.[0];
@@ -5078,13 +5078,13 @@ function Gr(e) {
5078
5078
  }, o = l.blocks.append(a, e.workspace);
5079
5079
  t.connect(o.outputConnection);
5080
5080
  }
5081
- function Kr(e) {
5081
+ function Jr(e) {
5082
5082
  let t = e.getInput("CONDITION").connection;
5083
5083
  if (t.targetBlock()) return;
5084
5084
  let n = l.blocks.append({ type: "cond_atomic_v1" }, e.workspace);
5085
5085
  t.connect(n.outputConnection);
5086
5086
  }
5087
- function qr(e) {
5087
+ function Yr(e) {
5088
5088
  let t = e.getInput("EXTRA").connection;
5089
5089
  if (t.targetBlock()) return;
5090
5090
  let n = l.blocks.append({
@@ -5106,7 +5106,7 @@ function qr(e) {
5106
5106
  }, e.workspace);
5107
5107
  t.connect(n.outputConnection);
5108
5108
  }
5109
- function Jr(e) {
5109
+ function Xr(e) {
5110
5110
  let t = e.getInput("HANDLE").connection;
5111
5111
  if (t.targetBlock()) return;
5112
5112
  let n = l.blocks.append({
@@ -5150,7 +5150,7 @@ t([{
5150
5150
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("EXTRA_DATA") || (this.appendValueInput("EXTRA_DATA"), this.moveInputBefore("EXTRA_DATA", "HANDLE")), this.getInput("MAIN_DATA") || (this.appendValueInput("MAIN_DATA"), this.moveInputBefore("MAIN_DATA", "EXTRA_DATA")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "MAIN_DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5151
5151
  },
5152
5152
  ensureBlocks_: function() {
5153
- this.isInsertionMarker() || (Gr(this), Kr(this), qr(this), V(this, [
5153
+ this.isInsertionMarker() || (qr(this), Jr(this), Yr(this), V(this, [
5154
5154
  [
5155
5155
  "SUCCESS",
5156
5156
  "__success__",
@@ -5175,7 +5175,7 @@ t([{
5175
5175
  "x-runtime-lib.extraData",
5176
5176
  !0
5177
5177
  ]
5178
- ]), Jr(this));
5178
+ ]), Xr(this));
5179
5179
  }
5180
5180
  }, g.forBlock.query_data_v1 = function(e) {
5181
5181
  let t = g.INDENT;
@@ -5273,10 +5273,10 @@ ${g.statementToCode(e, "HANDLE")}}
5273
5273
  }, 0);
5274
5274
  },
5275
5275
  genSpaceOpts_: function() {
5276
- return Pr();
5276
+ return Ir();
5277
5277
  },
5278
5278
  genTableOpts_: function() {
5279
- return Ir(this.space.id);
5279
+ return Rr(this.space.id);
5280
5280
  },
5281
5281
  genColumnOpts_: function() {
5282
5282
  let e = [];
@@ -5303,7 +5303,7 @@ ${g.statementToCode(e, "HANDLE")}}
5303
5303
  }
5304
5304
  },
5305
5305
  onSpaceChange_: function(e) {
5306
- let t = Nr(e);
5306
+ let t = Fr(e);
5307
5307
  if (!t) {
5308
5308
  console.assert(!1);
5309
5309
  return;
@@ -5318,7 +5318,7 @@ ${g.statementToCode(e, "HANDLE")}}
5318
5318
  this.onTableChange_(r.getValue());
5319
5319
  },
5320
5320
  onTableChange_: function(e) {
5321
- let t = Fr(this.space.id, e);
5321
+ let t = Lr(this.space.id, e);
5322
5322
  if (!t) {
5323
5323
  console.assert(!1);
5324
5324
  return;
@@ -5392,13 +5392,13 @@ ${g.statementToCode(e, "HANDLE")}}
5392
5392
  }
5393
5393
  },
5394
5394
  checkWarning_: function() {
5395
- let e = Nr(this.space.id);
5395
+ let e = Fr(this.space.id);
5396
5396
  if (!e) {
5397
5397
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
5398
5398
  return;
5399
5399
  }
5400
5400
  e.name !== this.space.name && (this.space.name = e.name);
5401
- let t = Fr(this.space.id, this.table.id);
5401
+ let t = Lr(this.space.id, this.table.id);
5402
5402
  if (!t) {
5403
5403
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
5404
5404
  return;
@@ -5455,10 +5455,10 @@ ${g.statementToCode(e, "HANDLE")}}
5455
5455
  this.space.id = e.space?.id ?? "", this.space.name = e.space?.name ?? "", this.table.id = e.table?.id ?? "", this.table.name = e.table?.name ?? "", this.checkWarning_();
5456
5456
  },
5457
5457
  genSpaceOpts_: function() {
5458
- return Pr();
5458
+ return Ir();
5459
5459
  },
5460
5460
  genTableOpts_: function() {
5461
- return Ir(this.space.id);
5461
+ return Rr(this.space.id);
5462
5462
  },
5463
5463
  onchange: function(e) {
5464
5464
  if (e.type === x.BLOCK_CHANGE) {
@@ -5469,7 +5469,7 @@ ${g.statementToCode(e, "HANDLE")}}
5469
5469
  }
5470
5470
  },
5471
5471
  onSpaceChange_: function(e) {
5472
- let t = Nr(e);
5472
+ let t = Fr(e);
5473
5473
  if (!t) {
5474
5474
  console.assert(!1);
5475
5475
  return;
@@ -5484,7 +5484,7 @@ ${g.statementToCode(e, "HANDLE")}}
5484
5484
  this.onTableChange_(r.getValue());
5485
5485
  },
5486
5486
  onTableChange_: function(e) {
5487
- let t = Fr(this.space.id, e);
5487
+ let t = Lr(this.space.id, e);
5488
5488
  if (!t) {
5489
5489
  console.assert(!1);
5490
5490
  return;
@@ -5492,13 +5492,13 @@ ${g.statementToCode(e, "HANDLE")}}
5492
5492
  this.table.id = t.id, this.table.name = t.name;
5493
5493
  },
5494
5494
  checkWarning_: function() {
5495
- let e = Nr(this.space.id);
5495
+ let e = Fr(this.space.id);
5496
5496
  if (!e) {
5497
5497
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
5498
5498
  return;
5499
5499
  }
5500
5500
  e.name !== this.space.name && (this.space.name = e.name);
5501
- let t = Fr(this.space.id, this.table.id);
5501
+ let t = Lr(this.space.id, this.table.id);
5502
5502
  if (!t) {
5503
5503
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
5504
5504
  return;
@@ -5537,7 +5537,7 @@ ${g.statementToCode(e, "HANDLE")}}
5537
5537
  ]]);
5538
5538
  }
5539
5539
  }, g.forBlock.transaction_v1 = function(e) {
5540
- let t = g.INDENT, n = e, r = qt(n), i = g.statementToCode(n, "HANDLE"), a = g.statementToCode(n, "FINALLY");
5540
+ let t = g.INDENT, n = e, r = Yt(n), i = g.statementToCode(n, "HANDLE"), a = g.statementToCode(n, "FINALLY");
5541
5541
  return `{
5542
5542
  ${t}var __error${r}__ = '';
5543
5543
  ${t}var __txExist${r}__ = typeof(__tx__) !== 'undefined';
@@ -5619,10 +5619,10 @@ ${t}}
5619
5619
  }, 0);
5620
5620
  },
5621
5621
  genSpaceOpts_: function() {
5622
- return Pr();
5622
+ return Ir();
5623
5623
  },
5624
5624
  genTableOpts_: function() {
5625
- return Ir(this.space.id);
5625
+ return Rr(this.space.id);
5626
5626
  },
5627
5627
  genColumnOpts_: function() {
5628
5628
  let e = [];
@@ -5649,7 +5649,7 @@ ${t}}
5649
5649
  }
5650
5650
  },
5651
5651
  onSpaceChange_: function(e) {
5652
- let t = Nr(e);
5652
+ let t = Fr(e);
5653
5653
  if (!t) {
5654
5654
  console.assert(!1);
5655
5655
  return;
@@ -5664,7 +5664,7 @@ ${t}}
5664
5664
  this.onTableChange_(r.getValue());
5665
5665
  },
5666
5666
  onTableChange_: function(e) {
5667
- let t = Fr(this.space.id, e);
5667
+ let t = Lr(this.space.id, e);
5668
5668
  if (!t) {
5669
5669
  console.assert(!1);
5670
5670
  return;
@@ -5686,7 +5686,7 @@ ${t}}
5686
5686
  }
5687
5687
  let r = this.getInput("ADD" + e).connection, i = r.targetBlock();
5688
5688
  i && i.dispose();
5689
- let a = tn(this.workspace, n.type);
5689
+ let a = rn(this.workspace, n.type);
5690
5690
  a && (r.setCheck(null), r.connect(a.outputConnection)), this.updateCheck_();
5691
5691
  },
5692
5692
  decompose: function(e) {
@@ -5757,7 +5757,7 @@ ${t}}
5757
5757
  let a = this.getFieldValue("COLUMN" + t), o = this.table.columns.find((e) => e.id === a);
5758
5758
  if (!o) continue;
5759
5759
  n.setCheck(null);
5760
- let s = tn(this.workspace, o.type);
5760
+ let s = rn(this.workspace, o.type);
5761
5761
  s && r.connect(s.outputConnection);
5762
5762
  }
5763
5763
  },
@@ -5765,18 +5765,18 @@ ${t}}
5765
5765
  for (let e = 0; e < this.itemCount_; e++) {
5766
5766
  let t = this.getFieldValue("COLUMN" + e), n = this.table.columns.find((e) => e.id === t);
5767
5767
  if (!n) continue;
5768
- let r = an(n.type);
5768
+ let r = sn(n.type);
5769
5769
  this.getInput("ADD" + e).setCheck(r);
5770
5770
  }
5771
5771
  },
5772
5772
  checkWarning_: function() {
5773
- let e = Nr(this.space.id);
5773
+ let e = Fr(this.space.id);
5774
5774
  if (!e) {
5775
5775
  this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
5776
5776
  return;
5777
5777
  }
5778
5778
  e.name !== this.space.name && (this.space.name = e.name);
5779
- let t = Fr(this.space.id, this.table.id);
5779
+ let t = Lr(this.space.id, this.table.id);
5780
5780
  if (!t) {
5781
5781
  this.setWarningText(P("WARN_TABLE_NOT_FOUND"));
5782
5782
  return;
@@ -5803,7 +5803,7 @@ ${t}}
5803
5803
  };
5804
5804
  //#endregion
5805
5805
  //#region src/core/blocks/data/updateData/v1/blocks.ts
5806
- function Yr(e) {
5806
+ function Zr(e) {
5807
5807
  let t = e.getInput("TABLE").connection;
5808
5808
  if (t.targetBlock()) return;
5809
5809
  let n, r, i = Y()?.[0];
@@ -5835,13 +5835,13 @@ function Yr(e) {
5835
5835
  }, o = l.blocks.append(a, e.workspace);
5836
5836
  t.connect(o.outputConnection);
5837
5837
  }
5838
- function Xr(e) {
5838
+ function Qr(e) {
5839
5839
  let t = e.getInput("CONDITION").connection;
5840
5840
  if (t.targetBlock()) return;
5841
5841
  let n = l.blocks.append({ type: "cond_atomic_v1" }, e.workspace);
5842
5842
  t.connect(n.outputConnection);
5843
5843
  }
5844
- function Zr(e) {
5844
+ function $r(e) {
5845
5845
  let t = e.getInput("HANDLE").connection;
5846
5846
  if (t.targetBlock()) return;
5847
5847
  let n = l.blocks.append({
@@ -5876,7 +5876,7 @@ y.update_data_v1 = {
5876
5876
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5877
5877
  },
5878
5878
  ensureBlocks: function() {
5879
- this.isInsertionMarker() || (Yr(this), Xr(this), V(this, [
5879
+ this.isInsertionMarker() || (Zr(this), Qr(this), V(this, [
5880
5880
  [
5881
5881
  "SUCCESS",
5882
5882
  "__success__",
@@ -5895,7 +5895,7 @@ y.update_data_v1 = {
5895
5895
  "x-runtime-lib.data",
5896
5896
  !0
5897
5897
  ]
5898
- ]), Zr(this));
5898
+ ]), $r(this));
5899
5899
  }
5900
5900
  }, g.forBlock.update_data_v1 = function(e) {
5901
5901
  let t = g.INDENT;
@@ -5915,15 +5915,15 @@ ${g.statementToCode(e, "HANDLE")}}
5915
5915
  };
5916
5916
  //#endregion
5917
5917
  //#region src/core/blocks/json/jsonArray/v1/index.ts
5918
- var Qr = p.xml;
5918
+ var ei = p.xml;
5919
5919
  y.json_array_v1 = {
5920
5920
  init: function() {
5921
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Ut, 20, 20, void 0, () => {
5921
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Gt, 20, 20, void 0, () => {
5922
5922
  this.isInFlyout || this.addEntry_();
5923
5923
  })), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
5924
5924
  },
5925
5925
  mutationToDom: function() {
5926
- let e = Qr.createElement("mutation");
5926
+ let e = ei.createElement("mutation");
5927
5927
  return e.setAttribute("items", String(this.length)), e;
5928
5928
  },
5929
5929
  domToMutation: function(e) {
@@ -5935,9 +5935,9 @@ y.json_array_v1 = {
5935
5935
  initShape_: function() {
5936
5936
  for (let e = 0; e < this.length; e++) {
5937
5937
  let t = "ENTRY" + e, n = this.appendValueInput(t);
5938
- n.appendField(new h(Ut, 20, 20, void 0, () => {
5938
+ n.appendField(new h(Gt, 20, 20, void 0, () => {
5939
5939
  this.isInFlyout || this.addEntry_(n);
5940
- })), n.appendField(new i(String(e))), n.appendField(new h(Wt, 20, 20, void 0, () => {
5940
+ })), n.appendField(new i(String(e))), n.appendField(new h(Kt, 20, 20, void 0, () => {
5941
5941
  this.isInFlyout || this.removeEntry_(n);
5942
5942
  })), this.moveInputBefore(t, "ADD");
5943
5943
  }
@@ -5950,9 +5950,9 @@ y.json_array_v1 = {
5950
5950
  t.name = "ENTRY" + (e + 1), t.fieldRow[1].setValue(e + 1);
5951
5951
  }
5952
5952
  let n = this.appendValueInput("ENTRY" + t);
5953
- n.appendField(new h(Ut, 20, 20, void 0, () => {
5953
+ n.appendField(new h(Gt, 20, 20, void 0, () => {
5954
5954
  this.isInFlyout || this.addEntry_(n);
5955
- })), n.appendField(new i(String(t))), n.appendField(new h(Wt, 20, 20, void 0, () => {
5955
+ })), n.appendField(new i(String(t))), n.appendField(new h(Kt, 20, 20, void 0, () => {
5956
5956
  this.isInFlyout || this.removeEntry_(n);
5957
5957
  })), t === this.length ? this.moveInputBefore("ENTRY" + t, "ADD") : this.moveInputBefore("ENTRY" + t, "ENTRY" + (t + 1)), this.length++;
5958
5958
  },
@@ -5971,17 +5971,17 @@ y.json_array_v1 = {
5971
5971
  } };
5972
5972
  //#endregion
5973
5973
  //#region src/core/blocks/json/jsonMap/v1/index.ts
5974
- var $r = p.xml;
5974
+ var ti = p.xml;
5975
5975
  y.json_map_v1 = {
5976
5976
  init: function() {
5977
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Ut, 20, 20, void 0, () => {
5977
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(u.Align.CENTRE).appendField(new h(Gt, 20, 20, void 0, () => {
5978
5978
  this.isInFlyout || this.addEntry_();
5979
5979
  })), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
5980
5980
  },
5981
5981
  mutationToDom: function() {
5982
- let e = $r.createElement("mutation");
5982
+ let e = ti.createElement("mutation");
5983
5983
  for (let t = 0; t < this.length; t++) {
5984
- let n = $r.createElement("item");
5984
+ let n = ti.createElement("item");
5985
5985
  n.setAttribute("key", this.getFieldValue("KEY" + t)), e.appendChild(n);
5986
5986
  }
5987
5987
  return e;
@@ -6000,9 +6000,9 @@ y.json_map_v1 = {
6000
6000
  initShape_: function(e) {
6001
6001
  for (let t = 0; t < e.length; t++) {
6002
6002
  let n = e[t], r = "ENTRY" + t, i = this.appendValueInput(r);
6003
- i.appendField(new h(Ut, 20, 20, void 0, () => {
6003
+ i.appendField(new h(Gt, 20, 20, void 0, () => {
6004
6004
  this.isInFlyout || this.addEntry_(i);
6005
- })), i.appendField(new f(n), "KEY" + t), i.appendField(new h(Wt, 20, 20, void 0, () => {
6005
+ })), i.appendField(new f(n), "KEY" + t), i.appendField(new h(Kt, 20, 20, void 0, () => {
6006
6006
  this.isInFlyout || this.removeEntry_(i);
6007
6007
  })), this.moveInputBefore(r, "ADD");
6008
6008
  }
@@ -6012,9 +6012,9 @@ y.json_map_v1 = {
6012
6012
  e && (t = me(e.name.substring(5)));
6013
6013
  for (let e = this.length - 1; e >= t; e--) this.getField("KEY" + e).name = "KEY" + (e + 1), this.getInput("ENTRY" + e).name = "ENTRY" + (e + 1);
6014
6014
  let n = this.appendValueInput("ENTRY" + t);
6015
- n.appendField(new h(Ut, 20, 20, void 0, () => {
6015
+ n.appendField(new h(Gt, 20, 20, void 0, () => {
6016
6016
  this.isInFlyout || this.addEntry_(n);
6017
- })), n.appendField(new f("key"), "KEY" + t), n.appendField(new h(Wt, 20, 20, void 0, () => {
6017
+ })), n.appendField(new f("key"), "KEY" + t), n.appendField(new h(Kt, 20, 20, void 0, () => {
6018
6018
  this.isInFlyout || this.removeEntry_(n);
6019
6019
  })), t === this.length ? this.moveInputBefore("ENTRY" + t, "ADD") : this.moveInputBefore("ENTRY" + t, "ENTRY" + (t + 1)), this.length++;
6020
6020
  },
@@ -6034,7 +6034,7 @@ y.json_map_v1 = {
6034
6034
  } };
6035
6035
  //#endregion
6036
6036
  //#region src/core/blocks/list/listCreate/v1/index.ts
6037
- var ei = p.xml;
6037
+ var ni = p.xml;
6038
6038
  y.list_create_container_v1 = { init: function() {
6039
6039
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
6040
6040
  } }, y.list_create_item_v1 = { init: function() {
@@ -6044,7 +6044,7 @@ y.list_create_container_v1 = { init: function() {
6044
6044
  this.itemCount_ = 0, this.setMutator(new oe.MutatorIcon(["list_create_item_v1"], this)), this.setOutput(!0, "Array"), this.setStyle("list_blocks"), this.setTooltip("%{BKY_LIST_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_LIST_V1_CREATE_HELPURL}"), this.updateShape_();
6045
6045
  },
6046
6046
  mutationToDom: function() {
6047
- let e = ei.createElement("mutation");
6047
+ let e = ni.createElement("mutation");
6048
6048
  return e.setAttribute("items", String(this.itemCount_)), e;
6049
6049
  },
6050
6050
  domToMutation: function(e) {
@@ -6291,7 +6291,7 @@ y.list_create_container_v1 = { init: function() {
6291
6291
  };
6292
6292
  //#endregion
6293
6293
  //#region src/core/blocks/logic/logicCompare/v1/index.ts
6294
- var ti = { onchange: function(e) {
6294
+ var ri = { onchange: function(e) {
6295
6295
  this.prevBlocks_ ||= [null, null];
6296
6296
  let t = this.getInputTargetBlock("A"), n = this.getInputTargetBlock("B");
6297
6297
  if (t && n && !this.workspace.connectionChecker.doTypeChecks(t.outputConnection, n.outputConnection)) {
@@ -6306,7 +6306,7 @@ var ti = { onchange: function(e) {
6306
6306
  //#endregion
6307
6307
  //#region src/core/blocks/loop/flowControl/v1/extensions.ts
6308
6308
  m.register("logic_compare_v1", function() {
6309
- this.mixin(ti);
6309
+ this.mixin(ri);
6310
6310
  }), t([{
6311
6311
  type: "logic_compare_v1",
6312
6312
  message0: "%1 %2 %3",
@@ -6600,7 +6600,7 @@ m.register("logic_compare_v1", function() {
6600
6600
  BREAK: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_BREAK}",
6601
6601
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
6602
6602
  }));
6603
- var ni = new Set([
6603
+ var ii = new Set([
6604
6604
  "repeat_v1",
6605
6605
  "for_each_v1",
6606
6606
  "for_v1",
@@ -6610,7 +6610,7 @@ m.registerMixin("flow_control_in_loop_check_v1", {
6610
6610
  getSurroundLoop: function() {
6611
6611
  let e = this;
6612
6612
  do {
6613
- if (ni.has(e.type)) return e;
6613
+ if (ii.has(e.type)) return e;
6614
6614
  e = e?.getSurroundParent();
6615
6615
  } while (e);
6616
6616
  return null;
@@ -7334,7 +7334,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
7334
7334
  };
7335
7335
  //#endregion
7336
7336
  //#region src/core/blocks/object/objectCreate/v1/index.ts
7337
- var ri = p.xml;
7337
+ var ai = p.xml;
7338
7338
  y.object_create_container_v1 = { init: function() {
7339
7339
  this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
7340
7340
  } }, y.object_create_item_v1 = { init: function() {
@@ -7344,7 +7344,7 @@ y.object_create_container_v1 = { init: function() {
7344
7344
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(new oe.MutatorIcon(["object_create_item_v1"], this)), this.setOutput(!0, "Object"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_OBJECT_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_OBJECT_V1_CREATE_HELPURL}");
7345
7345
  },
7346
7346
  mutationToDom: function() {
7347
- let e = ri.createElement("mutation");
7347
+ let e = ai.createElement("mutation");
7348
7348
  return e.setAttribute("items", String(this.itemCount_)), e;
7349
7349
  },
7350
7350
  domToMutation: function(e) {
@@ -7601,7 +7601,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
7601
7601
  };
7602
7602
  //#endregion
7603
7603
  //#region src/core/blocks/procedure/procedureDef/v1/index.ts
7604
- var ii = p.xml;
7604
+ var oi = p.xml;
7605
7605
  y.procedure_def_container_v1 = { init: function() {
7606
7606
  this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new n(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7607
7607
  } }, y.procedure_def_item_v1 = {
@@ -7629,9 +7629,9 @@ y.procedure_def_container_v1 = { init: function() {
7629
7629
  e.setValidator(_e.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(new oe.MutatorIcon(["procedure_def_item_v1"], this)), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_DEF_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_DEF_HELPURL}");
7630
7630
  },
7631
7631
  mutationToDom: function() {
7632
- let e = ii.createElement("mutation");
7632
+ let e = oi.createElement("mutation");
7633
7633
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), this.args.forEach((t) => {
7634
- let n = ii.createElement("arg");
7634
+ let n = oi.createElement("arg");
7635
7635
  n.setAttribute("name", t.name), n.setAttribute("id", t.id), e.appendChild(n);
7636
7636
  }), e;
7637
7637
  },
@@ -7708,7 +7708,7 @@ y.procedure_def_container_v1 = { init: function() {
7708
7708
  let t = this.args[e], n = this.getInput("ARG" + e).connection, r = n.targetBlock();
7709
7709
  if (r) r.setKeyName(`__param@${t.id}__`, t.name, !1);
7710
7710
  else try {
7711
- x.disable(), r = sn(this.workspace, `__param@${t.id}__`, t.name, !1), r.outputConnection.connect(n);
7711
+ x.disable(), r = ln(this.workspace, `__param@${t.id}__`, t.name, !1), r.outputConnection.connect(n);
7712
7712
  } finally {
7713
7713
  x.enable();
7714
7714
  }
@@ -7717,13 +7717,13 @@ y.procedure_def_container_v1 = { init: function() {
7717
7717
  };
7718
7718
  //#endregion
7719
7719
  //#region src/core/blocks/procedure/procedureReturn/v1/index.ts
7720
- var ai = p.xml;
7720
+ var si = p.xml;
7721
7721
  y.procedure_return_v1 = {
7722
7722
  init: function() {
7723
7723
  this.withReturn = !1, this.appendDummyInput("DUMMY").appendField("%{BKY_PROCEDURE_RETURN}"), this.appendValueInput("VALUE").appendField("%{BKY_PROCEDURE_RETURN}").setVisible(!1), this.setPreviousStatement(!0), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_RETURN_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_RETURN_HELPURL}");
7724
7724
  },
7725
7725
  mutationToDom: function() {
7726
- let e = ai.createElement("mutation");
7726
+ let e = si.createElement("mutation");
7727
7727
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), e;
7728
7728
  },
7729
7729
  domToMutation: function(e) {
@@ -7819,7 +7819,7 @@ ${g.statementToCode(e, "HANDLE")}
7819
7819
  };
7820
7820
  //#endregion
7821
7821
  //#region src/core/utils/resource/dir.ts
7822
- function oi(e) {
7822
+ function ci(e) {
7823
7823
  let t = S.resource.spaces.find((t) => t.id === e);
7824
7824
  if (!t) return [];
7825
7825
  let n = [];
@@ -7834,15 +7834,15 @@ function oi(e) {
7834
7834
  }
7835
7835
  return r(t.dirTree, ""), n;
7836
7836
  }
7837
- function si(e) {
7837
+ function li(e) {
7838
7838
  let t = [];
7839
- return oi(e).forEach(({ id: e, name: n }) => {
7839
+ return ci(e).forEach(({ id: e, name: n }) => {
7840
7840
  t.push([n, e]);
7841
7841
  }), F(t);
7842
7842
  }
7843
7843
  //#endregion
7844
7844
  //#region src/core/utils/resource/resource.ts
7845
- function ci(e, t) {
7845
+ function ui(e, t) {
7846
7846
  let n = S.resource.spaces.find((t) => t.id === e);
7847
7847
  if (!n) return [];
7848
7848
  let r = [];
@@ -7850,23 +7850,23 @@ function ci(e, t) {
7850
7850
  e.dirid === t && r.push(e);
7851
7851
  }), r;
7852
7852
  }
7853
- function li(e, t) {
7853
+ function di(e, t) {
7854
7854
  let n = [];
7855
- return ci(e, t).forEach(({ id: e, name: t }) => {
7855
+ return ui(e, t).forEach(({ id: e, name: t }) => {
7856
7856
  n.push([t, e]);
7857
7857
  }), F(n);
7858
7858
  }
7859
7859
  //#endregion
7860
7860
  //#region src/core/utils/resource/space.ts
7861
- function ui() {
7861
+ function fi() {
7862
7862
  let e = [];
7863
7863
  return S.resource.spaces.forEach((t) => {
7864
7864
  t.resources.length > 0 && e.push(t);
7865
7865
  }), e;
7866
7866
  }
7867
- function di() {
7867
+ function pi() {
7868
7868
  let e = [];
7869
- return ui().forEach(({ id: t, name: n }) => {
7869
+ return fi().forEach(({ id: t, name: n }) => {
7870
7870
  e.push([n, t]);
7871
7871
  }), F(e);
7872
7872
  }
@@ -7885,17 +7885,17 @@ y.select_resource_v1 = {
7885
7885
  },
7886
7886
  initData_: function() {
7887
7887
  if (this.space.id) return;
7888
- let e = ui()?.[0];
7888
+ let e = fi()?.[0];
7889
7889
  if (!e) return;
7890
7890
  this.space.id = e.id, this.space.name = e.name;
7891
7891
  let t = this.getField("SPACE");
7892
7892
  t.getOptions(!1), t.setValue(this.space.id);
7893
- let n = oi(this.space.id)?.[0];
7893
+ let n = ci(this.space.id)?.[0];
7894
7894
  if (!n) return;
7895
7895
  this.dir.id = n.id, this.dir.name = n.name;
7896
7896
  let r = this.getField("DIR");
7897
7897
  r.getOptions(!1), r.setValue(this.dir.id);
7898
- let i = ci(this.space.id, this.dir.id)?.[0];
7898
+ let i = ui(this.space.id, this.dir.id)?.[0];
7899
7899
  if (!i) return;
7900
7900
  this.resource.id = i.id, this.resource.name = i.name;
7901
7901
  let a = this.getField("RESOURCE");
@@ -7912,13 +7912,13 @@ y.select_resource_v1 = {
7912
7912
  this.space = he(e.space), this.dir = he(e.dir), this.resource = he(e.resource);
7913
7913
  },
7914
7914
  genSpaceOpts_: function() {
7915
- return di();
7915
+ return pi();
7916
7916
  },
7917
7917
  genDirOpts_: function() {
7918
- return si(this.space.id);
7918
+ return li(this.space.id);
7919
7919
  },
7920
7920
  genResourceOpts_: function() {
7921
- return li(this.space.id, this.dir.id);
7921
+ return di(this.space.id, this.dir.id);
7922
7922
  }
7923
7923
  }, g.forBlock.select_resource_v1 = function() {
7924
7924
  return "";
@@ -7939,7 +7939,7 @@ y.select_resource_v1 = {
7939
7939
  },
7940
7940
  updateShadow_: function() {
7941
7941
  if (this.isInsertionMarker()) return;
7942
- let e = cn("");
7942
+ let e = un("");
7943
7943
  this.getInput("NAME")?.setShadowDom(e);
7944
7944
  },
7945
7945
  ensureBlocks_: function() {
@@ -7991,9 +7991,9 @@ ${g.statementToCode(e, "HANDLE")}
7991
7991
  };
7992
7992
  //#endregion
7993
7993
  //#region src/core/blocks/text/utils/index.ts
7994
- var fi = /^\s*'([^']|\\')*'\s*$/;
7995
- function pi(e) {
7996
- return fi.test(e) ? [e, _.ATOMIC] : [`String(${e})`, _.FUNCTION_CALL];
7994
+ var mi = /^\s*'([^']|\\')*'\s*$/;
7995
+ function hi(e) {
7996
+ return mi.test(e) ? [e, _.ATOMIC] : [`String(${e})`, _.FUNCTION_CALL];
7997
7997
  }
7998
7998
  m.register("text_append_tooltip_v1", m.buildTooltipWithFieldText("%{BKY_TEXT_V1_APPEND_TOOLTIP}", "VAR")), t([{
7999
7999
  type: "text_append_v1",
@@ -8011,7 +8011,7 @@ m.register("text_append_tooltip_v1", m.buildTooltipWithFieldText("%{BKY_TEXT_V1_
8011
8011
  helpUrl: "%{BKY_TEXT_V1_APPEND_HELPURL}",
8012
8012
  extensions: ["text_append_tooltip_v1"]
8013
8013
  }]), g.forBlock.text_append_v1 = function(t) {
8014
- return `${g.nameDB_?.getName(t.getFieldValue("VAR"), e.NameType.VARIABLE)} += ${pi(g.valueToCode(t, "TEXT", _.NONE) || "''")};\n`;
8014
+ return `${g.nameDB_?.getName(t.getFieldValue("VAR"), e.NameType.VARIABLE)} += ${hi(g.valueToCode(t, "TEXT", _.NONE) || "''")};\n`;
8015
8015
  }, t([{
8016
8016
  type: "text_change_case_v1",
8017
8017
  message0: "%{BKY_TEXT_V1_CHANGE_CASE_TITLE}",
@@ -8135,11 +8135,11 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
8135
8135
  };
8136
8136
  //#endregion
8137
8137
  //#region src/core/blocks/text/textJoin/v1/index.ts
8138
- var mi = p.xml;
8138
+ var gi = p.xml;
8139
8139
  m.registerMutator("text_join_mutator_v1", {
8140
8140
  itemCount_: 0,
8141
8141
  mutationToDom: function() {
8142
- let e = mi.createElement("mutation");
8142
+ let e = gi.createElement("mutation");
8143
8143
  return e.setAttribute("items", `${this.itemCount_}`), e;
8144
8144
  },
8145
8145
  domToMutation: function(e) {
@@ -8230,10 +8230,10 @@ m.registerMutator("text_join_mutator_v1", {
8230
8230
  let t = e;
8231
8231
  switch (t.itemCount_) {
8232
8232
  case 0: return ["''", _.ATOMIC];
8233
- case 1: return pi(g.valueToCode(t, "ADD0", _.NONE) || "''");
8233
+ case 1: return hi(g.valueToCode(t, "ADD0", _.NONE) || "''");
8234
8234
  case 2: {
8235
8235
  let e = g.valueToCode(t, "ADD0", _.NONE) || "''", n = g.valueToCode(t, "ADD1", _.NONE) || "''";
8236
- return [pi(e)[0] + " + " + pi(n)[0], _.ADDITION];
8236
+ return [hi(e)[0] + " + " + hi(n)[0], _.ADDITION];
8237
8237
  }
8238
8238
  default: {
8239
8239
  let e = Array(t.itemCount_);
@@ -8391,13 +8391,13 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
8391
8391
  },
8392
8392
  updateShadow_: function() {
8393
8393
  if (this.isInsertionMarker()) return;
8394
- let e = ln(1e3);
8394
+ let e = dn(1e3);
8395
8395
  this.getInput("INTERVAL")?.setShadowDom(e);
8396
- let t = un(!1);
8396
+ let t = fn(!1);
8397
8397
  this.getInput("LOOP")?.setShadowDom(t);
8398
- let n = ln(1);
8398
+ let n = dn(1);
8399
8399
  this.getInput("COUNT")?.setShadowDom(n);
8400
- let r = un(!1);
8400
+ let r = fn(!1);
8401
8401
  this.getInput("IMMEDIATE")?.setShadowDom(r);
8402
8402
  }
8403
8403
  }, g.forBlock.create_timer_v1 = function(e) {
@@ -8421,7 +8421,7 @@ ${g.statementToCode(e, "CALLBACK")}});\n`;
8421
8421
  };
8422
8422
  //#endregion
8423
8423
  //#region src/core/blocks/variable/extensions/v1/index.ts
8424
- var hi = { customContextMenu: function(e) {
8424
+ var _i = { customContextMenu: function(e) {
8425
8425
  if (!this.isInFlyout) {
8426
8426
  let t, n;
8427
8427
  this.type === "variable_get_v1" ? (t = "variable_set_v1", n = P("VARIABLE_GET_CREATE_SET")) : this.type === "variable_set_v1" ? (t = "variable_get_v1", n = P("VARIABLE_SET_CREATE_GET")) : console.assert(!1);
@@ -8438,26 +8438,26 @@ var hi = { customContextMenu: function(e) {
8438
8438
  let t = {
8439
8439
  text: P("RENAME_VARIABLE"),
8440
8440
  enabled: !0,
8441
- callback: gi(this)
8441
+ callback: vi(this)
8442
8442
  }, n = this.getField("VAR").getText(), r = {
8443
8443
  text: P("DELETE_VARIABLE").replace("%1", n),
8444
8444
  enabled: !0,
8445
- callback: _i(this)
8445
+ callback: yi(this)
8446
8446
  };
8447
8447
  e.unshift(t), e.unshift(r);
8448
8448
  }
8449
- } }, gi = function(e) {
8449
+ } }, vi = function(e) {
8450
8450
  return function() {
8451
8451
  let t = e.workspace, n = e.getField("VAR").getVariable();
8452
8452
  c.renameVariable(t, n);
8453
8453
  };
8454
- }, _i = function(e) {
8454
+ }, yi = function(e) {
8455
8455
  return function() {
8456
8456
  let t = e.getField("VAR").getVariable();
8457
8457
  t && c.deleteVariable(t.getWorkspace(), t, e);
8458
8458
  };
8459
8459
  };
8460
- m.registerMixin("context_menu_variable_v1", hi), t([{
8460
+ m.registerMixin("context_menu_variable_v1", _i), t([{
8461
8461
  type: "variable_get_v1",
8462
8462
  message0: "%1",
8463
8463
  args0: [{
@@ -8491,12 +8491,12 @@ m.registerMixin("context_menu_variable_v1", hi), t([{
8491
8491
  }]), g.forBlock.variable_set_v1 = function(t) {
8492
8492
  return `${g.nameDB_.getName(t.getFieldValue("VAR"), e.NameType.VARIABLE)} = ${g.valueToCode(t, "VALUE", _.ASSIGNMENT) || "0"};\n`;
8493
8493
  }, ae.setConfirm(async (e, t) => {
8494
- t(!!await ct({
8494
+ t(!!await ut({
8495
8495
  title: "",
8496
8496
  text: e
8497
8497
  }));
8498
8498
  }), ae.setPrompt(async (e, t, n) => {
8499
- let r = await lt({
8499
+ let r = await dt({
8500
8500
  title: "",
8501
8501
  value: t
8502
8502
  });
@@ -8504,18 +8504,18 @@ m.registerMixin("context_menu_variable_v1", hi), t([{
8504
8504
  });
8505
8505
  //#endregion
8506
8506
  //#region src/core/plugins/fieldDropdown/index.ts
8507
- var vi = b.prototype;
8508
- vi.doClassValidation_ = function(e) {
8507
+ var bi = b.prototype;
8508
+ bi.doClassValidation_ = function(e) {
8509
8509
  return e;
8510
8510
  };
8511
- var yi = vi.doValueUpdate_;
8512
- vi.doValueUpdate_ = function(e) {
8513
- yi.call(this, e), this.selectedOption && this.selectedOption[1] !== e && (this.selectedOption = null);
8511
+ var xi = bi.doValueUpdate_;
8512
+ bi.doValueUpdate_ = function(e) {
8513
+ xi.call(this, e), this.selectedOption && this.selectedOption[1] !== e && (this.selectedOption = null);
8514
8514
  };
8515
- var bi = vi.getText_;
8516
- vi.getText_ = function() {
8517
- if (this.selectedOption) return bi.call(this);
8518
- let { i18n: e } = ot, t = this.getSourceBlock();
8515
+ var Si = bi.getText_;
8516
+ bi.getText_ = function() {
8517
+ if (this.selectedOption) return Si.call(this);
8518
+ let { i18n: e } = ct, t = this.getSourceBlock();
8519
8519
  if (this.name === "APP") return t.app.name;
8520
8520
  if (this.name === "PAGE") return t.page.name;
8521
8521
  if (this.name === "ELEMENT") return t.element.name;
@@ -8524,13 +8524,13 @@ vi.getText_ = function() {
8524
8524
  if (n) return `${e.global.t(n.name)} / ${t.node.alias}`;
8525
8525
  } else if (this.name === "PROPERTY") {
8526
8526
  let { kind: e, names: n } = t.property;
8527
- return Je(e, n);
8527
+ return Xe(e, n);
8528
8528
  } else if (this.name === "EVENT") {
8529
8529
  let { kind: e, names: n } = t.event;
8530
- return Ke(e, n);
8530
+ return Je(e, n);
8531
8531
  } else if (this.name === "METHOD") {
8532
8532
  let { kind: e, names: n } = t.method;
8533
- return qe(e, n);
8533
+ return Ye(e, n);
8534
8534
  } else if (this.name === "SPACE") return t.space.name;
8535
8535
  else if (this.name === "FUNC") return t.func.name;
8536
8536
  else if (this.name === "OUTPUT") return t.output.name;
@@ -8542,7 +8542,7 @@ vi.getText_ = function() {
8542
8542
  };
8543
8543
  //#endregion
8544
8544
  //#region src/core/plugins/workspaceCleanUp/index.ts
8545
- var xi = 60;
8545
+ var Ci = 60;
8546
8546
  ee.prototype.cleanUp = function() {
8547
8547
  this.setResizesEnabled(!1);
8548
8548
  let e = x.getGroup();
@@ -8555,47 +8555,47 @@ ee.prototype.cleanUp = function() {
8555
8555
  let t = e.getBoundingRectangle();
8556
8556
  e.moveBy(-t.left, a - t.top, ["cleanup"]), e.snapToGrid(), t = e.getBoundingRectangle();
8557
8557
  let n = i(t);
8558
- for (; n != null;) a = n.top + n.getHeight() + xi, e.moveBy(0, a - t.top, ["cleanup"]), e.snapToGrid(), t = e.getBoundingRectangle(), n = i(t);
8559
- a = e.getRelativeToSurfaceXY().y + e.getHeightWidth().height + xi;
8558
+ for (; n != null;) a = n.top + n.getHeight() + Ci, e.moveBy(0, a - t.top, ["cleanup"]), e.snapToGrid(), t = e.getBoundingRectangle(), n = i(t);
8559
+ a = e.getRelativeToSurfaceXY().y + e.getHeightWidth().height + Ci;
8560
8560
  }
8561
8561
  x.setGroup(e), this.setResizesEnabled(!0);
8562
8562
  };
8563
8563
  //#endregion
8564
8564
  //#region src/core/plugins/disableTopBlocks/index.ts
8565
- var Si = Te();
8566
- function Ci(e) {
8565
+ var wi = Te();
8566
+ function Ti(e) {
8567
8567
  let t = e.getParent();
8568
- return t && Ci(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8568
+ return t && Ti(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
8569
8569
  }
8570
- var wi = class {
8570
+ var Ei = class {
8571
8571
  init() {
8572
8572
  let e = de.registry.getItem("blockDisable");
8573
8573
  e && (e.preconditionFn = function(e) {
8574
8574
  let t = e.block;
8575
- return t && !t.isInFlyout && t.workspace.options.disable && t.isEditable() ? t.getInheritedDisabled() || Ci(t) ? "disabled" : "enabled" : "hidden";
8575
+ return t && !t.isInFlyout && t.workspace.options.disable && t.isEditable() ? t.getInheritedDisabled() || Ti(t) ? "disabled" : "enabled" : "hidden";
8576
8576
  });
8577
8577
  }
8578
8578
  };
8579
- (0, wn.registerFieldColour)(), d.registry.unregister(te.names.ESCAPE), new Si.CrossTabCopyPaste().init({
8579
+ (0, En.registerFieldColour)(), d.registry.unregister(te.names.ESCAPE), new wi.CrossTabCopyPaste().init({
8580
8580
  contextMenu: !0,
8581
8581
  shortcut: !0
8582
- }), new wi().init();
8582
+ }), new Ei().init();
8583
8583
  //#endregion
8584
8584
  //#region src/core/events/index.ts
8585
- var Ti = /* @__PURE__ */ function(e) {
8585
+ var Di = /* @__PURE__ */ function(e) {
8586
8586
  return e.STATE_CHANGE = "state_change", e;
8587
- }({}), Ei = class extends x.Abstract {
8587
+ }({}), Oi = class extends x.Abstract {
8588
8588
  isBlank = !0;
8589
8589
  recordUndo = !1;
8590
- type = Ti.STATE_CHANGE;
8590
+ type = Di.STATE_CHANGE;
8591
8591
  constructor(e) {
8592
8592
  super(), this.workspaceId = e.id;
8593
8593
  }
8594
8594
  };
8595
- Ce.register(Ce.Type.EVENT, Ti.STATE_CHANGE, Ei);
8595
+ Ce.register(Ce.Type.EVENT, Di.STATE_CHANGE, Oi);
8596
8596
  //#endregion
8597
8597
  //#region src/core/misc/index.ts
8598
- function Di(e) {
8598
+ function ki(e) {
8599
8599
  let t = s();
8600
8600
  if (!t) return;
8601
8601
  let n = t.getBlockById(e);
@@ -8605,11 +8605,11 @@ function Di(e) {
8605
8605
  let i = r.getRelativeToSurfaceXY(), a = i.x * t.scale, o = i.y * t.scale;
8606
8606
  t.scroll(-a, -o);
8607
8607
  }
8608
- function Oi() {
8608
+ function Ai() {
8609
8609
  let e = s();
8610
8610
  if (!e) return;
8611
8611
  let t = e.getTopBlocks(!0)?.[0];
8612
- t && Di(t.id);
8612
+ t && ki(t.id);
8613
8613
  }
8614
8614
  a.Classic.blockStyles = {
8615
8615
  color_blocks: {
@@ -8719,7 +8719,7 @@ a.Classic.blockStyles = {
8719
8719
  time_category: { colour: "#5b99a5" },
8720
8720
  variable_category: { colour: "#a55b80" }
8721
8721
  };
8722
- var ki = ne.defineTheme("light", {
8722
+ var ji = ne.defineTheme("light", {
8723
8723
  name: "light",
8724
8724
  base: a.Classic,
8725
8725
  componentStyles: {
@@ -8735,7 +8735,7 @@ var ki = ne.defineTheme("light", {
8735
8735
  scrollbarOpacity: .4,
8736
8736
  cursorColour: ""
8737
8737
  }
8738
- }), Ai = ne.defineTheme("dark", {
8738
+ }), Mi = ne.defineTheme("dark", {
8739
8739
  name: "dark",
8740
8740
  base: a.Classic,
8741
8741
  componentStyles: {
@@ -8752,45 +8752,45 @@ var ki = ne.defineTheme("light", {
8752
8752
  cursorColour: ""
8753
8753
  }
8754
8754
  });
8755
- function ji(e) {
8755
+ function Ni(e) {
8756
8756
  let t = s();
8757
8757
  switch (e) {
8758
8758
  case "light":
8759
- t.setTheme(ki);
8759
+ t.setTheme(ji);
8760
8760
  break;
8761
8761
  case "dark":
8762
- t.setTheme(Ai);
8762
+ t.setTheme(Mi);
8763
8763
  break;
8764
8764
  }
8765
8765
  }
8766
8766
  //#endregion
8767
8767
  //#region src/components/blockly/buildReactivity.ts
8768
- function Mi(e, t) {
8768
+ function Pi(e, t) {
8769
8769
  e.find((e) => e === t) || e.push(t);
8770
8770
  }
8771
- var Ni = ["get_app_property_v1", "get_app_state_v1"];
8772
- function Pi(e) {
8771
+ var Fi = ["get_app_property_v1", "get_app_state_v1"];
8772
+ function Ii(e) {
8773
8773
  let t = [];
8774
8774
  function n(e) {
8775
- for (let r of e.getChildren(!0)) Ni.includes(r.type) && t.push(r), n(r);
8775
+ for (let r of e.getChildren(!0)) Fi.includes(r.type) && t.push(r), n(r);
8776
8776
  }
8777
8777
  return n(e), t;
8778
8778
  }
8779
- function Fi(e) {
8779
+ function Li(e) {
8780
8780
  let t = [];
8781
- for (let n of e) n.type === "get_app_property_v1" ? Mi(t, Ve("propertyTrigger", n.property.id)) : n.type === "get_app_state_v1" ? Mi(t, Ve("stateTrigger", n.state.id)) : console.assert(!1);
8781
+ for (let n of e) n.type === "get_app_property_v1" ? Pi(t, Ue("propertyTrigger", n.property.id)) : n.type === "get_app_state_v1" ? Pi(t, Ue("stateTrigger", n.state.id)) : console.assert(!1);
8782
8782
  return t;
8783
8783
  }
8784
- function Ii(e) {
8784
+ function Ri(e) {
8785
8785
  let t = [];
8786
8786
  for (let n of e) {
8787
8787
  if (n.type !== "app_bind_entry_v1") continue;
8788
8788
  let e = n;
8789
- e.kind === "property" ? Mi(t, Ve("propertyTrigger", e.property.id)) : e.kind === "state" && Mi(t, Ve("stateTrigger", e.state.id));
8789
+ e.kind === "property" ? Pi(t, Ue("propertyTrigger", e.property.id)) : e.kind === "state" && Pi(t, Ue("stateTrigger", e.state.id));
8790
8790
  }
8791
8791
  return t;
8792
8792
  }
8793
- function Li(e) {
8793
+ function zi(e) {
8794
8794
  let t = {
8795
8795
  watchEffect: {
8796
8796
  ids: [],
@@ -8803,38 +8803,38 @@ function Li(e) {
8803
8803
  }, n = e.getTopBlocks(!0);
8804
8804
  if (!n) return t;
8805
8805
  for (let e of n) if (e.type === "watch_effect_v1") {
8806
- let n = Fi(Pi(e));
8807
- for (let r of n) t.watchEffect.triggers[r] || (t.watchEffect.triggers[r] = []), Mi(t.watchEffect.triggers[r], e.id);
8806
+ let n = Li(Ii(e));
8807
+ for (let r of n) t.watchEffect.triggers[r] || (t.watchEffect.triggers[r] = []), Pi(t.watchEffect.triggers[r], e.id);
8808
8808
  t.watchEffect.ids.push(e.id);
8809
8809
  } else if (e.type === "app_bind_v1") {
8810
- let n = Ii(e.getChildren(!0));
8810
+ let n = Ri(e.getChildren(!0));
8811
8811
  t.bind.sets[e.id] = n;
8812
- for (let r of n) t.bind.triggers[r] || (t.bind.triggers[r] = []), Mi(t.bind.triggers[r], e.id);
8812
+ for (let r of n) t.bind.triggers[r] || (t.bind.triggers[r] = []), Pi(t.bind.triggers[r], e.id);
8813
8813
  }
8814
8814
  return t;
8815
8815
  }
8816
8816
  //#endregion
8817
8817
  //#region src/components/blockly/provideInject.ts
8818
- var Ri = Symbol();
8819
- function zi(e) {
8820
- Tt(Ri, e);
8818
+ var Bi = Symbol();
8819
+ function Vi(e) {
8820
+ Dt(Bi, e);
8821
8821
  }
8822
- function Bi() {
8823
- return _t(Ri);
8822
+ function Hi() {
8823
+ return yt(Bi);
8824
8824
  }
8825
8825
  //#endregion
8826
8826
  //#region src/components/blockly/clean/index.vue
8827
- var Vi = /* @__PURE__ */ gt({
8827
+ var Ui = /* @__PURE__ */ vt({
8828
8828
  __name: "index",
8829
8829
  props: { lock: { type: Boolean } },
8830
8830
  setup(e, { expose: t }) {
8831
- let { t: n } = Bt(), r = zt(), i = e, a = Bi(), o = E(() => r.smAndDown.value), s = () => {
8831
+ let { t: n } = Ht(), r = Vt(), i = e, a = Hi(), o = E(() => r.smAndDown.value), s = () => {
8832
8832
  if (!a.workspace) {
8833
8833
  console.assert(!1);
8834
8834
  return;
8835
8835
  }
8836
8836
  if (i.lock) {
8837
- st(n("x-block-lib.msg.cannotOperateInLockedState"));
8837
+ lt(n("x-block-lib.msg.cannotOperateInLockedState"));
8838
8838
  return;
8839
8839
  }
8840
8840
  a.workspace.cleanUp();
@@ -8843,11 +8843,11 @@ var Vi = /* @__PURE__ */ gt({
8843
8843
  };
8844
8844
  return t({ cleanWorkspace: s }), (e, t) => {
8845
8845
  let r = M("v-btn"), i = M("v-tooltip");
8846
- return j(), mt(i, {
8846
+ return j(), gt(i, {
8847
8847
  disabled: o.value,
8848
8848
  text: N(n)("x-block-lib.tip.hotkeyCtrlQ")
8849
8849
  }, {
8850
- activator: Ft(({ props: e }) => [k(r, bt(e, {
8850
+ activator: Lt(({ props: e }) => [k(r, St(e, {
8851
8851
  density: "comfortable",
8852
8852
  icon: "mdi-broom",
8853
8853
  variant: "outlined",
@@ -8857,7 +8857,7 @@ var Vi = /* @__PURE__ */ gt({
8857
8857
  }, 8, ["disabled", "text"]);
8858
8858
  };
8859
8859
  }
8860
- }), Hi = /* @__PURE__ */ gt({
8860
+ }), Wi = /* @__PURE__ */ vt({
8861
8861
  __name: "index",
8862
8862
  props: {
8863
8863
  modelValue: {
@@ -8868,14 +8868,14 @@ var Vi = /* @__PURE__ */ gt({
8868
8868
  },
8869
8869
  emits: ["update:modelValue"],
8870
8870
  setup(e) {
8871
- let { t } = Bt(), n = zt(), r = Mt(e, "modelValue"), i = E(() => n.smAndDown.value);
8871
+ let { t } = Ht(), n = Vt(), r = Pt(e, "modelValue"), i = E(() => n.smAndDown.value);
8872
8872
  return (e, n) => {
8873
8873
  let a = M("v-btn"), o = M("v-tooltip");
8874
- return j(), mt(o, {
8874
+ return j(), gt(o, {
8875
8875
  disabled: i.value,
8876
8876
  text: N(t)("x-block-lib.tip.hotkeyCtrlW")
8877
8877
  }, {
8878
- activator: Ft(({ props: e }) => [k(a, bt(e, {
8878
+ activator: Lt(({ props: e }) => [k(a, St(e, {
8879
8879
  density: "comfortable",
8880
8880
  icon: r.value ? "mdi-lock" : "mdi-lock-open",
8881
8881
  variant: "outlined",
@@ -8885,11 +8885,11 @@ var Vi = /* @__PURE__ */ gt({
8885
8885
  }, 8, ["disabled", "text"]);
8886
8886
  };
8887
8887
  }
8888
- }), Ui = { class: "d-flex flex-column" }, Wi = { class: "text-body-large ml-6" }, Gi = {
8888
+ }), Gi = { class: "d-flex flex-column" }, Ki = { class: "text-body-large ml-6" }, qi = {
8889
8889
  key: 0,
8890
8890
  class: "text-body-small text-grey text-truncate ml-6",
8891
8891
  style: { maxWidth: "340px" }
8892
- }, Ki = /* @__PURE__ */ gt({
8892
+ }, Ji = /* @__PURE__ */ vt({
8893
8893
  __name: "item",
8894
8894
  props: {
8895
8895
  id: {},
@@ -8899,48 +8899,46 @@ var Vi = /* @__PURE__ */ gt({
8899
8899
  },
8900
8900
  emits: ["x-click"],
8901
8901
  setup(e, { emit: t }) {
8902
- let { primaryColor: n, backgroundColor2: r, highlightColor: i } = ut(), a = t, o = Et(!1), s = E(() => {
8902
+ let { primaryColor: n, backgroundColor2: r, highlightColor: i } = ft(), a = t, o = Ot(!1), s = E(() => {
8903
8903
  let t = {
8904
8904
  position: "relative",
8905
8905
  background: o.value ? i.value : r.value,
8906
8906
  width: "100%",
8907
8907
  height: "48px",
8908
8908
  marginTop: "1px",
8909
- marginLeft: "1px",
8910
- marginRight: "1px",
8911
8909
  userSelect: "none"
8912
8910
  };
8913
8911
  return e.select ? t.outline = "1px solid " + n.value : t.outline = void 0, t;
8914
8912
  });
8915
8913
  return (t, n) => {
8916
- let r = M("v-spacer"), i = M("v-icon"), c = kt("ripple");
8917
- return It((j(), D("div", {
8914
+ let r = M("v-spacer"), i = M("v-icon"), c = jt("ripple");
8915
+ return Rt((j(), D("div", {
8918
8916
  class: "d-flex align-center cursor-pointer",
8919
8917
  style: A(s.value),
8920
8918
  onClick: n[1] ||= (t) => a("x-click", e.id),
8921
8919
  onMouseout: n[2] ||= (e) => o.value = !1,
8922
8920
  onMouseover: n[3] ||= (e) => o.value = !0
8923
8921
  }, [
8924
- O("div", Ui, [O("span", Wi, At(e.title), 1), e.desc ? (j(), D("span", Gi, At(e.desc), 1)) : ht("", !0)]),
8922
+ O("div", Gi, [O("span", Ki, Mt(e.title), 1), e.desc ? (j(), D("span", qi, Mt(e.desc), 1)) : _t("", !0)]),
8925
8923
  k(r),
8926
8924
  k(i, {
8927
8925
  class: "x-handle cursor-move mr-3",
8928
8926
  icon: "mdi-drag-horizontal-variant",
8929
- onMousedown: n[0] ||= Rt(() => {}, ["stop"])
8927
+ onMousedown: n[0] ||= Bt(() => {}, ["stop"])
8930
8928
  })
8931
8929
  ], 36)), [[c]]);
8932
8930
  };
8933
8931
  }
8934
- }), qi = {
8932
+ }), Yi = {
8935
8933
  key: 1,
8936
8934
  class: "text-body-small text-grey"
8937
- }, Ji = /* @__PURE__ */ ((e, t) => {
8935
+ }, Xi = /* @__PURE__ */ ((e, t) => {
8938
8936
  let n = e.__vccOpts || e;
8939
8937
  for (let [e, r] of t) n[e] = r;
8940
8938
  return n;
8941
- })(/* @__PURE__ */ gt({
8939
+ })(/* @__PURE__ */ vt({
8942
8940
  __name: "index",
8943
- props: /* @__PURE__ */ yt({ lock: { type: Boolean } }, {
8941
+ props: /* @__PURE__ */ xt({ lock: { type: Boolean } }, {
8944
8942
  modelValue: {
8945
8943
  type: Boolean,
8946
8944
  required: !0
@@ -8949,7 +8947,7 @@ var Vi = /* @__PURE__ */ gt({
8949
8947
  }),
8950
8948
  emits: ["update:modelValue"],
8951
8949
  setup(e, { expose: t }) {
8952
- let { t: n } = Bt(), r = Mt(e, "modelValue"), i = Bi(), a = Et([]);
8950
+ let { t: n } = Ht(), r = Pt(e, "modelValue"), i = Hi(), a = Ot([]);
8953
8951
  t({ update: () => {
8954
8952
  if (!i.workspace) {
8955
8953
  console.assert(!1);
@@ -8960,12 +8958,12 @@ var Vi = /* @__PURE__ */ gt({
8960
8958
  let r = t.id === ie()?.id, i = "";
8961
8959
  if (t.type.startsWith("on_app_event_v")) {
8962
8960
  let e = t, r = w(e.node.key);
8963
- r && (i = n(r.name), e.node.alias && (i += " / " + e.node.alias), i += " - " + Ke(e.event.kind, e.event.names));
8961
+ r && (i = n(r.name), e.node.alias && (i += " / " + e.node.alias), i += " - " + Je(e.event.kind, e.event.names));
8964
8962
  } else if (t.type.startsWith("watch_effect_v")) i = n("x-block-lib.watchEffect");
8965
8963
  else if (t.type.startsWith("app_bind_v")) i = n("x-block-lib.bind");
8966
8964
  else if (t.type.startsWith("implement_app_method_v")) {
8967
8965
  let e = t;
8968
- i = n("x-block-lib.implementMethod"), i += " - " + qe(e.method.kind, e.method.names);
8966
+ i = n("x-block-lib.implementMethod"), i += " - " + Ye(e.method.kind, e.method.names);
8969
8967
  } else i = t.type.startsWith("func_entry_v") ? n("x-block-lib.funcEntry") : t.type.startsWith("procedure_def_v") ? n("x-block-lib.procedure") + " - " + t.getFieldValue("NAME") : n("x-block-lib.temporaryBlock");
8970
8968
  let a = t.getCommentText() ?? "";
8971
8969
  e.push({
@@ -8978,7 +8976,7 @@ var Vi = /* @__PURE__ */ gt({
8978
8976
  } });
8979
8977
  let o = [], s = () => {
8980
8978
  if (e.lock) {
8981
- st(n("x-block-lib.msg.cannotOperateInLockedState"));
8979
+ lt(n("x-block-lib.msg.cannotOperateInLockedState"));
8982
8980
  return;
8983
8981
  }
8984
8982
  let t = [];
@@ -9005,16 +9003,16 @@ var Vi = /* @__PURE__ */ gt({
9005
9003
  let a = -10;
9006
9004
  r !== "" && (a = i.workspace.getBlockById(r).getRelativeToSurfaceXY().y + 10);
9007
9005
  let s = n.getRelativeToSurfaceXY();
9008
- n.moveTo(new p.Coordinate(s.x, a)), i.workspace.cleanUp(), Oi();
9006
+ n.moveTo(new p.Coordinate(s.x, a)), i.workspace.cleanUp(), Ai();
9009
9007
  }, u = async (e) => {
9010
9008
  if (!i.workspace) {
9011
9009
  console.assert(!1);
9012
9010
  return;
9013
9011
  }
9014
9012
  let t = i.workspace.getBlockById(e);
9015
- ke.setSelected(t), Di(e), r.value = !1;
9013
+ ke.setSelected(t), ki(e), r.value = !1;
9016
9014
  };
9017
- return (e, t) => a.value.length > 0 ? (j(), mt(N(ue), {
9015
+ return (e, t) => a.value.length > 0 ? (j(), gt(N(ue), {
9018
9016
  key: 0,
9019
9017
  modelValue: a.value,
9020
9018
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
@@ -9025,7 +9023,7 @@ var Vi = /* @__PURE__ */ gt({
9025
9023
  onMove: c,
9026
9024
  onStart: s
9027
9025
  }, {
9028
- default: Ft(() => [(j(!0), D(pt, null, Dt(a.value, (e) => (j(), mt(Ki, {
9026
+ default: Lt(() => [(j(!0), D(ht, null, kt(a.value, (e) => (j(), gt(Ji, {
9029
9027
  id: e.id,
9030
9028
  key: e.id,
9031
9029
  desc: e.desc,
@@ -9039,9 +9037,9 @@ var Vi = /* @__PURE__ */ gt({
9039
9037
  "title"
9040
9038
  ]))), 128))]),
9041
9039
  _: 1
9042
- }, 8, ["modelValue"])) : (j(), D("span", qi, At(N(n)("x-block-lib.noOption")), 1));
9040
+ }, 8, ["modelValue"])) : (j(), D("span", Yi, Mt(N(n)("x-block-lib.noOption")), 1));
9043
9041
  }
9044
- }), [["__scopeId", "data-v-a710550b"]]), Yi = /* @__PURE__ */ gt({
9042
+ }), [["__scopeId", "data-v-a710550b"]]), Zi = /* @__PURE__ */ vt({
9045
9043
  __name: "index",
9046
9044
  props: {
9047
9045
  modelValue: {
@@ -9052,7 +9050,7 @@ var Vi = /* @__PURE__ */ gt({
9052
9050
  },
9053
9051
  emits: ["update:modelValue"],
9054
9052
  setup(e, { expose: t }) {
9055
- let n = Mt(e, "modelValue"), r = Bi();
9053
+ let n = Pt(e, "modelValue"), r = Hi();
9056
9054
  t({ update: () => {
9057
9055
  if (!r.workspace) {
9058
9056
  console.assert(!1);
@@ -9066,18 +9064,18 @@ var Vi = /* @__PURE__ */ gt({
9066
9064
  return;
9067
9065
  }
9068
9066
  let r = t.getBlockById(e);
9069
- ke.setSelected(r), Di(e), n.value = !1;
9067
+ ke.setSelected(r), ki(e), n.value = !1;
9070
9068
  };
9071
9069
  return (e, t) => (j(), D("div", { onClick: t[0] ||= (e) => i("") }, "blockTree"));
9072
9070
  }
9073
- }), Xi = { class: "text-body-large" }, Zi = /* @__PURE__ */ gt({
9071
+ }), Qi = { class: "text-body-large" }, $i = /* @__PURE__ */ vt({
9074
9072
  __name: "index",
9075
9073
  props: {
9076
9074
  type: {},
9077
9075
  lock: { type: Boolean }
9078
9076
  },
9079
9077
  setup(e, { expose: t }) {
9080
- let { t: n } = Bt(), r = zt(), { sysBarAvail: i } = dt(), { backgroundColor1: a } = ut(), o = E(() => r.smAndDown.value), s = E(() => {
9078
+ let { t: n } = Ht(), r = Vt(), { sysBarAvail: i } = pt(), { backgroundColor1: a } = ft(), o = E(() => r.smAndDown.value), s = E(() => {
9081
9079
  let e = "100%";
9082
9080
  return r.mdAndUp.value && (e = "400px"), {
9083
9081
  background: a.value,
@@ -9090,11 +9088,11 @@ var Vi = /* @__PURE__ */ gt({
9090
9088
  position: "relative",
9091
9089
  height: `calc(100% - ${e}px)`
9092
9090
  };
9093
- }), l = E(() => ({ height: "60px" })), { open: u } = ft(`blocklyNavigatorDlg${jt()}`);
9094
- wt(() => {
9091
+ }), l = E(() => ({ height: "60px" })), { open: u } = mt(`blocklyNavigatorDlg${Nt()}`);
9092
+ Et(() => {
9095
9093
  u.value = !1;
9096
9094
  });
9097
- let ee = Nt("blockList"), te = Nt("blockTree");
9095
+ let ee = Ft("blockList"), te = Ft("blockTree");
9098
9096
  return t({
9099
9097
  open: u,
9100
9098
  update: () => {
@@ -9102,42 +9100,42 @@ var Vi = /* @__PURE__ */ gt({
9102
9100
  }
9103
9101
  }), (t, r) => {
9104
9102
  let a = M("v-sheet"), d = M("v-btn"), f = M("v-spacer"), ne = M("v-dialog"), p = M("v-tooltip");
9105
- return j(), D(pt, null, [k(ne, {
9103
+ return j(), D(ht, null, [k(ne, {
9106
9104
  modelValue: N(u),
9107
- "onUpdate:modelValue": r[5] ||= (e) => vt(u) ? u.value = e : null,
9105
+ "onUpdate:modelValue": r[5] ||= (e) => bt(u) ? u.value = e : null,
9108
9106
  eager: "",
9109
9107
  fullscreen: "",
9110
9108
  "no-click-animation": "",
9111
9109
  persistent: "",
9112
9110
  transition: "scroll-x-reverse-transition",
9113
- onKeydown: r[6] ||= Lt(Rt((e) => u.value = !1, ["stop", "prevent"]), ["esc"])
9111
+ onKeydown: r[6] ||= zt(Bt((e) => u.value = !1, ["stop", "prevent"]), ["esc"])
9114
9112
  }, {
9115
- default: Ft(() => [O("div", {
9113
+ default: Lt(() => [O("div", {
9116
9114
  class: "w-100 h-100 d-flex flex-row-reverse",
9117
- onClick: r[3] ||= Rt((e) => u.value = !1, ["self"]),
9118
- onContextmenu: r[4] ||= Rt((e) => u.value = !1, ["self", "prevent"])
9115
+ onClick: r[3] ||= Bt((e) => u.value = !1, ["self"]),
9116
+ onContextmenu: r[4] ||= Bt((e) => u.value = !1, ["self", "prevent"])
9119
9117
  }, [O("div", {
9120
9118
  class: "elevation-2",
9121
9119
  style: A(s.value)
9122
9120
  }, [
9123
- N(i) ? (j(), mt(a, {
9121
+ N(i) ? (j(), gt(a, {
9124
9122
  key: 0,
9125
9123
  color: "transparent",
9126
9124
  height: 24
9127
- })) : ht("", !0),
9125
+ })) : _t("", !0),
9128
9126
  k(a, {
9129
9127
  class: "d-flex align-center px-2",
9130
9128
  color: "transparent",
9131
9129
  height: 48
9132
9130
  }, {
9133
- default: Ft(() => [
9131
+ default: Lt(() => [
9134
9132
  k(d, {
9135
9133
  density: "comfortable",
9136
9134
  icon: "mdi-close",
9137
9135
  variant: "text",
9138
9136
  onClick: r[0] ||= (e) => u.value = !1
9139
9137
  }),
9140
- O("span", Xi, At(N(n)("x-block-lib.navigator")), 1),
9138
+ O("span", Qi, Mt(N(n)("x-block-lib.navigator")), 1),
9141
9139
  k(f)
9142
9140
  ]),
9143
9141
  _: 1
@@ -9145,27 +9143,27 @@ var Vi = /* @__PURE__ */ gt({
9145
9143
  O("div", {
9146
9144
  class: "overflow-y-auto",
9147
9145
  style: A(c.value)
9148
- }, [e.type === "list" ? (j(), mt(Ji, {
9146
+ }, [e.type === "list" ? (j(), gt(Xi, {
9149
9147
  key: 0,
9150
9148
  ref_key: "blockList",
9151
9149
  ref: ee,
9152
9150
  modelValue: N(u),
9153
- "onUpdate:modelValue": r[1] ||= (e) => vt(u) ? u.value = e : null,
9151
+ "onUpdate:modelValue": r[1] ||= (e) => bt(u) ? u.value = e : null,
9154
9152
  lock: e.lock
9155
- }, null, 8, ["modelValue", "lock"])) : e.type === "tree" ? (j(), mt(Yi, {
9153
+ }, null, 8, ["modelValue", "lock"])) : e.type === "tree" ? (j(), gt(Zi, {
9156
9154
  key: 1,
9157
9155
  ref_key: "blockTree",
9158
9156
  ref: te,
9159
9157
  modelValue: N(u),
9160
- "onUpdate:modelValue": r[2] ||= (e) => vt(u) ? u.value = e : null
9161
- }, null, 8, ["modelValue"])) : ht("", !0), O("div", { style: A(l.value) }, null, 4)], 4)
9158
+ "onUpdate:modelValue": r[2] ||= (e) => bt(u) ? u.value = e : null
9159
+ }, null, 8, ["modelValue"])) : _t("", !0), O("div", { style: A(l.value) }, null, 4)], 4)
9162
9160
  ], 4)], 32)]),
9163
9161
  _: 1
9164
9162
  }, 8, ["modelValue"]), k(p, {
9165
9163
  disabled: o.value,
9166
9164
  text: N(n)("x-block-lib.tip.hotkeyCtrlE")
9167
9165
  }, {
9168
- activator: Ft(({ props: e }) => [k(d, bt(e, {
9166
+ activator: Lt(({ props: e }) => [k(d, St(e, {
9169
9167
  density: "comfortable",
9170
9168
  icon: "mdi-navigation-variant",
9171
9169
  variant: "outlined",
@@ -9175,7 +9173,7 @@ var Vi = /* @__PURE__ */ gt({
9175
9173
  }, 8, ["disabled", "text"])], 64);
9176
9174
  };
9177
9175
  }
9178
- }), Qi = ge(), Z = p.xml;
9176
+ }), ea = ge(), Z = p.xml;
9179
9177
  function Q(e) {
9180
9178
  let t = Z.createElement("label");
9181
9179
  return t.setAttribute("text", e), t;
@@ -9185,12 +9183,12 @@ function $(e, t) {
9185
9183
  if (n.setAttribute("type", e), t) for (let e of t) n.appendChild(e);
9186
9184
  return n;
9187
9185
  }
9188
- function $i(e) {
9186
+ function ta(e) {
9189
9187
  let t = Z.createElement("mutation");
9190
9188
  for (let { key: n, value: r } of e) t.setAttribute(n, r);
9191
9189
  return t;
9192
9190
  }
9193
- function ea(e, t) {
9191
+ function na(e, t) {
9194
9192
  t === void 0 && (t = "");
9195
9193
  let n = Z.createElement("value");
9196
9194
  n.setAttribute("name", e);
@@ -9201,7 +9199,7 @@ function ea(e, t) {
9201
9199
  let a = Z.createTextNode(t);
9202
9200
  return i.appendChild(a), r.appendChild(i), n.appendChild(r), n;
9203
9201
  }
9204
- function ta(e, t) {
9202
+ function ra(e, t) {
9205
9203
  t === void 0 && (t = 0);
9206
9204
  let n = Z.createElement("value");
9207
9205
  n.setAttribute("name", e);
@@ -9212,7 +9210,7 @@ function ta(e, t) {
9212
9210
  let a = Z.createTextNode(String(t));
9213
9211
  return i.appendChild(a), r.appendChild(i), n.appendChild(r), n;
9214
9212
  }
9215
- function na(e, t) {
9213
+ function ia(e, t) {
9216
9214
  t === void 0 && (t = !1);
9217
9215
  let n = Z.createElement("value");
9218
9216
  n.setAttribute("name", e);
@@ -9225,117 +9223,117 @@ function na(e, t) {
9225
9223
  }
9226
9224
  //#endregion
9227
9225
  //#region src/core/category/app/comp/v1/index.ts
9228
- function ra() {
9226
+ function aa() {
9229
9227
  let { activeObject: e, activeComp: t } = S.app;
9230
9228
  return !(e.type !== "comp" || !t.meta.states || t.meta.states.length <= 0);
9231
9229
  }
9232
- function ia() {
9230
+ function oa() {
9233
9231
  let e = [];
9234
- return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), U("triggerEvent") && e.push($("trigger_app_event_v1")), e.push($("app_bind_v1", [$i([{
9232
+ return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), U("triggerEvent") && e.push($("trigger_app_event_v1")), e.push($("app_bind_v1", [ta([{
9235
9233
  key: "items",
9236
9234
  value: "2"
9237
- }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), ra() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), (U("callMethod") || U("implementMethod")) && e.push(Q(P("LABEL_METHOD"))), U("callMethod") && e.push($("call_app_method_v1")), U("implementMethod") && (e.push($("implement_app_method_v1")), U("implementMethodOutput") && e.push($("set_app_method_output_v1")), e.push($("procedure_return_v1"))), e;
9235
+ }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), aa() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), (U("callMethod") || U("implementMethod")) && e.push(Q(P("LABEL_METHOD"))), U("callMethod") && e.push($("call_app_method_v1")), U("implementMethod") && (e.push($("implement_app_method_v1")), U("implementMethodOutput") && e.push($("set_app_method_output_v1")), e.push($("procedure_return_v1"))), e;
9238
9236
  }
9239
- var aa = {
9237
+ var sa = {
9240
9238
  name: "APP_COMP_CATEGORY",
9241
- callback: ia
9239
+ callback: oa
9242
9240
  };
9243
9241
  //#endregion
9244
9242
  //#region src/core/category/app/compute/v1/index.ts
9245
- function oa() {
9243
+ function ca() {
9246
9244
  let e = [];
9247
9245
  return e.push(Q(P("LABEL_FUNC"))), e.push(Q(P("LABEL_FLOW"))), e;
9248
9246
  }
9249
- var sa = {
9247
+ var la = {
9250
9248
  name: "APP_COMPUTE_CATEGORY",
9251
- callback: oa
9249
+ callback: ca
9252
9250
  };
9253
9251
  //#endregion
9254
9252
  //#region src/core/category/app/message/v1/index.ts
9255
- function ca() {
9253
+ function ua() {
9256
9254
  let e = [];
9257
- return e.push($("app_debug_trace_v1", [ea("OBJECT")])), e.push($("popup_message_v1", [ea("TEXT")])), e.push($("open_confirm_dlg_v1")), e.push($("open_prompt_dlg_v1")), e;
9255
+ return e.push($("app_debug_trace_v1", [na("OBJECT")])), e.push($("popup_message_v1", [na("TEXT")])), e.push($("open_confirm_dlg_v1")), e.push($("open_prompt_dlg_v1")), e;
9258
9256
  }
9259
- var la = {
9257
+ var da = {
9260
9258
  name: "APP_MESSAGE_CATEGORY",
9261
- callback: ca
9259
+ callback: ua
9262
9260
  };
9263
9261
  //#endregion
9264
9262
  //#region src/core/category/app/misc/v1/index.ts
9265
- function ua() {
9263
+ function fa() {
9266
9264
  for (let e of S.app.appList) if (e.pages.length > 0) return !0;
9267
9265
  return !1;
9268
9266
  }
9269
- function da() {
9267
+ function pa() {
9270
9268
  let e = [];
9271
- return e.push($("app_env_is_v1")), ua() && e.push($("navigate_to_v1")), e;
9269
+ return e.push($("app_env_is_v1")), fa() && e.push($("navigate_to_v1")), e;
9272
9270
  }
9273
- var fa = {
9271
+ var ma = {
9274
9272
  name: "APP_MISC_CATEGORY",
9275
- callback: da
9273
+ callback: pa
9276
9274
  };
9277
9275
  //#endregion
9278
9276
  //#region src/core/category/app/page/v1/index.ts
9279
- function pa() {
9277
+ function ha() {
9280
9278
  let { activeObject: e, activePage: t } = S.app;
9281
9279
  return !(e.type !== "page" || !t.meta.states || t.meta.states.length <= 0);
9282
9280
  }
9283
- function ma() {
9281
+ function ga() {
9284
9282
  let { activeObject: e, activePage: t } = S.app;
9285
9283
  return !(e.type !== "page" || !t.meta.arguments || t.meta.arguments.length <= 0);
9286
9284
  }
9287
- function ha() {
9285
+ function _a() {
9288
9286
  let e = [];
9289
- return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), e.push($("app_bind_v1", [$i([{
9287
+ return e.push(Q(P("LABEL_EVENT"))), U("onEvent") && e.push($("on_app_event_v1")), e.push($("app_bind_v1", [ta([{
9290
9288
  key: "items",
9291
9289
  value: "2"
9292
- }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), pa() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), U("callMethod") && (e.push(Q(P("LABEL_METHOD"))), e.push($("call_app_method_v1"))), ma() && (e.push(Q(P("LABEL_ARGUMENT"))), e.push($("get_page_argument_v1"))), e;
9290
+ }])])), e.push($("watch_effect_v1")), (U("getProperty") || U("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), U("getProperty") && e.push($("get_app_property_v1")), U("setProperty") && e.push($("set_app_property_v1")), ha() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), U("callMethod") && (e.push(Q(P("LABEL_METHOD"))), e.push($("call_app_method_v1"))), ga() && (e.push(Q(P("LABEL_ARGUMENT"))), e.push($("get_page_argument_v1"))), e;
9293
9291
  }
9294
- var ga = {
9292
+ var va = {
9295
9293
  name: "APP_PAGE_CATEGORY",
9296
- callback: ha
9294
+ callback: _a
9297
9295
  };
9298
9296
  //#endregion
9299
9297
  //#region src/core/category/app/resource/v1/index.ts
9300
- function _a() {
9298
+ function ya() {
9301
9299
  let e = [];
9302
9300
  return e.push(Q(P("LABEL_RESOURCE"))), e.push($("upload_resource_v1")), e;
9303
9301
  }
9304
- var va = {
9302
+ var ba = {
9305
9303
  name: "APP_RESOURCE_CATEGORY",
9306
- callback: _a
9307
- }, ya = p.xml;
9308
- function ba() {
9304
+ callback: ya
9305
+ }, xa = p.xml;
9306
+ function Sa() {
9309
9307
  let e = [];
9310
9308
  {
9311
- let t = ya.createElement("label");
9309
+ let t = xa.createElement("label");
9312
9310
  t.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), e.push(t);
9313
9311
  }
9314
9312
  {
9315
- let t = ya.createElement("block");
9313
+ let t = xa.createElement("block");
9316
9314
  t.setAttribute("type", "procedure_def_v1");
9317
9315
  {
9318
- let e = ya.createElement("field");
9316
+ let e = xa.createElement("field");
9319
9317
  e.setAttribute("name", "NAME");
9320
- let n = ya.createTextNode(P("PROCEDURE_DEFAULT_NAME"));
9318
+ let n = xa.createTextNode(P("PROCEDURE_DEFAULT_NAME"));
9321
9319
  e.appendChild(n), t.appendChild(e);
9322
9320
  }
9323
9321
  e.push(t);
9324
9322
  }
9325
9323
  {
9326
- let t = ya.createElement("block");
9324
+ let t = xa.createElement("block");
9327
9325
  t.setAttribute("type", "procedure_return_v1"), e.push(t);
9328
9326
  }
9329
9327
  return e;
9330
9328
  }
9331
- var xa = {
9329
+ var Ca = {
9332
9330
  name: "PROCEDURE_CATEGORY",
9333
- callback: ba
9334
- }, Sa = p.xml;
9335
- function Ca() {
9331
+ callback: Sa
9332
+ }, wa = p.xml;
9333
+ function Ta() {
9336
9334
  let e = s(), t = [];
9337
9335
  {
9338
- let e = Sa.createElement("label");
9336
+ let e = wa.createElement("label");
9339
9337
  e.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), t.push(e);
9340
9338
  }
9341
9339
  {
@@ -9348,75 +9346,75 @@ function Ca() {
9348
9346
  if (n.length <= 0) return t;
9349
9347
  n.sort(c.compareByName);
9350
9348
  {
9351
- let e = Sa.createElement("label");
9349
+ let e = wa.createElement("label");
9352
9350
  e.setAttribute("text", P("LABEL_CREATED")), t.push(e);
9353
9351
  }
9354
9352
  return n.forEach((e) => {
9355
9353
  {
9356
- let n = Sa.createElement("block");
9354
+ let n = wa.createElement("block");
9357
9355
  n.setAttribute("type", "variable_get_v1"), n.appendChild(c.generateVariableFieldDom(e)), t.push(n);
9358
9356
  }
9359
9357
  {
9360
- let n = Sa.createElement("block");
9358
+ let n = wa.createElement("block");
9361
9359
  n.setAttribute("type", "variable_set_v1"), n.appendChild(c.generateVariableFieldDom(e)), t.push(n);
9362
9360
  }
9363
9361
  }), t;
9364
9362
  }
9365
- var wa = {
9363
+ var Ea = {
9366
9364
  name: "VARIABLE_CATEGORY",
9367
- callback: Ca
9365
+ callback: Ta
9368
9366
  };
9369
9367
  //#endregion
9370
9368
  //#region src/core/category/compute/data/v1/index.ts
9371
- function Ta() {
9369
+ function Da() {
9372
9370
  let e = [];
9373
- if (Y().length > 0) e.push(Q(P("LABEL_OPERATION"))), e.push($("add_data_v1")), e.push($("delete_data_v1")), e.push($("update_data_v1")), e.push($("query_data_v1")), e.push($("transaction_v1")), e.push($("interrupt_transaction_v1", [ea("VALUE")])), e.push(Q(P("LABEL_CONDITION"))), e.push($("cond_logic_v1")), e.push($("cond_atomic_v1", [ea("VALUE")])), e.push(Q(P("LABEL_QUERY_EXTRA"))), e.push($("query_extra_limit_v1", [ta("OFFSET", 0), ta("LIMIT", 1)])), e.push($("query_extra_sortby_v1", [ea("COLUMN"), na("DESC")]));
9371
+ if (Y().length > 0) e.push(Q(P("LABEL_OPERATION"))), e.push($("add_data_v1")), e.push($("delete_data_v1")), e.push($("update_data_v1")), e.push($("query_data_v1")), e.push($("transaction_v1")), e.push($("interrupt_transaction_v1", [na("VALUE")])), e.push(Q(P("LABEL_CONDITION"))), e.push($("cond_logic_v1")), e.push($("cond_atomic_v1", [na("VALUE")])), e.push(Q(P("LABEL_QUERY_EXTRA"))), e.push($("query_extra_limit_v1", [ra("OFFSET", 0), ra("LIMIT", 1)])), e.push($("query_extra_sortby_v1", [na("COLUMN"), ia("DESC")]));
9374
9372
  else {
9375
9373
  let t = document.createElement("button");
9376
9374
  t.setAttribute("text", P("BUTTON_NO_TABLE")), t.setAttribute("callbackKey", "NO_TABLE"), e.push(t);
9377
9375
  }
9378
9376
  return e;
9379
9377
  }
9380
- var Ea = {
9378
+ var Oa = {
9381
9379
  name: "COMPUTE_DATA_CATEGORY",
9382
- callback: Ta
9380
+ callback: Da
9383
9381
  };
9384
9382
  //#endregion
9385
9383
  //#region src/core/category/compute/flow/v1/index.ts
9386
- function Da() {
9387
- return Ar("flow").length > 0;
9384
+ function ka() {
9385
+ return Mr("flow").length > 0;
9388
9386
  }
9389
- function Oa() {
9387
+ function Aa() {
9390
9388
  let e = [];
9391
- return S.compute.activeObject.type === "flow" && e.push($("on_flow_state_event_v1")), Da() && console.assert(!0), e;
9389
+ return S.compute.activeObject.type === "flow" && e.push($("on_flow_state_event_v1")), ka() && console.assert(!0), e;
9392
9390
  }
9393
- var ka = {
9391
+ var ja = {
9394
9392
  name: "COMPUTE_FLOW_CATEGORY",
9395
- callback: Oa
9393
+ callback: Aa
9396
9394
  };
9397
9395
  //#endregion
9398
9396
  //#region src/core/category/compute/func/v1/index.ts
9399
- function Aa() {
9400
- return Ar("func").length > 0;
9397
+ function Ma() {
9398
+ return Mr("func").length > 0;
9401
9399
  }
9402
- function ja() {
9400
+ function Na() {
9403
9401
  let { activeObject: e, activeFunc: t } = S.compute, n = [];
9404
- return e.type === "func" && (n.push($("func_entry_v1")), t.outputs && t.outputs.length > 0 && n.push($("set_func_output_v1")), n.push($("procedure_return_v1"))), Aa() && n.push($("call_func_internal_v1")), n;
9402
+ return e.type === "func" && (n.push($("func_entry_v1")), t.outputs && t.outputs.length > 0 && n.push($("set_func_output_v1")), n.push($("procedure_return_v1"))), Ma() && n.push($("call_func_internal_v1")), n;
9405
9403
  }
9406
- var Ma = {
9404
+ var Pa = {
9407
9405
  name: "COMPUTE_FUNC_CATEGORY",
9408
- callback: ja
9406
+ callback: Na
9409
9407
  };
9410
9408
  //#endregion
9411
9409
  //#region src/core/category/compute/misc/v1/index.ts
9412
- function Na() {
9410
+ function Fa() {
9413
9411
  let e = [];
9414
- return e.push($("compute_debug_trace_v1", [ea("OBJECT")])), e;
9412
+ return e.push($("compute_debug_trace_v1", [na("OBJECT")])), e;
9415
9413
  }
9416
- var Pa = {
9414
+ var Ia = {
9417
9415
  name: "COMPUTE_MISC_CATEGORY",
9418
- callback: Na
9419
- }, Fa = {
9416
+ callback: Fa
9417
+ }, La = {
9420
9418
  kind: "category",
9421
9419
  name: "%{BKY_CATEGORY_COLOR}",
9422
9420
  categorystyle: "color_category",
@@ -9466,7 +9464,7 @@ var Pa = {
9466
9464
  }
9467
9465
  }
9468
9466
  ]
9469
- }, Ia = {
9467
+ }, Ra = {
9470
9468
  kind: "category",
9471
9469
  name: "%{BKY_CATEGORY_LIST}",
9472
9470
  categorystyle: "list_category",
@@ -9547,7 +9545,7 @@ var Pa = {
9547
9545
  type: "list_reverse_v1"
9548
9546
  }
9549
9547
  ]
9550
- }, La = {
9548
+ }, za = {
9551
9549
  kind: "category",
9552
9550
  name: "%{BKY_CATEGORY_LOGIC}",
9553
9551
  categorystyle: "logic_category",
@@ -9589,7 +9587,7 @@ var Pa = {
9589
9587
  type: "logic_ternary_v1"
9590
9588
  }
9591
9589
  ]
9592
- }, Ra = {
9590
+ }, Ba = {
9593
9591
  kind: "category",
9594
9592
  name: "%{BKY_CATEGORY_LOOP}",
9595
9593
  categorystyle: "loop_category",
@@ -9633,7 +9631,7 @@ var Pa = {
9633
9631
  type: "flow_control_v1"
9634
9632
  }
9635
9633
  ]
9636
- }, za = {
9634
+ }, Va = {
9637
9635
  kind: "category",
9638
9636
  name: "%{BKY_CATEGORY_MATH}",
9639
9637
  categorystyle: "math_category",
@@ -9738,7 +9736,7 @@ var Pa = {
9738
9736
  type: "math_on_list_v1"
9739
9737
  }
9740
9738
  ]
9741
- }, Ba = {
9739
+ }, Ha = {
9742
9740
  kind: "category",
9743
9741
  name: "%{BKY_CATEGORY_OBJECT}",
9744
9742
  categorystyle: "object_category",
@@ -9788,7 +9786,7 @@ var Pa = {
9788
9786
  } } }
9789
9787
  }
9790
9788
  ]
9791
- }, Va = {
9789
+ }, Ua = {
9792
9790
  kind: "category",
9793
9791
  name: "%{BKY_CATEGORY_TEXT}",
9794
9792
  categorystyle: "text_category",
@@ -9903,7 +9901,7 @@ var Pa = {
9903
9901
  type: "text_reverse_v1"
9904
9902
  }
9905
9903
  ]
9906
- }, Ha = {
9904
+ }, Wa = {
9907
9905
  kind: "category",
9908
9906
  name: "%{BKY_CATEGORY_TIME}",
9909
9907
  categorystyle: "time_category",
@@ -9918,155 +9916,155 @@ var Pa = {
9918
9916
  fields: { NUM: 1e3 }
9919
9917
  } } }
9920
9918
  }]
9921
- }, Ua = {
9919
+ }, Ga = {
9922
9920
  kind: "categoryToolbox",
9923
9921
  contents: [
9924
9922
  {
9925
9923
  kind: "category",
9926
9924
  name: "%{BKY_CATEGORY_COMP}",
9927
9925
  categorystyle: "misc_category",
9928
- custom: aa.name
9926
+ custom: sa.name
9929
9927
  },
9930
9928
  {
9931
9929
  kind: "category",
9932
9930
  name: "%{BKY_CATEGORY_MESSAGE}",
9933
9931
  categorystyle: "misc_category",
9934
- custom: la.name
9932
+ custom: da.name
9935
9933
  },
9936
9934
  {
9937
9935
  kind: "category",
9938
9936
  name: "%{BKY_CATEGORY_MISC}",
9939
9937
  categorystyle: "misc_category",
9940
- custom: fa.name
9938
+ custom: ma.name
9941
9939
  },
9942
- Ra,
9943
- La,
9940
+ Ba,
9944
9941
  za,
9945
9942
  Va,
9946
- Ia,
9947
- Ba,
9948
- Fa,
9943
+ Ua,
9944
+ Ra,
9949
9945
  Ha,
9946
+ La,
9947
+ Wa,
9950
9948
  {
9951
9949
  kind: "category",
9952
9950
  name: "%{BKY_CATEGORY_VARIABLE}",
9953
9951
  categorystyle: "variable_category",
9954
- custom: wa.name
9952
+ custom: Ea.name
9955
9953
  },
9956
9954
  {
9957
9955
  kind: "category",
9958
9956
  name: "%{BKY_CATEGORY_PROCEDURE}",
9959
9957
  categorystyle: "procedure_category",
9960
- custom: xa.name
9958
+ custom: Ca.name
9961
9959
  },
9962
9960
  {
9963
9961
  kind: "category",
9964
9962
  name: "%{BKY_CATEGORY_RESOURCE}",
9965
9963
  categorystyle: "resource_category",
9966
- custom: va.name
9964
+ custom: ba.name
9967
9965
  },
9968
9966
  {
9969
9967
  kind: "category",
9970
9968
  name: "%{BKY_CATEGORY_COMPUTE}",
9971
9969
  categorystyle: "compute_category",
9972
- custom: sa.name
9970
+ custom: la.name
9973
9971
  }
9974
9972
  ]
9975
- }, Wa = {
9973
+ }, Ka = {
9976
9974
  kind: "categoryToolbox",
9977
9975
  contents: [
9978
9976
  {
9979
9977
  kind: "category",
9980
9978
  name: "%{BKY_CATEGORY_FUNC}",
9981
9979
  categorystyle: "func_category",
9982
- custom: Ma.name
9980
+ custom: Pa.name
9983
9981
  },
9984
9982
  {
9985
9983
  kind: "category",
9986
9984
  name: "%{BKY_CATEGORY_FLOW}",
9987
9985
  categorystyle: "flow_category",
9988
- custom: ka.name
9986
+ custom: ja.name
9989
9987
  },
9990
9988
  {
9991
9989
  kind: "category",
9992
9990
  name: "%{BKY_CATEGORY_DATA}",
9993
9991
  categorystyle: "data_category",
9994
- custom: Ea.name
9992
+ custom: Oa.name
9995
9993
  },
9996
9994
  {
9997
9995
  kind: "category",
9998
9996
  name: "%{BKY_CATEGORY_MISC}",
9999
9997
  categorystyle: "misc_category",
10000
- custom: Pa.name
9998
+ custom: Ia.name
10001
9999
  },
10002
- Ra,
10003
- La,
10000
+ Ba,
10004
10001
  za,
10005
10002
  Va,
10006
- Ia,
10007
- Ba,
10008
- Fa,
10003
+ Ua,
10004
+ Ra,
10005
+ Ha,
10006
+ La,
10009
10007
  {
10010
10008
  kind: "category",
10011
10009
  name: "%{BKY_CATEGORY_VARIABLE}",
10012
10010
  categorystyle: "variable_category",
10013
- custom: wa.name
10011
+ custom: Ea.name
10014
10012
  },
10015
10013
  {
10016
10014
  kind: "category",
10017
10015
  name: "%{BKY_CATEGORY_PROCEDURE}",
10018
10016
  categorystyle: "procedure_category",
10019
- custom: xa.name
10017
+ custom: Ca.name
10020
10018
  }
10021
10019
  ]
10022
- }, Ga = {
10020
+ }, qa = {
10023
10021
  kind: "categoryToolbox",
10024
10022
  contents: [
10025
10023
  {
10026
10024
  kind: "category",
10027
10025
  name: "%{BKY_CATEGORY_FUNC}",
10028
10026
  categorystyle: "func_category",
10029
- custom: Ma.name
10027
+ custom: Pa.name
10030
10028
  },
10031
10029
  {
10032
10030
  kind: "category",
10033
10031
  name: "%{BKY_CATEGORY_FLOW}",
10034
10032
  categorystyle: "flow_category",
10035
- custom: ka.name
10033
+ custom: ja.name
10036
10034
  },
10037
10035
  {
10038
10036
  kind: "category",
10039
10037
  name: "%{BKY_CATEGORY_DATA}",
10040
10038
  categorystyle: "data_category",
10041
- custom: Ea.name
10039
+ custom: Oa.name
10042
10040
  },
10043
10041
  {
10044
10042
  kind: "category",
10045
10043
  name: "%{BKY_CATEGORY_MISC}",
10046
10044
  categorystyle: "misc_category",
10047
- custom: Pa.name
10045
+ custom: Ia.name
10048
10046
  },
10049
- Ra,
10050
- La,
10047
+ Ba,
10051
10048
  za,
10052
10049
  Va,
10053
- Ia,
10054
- Ba,
10055
- Fa,
10050
+ Ua,
10051
+ Ra,
10052
+ Ha,
10053
+ La,
10056
10054
  {
10057
10055
  kind: "category",
10058
10056
  name: "%{BKY_CATEGORY_VARIABLE}",
10059
10057
  categorystyle: "variable_category",
10060
- custom: wa.name
10058
+ custom: Ea.name
10061
10059
  },
10062
10060
  {
10063
10061
  kind: "category",
10064
10062
  name: "%{BKY_CATEGORY_PROCEDURE}",
10065
10063
  categorystyle: "procedure_category",
10066
- custom: xa.name
10064
+ custom: Ca.name
10067
10065
  }
10068
10066
  ]
10069
- }, Ka = {
10067
+ }, Ja = {
10070
10068
  kind: "categoryToolbox",
10071
10069
  contents: [{
10072
10070
  kind: "category",
@@ -10095,61 +10093,61 @@ var Pa = {
10095
10093
  }
10096
10094
  ]
10097
10095
  }]
10098
- }, qa = {
10096
+ }, Ya = {
10099
10097
  kind: "categoryToolbox",
10100
10098
  contents: [
10101
10099
  {
10102
10100
  kind: "category",
10103
10101
  name: "%{BKY_CATEGORY_PAGE}",
10104
10102
  categorystyle: "misc_category",
10105
- custom: ga.name
10103
+ custom: va.name
10106
10104
  },
10107
10105
  {
10108
10106
  kind: "category",
10109
10107
  name: "%{BKY_CATEGORY_MESSAGE}",
10110
10108
  categorystyle: "misc_category",
10111
- custom: la.name
10109
+ custom: da.name
10112
10110
  },
10113
10111
  {
10114
10112
  kind: "category",
10115
10113
  name: "%{BKY_CATEGORY_MISC}",
10116
10114
  categorystyle: "misc_category",
10117
- custom: fa.name
10115
+ custom: ma.name
10118
10116
  },
10119
- Ra,
10120
- La,
10117
+ Ba,
10121
10118
  za,
10122
10119
  Va,
10123
- Ia,
10124
- Ba,
10125
- Fa,
10120
+ Ua,
10121
+ Ra,
10126
10122
  Ha,
10123
+ La,
10124
+ Wa,
10127
10125
  {
10128
10126
  kind: "category",
10129
10127
  name: "%{BKY_CATEGORY_VARIABLE}",
10130
10128
  categorystyle: "variable_category",
10131
- custom: wa.name
10129
+ custom: Ea.name
10132
10130
  },
10133
10131
  {
10134
10132
  kind: "category",
10135
10133
  name: "%{BKY_CATEGORY_PROCEDURE}",
10136
10134
  categorystyle: "procedure_category",
10137
- custom: xa.name
10135
+ custom: Ca.name
10138
10136
  },
10139
10137
  {
10140
10138
  kind: "category",
10141
10139
  name: "%{BKY_CATEGORY_RESOURCE}",
10142
10140
  categorystyle: "resource_category",
10143
- custom: va.name
10141
+ custom: ba.name
10144
10142
  },
10145
10143
  {
10146
10144
  kind: "category",
10147
10145
  name: "%{BKY_CATEGORY_COMPUTE}",
10148
10146
  categorystyle: "compute_category",
10149
- custom: sa.name
10147
+ custom: la.name
10150
10148
  }
10151
10149
  ]
10152
- }, Ja = {
10150
+ }, Xa = {
10153
10151
  grid: {
10154
10152
  length: 2,
10155
10153
  snap: !0,
@@ -10173,11 +10171,11 @@ var Pa = {
10173
10171
  wheel: !0
10174
10172
  }
10175
10173
  };
10176
- function Ya(e, t, n, r) {
10177
- Ja.theme = r ? "dark" : "light", Ja.toolbox = Xa(t, n);
10178
- let i = o(e, Ja);
10174
+ function Za(e, t, n, r) {
10175
+ Xa.theme = r ? "dark" : "light", Xa.toolbox = Qa(t, n);
10176
+ let i = o(e, Xa);
10179
10177
  return i.addChangeListener((e) => {
10180
- if (e.type === Ti.STATE_CHANGE) {
10178
+ if (e.type === Di.STATE_CHANGE) {
10181
10179
  let e = i.getAllBlocks();
10182
10180
  for (let t of e) {
10183
10181
  let e = t;
@@ -10185,22 +10183,22 @@ function Ya(e, t, n, r) {
10185
10183
  }
10186
10184
  }
10187
10185
  setTimeout(() => {
10188
- (0, Qi.shadowBlockConversionChangeListener)(e);
10186
+ (0, ea.shadowBlockConversionChangeListener)(e);
10189
10187
  }, 0);
10190
- }), Za(i, t, n), Qa(i), i;
10188
+ }), $a(i, t, n), eo(i), i;
10191
10189
  }
10192
- function Xa(e, t) {
10190
+ function Qa(e, t) {
10193
10191
  let n;
10194
- return e === "page" ? t === "v1" && (n = qa) : e === "comp" ? t === "v1" && (n = Ua) : e === "func" ? t === "v1" && (n = Ga) : e === "flow" ? t === "v1" && (n = Wa) : e === "json" && t === "v1" && (n = Ka), console.assert(!!n, `invalid toolbox type=${e} version=${t}`), n;
10192
+ return e === "page" ? t === "v1" && (n = Ya) : e === "comp" ? t === "v1" && (n = Ga) : e === "func" ? t === "v1" && (n = qa) : e === "flow" ? t === "v1" && (n = Ka) : e === "json" && t === "v1" && (n = Ja), console.assert(!!n, `invalid toolbox type=${e} version=${t}`), n;
10195
10193
  }
10196
- function Za(e, t, n) {
10194
+ function $a(e, t, n) {
10197
10195
  function r({ name: n, callback: r }) {
10198
10196
  e.registerToolboxCategoryCallback(n, () => r(t));
10199
10197
  }
10200
- t === "page" ? n === "v1" && (r(ga), r(la), r(fa), r(wa), r(xa), r(va), r(sa)) : t === "comp" ? n === "v1" && (r(aa), r(la), r(fa), r(wa), r(xa), r(va), r(sa)) : t === "func" ? n === "v1" && (r(Ma), r(ka), r(Ea), r(Pa), r(wa), r(xa)) : t === "flow" && n === "v1" && (r(Ma), r(ka), r(Ea), r(Pa), r(wa), r(xa));
10198
+ t === "page" ? n === "v1" && (r(va), r(da), r(ma), r(Ea), r(Ca), r(ba), r(la)) : t === "comp" ? n === "v1" && (r(sa), r(da), r(ma), r(Ea), r(Ca), r(ba), r(la)) : t === "func" ? n === "v1" && (r(Pa), r(ja), r(Oa), r(Ia), r(Ea), r(Ca)) : t === "flow" && n === "v1" && (r(Pa), r(ja), r(Oa), r(Ia), r(Ea), r(Ca));
10201
10199
  }
10202
- function Qa(e) {
10203
- let { router: t } = ot;
10200
+ function eo(e) {
10201
+ let { router: t } = ct;
10204
10202
  e.registerButtonCallback("NO_COMPUTE", () => {
10205
10203
  let e = t.resolve({ path: "/compute/" + Date.now() });
10206
10204
  setTimeout(() => {
@@ -10215,7 +10213,7 @@ function Qa(e) {
10215
10213
  }
10216
10214
  //#endregion
10217
10215
  //#region src/components/blockly/jsonHelper.ts
10218
- function $a(e, t) {
10216
+ function to(e, t) {
10219
10217
  let n = t.newBlock("json_root_v1");
10220
10218
  n.initSvg(), n.render();
10221
10219
  let r = (e, n) => {
@@ -10246,7 +10244,7 @@ function $a(e, t) {
10246
10244
  };
10247
10245
  r(e, n.getInput("JSON").connection), x.fire(new (x.get(x.FINISHED_LOADING))(t));
10248
10246
  }
10249
- function eo(e) {
10247
+ function no(e) {
10250
10248
  let t = (e) => {
10251
10249
  if (!e) return null;
10252
10250
  if (e.type === "json_root_v1") return t(e.getInputTargetBlock("JSON"));
@@ -10270,9 +10268,9 @@ function eo(e) {
10270
10268
  }
10271
10269
  //#endregion
10272
10270
  //#region src/components/blockly/index.vue?vue&type=script&setup=true&lang.ts
10273
- var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10271
+ var ro = { class: "position-relative w-100 h-100" }, io = /* @__PURE__ */ vt({
10274
10272
  __name: "index",
10275
- props: /* @__PURE__ */ yt({
10273
+ props: /* @__PURE__ */ xt({
10276
10274
  type: {},
10277
10275
  version: {},
10278
10276
  locale: {},
@@ -10286,11 +10284,11 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10286
10284
  scale: { required: !0 },
10287
10285
  scaleModifiers: {}
10288
10286
  }),
10289
- emits: /* @__PURE__ */ yt(["ready"], ["update:lock", "update:scale"]),
10287
+ emits: /* @__PURE__ */ xt(["ready"], ["update:lock", "update:scale"]),
10290
10288
  setup(e, { expose: t, emit: n }) {
10291
- let { backgroundColor2: r } = ut(), i = Mt(e, "lock"), a = Mt(e, "scale"), o = n, s = `blocklyEditor${jt()}`, c = Et(), u = Nt("parentContainer"), ee = Nt("clean"), te = Nt("navigator"), d = {};
10292
- zi(d);
10293
- let f = Et(!0), ne = Et(!1), p = E(() => e.type === "json" ? "tree" : "list"), re = E(() => ({
10289
+ let { backgroundColor2: r } = ft(), i = Pt(e, "lock"), a = Pt(e, "scale"), o = n, s = `blocklyEditor${Nt()}`, c = Ot(), u = Ft("parentContainer"), ee = Ft("clean"), te = Ft("navigator"), d = {};
10290
+ Vi(d);
10291
+ let f = Ot(!0), ne = Ot(!1), p = E(() => e.type === "json" ? "tree" : "list"), re = E(() => ({
10294
10292
  width: "100%",
10295
10293
  height: "calc(100% - 48px)"
10296
10294
  })), m = E(() => ({
@@ -10333,27 +10331,27 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10333
10331
  top: 0,
10334
10332
  left: 0,
10335
10333
  zIndex: 3e3
10336
- })), { open: ue } = ft(`blocklyEditorFlyout${jt()}`);
10337
- Ct(async () => {
10334
+ })), { open: ue } = mt(`blocklyEditorFlyout${Nt()}`);
10335
+ Tt(async () => {
10338
10336
  if (!c.value || !u.value) {
10339
10337
  console.assert(!1);
10340
10338
  return;
10341
10339
  }
10342
- se(u.value), await Ht(e.locale), d.workspace = Ya(c.value, e.type, e.version, e.dark), d.workspace.addChangeListener(x.disableOrphans), d.workspace.addChangeListener(de);
10340
+ se(u.value), await Wt(e.locale), d.workspace = Za(c.value, e.type, e.version, e.dark), d.workspace.addChangeListener(x.disableOrphans), d.workspace.addChangeListener(de);
10343
10341
  let t = document.querySelector(`#${s} .blocklyFlyout`);
10344
10342
  new MutationObserver((e) => {
10345
10343
  e.forEach((e) => {
10346
10344
  e.type === "attributes" && e.attributeName === "style" && (ue.value = d.workspace.getFlyout().isVisible());
10347
10345
  });
10348
- }).observe(t, { attributes: !0 }), ue.value = d.workspace.getFlyout().isVisible(), he(), ge(), await xt(), o("ready");
10349
- }), St(() => {
10346
+ }).observe(t, { attributes: !0 }), ue.value = d.workspace.getFlyout().isVisible(), he(), ge(), await Ct(), o("ready");
10347
+ }), wt(() => {
10350
10348
  ue.value = !1;
10351
10349
  }), Se(c, () => {
10352
10350
  d.workspace && le(d.workspace);
10353
10351
  });
10354
10352
  async function de(e) {
10355
10353
  if (e.type === x.FINISHED_LOADING) {
10356
- Oi(), setTimeout(() => {
10354
+ Ai(), setTimeout(() => {
10357
10355
  te.value?.update();
10358
10356
  }, 0), f.value = !1;
10359
10357
  return;
@@ -10369,16 +10367,16 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10369
10367
  }
10370
10368
  }
10371
10369
  let fe = (t) => {
10372
- f.value = !0, e.type === "json" ? $a(t, d.workspace) : l.workspaces.load(t, d.workspace);
10373
- }, pe = () => e.type === "json" ? eo(d.workspace) : l.workspaces.save(d.workspace), me = () => {
10370
+ f.value = !0, e.type === "json" ? to(t, d.workspace) : l.workspaces.load(t, d.workspace);
10371
+ }, pe = () => e.type === "json" ? no(d.workspace) : l.workspaces.save(d.workspace), me = () => {
10374
10372
  if (e.type === "json") console.assert(!1);
10375
10373
  else return g.workspaceToCode(d.workspace);
10376
- }, _ = () => Li(d.workspace), he = () => {
10374
+ }, _ = () => zi(d.workspace), he = () => {
10377
10375
  d.workspace.setIsReadOnly(i.value), d.workspace.isReadOnly() && (ue.value = !1);
10378
10376
  }, ge = () => {
10379
10377
  d.workspace.setScale(a.value);
10380
10378
  }, _e = () => {
10381
- x.fire(new (x.get(Ti.STATE_CHANGE))(d.workspace));
10379
+ x.fire(new (x.get(Di.STATE_CHANGE))(d.workspace));
10382
10380
  }, ve = () => {
10383
10381
  ee.value?.cleanWorkspace();
10384
10382
  }, ye = () => {
@@ -10386,19 +10384,19 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10386
10384
  }, be = () => {
10387
10385
  te.value && (te.value.open = !0);
10388
10386
  };
10389
- return Ct(() => {
10390
- at.on("cleanWorkspace", ve), at.on("toggleBlocklyLock", ye), at.on("openBlocklyNavigator", be);
10391
- }), St(() => {
10392
- at.off("cleanWorkspace", ve), at.off("toggleBlocklyLock", ye), at.off("openBlocklyNavigator", be);
10393
- }), Pt(() => e.locale, (e) => {
10394
- Ht(e);
10395
- }), Pt(() => e.dark, (e) => {
10396
- ji(e ? "dark" : "light");
10397
- }), Pt(ue, (e) => {
10387
+ return Tt(() => {
10388
+ st.on("cleanWorkspace", ve), st.on("toggleBlocklyLock", ye), st.on("openBlocklyNavigator", be);
10389
+ }), wt(() => {
10390
+ st.off("cleanWorkspace", ve), st.off("toggleBlocklyLock", ye), st.off("openBlocklyNavigator", be);
10391
+ }), It(() => e.locale, (e) => {
10392
+ Wt(e);
10393
+ }), It(() => e.dark, (e) => {
10394
+ Ni(e ? "dark" : "light");
10395
+ }), It(ue, (e) => {
10398
10396
  e || d.workspace?.hideChaff();
10399
- }), Pt(i, () => {
10397
+ }), It(i, () => {
10400
10398
  he();
10401
- }), Pt(a, () => {
10399
+ }), It(a, () => {
10402
10400
  ge();
10403
10401
  }), t({
10404
10402
  loading: f,
@@ -10409,14 +10407,14 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10409
10407
  fireStateChange: _e
10410
10408
  }), (e, t) => {
10411
10409
  let n = M("v-icon"), r = M("x-loading");
10412
- return j(), D("div", to, [
10410
+ return j(), D("div", ro, [
10413
10411
  O("div", {
10414
10412
  id: s,
10415
10413
  ref_key: "blocklyDiv",
10416
10414
  ref: c,
10417
10415
  style: A(re.value)
10418
10416
  }, null, 4),
10419
- O("div", { style: A(m.value) }, [Ot(e.$slots, "bottom")], 4),
10417
+ O("div", { style: A(m.value) }, [At(e.$slots, "bottom")], 4),
10420
10418
  ne.value ? (j(), D("div", {
10421
10419
  key: 0,
10422
10420
  class: "d-flex flex-column justify-center align-center",
@@ -10424,22 +10422,22 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10424
10422
  }, [k(n, {
10425
10423
  icon: "mdi-delete",
10426
10424
  size: "x-large"
10427
- })], 4)) : ht("", !0),
10428
- f.value ? ht("", !0) : (j(), D("div", {
10425
+ })], 4)) : _t("", !0),
10426
+ f.value ? _t("", !0) : (j(), D("div", {
10429
10427
  key: 1,
10430
10428
  class: "d-flex align-end ga-3 pt-3 pr-3",
10431
10429
  style: A(ie.value)
10432
10430
  }, [
10433
- k(Vi, {
10431
+ k(Ui, {
10434
10432
  ref_key: "clean",
10435
10433
  ref: ee,
10436
10434
  lock: i.value
10437
10435
  }, null, 8, ["lock"]),
10438
- k(Hi, {
10436
+ k(Wi, {
10439
10437
  modelValue: i.value,
10440
10438
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e
10441
10439
  }, null, 8, ["modelValue"]),
10442
- k(Zi, {
10440
+ k($i, {
10443
10441
  ref_key: "navigator",
10444
10442
  ref: te,
10445
10443
  lock: i.value,
@@ -10449,11 +10447,11 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10449
10447
  i.value ? (j(), D("div", {
10450
10448
  key: 2,
10451
10449
  style: A(oe.value)
10452
- }, null, 4)) : ht("", !0),
10450
+ }, null, 4)) : _t("", !0),
10453
10451
  i.value ? (j(), D("div", {
10454
10452
  key: 3,
10455
10453
  style: A(ae.value)
10456
- }, null, 4)) : ht("", !0),
10454
+ }, null, 4)) : _t("", !0),
10457
10455
  O("div", {
10458
10456
  ref_key: "parentContainer",
10459
10457
  ref: u,
@@ -10466,21 +10464,21 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10466
10464
  ]);
10467
10465
  };
10468
10466
  }
10469
- }), ro = /* @__PURE__ */ gt({
10467
+ }), ao = /* @__PURE__ */ vt({
10470
10468
  __name: "index",
10471
10469
  props: { code: {} },
10472
10470
  setup(e) {
10473
10471
  let t = e;
10474
10472
  we.registerLanguage("javascript", xe);
10475
- let n = Ee.component, { backgroundColor2: r } = ut();
10473
+ let n = Ee.component, { backgroundColor2: r } = ft();
10476
10474
  return (e, i) => {
10477
10475
  let a = M("v-sheet");
10478
- return j(), mt(a, {
10476
+ return j(), gt(a, {
10479
10477
  color: N(r),
10480
10478
  height: "100%",
10481
10479
  width: "100%"
10482
10480
  }, {
10483
- default: Ft(() => [k(N(n), {
10481
+ default: Lt(() => [k(N(n), {
10484
10482
  code: t.code,
10485
10483
  language: "js"
10486
10484
  }, null, 8, ["code"])]),
@@ -10488,58 +10486,58 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10488
10486
  }, 8, ["color"]);
10489
10487
  };
10490
10488
  }
10491
- }), io = { class: "text-body-large" }, ao = { class: "w-100 h-100 overflow-auto" }, oo = /* @__PURE__ */ gt({
10489
+ }), oo = { class: "text-body-large" }, so = { class: "w-100 h-100 overflow-auto" }, co = /* @__PURE__ */ vt({
10492
10490
  __name: "index",
10493
10491
  setup(e) {
10494
- let { t } = Bt(), { sysBarAvail: n } = dt(), { backgroundColor0: r, backgroundColor2: i } = ut(), a = Et(""), o = E(() => {
10492
+ let { t } = Ht(), { sysBarAvail: n } = pt(), { backgroundColor0: r, backgroundColor2: i } = ft(), a = Ot(""), o = E(() => {
10495
10493
  let e = 48;
10496
10494
  return n.value && (e += 24), {
10497
10495
  position: "relative",
10498
10496
  height: `calc(100% - ${e}px)`
10499
10497
  };
10500
- }), { open: s } = ft("sourceDlg", (e) => {
10498
+ }), { open: s } = mt("sourceDlg", (e) => {
10501
10499
  a.value = e.code;
10502
10500
  });
10503
10501
  return (e, c) => {
10504
10502
  let l = M("v-sheet"), u = M("v-btn"), ee = M("v-spacer"), te = M("v-dialog");
10505
- return j(), mt(te, {
10503
+ return j(), gt(te, {
10506
10504
  modelValue: N(s),
10507
- "onUpdate:modelValue": c[1] ||= (e) => vt(s) ? s.value = e : null,
10505
+ "onUpdate:modelValue": c[1] ||= (e) => bt(s) ? s.value = e : null,
10508
10506
  fullscreen: "",
10509
10507
  "no-click-animation": "",
10510
10508
  persistent: "",
10511
10509
  transition: "dialog-bottom-transition",
10512
- onKeydown: c[2] ||= Lt(Rt((e) => s.value = !1, ["stop", "prevent"]), ["esc"])
10510
+ onKeydown: c[2] ||= zt(Bt((e) => s.value = !1, ["stop", "prevent"]), ["esc"])
10513
10511
  }, {
10514
- default: Ft(() => [k(l, {
10512
+ default: Lt(() => [k(l, {
10515
10513
  color: N(r),
10516
10514
  height: "100%",
10517
10515
  width: "100%"
10518
10516
  }, {
10519
- default: Ft(() => [
10520
- N(n) ? (j(), mt(l, {
10517
+ default: Lt(() => [
10518
+ N(n) ? (j(), gt(l, {
10521
10519
  key: 0,
10522
10520
  color: N(i),
10523
10521
  height: 24
10524
- }, null, 8, ["color"])) : ht("", !0),
10522
+ }, null, 8, ["color"])) : _t("", !0),
10525
10523
  k(l, {
10526
10524
  class: "d-flex align-center px-2",
10527
10525
  color: N(i),
10528
10526
  height: 48
10529
10527
  }, {
10530
- default: Ft(() => [
10528
+ default: Lt(() => [
10531
10529
  k(u, {
10532
10530
  density: "comfortable",
10533
10531
  icon: "mdi-close",
10534
10532
  variant: "text",
10535
10533
  onClick: c[0] ||= (e) => s.value = !1
10536
10534
  }),
10537
- O("span", io, At(N(t)("x-block-lib.dlg.source.title")), 1),
10535
+ O("span", oo, Mt(N(t)("x-block-lib.dlg.source.title")), 1),
10538
10536
  k(ee)
10539
10537
  ]),
10540
10538
  _: 1
10541
10539
  }, 8, ["color"]),
10542
- O("div", { style: A(o.value) }, [O("div", ao, [k(ro, { code: a.value }, null, 8, ["code"])])], 4)
10540
+ O("div", { style: A(o.value) }, [O("div", so, [k(ao, { code: a.value }, null, 8, ["code"])])], 4)
10543
10541
  ]),
10544
10542
  _: 1
10545
10543
  }, 8, ["color"])]),
@@ -10547,19 +10545,19 @@ var to = { class: "position-relative w-100 h-100" }, no = /* @__PURE__ */ gt({
10547
10545
  }, 8, ["modelValue"]);
10548
10546
  };
10549
10547
  }
10550
- }), so = (e) => {
10551
- e.component("XBlockly", no), e.component("XSourceDlg", oo);
10548
+ }), lo = (e) => {
10549
+ e.component("XBlockly", io), e.component("XSourceDlg", co);
10552
10550
  };
10553
10551
  //#endregion
10554
10552
  //#region src/i18n/index.ts
10555
- async function co(e) {
10556
- return (await Vt(/* @__PURE__ */ Object.assign({
10553
+ async function uo(e) {
10554
+ return (await Ut(/* @__PURE__ */ Object.assign({
10557
10555
  "./locales/en/index.ts": () => import("./i18n-en.nyqc9jvc.js").then((e) => e.t),
10558
10556
  "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hgqwzee0.js").then((e) => e.t)
10559
10557
  }), `./locales/${e}/index.ts`, 4)).default;
10560
10558
  }
10561
10559
  //#endregion
10562
10560
  //#region src/index.ts
10563
- var lo = { install: so };
10561
+ var fo = { install: lo };
10564
10562
  //#endregion
10565
- export { no as XBlockly, lo as default, so as install, co as loadLocaleMessageBlock };
10563
+ export { io as XBlockly, fo as default, lo as install, uo as loadLocaleMessageBlock };