x-block-lib 0.7.21 → 0.7.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,14 +7,14 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-2ba1be08]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- import { provide as ao, inject as co, defineComponent as oe, resolveComponent as M, createBlock as ee, openBlock as b, unref as D, withCtx as te, createVNode as S, mergeProps as Xt, useModel as Ue, ref as Ae, computed as w, resolveDirective as lo, withDirectives as uo, createElementBlock as z, normalizeStyle as W, createElementVNode as j, toDisplayString as rt, withModifiers as be, mergeModels as Rt, Fragment as An, renderList as ro, useId as Dt, onUnmounted as In, useTemplateRef as Pe, withKeys as On, isRef as Ge, createCommentVNode as he, onMounted as ln, nextTick as _o, onBeforeUnmount as po, watch as Se, renderSlot as ho } from "vue";
11
- import { f as fo, F as Cn, M as _, E, r as un, s as mo, X as Jt, u as k, B as d, j as s, O as c, a as Mt, i as P, b as v, d as h, c as Re, e as $, g as me, h as le, p as De, k as Z, l as rn, m as B, C as vn, N as ne, n as To, P as Ut, V as ge, o as Fe, q as kn, t as Eo, v as go, w as Ao, S as Io, x as Oo, y as Co, T as _t, z as yn, A as vo, D as ko, G as Nn, H as yo, I as No, J as Lo, K as So, L as Bo, Q as bo, R as Po, U as Ro } from "./vendor.eugzj64g.js";
12
- import { globalObjects as X, openConfirmDlg as Do, openPromptDlg as Mo, messageWarning as Ln, useColor as Ye, useSystem as Sn, useViewStack as qt } from "x-essential-lib";
13
- import { elements as V, pkgs as Ve, parsePixelStr as Uo, parsePercentStr as Vo, getPropTag as pt } from "x-runtime-lib";
10
+ import { provide as so, inject as ao, defineComponent as oe, resolveComponent as M, createBlock as ee, openBlock as b, unref as D, withCtx as te, createVNode as L, mergeProps as jt, useModel as Ue, ref as Ae, computed as w, resolveDirective as co, withDirectives as lo, createElementBlock as z, normalizeStyle as W, createElementVNode as j, toDisplayString as _t, withModifiers as Pe, mergeModels as Mt, Fragment as gn, renderList as uo, useId as Ut, onUnmounted as An, useTemplateRef as Re, withKeys as In, isRef as Ge, createCommentVNode as pe, onMounted as an, nextTick as ro, onBeforeUnmount as _o, watch as Be, renderSlot as po } from "vue";
11
+ import { f as ho, F as On, M as _, E, r as cn, s as fo, X as Cn, u as y, B as d, j as s, O as c, a as Vt, i as P, b as v, d as h, c as De, e as $, g as me, h as ce, p as Me, k as Z, l as ln, m as B, C as vn, N as ne, n as mo, P as xt, V as ge, o as Fe, q as yn, t as To, v as Eo, w as go, S as Ao, x as Io, y as Oo, T as pt, z as kn, A as Co, D as vo, G as Nn, H as yo, I as ko, J as No, K as So, L as Lo, Q as Bo, R as bo, U as Po } from "./vendor.yapsaj89.js";
12
+ import { globalObjects as X, openConfirmDlg as Ro, openPromptDlg as Do, messageWarning as Sn, useColor as Ye, useSystem as Ln, useViewStack as Xt } from "x-essential-lib";
13
+ import { elements as U, pkgs as Ve, parsePixelStr as Mo, parsePercentStr as Uo, getPropTag as ht } from "x-runtime-lib";
14
14
  import { globalState as T } from "x-state-lib";
15
15
  import { useI18n as we } from "vue-i18n";
