x-block-lib 0.8.77 → 0.8.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +475 -475
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,39 +1,39 @@
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 Nn, M as Uo, s as Vo, a as xo, X as $n, u as S, B as I, j as s, O as _, F as O, b as Ze, i as k, c as vt, d as wo, e as K, f as g, g as Fo, h as J, k as yt, p as Gt, l as lt, m as Sn, n as V, C as Hn, N as ut, o as Yo, P as tn, q as $e, V as Vt, t as Gn, W as Ko, v as $o, w as Ho, S as Go, x as Wo, y as jo, z as Zt, T as Ne, A as Wn, D as Xo, G as Jo, H as jn, I as qo, J as Qo, K as zo, L as Zo, Q as ti, R as ei, U as ni, Y as oi } from "./vendor.k8hjxofe.js";
2
+ import { E as v, r as Nn, M as Vo, s as xo, a as wo, X as $n, u as S, B as I, j as s, O as _, F as O, b as Ze, i as k, c as vt, d as Fo, e as K, f as g, g as Yo, h as J, k as yt, p as Gt, l as lt, m as Sn, n as V, C as Hn, N as ut, o as Ko, P as tn, q as $e, V as Vt, t as Gn, W as $o, v as Ho, w as Go, S as Wo, x as jo, y as Xo, z as Zt, T as Ne, A as Wn, D as Jo, G as qo, H as jn, I as Qo, J as zo, K as Zo, L as ti, Q as ei, R as ni, U as oi, Y as ii } from "./vendor.k8hjxofe.js";
3
3
  import { globalState as A } from "x-state-lib";
4
- import { globalObjects as Ct, openConfirmDlg as ii, openPromptDlg as si, messageWarning as Xn, useColor as te, useSystem as Jn, useViewStack as dn, eventBus as Ut } from "x-essential-lib";
5
- import { pkgs as ue, parsePixelStr as ai, parsePercentStr as ci, getPropertyTag as kt, unwrapEventId as qn, elements as P, unwrapEventKeyOfElementSlot as ri, unwrapPropertyKeyOfElementSlot as Qn, unwrapEventKeyOfCustomSlot as li, unwrapPropertyKeyOfCustomSlot as zn, makeEventId as x, makeEventKeyOfCustomSlot as He, makePropertyKeyOfCustomSlot as ce, unwrapSlotId as hn, makeEventKeyOfElementSlot as ui, makePropertyKeyOfElementSlot as Zn, toEventName as Se, unwrapMethodId as ee, unwrapMethodKeyOfCustomSlot as _e, unwrapMethodKeyOfElementSlot as _i, makeMethodId as dt, makeMethodKeyOfElementSlot as pi, makeMethodKeyOfCustomSlot as en, toMethodName as Le, unwrapPropertyId as di, makePropertyId as ft, 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 ht, computed as $, resolveComponent as Y, createBlock as _t, openBlock as U, unref as F, withCtx as pt, createVNode as M, mergeProps as fn, useModel as Xt, ref as xt, resolveDirective as Ti, withDirectives as Ei, createElementBlock as ct, normalizeStyle as Z, createElementVNode as X, createCommentVNode as mt, toDisplayString as Jt, withModifiers as Wt, mergeModels as nn, Fragment as no, renderList as gi, useId as on, onUnmounted as Ai, useTemplateRef as jt, withKeys as oo, isRef as re, onMounted as Ln, nextTick as Ii, onBeforeUnmount as Bn, watch as $t, renderSlot as yi } from "vue";
4
+ import { globalObjects as Ct, openConfirmDlg as si, openPromptDlg as ai, messageWarning as Xn, useColor as te, useSystem as Jn, useViewStack as dn, eventBus as Ut } from "x-essential-lib";
5
+ import { pkgs as ue, parsePixelStr as ci, parsePercentStr as ri, getPropertyTag as kt, unwrapEventId as qn, elements as P, unwrapEventKeyOfElementSlot as li, unwrapPropertyKeyOfElementSlot as Qn, unwrapEventKeyOfCustomSlot as ui, unwrapPropertyKeyOfCustomSlot as zn, makeEventId as x, makeEventKeyOfCustomSlot as He, makePropertyKeyOfCustomSlot as ce, unwrapSlotId as hn, makeEventKeyOfElementSlot as _i, makePropertyKeyOfElementSlot as Zn, toEventName as Se, unwrapMethodId as ee, unwrapMethodKeyOfCustomSlot as _e, unwrapMethodKeyOfElementSlot as pi, makeMethodId as dt, makeMethodKeyOfElementSlot as di, makeMethodKeyOfCustomSlot as en, toMethodName as Le, unwrapPropertyId as hi, makePropertyId as ft, toPropertyName as to, isLocaleOfEventKind as fi, getImplementMethodName as eo, isLocaleOfMethodKind as no, makeTriggerId as Bt } from "x-runtime-lib";
6
+ import { provide as mi, inject as Ti, defineComponent as ht, computed as $, resolveComponent as Y, createBlock as _t, openBlock as U, unref as F, withCtx as pt, createVNode as M, mergeProps as fn, useModel as Xt, ref as xt, resolveDirective as Ei, withDirectives as gi, createElementBlock as ct, normalizeStyle as Z, createElementVNode as X, createCommentVNode as mt, toDisplayString as Jt, withModifiers as Wt, mergeModels as nn, Fragment as oo, renderList as Ai, useId as on, onUnmounted as Ii, useTemplateRef as jt, withKeys as io, isRef as re, onMounted as Ln, nextTick as yi, onBeforeUnmount as Bn, watch as $t, renderSlot as Oi } from "vue";
7
7
  import { useDisplay as mn } from "vuetify";
8
8
  import { useI18n as ne } from "vue-i18n";
9
9
  var R = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(R || {});
