x-block-lib 0.7.12 → 0.7.14

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
@@ -6,11 +6,11 @@
6
6
  Website: https://highlightjs.org/
7
7
  License: see project LICENSE
8
8
  Touched: 2021
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:10px!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 Zn, inject as eo, defineComponent as oe, resolveComponent as P, createBlock as Z, openBlock as D, unref as V, withCtx as ee, createVNode as B, mergeProps as Yt, useModel as Me, ref as Ae, computed as K, resolveDirective as to, withDirectives as no, createElementBlock as Q, normalizeStyle as W, createElementVNode as j, toDisplayString as at, withModifiers as Be, mergeModels as bt, Fragment as _n, renderList as oo, useId as Bt, onUnmounted as pn, useTemplateRef as Re, withKeys as hn, isRef as Je, createCommentVNode as me, onMounted as zt, nextTick as io, onBeforeUnmount as so, watch as Se, renderSlot as ao } from "vue";
11
- import { d as h, j as s, O as c, f as co, F as dn, M as _, E, r as Zt, u as v, s as lo, X as he, B as d, i as U, a as k, c as De, b as Rt, e as $, g as Te, h as re, p as Ue, k as z, l as en, m as R, C as fn, N as te, n as uo, P as Dt, V as ge, o as Ye, q as mn, t as ro, v as _o, w as po, S as ho, x as fo, y as mo, T as ct, z as Tn, A as To, D as Eo, G as En, H as go, I as Ao, J as Io, K as Oo, L as Co, Q as ko, R as vo, U as yo } from "./vendor.btniuih9.js";
12
- import { globalObjects as ie, openConfirmDlg as No, openPromptDlg as Lo, messageWarning as gn, useColor as Ke, useSystem as An, useViewStack as Kt } from "x-essential-lib";
13
- import { elements as x, pkgs as Ve, getPropTag as lt, parsePixelStr as So, parsePercentStr as bo } from "x-runtime-lib";
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:18px!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 Zn, inject as eo, defineComponent as oe, resolveComponent as V, createBlock as Z, openBlock as D, unref as P, withCtx as ee, createVNode as B, mergeProps as Yt, useModel as Me, ref as Ie, computed as K, resolveDirective as to, withDirectives as no, createElementBlock as Q, normalizeStyle as W, createElementVNode as j, toDisplayString as at, withModifiers as Be, mergeModels as bt, Fragment as _n, renderList as oo, useId as Bt, onUnmounted as pn, useTemplateRef as Re, withKeys as hn, isRef as Je, createCommentVNode as me, onMounted as zt, nextTick as io, onBeforeUnmount as so, watch as Se, renderSlot as ao } from "vue";
11
+ import { d as h, j as s, O as c, f as co, F as dn, M as _, E, r as Zt, u as v, s as lo, X as he, B as d, i as U, a as k, c as De, b as Rt, e as $, g as Te, h as re, p as Ue, k as z, l as en, m as R, C as fn, N as te, n as uo, P as Dt, V as ge, o as Ye, q as mn, t as ro, v as _o, w as po, S as ho, x as fo, y as mo, T as ct, z as Tn, A as To, D as Eo, G as En, H as go, I as Io, J as Ao, K as Oo, L as Co, Q as ko, R as vo, U as yo } from "./vendor.gwcdj52j.js";
12
+ import { globalObjects as ie, openConfirmDlg as No, openPromptDlg as Lo, messageWarning as gn, useColor as Ke, useSystem as In, useViewStack as Kt } from "x-essential-lib";
13
+ import { elements as x, pkgs as Pe, getPropTag as lt, parsePixelStr as So, parsePercentStr as bo } from "x-runtime-lib";
14
14
  import { globalState as T } from "x-state-lib";
15
15
  import { useI18n as $e } from "vue-i18n";
16
16
  import { useDisplay as Bo } from "vuetify";
@@ -117,15 +117,15 @@ class m extends dn {
117
117
  }
118
118
  co.register("field_dropdown2", m);
119
119
  var L = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(L || {});
