x-block-lib 0.8.33 → 0.8.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,37 +7,37 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.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-6cb62cd6]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- import { E as I, r as Tn, M as Rn, s as vo, a as Co, X as Dn, u as C, B as E, j as s, O as r, F as O, b as He, i as v, c as Tt, d as ko, e as M, f as T, g as No, h as $, k as ht, p as Yt, l as ot, m as En, n as B, C as Mn, N as it, o as Lo, P as Ge, q as Ue, V as Nt, t as Un, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as Wt, T as Ae, A as Vn, D as Mo, G as Uo, H as xn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
10
+ import { E as I, r as Tn, M as vo, s as yo, a as Co, X as Rn, u as C, B as E, j as s, O as r, F as O, b as He, i as y, c as Tt, d as ko, e as M, f as T, g as No, h as $, k as ht, p as Yt, l as ot, m as En, n as B, C as Dn, N as it, o as Lo, P as Ge, q as Ue, V as Nt, t as Mn, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as Wt, T as Ae, A as Un, D as Mo, G as Uo, H as Vn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
11
11
  import { globalState as g } from "x-state-lib";
12
- import { globalObjects as vt, openConfirmDlg as Go, openPromptDlg as Wo, messageWarning as Yn, useColor as jt, useSystem as Fn, useViewStack as en, eventBus as kt } from "x-essential-lib";
13
- import { pkgs as ie, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as nn, elements as tt, makeEventId as z, toEventName as Ie, unwrapMethodId as Oe, makeMethodId as ee, toMethodName as on, unwrapPropertyId as Jo, makePropertyId as Zt, toPropertyName as wn, isLocaleOfMethodKind as Kn, makeTriggerId as Ot } from "x-runtime-lib";
14
- import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as sn, useModel as Kt, ref as Lt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as Z, normalizeStyle as W, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as We, Fragment as $n, renderList as ti, useId as je, onUnmounted as ei, useTemplateRef as wt, withKeys as Hn, isRef as ne, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
12
+ import { globalObjects as yt, openConfirmDlg as Go, openPromptDlg as Wo, messageWarning as xn, useColor as jt, useSystem as Yn, useViewStack as en, eventBus as kt } from "x-essential-lib";
13
+ import { pkgs as ie, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as nn, elements as tt, makeEventId as z, toEventName as Ie, unwrapMethodId as Oe, makeMethodId as ee, toMethodName as on, unwrapPropertyId as Jo, makePropertyId as Zt, toPropertyName as Fn, isLocaleOfMethodKind as wn, makeTriggerId as Ot } from "x-runtime-lib";
14
+ import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as sn, useModel as Kt, ref as Lt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as Z, normalizeStyle as W, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as We, Fragment as Kn, renderList as ti, useId as je, onUnmounted as ei, useTemplateRef as wt, withKeys as $n, isRef as ne, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
15
15
  import { useI18n as Xt } from "vue-i18n";
16
16
  import { useDisplay as ii } from "vuetify";
17
17
  var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
18
- class Gn extends I.Abstract {
18
+ class Hn extends I.Abstract {
19
19
  isBlank = !0;
20
20
  }
21
21
  Tn.register(
22
22
  Tn.Type.EVENT,
23
23
  "state_change",
24
- Gn
24
+ Hn
25
25
  );
26
- const Wn = (t, e, n) => {
26
+ const Gn = (t, e, n) => {
27
27
  const o = t[e];
28
28
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, a) => {
29
29
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + e + (e.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
30
30
  });
31
31
  };
32
32
  async function In(t) {
33
- const e = await Wn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.i31hlb1k.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.e1w1hz44.js") }), `./msg/${t}.ts`, 3);
34
- vo(e.default);
33
+ const e = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.gmqsbfuw.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.f0e8559c.js") }), `./msg/${t}.ts`, 3);
34
+ yo(e.default);
35
35
  }
36
36
  function f(t) {
37
- return Rn[t] ?? t;
37
+ return vo[t] ?? t;
38
38
  }
39
39
  const St = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", se = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
40
- function ye(t) {
40
+ function ve(t) {
41
41
  const e = t.lastIndexOf("V");
42
42
  if (e <= 0 || e >= t.length - 1)
43
43
  return console.assert(!1, `invalid key=${t}`), "";
@@ -60,10 +60,10 @@ function si(t) {
60
60
  e++, t = t.getParent();
61
61
  return e;
62
62
  }
63
- function jn(t) {
63
+ function Wn(t) {
64
64
  return t.ui === "strInput" ? "string" : t.ui === "numInput" ? "number" : t.ui === "switch" ? "boolean" : "string";
65
65
  }
66
- function ve(t, e) {
66
+ function ye(t, e) {
67
67
  return !!(t.startsWith("basic.") || !e.ui || e.readonly);
68
68
  }
69
69
  function K(t) {
@@ -88,7 +88,7 @@ function ai(t) {
88
88
  }
89
89
  function Xe(t, e) {
90
90
  let n = null;
91
- return e === "string" ? n = Ve("") : e === "integer" || e === "decimal" ? n = On(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ve("") : console.assert(!1), n ? Dn.domToBlock(n, t) : null;
91
+ return e === "string" ? n = Ve("") : e === "integer" || e === "decimal" ? n = On(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ve("") : console.assert(!1), n ? Rn.domToBlock(n, t) : null;
92
92
  }
93
93
  function Et(t) {
94
94
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
@@ -96,7 +96,7 @@ function Et(t) {
96
96
  function ci(t) {
97
97
  return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? ae(t.items) : t.ui === "multiTypes" ? ae(t.types) : t.ui === "compSelect" ? "Comp" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
98
98
  }
99
- function Xn(t) {
99
+ function jn(t) {
100
100
  return t === "string" ? "String" : t === "integer" || t === "decimal" ? "Number" : t === "boolean" ? "Boolean" : t === "enum" || t === "dateTime" ? "String" : (console.assert(!1), null);
101
101
  }
102
102
  function an(t, e, n, o) {
@@ -105,7 +105,7 @@ function an(t, e, n, o) {
105
105
  <mutation key="${e}" name="${n}" locale="${o ? "TRUE" : "FALSE"}"/>
106
106
  </block>
107
107
  `, a = C.xml.textToDom(i);
108
- return Dn.domToBlock(a, t);
108
+ return Rn.domToBlock(a, t);
109
109
  }
110
110
  function Y(t, e) {
111
111
  try {
@@ -150,11 +150,11 @@ function ui() {
150
150
  return C.xml.textToDom('<shadow type="object_create_v1"></shadow>');
151
151
  }
152
152
  function li(t) {
153
- const e = `<shadow type="${ye(t)}"></shadow>`;
153
+ const e = `<shadow type="${ve(t)}"></shadow>`;
154
154
  return C.xml.textToDom(e);
155
155
  }
156
156
  function _i(t) {
157
- const e = `<shadow type="${ye(t)}"></shadow>`;
157
+ const e = `<shadow type="${ve(t)}"></shadow>`;
158
158
  return C.xml.textToDom(e);
159
159
  }
160
160
  function pi(t) {
@@ -179,7 +179,7 @@ function fi() {
179
179
  n.push({ key: o, name: i, type: a });
180
180
  return n;
181
181
  }
182
- function yn(t) {
182
+ function vn(t) {
183
183
  const { activeObject: e, activePage: n } = g.app;
184
184
  if (e.type === "page") {
185
185
  const o = n.meta.arguments.find((i) => i.id === t);
@@ -232,7 +232,7 @@ const Ti = {
232
232
  }
233
233
  },
234
234
  onArgumentChange_: function(t) {
235
- const e = yn(t);
235
+ const e = vn(t);
236
236
  if (!e) {
237
237
  console.assert(!1);
238
238
  return;
@@ -243,7 +243,7 @@ const Ti = {
243
243
  this.setOutput(!0, Et(this.argument.type));
244
244
  },
245
245
  checkWarning_: function() {
246
- const t = yn(this.argument.key);
246
+ const t = vn(this.argument.key);
247
247
  if (!t) {
248
248
  this.setWarningText(f("WARN_ARGUMENT_NOT_FOUND"));
249
249
  return;
@@ -261,7 +261,7 @@ s.forBlock.get_page_argument_v1 = function(t) {
261
261
  return [`__getPageArgumentV1__(${s.quote_(e.argument.key)})`, r.FUNCTION_CALL];
262
262
  };
263
263
  const Ei = (t, e) => {
264
- const n = ye(t), o = ae(t);
264
+ const n = ve(t), o = ae(t);
265
265
  E[n] = {
266
266
  init: function() {
267
267
  this.appendDummyInput().appendField(
@@ -270,7 +270,7 @@ const Ei = (t, e) => {
270
270
  ), this.setOutput(!0, o), this.setStyle("property_blocks"), this.setTooltip(""), this.setHelpUrl("");
271
271
  },
272
272
  genOpts_: function() {
273
- const { i18n: i } = vt, a = [];
273
+ const { i18n: i } = yt, a = [];
274
274
  for (const { title: c, value: u } of e)
275
275
  a.push([i.global.t(c), u]);
276
276
  return k(a);
@@ -286,7 +286,7 @@ for (const t in ie) {
286
286
  Ei(n, e.items[n]);
287
287
  }
288
288
  const gi = (t, e) => {
289
- const n = ye(t), o = ae(t);
289
+ const n = ve(t), o = ae(t);
290
290
  E[n] = {
291
291
  init: function() {
292
292
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -303,7 +303,7 @@ const gi = (t, e) => {
303
303
  }, 0);
304
304
  },
305
305
  genOpts_: function() {
306
- const { i18n: i } = vt, a = [];
306
+ const { i18n: i } = yt, a = [];
307
307
  for (const { title: c, value: u } of e)
308
308
  a.push([i.global.t(c), u]);
309
309
  return k(a);
@@ -394,7 +394,7 @@ const Oi = {
394
394
  }
395
395
  };
396
396
  E.app_bind_item_v1 = Oi;
397
- const yi = {
397
+ const vi = {
398
398
  init: function() {
399
399
  this.itemCount_ = 0, this.setMutator(
400
400
  new Tt.MutatorIcon(
@@ -482,7 +482,7 @@ const yi = {
482
482
  "Boolean",
483
483
  "Array",
484
484
  "Object"
485
- ]), t === 0 && this.getInput("ADD" + t).setAlign(v.Align.RIGHT).appendField("%{BKY_APP_V1_APP_BIND_TITLE}"));
485
+ ]), t === 0 && this.getInput("ADD" + t).setAlign(y.Align.RIGHT).appendField("%{BKY_APP_V1_APP_BIND_TITLE}"));
486
486
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
487
487
  this.removeInput("ADD" + t);
488
488
  },
@@ -512,19 +512,19 @@ const yi = {
512
512
  this.setWarningText(null);
513
513
  }
514
514
  };
515
- E.app_bind_v1 = yi;
515
+ E.app_bind_v1 = vi;
516
516
  s.forBlock.app_bind_v1 = function() {
517
517
  return "";
518
518
  };
519
- function Jn() {
519
+ function Xn() {
520
520
  return g.app.appList;
521
521
  }
522
- function vn(t) {
522
+ function yn(t) {
523
523
  return g.app.appList.find((e) => e.id === t);
524
524
  }
525
- function vi() {
525
+ function yi() {
526
526
  const t = [];
527
- return Jn().forEach(({ id: n, name: o }) => {
527
+ return Xn().forEach(({ id: n, name: o }) => {
528
528
  t.push([o, n]);
529
529
  }), k(t);
530
530
  }
@@ -543,22 +543,22 @@ function Ci(t) {
543
543
  e.push([i, o]);
544
544
  }), k(e);
545
545
  }
546
- const qn = {
546
+ const Jn = {
547
547
  id: "",
548
548
  groupId: "",
549
549
  name: "",
550
550
  position: 0
551
551
  };
552
- function Qn() {
552
+ function qn() {
553
553
  const { comps: t } = g.app.activeApp;
554
- return [qn, ...t];
554
+ return [Jn, ...t];
555
555
  }
556
556
  function Cn(t) {
557
- return t === "" ? qn : g.app.activeApp.comps.find((e) => e.id === t);
557
+ return t === "" ? Jn : g.app.activeApp.comps.find((e) => e.id === t);
558
558
  }
559
559
  function ki() {
560
- const { i18n: t } = vt, e = [];
561
- return Qn().forEach(({ id: o, name: i }) => {
560
+ const { i18n: t } = yt, e = [];
561
+ return qn().forEach(({ id: o, name: i }) => {
562
562
  let a = i;
563
563
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
564
564
  }), k(e);
@@ -624,11 +624,11 @@ function qe(t) {
624
624
  });
625
625
  if (e[_.key] && e[_.key][u])
626
626
  for (const { keys: d, names: h, raw: p } of e[_.key][u])
627
- ve(d, p) || c.push({
627
+ ye(d, p) || c.push({
628
628
  id: z("elementPropertyChangeEvent", t, d),
629
629
  kind: "elementPropertyChangeEvent",
630
630
  names: h,
631
- params: X(jn(p))
631
+ params: X(Wn(p))
632
632
  });
633
633
  if (q(_.key) && l.reference && l.reference.comp) {
634
634
  const d = a[l.reference.comp];
@@ -752,7 +752,7 @@ function Ye(t) {
752
752
  id: t,
753
753
  kind: u,
754
754
  names: p.names,
755
- params: X(jn(p.raw))
755
+ params: X(Wn(p.raw))
756
756
  };
757
757
  }
758
758
  } else if (u === "referencePropertyChangeEvent") {
@@ -832,7 +832,7 @@ function Ni(t) {
832
832
  e.push([Ie(i, a), o]);
833
833
  return k(e);
834
834
  }
835
- function zn() {
835
+ function Qn() {
836
836
  const { activeObject: t, activeComp: e } = g.app, n = [];
837
837
  if (t.type === "comp")
838
838
  for (const { id: o, name: i, params: a } of e.meta.events)
@@ -862,7 +862,7 @@ function kn(t) {
862
862
  }
863
863
  }
864
864
  function Li() {
865
- const t = [], e = zn();
865
+ const t = [], e = Qn();
866
866
  for (const { id: n, kind: o, names: i } of e)
867
867
  t.push([Ie(o, i), n]);
868
868
  return k(t);
@@ -1012,7 +1012,7 @@ function Dt(t) {
1012
1012
  };
1013
1013
  }
1014
1014
  }
1015
- function Zn() {
1015
+ function zn() {
1016
1016
  const t = [], e = cn();
1017
1017
  for (const { id: n, kind: o, names: i } of e)
1018
1018
  t.push([on(o, i), n]);
@@ -1049,7 +1049,7 @@ function bi(t, e, n) {
1049
1049
  }
1050
1050
  if (o[t.key] && o[t.key][e]) {
1051
1051
  for (const { keys: l, raw: _ } of o[t.key][e])
1052
- if (!ve(l, _))
1052
+ if (!ye(l, _))
1053
1053
  return !1;
1054
1054
  }
1055
1055
  if (K(t.key) && i.type === "comp" && c.meta.properties.length > 0)
@@ -1099,7 +1099,7 @@ function Di(t, e, n) {
1099
1099
  const { properties: o } = g.runtime, { activeObject: i, activeComp: a, depends: c } = g.app;
1100
1100
  if (o[t.key] && o[t.key][e]) {
1101
1101
  for (const { keys: u, raw: l } of o[t.key][e])
1102
- if (!ve(u, l))
1102
+ if (!ye(u, l))
1103
1103
  return !1;
1104
1104
  }
1105
1105
  if (q(t.key) && n) {
@@ -1114,7 +1114,7 @@ function Di(t, e, n) {
1114
1114
  }
1115
1115
  return !(K(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1116
1116
  }
1117
- function to(t, e, n, o) {
1117
+ function Zn(t, e, n, o) {
1118
1118
  return t ? t === "onEvent" ? bi(e, n, o) : t === "callMethod" ? Pi(e, o) : t === "getProperty" ? Ri(e, n, o) : t === "setProperty" ? Di(e, n, o) : !1 : !1;
1119
1119
  }
1120
1120
  function j(t) {
@@ -1127,7 +1127,7 @@ function j(t) {
1127
1127
  console.assert(!1, "invalid element", o.key);
1128
1128
  continue;
1129
1129
  }
1130
- if (!to(t, i, n, o.reference?.comp))
1130
+ if (!Zn(t, i, n, o.reference?.comp))
1131
1131
  return !0;
1132
1132
  }
1133
1133
  return !1;
@@ -1142,7 +1142,7 @@ function Jt(t) {
1142
1142
  console.assert(!1, "invalid element", i.key);
1143
1143
  continue;
1144
1144
  }
1145
- to(t, a, o, i.reference?.comp) || n.push({
1145
+ Zn(t, a, o, i.reference?.comp) || n.push({
1146
1146
  id: i.id,
1147
1147
  key: i.key,
1148
1148
  name: a.name,
@@ -1168,7 +1168,7 @@ function ft(t) {
1168
1168
  };
1169
1169
  }
1170
1170
  function Ce(t) {
1171
- const { i18n: e } = vt, n = [], o = Jt(t);
1171
+ const { i18n: e } = yt, n = [], o = Jt(t);
1172
1172
  for (const { id: i, name: a, alias: c } of o) {
1173
1173
  let u = e.global.t(a);
1174
1174
  c && (u += " / " + c), n.push([u, i]);
@@ -1187,7 +1187,7 @@ function Ht(t, e) {
1187
1187
  return console.assert(!1, "invalid element", l.key), c;
1188
1188
  if (n[_.key] && n[_.key][u])
1189
1189
  for (const { keys: d, names: h, raw: p } of n[_.key][u])
1190
- e === "write" && ve(d, p) || c.push({
1190
+ e === "write" && ye(d, p) || c.push({
1191
1191
  id: Zt("elementProperty", t, d),
1192
1192
  kind: "elementProperty",
1193
1193
  names: h,
@@ -1234,7 +1234,7 @@ function Ht(t, e) {
1234
1234
  });
1235
1235
  return c;
1236
1236
  }
1237
- function yt(t) {
1237
+ function vt(t) {
1238
1238
  if (!t)
1239
1239
  return;
1240
1240
  const { properties: e } = g.runtime, { activeObject: n, activeComp: o, depends: i } = g.app, a = Mt(n.type, n.subtype);
@@ -1315,10 +1315,10 @@ function yt(t) {
1315
1315
  };
1316
1316
  }
1317
1317
  }
1318
- function eo(t, e) {
1318
+ function to(t, e) {
1319
1319
  const n = [], o = Ht(t, e);
1320
1320
  for (const { id: i, kind: a, names: c } of o)
1321
- n.push([wn(a, c), i]);
1321
+ n.push([Fn(a, c), i]);
1322
1322
  return k(n);
1323
1323
  }
1324
1324
  function rn() {
@@ -1332,7 +1332,7 @@ function ue(t) {
1332
1332
  if (e.type === "comp")
1333
1333
  return o.meta.states.find((i) => i.id === t);
1334
1334
  }
1335
- function no() {
1335
+ function eo() {
1336
1336
  const t = [], e = rn();
1337
1337
  for (const { id: n, name: o } of e)
1338
1338
  t.push([o, n]);
@@ -1497,7 +1497,7 @@ const Ui = {
1497
1497
  initData_: function() {
1498
1498
  if (this.event.id)
1499
1499
  return;
1500
- const t = zn()?.[0];
1500
+ const t = Qn()?.[0];
1501
1501
  if (!t)
1502
1502
  return;
1503
1503
  this.event.id = t.id, this.event.kind = t.kind, this.event.names = t.names, this.event.params = t.params;
@@ -1644,7 +1644,7 @@ const Vi = {
1644
1644
  }, 0);
1645
1645
  },
1646
1646
  updateShape_: function() {
1647
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("TEXT") || (this.appendValueInput("TEXT").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TEXT}"), this.moveInputBefore("TEXT", "RESULT")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "TEXT"));
1647
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("TEXT") || (this.appendValueInput("TEXT").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_TEXT}"), this.moveInputBefore("TEXT", "RESULT")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "TEXT"));
1648
1648
  },
1649
1649
  updateShadow_: function() {
1650
1650
  if (this.isInsertionMarker())
@@ -1681,7 +1681,7 @@ const xi = {
1681
1681
  }, 0);
1682
1682
  },
1683
1683
  updateShape_: function() {
1684
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("VALUE") || (this.appendValueInput("VALUE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_VALUE}"), this.moveInputBefore("VALUE", "RESULT")), this.getInput("LABEL") || (this.appendValueInput("LABEL").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_LABEL}"), this.moveInputBefore("LABEL", "VALUE")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "LABEL"));
1684
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("VALUE") || (this.appendValueInput("VALUE").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_VALUE}"), this.moveInputBefore("VALUE", "RESULT")), this.getInput("LABEL") || (this.appendValueInput("LABEL").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_LABEL}"), this.moveInputBefore("LABEL", "VALUE")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "LABEL"));
1685
1685
  },
1686
1686
  updateShadow_: function() {
1687
1687
  if (this.isInsertionMarker())
@@ -1836,10 +1836,10 @@ const Yi = {
1836
1836
  this.removeInput("INPUT" + t);
1837
1837
  for (let t = 0; t < this.method.inputs.length; t++) {
1838
1838
  const e = this.method.inputs[t];
1839
- this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(Rn[e.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + t, "OUTPUT0"));
1839
+ this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t).setAlign(y.Align.RIGHT).appendField(f(e.name)), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + t, "OUTPUT0"));
1840
1840
  }
1841
- if (this.method.kind === "referenceMethod")
1842
- this.getInput("REF_KEY") || this.appendValueInput("REF_KEY"), this.method.inputs.length > 0 ? this.moveInputBefore("REF_KEY", "INPUT0") : this.method.outputs.length > 0 && this.moveInputBefore("REF_KEY", "OUTPUT0");
1841
+ if (this.method.kind === "multipleRefMethod")
1842
+ this.getInput("REF_KEY") || this.appendValueInput("REF_KEY").setAlign(y.Align.RIGHT).appendField(f("BKY_APP_REF_KEY")), this.method.inputs.length > 0 ? this.moveInputBefore("REF_KEY", "INPUT0") : this.method.outputs.length > 0 && this.moveInputBefore("REF_KEY", "OUTPUT0");
1843
1843
  else if (this.getInput("REF_KEY")) {
1844
1844
  const t = this.getInput("REF_KEY").connection.targetBlock();
1845
1845
  t && t.dispose(), this.removeInput("REF_KEY");
@@ -1858,7 +1858,7 @@ const Yi = {
1858
1858
  ensureBlocks_: function() {
1859
1859
  if (this.isInsertionMarker())
1860
1860
  return;
1861
- const { kind: t } = Oe(this.method.id), e = Kn(t), n = [];
1861
+ const { kind: t } = Oe(this.method.id), e = wn(t), n = [];
1862
1862
  for (let o = 0; o < this.method.outputs.length; o++) {
1863
1863
  const { key: i, name: a } = this.method.outputs[o];
1864
1864
  n.push(["OUTPUT" + o, `__output$${i}__`, a, e]);
@@ -1899,14 +1899,41 @@ const Yi = {
1899
1899
  E.call_app_method_v1 = Yi;
1900
1900
  s.forBlock.call_app_method_v1 = function(t) {
1901
1901
  const e = s.quote_, n = t;
1902
- if (n.method.outputs.length > 0) {
1903
- const o = s.statementToCode(n, "HANDLE");
1904
- return `{
1905
- __callMethodV1__(${e(n.method.id)});
1906
- ${o}}
1907
- `;
1908
- } else
1909
- return `__callMethodV1__(${e(n.method.id)});
1902
+ let o;
1903
+ n.method.kind === "multipleRefMethod" && (o = s.valueToCode(n, "REF_KEY", r.NONE) || "''");
1904
+ let i = "{";
1905
+ n.method.inputs.forEach(({ key: u, type: l }, _) => {
1906
+ let d = s.valueToCode(
1907
+ n,
1908
+ "INPUT" + _,
1909
+ r.ATOMIC
1910
+ );
1911
+ if (d === void 0)
1912
+ switch (l) {
1913
+ case "string":
1914
+ d = "''";
1915
+ break;
1916
+ case "number":
1917
+ d = "0";
1918
+ break;
1919
+ case "boolean":
1920
+ d = "false";
1921
+ break;
1922
+ case "array":
1923
+ d = "[]";
1924
+ break;
1925
+ case "object":
1926
+ d = "{}";
1927
+ break;
1928
+ default:
1929
+ d = "null";
1930
+ }
1931
+ _ > 0 && (i += ","), i += `${e(u)}:${d}`;
1932
+ }), i += "}";
1933
+ const a = s.statementToCode(n, "HANDLE");
1934
+ return `{
1935
+ var __outputs__ = __callMethodV1__(${e(n.method.id)}, ${o}, ${i});
1936
+ ${a}}
1910
1937
  `;
1911
1938
  };
1912
1939
  const Fi = {
@@ -1940,7 +1967,7 @@ const Fi = {
1940
1967
  }, 0);
1941
1968
  },
1942
1969
  genMethodOpts_: function() {
1943
- return Zn();
1970
+ return zn();
1944
1971
  },
1945
1972
  onchange: function(t) {
1946
1973
  if (t.type === b.STATE_CHANGE)
@@ -1969,7 +1996,7 @@ const Fi = {
1969
1996
  ensureBlocks_: function() {
1970
1997
  if (this.isInsertionMarker() || !this.method.id)
1971
1998
  return;
1972
- const t = Kn(this.method.kind), e = [];
1999
+ const t = wn(this.method.kind), e = [];
1973
2000
  for (let n = 0; n < this.method.inputs.length; n++) {
1974
2001
  const { key: o, name: i } = this.method.inputs[n];
1975
2002
  e.push(["INPUT" + n, `__input$${o}__`, i, t]);
@@ -2047,7 +2074,7 @@ const wi = {
2047
2074
  }, 0);
2048
2075
  },
2049
2076
  genMethodOpts_: function() {
2050
- return Zn();
2077
+ return zn();
2051
2078
  },
2052
2079
  genOutputOpts_: function() {
2053
2080
  return Bi(this.method.id);
@@ -2181,7 +2208,7 @@ const Ki = {
2181
2208
  initData_: function() {
2182
2209
  if (this.app.id)
2183
2210
  return;
2184
- const t = Jn()?.[0];
2211
+ const t = Xn()?.[0];
2185
2212
  if (!t)
2186
2213
  return;
2187
2214
  this.app.id = t.id, this.app.name = t.name;
@@ -2206,7 +2233,7 @@ const Ki = {
2206
2233
  }, 0);
2207
2234
  },
2208
2235
  genAppOpts_: function() {
2209
- return vi();
2236
+ return yi();
2210
2237
  },
2211
2238
  genPageOpts_: function() {
2212
2239
  return Ci(this.app.id);
@@ -2222,7 +2249,7 @@ const Ki = {
2222
2249
  }
2223
2250
  },
2224
2251
  onAppChange_: function(t) {
2225
- const e = vn(t);
2252
+ const e = yn(t);
2226
2253
  if (!e) {
2227
2254
  console.assert(!1);
2228
2255
  return;
@@ -2240,7 +2267,7 @@ const Ki = {
2240
2267
  e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
2241
2268
  },
2242
2269
  checkWarning_: function() {
2243
- const t = vn(this.app.id);
2270
+ const t = yn(this.app.id);
2244
2271
  if (!t) {
2245
2272
  this.setWarningText(f("WARN_APP_NOT_FOUND"));
2246
2273
  return;
@@ -2270,7 +2297,7 @@ const $i = {
2270
2297
  initData_: function() {
2271
2298
  if (this.comp.id !== void 0)
2272
2299
  return;
2273
- const t = Qn()?.[0];
2300
+ const t = qn()?.[0];
2274
2301
  if (!t)
2275
2302
  return;
2276
2303
  this.comp.id = t.id, this.comp.name = t.name;
@@ -2371,7 +2398,7 @@ const Hi = {
2371
2398
  return Ce("getProperty");
2372
2399
  },
2373
2400
  genPropertyOpts_: function() {
2374
- return eo(this.node.id, "read");
2401
+ return to(this.node.id, "read");
2375
2402
  },
2376
2403
  onchange: function(t) {
2377
2404
  if (t.type === b.STATE_CHANGE)
@@ -2392,14 +2419,14 @@ const Hi = {
2392
2419
  const n = this.node.key !== e.key;
2393
2420
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2394
2421
  const o = this.getField("PROPERTY");
2395
- if (o.getOptions(!1), n || !yt(this.property.id)) {
2422
+ if (o.getOptions(!1), n || !vt(this.property.id)) {
2396
2423
  const i = Ht(this.node.id, "read")?.[0];
2397
2424
  o.setValue(i?.id ?? "");
2398
2425
  }
2399
2426
  this.onPropChange_(o.getValue());
2400
2427
  },
2401
2428
  onPropChange_: function(t) {
2402
- const e = yt(t);
2429
+ const e = vt(t);
2403
2430
  e ? (this.property.id = e.id, this.property.kind = e.kind, this.property.names = e.names) : (this.property.id = "", this.property.kind = "", this.property.names = []);
2404
2431
  },
2405
2432
  checkWarning_: function() {
@@ -2413,7 +2440,7 @@ const Hi = {
2413
2440
  return;
2414
2441
  }
2415
2442
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2416
- const e = yt(this.property.id);
2443
+ const e = vt(this.property.id);
2417
2444
  if (!e) {
2418
2445
  this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2419
2446
  return;
@@ -2476,7 +2503,7 @@ const Gi = {
2476
2503
  return Ce("setProperty");
2477
2504
  },
2478
2505
  genPropertyOpts_: function() {
2479
- return eo(this.node.id, "write");
2506
+ return to(this.node.id, "write");
2480
2507
  },
2481
2508
  onchange: function(t) {
2482
2509
  if (t.type === b.STATE_CHANGE)
@@ -2497,20 +2524,20 @@ const Gi = {
2497
2524
  const n = this.node.key !== e.key;
2498
2525
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2499
2526
  const o = this.getField("PROPERTY");
2500
- if (o.getOptions(!1), n || !yt(this.property.id)) {
2527
+ if (o.getOptions(!1), n || !vt(this.property.id)) {
2501
2528
  const i = Ht(this.node.id, "write")?.[0];
2502
2529
  o.setValue(i?.id ?? "");
2503
2530
  }
2504
2531
  this.onPropChange_(o.getValue());
2505
2532
  },
2506
2533
  onPropChange_: function(t) {
2507
- const e = yt(t);
2534
+ const e = vt(t);
2508
2535
  e ? (this.property.id = e.id, this.property.kind = e.kind, this.property.names = e.names) : (this.property.id = "", this.property.kind = "", this.property.names = []), this.updateShadow_();
2509
2536
  },
2510
2537
  updateShadow_: function() {
2511
2538
  if (this.isInsertionMarker())
2512
2539
  return;
2513
- const t = yt(this.property.id);
2540
+ const t = vt(this.property.id);
2514
2541
  if (!t)
2515
2542
  return;
2516
2543
  this.getInput("VALUE").setShadowDom(null);
@@ -2534,7 +2561,7 @@ const Gi = {
2534
2561
  return;
2535
2562
  }
2536
2563
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2537
- const e = yt(this.property.id);
2564
+ const e = vt(this.property.id);
2538
2565
  if (!e) {
2539
2566
  this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2540
2567
  return;
@@ -2584,7 +2611,7 @@ const Wi = {
2584
2611
  }, 0);
2585
2612
  },
2586
2613
  genStateOpts_: function() {
2587
- return no();
2614
+ return eo();
2588
2615
  },
2589
2616
  onchange: function(t) {
2590
2617
  if (t.type === b.STATE_CHANGE)
@@ -2646,7 +2673,7 @@ const ji = {
2646
2673
  this.state.id = t.state?.id ?? "", this.state.name = t.state?.name ?? "", this.state.type = t.state?.type ?? "string";
2647
2674
  },
2648
2675
  genStateOpts_: function() {
2649
- return no();
2676
+ return eo();
2650
2677
  },
2651
2678
  onchange: function(t) {
2652
2679
  if (t.type === I.BLOCK_CHANGE) {
@@ -3395,25 +3422,17 @@ const Xi = C.xml, Ji = [
3395
3422
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
3396
3423
  },
3397
3424
  {
3398
- type: "call_func_v1",
3399
- prefixInputs: ["OUTPUT"]
3400
- },
3401
- {
3402
- type: "call_func_internal_v1",
3425
+ type: "call_app_method_v1",
3403
3426
  prefixInputs: ["OUTPUT"]
3404
3427
  },
3405
3428
  {
3406
- type: "call_method_as_v1",
3429
+ type: "call_func_v1",
3407
3430
  prefixInputs: ["OUTPUT"]
3408
3431
  },
3409
3432
  {
3410
- type: "call_method_v1",
3433
+ type: "call_func_internal_v1",
3411
3434
  prefixInputs: ["OUTPUT"]
3412
3435
  },
3413
- {
3414
- type: "method_impl_v1",
3415
- prefixInputs: ["INPUT"]
3416
- },
3417
3436
  {
3418
3437
  type: "delete_data_v1",
3419
3438
  inputs: ["SUCCESS", "MESSAGE"]
@@ -3422,6 +3441,10 @@ const Xi = C.xml, Ji = [
3422
3441
  type: "func_entry_v1",
3423
3442
  prefixInputs: ["INPUT"]
3424
3443
  },
3444
+ {
3445
+ type: "impl_app_method_v1",
3446
+ prefixInputs: ["INPUT"]
3447
+ },
3425
3448
  {
3426
3449
  type: "open_confirm_dlg_v1",
3427
3450
  inputs: ["RESULT"]
@@ -3512,7 +3535,7 @@ const Qi = {
3512
3535
  },
3513
3536
  updateShape_: function() {
3514
3537
  if (this.locale) {
3515
- const { i18n: t } = vt;
3538
+ const { i18n: t } = yt;
3516
3539
  this.setFieldValue(t.global.t(this.name), "LABEL");
3517
3540
  } else
3518
3541
  this.setFieldValue(this.name, "LABEL");
@@ -3540,7 +3563,7 @@ function Bt(t, e) {
3540
3563
  if (n)
3541
3564
  return n.funcs.find((o) => o.id === e);
3542
3565
  }
3543
- function oo(t) {
3566
+ function no(t) {
3544
3567
  const e = [];
3545
3568
  return Gt(t).forEach(({ id: o, name: i }) => {
3546
3569
  e.push([i, o]);
@@ -3568,7 +3591,7 @@ function qt(t) {
3568
3591
  function le(t) {
3569
3592
  return g.compute.spaces.find((e) => e.id === t);
3570
3593
  }
3571
- function io(t) {
3594
+ function oo(t) {
3572
3595
  const e = [];
3573
3596
  return qt(t).forEach(({ id: o, name: i }) => {
3574
3597
  e.push([i, o]);
@@ -3617,10 +3640,10 @@ const ts = {
3617
3640
  }, 0);
3618
3641
  },
3619
3642
  genSpaceOpts_: function() {
3620
- return io("func");
3643
+ return oo("func");
3621
3644
  },
3622
3645
  genFuncOpts_: function() {
3623
- return oo(this.space.id);
3646
+ return no(this.space.id);
3624
3647
  },
3625
3648
  onchange: function(t) {
3626
3649
  if (t.type === b.STATE_CHANGE)
@@ -3672,7 +3695,7 @@ const ts = {
3672
3695
  }
3673
3696
  for (let t = 0; t < this.func.inputs.length; t++) {
3674
3697
  const { name: e } = this.func.inputs[t], n = this.getInput("INPUT" + t);
3675
- n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3698
+ n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(y.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3676
3699
  }
3677
3700
  },
3678
3701
  updateCheck_: function() {
@@ -3791,10 +3814,10 @@ const es = {
3791
3814
  }, 0);
3792
3815
  },
3793
3816
  genSpaceOpts_: function() {
3794
- return io("func");
3817
+ return oo("func");
3795
3818
  },
3796
3819
  genFuncOpts_: function() {
3797
- return oo(this.space.id);
3820
+ return no(this.space.id);
3798
3821
  },
3799
3822
  onchange: function(t) {
3800
3823
  if (t.type === b.STATE_CHANGE)
@@ -3846,7 +3869,7 @@ const es = {
3846
3869
  }
3847
3870
  for (let t = 0; t < this.func.inputs.length; t++) {
3848
3871
  const { name: e } = this.func.inputs[t], n = this.getInput("INPUT" + t);
3849
- n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3872
+ n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(y.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
3850
3873
  }
3851
3874
  },
3852
3875
  updateCheck_: function() {
@@ -4260,7 +4283,7 @@ const cs = {
4260
4283
  }, 0);
4261
4284
  },
4262
4285
  updateShape_: function() {
4263
- 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(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
4286
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
4264
4287
  },
4265
4288
  ensureBlocks_: function() {
4266
4289
  this.isInsertionMarker() || (ss(this), Y(this, [
@@ -4415,7 +4438,7 @@ const rs = {
4415
4438
  o && (e.setCheck(null), e.connect(o.outputConnection));
4416
4439
  },
4417
4440
  updateCheck_: function() {
4418
- const t = Xn(this.column.type);
4441
+ const t = jn(this.column.type);
4419
4442
  this.getInput("VALUE").connection.setCheck(t);
4420
4443
  },
4421
4444
  checkWarning_: function() {
@@ -4636,7 +4659,7 @@ const fs = {
4636
4659
  }, 0);
4637
4660
  },
4638
4661
  updateShape_: function() {
4639
- 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(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4662
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4640
4663
  },
4641
4664
  ensureBlocks_: function() {
4642
4665
  this.isInsertionMarker() || (ps(this), ds(this), Y(this, [
@@ -4814,7 +4837,7 @@ const As = {
4814
4837
  }, 0);
4815
4838
  },
4816
4839
  updateShape_: function() {
4817
- 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(v.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4840
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4818
4841
  },
4819
4842
  ensureBlocks_: function() {
4820
4843
  this.isInsertionMarker() || (ms(this), Ts(this), Es(this), Y(this, [
@@ -4910,7 +4933,7 @@ const Os = {
4910
4933
  }
4911
4934
  };
4912
4935
  E.select_column_item_v1 = Os;
4913
- const ys = {
4936
+ const vs = {
4914
4937
  init: function() {
4915
4938
  this.space = {
4916
4939
  id: "",
@@ -5083,7 +5106,7 @@ const ys = {
5083
5106
  const e = this.table.columns[t], n = new O(
5084
5107
  () => this.genColumnOpts_()
5085
5108
  ), o = new ht("");
5086
- this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
5109
+ this.appendDummyInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
5087
5110
  }
5088
5111
  },
5089
5112
  updateShape_: function() {
@@ -5095,7 +5118,7 @@ const ys = {
5095
5118
  const e = new O(
5096
5119
  () => this.genColumnOpts_()
5097
5120
  ), n = new ht("");
5098
- this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
5121
+ this.appendDummyInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
5099
5122
  const o = this.table.columns[0];
5100
5123
  e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
5101
5124
  }
@@ -5119,7 +5142,7 @@ const ys = {
5119
5142
  this.setWarningText(null);
5120
5143
  }
5121
5144
  };
5122
- E.select_column_v1 = ys;
5145
+ E.select_column_v1 = vs;
5123
5146
  s.forBlock.select_column_v1 = function(t) {
5124
5147
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5125
5148
  for (let l = 0; l < n.itemCount_; l++) {
@@ -5131,7 +5154,7 @@ s.forBlock.select_column_v1 = function(t) {
5131
5154
  d !== 0 && (c += ","), c += `{name:${e(l)},alias:${e(_)}}`;
5132
5155
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, r.ATOMIC];
5133
5156
  };
5134
- const vs = {
5157
+ const ys = {
5135
5158
  init: function() {
5136
5159
  this.space = {
5137
5160
  id: "",
@@ -5223,7 +5246,7 @@ const vs = {
5223
5246
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
5224
5247
  }
5225
5248
  };
5226
- E.select_table_v1 = vs;
5249
+ E.select_table_v1 = ys;
5227
5250
  s.forBlock.select_table_v1 = function(t) {
5228
5251
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id;
5229
5252
  return [`{spaceId:${e(o)},tableId:${e(i)}}`, r.ATOMIC];
@@ -5489,7 +5512,7 @@ const Ls = {
5489
5512
  const e = this.table.columns[t], n = new O(
5490
5513
  () => this.genColumnOpts_()
5491
5514
  );
5492
- this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
5515
+ this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
5493
5516
  }
5494
5517
  },
5495
5518
  updateShape_: function() {
@@ -5503,7 +5526,7 @@ const Ls = {
5503
5526
  const e = new O(
5504
5527
  () => this.genColumnOpts_()
5505
5528
  );
5506
- this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t);
5529
+ this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(e, "COLUMN" + t);
5507
5530
  }
5508
5531
  },
5509
5532
  updateBlocks_: function(t) {
@@ -5527,7 +5550,7 @@ const Ls = {
5527
5550
  const e = this.getFieldValue("COLUMN" + t), n = this.table.columns.find((i) => i.id === e);
5528
5551
  if (!n)
5529
5552
  continue;
5530
- const o = Xn(n.type);
5553
+ const o = jn(n.type);
5531
5554
  this.getInput("ADD" + t).setCheck(o);
5532
5555
  }
5533
5556
  },
@@ -5642,7 +5665,7 @@ const Ps = {
5642
5665
  }, 0);
5643
5666
  },
5644
5667
  updateShape_: function() {
5645
- 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(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5668
+ 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(y.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5646
5669
  },
5647
5670
  ensureBlocks: function() {
5648
5671
  this.isInsertionMarker() || (Ss(this), Bs(this), Y(this, [
@@ -5671,7 +5694,7 @@ ${i}}
5671
5694
  };
5672
5695
  const Rs = C.xml, Ds = {
5673
5696
  init: function() {
5674
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5697
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
5675
5698
  new ot(St, 20, 20, void 0, () => {
5676
5699
  this.isInFlyout || this.addEntry_();
5677
5700
  })
@@ -5745,7 +5768,7 @@ const Ms = {
5745
5768
  E.json_boolean_v1 = Ms;
5746
5769
  const Ln = C.xml, Us = {
5747
5770
  init: function() {
5748
- this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5771
+ this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
5749
5772
  new ot(St, 20, 20, void 0, () => {
5750
5773
  this.isInFlyout || this.addEntry_();
5751
5774
  })
@@ -5818,7 +5841,7 @@ const Vs = {
5818
5841
  E.json_number_v1 = Vs;
5819
5842
  const xs = {
5820
5843
  init: function() {
5821
- this.appendDummyInput().setAlign(v.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
5844
+ this.appendDummyInput().setAlign(y.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
5822
5845
  }
5823
5846
  };
5824
5847
  E.json_root_v1 = xs;
@@ -5917,7 +5940,7 @@ const $s = {
5917
5940
  "Boolean",
5918
5941
  "Array",
5919
5942
  "Object"
5920
- ]), t === 0 && this.getInput("ADD" + t).setAlign(v.Align.RIGHT).appendField("%{BKY_LIST_V1_CREATE_TITLE}"));
5943
+ ]), t === 0 && this.getInput("ADD" + t).setAlign(y.Align.RIGHT).appendField("%{BKY_LIST_V1_CREATE_TITLE}"));
5921
5944
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
5922
5945
  this.removeInput("ADD" + t);
5923
5946
  }
@@ -6587,7 +6610,7 @@ const Xs = {
6587
6610
  t.push({
6588
6611
  enabled: !0,
6589
6612
  text: f("VARIABLE_SET_CREATE_GET").replace("%1", o),
6590
- callback: Mn.callbackFactory(this, i)
6613
+ callback: Dn.callbackFactory(this, i)
6591
6614
  });
6592
6615
  }
6593
6616
  }
@@ -7655,7 +7678,7 @@ const ea = {
7655
7678
  },
7656
7679
  updateShape_: function() {
7657
7680
  for (let t = 0; t < this.itemCount_; t++)
7658
- this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(new ht("key"), "KEY" + t);
7681
+ this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(new ht("key"), "KEY" + t);
7659
7682
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
7660
7683
  this.removeInput("ADD" + t);
7661
7684
  }
@@ -8112,7 +8135,7 @@ const ca = {
8112
8135
  }, 0);
8113
8136
  },
8114
8137
  updateShape_: function() {
8115
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_ASSET_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_ASSET_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("ASSET") || (this.appendValueInput("ASSET").setCheck("Resource").setAlign(v.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
8138
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_ASSET_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_ASSET_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("ASSET") || (this.appendValueInput("ASSET").setCheck("Resource").setAlign(y.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
8116
8139
  },
8117
8140
  ensureBlocks_: function() {
8118
8141
  this.isInsertionMarker() || Y(this, [
@@ -8134,7 +8157,7 @@ ${n}
8134
8157
  }
8135
8158
  `;
8136
8159
  };
8137
- function so(t) {
8160
+ function io(t) {
8138
8161
  const e = g.resource.spaces.find((i) => i.id === t);
8139
8162
  if (!e)
8140
8163
  return [];
@@ -8152,11 +8175,11 @@ function so(t) {
8152
8175
  }
8153
8176
  function ra(t) {
8154
8177
  const e = [];
8155
- return so(t).forEach(({ id: o, name: i }) => {
8178
+ return io(t).forEach(({ id: o, name: i }) => {
8156
8179
  e.push([i, o]);
8157
8180
  }), k(e);
8158
8181
  }
8159
- function ao(t, e) {
8182
+ function so(t, e) {
8160
8183
  const n = g.resource.spaces.find((i) => i.id === t);
8161
8184
  if (!n)
8162
8185
  return [];
@@ -8167,11 +8190,11 @@ function ao(t, e) {
8167
8190
  }
8168
8191
  function ua(t, e) {
8169
8192
  const n = [];
8170
- return ao(t, e).forEach(({ id: i, name: a }) => {
8193
+ return so(t, e).forEach(({ id: i, name: a }) => {
8171
8194
  n.push([a, i]);
8172
8195
  }), k(n);
8173
8196
  }
8174
- function co() {
8197
+ function ao() {
8175
8198
  const t = [];
8176
8199
  return g.resource.spaces.forEach((e) => {
8177
8200
  e.resources.length > 0 && t.push(e);
@@ -8179,7 +8202,7 @@ function co() {
8179
8202
  }
8180
8203
  function la() {
8181
8204
  const t = [];
8182
- return co().forEach(({ id: n, name: o }) => {
8205
+ return ao().forEach(({ id: n, name: o }) => {
8183
8206
  t.push([o, n]);
8184
8207
  }), k(t);
8185
8208
  }
@@ -8205,19 +8228,19 @@ const _a = {
8205
8228
  initData_: function() {
8206
8229
  if (this.space.id)
8207
8230
  return;
8208
- const t = co()?.[0];
8231
+ const t = ao()?.[0];
8209
8232
  if (!t)
8210
8233
  return;
8211
8234
  this.space.id = t.id, this.space.name = t.name;
8212
8235
  const e = this.getField("SPACE");
8213
8236
  e.getOptions(!1), e.setValue(this.space.id);
8214
- const n = so(this.space.id)?.[0];
8237
+ const n = io(this.space.id)?.[0];
8215
8238
  if (!n)
8216
8239
  return;
8217
8240
  this.dir.id = n.id, this.dir.name = n.name;
8218
8241
  const o = this.getField("DIR");
8219
8242
  o.getOptions(!1), o.setValue(this.dir.id);
8220
- const i = ao(this.space.id, this.dir.id)?.[0];
8243
+ const i = so(this.space.id, this.dir.id)?.[0];
8221
8244
  if (!i)
8222
8245
  return;
8223
8246
  this.resource.id = i.id, this.resource.name = i.name;
@@ -8263,7 +8286,7 @@ const pa = {
8263
8286
  }, 0);
8264
8287
  },
8265
8288
  updateShape_: function() {
8266
- this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_RESOURCE_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "RESULT")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_RESOURCE_RESULT}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("DATA") || (this.appendValueInput("DATA").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_DATA}"), this.moveInputBefore("DATA", "SUCCESS")), this.getInput("DIR") || (this.appendValueInput("DIR").setCheck("SelectDir").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_DIR}"), this.moveInputBefore("DIR", "DATA")), this.getInput("NAME") || (this.appendValueInput("NAME").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_NAME}"), this.moveInputBefore("NAME", "DIR"));
8289
+ this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_RESOURCE_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "RESULT")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_RESOURCE_RESULT}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("DATA") || (this.appendValueInput("DATA").setAlign(y.Align.RIGHT).appendField("%{BKY_RESOURCE_DATA}"), this.moveInputBefore("DATA", "SUCCESS")), this.getInput("DIR") || (this.appendValueInput("DIR").setCheck("SelectDir").setAlign(y.Align.RIGHT).appendField("%{BKY_RESOURCE_DIR}"), this.moveInputBefore("DIR", "DATA")), this.getInput("NAME") || (this.appendValueInput("NAME").setCheck("String").setAlign(y.Align.RIGHT).appendField("%{BKY_RESOURCE_NAME}"), this.moveInputBefore("NAME", "DIR"));
8267
8290
  },
8268
8291
  updateShadow_: function() {
8269
8292
  if (this.isInsertionMarker())
@@ -8585,7 +8608,7 @@ const ha = C.xml, fa = {
8585
8608
  for (let t = 0; t < this.itemCount_; t++)
8586
8609
  if (!this.getInput("ADD" + t)) {
8587
8610
  const e = this.appendValueInput("ADD" + t).setAlign(
8588
- v.Align.RIGHT
8611
+ y.Align.RIGHT
8589
8612
  );
8590
8613
  t === 0 && e.appendField("%{BKY_TEXT_V1_JOIN_TITLE}");
8591
8614
  }
@@ -8841,7 +8864,7 @@ const Ta = {
8841
8864
  this.updateShape_(), this.updateShadow_();
8842
8865
  },
8843
8866
  updateShape_: function() {
8844
- this.getInput("CALLBACK") || this.appendStatementInput("CALLBACK").appendField("%{BKY_TIME_DO}"), this.getInput("IMMEDIATE") || (this.appendValueInput("IMMEDIATE").setCheck("Boolean").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_IMMEDIATE}"), this.moveInputBefore("IMMEDIATE", "CALLBACK")), this.getInput("COUNT") || (this.appendValueInput("COUNT").setCheck("Number").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_COUNT}"), this.moveInputBefore("COUNT", "IMMEDIATE")), this.getInput("LOOP") || (this.appendValueInput("LOOP").setCheck("Boolean").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_LOOP}"), this.moveInputBefore("LOOP", "COUNT")), this.getInput("INTERVAL") || (this.appendValueInput("INTERVAL").setCheck("Number").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_INTERVAL_MS}"), this.moveInputBefore("INTERVAL", "LOOP"));
8867
+ this.getInput("CALLBACK") || this.appendStatementInput("CALLBACK").appendField("%{BKY_TIME_DO}"), this.getInput("IMMEDIATE") || (this.appendValueInput("IMMEDIATE").setCheck("Boolean").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_IMMEDIATE}"), this.moveInputBefore("IMMEDIATE", "CALLBACK")), this.getInput("COUNT") || (this.appendValueInput("COUNT").setCheck("Number").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_COUNT}"), this.moveInputBefore("COUNT", "IMMEDIATE")), this.getInput("LOOP") || (this.appendValueInput("LOOP").setCheck("Boolean").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_LOOP}"), this.moveInputBefore("LOOP", "COUNT")), this.getInput("INTERVAL") || (this.appendValueInput("INTERVAL").setCheck("Number").setAlign(y.Align.RIGHT).appendField("%{BKY_TIME_INTERVAL_MS}"), this.moveInputBefore("INTERVAL", "LOOP"));
8845
8868
  },
8846
8869
  updateShadow_: function() {
8847
8870
  if (this.isInsertionMarker())
@@ -8910,7 +8933,7 @@ const Ea = {
8910
8933
  t.push({
8911
8934
  enabled: this.workspace.remainingCapacity() > 0,
8912
8935
  text: n.replace("%1", o.getText()),
8913
- callback: Mn.callbackFactory(this, i)
8936
+ callback: Dn.callbackFactory(this, i)
8914
8937
  });
8915
8938
  }
8916
8939
  }
@@ -8983,14 +9006,14 @@ s.forBlock.variable_set_v1 = function(t) {
8983
9006
  return `${e} = ${n};
8984
9007
  `;
8985
9008
  };
8986
- Un.setConfirm(async (t, e) => {
9009
+ Mn.setConfirm(async (t, e) => {
8987
9010
  const n = await Go({
8988
9011
  title: "",
8989
9012
  text: t
8990
9013
  });
8991
9014
  e(!!n);
8992
9015
  });
8993
- Un.setPrompt(async (t, e, n) => {
9016
+ Mn.setPrompt(async (t, e, n) => {
8994
9017
  const o = await Wo({
8995
9018
  title: "",
8996
9019
  value: e
@@ -9009,7 +9032,7 @@ const Oa = Qt.getText_;
9009
9032
  Qt.getText_ = function() {
9010
9033
  if (this.selectedOption)
9011
9034
  return Oa.call(this);
9012
- const { i18n: t } = vt, e = this.getSourceBlock();
9035
+ const { i18n: t } = yt, e = this.getSourceBlock();
9013
9036
  if (this.name === "APP")
9014
9037
  return e.app.name;
9015
9038
  if (this.name === "PAGE")
@@ -9024,7 +9047,7 @@ Qt.getText_ = function() {
9024
9047
  }
9025
9048
  } else if (this.name === "PROPERTY") {
9026
9049
  const { kind: n, names: o } = e.property;
9027
- return wn(n, o);
9050
+ return Fn(n, o);
9028
9051
  } else if (this.name === "EVENT") {
9029
9052
  const { kind: n, names: o } = e.event;
9030
9053
  return console.log(e.event), Ie(n, o);
@@ -9073,24 +9096,24 @@ So.prototype.cleanUp = function() {
9073
9096
  }
9074
9097
  I.setGroup(t), this.setResizesEnabled(!0);
9075
9098
  };
9076
- function ro(t) {
9099
+ function co(t) {
9077
9100
  const e = t.getParent();
9078
- return e && ro(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
9101
+ return e && co(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
9079
9102
  }
9080
- class ya {
9103
+ class va {
9081
9104
  init() {
9082
9105
  const e = Bo.registry.getItem("blockDisable");
9083
9106
  e && (e.preconditionFn = function(n) {
9084
9107
  const o = n.block;
9085
- return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || ro(o) ? "disabled" : "enabled" : "hidden";
9108
+ return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || co(o) ? "disabled" : "enabled" : "hidden";
9086
9109
  });
9087
9110
  }
9088
9111
  }
9089
9112
  bo.registerFieldColour();
9090
9113
  Po.registry.unregister(Ro.names.ESCAPE);
9091
- const va = new Do.CrossTabCopyPaste();
9092
- va.init({ contextMenu: !0, shortcut: !0 });
9093
- const Ca = new ya();
9114
+ const ya = new Do.CrossTabCopyPaste();
9115
+ ya.init({ contextMenu: !0, shortcut: !0 });
9116
+ const Ca = new va();
9094
9117
  Ca.init();
9095
9118
  function un(t) {
9096
9119
  const e = Wt();
@@ -9105,7 +9128,7 @@ function un(t) {
9105
9128
  const i = o.getRelativeToSurfaceXY(), a = i.x * e.scale, c = i.y * e.scale;
9106
9129
  e.scroll(-a, -c);
9107
9130
  }
9108
- function uo() {
9131
+ function ro() {
9109
9132
  const t = Wt();
9110
9133
  if (!t)
9111
9134
  return;
@@ -9263,7 +9286,7 @@ Ae.Classic.categoryStyles = {
9263
9286
  colour: "#a55b80"
9264
9287
  }
9265
9288
  };
9266
- const ka = Vn.defineTheme("light", {
9289
+ const ka = Un.defineTheme("light", {
9267
9290
  name: "light",
9268
9291
  base: Ae.Classic,
9269
9292
  componentStyles: {
@@ -9279,7 +9302,7 @@ const ka = Vn.defineTheme("light", {
9279
9302
  scrollbarOpacity: 0.4,
9280
9303
  cursorColour: ""
9281
9304
  }
9282
- }), Na = Vn.defineTheme("dark", {
9305
+ }), Na = Un.defineTheme("dark", {
9283
9306
  name: "dark",
9284
9307
  base: Ae.Classic,
9285
9308
  componentStyles: {
@@ -9435,12 +9458,12 @@ function Ra(t) {
9435
9458
  }
9436
9459
  return e;
9437
9460
  }
9438
- const lo = Symbol();
9461
+ const uo = Symbol();
9439
9462
  function Da(t) {
9440
- qo(lo, t);
9463
+ qo(uo, t);
9441
9464
  }
9442
9465
  function ln() {
9443
- return Qo(lo);
9466
+ return Qo(uo);
9444
9467
  }
9445
9468
  const Ma = /* @__PURE__ */ ct({
9446
9469
  __name: "index",
@@ -9454,7 +9477,7 @@ const Ma = /* @__PURE__ */ ct({
9454
9477
  return;
9455
9478
  }
9456
9479
  if (o.lock) {
9457
- Yn(n("x-block-lib.msg.cannotOperateInLockedState"));
9480
+ xn(n("x-block-lib.msg.cannotOperateInLockedState"));
9458
9481
  return;
9459
9482
  }
9460
9483
  i.workspace.cleanUp();
@@ -9602,7 +9625,7 @@ const Ma = /* @__PURE__ */ ct({
9602
9625
  let u = [];
9603
9626
  const l = () => {
9604
9627
  if (t.lock) {
9605
- Yn(n("x-block-lib.msg.cannotOperateInLockedState"));
9628
+ xn(n("x-block-lib.msg.cannotOperateInLockedState"));
9606
9629
  return;
9607
9630
  }
9608
9631
  const p = [];
@@ -9634,14 +9657,14 @@ const Ma = /* @__PURE__ */ ct({
9634
9657
  P
9635
9658
  ).getRelativeToSurfaceXY().y + 10);
9636
9659
  const At = A.getRelativeToSurfaceXY();
9637
- A.moveTo(new C.Coordinate(At.x, U)), i.workspace.cleanUp(), uo();
9660
+ A.moveTo(new C.Coordinate(At.x, U)), i.workspace.cleanUp(), ro();
9638
9661
  }, h = async (p) => {
9639
9662
  if (!i.workspace) {
9640
9663
  console.assert(!1);
9641
9664
  return;
9642
9665
  }
9643
9666
  const m = i.workspace.getBlockById(p);
9644
- xn.setSelected(m), un(p), o.value = !1;
9667
+ Vn.setSelected(m), un(p), o.value = !1;
9645
9668
  };
9646
9669
  return (p, m) => a.value.length > 0 ? (S(), st(R(Mo), {
9647
9670
  key: 0,
@@ -9655,7 +9678,7 @@ const Ma = /* @__PURE__ */ ct({
9655
9678
  onStart: l
9656
9679
  }, {
9657
9680
  default: at(() => [
9658
- (S(!0), Z($n, null, ti(a.value, (A) => (S(), st(Fa, {
9681
+ (S(!0), Z(Kn, null, ti(a.value, (A) => (S(), st(Fa, {
9659
9682
  id: A.id,
9660
9683
  key: A.id,
9661
9684
  desc: A.desc,
@@ -9694,7 +9717,7 @@ const Ma = /* @__PURE__ */ ct({
9694
9717
  return;
9695
9718
  }
9696
9719
  const l = u.getBlockById(c);
9697
- xn.setSelected(l), un(c), n.value = !1;
9720
+ Vn.setSelected(l), un(c), n.value = !1;
9698
9721
  };
9699
9722
  return (c, u) => (S(), Z("div", {
9700
9723
  onClick: u[0] || (u[0] = (l) => a(""))
@@ -9707,7 +9730,7 @@ const Ma = /* @__PURE__ */ ct({
9707
9730
  lock: { type: Boolean }
9708
9731
  },
9709
9732
  setup(t, { expose: e }) {
9710
- const { t: n } = Xt(), o = ii(), { sysBarAvail: i } = Fn(), { backgroundColor1: a } = jt(), c = F(() => {
9733
+ const { t: n } = Xt(), o = ii(), { sysBarAvail: i } = Yn(), { backgroundColor1: a } = jt(), c = F(() => {
9711
9734
  let m = "100%";
9712
9735
  return o.mdAndUp.value && (m = "400px"), {
9713
9736
  background: a.value,
@@ -9731,7 +9754,7 @@ const Ma = /* @__PURE__ */ ct({
9731
9754
  t.type === "list" ? d.value?.update() : t.type === "tree" && h.value?.update();
9732
9755
  } }), (m, A) => {
9733
9756
  const P = D("v-sheet"), U = D("v-btn"), At = D("v-spacer"), nt = D("v-dialog"), Ct = D("v-tooltip");
9734
- return S(), Z($n, null, [
9757
+ return S(), Z(Kn, null, [
9735
9758
  L(nt, {
9736
9759
  modelValue: R(_),
9737
9760
  "onUpdate:modelValue": A[5] || (A[5] = (G) => ne(_) ? _.value = G : null),
@@ -9740,7 +9763,7 @@ const Ma = /* @__PURE__ */ ct({
9740
9763
  "no-click-animation": "",
9741
9764
  persistent: "",
9742
9765
  transition: "scroll-x-reverse-transition",
9743
- onKeydown: A[6] || (A[6] = Hn(Ft((G) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9766
+ onKeydown: A[6] || (A[6] = $n(Ft((G) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9744
9767
  }, {
9745
9768
  default: at(() => [
9746
9769
  w("div", {
@@ -9822,14 +9845,14 @@ function V(t) {
9822
9845
  const e = x.createElement("label");
9823
9846
  return e.setAttribute("text", t), e;
9824
9847
  }
9825
- function y(t, e) {
9848
+ function v(t, e) {
9826
9849
  const n = x.createElement("block");
9827
9850
  if (n.setAttribute("type", t), e)
9828
9851
  for (const o of e)
9829
9852
  n.appendChild(o);
9830
9853
  return n;
9831
9854
  }
9832
- function _o(t) {
9855
+ function lo(t) {
9833
9856
  const e = x.createElement("mutation");
9834
9857
  for (const { key: n, value: o } of t)
9835
9858
  e.setAttribute(n, o);
@@ -9891,11 +9914,11 @@ function Qa() {
9891
9914
  }
9892
9915
  function za() {
9893
9916
  const t = [];
9894
- return t.push(V(f("LABEL_EVENT"))), j("onEvent") && t.push(y("on_app_event_v1")), Ja() && t.push(y("trigger_app_event_v1")), t.push(
9895
- y("app_bind_v1", [_o([{ key: "items", value: "2" }])])
9896
- ), t.push(y("watch_effect_v1")), (j("getProperty") || j("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), j("getProperty") && t.push(y("get_app_property_v1")), j("setProperty") && t.push(y("set_app_property_v1")), qa() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (j("callMethod") || Pn()) && t.push(V(f("LABEL_METHOD"))), j("callMethod") && t.push(y("call_app_method_v1")), Pn() && (t.push(y("impl_app_method_v1")), Qa() && t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
9917
+ return t.push(V(f("LABEL_EVENT"))), j("onEvent") && t.push(v("on_app_event_v1")), Ja() && t.push(v("trigger_app_event_v1")), t.push(
9918
+ v("app_bind_v1", [lo([{ key: "items", value: "2" }])])
9919
+ ), t.push(v("watch_effect_v1")), (j("getProperty") || j("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), j("getProperty") && t.push(v("get_app_property_v1")), j("setProperty") && t.push(v("set_app_property_v1")), qa() && (t.push(V(f("LABEL_STATE"))), t.push(v("get_app_state_v1")), t.push(v("set_app_state_v1"))), (j("callMethod") || Pn()) && t.push(V(f("LABEL_METHOD"))), j("callMethod") && t.push(v("call_app_method_v1")), Pn() && (t.push(v("impl_app_method_v1")), Qa() && t.push(v("set_app_method_output_v1")), t.push(v("procedure_return_v1"))), t;
9897
9920
  }
9898
- const po = { name: "APP_COMP_CATEGORY", callback: za };
9921
+ const _o = { name: "APP_COMP_CATEGORY", callback: za };
9899
9922
  function Za() {
9900
9923
  const t = [];
9901
9924
  return t.push(V(f("LABEL_FUNC"))), t.push(V(f("LABEL_FLOW"))), t;
@@ -9903,7 +9926,7 @@ function Za() {
9903
9926
  const pe = { name: "APP_COMPUTE_CATEGORY", callback: Za };
9904
9927
  function tc() {
9905
9928
  const t = [];
9906
- return t.push(y("app_debug_trace_v1", [bt("OBJECT")])), t.push(y("popup_message_v1", [bt("TEXT")])), t.push(y("open_confirm_dlg_v1")), t.push(y("open_prompt_dlg_v1")), t;
9929
+ return t.push(v("app_debug_trace_v1", [bt("OBJECT")])), t.push(v("popup_message_v1", [bt("TEXT")])), t.push(v("open_confirm_dlg_v1")), t.push(v("open_prompt_dlg_v1")), t;
9907
9930
  }
9908
9931
  const de = { name: "APP_MESSAGE_CATEGORY", callback: tc };
9909
9932
  function ec() {
@@ -9914,7 +9937,7 @@ function ec() {
9914
9937
  }
9915
9938
  function nc() {
9916
9939
  const t = [];
9917
- return t.push(y("app_env_is_v1")), ec() && t.push(y("navigate_to_v1")), t;
9940
+ return t.push(v("app_env_is_v1")), ec() && t.push(v("navigate_to_v1")), t;
9918
9941
  }
9919
9942
  const he = { name: "APP_MISC_CATEGORY", callback: nc };
9920
9943
  function oc() {
@@ -9927,14 +9950,14 @@ function ic() {
9927
9950
  }
9928
9951
  function sc() {
9929
9952
  const t = [];
9930
- return t.push(V(f("LABEL_EVENT"))), j("onEvent") && t.push(y("on_app_event_v1")), t.push(
9931
- y("app_bind_v1", [_o([{ key: "items", value: "2" }])])
9932
- ), t.push(y("watch_effect_v1")), (j("getProperty") || j("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), j("getProperty") && t.push(y("get_app_property_v1")), j("setProperty") && t.push(y("set_app_property_v1")), oc() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), j("callMethod") && (t.push(V(f("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), ic() && (t.push(V(f("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
9953
+ return t.push(V(f("LABEL_EVENT"))), j("onEvent") && t.push(v("on_app_event_v1")), t.push(
9954
+ v("app_bind_v1", [lo([{ key: "items", value: "2" }])])
9955
+ ), t.push(v("watch_effect_v1")), (j("getProperty") || j("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), j("getProperty") && t.push(v("get_app_property_v1")), j("setProperty") && t.push(v("set_app_property_v1")), oc() && (t.push(V(f("LABEL_STATE"))), t.push(v("get_app_state_v1")), t.push(v("set_app_state_v1"))), j("callMethod") && (t.push(V(f("LABEL_METHOD"))), t.push(v("call_app_method_v1"))), ic() && (t.push(V(f("LABEL_ARGUMENT"))), t.push(v("get_page_argument_v1"))), t;
9933
9956
  }
9934
- const ho = { name: "APP_PAGE_CATEGORY", callback: sc };
9957
+ const po = { name: "APP_PAGE_CATEGORY", callback: sc };
9935
9958
  function ac() {
9936
9959
  const t = [];
9937
- return t.push(V(f("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
9960
+ return t.push(V(f("LABEL_RESOURCE"))), t.push(v("upload_resource_v1")), t;
9938
9961
  }
9939
9962
  const fe = { name: "APP_RESOURCE_CATEGORY", callback: ac }, xt = C.xml;
9940
9963
  function cc() {
@@ -10007,15 +10030,15 @@ const _t = {
10007
10030
  function uc() {
10008
10031
  const t = [];
10009
10032
  if (et().length > 0)
10010
- t.push(V(f("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
10011
- y("interrupt_transaction_v1", [bt("VALUE")])
10012
- ), t.push(V(f("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [bt("VALUE")])), t.push(V(f("LABEL_QUERY_EXTRA"))), t.push(
10013
- y("query_extra_limit_v1", [
10033
+ t.push(V(f("LABEL_OPERATION"))), t.push(v("add_data_v1")), t.push(v("delete_data_v1")), t.push(v("update_data_v1")), t.push(v("query_data_v1")), t.push(v("transaction_v1")), t.push(
10034
+ v("interrupt_transaction_v1", [bt("VALUE")])
10035
+ ), t.push(V(f("LABEL_CONDITION"))), t.push(v("cond_logic_v1")), t.push(v("cond_atomic_v1", [bt("VALUE")])), t.push(V(f("LABEL_QUERY_EXTRA"))), t.push(
10036
+ v("query_extra_limit_v1", [
10014
10037
  bn("OFFSET", 0),
10015
10038
  bn("LIMIT", 1)
10016
10039
  ])
10017
10040
  ), t.push(
10018
- y("query_extra_sortby_v1", [
10041
+ v("query_extra_sortby_v1", [
10019
10042
  bt("COLUMN"),
10020
10043
  Xa("DESC")
10021
10044
  ])
@@ -10032,7 +10055,7 @@ function lc() {
10032
10055
  }
10033
10056
  function _c() {
10034
10057
  const t = [];
10035
- return g.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), lc() && console.assert(!0), t;
10058
+ return g.compute.activeObject.type === "flow" && t.push(v("on_flow_state_event_v1")), lc() && console.assert(!0), t;
10036
10059
  }
10037
10060
  const Te = { name: "COMPUTE_FLOW_CATEGORY", callback: _c };
10038
10061
  function pc() {
@@ -10040,13 +10063,13 @@ function pc() {
10040
10063
  }
10041
10064
  function dc() {
10042
10065
  const t = [];
10043
- return g.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), g.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), pc() && t.push(y("call_func_internal_v1")), t;
10066
+ return g.compute.activeObject.type === "func" && (t.push(v("func_entry_v1")), g.compute.activeFunc.outputs.length > 0 && t.push(v("set_func_output_v1")), t.push(v("procedure_return_v1"))), pc() && t.push(v("call_func_internal_v1")), t;
10044
10067
  }
10045
10068
  const Ee = { name: "COMPUTE_FUNC_CATEGORY", callback: dc };
10046
10069
  function hc() {
10047
10070
  const t = [];
10048
10071
  return t.push(
10049
- y("compute_debug_trace_v1", [bt("OBJECT")])
10072
+ v("compute_debug_trace_v1", [bt("OBJECT")])
10050
10073
  ), t;
10051
10074
  }
10052
10075
  const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
@@ -10728,7 +10751,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10728
10751
  type: "text_reverse_v1"
10729
10752
  }
10730
10753
  ]
10731
- }, fo = {
10754
+ }, ho = {
10732
10755
  kind: "category",
10733
10756
  name: "%{BKY_CATEGORY_TIME}",
10734
10757
  categorystyle: "time_category",
@@ -10759,7 +10782,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10759
10782
  kind: "category",
10760
10783
  name: "%{BKY_CATEGORY_COMP}",
10761
10784
  categorystyle: "misc_category",
10762
- custom: po.name
10785
+ custom: _o.name
10763
10786
  },
10764
10787
  {
10765
10788
  kind: "category",
@@ -10780,7 +10803,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10780
10803
  Se,
10781
10804
  Re,
10782
10805
  Le,
10783
- fo,
10806
+ ho,
10784
10807
  {
10785
10808
  kind: "category",
10786
10809
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10938,7 +10961,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10938
10961
  kind: "category",
10939
10962
  name: "%{BKY_CATEGORY_PAGE}",
10940
10963
  categorystyle: "misc_category",
10941
- custom: ho.name
10964
+ custom: po.name
10942
10965
  },
10943
10966
  {
10944
10967
  kind: "category",
@@ -10959,7 +10982,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
10959
10982
  Se,
10960
10983
  Re,
10961
10984
  Le,
10962
- fo,
10985
+ ho,
10963
10986
  {
10964
10987
  kind: "category",
10965
10988
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -11014,7 +11037,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Le = {
11014
11037
  function Ac(t, e, n, o) {
11015
11038
  $e.theme = o ? "dark" : "light", $e.toolbox = Ic(e, n);
11016
11039
  const i = Vo(t, $e);
11017
- return i.addChangeListener(xo.shadowBlockConversionChangeListener), Oc(i, e, n), yc(i), i;
11040
+ return i.addChangeListener(xo.shadowBlockConversionChangeListener), Oc(i, e, n), vc(i), i;
11018
11041
  }
11019
11042
  function Ic(t, e) {
11020
11043
  let n;
@@ -11024,10 +11047,10 @@ function Oc(t, e, n) {
11024
11047
  function o({ name: i, callback: a }) {
11025
11048
  t.registerToolboxCategoryCallback(i, () => a(e));
11026
11049
  }
11027
- e === "page" ? n === "v1" && (o(ho), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "comp" ? n === "v1" && (o(po), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "func" ? n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt)) : e === "flow" && n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt));
11050
+ e === "page" ? n === "v1" && (o(po), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "comp" ? n === "v1" && (o(_o), o(de), o(he), o(_t), o(lt), o(fe), o(pe)) : e === "func" ? n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt)) : e === "flow" && n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(_t), o(lt));
11028
11051
  }
11029
- function yc(t) {
11030
- const { router: e } = vt;
11052
+ function vc(t) {
11053
+ const { router: e } = yt;
11031
11054
  t.registerButtonCallback("NO_COMPUTE", () => {
11032
11055
  const n = e.resolve({
11033
11056
  path: "/compute/" + Date.now()
@@ -11044,7 +11067,7 @@ function yc(t) {
11044
11067
  }, 100);
11045
11068
  });
11046
11069
  }
11047
- function vc(t, e) {
11070
+ function yc(t, e) {
11048
11071
  const n = e.newBlock("json_root_v1");
11049
11072
  n.initSvg(), n.render();
11050
11073
  const o = (i, a) => {
@@ -11173,7 +11196,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11173
11196
  width: "56px",
11174
11197
  height: "calc(100% - 49px)",
11175
11198
  zIndex: 999
11176
- })), mo = F(() => ({
11199
+ })), fo = F(() => ({
11177
11200
  position: "fixed",
11178
11201
  top: 0,
11179
11202
  left: 0,
@@ -11184,7 +11207,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11184
11207
  console.assert(!1);
11185
11208
  return;
11186
11209
  }
11187
- Yo(_.value), await In(t.locale), p.workspace = Ac(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(To);
11210
+ Yo(_.value), await In(t.locale), p.workspace = Ac(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(mo);
11188
11211
  const N = document.querySelector(`#${u} .blocklyFlyout`);
11189
11212
  new MutationObserver((Me) => {
11190
11213
  Me.forEach((zt) => {
@@ -11196,9 +11219,9 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11196
11219
  }), Fo(l, () => {
11197
11220
  p.workspace && wo(p.workspace);
11198
11221
  });
11199
- async function To(N) {
11222
+ async function mo(N) {
11200
11223
  if (N.type === I.FINISHED_LOADING) {
11201
- uo(), setTimeout(() => {
11224
+ ro(), setTimeout(() => {
11202
11225
  h.value?.update();
11203
11226
  }, 0), m.value = !1;
11204
11227
  return;
@@ -11213,19 +11236,19 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11213
11236
  }, 0);
11214
11237
  }
11215
11238
  }
11216
- const Eo = (N) => {
11217
- m.value = !0, t.type === "json" ? vc(N, p.workspace) : $.workspaces.load(N, p.workspace);
11218
- }, go = () => t.type === "json" ? Cc(p.workspace) : $.workspaces.save(p.workspace), Ao = () => {
11239
+ const To = (N) => {
11240
+ m.value = !0, t.type === "json" ? yc(N, p.workspace) : $.workspaces.load(N, p.workspace);
11241
+ }, Eo = () => t.type === "json" ? Cc(p.workspace) : $.workspaces.save(p.workspace), go = () => {
11219
11242
  if (t.type === "json")
11220
11243
  console.assert(!1);
11221
11244
  else
11222
11245
  return s.workspaceToCode(p.workspace);
11223
- }, Io = () => Ra(p.workspace), pn = () => {
11246
+ }, Ao = () => Ra(p.workspace), pn = () => {
11224
11247
  p.workspace.setIsReadOnly(i.value), p.workspace.isReadOnly() && (Ut.value = !1);
11225
11248
  }, dn = () => {
11226
11249
  p.workspace.setScale(a.value);
11227
- }, Oo = () => {
11228
- p.workspace.fireChangeListener(new Gn());
11250
+ }, Io = () => {
11251
+ p.workspace.fireChangeListener(new Hn());
11229
11252
  }, hn = () => {
11230
11253
  d.value?.cleanWorkspace();
11231
11254
  }, fn = () => {
@@ -11255,11 +11278,11 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11255
11278
  dn();
11256
11279
  }), e({
11257
11280
  loading: m,
11258
- load: Eo,
11259
- save: go,
11260
- generateCode: Ao,
11261
- generateReactivity: Io,
11262
- fireStateChange: Oo
11281
+ load: To,
11282
+ save: Eo,
11283
+ generateCode: go,
11284
+ generateReactivity: Ao,
11285
+ fireStateChange: Io
11263
11286
  }), (N, It) => {
11264
11287
  const Me = D("v-icon"), zt = D("x-loading");
11265
11288
  return S(), Z("div", kc, [
@@ -11296,7 +11319,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11296
11319
  }, null, 8, ["lock"]),
11297
11320
  L(Ua, {
11298
11321
  modelValue: i.value,
11299
- "onUpdate:modelValue": It[0] || (It[0] = (yo) => i.value = yo)
11322
+ "onUpdate:modelValue": It[0] || (It[0] = (Oo) => i.value = Oo)
11300
11323
  }, null, 8, ["modelValue"]),
11301
11324
  L(ja, {
11302
11325
  ref_key: "navigator",
@@ -11316,7 +11339,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11316
11339
  w("div", {
11317
11340
  ref_key: "parentContainer",
11318
11341
  ref: _,
11319
- style: W(mo.value)
11342
+ style: W(fo.value)
11320
11343
  }, null, 4),
11321
11344
  L(zt, {
11322
11345
  open: m.value,
@@ -11354,7 +11377,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11354
11377
  }), Sc = { class: "text-subtitle-1" }, Bc = { class: "w-100 h-100 overflow-auto" }, bc = /* @__PURE__ */ ct({
11355
11378
  __name: "index",
11356
11379
  setup(t) {
11357
- const { t: e } = Xt(), { sysBarAvail: n } = Fn(), { backgroundColor0: o, backgroundColor2: i } = jt(), a = Lt(""), c = F(() => {
11380
+ const { t: e } = Xt(), { sysBarAvail: n } = Yn(), { backgroundColor0: o, backgroundColor2: i } = jt(), a = Lt(""), c = F(() => {
11358
11381
  let _ = 48;
11359
11382
  return n.value && (_ += 24), {
11360
11383
  position: "relative",
@@ -11372,7 +11395,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11372
11395
  "no-click-animation": "",
11373
11396
  persistent: "",
11374
11397
  transition: "dialog-bottom-transition",
11375
- onKeydown: d[2] || (d[2] = Hn(Ft((P) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11398
+ onKeydown: d[2] || (d[2] = $n(Ft((P) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11376
11399
  }, {
11377
11400
  default: at(() => [
11378
11401
  L(h, {
@@ -11422,7 +11445,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ ct({
11422
11445
  t.component("XBlockly", Nc), t.component("XSourceDlg", bc);
11423
11446
  };
11424
11447
  async function Fc(t) {
11425
- return (await Wn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.h3b844ct.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.mk5971y3.js") }), `./locales/${t}/index.ts`, 4)).default;
11448
+ return (await Gn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.h3b844ct.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.mk5971y3.js") }), `./locales/${t}/index.ts`, 4)).default;
11426
11449
  }
11427
11450
  const wc = { install: Pc };
11428
11451
  export {