x-block-lib 0.8.67 → 0.8.69

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
@@ -1,12 +1,12 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("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-a77ed323]{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(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { E as v, r as kn, M as Mo, s as Uo, a as Vo, X as $n, u as S, B as A, j as s, O as u, F as O, b as Ze, i as k, c as vt, d as xo, e as K, f as g, g as Fo, h as dt, k as X, p as Ht, l as rt, m as Nn, n as V, C as Hn, N as ut, o as wo, P as tn, q as $e, V as Ut, t as Gn, W as Yo, v as Ko, w as $o, S as Ho, x as Go, y as Wo, z as zt, T as Ne, A as Wn, D as jo, G as Xo, H as jn, I as Jo, J as qo, K as Qo, L as zo, Q as Zo, R as ti, U as ei, Y as ni } from "./vendor.m705kiju.js";
3
- import { globalState as I } from "x-state-lib";
4
- import { globalObjects as Ct, openConfirmDlg as oi, openPromptDlg as ii, messageWarning as Xn, useColor as Zt, useSystem as Jn, useViewStack as pn, eventBus as Mt } from "x-essential-lib";
5
- import { pkgs as le, parsePixelStr as si, parsePercentStr as ai, getPropertyTag as kt, unwrapEventId as qn, elements as U, unwrapEventKeyOfElementSlot as ci, unwrapPropertyKeyOfElementSlot as Qn, unwrapEventKeyOfCustomSlot as ri, unwrapPropertyKeyOfCustomSlot as zn, makeEventId as x, makeEventKeyOfCustomSlot as He, makePropertyKeyOfCustomSlot as ae, unwrapSlotId as dn, makeEventKeyOfElementSlot as li, makePropertyKeyOfElementSlot as Zn, toEventName as Se, unwrapMethodId as te, unwrapMethodKeyOfCustomSlot as Sn, unwrapMethodKeyOfElementSlot as ui, makeMethodId as Bt, makeMethodKeyOfElementSlot as _i, makeMethodKeyOfCustomSlot as pi, toMethodName as Le, unwrapPropertyId as di, makePropertyId as mt, toPropertyName as to, isLocaleOfEventKind as hi, isLocaleOfMethodKind as eo, makeTriggerId as bt } from "x-runtime-lib";
6
- import { provide as fi, inject as mi, defineComponent as ft, computed as $, resolveComponent as Y, createBlock as _t, openBlock as M, unref as w, withCtx as pt, createVNode as D, mergeProps as hn, useModel as jt, ref as Vt, resolveDirective as Ti, withDirectives as Ei, createElementBlock as at, normalizeStyle as z, createElementVNode as j, createCommentVNode as Tt, toDisplayString as Xt, withModifiers as Gt, mergeModels as en, Fragment as no, renderList as gi, useId as nn, onUnmounted as Ai, useTemplateRef as Wt, withKeys as oo, isRef as ce, onMounted as Ln, nextTick as Ii, onBeforeUnmount as Bn, watch as Kt, renderSlot as yi } from "vue";
2
+ import { E as v, r as kn, M as Mo, s as Uo, a as Vo, X as $n, u as S, B as I, j as s, O as u, F as O, b as Ze, i as k, c as vt, d as xo, e as K, f as g, g as Fo, h as dt, k as q, p as Wt, l as rt, m as Nn, n as V, C as Hn, N as ut, o as wo, P as tn, q as $e, V as Ut, t as Gn, W as Yo, v as Ko, w as $o, S as Ho, x as Go, y as Wo, z as te, T as Ne, A as Wn, D as jo, G as Xo, H as jn, I as Jo, J as qo, K as Qo, L as zo, Q as Zo, R as ti, U as ei, Y as ni } from "./vendor.m705kiju.js";
3
+ import { globalState as A } from "x-state-lib";
4
+ import { globalObjects as Ct, openConfirmDlg as oi, openPromptDlg as ii, messageWarning as Xn, useColor as ee, useSystem as Jn, useViewStack as pn, eventBus as Mt } from "x-essential-lib";
5
+ import { pkgs as _e, parsePixelStr as si, parsePercentStr as ai, getPropertyTag as kt, unwrapEventId as qn, elements as P, unwrapEventKeyOfElementSlot as ci, unwrapPropertyKeyOfElementSlot as Qn, unwrapEventKeyOfCustomSlot as ri, unwrapPropertyKeyOfCustomSlot as zn, makeEventId as x, makeEventKeyOfCustomSlot as He, makePropertyKeyOfCustomSlot as re, unwrapSlotId as dn, makeEventKeyOfElementSlot as li, makePropertyKeyOfElementSlot as Zn, toEventName as Se, unwrapMethodId as ne, unwrapMethodKeyOfCustomSlot as Sn, unwrapMethodKeyOfElementSlot as ui, makeMethodId as bt, makeMethodKeyOfElementSlot as _i, makeMethodKeyOfCustomSlot as pi, toMethodName as Le, unwrapPropertyId as di, makePropertyId as mt, toPropertyName as to, isLocaleOfEventKind as hi, isLocaleOfMethodKind as eo, makeTriggerId as Bt } from "x-runtime-lib";
6
+ import { provide as fi, inject as mi, defineComponent as ft, computed as $, resolveComponent as Y, createBlock as _t, openBlock as U, unref as w, withCtx as pt, createVNode as M, mergeProps as hn, useModel as Jt, ref as Vt, resolveDirective as Ti, withDirectives as Ei, createElementBlock as at, normalizeStyle as tt, createElementVNode as J, createCommentVNode as Tt, toDisplayString as qt, withModifiers as jt, mergeModels as en, Fragment as no, renderList as gi, useId as nn, onUnmounted as Ai, useTemplateRef as Xt, withKeys as oo, isRef as le, onMounted as Ln, nextTick as Ii, onBeforeUnmount as bn, watch as Ht, renderSlot as yi } from "vue";
7
7
  import { useDisplay as fn } from "vuetify";
8
- import { useI18n as ee } from "vue-i18n";
9
- var P = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(P || {});
8
+ import { useI18n as oe } from "vue-i18n";
9
+ var R = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(R || {});
10
10
  class io extends v.Abstract {
11
11
  isBlank = !0;
12
12
  }
@@ -21,29 +21,29 @@ const so = (t, e, n) => {
21
21
  (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." : ""))));
22
22
  });
23
23
  };