10
- class io extends v.Abstract {
10
+ class so extends v.Abstract {
11
11
  isBlank = !0;
12
12
  }
13
13
  Nn.register(
14
14
  Nn.Type.EVENT,
15
15
  "state_change",
16
- io
16
+ so
17
17
  );
18
- const so = (t, e, n) => {
18
+ const ao = (t, e, n) => {
19
19
  const o = t[e];
20
20
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, a) => {
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
24
  async function bn(t) {
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
- Vo(e.default);
25
+ const e = await ao(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.dmlvm3cp.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.dvv4wraq.js") }), `./msg/${t}.ts`, 3);
26
+ xo(e.default);
27
27
  }
28
28
  function m(t) {
29
- return Uo[t] ?? t;
29
+ return Vo[t] ?? t;
30
30
  }
31
31
  const wt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", pe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
32
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
- const n = xo(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
36
+ const n = wo(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
37
37
  return `${n}_${o}`;
38
38
  }
39
39
  function de(t) {
@@ -46,13 +46,13 @@ function de(t) {
46
46
  function B(t) {
47
47
  return t.length <= 0 && t.push([m("NO_OPTION"), ""]), t;
48
48
  }
49
- function Oi(t) {
49
+ function vi(t) {
50
50
  let e = 0;
51
51
  for (; t; )
52
52
  e++, t = t.getParent();
53
53
  return e;
54
54
  }
55
- function ao(t) {
55
+ function co(t) {
56
56
  return t.ui === "strInput" ? "string" : t.ui === "numInput" ? "number" : t.ui === "switch" ? "boolean" : "string";
57
57
  }
58
58
  function be(t, e) {
@@ -81,20 +81,20 @@ function Pn(t) {
81
81
  const e = `<block type="math_number_v1"><field name="NUM">${t}</field></block>`;
82
82
  return S.xml.textToDom(e);
83
83
  }
84
- function vi(t) {
84
+ function Ci(t) {
85
85
  return S.xml.textToDom('<block type="logic_boolean_v1"><field name="BOOL">FALSE</field></block>');
86
86
  }
87
87
  function sn(t, e) {
88
88
  let n = null;
89
- return e === "string" ? n = Ge("") : e === "integer" || e === "decimal" ? n = Pn(0) : e === "boolean" ? n = vi() : e === "enum" || e === "dateTime" ? n = Ge("") : console.assert(!1), n ? $n.domToBlock(n, t) : null;
89
+ return e === "string" ? n = Ge("") : e === "integer" || e === "decimal" ? n = Pn(0) : e === "boolean" ? n = Ci() : e === "enum" || e === "dateTime" ? n = Ge("") : console.assert(!1), n ? $n.domToBlock(n, t) : null;
90
90
  }
91
91
  function Nt(t) {
92
92
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
93
93
  }
94
- function Ci(t) {
94
+ function ki(t) {
95
95
  return t.array ? "Array" : 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);
96
96
  }
97
- function co(t) {
97
+ function ro(t) {
98
98
  return t === "string" ? "String" : t === "integer" || t === "decimal" ? "Number" : t === "boolean" ? "Boolean" : t === "enum" || t === "dateTime" ? "String" : (console.assert(!1), null);
99
99
  }
100
100
  function Tn(t, e, n, o) {
@@ -141,39 +141,39 @@ function fe(t) {
141
141
  const e = `<shadow type="logic_boolean_v1"><field name="BOOL">${t ? "TRUE" : "FALSE"}</field></shadow>`;
142
142
  return S.xml.textToDom(e);
143
143
  }
144
- function ro() {
144
+ function lo() {
145
145
  return S.xml.textToDom('<shadow type="list_create_v1"></shadow>');
146
146
  }
147
- function ki() {
147
+ function Ni() {
148
148
  return S.xml.textToDom('<shadow type="object_create_v1"></shadow>');
149
149
  }
150
- function Ni(t) {
150
+ function Si(t) {
151
151
  const e = `<shadow type="${Be(t)}"></shadow>`;
152
152
  return S.xml.textToDom(e);
153
153
  }
154
- function Si(t) {
154
+ function Li(t) {
155
155
  const e = `<shadow type="${Be(t)}"></shadow>`;
156
156
  return S.xml.textToDom(e);
157
157
  }
158
- function Li() {
158
+ function Bi() {
159
159
  return S.xml.textToDom('<shadow type="select_comp_v1"></shadow>');
160
160
  }
161
- function Bi() {
161
+ function bi() {
162
162
  return S.xml.textToDom('<shadow type="select_slot_v1"></shadow>');
163
163
  }
164
- function bi(t) {
164
+ function Pi(t) {
165
165
  const e = `<shadow type="color_picker_v1"><field name="COLOR">${t}</field></shadow>`;
166
166
  return S.xml.textToDom(e);
167
167
  }
168
168
  function at(t) {
169
169
  let e = null;
170
- return t === "string" ? e = At("") : t === "number" ? e = he(0) : t === "boolean" ? e = fe(!1) : t === "array" ? e = ro() : t === "object" ? e = ki() : console.assert(!1), e;
170
+ return t === "string" ? e = At("") : t === "number" ? e = he(0) : t === "boolean" ? e = fe(!1) : t === "array" ? e = lo() : t === "object" ? e = Ni() : console.assert(!1), e;
171
171
  }
172
- function Pi(t) {
172
+ function Ri(t) {
173
173
  let e = null;
174
- return t.array ? e = ro() : t.ui === "dummy" ? e = null : t.ui === "strInput" ? e = At(t.default) : t.ui === "numInput" ? e = he(t.default) : t.ui === "switch" ? e = fe(t.default) : t.ui === "select" ? e = Ni(t.items) : t.ui === "multiTypes" ? e = Si(t.types) : t.ui === "selectComp" ? e = Li() : t.ui === "selectSlot" ? e = Bi() : t.ui === "colorPicker" ? e = bi(t.default ?? "#ff0000") : console.assert(!1), e;
174
+ return t.array ? e = lo() : t.ui === "dummy" ? e = null : t.ui === "strInput" ? e = At(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;
175
175
  }
176
- function Ri() {
176
+ function Di() {
177
177
  const { activeObject: t, activePage: e } = A.app, n = [];
178
178
  if (t.type === "page" && e.meta.arguments)
179
179
  for (const { id: o, name: i, type: a } of e.meta.arguments)
@@ -192,13 +192,13 @@ function Rn(t) {
192
192
  };
193
193
  }
194
194
  }
195
- function Di() {
195
+ function Mi() {
196
196
  const t = [];
197
- return Ri().forEach(({ key: n, name: o }) => {
197
+ return Di().forEach(({ key: n, name: o }) => {
198
198
  t.push([o, n]);
199
199
  }), B(t);
200
200
  }
201
- const Mi = {
201
+ const Ui = {
202
202
  init: function() {
203
203
  this.argument = {
204
204
  key: "",
@@ -220,7 +220,7 @@ const Mi = {
220
220
  }, 0);
221
221
  },
222
222
  genArgumentOpts_: function() {
223
- return Di();
223
+ return Mi();
224
224
  },
225
225
  onchange: function(t) {
226
226
  if (t.type === R.STATE_CHANGE)
@@ -256,12 +256,12 @@ const Mi = {
256
256
  this.setWarningText(null);
257
257
  }
258
258
  };
259
- I.get_page_argument_v1 = Mi;
259
+ I.get_page_argument_v1 = Ui;
260
260
  s.forBlock.get_page_argument_v1 = function(t) {
261
261
  const e = t;
262
262
  return [`__getPageArgumentV1__(${s.quote_(e.argument.key)})`, _.FUNCTION_CALL];
263
263
  };
264
- const Ui = (t, e) => {
264
+ const Vi = (t, e) => {
265
265
  const n = Be(t), o = de(t);
266
266
  I[n] = {
267
267
  init: function() {
@@ -284,9 +284,9 @@ const Ui = (t, e) => {
284
284
  for (const t in ue) {
285
285
  const e = ue[t];
286
286
  for (const n in e.items)
287
- Ui(n, e.items[n]);
287
+ Vi(n, e.items[n]);
288
288
  }
289
- const Vi = (t, e) => {
289
+ const xi = (t, e) => {
290
290
  const n = Be(t), o = de(t);
291
291
  I[n] = {
292
292
  init: function() {
@@ -339,7 +339,7 @@ const Vi = (t, e) => {
339
339
  i.removeField("VALUE", !0), i.removeField("SUFFIX", !0);
340
340
  let r, u;
341
341
  if (c.ui === "pixelInput") {
342
- const h = ai(this.value) ?? 0;
342
+ const h = ci(this.value) ?? 0;
343
343
  r = new Ze(
344
344
  h,
345
345
  c.min,
@@ -350,7 +350,7 @@ const Vi = (t, e) => {
350
350
  }
351
351
  ), u = "px";
352
352
  } else if (c.ui === "percentInput") {
353
- const h = ci(this.value) ?? 0;
353
+ const h = ri(this.value) ?? 0;
354
354
  r = new Ze(
355
355
  h,
356
356
  c.min,
@@ -379,35 +379,35 @@ const Vi = (t, e) => {
379
379
  for (const t in ue) {
380
380
  const e = ue[t];
381
381
  for (const n in e.types)
382
- Vi(n, e.types[n]);
382
+ xi(n, e.types[n]);
383
383
  }
384
- const xi = S.xml, wi = {
384
+ const wi = S.xml, Fi = {
385
385
  init: function() {
386
386
  this.appendDummyInput().appendField(
387
387
  "%{BKY_APP_V1_APP_BIND_CONTAINER_TITLE}"
388
388
  ), this.appendStatementInput("STACK"), this.setStyle("event_blocks"), this.contextMenu = !1;
389
389
  }
390
390
  };
391
- I.app_bind_container_v1 = wi;
392
- const Fi = {
391
+ I.app_bind_container_v1 = Fi;
392
+ const Yi = {
393
393
  init: function() {
394
394
  this.appendDummyInput().appendField("%{BKY_APP_V1_APP_BIND_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("event_blocks"), this.contextMenu = !1;
395
395
  }
396
396
  };
397
- I.app_bind_item_v1 = Fi;
398
- const Yi = {
397
+ I.app_bind_item_v1 = Yi;
398
+ const Ki = {
399
399
  init: function() {
400
400
  this.itemCount_ = 0, this.setMutator(
401
401
  new vt.MutatorIcon(
402
402
  ["app_bind_item_v1"],
403
403
  this
404
404
  )
405
- ), this.debounce_ = wo(() => {
405
+ ), this.debounce_ = Fo(() => {
406
406
  this.checkWarning_();
407
407
  }, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}"), this.updateShape_();
408
408
  },
409
409
  mutationToDom: function() {
410
- const t = xi.createElement("mutation");
410
+ const t = wi.createElement("mutation");
411
411
  return t.setAttribute("items", String(this.itemCount_)), t;
412
412
  },
413
413
  domToMutation: function(t) {
@@ -513,11 +513,11 @@ const Yi = {
513
513
  this.setWarningText(null);
514
514
  }
515
515
  };
516
- I.app_bind_v1 = Yi;
516
+ I.app_bind_v1 = Ki;
517
517
  s.forBlock.app_bind_v1 = function() {
518
518
  return "";
519
519
  };
520
- function lo() {
520
+ function uo() {
521
521
  const t = [], { appList: e } = A.app;
522
522
  for (const { id: n, name: o } of e)
523
523
  t.push({ id: n, name: o });
@@ -531,13 +531,13 @@ function Dn(t) {
531
531
  name: n.name
532
532
  };
533
533
  }
534
- function Ki() {
534
+ function $i() {
535
535
  const t = [];
536
- return lo().forEach(({ id: n, name: o }) => {
536
+ return uo().forEach(({ id: n, name: o }) => {
537
537
  t.push([o, n]);
538
538
  }), B(t);
539
539
  }
540
- function uo() {
540
+ function _o() {
541
541
  const { activeApp: t } = A.app, e = [{ id: "", name: "" }];
542
542
  for (const { id: n, name: o } of t.comps)
543
543
  e.push({ id: n, name: o });
@@ -554,9 +554,9 @@ function Mn(t) {
554
554
  name: n.name
555
555
  };
556
556
  }
557
- function $i() {
557
+ function Hi() {
558
558
  const { i18n: t } = Ct, e = [];
559
- return uo().forEach(({ id: o, name: i }) => {
559
+ return _o().forEach(({ id: o, name: i }) => {
560
560
  let a = i;
561
561
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
562
562
  }), B(e);
@@ -599,7 +599,7 @@ function an(t) {
599
599
  id: x("elementPropertyChangeEvent", t, l),
600
600
  kind: "elementPropertyChangeEvent",
601
601
  names: d,
602
- params: w(ao(p))
602
+ params: w(co(p))
603
603
  });
604
604
  if (nt(h.key) && u.comp) {
605
605
  const l = a[u.comp];
@@ -736,7 +736,7 @@ function an(t) {
736
736
  id: x(
737
737
  "adaptSlotElementEvent",
738
738
  t,
739
- ui(
739
+ _i(
740
740
  l.mainKey,
741
741
  l.slotKey,
742
742
  f.key
@@ -855,7 +855,7 @@ function We(t) {
855
855
  id: t,
856
856
  kind: r,
857
857
  names: p.names,
858
- params: w(ao(p.raw))
858
+ params: w(co(p.raw))
859
859
  };
860
860
  }
861
861
  } else if (r === "refEvent") {
@@ -948,7 +948,7 @@ function We(t) {
948
948
  elementKey: p,
949
949
  slotKey: f,
950
950
  eventKey: T
951
- } = ri(h), E = P[p];
951
+ } = li(h), E = P[p];
952
952
  if (E && E.slots) {
953
953
  const y = E.slots.find((N) => N.key === f);
954
954
  if (y && y.events) {
@@ -984,7 +984,7 @@ function We(t) {
984
984
  }
985
985
  } else if (r === "adaptSlotCustomEvent") {
986
986
  if (L(d.key) && n.type === "comp") {
987
- const { compId: p, slotId: f, eventId: T } = li(h), E = a[p];
987
+ const { compId: p, slotId: f, eventId: T } = ui(h), E = a[p];
988
988
  if (E && E.meta.slots) {
989
989
  const y = E.meta.slots.find((N) => N.id === f);
990
990
  if (y && y.events) {
@@ -1040,7 +1040,7 @@ function We(t) {
1040
1040
  }
1041
1041
  }
1042
1042
  }
1043
- function Hi(t) {
1043
+ function Gi(t) {
1044
1044
  const e = [], n = an(t);
1045
1045
  let o;
1046
1046
  for (const { id: i, kind: a, names: c } of n)
@@ -1092,7 +1092,7 @@ function je(t) {
1092
1092
  };
1093
1093
  }
1094
1094
  }
1095
- function Gi(t) {
1095
+ function Wi(t) {
1096
1096
  const e = [], n = cn(t);
1097
1097
  let o;
1098
1098
  for (const { id: i, kind: a, names: c } of n)
@@ -1179,7 +1179,7 @@ function rn(t) {
1179
1179
  id: dt(
1180
1180
  "adaptSlotElementMethod",
1181
1181
  t,
1182
- pi(u.key, h.key, l.key)
1182
+ di(u.key, h.key, l.key)
1183
1183
  ),
1184
1184
  kind: "adaptSlotElementMethod",
1185
1185
  names: [u.name, h.name, l.name],
@@ -1306,7 +1306,7 @@ function Xe(t) {
1306
1306
  elementKey: h,
1307
1307
  slotKey: l,
1308
1308
  methodKey: d
1309
- } = _i(c), p = P[h];
1309
+ } = pi(c), p = P[h];
1310
1310
  if (p && p.slots) {
1311
1311
  const f = p.slots.find((T) => T.key === l);
1312
1312
  if (f && f.methods) {
@@ -1340,7 +1340,7 @@ function Xe(t) {
1340
1340
  }
1341
1341
  }
1342
1342
  }
1343
- function Wi(t) {
1343
+ function ji(t) {
1344
1344
  const e = [], n = rn(t);
1345
1345
  let o;
1346
1346
  for (const { id: i, kind: a, names: c } of n)
@@ -1452,7 +1452,7 @@ function It(t) {
1452
1452
  };
1453
1453
  }
1454
1454
  }
1455
- function _o(t) {
1455
+ function po(t) {
1456
1456
  const e = [], n = qt(t);
1457
1457
  let o;
1458
1458
  for (const { id: i, kind: a, names: c } of n)
@@ -1468,14 +1468,14 @@ function Je(t, e) {
1468
1468
  if (n)
1469
1469
  return n.outputs?.find((o) => o.key === e);
1470
1470
  }
1471
- function ji(t) {
1471
+ function Xi(t) {
1472
1472
  const e = [], n = ln(t);
1473
1473
  if (n)
1474
1474
  for (const { name: o, key: i } of n)
1475
1475
  e.push([o, i]);
1476
1476
  return B(e);
1477
1477
  }
1478
- function Xi(t, e, n) {
1478
+ function Ji(t, e, n) {
1479
1479
  const { properties: o } = A.runtime, { activeObject: i, activePage: a, activeComp: c, depends: r } = A.app;
1480
1480
  if (t.events && t.events.length > 0)
1481
1481
  return !1;
@@ -1517,11 +1517,11 @@ function Xi(t, e, n) {
1517
1517
  }
1518
1518
  return !0;
1519
1519
  }
1520
- function Ji(t) {
1520
+ function qi(t) {
1521
1521
  const { activeObject: e, activeComp: n } = A.app;
1522
1522
  return !(L(t.key) && e.type === "comp" && n.meta.events && n.meta.events.length > 0);
1523
1523
  }
1524
- function qi(t, e) {
1524
+ function Qi(t, e) {
1525
1525
  const { activeObject: n, activeComp: o, depends: i } = A.app;
1526
1526
  if (t.methods && t.methods.length > 0)
1527
1527
  return !1;
@@ -1537,7 +1537,7 @@ function qi(t, e) {
1537
1537
  }
1538
1538
  return !(L(t.key) && n.type === "comp" && o.meta.methods && o.meta.methods.length > 0);
1539
1539
  }
1540
- function Qi(t, e) {
1540
+ function zi(t, e) {
1541
1541
  const { activeObject: n, activeComp: o } = A.app;
1542
1542
  if (L(t.key) && n.type === "comp" && o.meta.methods && o.meta.methods.length > 0)
1543
1543
  return !1;
@@ -1553,7 +1553,7 @@ function Qi(t, e) {
1553
1553
  }
1554
1554
  return !0;
1555
1555
  }
1556
- function zi(t, e, n) {
1556
+ function Zi(t, e, n) {
1557
1557
  const { properties: o } = A.runtime, { activeObject: i, activeComp: a, depends: c } = A.app;
1558
1558
  if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
1559
1559
  return !1;
@@ -1569,7 +1569,7 @@ function zi(t, e, n) {
1569
1569
  }
1570
1570
  return !(L(t.key) && i.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
1571
1571
  }
1572
- function Zi(t, e, n) {
1572
+ function ts(t, e, n) {
1573
1573
  const { properties: o } = A.runtime, { activeObject: i, activeComp: a, depends: c } = A.app;
1574
1574
  if (o[t.key] && o[t.key][e]) {
1575
1575
  for (const { keys: r, raw: u } of o[t.key][e])
@@ -1588,8 +1588,8 @@ function Zi(t, e, n) {
1588
1588
  }
1589
1589
  return !(L(t.key) && i.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
1590
1590
  }
1591
- function po(t, e, n, o, i) {
1592
- return t ? t === "onEvent" ? Xi(e, n, i) : t === "triggerEvent" ? Ji(e) : t === "callMethod" ? qi(e, i) : t === "implementMethod" ? Qi(e, o) : t === "getProperty" ? zi(e, n, i) : t === "setProperty" ? Zi(e, n, i) : !1 : !1;
1591
+ function ho(t, e, n, o, i) {
1592
+ return t ? t === "onEvent" ? Ji(e, n, i) : t === "triggerEvent" ? qi(e) : t === "callMethod" ? Qi(e, i) : t === "implementMethod" ? zi(e, o) : t === "getProperty" ? Zi(e, n, i) : t === "setProperty" ? ts(e, n, i) : !1 : !1;
1593
1593
  }
1594
1594
  function tt(t) {
1595
1595
  const { activeObject: e } = A.app, n = kt(e.type, e.subtype);
@@ -1601,7 +1601,7 @@ function tt(t) {
1601
1601
  console.assert(!1, "invalid element", o.key);
1602
1602
  continue;
1603
1603
  }
1604
- if (!po(t, i, n, o.comp))
1604
+ if (!ho(t, i, n, o.comp))
1605
1605
  return !0;
1606
1606
  }
1607
1607
  return !1;
@@ -1616,7 +1616,7 @@ function St(t) {
1616
1616
  console.assert(!1, "invalid element", i.key);
1617
1617
  continue;
1618
1618
  }
1619
- po(t, a, o, i.slot, i.comp) || n.push({
1619
+ ho(t, a, o, i.slot, i.comp) || n.push({
1620
1620
  id: i.id,
1621
1621
  key: i.key,
1622
1622
  name: a.name,
@@ -1668,7 +1668,7 @@ function qe(t, e) {
1668
1668
  name: i.name
1669
1669
  };
1670
1670
  }
1671
- function ts(t) {
1671
+ function es(t) {
1672
1672
  const e = [];
1673
1673
  return un(t).forEach(({ id: o, name: i }) => {
1674
1674
  e.push([i, o]);
@@ -1821,7 +1821,7 @@ function bt(t) {
1821
1821
  const { properties: e } = A.runtime, { activeObject: n, activeComp: o, depends: i } = A.app, a = kt(n.type, n.subtype);
1822
1822
  if (!a)
1823
1823
  return;
1824
- const { kind: c, nodeId: r, propertyKey: u } = di(t), h = n.nodes.find((d) => d.id === r);
1824
+ const { kind: c, nodeId: r, propertyKey: u } = hi(t), h = n.nodes.find((d) => d.id === r);
1825
1825
  if (!h)
1826
1826
  return;
1827
1827
  const l = P[h.key];
@@ -1974,14 +1974,14 @@ function bt(t) {
1974
1974
  }
1975
1975
  }
1976
1976
  }
1977
- function ho(t, e) {
1977
+ function fo(t, e) {
1978
1978
  const n = [], o = Qt(t, e);
1979
1979
  let i;
1980
1980
  for (const { id: a, kind: c, names: r } of o)
1981
1981
  c !== i && (i && n.push("separator"), i = c), n.push([to(c, r), a]);
1982
1982
  return B(n);
1983
1983
  }
1984
- function fo() {
1984
+ function mo() {
1985
1985
  const { activeObject: t, activeComp: e } = A.app, n = [{ id: "", name: "" }];
1986
1986
  if (t.type !== "comp" || !e.meta.slots)
1987
1987
  return n;
@@ -2002,8 +2002,8 @@ function Un(t) {
2002
2002
  name: o.name
2003
2003
  };
2004
2004
  }
2005
- function es() {
2006
- const { i18n: t } = Ct, e = [], n = fo();
2005
+ function ns() {
2006
+ const { i18n: t } = Ct, e = [], n = mo();
2007
2007
  for (const { id: o, name: i } of n) {
2008
2008
  let a = i;
2009
2009
  o === "" && (a = t.global.t("x-runtime-lib.notSet")), e.push([a, o]);
@@ -2021,13 +2021,13 @@ function me(t) {
2021
2021
  if (e.type === "comp")
2022
2022
  return o.meta.states?.find((i) => i.id === t);
2023
2023
  }
2024
- function mo() {
2024
+ function To() {
2025
2025
  const t = [], e = En();
2026
2026
  for (const { id: n, name: o } of e)
2027
2027
  t.push([o, n]);
2028
2028
  return B(t);
2029
2029
  }
2030
- const ns = {
2030
+ const os = {
2031
2031
  init: function() {
2032
2032
  this.node = {
2033
2033
  id: "",
@@ -2073,7 +2073,7 @@ const ns = {
2073
2073
  return Dt("onEvent");
2074
2074
  },
2075
2075
  genEventOpts_: function() {
2076
- return Hi(this.node.id);
2076
+ return Gi(this.node.id);
2077
2077
  },
2078
2078
  onchange: function(t) {
2079
2079
  if (t.type === R.STATE_CHANGE)
@@ -2134,7 +2134,7 @@ const ns = {
2134
2134
  return;
2135
2135
  const t = [];
2136
2136
  this.getInput("INSTANCE") && t.push(["INSTANCE", "__instance__", "x-runtime-lib.instance", !0]);
2137
- const e = hi(this.event.kind);
2137
+ const e = fi(this.event.kind);
2138
2138
  if (this.event.params)
2139
2139
  for (let n = 0; n < this.event.params.length; n++) {
2140
2140
  const { key: o, name: i } = this.event.params[n];
@@ -2169,7 +2169,7 @@ const ns = {
2169
2169
  this.setWarningText(null);
2170
2170
  }
2171
2171
  };
2172
- I.on_app_event_v1 = ns;
2172
+ I.on_app_event_v1 = os;
2173
2173
  s.forBlock.on_app_event_v1 = function(t) {
2174
2174
  const e = s.quote_, n = t;
2175
2175
  let o = "__instance__";
@@ -2181,7 +2181,7 @@ s.forBlock.on_app_event_v1 = function(t) {
2181
2181
  ${i}});
2182
2182
  `;
2183
2183
  };
2184
- const os = {
2184
+ const is = {
2185
2185
  init: function() {
2186
2186
  this.node = {
2187
2187
  id: "",
@@ -2227,7 +2227,7 @@ const os = {
2227
2227
  return Dt("triggerEvent");
2228
2228
  },
2229
2229
  genEventOpts_: function() {
2230
- return Gi(this.node.id);
2230
+ return Wi(this.node.id);
2231
2231
  },
2232
2232
  onchange: function(t) {
2233
2233
  if (t.type === R.STATE_CHANGE)
@@ -2328,7 +2328,7 @@ const os = {
2328
2328
  this.setWarningText(null);
2329
2329
  }
2330
2330
  };
2331
- I.trigger_app_event_v1 = os;
2331
+ I.trigger_app_event_v1 = is;
2332
2332
  s.forBlock.trigger_app_event_v1 = function(t) {
2333
2333
  const e = s.quote_, n = t;
2334
2334
  let o = "''";
@@ -2365,7 +2365,7 @@ g([
2365
2365
  }
2366
2366
  ]);
2367
2367
  s.forBlock.watch_effect_v1 = function(t) {
2368
- const e = Fo(t.id), n = s.statementToCode(t, "HANDLE");
2368
+ const e = Yo(t.id), n = s.statementToCode(t, "HANDLE");
2369
2369
  return `function __watchEffect$${e}__() {
2370
2370
  ${n}};
2371
2371
  `;
@@ -2391,7 +2391,7 @@ s.forBlock.app_debug_trace_v1 = function(t) {
2391
2391
  return `__debugTraceV1__(${s.valueToCode(t, "OBJECT", _.NONE)});
2392
2392
  `;
2393
2393
  };
2394
- const is = {
2394
+ const ss = {
2395
2395
  init: function() {
2396
2396
  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}");
2397
2397
  },
@@ -2420,7 +2420,7 @@ const is = {
2420
2420
  ]);
2421
2421
  }
2422
2422
  };
2423
- I.open_confirm_dlg_v1 = is;
2423
+ I.open_confirm_dlg_v1 = ss;
2424
2424
  s.forBlock.open_confirm_dlg_v1 = function(t) {
2425
2425
  const e = s.valueToCode(t, "TITLE", _.ATOMIC), n = s.valueToCode(t, "TEXT", _.ATOMIC), o = s.statementToCode(t, "HANDLE");
2426
2426
  return `{
@@ -2428,7 +2428,7 @@ s.forBlock.open_confirm_dlg_v1 = function(t) {
2428
2428
  ${o}}
2429
2429
  `;
2430
2430
  };
2431
- const ss = {
2431
+ const as = {
2432
2432
  init: function() {
2433
2433
  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}");
2434
2434
  },
@@ -2459,7 +2459,7 @@ const ss = {
2459
2459
  ]);
2460
2460
  }
2461
2461
  };
2462
- I.open_prompt_dlg_v1 = ss;
2462
+ I.open_prompt_dlg_v1 = as;
2463
2463
  s.forBlock.open_prompt_dlg_v1 = function(t) {
2464
2464
  const e = s.valueToCode(t, "TITLE", _.ATOMIC), n = s.valueToCode(t, "LABEL", _.ATOMIC), o = s.valueToCode(t, "VALUE", _.ATOMIC), i = s.statementToCode(t, "HANDLE");
2465
2465
  return `{
@@ -2499,7 +2499,7 @@ s.forBlock.popup_message_v1 = function(t) {
2499
2499
  return `__messageV1__(${e}, ${n});
2500
2500
  `;
2501
2501
  };
2502
- const as = {
2502
+ const cs = {
2503
2503
  init: function() {
2504
2504
  this.node = {
2505
2505
  id: "",
@@ -2545,7 +2545,7 @@ const as = {
2545
2545
  return Dt("callMethod");
2546
2546
  },
2547
2547
  genMethodOpts_: function() {
2548
- return Wi(this.node.id);
2548
+ return ji(this.node.id);
2549
2549
  },
2550
2550
  onchange: function(t) {
2551
2551
  if (t.type === R.STATE_CHANGE)
@@ -2636,7 +2636,7 @@ const as = {
2636
2636
  ensureBlocks_: function() {
2637
2637
  if (this.isInsertionMarker())
2638
2638
  return;
2639
- const { kind: t } = ee(this.method.id), e = eo(t), n = [];
2639
+ const { kind: t } = ee(this.method.id), e = no(t), n = [];
2640
2640
  if (this.method.outputs)
2641
2641
  for (let o = 0; o < this.method.outputs.length; o++) {
2642
2642
  const { key: i, name: a } = this.method.outputs[o];
@@ -2675,7 +2675,7 @@ const as = {
2675
2675
  this.setWarningText(null);
2676
2676
  }
2677
2677
  };
2678
- I.call_app_method_v1 = as;
2678
+ I.call_app_method_v1 = cs;
2679
2679
  s.forBlock.call_app_method_v1 = function(t) {
2680
2680
  const e = s.INDENT, n = s.quote_, o = t;
2681
2681
  let i = "''";
@@ -2722,7 +2722,7 @@ s.forBlock.call_app_method_v1 = function(t) {
2722
2722
  c += `${e}const __output$${r}__ = __outputs__[${n(r)}];
2723
2723
  `;
2724
2724
  if (o.method.kind === "customMethod") {
2725
- const { kind: r, nodeId: u, methodKey: h } = ee(o.method.id), l = `__implementMethod$${r}$${u}$${h}__`;
2725
+ const { kind: r, nodeId: u, methodKey: h } = ee(o.method.id), l = eo(r, u, h);
2726
2726
  if (o.method.outputs && o.method.outputs.length > 0) {
2727
2727
  const d = s.statementToCode(o, "HANDLE");
2728
2728
  return `{
@@ -2742,7 +2742,7 @@ ${c}${r}}
2742
2742
  return `await __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2743
2743
  `;
2744
2744
  };
2745
- const cs = {
2745
+ const rs = {
2746
2746
  init: function() {
2747
2747
  this.node = {
2748
2748
  id: "",
@@ -2788,7 +2788,7 @@ const cs = {
2788
2788
  return Dt("implementMethod");
2789
2789
  },
2790
2790
  genMethodOpts_: function() {
2791
- return _o(this.node.id);
2791
+ return po(this.node.id);
2792
2792
  },
2793
2793
  onchange: function(t) {
2794
2794
  if (t.type === R.STATE_CHANGE)
@@ -2833,7 +2833,7 @@ const cs = {
2833
2833
  ensureBlocks_: function() {
2834
2834
  if (this.isInsertionMarker())
2835
2835
  return;
2836
- const t = eo(this.method.kind), e = [];
2836
+ const t = no(this.method.kind), e = [];
2837
2837
  if (this.method.inputs)
2838
2838
  for (let n = 0; n < this.method.inputs.length; n++) {
2839
2839
  const { key: o, name: i } = this.method.inputs[n];
@@ -2868,22 +2868,22 @@ const cs = {
2868
2868
  this.setWarningText(null);
2869
2869
  }
2870
2870
  };
2871
- I.implement_app_method_v1 = cs;
2871
+ I.implement_app_method_v1 = rs;
2872
2872
  s.forBlock.implement_app_method_v1 = function(t) {
2873
2873
  const e = s.INDENT, n = s.quote_, o = t, { kind: i, nodeId: a, methodKey: c } = ee(o.method.id);
2874
2874
  let r = "";
2875
2875
  if (o.method.inputs)
2876
- for (const { key: l } of o.method.inputs)
2877
- r += `${e}const __input$${l}__ = __inputs__[${n(l)}];
2876
+ for (const { key: d } of o.method.inputs)
2877
+ r += `${e}const __input$${d}__ = __inputs__[${n(d)}];
2878
2878
  `;
2879
2879
  const u = s.statementToCode(o, "HANDLE");
2880
- return `async function __implementMethod$${i}$${a}$${c}__(__instance__, __inputs__) {
2880
+ return `async function ${eo(i, a, c)}(__instance__, __inputs__) {
2881
2881
  ${r}${e}const __outputs__ = {};
2882
2882
  ${u}${e}return __outputs__;
2883
2883
  }
2884
2884
  `;
2885
2885
  };
2886
- const rs = {
2886
+ const ls = {
2887
2887
  init: function() {
2888
2888
  this.node = {
2889
2889
  id: "",
@@ -2943,10 +2943,10 @@ const rs = {
2943
2943
  return Dt("implementMethod");
2944
2944
  },
2945
2945
  genMethodOpts_: function() {
2946
- return _o(this.node.id);
2946
+ return po(this.node.id);
2947
2947
  },
2948
2948
  genOutputOpts_: function() {
2949
- return ji(this.method.id);
2949
+ return Xi(this.method.id);
2950
2950
  },
2951
2951
  onchange: function(t) {
2952
2952
  if (t.type === R.STATE_CHANGE)
@@ -3042,7 +3042,7 @@ const rs = {
3042
3042
  this.setWarningText(null);
3043
3043
  }
3044
3044
  };
3045
- I.set_app_method_output_v1 = rs;
3045
+ I.set_app_method_output_v1 = ls;
3046
3046
  s.forBlock.set_app_method_output_v1 = function(t) {
3047
3047
  const e = s.quote_, n = t;
3048
3048
  let o = s.valueToCode(n, "VALUE", _.ATOMIC);
@@ -3092,7 +3092,7 @@ g([
3092
3092
  s.forBlock.app_env_is_v1 = function(t) {
3093
3093
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, _.ATOMIC];
3094
3094
  };
3095
- const ls = {
3095
+ const us = {
3096
3096
  init: function() {
3097
3097
  this.app = {
3098
3098
  id: "",
@@ -3105,7 +3105,7 @@ const ls = {
3105
3105
  initData_: function() {
3106
3106
  if (this.app.id)
3107
3107
  return;
3108
- const t = lo()?.[0];
3108
+ const t = uo()?.[0];
3109
3109
  if (!t)
3110
3110
  return;
3111
3111
  this.app.id = t.id, this.app.name = t.name;
@@ -3130,10 +3130,10 @@ const ls = {
3130
3130
  }, 0);
3131
3131
  },
3132
3132
  genAppOpts_: function() {
3133
- return Ki();
3133
+ return $i();
3134
3134
  },
3135
3135
  genPageOpts_: function() {
3136
- return ts(this.app.id);
3136
+ return es(this.app.id);
3137
3137
  },
3138
3138
  onchange: function(t) {
3139
3139
  if (t.type === R.STATE_CHANGE)
@@ -3178,13 +3178,13 @@ const ls = {
3178
3178
  e.name !== this.page.name && (this.page.name = e.name), this.setWarningText(null);
3179
3179
  }
3180
3180
  };
3181
- I.navigate_to_v1 = ls;
3181
+ I.navigate_to_v1 = us;
3182
3182
  s.forBlock.navigate_to_v1 = function(t) {
3183
3183
  const e = t, n = s.quote_(e.app.id), o = s.quote_(e.page.id);
3184
3184
  return `__navigateToV1__(${n}, ${o});
3185
3185
  `;
3186
3186
  };
3187
- const us = {
3187
+ const _s = {
3188
3188
  init: function() {
3189
3189
  this.comp = {
3190
3190
  id: "",
@@ -3194,7 +3194,7 @@ const us = {
3194
3194
  initData_: function() {
3195
3195
  if (this.comp.id)
3196
3196
  return;
3197
- const t = uo()?.[0];
3197
+ const t = _o()?.[0];
3198
3198
  if (!t)
3199
3199
  return;
3200
3200
  this.comp.id = t.id, this.comp.name = t.name;
@@ -3212,7 +3212,7 @@ const us = {
3212
3212
  }, 0);
3213
3213
  },
3214
3214
  genCompOpts_: function() {
3215
- return $i();
3215
+ return Hi();
3216
3216
  },
3217
3217
  onchange: function(t) {
3218
3218
  if (t.type === R.STATE_CHANGE)
@@ -3237,12 +3237,12 @@ const us = {
3237
3237
  t.name !== this.comp.name && (this.comp.name = t.name), this.setWarningText(null);
3238
3238
  }
3239
3239
  };
3240
- I.select_comp_v1 = us;
3240
+ I.select_comp_v1 = _s;
3241
3241
  s.forBlock.select_comp_v1 = function(t) {
3242
3242
  const e = s.quote_, o = t.comp.id;
3243
3243
  return [e(o), _.ATOMIC];
3244
3244
  };
3245
- const _s = {
3245
+ const ps = {
3246
3246
  init: function() {
3247
3247
  this.slot = {
3248
3248
  id: "",
@@ -3252,7 +3252,7 @@ const _s = {
3252
3252
  initData_: function() {
3253
3253
  if (this.slot.id)
3254
3254
  return;
3255
- const t = fo()?.[0];
3255
+ const t = mo()?.[0];
3256
3256
  if (!t)
3257
3257
  return;
3258
3258
  this.slot.id = t.id, this.slot.name = t.name;
@@ -3270,7 +3270,7 @@ const _s = {
3270
3270
  }, 0);
3271
3271
  },
3272
3272
  genSlotOpts_: function() {
3273
- return es();
3273
+ return ns();
3274
3274
  },
3275
3275
  onchange: function(t) {
3276
3276
  if (t.type === R.STATE_CHANGE)
@@ -3295,12 +3295,12 @@ const _s = {
3295
3295
  t.name !== this.slot.name && (this.slot.name = t.name), this.setWarningText(null);
3296
3296
  }
3297
3297
  };
3298
- I.select_slot_v1 = _s;
3298
+ I.select_slot_v1 = ps;
3299
3299
  s.forBlock.select_slot_v1 = function(t) {
3300
3300
  const e = s.quote_, o = t.slot.id;
3301
3301
  return [e(o), _.ATOMIC];
3302
3302
  };
3303
- const ps = {
3303
+ const ds = {
3304
3304
  init: function() {
3305
3305
  this.node = {
3306
3306
  id: "",
@@ -3346,7 +3346,7 @@ const ps = {
3346
3346
  return Dt("getProperty");
3347
3347
  },
3348
3348
  genPropertyOpts_: function() {
3349
- return ho(this.node.id, "read");
3349
+ return fo(this.node.id, "read");
3350
3350
  },
3351
3351
  onchange: function(t) {
3352
3352
  if (t.type === R.STATE_CHANGE)
@@ -3424,13 +3424,13 @@ const ps = {
3424
3424
  K(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
3425
3425
  }
3426
3426
  };
3427
- I.get_app_property_v1 = ps;
3427
+ I.get_app_property_v1 = ds;
3428
3428
  s.forBlock.get_app_property_v1 = function(t) {
3429
3429
  const e = s.quote_, n = t;
3430
3430
  let o = "''";
3431
3431
  return n.getInput("INSTANCE") && (o = s.valueToCode(n, "INSTANCE", _.NONE) || "''"), [`__getPropertyV1__(${e(n.property.id)}, ${o})`, _.ATOMIC];
3432
3432
  };
3433
- const ds = {
3433
+ const hs = {
3434
3434
  init: function() {
3435
3435
  this.node = {
3436
3436
  id: "",
@@ -3476,7 +3476,7 @@ const ds = {
3476
3476
  return Dt("setProperty");
3477
3477
  },
3478
3478
  genPropertyOpts_: function() {
3479
- return ho(this.node.id, "write");
3479
+ return fo(this.node.id, "write");
3480
3480
  },
3481
3481
  onchange: function(t) {
3482
3482
  if (t.type === R.STATE_CHANGE)
@@ -3537,7 +3537,7 @@ const ds = {
3537
3537
  if (n) {
3538
3538
  n.setShadowDom(null);
3539
3539
  const o = n.connection?.targetBlock();
3540
- o && o.dispose(), t.meta.element ? n.setCheck(Ci(t.meta.raw)).setShadowDom(Pi(t.meta.raw)) : n.setCheck(Nt(t.meta.raw.type)).setShadowDom(at(t.meta.raw.type));
3540
+ o && o.dispose(), t.meta.element ? n.setCheck(ki(t.meta.raw)).setShadowDom(Ri(t.meta.raw)) : n.setCheck(Nt(t.meta.raw.type)).setShadowDom(at(t.meta.raw.type));
3541
3541
  }
3542
3542
  },
3543
3543
  checkWarning_: function() {
@@ -3563,7 +3563,7 @@ const ds = {
3563
3563
  K(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
3564
3564
  }
3565
3565
  };
3566
- I.set_app_property_v1 = ds;
3566
+ I.set_app_property_v1 = hs;
3567
3567
  s.forBlock.set_app_property_v1 = function(t) {
3568
3568
  const e = s.quote_, n = t;
3569
3569
  let o = "''";
@@ -3576,7 +3576,7 @@ s.forBlock.set_app_property_v1 = function(t) {
3576
3576
  return `await __setPropertyV1__(${e(n.property.id)}, ${i}, ${o});
3577
3577
  `;
3578
3578
  };
3579
- const hs = {
3579
+ const fs = {
3580
3580
  init: function() {
3581
3581
  this.state = {
3582
3582
  id: "",
@@ -3608,7 +3608,7 @@ const hs = {
3608
3608
  }, 0);
3609
3609
  },
3610
3610
  genStateOpts_: function() {
3611
- return mo();
3611
+ return To();
3612
3612
  },
3613
3613
  onchange: function(t) {
3614
3614
  if (t.type === R.STATE_CHANGE)
@@ -3635,12 +3635,12 @@ const hs = {
3635
3635
  this.setWarningText(null);
3636
3636
  }
3637
3637
  };
3638
- I.get_app_state_v1 = hs;
3638
+ I.get_app_state_v1 = fs;
3639
3639
  s.forBlock.get_app_state_v1 = function(t) {
3640
3640
  const e = s.quote_;
3641
3641
  return [`__getStateV1__(${e(t.state.id)})`, _.ATOMIC];
3642
3642
  };
3643
- const fs = {
3643
+ const ms = {
3644
3644
  init: function() {
3645
3645
  this.state = {
3646
3646
  id: "",
@@ -3670,7 +3670,7 @@ const fs = {
3670
3670
  this.state.id = t.state?.id ?? "", this.state.name = t.state?.name ?? "", this.state.type = t.state?.type ?? "string";
3671
3671
  },
3672
3672
  genStateOpts_: function() {
3673
- return mo();
3673
+ return To();
3674
3674
  },
3675
3675
  onchange: function(t) {
3676
3676
  if (t.type === v.BLOCK_CHANGE) {
@@ -3704,7 +3704,7 @@ const fs = {
3704
3704
  this.setWarningText(null);
3705
3705
  }
3706
3706
  };
3707
- I.set_app_state_v1 = fs;
3707
+ I.set_app_state_v1 = ms;
3708
3708
  s.forBlock.set_app_state_v1 = function(t) {
3709
3709
  const e = s.quote_, n = t, o = s.valueToCode(n, "VALUE", _.NONE);
3710
3710
  return `__setStateV1__(${e(n.state.id)}, ${o});
@@ -4413,7 +4413,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
4413
4413
  `
4414
4414
  )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
4415
4415
  };
4416
- const ms = S.xml, Ts = [
4416
+ const Ts = S.xml, Es = [
4417
4417
  {
4418
4418
  type: "add_data_v1",
4419
4419
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
@@ -4476,16 +4476,16 @@ const ms = S.xml, Ts = [
4476
4476
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
4477
4477
  }
4478
4478
  ];
4479
- function Es(t, e) {
4480
- const n = Ts.find((o) => o.type === t);
4479
+ function gs(t, e) {
4480
+ const n = Es.find((o) => o.type === t);
4481
4481
  return n ? !!(n.prefixInputs?.some((o) => e.startsWith(o)) || n.inputs?.some((o) => o === e)) : !1;
4482
4482
  }
4483
- const gs = {
4483
+ const As = {
4484
4484
  init: function() {
4485
4485
  this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
4486
4486
  },
4487
4487
  mutationToDom: function() {
4488
- const t = ms.createElement("mutation");
4488
+ const t = Ts.createElement("mutation");
4489
4489
  return t.setAttribute("key", this.key), t.setAttribute("name", this.name), t.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), t;
4490
4490
  },
4491
4491
  domToMutation: function(t) {
@@ -4514,7 +4514,7 @@ const gs = {
4514
4514
  },
4515
4515
  tryDuplicate_: function(t) {
4516
4516
  const e = this.workspace.getBlockById(t.oldParentId);
4517
- if (e && Es(e.type, t.oldInputName))
4517
+ if (e && gs(e.type, t.oldInputName))
4518
4518
  try {
4519
4519
  v.disable();
4520
4520
  const n = e.getInput(t.oldInputName)?.connection;
@@ -4539,15 +4539,15 @@ const gs = {
4539
4539
  this.setFieldValue(this.name, "LABEL");
4540
4540
  }
4541
4541
  };
4542
- I.parameter_v1 = gs;
4542
+ I.parameter_v1 = As;
4543
4543
  s.forBlock.parameter_v1 = function(t) {
4544
4544
  return [t.key, _.ATOMIC];
4545
4545
  };
4546
- const As = {
4546
+ const Is = {
4547
4547
  init: function() {
4548
4548
  }
4549
4549
  };
4550
- I.on_flow_state_event_v1 = As;
4550
+ I.on_flow_state_event_v1 = Is;
4551
4551
  s.forBlock.on_flow_state_event_v1 = function() {
4552
4552
  return `__onFlowStateEventV1__();
4553
4553
  `;
@@ -4561,7 +4561,7 @@ function Ft(t, e) {
4561
4561
  if (n)
4562
4562
  return n.funcs.find((o) => o.id === e);
4563
4563
  }
4564
- function To(t) {
4564
+ function Eo(t) {
4565
4565
  const e = [];
4566
4566
  return zt(t).forEach(({ id: o, name: i }) => {
4567
4567
  e.push([i, o]);
@@ -4574,7 +4574,7 @@ function Vn(t) {
4574
4574
  const { activeFunc: e } = A.compute;
4575
4575
  return e.outputs?.find((n) => n.id === t);
4576
4576
  }
4577
- function Is() {
4577
+ function ys() {
4578
4578
  const { activeFunc: t } = A.compute, e = [];
4579
4579
  return t.outputs?.forEach(({ id: n, name: o }) => {
4580
4580
  e.push([o, n]);
@@ -4589,13 +4589,13 @@ function oe(t) {
4589
4589
  function Te(t) {
4590
4590
  return A.compute.spaces.find((e) => e.id === t);
4591
4591
  }
4592
- function Eo(t) {
4592
+ function go(t) {
4593
4593
  const e = [];
4594
4594
  return oe(t).forEach(({ id: o, name: i }) => {
4595
4595
  e.push([i, o]);
4596
4596
  }), B(e);
4597
4597
  }
4598
- const ys = {
4598
+ const Os = {
4599
4599
  init: function() {
4600
4600
  this.space = {
4601
4601
  id: "",
@@ -4638,10 +4638,10 @@ const ys = {
4638
4638
  }, 0);
4639
4639
  },
4640
4640
  genSpaceOpts_: function() {
4641
- return Eo("func");
4641
+ return go("func");
4642
4642
  },
4643
4643
  genFuncOpts_: function() {
4644
- return To(this.space.id);
4644
+ return Eo(this.space.id);
4645
4645
  },
4646
4646
  onchange: function(t) {
4647
4647
  if (t.type === R.STATE_CHANGE)
@@ -4742,7 +4742,7 @@ const ys = {
4742
4742
  this.setWarningText(null);
4743
4743
  }
4744
4744
  };
4745
- I.call_func_v1 = ys;
4745
+ I.call_func_v1 = Os;
4746
4746
  s.forBlock.call_func_v1 = function(t) {
4747
4747
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
4748
4748
  let c = "";
@@ -4769,7 +4769,7 @@ ${e}var __result__ = __callFuncV1__(${i},${a},__inputs__,__getEnvV1__(),${r});
4769
4769
  ${u}${h}}
4770
4770
  `;
4771
4771
  };
4772
- const Os = {
4772
+ const vs = {
4773
4773
  init: function() {
4774
4774
  this.space = {
4775
4775
  id: "",
@@ -4812,10 +4812,10 @@ const Os = {
4812
4812
  }, 0);
4813
4813
  },
4814
4814
  genSpaceOpts_: function() {
4815
- return Eo("func");
4815
+ return go("func");
4816
4816
  },
4817
4817
  genFuncOpts_: function() {
4818
- return To(this.space.id);
4818
+ return Eo(this.space.id);
4819
4819
  },
4820
4820
  onchange: function(t) {
4821
4821
  if (t.type === R.STATE_CHANGE)
@@ -4916,7 +4916,7 @@ const Os = {
4916
4916
  this.setWarningText(null);
4917
4917
  }
4918
4918
  };
4919
- I.call_func_internal_v1 = Os;
4919
+ I.call_func_internal_v1 = vs;
4920
4920
  s.forBlock.call_func_internal_v1 = function(t) {
4921
4921
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
4922
4922
  let c = `${e}var __inputs__ = {
@@ -4946,7 +4946,7 @@ ${e}}
4946
4946
  ${u}${h}}
4947
4947
  `;
4948
4948
  };
4949
- const vs = {
4949
+ const Cs = {
4950
4950
  init: function() {
4951
4951
  this.func = {
4952
4952
  id: ""
@@ -5002,7 +5002,7 @@ const vs = {
5002
5002
  this.setWarningText(null);
5003
5003
  }
5004
5004
  };
5005
- I.func_entry_v1 = vs;
5005
+ I.func_entry_v1 = Cs;
5006
5006
  s.forBlock.func_entry_v1 = function(t) {
5007
5007
  const e = t, n = s.statementToCode(e, "HANDLE"), o = [];
5008
5008
  if (e.func.inputs)
@@ -5013,7 +5013,7 @@ s.forBlock.func_entry_v1 = function(t) {
5013
5013
  return `function __funcEntryV1__(${o.join(", ")}) {
5014
5014
  ${n}}`;
5015
5015
  };
5016
- const Cs = {
5016
+ const ks = {
5017
5017
  init: function() {
5018
5018
  this.output = {
5019
5019
  id: "",
@@ -5041,7 +5041,7 @@ const Cs = {
5041
5041
  }, 0);
5042
5042
  },
5043
5043
  genOutputOpts_: function() {
5044
- return Is();
5044
+ return ys();
5045
5045
  },
5046
5046
  onchange: function(t) {
5047
5047
  if (t.type === R.STATE_CHANGE)
@@ -5088,7 +5088,7 @@ const Cs = {
5088
5088
  this.setWarningText(null);
5089
5089
  }
5090
5090
  };
5091
- I.set_func_output_v1 = Cs;
5091
+ I.set_func_output_v1 = ks;
5092
5092
  s.forBlock.set_func_output_v1 = function(t) {
5093
5093
  const e = s.quote_, n = t, { id: o, type: i } = n.output;
5094
5094
  let a = s.valueToCode(n, "VALUE", _.ATOMIC);
@@ -5206,13 +5206,13 @@ function Qe(t, e, n) {
5206
5206
  if (a)
5207
5207
  return a.columns.find((c) => c.id === n);
5208
5208
  }
5209
- function ks(t, e) {
5209
+ function Ns(t, e) {
5210
5210
  const n = [];
5211
5211
  return Ee(t, e).forEach(({ id: i, name: a }) => {
5212
5212
  n.push([a, i]);
5213
5213
  }), B(n);
5214
5214
  }
5215
- function Ns(t) {
5215
+ function Ss(t) {
5216
5216
  const e = t.getInput("TABLE").connection;
5217
5217
  if (e.targetBlock())
5218
5218
  return;
@@ -5246,7 +5246,7 @@ function Ns(t) {
5246
5246
  }, c = J.blocks.append(a, t.workspace);
5247
5247
  e.connect(c.outputConnection);
5248
5248
  }
5249
- function Ss(t) {
5249
+ function Ls(t) {
5250
5250
  const e = t.getInput("HANDLE").connection;
5251
5251
  if (e.targetBlock())
5252
5252
  return;
@@ -5270,7 +5270,7 @@ function Ss(t) {
5270
5270
  }, o = J.blocks.append(n, t.workspace);
5271
5271
  e.connect(o.previousConnection);
5272
5272
  }
5273
- const Ls = {
5273
+ const Bs = {
5274
5274
  init: function() {
5275
5275
  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}");
5276
5276
  },
@@ -5286,14 +5286,14 @@ const Ls = {
5286
5286
  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"));
5287
5287
  },
5288
5288
  ensureBlocks_: function() {
5289
- this.isInsertionMarker() || (Ns(this), j(this, [
5289
+ this.isInsertionMarker() || (Ss(this), j(this, [
5290
5290
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
5291
5291
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
5292
5292
  ["DATA", "__data__", "x-runtime-lib.data", !0]
5293
- ]), Ss(this));
5293
+ ]), Ls(this));
5294
5294
  }
5295
5295
  };
5296
- I.add_data_v1 = Ls;
5296
+ I.add_data_v1 = Bs;
5297
5297
  s.forBlock.add_data_v1 = function(t) {
5298
5298
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = s.statementToCode(t, "HANDLE");
5299
5299
  return `{
@@ -5309,7 +5309,7 @@ ${e}}
5309
5309
  ${o}}
5310
5310
  `;
5311
5311
  };
5312
- const Bs = {
5312
+ const bs = {
5313
5313
  init: function() {
5314
5314
  this.space = {
5315
5315
  id: "",
@@ -5378,7 +5378,7 @@ const Bs = {
5378
5378
  return Re(this.space.id);
5379
5379
  },
5380
5380
  genColumnOpts_: function() {
5381
- return ks(this.space.id, this.table.id);
5381
+ return Ns(this.space.id, this.table.id);
5382
5382
  },
5383
5383
  onchange: function(t) {
5384
5384
  if (t.type === R.STATE_CHANGE)
@@ -5438,7 +5438,7 @@ const Bs = {
5438
5438
  o && (e.setCheck(null), e.connect(o.outputConnection));
5439
5439
  },
5440
5440
  updateCheck_: function() {
5441
- const t = co(this.column.type);
5441
+ const t = ro(this.column.type);
5442
5442
  this.getInput("VALUE").connection.setCheck(t);
5443
5443
  },
5444
5444
  checkWarning_: function() {
@@ -5470,7 +5470,7 @@ const Bs = {
5470
5470
  this.setWarningText(null);
5471
5471
  }
5472
5472
  };
5473
- I.cond_atomic_v1 = Bs;
5473
+ I.cond_atomic_v1 = bs;
5474
5474
  s.forBlock.cond_atomic_v1 = function(t) {
5475
5475
  const e = s.quote_, n = t, o = n.column.name, i = s.valueToCode(n, "VALUE", _.ATOMIC) || null, c = {
5476
5476
  EQ: "=",
@@ -5482,19 +5482,19 @@ s.forBlock.cond_atomic_v1 = function(t) {
5482
5482
  }[n.getFieldValue("OP")];
5483
5483
  return [`{type:'ATOMIC',key:${e(o)},value:${i},operator:${e(c)}}`, _.ATOMIC];
5484
5484
  };
5485
- const bs = {
5485
+ const Ps = {
5486
5486
  init: function() {
5487
5487
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("logic_blocks"), this.contextMenu = !1;
5488
5488
  }
5489
5489
  };
5490
- I.cond_logic_container_v1 = bs;
5491
- const Ps = {
5490
+ I.cond_logic_container_v1 = Ps;
5491
+ const Rs = {
5492
5492
  init: function() {
5493
5493
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("logic_blocks"), this.contextMenu = !1;
5494
5494
  }
5495
5495
  };
5496
- I.cond_logic_item_v1 = Ps;
5497
- const Rs = {
5496
+ I.cond_logic_item_v1 = Rs;
5497
+ const Ds = {
5498
5498
  init: function() {
5499
5499
  this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
5500
5500
  new O([
@@ -5568,7 +5568,7 @@ const Rs = {
5568
5568
  this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setCheck("Condition");
5569
5569
  }
5570
5570
  };
5571
- I.cond_logic_v1 = Rs;
5571
+ I.cond_logic_v1 = Ds;
5572
5572
  s.forBlock.cond_logic_v1 = function(t) {
5573
5573
  const e = s.quote_, n = t, o = n.getFieldValue("TYPE"), i = [], a = s.valueToCode(n, "VALUE", _.ATOMIC) || null;
5574
5574
  i.push(a);
@@ -5578,7 +5578,7 @@ s.forBlock.cond_logic_v1 = function(t) {
5578
5578
  }
5579
5579
  return [`{type:${e(o)},entries:[${i}]}`, _.ATOMIC];
5580
5580
  };
5581
- function Ds(t) {
5581
+ function Ms(t) {
5582
5582
  const e = t.getInput("TABLE").connection;
5583
5583
  if (e.targetBlock())
5584
5584
  return;
@@ -5597,7 +5597,7 @@ function Ds(t) {
5597
5597
  }, a = J.blocks.append(i, t.workspace);
5598
5598
  e.connect(a.outputConnection);
5599
5599
  }
5600
- function Ms(t) {
5600
+ function Us(t) {
5601
5601
  const e = t.getInput("CONDITION").connection;
5602
5602
  if (e.targetBlock())
5603
5603
  return;
@@ -5622,7 +5622,7 @@ function Ms(t) {
5622
5622
  }, c = J.blocks.append(a, t.workspace);
5623
5623
  e.connect(c.outputConnection);
5624
5624
  }
5625
- function Us(t) {
5625
+ function Vs(t) {
5626
5626
  const e = t.getInput("HANDLE").connection;
5627
5627
  if (e.targetBlock())
5628
5628
  return;
@@ -5646,7 +5646,7 @@ function Us(t) {
5646
5646
  }, o = J.blocks.append(n, t.workspace);
5647
5647
  e.connect(o.previousConnection);
5648
5648
  }
5649
- const Vs = {
5649
+ const xs = {
5650
5650
  init: function() {
5651
5651
  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}");
5652
5652
  },
@@ -5662,13 +5662,13 @@ const Vs = {
5662
5662
  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"));
5663
5663
  },
5664
5664
  ensureBlocks_: function() {
5665
- this.isInsertionMarker() || (Ds(this), Ms(this), j(this, [
5665
+ this.isInsertionMarker() || (Ms(this), Us(this), j(this, [
5666
5666
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
5667
5667
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0]
5668
- ]), Us(this));
5668
+ ]), Vs(this));
5669
5669
  }
5670
5670
  };
5671
- I.delete_data_v1 = Vs;
5671
+ I.delete_data_v1 = xs;
5672
5672
  s.forBlock.delete_data_v1 = function(t) {
5673
5673
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", _.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
5674
5674
  return `{
@@ -5706,7 +5706,7 @@ s.forBlock.interrupt_transaction_v1 = function(t) {
5706
5706
  return `throw ${s.valueToCode(t, "VALUE", _.NONE) || "''"};
5707
5707
  `;
5708
5708
  };
5709
- function xs(t) {
5709
+ function ws(t) {
5710
5710
  const e = t.getInput("TABLE").connection;
5711
5711
  if (e.targetBlock())
5712
5712
  return;
@@ -5740,7 +5740,7 @@ function xs(t) {
5740
5740
  }, c = J.blocks.append(a, t.workspace);
5741
5741
  e.connect(c.outputConnection);
5742
5742
  }
5743
- function ws(t) {
5743
+ function Fs(t) {
5744
5744
  const e = t.getInput("CONDITION").connection;
5745
5745
  if (e.targetBlock())
5746
5746
  return;
@@ -5749,7 +5749,7 @@ function ws(t) {
5749
5749
  }, o = J.blocks.append(n, t.workspace);
5750
5750
  e.connect(o.outputConnection);
5751
5751
  }
5752
- function Fs(t) {
5752
+ function Ys(t) {
5753
5753
  const e = t.getInput("EXTRA").connection;
5754
5754
  if (e.targetBlock())
5755
5755
  return;
@@ -5786,7 +5786,7 @@ function Fs(t) {
5786
5786
  }, o = J.blocks.append(n, t.workspace);
5787
5787
  e.connect(o.outputConnection);
5788
5788
  }
5789
- function Ys(t) {
5789
+ function Ks(t) {
5790
5790
  const e = t.getInput("HANDLE").connection;
5791
5791
  if (e.targetBlock())
5792
5792
  return;
@@ -5824,7 +5824,7 @@ g([
5824
5824
  style: "procedure_blocks"
5825
5825
  }
5826
5826
  ]);
5827
- const Ks = {
5827
+ const $s = {
5828
5828
  init: function() {
5829
5829
  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}");
5830
5830
  },
@@ -5840,15 +5840,15 @@ const Ks = {
5840
5840
  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"));
5841
5841
  },
5842
5842
  ensureBlocks_: function() {
5843
- this.isInsertionMarker() || (xs(this), ws(this), Fs(this), j(this, [
5843
+ this.isInsertionMarker() || (ws(this), Fs(this), Ys(this), j(this, [
5844
5844
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
5845
5845
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
5846
5846
  ["MAIN_DATA", "__mainData__", "x-runtime-lib.mainData", !0],
5847
5847
  ["EXTRA_DATA", "__extraData__", "x-runtime-lib.extraData", !0]
5848
- ]), Ys(this));
5848
+ ]), Ks(this));
5849
5849
  }
5850
5850
  };
5851
- I.query_data_v1 = Ks;
5851
+ I.query_data_v1 = $s;
5852
5852
  s.forBlock.query_data_v1 = function(t) {
5853
5853
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", _.ATOMIC) || "null", i = s.valueToCode(t, "EXTRA", _.ATOMIC) || "null", a = s.statementToCode(t, "HANDLE");
5854
5854
  return `{
@@ -5921,19 +5921,19 @@ s.forBlock.query_extra_sortby_v1 = function(t) {
5921
5921
  const e = s.valueToCode(t, "COLUMN", _.ATOMIC) || "''", n = s.valueToCode(t, "DESC", _.ATOMIC) || !1;
5922
5922
  return [`{type:'sortby',value:${e},value2:${n}}`, _.ATOMIC];
5923
5923
  };
5924
- const $s = {
5924
+ const Hs = {
5925
5925
  init: function() {
5926
5926
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
5927
5927
  }
5928
5928
  };
5929
- I.select_column_container_v1 = $s;
5930
- const Hs = {
5929
+ I.select_column_container_v1 = Hs;
5930
+ const Gs = {
5931
5931
  init: function() {
5932
5932
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
5933
5933
  }
5934
5934
  };
5935
- I.select_column_item_v1 = Hs;
5936
- const Gs = {
5935
+ I.select_column_item_v1 = Gs;
5936
+ const Ws = {
5937
5937
  init: function() {
5938
5938
  this.space = {
5939
5939
  id: "",
@@ -6142,7 +6142,7 @@ const Gs = {
6142
6142
  this.setWarningText(null);
6143
6143
  }
6144
6144
  };
6145
- I.select_column_v1 = Gs;
6145
+ I.select_column_v1 = Ws;
6146
6146
  s.forBlock.select_column_v1 = function(t) {
6147
6147
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
6148
6148
  for (let u = 0; u < n.itemCount_; u++) {
@@ -6154,7 +6154,7 @@ s.forBlock.select_column_v1 = function(t) {
6154
6154
  l !== 0 && (c += ","), c += `{name:${e(u)},alias:${e(h)}}`;
6155
6155
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, _.ATOMIC];
6156
6156
  };
6157
- const Ws = {
6157
+ const js = {
6158
6158
  init: function() {
6159
6159
  this.space = {
6160
6160
  id: "",
@@ -6246,12 +6246,12 @@ const Ws = {
6246
6246
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
6247
6247
  }
6248
6248
  };
6249
- I.select_table_v1 = Ws;
6249
+ I.select_table_v1 = js;
6250
6250
  s.forBlock.select_table_v1 = function(t) {
6251
6251
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id;
6252
6252
  return [`{spaceId:${e(o)},tableId:${e(i)}}`, _.ATOMIC];
6253
6253
  };
6254
- const js = {
6254
+ const Xs = {
6255
6255
  init: function() {
6256
6256
  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}");
6257
6257
  },
@@ -6273,9 +6273,9 @@ const js = {
6273
6273
  ]);
6274
6274
  }
6275
6275
  };
6276
- I.transaction_v1 = js;
6276
+ I.transaction_v1 = Xs;
6277
6277
  s.forBlock.transaction_v1 = function(t) {
6278
- const e = s.INDENT, n = t, o = Oi(n), i = s.statementToCode(n, "HANDLE"), a = s.statementToCode(n, "FINALLY");
6278
+ const e = s.INDENT, n = t, o = vi(n), i = s.statementToCode(n, "HANDLE"), a = s.statementToCode(n, "FINALLY");
6279
6279
  return `{
6280
6280
  ${e}var __error${o}__ = '';
6281
6281
  ${e}var __txExist${o}__ = typeof(__tx__) !== 'undefined';
@@ -6317,19 +6317,19 @@ ${e}}
6317
6317
  }
6318
6318
  `;
6319
6319
  };
6320
- const Xs = {
6320
+ const Js = {
6321
6321
  init: function() {
6322
6322
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
6323
6323
  }
6324
6324
  };
6325
- I.update_column_container_v1 = Xs;
6326
- const Js = {
6325
+ I.update_column_container_v1 = Js;
6326
+ const qs = {
6327
6327
  init: function() {
6328
6328
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
6329
6329
  }
6330
6330
  };
6331
- I.update_column_item_v1 = Js;
6332
- const qs = {
6331
+ I.update_column_item_v1 = qs;
6332
+ const Qs = {
6333
6333
  init: function() {
6334
6334
  this.space = {
6335
6335
  id: "",
@@ -6550,7 +6550,7 @@ const qs = {
6550
6550
  const e = this.getFieldValue("COLUMN" + t), n = this.table.columns.find((i) => i.id === e);
6551
6551
  if (!n)
6552
6552
  continue;
6553
- const o = co(n.type);
6553
+ const o = ro(n.type);
6554
6554
  this.getInput("ADD" + t).setCheck(o);
6555
6555
  }
6556
6556
  },
@@ -6573,7 +6573,7 @@ const qs = {
6573
6573
  this.setWarningText(null);
6574
6574
  }
6575
6575
  };
6576
- I.update_column_v1 = qs;
6576
+ I.update_column_v1 = Qs;
6577
6577
  s.forBlock.update_column_v1 = function(t) {
6578
6578
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
6579
6579
  for (let u = 0; u < n.itemCount_; u++) {
@@ -6585,7 +6585,7 @@ s.forBlock.update_column_v1 = function(t) {
6585
6585
  l !== 0 && (c += ","), c += `{name:${e(u)},value:${h}}`;
6586
6586
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, _.ATOMIC];
6587
6587
  };
6588
- function Qs(t) {
6588
+ function zs(t) {
6589
6589
  const e = t.getInput("TABLE").connection;
6590
6590
  if (e.targetBlock())
6591
6591
  return;
@@ -6619,7 +6619,7 @@ function Qs(t) {
6619
6619
  }, c = J.blocks.append(a, t.workspace);
6620
6620
  e.connect(c.outputConnection);
6621
6621
  }
6622
- function zs(t) {
6622
+ function Zs(t) {
6623
6623
  const e = t.getInput("CONDITION").connection;
6624
6624
  if (e.targetBlock())
6625
6625
  return;
@@ -6628,7 +6628,7 @@ function zs(t) {
6628
6628
  }, o = J.blocks.append(n, t.workspace);
6629
6629
  e.connect(o.outputConnection);
6630
6630
  }
6631
- function Zs(t) {
6631
+ function ta(t) {
6632
6632
  const e = t.getInput("HANDLE").connection;
6633
6633
  if (e.targetBlock())
6634
6634
  return;
@@ -6652,7 +6652,7 @@ function Zs(t) {
6652
6652
  }, o = J.blocks.append(n, t.workspace);
6653
6653
  e.connect(o.previousConnection);
6654
6654
  }
6655
- const ta = {
6655
+ const ea = {
6656
6656
  init: function() {
6657
6657
  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}");
6658
6658
  },
@@ -6668,14 +6668,14 @@ const ta = {
6668
6668
  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"));
6669
6669
  },
6670
6670
  ensureBlocks: function() {
6671
- this.isInsertionMarker() || (Qs(this), zs(this), j(this, [
6671
+ this.isInsertionMarker() || (zs(this), Zs(this), j(this, [
6672
6672
  ["SUCCESS", "__success__", "x-runtime-lib.success", !0],
6673
6673
  ["MESSAGE", "__message__", "x-runtime-lib.message", !0],
6674
6674
  ["DATA", "__data__", "x-runtime-lib.data", !0]
6675
- ]), Zs(this));
6675
+ ]), ta(this));
6676
6676
  }
6677
6677
  };
6678
- I.update_data_v1 = ta;
6678
+ I.update_data_v1 = ea;
6679
6679
  s.forBlock.update_data_v1 = function(t) {
6680
6680
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", _.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
6681
6681
  return `{
@@ -6692,7 +6692,7 @@ ${e}}
6692
6692
  ${i}}
6693
6693
  `;
6694
6694
  };
6695
- const ea = S.xml, na = {
6695
+ const na = S.xml, oa = {
6696
6696
  init: function() {
6697
6697
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
6698
6698
  new lt(wt, 20, 20, void 0, () => {
@@ -6701,7 +6701,7 @@ const ea = S.xml, na = {
6701
6701
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
6702
6702
  },
6703
6703
  mutationToDom: function() {
6704
- const t = ea.createElement("mutation");
6704
+ const t = na.createElement("mutation");
6705
6705
  return t.setAttribute("items", String(this.length)), t;
6706
6706
  },
6707
6707
  domToMutation: function(t) {
@@ -6753,8 +6753,8 @@ const ea = S.xml, na = {
6753
6753
  this.length--;
6754
6754
  }
6755
6755
  };
6756
- I.json_array_v1 = na;
6757
- const oa = {
6756
+ I.json_array_v1 = oa;
6757
+ const ia = {
6758
6758
  init: function() {
6759
6759
  this.appendDummyInput().appendField(
6760
6760
  new O([
@@ -6765,8 +6765,8 @@ const oa = {
6765
6765
  ), this.setOutput(!0, "JsonBoolean"), this.setColour(210);
6766
6766
  }
6767
6767
  };
6768
- I.json_boolean_v1 = oa;
6769
- const xn = S.xml, ia = {
6768
+ I.json_boolean_v1 = ia;
6769
+ const xn = S.xml, sa = {
6770
6770
  init: function() {
6771
6771
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
6772
6772
  new lt(wt, 20, 20, void 0, () => {
@@ -6832,38 +6832,38 @@ const xn = S.xml, ia = {
6832
6832
  this.length--;
6833
6833
  }
6834
6834
  };
6835
- I.json_map_v1 = ia;
6836
- const sa = {
6835
+ I.json_map_v1 = sa;
6836
+ const aa = {
6837
6837
  init: function() {
6838
6838
  this.appendDummyInput().appendField(new Ze(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
6839
6839
  }
6840
6840
  };
6841
- I.json_number_v1 = sa;
6842
- const aa = {
6841
+ I.json_number_v1 = aa;
6842
+ const ca = {
6843
6843
  init: function() {
6844
6844
  this.appendDummyInput().setAlign(k.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
6845
6845
  }
6846
6846
  };
6847
- I.json_root_v1 = aa;
6848
- const ca = {
6847
+ I.json_root_v1 = ca;
6848
+ const ra = {
6849
6849
  init: function() {
6850
6850
  this.appendDummyInput().appendField('"').appendField(new yt(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
6851
6851
  }
6852
6852
  };
6853
- I.json_string_v1 = ca;
6854
- const ra = S.xml, la = {
6853
+ I.json_string_v1 = ra;
6854
+ const la = S.xml, ua = {
6855
6855
  init: function() {
6856
6856
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
6857
6857
  }
6858
6858
  };
6859
- I.list_create_container_v1 = la;
6860
- const ua = {
6859
+ I.list_create_container_v1 = ua;
6860
+ const _a = {
6861
6861
  init: function() {
6862
6862
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("list_blocks"), this.contextMenu = !1;
6863
6863
  }
6864
6864
  };
6865
- I.list_create_item_v1 = ua;
6866
- const _a = {
6865
+ I.list_create_item_v1 = _a;
6866
+ const pa = {
6867
6867
  init: function() {
6868
6868
  this.itemCount_ = 0, this.setMutator(
6869
6869
  new vt.MutatorIcon(
@@ -6873,7 +6873,7 @@ const _a = {
6873
6873
  ), this.setOutput(!0, "Array"), this.setStyle("list_blocks"), this.setTooltip("%{BKY_LIST_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_LIST_V1_CREATE_HELPURL}"), this.updateShape_();
6874
6874
  },
6875
6875
  mutationToDom: function() {
6876
- const t = ra.createElement("mutation");
6876
+ const t = la.createElement("mutation");
6877
6877
  return t.setAttribute("items", String(this.itemCount_)), t;
6878
6878
  },
6879
6879
  domToMutation: function(t) {
@@ -6945,7 +6945,7 @@ const _a = {
6945
6945
  this.removeInput("ADD" + t);
6946
6946
  }
6947
6947
  };
6948
- I.list_create_v1 = _a;
6948
+ I.list_create_v1 = pa;
6949
6949
  s.forBlock.list_create_v1 = function(t) {
6950
6950
  const e = t, n = new Array(e.itemCount_);
6951
6951
  for (let i = 0; i < e.itemCount_; i++)
@@ -7161,7 +7161,7 @@ s.forBlock.list_set_v1 = function(t) {
7161
7161
  return `${e}[${n}] = ${o};
7162
7162
  `;
7163
7163
  };
7164
- const pa = {
7164
+ const da = {
7165
7165
  // logic_compare
7166
7166
  EQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_EQ}",
7167
7167
  NEQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_NEQ}",
@@ -7175,7 +7175,7 @@ const pa = {
7175
7175
  };
7176
7176
  V.register(
7177
7177
  "logic_op_tooltip_v1",
7178
- V.buildTooltipForDropdown("OP", pa)
7178
+ V.buildTooltipForDropdown("OP", da)
7179
7179
  );
7180
7180
  g([
7181
7181
  {
@@ -7200,7 +7200,7 @@ g([
7200
7200
  s.forBlock.logic_boolean_v1 = function(t) {
7201
7201
  return [t.getFieldValue("BOOL") === "TRUE" ? "true" : "false", _.ATOMIC];
7202
7202
  };
7203
- const da = {
7203
+ const ha = {
7204
7204
  onchange: function(t) {
7205
7205
  this.prevBlocks_ || (this.prevBlocks_ = [null, null]);
7206
7206
  const e = this.getInputTargetBlock("A"), n = this.getInputTargetBlock("B");
@@ -7220,7 +7220,7 @@ const da = {
7220
7220
  V.register(
7221
7221
  "logic_compare_v1",
7222
7222
  function() {
7223
- this.mixin(da);
7223
+ this.mixin(ha);
7224
7224
  }
7225
7225
  );
7226
7226
  g([
@@ -7270,7 +7270,7 @@ s.forBlock.logic_compare_v1 = function(t) {
7270
7270
  const i = s.valueToCode(t, "A", o) || "0", a = s.valueToCode(t, "B", o) || "0";
7271
7271
  return [`${i} ${n} ${a}`, o];
7272
7272
  };
7273
- const ha = {
7273
+ const fa = {
7274
7274
  elseIfCount_: 0,
7275
7275
  hasElse_: !1,
7276
7276
  mutationToDom: function() {
@@ -7397,7 +7397,7 @@ const ha = {
7397
7397
  };
7398
7398
  V.registerMutator(
7399
7399
  "logic_if_v1_mutator",
7400
- ha,
7400
+ fa,
7401
7401
  void 0,
7402
7402
  ["logic_if_else_if_v1", "logic_if_else_v1"]
7403
7403
  );
@@ -7543,7 +7543,7 @@ s.forBlock.logic_operation_v1 = function(t) {
7543
7543
  }
7544
7544
  return [`${o} ${e} ${i}`, n];
7545
7545
  };
7546
- const fa = {
7546
+ const ma = {
7547
7547
  prevParentConnection_: null,
7548
7548
  onchange: function(t) {
7549
7549
  const e = this.getInputTargetBlock("THEN"), n = this.getInputTargetBlock("ELSE"), o = this.outputConnection.targetConnection;
@@ -7558,7 +7558,7 @@ const fa = {
7558
7558
  this.prevParentConnection_ = o;
7559
7559
  }
7560
7560
  };
7561
- V.registerMixin("logic_ternary_v1", fa);
7561
+ V.registerMixin("logic_ternary_v1", ma);
7562
7562
  g([
7563
7563
  {
7564
7564
  type: "logic_ternary_v1",
@@ -7595,7 +7595,7 @@ s.forBlock.logic_ternary_v1 = function(t) {
7595
7595
  const e = s.valueToCode(t, "IF", _.CONDITIONAL) || "false", n = s.valueToCode(t, "THEN", _.CONDITIONAL) || "null", o = s.valueToCode(t, "ELSE", _.CONDITIONAL) || "null";
7596
7596
  return [e + " ? " + n + " : " + o, _.CONDITIONAL];
7597
7597
  };
7598
- const ma = {
7598
+ const Ta = {
7599
7599
  customContextMenu: function(t) {
7600
7600
  if (this.isInFlyout)
7601
7601
  return;
@@ -7617,7 +7617,7 @@ const ma = {
7617
7617
  };
7618
7618
  V.registerMixin(
7619
7619
  "contextMenu_newGetVariableBlock_v1",
7620
- ma
7620
+ Ta
7621
7621
  );
7622
7622
  V.register(
7623
7623
  "flow_control_tooltip_v1",
@@ -7626,16 +7626,16 @@ V.register(
7626
7626
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
7627
7627
  })
7628
7628
  );
7629
- const Ta = /* @__PURE__ */ new Set([
7629
+ const Ea = /* @__PURE__ */ new Set([
7630
7630
  "repeat_v1",
7631
7631
  "for_each_v1",
7632
7632
  "for_v1",
7633
7633
  "while_until_v1"
7634
- ]), Ea = {
7634
+ ]), ga = {
7635
7635
  getSurroundLoop: function() {
7636
7636
  let t = this;
7637
7637
  do {
7638
- if (Ta.has(t.type))
7638
+ if (Ea.has(t.type))
7639
7639
  return t;
7640
7640
  t = t?.getSurroundParent();
7641
7641
  } while (t);
@@ -7656,7 +7656,7 @@ const Ta = /* @__PURE__ */ new Set([
7656
7656
  };
7657
7657
  V.registerMixin(
7658
7658
  "flow_control_in_loop_check_v1",
7659
- Ea
7659
+ ga
7660
7660
  );
7661
7661
  g([
7662
7662
  {
@@ -7958,7 +7958,7 @@ s.forBlock.while_until_v1 = function(t) {
7958
7958
  ${o}}
7959
7959
  `;
7960
7960
  };
7961
- const ga = {
7961
+ const Aa = {
7962
7962
  // math_arithmetic
7963
7963
  ADD: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_ADD}",
7964
7964
  SUBTRACT: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_SUBTRACT}",
@@ -7992,7 +7992,7 @@ const ga = {
7992
7992
  };
7993
7993
  V.register(
7994
7994
  "math_op_tooltip_v1",
7995
- V.buildTooltipForDropdown("OP", ga)
7995
+ V.buildTooltipForDropdown("OP", Aa)
7996
7996
  );
7997
7997
  g([
7998
7998
  {
@@ -8592,21 +8592,21 @@ s.forBlock.math_trig_v1 = function(t) {
8592
8592
  }
8593
8593
  return [o, _.DIVISION];
8594
8594
  };
8595
- const Aa = S.xml, Ia = {
8595
+ const Ia = S.xml, ya = {
8596
8596
  init: function() {
8597
8597
  this.appendDummyInput().appendField(
8598
8598
  "%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"
8599
8599
  ), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
8600
8600
  }
8601
8601
  };
8602
- I.object_create_container_v1 = Ia;
8603
- const ya = {
8602
+ I.object_create_container_v1 = ya;
8603
+ const Oa = {
8604
8604
  init: function() {
8605
8605
  this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
8606
8606
  }
8607
8607
  };
8608
- I.object_create_item_v1 = ya;
8609
- const Oa = {
8608
+ I.object_create_item_v1 = Oa;
8609
+ const va = {
8610
8610
  init: function() {
8611
8611
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
8612
8612
  new vt.MutatorIcon(
@@ -8616,7 +8616,7 @@ const Oa = {
8616
8616
  ), this.setOutput(!0, "Object"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_OBJECT_V1_CREATE_TOOLTIP}"), this.setHelpUrl("%{BKY_OBJECT_V1_CREATE_HELPURL}");
8617
8617
  },
8618
8618
  mutationToDom: function() {
8619
- const t = Aa.createElement("mutation");
8619
+ const t = Ia.createElement("mutation");
8620
8620
  return t.setAttribute("items", String(this.itemCount_)), t;
8621
8621
  },
8622
8622
  domToMutation: function(t) {
@@ -8680,7 +8680,7 @@ const Oa = {
8680
8680
  this.removeInput("ADD" + t);
8681
8681
  }
8682
8682
  };
8683
- I.object_create_v1 = Oa;
8683
+ I.object_create_v1 = va;
8684
8684
  s.forBlock.object_create_v1 = function(t) {
8685
8685
  const e = t;
8686
8686
  let n = "{";
@@ -8922,13 +8922,13 @@ g([
8922
8922
  s.forBlock.object_to_json_v1 = function(t) {
8923
8923
  return [`__jsonStringifyV1__(${s.valueToCode(t, "OBJECT", _.NONE) || "null"})`, _.FUNCTION_CALL];
8924
8924
  };
8925
- const wn = S.xml, va = {
8925
+ const wn = S.xml, Ca = {
8926
8926
  init: function() {
8927
- this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new Yo(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
8927
+ this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new Ko(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
8928
8928
  }
8929
8929
  };
8930
- I.procedure_def_container_v1 = va;
8931
- const Ca = {
8930
+ I.procedure_def_container_v1 = Ca;
8931
+ const ka = {
8932
8932
  init: function() {
8933
8933
  const t = new yt(tn.DEFAULT_ARG);
8934
8934
  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;
@@ -8950,8 +8950,8 @@ const Ca = {
8950
8950
  return t;
8951
8951
  }
8952
8952
  };
8953
- I.procedure_def_item_v1 = Ca;
8954
- const ka = {
8953
+ I.procedure_def_item_v1 = ka;
8954
+ const Na = {
8955
8955
  init: function() {
8956
8956
  this.withReturn = !1, this.args = [];
8957
8957
  const t = new yt(
@@ -9055,13 +9055,13 @@ const ka = {
9055
9055
  }
9056
9056
  }
9057
9057
  };
9058
- I.procedure_def_v1 = ka;
9059
- const Na = S.xml, Sa = {
9058
+ I.procedure_def_v1 = Na;
9059
+ const Sa = S.xml, La = {
9060
9060
  init: function() {
9061
9061
  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}");
9062
9062
  },
9063
9063
  mutationToDom: function() {
9064
- const t = Na.createElement("mutation");
9064
+ const t = Sa.createElement("mutation");
9065
9065
  return t.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), t;
9066
9066
  },
9067
9067
  domToMutation: function(t) {
@@ -9112,14 +9112,14 @@ const Na = S.xml, Sa = {
9112
9112
  t.type === "procedure_def_v1" || t.type === "func_entry_v1" ? this.setWarningText(null) : this.setWarningText("the block can only be used in procedure block");
9113
9113
  }
9114
9114
  };
9115
- I.procedure_return_v1 = Sa;
9115
+ I.procedure_return_v1 = La;
9116
9116
  s.forBlock.procedure_return_v1 = function(t) {
9117
9117
  const e = t;
9118
9118
  return e.withReturn ? `return ${s.valueToCode(e, "VALUE", _.NONE) || "null"};
9119
9119
  ` : `return;
9120
9120
  `;
9121
9121
  };
9122
- const La = {
9122
+ const Ba = {
9123
9123
  init: function() {
9124
9124
  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}");
9125
9125
  },
@@ -9142,7 +9142,7 @@ const La = {
9142
9142
  ]);
9143
9143
  }
9144
9144
  };
9145
- I.download_resource_v1 = La;
9145
+ I.download_resource_v1 = Ba;
9146
9146
  s.forBlock.download_resource_v1 = function(t) {
9147
9147
  const e = s.valueToCode(t, "ASSET", _.ATOMIC) || null, n = s.statementToCode(t, "HANDLE");
9148
9148
  return `{
@@ -9154,7 +9154,7 @@ ${n}
9154
9154
  }
9155
9155
  `;
9156
9156
  };
9157
- function go(t) {
9157
+ function Ao(t) {
9158
9158
  const e = A.resource.spaces.find((i) => i.id === t);
9159
9159
  if (!e)
9160
9160
  return [];
@@ -9170,13 +9170,13 @@ function go(t) {
9170
9170
  }
9171
9171
  return o(e.dirTree, ""), n;
9172
9172
  }
9173
- function Ba(t) {
9173
+ function ba(t) {
9174
9174
  const e = [];
9175
- return go(t).forEach(({ id: o, name: i }) => {
9175
+ return Ao(t).forEach(({ id: o, name: i }) => {
9176
9176
  e.push([i, o]);
9177
9177
  }), B(e);
9178
9178
  }
9179
- function Ao(t, e) {
9179
+ function Io(t, e) {
9180
9180
  const n = A.resource.spaces.find((i) => i.id === t);
9181
9181
  if (!n)
9182
9182
  return [];
@@ -9185,25 +9185,25 @@ function Ao(t, e) {
9185
9185
  i.dirid === e && o.push(i);
9186
9186
  }), o;
9187
9187
  }
9188
- function ba(t, e) {
9188
+ function Pa(t, e) {
9189
9189
  const n = [];
9190
- return Ao(t, e).forEach(({ id: i, name: a }) => {
9190
+ return Io(t, e).forEach(({ id: i, name: a }) => {
9191
9191
  n.push([a, i]);
9192
9192
  }), B(n);
9193
9193
  }
9194
- function Io() {
9194
+ function yo() {
9195
9195
  const t = [];
9196
9196
  return A.resource.spaces.forEach((e) => {
9197
9197
  e.resources.length > 0 && t.push(e);
9198
9198
  }), t;
9199
9199
  }
9200
- function Pa() {
9200
+ function Ra() {
9201
9201
  const t = [];
9202
- return Io().forEach(({ id: n, name: o }) => {
9202
+ return yo().forEach(({ id: n, name: o }) => {
9203
9203
  t.push([o, n]);
9204
9204
  }), B(t);
9205
9205
  }
9206
- const Ra = {
9206
+ const Da = {
9207
9207
  init: function() {
9208
9208
  this.space = {
9209
9209
  id: "",
@@ -9225,19 +9225,19 @@ const Ra = {
9225
9225
  initData_: function() {
9226
9226
  if (this.space.id)
9227
9227
  return;
9228
- const t = Io()?.[0];
9228
+ const t = yo()?.[0];
9229
9229
  if (!t)
9230
9230
  return;
9231
9231
  this.space.id = t.id, this.space.name = t.name;
9232
9232
  const e = this.getField("SPACE");
9233
9233
  e.getOptions(!1), e.setValue(this.space.id);
9234
- const n = go(this.space.id)?.[0];
9234
+ const n = Ao(this.space.id)?.[0];
9235
9235
  if (!n)
9236
9236
  return;
9237
9237
  this.dir.id = n.id, this.dir.name = n.name;
9238
9238
  const o = this.getField("DIR");
9239
9239
  o.getOptions(!1), o.setValue(this.dir.id);
9240
- const i = Ao(this.space.id, this.dir.id)?.[0];
9240
+ const i = Io(this.space.id, this.dir.id)?.[0];
9241
9241
  if (!i)
9242
9242
  return;
9243
9243
  this.resource.id = i.id, this.resource.name = i.name;
@@ -9255,20 +9255,20 @@ const Ra = {
9255
9255
  this.space = $e(t.space), this.dir = $e(t.dir), this.resource = $e(t.resource);
9256
9256
  },
9257
9257
  genSpaceOpts_: function() {
9258
- return Pa();
9258
+ return Ra();
9259
9259
  },
9260
9260
  genDirOpts_: function() {
9261
- return Ba(this.space.id);
9261
+ return ba(this.space.id);
9262
9262
  },
9263
9263
  genResourceOpts_: function() {
9264
- return ba(this.space.id, this.dir.id);
9264
+ return Pa(this.space.id, this.dir.id);
9265
9265
  }
9266
9266
  };
9267
- I.select_resource_v1 = Ra;
9267
+ I.select_resource_v1 = Da;
9268
9268
  s.forBlock.select_resource_v1 = function() {
9269
9269
  return "";
9270
9270
  };
9271
- const Da = {
9271
+ const Ma = {
9272
9272
  init: function() {
9273
9273
  this.appendDummyInput().appendField(
9274
9274
  "%{BKY_RESOURCE_V1_UPLOAD_RESOURCE_TITLE}"
@@ -9299,7 +9299,7 @@ const Da = {
9299
9299
  ]);
9300
9300
  }
9301
9301
  };
9302
- I.upload_resource_v1 = Da;
9302
+ I.upload_resource_v1 = Ma;
9303
9303
  s.forBlock.upload_resource_v1 = function(t) {
9304
9304
  const e = s.valueToCode(t, "NAME", _.ATOMIC) || "''", n = s.valueToCode(t, "DIR", _.ATOMIC) || "null", o = s.valueToCode(t, "DATA", _.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
9305
9305
  return `{
@@ -9332,9 +9332,9 @@ g([
9332
9332
  s.forBlock.text_v1 = function(t) {
9333
9333
  return [s.quote_(t.getFieldValue("TEXT")), _.ATOMIC];
9334
9334
  };
9335
- const Ma = /^\s*'([^']|\\')*'\s*$/;
9335
+ const Ua = /^\s*'([^']|\\')*'\s*$/;
9336
9336
  function le(t) {
9337
- return Ma.test(t) ? [t, _.ATOMIC] : [`String(${t})`, _.FUNCTION_CALL];
9337
+ return Ua.test(t) ? [t, _.ATOMIC] : [`String(${t})`, _.FUNCTION_CALL];
9338
9338
  }
9339
9339
  V.register(
9340
9340
  "text_append_tooltip_v1",
@@ -9538,10 +9538,10 @@ g([
9538
9538
  s.forBlock.text_is_empty_v1 = function(t) {
9539
9539
  return [`!${s.valueToCode(t, "VALUE", _.MEMBER) || "''"}.length`, _.LOGICAL_NOT];
9540
9540
  };
9541
- const Ua = S.xml, Va = {
9541
+ const Va = S.xml, xa = {
9542
9542
  itemCount_: 0,
9543
9543
  mutationToDom: function() {
9544
- const t = Ua.createElement("mutation");
9544
+ const t = Va.createElement("mutation");
9545
9545
  return t.setAttribute("items", `${this.itemCount_}`), t;
9546
9546
  },
9547
9547
  domToMutation: function(t) {
@@ -9612,13 +9612,13 @@ const Ua = S.xml, Va = {
9612
9612
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
9613
9613
  this.removeInput("ADD" + t);
9614
9614
  }
9615
- }, xa = function() {
9615
+ }, wa = function() {
9616
9616
  this.itemCount_ = 2, this.updateShape_(), this.setMutator(new vt.MutatorIcon(["text_join_item_v1"], this));
9617
9617
  };
9618
9618
  V.registerMutator(
9619
9619
  "text_join_mutator_v1",
9620
- Va,
9621
- xa
9620
+ xa,
9621
+ wa
9622
9622
  );
9623
9623
  g([
9624
9624
  {
@@ -9850,7 +9850,7 @@ s.forBlock.text_trim_v1 = function(t) {
9850
9850
  }[t.getFieldValue("MODE")];
9851
9851
  return [`__trimV1__(${e}, ${o})`, _.ATOMIC];
9852
9852
  };
9853
- const wa = {
9853
+ const Fa = {
9854
9854
  init: function() {
9855
9855
  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}");
9856
9856
  },
@@ -9876,7 +9876,7 @@ const wa = {
9876
9876
  this.getInput("IMMEDIATE")?.setShadowDom(o);
9877
9877
  }
9878
9878
  };
9879
- I.create_timer_v1 = wa;
9879
+ I.create_timer_v1 = Fa;
9880
9880
  s.forBlock.create_timer_v1 = function(t) {
9881
9881
  const e = s.valueToCode(t, "INTERVAL", _.ATOMIC) || "1000", n = s.valueToCode(t, "LOOP", _.ATOMIC) || "false", o = s.valueToCode(t, "COUNT", _.ATOMIC) || "1", i = s.valueToCode(t, "IMMEDIATE", _.ATOMIC) || "false", a = s.statementToCode(t, "CALLBACK");
9882
9882
  return `__createTimerV1__(${e}, ${n}, ${o}, ${i}, async function() {
@@ -9905,18 +9905,18 @@ s.forBlock.delay_v1 = function(t) {
9905
9905
  return `await __delayV1__(${s.valueToCode(t, "DURATION", _.ATOMIC) || "0"});
9906
9906
  `;
9907
9907
  };
9908
- const Fa = {
9908
+ const Ya = {
9909
9909
  customContextMenu: function(t) {
9910
9910
  if (this.isInFlyout) {
9911
9911
  if (this.type === "variable_get_v1") {
9912
9912
  const e = {
9913
9913
  text: m("RENAME_VARIABLE"),
9914
9914
  enabled: !0,
9915
- callback: Ya(this)
9915
+ callback: Ka(this)
9916
9916
  }, n = this.getField("VAR").getText(), o = {
9917
9917
  text: m("DELETE_VARIABLE").replace("%1", n),
9918
9918
  enabled: !0,
9919
- callback: Ka(this)
9919
+ callback: $a(this)
9920
9920
  };
9921
9921
  t.unshift(e), t.unshift(o);
9922
9922
  }
@@ -9934,12 +9934,12 @@ const Fa = {
9934
9934
  });
9935
9935
  }
9936
9936
  }
9937
- }, Ya = function(t) {
9937
+ }, Ka = function(t) {
9938
9938
  return function() {
9939
9939
  const e = t.workspace, o = t.getField("VAR").getVariable();
9940
9940
  Vt.renameVariable(e, o);
9941
9941
  };
9942
- }, Ka = function(t) {
9942
+ }, $a = function(t) {
9943
9943
  return function() {
9944
9944
  const n = t.getField("VAR").getVariable();
9945
9945
  n && Vt.deleteVariable(n.getWorkspace(), n, t);
@@ -9947,7 +9947,7 @@ const Fa = {
9947
9947
  };
9948
9948
  V.registerMixin(
9949
9949
  "context_menu_variable_v1",
9950
- Fa
9950
+ Ya
9951
9951
  );
9952
9952
  g([
9953
9953
  {
@@ -10004,14 +10004,14 @@ s.forBlock.variable_set_v1 = function(t) {
10004
10004
  `;
10005
10005
  };
10006
10006
  Gn.setConfirm(async (t, e) => {
10007
- const n = await ii({
10007
+ const n = await si({
10008
10008
  title: "",
10009
10009
  text: t
10010
10010
  });
10011
10011
  e(!!n);
10012
10012
  });
10013
10013
  Gn.setPrompt(async (t, e, n) => {
10014
- const o = await si({
10014
+ const o = await ai({
10015
10015
  title: "",
10016
10016
  value: e
10017
10017
  });
@@ -10021,14 +10021,14 @@ const ie = O.prototype;
10021
10021
  ie.doClassValidation_ = function(t) {
10022
10022
  return t;
10023
10023
  };
10024
- const $a = ie.doValueUpdate_;
10024
+ const Ha = ie.doValueUpdate_;
10025
10025
  ie.doValueUpdate_ = function(t) {
10026
- $a.call(this, t), this.selectedOption && this.selectedOption[1] !== t && (this.selectedOption = null);
10026
+ Ha.call(this, t), this.selectedOption && this.selectedOption[1] !== t && (this.selectedOption = null);
10027
10027
  };
10028
- const Ha = ie.getText_;
10028
+ const Ga = ie.getText_;
10029
10029
  ie.getText_ = function() {
10030
10030
  if (this.selectedOption)
10031
- return Ha.call(this);
10031
+ return Ga.call(this);
10032
10032
  const { i18n: t } = Ct, e = this.getSourceBlock();
10033
10033
  if (this.name === "APP")
10034
10034
  return e.app.name;
@@ -10070,7 +10070,7 @@ ie.getText_ = function() {
10070
10070
  return "<n/a>";
10071
10071
  };
10072
10072
  const Fn = 60;
10073
- Ko.prototype.cleanUp = function() {
10073
+ $o.prototype.cleanUp = function() {
10074
10074
  this.setResizesEnabled(!1);
10075
10075
  const t = v.getGroup();
10076
10076
  t || v.setGroup(!0);
@@ -10093,25 +10093,25 @@ Ko.prototype.cleanUp = function() {
10093
10093
  }
10094
10094
  v.setGroup(t), this.setResizesEnabled(!0);
10095
10095
  };
10096
- function yo(t) {
10096
+ function Oo(t) {
10097
10097
  const e = t.getParent();
10098
- return e && yo(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
10098
+ return e && Oo(e) ? !0 : !e && !!(t.outputConnection || t.previousConnection);
10099
10099
  }
10100
- class Ga {
10100
+ class Wa {
10101
10101
  init() {
10102
- const e = $o.registry.getItem("blockDisable");
10102
+ const e = Ho.registry.getItem("blockDisable");
10103
10103
  e && (e.preconditionFn = function(n) {
10104
10104
  const o = n.block;
10105
- return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || yo(o) ? "disabled" : "enabled" : "hidden";
10105
+ return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || Oo(o) ? "disabled" : "enabled" : "hidden";
10106
10106
  });
10107
10107
  }
10108
10108
  }
10109
- Ho.registerFieldColour();
10110
- Go.registry.unregister(Wo.names.ESCAPE);
10111
- const Wa = new jo.CrossTabCopyPaste();
10112
- Wa.init({ contextMenu: !0, shortcut: !0 });
10113
- const ja = new Ga();
10114
- ja.init();
10109
+ Go.registerFieldColour();
10110
+ Wo.registry.unregister(jo.names.ESCAPE);
10111
+ const ja = new Xo.CrossTabCopyPaste();
10112
+ ja.init({ contextMenu: !0, shortcut: !0 });
10113
+ const Xa = new Wa();
10114
+ Xa.init();
10115
10115
  function gn(t) {
10116
10116
  const e = Zt();
10117
10117
  if (!e)
@@ -10125,7 +10125,7 @@ function gn(t) {
10125
10125
  const i = o.getRelativeToSurfaceXY(), a = i.x * e.scale, c = i.y * e.scale;
10126
10126
  e.scroll(-a, -c);
10127
10127
  }
10128
- function Oo() {
10128
+ function vo() {
10129
10129
  const t = Zt();
10130
10130
  if (!t)
10131
10131
  return;
@@ -10283,7 +10283,7 @@ Ne.Classic.categoryStyles = {
10283
10283
  colour: "#a55b80"
10284
10284
  }
10285
10285
  };
10286
- const Xa = Wn.defineTheme("light", {
10286
+ const Ja = Wn.defineTheme("light", {
10287
10287
  name: "light",
10288
10288
  base: Ne.Classic,
10289
10289
  componentStyles: {
@@ -10299,7 +10299,7 @@ const Xa = Wn.defineTheme("light", {
10299
10299
  scrollbarOpacity: 0.4,
10300
10300
  cursorColour: ""
10301
10301
  }
10302
- }), Ja = Wn.defineTheme("dark", {
10302
+ }), qa = Wn.defineTheme("dark", {
10303
10303
  name: "dark",
10304
10304
  base: Ne.Classic,
10305
10305
  componentStyles: {
@@ -10316,14 +10316,14 @@ const Xa = Wn.defineTheme("light", {
10316
10316
  cursorColour: ""
10317
10317
  }
10318
10318
  });
10319
- function qa(t) {
10319
+ function Qa(t) {
10320
10320
  const e = Zt();
10321
10321
  switch (t) {
10322
10322
  case "light":
10323
- e.setTheme(Xa);
10323
+ e.setTheme(Ja);
10324
10324
  break;
10325
10325
  case "dark":
10326
- e.setTheme(Ja);
10326
+ e.setTheme(qa);
10327
10327
  break;
10328
10328
  }
10329
10329
  }
@@ -10331,7 +10331,7 @@ const pn = ["get_app_property_v1", "get_app_state_v1"];
10331
10331
  function Tt(t, e) {
10332
10332
  return t.find((o) => o === e) !== void 0 ? !1 : (t.push(e), !0);
10333
10333
  }
10334
- function Qa(t) {
10334
+ function za(t) {
10335
10335
  const e = [];
10336
10336
  function n(o) {
10337
10337
  for (const i of o.getChildren(!0))
@@ -10339,7 +10339,7 @@ function Qa(t) {
10339
10339
  }
10340
10340
  return n(t), e;
10341
10341
  }
10342
- function za(t) {
10342
+ function Za(t) {
10343
10343
  const e = [];
10344
10344
  for (const n of t)
10345
10345
  if (n.type === "get_app_property_v1") {
@@ -10355,7 +10355,7 @@ function za(t) {
10355
10355
  } else n.type === "get_app_state_v1" ? Tt(e, Bt({ type: "state", stateId: n.state.id })) : console.assert(!1);
10356
10356
  return e;
10357
10357
  }
10358
- function Za(t) {
10358
+ function tc(t) {
10359
10359
  const e = [];
10360
10360
  for (const n of t.getChildren(!0))
10361
10361
  if (pn.includes(n.type))
@@ -10366,7 +10366,7 @@ function Za(t) {
10366
10366
  }
10367
10367
  return e;
10368
10368
  }
10369
- function tc(t) {
10369
+ function ec(t) {
10370
10370
  const e = [], n = [];
10371
10371
  for (const o of t)
10372
10372
  if (o.type === "get_app_property_v1") {
@@ -10430,7 +10430,7 @@ function tc(t) {
10430
10430
  console.assert(!1);
10431
10431
  return e;
10432
10432
  }
10433
- function ec(t) {
10433
+ function nc(t) {
10434
10434
  const e = {
10435
10435
  watchEffect: {},
10436
10436
  bind: {
@@ -10442,11 +10442,11 @@ function ec(t) {
10442
10442
  return e;
10443
10443
  for (const o of n)
10444
10444
  if (o.type === "watch_effect_v1") {
10445
- const i = Qa(o), a = za(i);
10445
+ const i = za(o), a = Za(i);
10446
10446
  for (const c of a)
10447
10447
  e.watchEffect[c] || (e.watchEffect[c] = []), Tt(e.watchEffect[c], o.id);
10448
10448
  } else if (o.type === "app_bind_v1") {
10449
- const i = Za(o), a = tc(i);
10449
+ const i = tc(o), a = ec(i);
10450
10450
  e.bind.sets[o.id] = a;
10451
10451
  for (const c of a) {
10452
10452
  const r = Bt(c);
@@ -10455,14 +10455,14 @@ function ec(t) {
10455
10455
  }
10456
10456
  return e;
10457
10457
  }
10458
- const vo = /* @__PURE__ */ Symbol();
10459
- function nc(t) {
10460
- fi(vo, t);
10458
+ const Co = /* @__PURE__ */ Symbol();
10459
+ function oc(t) {
10460
+ mi(Co, t);
10461
10461
  }
10462
10462
  function An() {
10463
- return mi(vo);
10463
+ return Ti(Co);
10464
10464
  }
10465
- const oc = /* @__PURE__ */ ht({
10465
+ const ic = /* @__PURE__ */ ht({
10466
10466
  __name: "index",
10467
10467
  props: {
10468
10468
  lock: { type: Boolean }
@@ -10499,7 +10499,7 @@ const oc = /* @__PURE__ */ ht({
10499
10499
  }, 8, ["disabled", "text"]);
10500
10500
  };
10501
10501
  }
10502
- }), ic = /* @__PURE__ */ ht({
10502
+ }), sc = /* @__PURE__ */ ht({
10503
10503
  __name: "index",
10504
10504
  props: {
10505
10505
  modelValue: { type: Boolean, required: !0 },
@@ -10526,11 +10526,11 @@ const oc = /* @__PURE__ */ ht({
10526
10526
  }, 8, ["disabled", "text"]);
10527
10527
  };
10528
10528
  }
10529
- }), sc = { class: "d-flex flex-column" }, ac = { class: "text-subtitle-1 ml-6" }, cc = {
10529
+ }), ac = { class: "d-flex flex-column" }, cc = { class: "text-subtitle-1 ml-6" }, rc = {
10530
10530
  key: 0,
10531
10531
  class: "text-caption text-grey text-truncate ml-6",
10532
10532
  style: { maxWidth: "340px" }
10533
- }, rc = /* @__PURE__ */ ht({
10533
+ }, lc = /* @__PURE__ */ ht({
10534
10534
  __name: "item",
10535
10535
  props: {
10536
10536
  id: {},
@@ -10558,17 +10558,17 @@ const oc = /* @__PURE__ */ ht({
10558
10558
  pointerEvents: "none"
10559
10559
  }));
10560
10560
  return (l, d) => {
10561
- const p = Y("v-spacer"), f = Y("v-icon"), T = Ti("ripple");
10562
- return Ei((U(), ct("div", {
10561
+ const p = Y("v-spacer"), f = Y("v-icon"), T = Ei("ripple");
10562
+ return gi((U(), ct("div", {
10563
10563
  class: "d-flex align-center cursor-pointer",
10564
10564
  style: Z(u.value),
10565
10565
  onClick: d[1] || (d[1] = (E) => c("x-click", a.id)),
10566
10566
  onMouseout: d[2] || (d[2] = (E) => r.value = !1),
10567
10567
  onMouseover: d[3] || (d[3] = (E) => r.value = !0)
10568
10568
  }, [
10569
- X("div", sc, [
10570
- X("span", ac, Jt(a.title), 1),
10571
- a.desc ? (U(), ct("span", cc, Jt(a.desc), 1)) : mt("", !0)
10569
+ X("div", ac, [
10570
+ X("span", cc, Jt(a.title), 1),
10571
+ a.desc ? (U(), ct("span", rc, Jt(a.desc), 1)) : mt("", !0)
10572
10572
  ]),
10573
10573
  M(p),
10574
10574
  M(f, {
@@ -10585,10 +10585,10 @@ const oc = /* @__PURE__ */ ht({
10585
10585
  ]);
10586
10586
  };
10587
10587
  }
10588
- }), lc = {
10588
+ }), uc = {
10589
10589
  key: 1,
10590
10590
  class: "text-caption text-grey"
10591
- }, uc = /* @__PURE__ */ ht({
10591
+ }, _c = /* @__PURE__ */ ht({
10592
10592
  __name: "index",
10593
10593
  props: /* @__PURE__ */ nn({
10594
10594
  lock: { type: Boolean }
@@ -10606,7 +10606,7 @@ const oc = /* @__PURE__ */ ht({
10606
10606
  }
10607
10607
  const p = [];
10608
10608
  i.workspace.getTopBlocks(!0).forEach((T) => {
10609
- const E = T.id === Jo()?.id;
10609
+ const E = T.id === qo()?.id;
10610
10610
  let y = "";
10611
10611
  if (T.type.startsWith("on_app_event_v")) {
10612
10612
  const D = T, Mt = P[D.node.key];
@@ -10663,7 +10663,7 @@ const oc = /* @__PURE__ */ ht({
10663
10663
  E
10664
10664
  ).getRelativeToSurfaceXY().y + 10);
10665
10665
  const N = T.getRelativeToSurfaceXY();
10666
- T.moveTo(new S.Coordinate(N.x, y)), i.workspace.cleanUp(), Oo();
10666
+ T.moveTo(new S.Coordinate(N.x, y)), i.workspace.cleanUp(), vo();
10667
10667
  }, d = async (p) => {
10668
10668
  if (!i.workspace) {
10669
10669
  console.assert(!1);
@@ -10672,7 +10672,7 @@ const oc = /* @__PURE__ */ ht({
10672
10672
  const f = i.workspace.getBlockById(p);
10673
10673
  jn.setSelected(f), gn(p), o.value = !1;
10674
10674
  };
10675
- return (p, f) => a.value.length > 0 ? (U(), _t(F(Xo), {
10675
+ return (p, f) => a.value.length > 0 ? (U(), _t(F(Jo), {
10676
10676
  key: 0,
10677
10677
  modelValue: a.value,
10678
10678
  "onUpdate:modelValue": f[0] || (f[0] = (T) => a.value = T),
@@ -10684,7 +10684,7 @@ const oc = /* @__PURE__ */ ht({
10684
10684
  onStart: u
10685
10685
  }, {
10686
10686
  default: pt(() => [
10687
- (U(!0), ct(no, null, gi(a.value, (T) => (U(), _t(rc, {
10687
+ (U(!0), ct(oo, null, Ai(a.value, (T) => (U(), _t(lc, {
10688
10688
  id: T.id,
10689
10689
  key: T.id,
10690
10690
  desc: T.desc,
@@ -10694,14 +10694,14 @@ const oc = /* @__PURE__ */ ht({
10694
10694
  }, null, 8, ["id", "desc", "select", "title"]))), 128))
10695
10695
  ]),
10696
10696
  _: 1
10697
- }, 8, ["modelValue"])) : (U(), ct("span", lc, Jt(F(n)("x-block-lib.noOption")), 1));
10697
+ }, 8, ["modelValue"])) : (U(), ct("span", uc, Jt(F(n)("x-block-lib.noOption")), 1));
10698
10698
  }
10699
- }), _c = (t, e) => {
10699
+ }), pc = (t, e) => {
10700
10700
  const n = t.__vccOpts || t;
10701
10701
  for (const [o, i] of e)
10702
10702
  n[o] = i;
10703
10703
  return n;
10704
- }, pc = /* @__PURE__ */ _c(uc, [["__scopeId", "data-v-a77ed323"]]), dc = /* @__PURE__ */ ht({
10704
+ }, dc = /* @__PURE__ */ pc(_c, [["__scopeId", "data-v-a77ed323"]]), hc = /* @__PURE__ */ ht({
10705
10705
  __name: "index",
10706
10706
  props: {
10707
10707
  modelValue: { type: Boolean, required: !0 },
@@ -10729,7 +10729,7 @@ const oc = /* @__PURE__ */ ht({
10729
10729
  onClick: r[0] || (r[0] = (u) => a(""))
10730
10730
  }, "blockTree"));
10731
10731
  }
10732
- }), hc = { class: "text-subtitle-1" }, fc = /* @__PURE__ */ ht({
10732
+ }), fc = { class: "text-subtitle-1" }, mc = /* @__PURE__ */ ht({
10733
10733
  __name: "index",
10734
10734
  props: {
10735
10735
  type: {},
@@ -10752,7 +10752,7 @@ const oc = /* @__PURE__ */ ht({
10752
10752
  }), h = $(() => ({
10753
10753
  height: "60px"
10754
10754
  })), { open: l } = dn(`blocklyNavigatorDlg${on()}`);
10755
- Ai(() => {
10755
+ Ii(() => {
10756
10756
  l.value = !1;
10757
10757
  });
10758
10758
  const d = jt("blockList"), p = jt("blockTree");
@@ -10760,7 +10760,7 @@ const oc = /* @__PURE__ */ ht({
10760
10760
  t.type === "list" ? d.value?.update() : t.type === "tree" && p.value?.update();
10761
10761
  } }), (T, E) => {
10762
10762
  const y = Y("v-sheet"), N = Y("v-btn"), D = Y("v-spacer"), Mt = Y("v-dialog"), Ye = Y("v-tooltip");
10763
- return U(), ct(no, null, [
10763
+ return U(), ct(oo, null, [
10764
10764
  M(Mt, {
10765
10765
  modelValue: F(l),
10766
10766
  "onUpdate:modelValue": E[5] || (E[5] = (z) => re(l) ? l.value = z : null),
@@ -10769,7 +10769,7 @@ const oc = /* @__PURE__ */ ht({
10769
10769
  "no-click-animation": "",
10770
10770
  persistent: "",
10771
10771
  transition: "scroll-x-reverse-transition",
10772
- onKeydown: E[6] || (E[6] = oo(Wt((z) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10772
+ onKeydown: E[6] || (E[6] = io(Wt((z) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10773
10773
  }, {
10774
10774
  default: pt(() => [
10775
10775
  X("div", {
@@ -10798,7 +10798,7 @@ const oc = /* @__PURE__ */ ht({
10798
10798
  variant: "text",
10799
10799
  onClick: E[0] || (E[0] = (z) => l.value = !1)
10800
10800
  }),
10801
- X("span", hc, Jt(F(n)("x-block-lib.navigator")), 1),
10801
+ X("span", fc, Jt(F(n)("x-block-lib.navigator")), 1),
10802
10802
  M(D)
10803
10803
  ]),
10804
10804
  _: 1
@@ -10807,14 +10807,14 @@ const oc = /* @__PURE__ */ ht({
10807
10807
  class: "overflow-y-auto",
10808
10808
  style: Z(u.value)
10809
10809
  }, [
10810
- t.type === "list" ? (U(), _t(pc, {
10810
+ t.type === "list" ? (U(), _t(dc, {
10811
10811
  key: 0,
10812
10812
  ref_key: "blockList",
10813
10813
  ref: d,
10814
10814
  modelValue: F(l),
10815
10815
  "onUpdate:modelValue": E[1] || (E[1] = (z) => re(l) ? l.value = z : null),
10816
10816
  lock: t.lock
10817
- }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (U(), _t(dc, {
10817
+ }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (U(), _t(hc, {
10818
10818
  key: 1,
10819
10819
  ref_key: "blockTree",
10820
10820
  ref: p,
@@ -10859,7 +10859,7 @@ function C(t, e) {
10859
10859
  n.appendChild(o);
10860
10860
  return n;
10861
10861
  }
10862
- function Co(t) {
10862
+ function ko(t) {
10863
10863
  const e = W.createElement("mutation");
10864
10864
  for (const { key: n, value: o } of t)
10865
10865
  e.setAttribute(n, o);
@@ -10887,7 +10887,7 @@ function Yn(t, e) {
10887
10887
  const a = W.createTextNode(String(e));
10888
10888
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
10889
10889
  }
10890
- function mc(t, e) {
10890
+ function Tc(t, e) {
10891
10891
  e === void 0 && (e = !1);
10892
10892
  const n = W.createElement("value");
10893
10893
  n.setAttribute("name", t);
@@ -10898,11 +10898,11 @@ function mc(t, e) {
10898
10898
  const a = W.createTextNode(e ? "TRUE" : "FALSE");
10899
10899
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
10900
10900
  }
10901
- function Tc() {
10901
+ function Ec() {
10902
10902
  const { activeObject: t, activeComp: e } = A.app;
10903
10903
  return !(t.type !== "comp" || !e.meta.events || e.meta.events.length <= 0);
10904
10904
  }
10905
- function Ec() {
10905
+ function gc() {
10906
10906
  const { activeObject: t, activeComp: e } = A.app;
10907
10907
  return !(t.type !== "comp" || !e.meta.states || e.meta.states.length <= 0);
10908
10908
  }
@@ -10910,7 +10910,7 @@ function Kn() {
10910
10910
  const { activeObject: t, activeComp: e } = A.app;
10911
10911
  return !(t.type !== "comp" || !e.meta.methods || e.meta.methods.length <= 0);
10912
10912
  }
10913
- function gc() {
10913
+ function Ac() {
10914
10914
  const { activeObject: t, activeComp: e } = A.app;
10915
10915
  if (t.type !== "comp")
10916
10916
  return !1;
@@ -10921,55 +10921,55 @@ function gc() {
10921
10921
  }
10922
10922
  return !1;
10923
10923
  }
10924
- function Ac() {
10924
+ function Ic() {
10925
10925
  const t = [];
10926
- return t.push(G(m("LABEL_EVENT"))), tt("onEvent") && t.push(C("on_app_event_v1")), Tc() && t.push(C("trigger_app_event_v1")), t.push(
10927
- C("app_bind_v1", [Co([{ key: "items", value: "2" }])])
10928
- ), t.push(C("watch_effect_v1")), (tt("getProperty") || tt("setProperty")) && t.push(G(m("LABEL_PROPERTY"))), tt("getProperty") && t.push(C("get_app_property_v1")), tt("setProperty") && t.push(C("set_app_property_v1")), Ec() && (t.push(G(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), (tt("callMethod") || Kn()) && t.push(G(m("LABEL_METHOD"))), tt("callMethod") && t.push(C("call_app_method_v1")), Kn() && (t.push(C("implement_app_method_v1")), gc() && t.push(C("set_app_method_output_v1")), t.push(C("procedure_return_v1"))), t;
10926
+ return t.push(G(m("LABEL_EVENT"))), tt("onEvent") && t.push(C("on_app_event_v1")), Ec() && t.push(C("trigger_app_event_v1")), t.push(
10927
+ C("app_bind_v1", [ko([{ key: "items", value: "2" }])])
10928
+ ), t.push(C("watch_effect_v1")), (tt("getProperty") || tt("setProperty")) && t.push(G(m("LABEL_PROPERTY"))), tt("getProperty") && t.push(C("get_app_property_v1")), tt("setProperty") && t.push(C("set_app_property_v1")), gc() && (t.push(G(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), (tt("callMethod") || Kn()) && t.push(G(m("LABEL_METHOD"))), tt("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;
10929
10929
  }
10930
- const ko = { name: "APP_COMP_CATEGORY", callback: Ac };
10931
- function Ic() {
10930
+ const No = { name: "APP_COMP_CATEGORY", callback: Ic };
10931
+ function yc() {
10932
10932
  const t = [];
10933
10933
  return t.push(G(m("LABEL_FUNC"))), t.push(G(m("LABEL_FLOW"))), t;
10934
10934
  }
10935
- const ge = { name: "APP_COMPUTE_CATEGORY", callback: Ic };
10936
- function yc() {
10935
+ const ge = { name: "APP_COMPUTE_CATEGORY", callback: yc };
10936
+ function Oc() {
10937
10937
  const t = [];
10938
10938
  return t.push(C("app_debug_trace_v1", [Yt("OBJECT")])), t.push(C("popup_message_v1", [Yt("TEXT")])), t.push(C("open_confirm_dlg_v1")), t.push(C("open_prompt_dlg_v1")), t;
10939
10939
  }
10940
- const Ae = { name: "APP_MESSAGE_CATEGORY", callback: yc };
10941
- function Oc() {
10940
+ const Ae = { name: "APP_MESSAGE_CATEGORY", callback: Oc };
10941
+ function vc() {
10942
10942
  for (const t of A.app.appList)
10943
10943
  if (t.pages.length > 0)
10944
10944
  return !0;
10945
10945
  return !1;
10946
10946
  }
10947
- function vc() {
10947
+ function Cc() {
10948
10948
  const t = [];
10949
- return t.push(C("app_env_is_v1")), Oc() && t.push(C("navigate_to_v1")), t;
10949
+ return t.push(C("app_env_is_v1")), vc() && t.push(C("navigate_to_v1")), t;
10950
10950
  }
10951
- const Ie = { name: "APP_MISC_CATEGORY", callback: vc };
10952
- function Cc() {
10951
+ const Ie = { name: "APP_MISC_CATEGORY", callback: Cc };
10952
+ function kc() {
10953
10953
  const { activeObject: t, activePage: e } = A.app;
10954
10954
  return !(t.type !== "page" || !e.meta.states || e.meta.states.length <= 0);
10955
10955
  }
10956
- function kc() {
10956
+ function Nc() {
10957
10957
  const { activeObject: t, activePage: e } = A.app;
10958
10958
  return !(t.type !== "page" || !e.meta.arguments || e.meta.arguments.length <= 0);
10959
10959
  }
10960
- function Nc() {
10960
+ function Sc() {
10961
10961
  const t = [];
10962
10962
  return t.push(G(m("LABEL_EVENT"))), tt("onEvent") && t.push(C("on_app_event_v1")), t.push(
10963
- C("app_bind_v1", [Co([{ key: "items", value: "2" }])])
10964
- ), t.push(C("watch_effect_v1")), (tt("getProperty") || tt("setProperty")) && t.push(G(m("LABEL_PROPERTY"))), tt("getProperty") && t.push(C("get_app_property_v1")), tt("setProperty") && t.push(C("set_app_property_v1")), Cc() && (t.push(G(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), tt("callMethod") && (t.push(G(m("LABEL_METHOD"))), t.push(C("call_app_method_v1"))), kc() && (t.push(G(m("LABEL_ARGUMENT"))), t.push(C("get_page_argument_v1"))), t;
10963
+ C("app_bind_v1", [ko([{ key: "items", value: "2" }])])
10964
+ ), t.push(C("watch_effect_v1")), (tt("getProperty") || tt("setProperty")) && t.push(G(m("LABEL_PROPERTY"))), tt("getProperty") && t.push(C("get_app_property_v1")), tt("setProperty") && t.push(C("set_app_property_v1")), kc() && (t.push(G(m("LABEL_STATE"))), t.push(C("get_app_state_v1")), t.push(C("set_app_state_v1"))), tt("callMethod") && (t.push(G(m("LABEL_METHOD"))), t.push(C("call_app_method_v1"))), Nc() && (t.push(G(m("LABEL_ARGUMENT"))), t.push(C("get_page_argument_v1"))), t;
10965
10965
  }
10966
- const No = { name: "APP_PAGE_CATEGORY", callback: Nc };
10967
- function Sc() {
10966
+ const So = { name: "APP_PAGE_CATEGORY", callback: Sc };
10967
+ function Lc() {
10968
10968
  const t = [];
10969
10969
  return t.push(G(m("LABEL_RESOURCE"))), t.push(C("upload_resource_v1")), t;
10970
10970
  }
10971
- const ye = { name: "APP_RESOURCE_CATEGORY", callback: Sc }, Ht = S.xml;
10972
- function Lc() {
10971
+ const ye = { name: "APP_RESOURCE_CATEGORY", callback: Lc }, Ht = S.xml;
10972
+ function Bc() {
10973
10973
  const t = [];
10974
10974
  {
10975
10975
  const e = Ht.createElement("label");
@@ -10994,9 +10994,9 @@ function Lc() {
10994
10994
  }
10995
10995
  const Et = {
10996
10996
  name: "PROCEDURE_CATEGORY",
10997
- callback: Lc
10997
+ callback: Bc
10998
10998
  }, ae = S.xml;
10999
- function Bc() {
10999
+ function bc() {
11000
11000
  const t = Zt(), e = [];
11001
11001
  {
11002
11002
  const o = ae.createElement("label");
@@ -11034,9 +11034,9 @@ function Bc() {
11034
11034
  }
11035
11035
  const gt = {
11036
11036
  name: "VARIABLE_CATEGORY",
11037
- callback: Bc
11037
+ callback: bc
11038
11038
  };
11039
- function bc() {
11039
+ function Pc() {
11040
11040
  const t = [];
11041
11041
  if (rt().length > 0)
11042
11042
  t.push(G(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(
@@ -11049,7 +11049,7 @@ function bc() {
11049
11049
  ), t.push(
11050
11050
  C("query_extra_sortby_v1", [
11051
11051
  Yt("COLUMN"),
11052
- mc("DESC")
11052
+ Tc("DESC")
11053
11053
  ])
11054
11054
  );
11055
11055
  else {
@@ -11058,30 +11058,30 @@ function bc() {
11058
11058
  }
11059
11059
  return t;
11060
11060
  }
11061
- const Oe = { name: "COMPUTE_DATA_CATEGORY", callback: bc };
11062
- function Pc() {
11061
+ const Oe = { name: "COMPUTE_DATA_CATEGORY", callback: Pc };
11062
+ function Rc() {
11063
11063
  return oe("flow").length > 0;
11064
11064
  }
11065
- function Rc() {
11065
+ function Dc() {
11066
11066
  const t = [];
11067
- return A.compute.activeObject.type === "flow" && t.push(C("on_flow_state_event_v1")), Pc() && console.assert(!0), t;
11067
+ return A.compute.activeObject.type === "flow" && t.push(C("on_flow_state_event_v1")), Rc() && console.assert(!0), t;
11068
11068
  }
11069
- const ve = { name: "COMPUTE_FLOW_CATEGORY", callback: Rc };
11070
- function Dc() {
11069
+ const ve = { name: "COMPUTE_FLOW_CATEGORY", callback: Dc };
11070
+ function Mc() {
11071
11071
  return oe("func").length > 0;
11072
11072
  }
11073
- function Mc() {
11073
+ function Uc() {
11074
11074
  const { activeObject: t, activeFunc: e } = A.compute, n = [];
11075
- 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"))), Dc() && n.push(C("call_func_internal_v1")), n;
11075
+ 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;
11076
11076
  }
11077
- const Ce = { name: "COMPUTE_FUNC_CATEGORY", callback: Mc };
11078
- function Uc() {
11077
+ const Ce = { name: "COMPUTE_FUNC_CATEGORY", callback: Uc };
11078
+ function Vc() {
11079
11079
  const t = [];
11080
11080
  return t.push(
11081
11081
  C("compute_debug_trace_v1", [Yt("OBJECT")])
11082
11082
  ), t;
11083
11083
  }
11084
- const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11084
+ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Vc }, De = {
11085
11085
  kind: "category",
11086
11086
  name: "%{BKY_CATEGORY_COLOR}",
11087
11087
  categorystyle: "color_category",
@@ -11760,7 +11760,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11760
11760
  type: "text_reverse_v1"
11761
11761
  }
11762
11762
  ]
11763
- }, So = {
11763
+ }, Lo = {
11764
11764
  kind: "category",
11765
11765
  name: "%{BKY_CATEGORY_TIME}",
11766
11766
  categorystyle: "time_category",
@@ -11784,14 +11784,14 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11784
11784
  }
11785
11785
  }
11786
11786
  ]
11787
- }, Vc = {
11787
+ }, xc = {
11788
11788
  kind: "categoryToolbox",
11789
11789
  contents: [
11790
11790
  {
11791
11791
  kind: "category",
11792
11792
  name: "%{BKY_CATEGORY_COMP}",
11793
11793
  categorystyle: "misc_category",
11794
- custom: ko.name
11794
+ custom: No.name
11795
11795
  },
11796
11796
  {
11797
11797
  kind: "category",
@@ -11812,7 +11812,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11812
11812
  Me,
11813
11813
  we,
11814
11814
  De,
11815
- So,
11815
+ Lo,
11816
11816
  {
11817
11817
  kind: "category",
11818
11818
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -11838,7 +11838,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11838
11838
  custom: ge.name
11839
11839
  }
11840
11840
  ]
11841
- }, xc = {
11841
+ }, wc = {
11842
11842
  kind: "categoryToolbox",
11843
11843
  contents: [
11844
11844
  {
@@ -11885,7 +11885,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11885
11885
  custom: Et.name
11886
11886
  }
11887
11887
  ]
11888
- }, wc = {
11888
+ }, Fc = {
11889
11889
  kind: "categoryToolbox",
11890
11890
  contents: [
11891
11891
  {
@@ -11932,7 +11932,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11932
11932
  custom: Et.name
11933
11933
  }
11934
11934
  ]
11935
- }, Fc = {
11935
+ }, Yc = {
11936
11936
  kind: "categoryToolbox",
11937
11937
  contents: [
11938
11938
  {
@@ -11963,14 +11963,14 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11963
11963
  ]
11964
11964
  }
11965
11965
  ]
11966
- }, Yc = {
11966
+ }, Kc = {
11967
11967
  kind: "categoryToolbox",
11968
11968
  contents: [
11969
11969
  {
11970
11970
  kind: "category",
11971
11971
  name: "%{BKY_CATEGORY_PAGE}",
11972
11972
  categorystyle: "misc_category",
11973
- custom: No.name
11973
+ custom: So.name
11974
11974
  },
11975
11975
  {
11976
11976
  kind: "category",
@@ -11991,7 +11991,7 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
11991
11991
  Me,
11992
11992
  we,
11993
11993
  De,
11994
- So,
11994
+ Lo,
11995
11995
  {
11996
11996
  kind: "category",
11997
11997
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -12043,26 +12043,26 @@ const ke = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, De = {
12043
12043
  wheel: !0
12044
12044
  }
12045
12045
  };
12046
- function Kc(t, e, n, o) {
12047
- ze.theme = o ? "dark" : "light", ze.toolbox = $c(e, n);
12048
- const i = qo(t, ze);
12046
+ function $c(t, e, n, o) {
12047
+ ze.theme = o ? "dark" : "light", ze.toolbox = Hc(e, n);
12048
+ const i = Qo(t, ze);
12049
12049
  return i.addChangeListener((a) => {
12050
12050
  setTimeout(() => {
12051
- Qo.shadowBlockConversionChangeListener(a);
12051
+ zo.shadowBlockConversionChangeListener(a);
12052
12052
  }, 0);
12053
- }), Hc(i, e, n), Gc(i), i;
12053
+ }), Gc(i, e, n), Wc(i), i;
12054
12054
  }
12055
- function $c(t, e) {
12055
+ function Hc(t, e) {
12056
12056
  let n;
12057
- return t === "page" ? e === "v1" && (n = Yc) : t === "comp" ? e === "v1" && (n = Vc) : t === "func" ? e === "v1" && (n = wc) : t === "flow" ? e === "v1" && (n = xc) : t === "json" && e === "v1" && (n = Fc), console.assert(!!n, `invalid toolbox type=${t} version=${e}`), n;
12057
+ return t === "page" ? e === "v1" && (n = Kc) : t === "comp" ? e === "v1" && (n = xc) : t === "func" ? e === "v1" && (n = Fc) : t === "flow" ? e === "v1" && (n = wc) : t === "json" && e === "v1" && (n = Yc), console.assert(!!n, `invalid toolbox type=${t} version=${e}`), n;
12058
12058
  }
12059
- function Hc(t, e, n) {
12059
+ function Gc(t, e, n) {
12060
12060
  function o({ name: i, callback: a }) {
12061
12061
  t.registerToolboxCategoryCallback(i, () => a(e));
12062
12062
  }
12063
- e === "page" ? n === "v1" && (o(No), o(Ae), o(Ie), o(gt), o(Et), o(ye), o(ge)) : e === "comp" ? n === "v1" && (o(ko), o(Ae), o(Ie), o(gt), o(Et), o(ye), o(ge)) : e === "func" ? n === "v1" && (o(Ce), o(ve), o(Oe), o(ke), o(gt), o(Et)) : e === "flow" && n === "v1" && (o(Ce), o(ve), o(Oe), o(ke), o(gt), o(Et));
12063
+ e === "page" ? n === "v1" && (o(So), o(Ae), o(Ie), o(gt), o(Et), o(ye), o(ge)) : e === "comp" ? n === "v1" && (o(No), o(Ae), o(Ie), o(gt), o(Et), o(ye), o(ge)) : e === "func" ? n === "v1" && (o(Ce), o(ve), o(Oe), o(ke), o(gt), o(Et)) : e === "flow" && n === "v1" && (o(Ce), o(ve), o(Oe), o(ke), o(gt), o(Et));
12064
12064
  }
12065
- function Gc(t) {
12065
+ function Wc(t) {
12066
12066
  const { router: e } = Ct;
12067
12067
  t.registerButtonCallback("NO_COMPUTE", () => {
12068
12068
  const n = e.resolve({
@@ -12080,7 +12080,7 @@ function Gc(t) {
12080
12080
  }, 100);
12081
12081
  });
12082
12082
  }
12083
- function Wc(t, e) {
12083
+ function jc(t, e) {
12084
12084
  const n = e.newBlock("json_root_v1");
12085
12085
  n.initSvg(), n.render();
12086
12086
  const o = (i, a) => {
@@ -12122,7 +12122,7 @@ function Wc(t, e) {
12122
12122
  new (v.get(v.FINISHED_LOADING))(e)
12123
12123
  );
12124
12124
  }
12125
- function jc(t) {
12125
+ function Xc(t) {
12126
12126
  const e = (o) => {
12127
12127
  if (!o)
12128
12128
  return null;
@@ -12154,7 +12154,7 @@ function jc(t) {
12154
12154
  if (o.type === "json_root_v1")
12155
12155
  return e(o);
12156
12156
  }
12157
- const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12157
+ const Jc = { class: "position-relative w-100 h-100" }, qc = /* @__PURE__ */ ht({
12158
12158
  __name: "index",
12159
12159
  props: /* @__PURE__ */ nn({
12160
12160
  type: {},
@@ -12170,7 +12170,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12170
12170
  emits: /* @__PURE__ */ nn(["ready"], ["update:lock", "update:scale"]),
12171
12171
  setup(t, { expose: e, emit: n }) {
12172
12172
  const { backgroundColor2: o } = te(), i = Xt(t, "lock"), a = Xt(t, "scale"), c = n, r = `blocklyEditor${on()}`, u = xt(), h = jt("parentContainer"), l = jt("clean"), d = jt("navigator"), p = {};
12173
- nc(p);
12173
+ oc(p);
12174
12174
  const f = xt(!0), T = xt(!1), E = $(() => t.type === "json" ? "tree" : "list"), y = $(() => ({
12175
12175
  width: "100%",
12176
12176
  height: "calc(100% - 48px)"
@@ -12220,21 +12220,21 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12220
12220
  console.assert(!1);
12221
12221
  return;
12222
12222
  }
12223
- zo(h.value), await bn(t.locale), p.workspace = Kc(u.value, t.type, t.version, t.dark), p.workspace.addChangeListener(v.disableOrphans), p.workspace.addChangeListener(Lo);
12223
+ Zo(h.value), await bn(t.locale), p.workspace = $c(u.value, t.type, t.version, t.dark), p.workspace.addChangeListener(v.disableOrphans), p.workspace.addChangeListener(Bo);
12224
12224
  const b = document.querySelector(`#${r} .blocklyFlyout`);
12225
12225
  new MutationObserver((Ke) => {
12226
12226
  Ke.forEach((se) => {
12227
12227
  se.type === "attributes" && se.attributeName === "style" && (Kt.value = p.workspace.getFlyout().isVisible());
12228
12228
  });
12229
- }).observe(b, { attributes: !0 }), Kt.value = p.workspace.getFlyout().isVisible(), yn(), On(), await Ii(), c("ready");
12229
+ }).observe(b, { attributes: !0 }), Kt.value = p.workspace.getFlyout().isVisible(), yn(), On(), await yi(), c("ready");
12230
12230
  }), Bn(() => {
12231
12231
  Kt.value = !1;
12232
- }), Zo(u, () => {
12233
- p.workspace && ti(p.workspace);
12232
+ }), ti(u, () => {
12233
+ p.workspace && ei(p.workspace);
12234
12234
  });
12235
- async function Lo(b) {
12235
+ async function Bo(b) {
12236
12236
  if (b.type === v.FINISHED_LOADING) {
12237
- Oo(), setTimeout(() => {
12237
+ vo(), setTimeout(() => {
12238
12238
  d.value?.update();
12239
12239
  }, 0), f.value = !1;
12240
12240
  return;
@@ -12249,19 +12249,19 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12249
12249
  }, 0);
12250
12250
  }
12251
12251
  }
12252
- const Bo = (b) => {
12253
- f.value = !0, t.type === "json" ? Wc(b, p.workspace) : J.workspaces.load(b, p.workspace);
12254
- }, bo = () => t.type === "json" ? jc(p.workspace) : J.workspaces.save(p.workspace), Po = () => {
12252
+ const bo = (b) => {
12253
+ f.value = !0, t.type === "json" ? jc(b, p.workspace) : J.workspaces.load(b, p.workspace);
12254
+ }, Po = () => t.type === "json" ? Xc(p.workspace) : J.workspaces.save(p.workspace), Ro = () => {
12255
12255
  if (t.type === "json")
12256
12256
  console.assert(!1);
12257
12257
  else
12258
12258
  return s.workspaceToCode(p.workspace);
12259
- }, Ro = () => ec(p.workspace), yn = () => {
12259
+ }, Do = () => nc(p.workspace), yn = () => {
12260
12260
  p.workspace.setIsReadOnly(i.value), p.workspace.isReadOnly() && (Kt.value = !1);
12261
12261
  }, On = () => {
12262
12262
  p.workspace.setScale(a.value);
12263
- }, Do = () => {
12264
- p.workspace.fireChangeListener(new io());
12263
+ }, Mo = () => {
12264
+ p.workspace.fireChangeListener(new so());
12265
12265
  }, vn = () => {
12266
12266
  l.value?.cleanWorkspace();
12267
12267
  }, Cn = () => {
@@ -12281,7 +12281,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12281
12281
  ), $t(
12282
12282
  () => t.dark,
12283
12283
  (b) => {
12284
- qa(b ? "dark" : "light");
12284
+ Qa(b ? "dark" : "light");
12285
12285
  }
12286
12286
  ), $t(Kt, (b) => {
12287
12287
  b || p.workspace?.hideChaff();
@@ -12291,14 +12291,14 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12291
12291
  On();
12292
12292
  }), e({
12293
12293
  loading: f,
12294
- load: Bo,
12295
- save: bo,
12296
- generateCode: Po,
12297
- generateReactivity: Ro,
12298
- fireStateChange: Do
12294
+ load: bo,
12295
+ save: Po,
12296
+ generateCode: Ro,
12297
+ generateReactivity: Do,
12298
+ fireStateChange: Mo
12299
12299
  }), (b, Lt) => {
12300
12300
  const Ke = Y("v-icon"), se = Y("x-loading");
12301
- return U(), ct("div", Xc, [
12301
+ return U(), ct("div", Jc, [
12302
12302
  X("div", {
12303
12303
  id: r,
12304
12304
  ref_key: "blocklyDiv",
@@ -12308,7 +12308,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12308
12308
  X("div", {
12309
12309
  style: Z(N.value)
12310
12310
  }, [
12311
- yi(b.$slots, "bottom")
12311
+ Oi(b.$slots, "bottom")
12312
12312
  ], 4),
12313
12313
  T.value ? (U(), ct("div", {
12314
12314
  key: 0,
@@ -12325,16 +12325,16 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12325
12325
  class: "d-flex align-end ga-3 pt-3 pr-3",
12326
12326
  style: Z(Mt.value)
12327
12327
  }, [
12328
- M(oc, {
12328
+ M(ic, {
12329
12329
  ref_key: "clean",
12330
12330
  ref: l,
12331
12331
  lock: i.value
12332
12332
  }, null, 8, ["lock"]),
12333
- M(ic, {
12333
+ M(sc, {
12334
12334
  modelValue: i.value,
12335
- "onUpdate:modelValue": Lt[0] || (Lt[0] = (Mo) => i.value = Mo)
12335
+ "onUpdate:modelValue": Lt[0] || (Lt[0] = (Uo) => i.value = Uo)
12336
12336
  }, null, 8, ["modelValue"]),
12337
- M(fc, {
12337
+ M(mc, {
12338
12338
  ref_key: "navigator",
12339
12339
  ref: d,
12340
12340
  lock: i.value,
@@ -12361,15 +12361,15 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12361
12361
  ]);
12362
12362
  };
12363
12363
  }
12364
- }), qc = /* @__PURE__ */ ht({
12364
+ }), Qc = /* @__PURE__ */ ht({
12365
12365
  __name: "index",
12366
12366
  props: {
12367
12367
  code: {}
12368
12368
  },
12369
12369
  setup(t) {
12370
12370
  const e = t;
12371
- ei.registerLanguage("javascript", ni);
12372
- const n = oi.component, { backgroundColor2: o } = te();
12371
+ ni.registerLanguage("javascript", oi);
12372
+ const n = ii.component, { backgroundColor2: o } = te();
12373
12373
  return (i, a) => {
12374
12374
  const c = Y("v-sheet");
12375
12375
  return U(), _t(c, {
@@ -12387,7 +12387,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12387
12387
  }, 8, ["color"]);
12388
12388
  };
12389
12389
  }
12390
- }), Qc = { class: "text-subtitle-1" }, zc = { class: "w-100 h-100 overflow-auto" }, Zc = /* @__PURE__ */ ht({
12390
+ }), zc = { class: "text-subtitle-1" }, Zc = { class: "w-100 h-100 overflow-auto" }, tr = /* @__PURE__ */ ht({
12391
12391
  __name: "index",
12392
12392
  setup(t) {
12393
12393
  const { t: e } = ne(), { sysBarAvail: n } = Jn(), { backgroundColor0: o, backgroundColor2: i } = te(), a = xt(""), c = $(() => {
@@ -12408,7 +12408,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12408
12408
  "no-click-animation": "",
12409
12409
  persistent: "",
12410
12410
  transition: "dialog-bottom-transition",
12411
- onKeydown: l[2] || (l[2] = oo(Wt((E) => u.value = !1, ["stop", "prevent"]), ["esc"]))
12411
+ onKeydown: l[2] || (l[2] = io(Wt((E) => u.value = !1, ["stop", "prevent"]), ["esc"]))
12412
12412
  }, {
12413
12413
  default: pt(() => [
12414
12414
  M(d, {
@@ -12434,7 +12434,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12434
12434
  variant: "text",
12435
12435
  onClick: l[0] || (l[0] = (E) => u.value = !1)
12436
12436
  }),
12437
- X("span", Qc, Jt(F(e)("x-block-lib.dlg.source.title")), 1),
12437
+ X("span", zc, Jt(F(e)("x-block-lib.dlg.source.title")), 1),
12438
12438
  M(f)
12439
12439
  ]),
12440
12440
  _: 1
@@ -12442,8 +12442,8 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12442
12442
  X("div", {
12443
12443
  style: Z(c.value)
12444
12444
  }, [
12445
- X("div", zc, [
12446
- M(qc, { code: a.value }, null, 8, ["code"])
12445
+ X("div", Zc, [
12446
+ M(Qc, { code: a.value }, null, 8, ["code"])
12447
12447
  ])
12448
12448
  ], 4)
12449
12449
  ]),
@@ -12454,16 +12454,16 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12454
12454
  }, 8, ["modelValue"]);
12455
12455
  };
12456
12456
  }
12457
- }), tr = (t) => {
12458
- t.component("XBlockly", Jc), t.component("XSourceDlg", Zc);
12457
+ }), er = (t) => {
12458
+ t.component("XBlockly", qc), t.component("XSourceDlg", tr);
12459
12459
  };
12460
- async function rr(t) {
12461
- 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;
12460
+ async function lr(t) {
12461
+ return (await ao(/* @__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;
12462
12462
  }
12463
- const lr = { install: tr };
12463
+ const ur = { install: er };
12464
12464
  export {
12465
- Jc as XBlockly,
12466
- lr as default,
12467
- tr as install,
12468
- rr as loadLocaleMessageBlock
12465
+ qc as XBlockly,
12466
+ ur as default,
12467
+ er as install,
12468
+ lr as loadLocaleMessageBlock
12469
12469
  };