120
- class In extends E.Abstract {
120
+ class An extends E.Abstract {
121
121
  isBlank = !0;
122
122
  }
123
123
  Zt.register(
124
124
  Zt.Type.EVENT,
125
125
  "state_change",
126
- In
126
+ An
127
127
  );
128
- const Ie = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Qe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
128
+ const Ae = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", Qe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
129
129
  function ut(t) {
130
130
  const e = t.lastIndexOf("V");
131
131
  if (e <= 0 || e >= t.length - 1)
@@ -229,7 +229,7 @@ function F(t, e) {
229
229
  }
230
230
  function He(t) {
231
231
  const { version: e } = T.app.activeObject;
232
- if (!Ve[e])
232
+ if (!Pe[e])
233
233
  return console.assert(!1, "invalid pkg version", e), [];
234
234
  const o = [];
235
235
  for (const i in x) {
@@ -279,7 +279,7 @@ function Uo(t) {
279
279
  e.push([_[i] ?? i, o]);
280
280
  }), N(e);
281
281
  }
282
- function Pe(t, e) {
282
+ function Ve(t, e) {
283
283
  const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, a = lt(o, i);
284
284
  if (!a)
285
285
  return console.assert(!1, "invalid prop tag", o, i), [];
@@ -300,7 +300,7 @@ function se(t, e) {
300
300
  }
301
301
  function vn(t, e) {
302
302
  const { i18n: n } = ie, o = [];
303
- return Pe(t, e).forEach(({ keys: a, names: l }) => {
303
+ return Ve(t, e).forEach(({ keys: a, names: l }) => {
304
304
  let u = "";
305
305
  l.forEach((r, p) => {
306
306
  p !== 0 && (u += " - "), u += n.global.t(r);
@@ -339,7 +339,7 @@ function Ge(t) {
339
339
  l && (r += ` / ${l}`), n.push([r, i]);
340
340
  }), N(n);
341
341
  }
342
- function Vt(t) {
342
+ function Pt(t) {
343
343
  const e = w(t);
344
344
  if (!e)
345
345
  return [];
@@ -359,11 +359,11 @@ function kt(t, e) {
359
359
  }
360
360
  function Mo(t) {
361
361
  const e = [];
362
- return Vt(t).forEach(({ key: o, name: i }) => {
362
+ return Pt(t).forEach(({ key: o, name: i }) => {
363
363
  e.push([_[i] ?? i, o]);
364
364
  }), N(e);
365
365
  }
366
- function Pt(t) {
366
+ function Vt(t) {
367
367
  const e = w(t);
368
368
  if (!e)
369
369
  return [];
@@ -381,9 +381,9 @@ function vt(t, e) {
381
381
  }
382
382
  return o.methods.find((i) => i.key === e);
383
383
  }
384
- function Vo(t) {
384
+ function Po(t) {
385
385
  const e = [];
386
- return Pt(t).forEach(({ key: o, name: i }) => {
386
+ return Vt(t).forEach(({ key: o, name: i }) => {
387
387
  e.push([_[i] ?? i, o]);
388
388
  }), N(e);
389
389
  }
@@ -415,7 +415,7 @@ function yn(t, e) {
415
415
  }), o.push([u, a]);
416
416
  }), N(o);
417
417
  }
418
- const Po = {
418
+ const Vo = {
419
419
  init: function() {
420
420
  this.node = {
421
421
  id: "",
@@ -437,7 +437,7 @@ const Po = {
437
437
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
438
438
  const e = this.getField("NODE");
439
439
  e.getOptions(!1), e.setValue(this.node.id);
440
- const n = Pt(this.node.id)?.[0];
440
+ const n = Vt(this.node.id)?.[0];
441
441
  if (!n)
442
442
  return;
443
443
  this.method.key = n.key, this.method.name = n.name, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -459,7 +459,7 @@ const Po = {
459
459
  return Ge("method");
460
460
  },
461
461
  genMethodOpts_: function() {
462
- return Vo(this.node.id);
462
+ return Po(this.node.id);
463
463
  },
464
464
  genElementOpts_: function() {
465
465
  return ve();
@@ -486,7 +486,7 @@ const Po = {
486
486
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
487
487
  const o = this.getField("METHOD");
488
488
  if (o.getOptions(!1), n || !vt(this.node.id, this.method.key)) {
489
- const a = Pt(this.node.id)?.[0]?.key ?? "";
489
+ const a = Vt(this.node.id)?.[0]?.key ?? "";
490
490
  o.setValue(a), this.method.key === a && this.onMethodChange_(a);
491
491
  }
492
492
  },
@@ -552,7 +552,7 @@ const Po = {
552
552
  checkWarning_: function() {
553
553
  const t = w(this.node.id);
554
554
  if (!t) {
555
- this.setWarningText(_.WARN_NODE_NOT_AVAILABLE);
555
+ this.setWarningText(_.WARN_NODE_NOT_FOUND);
556
556
  return;
557
557
  }
558
558
  if (t.key !== this.node.key) {
@@ -562,7 +562,7 @@ const Po = {
562
562
  t.alias !== this.node.alias && (this.node.alias = t.alias);
563
563
  const e = vt(this.node.id, this.method.key);
564
564
  if (!e) {
565
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
565
+ this.setWarningText(_.WARN_METHOD_NOT_FOUND);
566
566
  return;
567
567
  }
568
568
  if (e.name !== this.method.name && (this.method.name = e.name), !U(e.inputs, this.method.inputs) || !U(e.outputs, this.method.outputs)) {
@@ -572,7 +572,7 @@ const Po = {
572
572
  this.setWarningText(null);
573
573
  }
574
574
  };
575
- d.call_node_method_v1 = Po;
575
+ d.call_node_method_v1 = Vo;
576
576
  s.forBlock.call_node_method_v1 = function(t) {
577
577
  const e = s.quote_, n = t;
578
578
  let o = n.node.id;
@@ -725,13 +725,13 @@ const xo = {
725
725
  checkWarning_: function() {
726
726
  const t = _e(this.element.key);
727
727
  if (!t) {
728
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
728
+ this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
729
729
  return;
730
730
  }
731
731
  this.element.name !== t.name && (this.element.name = t.name);
732
732
  const e = Ct(this.element.key, this.method.key);
733
733
  if (!e) {
734
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
734
+ this.setWarningText(_.WARN_METHOD_NOT_FOUND);
735
735
  return;
736
736
  }
737
737
  if (e.name !== this.method.name && (this.method.name = e.name), !U(this.method.inputs, e.inputs) || !U(this.method.outputs, e.outputs)) {
@@ -881,7 +881,7 @@ const Ko = {
881
881
  checkWarning_: function() {
882
882
  const t = ze(this.method.id);
883
883
  if (!t) {
884
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
884
+ this.setWarningText(_.WARN_METHOD_NOT_FOUND);
885
885
  return;
886
886
  }
887
887
  if (t.name !== this.method.name && (this.method.name = t.name), !U(t.inputs, this.method.inputs)) {
@@ -918,8 +918,8 @@ const $o = (t, e) => {
918
918
  return [a(l), c.ATOMIC];
919
919
  };
920
920
  };
921
- for (const t in Ve) {
922
- const e = Ve[t];
921
+ for (const t in Pe) {
922
+ const e = Pe[t];
923
923
  for (const n in e.items)
924
924
  $o(n, e.items[n]);
925
925
  }
@@ -984,8 +984,8 @@ const Ho = (t, e) => {
984
984
  l.min,
985
985
  l.max,
986
986
  l.precision ? 1 / Math.pow(10, l.precision) : null,
987
- (A) => {
988
- this.value = A + "px";
987
+ (I) => {
988
+ this.value = I + "px";
989
989
  }
990
990
  ), r = "px";
991
991
  } else if (l.ui === "percentInput") {
@@ -995,8 +995,8 @@ const Ho = (t, e) => {
995
995
  l.min,
996
996
  l.max,
997
997
  l.precision ? 1 / Math.pow(10, l.precision) : null,
998
- (A) => {
999
- this.value = A + "%";
998
+ (I) => {
999
+ this.value = I + "%";
1000
1000
  }
1001
1001
  ), r = "%";
1002
1002
  }
@@ -1005,7 +1005,7 @@ const Ho = (t, e) => {
1005
1005
  checkWarning_: function() {
1006
1006
  let i = this.value;
1007
1007
  if (i || (i = void 0), !e.find((l) => l.validator(i))) {
1008
- this.setWarningText(_.WARN_TYPE_NOT_AVAILABLE);
1008
+ this.setWarningText(_.WARN_TYPE_NOT_FOUND);
1009
1009
  return;
1010
1010
  }
1011
1011
  this.setWarningText(null);
@@ -1015,8 +1015,8 @@ const Ho = (t, e) => {
1015
1015
  return [a(i.value), c.ATOMIC];
1016
1016
  };
1017
1017
  };
1018
- for (const t in Ve) {
1019
- const e = Ve[t];
1018
+ for (const t in Pe) {
1019
+ const e = Pe[t];
1020
1020
  for (const n in e.types)
1021
1021
  Ho(n, e.types[n]);
1022
1022
  }
@@ -1074,7 +1074,7 @@ const Go = {
1074
1074
  checkWarning_: function() {
1075
1075
  const t = w(this.node.id);
1076
1076
  if (!t) {
1077
- this.setWarningText(_.WARN_NODE_NOT_AVAIALABLE);
1077
+ this.setWarningText(_.WARN_NODE_NOT_FOUND);
1078
1078
  return;
1079
1079
  }
1080
1080
  if (this.node.key !== t.key) {
@@ -1166,7 +1166,7 @@ const Wo = {
1166
1166
  checkWarning_: function() {
1167
1167
  const t = w(this.node.id);
1168
1168
  if (!t) {
1169
- this.setWarningText(_.WARN_NODE_NOT_AVAIALABLE);
1169
+ this.setWarningText(_.WARN_NODE_NOT_FOUND);
1170
1170
  return;
1171
1171
  }
1172
1172
  if (t.key !== this.node.key) {
@@ -1176,7 +1176,7 @@ const Wo = {
1176
1176
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1177
1177
  const e = ae(this.node.id, this.prop.keys);
1178
1178
  if (!e) {
1179
- this.setWarningText(_.WARN_PROP_NOT_AVAIALABLE);
1179
+ this.setWarningText(_.WARN_PROP_NOT_FOUND);
1180
1180
  return;
1181
1181
  }
1182
1182
  U(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -1206,7 +1206,7 @@ const jo = {
1206
1206
  this.element.key = t.key, this.element.name = t.name;
1207
1207
  const e = this.getField("ELEMENT");
1208
1208
  e.getOptions(!1), e.setValue(this.element.key);
1209
- const n = Pe(this.element.key)?.[0];
1209
+ const n = Ve(this.element.key)?.[0];
1210
1210
  if (!n)
1211
1211
  return;
1212
1212
  this.prop.keys = n.keys, this.prop.names = De(n.names);
@@ -1252,7 +1252,7 @@ const jo = {
1252
1252
  this.element.key = e.key, this.element.name = e.name;
1253
1253
  const o = this.getField("PROP");
1254
1254
  if (o.getOptions(!1), n || !se(this.element.key, this.prop.keys)) {
1255
- const a = Pe(this.element.key)?.[0]?.keys ?? "";
1255
+ const a = Ve(this.element.key)?.[0]?.keys ?? "";
1256
1256
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
1257
1257
  }
1258
1258
  },
@@ -1263,13 +1263,13 @@ const jo = {
1263
1263
  checkWarning_: function() {
1264
1264
  const t = _e(this.element.key);
1265
1265
  if (!t) {
1266
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
1266
+ this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
1267
1267
  return;
1268
1268
  }
1269
1269
  this.element.name !== t.name && (this.element.name = t.name);
1270
1270
  const e = se(this.element.key, this.prop.keys);
1271
1271
  if (!e) {
1272
- this.setWarningText(_.WARN_PROP_NOT_AVAILABLE);
1272
+ this.setWarningText(_.WARN_PROP_NOT_FOUND);
1273
1273
  return;
1274
1274
  }
1275
1275
  U(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -1347,7 +1347,7 @@ const qo = {
1347
1347
  checkWarning_: function() {
1348
1348
  const t = on(this.argument.id);
1349
1349
  if (!t) {
1350
- this.setWarningText(_.WARN_ARGUMENT_NOT_AVAILABLE);
1350
+ this.setWarningText(_.WARN_ARGUMENT_NOT_FOUND);
1351
1351
  return;
1352
1352
  }
1353
1353
  if (t.name !== this.argument.name && (this.argument.name = t.name), t.type !== this.argument.type) {
@@ -1485,13 +1485,13 @@ const ei = {
1485
1485
  checkWarning_: function() {
1486
1486
  const t = sn(this.app.id);
1487
1487
  if (!t) {
1488
- this.setWarningText(_.WARN_APP_NOT_AVAIALABLE);
1488
+ this.setWarningText(_.WARN_APP_NOT_FOUND);
1489
1489
  return;
1490
1490
  }
1491
1491
  t.name !== this.app.name && (this.app.name = t.name);
1492
1492
  const e = Nt(this.app.id, this.page.id);
1493
1493
  if (!e) {
1494
- this.setWarningText(_.WARN_PAGE_NOT_AVAIALABLE);
1494
+ this.setWarningText(_.WARN_PAGE_NOT_FOUND);
1495
1495
  return;
1496
1496
  }
1497
1497
  e.name !== this.page.name && (this.page.name = e.name), this.setWarningText(null);
@@ -1524,7 +1524,7 @@ const ti = {
1524
1524
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1525
1525
  const e = this.getField("NODE");
1526
1526
  e.getOptions(!1), e.setValue(this.node.id);
1527
- const n = Vt(this.node.id)?.[0];
1527
+ const n = Pt(this.node.id)?.[0];
1528
1528
  if (!n)
1529
1529
  return;
1530
1530
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -1570,7 +1570,7 @@ const ti = {
1570
1570
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1571
1571
  const o = this.getField("EVENT");
1572
1572
  if (o.getOptions(!1), n || !kt(this.node.id, this.event.key)) {
1573
- const a = Vt(this.node.id)?.[0]?.key ?? "";
1573
+ const a = Pt(this.node.id)?.[0]?.key ?? "";
1574
1574
  o.setValue(a), this.event.key === a && this.onEventChange_(a);
1575
1575
  }
1576
1576
  },
@@ -1599,7 +1599,7 @@ const ti = {
1599
1599
  checkWarning_: function() {
1600
1600
  const t = w(this.node.id);
1601
1601
  if (!t) {
1602
- this.setWarningText(_.WARN_NODE_NOT_AVAILABLE);
1602
+ this.setWarningText(_.WARN_NODE_NOT_FOUND);
1603
1603
  return;
1604
1604
  }
1605
1605
  if (t.key !== this.node.key) {
@@ -1609,7 +1609,7 @@ const ti = {
1609
1609
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1610
1610
  const e = kt(this.node.id, this.event.key);
1611
1611
  if (!e) {
1612
- this.setWarningText(_.WARN_EVENT_NOT_AVAILABLE);
1612
+ this.setWarningText(_.WARN_EVENT_NOT_FOUND);
1613
1613
  return;
1614
1614
  }
1615
1615
  if (e.name !== this.event.name && (this.event.name = e.name), !U(e.params, this.event.params)) {
@@ -1726,13 +1726,13 @@ const ni = {
1726
1726
  checkWarning_: function() {
1727
1727
  const t = _e(this.element.key);
1728
1728
  if (!t) {
1729
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
1729
+ this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
1730
1730
  return;
1731
1731
  }
1732
1732
  t.name !== this.element.name && (this.element.name = t.name);
1733
1733
  const e = Ot(this.element.key, this.event.key);
1734
1734
  if (!e) {
1735
- this.setWarningText(_.WARN_EVENT_NOT_AVAILABLE);
1735
+ this.setWarningText(_.WARN_EVENT_NOT_FOUND);
1736
1736
  return;
1737
1737
  }
1738
1738
  if (e.name !== this.event.name && (this.event.name = e.name), !U(e.params, this.event.params)) {
@@ -1914,11 +1914,11 @@ const si = {
1914
1914
  },
1915
1915
  checkWarning_: function() {
1916
1916
  if (this.comp.id === void 0) {
1917
- this.setWarningText(_.WARN_COMP_NOT_AVAIALABLE);
1917
+ this.setWarningText(_.WARN_COMP_NOT_FOUND);
1918
1918
  return;
1919
1919
  }
1920
1920
  if (!an(this.comp.id)) {
1921
- this.setWarningText(_.WARN_COMP_NOT_AVAIALABLE);
1921
+ this.setWarningText(_.WARN_COMP_NOT_FOUND);
1922
1922
  return;
1923
1923
  }
1924
1924
  this.setWarningText(null);
@@ -2021,13 +2021,13 @@ const ai = {
2021
2021
  checkWarning_: function() {
2022
2022
  const t = ze(this.method.id);
2023
2023
  if (!t) {
2024
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
2024
+ this.setWarningText(_.WARN_METHOD_NOT_FOUND);
2025
2025
  return;
2026
2026
  }
2027
2027
  t.name !== this.method.name && (this.method.name = t.name);
2028
2028
  const e = yt(this.method.id, this.output.id);
2029
2029
  if (!e) {
2030
- this.setWarningText(_.WARN_OUTPUT_NOT_AVAILABLE);
2030
+ this.setWarningText(_.WARN_OUTPUT_NOT_FOUND);
2031
2031
  return;
2032
2032
  }
2033
2033
  if (e.name !== this.output.name && (this.output.name = e.name), e.type !== this.output.type) {
@@ -2160,7 +2160,7 @@ const ci = {
2160
2160
  checkWarning_: function() {
2161
2161
  const t = w(this.node.id);
2162
2162
  if (!t) {
2163
- this.setWarningText(_.WARN_NODE_NOT_AVAIALABLE);
2163
+ this.setWarningText(_.WARN_NODE_NOT_FOUND);
2164
2164
  return;
2165
2165
  }
2166
2166
  if (t.key !== this.node.key) {
@@ -2170,7 +2170,7 @@ const ci = {
2170
2170
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2171
2171
  const e = ae(this.node.id, this.prop.keys);
2172
2172
  if (!e) {
2173
- this.setWarningText(_.WARN_PROP_NOT_AVAIALABLE);
2173
+ this.setWarningText(_.WARN_PROP_NOT_FOUND);
2174
2174
  return;
2175
2175
  }
2176
2176
  U(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -2201,7 +2201,7 @@ const li = {
2201
2201
  this.element.key = t.key, this.element.name = t.name;
2202
2202
  const e = this.getField("ELEMENT");
2203
2203
  e.getOptions(!1), e.setValue(this.element.key);
2204
- const n = Pe(this.element.key, !0)?.[0];
2204
+ const n = Ve(this.element.key, !0)?.[0];
2205
2205
  if (!n)
2206
2206
  return;
2207
2207
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2247,7 +2247,7 @@ const li = {
2247
2247
  this.element.key = e.key, this.element.name = e.name;
2248
2248
  const o = this.getField("PROP");
2249
2249
  if (o.getOptions(!1), n || !se(this.element.key, this.prop.keys)) {
2250
- const a = Pe(this.element.key)?.[0]?.keys ?? "";
2250
+ const a = Ve(this.element.key)?.[0]?.keys ?? "";
2251
2251
  o.setValue(a), this.prop.keys === a && this.onPropChange_(a);
2252
2252
  }
2253
2253
  },
@@ -2277,7 +2277,7 @@ const li = {
2277
2277
  checkWarning_: function() {
2278
2278
  const t = _e(this.element.key);
2279
2279
  if (!t) {
2280
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
2280
+ this.setWarningText(_.WARN_ELEMENT_NOT_FOUND);
2281
2281
  return;
2282
2282
  }
2283
2283
  if (t.key !== this.element.key) {
@@ -2287,7 +2287,7 @@ const li = {
2287
2287
  t.name !== this.element.name && (this.element.name = t.name);
2288
2288
  const e = se(this.element.key, this.prop.keys);
2289
2289
  if (!e) {
2290
- this.setWarningText(_.WARN_PROP_NOT_AVAIALABLE);
2290
+ this.setWarningText(_.WARN_PROP_NOT_FOUND);
2291
2291
  return;
2292
2292
  }
2293
2293
  U(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -2373,7 +2373,7 @@ const ui = {
2373
2373
  checkWarning_: function() {
2374
2374
  const t = nn(this.event.id);
2375
2375
  if (!t) {
2376
- this.setWarningText(_.WARN_EVENT_NOT_AVAILABLE);
2376
+ this.setWarningText(_.WARN_EVENT_NOT_FOUND);
2377
2377
  return;
2378
2378
  }
2379
2379
  if (t.name !== this.event.name && (this.event.name = t.name), !U(t.params, this.event.params)) {
@@ -3393,13 +3393,13 @@ const fi = {
3393
3393
  checkWarning_: function() {
3394
3394
  const t = Ze(this.space.id);
3395
3395
  if (!t) {
3396
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
3396
+ this.setWarningText(_.WARN_SPACE_NOT_FOUND);
3397
3397
  return;
3398
3398
  }
3399
3399
  t.name !== this.space.name && (this.space.name = t.name);
3400
3400
  const e = Oe(this.space.id, this.func.id);
3401
3401
  if (!e) {
3402
- this.setWarningText(_.WARN_FUNC_NOT_AVAILABLE);
3402
+ this.setWarningText(_.WARN_FUNC_NOT_FOUND);
3403
3403
  return;
3404
3404
  }
3405
3405
  if (!U(e.inputs, this.func.inputs)) {
@@ -3418,19 +3418,19 @@ s.forBlock.call_func_v1 = function(t) {
3418
3418
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3419
3419
  let l = "";
3420
3420
  l += `${e}var __inputs__ = {
3421
- `, o.func.inputs.forEach(({ id: I }, f) => {
3421
+ `, o.func.inputs.forEach(({ id: A }, f) => {
3422
3422
  const C = s.valueToCode(
3423
3423
  o,
3424
3424
  "INPUT" + f,
3425
3425
  c.ATOMIC
3426
3426
  );
3427
- l += `${e}${e}${n(I)}: ${C},
3427
+ l += `${e}${e}${n(A)}: ${C},
3428
3428
  `;
3429
3429
  }), l += `${e}};`;
3430
3430
  const u = n(o.space.name + "/" + o.func.name);
3431
3431
  let r = "";
3432
- o.func.outputs.forEach(({ id: I }) => {
3433
- r += `${e}var __output_${I}__ = __result__[${n(I)}];
3432
+ o.func.outputs.forEach(({ id: A }) => {
3433
+ r += `${e}var __output_${A}__ = __result__[${n(A)}];
3434
3434
  `;
3435
3435
  });
3436
3436
  const p = s.statementToCode(o, "CALLBACK");
@@ -3575,13 +3575,13 @@ const mi = {
3575
3575
  checkWarning_: function() {
3576
3576
  const t = Ze(this.space.id);
3577
3577
  if (!t) {
3578
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
3578
+ this.setWarningText(_.WARN_SPACE_NOT_FOUND);
3579
3579
  return;
3580
3580
  }
3581
3581
  t.name !== this.space.name && (this.space.name = t.name);
3582
3582
  const e = Oe(this.space.id, this.func.id);
3583
3583
  if (!e) {
3584
- this.setWarningText(_.WARN_FUNC_NOT_AVAILABLE);
3584
+ this.setWarningText(_.WARN_FUNC_NOT_FOUND);
3585
3585
  return;
3586
3586
  }
3587
3587
  if (!U(e.inputs, this.func.inputs)) {
@@ -3600,19 +3600,19 @@ s.forBlock.call_func_internal_v1 = function(t) {
3600
3600
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3601
3601
  let l = `${e}var __inputs__ = {
3602
3602
  `;
3603
- o.func.inputs.forEach(({ id: I }, f) => {
3603
+ o.func.inputs.forEach(({ id: A }, f) => {
3604
3604
  const C = s.valueToCode(
3605
3605
  o,
3606
3606
  "INPUT" + f,
3607
3607
  c.ATOMIC
3608
3608
  );
3609
- l += `${e}${e}${n(I)}: ${C},
3609
+ l += `${e}${e}${n(A)}: ${C},
3610
3610
  `;
3611
3611
  }), l += `${e}};`;
3612
3612
  const u = o.space.name + "/" + o.func.name;
3613
3613
  let r = "";
3614
- o.func.outputs.forEach(({ id: I }) => {
3615
- r += `${e}var __output_${I}__ = __result__.outputs[${n(I)}];
3614
+ o.func.outputs.forEach(({ id: A }) => {
3615
+ r += `${e}var __output_${A}__ = __result__.outputs[${n(A)}];
3616
3616
  `;
3617
3617
  });
3618
3618
  const p = s.statementToCode(o, "CALLBACK");
@@ -3869,13 +3869,13 @@ function Lt(t, e, n) {
3869
3869
  if (a)
3870
3870
  return a.columns.find((l) => l.id === n);
3871
3871
  }
3872
- function Ai(t, e) {
3872
+ function Ii(t, e) {
3873
3873
  const n = [];
3874
3874
  return et(t, e).forEach(({ id: i, name: a }) => {
3875
3875
  n.push([a, i]);
3876
3876
  }), N(n);
3877
3877
  }
3878
- function Ii(t) {
3878
+ function Ai(t) {
3879
3879
  const e = t.getInput("TABLE").connection;
3880
3880
  if (e.targetBlock())
3881
3881
  return;
@@ -3949,7 +3949,7 @@ const Ci = {
3949
3949
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(k.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
3950
3950
  },
3951
3951
  ensureBlocks_: function() {
3952
- this.isInsertionMarker() || (Ii(this), F(this, [
3952
+ this.isInsertionMarker() || (Ai(this), F(this, [
3953
3953
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
3954
3954
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
3955
3955
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -4032,7 +4032,7 @@ const ki = {
4032
4032
  return pt(this.space.id);
4033
4033
  },
4034
4034
  genColumnOpts_: function() {
4035
- return Ai(this.space.id, this.table.id);
4035
+ return Ii(this.space.id, this.table.id);
4036
4036
  },
4037
4037
  onchange: function(t) {
4038
4038
  if (t.type === L.STATE_CHANGE)
@@ -4099,13 +4099,13 @@ const ki = {
4099
4099
  checkWarning_: function() {
4100
4100
  const t = pe(this.space.id);
4101
4101
  if (!t) {
4102
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
4102
+ this.setWarningText(_.WARN_SPACE_NOT_FOUND);
4103
4103
  return;
4104
4104
  }
4105
4105
  t.name !== this.space.name && (this.space.name = t.name);
4106
4106
  const e = X(this.space.id, this.table.id);
4107
4107
  if (!e) {
4108
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
4108
+ this.setWarningText(_.WARN_TABLE_NOT_FOUND);
4109
4109
  return;
4110
4110
  }
4111
4111
  e.name !== this.table.name && (this.table.name = e.name);
@@ -4115,7 +4115,7 @@ const ki = {
4115
4115
  this.column.id
4116
4116
  );
4117
4117
  if (!n) {
4118
- this.setWarningText(_.WARN_COLUMN_NOT_AVAILABLE);
4118
+ this.setWarningText(_.WARN_COLUMN_NOT_FOUND);
4119
4119
  return;
4120
4120
  }
4121
4121
  if (n.name !== this.column.name && (this.column.name = n.name), n.type !== this.column.type || n.extend !== this.column.extend) {
@@ -4479,7 +4479,7 @@ h([
4479
4479
  style: "procedure_blocks"
4480
4480
  }
4481
4481
  ]);
4482
- const Vi = {
4482
+ const Pi = {
4483
4483
  init: function() {
4484
4484
  this.appendDummyInput().appendField("%{BKY_DATA_V1_QUERY_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_QUERY_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_QUERY_DATA_HELPURL}");
4485
4485
  },
@@ -4503,7 +4503,7 @@ const Vi = {
4503
4503
  ]), Mi(this));
4504
4504
  }
4505
4505
  };
4506
- d.query_data_v1 = Vi;
4506
+ d.query_data_v1 = Pi;
4507
4507
  s.forBlock.query_data_v1 = function(t) {
4508
4508
  const e = s.INDENT, n = s.valueToCode(t, "TABLE", c.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", c.ATOMIC) || "null", i = s.valueToCode(t, "EXTRA", c.ATOMIC) || "null", a = s.statementToCode(t, "HANDLE");
4509
4509
  return `{
@@ -4576,12 +4576,12 @@ s.forBlock.query_extra_sortby_v1 = function(t) {
4576
4576
  const e = s.valueToCode(t, "COLUMN", c.ATOMIC) || "''", n = s.valueToCode(t, "DESC", c.ATOMIC) || !1;
4577
4577
  return [`{type:'sortby',value:${e},value2:${n}}`, c.ATOMIC];
4578
4578
  };
4579
- const Pi = {
4579
+ const Vi = {
4580
4580
  init: function() {
4581
4581
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
4582
4582
  }
4583
4583
  };
4584
- d.select_column_container_v1 = Pi;
4584
+ d.select_column_container_v1 = Vi;
4585
4585
  const xi = {
4586
4586
  init: function() {
4587
4587
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
@@ -4767,13 +4767,13 @@ const Fi = {
4767
4767
  checkWarning_: function() {
4768
4768
  const t = pe(this.space.id);
4769
4769
  if (!t) {
4770
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
4770
+ this.setWarningText(_.WARN_SPACE_NOT_FOUND);
4771
4771
  return;
4772
4772
  }
4773
4773
  t.name !== this.space.name && (this.space.name = t.name);
4774
4774
  const e = X(this.space.id, this.table.id);
4775
4775
  if (!e) {
4776
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
4776
+ this.setWarningText(_.WARN_TABLE_NOT_FOUND);
4777
4777
  return;
4778
4778
  }
4779
4779
  if (e.name !== this.table.name && (this.table.name = e.name), !U(e.columns, this.table.columns)) {
@@ -4787,12 +4787,12 @@ d.select_column_v1 = Fi;
4787
4787
  s.forBlock.select_column_v1 = function(t) {
4788
4788
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
4789
4789
  for (let r = 0; r < n.itemCount_; r++) {
4790
- const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((f) => f.id === p).name, I = n.getFieldValue("ALIAS" + r);
4791
- a.push({ name: A, alias: I });
4790
+ const p = n.getFieldValue("COLUMN" + r), I = n.table.columns.find((f) => f.id === p).name, A = n.getFieldValue("ALIAS" + r);
4791
+ a.push({ name: I, alias: A });
4792
4792
  }
4793
4793
  let l = "[";
4794
- return a.forEach(({ name: r, alias: p }, A) => {
4795
- A !== 0 && (l += ","), l += `{name:${e(r)},alias:${e(p)}}`;
4794
+ return a.forEach(({ name: r, alias: p }, I) => {
4795
+ I !== 0 && (l += ","), l += `{name:${e(r)},alias:${e(p)}}`;
4796
4796
  }), l += "]", [`{spaceid:${e(o)},tableid:${e(i)},columns:${l}}`, c.ATOMIC];
4797
4797
  };
4798
4798
  const wi = {
@@ -4871,13 +4871,13 @@ const wi = {
4871
4871
  checkWarning_: function() {
4872
4872
  const t = pe(this.space.id);
4873
4873
  if (!t) {
4874
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
4874
+ this.setWarningText(_.WARN_SPACE_NOT_FOUND);
4875
4875
  return;
4876
4876
  }
4877
4877
  t.name !== this.space.name && (this.space.name = t.name);
4878
4878
  const e = X(this.space.id, this.table.id);
4879
4879
  if (!e) {
4880
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
4880
+ this.setWarningText(_.WARN_TABLE_NOT_FOUND);
4881
4881
  return;
4882
4882
  }
4883
4883
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
@@ -5179,13 +5179,13 @@ const Hi = {
5179
5179
  checkWarning_: function() {
5180
5180
  const t = pe(this.space.id);
5181
5181
  if (!t) {
5182
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
5182
+ this.setWarningText(_.WARN_SPACE_NOT_FOUND);
5183
5183
  return;
5184
5184
  }
5185
5185
  t.name !== this.space.name && (this.space.name = t.name);
5186
5186
  const e = X(this.space.id, this.table.id);
5187
5187
  if (!e) {
5188
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
5188
+ this.setWarningText(_.WARN_TABLE_NOT_FOUND);
5189
5189
  return;
5190
5190
  }
5191
5191
  if (e.name !== this.table.name && (this.table.name = e.name), !U(e.columns, this.table.columns)) {
@@ -5199,12 +5199,12 @@ d.update_column_v1 = Hi;
5199
5199
  s.forBlock.update_column_v1 = function(t) {
5200
5200
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5201
5201
  for (let r = 0; r < n.itemCount_; r++) {
5202
- const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((f) => f.id === p).name, I = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
5203
- a.push({ name: A, value: I });
5202
+ const p = n.getFieldValue("COLUMN" + r), I = n.table.columns.find((f) => f.id === p).name, A = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
5203
+ a.push({ name: I, value: A });
5204
5204
  }
5205
5205
  let l = "[";
5206
- return a.forEach(({ name: r, value: p }, A) => {
5207
- A !== 0 && (l += ","), l += `{name:${e(r)},value:${p}}`;
5206
+ return a.forEach(({ name: r, value: p }, I) => {
5207
+ I !== 0 && (l += ","), l += `{name:${e(r)},value:${p}}`;
5208
5208
  }), l += "]", [`{spaceid:${e(o)},tableid:${e(i)},columns:${l}}`, c.ATOMIC];
5209
5209
  };
5210
5210
  function Gi(t) {
@@ -5317,7 +5317,7 @@ ${i}}
5317
5317
  const Ji = v.xml, qi = {
5318
5318
  init: function() {
5319
5319
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
5320
- new z(Ie, 20, 20, void 0, () => {
5320
+ new z(Ae, 20, 20, void 0, () => {
5321
5321
  this.isInFlyout || this.addEntry_();
5322
5322
  })
5323
5323
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -5336,7 +5336,7 @@ const Ji = v.xml, qi = {
5336
5336
  for (let t = 0; t < this.length; t++) {
5337
5337
  const e = "ENTRY" + t, n = this.appendValueInput(e);
5338
5338
  n.appendField(
5339
- new z(Ie, 20, 20, void 0, () => {
5339
+ new z(Ae, 20, 20, void 0, () => {
5340
5340
  this.isInFlyout || this.addEntry_(n);
5341
5341
  })
5342
5342
  ), n.appendField(new en(String(t))), n.appendField(
@@ -5355,7 +5355,7 @@ const Ji = v.xml, qi = {
5355
5355
  }
5356
5356
  const n = this.appendValueInput("ENTRY" + e);
5357
5357
  n.appendField(
5358
- new z(Ie, 20, 20, void 0, () => {
5358
+ new z(Ae, 20, 20, void 0, () => {
5359
5359
  this.isInFlyout || this.addEntry_(n);
5360
5360
  })
5361
5361
  ), n.appendField(new en(String(e))), n.appendField(
@@ -5391,7 +5391,7 @@ d.json_boolean_v1 = Qi;
5391
5391
  const ln = v.xml, zi = {
5392
5392
  init: function() {
5393
5393
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
5394
- new z(Ie, 20, 20, void 0, () => {
5394
+ new z(Ae, 20, 20, void 0, () => {
5395
5395
  this.isInFlyout || this.addEntry_();
5396
5396
  })
5397
5397
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -5419,7 +5419,7 @@ const ln = v.xml, zi = {
5419
5419
  for (let e = 0; e < t.length; e++) {
5420
5420
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
5421
5421
  i.appendField(
5422
- new z(Ie, 20, 20, void 0, () => {
5422
+ new z(Ae, 20, 20, void 0, () => {
5423
5423
  this.isInFlyout || this.addEntry_(i);
5424
5424
  })
5425
5425
  ), i.appendField(new re(n), "KEY" + e), i.appendField(
@@ -5436,7 +5436,7 @@ const ln = v.xml, zi = {
5436
5436
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
5437
5437
  const n = this.appendValueInput("ENTRY" + e);
5438
5438
  n.appendField(
5439
- new z(Ie, 20, 20, void 0, () => {
5439
+ new z(Ae, 20, 20, void 0, () => {
5440
5440
  this.isInFlyout || this.addEntry_(n);
5441
5441
  })
5442
5442
  ), n.appendField(new re("key"), "KEY" + e), n.appendField(
@@ -6408,16 +6408,16 @@ ${l}}
6408
6408
  te.NameType.VARIABLE
6409
6409
  ), u += `var ${p} = ${i};
6410
6410
  `);
6411
- const A = s.nameDB_.getDistinctName(
6411
+ const I = s.nameDB_.getDistinctName(
6412
6412
  `${n}_by`,
6413
6413
  te.NameType.VARIABLE
6414
6414
  );
6415
- return u += `var ${A} = `, v.string.isNumber(a) ? u += `${Math.abs(Number(a))};
6415
+ return u += `var ${I} = `, v.string.isNumber(a) ? u += `${Math.abs(Number(a))};
6416
6416
  ` : u += `Math.abs(${a});
6417
6417
  `, u += `if (${r} > ${p}) {
6418
- ${e}${A} = -${A};
6418
+ ${e}${I} = -${I};
6419
6419
  }
6420
- `, u += `for (${n} = ${r}; ${A} >= 0 ? ${n} <= ${p} : ${n} >= ${p}; ${n} += ${A}) {
6420
+ `, u += `for (${n} = ${r}; ${I} >= 0 ? ${n} <= ${p} : ${n} >= ${p}; ${n} += ${I}) {
6421
6421
  ${l}}
6422
6422
  `, u;
6423
6423
  }
@@ -7595,7 +7595,7 @@ const gs = {
7595
7595
  }
7596
7596
  };
7597
7597
  d.procedure_def_item_v1 = gs;
7598
- const As = {
7598
+ const Is = {
7599
7599
  init: function() {
7600
7600
  this.withReturn = !1, this.args = [];
7601
7601
  const t = new re(
@@ -7699,13 +7699,13 @@ const As = {
7699
7699
  }
7700
7700
  }
7701
7701
  };
7702
- d.procedure_def_v1 = As;
7703
- const Is = v.xml, Os = {
7702
+ d.procedure_def_v1 = Is;
7703
+ const As = v.xml, Os = {
7704
7704
  init: function() {
7705
7705
  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}");
7706
7706
  },
7707
7707
  mutationToDom: function() {
7708
- const t = Is.createElement("mutation");
7708
+ const t = As.createElement("mutation");
7709
7709
  return t.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), t;
7710
7710
  },
7711
7711
  domToMutation: function(t) {
@@ -7835,7 +7835,7 @@ function vs(t, e) {
7835
7835
  n.push([a, i]);
7836
7836
  }), N(n);
7837
7837
  }
7838
- function Vn() {
7838
+ function Pn() {
7839
7839
  const t = [];
7840
7840
  return T.resource.spaces.forEach((e) => {
7841
7841
  e.resources.length > 0 && t.push(e);
@@ -7843,7 +7843,7 @@ function Vn() {
7843
7843
  }
7844
7844
  function ys() {
7845
7845
  const t = [];
7846
- return Vn().forEach(({ id: n, name: o }) => {
7846
+ return Pn().forEach(({ id: n, name: o }) => {
7847
7847
  t.push([o, n]);
7848
7848
  }), N(t);
7849
7849
  }
@@ -7866,7 +7866,7 @@ const Ns = {
7866
7866
  initData_: function() {
7867
7867
  if (this.space.id)
7868
7868
  return;
7869
- const t = Vn()?.[0];
7869
+ const t = Pn()?.[0];
7870
7870
  if (!t)
7871
7871
  return;
7872
7872
  this.space.id = t.id, this.space.name = t.name;
@@ -8556,7 +8556,7 @@ const Us = {
8556
8556
  }, n = this.getField("VAR").getText(), o = {
8557
8557
  text: _.DELETE_VARIABLE.replace("%1", n),
8558
8558
  enabled: !0,
8559
- callback: Vs(this)
8559
+ callback: Ps(this)
8560
8560
  };
8561
8561
  t.unshift(e), t.unshift(o);
8562
8562
  }
@@ -8579,7 +8579,7 @@ const Us = {
8579
8579
  const e = t.workspace, o = t.getField("VAR").getVariable();
8580
8580
  ge.renameVariable(e, o);
8581
8581
  };
8582
- }, Vs = function(t) {
8582
+ }, Ps = function(t) {
8583
8583
  return function() {
8584
8584
  const n = t.getField("VAR").getVariable();
8585
8585
  n && ge.deleteVariable(n.getWorkspace(), n, t);
@@ -8644,7 +8644,7 @@ s.forBlock.variable_set_v1 = function(t) {
8644
8644
  `;
8645
8645
  };
8646
8646
  const je = v.xml;
8647
- function Ps() {
8647
+ function Vs() {
8648
8648
  const t = [];
8649
8649
  {
8650
8650
  const e = je.createElement("label");
@@ -8666,7 +8666,7 @@ function Ps() {
8666
8666
  }
8667
8667
  const tt = {
8668
8668
  name: "INTERFACE_CATEGORY",
8669
- callback: Ps
8669
+ callback: Vs
8670
8670
  }, b = v.xml;
8671
8671
  function xs() {
8672
8672
  const t = [];
@@ -9116,14 +9116,14 @@ mn.setPrompt(async (t, e, n) => {
9116
9116
  });
9117
9117
  o !== void 0 && n(String(o));
9118
9118
  });
9119
- const Pn = (t, e, n) => {
9119
+ const Vn = (t, e, n) => {
9120
9120
  const o = t[e];
9121
9121
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, a) => {
9122
9122
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + e + (e.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
9123
9123
  });
9124
9124
  };
9125
9125
  async function rn(t) {
9126
- const e = await Pn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.cb0pu5v6.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.ca0i4cm9.js") }), `./msg/${t}.ts`, 3);
9126
+ const e = await Vn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.k914lhgs.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.ib2kecyn.js") }), `./msg/${t}.ts`, 3);
9127
9127
  ro(e.default);
9128
9128
  }
9129
9129
  function Wt(t) {
@@ -10292,12 +10292,12 @@ const na = /* @__PURE__ */ oe({
10292
10292
  a();
10293
10293
  };
10294
10294
  return e({ cleanWorkspace: a }), (u, r) => {
10295
- const p = P("v-btn"), A = P("v-tooltip");
10296
- return D(), Z(A, {
10297
- text: V(n)("x-block-lib.tip.hotkeyCtrlQ")
10295
+ const p = V("v-btn"), I = V("v-tooltip");
10296
+ return D(), Z(I, {
10297
+ text: P(n)("x-block-lib.tip.hotkeyCtrlQ")
10298
10298
  }, {
10299
- activator: ee(({ props: I }) => [
10300
- B(p, Yt(I, {
10299
+ activator: ee(({ props: A }) => [
10300
+ B(p, Yt(A, {
10301
10301
  density: "comfortable",
10302
10302
  icon: "mdi-broom",
10303
10303
  variant: "outlined",
@@ -10318,9 +10318,9 @@ const na = /* @__PURE__ */ oe({
10318
10318
  setup(t) {
10319
10319
  const { t: e } = $e(), n = Me(t, "modelValue");
10320
10320
  return (o, i) => {
10321
- const a = P("v-btn"), l = P("v-tooltip");
10321
+ const a = V("v-btn"), l = V("v-tooltip");
10322
10322
  return D(), Z(l, {
10323
- text: V(e)("x-block-lib.tip.hotkeyCtrlW")
10323
+ text: P(e)("x-block-lib.tip.hotkeyCtrlW")
10324
10324
  }, {
10325
10325
  activator: ee(({ props: u }) => [
10326
10326
  B(a, Yt(u, {
@@ -10343,7 +10343,7 @@ const na = /* @__PURE__ */ oe({
10343
10343
  },
10344
10344
  emits: ["x-click"],
10345
10345
  setup(t, { emit: e }) {
10346
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Ke(), a = t, l = e, u = Ae(!1), r = K(() => ({
10346
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Ke(), a = t, l = e, u = Ie(!1), r = K(() => ({
10347
10347
  position: "relative",
10348
10348
  background: u.value ? i.value : o.value,
10349
10349
  height: "48px",
@@ -10359,21 +10359,21 @@ const na = /* @__PURE__ */ oe({
10359
10359
  border: "1px solid " + n.value,
10360
10360
  pointerEvents: "none"
10361
10361
  }));
10362
- return (A, I) => {
10363
- const f = P("v-spacer"), C = P("v-icon"), g = to("ripple");
10362
+ return (I, A) => {
10363
+ const f = V("v-spacer"), C = V("v-icon"), g = to("ripple");
10364
10364
  return no((D(), Q("div", {
10365
10365
  class: "d-flex align-center cursor-pointer",
10366
10366
  style: W(r.value),
10367
- onClick: I[1] || (I[1] = (M) => l("x-click", a.id)),
10368
- onMouseout: I[2] || (I[2] = (M) => u.value = !1),
10369
- onMouseover: I[3] || (I[3] = (M) => u.value = !0)
10367
+ onClick: A[1] || (A[1] = (M) => l("x-click", a.id)),
10368
+ onMouseout: A[2] || (A[2] = (M) => u.value = !1),
10369
+ onMouseover: A[3] || (A[3] = (M) => u.value = !0)
10370
10370
  }, [
10371
10371
  j("span", ia, at(a.title), 1),
10372
10372
  B(f),
10373
10373
  B(C, {
10374
10374
  class: "x-handle cursor-move mr-3",
10375
10375
  icon: "mdi-drag-horizontal-variant",
10376
- onMousedown: I[0] || (I[0] = Be(() => {
10376
+ onMousedown: A[0] || (A[0] = Be(() => {
10377
10377
  }, ["stop"]))
10378
10378
  }),
10379
10379
  j("div", {
@@ -10397,7 +10397,7 @@ const na = /* @__PURE__ */ oe({
10397
10397
  }),
10398
10398
  emits: ["update:modelValue"],
10399
10399
  setup(t, { expose: e }) {
10400
- const { t: n } = $e(), o = Me(t, "modelValue"), i = jt(), a = Ae([]);
10400
+ const { t: n } = $e(), o = Me(t, "modelValue"), i = jt(), a = Ie([]);
10401
10401
  e({ update: () => {
10402
10402
  if (!i.workspace) {
10403
10403
  console.assert(!1);
@@ -10428,7 +10428,7 @@ const na = /* @__PURE__ */ oe({
10428
10428
  a.value.forEach(({ id: C }) => {
10429
10429
  f.push(C);
10430
10430
  }), u = f;
10431
- }, p = () => !t.lock, A = (f) => {
10431
+ }, p = () => !t.lock, I = (f) => {
10432
10432
  if (!i.workspace) {
10433
10433
  console.assert(!1);
10434
10434
  return;
@@ -10454,7 +10454,7 @@ const na = /* @__PURE__ */ oe({
10454
10454
  ).getRelativeToSurfaceXY().y + 10);
10455
10455
  const q = g.getRelativeToSurfaceXY();
10456
10456
  g.moveTo(new v.Coordinate(q.x, Y)), i.workspace.cleanUp(), xn();
10457
- }, I = async (f) => {
10457
+ }, A = async (f) => {
10458
10458
  if (!i.workspace) {
10459
10459
  console.assert(!1);
10460
10460
  return;
@@ -10462,14 +10462,14 @@ const na = /* @__PURE__ */ oe({
10462
10462
  const C = i.workspace.getBlockById(f);
10463
10463
  En.setSelected(C), Wt(f), o.value = !1;
10464
10464
  };
10465
- return (f, C) => a.value.length > 0 ? (D(), Z(V(To), {
10465
+ return (f, C) => a.value.length > 0 ? (D(), Z(P(To), {
10466
10466
  key: 0,
10467
10467
  modelValue: a.value,
10468
10468
  "onUpdate:modelValue": C[0] || (C[0] = (g) => a.value = g),
10469
10469
  animation: 150,
10470
10470
  "ghost-class": "ghost",
10471
10471
  handle: ".x-handle",
10472
- onEnd: A,
10472
+ onEnd: I,
10473
10473
  onMove: p,
10474
10474
  onStart: r
10475
10475
  }, {
@@ -10479,11 +10479,11 @@ const na = /* @__PURE__ */ oe({
10479
10479
  key: g.id,
10480
10480
  select: g.select,
10481
10481
  title: g.name,
10482
- onXClick: I
10482
+ onXClick: A
10483
10483
  }, null, 8, ["id", "select", "title"]))), 128))
10484
10484
  ]),
10485
10485
  _: 1
10486
- }, 8, ["modelValue"])) : (D(), Q("span", aa, at(V(n)("x-block-lib.noOption")), 1));
10486
+ }, 8, ["modelValue"])) : (D(), Q("span", aa, at(P(n)("x-block-lib.noOption")), 1));
10487
10487
  }
10488
10488
  }), la = (t, e) => {
10489
10489
  const n = t.__vccOpts || t;
@@ -10525,7 +10525,7 @@ const na = /* @__PURE__ */ oe({
10525
10525
  lock: { type: Boolean }
10526
10526
  },
10527
10527
  setup(t, { expose: e }) {
10528
- const { t: n } = $e(), o = Bo(), { sysBarAvail: i } = An(), { backgroundColor1: a } = Ke(), l = K(() => {
10528
+ const { t: n } = $e(), o = Bo(), { sysBarAvail: i } = In(), { backgroundColor1: a } = Ke(), l = K(() => {
10529
10529
  let C = "100%";
10530
10530
  return o.mdAndUp.value && (C = "400px"), {
10531
10531
  background: a.value,
@@ -10544,14 +10544,14 @@ const na = /* @__PURE__ */ oe({
10544
10544
  pn(() => {
10545
10545
  p.value = !1;
10546
10546
  });
10547
- const A = Re("blockList"), I = Re("blockTree");
10547
+ const I = Re("blockList"), A = Re("blockTree");
10548
10548
  return e({ open: p, update: () => {
10549
- t.type === "list" ? A.value?.update() : t.type === "tree" && I.value?.update();
10549
+ t.type === "list" ? I.value?.update() : t.type === "tree" && A.value?.update();
10550
10550
  } }), (C, g) => {
10551
- const M = P("v-sheet"), Y = P("v-btn"), q = P("v-spacer"), de = P("v-dialog"), At = P("v-tooltip");
10551
+ const M = V("v-sheet"), Y = V("v-btn"), q = V("v-spacer"), de = V("v-dialog"), It = V("v-tooltip");
10552
10552
  return D(), Q(_n, null, [
10553
10553
  B(de, {
10554
- modelValue: V(p),
10554
+ modelValue: P(p),
10555
10555
  "onUpdate:modelValue": g[5] || (g[5] = (G) => Je(p) ? p.value = G : null),
10556
10556
  eager: "",
10557
10557
  fullscreen: "",
@@ -10570,7 +10570,7 @@ const na = /* @__PURE__ */ oe({
10570
10570
  class: "elevation-2",
10571
10571
  style: W(l.value)
10572
10572
  }, [
10573
- V(i) ? (D(), Z(M, {
10573
+ P(i) ? (D(), Z(M, {
10574
10574
  key: 0,
10575
10575
  color: "transparent",
10576
10576
  height: 24
@@ -10587,7 +10587,7 @@ const na = /* @__PURE__ */ oe({
10587
10587
  variant: "text",
10588
10588
  onClick: g[0] || (g[0] = (G) => p.value = !1)
10589
10589
  }),
10590
- j("span", _a, at(V(n)("x-block-lib.navigator")), 1),
10590
+ j("span", _a, at(P(n)("x-block-lib.navigator")), 1),
10591
10591
  B(q)
10592
10592
  ]),
10593
10593
  _: 1
@@ -10599,15 +10599,15 @@ const na = /* @__PURE__ */ oe({
10599
10599
  C.type === "list" ? (D(), Z(ua, {
10600
10600
  key: 0,
10601
10601
  ref_key: "blockList",
10602
- ref: A,
10603
- modelValue: V(p),
10602
+ ref: I,
10603
+ modelValue: P(p),
10604
10604
  "onUpdate:modelValue": g[1] || (g[1] = (G) => Je(p) ? p.value = G : null),
10605
10605
  lock: C.lock
10606
10606
  }, null, 8, ["modelValue", "lock"])) : C.type === "tree" ? (D(), Z(ra, {
10607
10607
  key: 1,
10608
10608
  ref_key: "blockTree",
10609
- ref: I,
10610
- modelValue: V(p),
10609
+ ref: A,
10610
+ modelValue: P(p),
10611
10611
  "onUpdate:modelValue": g[2] || (g[2] = (G) => Je(p) ? p.value = G : null)
10612
10612
  }, null, 8, ["modelValue"])) : me("", !0),
10613
10613
  j("div", {
@@ -10619,8 +10619,8 @@ const na = /* @__PURE__ */ oe({
10619
10619
  ]),
10620
10620
  _: 1
10621
10621
  }, 8, ["modelValue"]),
10622
- B(At, {
10623
- text: V(n)("x-block-lib.tip.hotkeyCtrlE")
10622
+ B(It, {
10623
+ text: P(n)("x-block-lib.tip.hotkeyCtrlE")
10624
10624
  }, {
10625
10625
  activator: ee(({ props: G }) => [
10626
10626
  B(Y, Yt(G, {
@@ -10664,7 +10664,7 @@ const na = /* @__PURE__ */ oe({
10664
10664
  function ha(t, e, n, o) {
10665
10665
  St.theme = o ? "dark" : "light", St.toolbox = da(e, n);
10666
10666
  const i = go(t, St);
10667
- return i.addChangeListener(Ao.shadowBlockConversionChangeListener), fa(i, e, n), ma(i), i;
10667
+ return i.addChangeListener(Io.shadowBlockConversionChangeListener), fa(i, e, n), ma(i), i;
10668
10668
  }
10669
10669
  function da(t, e) {
10670
10670
  let n;
@@ -10723,8 +10723,8 @@ function Ta(t, e) {
10723
10723
  r.push(p);
10724
10724
  u.initData(r);
10725
10725
  for (let p = 0; p < r.length; p++) {
10726
- const A = r[p], I = u.getInput("ENTRY" + p);
10727
- o(i[A], I.connection);
10726
+ const I = r[p], A = u.getInput("ENTRY" + p);
10727
+ o(i[I], A.connection);
10728
10728
  }
10729
10729
  } else if (l === "json_array_v1") {
10730
10730
  u.initData(i.length);
@@ -10768,7 +10768,7 @@ function Ea(t) {
10768
10768
  if (o.type === "json_root_v1")
10769
10769
  return e(o);
10770
10770
  }
10771
- const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10771
+ const ga = { class: "position-relative w-100 h-100" }, Ia = /* @__PURE__ */ oe({
10772
10772
  __name: "index",
10773
10773
  props: /* @__PURE__ */ bt({
10774
10774
  type: {},
@@ -10783,9 +10783,9 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10783
10783
  }),
10784
10784
  emits: /* @__PURE__ */ bt(["ready"], ["update:lock", "update:scale"]),
10785
10785
  setup(t, { expose: e, emit: n }) {
10786
- const { backgroundColor2: o } = Ke(), i = Me(t, "lock"), a = Me(t, "scale"), l = n, u = `blocklyEditor${Bt()}`, r = Ae(), p = Re("parentContainer"), A = Re("clean"), I = Re("navigator"), f = {};
10786
+ const { backgroundColor2: o } = Ke(), i = Me(t, "lock"), a = Me(t, "scale"), l = n, u = `blocklyEditor${Bt()}`, r = Ie(), p = Re("parentContainer"), I = Re("clean"), A = Re("navigator"), f = {};
10787
10787
  ta(f);
10788
- const C = Ae(!0), g = Ae(!1), M = K(() => t.type === "json" ? "tree" : "list"), Y = K(() => ({
10788
+ const C = Ie(!0), g = Ie(!1), M = K(() => t.type === "json" ? "tree" : "list"), Y = K(() => ({
10789
10789
  width: "100%",
10790
10790
  height: "calc(100% - 48px)"
10791
10791
  })), q = K(() => ({
@@ -10802,7 +10802,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10802
10802
  width: "56px",
10803
10803
  height: "calc(100% - 49px)",
10804
10804
  zIndex: 999
10805
- })), At = K(() => ({
10805
+ })), It = K(() => ({
10806
10806
  position: "absolute",
10807
10807
  top: "0px",
10808
10808
  right: "0px",
@@ -10834,10 +10834,10 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10834
10834
  console.assert(!1);
10835
10835
  return;
10836
10836
  }
10837
- Io(p.value), await rn(t.locale), f.workspace = ha(r.value, t.type, t.version, t.dark), f.workspace.addChangeListener(E.disableOrphans), f.workspace.addChangeListener(Hn);
10837
+ Ao(p.value), await rn(t.locale), f.workspace = ha(r.value, t.type, t.version, t.dark), f.workspace.addChangeListener(E.disableOrphans), f.workspace.addChangeListener(Hn);
10838
10838
  const y = document.querySelector(`#${u} .blocklyFlyout`);
10839
- new MutationObserver((It) => {
10840
- It.forEach((We) => {
10839
+ new MutationObserver((At) => {
10840
+ At.forEach((We) => {
10841
10841
  We.type === "attributes" && We.attributeName === "style" && (Le.value = f.workspace.getFlyout().isVisible());
10842
10842
  });
10843
10843
  }).observe(y, { attributes: !0 }), Le.value = f.workspace.getFlyout().isVisible(), Jt(), qt(), await io(), l("ready");
@@ -10849,7 +10849,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10849
10849
  async function Hn(y) {
10850
10850
  if (y.type === E.FINISHED_LOADING) {
10851
10851
  xn(), setTimeout(() => {
10852
- I.value?.update();
10852
+ A.value?.update();
10853
10853
  }, 0), C.value = !1;
10854
10854
  return;
10855
10855
  }
@@ -10859,7 +10859,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10859
10859
  return;
10860
10860
  }
10861
10861
  y.type === E.BLOCK_DRAG && (y.isStart ? g.value = !0 : g.value = !1), setTimeout(() => {
10862
- I.value?.update();
10862
+ A.value?.update();
10863
10863
  }, 0);
10864
10864
  }
10865
10865
  }
@@ -10875,7 +10875,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10875
10875
  }, qt = () => {
10876
10876
  f.workspace.setScale(a.value);
10877
10877
  }, Xn = () => {
10878
- f.workspace.fireChangeListener(new In());
10878
+ f.workspace.fireChangeListener(new An());
10879
10879
  }, Qt = (y) => {
10880
10880
  if (y.key === "q" && y.ctrlKey) {
10881
10881
  Jn();
@@ -10890,11 +10890,11 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10890
10890
  return;
10891
10891
  }
10892
10892
  }, Jn = () => {
10893
- A.value?.cleanWorkspace();
10893
+ I.value?.cleanWorkspace();
10894
10894
  }, qn = () => {
10895
10895
  i.value = !i.value;
10896
10896
  }, Qn = () => {
10897
- I.value && (I.value.open = !0);
10897
+ A.value && (A.value.open = !0);
10898
10898
  };
10899
10899
  return zt(() => {
10900
10900
  window.addEventListener("keydown", Qt, !1);
@@ -10917,7 +10917,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10917
10917
  }), Se(a, () => {
10918
10918
  qt();
10919
10919
  }), e({ loading: C, load: Gn, save: Wn, generateCode: jn, fireStateChange: Xn }), (y, fe) => {
10920
- const It = P("v-icon"), We = P("x-loading");
10920
+ const At = V("v-icon"), We = V("x-loading");
10921
10921
  return D(), Q("div", ga, [
10922
10922
  j("div", {
10923
10923
  id: u,
@@ -10935,7 +10935,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10935
10935
  class: "d-flex flex-column justify-center align-center",
10936
10936
  style: W(de.value)
10937
10937
  }, [
10938
- B(It, {
10938
+ B(At, {
10939
10939
  icon: "mdi-delete",
10940
10940
  size: "x-large"
10941
10941
  })
@@ -10943,11 +10943,11 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10943
10943
  C.value ? me("", !0) : (D(), Q("div", {
10944
10944
  key: 1,
10945
10945
  class: "d-flex align-end ga-3 pt-3 pr-3",
10946
- style: W(At.value)
10946
+ style: W(It.value)
10947
10947
  }, [
10948
10948
  B(na, {
10949
10949
  ref_key: "clean",
10950
- ref: A,
10950
+ ref: I,
10951
10951
  lock: i.value
10952
10952
  }, null, 8, ["lock"]),
10953
10953
  B(oa, {
@@ -10956,7 +10956,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10956
10956
  }, null, 8, ["modelValue"]),
10957
10957
  B(pa, {
10958
10958
  ref_key: "navigator",
10959
- ref: I,
10959
+ ref: A,
10960
10960
  lock: i.value,
10961
10961
  type: M.value
10962
10962
  }, null, 8, ["lock", "type"])
@@ -10981,7 +10981,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10981
10981
  ]);
10982
10982
  };
10983
10983
  }
10984
- }), Ia = /* @__PURE__ */ oe({
10984
+ }), Aa = /* @__PURE__ */ oe({
10985
10985
  __name: "index",
10986
10986
  props: {
10987
10987
  code: {}
@@ -10991,14 +10991,14 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
10991
10991
  ko.registerLanguage("javascript", vo);
10992
10992
  const n = yo.component, { backgroundColor2: o } = Ke();
10993
10993
  return (i, a) => {
10994
- const l = P("v-sheet");
10994
+ const l = V("v-sheet");
10995
10995
  return D(), Z(l, {
10996
- color: V(o),
10996
+ color: P(o),
10997
10997
  height: "100%",
10998
10998
  width: "100%"
10999
10999
  }, {
11000
11000
  default: ee(() => [
11001
- B(V(n), {
11001
+ B(P(n), {
11002
11002
  code: e.code,
11003
11003
  language: "js"
11004
11004
  }, null, 8, ["code"])
@@ -11010,7 +11010,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
11010
11010
  }), Oa = { class: "text-subtitle-1" }, Ca = { class: "w-100 h-100 overflow-auto" }, ka = /* @__PURE__ */ oe({
11011
11011
  __name: "index",
11012
11012
  setup(t) {
11013
- const { t: e } = $e(), { sysBarAvail: n } = An(), { backgroundColor0: o, backgroundColor2: i } = Ke(), a = Ae(""), l = K(() => {
11013
+ const { t: e } = $e(), { sysBarAvail: n } = In(), { backgroundColor0: o, backgroundColor2: i } = Ke(), a = Ie(""), l = K(() => {
11014
11014
  let p = 48;
11015
11015
  return n.value && (p += 24), {
11016
11016
  position: "relative",
@@ -11019,32 +11019,32 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
11019
11019
  }), u = (p) => {
11020
11020
  a.value = p.code;
11021
11021
  }, { open: r } = Kt("sourceDlg", u);
11022
- return (p, A) => {
11023
- const I = P("v-sheet"), f = P("v-btn"), C = P("v-spacer"), g = P("v-dialog");
11022
+ return (p, I) => {
11023
+ const A = V("v-sheet"), f = V("v-btn"), C = V("v-spacer"), g = V("v-dialog");
11024
11024
  return D(), Z(g, {
11025
- modelValue: V(r),
11026
- "onUpdate:modelValue": A[1] || (A[1] = (M) => Je(r) ? r.value = M : null),
11025
+ modelValue: P(r),
11026
+ "onUpdate:modelValue": I[1] || (I[1] = (M) => Je(r) ? r.value = M : null),
11027
11027
  fullscreen: "",
11028
11028
  "no-click-animation": "",
11029
11029
  persistent: "",
11030
11030
  transition: "dialog-bottom-transition",
11031
- onKeydown: A[2] || (A[2] = hn(Be((M) => r.value = !1, ["stop", "prevent"]), ["esc"]))
11031
+ onKeydown: I[2] || (I[2] = hn(Be((M) => r.value = !1, ["stop", "prevent"]), ["esc"]))
11032
11032
  }, {
11033
11033
  default: ee(() => [
11034
- B(I, {
11035
- color: V(o),
11034
+ B(A, {
11035
+ color: P(o),
11036
11036
  height: "100%",
11037
11037
  width: "100%"
11038
11038
  }, {
11039
11039
  default: ee(() => [
11040
- V(n) ? (D(), Z(I, {
11040
+ P(n) ? (D(), Z(A, {
11041
11041
  key: 0,
11042
- color: V(i),
11042
+ color: P(i),
11043
11043
  height: 24
11044
11044
  }, null, 8, ["color"])) : me("", !0),
11045
- B(I, {
11045
+ B(A, {
11046
11046
  class: "d-flex align-center px-2",
11047
- color: V(i),
11047
+ color: P(i),
11048
11048
  height: 48
11049
11049
  }, {
11050
11050
  default: ee(() => [
@@ -11052,9 +11052,9 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
11052
11052
  density: "comfortable",
11053
11053
  icon: "mdi-close",
11054
11054
  variant: "text",
11055
- onClick: A[0] || (A[0] = (M) => r.value = !1)
11055
+ onClick: I[0] || (I[0] = (M) => r.value = !1)
11056
11056
  }),
11057
- j("span", Oa, at(V(e)("x-block-lib.dlg.source.title")), 1),
11057
+ j("span", Oa, at(P(e)("x-block-lib.dlg.source.title")), 1),
11058
11058
  B(C)
11059
11059
  ]),
11060
11060
  _: 1
@@ -11063,7 +11063,7 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
11063
11063
  style: W(l.value)
11064
11064
  }, [
11065
11065
  j("div", Ca, [
11066
- B(Ia, { code: a.value }, null, 8, ["code"])
11066
+ B(Aa, { code: a.value }, null, 8, ["code"])
11067
11067
  ])
11068
11068
  ], 4)
11069
11069
  ]),
@@ -11075,14 +11075,14 @@ const ga = { class: "position-relative w-100 h-100" }, Aa = /* @__PURE__ */ oe({
11075
11075
  };
11076
11076
  }
11077
11077
  }), va = (t) => {
11078
- t.component("XBlockly", Aa), t.component("XSourceDlg", ka);
11078
+ t.component("XBlockly", Ia), t.component("XSourceDlg", ka);
11079
11079
  };
11080
11080
  async function Da(t) {
11081
- return (await Pn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.j5qa8fnp.js") }), `./locales/${t}/index.ts`, 4)).default;
11081
+ return (await Vn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.j5qa8fnp.js") }), `./locales/${t}/index.ts`, 4)).default;
11082
11082
  }
11083
11083
  const Ua = { install: va };
11084
11084
  export {
11085
- Aa as XBlockly,
11085
+ Ia as XBlockly,
11086
11086
  Ua as default,
11087
11087
  va as install,
11088
11088
  Da as loadLocaleMessageBlock