24
- async function bn(t) {
24
+ async function Bn(t) {
25
25
  const e = await so(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.dmlvm3cp.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.dvv4wraq.js") }), `./msg/${t}.ts`, 3);
26
26
  Uo(e.default);
27
27
  }
28
28
  function m(t) {
29
29
  return Mo[t] ?? t;
30
30
  }
31
- const xt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", ue = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
32
- function Be(t) {
31
+ const xt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", pe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
32
+ function be(t) {
33
33
  const e = t.lastIndexOf("V");
34
34
  if (e <= 0 || e >= t.length - 1)
35
35
  return console.assert(!1, `invalid key=${t}`), "";
36
36
  const n = Vo(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
37
37
  return `${n}_${o}`;
38
38
  }
39
- function _e(t) {
39
+ function de(t) {
40
40
  const e = t.lastIndexOf("V");
41
41
  if (e <= 0 || e >= t.length - 1)
42
42
  return console.assert(!1, `invalid key=${t}`), "";
43
43
  const n = t.substring(0, e - 1), o = n[0].toUpperCase(), i = n.substring(1);
44
44
  return `${o}${i}`;
45
45
  }
46
- function B(t) {
46
+ function b(t) {
47
47
  return t.length <= 0 && t.push([m("NO_OPTION"), ""]), t;
48
48
  }
49
49
  function Oi(t) {
@@ -55,22 +55,22 @@ function Oi(t) {
55
55
  function ao(t) {
56
56
  return t.ui === "strInput" ? "string" : t.ui === "numInput" ? "number" : t.ui === "switch" ? "boolean" : "string";
57
57
  }
58
- function be(t, e) {
58
+ function Be(t, e) {
59
59
  return !!(t.startsWith("basic.") || !e.ui || e.readonly);
60
60
  }
61
61
  function L(t) {
62
62
  return t.startsWith("globality_v");
63
63
  }
64
- function tt(t) {
64
+ function W(t) {
65
65
  return t.startsWith("ref_v");
66
66
  }
67
- function et(t) {
67
+ function j(t) {
68
68
  return t.startsWith("multiple_ref_v");
69
69
  }
70
- function pe(t) {
70
+ function Yt(t) {
71
71
  return t.startsWith("slot_v");
72
72
  }
73
- function de(t) {
73
+ function Kt(t) {
74
74
  return t.startsWith("multiple_slot_v");
75
75
  }
76
76
  function st(t) {
@@ -95,7 +95,7 @@ function Nt(t) {
95
95
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
96
96
  }
97
97
  function Ci(t) {
98
- return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? _e(t.items) : t.ui === "multiTypes" ? _e(t.types) : t.ui === "selectComp" ? "Comp" : t.ui === "selectSlot" ? "Slot" : t.ui === "selectAdaptSlot" ? "AdaptSlot" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
98
+ return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? de(t.items) : t.ui === "multiTypes" ? de(t.types) : t.ui === "selectComp" ? "Comp" : t.ui === "selectSlot" ? "Slot" : t.ui === "selectAdaptSlot" ? "AdaptSlot" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
99
99
  }
100
100
  function co(t) {
101
101
  return t === "string" ? "String" : t === "integer" || t === "decimal" ? "Number" : t === "boolean" ? "Boolean" : t === "enum" || t === "dateTime" ? "String" : (console.assert(!1), null);
@@ -108,7 +108,7 @@ function mn(t, e, n, o) {
108
108
  `, a = S.xml.textToDom(i);
109
109
  return $n.domToBlock(a, t);
110
110
  }
111
- function W(t, e) {
111
+ function X(t, e) {
112
112
  try {
113
113
  v.disable(), e.forEach((n) => {
114
114
  const [o, i, a, c] = n, r = t.getInput(o)?.connection;
@@ -151,17 +151,17 @@ function Ni() {
151
151
  return S.xml.textToDom('<shadow type="object_create_v1"></shadow>');
152
152
  }
153
153
  function Si(t) {
154
- const e = `<shadow type="${Be(t)}"></shadow>`;
154
+ const e = `<shadow type="${be(t)}"></shadow>`;
155
155
  return S.xml.textToDom(e);
156
156
  }
157
157
  function Li(t) {
158
- const e = `<shadow type="${Be(t)}"></shadow>`;
158
+ const e = `<shadow type="${be(t)}"></shadow>`;
159
159
  return S.xml.textToDom(e);
160
160
  }
161
- function Bi() {
161
+ function bi() {
162
162
  return S.xml.textToDom('<shadow type="select_comp_v1"></shadow>');
163
163
  }
164
- function bi() {
164
+ function Bi() {
165
165
  return S.xml.textToDom('<shadow type="select_slot_v1"></shadow>');
166
166
  }
167
167
  function Pi(t) {
@@ -174,17 +174,17 @@ function ht(t) {
174
174
  }
175
175
  function Ri(t) {
176
176
  let e = null;
177
- return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = It(t.default) : t.ui === "numInput" ? e = he(t.default) : t.ui === "switch" ? e = fe(t.default) : t.ui === "select" ? e = Si(t.items) : t.ui === "multiTypes" ? e = Li(t.types) : t.ui === "selectComp" ? e = Bi() : t.ui === "selectSlot" ? e = bi() : t.ui === "colorPicker" ? e = Pi(t.default ?? "#ff0000") : console.assert(!1), e;
177
+ return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = It(t.default) : t.ui === "numInput" ? e = he(t.default) : t.ui === "switch" ? e = fe(t.default) : t.ui === "select" ? e = Si(t.items) : t.ui === "multiTypes" ? e = Li(t.types) : t.ui === "selectComp" ? e = bi() : t.ui === "selectSlot" ? e = Bi() : t.ui === "colorPicker" ? e = Pi(t.default ?? "#ff0000") : console.assert(!1), e;
178
178
  }
179
179
  function Di() {
180
- const { activeObject: t, activePage: e } = I.app, n = [];
180
+ const { activeObject: t, activePage: e } = A.app, n = [];
181
181
  if (t.type === "page" && e.meta.arguments)
182
182
  for (const { id: o, name: i, type: a } of e.meta.arguments)
183
183
  n.push({ key: o, name: i, type: a });
184
184
  return n;
185
185
  }
186
186
  function Rn(t) {
187
- const { activeObject: e, activePage: n } = I.app;
187
+ const { activeObject: e, activePage: n } = A.app;
188
188
  if (e.type === "page") {
189
189
  const o = n.meta.arguments?.find((i) => i.id === t);
190
190
  if (o)
@@ -199,7 +199,7 @@ function Mi() {
199
199
  const t = [];
200
200
  return Di().forEach(({ key: n, name: o }) => {
201
201
  t.push([o, n]);
202
- }), B(t);
202
+ }), b(t);
203
203
  }
204
204
  const Ui = {
205
205
  init: function() {
@@ -226,7 +226,7 @@ const Ui = {
226
226
  return Mi();
227
227
  },
228
228
  onchange: function(t) {
229
- if (t.type === P.STATE_CHANGE)
229
+ if (t.type === R.STATE_CHANGE)
230
230
  this.checkWarning_();
231
231
  else if (t.type === v.BLOCK_CHANGE) {
232
232
  const e = t;
@@ -259,14 +259,14 @@ const Ui = {
259
259
  this.setWarningText(null);
260
260
  }
261
261
  };
262
- A.get_page_argument_v1 = Ui;
262
+ I.get_page_argument_v1 = Ui;
263
263
  s.forBlock.get_page_argument_v1 = function(t) {
264
264
  const e = t;
265
265
  return [`__getPageArgumentV1__(${s.quote_(e.argument.key)})`, u.FUNCTION_CALL];
266
266
  };
267
267
  const Vi = (t, e) => {
268
- const n = Be(t), o = _e(t);
269
- A[n] = {
268
+ const n = be(t), o = de(t);
269
+ I[n] = {
270
270
  init: function() {
271
271
  this.appendDummyInput().appendField(
272
272
  new O(() => this.genOpts_()),
@@ -277,21 +277,21 @@ const Vi = (t, e) => {
277
277
  const { i18n: i } = Ct, a = [];
278
278
  for (const { title: c, value: r } of e)
279
279
  a.push([i.global.t(c), r]);
280
- return B(a);
280
+ return b(a);
281
281
  }
282
282
  }, s.forBlock[n] = function(i) {
283
283
  const a = s.quote_, c = i.getFieldValue("ITEM");
284
284
  return [a(c), u.ATOMIC];
285
285
  };
286
286
  };
287
- for (const t in le) {
288
- const e = le[t];
287
+ for (const t in _e) {
288
+ const e = _e[t];
289
289
  for (const n in e.items)
290
290
  Vi(n, e.items[n]);
291
291
  }
292
292
  const xi = (t, e) => {
293
- const n = Be(t), o = _e(t);
294
- A[n] = {
293
+ const n = be(t), o = de(t);
294
+ I[n] = {
295
295
  init: function() {
296
296
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
297
297
  new O(() => this.genOpts_()),
@@ -310,10 +310,10 @@ const xi = (t, e) => {
310
310
  const { i18n: i } = Ct, a = [];
311
311
  for (const { title: c, value: r } of e)
312
312
  a.push([i.global.t(c), r]);
313
- return B(a);
313
+ return b(a);
314
314
  },
315
315
  onchange: function(i) {
316
- if (i.type === P.STATE_CHANGE)
316
+ if (i.type === R.STATE_CHANGE)
317
317
  this.checkWarning_();
318
318
  else if (i.type === v.BLOCK_CHANGE) {
319
319
  const a = i;
@@ -379,8 +379,8 @@ const xi = (t, e) => {
379
379
  return [a(i.value), u.ATOMIC];
380
380
  };
381
381
  };
382
- for (const t in le) {
383
- const e = le[t];
382
+ for (const t in _e) {
383
+ const e = _e[t];
384
384
  for (const n in e.types)
385
385
  xi(n, e.types[n]);
386
386
  }
@@ -391,13 +391,13 @@ const Fi = S.xml, wi = {
391
391
  ), this.appendStatementInput("STACK"), this.setStyle("event_blocks"), this.contextMenu = !1;
392
392
  }
393
393
  };
394
- A.app_bind_container_v1 = wi;
394
+ I.app_bind_container_v1 = wi;
395
395
  const Yi = {
396
396
  init: function() {
397
397
  this.appendDummyInput().appendField("%{BKY_APP_V1_APP_BIND_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("event_blocks"), this.contextMenu = !1;
398
398
  }
399
399
  };
400
- A.app_bind_item_v1 = Yi;
400
+ I.app_bind_item_v1 = Yi;
401
401
  const Ki = {
402
402
  init: function() {
403
403
  this.itemCount_ = 0, this.setMutator(
@@ -516,18 +516,18 @@ const Ki = {
516
516
  this.setWarningText(null);
517
517
  }
518
518
  };
519
- A.app_bind_v1 = Ki;
519
+ I.app_bind_v1 = Ki;
520
520
  s.forBlock.app_bind_v1 = function() {
521
521
  return "";
522
522
  };
523
523
  function ro() {
524
- const t = [], { appList: e } = I.app;
524
+ const t = [], { appList: e } = A.app;
525
525
  for (const { id: n, name: o } of e)
526
526
  t.push({ id: n, name: o });
527
527
  return t;
528
528
  }
529
529
  function Dn(t) {
530
- const { appList: e } = I.app, n = e.find((o) => o.id === t);
530
+ const { appList: e } = A.app, n = e.find((o) => o.id === t);
531
531
  if (n)
532
532
  return {
533
533
  id: n.id,
@@ -538,16 +538,16 @@ function $i() {
538
538
  const t = [];
539
539
  return ro().forEach(({ id: n, name: o }) => {
540
540
  t.push([o, n]);
541
- }), B(t);
541
+ }), b(t);
542
542
  }
543
543
  function lo() {
544
- const { activeApp: t } = I.app, e = [{ id: "", name: "" }];
544
+ const { activeApp: t } = A.app, e = [{ id: "", name: "" }];
545
545
  for (const { id: n, name: o } of t.comps)
546
546
  e.push({ id: n, name: o });
547
547
  return e;
548
548
  }
549
549
  function Mn(t) {
550
- const { activeApp: e } = I.app;
550
+ const { activeApp: e } = A.app;
551
551
  if (!t)
552
552
  return { id: "", name: "" };
553
553
  const n = e.comps.find((o) => o.id === t);
@@ -562,7 +562,7 @@ function Hi() {
562
562
  return lo().forEach(({ id: o, name: i }) => {
563
563
  let a = i;
564
564
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
565
- }), B(e);
565
+ }), b(e);
566
566
  }
567
567
  function nt(t) {
568
568
  if (!t)
@@ -579,13 +579,13 @@ function F(t) {
579
579
  ];
580
580
  }
581
581
  function sn(t) {
582
- const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = I.app, c = [], r = kt(n.type, n.subtype);
582
+ const { properties: e } = A.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = A.app, c = [], r = kt(n.type, n.subtype);
583
583
  if (!r)
584
584
  return c;
585
585
  const _ = n.nodes.find((l) => l.id === t);
586
586
  if (!_)
587
587
  return c;
588
- const h = U[_.key];
588
+ const h = P[_.key];
589
589
  if (!h)
590
590
  return console.assert(!1, "invalid element", _.key), c;
591
591
  if (h.events)
@@ -598,13 +598,13 @@ function sn(t) {
598
598
  });
599
599
  if (e[h.key] && e[h.key][r])
600
600
  for (const { keys: l, names: d, raw: p } of e[h.key][r])
601
- be(l, p) || c.push({
601
+ Be(l, p) || c.push({
602
602
  id: x("elementPropertyChangeEvent", t, l),
603
603
  kind: "elementPropertyChangeEvent",
604
604
  names: d,
605
605
  params: F(ao(p))
606
606
  });
607
- if (tt(h.key) && _.comp) {
607
+ if (W(h.key) && _.comp) {
608
608
  const l = a[_.comp];
609
609
  if (l && l.meta.events)
610
610
  for (const { id: d, name: p, params: f } of l.meta.events)
@@ -615,7 +615,7 @@ function sn(t) {
615
615
  params: nt(f)
616
616
  });
617
617
  }
618
- if (tt(h.key) && _.comp) {
618
+ if (W(h.key) && _.comp) {
619
619
  const l = a[_.comp];
620
620
  if (l && l.meta.properties)
621
621
  for (const { id: d, name: p, type: f } of l.meta.properties)
@@ -626,7 +626,7 @@ function sn(t) {
626
626
  params: F(f)
627
627
  });
628
628
  }
629
- if (et(h.key) && _.comp) {
629
+ if (j(h.key) && _.comp) {
630
630
  const l = a[_.comp];
631
631
  if (l && l.meta.events)
632
632
  for (const { id: d, name: p, params: f } of l.meta.events)
@@ -637,7 +637,7 @@ function sn(t) {
637
637
  params: nt(f)
638
638
  });
639
639
  }
640
- if (et(h.key) && _.comp) {
640
+ if (j(h.key) && _.comp) {
641
641
  const l = a[_.comp];
642
642
  if (l && l.meta.properties)
643
643
  for (const { id: d, name: p, type: f } of l.meta.properties)
@@ -648,7 +648,7 @@ function sn(t) {
648
648
  params: F(f)
649
649
  });
650
650
  }
651
- if (pe(h.key) && n.type === "comp" && i.meta.slots) {
651
+ if (Yt(h.key) && n.type === "comp" && i.meta.slots) {
652
652
  for (const l of i.meta.slots)
653
653
  if (l.events)
654
654
  for (const d of l.events)
@@ -663,7 +663,7 @@ function sn(t) {
663
663
  params: nt(d.params)
664
664
  });
665
665
  }
666
- if (pe(h.key) && _.slot && n.type === "comp" && i.meta.slots) {
666
+ if (Yt(h.key) && _.slot && n.type === "comp" && i.meta.slots) {
667
667
  const l = i.meta.slots.find((d) => d.id === _.slot);
668
668
  if (l && l.properties)
669
669
  for (const d of l.properties)
@@ -671,14 +671,14 @@ function sn(t) {
671
671
  id: x(
672
672
  "slotPropertyChangeEvent",
673
673
  t,
674
- ae("", l.id, d.id)
674
+ re("", l.id, d.id)
675
675
  ),
676
676
  kind: "slotPropertyChangeEvent",
677
677
  names: [l.name, d.name],
678
678
  params: F(d.type)
679
679
  });
680
680
  }
681
- if (de(h.key) && n.type === "comp" && i.meta.slots) {
681
+ if (Kt(h.key) && n.type === "comp" && i.meta.slots) {
682
682
  for (const l of i.meta.slots)
683
683
  if (l.events)
684
684
  for (const d of l.events)
@@ -693,7 +693,7 @@ function sn(t) {
693
693
  params: nt(d.params)
694
694
  });
695
695
  }
696
- if (de(h.key) && _.slot && n.type === "comp" && i.meta.slots) {
696
+ if (Kt(h.key) && _.slot && n.type === "comp" && i.meta.slots) {
697
697
  const l = i.meta.slots.find((d) => d.id === _.slot);
698
698
  if (l && l.properties)
699
699
  for (const d of l.properties)
@@ -701,7 +701,7 @@ function sn(t) {
701
701
  id: x(
702
702
  "multipleSlotPropertyChangeEvent",
703
703
  t,
704
- ae("", l.id, d.id)
704
+ re("", l.id, d.id)
705
705
  ),
706
706
  kind: "multipleSlotPropertyChangeEvent",
707
707
  names: [l.name, d.name],
@@ -728,7 +728,7 @@ function sn(t) {
728
728
  const l = dn(_.adaptSlot);
729
729
  if (l) {
730
730
  if (l.kind === "elementSlot") {
731
- const d = U[l.mainKey];
731
+ const d = P[l.mainKey];
732
732
  if (d && d.slots) {
733
733
  const p = d.slots.find(
734
734
  (f) => f.key === l.slotKey
@@ -790,7 +790,7 @@ function sn(t) {
790
790
  id: x(
791
791
  "adaptSlotCustomPropertyChangeEvent",
792
792
  t,
793
- ae(
793
+ re(
794
794
  l.mainKey,
795
795
  p.id,
796
796
  f.id
@@ -828,13 +828,13 @@ function sn(t) {
828
828
  function We(t) {
829
829
  if (!t)
830
830
  return;
831
- const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = I.app, c = kt(n.type, n.subtype);
831
+ const { properties: e } = A.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = A.app, c = kt(n.type, n.subtype);
832
832
  if (!c)
833
833
  return;
834
834
  const { kind: r, nodeId: _, eventKey: h } = qn(t), l = n.nodes.find((p) => p.id === _);
835
835
  if (!l)
836
836
  return;
837
- const d = U[l.key];
837
+ const d = P[l.key];
838
838
  if (!d) {
839
839
  console.assert(!1, "invalid element", l.key);
840
840
  return;
@@ -862,7 +862,7 @@ function We(t) {
862
862
  };
863
863
  }
864
864
  } else if (r === "refEvent") {
865
- if (tt(d.key) && l.comp) {
865
+ if (W(d.key) && l.comp) {
866
866
  const p = a[l.comp];
867
867
  if (p) {
868
868
  const f = p.meta.events?.find((T) => T.id === h);
@@ -876,7 +876,7 @@ function We(t) {
876
876
  }
877
877
  }
878
878
  } else if (r === "refPropertyChangeEvent") {
879
- if (tt(d.key) && l.comp) {
879
+ if (W(d.key) && l.comp) {
880
880
  const p = a[l.comp];
881
881
  if (p) {
882
882
  const f = p.meta.properties?.find(
@@ -892,7 +892,7 @@ function We(t) {
892
892
  }
893
893
  }
894
894
  } else if (r === "multipleRefEvent") {
895
- if (et(d.key) && l.comp) {
895
+ if (j(d.key) && l.comp) {
896
896
  const p = a[l.comp];
897
897
  if (p) {
898
898
  const f = p.meta.events?.find((T) => T.id === h);
@@ -906,7 +906,7 @@ function We(t) {
906
906
  }
907
907
  }
908
908
  } else if (r === "multipleRefPropertyChangeEvent") {
909
- if (et(d.key) && l.comp) {
909
+ if (j(d.key) && l.comp) {
910
910
  const p = a[l.comp];
911
911
  if (p) {
912
912
  const f = p.meta.properties?.find(
@@ -951,11 +951,11 @@ function We(t) {
951
951
  elementKey: p,
952
952
  slotKey: f,
953
953
  eventKey: T
954
- } = ci(h), E = U[p];
954
+ } = ci(h), E = P[p];
955
955
  if (E && E.slots) {
956
956
  const y = E.slots.find((N) => N.key === f);
957
957
  if (y && y.events) {
958
- const N = y.events.find((R) => R.key === T);
958
+ const N = y.events.find((D) => D.key === T);
959
959
  if (N)
960
960
  return {
961
961
  id: t,
@@ -968,12 +968,12 @@ function We(t) {
968
968
  }
969
969
  } else if (r === "adaptSlotElementPropertyChangeEvent") {
970
970
  if (L(d.key) && n.type === "comp") {
971
- const { elementKey: p, slotKey: f, propertyKey: T } = Qn(h), E = U[p];
971
+ const { elementKey: p, slotKey: f, propertyKey: T } = Qn(h), E = P[p];
972
972
  if (E && E.slots) {
973
973
  const y = E.slots.find((N) => N.key === f);
974
974
  if (y && y.properties) {
975
975
  const N = y.properties.find(
976
- (R) => R.key === T
976
+ (D) => D.key === T
977
977
  );
978
978
  if (N)
979
979
  return {
@@ -991,7 +991,7 @@ function We(t) {
991
991
  if (E && E.meta.slots) {
992
992
  const y = E.meta.slots.find((N) => N.id === f);
993
993
  if (y && y.events) {
994
- const N = y.events.find((R) => R.id === T);
994
+ const N = y.events.find((D) => D.id === T);
995
995
  if (N)
996
996
  return {
997
997
  id: t,
@@ -1007,7 +1007,7 @@ function We(t) {
1007
1007
  if (E && E.meta.slots) {
1008
1008
  const y = E.meta.slots.find((N) => N.id === f);
1009
1009
  if (y && y.properties) {
1010
- const N = y.properties.find((R) => R.id === T);
1010
+ const N = y.properties.find((D) => D.id === T);
1011
1011
  if (N)
1012
1012
  return {
1013
1013
  id: t,
@@ -1048,16 +1048,16 @@ function Gi(t) {
1048
1048
  let o;
1049
1049
  for (const { id: i, kind: a, names: c } of n)
1050
1050
  a !== o && (o && e.push("separator"), o = a), e.push([Se(a, c), i]);
1051
- return B(e);
1051
+ return b(e);
1052
1052
  }
1053
1053
  function an(t) {
1054
- const { activeObject: e, activeComp: n } = I.app, o = [];
1054
+ const { activeObject: e, activeComp: n } = A.app, o = [];
1055
1055
  if (!kt(e.type, e.subtype))
1056
1056
  return o;
1057
1057
  const a = e.nodes.find((r) => r.id === t);
1058
1058
  if (!a)
1059
1059
  return o;
1060
- const c = U[a.key];
1060
+ const c = P[a.key];
1061
1061
  if (!c)
1062
1062
  return console.assert(!1, "invalid element", a.key), o;
1063
1063
  if (L(c.key) && e.type === "comp" && n.meta.events)
@@ -1073,13 +1073,13 @@ function an(t) {
1073
1073
  function je(t) {
1074
1074
  if (!t)
1075
1075
  return;
1076
- const { activeObject: e, activeComp: n } = I.app;
1076
+ const { activeObject: e, activeComp: n } = A.app;
1077
1077
  if (!kt(e.type, e.subtype))
1078
1078
  return;
1079
1079
  const { kind: i, nodeId: a, eventKey: c } = qn(t), r = e.nodes.find((h) => h.id === a);
1080
1080
  if (!r)
1081
1081
  return;
1082
- const _ = U[r.key];
1082
+ const _ = P[r.key];
1083
1083
  if (!_) {
1084
1084
  console.assert(!1, "invalid element", r.key);
1085
1085
  return;
@@ -1100,7 +1100,7 @@ function Wi(t) {
1100
1100
  let o;
1101
1101
  for (const { id: i, kind: a, names: c } of n)
1102
1102
  a !== o && (o && e.push("separator"), o = a), e.push([Se(a, c), i]);
1103
- return B(e);
1103
+ return b(e);
1104
1104
  }
1105
1105
  function ot(t) {
1106
1106
  if (!t)
@@ -1119,39 +1119,39 @@ function lt(t) {
1119
1119
  return e;
1120
1120
  }
1121
1121
  function cn(t) {
1122
- const { activeObject: e, activeComp: n, depends: o } = I.app, i = [], a = e.nodes.find((r) => r.id === t);
1122
+ const { activeObject: e, activeComp: n, depends: o } = A.app, i = [], a = e.nodes.find((r) => r.id === t);
1123
1123
  if (!a)
1124
1124
  return i;
1125
- const c = U[a.key];
1125
+ const c = P[a.key];
1126
1126
  if (!c)
1127
1127
  return console.assert(!1, "inavlid element", a.key), i;
1128
1128
  if (c.methods)
1129
1129
  for (const { key: r, name: _, inputs: h, outputs: l } of c.methods)
1130
1130
  i.push({
1131
- id: Bt("elementMethod", t, r),
1131
+ id: bt("elementMethod", t, r),
1132
1132
  kind: "elementMethod",
1133
1133
  names: [_],
1134
1134
  inputs: h,
1135
1135
  outputs: l
1136
1136
  });
1137
- if (tt(c.key) && a.comp) {
1137
+ if (W(c.key) && a.comp) {
1138
1138
  const r = o[a.comp];
1139
1139
  if (r && r.meta.methods)
1140
1140
  for (const { id: _, name: h, inputs: l, outputs: d } of r.meta.methods)
1141
1141
  i.push({
1142
- id: Bt("refMethod", t, _),
1142
+ id: bt("refMethod", t, _),
1143
1143
  kind: "refMethod",
1144
1144
  names: [h],
1145
1145
  inputs: ot(l),
1146
1146
  outputs: lt(d)
1147
1147
  });
1148
1148
  }
1149
- if (et(c.key) && a.comp) {
1149
+ if (j(c.key) && a.comp) {
1150
1150
  const r = o[a.comp];
1151
1151
  if (r && r.meta.methods)
1152
1152
  for (const { id: _, name: h, inputs: l, outputs: d } of r.meta.methods)
1153
1153
  i.push({
1154
- id: Bt("multipleRefMethod", t, _),
1154
+ id: bt("multipleRefMethod", t, _),
1155
1155
  kind: "multipleRefMethod",
1156
1156
  names: [h],
1157
1157
  inputs: ot(l),
@@ -1161,7 +1161,7 @@ function cn(t) {
1161
1161
  if (L(c.key) && e.type === "comp" && n.meta.methods)
1162
1162
  for (const { id: r, name: _, inputs: h, outputs: l } of n.meta.methods)
1163
1163
  i.push({
1164
- id: Bt("customMethod", t, r),
1164
+ id: bt("customMethod", t, r),
1165
1165
  kind: "customMethod",
1166
1166
  names: [_],
1167
1167
  inputs: ot(h),
@@ -1171,7 +1171,7 @@ function cn(t) {
1171
1171
  const r = dn(a.adaptSlot);
1172
1172
  if (r) {
1173
1173
  if (r.kind === "elementSlot") {
1174
- const _ = U[r.mainKey];
1174
+ const _ = P[r.mainKey];
1175
1175
  if (_ && _.slots) {
1176
1176
  const h = _.slots.find(
1177
1177
  (l) => l.key === r.slotKey
@@ -1179,7 +1179,7 @@ function cn(t) {
1179
1179
  if (h && h.methods)
1180
1180
  for (const l of h.methods)
1181
1181
  i.push({
1182
- id: Bt(
1182
+ id: bt(
1183
1183
  "adaptSlotElementMethod",
1184
1184
  t,
1185
1185
  _i(_.key, h.key, l.key)
@@ -1199,7 +1199,7 @@ function cn(t) {
1199
1199
  if (h && h.methods)
1200
1200
  for (const l of h.methods)
1201
1201
  i.push({
1202
- id: Bt(
1202
+ id: bt(
1203
1203
  "adaptSlotCustomMethod",
1204
1204
  t,
1205
1205
  pi(
@@ -1222,10 +1222,10 @@ function cn(t) {
1222
1222
  function Xe(t) {
1223
1223
  if (!t)
1224
1224
  return;
1225
- const { activeObject: e, activeComp: n, depends: o } = I.app, { kind: i, nodeId: a, methodKey: c } = te(t), r = e.nodes.find((h) => h.id === a);
1225
+ const { activeObject: e, activeComp: n, depends: o } = A.app, { kind: i, nodeId: a, methodKey: c } = ne(t), r = e.nodes.find((h) => h.id === a);
1226
1226
  if (!r)
1227
1227
  return;
1228
- const _ = U[r.key];
1228
+ const _ = P[r.key];
1229
1229
  if (!_) {
1230
1230
  console.assert(!1, "invalid element", r.key);
1231
1231
  return;
@@ -1241,7 +1241,7 @@ function Xe(t) {
1241
1241
  outputs: h.outputs
1242
1242
  };
1243
1243
  } else if (i === "refMethod") {
1244
- if (tt(_.key) && r.comp) {
1244
+ if (W(_.key) && r.comp) {
1245
1245
  const h = o[r.comp];
1246
1246
  if (h) {
1247
1247
  const l = h.meta.methods?.find(
@@ -1258,7 +1258,7 @@ function Xe(t) {
1258
1258
  }
1259
1259
  }
1260
1260
  } else if (i === "multipleRefMethod") {
1261
- if (et(_.key) && r.comp) {
1261
+ if (j(_.key) && r.comp) {
1262
1262
  const h = o[r.comp];
1263
1263
  if (h) {
1264
1264
  const l = h.meta.methods?.find(
@@ -1309,7 +1309,7 @@ function Xe(t) {
1309
1309
  elementKey: h,
1310
1310
  slotKey: l,
1311
1311
  methodKey: d
1312
- } = ui(c), p = U[h];
1312
+ } = ui(c), p = P[h];
1313
1313
  if (p && p.slots) {
1314
1314
  const f = p.slots.find((T) => T.key === l);
1315
1315
  if (f && f.methods) {
@@ -1348,19 +1348,19 @@ function ji(t) {
1348
1348
  let o;
1349
1349
  for (const { id: i, kind: a, names: c } of n)
1350
1350
  a !== o && (o && e.push("separator"), o = a), e.push([Le(a, c), i]);
1351
- return B(e);
1351
+ return b(e);
1352
1352
  }
1353
- function Jt(t) {
1354
- const { activeObject: e, activeComp: n } = I.app, o = [], i = e.nodes.find((c) => c.id === t);
1353
+ function Qt(t) {
1354
+ const { activeObject: e, activeComp: n } = A.app, o = [], i = e.nodes.find((c) => c.id === t);
1355
1355
  if (!i)
1356
1356
  return o;
1357
- const a = U[i.key];
1357
+ const a = P[i.key];
1358
1358
  if (!a)
1359
1359
  return console.assert(!1, "inavlid element", i.key), o;
1360
1360
  if (L(a.key) && e.type === "comp" && n.meta.methods)
1361
1361
  for (const { id: c, name: r, inputs: _, outputs: h } of n.meta.methods)
1362
1362
  o.push({
1363
- id: Bt("customMethod", t, c),
1363
+ id: bt("customMethod", t, c),
1364
1364
  kind: "customMethod",
1365
1365
  names: [r],
1366
1366
  inputs: ot(_),
@@ -1371,27 +1371,34 @@ function Jt(t) {
1371
1371
  function yt(t) {
1372
1372
  if (!t)
1373
1373
  return;
1374
- const { activeObject: e, activeComp: n } = I.app, { kind: o, nodeId: i, methodKey: a } = te(t);
1375
- if (o === "customMethod" && L(i) && e.type === "comp" && n.meta.methods) {
1376
- const c = n.meta.methods.find(
1377
- (r) => r.id === a
1374
+ const { activeObject: e, activeComp: n } = A.app, { kind: o, nodeId: i, methodKey: a } = ne(t), c = e.nodes.find((_) => _.id === i);
1375
+ if (!c)
1376
+ return;
1377
+ const r = P[c.key];
1378
+ if (!r) {
1379
+ console.assert(!1, "invalid element", c.key);
1380
+ return;
1381
+ }
1382
+ if (o === "customMethod" && L(r.key) && e.type === "comp" && n.meta.methods) {
1383
+ const _ = n.meta.methods.find(
1384
+ (h) => h.id === a
1378
1385
  );
1379
- if (c)
1386
+ if (_)
1380
1387
  return {
1381
1388
  id: t,
1382
1389
  kind: o,
1383
- names: [c.name],
1384
- inputs: ot(c.inputs),
1385
- outputs: lt(c.outputs)
1390
+ names: [_.name],
1391
+ inputs: ot(_.inputs),
1392
+ outputs: lt(_.outputs)
1386
1393
  };
1387
1394
  }
1388
1395
  }
1389
1396
  function uo(t) {
1390
- const e = [], n = Jt(t);
1397
+ const e = [], n = Qt(t);
1391
1398
  let o;
1392
1399
  for (const { id: i, kind: a, names: c } of n)
1393
1400
  a !== o && (o && e.push("separator"), o = a), e.push([Le(a, c), i]);
1394
- return B(e);
1401
+ return b(e);
1395
1402
  }
1396
1403
  function rn(t) {
1397
1404
  const e = yt(t);
@@ -1407,18 +1414,18 @@ function Xi(t) {
1407
1414
  if (n)
1408
1415
  for (const { name: o, key: i } of n)
1409
1416
  e.push([o, i]);
1410
- return B(e);
1417
+ return b(e);
1411
1418
  }
1412
1419
  function Ji(t, e, n) {
1413
- const { properties: o } = I.runtime, { activeObject: i, activePage: a, activeComp: c, depends: r } = I.app;
1420
+ const { properties: o } = A.runtime, { activeObject: i, activePage: a, activeComp: c, depends: r } = A.app;
1414
1421
  if (t.events && t.events.length > 0)
1415
1422
  return !1;
1416
- if (tt(t.key) && n) {
1423
+ if (W(t.key) && n) {
1417
1424
  const _ = r[n];
1418
1425
  if (_ && _.meta.events && _.meta.events.length > 0)
1419
1426
  return !1;
1420
1427
  }
1421
- if (et(t.key) && n) {
1428
+ if (j(t.key) && n) {
1422
1429
  const _ = r[n];
1423
1430
  if (_ && _.meta.events && _.meta.events.length > 0)
1424
1431
  return !1;
@@ -1427,15 +1434,15 @@ function Ji(t, e, n) {
1427
1434
  return !1;
1428
1435
  if (o[t.key] && o[t.key][e]) {
1429
1436
  for (const { keys: _, raw: h } of o[t.key][e])
1430
- if (!be(_, h))
1437
+ if (!Be(_, h))
1431
1438
  return !1;
1432
1439
  }
1433
- if (tt(t.key) && n) {
1440
+ if (W(t.key) && n) {
1434
1441
  const _ = r[n];
1435
1442
  if (_ && _.meta.properties && _.meta.properties.length > 0)
1436
1443
  return !1;
1437
1444
  }
1438
- if (et(t.key) && n) {
1445
+ if (j(t.key) && n) {
1439
1446
  const _ = r[n];
1440
1447
  if (_ && _.meta.properties && _.meta.properties.length > 0)
1441
1448
  return !1;
@@ -1451,51 +1458,59 @@ function Ji(t, e, n) {
1451
1458
  }
1452
1459
  return !0;
1453
1460
  }
1454
- function qi(t, e) {
1455
- const { activeObject: n, activeComp: o, depends: i } = I.app;
1461
+ function qi(t) {
1462
+ const { activeObject: e, activeComp: n } = A.app;
1463
+ return !(L(t.key) && e.type === "comp" && n.meta.events && n.meta.events.length > 0);
1464
+ }
1465
+ function Qi(t, e) {
1466
+ const { activeObject: n, activeComp: o, depends: i } = A.app;
1456
1467
  if (t.methods && t.methods.length > 0)
1457
1468
  return !1;
1458
- if (tt(t.key) && e) {
1469
+ if (W(t.key) && e) {
1459
1470
  const a = i[e];
1460
1471
  if (a && a.meta.methods && a.meta.methods.length > 0)
1461
1472
  return !1;
1462
1473
  }
1463
- if (et(t.key) && e) {
1474
+ if (j(t.key) && e) {
1464
1475
  const a = i[e];
1465
1476
  if (a && a.meta.methods && a.meta.methods.length > 0)
1466
1477
  return !1;
1467
1478
  }
1468
1479
  return L(t.key) && n.type === "comp" && o.meta.methods && o.meta.methods.length > 0 ? !1 : (L(t.key) && n.type, !0);
1469
1480
  }
1470
- function Qi(t, e, n) {
1471
- const { properties: o } = I.runtime, { activeObject: i, activeComp: a, depends: c } = I.app;
1481
+ function zi(t) {
1482
+ const { activeObject: e, activeComp: n } = A.app;
1483
+ return !(L(t.key) && e.type === "comp" && n.meta.methods && n.meta.methods.length > 0);
1484
+ }
1485
+ function Zi(t, e, n) {
1486
+ const { properties: o } = A.runtime, { activeObject: i, activeComp: a, depends: c } = A.app;
1472
1487
  if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
1473
1488
  return !1;
1474
- if (tt(t.key) && n) {
1489
+ if (W(t.key) && n) {
1475
1490
  const r = c[n];
1476
1491
  if (r && r.meta.properties && r.meta.properties.length > 0)
1477
1492
  return !1;
1478
1493
  }
1479
- if (et(t.key) && n) {
1494
+ if (j(t.key) && n) {
1480
1495
  const r = c[n];
1481
1496
  if (r && r.meta.properties && r.meta.properties.length > 0)
1482
1497
  return !1;
1483
1498
  }
1484
1499
  return !(L(t.key) && i.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
1485
1500
  }
1486
- function zi(t, e, n) {
1487
- const { properties: o } = I.runtime, { activeObject: i, activeComp: a, depends: c } = I.app;
1501
+ function ts(t, e, n) {
1502
+ const { properties: o } = A.runtime, { activeObject: i, activeComp: a, depends: c } = A.app;
1488
1503
  if (o[t.key] && o[t.key][e]) {
1489
1504
  for (const { keys: r, raw: _ } of o[t.key][e])
1490
- if (!be(r, _))
1505
+ if (!Be(r, _))
1491
1506
  return !1;
1492
1507
  }
1493
- if (tt(t.key) && n) {
1508
+ if (W(t.key) && n) {
1494
1509
  const r = c[n];
1495
1510
  if (r && r.meta.properties && r.meta.properties.length > 0)
1496
1511
  return !1;
1497
1512
  }
1498
- if (et(t.key) && n) {
1513
+ if (j(t.key) && n) {
1499
1514
  const r = c[n];
1500
1515
  if (r && r.meta.properties && r.meta.properties.length > 0)
1501
1516
  return !1;
@@ -1503,14 +1518,14 @@ function zi(t, e, n) {
1503
1518
  return !(L(t.key) && i.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
1504
1519
  }
1505
1520
  function _o(t, e, n, o) {
1506
- return t ? t === "onEvent" ? Ji(e, n, o) : t === "callMethod" ? qi(e, o) : t === "getProperty" ? Qi(e, n, o) : t === "setProperty" ? zi(e, n, o) : !1 : !1;
1521
+ return t ? t === "onEvent" ? Ji(e, n, o) : t === "triggerEvent" ? qi(e) : t === "callMethod" ? Qi(e, o) : t === "implementMethod" ? zi(e) : t === "getProperty" ? Zi(e, n, o) : t === "setProperty" ? ts(e, n, o) : !1 : !1;
1507
1522
  }
1508
- function Z(t) {
1509
- const { activeObject: e } = I.app, n = kt(e.type, e.subtype);
1523
+ function et(t) {
1524
+ const { activeObject: e } = A.app, n = kt(e.type, e.subtype);
1510
1525
  if (!n)
1511
1526
  return !1;
1512
1527
  for (const o of e.nodes) {
1513
- const i = U[o.key];
1528
+ const i = P[o.key];
1514
1529
  if (!i) {
1515
1530
  console.assert(!1, "invalid element", o.key);
1516
1531
  continue;
@@ -1521,11 +1536,11 @@ function Z(t) {
1521
1536
  return !1;
1522
1537
  }
1523
1538
  function St(t) {
1524
- const { activeObject: e } = I.app, n = [], o = kt(e.type, e.subtype);
1539
+ const { activeObject: e } = A.app, n = [], o = kt(e.type, e.subtype);
1525
1540
  if (!o)
1526
1541
  return n;
1527
1542
  for (const i of e.nodes) {
1528
- const a = U[i.key];
1543
+ const a = P[i.key];
1529
1544
  if (!a) {
1530
1545
  console.assert(!1, "invalid element", i.key);
1531
1546
  continue;
@@ -1539,11 +1554,11 @@ function St(t) {
1539
1554
  }
1540
1555
  return n;
1541
1556
  }
1542
- function J(t) {
1543
- const { activeObject: e } = I.app, n = e.nodes.find((i) => i.id === t);
1557
+ function Q(t) {
1558
+ const { activeObject: e } = A.app, n = e.nodes.find((i) => i.id === t);
1544
1559
  if (!n)
1545
1560
  return;
1546
- const o = U[n.key];
1561
+ const o = P[n.key];
1547
1562
  if (!o) {
1548
1563
  console.assert(!1, "invalid element", n.key);
1549
1564
  return;
@@ -1561,10 +1576,10 @@ function Rt(t) {
1561
1576
  let r = e.global.t(a);
1562
1577
  c && (r += " / " + c), n.push([r, i]);
1563
1578
  }
1564
- return B(n);
1579
+ return b(n);
1565
1580
  }
1566
1581
  function ln(t) {
1567
- const { appList: e } = I.app, n = [], o = e.find((i) => i.id === t);
1582
+ const { appList: e } = A.app, n = [], o = e.find((i) => i.id === t);
1568
1583
  if (!o)
1569
1584
  return n;
1570
1585
  for (const { id: i, name: a } of o.pages)
@@ -1572,7 +1587,7 @@ function ln(t) {
1572
1587
  return n;
1573
1588
  }
1574
1589
  function qe(t, e) {
1575
- const { appList: n } = I.app, o = n.find((a) => a.id === t);
1590
+ const { appList: n } = A.app, o = n.find((a) => a.id === t);
1576
1591
  if (!o)
1577
1592
  return;
1578
1593
  const i = o.pages.find((a) => a.id === e);
@@ -1582,25 +1597,25 @@ function qe(t, e) {
1582
1597
  name: i.name
1583
1598
  };
1584
1599
  }
1585
- function Zi(t) {
1600
+ function es(t) {
1586
1601
  const e = [];
1587
1602
  return ln(t).forEach(({ id: o, name: i }) => {
1588
1603
  e.push([i, o]);
1589
- }), B(e);
1604
+ }), b(e);
1590
1605
  }
1591
- function qt(t, e) {
1592
- const { properties: n } = I.runtime, { activeObject: o, activeComp: i, depends: a } = I.app, c = [], r = kt(o.type, o.subtype);
1606
+ function zt(t, e) {
1607
+ const { properties: n } = A.runtime, { activeObject: o, activeComp: i, depends: a } = A.app, c = [], r = kt(o.type, o.subtype);
1593
1608
  if (!r)
1594
1609
  return c;
1595
1610
  const _ = o.nodes.find((l) => l.id === t);
1596
1611
  if (!_)
1597
1612
  return c;
1598
- const h = U[_.key];
1613
+ const h = P[_.key];
1599
1614
  if (!h)
1600
1615
  return console.assert(!1, "invalid element", _.key), c;
1601
1616
  if (n[h.key] && n[h.key][r])
1602
1617
  for (const { keys: l, names: d, raw: p } of n[h.key][r])
1603
- e === "write" && be(l, p) || c.push({
1618
+ e === "write" && Be(l, p) || c.push({
1604
1619
  id: mt("elementProperty", t, l),
1605
1620
  kind: "elementProperty",
1606
1621
  names: d,
@@ -1609,7 +1624,7 @@ function qt(t, e) {
1609
1624
  raw: p
1610
1625
  }
1611
1626
  });
1612
- if (tt(h.key) && _.comp) {
1627
+ if (W(h.key) && _.comp) {
1613
1628
  const l = a[_.comp];
1614
1629
  if (l && l.meta.properties)
1615
1630
  for (const { id: d, name: p, type: f } of l.meta.properties)
@@ -1622,7 +1637,7 @@ function qt(t, e) {
1622
1637
  }
1623
1638
  });
1624
1639
  }
1625
- if (et(h.key) && _.comp) {
1640
+ if (j(h.key) && _.comp) {
1626
1641
  const l = a[_.comp];
1627
1642
  if (l && l.meta.properties)
1628
1643
  for (const { id: d, name: p, type: f } of l.meta.properties)
@@ -1635,7 +1650,7 @@ function qt(t, e) {
1635
1650
  }
1636
1651
  });
1637
1652
  }
1638
- if (pe(h.key) && _.slot && o.type === "comp" && i.meta.slots) {
1653
+ if (Yt(h.key) && _.slot && o.type === "comp" && i.meta.slots) {
1639
1654
  const l = i.meta.slots.find((d) => d.id === _.slot);
1640
1655
  if (l && l.properties)
1641
1656
  for (const { id: d, name: p, type: f } of l.properties)
@@ -1648,7 +1663,7 @@ function qt(t, e) {
1648
1663
  }
1649
1664
  });
1650
1665
  }
1651
- if (de(h.key) && _.slot && o.type === "comp" && i.meta.slots) {
1666
+ if (Kt(h.key) && _.slot && o.type === "comp" && i.meta.slots) {
1652
1667
  const l = i.meta.slots.find((d) => d.id === _.slot);
1653
1668
  if (l && l.properties)
1654
1669
  for (const { id: d, name: p, type: f } of l.properties)
@@ -1675,7 +1690,7 @@ function qt(t, e) {
1675
1690
  const l = dn(_.adaptSlot);
1676
1691
  if (l) {
1677
1692
  if (l.kind === "elementSlot") {
1678
- const d = U[l.mainKey];
1693
+ const d = P[l.mainKey];
1679
1694
  if (d && d.slots) {
1680
1695
  const p = d.slots.find(
1681
1696
  (f) => f.key === l.slotKey
@@ -1711,7 +1726,7 @@ function qt(t, e) {
1711
1726
  id: mt(
1712
1727
  "adaptSlotCustomProperty",
1713
1728
  t,
1714
- ae(
1729
+ re(
1715
1730
  l.mainKey,
1716
1731
  p.id,
1717
1732
  f.id
@@ -1732,13 +1747,13 @@ function qt(t, e) {
1732
1747
  function Pt(t) {
1733
1748
  if (!t)
1734
1749
  return;
1735
- const { properties: e } = I.runtime, { activeObject: n, activeComp: o, depends: i } = I.app, a = kt(n.type, n.subtype);
1750
+ const { properties: e } = A.runtime, { activeObject: n, activeComp: o, depends: i } = A.app, a = kt(n.type, n.subtype);
1736
1751
  if (!a)
1737
1752
  return;
1738
1753
  const { kind: c, nodeId: r, propertyKey: _ } = di(t), h = n.nodes.find((d) => d.id === r);
1739
1754
  if (!h)
1740
1755
  return;
1741
- const l = U[h.key];
1756
+ const l = P[h.key];
1742
1757
  if (!l) {
1743
1758
  console.assert(!1, "invalid element", h.key);
1744
1759
  return;
@@ -1760,7 +1775,7 @@ function Pt(t) {
1760
1775
  };
1761
1776
  }
1762
1777
  } else if (c === "refProperty") {
1763
- if (tt(l.key) && h.comp) {
1778
+ if (W(l.key) && h.comp) {
1764
1779
  const d = i[h.comp];
1765
1780
  if (d) {
1766
1781
  const p = d.meta.properties?.find(
@@ -1778,7 +1793,7 @@ function Pt(t) {
1778
1793
  }
1779
1794
  }
1780
1795
  } else if (c === "multipleRefProperty") {
1781
- if (et(l.key) && h.comp) {
1796
+ if (j(l.key) && h.comp) {
1782
1797
  const d = i[h.comp];
1783
1798
  if (d) {
1784
1799
  const p = d.meta.properties?.find(
@@ -1796,7 +1811,7 @@ function Pt(t) {
1796
1811
  }
1797
1812
  }
1798
1813
  } else if (c === "slotProperty") {
1799
- if (pe(l.key) && h.slot && n.type === "comp" && o.meta.slots) {
1814
+ if (Yt(l.key) && h.slot && n.type === "comp" && o.meta.slots) {
1800
1815
  const d = o.meta.slots.find((p) => p.id === h.slot);
1801
1816
  if (d && d.properties) {
1802
1817
  const p = d.properties.find((f) => f.id === _);
@@ -1812,7 +1827,7 @@ function Pt(t) {
1812
1827
  }
1813
1828
  }
1814
1829
  } else if (c === "multipleSlotProperty") {
1815
- if (de(l.key) && h.slot && n.type === "comp" && o.meta.slots) {
1830
+ if (Kt(l.key) && h.slot && n.type === "comp" && o.meta.slots) {
1816
1831
  const d = o.meta.slots.find((p) => p.id === h.slot);
1817
1832
  if (d && d.properties) {
1818
1833
  const p = d.properties.find((f) => f.id === _);
@@ -1848,7 +1863,7 @@ function Pt(t) {
1848
1863
  elementKey: d,
1849
1864
  slotKey: p,
1850
1865
  propertyKey: f
1851
- } = Qn(_), T = U[d];
1866
+ } = Qn(_), T = P[d];
1852
1867
  if (T && T.slots) {
1853
1868
  const E = T.slots.find((y) => y.key === p);
1854
1869
  if (E && E.properties) {
@@ -1889,14 +1904,14 @@ function Pt(t) {
1889
1904
  }
1890
1905
  }
1891
1906
  function po(t, e) {
1892
- const n = [], o = qt(t, e);
1907
+ const n = [], o = zt(t, e);
1893
1908
  let i;
1894
1909
  for (const { id: a, kind: c, names: r } of o)
1895
1910
  c !== i && (i && n.push("separator"), i = c), n.push([to(c, r), a]);
1896
- return B(n);
1911
+ return b(n);
1897
1912
  }
1898
1913
  function ho() {
1899
- const { activeObject: t, activeComp: e } = I.app, n = [{ id: "", name: "" }];
1914
+ const { activeObject: t, activeComp: e } = A.app, n = [{ id: "", name: "" }];
1900
1915
  if (t.type !== "comp" || !e.meta.slots)
1901
1916
  return n;
1902
1917
  for (const { id: o, name: i } of e.meta.slots)
@@ -1904,7 +1919,7 @@ function ho() {
1904
1919
  return n;
1905
1920
  }
1906
1921
  function Un(t) {
1907
- const { activeObject: e, activeComp: n } = I.app;
1922
+ const { activeObject: e, activeComp: n } = A.app;
1908
1923
  if (e.type !== "comp" || !n.meta.slots)
1909
1924
  return;
1910
1925
  if (!t)
@@ -1916,20 +1931,20 @@ function Un(t) {
1916
1931
  name: o.name
1917
1932
  };
1918
1933
  }
1919
- function ts() {
1934
+ function ns() {
1920
1935
  const { i18n: t } = Ct, e = [], n = ho();
1921
1936
  for (const { id: o, name: i } of n) {
1922
1937
  let a = i;
1923
1938
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
1924
1939
  }
1925
- return B(e);
1940
+ return b(e);
1926
1941
  }
1927
1942
  function Tn() {
1928
- const { activeObject: t, activePage: e, activeComp: n } = I.app;
1943
+ const { activeObject: t, activePage: e, activeComp: n } = A.app;
1929
1944
  return t.type === "page" ? e.meta.states ?? [] : t.type === "comp" ? n.meta.states ?? [] : [];
1930
1945
  }
1931
1946
  function me(t) {
1932
- const { activeObject: e, activePage: n, activeComp: o } = I.app;
1947
+ const { activeObject: e, activePage: n, activeComp: o } = A.app;
1933
1948
  if (e.type === "page")
1934
1949
  return n.meta.states?.find((i) => i.id === t);
1935
1950
  if (e.type === "comp")
@@ -1939,9 +1954,9 @@ function fo() {
1939
1954
  const t = [], e = Tn();
1940
1955
  for (const { id: n, name: o } of e)
1941
1956
  t.push([o, n]);
1942
- return B(t);
1957
+ return b(t);
1943
1958
  }
1944
- const es = {
1959
+ const os = {
1945
1960
  init: function() {
1946
1961
  this.node = {
1947
1962
  id: "",
@@ -1990,7 +2005,7 @@ const es = {
1990
2005
  return Gi(this.node.id);
1991
2006
  },
1992
2007
  onchange: function(t) {
1993
- if (t.type === P.STATE_CHANGE)
2008
+ if (t.type === R.STATE_CHANGE)
1994
2009
  this.checkWarning_();
1995
2010
  else if (t.type === v.BLOCK_CHANGE) {
1996
2011
  const e = t;
@@ -2000,7 +2015,7 @@ const es = {
2000
2015
  }
2001
2016
  },
2002
2017
  onNodeChange_: function(t) {
2003
- const e = J(t);
2018
+ const e = Q(t);
2004
2019
  if (!e) {
2005
2020
  console.assert(!1);
2006
2021
  return;
@@ -2046,10 +2061,10 @@ const es = {
2046
2061
  const { key: o, name: i } = this.event.params[n];
2047
2062
  t.push(["PARAM" + n, `__param$${o}__`, i, e]);
2048
2063
  }
2049
- t.length > 0 && W(this, t);
2064
+ t.length > 0 && X(this, t);
2050
2065
  },
2051
2066
  checkWarning_: function() {
2052
- const t = J(this.node.id);
2067
+ const t = Q(this.node.id);
2053
2068
  if (!t) {
2054
2069
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
2055
2070
  return;
@@ -2075,19 +2090,19 @@ const es = {
2075
2090
  this.setWarningText(null);
2076
2091
  }
2077
2092
  };
2078
- A.on_app_event_v1 = es;
2093
+ I.on_app_event_v1 = os;
2079
2094
  s.forBlock.on_app_event_v1 = function(t) {
2080
2095
  const e = s.quote_, n = t;
2081
- let o = "";
2096
+ let o = "__instance__";
2082
2097
  if (n.event.params)
2083
2098
  for (const { key: c } of n.event.params)
2084
2099
  o && (o += ", "), o += `__param$${c}__`;
2085
2100
  const i = s.statementToCode(n, "HANDLE");
2086
- return `__onEventV1__(${e(n.event.id)}, async (__instance__, ${o}) => {
2101
+ return `__onEventV1__(${e(n.event.id)}, async (${o}) => {
2087
2102
  ${i}});
2088
2103
  `;
2089
2104
  };
2090
- const ns = {
2105
+ const is = {
2091
2106
  init: function() {
2092
2107
  this.node = {
2093
2108
  id: "",
@@ -2136,7 +2151,7 @@ const ns = {
2136
2151
  return Wi(this.node.id);
2137
2152
  },
2138
2153
  onchange: function(t) {
2139
- if (t.type === P.STATE_CHANGE)
2154
+ if (t.type === R.STATE_CHANGE)
2140
2155
  this.checkWarning_();
2141
2156
  else if (t.type === v.BLOCK_CHANGE) {
2142
2157
  const e = t;
@@ -2146,7 +2161,7 @@ const ns = {
2146
2161
  }
2147
2162
  },
2148
2163
  onNodeChange_: function(t) {
2149
- const e = J(t);
2164
+ const e = Q(t);
2150
2165
  if (!e) {
2151
2166
  console.assert(!1);
2152
2167
  return;
@@ -2200,7 +2215,7 @@ const ns = {
2200
2215
  }
2201
2216
  },
2202
2217
  checkWarning_: function() {
2203
- const t = J(this.node.id);
2218
+ const t = Q(this.node.id);
2204
2219
  if (!t) {
2205
2220
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
2206
2221
  return;
@@ -2226,10 +2241,10 @@ const ns = {
2226
2241
  this.setWarningText(null);
2227
2242
  }
2228
2243
  };
2229
- A.trigger_app_event_v1 = ns;
2244
+ I.trigger_app_event_v1 = is;
2230
2245
  s.forBlock.trigger_app_event_v1 = function(t) {
2231
2246
  const e = s.quote_, n = t;
2232
- let o = "";
2247
+ let o = "''";
2233
2248
  st(n.node.key) && (o = s.valueToCode(n, "INSTANCE", u.NONE) || "''");
2234
2249
  let i = "";
2235
2250
  if (n.event.params)
@@ -2289,7 +2304,7 @@ s.forBlock.app_debug_trace_v1 = function(t) {
2289
2304
  return `__debugTraceV1__(${s.valueToCode(t, "OBJECT", u.NONE)});
2290
2305
  `;
2291
2306
  };
2292
- const os = {
2307
+ const ss = {
2293
2308
  init: function() {
2294
2309
  this.appendDummyInput().appendField("%{BKY_APP_V1_OPEN_CONFIRM_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_OPEN_CONFIRM_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_OPEN_CONFIRM_DLG_HELPURL}");
2295
2310
  },
@@ -2313,12 +2328,12 @@ const os = {
2313
2328
  this.getInput("TEXT").connection.setShadowDom(e);
2314
2329
  },
2315
2330
  ensureBlocks_: function() {
2316
- this.isInsertionMarker() || W(this, [
2331
+ this.isInsertionMarker() || X(this, [
2317
2332
  ["RESULT", "__result__", "x-runtime-lib.result", !0]
2318
2333
  ]);
2319
2334
  }
2320
2335
  };
2321
- A.open_confirm_dlg_v1 = os;
2336
+ I.open_confirm_dlg_v1 = ss;
2322
2337
  s.forBlock.open_confirm_dlg_v1 = function(t) {
2323
2338
  const e = s.valueToCode(t, "TITLE", u.ATOMIC), n = s.valueToCode(t, "TEXT", u.ATOMIC), o = s.statementToCode(t, "HANDLE");
2324
2339
  return `{
@@ -2326,7 +2341,7 @@ s.forBlock.open_confirm_dlg_v1 = function(t) {
2326
2341
  ${o}}
2327
2342
  `;
2328
2343
  };
2329
- const is = {
2344
+ const as = {
2330
2345
  init: function() {
2331
2346
  this.appendDummyInput().appendField("%{BKY_APP_V1_OPEN_PROMPT_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_APP_V1_OPEN_PROMPT_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_OPEN_PROMPT_DLG_HELPURL}");
2332
2347
  },
@@ -2352,12 +2367,12 @@ const is = {
2352
2367
  this.getInput("VALUE").connection.setShadowDom(n);
2353
2368
  },
2354
2369
  ensureBlocks_: function() {
2355
- this.isInsertionMarker() || W(this, [
2370
+ this.isInsertionMarker() || X(this, [
2356
2371
  ["RESULT", "__result__", "x-runtime-lib.result", !0]
2357
2372
  ]);
2358
2373
  }
2359
2374
  };
2360
- A.open_prompt_dlg_v1 = is;
2375
+ I.open_prompt_dlg_v1 = as;
2361
2376
  s.forBlock.open_prompt_dlg_v1 = function(t) {
2362
2377
  const e = s.valueToCode(t, "TITLE", u.ATOMIC), n = s.valueToCode(t, "LABEL", u.ATOMIC), o = s.valueToCode(t, "VALUE", u.ATOMIC), i = s.statementToCode(t, "HANDLE");
2363
2378
  return `{
@@ -2397,7 +2412,7 @@ s.forBlock.popup_message_v1 = function(t) {
2397
2412
  return `__messageV1__(${e}, ${n});
2398
2413
  `;
2399
2414
  };
2400
- const ss = {
2415
+ const cs = {
2401
2416
  init: function() {
2402
2417
  this.node = {
2403
2418
  id: "",
@@ -2446,7 +2461,7 @@ const ss = {
2446
2461
  return ji(this.node.id);
2447
2462
  },
2448
2463
  onchange: function(t) {
2449
- if (t.type === P.STATE_CHANGE)
2464
+ if (t.type === R.STATE_CHANGE)
2450
2465
  this.checkWarning_();
2451
2466
  else if (t.type === v.BLOCK_CHANGE) {
2452
2467
  const e = t;
@@ -2456,7 +2471,7 @@ const ss = {
2456
2471
  }
2457
2472
  },
2458
2473
  onNodeChange_: function(t) {
2459
- const e = J(t);
2474
+ const e = Q(t);
2460
2475
  if (!e) {
2461
2476
  console.assert(!1);
2462
2477
  return;
@@ -2522,16 +2537,16 @@ const ss = {
2522
2537
  ensureBlocks_: function() {
2523
2538
  if (this.isInsertionMarker())
2524
2539
  return;
2525
- const { kind: t } = te(this.method.id), e = eo(t), n = [];
2540
+ const { kind: t } = ne(this.method.id), e = eo(t), n = [];
2526
2541
  if (this.method.outputs)
2527
2542
  for (let o = 0; o < this.method.outputs.length; o++) {
2528
2543
  const { key: i, name: a } = this.method.outputs[o];
2529
2544
  n.push(["OUTPUT" + o, `__output$${i}__`, a, e]);
2530
2545
  }
2531
- n.length > 0 && W(this, n);
2546
+ n.length > 0 && X(this, n);
2532
2547
  },
2533
2548
  checkWarning_: function() {
2534
- const t = J(this.node.id);
2549
+ const t = Q(this.node.id);
2535
2550
  if (!t) {
2536
2551
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
2537
2552
  return;
@@ -2561,10 +2576,10 @@ const ss = {
2561
2576
  this.setWarningText(null);
2562
2577
  }
2563
2578
  };
2564
- A.call_app_method_v1 = ss;
2579
+ I.call_app_method_v1 = cs;
2565
2580
  s.forBlock.call_app_method_v1 = function(t) {
2566
2581
  const e = s.INDENT, n = s.quote_, o = t;
2567
- let i = "";
2582
+ let i = "''";
2568
2583
  st(o.node.key) && (i = s.valueToCode(o, "INSTANCE", u.NONE) || "''");
2569
2584
  let a = "{";
2570
2585
  if (o.method.inputs)
@@ -2601,30 +2616,30 @@ s.forBlock.call_app_method_v1 = function(t) {
2601
2616
  let c = "";
2602
2617
  if (o.method.outputs)
2603
2618
  for (const { key: r } of o.method.outputs)
2604
- c += `${e}__output$${r}__ = __outputs__[${n(r)}];
2619
+ c += `${e}const __output$${r}__ = __outputs__[${n(r)}];
2605
2620
  `;
2606
2621
  if (o.method.kind === "customMethod") {
2607
- const { methodKey: r } = te(o.method.id);
2622
+ const { kind: r, nodeId: _, methodKey: h } = ne(o.method.id), l = `__implementMethod$${r}$${_}$${h}__`;
2608
2623
  if (o.method.outputs && o.method.outputs.length > 0) {
2609
- const _ = s.statementToCode(o, "HANDLE");
2624
+ const d = s.statementToCode(o, "HANDLE");
2610
2625
  return `{
2611
- var __outputs__ = __implementMethod$${r}__(${a});
2612
- ${c}${_}}
2626
+ const __outputs__ = ${l}(${i}, ${a});
2627
+ ${c}${d}}
2613
2628
  `;
2614
2629
  } else
2615
- return `__implementMethod$${r}__(${a});
2630
+ return `${l}(${i}, ${a});
2616
2631
  `;
2617
2632
  } else if (o.method.outputs && o.method.outputs.length > 0) {
2618
2633
  const r = s.statementToCode(o, "HANDLE");
2619
2634
  return `{
2620
- var __outputs__ = __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2635
+ const __outputs__ = __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2621
2636
  ${c}${r}}
2622
2637
  `;
2623
2638
  } else
2624
2639
  return `__callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2625
2640
  `;
2626
2641
  };
2627
- const as = {
2642
+ const rs = {
2628
2643
  init: function() {
2629
2644
  this.node = {
2630
2645
  id: "",
@@ -2648,7 +2663,7 @@ const as = {
2648
2663
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2649
2664
  const e = this.getField("NODE");
2650
2665
  e.getOptions(!1), e.setValue(this.node.id);
2651
- const n = Jt(this.node.id)?.[0];
2666
+ const n = Qt(this.node.id)?.[0];
2652
2667
  if (!n)
2653
2668
  return;
2654
2669
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs;
@@ -2673,7 +2688,7 @@ const as = {
2673
2688
  return uo(this.node.id);
2674
2689
  },
2675
2690
  onchange: function(t) {
2676
- if (t.type === P.STATE_CHANGE)
2691
+ if (t.type === R.STATE_CHANGE)
2677
2692
  this.checkWarning_();
2678
2693
  else if (t.type === v.BLOCK_CHANGE) {
2679
2694
  const e = t;
@@ -2683,7 +2698,7 @@ const as = {
2683
2698
  }
2684
2699
  },
2685
2700
  onNodeChange_: function(t) {
2686
- const e = J(t);
2701
+ const e = Q(t);
2687
2702
  if (!e) {
2688
2703
  console.assert(!1);
2689
2704
  return;
@@ -2692,7 +2707,7 @@ const as = {
2692
2707
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2693
2708
  const o = this.getField("METHOD");
2694
2709
  if (o.getOptions(!1), n || !yt(this.method.id)) {
2695
- const i = Jt(this.node.id)?.[0];
2710
+ const i = Qt(this.node.id)?.[0];
2696
2711
  o.setValue(i?.id ?? "");
2697
2712
  }
2698
2713
  o.setValue(o.getValue());
@@ -2713,7 +2728,7 @@ const as = {
2713
2728
  this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t), this.moveInputBefore("INPUT" + t, "HANDLE"));
2714
2729
  },
2715
2730
  ensureBlocks_: function() {
2716
- if (this.isInsertionMarker() || !this.method.id)
2731
+ if (this.isInsertionMarker())
2717
2732
  return;
2718
2733
  const t = eo(this.method.kind), e = [];
2719
2734
  if (this.method.inputs)
@@ -2721,10 +2736,10 @@ const as = {
2721
2736
  const { key: o, name: i } = this.method.inputs[n];
2722
2737
  e.push(["INPUT" + n, `__input$${o}__`, i, t]);
2723
2738
  }
2724
- W(this, e);
2739
+ X(this, e);
2725
2740
  },
2726
2741
  checkWarning_: function() {
2727
- const t = J(this.node.id);
2742
+ const t = Q(this.node.id);
2728
2743
  if (!t) {
2729
2744
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
2730
2745
  return;
@@ -2750,22 +2765,22 @@ const as = {
2750
2765
  this.setWarningText(null);
2751
2766
  }
2752
2767
  };
2753
- A.implement_app_method_v1 = as;
2768
+ I.implement_app_method_v1 = rs;
2754
2769
  s.forBlock.implement_app_method_v1 = function(t) {
2755
- const e = s.INDENT, n = s.quote_, o = t, { methodKey: i } = te(o.method.id);
2756
- let a = "";
2770
+ const e = s.INDENT, n = s.quote_, o = t, { kind: i, nodeId: a, methodKey: c } = ne(o.method.id);
2771
+ let r = "";
2757
2772
  if (o.method.inputs)
2758
- for (const { key: _ } of o.method.inputs)
2759
- a += `${e}var __input$${_}__ = __inputs__[${n(_)}];
2773
+ for (const { key: l } of o.method.inputs)
2774
+ r += `${e}const __input$${l}__ = __inputs__[${n(l)}];
2760
2775
  `;
2761
- const c = s.statementToCode(o, "HANDLE");
2762
- return `async function __implementMethod$${i}__(__instance__, __inputs__) {
2763
- ${a}${e}var __outputs__ = {};
2764
- ${c}${e}return __outputs__;
2776
+ const _ = s.statementToCode(o, "HANDLE");
2777
+ return `async function __implementMethod$${i}$${a}$${c}__(__instance__, __inputs__) {
2778
+ ${r}${e}const __outputs__ = {};
2779
+ ${_}${e}return __outputs__;
2765
2780
  }
2766
2781
  `;
2767
2782
  };
2768
- const cs = {
2783
+ const ls = {
2769
2784
  init: function() {
2770
2785
  this.node = {
2771
2786
  id: "",
@@ -2796,7 +2811,7 @@ const cs = {
2796
2811
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2797
2812
  const e = this.getField("NODE");
2798
2813
  e.getOptions(!1), e.setValue(this.node.id);
2799
- const n = Jt(this.node.id)?.[0];
2814
+ const n = Qt(this.node.id)?.[0];
2800
2815
  if (!n)
2801
2816
  return;
2802
2817
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names;
@@ -2831,7 +2846,7 @@ const cs = {
2831
2846
  return Xi(this.method.id);
2832
2847
  },
2833
2848
  onchange: function(t) {
2834
- if (t.type === P.STATE_CHANGE)
2849
+ if (t.type === R.STATE_CHANGE)
2835
2850
  this.checkWarning_();
2836
2851
  else if (t.type === v.BLOCK_CHANGE) {
2837
2852
  const e = t;
@@ -2841,7 +2856,7 @@ const cs = {
2841
2856
  }
2842
2857
  },
2843
2858
  onNodeChange_: function(t) {
2844
- const e = J(t);
2859
+ const e = Q(t);
2845
2860
  if (!e) {
2846
2861
  console.assert(!1);
2847
2862
  return;
@@ -2850,7 +2865,7 @@ const cs = {
2850
2865
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2851
2866
  const o = this.getField("METHOD");
2852
2867
  if (o.getOptions(!1), n || !yt(this.method.id)) {
2853
- const i = Jt(this.node.id)?.[0];
2868
+ const i = Qt(this.node.id)?.[0];
2854
2869
  o.setValue(i?.id ?? "");
2855
2870
  }
2856
2871
  o.setValue(o.getValue());
@@ -2889,7 +2904,7 @@ const cs = {
2889
2904
  this.getInput("VALUE").connection.setShadowDom(t);
2890
2905
  },
2891
2906
  checkWarning_: function() {
2892
- const t = J(this.node.id);
2907
+ const t = Q(this.node.id);
2893
2908
  if (!t) {
2894
2909
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
2895
2910
  return;
@@ -2924,7 +2939,7 @@ const cs = {
2924
2939
  this.setWarningText(null);
2925
2940
  }
2926
2941
  };
2927
- A.set_app_method_output_v1 = cs;
2942
+ I.set_app_method_output_v1 = ls;
2928
2943
  s.forBlock.set_app_method_output_v1 = function(t) {
2929
2944
  const e = s.quote_, n = t;
2930
2945
  let o = s.valueToCode(n, "VALUE", u.ATOMIC);
@@ -2974,7 +2989,7 @@ g([
2974
2989
  s.forBlock.app_env_is_v1 = function(t) {
2975
2990
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, u.ATOMIC];
2976
2991
  };
2977
- const rs = {
2992
+ const us = {
2978
2993
  init: function() {
2979
2994
  this.app = {
2980
2995
  id: "",
@@ -3015,10 +3030,10 @@ const rs = {
3015
3030
  return $i();
3016
3031
  },
3017
3032
  genPageOpts_: function() {
3018
- return Zi(this.app.id);
3033
+ return es(this.app.id);
3019
3034
  },
3020
3035
  onchange: function(t) {
3021
- if (t.type === P.STATE_CHANGE)
3036
+ if (t.type === R.STATE_CHANGE)
3022
3037
  this.checkWarning_();
3023
3038
  else if (t.type === v.BLOCK_CHANGE) {
3024
3039
  const e = t;
@@ -3060,13 +3075,13 @@ const rs = {
3060
3075
  e.name !== this.page.name && (this.page.name = e.name), this.setWarningText(null);
3061
3076
  }
3062
3077
  };
3063
- A.navigate_to_v1 = rs;
3078
+ I.navigate_to_v1 = us;
3064
3079
  s.forBlock.navigate_to_v1 = function(t) {
3065
3080
  const e = t, n = s.quote_(e.app.id), o = s.quote_(e.page.id);
3066
3081
  return `__navigateToV1__(${n}, ${o});
3067
3082
  `;
3068
3083
  };
3069
- const ls = {
3084
+ const _s = {
3070
3085
  init: function() {
3071
3086
  this.comp = {
3072
3087
  id: "",
@@ -3097,7 +3112,7 @@ const ls = {
3097
3112
  return Hi();
3098
3113
  },
3099
3114
  onchange: function(t) {
3100
- if (t.type === P.STATE_CHANGE)
3115
+ if (t.type === R.STATE_CHANGE)
3101
3116
  this.checkWarning_();
3102
3117
  else if (t.type === v.BLOCK_CHANGE) {
3103
3118
  const e = t;
@@ -3119,12 +3134,12 @@ const ls = {
3119
3134
  t.name !== this.comp.name && (this.comp.name = t.name), this.setWarningText(null);
3120
3135
  }
3121
3136
  };
3122
- A.select_comp_v1 = ls;
3137
+ I.select_comp_v1 = _s;
3123
3138
  s.forBlock.select_comp_v1 = function(t) {
3124
3139
  const e = s.quote_, o = t.comp.id;
3125
3140
  return [e(o), u.ATOMIC];
3126
3141
  };
3127
- const us = {
3142
+ const ps = {
3128
3143
  init: function() {
3129
3144
  this.slot = {
3130
3145
  id: "",
@@ -3152,10 +3167,10 @@ const us = {
3152
3167
  }, 0);
3153
3168
  },
3154
3169
  genSlotOpts_: function() {
3155
- return ts();
3170
+ return ns();
3156
3171
  },
3157
3172
  onchange: function(t) {
3158
- if (t.type === P.STATE_CHANGE)
3173
+ if (t.type === R.STATE_CHANGE)
3159
3174
  this.checkWarning_();
3160
3175
  else if (t.type === v.BLOCK_CHANGE) {
3161
3176
  const e = t;
@@ -3177,12 +3192,12 @@ const us = {
3177
3192
  t.name !== this.slot.name && (this.slot.name = t.name), this.setWarningText(null);
3178
3193
  }
3179
3194
  };
3180
- A.select_slot_v1 = us;
3195
+ I.select_slot_v1 = ps;
3181
3196
  s.forBlock.select_slot_v1 = function(t) {
3182
3197
  const e = s.quote_, o = t.slot.id;
3183
3198
  return [e(o), u.ATOMIC];
3184
3199
  };
3185
- const _s = {
3200
+ const ds = {
3186
3201
  init: function() {
3187
3202
  this.node = {
3188
3203
  id: "",
@@ -3206,7 +3221,7 @@ const _s = {
3206
3221
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3207
3222
  const e = this.getField("NODE");
3208
3223
  e.getOptions(!1), e.setValue(this.node.id);
3209
- const n = qt(this.node.id, "read")?.[0];
3224
+ const n = zt(this.node.id, "read")?.[0];
3210
3225
  if (!n)
3211
3226
  return;
3212
3227
  this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
@@ -3231,7 +3246,7 @@ const _s = {
3231
3246
  return po(this.node.id, "read");
3232
3247
  },
3233
3248
  onchange: function(t) {
3234
- if (t.type === P.STATE_CHANGE)
3249
+ if (t.type === R.STATE_CHANGE)
3235
3250
  this.checkWarning_();
3236
3251
  else if (t.type === v.BLOCK_CHANGE) {
3237
3252
  const e = t;
@@ -3241,7 +3256,7 @@ const _s = {
3241
3256
  }
3242
3257
  },
3243
3258
  onNodeChange_: function(t) {
3244
- const e = J(t);
3259
+ const e = Q(t);
3245
3260
  if (!e) {
3246
3261
  console.assert(!1);
3247
3262
  return;
@@ -3250,7 +3265,7 @@ const _s = {
3250
3265
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3251
3266
  const o = this.getField("PROPERTY");
3252
3267
  if (o.getOptions(!1), n || !Pt(this.property.id)) {
3253
- const i = qt(this.node.id, "read")?.[0];
3268
+ const i = zt(this.node.id, "read")?.[0];
3254
3269
  o.setValue(i?.id ?? "");
3255
3270
  }
3256
3271
  this.onPropChange_(o.getValue());
@@ -3264,7 +3279,7 @@ const _s = {
3264
3279
  this.getField("INSTANCE0")?.setVisible(t), this.getField("INSTANCE1")?.setVisible(t);
3265
3280
  },
3266
3281
  checkWarning_: function() {
3267
- const t = J(this.node.id);
3282
+ const t = Q(this.node.id);
3268
3283
  if (!t) {
3269
3284
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
3270
3285
  return;
@@ -3286,13 +3301,15 @@ const _s = {
3286
3301
  K(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
3287
3302
  }
3288
3303
  };
3289
- A.get_app_property_v1 = _s;
3304
+ I.get_app_property_v1 = ds;
3290
3305
  s.forBlock.get_app_property_v1 = function(t) {
3291
3306
  const e = s.quote_, n = t;
3292
3307
  let o = "";
3293
- return st(n.node.key) && (o = n.getFieldValue("INSTANCE1")), [`__getPropertyV1__(${e(n.property.id)}, ${e(o)})`, u.ATOMIC];
3308
+ (W(n.node.key) || j(n.node.key) || Yt(n.node.key) || Kt(n.node.key)) && (o = n.node.id);
3309
+ let i = "";
3310
+ return st(n.node.key) && (i = n.getFieldValue("INSTANCE1")), [`__getPropertyV1__(${e(n.property.id)}, ${e(o)}, ${e(i)})`, u.ATOMIC];
3294
3311
  };
3295
- const ps = {
3312
+ const hs = {
3296
3313
  init: function() {
3297
3314
  this.node = {
3298
3315
  id: "",
@@ -3316,7 +3333,7 @@ const ps = {
3316
3333
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
3317
3334
  const e = this.getField("NODE");
3318
3335
  e.getOptions(!1), e.setValue(this.node.id);
3319
- const n = qt(this.node.id, "write")?.[0];
3336
+ const n = zt(this.node.id, "write")?.[0];
3320
3337
  if (!n)
3321
3338
  return;
3322
3339
  this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
@@ -3341,7 +3358,7 @@ const ps = {
3341
3358
  return po(this.node.id, "write");
3342
3359
  },
3343
3360
  onchange: function(t) {
3344
- if (t.type === P.STATE_CHANGE)
3361
+ if (t.type === R.STATE_CHANGE)
3345
3362
  this.checkWarning_();
3346
3363
  else if (t.type === v.BLOCK_CHANGE) {
3347
3364
  const e = t;
@@ -3351,7 +3368,7 @@ const ps = {
3351
3368
  }
3352
3369
  },
3353
3370
  onNodeChange_: function(t) {
3354
- const e = J(t);
3371
+ const e = Q(t);
3355
3372
  if (!e) {
3356
3373
  console.assert(!1);
3357
3374
  return;
@@ -3360,7 +3377,7 @@ const ps = {
3360
3377
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
3361
3378
  const o = this.getField("PROPERTY");
3362
3379
  if (o.getOptions(!1), n || !Pt(this.property.id)) {
3363
- const i = qt(this.node.id, "write")?.[0];
3380
+ const i = zt(this.node.id, "write")?.[0];
3364
3381
  o.setValue(i?.id ?? "");
3365
3382
  }
3366
3383
  this.onPropChange_(o.getValue());
@@ -3390,7 +3407,7 @@ const ps = {
3390
3407
  }
3391
3408
  },
3392
3409
  checkWarning_: function() {
3393
- const t = J(this.node.id);
3410
+ const t = Q(this.node.id);
3394
3411
  if (!t) {
3395
3412
  this.setWarningText(m("WARN_NODE_NOT_FOUND"));
3396
3413
  return;
@@ -3412,16 +3429,18 @@ const ps = {
3412
3429
  K(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
3413
3430
  }
3414
3431
  };
3415
- A.set_app_property_v1 = ps;
3432
+ I.set_app_property_v1 = hs;
3416
3433
  s.forBlock.set_app_property_v1 = function(t) {
3417
3434
  const e = s.quote_, n = t;
3418
3435
  let o = "";
3419
- st(n.node.key) && (o = n.getFieldValue("INSTANCE1"));
3420
- const i = s.valueToCode(n, "VALUE", u.NONE);
3421
- return `__setPropertyV1__(${e(n.property.id)}, ${e(o)}, ${i});
3436
+ (W(n.node.key) || j(n.node.key) || Yt(n.node.key) || Kt(n.node.key)) && (o = n.node.id);
3437
+ let i = "";
3438
+ st(n.node.key) && (i = n.getFieldValue("INSTANCE1"));
3439
+ const a = s.valueToCode(n, "VALUE", u.NONE);
3440
+ return `__setPropertyV1__(${e(n.property.id)}, ${a}, ${e(o)}, ${e(i)});
3422
3441
  `;
3423
3442
  };
3424
- const ds = {
3443
+ const fs = {
3425
3444
  init: function() {
3426
3445
  this.state = {
3427
3446
  id: "",
@@ -3456,7 +3475,7 @@ const ds = {
3456
3475
  return fo();
3457
3476
  },
3458
3477
  onchange: function(t) {
3459
- if (t.type === P.STATE_CHANGE)
3478
+ if (t.type === R.STATE_CHANGE)
3460
3479
  this.checkWarning_();
3461
3480
  else if (t.type === v.BLOCK_CHANGE) {
3462
3481
  const e = t;
@@ -3480,12 +3499,12 @@ const ds = {
3480
3499
  this.setWarningText(null);
3481
3500
  }
3482
3501
  };
3483
- A.get_app_state_v1 = ds;
3502
+ I.get_app_state_v1 = fs;
3484
3503
  s.forBlock.get_app_state_v1 = function(t) {
3485
3504
  const e = s.quote_;
3486
3505
  return [`__getStateV1__(${e(t.state.id)})`, u.ATOMIC];
3487
3506
  };
3488
- const hs = {
3507
+ const ms = {
3489
3508
  init: function() {
3490
3509
  this.state = {
3491
3510
  id: "",
@@ -3549,7 +3568,7 @@ const hs = {
3549
3568
  this.setWarningText(null);
3550
3569
  }
3551
3570
  };
3552
- A.set_app_state_v1 = hs;
3571
+ I.set_app_state_v1 = ms;
3553
3572
  s.forBlock.set_app_state_v1 = function(t) {
3554
3573
  const e = s.quote_, n = t, o = s.valueToCode(n, "VALUE", u.NONE);
3555
3574
  return `__setStateV1__(${e(n.state.id)}, ${o});
@@ -4258,7 +4277,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
4258
4277
  `
4259
4278
  )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
4260
4279
  };
4261
- const fs = S.xml, ms = [
4280
+ const Ts = S.xml, Es = [
4262
4281
  {
4263
4282
  type: "add_data_v1",
4264
4283
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
@@ -4320,16 +4339,16 @@ const fs = S.xml, ms = [
4320
4339
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
4321
4340
  }
4322
4341
  ];
4323
- function Ts(t, e) {
4324
- const n = ms.find((o) => o.type === t);
4342
+ function gs(t, e) {
4343
+ const n = Es.find((o) => o.type === t);
4325
4344
  return n ? !!(n.prefixInputs?.some((o) => e.startsWith(o)) || n.inputs?.some((o) => o === e)) : !1;
4326
4345
  }
4327
- const Es = {
4346
+ const As = {
4328
4347
  init: function() {
4329
4348
  this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
4330
4349
  },
4331
4350
  mutationToDom: function() {
4332
- const t = fs.createElement("mutation");
4351
+ const t = Ts.createElement("mutation");
4333
4352
  return t.setAttribute("key", this.key), t.setAttribute("name", this.name), t.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), t;
4334
4353
  },
4335
4354
  domToMutation: function(t) {
@@ -4358,7 +4377,7 @@ const Es = {
4358
4377
  },
4359
4378
  tryDuplicate_: function(t) {
4360
4379
  const e = this.workspace.getBlockById(t.oldParentId);
4361
- if (e && Ts(e.type, t.oldInputName))
4380
+ if (e && gs(e.type, t.oldInputName))
4362
4381
  try {
4363
4382
  v.disable();
4364
4383
  const n = e.getInput(t.oldInputName)?.connection;
@@ -4383,63 +4402,63 @@ const Es = {
4383
4402
  this.setFieldValue(this.name, "LABEL");
4384
4403
  }
4385
4404
  };
4386
- A.parameter_v1 = Es;
4405
+ I.parameter_v1 = As;
4387
4406
  s.forBlock.parameter_v1 = function(t) {
4388
4407
  return [t.key, u.ATOMIC];
4389
4408
  };
4390
- const gs = {
4409
+ const Is = {
4391
4410
  init: function() {
4392
4411
  }
4393
4412
  };
4394
- A.on_flow_state_event_v1 = gs;
4413
+ I.on_flow_state_event_v1 = Is;
4395
4414
  s.forBlock.on_flow_state_event_v1 = function() {
4396
4415
  return `__onFlowStateEventV1__();
4397
4416
  `;
4398
4417
  };
4399
- function Qt(t) {
4400
- const e = I.compute.spaces.find((n) => n.id === t);
4418
+ function Zt(t) {
4419
+ const e = A.compute.spaces.find((n) => n.id === t);
4401
4420
  return e ? e.funcs : [];
4402
4421
  }
4403
4422
  function Ft(t, e) {
4404
- const n = I.compute.spaces.find((o) => o.id === t);
4423
+ const n = A.compute.spaces.find((o) => o.id === t);
4405
4424
  if (n)
4406
4425
  return n.funcs.find((o) => o.id === e);
4407
4426
  }
4408
4427
  function mo(t) {
4409
4428
  const e = [];
4410
- return Qt(t).forEach(({ id: o, name: i }) => {
4429
+ return Zt(t).forEach(({ id: o, name: i }) => {
4411
4430
  e.push([i, o]);
4412
- }), B(e);
4431
+ }), b(e);
4413
4432
  }
4414
4433
  function un() {
4415
- return I.compute.activeFunc;
4434
+ return A.compute.activeFunc;
4416
4435
  }
4417
4436
  function Vn(t) {
4418
- const { activeFunc: e } = I.compute;
4437
+ const { activeFunc: e } = A.compute;
4419
4438
  return e.outputs?.find((n) => n.id === t);
4420
4439
  }
4421
- function As() {
4422
- const { activeFunc: t } = I.compute, e = [];
4440
+ function ys() {
4441
+ const { activeFunc: t } = A.compute, e = [];
4423
4442
  return t.outputs?.forEach(({ id: n, name: o }) => {
4424
4443
  e.push([o, n]);
4425
- }), B(e);
4444
+ }), b(e);
4426
4445
  }
4427
- function ne(t) {
4446
+ function ie(t) {
4428
4447
  const e = [];
4429
- return I.compute.spaces.forEach((n) => {
4448
+ return A.compute.spaces.forEach((n) => {
4430
4449
  t === "func" && n.funcs.length > 0 && e.push(n), t === "flow" && n.flows.length > 0 && e.push(n);
4431
4450
  }), e;
4432
4451
  }
4433
4452
  function Te(t) {
4434
- return I.compute.spaces.find((e) => e.id === t);
4453
+ return A.compute.spaces.find((e) => e.id === t);
4435
4454
  }
4436
4455
  function To(t) {
4437
4456
  const e = [];
4438
- return ne(t).forEach(({ id: o, name: i }) => {
4457
+ return ie(t).forEach(({ id: o, name: i }) => {
4439
4458
  e.push([i, o]);
4440
- }), B(e);
4459
+ }), b(e);
4441
4460
  }
4442
- const Is = {
4461
+ const Os = {
4443
4462
  init: function() {
4444
4463
  this.space = {
4445
4464
  id: "",
@@ -4457,13 +4476,13 @@ const Is = {
4457
4476
  initData_: function() {
4458
4477
  if (this.space.id)
4459
4478
  return;
4460
- const t = ne("func")?.[0];
4479
+ const t = ie("func")?.[0];
4461
4480
  if (!t)
4462
4481
  return;
4463
4482
  this.space.id = t.id, this.space.name = t.name;
4464
4483
  const e = this.getField("SPACE");
4465
4484
  e.getOptions(!1), e.setValue(this.space.id);
4466
- const n = Qt(this.space.id)?.[0];
4485
+ const n = Zt(this.space.id)?.[0];
4467
4486
  if (!n)
4468
4487
  return;
4469
4488
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
@@ -4488,7 +4507,7 @@ const Is = {
4488
4507
  return mo(this.space.id);
4489
4508
  },
4490
4509
  onchange: function(t) {
4491
- if (t.type === P.STATE_CHANGE)
4510
+ if (t.type === R.STATE_CHANGE)
4492
4511
  this.checkWarning_();
4493
4512
  else if (t.type === v.BLOCK_CHANGE) {
4494
4513
  const e = t;
@@ -4505,7 +4524,7 @@ const Is = {
4505
4524
  }
4506
4525
  let n = !1;
4507
4526
  if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !Ft(this.space.id, this.func.id)) {
4508
- const i = Qt(this.space.id)?.[0];
4527
+ const i = Zt(this.space.id)?.[0];
4509
4528
  this.setFieldValue(i?.id ?? "", "FUNC");
4510
4529
  }
4511
4530
  },
@@ -4561,7 +4580,7 @@ const Is = {
4561
4580
  const { id: n, name: o } = this.func.outputs[e];
4562
4581
  t.push(["OUTPUT" + e, `__output$${n}__`, o, !1]);
4563
4582
  }
4564
- W(this, t);
4583
+ X(this, t);
4565
4584
  },
4566
4585
  checkWarning_: function() {
4567
4586
  const t = Te(this.space.id);
@@ -4586,7 +4605,7 @@ const Is = {
4586
4605
  this.setWarningText(null);
4587
4606
  }
4588
4607
  };
4589
- A.call_func_v1 = Is;
4608
+ I.call_func_v1 = Os;
4590
4609
  s.forBlock.call_func_v1 = function(t) {
4591
4610
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
4592
4611
  let c = "";
@@ -4613,7 +4632,7 @@ ${e}var __result__ = __callFuncV1__(${i},${a},__inputs__,__getEnvV1__(),${r});
4613
4632
  ${_}${h}}
4614
4633
  `;
4615
4634
  };
4616
- const ys = {
4635
+ const vs = {
4617
4636
  init: function() {
4618
4637
  this.space = {
4619
4638
  id: "",
@@ -4631,13 +4650,13 @@ const ys = {
4631
4650
  initData_: function() {
4632
4651
  if (this.space.id)
4633
4652
  return;
4634
- const t = ne("func")?.[0];
4653
+ const t = ie("func")?.[0];
4635
4654
  if (!t)
4636
4655
  return;
4637
4656
  this.space.id = t.id, this.space.name = t.name;
4638
4657
  const e = this.getField("SPACE");
4639
4658
  e.getOptions(!1), e.setValue(this.space.id);
4640
- const n = Qt(this.space.id)?.[0];
4659
+ const n = Zt(this.space.id)?.[0];
4641
4660
  if (!n)
4642
4661
  return;
4643
4662
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
@@ -4662,7 +4681,7 @@ const ys = {
4662
4681
  return mo(this.space.id);
4663
4682
  },
4664
4683
  onchange: function(t) {
4665
- if (t.type === P.STATE_CHANGE)
4684
+ if (t.type === R.STATE_CHANGE)
4666
4685
  this.checkWarning_();
4667
4686
  else if (t.type === v.BLOCK_CHANGE) {
4668
4687
  const e = t;
@@ -4679,7 +4698,7 @@ const ys = {
4679
4698
  }
4680
4699
  let n = !1;
4681
4700
  if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !Ft(this.space.id, this.func.id)) {
4682
- const i = Qt(this.space.id)?.[0];
4701
+ const i = Zt(this.space.id)?.[0];
4683
4702
  i ? this.setFieldValue(i.id, "FUNC") : this.setFieldValue("", "FUNC");
4684
4703
  }
4685
4704
  },
@@ -4735,7 +4754,7 @@ const ys = {
4735
4754
  const { id: n, name: o } = this.func.outputs[e];
4736
4755
  t.push(["OUTPUT" + e, `__output$${n}__`, o, !1]);
4737
4756
  }
4738
- W(this, t);
4757
+ X(this, t);
4739
4758
  },
4740
4759
  checkWarning_: function() {
4741
4760
  const t = Te(this.space.id);
@@ -4760,7 +4779,7 @@ const ys = {
4760
4779
  this.setWarningText(null);
4761
4780
  }
4762
4781
  };
4763
- A.call_func_internal_v1 = ys;
4782
+ I.call_func_internal_v1 = vs;
4764
4783
  s.forBlock.call_func_internal_v1 = function(t) {
4765
4784
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
4766
4785
  let c = `${e}var __inputs__ = {
@@ -4790,7 +4809,7 @@ ${e}}
4790
4809
  ${_}${h}}
4791
4810
  `;
4792
4811
  };
4793
- const Os = {
4812
+ const Cs = {
4794
4813
  init: function() {
4795
4814
  this.func = {
4796
4815
  id: ""
@@ -4835,7 +4854,7 @@ const Os = {
4835
4854
  const { id: n, name: o } = this.func.inputs[e];
4836
4855
  t.push(["INPUT" + e, `__input$${n}__`, o, !1]);
4837
4856
  }
4838
- W(this, t);
4857
+ X(this, t);
4839
4858
  },
4840
4859
  checkWarning_: function() {
4841
4860
  const { id: t, inputs: e } = un();
@@ -4846,7 +4865,7 @@ const Os = {
4846
4865
  this.setWarningText(null);
4847
4866
  }
4848
4867
  };
4849
- A.func_entry_v1 = Os;
4868
+ I.func_entry_v1 = Cs;
4850
4869
  s.forBlock.func_entry_v1 = function(t) {
4851
4870
  const e = t, n = s.statementToCode(e, "HANDLE"), o = [];
4852
4871
  if (e.func.inputs)
@@ -4857,7 +4876,7 @@ s.forBlock.func_entry_v1 = function(t) {
4857
4876
  return `function __funcEntryV1__(${o.join(", ")}) {
4858
4877
  ${n}}`;
4859
4878
  };
4860
- const vs = {
4879
+ const ks = {
4861
4880
  init: function() {
4862
4881
  this.output = {
4863
4882
  id: "",
@@ -4885,10 +4904,10 @@ const vs = {
4885
4904
  }, 0);
4886
4905
  },
4887
4906
  genOutputOpts_: function() {
4888
- return As();
4907
+ return ys();
4889
4908
  },
4890
4909
  onchange: function(t) {
4891
- if (t.type === P.STATE_CHANGE)
4910
+ if (t.type === R.STATE_CHANGE)
4892
4911
  this.checkWarning_();
4893
4912
  else if (t.type === v.BLOCK_CHANGE) {
4894
4913
  const e = t;
@@ -4932,7 +4951,7 @@ const vs = {
4932
4951
  this.setWarningText(null);
4933
4952
  }
4934
4953
  };
4935
- A.set_func_output_v1 = vs;
4954
+ I.set_func_output_v1 = ks;
4936
4955
  s.forBlock.set_func_output_v1 = function(t) {
4937
4956
  const e = s.quote_, n = t, { id: o, type: i } = n.output;
4938
4957
  let a = s.valueToCode(n, "VALUE", u.ATOMIC);
@@ -5006,64 +5025,64 @@ s.forBlock.compute_env_is_v1 = function(t) {
5006
5025
  };
5007
5026
  function ct() {
5008
5027
  const t = [];
5009
- return I.data.spaces.forEach((e) => {
5028
+ return A.data.spaces.forEach((e) => {
5010
5029
  e.tables.length > 0 && t.push(e);
5011
5030
  }), t;
5012
5031
  }
5013
5032
  function Ot(t) {
5014
- const { spaces: e } = I.data;
5033
+ const { spaces: e } = A.data;
5015
5034
  return e.find((n) => n.id === t);
5016
5035
  }
5017
5036
  function Pe() {
5018
5037
  const t = [];
5019
5038
  return ct().forEach(({ id: n, name: o }) => {
5020
5039
  t.push([o, n]);
5021
- }), B(t);
5040
+ }), b(t);
5022
5041
  }
5023
- function q(t) {
5024
- const { spaces: e } = I.data, n = e.find((o) => o.id === t);
5042
+ function z(t) {
5043
+ const { spaces: e } = A.data, n = e.find((o) => o.id === t);
5025
5044
  return n ? n.tables : [];
5026
5045
  }
5027
5046
  function it(t, e) {
5028
- const { spaces: n } = I.data, o = n.find((i) => i.id === t);
5047
+ const { spaces: n } = A.data, o = n.find((i) => i.id === t);
5029
5048
  if (o)
5030
5049
  return o.tables.find((i) => i.id === e);
5031
5050
  }
5032
5051
  function Re(t) {
5033
5052
  const e = [];
5034
- return q(t).forEach(({ id: o, name: i }) => {
5053
+ return z(t).forEach(({ id: o, name: i }) => {
5035
5054
  e.push([i, o]);
5036
- }), B(e);
5055
+ }), b(e);
5037
5056
  }
5038
5057
  function Ee(t, e) {
5039
- const { spaces: n } = I.data, o = n.find((a) => a.id === t);
5058
+ const { spaces: n } = A.data, o = n.find((a) => a.id === t);
5040
5059
  if (!o)
5041
5060
  return [];
5042
5061
  const i = o.tables.find((a) => a.id === e);
5043
5062
  return i ? i.columns : [];
5044
5063
  }
5045
5064
  function Qe(t, e, n) {
5046
- const { spaces: o } = I.data, i = o.find((c) => c.id === t);
5065
+ const { spaces: o } = A.data, i = o.find((c) => c.id === t);
5047
5066
  if (!i)
5048
5067
  return;
5049
5068
  const a = i.tables.find((c) => c.id === e);
5050
5069
  if (a)
5051
5070
  return a.columns.find((c) => c.id === n);
5052
5071
  }
5053
- function Cs(t, e) {
5072
+ function Ns(t, e) {
5054
5073
  const n = [];
5055
5074
  return Ee(t, e).forEach(({ id: i, name: a }) => {
5056
5075
  n.push([a, i]);
5057
- }), B(n);
5076
+ }), b(n);
5058
5077
  }
5059
- function ks(t) {
5078
+ function Ss(t) {
5060
5079
  const e = t.getInput("TABLE").connection;
5061
5080
  if (e.targetBlock())
5062
5081
  return;
5063
5082
  let n, o;
5064
5083
  const i = ct()?.[0];
5065
5084
  if (i) {
5066
- const r = q(i.id)?.[0];
5085
+ const r = z(i.id)?.[0];
5067
5086
  if (r) {
5068
5087
  n = {
5069
5088
  space: {
@@ -5087,10 +5106,10 @@ function ks(t) {
5087
5106
  type: "update_column_v1",
5088
5107
  extraState: n,
5089
5108
  fields: o
5090
- }, c = X.blocks.append(a, t.workspace);
5109
+ }, c = q.blocks.append(a, t.workspace);
5091
5110
  e.connect(c.outputConnection);
5092
5111
  }
5093
- function Ns(t) {
5112
+ function Ls(t) {
5094
5113
  const e = t.getInput("HANDLE").connection;
5095
5114
  if (e.targetBlock())
5096
5115
  return;
@@ -5111,10 +5130,10 @@ function Ns(t) {
5111
5130
  }
5112
5131
  }
5113
5132
  }
5114
- }, o = X.blocks.append(n, t.workspace);
5133
+ }, o = q.blocks.append(n, t.workspace);
5115
5134
  e.connect(o.previousConnection);
5116
5135
  }
5117
- const Ss = {
5136
+ const bs = {
5118
5137
  init: function() {
5119
5138
  this.appendDummyInput().appendField("%{BKY_DATA_V1_ADD_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_ADD_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_ADD_DATA_HELPURL}");
5120
5139
  },
@@ -5130,14 +5149,14 @@ const Ss = {
5130
5149
  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(k.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
5131
5150
  },
5132
5151
  ensureBlocks_: function() {
5133
- this.isInsertionMarker() || (ks(this), W(this, [
5152
+ this.isInsertionMarker() || (Ss(this), X(this, [
5134
5153
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
5135
5154
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
5136
5155
  ["DATA", "__data__", "x-runtime-lib.data", !0]
5137
- ]), Ns(this));
5156
+ ]), Ls(this));
5138
5157
  }
5139
5158
  };
5140
- A.add_data_v1 = Ss;
5159
+ I.add_data_v1 = bs;
5141
5160
  s.forBlock.add_data_v1 = function(t) {
5142
5161
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = s.statementToCode(t, "HANDLE");
5143
5162
  return `{
@@ -5153,7 +5172,7 @@ ${e}}
5153
5172
  ${o}}
5154
5173
  `;
5155
5174
  };
5156
- const Ls = {
5175
+ const Bs = {
5157
5176
  init: function() {
5158
5177
  this.space = {
5159
5178
  id: "",
@@ -5196,7 +5215,7 @@ const Ls = {
5196
5215
  if (!t)
5197
5216
  return;
5198
5217
  this.space.id = t.id, this.space.name = t.name;
5199
- const e = q(this.space.id)?.[0];
5218
+ const e = z(this.space.id)?.[0];
5200
5219
  if (!e)
5201
5220
  return;
5202
5221
  this.table.id = e.id, this.table.name = e.name;
@@ -5222,10 +5241,10 @@ const Ls = {
5222
5241
  return Re(this.space.id);
5223
5242
  },
5224
5243
  genColumnOpts_: function() {
5225
- return Cs(this.space.id, this.table.id);
5244
+ return Ns(this.space.id, this.table.id);
5226
5245
  },
5227
5246
  onchange: function(t) {
5228
- if (t.type === P.STATE_CHANGE)
5247
+ if (t.type === R.STATE_CHANGE)
5229
5248
  this.checkWarning_();
5230
5249
  else if (t.type === v.BLOCK_CHANGE) {
5231
5250
  const e = t;
@@ -5242,7 +5261,7 @@ const Ls = {
5242
5261
  }
5243
5262
  const n = e.id !== this.space.id;
5244
5263
  if (this.space.id = e.id, this.space.name = e.name, n || !it(this.space.id, this.table.id)) {
5245
- const o = q(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5264
+ const o = z(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5246
5265
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
5247
5266
  }
5248
5267
  },
@@ -5314,7 +5333,7 @@ const Ls = {
5314
5333
  this.setWarningText(null);
5315
5334
  }
5316
5335
  };
5317
- A.cond_atomic_v1 = Ls;
5336
+ I.cond_atomic_v1 = Bs;
5318
5337
  s.forBlock.cond_atomic_v1 = function(t) {
5319
5338
  const e = s.quote_, n = t, o = n.column.name, i = s.valueToCode(n, "VALUE", u.ATOMIC) || null, c = {
5320
5339
  EQ: "=",
@@ -5326,19 +5345,19 @@ s.forBlock.cond_atomic_v1 = function(t) {
5326
5345
  }[n.getFieldValue("OP")];
5327
5346
  return [`{type:'ATOMIC',key:${e(o)},value:${i},operator:${e(c)}}`, u.ATOMIC];
5328
5347
  };
5329
- const Bs = {
5348
+ const Ps = {
5330
5349
  init: function() {
5331
5350
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("logic_blocks"), this.contextMenu = !1;
5332
5351
  }
5333
5352
  };
5334
- A.cond_logic_container_v1 = Bs;
5335
- const bs = {
5353
+ I.cond_logic_container_v1 = Ps;
5354
+ const Rs = {
5336
5355
  init: function() {
5337
5356
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("logic_blocks"), this.contextMenu = !1;
5338
5357
  }
5339
5358
  };
5340
- A.cond_logic_item_v1 = bs;
5341
- const Ps = {
5359
+ I.cond_logic_item_v1 = Rs;
5360
+ const Ds = {
5342
5361
  init: function() {
5343
5362
  this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
5344
5363
  new O([
@@ -5412,7 +5431,7 @@ const Ps = {
5412
5431
  this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setCheck("Condition");
5413
5432
  }
5414
5433
  };
5415
- A.cond_logic_v1 = Ps;
5434
+ I.cond_logic_v1 = Ds;
5416
5435
  s.forBlock.cond_logic_v1 = function(t) {
5417
5436
  const e = s.quote_, n = t, o = n.getFieldValue("TYPE"), i = [], a = s.valueToCode(n, "VALUE", u.ATOMIC) || null;
5418
5437
  i.push(a);
@@ -5422,11 +5441,11 @@ s.forBlock.cond_logic_v1 = function(t) {
5422
5441
  }
5423
5442
  return [`{type:${e(o)},entries:[${i}]}`, u.ATOMIC];
5424
5443
  };
5425
- function Rs(t) {
5444
+ function Ms(t) {
5426
5445
  const e = t.getInput("TABLE").connection;
5427
5446
  if (e.targetBlock())
5428
5447
  return;
5429
- const n = ct()?.[0], o = q(n?.id ?? "")?.[0], i = {
5448
+ const n = ct()?.[0], o = z(n?.id ?? "")?.[0], i = {
5430
5449
  type: "select_table_v1",
5431
5450
  extraState: {
5432
5451
  space: {
@@ -5438,14 +5457,14 @@ function Rs(t) {
5438
5457
  name: o?.name ?? ""
5439
5458
  }
5440
5459
  }
5441
- }, a = X.blocks.append(i, t.workspace);
5460
+ }, a = q.blocks.append(i, t.workspace);
5442
5461
  e.connect(a.outputConnection);
5443
5462
  }
5444
- function Ds(t) {
5463
+ function Us(t) {
5445
5464
  const e = t.getInput("CONDITION").connection;
5446
5465
  if (e.targetBlock())
5447
5466
  return;
5448
- const n = ct()?.[0], o = q(n?.id ?? "")?.[0], i = Ee(n?.id, o?.id)?.[0], a = {
5467
+ const n = ct()?.[0], o = z(n?.id ?? "")?.[0], i = Ee(n?.id, o?.id)?.[0], a = {
5449
5468
  type: "cond_atomic_v1",
5450
5469
  extraState: {
5451
5470
  space: {
@@ -5463,10 +5482,10 @@ function Ds(t) {
5463
5482
  extend: i?.extend ?? ""
5464
5483
  }
5465
5484
  }
5466
- }, c = X.blocks.append(a, t.workspace);
5485
+ }, c = q.blocks.append(a, t.workspace);
5467
5486
  e.connect(c.outputConnection);
5468
5487
  }
5469
- function Ms(t) {
5488
+ function Vs(t) {
5470
5489
  const e = t.getInput("HANDLE").connection;
5471
5490
  if (e.targetBlock())
5472
5491
  return;
@@ -5487,10 +5506,10 @@ function Ms(t) {
5487
5506
  }
5488
5507
  }
5489
5508
  }
5490
- }, o = X.blocks.append(n, t.workspace);
5509
+ }, o = q.blocks.append(n, t.workspace);
5491
5510
  e.connect(o.previousConnection);
5492
5511
  }
5493
- const Us = {
5512
+ const xs = {
5494
5513
  init: function() {
5495
5514
  this.appendDummyInput().appendField("%{BKY_DATA_V1_DELETE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_DELETE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_DELETE_DATA_HELPURL}");
5496
5515
  },
@@ -5506,13 +5525,13 @@ const Us = {
5506
5525
  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(k.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(k.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5507
5526
  },
5508
5527
  ensureBlocks_: function() {
5509
- this.isInsertionMarker() || (Rs(this), Ds(this), W(this, [
5528
+ this.isInsertionMarker() || (Ms(this), Us(this), X(this, [
5510
5529
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
5511
5530
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0]
5512
- ]), Ms(this));
5531
+ ]), Vs(this));
5513
5532
  }
5514
5533
  };
5515
- A.delete_data_v1 = Us;
5534
+ I.delete_data_v1 = xs;
5516
5535
  s.forBlock.delete_data_v1 = function(t) {
5517
5536
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", u.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
5518
5537
  return `{
@@ -5550,14 +5569,14 @@ s.forBlock.interrupt_transaction_v1 = function(t) {
5550
5569
  return `throw ${s.valueToCode(t, "VALUE", u.NONE) || "''"};
5551
5570
  `;
5552
5571
  };
5553
- function Vs(t) {
5572
+ function Fs(t) {
5554
5573
  const e = t.getInput("TABLE").connection;
5555
5574
  if (e.targetBlock())
5556
5575
  return;
5557
5576
  let n, o;
5558
5577
  const i = ct()?.[0];
5559
5578
  if (i) {
5560
- const r = q(i.id)?.[0];
5579
+ const r = z(i.id)?.[0];
5561
5580
  if (r) {
5562
5581
  n = {
5563
5582
  space: {
@@ -5581,19 +5600,19 @@ function Vs(t) {
5581
5600
  type: "select_column_v1",
5582
5601
  extraState: n,
5583
5602
  fields: o
5584
- }, c = X.blocks.append(a, t.workspace);
5603
+ }, c = q.blocks.append(a, t.workspace);
5585
5604
  e.connect(c.outputConnection);
5586
5605
  }
5587
- function xs(t) {
5606
+ function ws(t) {
5588
5607
  const e = t.getInput("CONDITION").connection;
5589
5608
  if (e.targetBlock())
5590
5609
  return;
5591
5610
  const n = {
5592
5611
  type: "cond_atomic_v1"
5593
- }, o = X.blocks.append(n, t.workspace);
5612
+ }, o = q.blocks.append(n, t.workspace);
5594
5613
  e.connect(o.outputConnection);
5595
5614
  }
5596
- function Fs(t) {
5615
+ function Ys(t) {
5597
5616
  const e = t.getInput("EXTRA").connection;
5598
5617
  if (e.targetBlock())
5599
5618
  return;
@@ -5627,10 +5646,10 @@ function Fs(t) {
5627
5646
  }
5628
5647
  }
5629
5648
  }
5630
- }, o = X.blocks.append(n, t.workspace);
5649
+ }, o = q.blocks.append(n, t.workspace);
5631
5650
  e.connect(o.outputConnection);
5632
5651
  }
5633
- function ws(t) {
5652
+ function Ks(t) {
5634
5653
  const e = t.getInput("HANDLE").connection;
5635
5654
  if (e.targetBlock())
5636
5655
  return;
@@ -5651,7 +5670,7 @@ function ws(t) {
5651
5670
  }
5652
5671
  }
5653
5672
  }
5654
- }, o = X.blocks.append(n, t.workspace);
5673
+ }, o = q.blocks.append(n, t.workspace);
5655
5674
  e.connect(o.previousConnection);
5656
5675
  }
5657
5676
  g([
@@ -5668,7 +5687,7 @@ g([
5668
5687
  style: "procedure_blocks"
5669
5688
  }
5670
5689
  ]);
5671
- const Ys = {
5690
+ const $s = {
5672
5691
  init: function() {
5673
5692
  this.appendDummyInput().appendField("%{BKY_DATA_V1_QUERY_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_QUERY_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_QUERY_DATA_HELPURL}");
5674
5693
  },
@@ -5684,15 +5703,15 @@ const Ys = {
5684
5703
  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(k.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(k.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(k.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5685
5704
  },
5686
5705
  ensureBlocks_: function() {
5687
- this.isInsertionMarker() || (Vs(this), xs(this), Fs(this), W(this, [
5706
+ this.isInsertionMarker() || (Fs(this), ws(this), Ys(this), X(this, [
5688
5707
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
5689
5708
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
5690
5709
  ["MAIN_DATA", "__mainData__", "x-runtime-lib.mainData", !0],
5691
5710
  ["EXTRA_DATA", "__extraData__", "x-runtime-lib.extraData", !0]
5692
- ]), ws(this));
5711
+ ]), Ks(this));
5693
5712
  }
5694
5713
  };
5695
- A.query_data_v1 = Ys;
5714
+ I.query_data_v1 = $s;
5696
5715
  s.forBlock.query_data_v1 = function(t) {
5697
5716
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", u.ATOMIC) || "null", i = s.valueToCode(t, "EXTRA", u.ATOMIC) || "null", a = s.statementToCode(t, "HANDLE");
5698
5717
  return `{
@@ -5765,19 +5784,19 @@ s.forBlock.query_extra_sortby_v1 = function(t) {
5765
5784
  const e = s.valueToCode(t, "COLUMN", u.ATOMIC) || "''", n = s.valueToCode(t, "DESC", u.ATOMIC) || !1;
5766
5785
  return [`{type:'sortby',value:${e},value2:${n}}`, u.ATOMIC];
5767
5786
  };
5768
- const Ks = {
5787
+ const Hs = {
5769
5788
  init: function() {
5770
5789
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
5771
5790
  }
5772
5791
  };
5773
- A.select_column_container_v1 = Ks;
5774
- const $s = {
5792
+ I.select_column_container_v1 = Hs;
5793
+ const Gs = {
5775
5794
  init: function() {
5776
5795
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
5777
5796
  }
5778
5797
  };
5779
- A.select_column_item_v1 = $s;
5780
- const Hs = {
5798
+ I.select_column_item_v1 = Gs;
5799
+ const Ws = {
5781
5800
  init: function() {
5782
5801
  this.space = {
5783
5802
  id: "",
@@ -5808,7 +5827,7 @@ const Hs = {
5808
5827
  this.space.id = t.id, this.space.name = t.name;
5809
5828
  const e = this.getField("SPACE");
5810
5829
  e.getOptions(!1), e.setValue(this.space.id, !1);
5811
- const n = q(this.space.id)?.[0];
5830
+ const n = z(this.space.id)?.[0];
5812
5831
  if (!n)
5813
5832
  return;
5814
5833
  this.table.id = n.id, this.table.name = n.name, this.table.columns = n.columns;
@@ -5837,10 +5856,10 @@ const Hs = {
5837
5856
  const t = [];
5838
5857
  return this.table.columns.forEach(({ id: e, name: n }) => {
5839
5858
  t.push([n, e]);
5840
- }), B(t);
5859
+ }), b(t);
5841
5860
  },
5842
5861
  onchange: function(t) {
5843
- if (t.type === P.STATE_CHANGE)
5862
+ if (t.type === R.STATE_CHANGE)
5844
5863
  this.checkWarning_();
5845
5864
  else if (t.type === v.BLOCK_CHANGE) {
5846
5865
  const e = t;
@@ -5869,7 +5888,7 @@ const Hs = {
5869
5888
  }
5870
5889
  const n = e.id !== this.space.id;
5871
5890
  if (this.space.id = e.id, this.space.name = e.name, n || !it(this.space.id, this.table.id)) {
5872
- const o = q(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5891
+ const o = z(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5873
5892
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
5874
5893
  }
5875
5894
  },
@@ -5986,7 +6005,7 @@ const Hs = {
5986
6005
  this.setWarningText(null);
5987
6006
  }
5988
6007
  };
5989
- A.select_column_v1 = Hs;
6008
+ I.select_column_v1 = Ws;
5990
6009
  s.forBlock.select_column_v1 = function(t) {
5991
6010
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5992
6011
  for (let _ = 0; _ < n.itemCount_; _++) {
@@ -5998,7 +6017,7 @@ s.forBlock.select_column_v1 = function(t) {
5998
6017
  l !== 0 && (c += ","), c += `{name:${e(_)},alias:${e(h)}}`;
5999
6018
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, u.ATOMIC];
6000
6019
  };
6001
- const Gs = {
6020
+ const js = {
6002
6021
  init: function() {
6003
6022
  this.space = {
6004
6023
  id: "",
@@ -6023,7 +6042,7 @@ const Gs = {
6023
6042
  this.space.id = t.id, this.space.name = t.name;
6024
6043
  const e = this.getField("SPACE");
6025
6044
  e.getOptions(!1), e.setValue(this.space.id);
6026
- const n = q(this.space.id)?.[0];
6045
+ const n = z(this.space.id)?.[0];
6027
6046
  if (!n)
6028
6047
  return;
6029
6048
  this.table.id = n.id, this.table.name = n.name;
@@ -6046,7 +6065,7 @@ const Gs = {
6046
6065
  return Re(this.space.id);
6047
6066
  },
6048
6067
  onchange: function(t) {
6049
- if (t.type === P.STATE_CHANGE)
6068
+ if (t.type === R.STATE_CHANGE)
6050
6069
  this.checkWarning_();
6051
6070
  else if (t.type === v.BLOCK_CHANGE) {
6052
6071
  const e = t;
@@ -6063,7 +6082,7 @@ const Gs = {
6063
6082
  }
6064
6083
  let n = !1;
6065
6084
  if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !it(this.space.id, this.table.id)) {
6066
- const i = q(this.space.id)?.[0];
6085
+ const i = z(this.space.id)?.[0];
6067
6086
  i ? this.setFieldValue(i.id, "TABLE") : this.setFieldValue("", "TABLE");
6068
6087
  }
6069
6088
  },
@@ -6090,12 +6109,12 @@ const Gs = {
6090
6109
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
6091
6110
  }
6092
6111
  };
6093
- A.select_table_v1 = Gs;
6112
+ I.select_table_v1 = js;
6094
6113
  s.forBlock.select_table_v1 = function(t) {
6095
6114
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id;
6096
6115
  return [`{spaceId:${e(o)},tableId:${e(i)}}`, u.ATOMIC];
6097
6116
  };
6098
- const Ws = {
6117
+ const Xs = {
6099
6118
  init: function() {
6100
6119
  this.appendDummyInput().appendField("%{BKY_DATA_V1_TRANSACTION_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_TRANSACTION_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_TRANSACTION_HELPURL}");
6101
6120
  },
@@ -6111,13 +6130,13 @@ const Ws = {
6111
6130
  this.getInput("FINALLY") || this.appendStatementInput("FINALLY").appendField("%{BKY_DATA_FINALLY}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "FINALLY")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("HANDLE") || (this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.moveInputBefore("HANDLE", "SUCCESS"));
6112
6131
  },
6113
6132
  ensureBlocks_: function() {
6114
- this.isInsertionMarker() || W(this, [
6133
+ this.isInsertionMarker() || X(this, [
6115
6134
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
6116
6135
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0]
6117
6136
  ]);
6118
6137
  }
6119
6138
  };
6120
- A.transaction_v1 = Ws;
6139
+ I.transaction_v1 = Xs;
6121
6140
  s.forBlock.transaction_v1 = function(t) {
6122
6141
  const e = s.INDENT, n = t, o = Oi(n), i = s.statementToCode(n, "HANDLE"), a = s.statementToCode(n, "FINALLY");
6123
6142
  return `{
@@ -6161,19 +6180,19 @@ ${e}}
6161
6180
  }
6162
6181
  `;
6163
6182
  };
6164
- const js = {
6183
+ const Js = {
6165
6184
  init: function() {
6166
6185
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
6167
6186
  }
6168
6187
  };
6169
- A.update_column_container_v1 = js;
6170
- const Xs = {
6188
+ I.update_column_container_v1 = Js;
6189
+ const qs = {
6171
6190
  init: function() {
6172
6191
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
6173
6192
  }
6174
6193
  };
6175
- A.update_column_item_v1 = Xs;
6176
- const Js = {
6194
+ I.update_column_item_v1 = qs;
6195
+ const Qs = {
6177
6196
  init: function() {
6178
6197
  this.space = {
6179
6198
  id: "",
@@ -6204,7 +6223,7 @@ const Js = {
6204
6223
  this.space.id = t.id, this.space.name = t.name;
6205
6224
  const e = this.getField("SPACE");
6206
6225
  e.getOptions(!1), e.setValue(this.space.id, !1);
6207
- const n = q(this.space.id)?.[0];
6226
+ const n = z(this.space.id)?.[0];
6208
6227
  if (!n)
6209
6228
  return;
6210
6229
  this.table.id = n.id, this.table.name = n.name, this.table.columns = n.columns;
@@ -6233,10 +6252,10 @@ const Js = {
6233
6252
  const t = [];
6234
6253
  return this.table.columns.forEach(({ id: e, name: n }) => {
6235
6254
  t.push([n, e]);
6236
- }), B(t);
6255
+ }), b(t);
6237
6256
  },
6238
6257
  onchange: function(t) {
6239
- if (t.type === P.STATE_CHANGE)
6258
+ if (t.type === R.STATE_CHANGE)
6240
6259
  this.checkWarning_();
6241
6260
  else if (t.type === v.BLOCK_CHANGE) {
6242
6261
  const e = t;
@@ -6265,7 +6284,7 @@ const Js = {
6265
6284
  }
6266
6285
  const n = e.id !== this.space.id;
6267
6286
  if (this.space.id = e.id, this.space.name = e.name, n || !it(this.space.id, this.table.id)) {
6268
- const o = q(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
6287
+ const o = z(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
6269
6288
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
6270
6289
  }
6271
6290
  },
@@ -6417,7 +6436,7 @@ const Js = {
6417
6436
  this.setWarningText(null);
6418
6437
  }
6419
6438
  };
6420
- A.update_column_v1 = Js;
6439
+ I.update_column_v1 = Qs;
6421
6440
  s.forBlock.update_column_v1 = function(t) {
6422
6441
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
6423
6442
  for (let _ = 0; _ < n.itemCount_; _++) {
@@ -6429,14 +6448,14 @@ s.forBlock.update_column_v1 = function(t) {
6429
6448
  l !== 0 && (c += ","), c += `{name:${e(_)},value:${h}}`;
6430
6449
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, u.ATOMIC];
6431
6450
  };
6432
- function qs(t) {
6451
+ function zs(t) {
6433
6452
  const e = t.getInput("TABLE").connection;
6434
6453
  if (e.targetBlock())
6435
6454
  return;
6436
6455
  let n, o;
6437
6456
  const i = ct()?.[0];
6438
6457
  if (i) {
6439
- const r = q(i.id)?.[0];
6458
+ const r = z(i.id)?.[0];
6440
6459
  if (r) {
6441
6460
  n = {
6442
6461
  space: {
@@ -6460,19 +6479,19 @@ function qs(t) {
6460
6479
  type: "update_column_v1",
6461
6480
  extraState: n,
6462
6481
  fields: o
6463
- }, c = X.blocks.append(a, t.workspace);
6482
+ }, c = q.blocks.append(a, t.workspace);
6464
6483
  e.connect(c.outputConnection);
6465
6484
  }
6466
- function Qs(t) {
6485
+ function Zs(t) {
6467
6486
  const e = t.getInput("CONDITION").connection;
6468
6487
  if (e.targetBlock())
6469
6488
  return;
6470
6489
  const n = {
6471
6490
  type: "cond_atomic_v1"
6472
- }, o = X.blocks.append(n, t.workspace);
6491
+ }, o = q.blocks.append(n, t.workspace);
6473
6492
  e.connect(o.outputConnection);
6474
6493
  }
6475
- function zs(t) {
6494
+ function ta(t) {
6476
6495
  const e = t.getInput("HANDLE").connection;
6477
6496
  if (e.targetBlock())
6478
6497
  return;
@@ -6493,10 +6512,10 @@ function zs(t) {
6493
6512
  }
6494
6513
  }
6495
6514
  }
6496
- }, o = X.blocks.append(n, t.workspace);
6515
+ }, o = q.blocks.append(n, t.workspace);
6497
6516
  e.connect(o.previousConnection);
6498
6517
  }
6499
- const Zs = {
6518
+ const ea = {
6500
6519
  init: function() {
6501
6520
  this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_UPDATE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_UPDATE_DATA_HELPURL}");
6502
6521
  },
@@ -6512,14 +6531,14 @@ const Zs = {
6512
6531
  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(k.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(k.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
6513
6532
  },
6514
6533
  ensureBlocks: function() {
6515
- this.isInsertionMarker() || (qs(this), Qs(this), W(this, [
6534
+ this.isInsertionMarker() || (zs(this), Zs(this), X(this, [
6516
6535
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
6517
6536
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
6518
6537
  ["DATA", "__data__", "x-runtime-lib.data", !0]
6519
- ]), zs(this));
6538
+ ]), ta(this));
6520
6539
  }
6521
6540
  };
6522
- A.update_data_v1 = Zs;
6541
+ I.update_data_v1 = ea;
6523
6542
  s.forBlock.update_data_v1 = function(t) {
6524
6543
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", u.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
6525
6544
  return `{
@@ -6536,7 +6555,7 @@ ${e}}
6536
6555
  ${i}}
6537
6556
  `;
6538
6557
  };
6539
- const ta = S.xml, ea = {
6558
+ const na = S.xml, oa = {
6540
6559
  init: function() {
6541
6560
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
6542
6561
  new rt(xt, 20, 20, void 0, () => {
@@ -6545,11 +6564,11 @@ const ta = S.xml, ea = {
6545
6564
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
6546
6565
  },
6547
6566
  mutationToDom: function() {
6548
- const t = ta.createElement("mutation");
6567
+ const t = na.createElement("mutation");
6549
6568
  return t.setAttribute("items", String(this.length)), t;
6550
6569
  },
6551
6570
  domToMutation: function(t) {
6552
- this.length = Ht(t.getAttribute("items") ?? "", 0), this.initShape_();
6571
+ this.length = Wt(t.getAttribute("items") ?? "", 0), this.initShape_();
6553
6572
  },
6554
6573
  initData: function(t) {
6555
6574
  this.length = t, this.initShape_();
@@ -6562,7 +6581,7 @@ const ta = S.xml, ea = {
6562
6581
  this.isInFlyout || this.addEntry_(n);
6563
6582
  })
6564
6583
  ), n.appendField(new Nn(String(t))), n.appendField(
6565
- new rt(ue, 20, 20, void 0, () => {
6584
+ new rt(pe, 20, 20, void 0, () => {
6566
6585
  this.isInFlyout || this.removeEntry_(n);
6567
6586
  })
6568
6587
  ), this.moveInputBefore(e, "ADD");
@@ -6570,7 +6589,7 @@ const ta = S.xml, ea = {
6570
6589
  },
6571
6590
  addEntry_: function(t) {
6572
6591
  let e = this.length;
6573
- t && (e = Ht(t.name.substring(5)));
6592
+ t && (e = Wt(t.name.substring(5)));
6574
6593
  for (let o = this.length - 1; o >= e; o--) {
6575
6594
  const i = this.getInput("ENTRY" + o);
6576
6595
  i.name = "ENTRY" + (o + 1), i.fieldRow[1].setValue(o + 1);
@@ -6581,7 +6600,7 @@ const ta = S.xml, ea = {
6581
6600
  this.isInFlyout || this.addEntry_(n);
6582
6601
  })
6583
6602
  ), n.appendField(new Nn(String(e))), n.appendField(
6584
- new rt(ue, 20, 20, void 0, () => {
6603
+ new rt(pe, 20, 20, void 0, () => {
6585
6604
  this.isInFlyout || this.removeEntry_(n);
6586
6605
  })
6587
6606
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -6589,7 +6608,7 @@ const ta = S.xml, ea = {
6589
6608
  removeEntry_: function(t) {
6590
6609
  const e = t.name, n = this.getInputTargetBlock(e);
6591
6610
  n && n.dispose(), this.removeInput(e);
6592
- const o = Ht(e.substring(5));
6611
+ const o = Wt(e.substring(5));
6593
6612
  for (let i = o + 1; i < this.length; i++) {
6594
6613
  const a = this.getInput("ENTRY" + i);
6595
6614
  a.name = "ENTRY" + (i - 1), a.fieldRow[1].setValue(i - 1);
@@ -6597,8 +6616,8 @@ const ta = S.xml, ea = {
6597
6616
  this.length--;
6598
6617
  }
6599
6618
  };
6600
- A.json_array_v1 = ea;
6601
- const na = {
6619
+ I.json_array_v1 = oa;
6620
+ const ia = {
6602
6621
  init: function() {
6603
6622
  this.appendDummyInput().appendField(
6604
6623
  new O([
@@ -6609,8 +6628,8 @@ const na = {
6609
6628
  ), this.setOutput(!0, "JsonBoolean"), this.setColour(210);
6610
6629
  }
6611
6630
  };
6612
- A.json_boolean_v1 = na;
6613
- const xn = S.xml, oa = {
6631
+ I.json_boolean_v1 = ia;
6632
+ const xn = S.xml, sa = {
6614
6633
  init: function() {
6615
6634
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
6616
6635
  new rt(xt, 20, 20, void 0, () => {
@@ -6645,7 +6664,7 @@ const xn = S.xml, oa = {
6645
6664
  this.isInFlyout || this.addEntry_(i);
6646
6665
  })
6647
6666
  ), i.appendField(new dt(n), "KEY" + e), i.appendField(
6648
- new rt(ue, 20, 20, void 0, () => {
6667
+ new rt(pe, 20, 20, void 0, () => {
6649
6668
  this.isInFlyout || this.removeEntry_(i);
6650
6669
  })
6651
6670
  ), this.moveInputBefore(o, "ADD");
@@ -6653,7 +6672,7 @@ const xn = S.xml, oa = {
6653
6672
  },
6654
6673
  addEntry_: function(t) {
6655
6674
  let e = this.length;
6656
- t && (e = Ht(t.name.substring(5)));
6675
+ t && (e = Wt(t.name.substring(5)));
6657
6676
  for (let o = this.length - 1; o >= e; o--)
6658
6677
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
6659
6678
  const n = this.appendValueInput("ENTRY" + e);
@@ -6662,7 +6681,7 @@ const xn = S.xml, oa = {
6662
6681
  this.isInFlyout || this.addEntry_(n);
6663
6682
  })
6664
6683
  ), n.appendField(new dt("key"), "KEY" + e), n.appendField(
6665
- new rt(ue, 20, 20, void 0, () => {
6684
+ new rt(pe, 20, 20, void 0, () => {
6666
6685
  this.isInFlyout || this.removeEntry_(n);
6667
6686
  })
6668
6687
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -6670,44 +6689,44 @@ const xn = S.xml, oa = {
6670
6689
  removeEntry_: function(t) {
6671
6690
  const e = t.name, n = this.getInputTargetBlock(e);
6672
6691
  n && n.dispose(), this.removeInput(e);
6673
- const o = Ht(e.substring(5));
6692
+ const o = Wt(e.substring(5));
6674
6693
  for (let i = o + 1; i < this.length; i++)
6675
6694
  this.getField("KEY" + i).name = "KEY" + (i - 1), this.getInput("ENTRY" + i).name = "ENTRY" + (i - 1);
6676
6695
  this.length--;
6677
6696
  }
6678
6697
  };
6679
- A.json_map_v1 = oa;
6680
- const ia = {
6698
+ I.json_map_v1 = sa;
6699
+ const aa = {
6681
6700
  init: function() {
6682
6701
  this.appendDummyInput().appendField(new Ze(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
6683
6702
  }
6684
6703
  };
6685
- A.json_number_v1 = ia;
6686
- const sa = {
6704
+ I.json_number_v1 = aa;
6705
+ const ca = {
6687
6706
  init: function() {
6688
6707
  this.appendDummyInput().setAlign(k.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
6689
6708
  }
6690
6709
  };
6691
- A.json_root_v1 = sa;
6692
- const aa = {
6710
+ I.json_root_v1 = ca;
6711
+ const ra = {
6693
6712
  init: function() {
6694
6713
  this.appendDummyInput().appendField('"').appendField(new dt(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
6695
6714
  }
6696
6715
  };
6697
- A.json_string_v1 = aa;
6698
- const ca = S.xml, ra = {
6716
+ I.json_string_v1 = ra;
6717
+ const la = S.xml, ua = {
6699
6718
  init: function() {
6700
6719
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
6701
6720
  }
6702
6721
  };
6703
- A.list_create_container_v1 = ra;
6704
- const la = {
6722
+ I.list_create_container_v1 = ua;
6723
+ const _a = {
6705
6724
  init: function() {
6706
6725
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("list_blocks"), this.contextMenu = !1;
6707
6726
  }
6708
6727
  };
6709
- A.list_create_item_v1 = la;
6710
- const ua = {
6728
+ I.list_create_item_v1 = _a;
6729
+ const pa = {
6711
6730
  init: function() {
6712
6731
  this.itemCount_ = 0, this.setMutator(
6713
6732
  new vt.MutatorIcon(
@@ -6717,7 +6736,7 @@ const ua = {
6717
6736
  ), this.setOutput(!0, "Array"), this.setStyle("list_blocks"), this.setTooltip("%{BKY_LIST_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_LIST_V1_CREATE_HELPURL}"), this.updateShape_();
6718
6737
  },
6719
6738
  mutationToDom: function() {
6720
- const t = ca.createElement("mutation");
6739
+ const t = la.createElement("mutation");
6721
6740
  return t.setAttribute("items", String(this.itemCount_)), t;
6722
6741
  },
6723
6742
  domToMutation: function(t) {
@@ -6789,7 +6808,7 @@ const ua = {
6789
6808
  this.removeInput("ADD" + t);
6790
6809
  }
6791
6810
  };
6792
- A.list_create_v1 = ua;
6811
+ I.list_create_v1 = pa;
6793
6812
  s.forBlock.list_create_v1 = function(t) {
6794
6813
  const e = t, n = new Array(e.itemCount_);
6795
6814
  for (let i = 0; i < e.itemCount_; i++)
@@ -7005,7 +7024,7 @@ s.forBlock.list_set_v1 = function(t) {
7005
7024
  return `${e}[${n}] = ${o};
7006
7025
  `;
7007
7026
  };
7008
- const _a = {
7027
+ const da = {
7009
7028
  // logic_compare
7010
7029
  EQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_EQ}",
7011
7030
  NEQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_NEQ}",
@@ -7019,7 +7038,7 @@ const _a = {
7019
7038
  };
7020
7039
  V.register(
7021
7040
  "logic_op_tooltip_v1",
7022
- V.buildTooltipForDropdown("OP", _a)
7041
+ V.buildTooltipForDropdown("OP", da)
7023
7042
  );
7024
7043
  g([
7025
7044
  {
@@ -7044,7 +7063,7 @@ g([
7044
7063
  s.forBlock.logic_boolean_v1 = function(t) {
7045
7064
  return [t.getFieldValue("BOOL") === "TRUE" ? "true" : "false", u.ATOMIC];
7046
7065
  };
7047
- const pa = {
7066
+ const ha = {
7048
7067
  onchange: function(t) {
7049
7068
  this.prevBlocks_ || (this.prevBlocks_ = [null, null]);
7050
7069
  const e = this.getInputTargetBlock("A"), n = this.getInputTargetBlock("B");
@@ -7064,7 +7083,7 @@ const pa = {
7064
7083
  V.register(
7065
7084
  "logic_compare_v1",
7066
7085
  function() {
7067
- this.mixin(pa);
7086
+ this.mixin(ha);
7068
7087
  }
7069
7088
  );
7070
7089
  g([
@@ -7114,7 +7133,7 @@ s.forBlock.logic_compare_v1 = function(t) {
7114
7133
  const i = s.valueToCode(t, "A", o) || "0", a = s.valueToCode(t, "B", o) || "0";
7115
7134
  return [`${i} ${n} ${a}`, o];
7116
7135
  };
7117
- const da = {
7136
+ const fa = {
7118
7137
  elseIfCount_: 0,
7119
7138
  hasElse_: !1,
7120
7139
  mutationToDom: function() {
@@ -7241,7 +7260,7 @@ const da = {
7241
7260
  };
7242
7261
  V.registerMutator(
7243
7262
  "logic_if_v1_mutator",
7244
- da,
7263
+ fa,
7245
7264
  void 0,
7246
7265
  ["logic_if_else_if_v1", "logic_if_else_v1"]
7247
7266
  );
@@ -7387,7 +7406,7 @@ s.forBlock.logic_operation_v1 = function(t) {
7387
7406
  }
7388
7407
  return [`${o} ${e} ${i}`, n];
7389
7408
  };
7390
- const ha = {
7409
+ const ma = {
7391
7410
  prevParentConnection_: null,
7392
7411
  onchange: function(t) {
7393
7412
  const e = this.getInputTargetBlock("THEN"), n = this.getInputTargetBlock("ELSE"), o = this.outputConnection.targetConnection;
@@ -7402,7 +7421,7 @@ const ha = {
7402
7421
  this.prevParentConnection_ = o;
7403
7422
  }
7404
7423
  };
7405
- V.registerMixin("logic_ternary_v1", ha);
7424
+ V.registerMixin("logic_ternary_v1", ma);
7406
7425
  g([
7407
7426
  {
7408
7427
  type: "logic_ternary_v1",
@@ -7439,7 +7458,7 @@ s.forBlock.logic_ternary_v1 = function(t) {
7439
7458
  const e = s.valueToCode(t, "IF", u.CONDITIONAL) || "false", n = s.valueToCode(t, "THEN", u.CONDITIONAL) || "null", o = s.valueToCode(t, "ELSE", u.CONDITIONAL) || "null";
7440
7459
  return [e + " ? " + n + " : " + o, u.CONDITIONAL];
7441
7460
  };
7442
- const fa = {
7461
+ const Ta = {
7443
7462
  customContextMenu: function(t) {
7444
7463
  if (this.isInFlyout)
7445
7464
  return;
@@ -7461,7 +7480,7 @@ const fa = {
7461
7480
  };
7462
7481
  V.registerMixin(
7463
7482
  "contextMenu_newGetVariableBlock_v1",
7464
- fa
7483
+ Ta
7465
7484
  );
7466
7485
  V.register(
7467
7486
  "flow_control_tooltip_v1",
@@ -7470,16 +7489,16 @@ V.register(
7470
7489
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
7471
7490
  })
7472
7491
  );
7473
- const ma = /* @__PURE__ */ new Set([
7492
+ const Ea = /* @__PURE__ */ new Set([
7474
7493
  "repeat_v1",
7475
7494
  "for_each_v1",
7476
7495
  "for_v1",
7477
7496
  "while_until_v1"
7478
- ]), Ta = {
7497
+ ]), ga = {
7479
7498
  getSurroundLoop: function() {
7480
7499
  let t = this;
7481
7500
  do {
7482
- if (ma.has(t.type))
7501
+ if (Ea.has(t.type))
7483
7502
  return t;
7484
7503
  t = t?.getSurroundParent();
7485
7504
  } while (t);
@@ -7500,7 +7519,7 @@ const ma = /* @__PURE__ */ new Set([
7500
7519
  };
7501
7520
  V.registerMixin(
7502
7521
  "flow_control_in_loop_check_v1",
7503
- Ta
7522
+ ga
7504
7523
  );
7505
7524
  g([
7506
7525
  {
@@ -7802,7 +7821,7 @@ s.forBlock.while_until_v1 = function(t) {
7802
7821
  ${o}}
7803
7822
  `;
7804
7823
  };
7805
- const Ea = {
7824
+ const Aa = {
7806
7825
  // math_arithmetic
7807
7826
  ADD: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_ADD}",
7808
7827
  SUBTRACT: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_SUBTRACT}",
@@ -7836,7 +7855,7 @@ const Ea = {
7836
7855
  };
7837
7856
  V.register(
7838
7857
  "math_op_tooltip_v1",
7839
- V.buildTooltipForDropdown("OP", Ea)
7858
+ V.buildTooltipForDropdown("OP", Aa)
7840
7859
  );
7841
7860
  g([
7842
7861
  {
@@ -8436,21 +8455,21 @@ s.forBlock.math_trig_v1 = function(t) {
8436
8455
  }
8437
8456
  return [o, u.DIVISION];
8438
8457
  };
8439
- const ga = S.xml, Aa = {
8458
+ const Ia = S.xml, ya = {
8440
8459
  init: function() {
8441
8460
  this.appendDummyInput().appendField(
8442
8461
  "%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"
8443
8462
  ), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
8444
8463
  }
8445
8464
  };
8446
- A.object_create_container_v1 = Aa;
8447
- const Ia = {
8465
+ I.object_create_container_v1 = ya;
8466
+ const Oa = {
8448
8467
  init: function() {
8449
8468
  this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
8450
8469
  }
8451
8470
  };
8452
- A.object_create_item_v1 = Ia;
8453
- const ya = {
8471
+ I.object_create_item_v1 = Oa;
8472
+ const va = {
8454
8473
  init: function() {
8455
8474
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
8456
8475
  new vt.MutatorIcon(
@@ -8460,7 +8479,7 @@ const ya = {
8460
8479
  ), this.setOutput(!0, "Object"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_OBJECT_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_OBJECT_V1_CREATE_HELPURL}");
8461
8480
  },
8462
8481
  mutationToDom: function() {
8463
- const t = ga.createElement("mutation");
8482
+ const t = Ia.createElement("mutation");
8464
8483
  return t.setAttribute("items", String(this.itemCount_)), t;
8465
8484
  },
8466
8485
  domToMutation: function(t) {
@@ -8524,7 +8543,7 @@ const ya = {
8524
8543
  this.removeInput("ADD" + t);
8525
8544
  }
8526
8545
  };
8527
- A.object_create_v1 = ya;
8546
+ I.object_create_v1 = va;
8528
8547
  s.forBlock.object_create_v1 = function(t) {
8529
8548
  const e = t;
8530
8549
  let n = "{";
@@ -8766,13 +8785,13 @@ g([
8766
8785
  s.forBlock.object_to_json_v1 = function(t) {
8767
8786
  return [`__jsonStringifyV1__(${s.valueToCode(t, "OBJECT", u.NONE) || "null"})`, u.FUNCTION_CALL];
8768
8787
  };
8769
- const Fn = S.xml, Oa = {
8788
+ const Fn = S.xml, Ca = {
8770
8789
  init: function() {
8771
8790
  this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new wo(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
8772
8791
  }
8773
8792
  };
8774
- A.procedure_def_container_v1 = Oa;
8775
- const va = {
8793
+ I.procedure_def_container_v1 = Ca;
8794
+ const ka = {
8776
8795
  init: function() {
8777
8796
  const t = new dt(tn.DEFAULT_ARG);
8778
8797
  t.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(t, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
@@ -8794,8 +8813,8 @@ const va = {
8794
8813
  return t;
8795
8814
  }
8796
8815
  };
8797
- A.procedure_def_item_v1 = va;
8798
- const Ca = {
8816
+ I.procedure_def_item_v1 = ka;
8817
+ const Na = {
8799
8818
  init: function() {
8800
8819
  this.withReturn = !1, this.args = [];
8801
8820
  const t = new dt(
@@ -8899,13 +8918,13 @@ const Ca = {
8899
8918
  }
8900
8919
  }
8901
8920
  };
8902
- A.procedure_def_v1 = Ca;
8903
- const ka = S.xml, Na = {
8921
+ I.procedure_def_v1 = Na;
8922
+ const Sa = S.xml, La = {
8904
8923
  init: function() {
8905
8924
  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}");
8906
8925
  },
8907
8926
  mutationToDom: function() {
8908
- const t = ka.createElement("mutation");
8927
+ const t = Sa.createElement("mutation");
8909
8928
  return t.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), t;
8910
8929
  },
8911
8930
  domToMutation: function(t) {
@@ -8924,7 +8943,7 @@ const ka = S.xml, Na = {
8924
8943
  }, 0);
8925
8944
  },
8926
8945
  onchange: function(t) {
8927
- if (t.type === P.STATE_CHANGE)
8946
+ if (t.type === R.STATE_CHANGE)
8928
8947
  this.checkWarning_();
8929
8948
  else if (t.type === v.BLOCK_DRAG) {
8930
8949
  const e = t;
@@ -8956,14 +8975,14 @@ const ka = S.xml, Na = {
8956
8975
  t.type === "procedure_def_v1" || t.type === "func_entry_v1" ? this.setWarningText(null) : this.setWarningText("the block can only be used in procedure block");
8957
8976
  }
8958
8977
  };
8959
- A.procedure_return_v1 = Na;
8978
+ I.procedure_return_v1 = La;
8960
8979
  s.forBlock.procedure_return_v1 = function(t) {
8961
8980
  const e = t;
8962
8981
  return e.withReturn ? `return ${s.valueToCode(e, "VALUE", u.NONE) || "null"};
8963
8982
  ` : `return;
8964
8983
  `;
8965
8984
  };
8966
- const Sa = {
8985
+ const ba = {
8967
8986
  init: function() {
8968
8987
  this.appendDummyInput().appendField("%{BKY_ASSET_V1_DOWNLOAD_ASSET_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_ASSET_V1_DOWNLOAD_ASSET_TOOLTIP}"), this.setHelpUrl("%{BKY_ASSET_V1_DOWNLOAD_ASSET_HELPURL}");
8969
8988
  },
@@ -8979,14 +8998,14 @@ const Sa = {
8979
8998
  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(k.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
8980
8999
  },
8981
9000
  ensureBlocks_: function() {
8982
- this.isInsertionMarker() || W(this, [
9001
+ this.isInsertionMarker() || X(this, [
8983
9002
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
8984
9003
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
8985
9004
  ["DATA", "__data__", "x-runtime-lib.data", !0]
8986
9005
  ]);
8987
9006
  }
8988
9007
  };
8989
- A.download_resource_v1 = Sa;
9008
+ I.download_resource_v1 = ba;
8990
9009
  s.forBlock.download_resource_v1 = function(t) {
8991
9010
  const e = s.valueToCode(t, "ASSET", u.ATOMIC) || null, n = s.statementToCode(t, "HANDLE");
8992
9011
  return `{
@@ -8999,7 +9018,7 @@ ${n}
8999
9018
  `;
9000
9019
  };
9001
9020
  function Eo(t) {
9002
- const e = I.resource.spaces.find((i) => i.id === t);
9021
+ const e = A.resource.spaces.find((i) => i.id === t);
9003
9022
  if (!e)
9004
9023
  return [];
9005
9024
  const n = [];
@@ -9014,14 +9033,14 @@ function Eo(t) {
9014
9033
  }
9015
9034
  return o(e.dirTree, ""), n;
9016
9035
  }
9017
- function La(t) {
9036
+ function Ba(t) {
9018
9037
  const e = [];
9019
9038
  return Eo(t).forEach(({ id: o, name: i }) => {
9020
9039
  e.push([i, o]);
9021
- }), B(e);
9040
+ }), b(e);
9022
9041
  }
9023
9042
  function go(t, e) {
9024
- const n = I.resource.spaces.find((i) => i.id === t);
9043
+ const n = A.resource.spaces.find((i) => i.id === t);
9025
9044
  if (!n)
9026
9045
  return [];
9027
9046
  const o = [];
@@ -9029,25 +9048,25 @@ function go(t, e) {
9029
9048
  i.dirid === e && o.push(i);
9030
9049
  }), o;
9031
9050
  }
9032
- function Ba(t, e) {
9051
+ function Pa(t, e) {
9033
9052
  const n = [];
9034
9053
  return go(t, e).forEach(({ id: i, name: a }) => {
9035
9054
  n.push([a, i]);
9036
- }), B(n);
9055
+ }), b(n);
9037
9056
  }
9038
9057
  function Ao() {
9039
9058
  const t = [];
9040
- return I.resource.spaces.forEach((e) => {
9059
+ return A.resource.spaces.forEach((e) => {
9041
9060
  e.resources.length > 0 && t.push(e);
9042
9061
  }), t;
9043
9062
  }
9044
- function ba() {
9063
+ function Ra() {
9045
9064
  const t = [];
9046
9065
  return Ao().forEach(({ id: n, name: o }) => {
9047
9066
  t.push([o, n]);
9048
- }), B(t);
9067
+ }), b(t);
9049
9068
  }
9050
- const Pa = {
9069
+ const Da = {
9051
9070
  init: function() {
9052
9071
  this.space = {
9053
9072
  id: "",
@@ -9099,20 +9118,20 @@ const Pa = {
9099
9118
  this.space = $e(t.space), this.dir = $e(t.dir), this.resource = $e(t.resource);
9100
9119
  },
9101
9120
  genSpaceOpts_: function() {
9102
- return ba();
9121
+ return Ra();
9103
9122
  },
9104
9123
  genDirOpts_: function() {
9105
- return La(this.space.id);
9124
+ return Ba(this.space.id);
9106
9125
  },
9107
9126
  genResourceOpts_: function() {
9108
- return Ba(this.space.id, this.dir.id);
9127
+ return Pa(this.space.id, this.dir.id);
9109
9128
  }
9110
9129
  };
9111
- A.select_resource_v1 = Pa;
9130
+ I.select_resource_v1 = Da;
9112
9131
  s.forBlock.select_resource_v1 = function() {
9113
9132
  return "";
9114
9133
  };
9115
- const Ra = {
9134
+ const Ma = {
9116
9135
  init: function() {
9117
9136
  this.appendDummyInput().appendField(
9118
9137
  "%{BKY_RESOURCE_V1_UPLOAD_RESOURCE_TITLE}"
@@ -9136,14 +9155,14 @@ const Ra = {
9136
9155
  this.getInput("NAME")?.setShadowDom(t);
9137
9156
  },
9138
9157
  ensureBlocks_: function() {
9139
- this.isInsertionMarker() || W(this, [
9158
+ this.isInsertionMarker() || X(this, [
9140
9159
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
9141
9160
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
9142
9161
  ["RESULT", "__result__", "x-runtime-lib.result", !0]
9143
9162
  ]);
9144
9163
  }
9145
9164
  };
9146
- A.upload_resource_v1 = Ra;
9165
+ I.upload_resource_v1 = Ma;
9147
9166
  s.forBlock.upload_resource_v1 = function(t) {
9148
9167
  const e = s.valueToCode(t, "NAME", u.ATOMIC) || "''", n = s.valueToCode(t, "DIR", u.ATOMIC) || "null", o = s.valueToCode(t, "DATA", u.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
9149
9168
  return `{
@@ -9176,9 +9195,9 @@ g([
9176
9195
  s.forBlock.text_v1 = function(t) {
9177
9196
  return [s.quote_(t.getFieldValue("TEXT")), u.ATOMIC];
9178
9197
  };
9179
- const Da = /^\s*'([^']|\\')*'\s*$/;
9180
- function re(t) {
9181
- return Da.test(t) ? [t, u.ATOMIC] : [`String(${t})`, u.FUNCTION_CALL];
9198
+ const Ua = /^\s*'([^']|\\')*'\s*$/;
9199
+ function ue(t) {
9200
+ return Ua.test(t) ? [t, u.ATOMIC] : [`String(${t})`, u.FUNCTION_CALL];
9182
9201
  }
9183
9202
  V.register(
9184
9203
  "text_append_tooltip_v1",
@@ -9213,7 +9232,7 @@ s.forBlock.text_append_v1 = function(t) {
9213
9232
  t.getFieldValue("VAR"),
9214
9233
  ut.NameType.VARIABLE
9215
9234
  ), n = s.valueToCode(t, "TEXT", u.NONE) || "''";
9216
- return `${e} += ${re(n)};
9235
+ return `${e} += ${ue(n)};
9217
9236
  `;
9218
9237
  };
9219
9238
  g([
@@ -9382,10 +9401,10 @@ g([
9382
9401
  s.forBlock.text_is_empty_v1 = function(t) {
9383
9402
  return [`!${s.valueToCode(t, "VALUE", u.MEMBER) || "''"}.length`, u.LOGICAL_NOT];
9384
9403
  };
9385
- const Ma = S.xml, Ua = {
9404
+ const Va = S.xml, xa = {
9386
9405
  itemCount_: 0,
9387
9406
  mutationToDom: function() {
9388
- const t = Ma.createElement("mutation");
9407
+ const t = Va.createElement("mutation");
9389
9408
  return t.setAttribute("items", `${this.itemCount_}`), t;
9390
9409
  },
9391
9410
  domToMutation: function(t) {
@@ -9456,13 +9475,13 @@ const Ma = S.xml, Ua = {
9456
9475
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
9457
9476
  this.removeInput("ADD" + t);
9458
9477
  }
9459
- }, Va = function() {
9478
+ }, Fa = function() {
9460
9479
  this.itemCount_ = 2, this.updateShape_(), this.setMutator(new vt.MutatorIcon(["text_join_item_v1"], this));
9461
9480
  };
9462
9481
  V.registerMutator(
9463
9482
  "text_join_mutator_v1",
9464
- Ua,
9465
- Va
9483
+ xa,
9484
+ Fa
9466
9485
  );
9467
9486
  g([
9468
9487
  {
@@ -9505,11 +9524,11 @@ s.forBlock.text_join_v1 = function(t) {
9505
9524
  return ["''", u.ATOMIC];
9506
9525
  case 1: {
9507
9526
  const n = s.valueToCode(e, "ADD0", u.NONE) || "''";
9508
- return re(n);
9527
+ return ue(n);
9509
9528
  }
9510
9529
  case 2: {
9511
9530
  const n = s.valueToCode(e, "ADD0", u.NONE) || "''", o = s.valueToCode(e, "ADD1", u.NONE) || "''";
9512
- return [re(n)[0] + " + " + re(o)[0], u.ADDITION];
9531
+ return [ue(n)[0] + " + " + ue(o)[0], u.ADDITION];
9513
9532
  }
9514
9533
  default: {
9515
9534
  const n = new Array(e.itemCount_);
@@ -9694,7 +9713,7 @@ s.forBlock.text_trim_v1 = function(t) {
9694
9713
  }[t.getFieldValue("MODE")];
9695
9714
  return [`__trimV1__(${e}, ${o})`, u.ATOMIC];
9696
9715
  };
9697
- const xa = {
9716
+ const wa = {
9698
9717
  init: function() {
9699
9718
  this.appendDummyInput().appendField("%{BKY_TIME_V1_CREATE_TIMER_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("time_blocks"), this.setTooltip("%{BKY_TIME_V1_CREATE_TIMER_TOOLTIP}"), this.setHelpUrl("%{BKY_TIME_V1_CREATE_TIMER_HELPURL}");
9700
9719
  },
@@ -9720,7 +9739,7 @@ const xa = {
9720
9739
  this.getInput("IMMEDIATE")?.setShadowDom(o);
9721
9740
  }
9722
9741
  };
9723
- A.create_timer_v1 = xa;
9742
+ I.create_timer_v1 = wa;
9724
9743
  s.forBlock.create_timer_v1 = function(t) {
9725
9744
  const e = s.valueToCode(t, "INTERVAL", u.ATOMIC) || "1000", n = s.valueToCode(t, "LOOP", u.ATOMIC) || "false", o = s.valueToCode(t, "COUNT", u.ATOMIC) || "1", i = s.valueToCode(t, "IMMEDIATE", u.ATOMIC) || "false", a = s.statementToCode(t, "CALLBACK");
9726
9745
  return `__createTimerV1__(${e}, ${n}, ${o}, ${i}, async function() {
@@ -9749,18 +9768,18 @@ s.forBlock.delay_v1 = function(t) {
9749
9768
  return `await __delayV1__(${s.valueToCode(t, "DURATION", u.ATOMIC) || "0"});
9750
9769
  `;
9751
9770
  };
9752
- const Fa = {
9771
+ const Ya = {
9753
9772
  customContextMenu: function(t) {
9754
9773
  if (this.isInFlyout) {
9755
9774
  if (this.type === "variable_get_v1") {
9756
9775
  const e = {
9757
9776
  text: m("RENAME_VARIABLE"),
9758
9777
  enabled: !0,
9759
- callback: wa(this)
9778
+ callback: Ka(this)
9760
9779
  }, n = this.getField("VAR").getText(), o = {
9761
9780
  text: m("DELETE_VARIABLE").replace("%1", n),
9762
9781
  enabled: !0,
9763
- callback: Ya(this)
9782
+ callback: $a(this)
9764
9783
  };
9765
9784
  t.unshift(e), t.unshift(o);
9766
9785
  }
@@ -9778,12 +9797,12 @@ const Fa = {
9778
9797
  });
9779
9798
  }
9780
9799
  }
9781
- }, wa = function(t) {
9800
+ }, Ka = function(t) {
9782
9801
  return function() {
9783
9802
  const e = t.workspace, o = t.getField("VAR").getVariable();
9784
9803
  Ut.renameVariable(e, o);
9785
9804
  };
9786
- }, Ya = function(t) {
9805
+ }, $a = function(t) {
9787
9806
  return function() {
9788
9807
  const n = t.getField("VAR").getVariable();
9789
9808
  n && Ut.deleteVariable(n.getWorkspace(), n, t);
@@ -9791,7 +9810,7 @@ const Fa = {
9791
9810
  };
9792
9811
  V.registerMixin(
9793
9812
  "context_menu_variable_v1",
9794
- Fa
9813
+ Ya
9795
9814
  );
9796
9815
  g([
9797
9816
  {
@@ -9861,18 +9880,18 @@ Gn.setPrompt(async (t, e, n) => {
9861
9880
  });
9862
9881
  o !== void 0 && n(String(o));
9863
9882
  });
9864
- const oe = O.prototype;
9865
- oe.doClassValidation_ = function(t) {
9883
+ const se = O.prototype;
9884
+ se.doClassValidation_ = function(t) {
9866
9885
  return t;
9867
9886
  };
9868
- const Ka = oe.doValueUpdate_;
9869
- oe.doValueUpdate_ = function(t) {
9870
- Ka.call(this, t), this.selectedOption && this.selectedOption[1] !== t && (this.selectedOption = null);
9887
+ const Ha = se.doValueUpdate_;
9888
+ se.doValueUpdate_ = function(t) {
9889
+ Ha.call(this, t), this.selectedOption && this.selectedOption[1] !== t && (this.selectedOption = null);
9871
9890
  };
9872
- const $a = oe.getText_;
9873
- oe.getText_ = function() {
9891
+ const Ga = se.getText_;
9892
+ se.getText_ = function() {
9874
9893
  if (this.selectedOption)
9875
- return $a.call(this);
9894
+ return Ga.call(this);
9876
9895
  const { i18n: t } = Ct, e = this.getSourceBlock();
9877
9896
  if (this.name === "APP")
9878
9897
  return e.app.name;
@@ -9881,7 +9900,7 @@ oe.getText_ = function() {
9881
9900
  if (this.name === "ELEMENT")
9882
9901
  return e.element.name;
9883
9902
  if (this.name === "NODE") {
9884
- const n = U[e.node.key];
9903
+ const n = P[e.node.key];
9885
9904
  if (n) {
9886
9905
  const o = t.global.t(n.name), i = e.node.alias;
9887
9906
  return `${o} / ${i}`;
@@ -9941,7 +9960,7 @@ function Io(t) {
9941
9960
  const e = t.getParent();
9942
9961
  return e && Io(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
9943
9962
  }
9944
- class Ha {
9963
+ class Wa {
9945
9964
  init() {
9946
9965
  const e = Ko.registry.getItem("blockDisable");
9947
9966
  e && (e.preconditionFn = function(n) {
@@ -9952,12 +9971,12 @@ class Ha {
9952
9971
  }
9953
9972
  $o.registerFieldColour();
9954
9973
  Ho.registry.unregister(Go.names.ESCAPE);
9955
- const Ga = new Wo.CrossTabCopyPaste();
9956
- Ga.init({ contextMenu: !0, shortcut: !0 });
9957
- const Wa = new Ha();
9958
- Wa.init();
9974
+ const ja = new Wo.CrossTabCopyPaste();
9975
+ ja.init({ contextMenu: !0, shortcut: !0 });
9976
+ const Xa = new Wa();
9977
+ Xa.init();
9959
9978
  function En(t) {
9960
- const e = zt();
9979
+ const e = te();
9961
9980
  if (!e)
9962
9981
  return;
9963
9982
  const n = e.getBlockById(t);
@@ -9970,7 +9989,7 @@ function En(t) {
9970
9989
  e.scroll(-a, -c);
9971
9990
  }
9972
9991
  function yo() {
9973
- const t = zt();
9992
+ const t = te();
9974
9993
  if (!t)
9975
9994
  return;
9976
9995
  const e = t.getTopBlocks(!0)?.[0];
@@ -10127,7 +10146,7 @@ Ne.Classic.categoryStyles = {
10127
10146
  colour: "#a55b80"
10128
10147
  }
10129
10148
  };
10130
- const ja = Wn.defineTheme("light", {
10149
+ const Ja = Wn.defineTheme("light", {
10131
10150
  name: "light",
10132
10151
  base: Ne.Classic,
10133
10152
  componentStyles: {
@@ -10143,7 +10162,7 @@ const ja = Wn.defineTheme("light", {
10143
10162
  scrollbarOpacity: 0.4,
10144
10163
  cursorColour: ""
10145
10164
  }
10146
- }), Xa = Wn.defineTheme("dark", {
10165
+ }), qa = Wn.defineTheme("dark", {
10147
10166
  name: "dark",
10148
10167
  base: Ne.Classic,
10149
10168
  componentStyles: {
@@ -10160,14 +10179,14 @@ const ja = Wn.defineTheme("light", {
10160
10179
  cursorColour: ""
10161
10180
  }
10162
10181
  });
10163
- function Ja(t) {
10164
- const e = zt();
10182
+ function Qa(t) {
10183
+ const e = te();
10165
10184
  switch (t) {
10166
10185
  case "light":
10167
- e.setTheme(ja);
10186
+ e.setTheme(Ja);
10168
10187
  break;
10169
10188
  case "dark":
10170
- e.setTheme(Xa);
10189
+ e.setTheme(qa);
10171
10190
  break;
10172
10191
  }
10173
10192
  }
@@ -10175,7 +10194,7 @@ const _n = ["get_app_property_v1", "get_app_state_v1"];
10175
10194
  function Et(t, e) {
10176
10195
  return t.find((o) => o === e) !== void 0 ? !1 : (t.push(e), !0);
10177
10196
  }
10178
- function qa(t) {
10197
+ function za(t) {
10179
10198
  const e = [];
10180
10199
  function n(o) {
10181
10200
  for (const i of o.getChildren(!0))
@@ -10183,23 +10202,23 @@ function qa(t) {
10183
10202
  }
10184
10203
  return n(t), e;
10185
10204
  }
10186
- function Qa(t) {
10205
+ function Za(t) {
10187
10206
  const e = [];
10188
10207
  for (const n of t)
10189
10208
  if (n.type === "get_app_property_v1") {
10190
10209
  const o = n;
10191
10210
  Et(
10192
10211
  e,
10193
- bt({
10212
+ Bt({
10194
10213
  type: "elementProperty",
10195
10214
  nodeId: o.node.id,
10196
10215
  propertyKeys: o.property.key
10197
10216
  })
10198
10217
  );
10199
- } else n.type === "get_app_state_v1" ? Et(e, bt({ type: "state", stateId: n.state.id })) : console.assert(!1);
10218
+ } else n.type === "get_app_state_v1" ? Et(e, Bt({ type: "state", stateId: n.state.id })) : console.assert(!1);
10200
10219
  return e;
10201
10220
  }
10202
- function za(t) {
10221
+ function tc(t) {
10203
10222
  const e = [];
10204
10223
  for (const n of t.getChildren(!0))
10205
10224
  if (_n.includes(n.type))
@@ -10210,7 +10229,7 @@ function za(t) {
10210
10229
  }
10211
10230
  return e;
10212
10231
  }
10213
- function Za(t) {
10232
+ function ec(t) {
10214
10233
  const e = [], n = [];
10215
10234
  for (const o of t)
10216
10235
  if (o.type === "get_app_property_v1") {
@@ -10226,12 +10245,12 @@ function Za(t) {
10226
10245
  } : (i.property.kind === "elementSlotProperty" || i.property.kind === "customSlotProperty") && (a = {
10227
10246
  type: "adaptSlotProperty",
10228
10247
  propertyId: i.property.key
10229
- }), !a || !Et(n, bt(a)))
10248
+ }), !a || !Et(n, Bt(a)))
10230
10249
  continue;
10231
10250
  e.push(a);
10232
10251
  } else if (o.type === "get_app_state_v1") {
10233
10252
  const a = { type: "state", stateId: o.state.id };
10234
- if (!Et(n, bt(a)))
10253
+ if (!Et(n, Bt(a)))
10235
10254
  continue;
10236
10255
  e.push(a);
10237
10256
  } else if (o.type === "object_get_v1") {
@@ -10256,7 +10275,7 @@ function Za(t) {
10256
10275
  type: "adaptSlotProperty",
10257
10276
  propertyId: c.property.key,
10258
10277
  subKeys: a
10259
- }), !r || !Et(n, bt(r)))
10278
+ }), !r || !Et(n, Bt(r)))
10260
10279
  continue;
10261
10280
  e.push(r);
10262
10281
  } else if (i.type === "get_app_state_v1") {
@@ -10265,7 +10284,7 @@ function Za(t) {
10265
10284
  stateId: i.state.id,
10266
10285
  subKeys: a
10267
10286
  };
10268
- if (!Et(n, bt(r)))
10287
+ if (!Et(n, Bt(r)))
10269
10288
  continue;
10270
10289
  e.push(r);
10271
10290
  } else
@@ -10274,7 +10293,7 @@ function Za(t) {
10274
10293
  console.assert(!1);
10275
10294
  return e;
10276
10295
  }
10277
- function tc(t) {
10296
+ function nc(t) {
10278
10297
  const e = {
10279
10298
  watchEffect: {},
10280
10299
  bind: {
@@ -10286,33 +10305,33 @@ function tc(t) {
10286
10305
  return e;
10287
10306
  for (const o of n)
10288
10307
  if (o.type === "watch_effect_v1") {
10289
- const i = qa(o), a = Qa(i);
10308
+ const i = za(o), a = Za(i);
10290
10309
  for (const c of a)
10291
10310
  e.watchEffect[c] || (e.watchEffect[c] = []), Et(e.watchEffect[c], o.id);
10292
10311
  } else if (o.type === "app_bind_v1") {
10293
- const i = za(o), a = Za(i);
10312
+ const i = tc(o), a = ec(i);
10294
10313
  e.bind.sets[o.id] = a;
10295
10314
  for (const c of a) {
10296
- const r = bt(c);
10315
+ const r = Bt(c);
10297
10316
  e.bind.triggers[r] || (e.bind.triggers[r] = []), Et(e.bind.triggers[r], o.id);
10298
10317
  }
10299
10318
  }
10300
10319
  return e;
10301
10320
  }
10302
10321
  const Oo = /* @__PURE__ */ Symbol();
10303
- function ec(t) {
10322
+ function oc(t) {
10304
10323
  fi(Oo, t);
10305
10324
  }
10306
10325
  function gn() {
10307
10326
  return mi(Oo);
10308
10327
  }
10309
- const nc = /* @__PURE__ */ ft({
10328
+ const ic = /* @__PURE__ */ ft({
10310
10329
  __name: "index",
10311
10330
  props: {
10312
10331
  lock: { type: Boolean }
10313
10332
  },
10314
10333
  setup(t, { expose: e }) {
10315
- const { t: n } = ee(), o = fn(), i = t, a = gn(), c = $(() => o.smAndDown.value), r = () => {
10334
+ const { t: n } = oe(), o = fn(), i = t, a = gn(), c = $(() => o.smAndDown.value), r = () => {
10316
10335
  if (!a.workspace) {
10317
10336
  console.assert(!1);
10318
10337
  return;
@@ -10327,12 +10346,12 @@ const nc = /* @__PURE__ */ ft({
10327
10346
  };
10328
10347
  return e({ cleanWorkspace: r }), (h, l) => {
10329
10348
  const d = Y("v-btn"), p = Y("v-tooltip");
10330
- return M(), _t(p, {
10349
+ return U(), _t(p, {
10331
10350
  disabled: c.value,
10332
10351
  text: w(n)("x-block-lib.tip.hotkeyCtrlQ")
10333
10352
  }, {
10334
10353
  activator: pt(({ props: f }) => [
10335
- D(d, hn(f, {
10354
+ M(d, hn(f, {
10336
10355
  density: "comfortable",
10337
10356
  icon: "mdi-broom",
10338
10357
  variant: "outlined",
@@ -10343,7 +10362,7 @@ const nc = /* @__PURE__ */ ft({
10343
10362
  }, 8, ["disabled", "text"]);
10344
10363
  };
10345
10364
  }
10346
- }), oc = /* @__PURE__ */ ft({
10365
+ }), sc = /* @__PURE__ */ ft({
10347
10366
  __name: "index",
10348
10367
  props: {
10349
10368
  modelValue: { type: Boolean, required: !0 },
@@ -10351,15 +10370,15 @@ const nc = /* @__PURE__ */ ft({
10351
10370
  },
10352
10371
  emits: ["update:modelValue"],
10353
10372
  setup(t) {
10354
- const { t: e } = ee(), n = fn(), o = jt(t, "modelValue"), i = $(() => n.smAndDown.value);
10373
+ const { t: e } = oe(), n = fn(), o = Jt(t, "modelValue"), i = $(() => n.smAndDown.value);
10355
10374
  return (a, c) => {
10356
10375
  const r = Y("v-btn"), _ = Y("v-tooltip");
10357
- return M(), _t(_, {
10376
+ return U(), _t(_, {
10358
10377
  disabled: i.value,
10359
10378
  text: w(e)("x-block-lib.tip.hotkeyCtrlW")
10360
10379
  }, {
10361
10380
  activator: pt(({ props: h }) => [
10362
- D(r, hn(h, {
10381
+ M(r, hn(h, {
10363
10382
  density: "comfortable",
10364
10383
  icon: o.value ? "mdi-lock" : "mdi-lock-open",
10365
10384
  variant: "outlined",
@@ -10370,11 +10389,11 @@ const nc = /* @__PURE__ */ ft({
10370
10389
  }, 8, ["disabled", "text"]);
10371
10390
  };
10372
10391
  }
10373
- }), ic = { class: "d-flex flex-column" }, sc = { class: "text-subtitle-1 ml-6" }, ac = {
10392
+ }), ac = { class: "d-flex flex-column" }, cc = { class: "text-subtitle-1 ml-6" }, rc = {
10374
10393
  key: 0,
10375
10394
  class: "text-caption text-grey text-truncate ml-6",
10376
10395
  style: { maxWidth: "340px" }
10377
- }, cc = /* @__PURE__ */ ft({
10396
+ }, lc = /* @__PURE__ */ ft({
10378
10397
  __name: "item",
10379
10398
  props: {
10380
10399
  id: {},
@@ -10384,7 +10403,7 @@ const nc = /* @__PURE__ */ ft({
10384
10403
  },
10385
10404
  emits: ["x-click"],
10386
10405
  setup(t, { emit: e }) {
10387
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Zt(), a = t, c = e, r = Vt(!1), _ = $(() => ({
10406
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = ee(), a = t, c = e, r = Vt(!1), _ = $(() => ({
10388
10407
  position: "relative",
10389
10408
  background: r.value ? i.value : o.value,
10390
10409
  width: "100%",
@@ -10403,36 +10422,36 @@ const nc = /* @__PURE__ */ ft({
10403
10422
  }));
10404
10423
  return (l, d) => {
10405
10424
  const p = Y("v-spacer"), f = Y("v-icon"), T = Ti("ripple");
10406
- return Ei((M(), at("div", {
10425
+ return Ei((U(), at("div", {
10407
10426
  class: "d-flex align-center cursor-pointer",
10408
- style: z(_.value),
10427
+ style: tt(_.value),
10409
10428
  onClick: d[1] || (d[1] = (E) => c("x-click", a.id)),
10410
10429
  onMouseout: d[2] || (d[2] = (E) => r.value = !1),
10411
10430
  onMouseover: d[3] || (d[3] = (E) => r.value = !0)
10412
10431
  }, [
10413
- j("div", ic, [
10414
- j("span", sc, Xt(a.title), 1),
10415
- a.desc ? (M(), at("span", ac, Xt(a.desc), 1)) : Tt("", !0)
10432
+ J("div", ac, [
10433
+ J("span", cc, qt(a.title), 1),
10434
+ a.desc ? (U(), at("span", rc, qt(a.desc), 1)) : Tt("", !0)
10416
10435
  ]),
10417
- D(p),
10418
- D(f, {
10436
+ M(p),
10437
+ M(f, {
10419
10438
  class: "x-handle cursor-move mr-3",
10420
10439
  icon: "mdi-drag-horizontal-variant",
10421
- onMousedown: d[0] || (d[0] = Gt(() => {
10440
+ onMousedown: d[0] || (d[0] = jt(() => {
10422
10441
  }, ["stop"]))
10423
10442
  }),
10424
- j("div", {
10425
- style: z(h.value)
10443
+ J("div", {
10444
+ style: tt(h.value)
10426
10445
  }, null, 4)
10427
10446
  ], 36)), [
10428
10447
  [T]
10429
10448
  ]);
10430
10449
  };
10431
10450
  }
10432
- }), rc = {
10451
+ }), uc = {
10433
10452
  key: 1,
10434
10453
  class: "text-caption text-grey"
10435
- }, lc = /* @__PURE__ */ ft({
10454
+ }, _c = /* @__PURE__ */ ft({
10436
10455
  __name: "index",
10437
10456
  props: /* @__PURE__ */ en({
10438
10457
  lock: { type: Boolean }
@@ -10442,7 +10461,7 @@ const nc = /* @__PURE__ */ ft({
10442
10461
  }),
10443
10462
  emits: ["update:modelValue"],
10444
10463
  setup(t, { expose: e }) {
10445
- const { t: n } = ee(), o = jt(t, "modelValue"), i = gn(), a = Vt([]);
10464
+ const { t: n } = oe(), o = Jt(t, "modelValue"), i = gn(), a = Vt([]);
10446
10465
  e({ update: () => {
10447
10466
  if (!i.workspace) {
10448
10467
  console.assert(!1);
@@ -10453,15 +10472,15 @@ const nc = /* @__PURE__ */ ft({
10453
10472
  const E = T.id === Xo()?.id;
10454
10473
  let y = "";
10455
10474
  if (T.type.startsWith("on_app_event_v")) {
10456
- const R = T, Dt = U[R.node.key];
10457
- Dt && (y = n(Dt.name), R.node.alias && (y += " / " + R.node.alias), y += " - " + Se(R.event.kind, R.event.names));
10475
+ const D = T, Dt = P[D.node.key];
10476
+ Dt && (y = n(Dt.name), D.node.alias && (y += " / " + D.node.alias), y += " - " + Se(D.event.kind, D.event.names));
10458
10477
  } else if (T.type.startsWith("watch_effect_v"))
10459
10478
  y = n("x-block-lib.watchEffect");
10460
10479
  else if (T.type.startsWith("app_bind_v"))
10461
10480
  y = n("x-block-lib.bind");
10462
10481
  else if (T.type.startsWith("implement_app_method_v")) {
10463
- const R = T;
10464
- y = n("x-block-lib.implementMethod"), y += " - " + Le(R.method.kind, R.method.names);
10482
+ const D = T;
10483
+ y = n("x-block-lib.implementMethod"), y += " - " + Le(D.method.kind, D.method.names);
10465
10484
  } else T.type.startsWith("func_entry_v") ? y = n("x-block-lib.funcEntry") : T.type.startsWith("procedure_def_v") ? y = n("x-block-lib.procedure") + " - " + T.getFieldValue("NAME") : y = n("x-block-lib.temporaryBlock");
10466
10485
  const N = T.getCommentText() ?? "";
10467
10486
  p.push({
@@ -10516,7 +10535,7 @@ const nc = /* @__PURE__ */ ft({
10516
10535
  const f = i.workspace.getBlockById(p);
10517
10536
  jn.setSelected(f), En(p), o.value = !1;
10518
10537
  };
10519
- return (p, f) => a.value.length > 0 ? (M(), _t(w(jo), {
10538
+ return (p, f) => a.value.length > 0 ? (U(), _t(w(jo), {
10520
10539
  key: 0,
10521
10540
  modelValue: a.value,
10522
10541
  "onUpdate:modelValue": f[0] || (f[0] = (T) => a.value = T),
@@ -10528,7 +10547,7 @@ const nc = /* @__PURE__ */ ft({
10528
10547
  onStart: _
10529
10548
  }, {
10530
10549
  default: pt(() => [
10531
- (M(!0), at(no, null, gi(a.value, (T) => (M(), _t(cc, {
10550
+ (U(!0), at(no, null, gi(a.value, (T) => (U(), _t(lc, {
10532
10551
  id: T.id,
10533
10552
  key: T.id,
10534
10553
  desc: T.desc,
@@ -10538,14 +10557,14 @@ const nc = /* @__PURE__ */ ft({
10538
10557
  }, null, 8, ["id", "desc", "select", "title"]))), 128))
10539
10558
  ]),
10540
10559
  _: 1
10541
- }, 8, ["modelValue"])) : (M(), at("span", rc, Xt(w(n)("x-block-lib.noOption")), 1));
10560
+ }, 8, ["modelValue"])) : (U(), at("span", uc, qt(w(n)("x-block-lib.noOption")), 1));
10542
10561
  }
10543
- }), uc = (t, e) => {
10562
+ }), pc = (t, e) => {
10544
10563
  const n = t.__vccOpts || t;
10545
10564
  for (const [o, i] of e)
10546
10565
  n[o] = i;
10547
10566
  return n;
10548
- }, _c = /* @__PURE__ */ uc(lc, [["__scopeId", "data-v-a77ed323"]]), pc = /* @__PURE__ */ ft({
10567
+ }, dc = /* @__PURE__ */ pc(_c, [["__scopeId", "data-v-a77ed323"]]), hc = /* @__PURE__ */ ft({
10549
10568
  __name: "index",
10550
10569
  props: {
10551
10570
  modelValue: { type: Boolean, required: !0 },
@@ -10553,7 +10572,7 @@ const nc = /* @__PURE__ */ ft({
10553
10572
  },
10554
10573
  emits: ["update:modelValue"],
10555
10574
  setup(t, { expose: e }) {
10556
- const n = jt(t, "modelValue"), o = gn();
10575
+ const n = Jt(t, "modelValue"), o = gn();
10557
10576
  e({ update: () => {
10558
10577
  if (!o.workspace) {
10559
10578
  console.assert(!1);
@@ -10561,7 +10580,7 @@ const nc = /* @__PURE__ */ ft({
10561
10580
  }
10562
10581
  } });
10563
10582
  const a = (c) => {
10564
- const r = zt();
10583
+ const r = te();
10565
10584
  if (!r) {
10566
10585
  console.assert(!1);
10567
10586
  return;
@@ -10569,18 +10588,18 @@ const nc = /* @__PURE__ */ ft({
10569
10588
  const _ = r.getBlockById(c);
10570
10589
  jn.setSelected(_), En(c), n.value = !1;
10571
10590
  };
10572
- return (c, r) => (M(), at("div", {
10591
+ return (c, r) => (U(), at("div", {
10573
10592
  onClick: r[0] || (r[0] = (_) => a(""))
10574
10593
  }, "blockTree"));
10575
10594
  }
10576
- }), dc = { class: "text-subtitle-1" }, hc = /* @__PURE__ */ ft({
10595
+ }), fc = { class: "text-subtitle-1" }, mc = /* @__PURE__ */ ft({
10577
10596
  __name: "index",
10578
10597
  props: {
10579
10598
  type: {},
10580
10599
  lock: { type: Boolean }
10581
10600
  },
10582
10601
  setup(t, { expose: e }) {
10583
- const { t: n } = ee(), o = fn(), { sysBarAvail: i } = Jn(), { backgroundColor1: a } = Zt(), c = $(() => o.smAndDown.value), r = $(() => {
10602
+ const { t: n } = oe(), o = fn(), { sysBarAvail: i } = Jn(), { backgroundColor1: a } = ee(), c = $(() => o.smAndDown.value), r = $(() => {
10584
10603
  let T = "100%";
10585
10604
  return o.mdAndUp.value && (T = "400px"), {
10586
10605
  background: a.value,
@@ -10599,74 +10618,74 @@ const nc = /* @__PURE__ */ ft({
10599
10618
  Ai(() => {
10600
10619
  l.value = !1;
10601
10620
  });
10602
- const d = Wt("blockList"), p = Wt("blockTree");
10621
+ const d = Xt("blockList"), p = Xt("blockTree");
10603
10622
  return e({ open: l, update: () => {
10604
10623
  t.type === "list" ? d.value?.update() : t.type === "tree" && p.value?.update();
10605
10624
  } }), (T, E) => {
10606
- const y = Y("v-sheet"), N = Y("v-btn"), R = Y("v-spacer"), Dt = Y("v-dialog"), Ye = Y("v-tooltip");
10607
- return M(), at(no, null, [
10608
- D(Dt, {
10625
+ const y = Y("v-sheet"), N = Y("v-btn"), D = Y("v-spacer"), Dt = Y("v-dialog"), Ye = Y("v-tooltip");
10626
+ return U(), at(no, null, [
10627
+ M(Dt, {
10609
10628
  modelValue: w(l),
10610
- "onUpdate:modelValue": E[5] || (E[5] = (Q) => ce(l) ? l.value = Q : null),
10629
+ "onUpdate:modelValue": E[5] || (E[5] = (Z) => le(l) ? l.value = Z : null),
10611
10630
  eager: "",
10612
10631
  fullscreen: "",
10613
10632
  "no-click-animation": "",
10614
10633
  persistent: "",
10615
10634
  transition: "scroll-x-reverse-transition",
10616
- onKeydown: E[6] || (E[6] = oo(Gt((Q) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10635
+ onKeydown: E[6] || (E[6] = oo(jt((Z) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10617
10636
  }, {
10618
10637
  default: pt(() => [
10619
- j("div", {
10638
+ J("div", {
10620
10639
  class: "w-100 h-100 d-flex flex-row-reverse",
10621
- onClick: E[3] || (E[3] = Gt((Q) => l.value = !1, ["self"])),
10622
- onContextmenu: E[4] || (E[4] = Gt((Q) => l.value = !1, ["self", "prevent"]))
10640
+ onClick: E[3] || (E[3] = jt((Z) => l.value = !1, ["self"])),
10641
+ onContextmenu: E[4] || (E[4] = jt((Z) => l.value = !1, ["self", "prevent"]))
10623
10642
  }, [
10624
- j("div", {
10643
+ J("div", {
10625
10644
  class: "elevation-2",
10626
- style: z(r.value)
10645
+ style: tt(r.value)
10627
10646
  }, [
10628
- w(i) ? (M(), _t(y, {
10647
+ w(i) ? (U(), _t(y, {
10629
10648
  key: 0,
10630
10649
  color: "transparent",
10631
10650
  height: 24
10632
10651
  })) : Tt("", !0),
10633
- D(y, {
10652
+ M(y, {
10634
10653
  class: "d-flex align-center px-2",
10635
10654
  color: "transparent",
10636
10655
  height: 48
10637
10656
  }, {
10638
10657
  default: pt(() => [
10639
- D(N, {
10658
+ M(N, {
10640
10659
  density: "comfortable",
10641
10660
  icon: "mdi-close",
10642
10661
  variant: "text",
10643
- onClick: E[0] || (E[0] = (Q) => l.value = !1)
10662
+ onClick: E[0] || (E[0] = (Z) => l.value = !1)
10644
10663
  }),
10645
- j("span", dc, Xt(w(n)("x-block-lib.navigator")), 1),
10646
- D(R)
10664
+ J("span", fc, qt(w(n)("x-block-lib.navigator")), 1),
10665
+ M(D)
10647
10666
  ]),
10648
10667
  _: 1
10649
10668
  }),
10650
- j("div", {
10669
+ J("div", {
10651
10670
  class: "overflow-y-auto",
10652
- style: z(_.value)
10671
+ style: tt(_.value)
10653
10672
  }, [
10654
- t.type === "list" ? (M(), _t(_c, {
10673
+ t.type === "list" ? (U(), _t(dc, {
10655
10674
  key: 0,
10656
10675
  ref_key: "blockList",
10657
10676
  ref: d,
10658
10677
  modelValue: w(l),
10659
- "onUpdate:modelValue": E[1] || (E[1] = (Q) => ce(l) ? l.value = Q : null),
10678
+ "onUpdate:modelValue": E[1] || (E[1] = (Z) => le(l) ? l.value = Z : null),
10660
10679
  lock: t.lock
10661
- }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (M(), _t(pc, {
10680
+ }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (U(), _t(hc, {
10662
10681
  key: 1,
10663
10682
  ref_key: "blockTree",
10664
10683
  ref: p,
10665
10684
  modelValue: w(l),
10666
- "onUpdate:modelValue": E[2] || (E[2] = (Q) => ce(l) ? l.value = Q : null)
10685
+ "onUpdate:modelValue": E[2] || (E[2] = (Z) => le(l) ? l.value = Z : null)
10667
10686
  }, null, 8, ["modelValue"])) : Tt("", !0),
10668
- j("div", {
10669
- style: z(h.value)
10687
+ J("div", {
10688
+ style: tt(h.value)
10670
10689
  }, null, 4)
10671
10690
  ], 4)
10672
10691
  ], 4)
@@ -10674,12 +10693,12 @@ const nc = /* @__PURE__ */ ft({
10674
10693
  ]),
10675
10694
  _: 1
10676
10695
  }, 8, ["modelValue"]),
10677
- D(Ye, {
10696
+ M(Ye, {
10678
10697
  disabled: c.value,
10679
10698
  text: w(n)("x-block-lib.tip.hotkeyCtrlE")
10680
10699
  }, {
10681
- activator: pt(({ props: Q }) => [
10682
- D(N, hn(Q, {
10700
+ activator: pt(({ props: Z }) => [
10701
+ M(N, hn(Z, {
10683
10702
  density: "comfortable",
10684
10703
  icon: "mdi-navigation-variant",
10685
10704
  variant: "outlined",
@@ -10731,7 +10750,7 @@ function Yn(t, e) {
10731
10750
  const a = G.createTextNode(String(e));
10732
10751
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
10733
10752
  }
10734
- function fc(t, e) {
10753
+ function Tc(t, e) {
10735
10754
  e === void 0 && (e = !1);
10736
10755
  const n = G.createElement("value");
10737
10756
  n.setAttribute("name", t);
@@ -10742,20 +10761,20 @@ function fc(t, e) {
10742
10761
  const a = G.createTextNode(e ? "TRUE" : "FALSE");
10743
10762
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
10744
10763
  }
10745
- function mc() {
10746
- const { activeObject: t, activeComp: e } = I.app;
10764
+ function Ec() {
10765
+ const { activeObject: t, activeComp: e } = A.app;
10747
10766
  return !(t.type !== "comp" || !e.meta.events || e.meta.events.length <= 0);
10748
10767
  }
10749
- function Tc() {
10750
- const { activeObject: t, activeComp: e } = I.app;
10768
+ function gc() {
10769
+ const { activeObject: t, activeComp: e } = A.app;
10751
10770
  return !(t.type !== "comp" || !e.meta.states || e.meta.states.length <= 0);
10752
10771
  }
10753
10772
  function Kn() {
10754
- const { activeObject: t, activeComp: e } = I.app;
10773
+ const { activeObject: t, activeComp: e } = A.app;
10755
10774
  return !(t.type !== "comp" || !e.meta.methods || e.meta.methods.length <= 0);
10756
10775
  }
10757
- function Ec() {
10758
- const { activeObject: t, activeComp: e } = I.app;
10776
+ function Ac() {
10777
+ const { activeObject: t, activeComp: e } = A.app;
10759
10778
  if (t.type !== "comp")
10760
10779
  return !1;
10761
10780
  if (e.meta.methods) {
@@ -10765,85 +10784,85 @@ function Ec() {
10765
10784
  }
10766
10785
  return !1;
10767
10786
  }
10768
- function gc() {
10787
+ function Ic() {
10769
10788
  const t = [];
10770
- return t.push(H(m("LABEL_EVENT"))), Z("onEvent") && t.push(C("on_app_event_v1")), mc() && t.push(C("trigger_app_event_v1")), t.push(
10789
+ return t.push(H(m("LABEL_EVENT"))), et("onEvent") && t.push(C("on_app_event_v1")), Ec() && t.push(C("trigger_app_event_v1")), t.push(
10771
10790
  C("app_bind_v1", [vo([{ key: "items", value: "2" }])])
10772
- ), t.push(C("watch_effect_v1")), (Z("getProperty") || Z("setProperty")) && t.push(H(m("LABEL_PROPERTY"))), Z("getProperty") && t.push(C("get_app_property_v1")), Z("setProperty") && t.push(C("set_app_property_v1")), Tc() && (t.push(H(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), (Z("callMethod") || Kn()) && t.push(H(m("LABEL_METHOD"))), Z("callMethod") && t.push(C("call_app_method_v1")), Kn() && (t.push(C("implement_app_method_v1")), Ec() && t.push(C("set_app_method_output_v1")), t.push(C("procedure_return_v1"))), t;
10791
+ ), t.push(C("watch_effect_v1")), (et("getProperty") || et("setProperty")) && t.push(H(m("LABEL_PROPERTY"))), et("getProperty") && t.push(C("get_app_property_v1")), et("setProperty") && t.push(C("set_app_property_v1")), gc() && (t.push(H(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), (et("callMethod") || Kn()) && t.push(H(m("LABEL_METHOD"))), et("callMethod") && t.push(C("call_app_method_v1")), Kn() && (t.push(C("implement_app_method_v1")), Ac() && t.push(C("set_app_method_output_v1")), t.push(C("procedure_return_v1"))), t;
10773
10792
  }
10774
- const Co = { name: "APP_COMP_CATEGORY", callback: gc };
10775
- function Ac() {
10793
+ const Co = { name: "APP_COMP_CATEGORY", callback: Ic };
10794
+ function yc() {
10776
10795
  const t = [];
10777
10796
  return t.push(H(m("LABEL_FUNC"))), t.push(H(m("LABEL_FLOW"))), t;
10778
10797
  }
10779
- const ge = { name: "APP_COMPUTE_CATEGORY", callback: Ac };
10780
- function Ic() {
10798
+ const ge = { name: "APP_COMPUTE_CATEGORY", callback: yc };
10799
+ function Oc() {
10781
10800
  const t = [];
10782
10801
  return t.push(C("app_debug_trace_v1", [wt("OBJECT")])), t.push(C("popup_message_v1", [wt("TEXT")])), t.push(C("open_confirm_dlg_v1")), t.push(C("open_prompt_dlg_v1")), t;
10783
10802
  }
10784
- const Ae = { name: "APP_MESSAGE_CATEGORY", callback: Ic };
10785
- function yc() {
10786
- for (const t of I.app.appList)
10803
+ const Ae = { name: "APP_MESSAGE_CATEGORY", callback: Oc };
10804
+ function vc() {
10805
+ for (const t of A.app.appList)
10787
10806
  if (t.pages.length > 0)
10788
10807
  return !0;
10789
10808
  return !1;
10790
10809
  }
10791
- function Oc() {
10810
+ function Cc() {
10792
10811
  const t = [];
10793
- return t.push(C("app_env_is_v1")), yc() && t.push(C("navigate_to_v1")), t;
10812
+ return t.push(C("app_env_is_v1")), vc() && t.push(C("navigate_to_v1")), t;
10794
10813
  }
10795
- const Ie = { name: "APP_MISC_CATEGORY", callback: Oc };
10796
- function vc() {
10797
- const { activeObject: t, activePage: e } = I.app;
10814
+ const Ie = { name: "APP_MISC_CATEGORY", callback: Cc };
10815
+ function kc() {
10816
+ const { activeObject: t, activePage: e } = A.app;
10798
10817
  return !(t.type !== "page" || !e.meta.states || e.meta.states.length <= 0);
10799
10818
  }
10800
- function Cc() {
10801
- const { activeObject: t, activePage: e } = I.app;
10819
+ function Nc() {
10820
+ const { activeObject: t, activePage: e } = A.app;
10802
10821
  return !(t.type !== "page" || !e.meta.arguments || e.meta.arguments.length <= 0);
10803
10822
  }
10804
- function kc() {
10823
+ function Sc() {
10805
10824
  const t = [];
10806
- return t.push(H(m("LABEL_EVENT"))), Z("onEvent") && t.push(C("on_app_event_v1")), t.push(
10825
+ return t.push(H(m("LABEL_EVENT"))), et("onEvent") && t.push(C("on_app_event_v1")), t.push(
10807
10826
  C("app_bind_v1", [vo([{ key: "items", value: "2" }])])
10808
- ), t.push(C("watch_effect_v1")), (Z("getProperty") || Z("setProperty")) && t.push(H(m("LABEL_PROPERTY"))), Z("getProperty") && t.push(C("get_app_property_v1")), Z("setProperty") && t.push(C("set_app_property_v1")), vc() && (t.push(H(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), Z("callMethod") && (t.push(H(m("LABEL_METHOD"))), t.push(C("call_app_method_v1"))), Cc() && (t.push(H(m("LABEL_ARGUMENT"))), t.push(C("get_page_argument_v1"))), t;
10827
+ ), t.push(C("watch_effect_v1")), (et("getProperty") || et("setProperty")) && t.push(H(m("LABEL_PROPERTY"))), et("getProperty") && t.push(C("get_app_property_v1")), et("setProperty") && t.push(C("set_app_property_v1")), kc() && (t.push(H(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), et("callMethod") && (t.push(H(m("LABEL_METHOD"))), t.push(C("call_app_method_v1"))), Nc() && (t.push(H(m("LABEL_ARGUMENT"))), t.push(C("get_page_argument_v1"))), t;
10809
10828
  }
10810
- const ko = { name: "APP_PAGE_CATEGORY", callback: kc };
10811
- function Nc() {
10829
+ const ko = { name: "APP_PAGE_CATEGORY", callback: Sc };
10830
+ function Lc() {
10812
10831
  const t = [];
10813
10832
  return t.push(H(m("LABEL_RESOURCE"))), t.push(C("upload_resource_v1")), t;
10814
10833
  }
10815
- const ye = { name: "APP_RESOURCE_CATEGORY", callback: Nc }, $t = S.xml;
10816
- function Sc() {
10834
+ const ye = { name: "APP_RESOURCE_CATEGORY", callback: Lc }, Gt = S.xml;
10835
+ function bc() {
10817
10836
  const t = [];
10818
10837
  {
10819
- const e = $t.createElement("label");
10838
+ const e = Gt.createElement("label");
10820
10839
  e.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), t.push(e);
10821
10840
  }
10822
10841
  {
10823
- const e = $t.createElement("block");
10842
+ const e = Gt.createElement("block");
10824
10843
  e.setAttribute("type", "procedure_def_v1");
10825
10844
  {
10826
- const n = $t.createElement("field");
10845
+ const n = Gt.createElement("field");
10827
10846
  n.setAttribute("name", "NAME");
10828
- const o = $t.createTextNode(m("PROCEDURE_DEFAULT_NAME"));
10847
+ const o = Gt.createTextNode(m("PROCEDURE_DEFAULT_NAME"));
10829
10848
  n.appendChild(o), e.appendChild(n);
10830
10849
  }
10831
10850
  t.push(e);
10832
10851
  }
10833
10852
  {
10834
- const e = $t.createElement("block");
10853
+ const e = Gt.createElement("block");
10835
10854
  e.setAttribute("type", "procedure_return_v1"), t.push(e);
10836
10855
  }
10837
10856
  return t;
10838
10857
  }
10839
10858
  const gt = {
10840
10859
  name: "PROCEDURE_CATEGORY",
10841
- callback: Sc
10842
- }, se = S.xml;
10843
- function Lc() {
10844
- const t = zt(), e = [];
10860
+ callback: bc
10861
+ }, ce = S.xml;
10862
+ function Bc() {
10863
+ const t = te(), e = [];
10845
10864
  {
10846
- const o = se.createElement("label");
10865
+ const o = ce.createElement("label");
10847
10866
  o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), e.push(o);
10848
10867
  }
10849
10868
  {
@@ -10862,25 +10881,25 @@ function Lc() {
10862
10881
  return e;
10863
10882
  n.sort(Ut.compareByName);
10864
10883
  {
10865
- const o = se.createElement("label");
10884
+ const o = ce.createElement("label");
10866
10885
  o.setAttribute("text", m("LABEL_CREATED")), e.push(o);
10867
10886
  }
10868
10887
  return n.forEach((o) => {
10869
10888
  {
10870
- const i = se.createElement("block");
10889
+ const i = ce.createElement("block");
10871
10890
  i.setAttribute("type", "variable_get_v1"), i.appendChild(Ut.generateVariableFieldDom(o)), e.push(i);
10872
10891
  }
10873
10892
  {
10874
- const i = se.createElement("block");
10893
+ const i = ce.createElement("block");
10875
10894
  i.setAttribute("type", "variable_set_v1"), i.appendChild(Ut.generateVariableFieldDom(o)), e.push(i);
10876
10895
  }
10877
10896
  }), e;
10878
10897
  }
10879
10898
  const At = {
10880
10899
  name: "VARIABLE_CATEGORY",
10881
- callback: Lc
10900
+ callback: Bc
10882
10901
  };
10883
- function Bc() {
10902
+ function Pc() {
10884
10903
  const t = [];
10885
10904
  if (ct().length > 0)
10886
10905
  t.push(H(m("LABEL_OPERATION"))), t.push(C("add_data_v1")), t.push(C("delete_data_v1")), t.push(C("update_data_v1")), t.push(C("query_data_v1")), t.push(C("transaction_v1")), t.push(
@@ -10893,7 +10912,7 @@ function Bc() {
10893
10912
  ), t.push(
10894
10913
  C("query_extra_sortby_v1", [
10895
10914
  wt("COLUMN"),
10896
- fc("DESC")
10915
+ Tc("DESC")
10897
10916
  ])
10898
10917
  );
10899
10918
  else {
@@ -10902,30 +10921,30 @@ function Bc() {
10902
10921
  }
10903
10922
  return t;
10904
10923
  }
10905
- const Oe = { name: "COMPUTE_DATA_CATEGORY", callback: Bc };
10906
- function bc() {
10907
- return ne("flow").length > 0;
10908
- }
10909
- function Pc() {
10910
- const t = [];
10911
- return I.compute.activeObject.type === "flow" && t.push(C("on_flow_state_event_v1")), bc() && console.assert(!0), t;
10912
- }
10913
- const ve = { name: "COMPUTE_FLOW_CATEGORY", callback: Pc };
10924
+ const Oe = { name: "COMPUTE_DATA_CATEGORY", callback: Pc };
10914
10925
  function Rc() {
10915
- return ne("func").length > 0;
10926
+ return ie("flow").length > 0;
10916
10927
  }
10917
10928
  function Dc() {
10918
- const { activeObject: t, activeFunc: e } = I.compute, n = [];
10919
- return t.type === "func" && (n.push(C("func_entry_v1")), e.outputs && e.outputs.length > 0 && n.push(C("set_func_output_v1")), n.push(C("procedure_return_v1"))), Rc() && n.push(C("call_func_internal_v1")), n;
10929
+ const t = [];
10930
+ return A.compute.activeObject.type === "flow" && t.push(C("on_flow_state_event_v1")), Rc() && console.assert(!0), t;
10920
10931
  }
10921
- const Ce = { name: "COMPUTE_FUNC_CATEGORY", callback: Dc };
10932
+ const ve = { name: "COMPUTE_FLOW_CATEGORY", callback: Dc };
10922
10933
  function Mc() {
10934
+ return ie("func").length > 0;
10935
+ }
10936
+ function Uc() {
10937
+ const { activeObject: t, activeFunc: e } = A.compute, n = [];
10938
+ return t.type === "func" && (n.push(C("func_entry_v1")), e.outputs && e.outputs.length > 0 && n.push(C("set_func_output_v1")), n.push(C("procedure_return_v1"))), Mc() && n.push(C("call_func_internal_v1")), n;
10939
+ }
10940
+ const Ce = { name: "COMPUTE_FUNC_CATEGORY", callback: Uc };
10941
+ function Vc() {
10923
10942
  const t = [];
10924
10943
  return t.push(
10925
10944
  C("compute_debug_trace_v1", [wt("OBJECT")])
10926
10945
  ), t;
10927
10946
  }
10928
- const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
10947
+ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Vc }, De = {
10929
10948
  kind: "category",
10930
10949
  name: "%{BKY_CATEGORY_COLOR}",
10931
10950
  categorystyle: "color_category",
@@ -11628,7 +11647,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
11628
11647
  }
11629
11648
  }
11630
11649
  ]
11631
- }, Uc = {
11650
+ }, xc = {
11632
11651
  kind: "categoryToolbox",
11633
11652
  contents: [
11634
11653
  {
@@ -11682,7 +11701,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
11682
11701
  custom: ge.name
11683
11702
  }
11684
11703
  ]
11685
- }, Vc = {
11704
+ }, Fc = {
11686
11705
  kind: "categoryToolbox",
11687
11706
  contents: [
11688
11707
  {
@@ -11729,7 +11748,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
11729
11748
  custom: gt.name
11730
11749
  }
11731
11750
  ]
11732
- }, xc = {
11751
+ }, wc = {
11733
11752
  kind: "categoryToolbox",
11734
11753
  contents: [
11735
11754
  {
@@ -11776,7 +11795,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
11776
11795
  custom: gt.name
11777
11796
  }
11778
11797
  ]
11779
- }, Fc = {
11798
+ }, Yc = {
11780
11799
  kind: "categoryToolbox",
11781
11800
  contents: [
11782
11801
  {
@@ -11807,7 +11826,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
11807
11826
  ]
11808
11827
  }
11809
11828
  ]
11810
- }, wc = {
11829
+ }, Kc = {
11811
11830
  kind: "categoryToolbox",
11812
11831
  contents: [
11813
11832
  {
@@ -11887,26 +11906,26 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Mc }, De = {
11887
11906
  wheel: !0
11888
11907
  }
11889
11908
  };
11890
- function Yc(t, e, n, o) {
11891
- ze.theme = o ? "dark" : "light", ze.toolbox = Kc(e, n);
11909
+ function $c(t, e, n, o) {
11910
+ ze.theme = o ? "dark" : "light", ze.toolbox = Hc(e, n);
11892
11911
  const i = Jo(t, ze);
11893
11912
  return i.addChangeListener((a) => {
11894
11913
  setTimeout(() => {
11895
11914
  qo.shadowBlockConversionChangeListener(a);
11896
11915
  }, 0);
11897
- }), $c(i, e, n), Hc(i), i;
11916
+ }), Gc(i, e, n), Wc(i), i;
11898
11917
  }
11899
- function Kc(t, e) {
11918
+ function Hc(t, e) {
11900
11919
  let n;
11901
- return t === "page" ? e === "v1" && (n = wc) : t === "comp" ? e === "v1" && (n = Uc) : t === "func" ? e === "v1" && (n = xc) : t === "flow" ? e === "v1" && (n = Vc) : t === "json" && e === "v1" && (n = Fc), console.assert(!!n, `invalid toolbox type=${t} version=${e}`), n;
11920
+ return t === "page" ? e === "v1" && (n = Kc) : t === "comp" ? e === "v1" && (n = xc) : t === "func" ? e === "v1" && (n = wc) : t === "flow" ? e === "v1" && (n = Fc) : t === "json" && e === "v1" && (n = Yc), console.assert(!!n, `invalid toolbox type=${t} version=${e}`), n;
11902
11921
  }
11903
- function $c(t, e, n) {
11922
+ function Gc(t, e, n) {
11904
11923
  function o({ name: i, callback: a }) {
11905
11924
  t.registerToolboxCategoryCallback(i, () => a(e));
11906
11925
  }
11907
11926
  e === "page" ? n === "v1" && (o(ko), o(Ae), o(Ie), o(At), o(gt), o(ye), o(ge)) : e === "comp" ? n === "v1" && (o(Co), o(Ae), o(Ie), o(At), o(gt), o(ye), o(ge)) : e === "func" ? n === "v1" && (o(Ce), o(ve), o(Oe), o(ke), o(At), o(gt)) : e === "flow" && n === "v1" && (o(Ce), o(ve), o(Oe), o(ke), o(At), o(gt));
11908
11927
  }
11909
- function Hc(t) {
11928
+ function Wc(t) {
11910
11929
  const { router: e } = Ct;
11911
11930
  t.registerButtonCallback("NO_COMPUTE", () => {
11912
11931
  const n = e.resolve({
@@ -11924,7 +11943,7 @@ function Hc(t) {
11924
11943
  }, 100);
11925
11944
  });
11926
11945
  }
11927
- function Gc(t, e) {
11946
+ function jc(t, e) {
11928
11947
  const n = e.newBlock("json_root_v1");
11929
11948
  n.initSvg(), n.render();
11930
11949
  const o = (i, a) => {
@@ -11966,7 +11985,7 @@ function Gc(t, e) {
11966
11985
  new (v.get(v.FINISHED_LOADING))(e)
11967
11986
  );
11968
11987
  }
11969
- function Wc(t) {
11988
+ function Xc(t) {
11970
11989
  const e = (o) => {
11971
11990
  if (!o)
11972
11991
  return null;
@@ -11998,7 +12017,7 @@ function Wc(t) {
11998
12017
  if (o.type === "json_root_v1")
11999
12018
  return e(o);
12000
12019
  }
12001
- const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12020
+ const Jc = { class: "position-relative w-100 h-100" }, qc = /* @__PURE__ */ ft({
12002
12021
  __name: "index",
12003
12022
  props: /* @__PURE__ */ en({
12004
12023
  type: {},
@@ -12013,8 +12032,8 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12013
12032
  }),
12014
12033
  emits: /* @__PURE__ */ en(["ready"], ["update:lock", "update:scale"]),
12015
12034
  setup(t, { expose: e, emit: n }) {
12016
- const { backgroundColor2: o } = Zt(), i = jt(t, "lock"), a = jt(t, "scale"), c = n, r = `blocklyEditor${nn()}`, _ = Vt(), h = Wt("parentContainer"), l = Wt("clean"), d = Wt("navigator"), p = {};
12017
- ec(p);
12035
+ const { backgroundColor2: o } = ee(), i = Jt(t, "lock"), a = Jt(t, "scale"), c = n, r = `blocklyEditor${nn()}`, _ = Vt(), h = Xt("parentContainer"), l = Xt("clean"), d = Xt("navigator"), p = {};
12036
+ oc(p);
12018
12037
  const f = Vt(!0), T = Vt(!1), E = $(() => t.type === "json" ? "tree" : "list"), y = $(() => ({
12019
12038
  width: "100%",
12020
12039
  height: "calc(100% - 48px)"
@@ -12024,7 +12043,7 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12024
12043
  bottom: "0px",
12025
12044
  width: "100%",
12026
12045
  height: "48px"
12027
- })), R = $(() => ({
12046
+ })), D = $(() => ({
12028
12047
  position: "absolute",
12029
12048
  background: t.dark ? "#0000007f" : "#ffffff7f",
12030
12049
  top: "1px",
@@ -12045,7 +12064,7 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12045
12064
  width: "100%",
12046
12065
  height: "calc(100% - 48px)",
12047
12066
  pointerEvents: "none"
12048
- })), Q = $(() => ({
12067
+ })), Z = $(() => ({
12049
12068
  position: "absolute",
12050
12069
  background: t.dark ? "#0000007f" : "#ffffff7f",
12051
12070
  top: "1px",
@@ -12058,50 +12077,50 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12058
12077
  top: 0,
12059
12078
  left: 0,
12060
12079
  zIndex: 3e3
12061
- })), { open: Yt } = pn(`blocklyEditorFlyout${nn()}`);
12080
+ })), { open: $t } = pn(`blocklyEditorFlyout${nn()}`);
12062
12081
  Ln(async () => {
12063
12082
  if (!_.value || !h.value) {
12064
12083
  console.assert(!1);
12065
12084
  return;
12066
12085
  }
12067
- Qo(h.value), await bn(t.locale), p.workspace = Yc(_.value, t.type, t.version, t.dark), p.workspace.addChangeListener(v.disableOrphans), p.workspace.addChangeListener(So);
12068
- const b = document.querySelector(`#${r} .blocklyFlyout`);
12086
+ Qo(h.value), await Bn(t.locale), p.workspace = $c(_.value, t.type, t.version, t.dark), p.workspace.addChangeListener(v.disableOrphans), p.workspace.addChangeListener(So);
12087
+ const B = document.querySelector(`#${r} .blocklyFlyout`);
12069
12088
  new MutationObserver((Ke) => {
12070
- Ke.forEach((ie) => {
12071
- ie.type === "attributes" && ie.attributeName === "style" && (Yt.value = p.workspace.getFlyout().isVisible());
12089
+ Ke.forEach((ae) => {
12090
+ ae.type === "attributes" && ae.attributeName === "style" && ($t.value = p.workspace.getFlyout().isVisible());
12072
12091
  });
12073
- }).observe(b, { attributes: !0 }), Yt.value = p.workspace.getFlyout().isVisible(), In(), yn(), await Ii(), c("ready");
12074
- }), Bn(() => {
12075
- Yt.value = !1;
12092
+ }).observe(B, { attributes: !0 }), $t.value = p.workspace.getFlyout().isVisible(), In(), yn(), await Ii(), c("ready");
12093
+ }), bn(() => {
12094
+ $t.value = !1;
12076
12095
  }), zo(_, () => {
12077
12096
  p.workspace && Zo(p.workspace);
12078
12097
  });
12079
- async function So(b) {
12080
- if (b.type === v.FINISHED_LOADING) {
12098
+ async function So(B) {
12099
+ if (B.type === v.FINISHED_LOADING) {
12081
12100
  yo(), setTimeout(() => {
12082
12101
  d.value?.update();
12083
12102
  }, 0), f.value = !1;
12084
12103
  return;
12085
12104
  }
12086
12105
  if (!f.value) {
12087
- if (b.type === v.VIEWPORT_CHANGE) {
12106
+ if (B.type === v.VIEWPORT_CHANGE) {
12088
12107
  a.value = p.workspace.getScale();
12089
12108
  return;
12090
12109
  }
12091
- b.type === v.BLOCK_DRAG && (b.isStart ? T.value = !0 : T.value = !1), setTimeout(() => {
12110
+ B.type === v.BLOCK_DRAG && (B.isStart ? T.value = !0 : T.value = !1), setTimeout(() => {
12092
12111
  d.value?.update();
12093
12112
  }, 0);
12094
12113
  }
12095
12114
  }
12096
- const Lo = (b) => {
12097
- f.value = !0, t.type === "json" ? Gc(b, p.workspace) : X.workspaces.load(b, p.workspace);
12098
- }, Bo = () => t.type === "json" ? Wc(p.workspace) : X.workspaces.save(p.workspace), bo = () => {
12115
+ const Lo = (B) => {
12116
+ f.value = !0, t.type === "json" ? jc(B, p.workspace) : q.workspaces.load(B, p.workspace);
12117
+ }, bo = () => t.type === "json" ? Xc(p.workspace) : q.workspaces.save(p.workspace), Bo = () => {
12099
12118
  if (t.type === "json")
12100
12119
  console.assert(!1);
12101
12120
  else
12102
12121
  return s.workspaceToCode(p.workspace);
12103
- }, Po = () => tc(p.workspace), In = () => {
12104
- p.workspace.setIsReadOnly(i.value), p.workspace.isReadOnly() && (Yt.value = !1);
12122
+ }, Po = () => nc(p.workspace), In = () => {
12123
+ p.workspace.setIsReadOnly(i.value), p.workspace.isReadOnly() && ($t.value = !1);
12105
12124
  }, yn = () => {
12106
12125
  p.workspace.setScale(a.value);
12107
12126
  }, Ro = () => {
@@ -12115,97 +12134,97 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12115
12134
  };
12116
12135
  return Ln(() => {
12117
12136
  Mt.on("cleanWorkspace", On), Mt.on("toggleBlocklyLock", vn), Mt.on("openBlocklyNavigator", Cn);
12118
- }), Bn(() => {
12137
+ }), bn(() => {
12119
12138
  Mt.off("cleanWorkspace", On), Mt.off("toggleBlocklyLock", vn), Mt.off("openBlocklyNavigator", Cn);
12120
- }), Kt(
12139
+ }), Ht(
12121
12140
  () => t.locale,
12122
- (b) => {
12123
- bn(b);
12141
+ (B) => {
12142
+ Bn(B);
12124
12143
  }
12125
- ), Kt(
12144
+ ), Ht(
12126
12145
  () => t.dark,
12127
- (b) => {
12128
- Ja(b ? "dark" : "light");
12146
+ (B) => {
12147
+ Qa(B ? "dark" : "light");
12129
12148
  }
12130
- ), Kt(Yt, (b) => {
12131
- b || p.workspace?.hideChaff();
12132
- }), Kt(i, () => {
12149
+ ), Ht($t, (B) => {
12150
+ B || p.workspace?.hideChaff();
12151
+ }), Ht(i, () => {
12133
12152
  In();
12134
- }), Kt(a, () => {
12153
+ }), Ht(a, () => {
12135
12154
  yn();
12136
12155
  }), e({
12137
12156
  loading: f,
12138
12157
  load: Lo,
12139
- save: Bo,
12140
- generateCode: bo,
12158
+ save: bo,
12159
+ generateCode: Bo,
12141
12160
  generateReactivity: Po,
12142
12161
  fireStateChange: Ro
12143
- }), (b, Lt) => {
12144
- const Ke = Y("v-icon"), ie = Y("x-loading");
12145
- return M(), at("div", jc, [
12146
- j("div", {
12162
+ }), (B, Lt) => {
12163
+ const Ke = Y("v-icon"), ae = Y("x-loading");
12164
+ return U(), at("div", Jc, [
12165
+ J("div", {
12147
12166
  id: r,
12148
12167
  ref_key: "blocklyDiv",
12149
12168
  ref: _,
12150
- style: z(y.value)
12169
+ style: tt(y.value)
12151
12170
  }, null, 4),
12152
- j("div", {
12153
- style: z(N.value)
12171
+ J("div", {
12172
+ style: tt(N.value)
12154
12173
  }, [
12155
- yi(b.$slots, "bottom")
12174
+ yi(B.$slots, "bottom")
12156
12175
  ], 4),
12157
- T.value ? (M(), at("div", {
12176
+ T.value ? (U(), at("div", {
12158
12177
  key: 0,
12159
12178
  class: "d-flex flex-column justify-center align-center",
12160
- style: z(R.value)
12179
+ style: tt(D.value)
12161
12180
  }, [
12162
- D(Ke, {
12181
+ M(Ke, {
12163
12182
  icon: "mdi-delete",
12164
12183
  size: "x-large"
12165
12184
  })
12166
12185
  ], 4)) : Tt("", !0),
12167
- f.value ? Tt("", !0) : (M(), at("div", {
12186
+ f.value ? Tt("", !0) : (U(), at("div", {
12168
12187
  key: 1,
12169
12188
  class: "d-flex align-end ga-3 pt-3 pr-3",
12170
- style: z(Dt.value)
12189
+ style: tt(Dt.value)
12171
12190
  }, [
12172
- D(nc, {
12191
+ M(ic, {
12173
12192
  ref_key: "clean",
12174
12193
  ref: l,
12175
12194
  lock: i.value
12176
12195
  }, null, 8, ["lock"]),
12177
- D(oc, {
12196
+ M(sc, {
12178
12197
  modelValue: i.value,
12179
12198
  "onUpdate:modelValue": Lt[0] || (Lt[0] = (Do) => i.value = Do)
12180
12199
  }, null, 8, ["modelValue"]),
12181
- D(hc, {
12200
+ M(mc, {
12182
12201
  ref_key: "navigator",
12183
12202
  ref: d,
12184
12203
  lock: i.value,
12185
12204
  type: E.value
12186
12205
  }, null, 8, ["lock", "type"])
12187
12206
  ], 4)),
12188
- i.value ? (M(), at("div", {
12207
+ i.value ? (U(), at("div", {
12189
12208
  key: 2,
12190
- style: z(Q.value)
12209
+ style: tt(Z.value)
12191
12210
  }, null, 4)) : Tt("", !0),
12192
- i.value ? (M(), at("div", {
12211
+ i.value ? (U(), at("div", {
12193
12212
  key: 3,
12194
- style: z(Ye.value)
12213
+ style: tt(Ye.value)
12195
12214
  }, null, 4)) : Tt("", !0),
12196
- j("div", {
12215
+ J("div", {
12197
12216
  ref_key: "parentContainer",
12198
12217
  ref: h,
12199
- style: z(An.value)
12218
+ style: tt(An.value)
12200
12219
  }, null, 4),
12201
- D(ie, {
12220
+ M(ae, {
12202
12221
  open: f.value,
12203
12222
  "z-index": 99
12204
12223
  }, null, 8, ["open"])
12205
12224
  ]);
12206
12225
  };
12207
12226
  }
12208
- }), Jc = /* @__PURE__ */ ft({
12227
+ }), Qc = /* @__PURE__ */ ft({
12209
12228
  __name: "index",
12210
12229
  props: {
12211
12230
  code: {}
@@ -12213,16 +12232,16 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12213
12232
  setup(t) {
12214
12233
  const e = t;
12215
12234
  ti.registerLanguage("javascript", ei);
12216
- const n = ni.component, { backgroundColor2: o } = Zt();
12235
+ const n = ni.component, { backgroundColor2: o } = ee();
12217
12236
  return (i, a) => {
12218
12237
  const c = Y("v-sheet");
12219
- return M(), _t(c, {
12238
+ return U(), _t(c, {
12220
12239
  color: w(o),
12221
12240
  height: "100%",
12222
12241
  width: "100%"
12223
12242
  }, {
12224
12243
  default: pt(() => [
12225
- D(w(n), {
12244
+ M(w(n), {
12226
12245
  code: e.code,
12227
12246
  language: "js"
12228
12247
  }, null, 8, ["code"])
@@ -12231,10 +12250,10 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12231
12250
  }, 8, ["color"]);
12232
12251
  };
12233
12252
  }
12234
- }), qc = { class: "text-subtitle-1" }, Qc = { class: "w-100 h-100 overflow-auto" }, zc = /* @__PURE__ */ ft({
12253
+ }), zc = { class: "text-subtitle-1" }, Zc = { class: "w-100 h-100 overflow-auto" }, tr = /* @__PURE__ */ ft({
12235
12254
  __name: "index",
12236
12255
  setup(t) {
12237
- const { t: e } = ee(), { sysBarAvail: n } = Jn(), { backgroundColor0: o, backgroundColor2: i } = Zt(), a = Vt(""), c = $(() => {
12256
+ const { t: e } = oe(), { sysBarAvail: n } = Jn(), { backgroundColor0: o, backgroundColor2: i } = ee(), a = Vt(""), c = $(() => {
12238
12257
  let h = 48;
12239
12258
  return n.value && (h += 24), {
12240
12259
  position: "relative",
@@ -12245,49 +12264,49 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12245
12264
  }, { open: _ } = pn("sourceDlg", r);
12246
12265
  return (h, l) => {
12247
12266
  const d = Y("v-sheet"), p = Y("v-btn"), f = Y("v-spacer"), T = Y("v-dialog");
12248
- return M(), _t(T, {
12267
+ return U(), _t(T, {
12249
12268
  modelValue: w(_),
12250
- "onUpdate:modelValue": l[1] || (l[1] = (E) => ce(_) ? _.value = E : null),
12269
+ "onUpdate:modelValue": l[1] || (l[1] = (E) => le(_) ? _.value = E : null),
12251
12270
  fullscreen: "",
12252
12271
  "no-click-animation": "",
12253
12272
  persistent: "",
12254
12273
  transition: "dialog-bottom-transition",
12255
- onKeydown: l[2] || (l[2] = oo(Gt((E) => _.value = !1, ["stop", "prevent"]), ["esc"]))
12274
+ onKeydown: l[2] || (l[2] = oo(jt((E) => _.value = !1, ["stop", "prevent"]), ["esc"]))
12256
12275
  }, {
12257
12276
  default: pt(() => [
12258
- D(d, {
12277
+ M(d, {
12259
12278
  color: w(o),
12260
12279
  height: "100%",
12261
12280
  width: "100%"
12262
12281
  }, {
12263
12282
  default: pt(() => [
12264
- w(n) ? (M(), _t(d, {
12283
+ w(n) ? (U(), _t(d, {
12265
12284
  key: 0,
12266
12285
  color: w(i),
12267
12286
  height: 24
12268
12287
  }, null, 8, ["color"])) : Tt("", !0),
12269
- D(d, {
12288
+ M(d, {
12270
12289
  class: "d-flex align-center px-2",
12271
12290
  color: w(i),
12272
12291
  height: 48
12273
12292
  }, {
12274
12293
  default: pt(() => [
12275
- D(p, {
12294
+ M(p, {
12276
12295
  density: "comfortable",
12277
12296
  icon: "mdi-close",
12278
12297
  variant: "text",
12279
12298
  onClick: l[0] || (l[0] = (E) => _.value = !1)
12280
12299
  }),
12281
- j("span", qc, Xt(w(e)("x-block-lib.dlg.source.title")), 1),
12282
- D(f)
12300
+ J("span", zc, qt(w(e)("x-block-lib.dlg.source.title")), 1),
12301
+ M(f)
12283
12302
  ]),
12284
12303
  _: 1
12285
12304
  }, 8, ["color"]),
12286
- j("div", {
12287
- style: z(c.value)
12305
+ J("div", {
12306
+ style: tt(c.value)
12288
12307
  }, [
12289
- j("div", Qc, [
12290
- D(Jc, { code: a.value }, null, 8, ["code"])
12308
+ J("div", Zc, [
12309
+ M(Qc, { code: a.value }, null, 8, ["code"])
12291
12310
  ])
12292
12311
  ], 4)
12293
12312
  ]),
@@ -12298,16 +12317,16 @@ const jc = { class: "position-relative w-100 h-100" }, Xc = /* @__PURE__ */ ft({
12298
12317
  }, 8, ["modelValue"]);
12299
12318
  };
12300
12319
  }
12301
- }), Zc = (t) => {
12302
- t.component("XBlockly", Xc), t.component("XSourceDlg", zc);
12320
+ }), er = (t) => {
12321
+ t.component("XBlockly", qc), t.component("XSourceDlg", tr);
12303
12322
  };
12304
- async function cr(t) {
12323
+ async function lr(t) {
12305
12324
  return (await so(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gy41k67q.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.b828ufea.js") }), `./locales/${t}/index.ts`, 4)).default;
12306
12325
  }
12307
- const rr = { install: Zc };
12326
+ const ur = { install: er };
12308
12327
  export {
12309
- Xc as XBlockly,
12310
- rr as default,
12311
- Zc as install,
12312
- cr as loadLocaleMessageBlock
12328
+ qc as XBlockly,
12329
+ ur as default,
12330
+ er as install,
12331
+ lr as loadLocaleMessageBlock
12313
12332
  };