16
- import { useDisplay as xo } from "vuetify";
17
- class f extends Cn {
16
+ import { useDisplay as Vo } from "vuetify";
17
+ class f extends On {
18
18
  constructor(t, n, o) {
19
19
  super(t, n, o);
20
20
  }
@@ -37,7 +37,7 @@ class f extends Cn {
37
37
  if (this.name === "ELEMENT")
38
38
  return n.element.name;
39
39
  if (this.name === "NODE") {
40
- const o = V[n.node.key];
40
+ const o = U[n.node.key];
41
41
  if (o) {
42
42
  const i = t.global.t(o.name), a = n.node.alias;
43
43
  return `${i} / ${a}`;
@@ -71,25 +71,25 @@ class f extends Cn {
71
71
  return "<n/a>";
72
72
  }
73
73
  }
74
- fo.register("field_dropdown2", f);
75
- var L = /* @__PURE__ */ ((e) => (e.STATE_CHANGE = "state_change", e))(L || {});
74
+ ho.register("field_dropdown2", f);
75
+ var S = /* @__PURE__ */ ((e) => (e.STATE_CHANGE = "state_change", e))(S || {});
76
76
  class Bn extends E.Abstract {
77
77
  isBlank = !0;
78
78
  }
79
- un.register(
80
- un.Type.EVENT,
79
+ cn.register(
80
+ cn.Type.EVENT,
81
81
  "state_change",
82
82
  Bn
83
83
  );
84
- const Ie = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Xe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
85
- function ht(e) {
84
+ const Ie = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", je = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
85
+ function dt(e) {
86
86
  const t = e.lastIndexOf("V");
87
87
  if (t <= 0 || t >= e.length - 1)
88
88
  return console.assert(!1, `invalid key=${e}`), "";
89
- const n = mo(e.substring(0, t - 1)), o = "v" + e.substring(t + 1);
89
+ const n = fo(e.substring(0, t - 1)), o = "v" + e.substring(t + 1);
90
90
  return `${n}_${o}`;
91
91
  }
92
- function Je(e) {
92
+ function Xe(e) {
93
93
  const t = e.lastIndexOf("V");
94
94
  if (t <= 0 || t >= e.length - 1)
95
95
  return console.assert(!1, `invalid key=${e}`), "";
@@ -99,65 +99,45 @@ function Je(e) {
99
99
  function N(e) {
100
100
  return e.length <= 0 && e.push([_.NO_OPTION, ""]), e;
101
101
  }
102
- function Fo(e) {
102
+ function xo(e) {
103
103
  let t = 0;
104
104
  for (; e; )
105
105
  t++, e = e.getParent();
106
106
  return t;
107
107
  }
108
- function We(e) {
108
+ function kt(e) {
109
109
  const t = `<block type="text_v1"><field name="TEXT">${e}</field></block>`;
110
- return k.xml.textToDom(t);
110
+ return y.xml.textToDom(t);
111
111
  }
112
- function Vt(e) {
112
+ function un(e) {
113
113
  const t = `<block type="math_number_v1"><field name="NUM">${e}</field></block>`;
114
- return k.xml.textToDom(t);
115
- }
116
- function bn(e) {
117
- const t = `<block type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></block>`;
118
- return k.xml.textToDom(t);
119
- }
120
- function Yo(e) {
121
- const t = `<block type="${ht(e)}"></block>`;
122
- return k.xml.textToDom(t);
123
- }
124
- function wo(e) {
125
- const t = `<block type="${ht(e)}"></block>`;
126
- return k.xml.textToDom(t);
114
+ return y.xml.textToDom(t);
127
115
  }
128
- function Ko() {
129
- return k.xml.textToDom('<block type="select_comp_v1"></block>');
130
- }
131
- function $o(e) {
132
- const t = `<block type="color_picker_v1"><field name="COLOR">${e}</field></block>`;
133
- return k.xml.textToDom(t);
134
- }
135
- function Pn(e, t) {
136
- let n = null;
137
- return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? n = We(t.default) : t.ui === "numInput" ? n = Vt(t.default) : t.ui === "switch" ? n = bn(t.default) : t.ui === "select" ? n = Yo(t.items) : t.ui === "multiTypes" ? n = wo(t.types) : t.ui === "compSelect" ? n = Ko() : t.ui === "colorPicker" ? n = $o(t.default ?? "#ff0000") : console.assert(!1), n ? Jt.domToBlock(n, e) : null;
116
+ function Fo(e) {
117
+ return y.xml.textToDom('<block type="logic_boolean_v1"><field name="BOOL">FALSE</field></block>');
138
118
  }
139
- function xt(e, t) {
119
+ function Ft(e, t) {
140
120
  let n = null;
141
- return t === "string" ? n = We("") : t === "integer" || t === "decimal" ? n = Vt(0) : t === "boolean" ? n = bn(!1) : t === "enum" || t === "dateTime" ? n = We("") : console.assert(!1), n ? Jt.domToBlock(n, e) : null;
121
+ return t === "string" ? n = kt("") : t === "integer" || t === "decimal" ? n = un(0) : t === "boolean" ? n = Fo() : t === "enum" || t === "dateTime" ? n = kt("") : console.assert(!1), n ? Cn.domToBlock(n, e) : null;
142
122
  }
143
123
  function ke(e) {
144
124
  return e === "string" ? "String" : e === "number" ? "Number" : e === "boolean" ? "Boolean" : e === "array" ? "Array" : e === "object" ? "Object" : (console.assert(!1), null);
145
125
  }
146
- function Rn(e) {
147
- return e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Je(e.items) : e.ui === "multiTypes" ? Je(e.types) : e.ui === "compSelect" ? "Comp" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
126
+ function bn(e) {
127
+ return e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Xe(e.items) : e.ui === "multiTypes" ? Xe(e.types) : e.ui === "compSelect" ? "Comp" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
148
128
  }
149
- function Dn(e) {
129
+ function Pn(e) {
150
130
  return e === "string" ? "String" : e === "integer" || e === "decimal" ? "Number" : e === "boolean" ? "Boolean" : e === "enum" || e === "dateTime" ? "String" : (console.assert(!1), null);
151
131
  }
152
- function Qt(e, t, n, o) {
132
+ function Jt(e, t, n, o) {
153
133
  const i = `
154
134
  <block type="parameter_v1">
155
135
  <mutation key="${t}" name="${n}" locale="${o ? "TRUE" : "FALSE"}"/>
156
136
  </block>
157
- `, a = k.xml.textToDom(i);
158
- return Jt.domToBlock(a, e);
137
+ `, a = y.xml.textToDom(i);
138
+ return Cn.domToBlock(a, e);
159
139
  }
160
- function x(e, t) {
140
+ function V(e, t) {
161
141
  try {
162
142
  E.disable(), t.forEach((n) => {
163
143
  const [o, i, a, l] = n, u = e.getInput(o)?.connection;
@@ -170,7 +150,7 @@ function x(e, t) {
170
150
  return;
171
151
  r.dispose();
172
152
  }
173
- r = Qt(
153
+ r = Jt(
174
154
  e.workspace,
175
155
  i,
176
156
  a,
@@ -181,31 +161,51 @@ function x(e, t) {
181
161
  E.enable();
182
162
  }
183
163
  }
184
- function de(e) {
164
+ function ae(e) {
185
165
  const t = `<shadow type="text_v1"><field name="TEXT">${e}</field></shadow>`;
186
- return k.xml.textToDom(t);
166
+ return y.xml.textToDom(t);
187
167
  }
188
- function Ft(e) {
168
+ function Je(e) {
189
169
  const t = `<shadow type="math_number_v1"><field name="NUM">${e}</field></shadow>`;
190
- return k.xml.textToDom(t);
170
+ return y.xml.textToDom(t);
191
171
  }
192
- function Yt(e) {
193
- return k.xml.textToDom('<shadow type="logic_boolean_v1"><field name="BOOL">FALSE</field></shadow>');
172
+ function qe(e) {
173
+ const t = `<shadow type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></shadow>`;
174
+ return y.xml.textToDom(t);
175
+ }
176
+ function Yo() {
177
+ return y.xml.textToDom('<shadow type="list_create_v1"></shadow>');
178
+ }
179
+ function wo() {
180
+ return y.xml.textToDom('<shadow type="object_create_v1"></shadow>');
181
+ }
182
+ function Ko(e) {
183
+ const t = `<shadow type="${dt(e)}"></shadow>`;
184
+ return y.xml.textToDom(t);
185
+ }
186
+ function $o(e) {
187
+ const t = `<shadow type="${dt(e)}"></shadow>`;
188
+ return y.xml.textToDom(t);
194
189
  }
195
- function Ho() {
196
- return k.xml.textToDom('<shadow type="list_create_v1"></shadow>');
190
+ function Ho(e) {
191
+ const t = `<shadow type="color_picker_v1"><field name="COLOR">${e}</field></shadow>`;
192
+ return y.xml.textToDom(t);
197
193
  }
198
194
  function Go() {
199
- return k.xml.textToDom('<shadow type="object_create_v1"></shadow>');
195
+ return y.xml.textToDom('<shadow type="select_comp_v1"></shadow>');
200
196
  }
201
197
  function Te(e) {
202
198
  let t = null;
203
- return e === "string" ? t = de("") : e === "number" ? t = Ft(0) : e === "boolean" ? t = Yt() : e === "array" ? t = Ho() : e === "object" ? t = Go() : console.assert(!1), t;
199
+ return e === "string" ? t = ae("") : e === "number" ? t = Je(0) : e === "boolean" ? t = qe(!1) : e === "array" ? t = Yo() : e === "object" ? t = wo() : console.assert(!1), t;
200
+ }
201
+ function Rn(e) {
202
+ let t = null;
203
+ return e.ui === "dummy" ? console.assert(!0) : e.ui === "strInput" ? t = ae(e.default) : e.ui === "numInput" ? t = Je(e.default) : e.ui === "switch" ? t = qe(e.default) : e.ui === "select" ? t = Ko(e.items) : e.ui === "multiTypes" ? t = $o(e.types) : e.ui === "compSelect" ? t = Go() : e.ui === "colorPicker" ? t = Ho(e.default ?? "#ff0000") : console.assert(!1), t;
204
204
  }
205
205
  function Wo() {
206
206
  return T.app.activePage.meta.arguments;
207
207
  }
208
- function _n(e) {
208
+ function rn(e) {
209
209
  return T.app.activePage.meta.arguments.find(
210
210
  (t) => t.id === e
211
211
  );
@@ -241,7 +241,7 @@ const Xo = {
241
241
  return jo();
242
242
  },
243
243
  onchange: function(e) {
244
- if (e.type === L.STATE_CHANGE)
244
+ if (e.type === S.STATE_CHANGE)
245
245
  this.checkWarning_();
246
246
  else if (e.type === E.BLOCK_CHANGE) {
247
247
  const t = e;
@@ -253,7 +253,7 @@ const Xo = {
253
253
  }
254
254
  },
255
255
  onArgumentChange_: function(e) {
256
- const t = _n(e);
256
+ const t = rn(e);
257
257
  if (!t) {
258
258
  console.assert(!1);
259
259
  return;
@@ -264,7 +264,7 @@ const Xo = {
264
264
  this.setOutput(!0, ke(this.argument.type));
265
265
  },
266
266
  checkWarning_: function() {
267
- const e = _n(this.argument.id);
267
+ const e = rn(this.argument.id);
268
268
  if (!e) {
269
269
  this.setWarningText(_.WARN_ARGUMENT_NOT_FOUND);
270
270
  return;
@@ -282,7 +282,7 @@ s.forBlock.get_page_argument_v1 = function(e) {
282
282
  return [`__getPageArgumentV1__(${s.quote_(t.argument.id)})`, c.FUNCTION_CALL];
283
283
  };
284
284
  const Jo = (e, t) => {
285
- const n = ht(e), o = Je(e);
285
+ const n = dt(e), o = Xe(e);
286
286
  d[n] = {
287
287
  init: function() {
288
288
  this.appendDummyInput().appendField(
@@ -307,7 +307,7 @@ for (const e in Ve) {
307
307
  Jo(n, t.items[n]);
308
308
  }
309
309
  const qo = (e, t) => {
310
- const n = ht(e), o = Je(e);
310
+ const n = dt(e), o = Xe(e);
311
311
  d[n] = {
312
312
  init: function() {
313
313
  this.value = t[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -330,7 +330,7 @@ const qo = (e, t) => {
330
330
  return N(a);
331
331
  },
332
332
  onchange: function(i) {
333
- if (i.type === L.STATE_CHANGE)
333
+ if (i.type === S.STATE_CHANGE)
334
334
  this.checkWarning_();
335
335
  else if (i.type === E.BLOCK_CHANGE) {
336
336
  const a = i;
@@ -361,8 +361,8 @@ const qo = (e, t) => {
361
361
  i.removeField("VALUE", !0), i.removeField("SUFFIX", !0);
362
362
  let u, r;
363
363
  if (l.ui === "pixelInput") {
364
- const p = Uo(this.value) ?? 0;
365
- u = new Mt(
364
+ const p = Mo(this.value) ?? 0;
365
+ u = new Vt(
366
366
  p,
367
367
  l.min,
368
368
  l.max,
@@ -372,8 +372,8 @@ const qo = (e, t) => {
372
372
  }
373
373
  ), r = "px";
374
374
  } else if (l.ui === "percentInput") {
375
- const p = Vo(this.value) ?? 0;
376
- u = new Mt(
375
+ const p = Uo(this.value) ?? 0;
376
+ u = new Vt(
377
377
  p,
378
378
  l.min,
379
379
  l.max,
@@ -406,7 +406,7 @@ for (const e in Ve) {
406
406
  function Ee(e) {
407
407
  const { nodes: t } = T.app.activeObject, n = [];
408
408
  for (const o in t) {
409
- const i = t[o], a = V[i.key];
409
+ const i = t[o], a = U[i.key];
410
410
  if (!a) {
411
411
  console.assert(!1, "invalid element", i.key);
412
412
  continue;
@@ -423,10 +423,10 @@ function Ee(e) {
423
423
  function F(e) {
424
424
  return T.app.activeObject.nodes.find((t) => t.id === e);
425
425
  }
426
- function ye(e) {
426
+ function Ne(e) {
427
427
  const { i18n: t } = X, n = [];
428
428
  return Ee(e).forEach(({ id: i, key: a, alias: l }) => {
429
- const u = V[a];
429
+ const u = U[a];
430
430
  if (!u) {
431
431
  console.assert(!1, "invalid element", a);
432
432
  return;
@@ -435,18 +435,18 @@ function ye(e) {
435
435
  l && (r += ` / ${l}`), n.push([r, i]);
436
436
  }), N(n);
437
437
  }
438
- function wt(e) {
438
+ function Yt(e) {
439
439
  const t = F(e);
440
440
  if (!t)
441
441
  return [];
442
- const n = V[t.key];
442
+ const n = U[t.key];
443
443
  return n ? n.events : (console.assert(!1, "invalid element", t.key), []);
444
444
  }
445
- function kt(e, t) {
445
+ function Nt(e, t) {
446
446
  const n = F(e);
447
447
  if (!n)
448
448
  return;
449
- const o = V[n.key];
449
+ const o = U[n.key];
450
450
  if (!o) {
451
451
  console.assert(!1, "invalid element", n.key);
452
452
  return;
@@ -455,22 +455,22 @@ function kt(e, t) {
455
455
  }
456
456
  function Qo(e) {
457
457
  const { i18n: t } = X, n = [];
458
- return wt(e).forEach(({ key: i, name: a }) => {
458
+ return Yt(e).forEach(({ key: i, name: a }) => {
459
459
  n.push([t.global.t(a), i]);
460
460
  }), N(n);
461
461
  }
462
- function Kt(e) {
462
+ function wt(e) {
463
463
  const t = F(e);
464
464
  if (!t)
465
465
  return [];
466
- const n = V[t.key];
466
+ const n = U[t.key];
467
467
  return n ? n.methods : (console.assert(!1, "invalid element", t.key), []);
468
468
  }
469
- function yt(e, t) {
469
+ function St(e, t) {
470
470
  const n = F(e);
471
471
  if (!n)
472
472
  return;
473
- const o = V[n.key];
473
+ const o = U[n.key];
474
474
  if (!o) {
475
475
  console.assert(!1, "invalid element", n.key);
476
476
  return;
@@ -479,21 +479,21 @@ function yt(e, t) {
479
479
  }
480
480
  function zo(e) {
481
481
  const { i18n: t } = X, n = [];
482
- return Kt(e).forEach(({ key: i, name: a }) => {
482
+ return wt(e).forEach(({ key: i, name: a }) => {
483
483
  n.push([t.global.t(a), i]);
484
484
  }), N(n);
485
485
  }
486
- function Ce(e, t) {
487
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = [], l = pt(o, i);
486
+ function ve(e, t) {
487
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = [], l = ht(o, i);
488
488
  if (!l)
489
489
  return console.assert(!1, "invalid prop tag", o, i), a;
490
490
  const u = F(e);
491
- return u ? V[u.key] ? (n[u.key]?.[l]?.forEach((p) => {
491
+ return u ? U[u.key] ? (n[u.key]?.[l]?.forEach((p) => {
492
492
  t && (!p.raw.ui || p.raw.readonly || p.keys === "alias") || a.push(p);
493
493
  }), a) : (console.assert(!1, "invalid element", u.key), a) : a;
494
494
  }
495
- function ie(e, t) {
496
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = pt(o, i);
495
+ function he(e, t) {
496
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = ht(o, i);
497
497
  if (!a) {
498
498
  console.assert(!1, "invalid prop tag", o, i);
499
499
  return;
@@ -502,9 +502,9 @@ function ie(e, t) {
502
502
  if (l)
503
503
  return n[l.key]?.[a]?.find((u) => u.keys === t);
504
504
  }
505
- function zt(e, t) {
505
+ function qt(e, t) {
506
506
  const { i18n: n } = X, o = [];
507
- return Ce(e, t).forEach(({ keys: a, names: l }) => {
507
+ return ve(e, t).forEach(({ keys: a, names: l }) => {
508
508
  let u = "";
509
509
  l.forEach((r, p) => {
510
510
  p !== 0 && (u += " - "), u += n.global.t(r);
@@ -532,7 +532,7 @@ const Zo = {
532
532
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
533
533
  const t = this.getField("NODE");
534
534
  t.getOptions(!1), t.setValue(this.node.id);
535
- const n = wt(this.node.id)?.[0];
535
+ const n = Yt(this.node.id)?.[0];
536
536
  if (!n)
537
537
  return;
538
538
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -551,13 +551,13 @@ const Zo = {
551
551
  }, 0);
552
552
  },
553
553
  genNodeOpts_: function() {
554
- return ye("event");
554
+ return Ne("event");
555
555
  },
556
556
  genEventOpts_: function() {
557
557
  return Qo(this.node.id);
558
558
  },
559
559
  onchange: function(e) {
560
- if (e.type === L.STATE_CHANGE)
560
+ if (e.type === S.STATE_CHANGE)
561
561
  this.checkWarning_();
562
562
  else if (e.type === E.BLOCK_CHANGE) {
563
563
  const t = e;
@@ -577,13 +577,13 @@ const Zo = {
577
577
  const n = this.node.key !== t.key;
578
578
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
579
579
  const o = this.getField("EVENT");
580
- if (o.getOptions(!1), n || !kt(this.node.id, this.event.key)) {
581
- const a = wt(this.node.id)?.[0]?.key ?? "";
580
+ if (o.getOptions(!1), n || !Nt(this.node.id, this.event.key)) {
581
+ const a = Yt(this.node.id)?.[0]?.key ?? "";
582
582
  o.setValue(a), this.event.key === a && this.onEventChange_(a);
583
583
  }
584
584
  },
585
585
  onEventChange_: function(e) {
586
- const t = kt(this.node.id, e);
586
+ const t = Nt(this.node.id, e);
587
587
  t ? (this.event.key = t.key, this.event.name = t.name, this.event.params = t.params) : (this.event.key = "", this.event.name = "", this.event.params = []), this.updateShape_(), setTimeout(() => {
588
588
  this.ensureBlocks_();
589
589
  }, 0);
@@ -602,7 +602,7 @@ const Zo = {
602
602
  const e = [];
603
603
  this.event.params.forEach(({ key: t, name: n }, o) => {
604
604
  e.push(["PARAM" + o, t, n, !0]);
605
- }), e.length > 0 && x(this, e);
605
+ }), e.length > 0 && V(this, e);
606
606
  },
607
607
  checkWarning_: function() {
608
608
  const e = F(this.node.id);
@@ -615,7 +615,7 @@ const Zo = {
615
615
  return;
616
616
  }
617
617
  e.alias !== this.node.alias && (this.node.alias = e.alias);
618
- const t = kt(this.node.id, this.event.key);
618
+ const t = Nt(this.node.id, this.event.key);
619
619
  if (!t) {
620
620
  this.setWarningText(_.WARN_EVENT_NOT_FOUND);
621
621
  return;
@@ -639,80 +639,80 @@ s.forBlock.on_app_event_v1 = function(e) {
639
639
  ${a}});
640
640
  `;
641
641
  };
642
- function Ne(e) {
642
+ function Se(e) {
643
643
  const { version: t } = T.app.activeObject;
644
644
  if (!Ve[t])
645
645
  return console.assert(!1, "invalid pkg version", t), [];
646
646
  const o = [];
647
- for (const i in V) {
648
- const a = V[i];
647
+ for (const i in U) {
648
+ const a = U[i];
649
649
  i.startsWith("globality") || e === "event" && a.events.length <= 0 || e === "method" && a.methods.length <= 0 || o.push(a);
650
650
  }
651
651
  return o;
652
652
  }
653
- function ue(e) {
654
- const t = V[e];
653
+ function le(e) {
654
+ const t = U[e];
655
655
  if (t)
656
656
  return t;
657
657
  }
658
658
  function fe(e) {
659
659
  const { i18n: t } = X, n = [];
660
- return Ne(e).forEach(({ key: i, name: a }) => {
660
+ return Se(e).forEach(({ key: i, name: a }) => {
661
661
  n.push([t.global.t(a), i]);
662
662
  }), N(n);
663
663
  }
664
- function $t(e) {
665
- const t = V[e];
664
+ function Kt(e) {
665
+ const t = U[e];
666
666
  return t ? t.events : [];
667
667
  }
668
- function Nt(e, t) {
669
- const n = V[e];
668
+ function Lt(e, t) {
669
+ const n = U[e];
670
670
  if (n)
671
671
  return n.events.find((o) => o.key === t);
672
672
  }
673
673
  function ei(e) {
674
674
  const { i18n: t } = X, n = [];
675
- return $t(e).forEach(({ key: i, name: a }) => {
675
+ return Kt(e).forEach(({ key: i, name: a }) => {
676
676
  n.push([t.global.t(a), i]);
677
677
  }), N(n);
678
678
  }
679
- function Ht(e) {
680
- const t = V[e];
679
+ function $t(e) {
680
+ const t = U[e];
681
681
  return t ? t.methods : [];
682
682
  }
683
- function Lt(e, t) {
684
- const n = V[e];
683
+ function Bt(e, t) {
684
+ const n = U[e];
685
685
  if (n)
686
686
  return n.methods.find((o) => o.key === t);
687
687
  }
688
688
  function ti(e) {
689
689
  const { i18n: t } = X, n = [];
690
- return Ht(e).forEach(({ key: i, name: a }) => {
690
+ return $t(e).forEach(({ key: i, name: a }) => {
691
691
  n.push([t.global.t(a), i]);
692
692
  }), N(n);
693
693
  }
694
- function ve(e, t) {
695
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = pt(o, i);
694
+ function ye(e, t) {
695
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = ht(o, i);
696
696
  if (!a)
697
697
  return console.assert(!1, "invalid prop tag", o, i), [];
698
- if (!V[e])
698
+ if (!U[e])
699
699
  return [];
700
700
  const u = [];
701
701
  return n[e]?.[a]?.forEach((r) => {
702
702
  t && (!r.raw.ui || r.raw.readonly || r.keys === "alias") || u.push(r);
703
703
  }), u;
704
704
  }
705
- function se(e, t) {
706
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = pt(o, i);
705
+ function de(e, t) {
706
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = ht(o, i);
707
707
  if (!a) {
708
708
  console.assert(!1, "invalid prop tag", o, i);
709
709
  return;
710
710
  }
711
711
  return n[e]?.[a]?.find((l) => l.keys === t);
712
712
  }
713
- function Zt(e, t) {
713
+ function Qt(e, t) {
714
714
  const { i18n: n } = X, o = [];
715
- return ve(e, t).forEach(({ keys: a, names: l }) => {
715
+ return ye(e, t).forEach(({ keys: a, names: l }) => {
716
716
  let u = "";
717
717
  l.forEach((r, p) => {
718
718
  p !== 0 && (u += " - "), u += n.global.t(r);
@@ -733,13 +733,13 @@ const ni = {
733
733
  initData_: function() {
734
734
  if (this.element.key)
735
735
  return;
736
- const e = Ne("event")?.[0];
736
+ const e = Se("event")?.[0];
737
737
  if (!e)
738
738
  return;
739
739
  this.element.key = e.key, this.element.name = e.name;
740
740
  const t = this.getField("ELEMENT");
741
741
  t.getOptions(!1), t.setValue(this.element.key);
742
- const n = $t(this.element.key)?.[0];
742
+ const n = Kt(this.element.key)?.[0];
743
743
  if (!n)
744
744
  return;
745
745
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -764,7 +764,7 @@ const ni = {
764
764
  return ei(this.element.key);
765
765
  },
766
766
  onchange: function(e) {
767
- if (e.type === L.STATE_CHANGE)
767
+ if (e.type === S.STATE_CHANGE)
768
768
  this.checkWarning_();
769
769
  else if (e.type === E.BLOCK_CHANGE) {
770
770
  const t = e;
@@ -776,7 +776,7 @@ const ni = {
776
776
  }
777
777
  },
778
778
  onElementChange_: function(e) {
779
- const t = ue(e);
779
+ const t = le(e);
780
780
  if (!t) {
781
781
  console.assert(!1);
782
782
  return;
@@ -784,13 +784,13 @@ const ni = {
784
784
  const n = this.element.key !== t.key;
785
785
  this.element.key = t.key, this.element.name = t.name;
786
786
  const o = this.getField("EVENT");
787
- if (o.getOptions(!1), n || !Nt(this.element.key, this.event.key)) {
788
- const a = $t(this.element.key)?.[0]?.key ?? "";
787
+ if (o.getOptions(!1), n || !Lt(this.element.key, this.event.key)) {
788
+ const a = Kt(this.element.key)?.[0]?.key ?? "";
789
789
  o.setValue(a, !1), this.event.key !== a && this.onEventChange_(a);
790
790
  }
791
791
  },
792
792
  onEventChange_: function(e) {
793
- const t = Nt(this.element.key, e);
793
+ const t = Lt(this.element.key, e);
794
794
  t ? (this.event.key = t.key, this.event.name = t.name, this.event.params = t.params) : (this.event.key = "", this.event.name = "", this.event.params = []), this.updateShape_(), setTimeout(() => {
795
795
  this.ensureBlocks_();
796
796
  }, 0);
@@ -809,16 +809,16 @@ const ni = {
809
809
  const e = [];
810
810
  this.event.params.forEach(({ key: t, name: n }, o) => {
811
811
  e.push(["PARAM" + o, t, n, !0]);
812
- }), e.length > 0 && x(this, e);
812
+ }), e.length > 0 && V(this, e);
813
813
  },
814
814
  checkWarning_: function() {
815
- const e = ue(this.element.key);
815
+ const e = le(this.element.key);
816
816
  if (!e) {
817
817
  this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
818
818
  return;
819
819
  }
820
820
  e.name !== this.element.name && (this.element.name = e.name);
821
- const t = Nt(this.element.key, this.event.key);
821
+ const t = Lt(this.element.key, this.event.key);
822
822
  if (!t) {
823
823
  this.setWarningText(_.WARN_EVENT_NOT_FOUND);
824
824
  return;
@@ -842,25 +842,25 @@ s.forBlock.on_app_event_as_v1 = function(e) {
842
842
  ${a}});
843
843
  `;
844
844
  };
845
- function en() {
845
+ function zt() {
846
846
  return T.app.activeComp.meta.methods;
847
847
  }
848
- function qe(e) {
848
+ function Qe(e) {
849
849
  return T.app.activeComp.meta.methods.find((t) => t.id === e);
850
850
  }
851
- function Mn() {
851
+ function Dn() {
852
852
  const e = [];
853
- return en().forEach(({ id: n, name: o }) => {
853
+ return zt().forEach(({ id: n, name: o }) => {
854
854
  e.push([o, n]);
855
855
  }), N(e);
856
856
  }
857
- function Gt(e) {
857
+ function Ht(e) {
858
858
  const t = T.app.activeComp.meta.methods.find(
859
859
  (n) => n.id === e
860
860
  );
861
861
  return t ? t.outputs : [];
862
862
  }
863
- function St(e, t) {
863
+ function bt(e, t) {
864
864
  const n = T.app.activeComp.meta.methods.find(
865
865
  (o) => o.id === e
866
866
  );
@@ -869,19 +869,19 @@ function St(e, t) {
869
869
  }
870
870
  function oi(e) {
871
871
  const t = [];
872
- return Gt(e).forEach(({ id: o, name: i }) => {
872
+ return Ht(e).forEach(({ id: o, name: i }) => {
873
873
  t.push([i, o]);
874
874
  }), N(t);
875
875
  }
876
- function Un() {
876
+ function Mn() {
877
877
  return T.app.activeComp.meta.events;
878
878
  }
879
- function pn(e) {
879
+ function _n(e) {
880
880
  return T.app.activeComp.meta.events.find((t) => t.id === e);
881
881
  }
882
882
  function ii() {
883
883
  const e = [];
884
- return Un().forEach(({ id: n, name: o }) => {
884
+ return Mn().forEach(({ id: n, name: o }) => {
885
885
  e.push([o, n]);
886
886
  }), N(e);
887
887
  }
@@ -896,7 +896,7 @@ const si = {
896
896
  initData_: function() {
897
897
  if (this.event.id)
898
898
  return;
899
- const e = Un()?.[0];
899
+ const e = Mn()?.[0];
900
900
  if (!e)
901
901
  return;
902
902
  this.event.id = e.id, this.event.name = e.name, this.event.params = e.params;
@@ -917,7 +917,7 @@ const si = {
917
917
  return ii();
918
918
  },
919
919
  onchange: function(e) {
920
- if (e.type === L.STATE_CHANGE)
920
+ if (e.type === S.STATE_CHANGE)
921
921
  this.checkWarning_();
922
922
  else if (e.type === E.BLOCK_CHANGE) {
923
923
  const t = e;
@@ -929,7 +929,7 @@ const si = {
929
929
  }
930
930
  },
931
931
  onEventChange_: function(e) {
932
- const t = pn(e);
932
+ const t = _n(e);
933
933
  t ? (this.event.id = t.id, this.event.name = t.name, this.event.params = t.params) : (this.event.id = "", this.event.name = "", this.event.params = []);
934
934
  },
935
935
  updateShape_: function() {
@@ -956,7 +956,7 @@ const si = {
956
956
  }
957
957
  },
958
958
  checkWarning_: function() {
959
- const e = pn(this.event.id);
959
+ const e = _n(this.event.id);
960
960
  if (!e) {
961
961
  this.setWarningText(_.WARN_EVENT_NOT_FOUND);
962
962
  return;
@@ -992,13 +992,13 @@ const ai = {
992
992
  updateShadow_: function() {
993
993
  if (this.isInsertionMarker())
994
994
  return;
995
- const e = de("title");
995
+ const e = ae("title");
996
996
  this.getInput("TITLE").connection.setShadowDom(e);
997
- const t = de("text");
997
+ const t = ae("text");
998
998
  this.getInput("TEXT").connection.setShadowDom(t);
999
999
  },
1000
1000
  ensureBlocks_: function() {
1001
- this.isInsertionMarker() || x(this, [
1001
+ this.isInsertionMarker() || V(this, [
1002
1002
  ["RESULT", "__result__", "PARAM_RESULT", !0]
1003
1003
  ]);
1004
1004
  }
@@ -1029,15 +1029,15 @@ const ci = {
1029
1029
  updateShadow_: function() {
1030
1030
  if (this.isInsertionMarker())
1031
1031
  return;
1032
- const e = de("title");
1032
+ const e = ae("title");
1033
1033
  this.getInput("TITLE").connection.setShadowDom(e);
1034
- const t = de("label");
1034
+ const t = ae("label");
1035
1035
  this.getInput("LABEL").connection.setShadowDom(t);
1036
- const n = de("");
1036
+ const n = ae("");
1037
1037
  this.getInput("VALUE").connection.setShadowDom(n);
1038
1038
  },
1039
1039
  ensureBlocks_: function() {
1040
- this.isInsertionMarker() || x(this, [
1040
+ this.isInsertionMarker() || V(this, [
1041
1041
  ["RESULT", "__result__", "PARAM_RESULT", !0]
1042
1042
  ]);
1043
1043
  }
@@ -1104,7 +1104,7 @@ const li = {
1104
1104
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1105
1105
  const t = this.getField("NODE");
1106
1106
  t.getOptions(!1), t.setValue(this.node.id);
1107
- const n = Kt(this.node.id)?.[0];
1107
+ const n = wt(this.node.id)?.[0];
1108
1108
  if (!n)
1109
1109
  return;
1110
1110
  this.method.key = n.key, this.method.name = n.name, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -1123,7 +1123,7 @@ const li = {
1123
1123
  }, 0);
1124
1124
  },
1125
1125
  genNodeOpts_: function() {
1126
- return ye("method");
1126
+ return Ne("method");
1127
1127
  },
1128
1128
  genMethodOpts_: function() {
1129
1129
  return zo(this.node.id);
@@ -1132,7 +1132,7 @@ const li = {
1132
1132
  return fe();
1133
1133
  },
1134
1134
  onchange: function(e) {
1135
- if (e.type === L.STATE_CHANGE)
1135
+ if (e.type === S.STATE_CHANGE)
1136
1136
  this.checkWarning_();
1137
1137
  else if (e.type === E.BLOCK_CHANGE) {
1138
1138
  const t = e;
@@ -1152,13 +1152,13 @@ const li = {
1152
1152
  const n = this.node.key !== t.key;
1153
1153
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1154
1154
  const o = this.getField("METHOD");
1155
- if (o.getOptions(!1), n || !yt(this.node.id, this.method.key)) {
1156
- const a = Kt(this.node.id)?.[0]?.key ?? "";
1155
+ if (o.getOptions(!1), n || !St(this.node.id, this.method.key)) {
1156
+ const a = wt(this.node.id)?.[0]?.key ?? "";
1157
1157
  o.setValue(a), this.method.key === a && this.onMethodChange_(a);
1158
1158
  }
1159
1159
  },
1160
1160
  onMethodChange_: function(e) {
1161
- const t = yt(this.node.id, e);
1161
+ const t = St(this.node.id, e);
1162
1162
  t ? (this.method.key = t.key, this.method.name = t.name, this.method.inputs = t.inputs, this.method.outputs = t.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShape2_(), this.updateShadow_(), setTimeout(() => {
1163
1163
  this.ensureBlocks_();
1164
1164
  }, 0);
@@ -1211,7 +1211,7 @@ const li = {
1211
1211
  const { key: n, name: o } = this.method.outputs[t];
1212
1212
  e.push(["OUTPUT" + t, n, o, !0]);
1213
1213
  }
1214
- e.length > 0 && x(this, e);
1214
+ e.length > 0 && V(this, e);
1215
1215
  },
1216
1216
  checkWarning_: function() {
1217
1217
  const e = F(this.node.id);
@@ -1224,7 +1224,7 @@ const li = {
1224
1224
  return;
1225
1225
  }
1226
1226
  e.alias !== this.node.alias && (this.node.alias = e.alias);
1227
- const t = yt(this.node.id, this.method.key);
1227
+ const t = St(this.node.id, this.method.key);
1228
1228
  if (!t) {
1229
1229
  this.setWarningText(_.WARN_METHOD_NOT_FOUND);
1230
1230
  return;
@@ -1274,16 +1274,16 @@ const ui = {
1274
1274
  initData_: function() {
1275
1275
  if (this.element.key)
1276
1276
  return;
1277
- const e = Ne("method")?.[0];
1277
+ const e = Se("method")?.[0];
1278
1278
  if (!e)
1279
1279
  return;
1280
1280
  this.element.key = e.key, this.element.name = e.name;
1281
1281
  const t = this.getField("ELEMENT");
1282
1282
  t.getOptions(!1), t.setValue(this.element.key);
1283
- const n = Ht(this.element.key)?.[0];
1283
+ const n = $t(this.element.key)?.[0];
1284
1284
  if (!n)
1285
1285
  return;
1286
- this.method = Re(n);
1286
+ this.method = De(n);
1287
1287
  const o = this.getField("METHOD");
1288
1288
  o.getOptions(!1), o.setValue(this.method.key);
1289
1289
  },
@@ -1305,7 +1305,7 @@ const ui = {
1305
1305
  return ti(this.element.key);
1306
1306
  },
1307
1307
  onchange: function(e) {
1308
- if (e.type === L.STATE_CHANGE)
1308
+ if (e.type === S.STATE_CHANGE)
1309
1309
  this.checkWarning_();
1310
1310
  else if (e.type === E.BLOCK_CHANGE) {
1311
1311
  const t = e;
@@ -1317,7 +1317,7 @@ const ui = {
1317
1317
  }
1318
1318
  },
1319
1319
  onElementChange_: function(e) {
1320
- const t = ue(e);
1320
+ const t = le(e);
1321
1321
  if (!t) {
1322
1322
  console.assert(!1);
1323
1323
  return;
@@ -1325,13 +1325,13 @@ const ui = {
1325
1325
  const n = this.element.key !== t.key;
1326
1326
  this.element.key = t.key, this.element.name = t.name;
1327
1327
  const o = this.getField("METHOD");
1328
- if (o.getOptions(!1), n || !Lt(this.element.key, this.method.key)) {
1329
- const a = Ht(this.element.key)?.[0]?.key ?? "";
1328
+ if (o.getOptions(!1), n || !Bt(this.element.key, this.method.key)) {
1329
+ const a = $t(this.element.key)?.[0]?.key ?? "";
1330
1330
  o.setValue(a), this.method.key === a && this.onMethodChange_(a);
1331
1331
  }
1332
1332
  },
1333
1333
  onMethodChange_: function(e) {
1334
- const t = Lt(this.element.key, e);
1334
+ const t = Bt(this.element.key, e);
1335
1335
  t ? (this.method.key = t.key, this.method.name = t.name, this.method.inputs = t.inputs, this.method.outputs = t.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShape2_(), this.updateShadow_(), setTimeout(() => {
1336
1336
  this.ensureBlocks_();
1337
1337
  }, 0);
@@ -1381,16 +1381,16 @@ const ui = {
1381
1381
  const { key: n, name: o } = this.method.outputs[t];
1382
1382
  e.push(["OUTPUT" + t, n, o, !0]);
1383
1383
  }
1384
- e.length > 0 && x(this, e);
1384
+ e.length > 0 && V(this, e);
1385
1385
  },
1386
1386
  checkWarning_: function() {
1387
- const e = ue(this.element.key);
1387
+ const e = le(this.element.key);
1388
1388
  if (!e) {
1389
1389
  this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
1390
1390
  return;
1391
1391
  }
1392
1392
  this.element.name !== e.name && (this.element.name = e.name);
1393
- const t = Lt(this.element.key, this.method.key);
1393
+ const t = Bt(this.element.key, this.method.key);
1394
1394
  if (!t) {
1395
1395
  this.setWarningText(_.WARN_METHOD_NOT_FOUND);
1396
1396
  return;
@@ -1437,7 +1437,7 @@ const ri = {
1437
1437
  initData_: function() {
1438
1438
  if (this.method.id)
1439
1439
  return;
1440
- const e = en()?.[0];
1440
+ const e = zt()?.[0];
1441
1441
  if (!e)
1442
1442
  return;
1443
1443
  this.method.id = e.id, this.method.name = e.name, this.method.inputs = e.inputs;
@@ -1455,10 +1455,10 @@ const ri = {
1455
1455
  }, 0);
1456
1456
  },
1457
1457
  genMethodOpts_: function() {
1458
- return Mn();
1458
+ return Dn();
1459
1459
  },
1460
1460
  onchange: function(e) {
1461
- if (e.type === L.STATE_CHANGE)
1461
+ if (e.type === S.STATE_CHANGE)
1462
1462
  this.checkWarning_();
1463
1463
  else if (e.type === E.BLOCK_CHANGE) {
1464
1464
  const t = e;
@@ -1470,7 +1470,7 @@ const ri = {
1470
1470
  }
1471
1471
  },
1472
1472
  onMethodChange_: function(e) {
1473
- const t = qe(e);
1473
+ const t = Qe(e);
1474
1474
  t ? (this.method.id = t.id, this.method.name = t.name, this.method.inputs = t.inputs) : (this.method.id = "", this.method.name = "", this.method.inputs = []), this.updateShape_(), setTimeout(() => {
1475
1475
  this.rebuildBlocks();
1476
1476
  }, 0);
@@ -1491,10 +1491,10 @@ const ri = {
1491
1491
  const { id: n, name: o } = this.method.inputs[t];
1492
1492
  e.push(["INPUT" + t, `__param@${n}__`, o, !1]);
1493
1493
  }
1494
- x(this, e);
1494
+ V(this, e);
1495
1495
  },
1496
1496
  checkWarning_: function() {
1497
- const e = qe(this.method.id);
1497
+ const e = Qe(this.method.id);
1498
1498
  if (!e) {
1499
1499
  this.setWarningText(_.WARN_METHOD_NOT_FOUND);
1500
1500
  return;
@@ -1527,13 +1527,13 @@ const _i = {
1527
1527
  initData_: function() {
1528
1528
  if (this.method.id)
1529
1529
  return;
1530
- const e = en()?.[0];
1530
+ const e = zt()?.[0];
1531
1531
  if (!e)
1532
1532
  return;
1533
1533
  this.method.id = e.id, this.method.name = e.name;
1534
1534
  const t = this.getField("METHOD");
1535
1535
  t.getOptions(!1), t.setValue(this.method.id);
1536
- const n = Gt(this.method.id)?.[0];
1536
+ const n = Ht(this.method.id)?.[0];
1537
1537
  if (!n)
1538
1538
  return;
1539
1539
  this.output.id = n.id, this.output.name = n.name, this.output.type = n.type;
@@ -1551,13 +1551,13 @@ const _i = {
1551
1551
  }, 0);
1552
1552
  },
1553
1553
  genMethodOpts_: function() {
1554
- return Mn();
1554
+ return Dn();
1555
1555
  },
1556
1556
  genOutputOpts_: function() {
1557
1557
  return oi(this.method.id);
1558
1558
  },
1559
1559
  onchange: function(e) {
1560
- if (e.type === L.STATE_CHANGE)
1560
+ if (e.type === S.STATE_CHANGE)
1561
1561
  this.checkWarning_();
1562
1562
  else if (e.type === E.BLOCK_CHANGE) {
1563
1563
  const t = e;
@@ -1570,7 +1570,7 @@ const _i = {
1570
1570
  }, 0);
1571
1571
  },
1572
1572
  onMethodChange_: function(e) {
1573
- const t = qe(e);
1573
+ const t = Qe(e);
1574
1574
  if (!t) {
1575
1575
  console.assert(!1);
1576
1576
  return;
@@ -1578,13 +1578,13 @@ const _i = {
1578
1578
  const n = this.method.id !== t.id;
1579
1579
  this.method.id = t.id, this.method.name = t.name;
1580
1580
  const o = this.getField("OUTPUT");
1581
- if (o.getOptions(!1), n || !St(this.method.id, this.output.id)) {
1582
- const a = Gt(this.method.id)?.[0]?.id ?? "";
1581
+ if (o.getOptions(!1), n || !bt(this.method.id, this.output.id)) {
1582
+ const a = Ht(this.method.id)?.[0]?.id ?? "";
1583
1583
  o.setValue(a), this.output.id === a && this.onOutputChange_(a);
1584
1584
  }
1585
1585
  },
1586
1586
  onOutputChange_: function(e) {
1587
- const t = St(this.method.id, e);
1587
+ const t = bt(this.method.id, e);
1588
1588
  t ? (this.output.id = t.id, this.output.name = t.name, this.output.type = t.type) : (this.output.id = "", this.output.name = "", this.output.type = "string");
1589
1589
  },
1590
1590
  updateShape_: function() {
@@ -1602,13 +1602,13 @@ const _i = {
1602
1602
  this.getInput("VALUE").connection.setShadowDom(e);
1603
1603
  },
1604
1604
  checkWarning_: function() {
1605
- const e = qe(this.method.id);
1605
+ const e = Qe(this.method.id);
1606
1606
  if (!e) {
1607
1607
  this.setWarningText(_.WARN_METHOD_NOT_FOUND);
1608
1608
  return;
1609
1609
  }
1610
1610
  e.name !== this.method.name && (this.method.name = e.name);
1611
- const t = St(this.method.id, this.output.id);
1611
+ const t = bt(this.method.id, this.output.id);
1612
1612
  if (!t) {
1613
1613
  this.setWarningText(_.WARN_OUTPUT_NOT_FOUND);
1614
1614
  return;
@@ -1720,10 +1720,10 @@ const pi = {
1720
1720
  }, 0);
1721
1721
  },
1722
1722
  genNodeOpts_: function() {
1723
- return ye();
1723
+ return Ne();
1724
1724
  },
1725
1725
  onchange: function(e) {
1726
- if (e.type === L.STATE_CHANGE)
1726
+ if (e.type === S.STATE_CHANGE)
1727
1727
  this.checkWarning_();
1728
1728
  else if (e.type === E.BLOCK_CHANGE) {
1729
1729
  const t = e;
@@ -1760,49 +1760,49 @@ s.forBlock.get_app_node_v1 = function(e) {
1760
1760
  const t = e;
1761
1761
  return [s.quote_(t.node.id), c.ATOMIC];
1762
1762
  };
1763
- function Vn() {
1763
+ function Un() {
1764
1764
  return T.app.appList;
1765
1765
  }
1766
- function hn(e) {
1766
+ function pn(e) {
1767
1767
  return T.app.appList.find((t) => t.id === e);
1768
1768
  }
1769
1769
  function hi() {
1770
1770
  const e = [];
1771
- return Vn().forEach(({ id: n, name: o }) => {
1771
+ return Un().forEach(({ id: n, name: o }) => {
1772
1772
  e.push([o, n]);
1773
1773
  }), N(e);
1774
1774
  }
1775
- function Wt(e) {
1775
+ function Gt(e) {
1776
1776
  const t = T.app.appList.find((n) => n.id === e);
1777
1777
  return t ? t.pages : [];
1778
1778
  }
1779
- function Bt(e, t) {
1779
+ function Pt(e, t) {
1780
1780
  const n = T.app.appList.find((o) => o.id === e);
1781
1781
  if (n)
1782
1782
  return n.pages.find((o) => o.id === t);
1783
1783
  }
1784
1784
  function di(e) {
1785
1785
  const t = [];
1786
- return Wt(e).forEach(({ id: o, name: i }) => {
1786
+ return Gt(e).forEach(({ id: o, name: i }) => {
1787
1787
  t.push([i, o]);
1788
1788
  }), N(t);
1789
1789
  }
1790
- const xn = {
1790
+ const Vn = {
1791
1791
  id: "",
1792
1792
  groupid: "",
1793
1793
  name: "",
1794
1794
  position: 0
1795
1795
  };
1796
- function Fn() {
1796
+ function xn() {
1797
1797
  const { comps: e } = T.app.activeApp;
1798
- return [xn, ...e];
1798
+ return [Vn, ...e];
1799
1799
  }
1800
- function dn(e) {
1801
- return e === "" ? xn : T.app.activeApp.comps.find((t) => t.id === e);
1800
+ function hn(e) {
1801
+ return e === "" ? Vn : T.app.activeApp.comps.find((t) => t.id === e);
1802
1802
  }
1803
1803
  function fi() {
1804
1804
  const { i18n: e } = X, t = [];
1805
- return Fn().forEach(({ id: o, name: i }) => {
1805
+ return xn().forEach(({ id: o, name: i }) => {
1806
1806
  let a = i;
1807
1807
  o === "" && (a = e.global.t("x-runtime-lib.notSet")), t.push([a, o]);
1808
1808
  }), N(t);
@@ -1820,13 +1820,13 @@ const mi = {
1820
1820
  initData_: function() {
1821
1821
  if (this.app.id)
1822
1822
  return;
1823
- const e = Vn()?.[0];
1823
+ const e = Un()?.[0];
1824
1824
  if (!e)
1825
1825
  return;
1826
1826
  this.app.id = e.id, this.app.name = e.name;
1827
1827
  const t = this.getField("APP");
1828
1828
  t.getOptions(!1), t.setValue(this.app.id);
1829
- const n = Wt(this.app.id)?.[0];
1829
+ const n = Gt(this.app.id)?.[0];
1830
1830
  if (!n)
1831
1831
  return;
1832
1832
  this.page.id = n.id, this.page.name = n.name;
@@ -1851,7 +1851,7 @@ const mi = {
1851
1851
  return di(this.app.id);
1852
1852
  },
1853
1853
  onchange: function(e) {
1854
- if (e.type === L.STATE_CHANGE)
1854
+ if (e.type === S.STATE_CHANGE)
1855
1855
  this.checkWarning_();
1856
1856
  else if (e.type === E.BLOCK_CHANGE) {
1857
1857
  const t = e;
@@ -1863,7 +1863,7 @@ const mi = {
1863
1863
  }
1864
1864
  },
1865
1865
  onAppChange_: function(e) {
1866
- const t = hn(e);
1866
+ const t = pn(e);
1867
1867
  if (!t) {
1868
1868
  console.assert(!1);
1869
1869
  return;
@@ -1871,23 +1871,23 @@ const mi = {
1871
1871
  const n = this.app.id !== t.id;
1872
1872
  this.app.id = t.id, this.app.name = t.name;
1873
1873
  const o = this.getField("PAGE");
1874
- if (o.getOptions(!1), n || !Bt(this.app.id, this.page.id)) {
1875
- const a = Wt(this.app.id)?.[0]?.id ?? "";
1874
+ if (o.getOptions(!1), n || !Pt(this.app.id, this.page.id)) {
1875
+ const a = Gt(this.app.id)?.[0]?.id ?? "";
1876
1876
  o.setValue(a), this.page.id === a && this.onPageChange_(a);
1877
1877
  }
1878
1878
  },
1879
1879
  onPageChange_: function(e) {
1880
- const t = Bt(this.app.id, e);
1880
+ const t = Pt(this.app.id, e);
1881
1881
  t ? (this.page.id = t.id, this.page.name = t.name) : (this.page.id = "", this.page.name = "");
1882
1882
  },
1883
1883
  checkWarning_: function() {
1884
- const e = hn(this.app.id);
1884
+ const e = pn(this.app.id);
1885
1885
  if (!e) {
1886
1886
  this.setWarningText(_.WARN_APP_NOT_FOUND);
1887
1887
  return;
1888
1888
  }
1889
1889
  e.name !== this.app.name && (this.app.name = e.name);
1890
- const t = Bt(this.app.id, this.page.id);
1890
+ const t = Pt(this.app.id, this.page.id);
1891
1891
  if (!t) {
1892
1892
  this.setWarningText(_.WARN_PAGE_NOT_FOUND);
1893
1893
  return;
@@ -1911,7 +1911,7 @@ const Ti = {
1911
1911
  initData_: function() {
1912
1912
  if (this.comp.id !== void 0)
1913
1913
  return;
1914
- const e = Fn()?.[0];
1914
+ const e = xn()?.[0];
1915
1915
  if (!e)
1916
1916
  return;
1917
1917
  this.comp.id = e.id, this.comp.name = e.name;
@@ -1932,7 +1932,7 @@ const Ti = {
1932
1932
  return fi();
1933
1933
  },
1934
1934
  onchange: function(e) {
1935
- if (e.type === L.STATE_CHANGE)
1935
+ if (e.type === S.STATE_CHANGE)
1936
1936
  this.checkWarning_();
1937
1937
  else if (e.type === E.BLOCK_CHANGE) {
1938
1938
  const t = e;
@@ -1944,7 +1944,7 @@ const Ti = {
1944
1944
  }
1945
1945
  },
1946
1946
  onCompChange_: function(e) {
1947
- const t = dn(e);
1947
+ const t = hn(e);
1948
1948
  if (!t) {
1949
1949
  console.assert(!1);
1950
1950
  return;
@@ -1956,7 +1956,7 @@ const Ti = {
1956
1956
  this.setWarningText(_.WARN_COMP_NOT_FOUND);
1957
1957
  return;
1958
1958
  }
1959
- if (!dn(this.comp.id)) {
1959
+ if (!hn(this.comp.id)) {
1960
1960
  this.setWarningText(_.WARN_COMP_NOT_FOUND);
1961
1961
  return;
1962
1962
  }
@@ -1988,7 +1988,7 @@ const Ei = {
1988
1988
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1989
1989
  const t = this.getField("NODE");
1990
1990
  t.getOptions(!1), t.setValue(this.node.id);
1991
- const n = Ce(this.node.id)?.[0];
1991
+ const n = ve(this.node.id)?.[0];
1992
1992
  if (!n)
1993
1993
  return;
1994
1994
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2007,13 +2007,13 @@ const Ei = {
2007
2007
  }, 0);
2008
2008
  },
2009
2009
  genNodeOpts_: function() {
2010
- return ye();
2010
+ return Ne();
2011
2011
  },
2012
2012
  genPropOpts_: function() {
2013
- return zt(this.node.id);
2013
+ return qt(this.node.id);
2014
2014
  },
2015
2015
  onchange: function(e) {
2016
- if (e.type === L.STATE_CHANGE)
2016
+ if (e.type === S.STATE_CHANGE)
2017
2017
  this.checkWarning_();
2018
2018
  else if (e.type === E.BLOCK_CHANGE) {
2019
2019
  const t = e;
@@ -2033,13 +2033,13 @@ const Ei = {
2033
2033
  const n = this.node.key !== t.key;
2034
2034
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2035
2035
  const o = this.getField("PROP");
2036
- if (o.getOptions(!1), n || !ie(this.node.id, this.prop.keys)) {
2037
- const a = Ce(this.node.id)?.[0]?.keys ?? "";
2036
+ if (o.getOptions(!1), n || !he(this.node.id, this.prop.keys)) {
2037
+ const a = ve(this.node.id)?.[0]?.keys ?? "";
2038
2038
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
2039
2039
  }
2040
2040
  },
2041
2041
  onPropChange_: function(e) {
2042
- const t = ie(this.node.id, e);
2042
+ const t = he(this.node.id, e);
2043
2043
  t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []);
2044
2044
  },
2045
2045
  checkWarning_: function() {
@@ -2053,7 +2053,7 @@ const Ei = {
2053
2053
  return;
2054
2054
  }
2055
2055
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2056
- const t = ie(this.node.id, this.prop.keys);
2056
+ const t = he(this.node.id, this.prop.keys);
2057
2057
  if (!t) {
2058
2058
  this.setWarningText(_.WARN_PROP_NOT_FOUND);
2059
2059
  return;
@@ -2079,16 +2079,16 @@ const gi = {
2079
2079
  initData_: function() {
2080
2080
  if (this.element.key)
2081
2081
  return;
2082
- const e = Ne()?.[0];
2082
+ const e = Se()?.[0];
2083
2083
  if (!e)
2084
2084
  return;
2085
2085
  this.element.key = e.key, this.element.name = e.name;
2086
2086
  const t = this.getField("ELEMENT");
2087
2087
  t.getOptions(!1), t.setValue(this.element.key);
2088
- const n = ve(this.element.key)?.[0];
2088
+ const n = ye(this.element.key)?.[0];
2089
2089
  if (!n)
2090
2090
  return;
2091
- this.prop.keys = n.keys, this.prop.names = Re(n.names);
2091
+ this.prop.keys = n.keys, this.prop.names = De(n.names);
2092
2092
  const o = this.getField("PROP");
2093
2093
  o.getOptions(!1), o.setValue(this.prop.keys);
2094
2094
  },
@@ -2107,10 +2107,10 @@ const gi = {
2107
2107
  return fe();
2108
2108
  },
2109
2109
  genPropOpts_: function() {
2110
- return Zt(this.element.key);
2110
+ return Qt(this.element.key);
2111
2111
  },
2112
2112
  onchange: function(e) {
2113
- if (e.type === L.STATE_CHANGE)
2113
+ if (e.type === S.STATE_CHANGE)
2114
2114
  this.checkWarning_();
2115
2115
  else if (e.type === E.BLOCK_CHANGE) {
2116
2116
  const t = e;
@@ -2122,7 +2122,7 @@ const gi = {
2122
2122
  }
2123
2123
  },
2124
2124
  onElementChange_: function(e) {
2125
- const t = ue(e);
2125
+ const t = le(e);
2126
2126
  if (!t) {
2127
2127
  console.assert(!1);
2128
2128
  return;
@@ -2130,23 +2130,23 @@ const gi = {
2130
2130
  const n = this.element.key !== t.key;
2131
2131
  this.element.key = t.key, this.element.name = t.name;
2132
2132
  const o = this.getField("PROP");
2133
- if (o.getOptions(!1), n || !se(this.element.key, this.prop.keys)) {
2134
- const a = ve(this.element.key)?.[0]?.keys ?? "";
2133
+ if (o.getOptions(!1), n || !de(this.element.key, this.prop.keys)) {
2134
+ const a = ye(this.element.key)?.[0]?.keys ?? "";
2135
2135
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
2136
2136
  }
2137
2137
  },
2138
2138
  onPropChange_: function(e) {
2139
- const t = se(this.element.key, e);
2139
+ const t = de(this.element.key, e);
2140
2140
  t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []);
2141
2141
  },
2142
2142
  checkWarning_: function() {
2143
- const e = ue(this.element.key);
2143
+ const e = le(this.element.key);
2144
2144
  if (!e) {
2145
2145
  this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
2146
2146
  return;
2147
2147
  }
2148
2148
  this.element.name !== e.name && (this.element.name = e.name);
2149
- const t = se(this.element.key, this.prop.keys);
2149
+ const t = de(this.element.key, this.prop.keys);
2150
2150
  if (!t) {
2151
2151
  this.setWarningText(_.WARN_PROP_NOT_FOUND);
2152
2152
  return;
@@ -2182,7 +2182,7 @@ const Ai = {
2182
2182
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2183
2183
  const t = this.getField("NODE");
2184
2184
  t.getOptions(!1), t.setValue(this.node.id);
2185
- const n = Ce(this.node.id, !0)?.[0];
2185
+ const n = ve(this.node.id, !0)?.[0];
2186
2186
  if (!n)
2187
2187
  return;
2188
2188
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2199,10 +2199,10 @@ const Ai = {
2199
2199
  this.node.id = e.node?.id ?? "", this.node.key = e.node?.key ?? "", this.node.alias = e.node?.alias ?? "", this.prop.keys = e.prop?.keys ?? "", this.prop.names = e.prop?.names ?? [];
2200
2200
  },
2201
2201
  genNodeOpts_: function() {
2202
- return ye();
2202
+ return Ne();
2203
2203
  },
2204
2204
  genPropOpts_: function() {
2205
- return zt(this.node.id);
2205
+ return qt(this.node.id);
2206
2206
  }
2207
2207
  };
2208
2208
  d.prop_bind_v1 = Ai;
@@ -2227,13 +2227,13 @@ const Ii = {
2227
2227
  initData_: function() {
2228
2228
  if (this.element.key)
2229
2229
  return;
2230
- const e = Ne()?.[0];
2230
+ const e = Se()?.[0];
2231
2231
  if (!e)
2232
2232
  return;
2233
2233
  this.element.key = e.key, this.element.name = e.name;
2234
2234
  const t = this.getField("ELEMENT");
2235
2235
  t.getOptions(!1), t.setValue(this.element.key);
2236
- const n = ve(this.element.key, !0)?.[0];
2236
+ const n = ye(this.element.key, !0)?.[0];
2237
2237
  if (!n)
2238
2238
  return;
2239
2239
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2254,7 +2254,7 @@ const Ii = {
2254
2254
  return fe();
2255
2255
  },
2256
2256
  genPropOpts_: function() {
2257
- return Zt(this.element.key);
2257
+ return Qt(this.element.key);
2258
2258
  }
2259
2259
  };
2260
2260
  d.prop_bind_as_v1 = Ii;
@@ -2272,7 +2272,7 @@ const Oi = {
2272
2272
  }, this.prop = {
2273
2273
  keys: "",
2274
2274
  names: []
2275
- }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_PROP_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_PROP_HELPURL}"), this.initData_(), this.isInFlyout && (this.ensureBlocks_(), this.updateCheck_());
2275
+ }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_PROP_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_PROP_HELPURL}"), this.initData_(), this.updateShadow_();
2276
2276
  },
2277
2277
  initData_: function() {
2278
2278
  if (this.node.id)
@@ -2283,7 +2283,7 @@ const Oi = {
2283
2283
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2284
2284
  const t = this.getField("NODE");
2285
2285
  t.getOptions(!1), t.setValue(this.node.id);
2286
- const n = Ce(this.node.id, !0)?.[0];
2286
+ const n = ve(this.node.id, !0)?.[0];
2287
2287
  if (!n)
2288
2288
  return;
2289
2289
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2297,18 +2297,18 @@ const Oi = {
2297
2297
  };
2298
2298
  },
2299
2299
  loadExtraState: function(e) {
2300
- this.node.id = e.node?.id ?? "", this.node.key = e.node?.key ?? "", this.node.alias = e.node?.alias ?? "", this.prop.keys = e.prop?.keys ?? "", this.prop.names = e.prop?.names ?? [], this.updateCheck_(), setTimeout(() => {
2300
+ this.node.id = e.node?.id ?? "", this.node.key = e.node?.key ?? "", this.node.alias = e.node?.alias ?? "", this.prop.keys = e.prop?.keys ?? "", this.prop.names = e.prop?.names ?? [], setTimeout(() => {
2301
2301
  this.checkWarning_();
2302
2302
  }, 0);
2303
2303
  },
2304
2304
  genNodeOpts_: function() {
2305
- return ye();
2305
+ return Ne();
2306
2306
  },
2307
2307
  genPropOpts_: function() {
2308
- return zt(this.node.id);
2308
+ return qt(this.node.id);
2309
2309
  },
2310
2310
  onchange: function(e) {
2311
- if (e.type === L.STATE_CHANGE)
2311
+ if (e.type === S.STATE_CHANGE)
2312
2312
  this.checkWarning_();
2313
2313
  else if (e.type === E.BLOCK_CHANGE) {
2314
2314
  const t = e;
@@ -2328,32 +2328,26 @@ const Oi = {
2328
2328
  const n = this.node.key !== t.key;
2329
2329
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2330
2330
  const o = this.getField("PROP");
2331
- if (o.getOptions(!1), n || !ie(this.node.id, this.prop.keys)) {
2332
- const a = Ce(this.node.id)?.[0]?.keys ?? "";
2331
+ if (o.getOptions(!1), n || !he(this.node.id, this.prop.keys)) {
2332
+ const a = ve(this.node.id)?.[0]?.keys ?? "";
2333
2333
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
2334
2334
  }
2335
2335
  },
2336
2336
  onPropChange_: function(e) {
2337
- const t = ie(this.node.id, e);
2338
- t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []), this.ensureBlocks_(), this.updateCheck_();
2337
+ const t = he(this.node.id, e);
2338
+ t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []), this.updateShadow_();
2339
2339
  },
2340
- ensureBlocks_: function() {
2340
+ updateShadow_: function() {
2341
2341
  if (this.isInsertionMarker())
2342
2342
  return;
2343
- const e = ie(this.node.id, this.prop.keys);
2343
+ const e = he(this.node.id, this.prop.keys);
2344
2344
  if (!e)
2345
2345
  return;
2346
- const t = this.getInput("VALUE"), n = t.connection.targetBlock();
2347
- n && n.dispose(), t.setCheck(null);
2348
- const o = Pn(this.workspace, e.raw);
2349
- o && t.connection.connect(o.outputConnection);
2350
- },
2351
- updateCheck_: function() {
2352
- const e = ie(this.node.id, this.prop.keys);
2353
- if (!e)
2354
- return;
2355
- const t = Rn(e.raw);
2356
- this.getInput("VALUE").setCheck(t);
2346
+ this.getInput("VALUE").setShadowDom(null);
2347
+ const t = this.getInput("VALUE").connection.targetBlock();
2348
+ t && t.dispose();
2349
+ const n = bn(e.raw), o = Rn(e.raw);
2350
+ this.getInput("VALUE").setCheck(n).setShadowDom(o);
2357
2351
  },
2358
2352
  checkWarning_: function() {
2359
2353
  const e = F(this.node.id);
@@ -2366,7 +2360,7 @@ const Oi = {
2366
2360
  return;
2367
2361
  }
2368
2362
  e.alias !== this.node.alias && (this.node.alias = e.alias);
2369
- const t = ie(this.node.id, this.prop.keys);
2363
+ const t = he(this.node.id, this.prop.keys);
2370
2364
  if (!t) {
2371
2365
  this.setWarningText(_.WARN_PROP_NOT_FOUND);
2372
2366
  return;
@@ -2388,18 +2382,18 @@ const Ci = {
2388
2382
  }, this.prop = {
2389
2383
  keys: "",
2390
2384
  names: []
2391
- }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_APP_V1_SET_PROP_AS_TITLE}"), this.appendValueInput("VALUE").appendField(new f(() => this.genElementOpts_()), "ELEMENT").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setInputsInline(!0), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_PROP_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_PROP_AS_HELPURL}"), this.initData_(), this.isInFlyout && (this.ensureBlocks_(), this.updateCheck_());
2385
+ }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_APP_V1_SET_PROP_AS_TITLE}"), this.appendValueInput("VALUE").appendField(new f(() => this.genElementOpts_()), "ELEMENT").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setInputsInline(!0), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_PROP_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_PROP_AS_HELPURL}"), this.initData_(), this.updateShadow_();
2392
2386
  },
2393
2387
  initData_: function() {
2394
2388
  if (this.element.key)
2395
2389
  return;
2396
- const e = Ne()?.[0];
2390
+ const e = Se()?.[0];
2397
2391
  if (!e)
2398
2392
  return;
2399
2393
  this.element.key = e.key, this.element.name = e.name;
2400
2394
  const t = this.getField("ELEMENT");
2401
2395
  t.getOptions(!1), t.setValue(this.element.key);
2402
- const n = ve(this.element.key, !0)?.[0];
2396
+ const n = ye(this.element.key, !0)?.[0];
2403
2397
  if (!n)
2404
2398
  return;
2405
2399
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2413,7 +2407,7 @@ const Ci = {
2413
2407
  };
2414
2408
  },
2415
2409
  loadExtraState: function(e) {
2416
- this.element.key = e.element?.key ?? "", this.element.name = e.element?.name ?? "", this.prop.keys = e.prop?.keys ?? "", this.prop.names = e.prop?.names ?? [], this.updateCheck_(), setTimeout(() => {
2410
+ this.element.key = e.element?.key ?? "", this.element.name = e.element?.name ?? "", this.prop.keys = e.prop?.keys ?? "", this.prop.names = e.prop?.names ?? [], setTimeout(() => {
2417
2411
  this.checkWarning_();
2418
2412
  }, 0);
2419
2413
  },
@@ -2421,10 +2415,10 @@ const Ci = {
2421
2415
  return fe();
2422
2416
  },
2423
2417
  genPropOpts_: function() {
2424
- return Zt(this.element.key);
2418
+ return Qt(this.element.key);
2425
2419
  },
2426
2420
  onchange: function(e) {
2427
- if (e.type === L.STATE_CHANGE)
2421
+ if (e.type === S.STATE_CHANGE)
2428
2422
  this.checkWarning_();
2429
2423
  else if (e.type === E.BLOCK_CHANGE) {
2430
2424
  const t = e;
@@ -2436,7 +2430,7 @@ const Ci = {
2436
2430
  }
2437
2431
  },
2438
2432
  onElementChange_: function(e) {
2439
- const t = ue(e);
2433
+ const t = le(e);
2440
2434
  if (!t) {
2441
2435
  console.assert(!1);
2442
2436
  return;
@@ -2444,35 +2438,29 @@ const Ci = {
2444
2438
  const n = this.element.key !== t.key;
2445
2439
  this.element.key = t.key, this.element.name = t.name;
2446
2440
  const o = this.getField("PROP");
2447
- if (o.getOptions(!1), n || !se(this.element.key, this.prop.keys)) {
2448
- const a = ve(this.element.key)?.[0]?.keys ?? "";
2441
+ if (o.getOptions(!1), n || !de(this.element.key, this.prop.keys)) {
2442
+ const a = ye(this.element.key)?.[0]?.keys ?? "";
2449
2443
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
2450
2444
  }
2451
2445
  },
2452
2446
  onPropChange_: function(e) {
2453
- const t = se(this.element.key, e);
2454
- t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []), this.ensureBlocks_(), this.updateCheck_();
2447
+ const t = de(this.element.key, e);
2448
+ t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []), this.updateShadow_();
2455
2449
  },
2456
- ensureBlocks_: function() {
2450
+ updateShadow_: function() {
2457
2451
  if (this.isInsertionMarker())
2458
2452
  return;
2459
- const e = se(this.element.key, this.prop.keys);
2453
+ const e = de(this.element.key, this.prop.keys);
2460
2454
  if (!e)
2461
2455
  return;
2462
- const t = this.getInput("VALUE"), n = t.connection.targetBlock();
2463
- n && n.dispose(), t.setCheck(null);
2464
- const o = Pn(this.workspace, e.raw);
2465
- o && t.connection.connect(o.outputConnection);
2466
- },
2467
- updateCheck_: function() {
2468
- const e = se(this.element.key, this.prop.keys);
2469
- if (!e)
2470
- return;
2471
- const t = Rn(e.raw);
2472
- this.getInput("VALUE").connection.setCheck(t);
2456
+ this.getInput("VALUE").setShadowDom(null);
2457
+ const t = this.getInput("VALUE").connection.targetBlock();
2458
+ t && t.dispose();
2459
+ const n = bn(e.raw), o = Rn(e.raw);
2460
+ this.getInput("VALUE").setCheck(n).setShadowDom(o);
2473
2461
  },
2474
2462
  checkWarning_: function() {
2475
- const e = ue(this.element.key);
2463
+ const e = le(this.element.key);
2476
2464
  if (!e) {
2477
2465
  this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
2478
2466
  return;
@@ -2482,7 +2470,7 @@ const Ci = {
2482
2470
  return;
2483
2471
  }
2484
2472
  e.name !== this.element.name && (this.element.name = e.name);
2485
- const t = se(this.element.key, this.prop.keys);
2473
+ const t = de(this.element.key, this.prop.keys);
2486
2474
  if (!t) {
2487
2475
  this.setWarningText(_.WARN_PROP_NOT_FOUND);
2488
2476
  return;
@@ -2508,7 +2496,7 @@ d.get_app_state_v1 = vi;
2508
2496
  s.forBlock.get_app_state_v1 = function() {
2509
2497
  return ["__getStateV1__()", c.ATOMIC];
2510
2498
  };
2511
- const ki = {
2499
+ const yi = {
2512
2500
  init: function() {
2513
2501
  this.state = {
2514
2502
  id: "",
@@ -2521,7 +2509,7 @@ const ki = {
2521
2509
  return [];
2522
2510
  }
2523
2511
  };
2524
- d.set_app_state_v1 = ki;
2512
+ d.set_app_state_v1 = yi;
2525
2513
  s.forBlock.set_app_state_v1 = function() {
2526
2514
  return `__setStateV1__();
2527
2515
  `;
@@ -3229,7 +3217,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
3229
3217
  `
3230
3218
  )}(${t}, ${n}, ${o})`, c.FUNCTION_CALL];
3231
3219
  };
3232
- const yi = k.xml, Ni = [
3220
+ const ki = y.xml, Ni = [
3233
3221
  {
3234
3222
  type: "add_data_v1",
3235
3223
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
@@ -3295,16 +3283,16 @@ const yi = k.xml, Ni = [
3295
3283
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
3296
3284
  }
3297
3285
  ];
3298
- function Li(e, t) {
3286
+ function Si(e, t) {
3299
3287
  const n = Ni.find((o) => o.type === e);
3300
3288
  return n ? !!(n.prefixInputs?.some((o) => t.startsWith(o)) || n.inputs?.some((o) => o === t)) : !1;
3301
3289
  }
3302
- const Si = {
3290
+ const Li = {
3303
3291
  init: function() {
3304
3292
  this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
3305
3293
  },
3306
3294
  mutationToDom: function() {
3307
- const e = yi.createElement("mutation");
3295
+ const e = ki.createElement("mutation");
3308
3296
  return e.setAttribute("key", this.key), e.setAttribute("name", this.name), e.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), e;
3309
3297
  },
3310
3298
  domToMutation: function(e) {
@@ -3333,12 +3321,12 @@ const Si = {
3333
3321
  },
3334
3322
  tryDuplicate_: function(e) {
3335
3323
  const t = this.workspace.getBlockById(e.oldParentId);
3336
- if (t && Li(t.type, e.oldInputName))
3324
+ if (t && Si(t.type, e.oldInputName))
3337
3325
  try {
3338
3326
  E.disable();
3339
3327
  const n = t.getInput(e.oldInputName)?.connection;
3340
3328
  if (n) {
3341
- const o = Qt(
3329
+ const o = Jt(
3342
3330
  this.workspace,
3343
3331
  this.key,
3344
3332
  this.name,
@@ -3354,7 +3342,7 @@ const Si = {
3354
3342
  this.locale ? this.setFieldValue(_[this.name], "LABEL") : this.setFieldValue(this.name, "LABEL");
3355
3343
  }
3356
3344
  };
3357
- d.parameter_v1 = Si;
3345
+ d.parameter_v1 = Li;
3358
3346
  s.forBlock.parameter_v1 = function(e) {
3359
3347
  return [e.key, c.ATOMIC];
3360
3348
  };
@@ -3373,10 +3361,10 @@ function Ke(e) {
3373
3361
  e === "func" && n.funcs.length > 0 && t.push(n), e === "flow" && n.flows.length > 0 && t.push(n);
3374
3362
  }), t;
3375
3363
  }
3376
- function Qe(e) {
3364
+ function ze(e) {
3377
3365
  return T.compute.spaces.find((t) => t.id === e);
3378
3366
  }
3379
- function Yn(e) {
3367
+ function Fn(e) {
3380
3368
  const t = [];
3381
3369
  return Ke(e).forEach(({ id: o, name: i }) => {
3382
3370
  t.push([i, o]);
@@ -3391,16 +3379,16 @@ function Oe(e, t) {
3391
3379
  if (n)
3392
3380
  return n.funcs.find((o) => o.id === t);
3393
3381
  }
3394
- function wn(e) {
3382
+ function Yn(e) {
3395
3383
  const t = [];
3396
3384
  return xe(e).forEach(({ id: o, name: i }) => {
3397
3385
  t.push([i, o]);
3398
3386
  }), N(t);
3399
3387
  }
3400
- function jt() {
3388
+ function Wt() {
3401
3389
  return T.compute.activeFunc;
3402
3390
  }
3403
- function fn(e) {
3391
+ function dn(e) {
3404
3392
  const { outputs: t } = T.compute.activeFunc;
3405
3393
  return t.find((n) => n.id === e);
3406
3394
  }
@@ -3450,13 +3438,13 @@ const Pi = {
3450
3438
  }, 0);
3451
3439
  },
3452
3440
  genSpaceOpts_: function() {
3453
- return Yn("func");
3441
+ return Fn("func");
3454
3442
  },
3455
3443
  genFuncOpts_: function() {
3456
- return wn(this.space.id);
3444
+ return Yn(this.space.id);
3457
3445
  },
3458
3446
  onchange: function(e) {
3459
- if (e.type === L.STATE_CHANGE)
3447
+ if (e.type === S.STATE_CHANGE)
3460
3448
  this.checkWarning_();
3461
3449
  else if (e.type === E.BLOCK_CHANGE) {
3462
3450
  const t = e;
@@ -3468,7 +3456,7 @@ const Pi = {
3468
3456
  }
3469
3457
  },
3470
3458
  onSpaceChange_: function(e) {
3471
- const t = Qe(e);
3459
+ const t = ze(e);
3472
3460
  if (!t) {
3473
3461
  console.assert(!1);
3474
3462
  return;
@@ -3531,10 +3519,10 @@ const Pi = {
3531
3519
  const { id: n, name: o } = this.func.outputs[t];
3532
3520
  e.push(["OUTPUT" + t, `__output_${n}__`, o, !1]);
3533
3521
  }
3534
- x(this, e);
3522
+ V(this, e);
3535
3523
  },
3536
3524
  checkWarning_: function() {
3537
- const e = Qe(this.space.id);
3525
+ const e = ze(this.space.id);
3538
3526
  if (!e) {
3539
3527
  this.setWarningText(_.WARN_SPACE_NOT_FOUND);
3540
3528
  return;
@@ -3561,19 +3549,19 @@ s.forBlock.call_func_v1 = function(e) {
3561
3549
  const t = s.INDENT, n = s.quote_, o = e, i = n(o.space.id), a = n(o.func.id);
3562
3550
  let l = "";
3563
3551
  l += `${t}var __inputs__ = {
3564
- `, o.func.inputs.forEach(({ id: O }, m) => {
3552
+ `, o.func.inputs.forEach(({ id: I }, m) => {
3565
3553
  const C = s.valueToCode(
3566
3554
  o,
3567
3555
  "INPUT" + m,
3568
3556
  c.ATOMIC
3569
3557
  );
3570
- l += `${t}${t}${n(O)}: ${C},
3558
+ l += `${t}${t}${n(I)}: ${C},
3571
3559
  `;
3572
3560
  }), l += `${t}};`;
3573
3561
  const u = n(o.space.name + "/" + o.func.name);
3574
3562
  let r = "";
3575
- o.func.outputs.forEach(({ id: O }) => {
3576
- r += `${t}var __output_${O}__ = __result__[${n(O)}];
3563
+ o.func.outputs.forEach(({ id: I }) => {
3564
+ r += `${t}var __output_${I}__ = __result__[${n(I)}];
3577
3565
  `;
3578
3566
  });
3579
3567
  const p = s.statementToCode(o, "CALLBACK");
@@ -3623,13 +3611,13 @@ const Ri = {
3623
3611
  }, 0);
3624
3612
  },
3625
3613
  genSpaceOpts_: function() {
3626
- return Yn("func");
3614
+ return Fn("func");
3627
3615
  },
3628
3616
  genFuncOpts_: function() {
3629
- return wn(this.space.id);
3617
+ return Yn(this.space.id);
3630
3618
  },
3631
3619
  onchange: function(e) {
3632
- if (e.type === L.STATE_CHANGE)
3620
+ if (e.type === S.STATE_CHANGE)
3633
3621
  this.checkWarning_();
3634
3622
  else if (e.type === E.BLOCK_CHANGE) {
3635
3623
  const t = e;
@@ -3641,7 +3629,7 @@ const Ri = {
3641
3629
  }
3642
3630
  },
3643
3631
  onSpaceChange_: function(e) {
3644
- const t = Qe(e);
3632
+ const t = ze(e);
3645
3633
  if (!t) {
3646
3634
  console.assert(!1);
3647
3635
  return;
@@ -3704,10 +3692,10 @@ const Ri = {
3704
3692
  const { id: n, name: o } = this.func.outputs[t];
3705
3693
  e.push(["OUTPUT" + t, `__output_${n}__`, o, !1]);
3706
3694
  }
3707
- x(this, e);
3695
+ V(this, e);
3708
3696
  },
3709
3697
  checkWarning_: function() {
3710
- const e = Qe(this.space.id);
3698
+ const e = ze(this.space.id);
3711
3699
  if (!e) {
3712
3700
  this.setWarningText(_.WARN_SPACE_NOT_FOUND);
3713
3701
  return;
@@ -3734,19 +3722,19 @@ s.forBlock.call_func_internal_v1 = function(e) {
3734
3722
  const t = s.INDENT, n = s.quote_, o = e, i = n(o.space.id), a = n(o.func.id);
3735
3723
  let l = `${t}var __inputs__ = {
3736
3724
  `;
3737
- o.func.inputs.forEach(({ id: O }, m) => {
3725
+ o.func.inputs.forEach(({ id: I }, m) => {
3738
3726
  const C = s.valueToCode(
3739
3727
  o,
3740
3728
  "INPUT" + m,
3741
3729
  c.ATOMIC
3742
3730
  );
3743
- l += `${t}${t}${n(O)}: ${C},
3731
+ l += `${t}${t}${n(I)}: ${C},
3744
3732
  `;
3745
3733
  }), l += `${t}};`;
3746
3734
  const u = o.space.name + "/" + o.func.name;
3747
3735
  let r = "";
3748
- o.func.outputs.forEach(({ id: O }) => {
3749
- r += `${t}var __output_${O}__ = __result__.outputs[${n(O)}];
3736
+ o.func.outputs.forEach(({ id: I }) => {
3737
+ r += `${t}var __output_${I}__ = __result__.outputs[${n(I)}];
3750
3738
  `;
3751
3739
  });
3752
3740
  const p = s.statementToCode(o, "CALLBACK");
@@ -3769,7 +3757,7 @@ const Di = {
3769
3757
  initData_: function() {
3770
3758
  if (this.func.id)
3771
3759
  return;
3772
- const { id: e, inputs: t } = jt();
3760
+ const { id: e, inputs: t } = Wt();
3773
3761
  this.func.id = e, this.func.inputs = t;
3774
3762
  },
3775
3763
  saveExtraState: function() {
@@ -3803,10 +3791,10 @@ const Di = {
3803
3791
  const { id: n, name: o } = this.func.inputs[t];
3804
3792
  e.push(["INPUT" + t, `__input_${n}__`, o, !1]);
3805
3793
  }
3806
- x(this, e);
3794
+ V(this, e);
3807
3795
  },
3808
3796
  checkWarning_: function() {
3809
- const { id: e, inputs: t } = jt();
3797
+ const { id: e, inputs: t } = Wt();
3810
3798
  if (this.func.id !== e && (this.func.id = e), !P(t, this.func.inputs)) {
3811
3799
  this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3812
3800
  return;
@@ -3835,7 +3823,7 @@ const Mi = {
3835
3823
  initData_: function() {
3836
3824
  if (this.output.id)
3837
3825
  return;
3838
- const e = jt().outputs?.[0];
3826
+ const e = Wt().outputs?.[0];
3839
3827
  e && (this.output.id = e.id, this.output.name = e.name, this.output.type = e.type);
3840
3828
  },
3841
3829
  saveExtraState: function() {
@@ -3852,7 +3840,7 @@ const Mi = {
3852
3840
  return bi();
3853
3841
  },
3854
3842
  onchange: function(e) {
3855
- if (e.type === L.STATE_CHANGE)
3843
+ if (e.type === S.STATE_CHANGE)
3856
3844
  this.checkWarning_();
3857
3845
  else if (e.type === E.BLOCK_CHANGE) {
3858
3846
  const t = e;
@@ -3864,7 +3852,7 @@ const Mi = {
3864
3852
  }
3865
3853
  },
3866
3854
  onOutputChange_: function(e) {
3867
- const t = fn(e);
3855
+ const t = dn(e);
3868
3856
  if (!t) {
3869
3857
  console.assert(!1);
3870
3858
  return;
@@ -3886,7 +3874,7 @@ const Mi = {
3886
3874
  this.getInput("VALUE").setShadowDom(e);
3887
3875
  },
3888
3876
  checkWarning_: function() {
3889
- const e = fn(this.output.id);
3877
+ const e = dn(this.output.id);
3890
3878
  if (!e) {
3891
3879
  this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3892
3880
  return;
@@ -3976,11 +3964,11 @@ function q() {
3976
3964
  t.tables.length > 0 && e.push(t);
3977
3965
  }), e;
3978
3966
  }
3979
- function re(e) {
3967
+ function ue(e) {
3980
3968
  const { spaces: t } = T.data;
3981
3969
  return t.find((n) => n.id === e);
3982
3970
  }
3983
- function dt() {
3971
+ function ft() {
3984
3972
  const e = [];
3985
3973
  return q().forEach(({ id: n, name: o }) => {
3986
3974
  e.push([o, n]);
@@ -3995,20 +3983,20 @@ function J(e, t) {
3995
3983
  if (o)
3996
3984
  return o.tables.find((i) => i.id === t);
3997
3985
  }
3998
- function ft(e) {
3986
+ function mt(e) {
3999
3987
  const t = [];
4000
3988
  return H(e).forEach(({ id: o, name: i }) => {
4001
3989
  t.push([i, o]);
4002
3990
  }), N(t);
4003
3991
  }
4004
- function ze(e, t) {
3992
+ function Ze(e, t) {
4005
3993
  const { spaces: n } = T.data, o = n.find((a) => a.id === e);
4006
3994
  if (!o)
4007
3995
  return [];
4008
3996
  const i = o.tables.find((a) => a.id === t);
4009
3997
  return i ? i.columns : [];
4010
3998
  }
4011
- function bt(e, t, n) {
3999
+ function Rt(e, t, n) {
4012
4000
  const { spaces: o } = T.data, i = o.find((l) => l.id === e);
4013
4001
  if (!i)
4014
4002
  return;
@@ -4018,7 +4006,7 @@ function bt(e, t, n) {
4018
4006
  }
4019
4007
  function Ui(e, t) {
4020
4008
  const n = [];
4021
- return ze(e, t).forEach(({ id: i, name: a }) => {
4009
+ return Ze(e, t).forEach(({ id: i, name: a }) => {
4022
4010
  n.push([a, i]);
4023
4011
  }), N(n);
4024
4012
  }
@@ -4096,7 +4084,7 @@ const Fi = {
4096
4084
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
4097
4085
  },
4098
4086
  ensureBlocks_: function() {
4099
- this.isInsertionMarker() || (Vi(this), x(this, [
4087
+ this.isInsertionMarker() || (Vi(this), V(this, [
4100
4088
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4101
4089
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
4102
4090
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -4157,7 +4145,7 @@ const Yi = {
4157
4145
  if (!t)
4158
4146
  return;
4159
4147
  this.table.id = t.id, this.table.name = t.name;
4160
- const n = ze(this.space.id, this.table.id)?.[0];
4148
+ const n = Ze(this.space.id, this.table.id)?.[0];
4161
4149
  n && (this.column.id = n.id, this.column.name = n.name, this.column.type = n.type, this.column.extend = n.extend);
4162
4150
  },
4163
4151
  saveExtraState: function() {
@@ -4173,16 +4161,16 @@ const Yi = {
4173
4161
  }, 0);
4174
4162
  },
4175
4163
  genSpaceOpts_: function() {
4176
- return dt();
4164
+ return ft();
4177
4165
  },
4178
4166
  genTableOpts_: function() {
4179
- return ft(this.space.id);
4167
+ return mt(this.space.id);
4180
4168
  },
4181
4169
  genColumnOpts_: function() {
4182
4170
  return Ui(this.space.id, this.table.id);
4183
4171
  },
4184
4172
  onchange: function(e) {
4185
- if (e.type === L.STATE_CHANGE)
4173
+ if (e.type === S.STATE_CHANGE)
4186
4174
  this.checkWarning_();
4187
4175
  else if (e.type === E.BLOCK_CHANGE) {
4188
4176
  const t = e;
@@ -4192,7 +4180,7 @@ const Yi = {
4192
4180
  }
4193
4181
  },
4194
4182
  onSpaceChange_: function(e) {
4195
- const t = re(e);
4183
+ const t = ue(e);
4196
4184
  if (!t) {
4197
4185
  console.assert(!1);
4198
4186
  return;
@@ -4210,13 +4198,13 @@ const Yi = {
4210
4198
  return;
4211
4199
  }
4212
4200
  const n = t.id !== this.table.id;
4213
- if (this.table.id = t.id, this.table.name = t.name, n || !bt(this.space.id, this.table.id, this.column.id)) {
4214
- const o = ze(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4201
+ if (this.table.id = t.id, this.table.name = t.name, n || !Rt(this.space.id, this.table.id, this.column.id)) {
4202
+ const o = Ze(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4215
4203
  i.getOptions(!1), i.setValue(o, !1), this.onColumnChange_(o);
4216
4204
  }
4217
4205
  },
4218
4206
  onColumnChange_: function(e) {
4219
- const t = bt(this.space.id, this.table.id, e);
4207
+ const t = Rt(this.space.id, this.table.id, e);
4220
4208
  t ? (this.column.id = t.id, this.column.name = t.name, this.column.type = t.type, this.column.extend = t.extend) : (this.column.id = "", this.column.name = "", this.column.type = "", this.column.extend = ""), this.updateShape_(), this.updateBlocks_(!0), this.updateCheck_();
4221
4209
  },
4222
4210
  updateShape_: function() {
@@ -4235,15 +4223,15 @@ const Yi = {
4235
4223
  n && n.dispose();
4236
4224
  else if (n)
4237
4225
  return;
4238
- const o = xt(this.workspace, this.column.type);
4226
+ const o = Ft(this.workspace, this.column.type);
4239
4227
  o && (t.setCheck(null), t.connect(o.outputConnection));
4240
4228
  },
4241
4229
  updateCheck_: function() {
4242
- const e = Dn(this.column.type);
4230
+ const e = Pn(this.column.type);
4243
4231
  this.getInput("VALUE").connection.setCheck(e);
4244
4232
  },
4245
4233
  checkWarning_: function() {
4246
- const e = re(this.space.id);
4234
+ const e = ue(this.space.id);
4247
4235
  if (!e) {
4248
4236
  this.setWarningText(_.WARN_SPACE_NOT_FOUND);
4249
4237
  return;
@@ -4255,7 +4243,7 @@ const Yi = {
4255
4243
  return;
4256
4244
  }
4257
4245
  t.name !== this.table.name && (this.table.name = t.name);
4258
- const n = bt(
4246
+ const n = Rt(
4259
4247
  this.space.id,
4260
4248
  this.table.id,
4261
4249
  this.column.id
@@ -4402,7 +4390,7 @@ function Gi(e) {
4402
4390
  const t = e.getInput("CONDITION").connection;
4403
4391
  if (t.targetBlock())
4404
4392
  return;
4405
- const n = q()?.[0], o = H(n?.id ?? "")?.[0], i = ze(n?.id, o?.id)?.[0], a = {
4393
+ const n = q()?.[0], o = H(n?.id ?? "")?.[0], i = Ze(n?.id, o?.id)?.[0], a = {
4406
4394
  type: "cond_atomic_v1",
4407
4395
  extraState: {
4408
4396
  space: {
@@ -4463,7 +4451,7 @@ const ji = {
4463
4451
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "HANDLE")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4464
4452
  },
4465
4453
  ensureBlocks_: function() {
4466
- this.isInsertionMarker() || (Hi(this), Gi(this), x(this, [
4454
+ this.isInsertionMarker() || (Hi(this), Gi(this), V(this, [
4467
4455
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4468
4456
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0]
4469
4457
  ]), Wi(this));
@@ -4641,7 +4629,7 @@ const zi = {
4641
4629
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("EXTRA_DATA") || (this.appendValueInput("EXTRA_DATA"), this.moveInputBefore("EXTRA_DATA", "HANDLE")), this.getInput("MAIN_DATA") || (this.appendValueInput("MAIN_DATA"), this.moveInputBefore("MAIN_DATA", "EXTRA_DATA")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "MAIN_DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
4642
4630
  },
4643
4631
  ensureBlocks_: function() {
4644
- this.isInsertionMarker() || (Xi(this), Ji(this), qi(this), x(this, [
4632
+ this.isInsertionMarker() || (Xi(this), Ji(this), qi(this), V(this, [
4645
4633
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
4646
4634
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
4647
4635
  ["MAIN_DATA", "__mainData__", "PARAM_MAIN_DATA", !0],
@@ -4779,10 +4767,10 @@ const ts = {
4779
4767
  }, 0);
4780
4768
  },
4781
4769
  genSpaceOpts_: function() {
4782
- return dt();
4770
+ return ft();
4783
4771
  },
4784
4772
  genTableOpts_: function() {
4785
- return ft(this.space.id);
4773
+ return mt(this.space.id);
4786
4774
  },
4787
4775
  genColumnOpts_: function() {
4788
4776
  const e = [];
@@ -4791,7 +4779,7 @@ const ts = {
4791
4779
  }), N(e);
4792
4780
  },
4793
4781
  onchange: function(e) {
4794
- if (e.type === L.STATE_CHANGE)
4782
+ if (e.type === S.STATE_CHANGE)
4795
4783
  this.checkWarning_();
4796
4784
  else if (e.type === E.BLOCK_CHANGE) {
4797
4785
  const t = e;
@@ -4813,7 +4801,7 @@ const ts = {
4813
4801
  }
4814
4802
  },
4815
4803
  onSpaceChange_: function(e) {
4816
- const t = re(e);
4804
+ const t = ue(e);
4817
4805
  if (!t) {
4818
4806
  console.assert(!1);
4819
4807
  return;
@@ -4894,7 +4882,7 @@ const ts = {
4894
4882
  initShape_: function() {
4895
4883
  if (!this.isInFlyout && !this.getInput("ADD0"))
4896
4884
  for (let e = 0; e < this.table.columns.length; e++) {
4897
- const t = this.table.columns[e], n = new f(() => this.genColumnOpts_()), o = new le("");
4885
+ const t = this.table.columns[e], n = new f(() => this.genColumnOpts_()), o = new ce("");
4898
4886
  this.appendDummyInput("ADD" + e).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + e).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + e), n.setValue(t.id, !1), o.setValue(t.name, !1);
4899
4887
  }
4900
4888
  },
@@ -4904,14 +4892,14 @@ const ts = {
4904
4892
  for (let e = 0; e < this.itemCount_; e++) {
4905
4893
  if (this.getInput("ADD" + e))
4906
4894
  continue;
4907
- const t = new f(() => this.genColumnOpts_()), n = new le("");
4895
+ const t = new f(() => this.genColumnOpts_()), n = new ce("");
4908
4896
  this.appendDummyInput("ADD" + e).setAlign(v.Align.RIGHT).appendField(t, "COLUMN" + e).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + e);
4909
4897
  const o = this.table.columns[0];
4910
4898
  t.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
4911
4899
  }
4912
4900
  },
4913
4901
  checkWarning_: function() {
4914
- const e = re(this.space.id);
4902
+ const e = ue(this.space.id);
4915
4903
  if (!e) {
4916
4904
  this.setWarningText(_.WARN_SPACE_NOT_FOUND);
4917
4905
  return;
@@ -4933,8 +4921,8 @@ d.select_column_v1 = ts;
4933
4921
  s.forBlock.select_column_v1 = function(e) {
4934
4922
  const t = s.quote_, n = e, o = n.space.id, i = n.table.id, a = [];
4935
4923
  for (let r = 0; r < n.itemCount_; r++) {
4936
- const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((m) => m.id === p).name, O = n.getFieldValue("ALIAS" + r);
4937
- a.push({ name: A, alias: O });
4924
+ const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((m) => m.id === p).name, I = n.getFieldValue("ALIAS" + r);
4925
+ a.push({ name: A, alias: I });
4938
4926
  }
4939
4927
  let l = "[";
4940
4928
  return a.forEach(({ name: r, alias: p }, A) => {
@@ -4977,13 +4965,13 @@ const ns = {
4977
4965
  this.space.id = e.space?.id ?? "", this.space.name = e.space?.name ?? "", this.table.id = e.table?.id ?? "", this.table.name = e.table?.name ?? "", this.checkWarning_();
4978
4966
  },
4979
4967
  genSpaceOpts_: function() {
4980
- return dt();
4968
+ return ft();
4981
4969
  },
4982
4970
  genTableOpts_: function() {
4983
- return ft(this.space.id);
4971
+ return mt(this.space.id);
4984
4972
  },
4985
4973
  onchange: function(e) {
4986
- if (e.type === L.STATE_CHANGE)
4974
+ if (e.type === S.STATE_CHANGE)
4987
4975
  this.checkWarning_();
4988
4976
  else if (e.type === E.BLOCK_CHANGE) {
4989
4977
  const t = e;
@@ -4995,7 +4983,7 @@ const ns = {
4995
4983
  }
4996
4984
  },
4997
4985
  onSpaceChange_: function(e) {
4998
- const t = re(e);
4986
+ const t = ue(e);
4999
4987
  if (!t) {
5000
4988
  console.assert(!1);
5001
4989
  return;
@@ -5015,7 +5003,7 @@ const ns = {
5015
5003
  this.table.id = t.id, this.table.name = t.name;
5016
5004
  },
5017
5005
  checkWarning_: function() {
5018
- const e = re(this.space.id);
5006
+ const e = ue(this.space.id);
5019
5007
  if (!e) {
5020
5008
  this.setWarningText(_.WARN_SPACE_NOT_FOUND);
5021
5009
  return;
@@ -5050,7 +5038,7 @@ const os = {
5050
5038
  this.getInput("FINALLY") || this.appendStatementInput("FINALLY").appendField("%{BKY_DATA_FINALLY}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "FINALLY")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("HANDLE") || (this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.moveInputBefore("HANDLE", "SUCCESS"));
5051
5039
  },
5052
5040
  ensureBlocks_: function() {
5053
- this.isInsertionMarker() || x(this, [
5041
+ this.isInsertionMarker() || V(this, [
5054
5042
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
5055
5043
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0]
5056
5044
  ]);
@@ -5058,7 +5046,7 @@ const os = {
5058
5046
  };
5059
5047
  d.transaction_v1 = os;
5060
5048
  s.forBlock.transaction_v1 = function(e) {
5061
- const t = s.INDENT, n = e, o = Fo(n), i = s.statementToCode(n, "HANDLE"), a = s.statementToCode(n, "FINALLY");
5049
+ const t = s.INDENT, n = e, o = xo(n), i = s.statementToCode(n, "HANDLE"), a = s.statementToCode(n, "FINALLY");
5062
5050
  return `{
5063
5051
  ${t}var __error${o}__ = '';
5064
5052
  ${t}var __txExist${o}__ = typeof(__tx__) !== 'undefined';
@@ -5157,10 +5145,10 @@ const as = {
5157
5145
  }, 0);
5158
5146
  },
5159
5147
  genSpaceOpts_: function() {
5160
- return dt();
5148
+ return ft();
5161
5149
  },
5162
5150
  genTableOpts_: function() {
5163
- return ft(this.space.id);
5151
+ return mt(this.space.id);
5164
5152
  },
5165
5153
  genColumnOpts_: function() {
5166
5154
  const e = [];
@@ -5169,7 +5157,7 @@ const as = {
5169
5157
  }), N(e);
5170
5158
  },
5171
5159
  onchange: function(e) {
5172
- if (e.type === L.STATE_CHANGE)
5160
+ if (e.type === S.STATE_CHANGE)
5173
5161
  this.checkWarning_();
5174
5162
  else if (e.type === E.BLOCK_CHANGE) {
5175
5163
  const t = e;
@@ -5191,7 +5179,7 @@ const as = {
5191
5179
  }
5192
5180
  },
5193
5181
  onSpaceChange_: function(e) {
5194
- const t = re(e);
5182
+ const t = ue(e);
5195
5183
  if (!t) {
5196
5184
  console.assert(!1);
5197
5185
  return;
@@ -5225,7 +5213,7 @@ const as = {
5225
5213
  }
5226
5214
  const o = this.getInput("ADD" + e).connection, i = o.targetBlock();
5227
5215
  i && i.dispose();
5228
- const a = xt(this.workspace, n.type);
5216
+ const a = Ft(this.workspace, n.type);
5229
5217
  a && (o.setCheck(null), o.connect(a.outputConnection)), this.updateCheck_();
5230
5218
  },
5231
5219
  decompose: function(e) {
@@ -5310,7 +5298,7 @@ const as = {
5310
5298
  if (!l)
5311
5299
  continue;
5312
5300
  n.setCheck(null);
5313
- const u = xt(this.workspace, l.type);
5301
+ const u = Ft(this.workspace, l.type);
5314
5302
  u && o.connect(u.outputConnection);
5315
5303
  }
5316
5304
  },
@@ -5319,12 +5307,12 @@ const as = {
5319
5307
  const t = this.getFieldValue("COLUMN" + e), n = this.table.columns.find((i) => i.id === t);
5320
5308
  if (!n)
5321
5309
  continue;
5322
- const o = Dn(n.type);
5310
+ const o = Pn(n.type);
5323
5311
  this.getInput("ADD" + e).setCheck(o);
5324
5312
  }
5325
5313
  },
5326
5314
  checkWarning_: function() {
5327
- const e = re(this.space.id);
5315
+ const e = ue(this.space.id);
5328
5316
  if (!e) {
5329
5317
  this.setWarningText(_.WARN_SPACE_NOT_FOUND);
5330
5318
  return;
@@ -5346,8 +5334,8 @@ d.update_column_v1 = as;
5346
5334
  s.forBlock.update_column_v1 = function(e) {
5347
5335
  const t = s.quote_, n = e, o = n.space.id, i = n.table.id, a = [];
5348
5336
  for (let r = 0; r < n.itemCount_; r++) {
5349
- const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((m) => m.id === p).name, O = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
5350
- a.push({ name: A, value: O });
5337
+ const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((m) => m.id === p).name, I = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
5338
+ a.push({ name: A, value: I });
5351
5339
  }
5352
5340
  let l = "[";
5353
5341
  return a.forEach(({ name: r, value: p }, A) => {
@@ -5437,7 +5425,7 @@ const rs = {
5437
5425
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
5438
5426
  },
5439
5427
  ensureBlocks: function() {
5440
- this.isInsertionMarker() || (cs(this), ls(this), x(this, [
5428
+ this.isInsertionMarker() || (cs(this), ls(this), V(this, [
5441
5429
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
5442
5430
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
5443
5431
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -5461,7 +5449,7 @@ ${t}}
5461
5449
  ${i}}
5462
5450
  `;
5463
5451
  };
5464
- const _s = k.xml, ps = {
5452
+ const _s = y.xml, ps = {
5465
5453
  init: function() {
5466
5454
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5467
5455
  new Z(Ie, 20, 20, void 0, () => {
@@ -5474,7 +5462,7 @@ const _s = k.xml, ps = {
5474
5462
  return e.setAttribute("items", String(this.length)), e;
5475
5463
  },
5476
5464
  domToMutation: function(e) {
5477
- this.length = De(e.getAttribute("items") ?? "", 0), this.initShape_();
5465
+ this.length = Me(e.getAttribute("items") ?? "", 0), this.initShape_();
5478
5466
  },
5479
5467
  initData: function(e) {
5480
5468
  this.length = e, this.initShape_();
@@ -5486,8 +5474,8 @@ const _s = k.xml, ps = {
5486
5474
  new Z(Ie, 20, 20, void 0, () => {
5487
5475
  this.isInFlyout || this.addEntry_(n);
5488
5476
  })
5489
- ), n.appendField(new rn(String(e))), n.appendField(
5490
- new Z(Xe, 20, 20, void 0, () => {
5477
+ ), n.appendField(new ln(String(e))), n.appendField(
5478
+ new Z(je, 20, 20, void 0, () => {
5491
5479
  this.isInFlyout || this.removeEntry_(n);
5492
5480
  })
5493
5481
  ), this.moveInputBefore(t, "ADD");
@@ -5495,7 +5483,7 @@ const _s = k.xml, ps = {
5495
5483
  },
5496
5484
  addEntry_: function(e) {
5497
5485
  let t = this.length;
5498
- e && (t = De(e.name.substring(5)));
5486
+ e && (t = Me(e.name.substring(5)));
5499
5487
  for (let o = this.length - 1; o >= t; o--) {
5500
5488
  const i = this.getInput("ENTRY" + o);
5501
5489
  i.name = "ENTRY" + (o + 1), i.fieldRow[1].setValue(o + 1);
@@ -5505,8 +5493,8 @@ const _s = k.xml, ps = {
5505
5493
  new Z(Ie, 20, 20, void 0, () => {
5506
5494
  this.isInFlyout || this.addEntry_(n);
5507
5495
  })
5508
- ), n.appendField(new rn(String(t))), n.appendField(
5509
- new Z(Xe, 20, 20, void 0, () => {
5496
+ ), n.appendField(new ln(String(t))), n.appendField(
5497
+ new Z(je, 20, 20, void 0, () => {
5510
5498
  this.isInFlyout || this.removeEntry_(n);
5511
5499
  })
5512
5500
  ), t === this.length ? this.moveInputBefore("ENTRY" + t, "ADD") : this.moveInputBefore("ENTRY" + t, "ENTRY" + (t + 1)), this.length++;
@@ -5514,7 +5502,7 @@ const _s = k.xml, ps = {
5514
5502
  removeEntry_: function(e) {
5515
5503
  const t = e.name, n = this.getInputTargetBlock(t);
5516
5504
  n && n.dispose(), this.removeInput(t);
5517
- const o = De(t.substring(5));
5505
+ const o = Me(t.substring(5));
5518
5506
  for (let i = o + 1; i < this.length; i++) {
5519
5507
  const a = this.getInput("ENTRY" + i);
5520
5508
  a.name = "ENTRY" + (i - 1), a.fieldRow[1].setValue(i - 1);
@@ -5526,7 +5514,7 @@ d.json_array_v1 = ps;
5526
5514
  const hs = {
5527
5515
  init: function() {
5528
5516
  this.appendDummyInput().appendField(
5529
- new Cn([
5517
+ new On([
5530
5518
  ["false", "false"],
5531
5519
  ["true", "true"]
5532
5520
  ]),
@@ -5535,7 +5523,7 @@ const hs = {
5535
5523
  }
5536
5524
  };
5537
5525
  d.json_boolean_v1 = hs;
5538
- const mn = k.xml, ds = {
5526
+ const fn = y.xml, ds = {
5539
5527
  init: function() {
5540
5528
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5541
5529
  new Z(Ie, 20, 20, void 0, () => {
@@ -5544,9 +5532,9 @@ const mn = k.xml, ds = {
5544
5532
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
5545
5533
  },
5546
5534
  mutationToDom: function() {
5547
- const e = mn.createElement("mutation");
5535
+ const e = fn.createElement("mutation");
5548
5536
  for (let t = 0; t < this.length; t++) {
5549
- const n = mn.createElement("item");
5537
+ const n = fn.createElement("item");
5550
5538
  n.setAttribute("key", this.getFieldValue("KEY" + t)), e.appendChild(n);
5551
5539
  }
5552
5540
  return e;
@@ -5569,8 +5557,8 @@ const mn = k.xml, ds = {
5569
5557
  new Z(Ie, 20, 20, void 0, () => {
5570
5558
  this.isInFlyout || this.addEntry_(i);
5571
5559
  })
5572
- ), i.appendField(new le(n), "KEY" + t), i.appendField(
5573
- new Z(Xe, 20, 20, void 0, () => {
5560
+ ), i.appendField(new ce(n), "KEY" + t), i.appendField(
5561
+ new Z(je, 20, 20, void 0, () => {
5574
5562
  this.isInFlyout || this.removeEntry_(i);
5575
5563
  })
5576
5564
  ), this.moveInputBefore(o, "ADD");
@@ -5578,7 +5566,7 @@ const mn = k.xml, ds = {
5578
5566
  },
5579
5567
  addEntry_: function(e) {
5580
5568
  let t = this.length;
5581
- e && (t = De(e.name.substring(5)));
5569
+ e && (t = Me(e.name.substring(5)));
5582
5570
  for (let o = this.length - 1; o >= t; o--)
5583
5571
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
5584
5572
  const n = this.appendValueInput("ENTRY" + t);
@@ -5586,8 +5574,8 @@ const mn = k.xml, ds = {
5586
5574
  new Z(Ie, 20, 20, void 0, () => {
5587
5575
  this.isInFlyout || this.addEntry_(n);
5588
5576
  })
5589
- ), n.appendField(new le("key"), "KEY" + t), n.appendField(
5590
- new Z(Xe, 20, 20, void 0, () => {
5577
+ ), n.appendField(new ce("key"), "KEY" + t), n.appendField(
5578
+ new Z(je, 20, 20, void 0, () => {
5591
5579
  this.isInFlyout || this.removeEntry_(n);
5592
5580
  })
5593
5581
  ), t === this.length ? this.moveInputBefore("ENTRY" + t, "ADD") : this.moveInputBefore("ENTRY" + t, "ENTRY" + (t + 1)), this.length++;
@@ -5595,7 +5583,7 @@ const mn = k.xml, ds = {
5595
5583
  removeEntry_: function(e) {
5596
5584
  const t = e.name, n = this.getInputTargetBlock(t);
5597
5585
  n && n.dispose(), this.removeInput(t);
5598
- const o = De(t.substring(5));
5586
+ const o = Me(t.substring(5));
5599
5587
  for (let i = o + 1; i < this.length; i++)
5600
5588
  this.getField("KEY" + i).name = "KEY" + (i - 1), this.getInput("ENTRY" + i).name = "ENTRY" + (i - 1);
5601
5589
  this.length--;
@@ -5604,7 +5592,7 @@ const mn = k.xml, ds = {
5604
5592
  d.json_map_v1 = ds;
5605
5593
  const fs = {
5606
5594
  init: function() {
5607
- this.appendDummyInput().appendField(new Mt(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5595
+ this.appendDummyInput().appendField(new Vt(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5608
5596
  }
5609
5597
  };
5610
5598
  d.json_number_v1 = fs;
@@ -5616,11 +5604,11 @@ const ms = {
5616
5604
  d.json_root_v1 = ms;
5617
5605
  const Ts = {
5618
5606
  init: function() {
5619
- this.appendDummyInput().appendField('"').appendField(new le(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
5607
+ this.appendDummyInput().appendField('"').appendField(new ce(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
5620
5608
  }
5621
5609
  };
5622
5610
  d.json_string_v1 = Ts;
5623
- const Es = k.xml, gs = {
5611
+ const Es = y.xml, gs = {
5624
5612
  init: function() {
5625
5613
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
5626
5614
  }
@@ -6046,7 +6034,7 @@ const vs = {
6046
6034
  mutationToDom: function() {
6047
6035
  if (this.elseIfCount_ <= 0 && !this.hasElse_)
6048
6036
  return null;
6049
- const e = k.xml.createElement("mutation");
6037
+ const e = y.xml.createElement("mutation");
6050
6038
  return this.elseIfCount_ > 0 && e.setAttribute("elseIf", String(this.elseIfCount_)), this.hasElse_ && e.setAttribute("else", "TRUE"), e;
6051
6039
  },
6052
6040
  domToMutation: function(e) {
@@ -6313,7 +6301,7 @@ s.forBlock.logic_operation_v1 = function(e) {
6313
6301
  }
6314
6302
  return [`${o} ${t} ${i}`, n];
6315
6303
  };
6316
- const ks = {
6304
+ const ys = {
6317
6305
  prevParentConnection_: null,
6318
6306
  onchange: function(e) {
6319
6307
  const t = this.getInputTargetBlock("THEN"), n = this.getInputTargetBlock("ELSE"), o = this.outputConnection.targetConnection;
@@ -6328,7 +6316,7 @@ const ks = {
6328
6316
  this.prevParentConnection_ = o;
6329
6317
  }
6330
6318
  };
6331
- B.registerMixin("logic_ternary_v1", ks);
6319
+ B.registerMixin("logic_ternary_v1", ys);
6332
6320
  h([
6333
6321
  {
6334
6322
  type: "logic_ternary_v1",
@@ -6365,7 +6353,7 @@ s.forBlock.logic_ternary_v1 = function(e) {
6365
6353
  const t = s.valueToCode(e, "IF", c.CONDITIONAL) || "false", n = s.valueToCode(e, "THEN", c.CONDITIONAL) || "null", o = s.valueToCode(e, "ELSE", c.CONDITIONAL) || "null";
6366
6354
  return [t + " ? " + n + " : " + o, c.CONDITIONAL];
6367
6355
  };
6368
- const ys = {
6356
+ const ks = {
6369
6357
  customContextMenu: function(e) {
6370
6358
  if (this.isInFlyout)
6371
6359
  return;
@@ -6387,7 +6375,7 @@ const ys = {
6387
6375
  };
6388
6376
  B.registerMixin(
6389
6377
  "contextMenu_newGetVariableBlock_v1",
6390
- ys
6378
+ ks
6391
6379
  );
6392
6380
  B.register(
6393
6381
  "flow_control_tooltip_v1",
@@ -6401,7 +6389,7 @@ const Ns = /* @__PURE__ */ new Set([
6401
6389
  "for_each_v1",
6402
6390
  "for_v1",
6403
6391
  "while_until_v1"
6404
- ]), Ls = {
6392
+ ]), Ss = {
6405
6393
  getSurroundLoop: function() {
6406
6394
  let e = this;
6407
6395
  do {
@@ -6428,7 +6416,7 @@ const Ns = /* @__PURE__ */ new Set([
6428
6416
  };
6429
6417
  B.registerMixin(
6430
6418
  "flow_control_in_loop_check_v1",
6431
- Ls
6419
+ Ss
6432
6420
  );
6433
6421
  h([
6434
6422
  {
@@ -6535,7 +6523,7 @@ s.forBlock.for_v1 = function(e) {
6535
6523
  s.statementToCode(e, "DO"),
6536
6524
  e
6537
6525
  );
6538
- if (k.string.isNumber(o) && k.string.isNumber(i) && k.string.isNumber(a)) {
6526
+ if (y.string.isNumber(o) && y.string.isNumber(i) && y.string.isNumber(a)) {
6539
6527
  const u = Math.abs(Number(a));
6540
6528
  return Number(o) <= Number(i) ? `for (${n} = ${o}; ${n} <= ${i}; ${n} += ${u}) {
6541
6529
  ${l}}
@@ -6544,13 +6532,13 @@ ${l}}
6544
6532
  `;
6545
6533
  } else {
6546
6534
  let u = "", r = o;
6547
- !o.match(/^\w+$/) && !k.string.isNumber(o) && (r = s.nameDB_.getDistinctName(
6535
+ !o.match(/^\w+$/) && !y.string.isNumber(o) && (r = s.nameDB_.getDistinctName(
6548
6536
  `${n}_from`,
6549
6537
  ne.NameType.VARIABLE
6550
6538
  ), u += `var ${r} = ${o};
6551
6539
  `);
6552
6540
  let p = i;
6553
- !i.match(/^\w+$/) && !k.string.isNumber(i) && (p = s.nameDB_.getDistinctName(
6541
+ !i.match(/^\w+$/) && !y.string.isNumber(i) && (p = s.nameDB_.getDistinctName(
6554
6542
  `${n}_to`,
6555
6543
  ne.NameType.VARIABLE
6556
6544
  ), u += `var ${p} = ${i};
@@ -6559,7 +6547,7 @@ ${l}}
6559
6547
  `${n}_by`,
6560
6548
  ne.NameType.VARIABLE
6561
6549
  );
6562
- return u += `var ${A} = `, k.string.isNumber(a) ? u += `${Math.abs(Number(a))};
6550
+ return u += `var ${A} = `, y.string.isNumber(a) ? u += `${Math.abs(Number(a))};
6563
6551
  ` : u += `Math.abs(${a});
6564
6552
  `, u += `if (${r} > ${p}) {
6565
6553
  ${t}${A} = -${A};
@@ -6666,7 +6654,7 @@ s.forBlock.repeat_v1 = function(e) {
6666
6654
  ne.NameType.VARIABLE
6667
6655
  );
6668
6656
  let a = t;
6669
- return !t.match(/^\w+$/) && !k.string.isNumber(t) && (a = s.nameDB_.getDistinctName(
6657
+ return !t.match(/^\w+$/) && !y.string.isNumber(t) && (a = s.nameDB_.getDistinctName(
6670
6658
  "repeat_end",
6671
6659
  ne.NameType.VARIABLE
6672
6660
  ), o += `var ${a} = ${t};
@@ -6730,7 +6718,7 @@ s.forBlock.while_until_v1 = function(e) {
6730
6718
  ${o}}
6731
6719
  `;
6732
6720
  };
6733
- const Ss = {
6721
+ const Ls = {
6734
6722
  // math_arithmetic
6735
6723
  ADD: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_ADD}",
6736
6724
  SUBTRACT: "%{BKY_MATH_V1_ARITHMETIC_TOOLTIP_SUBTRACT}",
@@ -6764,7 +6752,7 @@ const Ss = {
6764
6752
  };
6765
6753
  B.register(
6766
6754
  "math_op_tooltip_v1",
6767
- B.buildTooltipForDropdown("OP", Ss)
6755
+ B.buildTooltipForDropdown("OP", Ls)
6768
6756
  );
6769
6757
  h([
6770
6758
  {
@@ -7367,7 +7355,7 @@ s.forBlock.math_trig_v1 = function(e) {
7367
7355
  }
7368
7356
  return [o, c.DIVISION];
7369
7357
  };
7370
- const Bs = k.xml, bs = {
7358
+ const Bs = y.xml, bs = {
7371
7359
  init: function() {
7372
7360
  this.appendDummyInput().appendField(
7373
7361
  "%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"
@@ -7450,7 +7438,7 @@ const Rs = {
7450
7438
  },
7451
7439
  updateShape_: function() {
7452
7440
  for (let e = 0; e < this.itemCount_; e++)
7453
- this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setAlign(v.Align.RIGHT).appendField(new le("key"), "KEY" + e);
7441
+ this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setAlign(v.Align.RIGHT).appendField(new ce("key"), "KEY" + e);
7454
7442
  for (let e = this.itemCount_; this.getInput("ADD" + e); e++)
7455
7443
  this.removeInput("ADD" + e);
7456
7444
  }
@@ -7697,15 +7685,15 @@ h([
7697
7685
  s.forBlock.object_to_json_v1 = function(e) {
7698
7686
  return [`__jsonStringifyV1__(${s.valueToCode(e, "OBJECT", c.NONE) || "null"})`, c.FUNCTION_CALL];
7699
7687
  };
7700
- const Tn = k.xml, Ds = {
7688
+ const mn = y.xml, Ds = {
7701
7689
  init: function() {
7702
- this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new To(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7690
+ this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new mo(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7703
7691
  }
7704
7692
  };
7705
7693
  d.procedure_def_container_v1 = Ds;
7706
7694
  const Ms = {
7707
7695
  init: function() {
7708
- const e = new le(Ut.DEFAULT_ARG);
7696
+ const e = new ce(xt.DEFAULT_ARG);
7709
7697
  e.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(e, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7710
7698
  },
7711
7699
  validator_: function(e) {
@@ -7729,10 +7717,10 @@ d.procedure_def_item_v1 = Ms;
7729
7717
  const Us = {
7730
7718
  init: function() {
7731
7719
  this.withReturn = !1, this.args = [];
7732
- const e = new le(
7733
- Ut.findLegalName("", this)
7720
+ const e = new ce(
7721
+ xt.findLegalName("", this)
7734
7722
  );
7735
- e.setValidator(Ut.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7723
+ e.setValidator(xt.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7736
7724
  new me.MutatorIcon(
7737
7725
  ["procedure_def_item_v1"],
7738
7726
  this
@@ -7740,9 +7728,9 @@ const Us = {
7740
7728
  ), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_DEF_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_DEF_HELPURL}");
7741
7729
  },
7742
7730
  mutationToDom: function() {
7743
- const e = Tn.createElement("mutation");
7731
+ const e = mn.createElement("mutation");
7744
7732
  return e.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), this.args.forEach((t) => {
7745
- const n = Tn.createElement("arg");
7733
+ const n = mn.createElement("arg");
7746
7734
  n.setAttribute("name", t.name), n.setAttribute("id", t.id), e.appendChild(n);
7747
7735
  }), e;
7748
7736
  },
@@ -7818,7 +7806,7 @@ const Us = {
7818
7806
  o.setKeyName(`__param@${t.id}__`, t.name, !1);
7819
7807
  else
7820
7808
  try {
7821
- E.disable(), o = Qt(
7809
+ E.disable(), o = Jt(
7822
7810
  this.workspace,
7823
7811
  `__param@${t.id}__`,
7824
7812
  t.name,
@@ -7831,7 +7819,7 @@ const Us = {
7831
7819
  }
7832
7820
  };
7833
7821
  d.procedure_def_v1 = Us;
7834
- const Vs = k.xml, xs = {
7822
+ const Vs = y.xml, xs = {
7835
7823
  init: function() {
7836
7824
  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}");
7837
7825
  },
@@ -7855,7 +7843,7 @@ const Vs = k.xml, xs = {
7855
7843
  }, 0);
7856
7844
  },
7857
7845
  onchange: function(e) {
7858
- if (e.type === L.STATE_CHANGE)
7846
+ if (e.type === S.STATE_CHANGE)
7859
7847
  this.checkWarning_();
7860
7848
  else if (e.type === E.BLOCK_DRAG) {
7861
7849
  const t = e;
@@ -7910,7 +7898,7 @@ const Fs = {
7910
7898
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_ASSET_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_ASSET_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("ASSET") || (this.appendValueInput("ASSET").setCheck("Resource").setAlign(v.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
7911
7899
  },
7912
7900
  ensureBlocks_: function() {
7913
- this.isInsertionMarker() || x(this, [
7901
+ this.isInsertionMarker() || V(this, [
7914
7902
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
7915
7903
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
7916
7904
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -7929,7 +7917,7 @@ ${n}
7929
7917
  }
7930
7918
  `;
7931
7919
  };
7932
- function Kn(e) {
7920
+ function wn(e) {
7933
7921
  const t = T.resource.spaces.find((i) => i.id === e);
7934
7922
  if (!t)
7935
7923
  return [];
@@ -7947,11 +7935,11 @@ function Kn(e) {
7947
7935
  }
7948
7936
  function Ys(e) {
7949
7937
  const t = [];
7950
- return Kn(e).forEach(({ id: o, name: i }) => {
7938
+ return wn(e).forEach(({ id: o, name: i }) => {
7951
7939
  t.push([i, o]);
7952
7940
  }), N(t);
7953
7941
  }
7954
- function $n(e, t) {
7942
+ function Kn(e, t) {
7955
7943
  const n = T.resource.spaces.find((i) => i.id === e);
7956
7944
  if (!n)
7957
7945
  return [];
@@ -7962,11 +7950,11 @@ function $n(e, t) {
7962
7950
  }
7963
7951
  function ws(e, t) {
7964
7952
  const n = [];
7965
- return $n(e, t).forEach(({ id: i, name: a }) => {
7953
+ return Kn(e, t).forEach(({ id: i, name: a }) => {
7966
7954
  n.push([a, i]);
7967
7955
  }), N(n);
7968
7956
  }
7969
- function Hn() {
7957
+ function $n() {
7970
7958
  const e = [];
7971
7959
  return T.resource.spaces.forEach((t) => {
7972
7960
  t.resources.length > 0 && e.push(t);
@@ -7974,7 +7962,7 @@ function Hn() {
7974
7962
  }
7975
7963
  function Ks() {
7976
7964
  const e = [];
7977
- return Hn().forEach(({ id: n, name: o }) => {
7965
+ return $n().forEach(({ id: n, name: o }) => {
7978
7966
  e.push([o, n]);
7979
7967
  }), N(e);
7980
7968
  }
@@ -7997,19 +7985,19 @@ const $s = {
7997
7985
  initData_: function() {
7998
7986
  if (this.space.id)
7999
7987
  return;
8000
- const e = Hn()?.[0];
7988
+ const e = $n()?.[0];
8001
7989
  if (!e)
8002
7990
  return;
8003
7991
  this.space.id = e.id, this.space.name = e.name;
8004
7992
  const t = this.getField("SPACE");
8005
7993
  t.getOptions(!1), t.setValue(this.space.id);
8006
- const n = Kn(this.space.id)?.[0];
7994
+ const n = wn(this.space.id)?.[0];
8007
7995
  if (!n)
8008
7996
  return;
8009
7997
  this.dir.id = n.id, this.dir.name = n.name;
8010
7998
  const o = this.getField("DIR");
8011
7999
  o.getOptions(!1), o.setValue(this.dir.id);
8012
- const i = $n(this.space.id, this.dir.id)?.[0];
8000
+ const i = Kn(this.space.id, this.dir.id)?.[0];
8013
8001
  if (!i)
8014
8002
  return;
8015
8003
  this.resource.id = i.id, this.resource.name = i.name;
@@ -8024,7 +8012,7 @@ const $s = {
8024
8012
  };
8025
8013
  },
8026
8014
  loadExtraState: function(e) {
8027
- this.space = Re(e.space), this.dir = Re(e.dir), this.resource = Re(e.resource);
8015
+ this.space = De(e.space), this.dir = De(e.dir), this.resource = De(e.resource);
8028
8016
  },
8029
8017
  genSpaceOpts_: function() {
8030
8018
  return Ks();
@@ -8060,11 +8048,11 @@ const Hs = {
8060
8048
  updateShadow_: function() {
8061
8049
  if (this.isInsertionMarker())
8062
8050
  return;
8063
- const e = de("");
8051
+ const e = ae("");
8064
8052
  this.getInput("NAME")?.setShadowDom(e);
8065
8053
  },
8066
8054
  ensureBlocks_: function() {
8067
- this.isInsertionMarker() || x(this, [
8055
+ this.isInsertionMarker() || V(this, [
8068
8056
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
8069
8057
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
8070
8058
  ["RESULT", "__result__", "PARAM_RESULT", !0]
@@ -8105,7 +8093,7 @@ s.forBlock.text_v1 = function(e) {
8105
8093
  return [s.quote_(e.getFieldValue("TEXT")), c.ATOMIC];
8106
8094
  };
8107
8095
  const Gs = /^\s*'([^']|\\')*'\s*$/;
8108
- function je(e) {
8096
+ function We(e) {
8109
8097
  return Gs.test(e) ? [e, c.ATOMIC] : [`String(${e})`, c.FUNCTION_CALL];
8110
8098
  }
8111
8099
  B.register(
@@ -8141,7 +8129,7 @@ s.forBlock.text_append_v1 = function(e) {
8141
8129
  e.getFieldValue("VAR"),
8142
8130
  ne.NameType.VARIABLE
8143
8131
  ), n = s.valueToCode(e, "TEXT", c.NONE) || "''";
8144
- return `${t} += ${je(n)};
8132
+ return `${t} += ${We(n)};
8145
8133
  `;
8146
8134
  };
8147
8135
  h([
@@ -8310,7 +8298,7 @@ h([
8310
8298
  s.forBlock.text_is_empty_v1 = function(e) {
8311
8299
  return [`!${s.valueToCode(e, "VALUE", c.MEMBER) || "''"}.length`, c.LOGICAL_NOT];
8312
8300
  };
8313
- const Ws = k.xml, js = {
8301
+ const Ws = y.xml, js = {
8314
8302
  itemCount_: 0,
8315
8303
  mutationToDom: function() {
8316
8304
  const e = Ws.createElement("mutation");
@@ -8433,11 +8421,11 @@ s.forBlock.text_join_v1 = function(e) {
8433
8421
  return ["''", c.ATOMIC];
8434
8422
  case 1: {
8435
8423
  const n = s.valueToCode(t, "ADD0", c.NONE) || "''";
8436
- return je(n);
8424
+ return We(n);
8437
8425
  }
8438
8426
  case 2: {
8439
8427
  const n = s.valueToCode(t, "ADD0", c.NONE) || "''", o = s.valueToCode(t, "ADD1", c.NONE) || "''";
8440
- return [je(n)[0] + " + " + je(o)[0], c.ADDITION];
8428
+ return [We(n)[0] + " + " + We(o)[0], c.ADDITION];
8441
8429
  }
8442
8430
  default: {
8443
8431
  const n = new Array(t.itemCount_);
@@ -8638,13 +8626,13 @@ const Js = {
8638
8626
  updateShadow_: function() {
8639
8627
  if (this.isInsertionMarker())
8640
8628
  return;
8641
- const e = Ft(1e3);
8629
+ const e = Je(1e3);
8642
8630
  this.getInput("INTERVAL")?.setShadowDom(e);
8643
- const t = Yt();
8631
+ const t = qe(!1);
8644
8632
  this.getInput("LOOP")?.setShadowDom(t);
8645
- const n = Ft(1);
8633
+ const n = Je(1);
8646
8634
  this.getInput("COUNT")?.setShadowDom(n);
8647
- const o = Yt();
8635
+ const o = qe(!1);
8648
8636
  this.getInput("IMMEDIATE")?.setShadowDom(o);
8649
8637
  }
8650
8638
  };
@@ -8775,19 +8763,19 @@ s.forBlock.variable_set_v1 = function(e) {
8775
8763
  return `${t} = ${n};
8776
8764
  `;
8777
8765
  };
8778
- const K = k.xml;
8779
- function U(e) {
8766
+ const K = y.xml;
8767
+ function x(e) {
8780
8768
  const t = K.createElement("label");
8781
8769
  return t.setAttribute("text", e), t;
8782
8770
  }
8783
- function I(e, t) {
8771
+ function O(e, t) {
8784
8772
  const n = K.createElement("block");
8785
8773
  if (n.setAttribute("type", e), t)
8786
8774
  for (const o of t)
8787
8775
  n.appendChild(o);
8788
8776
  return n;
8789
8777
  }
8790
- function Me(e, t) {
8778
+ function Ce(e, t) {
8791
8779
  t === void 0 && (t = "");
8792
8780
  const n = K.createElement("value");
8793
8781
  n.setAttribute("name", e);
@@ -8798,7 +8786,7 @@ function Me(e, t) {
8798
8786
  const a = K.createTextNode(t);
8799
8787
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
8800
8788
  }
8801
- function En(e, t) {
8789
+ function Tn(e, t) {
8802
8790
  t === void 0 && (t = 0);
8803
8791
  const n = K.createElement("value");
8804
8792
  n.setAttribute("name", e);
@@ -8822,25 +8810,25 @@ function Zs(e, t) {
8822
8810
  }
8823
8811
  function ea() {
8824
8812
  const e = [];
8825
- return e.push(U(_.LABEL_FUNC)), e.push(U(_.LABEL_FLOW)), e;
8813
+ return e.push(x(_.LABEL_FUNC)), e.push(x(_.LABEL_FLOW)), e;
8826
8814
  }
8827
- const Ze = { name: "APP_COMPUTE_CATEGORY", callback: ea };
8815
+ const et = { name: "APP_COMPUTE_CATEGORY", callback: ea };
8828
8816
  function ta() {
8829
8817
  return T.app.activeObject.type === "comp" && T.app.activeComp.meta.events.length > 0;
8830
8818
  }
8831
8819
  function na() {
8832
8820
  const e = [];
8833
- return e.push(U(_.LABEL_EVENT)), e.push(I("on_app_event_v1")), e.push(I("on_app_event_as_v1")), ta() && (e.push(U(_.LABEL_CUSTOM)), e.push(I("trigger_app_event_v1"))), e;
8821
+ return e.push(x(_.LABEL_EVENT)), e.push(O("on_app_event_v1")), e.push(O("on_app_event_as_v1")), ta() && (e.push(x(_.LABEL_CUSTOM)), e.push(O("trigger_app_event_v1"))), e;
8834
8822
  }
8835
- const et = { name: "APP_EVENT_CATEGORY", callback: na };
8823
+ const tt = { name: "APP_EVENT_CATEGORY", callback: na };
8836
8824
  function oa() {
8837
8825
  return T.app.activeObject.type === "comp" && T.app.activeComp.meta.methods.length > 0;
8838
8826
  }
8839
8827
  function ia() {
8840
8828
  const e = [];
8841
- return e.push(U(_.LABEL_METHOD)), e.push(I("call_method_v1")), e.push(I("call_method_as_v1")), oa() && (e.push(U(_.LABEL_CUSTOM)), e.push(I("method_impl_v1")), e.push(I("set_method_output_v1")), e.push(I("procedure_return_v1"))), e;
8829
+ return e.push(x(_.LABEL_METHOD)), e.push(O("call_method_v1")), e.push(O("call_method_as_v1")), oa() && (e.push(x(_.LABEL_CUSTOM)), e.push(O("method_impl_v1")), e.push(O("set_method_output_v1")), e.push(O("procedure_return_v1"))), e;
8842
8830
  }
8843
- const tt = { name: "APP_METHOD_CATEGORY", callback: ia };
8831
+ const nt = { name: "APP_METHOD_CATEGORY", callback: ia };
8844
8832
  function sa() {
8845
8833
  return T.app.activeObject.type === "page" && T.app.activePage.meta.arguments.length > 0;
8846
8834
  }
@@ -8852,37 +8840,37 @@ function aa() {
8852
8840
  }
8853
8841
  function ca() {
8854
8842
  const e = [];
8855
- return e.push(U(_.LABEL_MISC)), e.push(I("app_env_is_v1")), e.push(I("get_app_node_v1")), sa() && e.push(I("get_page_argument_v1")), aa() && e.push(I("navigate_to_v1")), e.push(U(_.LABEL_MESSAGE)), e.push(I("app_debug_trace_v1", [Me("OBJECT")])), e.push(I("popup_message_v1", [Me("TEXT")])), e.push(I("open_confirm_dlg_v1")), e.push(I("open_prompt_dlg_v1")), e;
8843
+ return e.push(x(_.LABEL_MISC)), e.push(O("app_env_is_v1")), e.push(O("get_app_node_v1")), sa() && e.push(O("get_page_argument_v1")), aa() && e.push(O("navigate_to_v1")), e.push(x(_.LABEL_MESSAGE)), e.push(O("app_debug_trace_v1", [Ce("OBJECT")])), e.push(O("popup_message_v1", [Ce("TEXT")])), e.push(O("open_confirm_dlg_v1")), e.push(O("open_prompt_dlg_v1")), e;
8856
8844
  }
8857
- const nt = { name: "APP_MISC_CATEGORY", callback: ca };
8845
+ const ot = { name: "APP_MISC_CATEGORY", callback: ca };
8858
8846
  function la() {
8859
8847
  const e = [];
8860
- return e.push(U(_.LABEL_GET)), e.push(I("get_prop_v1")), e.push(I("get_prop_as_v1")), e.push(U(_.LABEL_SET)), e.push(I("set_prop_v1")), e.push(I("set_prop_as_v1")), e;
8848
+ return e.push(x(_.LABEL_GET)), e.push(O("get_prop_v1")), e.push(O("get_prop_as_v1")), e.push(x(_.LABEL_SET)), e.push(O("set_prop_v1")), e.push(O("set_prop_as_v1")), e;
8861
8849
  }
8862
- const ot = { name: "APP_PROPERTY_CATEGORY", callback: la };
8850
+ const it = { name: "APP_PROPERTY_CATEGORY", callback: la };
8863
8851
  function ua() {
8864
8852
  const e = [];
8865
- return e.push(U(_.LABEL_RESOURCE)), e.push(I("upload_resource_v1")), e;
8853
+ return e.push(x(_.LABEL_RESOURCE)), e.push(O("upload_resource_v1")), e;
8866
8854
  }
8867
- const it = { name: "APP_RESOURCE_CATEGORY", callback: ua };
8855
+ const st = { name: "APP_RESOURCE_CATEGORY", callback: ua };
8868
8856
  function ra() {
8869
8857
  const e = [];
8870
- return e.push(U(_.LABEL_GET)), e.push(I("get_app_state_v1")), e.push(U(_.LABEL_SET)), e.push(I("set_app_state_v1")), e;
8858
+ return e.push(x(_.LABEL_GET)), e.push(O("get_app_state_v1")), e.push(x(_.LABEL_SET)), e.push(O("set_app_state_v1")), e;
8871
8859
  }
8872
- const st = { name: "APP_STATE_CATEGORY", callback: ra }, Be = k.xml;
8860
+ const at = { name: "APP_STATE_CATEGORY", callback: ra }, be = y.xml;
8873
8861
  function _a() {
8874
8862
  const e = [];
8875
8863
  {
8876
- const t = Be.createElement("label");
8864
+ const t = be.createElement("label");
8877
8865
  t.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), e.push(t);
8878
8866
  }
8879
8867
  {
8880
- const t = Be.createElement("block");
8868
+ const t = be.createElement("block");
8881
8869
  t.setAttribute("type", "procedure_def_v1");
8882
8870
  {
8883
- const n = Be.createElement("field");
8871
+ const n = be.createElement("field");
8884
8872
  n.setAttribute("name", "NAME");
8885
- const o = Be.createTextNode(
8873
+ const o = be.createTextNode(
8886
8874
  _.PROCEDURE_DEFAULT_NAME
8887
8875
  );
8888
8876
  n.appendChild(o), t.appendChild(n);
@@ -8890,15 +8878,15 @@ function _a() {
8890
8878
  e.push(t);
8891
8879
  }
8892
8880
  {
8893
- const t = Be.createElement("block");
8881
+ const t = be.createElement("block");
8894
8882
  t.setAttribute("type", "procedure_return_v1"), e.push(t);
8895
8883
  }
8896
8884
  return e;
8897
8885
  }
8898
- const ae = {
8886
+ const ie = {
8899
8887
  name: "PROCEDURE_CATEGORY",
8900
8888
  callback: _a
8901
- }, He = k.xml;
8889
+ }, He = y.xml;
8902
8890
  function pa() {
8903
8891
  const e = Fe(), t = [];
8904
8892
  {
@@ -8935,23 +8923,23 @@ function pa() {
8935
8923
  }
8936
8924
  }), t;
8937
8925
  }
8938
- const ce = {
8926
+ const se = {
8939
8927
  name: "VARIABLE_CATEGORY",
8940
8928
  callback: pa
8941
8929
  };
8942
8930
  function ha() {
8943
8931
  const e = [];
8944
8932
  if (q().length > 0)
8945
- e.push(U(_.LABEL_OPERATION)), e.push(I("add_data_v1")), e.push(I("delete_data_v1")), e.push(I("update_data_v1")), e.push(I("query_data_v1")), e.push(I("transaction_v1")), e.push(
8946
- I("interrupt_transaction_v1", [Me("VALUE")])
8947
- ), e.push(U(_.LABEL_TABLE)), e.push(I("select_table_v1")), e.push(I("select_column_v1")), e.push(I("update_column_v1")), e.push(U(_.LABEL_CONDITION)), e.push(I("cond_logic_v1")), e.push(I("cond_atomic_v1", [Me("VALUE")])), e.push(U(_.LABEL_QUERY_EXTRA)), e.push(
8948
- I("query_extra_limit_v1", [
8949
- En("OFFSET", 0),
8950
- En("LIMIT", 1)
8933
+ e.push(x(_.LABEL_OPERATION)), e.push(O("add_data_v1")), e.push(O("delete_data_v1")), e.push(O("update_data_v1")), e.push(O("query_data_v1")), e.push(O("transaction_v1")), e.push(
8934
+ O("interrupt_transaction_v1", [Ce("VALUE")])
8935
+ ), e.push(x(_.LABEL_CONDITION)), e.push(O("cond_logic_v1")), e.push(O("cond_atomic_v1", [Ce("VALUE")])), e.push(x(_.LABEL_QUERY_EXTRA)), e.push(
8936
+ O("query_extra_limit_v1", [
8937
+ Tn("OFFSET", 0),
8938
+ Tn("LIMIT", 1)
8951
8939
  ])
8952
8940
  ), e.push(
8953
- I("query_extra_sortby_v1", [
8954
- Me("COLUMN"),
8941
+ O("query_extra_sortby_v1", [
8942
+ Ce("COLUMN"),
8955
8943
  Zs("DESC")
8956
8944
  ])
8957
8945
  );
@@ -8961,53 +8949,55 @@ function ha() {
8961
8949
  }
8962
8950
  return e;
8963
8951
  }
8964
- const at = { name: "COMPUTE_DATA_CATEGORY", callback: ha };
8952
+ const ct = { name: "COMPUTE_DATA_CATEGORY", callback: ha };
8965
8953
  function da() {
8966
8954
  return Ke("flow").length > 0;
8967
8955
  }
8968
8956
  function fa() {
8969
8957
  const e = [];
8970
- return T.compute.activeObject.type === "flow" && e.push(I("on_flow_state_event_v1")), da() && console.assert(!0), e;
8958
+ return T.compute.activeObject.type === "flow" && e.push(O("on_flow_state_event_v1")), da() && console.assert(!0), e;
8971
8959
  }
8972
- const ct = { name: "COMPUTE_FLOW_CATEGORY", callback: fa };
8960
+ const lt = { name: "COMPUTE_FLOW_CATEGORY", callback: fa };
8973
8961
  function ma() {
8974
8962
  return Ke("func").length > 0;
8975
8963
  }
8976
8964
  function Ta() {
8977
8965
  const e = [];
8978
- return T.compute.activeObject.type === "func" && (e.push(I("func_entry_v1")), e.push(I("set_func_output_v1")), e.push(I("procedure_return_v1"))), ma() && e.push(I("call_func_internal_v1")), e;
8966
+ return T.compute.activeObject.type === "func" && (e.push(O("func_entry_v1")), T.compute.activeFunc.outputs.length > 0 && e.push(O("set_func_output_v1")), e.push(O("procedure_return_v1"))), ma() && e.push(O("call_func_internal_v1")), e;
8979
8967
  }
8980
- const lt = { name: "COMPUTE_FUNC_CATEGORY", callback: Ta };
8968
+ const ut = { name: "COMPUTE_FUNC_CATEGORY", callback: Ta };
8981
8969
  function Ea() {
8982
8970
  const e = [];
8983
- return e.push(I("compute_debug_trace_v1")), e;
8971
+ return e.push(
8972
+ O("compute_debug_trace_v1", [Ce("OBJECT")])
8973
+ ), e;
8984
8974
  }
8985
- const ut = { name: "COMPUTE_MISC_CATEGORY", callback: Ea };
8986
- kn.setConfirm(async (e, t) => {
8987
- const n = await Do({
8975
+ const rt = { name: "COMPUTE_MISC_CATEGORY", callback: Ea };
8976
+ yn.setConfirm(async (e, t) => {
8977
+ const n = await Ro({
8988
8978
  title: "",
8989
8979
  text: e
8990
8980
  });
8991
8981
  t(!!n);
8992
8982
  });
8993
- kn.setPrompt(async (e, t, n) => {
8994
- const o = await Mo({
8983
+ yn.setPrompt(async (e, t, n) => {
8984
+ const o = await Do({
8995
8985
  title: "",
8996
8986
  value: t
8997
8987
  });
8998
8988
  o !== void 0 && n(String(o));
8999
8989
  });
9000
- const Gn = (e, t, n) => {
8990
+ const Hn = (e, t, n) => {
9001
8991
  const o = e[t];
9002
8992
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, a) => {
9003
8993
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
9004
8994
  });
9005
8995
  };
9006
- async function gn(e) {
9007
- const t = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.d2bpkdwr.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.l3bo9qik.js") }), `./msg/${e}.ts`, 3);
9008
- Eo(t.default);
8996
+ async function En(e) {
8997
+ const t = await Hn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.ltxrwfye.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.5rvy1pzo.js") }), `./msg/${e}.ts`, 3);
8998
+ To(t.default);
9009
8999
  }
9010
- function tn(e) {
9000
+ function Zt(e) {
9011
9001
  const t = Fe();
9012
9002
  if (!t)
9013
9003
  return;
@@ -9020,33 +9010,33 @@ function tn(e) {
9020
9010
  const i = o.getRelativeToSurfaceXY(), a = i.x * t.scale, l = i.y * t.scale;
9021
9011
  t.scroll(-a, -l);
9022
9012
  }
9023
- function Wn() {
9013
+ function Gn() {
9024
9014
  const e = Fe();
9025
9015
  if (!e)
9026
9016
  return;
9027
9017
  const t = e.getTopBlocks(!0)?.[0];
9028
- t && tn(t.id);
9018
+ t && Zt(t.id);
9029
9019
  }
9030
- function jn(e) {
9020
+ function Wn(e) {
9031
9021
  const t = e.getParent();
9032
- return t && jn(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
9022
+ return t && Wn(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
9033
9023
  }
9034
9024
  class ga {
9035
9025
  init() {
9036
- const t = go.registry.getItem("blockDisable");
9026
+ const t = Eo.registry.getItem("blockDisable");
9037
9027
  t && (t.preconditionFn = function(n) {
9038
9028
  const o = n.block;
9039
- return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || jn(o) ? "disabled" : "enabled" : "hidden";
9029
+ return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || Wn(o) ? "disabled" : "enabled" : "hidden";
9040
9030
  });
9041
9031
  }
9042
9032
  }
9043
- Ao.registerFieldColour();
9044
- Io.registry.unregister(Oo.names.ESCAPE);
9045
- const Aa = new Co.CrossTabCopyPaste();
9033
+ go.registerFieldColour();
9034
+ Ao.registry.unregister(Io.names.ESCAPE);
9035
+ const Aa = new Oo.CrossTabCopyPaste();
9046
9036
  Aa.init({ contextMenu: !0, shortcut: !0 });
9047
9037
  const Ia = new ga();
9048
9038
  Ia.init();
9049
- _t.Classic.blockStyles = {
9039
+ pt.Classic.blockStyles = {
9050
9040
  color_blocks: {
9051
9041
  colourPrimary: "#a5745b",
9052
9042
  colourSecondary: "#ede3de",
@@ -9132,7 +9122,7 @@ _t.Classic.blockStyles = {
9132
9122
  hat: ""
9133
9123
  }
9134
9124
  };
9135
- _t.Classic.categoryStyles = {
9125
+ pt.Classic.categoryStyles = {
9136
9126
  color_category: {
9137
9127
  colour: "#a5745b"
9138
9128
  },
@@ -9197,9 +9187,9 @@ _t.Classic.categoryStyles = {
9197
9187
  colour: "#a55b80"
9198
9188
  }
9199
9189
  };
9200
- const Oa = yn.defineTheme("light", {
9190
+ const Oa = kn.defineTheme("light", {
9201
9191
  name: "light",
9202
- base: _t.Classic,
9192
+ base: pt.Classic,
9203
9193
  componentStyles: {
9204
9194
  workspaceBackgroundColour: "#ffffff",
9205
9195
  toolboxBackgroundColour: "#eeeeee",
@@ -9213,9 +9203,9 @@ const Oa = yn.defineTheme("light", {
9213
9203
  scrollbarOpacity: 0.4,
9214
9204
  cursorColour: ""
9215
9205
  }
9216
- }), Ca = yn.defineTheme("dark", {
9206
+ }), Ca = kn.defineTheme("dark", {
9217
9207
  name: "dark",
9218
- base: _t.Classic,
9208
+ base: pt.Classic,
9219
9209
  componentStyles: {
9220
9210
  workspaceBackgroundColour: "#1e1e1e",
9221
9211
  toolboxBackgroundColour: "#272727",
@@ -9241,7 +9231,7 @@ function va(e) {
9241
9231
  break;
9242
9232
  }
9243
9233
  }
9244
- const mt = {
9234
+ const Tt = {
9245
9235
  kind: "category",
9246
9236
  name: "%{BKY_CATEGORY_COLOR}",
9247
9237
  categorystyle: "color_category",
@@ -9315,7 +9305,7 @@ const mt = {
9315
9305
  }
9316
9306
  }
9317
9307
  ]
9318
- }, Tt = {
9308
+ }, Et = {
9319
9309
  kind: "category",
9320
9310
  name: "%{BKY_CATEGORY_LIST}",
9321
9311
  categorystyle: "list_category",
@@ -9430,7 +9420,7 @@ const mt = {
9430
9420
  type: "list_reverse_v1"
9431
9421
  }
9432
9422
  ]
9433
- }, Et = {
9423
+ }, gt = {
9434
9424
  kind: "category",
9435
9425
  name: "%{BKY_CATEGORY_LOGIC}",
9436
9426
  categorystyle: "logic_category",
@@ -9472,7 +9462,7 @@ const mt = {
9472
9462
  type: "logic_ternary_v1"
9473
9463
  }
9474
9464
  ]
9475
- }, gt = {
9465
+ }, At = {
9476
9466
  kind: "category",
9477
9467
  name: "%{BKY_CATEGORY_LOOP}",
9478
9468
  categorystyle: "loop_category",
@@ -9534,7 +9524,7 @@ const mt = {
9534
9524
  type: "flow_control_v1"
9535
9525
  }
9536
9526
  ]
9537
- }, At = {
9527
+ }, It = {
9538
9528
  kind: "category",
9539
9529
  name: "%{BKY_CATEGORY_MATH}",
9540
9530
  categorystyle: "math_category",
@@ -9689,7 +9679,7 @@ const mt = {
9689
9679
  type: "math_on_list_v1"
9690
9680
  }
9691
9681
  ]
9692
- }, It = {
9682
+ }, Ot = {
9693
9683
  kind: "category",
9694
9684
  name: "%{BKY_CATEGORY_OBJECT}",
9695
9685
  categorystyle: "object_category",
@@ -9757,7 +9747,7 @@ const mt = {
9757
9747
  }
9758
9748
  }
9759
9749
  ]
9760
- }, Ot = {
9750
+ }, Ct = {
9761
9751
  kind: "category",
9762
9752
  name: "%{BKY_CATEGORY_TEXT}",
9763
9753
  categorystyle: "text_category",
@@ -9920,7 +9910,7 @@ const mt = {
9920
9910
  type: "text_reverse_v1"
9921
9911
  }
9922
9912
  ]
9923
- }, Xn = {
9913
+ }, jn = {
9924
9914
  kind: "category",
9925
9915
  name: "%{BKY_CATEGORY_TIME}",
9926
9916
  categorystyle: "time_category",
@@ -9944,117 +9934,117 @@ const mt = {
9944
9934
  }
9945
9935
  }
9946
9936
  ]
9947
- }, ka = {
9937
+ }, ya = {
9948
9938
  kind: "categoryToolbox",
9949
9939
  contents: [
9950
9940
  {
9951
9941
  kind: "category",
9952
9942
  name: "%{BKY_CATEGORY_EVENT}",
9953
9943
  categorystyle: "event_category",
9954
- custom: et.name
9944
+ custom: tt.name
9955
9945
  },
9956
9946
  {
9957
9947
  kind: "category",
9958
9948
  name: "%{BKY_CATEGORY_METHOD}",
9959
9949
  categorystyle: "method_category",
9960
- custom: tt.name
9950
+ custom: nt.name
9961
9951
  },
9962
9952
  {
9963
9953
  kind: "category",
9964
9954
  name: "%{BKY_CATEGORY_PROPERTY}",
9965
9955
  categorystyle: "property_category",
9966
- custom: ot.name
9956
+ custom: it.name
9967
9957
  },
9968
9958
  {
9969
9959
  kind: "category",
9970
9960
  name: "%{BKY_CATEGORY_STATE}",
9971
9961
  categorystyle: "state_category",
9972
- custom: st.name
9962
+ custom: at.name
9973
9963
  },
9974
9964
  {
9975
9965
  kind: "category",
9976
9966
  name: "%{BKY_CATEGORY_MISC}",
9977
9967
  categorystyle: "misc_category",
9978
- custom: nt.name
9968
+ custom: ot.name
9979
9969
  },
9970
+ At,
9980
9971
  gt,
9972
+ It,
9973
+ Ct,
9981
9974
  Et,
9982
- At,
9983
9975
  Ot,
9984
9976
  Tt,
9985
- It,
9986
- mt,
9987
- Xn,
9977
+ jn,
9988
9978
  {
9989
9979
  kind: "category",
9990
9980
  name: "%{BKY_CATEGORY_VARIABLE}",
9991
9981
  categorystyle: "variable_category",
9992
- custom: ce.name
9982
+ custom: se.name
9993
9983
  },
9994
9984
  {
9995
9985
  kind: "category",
9996
9986
  name: "%{BKY_CATEGORY_PROCEDURE}",
9997
9987
  categorystyle: "procedure_category",
9998
- custom: ae.name
9988
+ custom: ie.name
9999
9989
  },
10000
9990
  {
10001
9991
  kind: "category",
10002
9992
  name: "%{BKY_CATEGORY_RESOURCE}",
10003
9993
  categorystyle: "resource_category",
10004
- custom: it.name
9994
+ custom: st.name
10005
9995
  },
10006
9996
  {
10007
9997
  kind: "category",
10008
9998
  name: "%{BKY_CATEGORY_COMPUTE}",
10009
9999
  categorystyle: "compute_category",
10010
- custom: Ze.name
10000
+ custom: et.name
10011
10001
  }
10012
10002
  ]
10013
- }, ya = {
10003
+ }, ka = {
10014
10004
  kind: "categoryToolbox",
10015
10005
  contents: [
10016
10006
  {
10017
10007
  kind: "category",
10018
10008
  name: "%{BKY_CATEGORY_FUNC}",
10019
10009
  categorystyle: "func_category",
10020
- custom: lt.name
10010
+ custom: ut.name
10021
10011
  },
10022
10012
  {
10023
10013
  kind: "category",
10024
10014
  name: "%{BKY_CATEGORY_FLOW}",
10025
10015
  categorystyle: "flow_category",
10026
- custom: ct.name
10016
+ custom: lt.name
10027
10017
  },
10028
10018
  {
10029
10019
  kind: "category",
10030
10020
  name: "%{BKY_CATEGORY_DATA}",
10031
10021
  categorystyle: "data_category",
10032
- custom: at.name
10022
+ custom: ct.name
10033
10023
  },
10034
10024
  {
10035
10025
  kind: "category",
10036
10026
  name: "%{BKY_CATEGORY_MISC}",
10037
10027
  categorystyle: "misc_category",
10038
- custom: ut.name
10028
+ custom: rt.name
10039
10029
  },
10030
+ At,
10040
10031
  gt,
10032
+ It,
10033
+ Ct,
10041
10034
  Et,
10042
- At,
10043
10035
  Ot,
10044
10036
  Tt,
10045
- It,
10046
- mt,
10047
10037
  {
10048
10038
  kind: "category",
10049
10039
  name: "%{BKY_CATEGORY_VARIABLE}",
10050
10040
  categorystyle: "variable_category",
10051
- custom: ce.name
10041
+ custom: se.name
10052
10042
  },
10053
10043
  {
10054
10044
  kind: "category",
10055
10045
  name: "%{BKY_CATEGORY_PROCEDURE}",
10056
10046
  categorystyle: "procedure_category",
10057
- custom: ae.name
10047
+ custom: ie.name
10058
10048
  }
10059
10049
  ]
10060
10050
  }, Na = {
@@ -10064,47 +10054,47 @@ const mt = {
10064
10054
  kind: "category",
10065
10055
  name: "%{BKY_CATEGORY_FUNC}",
10066
10056
  categorystyle: "func_category",
10067
- custom: lt.name
10057
+ custom: ut.name
10068
10058
  },
10069
10059
  {
10070
10060
  kind: "category",
10071
10061
  name: "%{BKY_CATEGORY_FLOW}",
10072
10062
  categorystyle: "flow_category",
10073
- custom: ct.name
10063
+ custom: lt.name
10074
10064
  },
10075
10065
  {
10076
10066
  kind: "category",
10077
10067
  name: "%{BKY_CATEGORY_DATA}",
10078
10068
  categorystyle: "data_category",
10079
- custom: at.name
10069
+ custom: ct.name
10080
10070
  },
10081
10071
  {
10082
10072
  kind: "category",
10083
10073
  name: "%{BKY_CATEGORY_MISC}",
10084
10074
  categorystyle: "misc_category",
10085
- custom: ut.name
10075
+ custom: rt.name
10086
10076
  },
10077
+ At,
10087
10078
  gt,
10079
+ It,
10080
+ Ct,
10088
10081
  Et,
10089
- At,
10090
10082
  Ot,
10091
10083
  Tt,
10092
- It,
10093
- mt,
10094
10084
  {
10095
10085
  kind: "category",
10096
10086
  name: "%{BKY_CATEGORY_VARIABLE}",
10097
10087
  categorystyle: "variable_category",
10098
- custom: ce.name
10088
+ custom: se.name
10099
10089
  },
10100
10090
  {
10101
10091
  kind: "category",
10102
10092
  name: "%{BKY_CATEGORY_PROCEDURE}",
10103
10093
  categorystyle: "procedure_category",
10104
- custom: ae.name
10094
+ custom: ie.name
10105
10095
  }
10106
10096
  ]
10107
- }, La = {
10097
+ }, Sa = {
10108
10098
  kind: "categoryToolbox",
10109
10099
  contents: [
10110
10100
  {
@@ -10135,78 +10125,78 @@ const mt = {
10135
10125
  ]
10136
10126
  }
10137
10127
  ]
10138
- }, Sa = {
10128
+ }, La = {
10139
10129
  kind: "categoryToolbox",
10140
10130
  contents: [
10141
10131
  {
10142
10132
  kind: "category",
10143
10133
  name: "%{BKY_CATEGORY_EVENT}",
10144
10134
  categorystyle: "event_category",
10145
- custom: et.name
10135
+ custom: tt.name
10146
10136
  },
10147
10137
  {
10148
10138
  kind: "category",
10149
10139
  name: "%{BKY_CATEGORY_METHOD}",
10150
10140
  categorystyle: "method_category",
10151
- custom: tt.name
10141
+ custom: nt.name
10152
10142
  },
10153
10143
  {
10154
10144
  kind: "category",
10155
10145
  name: "%{BKY_CATEGORY_PROPERTY}",
10156
10146
  categorystyle: "property_category",
10157
- custom: ot.name
10147
+ custom: it.name
10158
10148
  },
10159
10149
  {
10160
10150
  kind: "category",
10161
10151
  name: "%{BKY_CATEGORY_STATE}",
10162
10152
  categorystyle: "state_category",
10163
- custom: st.name
10153
+ custom: at.name
10164
10154
  },
10165
10155
  {
10166
10156
  kind: "category",
10167
10157
  name: "%{BKY_CATEGORY_MISC}",
10168
10158
  categorystyle: "misc_category",
10169
- custom: nt.name
10159
+ custom: ot.name
10170
10160
  },
10161
+ At,
10171
10162
  gt,
10163
+ It,
10164
+ Ct,
10172
10165
  Et,
10173
- At,
10174
10166
  Ot,
10175
10167
  Tt,
10176
- It,
10177
- mt,
10178
- Xn,
10168
+ jn,
10179
10169
  {
10180
10170
  kind: "category",
10181
10171
  name: "%{BKY_CATEGORY_VARIABLE}",
10182
10172
  categorystyle: "variable_category",
10183
- custom: ce.name
10173
+ custom: se.name
10184
10174
  },
10185
10175
  {
10186
10176
  kind: "category",
10187
10177
  name: "%{BKY_CATEGORY_PROCEDURE}",
10188
10178
  categorystyle: "procedure_category",
10189
- custom: ae.name
10179
+ custom: ie.name
10190
10180
  },
10191
10181
  {
10192
10182
  kind: "category",
10193
10183
  name: "%{BKY_CATEGORY_RESOURCE}",
10194
10184
  categorystyle: "resource_category",
10195
- custom: it.name
10185
+ custom: st.name
10196
10186
  },
10197
10187
  {
10198
10188
  kind: "category",
10199
10189
  name: "%{BKY_CATEGORY_COMPUTE}",
10200
10190
  categorystyle: "compute_category",
10201
- custom: Ze.name
10191
+ custom: et.name
10202
10192
  }
10203
10193
  ]
10204
- }, Jn = Symbol();
10194
+ }, Xn = Symbol();
10205
10195
  function Ba(e) {
10206
- ao(Jn, e);
10196
+ so(Xn, e);
10207
10197
  }
10208
- function nn() {
10209
- return co(Jn);
10198
+ function en() {
10199
+ return ao(Xn);
10210
10200
  }
10211
10201
  const ba = /* @__PURE__ */ oe({
10212
10202
  __name: "index",
@@ -10214,13 +10204,13 @@ const ba = /* @__PURE__ */ oe({
10214
10204
  lock: { type: Boolean }
10215
10205
  },
10216
10206
  setup(e, { expose: t }) {
10217
- const { t: n } = we(), o = e, i = nn(), a = () => {
10207
+ const { t: n } = we(), o = e, i = en(), a = () => {
10218
10208
  if (!i.workspace) {
10219
10209
  console.assert(!1);
10220
10210
  return;
10221
10211
  }
10222
10212
  if (o.lock) {
10223
- Ln(n("x-block-lib.msg.cannotOperateInLockedState"));
10213
+ Sn(n("x-block-lib.msg.cannotOperateInLockedState"));
10224
10214
  return;
10225
10215
  }
10226
10216
  i.workspace.cleanUp();
@@ -10232,8 +10222,8 @@ const ba = /* @__PURE__ */ oe({
10232
10222
  return b(), ee(A, {
10233
10223
  text: D(n)("x-block-lib.tip.hotkeyCtrlQ")
10234
10224
  }, {
10235
- activator: te(({ props: O }) => [
10236
- S(p, Xt(O, {
10225
+ activator: te(({ props: I }) => [
10226
+ L(p, jt(I, {
10237
10227
  density: "comfortable",
10238
10228
  icon: "mdi-broom",
10239
10229
  variant: "outlined",
@@ -10259,7 +10249,7 @@ const ba = /* @__PURE__ */ oe({
10259
10249
  text: D(t)("x-block-lib.tip.hotkeyCtrlW")
10260
10250
  }, {
10261
10251
  activator: te(({ props: u }) => [
10262
- S(a, Xt(u, {
10252
+ L(a, jt(u, {
10263
10253
  density: "comfortable",
10264
10254
  icon: n.value ? "mdi-lock" : "mdi-lock-open",
10265
10255
  variant: "outlined",
@@ -10295,21 +10285,21 @@ const ba = /* @__PURE__ */ oe({
10295
10285
  border: "1px solid " + n.value,
10296
10286
  pointerEvents: "none"
10297
10287
  }));
10298
- return (A, O) => {
10299
- const m = M("v-spacer"), C = M("v-icon"), g = lo("ripple");
10300
- return uo((b(), z("div", {
10288
+ return (A, I) => {
10289
+ const m = M("v-spacer"), C = M("v-icon"), g = co("ripple");
10290
+ return lo((b(), z("div", {
10301
10291
  class: "d-flex align-center cursor-pointer",
10302
10292
  style: W(r.value),
10303
- onClick: O[1] || (O[1] = (R) => l("x-click", a.id)),
10304
- onMouseout: O[2] || (O[2] = (R) => u.value = !1),
10305
- onMouseover: O[3] || (O[3] = (R) => u.value = !0)
10293
+ onClick: I[1] || (I[1] = (R) => l("x-click", a.id)),
10294
+ onMouseout: I[2] || (I[2] = (R) => u.value = !1),
10295
+ onMouseover: I[3] || (I[3] = (R) => u.value = !0)
10306
10296
  }, [
10307
- j("span", Ra, rt(a.title), 1),
10308
- S(m),
10309
- S(C, {
10297
+ j("span", Ra, _t(a.title), 1),
10298
+ L(m),
10299
+ L(C, {
10310
10300
  class: "x-handle cursor-move mr-3",
10311
10301
  icon: "mdi-drag-horizontal-variant",
10312
- onMousedown: O[0] || (O[0] = be(() => {
10302
+ onMousedown: I[0] || (I[0] = Pe(() => {
10313
10303
  }, ["stop"]))
10314
10304
  }),
10315
10305
  j("div", {
@@ -10325,7 +10315,7 @@ const ba = /* @__PURE__ */ oe({
10325
10315
  class: "text-caption text-grey"
10326
10316
  }, Ua = /* @__PURE__ */ oe({
10327
10317
  __name: "index",
10328
- props: /* @__PURE__ */ Rt({
10318
+ props: /* @__PURE__ */ Mt({
10329
10319
  lock: { type: Boolean }
10330
10320
  }, {
10331
10321
  modelValue: { type: Boolean, required: !0 },
@@ -10333,7 +10323,7 @@ const ba = /* @__PURE__ */ oe({
10333
10323
  }),
10334
10324
  emits: ["update:modelValue"],
10335
10325
  setup(e, { expose: t }) {
10336
- const { t: n } = we(), o = Ue(e, "modelValue"), i = nn(), a = Ae([]);
10326
+ const { t: n } = we(), o = Ue(e, "modelValue"), i = en(), a = Ae([]);
10337
10327
  t({ update: () => {
10338
10328
  if (!i.workspace) {
10339
10329
  console.assert(!1);
@@ -10341,11 +10331,11 @@ const ba = /* @__PURE__ */ oe({
10341
10331
  }
10342
10332
  const m = [];
10343
10333
  i.workspace.getTopBlocks(!0).forEach((g) => {
10344
- const R = g.id === ko()?.id;
10334
+ const R = g.id === vo()?.id;
10345
10335
  let Y = "<n/a>";
10346
10336
  if (g.type.startsWith("on_node_event_v")) {
10347
- const Q = g, _e = V[Q.node.key];
10348
- _e && (Y = n(_e.name), Q.node.alias && (Y += " / " + Q.node.alias), Y += " - " + _[Q.event.name]);
10337
+ const Q = g, re = U[Q.node.key];
10338
+ re && (Y = n(re.name), Q.node.alias && (Y += " / " + Q.node.alias), Y += " - " + _[Q.event.name]);
10349
10339
  } else g.type.startsWith("func_entry_v") ? Y = n("x-block-lib.funcEntry") : g.type.startsWith("procedure_def_v") ? (console.log(g), Y = n("x-block-lib.procedure") + " - " + g.getFieldValue("NAME")) : Y = n("x-block-lib.temporaryBlock");
10350
10340
  m.push({
10351
10341
  id: g.id,
@@ -10357,7 +10347,7 @@ const ba = /* @__PURE__ */ oe({
10357
10347
  let u = [];
10358
10348
  const r = () => {
10359
10349
  if (e.lock) {
10360
- Ln(n("x-block-lib.msg.cannotOperateInLockedState"));
10350
+ Sn(n("x-block-lib.msg.cannotOperateInLockedState"));
10361
10351
  return;
10362
10352
  }
10363
10353
  const m = [];
@@ -10389,16 +10379,16 @@ const ba = /* @__PURE__ */ oe({
10389
10379
  R
10390
10380
  ).getRelativeToSurfaceXY().y + 10);
10391
10381
  const Q = g.getRelativeToSurfaceXY();
10392
- g.moveTo(new k.Coordinate(Q.x, Y)), i.workspace.cleanUp(), Wn();
10393
- }, O = async (m) => {
10382
+ g.moveTo(new y.Coordinate(Q.x, Y)), i.workspace.cleanUp(), Gn();
10383
+ }, I = async (m) => {
10394
10384
  if (!i.workspace) {
10395
10385
  console.assert(!1);
10396
10386
  return;
10397
10387
  }
10398
10388
  const C = i.workspace.getBlockById(m);
10399
- Nn.setSelected(C), tn(m), o.value = !1;
10389
+ Nn.setSelected(C), Zt(m), o.value = !1;
10400
10390
  };
10401
- return (m, C) => a.value.length > 0 ? (b(), ee(D(vo), {
10391
+ return (m, C) => a.value.length > 0 ? (b(), ee(D(Co), {
10402
10392
  key: 0,
10403
10393
  modelValue: a.value,
10404
10394
  "onUpdate:modelValue": C[0] || (C[0] = (g) => a.value = g),
@@ -10410,16 +10400,16 @@ const ba = /* @__PURE__ */ oe({
10410
10400
  onStart: r
10411
10401
  }, {
10412
10402
  default: te(() => [
10413
- (b(!0), z(An, null, ro(a.value, (g) => (b(), ee(Da, {
10403
+ (b(!0), z(gn, null, uo(a.value, (g) => (b(), ee(Da, {
10414
10404
  id: g.id,
10415
10405
  key: g.id,
10416
10406
  select: g.select,
10417
10407
  title: g.name,
10418
- onXClick: O
10408
+ onXClick: I
10419
10409
  }, null, 8, ["id", "select", "title"]))), 128))
10420
10410
  ]),
10421
10411
  _: 1
10422
- }, 8, ["modelValue"])) : (b(), z("span", Ma, rt(D(n)("x-block-lib.noOption")), 1));
10412
+ }, 8, ["modelValue"])) : (b(), z("span", Ma, _t(D(n)("x-block-lib.noOption")), 1));
10423
10413
  }
10424
10414
  }), Va = (e, t) => {
10425
10415
  const n = e.__vccOpts || e;
@@ -10434,7 +10424,7 @@ const ba = /* @__PURE__ */ oe({
10434
10424
  },
10435
10425
  emits: ["update:modelValue"],
10436
10426
  setup(e, { expose: t }) {
10437
- const n = Ue(e, "modelValue"), o = nn();
10427
+ const n = Ue(e, "modelValue"), o = en();
10438
10428
  t({ update: () => {
10439
10429
  if (!o.workspace) {
10440
10430
  console.assert(!1);
@@ -10448,7 +10438,7 @@ const ba = /* @__PURE__ */ oe({
10448
10438
  return;
10449
10439
  }
10450
10440
  const r = u.getBlockById(l);
10451
- Nn.setSelected(r), tn(l), n.value = !1;
10441
+ Nn.setSelected(r), Zt(l), n.value = !1;
10452
10442
  };
10453
10443
  return (l, u) => (b(), z("div", {
10454
10444
  onClick: u[0] || (u[0] = (r) => a(""))
@@ -10461,7 +10451,7 @@ const ba = /* @__PURE__ */ oe({
10461
10451
  lock: { type: Boolean }
10462
10452
  },
10463
10453
  setup(e, { expose: t }) {
10464
- const { t: n } = we(), o = xo(), { sysBarAvail: i } = Sn(), { backgroundColor1: a } = Ye(), l = w(() => {
10454
+ const { t: n } = we(), o = Vo(), { sysBarAvail: i } = Ln(), { backgroundColor1: a } = Ye(), l = w(() => {
10465
10455
  let C = "100%";
10466
10456
  return o.mdAndUp.value && (C = "400px"), {
10467
10457
  background: a.value,
@@ -10476,17 +10466,17 @@ const ba = /* @__PURE__ */ oe({
10476
10466
  };
10477
10467
  }), r = w(() => ({
10478
10468
  height: "60px"
10479
- })), { open: p } = qt(`blocklyNavigatorDlg${Dt()}`);
10480
- In(() => {
10469
+ })), { open: p } = Xt(`blocklyNavigatorDlg${Ut()}`);
10470
+ An(() => {
10481
10471
  p.value = !1;
10482
10472
  });
10483
- const A = Pe("blockList"), O = Pe("blockTree");
10473
+ const A = Re("blockList"), I = Re("blockTree");
10484
10474
  return t({ open: p, update: () => {
10485
- e.type === "list" ? A.value?.update() : e.type === "tree" && O.value?.update();
10475
+ e.type === "list" ? A.value?.update() : e.type === "tree" && I.value?.update();
10486
10476
  } }), (C, g) => {
10487
- const R = M("v-sheet"), Y = M("v-btn"), Q = M("v-spacer"), _e = M("v-dialog"), Ct = M("v-tooltip");
10488
- return b(), z(An, null, [
10489
- S(_e, {
10477
+ const R = M("v-sheet"), Y = M("v-btn"), Q = M("v-spacer"), re = M("v-dialog"), vt = M("v-tooltip");
10478
+ return b(), z(gn, null, [
10479
+ L(re, {
10490
10480
  modelValue: D(p),
10491
10481
  "onUpdate:modelValue": g[5] || (g[5] = (G) => Ge(p) ? p.value = G : null),
10492
10482
  eager: "",
@@ -10494,13 +10484,13 @@ const ba = /* @__PURE__ */ oe({
10494
10484
  "no-click-animation": "",
10495
10485
  persistent: "",
10496
10486
  transition: "scroll-x-reverse-transition",
10497
- onKeydown: g[6] || (g[6] = On(be((G) => p.value = !1, ["stop", "prevent"]), ["esc"]))
10487
+ onKeydown: g[6] || (g[6] = In(Pe((G) => p.value = !1, ["stop", "prevent"]), ["esc"]))
10498
10488
  }, {
10499
10489
  default: te(() => [
10500
10490
  j("div", {
10501
10491
  class: "w-100 h-100 d-flex flex-row-reverse",
10502
- onClick: g[3] || (g[3] = be((G) => p.value = !1, ["self"])),
10503
- onContextmenu: g[4] || (g[4] = be((G) => p.value = !1, ["self", "prevent"]))
10492
+ onClick: g[3] || (g[3] = Pe((G) => p.value = !1, ["self"])),
10493
+ onContextmenu: g[4] || (g[4] = Pe((G) => p.value = !1, ["self", "prevent"]))
10504
10494
  }, [
10505
10495
  j("div", {
10506
10496
  class: "elevation-2",
@@ -10510,21 +10500,21 @@ const ba = /* @__PURE__ */ oe({
10510
10500
  key: 0,
10511
10501
  color: "transparent",
10512
10502
  height: 24
10513
- })) : he("", !0),
10514
- S(R, {
10503
+ })) : pe("", !0),
10504
+ L(R, {
10515
10505
  class: "d-flex align-center px-2",
10516
10506
  color: "transparent",
10517
10507
  height: 48
10518
10508
  }, {
10519
10509
  default: te(() => [
10520
- S(Y, {
10510
+ L(Y, {
10521
10511
  density: "comfortable",
10522
10512
  icon: "mdi-close",
10523
10513
  variant: "text",
10524
10514
  onClick: g[0] || (g[0] = (G) => p.value = !1)
10525
10515
  }),
10526
- j("span", Ya, rt(D(n)("x-block-lib.navigator")), 1),
10527
- S(Q)
10516
+ j("span", Ya, _t(D(n)("x-block-lib.navigator")), 1),
10517
+ L(Q)
10528
10518
  ]),
10529
10519
  _: 1
10530
10520
  }),
@@ -10542,10 +10532,10 @@ const ba = /* @__PURE__ */ oe({
10542
10532
  }, null, 8, ["modelValue", "lock"])) : C.type === "tree" ? (b(), ee(Fa, {
10543
10533
  key: 1,
10544
10534
  ref_key: "blockTree",
10545
- ref: O,
10535
+ ref: I,
10546
10536
  modelValue: D(p),
10547
10537
  "onUpdate:modelValue": g[2] || (g[2] = (G) => Ge(p) ? p.value = G : null)
10548
- }, null, 8, ["modelValue"])) : he("", !0),
10538
+ }, null, 8, ["modelValue"])) : pe("", !0),
10549
10539
  j("div", {
10550
10540
  style: W(r.value)
10551
10541
  }, null, 4)
@@ -10555,15 +10545,15 @@ const ba = /* @__PURE__ */ oe({
10555
10545
  ]),
10556
10546
  _: 1
10557
10547
  }, 8, ["modelValue"]),
10558
- S(Ct, {
10548
+ L(vt, {
10559
10549
  text: D(n)("x-block-lib.tip.hotkeyCtrlE")
10560
10550
  }, {
10561
10551
  activator: te(({ props: G }) => [
10562
- S(Y, Xt(G, {
10552
+ L(Y, jt(G, {
10563
10553
  density: "comfortable",
10564
10554
  icon: "mdi-navigation-variant",
10565
10555
  variant: "outlined",
10566
- onClick: g[7] || (g[7] = (on) => p.value = !0)
10556
+ onClick: g[7] || (g[7] = (tn) => p.value = !0)
10567
10557
  }), null, 16)
10568
10558
  ]),
10569
10559
  _: 1
@@ -10571,7 +10561,7 @@ const ba = /* @__PURE__ */ oe({
10571
10561
  ], 64);
10572
10562
  };
10573
10563
  }
10574
- }), Pt = {
10564
+ }), Dt = {
10575
10565
  grid: {
10576
10566
  length: 2,
10577
10567
  snap: !0,
@@ -10598,19 +10588,19 @@ const ba = /* @__PURE__ */ oe({
10598
10588
  }
10599
10589
  };
10600
10590
  function Ka(e, t, n, o) {
10601
- Pt.theme = o ? "dark" : "light", Pt.toolbox = $a(t, n);
10602
- const i = yo(e, Pt);
10603
- return i.addChangeListener(No.shadowBlockConversionChangeListener), Ha(i, t, n), Ga(i), i;
10591
+ Dt.theme = o ? "dark" : "light", Dt.toolbox = $a(t, n);
10592
+ const i = yo(e, Dt);
10593
+ return i.addChangeListener(ko.shadowBlockConversionChangeListener), Ha(i, t, n), Ga(i), i;
10604
10594
  }
10605
10595
  function $a(e, t) {
10606
10596
  let n;
10607
- return e === "page" ? t === "v1" && (n = Sa) : e === "comp" ? t === "v1" && (n = ka) : e === "func" ? t === "v1" && (n = Na) : e === "flow" ? t === "v1" && (n = ya) : e === "json" && t === "v1" && (n = La), console.assert(!!n, `invalid toolbox type=${e} version=${t}`), n;
10597
+ return e === "page" ? t === "v1" && (n = La) : e === "comp" ? t === "v1" && (n = ya) : e === "func" ? t === "v1" && (n = Na) : e === "flow" ? t === "v1" && (n = ka) : e === "json" && t === "v1" && (n = Sa), console.assert(!!n, `invalid toolbox type=${e} version=${t}`), n;
10608
10598
  }
10609
10599
  function Ha(e, t, n) {
10610
10600
  function o({ name: i, callback: a }) {
10611
10601
  e.registerToolboxCategoryCallback(i, () => a(t));
10612
10602
  }
10613
- t === "page" || t === "comp" ? n === "v1" && (o(et), o(tt), o(ot), o(st), o(nt), o(ce), o(ae), o(it), o(Ze)) : t === "func" ? n === "v1" && (o(lt), o(ct), o(at), o(ut), o(ce), o(ae)) : t === "flow" && n === "v1" && (o(lt), o(ct), o(at), o(ut), o(ce), o(ae));
10603
+ t === "page" || t === "comp" ? n === "v1" && (o(tt), o(nt), o(it), o(at), o(ot), o(se), o(ie), o(st), o(et)) : t === "func" ? n === "v1" && (o(ut), o(lt), o(ct), o(rt), o(se), o(ie)) : t === "flow" && n === "v1" && (o(ut), o(lt), o(ct), o(rt), o(se), o(ie));
10614
10604
  }
10615
10605
  function Ga(e) {
10616
10606
  const { router: t } = X;
@@ -10659,8 +10649,8 @@ function Wa(e, t) {
10659
10649
  r.push(p);
10660
10650
  u.initData(r);
10661
10651
  for (let p = 0; p < r.length; p++) {
10662
- const A = r[p], O = u.getInput("ENTRY" + p);
10663
- o(i[A], O.connection);
10652
+ const A = r[p], I = u.getInput("ENTRY" + p);
10653
+ o(i[A], I.connection);
10664
10654
  }
10665
10655
  } else if (l === "json_array_v1") {
10666
10656
  u.initData(i.length);
@@ -10706,7 +10696,7 @@ function ja(e) {
10706
10696
  }
10707
10697
  const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10708
10698
  __name: "index",
10709
- props: /* @__PURE__ */ Rt({
10699
+ props: /* @__PURE__ */ Mt({
10710
10700
  type: {},
10711
10701
  version: {},
10712
10702
  locale: {},
@@ -10717,9 +10707,9 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10717
10707
  scale: { required: !0 },
10718
10708
  scaleModifiers: {}
10719
10709
  }),
10720
- emits: /* @__PURE__ */ Rt(["ready"], ["update:lock", "update:scale"]),
10710
+ emits: /* @__PURE__ */ Mt(["ready"], ["update:lock", "update:scale"]),
10721
10711
  setup(e, { expose: t, emit: n }) {
10722
- const { backgroundColor2: o } = Ye(), i = Ue(e, "lock"), a = Ue(e, "scale"), l = n, u = `blocklyEditor${Dt()}`, r = Ae(), p = Pe("parentContainer"), A = Pe("clean"), O = Pe("navigator"), m = {};
10712
+ const { backgroundColor2: o } = Ye(), i = Ue(e, "lock"), a = Ue(e, "scale"), l = n, u = `blocklyEditor${Ut()}`, r = Ae(), p = Re("parentContainer"), A = Re("clean"), I = Re("navigator"), m = {};
10723
10713
  Ba(m);
10724
10714
  const C = Ae(!0), g = Ae(!1), R = w(() => e.type === "json" ? "tree" : "list"), Y = w(() => ({
10725
10715
  width: "100%",
@@ -10730,7 +10720,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10730
10720
  bottom: "0px",
10731
10721
  width: "100%",
10732
10722
  height: "48px"
10733
- })), _e = w(() => ({
10723
+ })), re = w(() => ({
10734
10724
  position: "absolute",
10735
10725
  background: e.dark ? "#0000007f" : "#ffffff7f",
10736
10726
  top: "1px",
@@ -10738,7 +10728,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10738
10728
  width: "56px",
10739
10729
  height: "calc(100% - 49px)",
10740
10730
  zIndex: 999
10741
- })), Ct = w(() => ({
10731
+ })), vt = w(() => ({
10742
10732
  position: "absolute",
10743
10733
  top: "0px",
10744
10734
  right: "0px",
@@ -10751,7 +10741,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10751
10741
  width: "100%",
10752
10742
  height: "calc(100% - 48px)",
10753
10743
  pointerEvents: "none"
10754
- })), on = w(() => ({
10744
+ })), tn = w(() => ({
10755
10745
  position: "absolute",
10756
10746
  background: e.dark ? "#0000007f" : "#ffffff7f",
10757
10747
  top: "1px",
@@ -10759,101 +10749,101 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10759
10749
  width: "56px",
10760
10750
  height: "calc(100% - 49px)",
10761
10751
  zIndex: 999
10762
- })), qn = w(() => ({
10752
+ })), Jn = w(() => ({
10763
10753
  position: "fixed",
10764
10754
  top: 0,
10765
10755
  left: 0,
10766
10756
  zIndex: 3e3
10767
- })), { open: Le } = qt(`blocklyEditorFlyout${Dt()}`);
10768
- ln(async () => {
10757
+ })), { open: Le } = Xt(`blocklyEditorFlyout${Ut()}`);
10758
+ an(async () => {
10769
10759
  if (!r.value || !p.value) {
10770
10760
  console.assert(!1);
10771
10761
  return;
10772
10762
  }
10773
- Lo(p.value), await gn(e.locale), m.workspace = Ka(r.value, e.type, e.version, e.dark), m.workspace.addChangeListener(E.disableOrphans), m.workspace.addChangeListener(Qn);
10774
- const y = document.querySelector(`#${u} .blocklyFlyout`);
10775
- new MutationObserver((vt) => {
10776
- vt.forEach(($e) => {
10763
+ No(p.value), await En(e.locale), m.workspace = Ka(r.value, e.type, e.version, e.dark), m.workspace.addChangeListener(E.disableOrphans), m.workspace.addChangeListener(qn);
10764
+ const k = document.querySelector(`#${u} .blocklyFlyout`);
10765
+ new MutationObserver((yt) => {
10766
+ yt.forEach(($e) => {
10777
10767
  $e.type === "attributes" && $e.attributeName === "style" && (Le.value = m.workspace.getFlyout().isVisible());
10778
10768
  });
10779
- }).observe(y, { attributes: !0 }), Le.value = m.workspace.getFlyout().isVisible(), sn(), an(), await _o(), l("ready");
10780
- }), po(() => {
10769
+ }).observe(k, { attributes: !0 }), Le.value = m.workspace.getFlyout().isVisible(), nn(), on(), await ro(), l("ready");
10770
+ }), _o(() => {
10781
10771
  Le.value = !1;
10782
10772
  }), So(r, () => {
10783
- m.workspace && Bo(m.workspace);
10773
+ m.workspace && Lo(m.workspace);
10784
10774
  });
10785
- async function Qn(y) {
10786
- if (y.type === E.FINISHED_LOADING) {
10787
- Wn(), setTimeout(() => {
10788
- O.value?.update();
10775
+ async function qn(k) {
10776
+ if (k.type === E.FINISHED_LOADING) {
10777
+ Gn(), setTimeout(() => {
10778
+ I.value?.update();
10789
10779
  }, 0), C.value = !1;
10790
10780
  return;
10791
10781
  }
10792
10782
  if (!C.value) {
10793
- if (y.type === E.VIEWPORT_CHANGE) {
10783
+ if (k.type === E.VIEWPORT_CHANGE) {
10794
10784
  a.value = m.workspace.getScale();
10795
10785
  return;
10796
10786
  }
10797
- y.type === E.BLOCK_DRAG && (y.isStart ? g.value = !0 : g.value = !1), setTimeout(() => {
10798
- O.value?.update();
10787
+ k.type === E.BLOCK_DRAG && (k.isStart ? g.value = !0 : g.value = !1), setTimeout(() => {
10788
+ I.value?.update();
10799
10789
  }, 0);
10800
10790
  }
10801
10791
  }
10802
- const zn = (y) => {
10803
- C.value = !0, e.type === "json" ? Wa(y, m.workspace) : $.workspaces.load(y, m.workspace);
10804
- }, Zn = () => e.type === "json" ? ja(m.workspace) : $.workspaces.save(m.workspace), eo = () => {
10792
+ const Qn = (k) => {
10793
+ C.value = !0, e.type === "json" ? Wa(k, m.workspace) : $.workspaces.load(k, m.workspace);
10794
+ }, zn = () => e.type === "json" ? ja(m.workspace) : $.workspaces.save(m.workspace), Zn = () => {
10805
10795
  if (e.type === "json")
10806
10796
  console.assert(!1);
10807
10797
  else
10808
10798
  return s.workspaceToCode(m.workspace);
10809
- }, sn = () => {
10799
+ }, nn = () => {
10810
10800
  m.workspace.setIsReadOnly(i.value), m.workspace.isReadOnly() && (Le.value = !1);
10811
- }, an = () => {
10801
+ }, on = () => {
10812
10802
  m.workspace.setScale(a.value);
10813
- }, to = () => {
10803
+ }, eo = () => {
10814
10804
  m.workspace.fireChangeListener(new Bn());
10815
- }, cn = (y) => {
10816
- if (y.key === "q" && y.ctrlKey) {
10817
- no();
10805
+ }, sn = (k) => {
10806
+ if (k.key === "q" && k.ctrlKey) {
10807
+ to();
10818
10808
  return;
10819
10809
  }
10820
- if (y.key === "w" && y.ctrlKey) {
10821
- oo();
10810
+ if (k.key === "w" && k.ctrlKey) {
10811
+ no();
10822
10812
  return;
10823
10813
  }
10824
- if (y.key === "e" && y.ctrlKey) {
10825
- io();
10814
+ if (k.key === "e" && k.ctrlKey) {
10815
+ oo();
10826
10816
  return;
10827
10817
  }
10828
- }, no = () => {
10818
+ }, to = () => {
10829
10819
  A.value?.cleanWorkspace();
10830
- }, oo = () => {
10820
+ }, no = () => {
10831
10821
  i.value = !i.value;
10832
- }, io = () => {
10833
- O.value && (O.value.open = !0);
10822
+ }, oo = () => {
10823
+ I.value && (I.value.open = !0);
10834
10824
  };
10835
- return ln(() => {
10836
- window.addEventListener("keydown", cn, !1);
10837
- }), In(() => {
10838
- window.removeEventListener("keydown", cn, !1);
10839
- }), Se(
10825
+ return an(() => {
10826
+ window.addEventListener("keydown", sn, !1);
10827
+ }), An(() => {
10828
+ window.removeEventListener("keydown", sn, !1);
10829
+ }), Be(
10840
10830
  () => e.locale,
10841
- (y) => {
10842
- gn(y);
10831
+ (k) => {
10832
+ En(k);
10843
10833
  }
10844
- ), Se(
10834
+ ), Be(
10845
10835
  () => e.dark,
10846
- (y) => {
10847
- va(y ? "dark" : "light");
10848
- }
10849
- ), Se(Le, (y) => {
10850
- y || m.workspace?.hideChaff();
10851
- }), Se(i, () => {
10852
- sn();
10853
- }), Se(a, () => {
10854
- an();
10855
- }), t({ loading: C, load: zn, save: Zn, generateCode: eo, fireStateChange: to }), (y, pe) => {
10856
- const vt = M("v-icon"), $e = M("x-loading");
10836
+ (k) => {
10837
+ va(k ? "dark" : "light");
10838
+ }
10839
+ ), Be(Le, (k) => {
10840
+ k || m.workspace?.hideChaff();
10841
+ }), Be(i, () => {
10842
+ nn();
10843
+ }), Be(a, () => {
10844
+ on();
10845
+ }), t({ loading: C, load: Qn, save: zn, generateCode: Zn, fireStateChange: eo }), (k, _e) => {
10846
+ const yt = M("v-icon"), $e = M("x-loading");
10857
10847
  return b(), z("div", Xa, [
10858
10848
  j("div", {
10859
10849
  id: u,
@@ -10864,53 +10854,53 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10864
10854
  j("div", {
10865
10855
  style: W(Q.value)
10866
10856
  }, [
10867
- ho(y.$slots, "bottom")
10857
+ po(k.$slots, "bottom")
10868
10858
  ], 4),
10869
10859
  g.value ? (b(), z("div", {
10870
10860
  key: 0,
10871
10861
  class: "d-flex flex-column justify-center align-center",
10872
- style: W(_e.value)
10862
+ style: W(re.value)
10873
10863
  }, [
10874
- S(vt, {
10864
+ L(yt, {
10875
10865
  icon: "mdi-delete",
10876
10866
  size: "x-large"
10877
10867
  })
10878
- ], 4)) : he("", !0),
10879
- C.value ? he("", !0) : (b(), z("div", {
10868
+ ], 4)) : pe("", !0),
10869
+ C.value ? pe("", !0) : (b(), z("div", {
10880
10870
  key: 1,
10881
10871
  class: "d-flex align-end ga-3 pt-3 pr-3",
10882
- style: W(Ct.value)
10872
+ style: W(vt.value)
10883
10873
  }, [
10884
- S(ba, {
10874
+ L(ba, {
10885
10875
  ref_key: "clean",
10886
10876
  ref: A,
10887
10877
  lock: i.value
10888
10878
  }, null, 8, ["lock"]),
10889
- S(Pa, {
10879
+ L(Pa, {
10890
10880
  modelValue: i.value,
10891
- "onUpdate:modelValue": pe[0] || (pe[0] = (so) => i.value = so)
10881
+ "onUpdate:modelValue": _e[0] || (_e[0] = (io) => i.value = io)
10892
10882
  }, null, 8, ["modelValue"]),
10893
- S(wa, {
10883
+ L(wa, {
10894
10884
  ref_key: "navigator",
10895
- ref: O,
10885
+ ref: I,
10896
10886
  lock: i.value,
10897
10887
  type: R.value
10898
10888
  }, null, 8, ["lock", "type"])
10899
10889
  ], 4)),
10900
10890
  i.value ? (b(), z("div", {
10901
10891
  key: 2,
10902
- style: W(on.value)
10903
- }, null, 4)) : he("", !0),
10892
+ style: W(tn.value)
10893
+ }, null, 4)) : pe("", !0),
10904
10894
  i.value ? (b(), z("div", {
10905
10895
  key: 3,
10906
10896
  style: W(G.value)
10907
- }, null, 4)) : he("", !0),
10897
+ }, null, 4)) : pe("", !0),
10908
10898
  j("div", {
10909
10899
  ref_key: "parentContainer",
10910
10900
  ref: p,
10911
- style: W(qn.value)
10901
+ style: W(Jn.value)
10912
10902
  }, null, 4),
10913
- S($e, {
10903
+ L($e, {
10914
10904
  open: C.value,
10915
10905
  "z-index": 99
10916
10906
  }, null, 8, ["open"])
@@ -10924,8 +10914,8 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10924
10914
  },
10925
10915
  setup(e) {
10926
10916
  const t = e;
10927
- bo.registerLanguage("javascript", Po);
10928
- const n = Ro.component, { backgroundColor2: o } = Ye();
10917
+ Bo.registerLanguage("javascript", bo);
10918
+ const n = Po.component, { backgroundColor2: o } = Ye();
10929
10919
  return (i, a) => {
10930
10920
  const l = M("v-sheet");
10931
10921
  return b(), ee(l, {
@@ -10934,7 +10924,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10934
10924
  width: "100%"
10935
10925
  }, {
10936
10926
  default: te(() => [
10937
- S(D(n), {
10927
+ L(D(n), {
10938
10928
  code: t.code,
10939
10929
  language: "js"
10940
10930
  }, null, 8, ["code"])
@@ -10946,7 +10936,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10946
10936
  }), Qa = { class: "text-subtitle-1" }, za = { class: "w-100 h-100 overflow-auto" }, Za = /* @__PURE__ */ oe({
10947
10937
  __name: "index",
10948
10938
  setup(e) {
10949
- const { t } = we(), { sysBarAvail: n } = Sn(), { backgroundColor0: o, backgroundColor2: i } = Ye(), a = Ae(""), l = w(() => {
10939
+ const { t } = we(), { sysBarAvail: n } = Ln(), { backgroundColor0: o, backgroundColor2: i } = Ye(), a = Ae(""), l = w(() => {
10950
10940
  let p = 48;
10951
10941
  return n.value && (p += 24), {
10952
10942
  position: "relative",
@@ -10954,9 +10944,9 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10954
10944
  };
10955
10945
  }), u = (p) => {
10956
10946
  a.value = p.code;
10957
- }, { open: r } = qt("sourceDlg", u);
10947
+ }, { open: r } = Xt("sourceDlg", u);
10958
10948
  return (p, A) => {
10959
- const O = M("v-sheet"), m = M("v-btn"), C = M("v-spacer"), g = M("v-dialog");
10949
+ const I = M("v-sheet"), m = M("v-btn"), C = M("v-spacer"), g = M("v-dialog");
10960
10950
  return b(), ee(g, {
10961
10951
  modelValue: D(r),
10962
10952
  "onUpdate:modelValue": A[1] || (A[1] = (R) => Ge(r) ? r.value = R : null),
@@ -10964,34 +10954,34 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10964
10954
  "no-click-animation": "",
10965
10955
  persistent: "",
10966
10956
  transition: "dialog-bottom-transition",
10967
- onKeydown: A[2] || (A[2] = On(be((R) => r.value = !1, ["stop", "prevent"]), ["esc"]))
10957
+ onKeydown: A[2] || (A[2] = In(Pe((R) => r.value = !1, ["stop", "prevent"]), ["esc"]))
10968
10958
  }, {
10969
10959
  default: te(() => [
10970
- S(O, {
10960
+ L(I, {
10971
10961
  color: D(o),
10972
10962
  height: "100%",
10973
10963
  width: "100%"
10974
10964
  }, {
10975
10965
  default: te(() => [
10976
- D(n) ? (b(), ee(O, {
10966
+ D(n) ? (b(), ee(I, {
10977
10967
  key: 0,
10978
10968
  color: D(i),
10979
10969
  height: 24
10980
- }, null, 8, ["color"])) : he("", !0),
10981
- S(O, {
10970
+ }, null, 8, ["color"])) : pe("", !0),
10971
+ L(I, {
10982
10972
  class: "d-flex align-center px-2",
10983
10973
  color: D(i),
10984
10974
  height: 48
10985
10975
  }, {
10986
10976
  default: te(() => [
10987
- S(m, {
10977
+ L(m, {
10988
10978
  density: "comfortable",
10989
10979
  icon: "mdi-close",
10990
10980
  variant: "text",
10991
10981
  onClick: A[0] || (A[0] = (R) => r.value = !1)
10992
10982
  }),
10993
- j("span", Qa, rt(D(t)("x-block-lib.dlg.source.title")), 1),
10994
- S(C)
10983
+ j("span", Qa, _t(D(t)("x-block-lib.dlg.source.title")), 1),
10984
+ L(C)
10995
10985
  ]),
10996
10986
  _: 1
10997
10987
  }, 8, ["color"]),
@@ -10999,7 +10989,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
10999
10989
  style: W(l.value)
11000
10990
  }, [
11001
10991
  j("div", za, [
11002
- S(qa, { code: a.value }, null, 8, ["code"])
10992
+ L(qa, { code: a.value }, null, 8, ["code"])
11003
10993
  ])
11004
10994
  ], 4)
11005
10995
  ]),
@@ -11014,7 +11004,7 @@ const Xa = { class: "position-relative w-100 h-100" }, Ja = /* @__PURE__ */ oe({
11014
11004
  e.component("XBlockly", Ja), e.component("XSourceDlg", Za);
11015
11005
  };
11016
11006
  async function lc(e) {
11017
- return (await Gn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.j5qa8fnp.js") }), `./locales/${e}/index.ts`, 4)).default;
11007
+ return (await Hn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.j5qa8fnp.js") }), `./locales/${e}/index.ts`, 4)).default;
11018
11008
  }
11019
11009
  const uc = { install: ec };
11020
11010
  export {