x-block-lib 0.8.63 → 0.8.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-a77ed323]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}")),document.head.appendChild(l)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { E as O, r as On, M as Mo, s as Uo, a as Vo, X as $n, u as N, B as A, j as i, O as _, F as v, b as je, i as S, c as It, d as xo, e as w, f as g, g as Yo, h as J, k as Et, p as wt, l as ct, m as vn, n as U, C as Hn, N as rt, o as Fo, P as Xe, q as Ye, V as bt, t as Gn, W as wo, v as Ko, w as $o, S as Ho, x as Go, y as Wo, z as Xt, T as ye, A as Wn, D as jo, G as Xo, H as jn, I as Jo, J as qo, K as Qo, L as zo, Q as Zo, R as ts, U as es, Y as ns } from "./vendor.je7mkgas.js";
2
+ import { E as O, r as On, M as Mo, s as Uo, a as Vo, X as $n, u as N, B as A, j as i, O as u, F as v, b as je, i as S, c as It, d as xo, e as w, f as g, g as Yo, h as J, k as Et, p as wt, l as ct, m as vn, n as U, C as Hn, N as rt, o as Fo, P as Xe, q as Ye, V as bt, t as Gn, W as wo, v as Ko, w as $o, S as Ho, x as Go, y as Wo, z as Xt, T as ye, A as Wn, D as jo, G as Xo, H as jn, I as Jo, J as qo, K as Qo, L as zo, Q as Zo, R as ts, U as es, Y as ns } from "./vendor.k8hjxofe.js";
3
3
  import { globalState as I } from "x-state-lib";
4
4
  import { globalObjects as yt, openConfirmDlg as os, openPromptDlg as ss, messageWarning as Xn, useColor as Jt, useSystem as Jn, useViewStack as rn, eventBus as Bt } from "x-essential-lib";
5
5
  import { pkgs as ie, parsePixelStr as is, parsePercentStr as as, getPropertyTag as Vt, unwrapEventId as un, elements as V, unwrapEventKeyOfCustomSlot as Cn, unwrapEventKeyOfElementSlot as cs, unwrapPropertyKeyOfCustomSlot as Je, unwrapPropertyKeyOfElementSlot as qn, makeEventId as K, makeEventKeyOfCustomSlot as kn, unwrapSlotId as ae, makeEventKeyOfElementSlot as rs, makePropertyKeyOfCustomSlot as qe, makePropertyKeyOfElementSlot as Qn, toEventName as Oe, unwrapMethodId as qt, unwrapMethodKeyOfCustomSlot as Qe, unwrapMethodKeyOfElementSlot as us, makeMethodId as _t, makeMethodKeyOfCustomSlot as Sn, makeMethodKeyOfElementSlot as ls, toMethodName as ve, unwrapPropertyId as _s, makePropertyId as kt, toPropertyName as zn, isLocaleOfMethodKind as Zn, makeTriggerId as St } from "x-runtime-lib";
@@ -108,19 +108,19 @@ function j(t, e) {
108
108
  const [o, s, a, r] = n, c = t.getInput(o)?.connection;
109
109
  if (!c)
110
110
  return;
111
- let l = c.targetBlock();
112
- if (l) {
113
- const d = l;
111
+ let _ = c.targetBlock();
112
+ if (_) {
113
+ const d = _;
114
114
  if (d && d.key === s && d.name === a && d.locale === r)
115
115
  return;
116
- l.dispose();
116
+ _.dispose();
117
117
  }
118
- l = pn(
118
+ _ = pn(
119
119
  t.workspace,
120
120
  s,
121
121
  a,
122
122
  r
123
- ), l.outputConnection.connect(c);
123
+ ), _.outputConnection.connect(c);
124
124
  });
125
125
  } finally {
126
126
  O.enable();
@@ -256,7 +256,7 @@ const Rs = {
256
256
  A.get_page_argument_v1 = Rs;
257
257
  i.forBlock.get_page_argument_v1 = function(t) {
258
258
  const e = t;
259
- return [`__getPageArgumentV1__(${i.quote_(e.argument.key)})`, _.FUNCTION_CALL];
259
+ return [`__getPageArgumentV1__(${i.quote_(e.argument.key)})`, u.FUNCTION_CALL];
260
260
  };
261
261
  const Ds = (t, e) => {
262
262
  const n = Ce(t), o = re(t);
@@ -275,7 +275,7 @@ const Ds = (t, e) => {
275
275
  }
276
276
  }, i.forBlock[n] = function(s) {
277
277
  const a = i.quote_, r = s.getFieldValue("ITEM");
278
- return [a(r), _.ATOMIC];
278
+ return [a(r), u.ATOMIC];
279
279
  };
280
280
  };
281
281
  for (const t in ie) {
@@ -334,7 +334,7 @@ const Ms = (t, e) => {
334
334
  if (!r)
335
335
  return;
336
336
  s.removeField("VALUE", !0), s.removeField("SUFFIX", !0);
337
- let c, l;
337
+ let c, _;
338
338
  if (r.ui === "pixelInput") {
339
339
  const d = is(this.value) ?? 0;
340
340
  c = new je(
@@ -342,10 +342,10 @@ const Ms = (t, e) => {
342
342
  r.min,
343
343
  r.max,
344
344
  r.precision ? 1 / Math.pow(10, r.precision) : null,
345
- (u) => {
346
- this.value = u + "px";
345
+ (l) => {
346
+ this.value = l + "px";
347
347
  }
348
- ), l = "px";
348
+ ), _ = "px";
349
349
  } else if (r.ui === "percentInput") {
350
350
  const d = as(this.value) ?? 0;
351
351
  c = new je(
@@ -353,12 +353,12 @@ const Ms = (t, e) => {
353
353
  r.min,
354
354
  r.max,
355
355
  r.precision ? 1 / Math.pow(10, r.precision) : null,
356
- (u) => {
357
- this.value = u + "%";
356
+ (l) => {
357
+ this.value = l + "%";
358
358
  }
359
- ), l = "%";
359
+ ), _ = "%";
360
360
  }
361
- c && s.appendField(c, "VALUE"), l && s.appendField(l, "SUFFIX");
361
+ c && s.appendField(c, "VALUE"), _ && s.appendField(_, "SUFFIX");
362
362
  },
363
363
  checkWarning_: function() {
364
364
  let s = this.value;
@@ -370,7 +370,7 @@ const Ms = (t, e) => {
370
370
  }
371
371
  }, i.forBlock[n] = function(s) {
372
372
  const a = i.quote_;
373
- return [a(s.value), _.ATOMIC];
373
+ return [a(s.value), u.ATOMIC];
374
374
  };
375
375
  };
376
376
  for (const t in ie) {
@@ -534,31 +534,6 @@ function Fs() {
534
534
  t.push([o, n]);
535
535
  }), B(t);
536
536
  }
537
- function en(t) {
538
- const { appList: e } = I.app, n = [], o = e.find((s) => s.id === t);
539
- if (!o)
540
- return n;
541
- for (const { id: s, name: a } of o.pages)
542
- n.push({ id: s, name: a });
543
- return n;
544
- }
545
- function we(t, e) {
546
- const { appList: n } = I.app, o = n.find((a) => a.id === t);
547
- if (!o)
548
- return;
549
- const s = o.pages.find((a) => a.id === e);
550
- if (s)
551
- return {
552
- id: s.id,
553
- name: s.name
554
- };
555
- }
556
- function ws(t) {
557
- const e = [];
558
- return en(t).forEach(({ id: o, name: s }) => {
559
- e.push([s, o]);
560
- }), B(e);
561
- }
562
537
  function ro() {
563
538
  const { activeApp: t } = I.app, e = [{ id: "", name: "" }];
564
539
  for (const { id: n, name: o } of t.comps)
@@ -576,7 +551,7 @@ function Dn(t) {
576
551
  name: n.name
577
552
  };
578
553
  }
579
- function Ks() {
554
+ function ws() {
580
555
  const { i18n: t } = yt, e = [];
581
556
  return ro().forEach(({ id: o, name: s }) => {
582
557
  let a = s;
@@ -597,28 +572,28 @@ function x(t) {
597
572
  { key: "oldValue", name: "x-runtime-lib.oldValue", type: t }
598
573
  ];
599
574
  }
600
- function nn(t) {
575
+ function en(t) {
601
576
  const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: s, depends: a } = I.app, r = [], c = Vt(n.type, n.subtype);
602
577
  if (!c)
603
578
  return r;
604
- const l = n.nodes.find((u) => u.id === t);
605
- if (!l)
579
+ const _ = n.nodes.find((l) => l.id === t);
580
+ if (!_)
606
581
  return r;
607
- const d = V[l.key];
582
+ const d = V[_.key];
608
583
  if (!d)
609
- return console.assert(!1, "invalid element", l.key), r;
584
+ return console.assert(!1, "invalid element", _.key), r;
610
585
  if (d.events)
611
- for (const { key: u, name: h, params: p } of d.events)
586
+ for (const { key: l, name: h, params: p } of d.events)
612
587
  r.push({
613
- id: K("elementEvent", t, u),
588
+ id: K("elementEvent", t, l),
614
589
  kind: "elementEvent",
615
590
  names: [h],
616
591
  params: p
617
592
  });
618
- if (et(d.key) && l.settings && l.settings.comp) {
619
- const u = a[l.settings.comp];
620
- if (u && u.meta.events)
621
- for (const { id: h, name: p, params: f } of u.meta.events)
593
+ if (et(d.key) && _.comp) {
594
+ const l = a[_.comp];
595
+ if (l && l.meta.events)
596
+ for (const { id: h, name: p, params: f } of l.meta.events)
622
597
  r.push({
623
598
  id: K("refEvent", t, h),
624
599
  kind: "refEvent",
@@ -626,10 +601,10 @@ function nn(t) {
626
601
  params: ot(f)
627
602
  });
628
603
  }
629
- if (nt(d.key) && l.settings && l.settings.comp) {
630
- const u = a[l.settings.comp];
631
- if (u && u.meta.events)
632
- for (const { id: h, name: p, params: f } of u.meta.events)
604
+ if (nt(d.key) && _.comp) {
605
+ const l = a[_.comp];
606
+ if (l && l.meta.events)
607
+ for (const { id: h, name: p, params: f } of l.meta.events)
633
608
  r.push({
634
609
  id: K("multipleRefEvent", t, h),
635
610
  kind: "multipleRefEvent",
@@ -638,36 +613,36 @@ function nn(t) {
638
613
  });
639
614
  }
640
615
  if (L(d.key) && n.type === "comp" && s.meta.events)
641
- for (const { id: u, name: h, params: p } of s.meta.events)
616
+ for (const { id: l, name: h, params: p } of s.meta.events)
642
617
  r.push({
643
- id: K("customEvent", t, u),
618
+ id: K("customEvent", t, l),
644
619
  kind: "customEvent",
645
620
  names: [h],
646
621
  params: ot(p)
647
622
  });
648
623
  if (L(d.key) && n.type === "comp" && s.meta.slots) {
649
- for (const u of s.meta.slots)
650
- if (u.events)
651
- for (const h of u.events)
624
+ for (const l of s.meta.slots)
625
+ if (l.events)
626
+ for (const h of l.events)
652
627
  r.push({
653
628
  id: K(
654
629
  "cusotmSlotEvent",
655
630
  t,
656
- kn("", u.id, h.id)
631
+ kn("", l.id, h.id)
657
632
  ),
658
633
  kind: "customSlotEvent",
659
- names: [u.name, h.name],
634
+ names: [l.name, h.name],
660
635
  params: ot(h.params)
661
636
  });
662
637
  }
663
- if (L(d.key) && n.type === "comp" && l.settings && l.settings.adaptSlot) {
664
- const u = ae(l.settings.adaptSlot);
665
- if (u) {
666
- if (u.kind === "elementSlot") {
667
- const h = V[u.mainKey];
638
+ if (L(d.key) && n.type === "comp" && _.adaptSlot) {
639
+ const l = ae(_.adaptSlot);
640
+ if (l) {
641
+ if (l.kind === "elementSlot") {
642
+ const h = V[l.mainKey];
668
643
  if (h && h.slots) {
669
644
  const p = h.slots.find(
670
- (f) => f.key === u.slotKey
645
+ (f) => f.key === l.slotKey
671
646
  );
672
647
  if (p && p.events)
673
648
  for (const f of p.events)
@@ -676,8 +651,8 @@ function nn(t) {
676
651
  "adaptSlotElementEvent",
677
652
  t,
678
653
  rs(
679
- u.mainKey,
680
- u.slotKey,
654
+ l.mainKey,
655
+ l.slotKey,
681
656
  f.key
682
657
  )
683
658
  ),
@@ -686,11 +661,11 @@ function nn(t) {
686
661
  params: f.params
687
662
  });
688
663
  }
689
- } else if (u.kind === "customSlot") {
690
- const h = a[u.mainKey];
664
+ } else if (l.kind === "customSlot") {
665
+ const h = a[l.mainKey];
691
666
  if (h && h.meta.slots) {
692
667
  const p = h.meta.slots.find(
693
- (f) => f.id === u.slotKey
668
+ (f) => f.id === l.slotKey
694
669
  );
695
670
  if (p && p.events)
696
671
  for (const f of p.events)
@@ -698,7 +673,7 @@ function nn(t) {
698
673
  id: K(
699
674
  "adaptSlotCustomEvent",
700
675
  t,
701
- kn(u.mainKey, p.id, f.id)
676
+ kn(l.mainKey, p.id, f.id)
702
677
  ),
703
678
  kind: "adaptSlotCustomEvent",
704
679
  names: [h.name, p.name, f.name],
@@ -709,17 +684,17 @@ function nn(t) {
709
684
  }
710
685
  }
711
686
  if (e[d.key] && e[d.key][c])
712
- for (const { keys: u, names: h, raw: p } of e[d.key][c])
713
- ke(u, p) || r.push({
714
- id: K("elementPropertyChangeEvent", t, u),
687
+ for (const { keys: l, names: h, raw: p } of e[d.key][c])
688
+ ke(l, p) || r.push({
689
+ id: K("elementPropertyChangeEvent", t, l),
715
690
  kind: "elementPropertyChangeEvent",
716
691
  names: h,
717
692
  params: x(so(p))
718
693
  });
719
- if (et(d.key) && l.settings && l.settings.comp) {
720
- const u = a[l.settings.comp];
721
- if (u && u.meta.properties)
722
- for (const { id: h, name: p, type: f } of u.meta.properties)
694
+ if (et(d.key) && _.comp) {
695
+ const l = a[_.comp];
696
+ if (l && l.meta.properties)
697
+ for (const { id: h, name: p, type: f } of l.meta.properties)
723
698
  r.push({
724
699
  id: K("refPropertyChangeEvent", t, h),
725
700
  kind: "refPropertyChangeEvent",
@@ -727,10 +702,10 @@ function nn(t) {
727
702
  params: x(f)
728
703
  });
729
704
  }
730
- if (nt(d.key) && l.settings && l.settings.comp) {
731
- const u = a[l.settings.comp];
732
- if (u && u.meta.properties)
733
- for (const { id: h, name: p, type: f } of u.meta.properties)
705
+ if (nt(d.key) && _.comp) {
706
+ const l = a[_.comp];
707
+ if (l && l.meta.properties)
708
+ for (const { id: h, name: p, type: f } of l.meta.properties)
734
709
  r.push({
735
710
  id: K("multipleRefPropertyChangeEvent", t, h),
736
711
  kind: "multipleRefPropertyChangeEvent",
@@ -739,36 +714,36 @@ function nn(t) {
739
714
  });
740
715
  }
741
716
  if (L(d.key) && n.type === "comp" && s.meta.properties)
742
- for (const { id: u, name: h, type: p } of s.meta.properties)
717
+ for (const { id: l, name: h, type: p } of s.meta.properties)
743
718
  r.push({
744
- id: K("customPropertyChangeEvent", t, u),
719
+ id: K("customPropertyChangeEvent", t, l),
745
720
  kind: "customPropertyChangeEvent",
746
721
  names: [h],
747
722
  params: x(p)
748
723
  });
749
724
  if (L(d.key) && n.type === "comp" && s.meta.slots) {
750
- for (const u of s.meta.slots)
751
- if (u.properties)
752
- for (const h of u.properties)
725
+ for (const l of s.meta.slots)
726
+ if (l.properties)
727
+ for (const h of l.properties)
753
728
  r.push({
754
729
  id: K(
755
730
  "customSlotPropertyChangeEvent",
756
731
  t,
757
- qe("", u.id, h.id)
732
+ qe("", l.id, h.id)
758
733
  ),
759
734
  kind: "customSlotPropertyChangeEvent",
760
- names: [u.name, h.name],
735
+ names: [l.name, h.name],
761
736
  params: x(h.type)
762
737
  });
763
738
  }
764
- if (L(d.key) && n.type === "comp" && l.settings && l.settings.adaptSlot) {
765
- const u = ae(l.settings.adaptSlot);
766
- if (u) {
767
- if (u.kind === "elementSlot") {
768
- const h = V[u.mainKey];
739
+ if (L(d.key) && n.type === "comp" && _.adaptSlot) {
740
+ const l = ae(_.adaptSlot);
741
+ if (l) {
742
+ if (l.kind === "elementSlot") {
743
+ const h = V[l.mainKey];
769
744
  if (h && h.slots) {
770
745
  const p = h.slots.find(
771
- (f) => f.key === u.slotKey
746
+ (f) => f.key === l.slotKey
772
747
  );
773
748
  if (p && p.properties)
774
749
  for (const f of p.properties)
@@ -787,11 +762,11 @@ function nn(t) {
787
762
  params: x(f.type)
788
763
  });
789
764
  }
790
- } else if (u.kind === "customSlot") {
791
- const h = a[u.mainKey];
765
+ } else if (l.kind === "customSlot") {
766
+ const h = a[l.mainKey];
792
767
  if (h && h.meta.slots) {
793
768
  const p = h.meta.slots.find(
794
- (f) => f.id === u.slotKey
769
+ (f) => f.id === l.slotKey
795
770
  );
796
771
  if (p && p.properties)
797
772
  for (const f of p.properties)
@@ -800,7 +775,7 @@ function nn(t) {
800
775
  "adaptSlotCustomPropertyChangeEvent",
801
776
  t,
802
777
  qe(
803
- u.mainKey,
778
+ l.mainKey,
804
779
  p.id,
805
780
  f.id
806
781
  )
@@ -816,17 +791,17 @@ function nn(t) {
816
791
  if (L(d.key)) {
817
792
  if (n.type === "page") {
818
793
  if (o.meta.states)
819
- for (const { id: u, name: h, type: p } of o.meta.states)
794
+ for (const { id: l, name: h, type: p } of o.meta.states)
820
795
  r.push({
821
- id: K("stateChangeEvent", "globality", u),
796
+ id: K("stateChangeEvent", "globality", l),
822
797
  kind: "stateChangeEvent",
823
798
  names: [h],
824
799
  params: x(p)
825
800
  });
826
801
  } else if (n.type === "comp" && s.meta.states)
827
- for (const { id: u, name: h, type: p } of s.meta.states)
802
+ for (const { id: l, name: h, type: p } of s.meta.states)
828
803
  r.push({
829
- id: K("stateChangeEvent", "globality", u),
804
+ id: K("stateChangeEvent", "globality", l),
830
805
  kind: "stateChangeEvent",
831
806
  names: [h],
832
807
  params: x(p)
@@ -834,18 +809,18 @@ function nn(t) {
834
809
  }
835
810
  return r;
836
811
  }
837
- function Ke(t) {
812
+ function we(t) {
838
813
  if (!t)
839
814
  return;
840
815
  const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: s, depends: a } = I.app, r = Vt(n.type, n.subtype);
841
816
  if (!r)
842
817
  return;
843
- const { kind: c, nodeId: l, eventKey: d } = un(t), u = n.nodes.find((p) => p.id === l);
844
- if (!u)
818
+ const { kind: c, nodeId: _, eventKey: d } = un(t), l = n.nodes.find((p) => p.id === _);
819
+ if (!l)
845
820
  return;
846
- const h = V[u.key];
821
+ const h = V[l.key];
847
822
  if (!h) {
848
- console.assert(!1, "invalid element", u.key);
823
+ console.assert(!1, "invalid element", l.key);
849
824
  return;
850
825
  }
851
826
  if (c === "elementEvent") {
@@ -858,8 +833,8 @@ function Ke(t) {
858
833
  params: p.params
859
834
  };
860
835
  } else if (c === "referenceEvent") {
861
- if (et(h.key) && u.settings && u.settings.comp) {
862
- const p = a[u.settings.comp];
836
+ if (et(h.key) && l.comp) {
837
+ const p = a[l.comp];
863
838
  if (p) {
864
839
  const f = p.meta.events?.find((T) => T.id === d);
865
840
  if (f)
@@ -872,8 +847,8 @@ function Ke(t) {
872
847
  }
873
848
  }
874
849
  } else if (c === "multipleRefEvent") {
875
- if (nt(h.key) && u.settings && u.settings.comp) {
876
- const p = a[u.settings.comp];
850
+ if (nt(h.key) && l.comp) {
851
+ const p = a[l.comp];
877
852
  if (p) {
878
853
  const f = p.meta.events?.find((T) => T.id === d);
879
854
  if (f)
@@ -962,8 +937,8 @@ function Ke(t) {
962
937
  };
963
938
  }
964
939
  } else if (c === "referencePropertyChangeEvent") {
965
- if (et(h.key) && u.settings && u.settings.comp) {
966
- const p = a[u.settings.comp];
940
+ if (et(h.key) && l.comp) {
941
+ const p = a[l.comp];
967
942
  if (p) {
968
943
  const f = p.meta.properties?.find(
969
944
  (T) => T.id === d
@@ -978,8 +953,8 @@ function Ke(t) {
978
953
  }
979
954
  }
980
955
  } else if (c === "multipleRefPropertyChangeEvent") {
981
- if (nt(h.key) && u.settings && u.settings.comp) {
982
- const p = a[u.settings.comp];
956
+ if (nt(h.key) && l.comp) {
957
+ const p = a[l.comp];
983
958
  if (p) {
984
959
  const f = p.meta.properties?.find(
985
960
  (T) => T.id === d
@@ -1080,8 +1055,8 @@ function Ke(t) {
1080
1055
  }
1081
1056
  }
1082
1057
  }
1083
- function $s(t) {
1084
- const e = [], n = nn(t);
1058
+ function Ks(t) {
1059
+ const e = [], n = en(t);
1085
1060
  for (const { id: o, kind: s, names: a } of n)
1086
1061
  e.push([Oe(s, a), o]);
1087
1062
  return B(e);
@@ -1115,7 +1090,7 @@ function Mn(t) {
1115
1090
  };
1116
1091
  }
1117
1092
  }
1118
- function Hs() {
1093
+ function $s() {
1119
1094
  const t = [], e = uo();
1120
1095
  for (const { id: n, kind: o, names: s } of e)
1121
1096
  t.push([Oe(o, s), n]);
@@ -1137,7 +1112,7 @@ function tt(t) {
1137
1112
  e.push({ key: n, name: o, type: s });
1138
1113
  return e;
1139
1114
  }
1140
- function on(t) {
1115
+ function nn(t) {
1141
1116
  const { activeObject: e, activeComp: n, depends: o } = I.app, s = [], a = e.nodes.find((c) => c.id === t);
1142
1117
  if (!a)
1143
1118
  return s;
@@ -1145,94 +1120,94 @@ function on(t) {
1145
1120
  if (!r)
1146
1121
  return console.assert(!1, "inavlid element", a.key), s;
1147
1122
  if (r.methods)
1148
- for (const { key: c, name: l, inputs: d, outputs: u } of r.methods)
1123
+ for (const { key: c, name: _, inputs: d, outputs: l } of r.methods)
1149
1124
  s.push({
1150
1125
  id: _t("elementMethod", t, c),
1151
1126
  kind: "elementMethod",
1152
- names: [l],
1127
+ names: [_],
1153
1128
  inputs: d,
1154
- outputs: u
1129
+ outputs: l
1155
1130
  });
1156
- if (et(r.key) && a.settings && a.settings.comp) {
1157
- const c = o[a.settings.comp];
1131
+ if (et(r.key) && a.comp) {
1132
+ const c = o[a.comp];
1158
1133
  if (c && c.meta.methods)
1159
- for (const { id: l, name: d, inputs: u, outputs: h } of c.meta.methods)
1134
+ for (const { id: _, name: d, inputs: l, outputs: h } of c.meta.methods)
1160
1135
  s.push({
1161
- id: _t("refMethod", t, l),
1136
+ id: _t("refMethod", t, _),
1162
1137
  kind: "refMethod",
1163
1138
  names: [d],
1164
- inputs: H(u),
1139
+ inputs: H(l),
1165
1140
  outputs: tt(h)
1166
1141
  });
1167
1142
  }
1168
- if (nt(r.key) && a.settings && a.settings.comp) {
1169
- const c = o[a.settings.comp];
1143
+ if (nt(r.key) && a.comp) {
1144
+ const c = o[a.comp];
1170
1145
  if (c && c.meta.methods)
1171
- for (const { id: l, name: d, inputs: u, outputs: h } of c.meta.methods)
1146
+ for (const { id: _, name: d, inputs: l, outputs: h } of c.meta.methods)
1172
1147
  s.push({
1173
- id: _t("multipleRefMethod", t, l),
1148
+ id: _t("multipleRefMethod", t, _),
1174
1149
  kind: "multipleRefMethod",
1175
1150
  names: [d],
1176
- inputs: H(u),
1151
+ inputs: H(l),
1177
1152
  outputs: tt(h)
1178
1153
  });
1179
1154
  }
1180
1155
  if (L(r.key) && e.type === "comp" && n.meta.methods)
1181
- for (const { id: c, name: l, inputs: d, outputs: u } of n.meta.methods)
1156
+ for (const { id: c, name: _, inputs: d, outputs: l } of n.meta.methods)
1182
1157
  s.push({
1183
1158
  id: _t("customMethod", t, c),
1184
1159
  kind: "customMethod",
1185
- names: [l],
1160
+ names: [_],
1186
1161
  inputs: H(d),
1187
- outputs: tt(u)
1162
+ outputs: tt(l)
1188
1163
  });
1189
1164
  if (L(r.key) && e.type === "comp" && n.meta.slots) {
1190
1165
  for (const c of n.meta.slots)
1191
1166
  if (c.methods)
1192
- for (const l of c.methods)
1167
+ for (const _ of c.methods)
1193
1168
  s.push({
1194
1169
  id: _t(
1195
1170
  "customSlotMethod",
1196
1171
  t,
1197
- Sn("", c.id, l.id)
1172
+ Sn("", c.id, _.id)
1198
1173
  ),
1199
1174
  kind: "customSlotMethod",
1200
- names: [c.name, l.name],
1201
- inputs: H(l.inputs),
1202
- outputs: tt(l.outputs)
1175
+ names: [c.name, _.name],
1176
+ inputs: H(_.inputs),
1177
+ outputs: tt(_.outputs)
1203
1178
  });
1204
1179
  }
1205
- if (L(r.key) && e.type === "comp" && a.settings && a.settings.adaptSlot) {
1206
- const c = ae(a.settings.adaptSlot);
1180
+ if (L(r.key) && e.type === "comp" && a.adaptSlot) {
1181
+ const c = ae(a.adaptSlot);
1207
1182
  if (c) {
1208
1183
  if (c.kind === "elementSlot") {
1209
- const l = V[c.mainKey];
1210
- if (l && l.slots) {
1211
- const d = l.slots.find(
1212
- (u) => u.key === c.slotKey
1184
+ const _ = V[c.mainKey];
1185
+ if (_ && _.slots) {
1186
+ const d = _.slots.find(
1187
+ (l) => l.key === c.slotKey
1213
1188
  );
1214
1189
  if (d && d.methods)
1215
- for (const u of d.methods)
1190
+ for (const l of d.methods)
1216
1191
  s.push({
1217
1192
  id: _t(
1218
1193
  "adaptSlotElementMethod",
1219
1194
  t,
1220
- ls(l.key, d.key, u.key)
1195
+ ls(_.key, d.key, l.key)
1221
1196
  ),
1222
1197
  kind: "adaptSlotElementMethod",
1223
- names: [l.name, d.name, u.name],
1224
- inputs: u.inputs,
1225
- outputs: u.outputs
1198
+ names: [_.name, d.name, l.name],
1199
+ inputs: l.inputs,
1200
+ outputs: l.outputs
1226
1201
  });
1227
1202
  }
1228
1203
  } else if (c.kind === "customSlot") {
1229
- const l = o[c.mainKey];
1230
- if (l && l.meta.slots) {
1231
- const d = l.meta.slots.find(
1232
- (u) => u.id === c.slotKey
1204
+ const _ = o[c.mainKey];
1205
+ if (_ && _.meta.slots) {
1206
+ const d = _.meta.slots.find(
1207
+ (l) => l.id === c.slotKey
1233
1208
  );
1234
1209
  if (d && d.methods)
1235
- for (const u of d.methods)
1210
+ for (const l of d.methods)
1236
1211
  s.push({
1237
1212
  id: _t(
1238
1213
  "adaptSlotCustomMethod",
@@ -1240,13 +1215,13 @@ function on(t) {
1240
1215
  Sn(
1241
1216
  c.mainKey,
1242
1217
  d.id,
1243
- u.id
1218
+ l.id
1244
1219
  )
1245
1220
  ),
1246
1221
  kind: "adaptSlotCustomMethod",
1247
- names: [l.name, d.name, u.name],
1248
- inputs: H(u.inputs),
1249
- outputs: tt(u.outputs)
1222
+ names: [_.name, d.name, l.name],
1223
+ inputs: H(l.inputs),
1224
+ outputs: tt(l.outputs)
1250
1225
  });
1251
1226
  }
1252
1227
  }
@@ -1254,19 +1229,19 @@ function on(t) {
1254
1229
  }
1255
1230
  return s;
1256
1231
  }
1257
- function $e(t) {
1232
+ function Ke(t) {
1258
1233
  if (!t)
1259
1234
  return;
1260
1235
  const { activeObject: e, activeComp: n, depends: o } = I.app, { kind: s, nodeId: a, methodKey: r } = qt(t), c = e.nodes.find((d) => d.id === a);
1261
1236
  if (!c)
1262
1237
  return;
1263
- const l = V[c.key];
1264
- if (!l) {
1238
+ const _ = V[c.key];
1239
+ if (!_) {
1265
1240
  console.assert(!1, "invalid element", c.key);
1266
1241
  return;
1267
1242
  }
1268
1243
  if (s === "elementMethod") {
1269
- const d = l.methods?.find((u) => u.key === r);
1244
+ const d = _.methods?.find((l) => l.key === r);
1270
1245
  if (d)
1271
1246
  return {
1272
1247
  id: t,
@@ -1276,43 +1251,43 @@ function $e(t) {
1276
1251
  outputs: d.outputs
1277
1252
  };
1278
1253
  } else if (s === "referenceMethod") {
1279
- if (et(l.key) && c.settings && c.settings.comp) {
1280
- const d = o[c.settings.comp];
1254
+ if (et(_.key) && c.comp) {
1255
+ const d = o[c.comp];
1281
1256
  if (d) {
1282
- const u = d.meta.methods?.find(
1257
+ const l = d.meta.methods?.find(
1283
1258
  (h) => h.id === r
1284
1259
  );
1285
- if (u)
1260
+ if (l)
1286
1261
  return {
1287
1262
  id: t,
1288
1263
  kind: s,
1289
- names: [u.name],
1290
- inputs: H(u.inputs),
1291
- outputs: tt(u.outputs)
1264
+ names: [l.name],
1265
+ inputs: H(l.inputs),
1266
+ outputs: tt(l.outputs)
1292
1267
  };
1293
1268
  }
1294
1269
  }
1295
1270
  } else if (s === "multipleRefMethod") {
1296
- if (nt(l.key) && c.settings && c.settings.comp) {
1297
- const d = o[c.settings.comp];
1271
+ if (nt(_.key) && c.comp) {
1272
+ const d = o[c.comp];
1298
1273
  if (d) {
1299
- const u = d.meta.methods?.find(
1274
+ const l = d.meta.methods?.find(
1300
1275
  (h) => h.id === r
1301
1276
  );
1302
- if (u)
1277
+ if (l)
1303
1278
  return {
1304
1279
  id: t,
1305
1280
  kind: s,
1306
- names: [u.name],
1307
- inputs: H(u.inputs),
1308
- outputs: tt(u.outputs)
1281
+ names: [l.name],
1282
+ inputs: H(l.inputs),
1283
+ outputs: tt(l.outputs)
1309
1284
  };
1310
1285
  }
1311
1286
  }
1312
1287
  } else if (s === "customMethod") {
1313
- if (L(l.key) && e.type === "comp") {
1288
+ if (L(_.key) && e.type === "comp") {
1314
1289
  const d = n.meta.methods?.find(
1315
- (u) => u.id === r
1290
+ (l) => l.id === r
1316
1291
  );
1317
1292
  if (d)
1318
1293
  return {
@@ -1324,10 +1299,10 @@ function $e(t) {
1324
1299
  };
1325
1300
  }
1326
1301
  } else if (s === "customSlotMethod") {
1327
- if (L(l.key) && e.type === "comp" && n.meta.slots) {
1328
- const { slotId: d, methodId: u } = Qe(r), h = n.meta.slots.find((p) => p.id === d);
1302
+ if (L(_.key) && e.type === "comp" && n.meta.slots) {
1303
+ const { slotId: d, methodId: l } = Qe(r), h = n.meta.slots.find((p) => p.id === d);
1329
1304
  if (h && h.methods) {
1330
- const p = h.methods.find((f) => f.id === u);
1305
+ const p = h.methods.find((f) => f.id === l);
1331
1306
  if (p)
1332
1307
  return {
1333
1308
  id: t,
@@ -1339,14 +1314,14 @@ function $e(t) {
1339
1314
  }
1340
1315
  }
1341
1316
  } else if (s === "adaptSlotElementMethod") {
1342
- if (L(l.key) && e.type === "comp") {
1317
+ if (L(_.key) && e.type === "comp") {
1343
1318
  const {
1344
1319
  elementKey: d,
1345
- slotKey: u,
1320
+ slotKey: l,
1346
1321
  methodKey: h
1347
1322
  } = us(r), p = V[d];
1348
1323
  if (p && p.slots) {
1349
- const f = p.slots.find((T) => T.key === u);
1324
+ const f = p.slots.find((T) => T.key === l);
1350
1325
  if (f && f.methods) {
1351
1326
  const T = f.methods.find((E) => E.key === h);
1352
1327
  if (T)
@@ -1360,10 +1335,10 @@ function $e(t) {
1360
1335
  }
1361
1336
  }
1362
1337
  }
1363
- } else if (s === "adaptSlotCustomMethod" && L(l.key) && e.type === "comp") {
1364
- const { compId: d, slotId: u, methodId: h } = Qe(r), p = o[d];
1338
+ } else if (s === "adaptSlotCustomMethod" && L(_.key) && e.type === "comp") {
1339
+ const { compId: d, slotId: l, methodId: h } = Qe(r), p = o[d];
1365
1340
  if (p && p.meta.slots) {
1366
- const f = p.meta.slots.find((T) => T.id === u);
1341
+ const f = p.meta.slots.find((T) => T.id === l);
1367
1342
  if (f && f.methods) {
1368
1343
  const T = f.methods.find((E) => E.id === h);
1369
1344
  if (T)
@@ -1378,8 +1353,8 @@ function $e(t) {
1378
1353
  }
1379
1354
  }
1380
1355
  }
1381
- function Gs(t) {
1382
- const e = [], n = on(t);
1356
+ function Hs(t) {
1357
+ const e = [], n = nn(t);
1383
1358
  for (const { id: o, kind: s, names: a } of n)
1384
1359
  e.push([ve(s, a), o]);
1385
1360
  return B(e);
@@ -1428,14 +1403,14 @@ function Ut(t) {
1428
1403
  };
1429
1404
  }
1430
1405
  } else if (o === "customSlotMethod" && s === "globality" && e.type === "comp" && n.meta.slots) {
1431
- const { slotId: r, methodId: c } = Qe(a), l = n.meta.slots.find((d) => d.id === r);
1432
- if (l && l.methods) {
1433
- const d = l.methods.find((u) => u.id === c);
1406
+ const { slotId: r, methodId: c } = Qe(a), _ = n.meta.slots.find((d) => d.id === r);
1407
+ if (_ && _.methods) {
1408
+ const d = _.methods.find((l) => l.id === c);
1434
1409
  if (d)
1435
1410
  return {
1436
1411
  id: t,
1437
1412
  kind: o,
1438
- names: [l.name, d.name],
1413
+ names: [_.name, d.name],
1439
1414
  inputs: H(d.inputs),
1440
1415
  outputs: tt(d.outputs)
1441
1416
  };
@@ -1448,51 +1423,51 @@ function lo() {
1448
1423
  t.push([ve(o, s), n]);
1449
1424
  return B(t);
1450
1425
  }
1451
- function sn(t) {
1426
+ function on(t) {
1452
1427
  const e = Ut(t);
1453
1428
  return e ? e.outputs : [];
1454
1429
  }
1455
- function He(t, e) {
1430
+ function $e(t, e) {
1456
1431
  const n = Ut(t);
1457
1432
  if (n)
1458
1433
  return n.outputs?.find((o) => o.key === e);
1459
1434
  }
1460
- function Ws(t) {
1461
- const e = [], n = sn(t);
1435
+ function Gs(t) {
1436
+ const e = [], n = on(t);
1462
1437
  if (n)
1463
1438
  for (const { name: o, key: s } of n)
1464
1439
  e.push([o, s]);
1465
1440
  return B(e);
1466
1441
  }
1467
- function js(t, e, n) {
1442
+ function Ws(t, e, n) {
1468
1443
  const { properties: o } = I.runtime, { activeObject: s, activePage: a, activeComp: r, depends: c } = I.app;
1469
1444
  if (t.events && t.events.length > 0)
1470
1445
  return !1;
1471
1446
  if (et(t.key) && n) {
1472
- const l = c[n];
1473
- if (l && l.meta.events && l.meta.events.length > 0)
1447
+ const _ = c[n];
1448
+ if (_ && _.meta.events && _.meta.events.length > 0)
1474
1449
  return !1;
1475
1450
  }
1476
1451
  if (nt(t.key) && n) {
1477
- const l = c[n];
1478
- if (l && l.meta.events && l.meta.events.length > 0)
1452
+ const _ = c[n];
1453
+ if (_ && _.meta.events && _.meta.events.length > 0)
1479
1454
  return !1;
1480
1455
  }
1481
1456
  if (L(t.key) && s.type === "comp" && r.meta.events && r.meta.events.length > 0)
1482
1457
  return !1;
1483
1458
  if (o[t.key] && o[t.key][e]) {
1484
- for (const { keys: l, raw: d } of o[t.key][e])
1485
- if (!ke(l, d))
1459
+ for (const { keys: _, raw: d } of o[t.key][e])
1460
+ if (!ke(_, d))
1486
1461
  return !1;
1487
1462
  }
1488
1463
  if (et(t.key) && n) {
1489
- const l = c[n];
1490
- if (l && l.meta.properties && l.meta.properties.length > 0)
1464
+ const _ = c[n];
1465
+ if (_ && _.meta.properties && _.meta.properties.length > 0)
1491
1466
  return !1;
1492
1467
  }
1493
1468
  if (nt(t.key) && n) {
1494
- const l = c[n];
1495
- if (l && l.meta.properties && l.meta.properties.length > 0)
1469
+ const _ = c[n];
1470
+ if (_ && _.meta.properties && _.meta.properties.length > 0)
1496
1471
  return !1;
1497
1472
  }
1498
1473
  if (L(t.key) && s.type === "comp" && r.meta.properties && r.meta.properties.length > 0)
@@ -1506,7 +1481,7 @@ function js(t, e, n) {
1506
1481
  }
1507
1482
  return !0;
1508
1483
  }
1509
- function Xs(t, e) {
1484
+ function js(t, e) {
1510
1485
  const { activeObject: n, activeComp: o, depends: s } = I.app;
1511
1486
  if (t.methods && t.methods.length > 0)
1512
1487
  return !1;
@@ -1522,7 +1497,7 @@ function Xs(t, e) {
1522
1497
  }
1523
1498
  return L(t.key) && n.type === "comp" && o.meta.methods && o.meta.methods.length > 0 ? !1 : (L(t.key) && n.type, !0);
1524
1499
  }
1525
- function Js(t, e, n) {
1500
+ function Xs(t, e, n) {
1526
1501
  const { properties: o } = I.runtime, { activeObject: s, activeComp: a, depends: r } = I.app;
1527
1502
  if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
1528
1503
  return !1;
@@ -1538,11 +1513,11 @@ function Js(t, e, n) {
1538
1513
  }
1539
1514
  return !(L(t.key) && s.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
1540
1515
  }
1541
- function qs(t, e, n) {
1516
+ function Js(t, e, n) {
1542
1517
  const { properties: o } = I.runtime, { activeObject: s, activeComp: a, depends: r } = I.app;
1543
1518
  if (o[t.key] && o[t.key][e]) {
1544
- for (const { keys: c, raw: l } of o[t.key][e])
1545
- if (!ke(c, l))
1519
+ for (const { keys: c, raw: _ } of o[t.key][e])
1520
+ if (!ke(c, _))
1546
1521
  return !1;
1547
1522
  }
1548
1523
  if (et(t.key) && n) {
@@ -1558,7 +1533,7 @@ function qs(t, e, n) {
1558
1533
  return !(L(t.key) && s.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
1559
1534
  }
1560
1535
  function _o(t, e, n, o) {
1561
- return t ? t === "onEvent" ? js(e, n, o) : t === "callMethod" ? Xs(e, o) : t === "getProperty" ? Js(e, n, o) : t === "setProperty" ? qs(e, n, o) : !1 : !1;
1536
+ return t ? t === "onEvent" ? Ws(e, n, o) : t === "callMethod" ? js(e, o) : t === "getProperty" ? Xs(e, n, o) : t === "setProperty" ? Js(e, n, o) : !1 : !1;
1562
1537
  }
1563
1538
  function Z(t) {
1564
1539
  const { activeObject: e } = I.app, n = Vt(e.type, e.subtype);
@@ -1570,7 +1545,7 @@ function Z(t) {
1570
1545
  console.assert(!1, "invalid element", o.key);
1571
1546
  continue;
1572
1547
  }
1573
- if (!_o(t, s, n, o.settings?.comp))
1548
+ if (!_o(t, s, n, o.comp))
1574
1549
  return !0;
1575
1550
  }
1576
1551
  return !1;
@@ -1585,7 +1560,7 @@ function zt(t) {
1585
1560
  console.assert(!1, "invalid element", s.key);
1586
1561
  continue;
1587
1562
  }
1588
- _o(t, a, o, s.settings?.comp) || n.push({
1563
+ _o(t, a, o, s.comp) || n.push({
1589
1564
  id: s.id,
1590
1565
  key: s.key,
1591
1566
  name: a.name,
@@ -1618,20 +1593,45 @@ function Se(t) {
1618
1593
  }
1619
1594
  return B(n);
1620
1595
  }
1596
+ function sn(t) {
1597
+ const { appList: e } = I.app, n = [], o = e.find((s) => s.id === t);
1598
+ if (!o)
1599
+ return n;
1600
+ for (const { id: s, name: a } of o.pages)
1601
+ n.push({ id: s, name: a });
1602
+ return n;
1603
+ }
1604
+ function He(t, e) {
1605
+ const { appList: n } = I.app, o = n.find((a) => a.id === t);
1606
+ if (!o)
1607
+ return;
1608
+ const s = o.pages.find((a) => a.id === e);
1609
+ if (s)
1610
+ return {
1611
+ id: s.id,
1612
+ name: s.name
1613
+ };
1614
+ }
1615
+ function qs(t) {
1616
+ const e = [];
1617
+ return sn(t).forEach(({ id: o, name: s }) => {
1618
+ e.push([s, o]);
1619
+ }), B(e);
1620
+ }
1621
1621
  function Wt(t, e) {
1622
1622
  const { properties: n } = I.runtime, { activeObject: o, activeComp: s, depends: a } = I.app, r = [], c = Vt(o.type, o.subtype);
1623
1623
  if (!c)
1624
1624
  return r;
1625
- const l = o.nodes.find((u) => u.id === t);
1626
- if (!l)
1625
+ const _ = o.nodes.find((l) => l.id === t);
1626
+ if (!_)
1627
1627
  return r;
1628
- const d = V[l.key];
1628
+ const d = V[_.key];
1629
1629
  if (!d)
1630
- return console.assert(!1, "invalid element", l.key), r;
1630
+ return console.assert(!1, "invalid element", _.key), r;
1631
1631
  if (n[d.key] && n[d.key][c])
1632
- for (const { keys: u, names: h, raw: p } of n[d.key][c])
1633
- e === "write" && ke(u, p) || r.push({
1634
- id: kt("elementProperty", t, u),
1632
+ for (const { keys: l, names: h, raw: p } of n[d.key][c])
1633
+ e === "write" && ke(l, p) || r.push({
1634
+ id: kt("elementProperty", t, l),
1635
1635
  kind: "elementProperty",
1636
1636
  names: h,
1637
1637
  meta: {
@@ -1639,10 +1639,10 @@ function Wt(t, e) {
1639
1639
  raw: p
1640
1640
  }
1641
1641
  });
1642
- if (et(d.key) && l.settings && l.settings.comp) {
1643
- const u = a[l.settings.comp];
1644
- if (u && u.meta.properties)
1645
- for (const { id: h, name: p, type: f } of u.meta.properties)
1642
+ if (et(d.key) && _.comp) {
1643
+ const l = a[_.comp];
1644
+ if (l && l.meta.properties)
1645
+ for (const { id: h, name: p, type: f } of l.meta.properties)
1646
1646
  r.push({
1647
1647
  id: kt("refProperty", t, h),
1648
1648
  kind: "refProperty",
@@ -1652,10 +1652,10 @@ function Wt(t, e) {
1652
1652
  }
1653
1653
  });
1654
1654
  }
1655
- if (nt(d.key) && l.settings && l.settings.comp) {
1656
- const u = a[l.settings.comp];
1657
- if (u && u.meta.properties)
1658
- for (const { id: h, name: p, type: f } of u.meta.properties)
1655
+ if (nt(d.key) && _.comp) {
1656
+ const l = a[_.comp];
1657
+ if (l && l.meta.properties)
1658
+ for (const { id: h, name: p, type: f } of l.meta.properties)
1659
1659
  r.push({
1660
1660
  id: kt("multipleRefProperty", t, h),
1661
1661
  kind: "multipleRefProperty",
@@ -1666,38 +1666,36 @@ function Wt(t, e) {
1666
1666
  });
1667
1667
  }
1668
1668
  if (L(d.key) && o.type === "comp" && s.meta.properties)
1669
- for (const { id: u, name: h, type: p } of s.meta.properties)
1669
+ for (const { id: l, name: h, type: p } of s.meta.properties)
1670
1670
  r.push({
1671
- id: kt("customProperty", t, u),
1671
+ id: kt("customProperty", t, l),
1672
1672
  kind: "customProperty",
1673
1673
  names: [h],
1674
1674
  meta: {
1675
1675
  raw: { type: p }
1676
1676
  }
1677
1677
  });
1678
- if (io(d.key) && l.settings && l.settings.slot && o.type === "comp" && s.meta.slots) {
1679
- const u = s.meta.slots.find(
1680
- (h) => h.id === l.settings.slot
1681
- );
1682
- if (u && u.properties)
1683
- for (const h of u.properties)
1678
+ if (io(d.key) && _.slot && o.type === "comp" && s.meta.slots) {
1679
+ const l = s.meta.slots.find((h) => h.id === _.slot);
1680
+ if (l && l.properties)
1681
+ for (const h of l.properties)
1684
1682
  r.push({
1685
1683
  id: kt("customSlotProperty", t, h.id),
1686
1684
  kind: "customSlotProperty",
1687
- names: [u.name, h.name],
1685
+ names: [l.name, h.name],
1688
1686
  meta: {
1689
1687
  raw: { type: h.type }
1690
1688
  }
1691
1689
  });
1692
1690
  }
1693
- if (L(d.key) && o.type === "comp" && l.settings && l.settings.adaptSlot) {
1694
- const u = ae(l.settings.adaptSlot);
1695
- if (u) {
1696
- if (u.kind === "elementSlot") {
1697
- const h = V[u.mainKey];
1691
+ if (L(d.key) && o.type === "comp" && _.adaptSlot) {
1692
+ const l = ae(_.adaptSlot);
1693
+ if (l) {
1694
+ if (l.kind === "elementSlot") {
1695
+ const h = V[l.mainKey];
1698
1696
  if (h && h.slots) {
1699
1697
  const p = h.slots.find(
1700
- (f) => f.key === u.slotKey
1698
+ (f) => f.key === l.slotKey
1701
1699
  );
1702
1700
  if (p && p.properties)
1703
1701
  for (const f of p.properties)
@@ -1718,11 +1716,11 @@ function Wt(t, e) {
1718
1716
  }
1719
1717
  });
1720
1718
  }
1721
- } else if (u.kind === "customSlot") {
1722
- const h = a[u.mainKey];
1719
+ } else if (l.kind === "customSlot") {
1720
+ const h = a[l.mainKey];
1723
1721
  if (h && h.meta.slots) {
1724
1722
  const p = h.meta.slots.find(
1725
- (f) => f.id === u.slotKey
1723
+ (f) => f.id === l.slotKey
1726
1724
  );
1727
1725
  if (p && p.properties)
1728
1726
  for (const f of p.properties)
@@ -1731,7 +1729,7 @@ function Wt(t, e) {
1731
1729
  "adaptSlotCustomProperty",
1732
1730
  t,
1733
1731
  qe(
1734
- u.mainKey,
1732
+ l.mainKey,
1735
1733
  p.id,
1736
1734
  f.id
1737
1735
  )
@@ -1754,18 +1752,18 @@ function Nt(t) {
1754
1752
  const { properties: e } = I.runtime, { activeObject: n, activeComp: o, depends: s } = I.app, a = Vt(n.type, n.subtype);
1755
1753
  if (!a)
1756
1754
  return;
1757
- const { kind: r, nodeId: c, propertyKey: l } = _s(t), d = n.nodes.find((h) => h.id === c);
1755
+ const { kind: r, nodeId: c, propertyKey: _ } = _s(t), d = n.nodes.find((h) => h.id === c);
1758
1756
  if (!d)
1759
1757
  return;
1760
- const u = V[d.key];
1761
- if (!u) {
1758
+ const l = V[d.key];
1759
+ if (!l) {
1762
1760
  console.assert(!1, "invalid element", d.key);
1763
1761
  return;
1764
1762
  }
1765
1763
  if (r === "elementProperty") {
1766
- if (e[u.key] && e[u.key][a]) {
1767
- const h = e[u.key][a].find(
1768
- (p) => p.keys === l
1764
+ if (e[l.key] && e[l.key][a]) {
1765
+ const h = e[l.key][a].find(
1766
+ (p) => p.keys === _
1769
1767
  );
1770
1768
  if (h)
1771
1769
  return {
@@ -1779,11 +1777,11 @@ function Nt(t) {
1779
1777
  };
1780
1778
  }
1781
1779
  } else if (r === "referenceProperty") {
1782
- if (et(u.key) && d.settings && d.settings.comp) {
1783
- const h = s[d.settings.comp];
1780
+ if (et(l.key) && d.comp) {
1781
+ const h = s[d.comp];
1784
1782
  if (h) {
1785
1783
  const p = h.meta.properties?.find(
1786
- (f) => f.id === l
1784
+ (f) => f.id === _
1787
1785
  );
1788
1786
  if (p)
1789
1787
  return {
@@ -1797,11 +1795,11 @@ function Nt(t) {
1797
1795
  }
1798
1796
  }
1799
1797
  } else if (r === "multipleRefProperty") {
1800
- if (nt(u.key) && d.settings && d.settings.comp) {
1801
- const h = s[d.settings.comp];
1798
+ if (nt(l.key) && d.comp) {
1799
+ const h = s[d.comp];
1802
1800
  if (h) {
1803
1801
  const p = h.meta.properties?.find(
1804
- (f) => f.id === l
1802
+ (f) => f.id === _
1805
1803
  );
1806
1804
  if (p)
1807
1805
  return {
@@ -1815,9 +1813,9 @@ function Nt(t) {
1815
1813
  }
1816
1814
  }
1817
1815
  } else if (r === "customProperty") {
1818
- if (L(u.key) && n.type === "comp") {
1816
+ if (L(l.key) && n.type === "comp") {
1819
1817
  const h = o.meta.properties?.find(
1820
- (p) => p.id === l
1818
+ (p) => p.id === _
1821
1819
  );
1822
1820
  if (h)
1823
1821
  return {
@@ -1830,12 +1828,10 @@ function Nt(t) {
1830
1828
  };
1831
1829
  }
1832
1830
  } else if (r === "customSlotProperty") {
1833
- if (io(u.key) && d.settings && d.settings.slot && n.type === "comp" && o.meta.slots) {
1834
- const h = o.meta.slots.find(
1835
- (p) => p.id === d.settings.slot
1836
- );
1831
+ if (io(l.key) && d.slot && n.type === "comp" && o.meta.slots) {
1832
+ const h = o.meta.slots.find((p) => p.id === d.slot);
1837
1833
  if (h && h.properties) {
1838
- const p = h.properties.find((f) => f.id === l);
1834
+ const p = h.properties.find((f) => f.id === _);
1839
1835
  if (p)
1840
1836
  return {
1841
1837
  id: t,
@@ -1848,12 +1844,12 @@ function Nt(t) {
1848
1844
  }
1849
1845
  }
1850
1846
  } else if (r === "adaptSlotElementProperty") {
1851
- if (L(u.key) && n.type === "comp") {
1847
+ if (L(l.key) && n.type === "comp") {
1852
1848
  const {
1853
1849
  elementKey: h,
1854
1850
  slotKey: p,
1855
1851
  propertyKey: f
1856
- } = qn(l), T = V[h];
1852
+ } = qn(_), T = V[h];
1857
1853
  if (T && T.slots) {
1858
1854
  const E = T.slots.find((y) => y.key === p);
1859
1855
  if (E && E.properties) {
@@ -1872,8 +1868,8 @@ function Nt(t) {
1872
1868
  }
1873
1869
  }
1874
1870
  }
1875
- } else if (r === "adaptSlotCustomProperty" && L(u.key) && n.type === "comp") {
1876
- const { compId: h, slotId: p, propertyId: f } = Je(l), T = s[h];
1871
+ } else if (r === "adaptSlotCustomProperty" && L(l.key) && n.type === "comp") {
1872
+ const { compId: h, slotId: p, propertyId: f } = Je(_), T = s[h];
1877
1873
  if (T && T.meta.slots) {
1878
1874
  const E = T.meta.slots.find((y) => y.id === p);
1879
1875
  if (E && E.properties) {
@@ -1969,7 +1965,7 @@ const zs = {
1969
1965
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1970
1966
  const e = this.getField("NODE");
1971
1967
  e.getOptions(!1), e.setValue(this.node.id);
1972
- const n = nn(this.node.id)?.[0];
1968
+ const n = en(this.node.id)?.[0];
1973
1969
  if (!n)
1974
1970
  return;
1975
1971
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
@@ -1991,7 +1987,7 @@ const zs = {
1991
1987
  return Se("onEvent");
1992
1988
  },
1993
1989
  genEventOpts_: function() {
1994
- return $s(this.node.id);
1990
+ return Ks(this.node.id);
1995
1991
  },
1996
1992
  onchange: function(t) {
1997
1993
  if (t.type === P.STATE_CHANGE)
@@ -2012,14 +2008,14 @@ const zs = {
2012
2008
  const n = this.node.key !== e.key;
2013
2009
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2014
2010
  const o = this.getField("EVENT");
2015
- if (o.getOptions(!1), n || !Ke(this.event.id)) {
2016
- const s = nn(this.node.id)?.[0];
2011
+ if (o.getOptions(!1), n || !we(this.event.id)) {
2012
+ const s = en(this.node.id)?.[0];
2017
2013
  o.setValue(s?.id ?? "");
2018
2014
  }
2019
2015
  this.onEventChange_(o.getValue());
2020
2016
  },
2021
2017
  onEventChange_: function(t) {
2022
- const e = Ke(t);
2018
+ const e = we(t);
2023
2019
  e ? (this.event.id = e.id, this.event.kind = e.kind, this.event.names = e.names, this.event.params = e.params) : (this.event.id = "", this.event.kind = "", this.event.names = [], this.event.params = void 0), this.updateShape_(), setTimeout(() => {
2024
2020
  this.ensureBlocks_();
2025
2021
  }, 0);
@@ -2064,7 +2060,7 @@ const zs = {
2064
2060
  return;
2065
2061
  }
2066
2062
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2067
- const e = Ke(this.event.id);
2063
+ const e = we(this.event.id);
2068
2064
  if (!e) {
2069
2065
  this.setWarningText(m("WARN_EVENT_NOT_FOUND"));
2070
2066
  return;
@@ -2124,7 +2120,7 @@ const Zs = {
2124
2120
  }, 0);
2125
2121
  },
2126
2122
  genEventOpts_: function() {
2127
- return Hs();
2123
+ return $s();
2128
2124
  },
2129
2125
  onchange: function(t) {
2130
2126
  if (t.type === P.STATE_CHANGE)
@@ -2189,7 +2185,7 @@ i.forBlock.trigger_app_event_v1 = function(t) {
2189
2185
  const r = i.valueToCode(
2190
2186
  n,
2191
2187
  "PARAM" + a,
2192
- _.NONE
2188
+ u.NONE
2193
2189
  );
2194
2190
  o && (o += ", "), o += r;
2195
2191
  }
@@ -2238,7 +2234,7 @@ g([
2238
2234
  }
2239
2235
  ]);
2240
2236
  i.forBlock.app_debug_trace_v1 = function(t) {
2241
- return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", _.NONE)});
2237
+ return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", u.NONE)});
2242
2238
  `;
2243
2239
  };
2244
2240
  const ti = {
@@ -2272,7 +2268,7 @@ const ti = {
2272
2268
  };
2273
2269
  A.open_confirm_dlg_v1 = ti;
2274
2270
  i.forBlock.open_confirm_dlg_v1 = function(t) {
2275
- const e = i.valueToCode(t, "TITLE", _.ATOMIC), n = i.valueToCode(t, "TEXT", _.ATOMIC), o = i.statementToCode(t, "HANDLE");
2271
+ const e = i.valueToCode(t, "TITLE", u.ATOMIC), n = i.valueToCode(t, "TEXT", u.ATOMIC), o = i.statementToCode(t, "HANDLE");
2276
2272
  return `{
2277
2273
  var __result__ = await __openConfirmDlgV1__(${e}, ${n});
2278
2274
  ${o}}
@@ -2311,7 +2307,7 @@ const ei = {
2311
2307
  };
2312
2308
  A.open_prompt_dlg_v1 = ei;
2313
2309
  i.forBlock.open_prompt_dlg_v1 = function(t) {
2314
- const e = i.valueToCode(t, "TITLE", _.ATOMIC), n = i.valueToCode(t, "LABEL", _.ATOMIC), o = i.valueToCode(t, "VALUE", _.ATOMIC), s = i.statementToCode(t, "HANDLE");
2310
+ const e = i.valueToCode(t, "TITLE", u.ATOMIC), n = i.valueToCode(t, "LABEL", u.ATOMIC), o = i.valueToCode(t, "VALUE", u.ATOMIC), s = i.statementToCode(t, "HANDLE");
2315
2311
  return `{
2316
2312
  var __result__ = await __openPromptDlgV1__(${e}, ${n}, ${o});
2317
2313
  ${s}}
@@ -2345,7 +2341,7 @@ g([
2345
2341
  }
2346
2342
  ]);
2347
2343
  i.forBlock.popup_message_v1 = function(t) {
2348
- const e = i.quote_(t.getFieldValue("TYPE")), n = i.valueToCode(t, "TEXT", _.ATOMIC);
2344
+ const e = i.quote_(t.getFieldValue("TYPE")), n = i.valueToCode(t, "TEXT", u.ATOMIC);
2349
2345
  return `__messageV1__(${e}, ${n});
2350
2346
  `;
2351
2347
  };
@@ -2373,7 +2369,7 @@ const ni = {
2373
2369
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2374
2370
  const e = this.getField("NODE");
2375
2371
  e.getOptions(!1), e.setValue(this.node.id);
2376
- const n = on(this.node.id)?.[0];
2372
+ const n = nn(this.node.id)?.[0];
2377
2373
  if (!n)
2378
2374
  return;
2379
2375
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -2395,7 +2391,7 @@ const ni = {
2395
2391
  return Se("callMethod");
2396
2392
  },
2397
2393
  genMethodOpts_: function() {
2398
- return Gs(this.node.id);
2394
+ return Hs(this.node.id);
2399
2395
  },
2400
2396
  onchange: function(t) {
2401
2397
  if (t.type === P.STATE_CHANGE)
@@ -2416,14 +2412,14 @@ const ni = {
2416
2412
  const n = this.node.key !== e.key;
2417
2413
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2418
2414
  const o = this.getField("METHOD");
2419
- if (o.getOptions(!1), n || !$e(this.method.id)) {
2420
- const s = on(this.node.id)?.[0];
2415
+ if (o.getOptions(!1), n || !Ke(this.method.id)) {
2416
+ const s = nn(this.node.id)?.[0];
2421
2417
  o.setValue(s?.id ?? "");
2422
2418
  }
2423
2419
  this.onMethodChange_(o.getValue());
2424
2420
  },
2425
2421
  onMethodChange_: function(t) {
2426
- const e = $e(t);
2422
+ const e = Ke(t);
2427
2423
  e ? (this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.id = "", this.method.kind = "", this.method.names = [], this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShadow_(), setTimeout(() => {
2428
2424
  this.ensureBlocks_();
2429
2425
  }, 0);
@@ -2487,7 +2483,7 @@ const ni = {
2487
2483
  return;
2488
2484
  }
2489
2485
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2490
- const e = $e(this.method.id);
2486
+ const e = Ke(this.method.id);
2491
2487
  if (!e) {
2492
2488
  this.setWarningText(m("WARN_METHOD_NOT_FOUND"));
2493
2489
  return;
@@ -2511,37 +2507,37 @@ A.call_app_method_v1 = ni;
2511
2507
  i.forBlock.call_app_method_v1 = function(t) {
2512
2508
  const e = i.INDENT, n = i.quote_, o = t;
2513
2509
  let s;
2514
- o.method.kind === "multipleRefMethod" && (s = i.valueToCode(o, "REF_KEY", _.NONE) || "''");
2510
+ o.method.kind === "multipleRefMethod" && (s = i.valueToCode(o, "REF_KEY", u.NONE) || "''");
2515
2511
  let a = "{";
2516
2512
  if (o.method.inputs)
2517
2513
  for (let c = 0; c < o.method.inputs.length; c++) {
2518
- const { key: l, type: d } = o.method.inputs[c];
2519
- let u = i.valueToCode(
2514
+ const { key: _, type: d } = o.method.inputs[c];
2515
+ let l = i.valueToCode(
2520
2516
  o,
2521
2517
  "INPUT" + c,
2522
- _.ATOMIC
2518
+ u.ATOMIC
2523
2519
  );
2524
- if (u === void 0)
2520
+ if (l === void 0)
2525
2521
  switch (d) {
2526
2522
  case "string":
2527
- u = "''";
2523
+ l = "''";
2528
2524
  break;
2529
2525
  case "number":
2530
- u = "0";
2526
+ l = "0";
2531
2527
  break;
2532
2528
  case "boolean":
2533
- u = "false";
2529
+ l = "false";
2534
2530
  break;
2535
2531
  case "array":
2536
- u = "[]";
2532
+ l = "[]";
2537
2533
  break;
2538
2534
  case "object":
2539
- u = "{}";
2535
+ l = "{}";
2540
2536
  break;
2541
2537
  default:
2542
- u = "null";
2538
+ l = "null";
2543
2539
  }
2544
- a !== "{" && (a += ", "), a += `${n(l)}: ${u}`;
2540
+ a !== "{" && (a += ", "), a += `${n(_)}: ${l}`;
2545
2541
  }
2546
2542
  a += "}";
2547
2543
  let r = "";
@@ -2552,10 +2548,10 @@ i.forBlock.call_app_method_v1 = function(t) {
2552
2548
  if (o.method.kind === "customMethod") {
2553
2549
  const { methodKey: c } = qt(o.method.id);
2554
2550
  if (o.method.outputs && o.method.outputs.length > 0) {
2555
- const l = i.statementToCode(o, "HANDLE");
2551
+ const _ = i.statementToCode(o, "HANDLE");
2556
2552
  return `{
2557
2553
  var __outputs__ = __implementMethod$${c}__(${a});
2558
- ${r}${l}}
2554
+ ${r}${_}}
2559
2555
  `;
2560
2556
  } else
2561
2557
  return `__implementMethod$${c}__(${a});
@@ -2660,8 +2656,8 @@ i.forBlock.implement_app_method_v1 = function(t) {
2660
2656
  const e = i.INDENT, n = i.quote_, o = t, { methodKey: s } = qt(o.method.id);
2661
2657
  let a = "";
2662
2658
  if (o.method.inputs)
2663
- for (const { key: l } of o.method.inputs)
2664
- a += `${e}var __input$${l}__ = __inputs__[${n(l)}];
2659
+ for (const { key: _ } of o.method.inputs)
2660
+ a += `${e}var __input$${_}__ = __inputs__[${n(_)}];
2665
2661
  `;
2666
2662
  const r = i.statementToCode(o, "HANDLE");
2667
2663
  return `async function __implementMethod$${s}__(__inputs__) {
@@ -2697,7 +2693,7 @@ const si = {
2697
2693
  this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
2698
2694
  const e = this.getField("METHOD");
2699
2695
  e.getOptions(!1), e.setValue(this.method.id);
2700
- const n = sn(this.method.id)?.[0];
2696
+ const n = on(this.method.id)?.[0];
2701
2697
  if (!n)
2702
2698
  return;
2703
2699
  this.output.key = n.key, this.output.name = n.name, this.output.type = n.type;
@@ -2719,7 +2715,7 @@ const si = {
2719
2715
  return lo();
2720
2716
  },
2721
2717
  genOutputOpts_: function() {
2722
- return Ws(this.method.id);
2718
+ return Gs(this.method.id);
2723
2719
  },
2724
2720
  onchange: function(t) {
2725
2721
  if (t.type === P.STATE_CHANGE)
@@ -2740,14 +2736,14 @@ const si = {
2740
2736
  const n = this.method.id !== e.id;
2741
2737
  this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names;
2742
2738
  const o = this.getField("OUTPUT");
2743
- if (o.getOptions(!1), n || !He(this.method.id, this.output.key)) {
2744
- const s = sn(this.method.id)?.[0];
2739
+ if (o.getOptions(!1), n || !$e(this.method.id, this.output.key)) {
2740
+ const s = on(this.method.id)?.[0];
2745
2741
  o.setValue(s?.key ?? "");
2746
2742
  }
2747
2743
  this.onOutputChange_(o.getValue());
2748
2744
  },
2749
2745
  onOutputChange_: function(t) {
2750
- const e = He(this.method.id, t);
2746
+ const e = $e(this.method.id, t);
2751
2747
  e ? (this.output.key = e.key, this.output.name = e.name, this.output.type = e.type) : (this.output.key = "", this.output.name = "", this.output.type = "string");
2752
2748
  },
2753
2749
  updateShape_: function() {
@@ -2775,7 +2771,7 @@ const si = {
2775
2771
  return;
2776
2772
  }
2777
2773
  t.names !== this.method.names && (this.method.names = t.names);
2778
- const e = He(
2774
+ const e = $e(
2779
2775
  this.method.id,
2780
2776
  this.output.key
2781
2777
  );
@@ -2793,7 +2789,7 @@ const si = {
2793
2789
  A.set_app_method_output_v1 = si;
2794
2790
  i.forBlock.set_app_method_output_v1 = function(t) {
2795
2791
  const e = i.quote_, n = t;
2796
- let o = i.valueToCode(n, "VALUE", _.ATOMIC);
2792
+ let o = i.valueToCode(n, "VALUE", u.ATOMIC);
2797
2793
  if (o === void 0)
2798
2794
  switch (n.output.type) {
2799
2795
  case "string":
@@ -2838,7 +2834,7 @@ g([
2838
2834
  }
2839
2835
  ]);
2840
2836
  i.forBlock.app_env_is_v1 = function(t) {
2841
- return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, _.ATOMIC];
2837
+ return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, u.ATOMIC];
2842
2838
  };
2843
2839
  const ii = {
2844
2840
  init: function() {
@@ -2859,7 +2855,7 @@ const ii = {
2859
2855
  this.app.id = t.id, this.app.name = t.name;
2860
2856
  const e = this.getField("APP");
2861
2857
  e.getOptions(!1), e.setValue(this.app.id);
2862
- const n = en(this.app.id)?.[0];
2858
+ const n = sn(this.app.id)?.[0];
2863
2859
  if (!n)
2864
2860
  return;
2865
2861
  this.page.id = n.id, this.page.name = n.name;
@@ -2881,7 +2877,7 @@ const ii = {
2881
2877
  return Fs();
2882
2878
  },
2883
2879
  genPageOpts_: function() {
2884
- return ws(this.app.id);
2880
+ return qs(this.app.id);
2885
2881
  },
2886
2882
  onchange: function(t) {
2887
2883
  if (t.type === P.STATE_CHANGE)
@@ -2902,13 +2898,13 @@ const ii = {
2902
2898
  const n = this.app.id !== e.id;
2903
2899
  this.app.id = e.id, this.app.name = e.name;
2904
2900
  const o = this.getField("PAGE");
2905
- if (o.getOptions(!1), n || !we(this.app.id, this.page.id)) {
2906
- const a = en(this.app.id)?.[0]?.id ?? "";
2901
+ if (o.getOptions(!1), n || !He(this.app.id, this.page.id)) {
2902
+ const a = sn(this.app.id)?.[0]?.id ?? "";
2907
2903
  o.setValue(a), this.page.id === a && this.onPageChange_(a);
2908
2904
  }
2909
2905
  },
2910
2906
  onPageChange_: function(t) {
2911
- const e = we(this.app.id, t);
2907
+ const e = He(this.app.id, t);
2912
2908
  e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
2913
2909
  },
2914
2910
  checkWarning_: function() {
@@ -2918,7 +2914,7 @@ const ii = {
2918
2914
  return;
2919
2915
  }
2920
2916
  t.name !== this.app.name && (this.app.name = t.name);
2921
- const e = we(this.app.id, this.page.id);
2917
+ const e = He(this.app.id, this.page.id);
2922
2918
  if (!e) {
2923
2919
  this.setWarningText(m("WARN_PAGE_NOT_FOUND"));
2924
2920
  return;
@@ -2960,7 +2956,7 @@ const ai = {
2960
2956
  }, 0);
2961
2957
  },
2962
2958
  genCompOpts_: function() {
2963
- return Ks();
2959
+ return ws();
2964
2960
  },
2965
2961
  onchange: function(t) {
2966
2962
  if (t.type === P.STATE_CHANGE)
@@ -2987,8 +2983,8 @@ const ai = {
2987
2983
  };
2988
2984
  A.select_comp_v1 = ai;
2989
2985
  i.forBlock.select_comp_v1 = function(t) {
2990
- const e = i.quote_, o = t.comp.id ?? "";
2991
- return [e(o), _.ATOMIC];
2986
+ const e = i.quote_, o = t.comp.id;
2987
+ return [e(o), u.ATOMIC];
2992
2988
  };
2993
2989
  const ci = {
2994
2990
  init: function() {
@@ -3045,8 +3041,8 @@ const ci = {
3045
3041
  };
3046
3042
  A.select_slot_v1 = ci;
3047
3043
  i.forBlock.select_slot_v1 = function(t) {
3048
- const e = i.quote_, o = t.slot.id ?? "";
3049
- return [e(o), _.ATOMIC];
3044
+ const e = i.quote_, o = t.slot.id;
3045
+ return [e(o), u.ATOMIC];
3050
3046
  };
3051
3047
  const ri = {
3052
3048
  init: function() {
@@ -3151,7 +3147,7 @@ const ri = {
3151
3147
  A.get_app_property_v1 = ri;
3152
3148
  i.forBlock.get_app_property_v1 = function(t) {
3153
3149
  const e = i.quote_;
3154
- return [`__getPropertyV1__(${e(t.property.id)}, ${e("")})`, _.ATOMIC];
3150
+ return [`__getPropertyV1__(${e(t.property.id)}, ${e("")})`, u.ATOMIC];
3155
3151
  };
3156
3152
  const ui = {
3157
3153
  init: function() {
@@ -3271,7 +3267,7 @@ const ui = {
3271
3267
  };
3272
3268
  A.set_app_property_v1 = ui;
3273
3269
  i.forBlock.set_app_property_v1 = function(t) {
3274
- const e = i.quote_, n = t, o = "", s = i.valueToCode(n, "VALUE", _.NONE);
3270
+ const e = i.quote_, n = t, o = "", s = i.valueToCode(n, "VALUE", u.NONE);
3275
3271
  return `__setPropertyV1__(${e(n.property.id)}, ${e(o)}, ${s});
3276
3272
  `;
3277
3273
  };
@@ -3337,7 +3333,7 @@ const li = {
3337
3333
  A.get_app_state_v1 = li;
3338
3334
  i.forBlock.get_app_state_v1 = function(t) {
3339
3335
  const e = i.quote_;
3340
- return [`__getStateV1__(${e(t.state.id)})`, _.ATOMIC];
3336
+ return [`__getStateV1__(${e(t.state.id)})`, u.ATOMIC];
3341
3337
  };
3342
3338
  const _i = {
3343
3339
  init: function() {
@@ -3405,7 +3401,7 @@ const _i = {
3405
3401
  };
3406
3402
  A.set_app_state_v1 = _i;
3407
3403
  i.forBlock.set_app_state_v1 = function(t) {
3408
- const e = i.quote_, n = t, o = i.valueToCode(n, "VALUE", _.NONE);
3404
+ const e = i.quote_, n = t, o = i.valueToCode(n, "VALUE", u.NONE);
3409
3405
  return `__setStateV1__(${e(n.state.id)}, ${o});
3410
3406
  `;
3411
3407
  };
@@ -3440,7 +3436,7 @@ g([
3440
3436
  }
3441
3437
  ]);
3442
3438
  i.forBlock.color_blend_v1 = function(t) {
3443
- const e = i.valueToCode(t, "COLOR1", _.NONE) || "'#ffffff'", n = i.valueToCode(t, "COLOR2", _.NONE) || "'#000000'", o = i.valueToCode(t, "RATIO", _.NONE) || 0.5;
3439
+ const e = i.valueToCode(t, "COLOR1", u.NONE) || "'#ffffff'", n = i.valueToCode(t, "COLOR2", u.NONE) || "'#000000'", o = i.valueToCode(t, "RATIO", u.NONE) || 0.5;
3444
3440
  return [`${i.provideFunction_(
3445
3441
  "colorBlend",
3446
3442
  `
@@ -3461,7 +3457,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
3461
3457
  return '#' + r + g + b;
3462
3458
  }
3463
3459
  `
3464
- )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
3460
+ )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
3465
3461
  };
3466
3462
  g([
3467
3463
  {
@@ -4042,7 +4038,7 @@ g([
4042
4038
  }
4043
4039
  ]);
4044
4040
  i.forBlock.color_picker_v1 = function(t) {
4045
- return [i.quote_(t.getFieldValue("COLOR")), _.ATOMIC];
4041
+ return [i.quote_(t.getFieldValue("COLOR")), u.ATOMIC];
4046
4042
  };
4047
4043
  g([
4048
4044
  {
@@ -4063,7 +4059,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}() {
4063
4059
  return '#' + ('00000' + num.toString(16)).substr(-6);
4064
4060
  }
4065
4061
  `
4066
- )}()`, _.FUNCTION_CALL];
4062
+ )}()`, u.FUNCTION_CALL];
4067
4063
  };
4068
4064
  g([
4069
4065
  {
@@ -4096,7 +4092,7 @@ g([
4096
4092
  }
4097
4093
  ]);
4098
4094
  i.forBlock.color_rgb_v1 = function(t) {
4099
- const e = i.valueToCode(t, "RED", _.NONE) || 0, n = i.valueToCode(t, "GREEN", _.NONE) || 0, o = i.valueToCode(t, "BLUE", _.NONE) || 0;
4095
+ const e = i.valueToCode(t, "RED", u.NONE) || 0, n = i.valueToCode(t, "GREEN", u.NONE) || 0, o = i.valueToCode(t, "BLUE", u.NONE) || 0;
4100
4096
  return [`${i.provideFunction_(
4101
4097
  "colorRgb",
4102
4098
  `
@@ -4110,7 +4106,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
4110
4106
  return '#' + r + g + b;
4111
4107
  }
4112
4108
  `
4113
- )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
4109
+ )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
4114
4110
  };
4115
4111
  const pi = N.xml, di = [
4116
4112
  {
@@ -4239,7 +4235,7 @@ const fi = {
4239
4235
  };
4240
4236
  A.parameter_v1 = fi;
4241
4237
  i.forBlock.parameter_v1 = function(t) {
4242
- return [t.key, _.ATOMIC];
4238
+ return [t.key, u.ATOMIC];
4243
4239
  };
4244
4240
  const mi = {
4245
4241
  init: function() {
@@ -4449,22 +4445,22 @@ i.forBlock.call_func_v1 = function(t) {
4449
4445
  const f = i.valueToCode(
4450
4446
  o,
4451
4447
  "INPUT" + p,
4452
- _.ATOMIC
4448
+ u.ATOMIC
4453
4449
  );
4454
4450
  r += `${e}${e}${n(h)}: ${f},
4455
4451
  `;
4456
4452
  }), r += `${e}};`;
4457
4453
  const c = n(o.space.name + "/" + o.func.name);
4458
- let l = "";
4454
+ let _ = "";
4459
4455
  o.func.outputs.forEach(({ id: h }) => {
4460
- l += `${e}var __output${h}__ = __result__[${n(h)}];
4456
+ _ += `${e}var __output${h}__ = __result__[${n(h)}];
4461
4457
  `;
4462
4458
  });
4463
4459
  const d = i.statementToCode(o, "CALLBACK");
4464
4460
  return `{
4465
4461
  ${r}
4466
4462
  ${e}var __result__ = __callFuncV1__(${s},${a},__inputs__,__getEnvV1__(),${c});
4467
- ${l}${d}}
4463
+ ${_}${d}}
4468
4464
  `;
4469
4465
  };
4470
4466
  const gi = {
@@ -4623,15 +4619,15 @@ i.forBlock.call_func_internal_v1 = function(t) {
4623
4619
  const f = i.valueToCode(
4624
4620
  o,
4625
4621
  "INPUT" + p,
4626
- _.ATOMIC
4622
+ u.ATOMIC
4627
4623
  );
4628
4624
  r += `${e}${e}${n(h)}: ${f},
4629
4625
  `;
4630
4626
  }), r += `${e}};`;
4631
4627
  const c = o.space.name + "/" + o.func.name;
4632
- let l = "";
4628
+ let _ = "";
4633
4629
  o.func.outputs.forEach(({ id: h }) => {
4634
- l += `${e}var __output$${h}__ = __result__.outputs[${n(h)}];
4630
+ _ += `${e}var __output$${h}__ = __result__.outputs[${n(h)}];
4635
4631
  `;
4636
4632
  });
4637
4633
  const d = i.statementToCode(o, "CALLBACK");
@@ -4641,7 +4637,7 @@ ${e}var __result__ = __callFuncInternalV1__(${s}, ${a}, __inputs__);
4641
4637
  ${e}if (!__result__.success) {
4642
4638
  ${e}${e}throw 'call func<${c}> failed, reason: ' + __result__.message;
4643
4639
  ${e}}
4644
- ${l}${d}}
4640
+ ${_}${d}}
4645
4641
  `;
4646
4642
  };
4647
4643
  const Ai = {
@@ -4789,7 +4785,7 @@ const Ii = {
4789
4785
  A.set_func_output_v1 = Ii;
4790
4786
  i.forBlock.set_func_output_v1 = function(t) {
4791
4787
  const e = i.quote_, n = t, { id: o, type: s } = n.output;
4792
- let a = i.valueToCode(n, "VALUE", _.ATOMIC);
4788
+ let a = i.valueToCode(n, "VALUE", u.ATOMIC);
4793
4789
  if (a === void 0)
4794
4790
  switch (s) {
4795
4791
  case "string":
@@ -4832,7 +4828,7 @@ g([
4832
4828
  }
4833
4829
  ]);
4834
4830
  i.forBlock.compute_debug_trace_v1 = function(t) {
4835
- return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", _.ATOMIC)});
4831
+ return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", u.ATOMIC)});
4836
4832
  `;
4837
4833
  };
4838
4834
  g([
@@ -4856,7 +4852,7 @@ g([
4856
4852
  }
4857
4853
  ]);
4858
4854
  i.forBlock.compute_env_is_v1 = function(t) {
4859
- return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, _.ATOMIC];
4855
+ return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, u.ATOMIC];
4860
4856
  };
4861
4857
  function at() {
4862
4858
  const t = [];
@@ -4931,9 +4927,9 @@ function Oi(t) {
4931
4927
  },
4932
4928
  itemCount: c.columns.length
4933
4929
  }, o = {};
4934
- for (let l = 0; l < c.columns.length; l++) {
4935
- const d = c.columns[l];
4936
- o["COLUMN" + l] = d.id;
4930
+ for (let _ = 0; _ < c.columns.length; _++) {
4931
+ const d = c.columns[_];
4932
+ o["COLUMN" + _] = d.id;
4937
4933
  }
4938
4934
  }
4939
4935
  }
@@ -4993,7 +4989,7 @@ const Ci = {
4993
4989
  };
4994
4990
  A.add_data_v1 = Ci;
4995
4991
  i.forBlock.add_data_v1 = function(t) {
4996
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.statementToCode(t, "HANDLE");
4992
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.statementToCode(t, "HANDLE");
4997
4993
  return `{
4998
4994
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
4999
4995
  ${e}var __table__ = ${n};
@@ -5170,7 +5166,7 @@ const ki = {
5170
5166
  };
5171
5167
  A.cond_atomic_v1 = ki;
5172
5168
  i.forBlock.cond_atomic_v1 = function(t) {
5173
- const e = i.quote_, n = t, o = n.column.name, s = i.valueToCode(n, "VALUE", _.ATOMIC) || null, r = {
5169
+ const e = i.quote_, n = t, o = n.column.name, s = i.valueToCode(n, "VALUE", u.ATOMIC) || null, r = {
5174
5170
  EQ: "=",
5175
5171
  NEQ: "!=",
5176
5172
  LT: "<",
@@ -5178,7 +5174,7 @@ i.forBlock.cond_atomic_v1 = function(t) {
5178
5174
  GT: ">",
5179
5175
  GTE: ">="
5180
5176
  }[n.getFieldValue("OP")];
5181
- return [`{type:'ATOMIC',key:${e(o)},value:${s},operator:${e(r)}}`, _.ATOMIC];
5177
+ return [`{type:'ATOMIC',key:${e(o)},value:${s},operator:${e(r)}}`, u.ATOMIC];
5182
5178
  };
5183
5179
  const Si = {
5184
5180
  init: function() {
@@ -5268,13 +5264,13 @@ const Li = {
5268
5264
  };
5269
5265
  A.cond_logic_v1 = Li;
5270
5266
  i.forBlock.cond_logic_v1 = function(t) {
5271
- const e = i.quote_, n = t, o = n.getFieldValue("TYPE"), s = [], a = i.valueToCode(n, "VALUE", _.ATOMIC) || null;
5267
+ const e = i.quote_, n = t, o = n.getFieldValue("TYPE"), s = [], a = i.valueToCode(n, "VALUE", u.ATOMIC) || null;
5272
5268
  s.push(a);
5273
5269
  for (let c = 0; c < n.itemCount_; c++) {
5274
- const l = i.valueToCode(n, "ADD" + c, _.ATOMIC) || null;
5275
- s.push(l);
5270
+ const _ = i.valueToCode(n, "ADD" + c, u.ATOMIC) || null;
5271
+ s.push(_);
5276
5272
  }
5277
- return [`{type:${e(o)},entries:[${s}]}`, _.ATOMIC];
5273
+ return [`{type:${e(o)},entries:[${s}]}`, u.ATOMIC];
5278
5274
  };
5279
5275
  function Bi(t) {
5280
5276
  const e = t.getInput("TABLE").connection;
@@ -5368,7 +5364,7 @@ const Ri = {
5368
5364
  };
5369
5365
  A.delete_data_v1 = Ri;
5370
5366
  i.forBlock.delete_data_v1 = function(t) {
5371
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", _.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
5367
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", u.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
5372
5368
  return `{
5373
5369
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
5374
5370
  ${e}var __table__ = ${n};
@@ -5401,7 +5397,7 @@ g([
5401
5397
  }
5402
5398
  ]);
5403
5399
  i.forBlock.interrupt_transaction_v1 = function(t) {
5404
- return `throw ${i.valueToCode(t, "VALUE", _.NONE) || "''"};
5400
+ return `throw ${i.valueToCode(t, "VALUE", u.NONE) || "''"};
5405
5401
  `;
5406
5402
  };
5407
5403
  function Di(t) {
@@ -5425,9 +5421,9 @@ function Di(t) {
5425
5421
  },
5426
5422
  itemCount: c.columns.length
5427
5423
  }, o = {};
5428
- for (let l = 0; l < c.columns.length; l++) {
5429
- const d = c.columns[l];
5430
- o["COLUMN" + l] = d.id, o["ALIAS" + l] = d.name;
5424
+ for (let _ = 0; _ < c.columns.length; _++) {
5425
+ const d = c.columns[_];
5426
+ o["COLUMN" + _] = d.id, o["ALIAS" + _] = d.name;
5431
5427
  }
5432
5428
  }
5433
5429
  }
@@ -5548,7 +5544,7 @@ const xi = {
5548
5544
  };
5549
5545
  A.query_data_v1 = xi;
5550
5546
  i.forBlock.query_data_v1 = function(t) {
5551
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", _.ATOMIC) || "null", s = i.valueToCode(t, "EXTRA", _.ATOMIC) || "null", a = i.statementToCode(t, "HANDLE");
5547
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", u.ATOMIC) || "null", s = i.valueToCode(t, "EXTRA", u.ATOMIC) || "null", a = i.statementToCode(t, "HANDLE");
5552
5548
  return `{
5553
5549
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
5554
5550
  ${e}var __table__ = ${n};
@@ -5589,8 +5585,8 @@ g([
5589
5585
  }
5590
5586
  ]);
5591
5587
  i.forBlock.query_extra_limit_v1 = function(t) {
5592
- const e = i.valueToCode(t, "OFFSET", _.ATOMIC) || 0, n = i.valueToCode(t, "LIMIT", _.ATOMIC) || 0;
5593
- return [`{type:'limit',value:${e},value2:${n}}`, _.ATOMIC];
5588
+ const e = i.valueToCode(t, "OFFSET", u.ATOMIC) || 0, n = i.valueToCode(t, "LIMIT", u.ATOMIC) || 0;
5589
+ return [`{type:'limit',value:${e},value2:${n}}`, u.ATOMIC];
5594
5590
  };
5595
5591
  g([
5596
5592
  {
@@ -5616,8 +5612,8 @@ g([
5616
5612
  }
5617
5613
  ]);
5618
5614
  i.forBlock.query_extra_sortby_v1 = function(t) {
5619
- const e = i.valueToCode(t, "COLUMN", _.ATOMIC) || "''", n = i.valueToCode(t, "DESC", _.ATOMIC) || !1;
5620
- return [`{type:'sortby',value:${e},value2:${n}}`, _.ATOMIC];
5615
+ const e = i.valueToCode(t, "COLUMN", u.ATOMIC) || "''", n = i.valueToCode(t, "DESC", u.ATOMIC) || !1;
5616
+ return [`{type:'sortby',value:${e},value2:${n}}`, u.ATOMIC];
5621
5617
  };
5622
5618
  const Yi = {
5623
5619
  init: function() {
@@ -5843,14 +5839,14 @@ const wi = {
5843
5839
  A.select_column_v1 = wi;
5844
5840
  i.forBlock.select_column_v1 = function(t) {
5845
5841
  const e = i.quote_, n = t, o = n.space.id, s = n.table.id, a = [];
5846
- for (let l = 0; l < n.itemCount_; l++) {
5847
- const d = n.getFieldValue("COLUMN" + l), u = n.table.columns.find((p) => p.id === d).name, h = n.getFieldValue("ALIAS" + l);
5848
- a.push({ name: u, alias: h });
5842
+ for (let _ = 0; _ < n.itemCount_; _++) {
5843
+ const d = n.getFieldValue("COLUMN" + _), l = n.table.columns.find((p) => p.id === d).name, h = n.getFieldValue("ALIAS" + _);
5844
+ a.push({ name: l, alias: h });
5849
5845
  }
5850
5846
  let r = "[";
5851
- return a.forEach(({ name: l, alias: d }, u) => {
5852
- u !== 0 && (r += ","), r += `{name:${e(l)},alias:${e(d)}}`;
5853
- }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, _.ATOMIC];
5847
+ return a.forEach(({ name: _, alias: d }, l) => {
5848
+ l !== 0 && (r += ","), r += `{name:${e(_)},alias:${e(d)}}`;
5849
+ }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, u.ATOMIC];
5854
5850
  };
5855
5851
  const Ki = {
5856
5852
  init: function() {
@@ -5947,7 +5943,7 @@ const Ki = {
5947
5943
  A.select_table_v1 = Ki;
5948
5944
  i.forBlock.select_table_v1 = function(t) {
5949
5945
  const e = i.quote_, n = t, o = n.space.id, s = n.table.id;
5950
- return [`{spaceId:${e(o)},tableId:${e(s)}}`, _.ATOMIC];
5946
+ return [`{spaceId:${e(o)},tableId:${e(s)}}`, u.ATOMIC];
5951
5947
  };
5952
5948
  const $i = {
5953
5949
  init: function() {
@@ -6235,7 +6231,7 @@ const Wi = {
6235
6231
  s && s.dispose();
6236
6232
  else if (s)
6237
6233
  continue;
6238
- const a = this.getFieldValue("COLUMN" + e), r = this.table.columns.find((l) => l.id === a);
6234
+ const a = this.getFieldValue("COLUMN" + e), r = this.table.columns.find((_) => _.id === a);
6239
6235
  if (!r)
6240
6236
  continue;
6241
6237
  n.setCheck(null);
@@ -6274,14 +6270,14 @@ const Wi = {
6274
6270
  A.update_column_v1 = Wi;
6275
6271
  i.forBlock.update_column_v1 = function(t) {
6276
6272
  const e = i.quote_, n = t, o = n.space.id, s = n.table.id, a = [];
6277
- for (let l = 0; l < n.itemCount_; l++) {
6278
- const d = n.getFieldValue("COLUMN" + l), u = n.table.columns.find((p) => p.id === d).name, h = i.valueToCode(n, "ADD" + l, _.ATOMIC) || "null";
6279
- a.push({ name: u, value: h });
6273
+ for (let _ = 0; _ < n.itemCount_; _++) {
6274
+ const d = n.getFieldValue("COLUMN" + _), l = n.table.columns.find((p) => p.id === d).name, h = i.valueToCode(n, "ADD" + _, u.ATOMIC) || "null";
6275
+ a.push({ name: l, value: h });
6280
6276
  }
6281
6277
  let r = "[";
6282
- return a.forEach(({ name: l, value: d }, u) => {
6283
- u !== 0 && (r += ","), r += `{name:${e(l)},value:${d}}`;
6284
- }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, _.ATOMIC];
6278
+ return a.forEach(({ name: _, value: d }, l) => {
6279
+ l !== 0 && (r += ","), r += `{name:${e(_)},value:${d}}`;
6280
+ }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, u.ATOMIC];
6285
6281
  };
6286
6282
  function ji(t) {
6287
6283
  const e = t.getInput("TABLE").connection;
@@ -6304,9 +6300,9 @@ function ji(t) {
6304
6300
  },
6305
6301
  itemCount: c.columns.length
6306
6302
  }, o = {};
6307
- for (let l = 0; l < c.columns.length; l++) {
6308
- const d = c.columns[l];
6309
- o["COLUMN" + l] = d.id;
6303
+ for (let _ = 0; _ < c.columns.length; _++) {
6304
+ const d = c.columns[_];
6305
+ o["COLUMN" + _] = d.id;
6310
6306
  }
6311
6307
  }
6312
6308
  }
@@ -6375,7 +6371,7 @@ const qi = {
6375
6371
  };
6376
6372
  A.update_data_v1 = qi;
6377
6373
  i.forBlock.update_data_v1 = function(t) {
6378
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", _.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
6374
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", u.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
6379
6375
  return `{
6380
6376
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
6381
6377
  ${e}var __table__ = ${n};
@@ -6647,8 +6643,8 @@ A.list_create_v1 = ca;
6647
6643
  i.forBlock.list_create_v1 = function(t) {
6648
6644
  const e = t, n = new Array(e.itemCount_);
6649
6645
  for (let s = 0; s < e.itemCount_; s++)
6650
- n[s] = i.valueToCode(e, "ADD" + s, _.NONE) || "null";
6651
- return ["[" + n.join(", ") + "]", _.ATOMIC];
6646
+ n[s] = i.valueToCode(e, "ADD" + s, u.NONE) || "null";
6647
+ return ["[" + n.join(", ") + "]", u.ATOMIC];
6652
6648
  };
6653
6649
  g([
6654
6650
  {
@@ -6675,7 +6671,7 @@ g([
6675
6671
  }
6676
6672
  ]);
6677
6673
  i.forBlock.list_delete_v1 = function(t) {
6678
- const e = i.valueToCode(t, "VALUE", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6674
+ const e = i.valueToCode(t, "VALUE", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6679
6675
  return `${e}.splice(${n}, 1)`;
6680
6676
  };
6681
6677
  g([
@@ -6702,8 +6698,8 @@ g([
6702
6698
  }
6703
6699
  ]);
6704
6700
  i.forBlock.list_get_v1 = function(t) {
6705
- const e = i.valueToCode(t, "VALUE", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6706
- return [`${e}[${n}]`, _.MEMBER];
6701
+ const e = i.valueToCode(t, "VALUE", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6702
+ return [`${e}[${n}]`, u.MEMBER];
6707
6703
  };
6708
6704
  g([
6709
6705
  {
@@ -6734,8 +6730,8 @@ g([
6734
6730
  }
6735
6731
  ]);
6736
6732
  i.forBlock.list_get_sublist_v1 = function(t) {
6737
- const e = i.valueToCode(t, "LIST", _.MEMBER) || "[]", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
6738
- return [`${e}.slice(${n}, ${o})`, _.FUNCTION_CALL];
6733
+ const e = i.valueToCode(t, "LIST", u.MEMBER) || "[]", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
6734
+ return [`${e}.slice(${n}, ${o})`, u.FUNCTION_CALL];
6739
6735
  };
6740
6736
  g([
6741
6737
  {
@@ -6755,7 +6751,7 @@ g([
6755
6751
  }
6756
6752
  ]);
6757
6753
  i.forBlock.list_is_empty_v1 = function(t) {
6758
- return [`!${i.valueToCode(t, "VALUE", _.MEMBER) || "[]"}.length`, _.LOGICAL_NOT];
6754
+ return [`!${i.valueToCode(t, "VALUE", u.MEMBER) || "[]"}.length`, u.LOGICAL_NOT];
6759
6755
  };
6760
6756
  g([
6761
6757
  {
@@ -6781,8 +6777,8 @@ g([
6781
6777
  }
6782
6778
  ]);
6783
6779
  i.forBlock.list_join_v1 = function(t) {
6784
- const e = i.valueToCode(t, "LIST", _.MEMBER) || "[]", n = i.valueToCode(t, "DELIM", _.NONE) || "''";
6785
- return [`${e}.join(${n})`, _.FUNCTION_CALL];
6780
+ const e = i.valueToCode(t, "LIST", u.MEMBER) || "[]", n = i.valueToCode(t, "DELIM", u.NONE) || "''";
6781
+ return [`${e}.join(${n})`, u.FUNCTION_CALL];
6786
6782
  };
6787
6783
  g([
6788
6784
  {
@@ -6802,7 +6798,7 @@ g([
6802
6798
  }
6803
6799
  ]);
6804
6800
  i.forBlock.list_length_v1 = function(t) {
6805
- return [`${i.valueToCode(t, "VALUE", _.MEMBER) || "[]"}.length`, _.MEMBER];
6801
+ return [`${i.valueToCode(t, "VALUE", u.MEMBER) || "[]"}.length`, u.MEMBER];
6806
6802
  };
6807
6803
  g([
6808
6804
  {
@@ -6823,7 +6819,7 @@ g([
6823
6819
  }
6824
6820
  ]);
6825
6821
  i.forBlock.list_reverse_v1 = function(t) {
6826
- return [`${i.valueToCode(t, "LIST", _.NONE) || "[]"}.slice().reverse()`, _.FUNCTION_CALL];
6822
+ return [`${i.valueToCode(t, "LIST", u.NONE) || "[]"}.slice().reverse()`, u.FUNCTION_CALL];
6827
6823
  };
6828
6824
  g([
6829
6825
  {
@@ -6855,7 +6851,7 @@ g([
6855
6851
  }
6856
6852
  ]);
6857
6853
  i.forBlock.list_set_v1 = function(t) {
6858
- const e = i.valueToCode(t, "LIST", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT"), o = i.valueToCode(t, "VALUE", _.ASSIGNMENT) || "null";
6854
+ const e = i.valueToCode(t, "LIST", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT"), o = i.valueToCode(t, "VALUE", u.ASSIGNMENT) || "null";
6859
6855
  return `${e}[${n}] = ${o};
6860
6856
  `;
6861
6857
  };
@@ -6896,7 +6892,7 @@ g([
6896
6892
  }
6897
6893
  ]);
6898
6894
  i.forBlock.logic_boolean_v1 = function(t) {
6899
- return [t.getFieldValue("BOOL") === "TRUE" ? "true" : "false", _.ATOMIC];
6895
+ return [t.getFieldValue("BOOL") === "TRUE" ? "true" : "false", u.ATOMIC];
6900
6896
  };
6901
6897
  const ua = {
6902
6898
  onchange: function(t) {
@@ -6963,8 +6959,8 @@ i.forBlock.logic_compare_v1 = function(t) {
6963
6959
  GT: ">",
6964
6960
  GTE: ">="
6965
6961
  }[t.getFieldValue("OP")];
6966
- let o = _.RELATIONAL;
6967
- (n === "==" || n === "!=") && (o = _.EQUALITY);
6962
+ let o = u.RELATIONAL;
6963
+ (n === "==" || n === "!=") && (o = u.EQUALITY);
6968
6964
  const s = i.valueToCode(t, "A", o) || "0", a = i.valueToCode(t, "B", o) || "0";
6969
6965
  return [`${s} ${n} ${a}`, o];
6970
6966
  };
@@ -7154,7 +7150,7 @@ i.forBlock.logic_if_v1 = function(t) {
7154
7150
  t
7155
7151
  ));
7156
7152
  do {
7157
- const o = i.valueToCode(t, "IF" + e, _.NONE) || "false";
7153
+ const o = i.valueToCode(t, "IF" + e, u.NONE) || "false";
7158
7154
  let s = i.statementToCode(t, "DO" + e);
7159
7155
  i.STATEMENT_SUFFIX && (s = i.prefixLines(
7160
7156
  i.injectId(
@@ -7197,7 +7193,7 @@ g([
7197
7193
  }
7198
7194
  ]);
7199
7195
  i.forBlock.logic_negate_v1 = function(t) {
7200
- return [`!${i.valueToCode(t, "BOOL", _.LOGICAL_NOT) || "true"}`, _.LOGICAL_NOT];
7196
+ return [`!${i.valueToCode(t, "BOOL", u.LOGICAL_NOT) || "true"}`, u.LOGICAL_NOT];
7201
7197
  };
7202
7198
  g([
7203
7199
  {
@@ -7231,7 +7227,7 @@ g([
7231
7227
  }
7232
7228
  ]);
7233
7229
  i.forBlock.logic_operation_v1 = function(t) {
7234
- const e = t.getFieldValue("OP") === "AND" ? "&&" : "||", n = e === "&&" ? _.LOGICAL_AND : _.LOGICAL_OR;
7230
+ const e = t.getFieldValue("OP") === "AND" ? "&&" : "||", n = e === "&&" ? u.LOGICAL_AND : u.LOGICAL_OR;
7235
7231
  let o = i.valueToCode(t, "A", n), s = i.valueToCode(t, "B", n);
7236
7232
  if (!o && !s)
7237
7233
  o = "false", s = "false";
@@ -7290,8 +7286,8 @@ g([
7290
7286
  }
7291
7287
  ]);
7292
7288
  i.forBlock.logic_ternary_v1 = function(t) {
7293
- const e = i.valueToCode(t, "IF", _.CONDITIONAL) || "false", n = i.valueToCode(t, "THEN", _.CONDITIONAL) || "null", o = i.valueToCode(t, "ELSE", _.CONDITIONAL) || "null";
7294
- return [e + " ? " + n + " : " + o, _.CONDITIONAL];
7289
+ const e = i.valueToCode(t, "IF", u.CONDITIONAL) || "false", n = i.valueToCode(t, "THEN", u.CONDITIONAL) || "null", o = i.valueToCode(t, "ELSE", u.CONDITIONAL) || "null";
7290
+ return [e + " ? " + n + " : " + o, u.CONDITIONAL];
7295
7291
  };
7296
7292
  const pa = {
7297
7293
  customContextMenu: function(t) {
@@ -7457,7 +7453,7 @@ g([
7457
7453
  i.forBlock.for_v1 = function(t) {
7458
7454
  const e = i.INDENT, n = i.getVariableName(
7459
7455
  t.getFieldValue("VAR")
7460
- ), o = i.valueToCode(t, "FROM", _.ASSIGNMENT) || "0", s = i.valueToCode(t, "TO", _.ASSIGNMENT) || "0", a = i.valueToCode(t, "BY", _.ASSIGNMENT) || "1", r = i.addLoopTrap(
7456
+ ), o = i.valueToCode(t, "FROM", u.ASSIGNMENT) || "0", s = i.valueToCode(t, "TO", u.ASSIGNMENT) || "0", a = i.valueToCode(t, "BY", u.ASSIGNMENT) || "1", r = i.addLoopTrap(
7461
7457
  i.statementToCode(t, "DO"),
7462
7458
  t
7463
7459
  );
@@ -7469,11 +7465,11 @@ ${r}}
7469
7465
  ${r}}
7470
7466
  `;
7471
7467
  } else {
7472
- let c = "", l = o;
7473
- !o.match(/^\w+$/) && !N.string.isNumber(o) && (l = i.nameDB_.getDistinctName(
7468
+ let c = "", _ = o;
7469
+ !o.match(/^\w+$/) && !N.string.isNumber(o) && (_ = i.nameDB_.getDistinctName(
7474
7470
  `${n}_from`,
7475
7471
  rt.NameType.VARIABLE
7476
- ), c += `var ${l} = ${o};
7472
+ ), c += `var ${_} = ${o};
7477
7473
  `);
7478
7474
  let d = s;
7479
7475
  !s.match(/^\w+$/) && !N.string.isNumber(s) && (d = i.nameDB_.getDistinctName(
@@ -7481,16 +7477,16 @@ ${r}}
7481
7477
  rt.NameType.VARIABLE
7482
7478
  ), c += `var ${d} = ${s};
7483
7479
  `);
7484
- const u = i.nameDB_.getDistinctName(
7480
+ const l = i.nameDB_.getDistinctName(
7485
7481
  `${n}_by`,
7486
7482
  rt.NameType.VARIABLE
7487
7483
  );
7488
- return c += `var ${u} = `, N.string.isNumber(a) ? c += `${Math.abs(Number(a))};
7484
+ return c += `var ${l} = `, N.string.isNumber(a) ? c += `${Math.abs(Number(a))};
7489
7485
  ` : c += `Math.abs(${a});
7490
- `, c += `if (${l} > ${d}) {
7491
- ${e}${u} = -${u};
7486
+ `, c += `if (${_} > ${d}) {
7487
+ ${e}${l} = -${l};
7492
7488
  }
7493
- `, c += `for (${n} = ${l}; ${u} >= 0 ? ${n} <= ${d} : ${n} >= ${d}; ${n} += ${u}) {
7489
+ `, c += `for (${n} = ${_}; ${l} >= 0 ? ${n} <= ${d} : ${n} >= ${d}; ${n} += ${l}) {
7494
7490
  ${r}}
7495
7491
  `, c;
7496
7492
  }
@@ -7535,7 +7531,7 @@ g([
7535
7531
  i.forBlock.for_each_v1 = function(t) {
7536
7532
  const e = i.INDENT, n = i.getVariableName(
7537
7533
  t.getFieldValue("VAR")
7538
- ), o = i.valueToCode(t, "LIST", _.ASSIGNMENT) || "[]", s = i.addLoopTrap(
7534
+ ), o = i.valueToCode(t, "LIST", u.ASSIGNMENT) || "[]", s = i.addLoopTrap(
7539
7535
  i.statementToCode(t, "DO"),
7540
7536
  t
7541
7537
  );
@@ -7581,7 +7577,7 @@ g([
7581
7577
  ]);
7582
7578
  i.forBlock.repeat_v1 = function(t) {
7583
7579
  let e = "";
7584
- t.getField("TIMES") ? e = String(Number(t.getFieldValue("TIMES"))) : e = i.valueToCode(t, "TIMES", _.ASSIGNMENT) || "0";
7580
+ t.getField("TIMES") ? e = String(Number(t.getFieldValue("TIMES"))) : e = i.valueToCode(t, "TIMES", u.ASSIGNMENT) || "0";
7585
7581
  const n = i.addLoopTrap(
7586
7582
  i.statementToCode(t, "DO"),
7587
7583
  t
@@ -7645,7 +7641,7 @@ i.forBlock.while_until_v1 = function(t) {
7645
7641
  let n = i.valueToCode(
7646
7642
  t,
7647
7643
  "CONDITION",
7648
- e === "UNTIL" ? _.LOGICAL_NOT : _.NONE
7644
+ e === "UNTIL" ? u.LOGICAL_NOT : u.NONE
7649
7645
  ) || "false";
7650
7646
  e === "UNTIL" && (n = "!" + n);
7651
7647
  const o = i.addLoopTrap(
@@ -7728,13 +7724,13 @@ g([
7728
7724
  ]);
7729
7725
  i.forBlock.math_arithmetic_v1 = function(t) {
7730
7726
  const e = {
7731
- ADD: [" + ", _.ADDITION],
7732
- SUBTRACT: [" - ", _.SUBTRACTION],
7733
- MULTIPLY: [" * ", _.MULTIPLICATION],
7734
- DIVIDE: [" / ", _.DIVISION],
7735
- POWER: [null, _.NONE]
7727
+ ADD: [" + ", u.ADDITION],
7728
+ SUBTRACT: [" - ", u.SUBTRACTION],
7729
+ MULTIPLY: [" * ", u.MULTIPLICATION],
7730
+ DIVIDE: [" / ", u.DIVISION],
7731
+ POWER: [null, u.NONE]
7736
7732
  }, [n, o] = e[t.getFieldValue("OP")], s = i.valueToCode(t, "A", o) || "0", a = i.valueToCode(t, "B", o) || "0";
7737
- return n ? [s + n + a, o] : [`Math.pow(${s}, ${a})`, _.FUNCTION_CALL];
7733
+ return n ? [s + n + a, o] : [`Math.pow(${s}, ${a})`, u.FUNCTION_CALL];
7738
7734
  };
7739
7735
  g([
7740
7736
  {
@@ -7762,12 +7758,12 @@ g([
7762
7758
  ]);
7763
7759
  i.forBlock.math_constant_v1 = function(t) {
7764
7760
  return {
7765
- PI: ["Math.PI", _.MEMBER],
7766
- E: ["Math.E", _.MEMBER],
7767
- GOLDEN_RATIO: ["(1 + Math.sqrt(5)) / 2", _.DIVISION],
7768
- SQRT2: ["Math.SQRT2", _.MEMBER],
7769
- SQRT1_2: ["Math.SQRT1_2", _.MEMBER],
7770
- INFINITY: ["Infinity", _.ATOMIC]
7761
+ PI: ["Math.PI", u.MEMBER],
7762
+ E: ["Math.E", u.MEMBER],
7763
+ GOLDEN_RATIO: ["(1 + Math.sqrt(5)) / 2", u.DIVISION],
7764
+ SQRT2: ["Math.SQRT2", u.MEMBER],
7765
+ SQRT1_2: ["Math.SQRT1_2", u.MEMBER],
7766
+ INFINITY: ["Infinity", u.ATOMIC]
7771
7767
  }[t.getFieldValue("CONSTANT")];
7772
7768
  };
7773
7769
  g([
@@ -7799,8 +7795,8 @@ g([
7799
7795
  }
7800
7796
  ]);
7801
7797
  i.forBlock.math_constrain_v1 = function(t) {
7802
- const e = i.valueToCode(t, "VALUE", _.NONE) || "0", n = i.valueToCode(t, "LOW", _.NONE) || "0", o = i.valueToCode(t, "HIGH", _.NONE) || "Infinity";
7803
- return [`Math.min(Math.max(${e}, ${n}), ${o})`, _.FUNCTION_CALL];
7798
+ const e = i.valueToCode(t, "VALUE", u.NONE) || "0", n = i.valueToCode(t, "LOW", u.NONE) || "0", o = i.valueToCode(t, "HIGH", u.NONE) || "Infinity";
7799
+ return [`Math.min(Math.max(${e}, ${n}), ${o})`, u.FUNCTION_CALL];
7804
7800
  };
7805
7801
  g([
7806
7802
  {
@@ -7826,8 +7822,8 @@ g([
7826
7822
  }
7827
7823
  ]);
7828
7824
  i.forBlock.math_modulo_v1 = function(t) {
7829
- const e = i.valueToCode(t, "DIVIDEND", _.MODULUS) || "0", n = i.valueToCode(t, "DIVISOR", _.MODULUS) || "0";
7830
- return [e + " % " + n, _.MODULUS];
7825
+ const e = i.valueToCode(t, "DIVIDEND", u.MODULUS) || "0", n = i.valueToCode(t, "DIVISOR", u.MODULUS) || "0";
7826
+ return [e + " % " + n, u.MODULUS];
7831
7827
  };
7832
7828
  g([
7833
7829
  {
@@ -7848,7 +7844,7 @@ g([
7848
7844
  }
7849
7845
  ]);
7850
7846
  i.forBlock.math_number_v1 = function(t) {
7851
- const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? _.ATOMIC : _.UNARY_NEGATION;
7847
+ const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? u.ATOMIC : u.UNARY_NEGATION;
7852
7848
  return [String(e), n];
7853
7849
  };
7854
7850
  g([
@@ -7883,13 +7879,13 @@ g([
7883
7879
  ]);
7884
7880
  i.forBlock.math_number_property_v1 = function(t) {
7885
7881
  const e = {
7886
- EVEN: [" % 2 === 0", _.MODULUS, _.EQUALITY],
7887
- ODD: [" % 2 === 1", _.MODULUS, _.EQUALITY],
7888
- WHOLE: [" % 1 === 0", _.MODULUS, _.EQUALITY],
7889
- POSITIVE: [" > 0", _.RELATIONAL, _.RELATIONAL],
7890
- NEGATIVE: [" < 0", _.RELATIONAL, _.RELATIONAL],
7891
- DIVISIBLE_BY: [null, _.MODULUS, _.EQUALITY],
7892
- PRIME: [null, _.NONE, _.FUNCTION_CALL]
7882
+ EVEN: [" % 2 === 0", u.MODULUS, u.EQUALITY],
7883
+ ODD: [" % 2 === 1", u.MODULUS, u.EQUALITY],
7884
+ WHOLE: [" % 1 === 0", u.MODULUS, u.EQUALITY],
7885
+ POSITIVE: [" > 0", u.RELATIONAL, u.RELATIONAL],
7886
+ NEGATIVE: [" < 0", u.RELATIONAL, u.RELATIONAL],
7887
+ DIVISIBLE_BY: [null, u.MODULUS, u.EQUALITY],
7888
+ PRIME: [null, u.NONE, u.FUNCTION_CALL]
7893
7889
  }, n = t.getFieldValue("PROPERTY"), [o, s, a] = e[t.getFieldValue("PROPERTY")], r = i.valueToCode(t, "NUMBER_TO_CHECK", s) || "0";
7894
7890
  let c;
7895
7891
  if (n === "PRIME")
@@ -7917,8 +7913,8 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(n) {
7917
7913
  `
7918
7914
  ) + "(" + r + ")";
7919
7915
  else if (n === "DIVISIBLE_BY") {
7920
- const l = i.valueToCode(t, "DIVISOR", _.MODULUS) || "0";
7921
- c = r + " % " + l + " === 0";
7916
+ const _ = i.valueToCode(t, "DIVISOR", u.MODULUS) || "0";
7917
+ c = r + " % " + _ + " === 0";
7922
7918
  } else
7923
7919
  c = r + o;
7924
7920
  return [c, a];
@@ -7959,13 +7955,13 @@ i.forBlock.math_on_list_v1 = function(t) {
7959
7955
  let n, o;
7960
7956
  switch (e) {
7961
7957
  case "SUM":
7962
- n = i.valueToCode(t, "LIST", _.MEMBER) || "[]", o = n + ".reduce(function(x, y) {return x + y;}, 0)";
7958
+ n = i.valueToCode(t, "LIST", u.MEMBER) || "[]", o = n + ".reduce(function(x, y) {return x + y;}, 0)";
7963
7959
  break;
7964
7960
  case "MIN":
7965
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = "Math.min.apply(null, " + n + ")";
7961
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = "Math.min.apply(null, " + n + ")";
7966
7962
  break;
7967
7963
  case "MAX":
7968
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = "Math.max.apply(null, " + n + ")";
7964
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = "Math.max.apply(null, " + n + ")";
7969
7965
  break;
7970
7966
  case "AVERAGE": {
7971
7967
  const s = i.provideFunction_(
@@ -7976,7 +7972,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(myList) {
7976
7972
  }
7977
7973
  `
7978
7974
  );
7979
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
7975
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
7980
7976
  break;
7981
7977
  }
7982
7978
  case "MEDIAN": {
@@ -7995,7 +7991,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(myList) {
7995
7991
  }
7996
7992
  `
7997
7993
  );
7998
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
7994
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
7999
7995
  break;
8000
7996
  }
8001
7997
  case "MODE": {
@@ -8032,7 +8028,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(values) {
8032
8028
  }
8033
8029
  `
8034
8030
  );
8035
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
8031
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
8036
8032
  break;
8037
8033
  }
8038
8034
  case "STD_DEV": {
@@ -8052,7 +8048,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(numbers) {
8052
8048
  }
8053
8049
  `
8054
8050
  );
8055
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
8051
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
8056
8052
  break;
8057
8053
  }
8058
8054
  case "RANDOM": {
@@ -8065,13 +8061,13 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(list) {
8065
8061
  }
8066
8062
  `
8067
8063
  );
8068
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
8064
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
8069
8065
  break;
8070
8066
  }
8071
8067
  default:
8072
8068
  throw Error("Unknown operator: " + e);
8073
8069
  }
8074
- return [o, _.FUNCTION_CALL];
8070
+ return [o, u.FUNCTION_CALL];
8075
8071
  };
8076
8072
  g([
8077
8073
  {
@@ -8084,7 +8080,7 @@ g([
8084
8080
  }
8085
8081
  ]);
8086
8082
  i.forBlock.math_random_float_v1 = function() {
8087
- return ["Math.random()", _.FUNCTION_CALL];
8083
+ return ["Math.random()", u.FUNCTION_CALL];
8088
8084
  };
8089
8085
  g([
8090
8086
  {
@@ -8110,7 +8106,7 @@ g([
8110
8106
  }
8111
8107
  ]);
8112
8108
  i.forBlock.math_random_int_v1 = function(t) {
8113
- const e = i.valueToCode(t, "FROM", _.NONE) || "0", n = i.valueToCode(t, "TO", _.NONE) || "0";
8109
+ const e = i.valueToCode(t, "FROM", u.NONE) || "0", n = i.valueToCode(t, "TO", u.NONE) || "0";
8114
8110
  return [i.provideFunction_(
8115
8111
  "mathRandomInt",
8116
8112
  `
@@ -8124,7 +8120,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
8124
8120
  return Math.floor(Math.random() * (b - a + 1) + a);
8125
8121
  }
8126
8122
  `
8127
- ) + "(" + e + ", " + n + ")", _.FUNCTION_CALL];
8123
+ ) + "(" + e + ", " + n + ")", u.FUNCTION_CALL];
8128
8124
  };
8129
8125
  g([
8130
8126
  {
@@ -8153,7 +8149,7 @@ g([
8153
8149
  }
8154
8150
  ]);
8155
8151
  i.forBlock.math_round_v1 = function(t) {
8156
- const e = t.getFieldValue("OP"), n = i.valueToCode(t, "NUM", _.NONE) || "0";
8152
+ const e = t.getFieldValue("OP"), n = i.valueToCode(t, "NUM", u.NONE) || "0";
8157
8153
  let o = "";
8158
8154
  switch (e) {
8159
8155
  case "ROUND":
@@ -8166,7 +8162,7 @@ i.forBlock.math_round_v1 = function(t) {
8166
8162
  o = `Math.floor(${n})`;
8167
8163
  break;
8168
8164
  }
8169
- return [o, _.FUNCTION_CALL];
8165
+ return [o, u.FUNCTION_CALL];
8170
8166
  };
8171
8167
  g([
8172
8168
  {
@@ -8202,8 +8198,8 @@ i.forBlock.math_single_v1 = function(t) {
8202
8198
  const e = t.getFieldValue("OP");
8203
8199
  let n, o;
8204
8200
  if (e === "NEG")
8205
- return o = i.valueToCode(t, "NUM", _.UNARY_NEGATION) || "0", o[0] === "-" && (o = " " + o), n = "-" + o, [n, _.UNARY_NEGATION];
8206
- switch (o = i.valueToCode(t, "NUM", _.NONE) || "0", e) {
8201
+ return o = i.valueToCode(t, "NUM", u.UNARY_NEGATION) || "0", o[0] === "-" && (o = " " + o), n = "-" + o, [n, u.UNARY_NEGATION];
8202
+ switch (o = i.valueToCode(t, "NUM", u.NONE) || "0", e) {
8207
8203
  case "ROOT":
8208
8204
  n = `Math.sqrt(${o})`;
8209
8205
  break;
@@ -8221,15 +8217,12 @@ i.forBlock.math_single_v1 = function(t) {
8221
8217
  break;
8222
8218
  }
8223
8219
  if (n)
8224
- return [n, _.FUNCTION_CALL];
8225
- switch (e) {
8226
- case "LOG10":
8227
- n = `Math.log(${o}) / Math.log(10)`;
8228
- break;
8229
- default:
8230
- throw Error("Unknown math operator: " + e);
8231
- }
8232
- return [n, _.DIVISION];
8220
+ return [n, u.FUNCTION_CALL];
8221
+ if (e === "LOG10")
8222
+ n = `Math.log(${o}) / Math.log(10)`;
8223
+ else
8224
+ throw Error("Unknown math operator: " + e);
8225
+ return [n, u.DIVISION];
8233
8226
  };
8234
8227
  g([
8235
8228
  {
@@ -8263,7 +8256,7 @@ g([
8263
8256
  i.forBlock.math_trig_v1 = function(t) {
8264
8257
  let e;
8265
8258
  const n = t.getFieldValue("OP");
8266
- n === "SIN" || n === "COS" || n === "TAN" ? e = i.valueToCode(t, "NUM", _.DIVISION) || "0" : e = i.valueToCode(t, "NUM", _.NONE) || "0";
8259
+ n === "SIN" || n === "COS" || n === "TAN" ? e = i.valueToCode(t, "NUM", u.DIVISION) || "0" : e = i.valueToCode(t, "NUM", u.NONE) || "0";
8267
8260
  let o;
8268
8261
  switch (n) {
8269
8262
  case "SIN":
@@ -8277,7 +8270,7 @@ i.forBlock.math_trig_v1 = function(t) {
8277
8270
  break;
8278
8271
  }
8279
8272
  if (o)
8280
- return [o, _.FUNCTION_CALL];
8273
+ return [o, u.FUNCTION_CALL];
8281
8274
  switch (n) {
8282
8275
  case "ASIN":
8283
8276
  o = `Math.asin(${e}) / Math.PI * 180`;
@@ -8291,7 +8284,7 @@ i.forBlock.math_trig_v1 = function(t) {
8291
8284
  default:
8292
8285
  throw Error("Unknown math operator: " + n);
8293
8286
  }
8294
- return [o, _.DIVISION];
8287
+ return [o, u.DIVISION];
8295
8288
  };
8296
8289
  const ma = N.xml, Ta = {
8297
8290
  init: function() {
@@ -8386,10 +8379,10 @@ i.forBlock.object_create_v1 = function(t) {
8386
8379
  const e = t;
8387
8380
  let n = "{";
8388
8381
  for (let o = 0; o < e.itemCount_; o++) {
8389
- const s = e.getFieldValue("KEY" + o), a = i.valueToCode(e, "ADD" + o, _.ATOMIC) || null;
8382
+ const s = e.getFieldValue("KEY" + o), a = i.valueToCode(e, "ADD" + o, u.ATOMIC) || null;
8390
8383
  n += i.quote_(s) + ": " + a, o < e.itemCount_ - 1 && (n += ", ");
8391
8384
  }
8392
- return n += "}", [n, _.ATOMIC];
8385
+ return n += "}", [n, u.ATOMIC];
8393
8386
  };
8394
8387
  g([
8395
8388
  {
@@ -8454,7 +8447,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
8454
8447
  }
8455
8448
  }
8456
8449
  `
8457
- ), n = i.valueToCode(t, "OBJECT", _.ATOMIC) || "null", o = i.valueToCode(t, "KEY", _.ATOMIC) || "''";
8450
+ ), n = i.valueToCode(t, "OBJECT", u.ATOMIC) || "null", o = i.valueToCode(t, "KEY", u.ATOMIC) || "''";
8458
8451
  return `${e}(${n}, ${o});
8459
8452
  `;
8460
8453
  };
@@ -8477,7 +8470,7 @@ g([
8477
8470
  }
8478
8471
  ]);
8479
8472
  i.forBlock.object_from_json_v1 = function(t) {
8480
- return [`__parseJsonV1__(${i.valueToCode(t, "JSON", _.NONE) || "''"})`, _.FUNCTION_CALL];
8473
+ return [`__parseJsonV1__(${i.valueToCode(t, "JSON", u.NONE) || "''"})`, u.FUNCTION_CALL];
8481
8474
  };
8482
8475
  g([
8483
8476
  {
@@ -8533,8 +8526,8 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
8533
8526
  }
8534
8527
  }
8535
8528
  `
8536
- ), n = i.valueToCode(t, "OBJECT", _.ATOMIC) || "null", o = i.valueToCode(t, "KEY", _.ATOMIC) || "''";
8537
- return [`${e}(${n}, ${o})`, _.FUNCTION_CALL];
8529
+ ), n = i.valueToCode(t, "OBJECT", u.ATOMIC) || "null", o = i.valueToCode(t, "KEY", u.ATOMIC) || "''";
8530
+ return [`${e}(${n}, ${o})`, u.FUNCTION_CALL];
8538
8531
  };
8539
8532
  g([
8540
8533
  {
@@ -8598,7 +8591,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
8598
8591
  }
8599
8592
  }
8600
8593
  `
8601
- ), n = i.valueToCode(t, "OBJECT", _.ATOMIC) || "null", o = i.valueToCode(t, "KEY", _.ATOMIC) || "''", s = i.valueToCode(t, "TO", _.ATOMIC) || "null";
8594
+ ), n = i.valueToCode(t, "OBJECT", u.ATOMIC) || "null", o = i.valueToCode(t, "KEY", u.ATOMIC) || "''", s = i.valueToCode(t, "TO", u.ATOMIC) || "null";
8602
8595
  return `${e}(${n}, ${o}, ${s});
8603
8596
  `;
8604
8597
  };
@@ -8621,7 +8614,7 @@ g([
8621
8614
  }
8622
8615
  ]);
8623
8616
  i.forBlock.object_to_json_v1 = function(t) {
8624
- return [`__jsonStringifyV1__(${i.valueToCode(t, "OBJECT", _.NONE) || "null"})`, _.FUNCTION_CALL];
8617
+ return [`__jsonStringifyV1__(${i.valueToCode(t, "OBJECT", u.NONE) || "null"})`, u.FUNCTION_CALL];
8625
8618
  };
8626
8619
  const Yn = N.xml, Aa = {
8627
8620
  init: function() {
@@ -8816,7 +8809,7 @@ const Oa = N.xml, va = {
8816
8809
  A.procedure_return_v1 = va;
8817
8810
  i.forBlock.procedure_return_v1 = function(t) {
8818
8811
  const e = t;
8819
- return e.withReturn ? `return ${i.valueToCode(e, "VALUE", _.NONE) || "null"};
8812
+ return e.withReturn ? `return ${i.valueToCode(e, "VALUE", u.NONE) || "null"};
8820
8813
  ` : `return;
8821
8814
  `;
8822
8815
  };
@@ -8845,7 +8838,7 @@ const Ca = {
8845
8838
  };
8846
8839
  A.download_resource_v1 = Ca;
8847
8840
  i.forBlock.download_resource_v1 = function(t) {
8848
- const e = i.valueToCode(t, "ASSET", _.ATOMIC) || null, n = i.statementToCode(t, "HANDLE");
8841
+ const e = i.valueToCode(t, "ASSET", u.ATOMIC) || null, n = i.statementToCode(t, "HANDLE");
8849
8842
  return `{
8850
8843
  var res = __downloadResourceV1__(${e});
8851
8844
  var __success__ = res.success;
@@ -9002,7 +8995,7 @@ const Ba = {
9002
8995
  };
9003
8996
  A.upload_resource_v1 = Ba;
9004
8997
  i.forBlock.upload_resource_v1 = function(t) {
9005
- const e = i.valueToCode(t, "NAME", _.ATOMIC) || "''", n = i.valueToCode(t, "DIR", _.ATOMIC) || "null", o = i.valueToCode(t, "DATA", _.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
8998
+ const e = i.valueToCode(t, "NAME", u.ATOMIC) || "''", n = i.valueToCode(t, "DIR", u.ATOMIC) || "null", o = i.valueToCode(t, "DATA", u.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
9006
8999
  return `{
9007
9000
  var res = __uploadResourceV1__(${e}, ${n}, ${o});
9008
9001
  var __success__ = res.success;
@@ -9031,11 +9024,11 @@ g([
9031
9024
  }
9032
9025
  ]);
9033
9026
  i.forBlock.text_v1 = function(t) {
9034
- return [i.quote_(t.getFieldValue("TEXT")), _.ATOMIC];
9027
+ return [i.quote_(t.getFieldValue("TEXT")), u.ATOMIC];
9035
9028
  };
9036
9029
  const ba = /^\s*'([^']|\\')*'\s*$/;
9037
9030
  function se(t) {
9038
- return ba.test(t) ? [t, _.ATOMIC] : [`String(${t})`, _.FUNCTION_CALL];
9031
+ return ba.test(t) ? [t, u.ATOMIC] : [`String(${t})`, u.FUNCTION_CALL];
9039
9032
  }
9040
9033
  U.register(
9041
9034
  "text_append_tooltip_v1",
@@ -9069,7 +9062,7 @@ i.forBlock.text_append_v1 = function(t) {
9069
9062
  const e = i.nameDB_?.getName(
9070
9063
  t.getFieldValue("VAR"),
9071
9064
  rt.NameType.VARIABLE
9072
- ), n = i.valueToCode(t, "TEXT", _.NONE) || "''";
9065
+ ), n = i.valueToCode(t, "TEXT", u.NONE) || "''";
9073
9066
  return `${e} += ${se(n)};
9074
9067
  `;
9075
9068
  };
@@ -9107,7 +9100,7 @@ i.forBlock.text_change_case_v1 = function(t) {
9107
9100
  }[t.getFieldValue("CASE")], o = i.valueToCode(
9108
9101
  t,
9109
9102
  "TEXT",
9110
- n ? _.MEMBER : _.NONE
9103
+ n ? u.MEMBER : u.NONE
9111
9104
  ) || "''";
9112
9105
  let s = "";
9113
9106
  return n ? s = o + n : s = i.provideFunction_(
@@ -9117,7 +9110,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(str) {
9117
9110
  return str.slice(0, 1).toUpperCase() + str.slice(1).toLowerCase();
9118
9111
  }
9119
9112
  `
9120
- ) + "(" + o + ")", [s, _.FUNCTION_CALL];
9113
+ ) + "(" + o + ")", [s, u.FUNCTION_CALL];
9121
9114
  };
9122
9115
  g([
9123
9116
  {
@@ -9143,8 +9136,8 @@ g([
9143
9136
  }
9144
9137
  ]);
9145
9138
  i.forBlock.text_char_at_v1 = function(t) {
9146
- const e = i.valueToCode(t, "VALUE", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
9147
- return [`${e}.charAt(${n})`, _.FUNCTION_CALL];
9139
+ const e = i.valueToCode(t, "VALUE", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
9140
+ return [`${e}.charAt(${n})`, u.FUNCTION_CALL];
9148
9141
  };
9149
9142
  g([
9150
9143
  {
@@ -9170,7 +9163,7 @@ g([
9170
9163
  }
9171
9164
  ]);
9172
9165
  i.forBlock.text_count_v1 = function(t) {
9173
- const e = i.valueToCode(t, "TEXT", _.NONE) || "''", n = i.valueToCode(t, "SUBSTR", _.NONE) || "''";
9166
+ const e = i.valueToCode(t, "TEXT", u.NONE) || "''", n = i.valueToCode(t, "SUBSTR", u.NONE) || "''";
9174
9167
  return [`${i.provideFunction_(
9175
9168
  "textCount",
9176
9169
  `
@@ -9182,7 +9175,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
9182
9175
  }
9183
9176
  }
9184
9177
  `
9185
- )}(${e}, ${n})`, _.FUNCTION_CALL];
9178
+ )}(${e}, ${n})`, u.FUNCTION_CALL];
9186
9179
  };
9187
9180
  g([
9188
9181
  {
@@ -9216,8 +9209,8 @@ g([
9216
9209
  }
9217
9210
  ]);
9218
9211
  i.forBlock.text_index_of_v1 = function(t) {
9219
- const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = i.valueToCode(t, "TEXT", _.MEMBER) || "''", o = i.valueToCode(t, "SUBSTR", _.NONE) || "''";
9220
- return [`${n}.${e}(${o})`, _.FUNCTION_CALL];
9212
+ const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = i.valueToCode(t, "TEXT", u.MEMBER) || "''", o = i.valueToCode(t, "SUBSTR", u.NONE) || "''";
9213
+ return [`${n}.${e}(${o})`, u.FUNCTION_CALL];
9221
9214
  };
9222
9215
  g([
9223
9216
  {
@@ -9237,7 +9230,7 @@ g([
9237
9230
  }
9238
9231
  ]);
9239
9232
  i.forBlock.text_is_empty_v1 = function(t) {
9240
- return [`!${i.valueToCode(t, "VALUE", _.MEMBER) || "''"}.length`, _.LOGICAL_NOT];
9233
+ return [`!${i.valueToCode(t, "VALUE", u.MEMBER) || "''"}.length`, u.LOGICAL_NOT];
9241
9234
  };
9242
9235
  const Pa = N.xml, Ra = {
9243
9236
  itemCount_: 0,
@@ -9359,20 +9352,20 @@ i.forBlock.text_join_v1 = function(t) {
9359
9352
  const e = t;
9360
9353
  switch (e.itemCount_) {
9361
9354
  case 0:
9362
- return ["''", _.ATOMIC];
9355
+ return ["''", u.ATOMIC];
9363
9356
  case 1: {
9364
- const n = i.valueToCode(e, "ADD0", _.NONE) || "''";
9357
+ const n = i.valueToCode(e, "ADD0", u.NONE) || "''";
9365
9358
  return se(n);
9366
9359
  }
9367
9360
  case 2: {
9368
- const n = i.valueToCode(e, "ADD0", _.NONE) || "''", o = i.valueToCode(e, "ADD1", _.NONE) || "''";
9369
- return [se(n)[0] + " + " + se(o)[0], _.ADDITION];
9361
+ const n = i.valueToCode(e, "ADD0", u.NONE) || "''", o = i.valueToCode(e, "ADD1", u.NONE) || "''";
9362
+ return [se(n)[0] + " + " + se(o)[0], u.ADDITION];
9370
9363
  }
9371
9364
  default: {
9372
9365
  const n = new Array(e.itemCount_);
9373
9366
  for (let s = 0; s < e.itemCount_; s++)
9374
- n[s] = i.valueToCode(e, "ADD" + s, _.NONE) || "''";
9375
- return ["[" + n.join(",") + "].join('')", _.FUNCTION_CALL];
9367
+ n[s] = i.valueToCode(e, "ADD" + s, u.NONE) || "''";
9368
+ return ["[" + n.join(",") + "].join('')", u.FUNCTION_CALL];
9376
9369
  }
9377
9370
  }
9378
9371
  };
@@ -9394,7 +9387,7 @@ g([
9394
9387
  }
9395
9388
  ]);
9396
9389
  i.forBlock.text_length_v1 = function(t) {
9397
- return [`${i.valueToCode(t, "VALUE", _.MEMBER) || "''"}.length`, _.MEMBER];
9390
+ return [`${i.valueToCode(t, "VALUE", u.MEMBER) || "''"}.length`, u.MEMBER];
9398
9391
  };
9399
9392
  g([
9400
9393
  {
@@ -9425,7 +9418,7 @@ g([
9425
9418
  }
9426
9419
  ]);
9427
9420
  i.forBlock.text_replace_v1 = function(t) {
9428
- const e = i.valueToCode(t, "TEXT", _.NONE) || "''", n = i.valueToCode(t, "FROM", _.NONE) || "''", o = i.valueToCode(t, "TO", _.NONE) || "''";
9421
+ const e = i.valueToCode(t, "TEXT", u.NONE) || "''", n = i.valueToCode(t, "FROM", u.NONE) || "''", o = i.valueToCode(t, "TO", u.NONE) || "''";
9429
9422
  return [`${i.provideFunction_(
9430
9423
  "textReplace",
9431
9424
  `
@@ -9435,7 +9428,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
9435
9428
  return haystack.replace(new RegExp(needle, 'g'), replacement);
9436
9429
  }
9437
9430
  `
9438
- )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
9431
+ )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
9439
9432
  };
9440
9433
  g([
9441
9434
  {
@@ -9456,7 +9449,7 @@ g([
9456
9449
  }
9457
9450
  ]);
9458
9451
  i.forBlock.text_reverse_v1 = function(t) {
9459
- return [(i.valueToCode(t, "TEXT", _.MEMBER) || "''") + ".split('').reverse().join('')", _.FUNCTION_CALL];
9452
+ return [(i.valueToCode(t, "TEXT", u.MEMBER) || "''") + ".split('').reverse().join('')", u.FUNCTION_CALL];
9460
9453
  };
9461
9454
  g([
9462
9455
  {
@@ -9482,8 +9475,8 @@ g([
9482
9475
  }
9483
9476
  ]);
9484
9477
  i.forBlock.text_split_v1 = function(t) {
9485
- const e = i.valueToCode(t, "TEXT", _.MEMBER) || "''", n = i.valueToCode(t, "DELIM", _.NONE) || "''";
9486
- return [`${e}.split(${n})`, _.FUNCTION_CALL];
9478
+ const e = i.valueToCode(t, "TEXT", u.MEMBER) || "''", n = i.valueToCode(t, "DELIM", u.NONE) || "''";
9479
+ return [`${e}.split(${n})`, u.FUNCTION_CALL];
9487
9480
  };
9488
9481
  g([
9489
9482
  {
@@ -9514,8 +9507,8 @@ g([
9514
9507
  }
9515
9508
  ]);
9516
9509
  i.forBlock.text_substring_v1 = function(t) {
9517
- const e = i.valueToCode(t, "TEXT", _.MEMBER) || "''", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
9518
- return [`${e}.slice(${n}, ${o})`, _.FUNCTION_CALL];
9510
+ const e = i.valueToCode(t, "TEXT", u.MEMBER) || "''", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
9511
+ return [`${e}.slice(${n}, ${o})`, u.FUNCTION_CALL];
9519
9512
  };
9520
9513
  g([
9521
9514
  {
@@ -9544,12 +9537,12 @@ g([
9544
9537
  }
9545
9538
  ]);
9546
9539
  i.forBlock.text_trim_v1 = function(t) {
9547
- const e = i.valueToCode(t, "TEXT", _.NONE) || "''", o = {
9540
+ const e = i.valueToCode(t, "TEXT", u.NONE) || "''", o = {
9548
9541
  BOTH: 0,
9549
9542
  LEFT: 1,
9550
9543
  RIGHT: 2
9551
9544
  }[t.getFieldValue("MODE")];
9552
- return [`__trimV1__(${e}, ${o})`, _.ATOMIC];
9545
+ return [`__trimV1__(${e}, ${o})`, u.ATOMIC];
9553
9546
  };
9554
9547
  const Ma = {
9555
9548
  init: function() {
@@ -9579,7 +9572,7 @@ const Ma = {
9579
9572
  };
9580
9573
  A.create_timer_v1 = Ma;
9581
9574
  i.forBlock.create_timer_v1 = function(t) {
9582
- const e = i.valueToCode(t, "INTERVAL", _.ATOMIC) || "1000", n = i.valueToCode(t, "LOOP", _.ATOMIC) || "false", o = i.valueToCode(t, "COUNT", _.ATOMIC) || "1", s = i.valueToCode(t, "IMMEDIATE", _.ATOMIC) || "false", a = i.statementToCode(t, "CALLBACK");
9575
+ const e = i.valueToCode(t, "INTERVAL", u.ATOMIC) || "1000", n = i.valueToCode(t, "LOOP", u.ATOMIC) || "false", o = i.valueToCode(t, "COUNT", u.ATOMIC) || "1", s = i.valueToCode(t, "IMMEDIATE", u.ATOMIC) || "false", a = i.statementToCode(t, "CALLBACK");
9583
9576
  return `__createTimerV1__(${e}, ${n}, ${o}, ${s}, async function() {
9584
9577
  ${a}});
9585
9578
  `;
@@ -9603,7 +9596,7 @@ g([
9603
9596
  }
9604
9597
  ]);
9605
9598
  i.forBlock.delay_v1 = function(t) {
9606
- return `await __delayV1__(${i.valueToCode(t, "DURATION", _.ATOMIC) || "0"});
9599
+ return `await __delayV1__(${i.valueToCode(t, "DURATION", u.ATOMIC) || "0"});
9607
9600
  `;
9608
9601
  };
9609
9602
  const Ua = {
@@ -9671,7 +9664,7 @@ i.forBlock.variable_get_v1 = function(t) {
9671
9664
  return [i.nameDB_.getName(
9672
9665
  t.getFieldValue("VAR"),
9673
9666
  rt.NameType.VARIABLE
9674
- ), _.ATOMIC];
9667
+ ), u.ATOMIC];
9675
9668
  };
9676
9669
  g([
9677
9670
  {
@@ -9700,7 +9693,7 @@ i.forBlock.variable_set_v1 = function(t) {
9700
9693
  const e = i.nameDB_.getName(
9701
9694
  t.getFieldValue("VAR"),
9702
9695
  rt.NameType.VARIABLE
9703
- ), n = i.valueToCode(t, "VALUE", _.ASSIGNMENT) || "0";
9696
+ ), n = i.valueToCode(t, "VALUE", u.ASSIGNMENT) || "0";
9704
9697
  return `${e} = ${n};
9705
9698
  `;
9706
9699
  };
@@ -9778,18 +9771,18 @@ wo.prototype.cleanUp = function() {
9778
9771
  const e = this.getTopBlocks(!0), n = e.filter((c) => c.isMovable()), s = e.filter((c) => !c.isMovable()).map(
9779
9772
  (c) => c.getBoundingRectangle()
9780
9773
  ), a = function(c) {
9781
- for (const l of s)
9782
- if (c.intersects(l))
9783
- return l;
9774
+ for (const _ of s)
9775
+ if (c.intersects(_))
9776
+ return _;
9784
9777
  return null;
9785
9778
  };
9786
9779
  let r = 0;
9787
9780
  for (const c of n) {
9788
- let l = c.getBoundingRectangle();
9789
- c.moveBy(-l.left, r - l.top, ["cleanup"]), c.snapToGrid(), l = c.getBoundingRectangle();
9790
- let d = a(l);
9781
+ let _ = c.getBoundingRectangle();
9782
+ c.moveBy(-_.left, r - _.top, ["cleanup"]), c.snapToGrid(), _ = c.getBoundingRectangle();
9783
+ let d = a(_);
9791
9784
  for (; d != null; )
9792
- r = d.top + d.getHeight() + Fn, c.moveBy(0, r - l.top, ["cleanup"]), c.snapToGrid(), l = c.getBoundingRectangle(), d = a(l);
9785
+ r = d.top + d.getHeight() + Fn, c.moveBy(0, r - _.top, ["cleanup"]), c.snapToGrid(), _ = c.getBoundingRectangle(), d = a(_);
9793
9786
  r = c.getRelativeToSurfaceXY().y + c.getHeightWidth().height + Fn;
9794
9787
  }
9795
9788
  O.setGroup(t), this.setResizesEnabled(!0);
@@ -10095,7 +10088,7 @@ function qa(t) {
10095
10088
  const s = o.getInputTargetBlock("OBJECT"), a = i.valueToCode(
10096
10089
  o,
10097
10090
  "KEY",
10098
- _.ATOMIC
10091
+ u.ATOMIC
10099
10092
  );
10100
10093
  if (s.type === "get_app_property_v1") {
10101
10094
  const r = s;
@@ -10156,7 +10149,7 @@ function Qa(t) {
10156
10149
  }
10157
10150
  return e;
10158
10151
  }
10159
- const Oo = Symbol();
10152
+ const Oo = /* @__PURE__ */ Symbol();
10160
10153
  function za(t) {
10161
10154
  ps(Oo, t);
10162
10155
  }
@@ -10179,10 +10172,10 @@ const Za = /* @__PURE__ */ pt({
10179
10172
  return;
10180
10173
  }
10181
10174
  a.workspace.cleanUp();
10182
- }, l = () => {
10175
+ }, _ = () => {
10183
10176
  c();
10184
10177
  };
10185
- return e({ cleanWorkspace: c }), (d, u) => {
10178
+ return e({ cleanWorkspace: c }), (d, l) => {
10186
10179
  const h = F("v-btn"), p = F("v-tooltip");
10187
10180
  return M(), ut(p, {
10188
10181
  disabled: r.value,
@@ -10193,7 +10186,7 @@ const Za = /* @__PURE__ */ pt({
10193
10186
  density: "comfortable",
10194
10187
  icon: "mdi-broom",
10195
10188
  variant: "outlined",
10196
- onClick: l
10189
+ onClick: _
10197
10190
  }), null, 16)
10198
10191
  ]),
10199
10192
  _: 1
@@ -10210,8 +10203,8 @@ const Za = /* @__PURE__ */ pt({
10210
10203
  setup(t) {
10211
10204
  const { t: e } = Qt(), n = _n(), o = Ht(t, "modelValue"), s = $(() => n.smAndDown.value);
10212
10205
  return (a, r) => {
10213
- const c = F("v-btn"), l = F("v-tooltip");
10214
- return M(), ut(l, {
10206
+ const c = F("v-btn"), _ = F("v-tooltip");
10207
+ return M(), ut(_, {
10215
10208
  disabled: s.value,
10216
10209
  text: Y(e)("x-block-lib.tip.hotkeyCtrlW")
10217
10210
  }, {
@@ -10220,7 +10213,7 @@ const Za = /* @__PURE__ */ pt({
10220
10213
  density: "comfortable",
10221
10214
  icon: o.value ? "mdi-lock" : "mdi-lock-open",
10222
10215
  variant: "outlined",
10223
- onClick: r[0] || (r[0] = (u) => o.value = !o.value)
10216
+ onClick: r[0] || (r[0] = (l) => o.value = !o.value)
10224
10217
  }), null, 16, ["icon"])
10225
10218
  ]),
10226
10219
  _: 1
@@ -10241,7 +10234,7 @@ const Za = /* @__PURE__ */ pt({
10241
10234
  },
10242
10235
  emits: ["x-click"],
10243
10236
  setup(t, { emit: e }) {
10244
- const { primaryColor: n, backgroundColor2: o, highlightColor: s } = Jt(), a = t, r = e, c = Pt(!1), l = $(() => ({
10237
+ const { primaryColor: n, backgroundColor2: o, highlightColor: s } = Jt(), a = t, r = e, c = Pt(!1), _ = $(() => ({
10245
10238
  position: "relative",
10246
10239
  background: c.value ? s.value : o.value,
10247
10240
  width: "100%",
@@ -10258,11 +10251,11 @@ const Za = /* @__PURE__ */ pt({
10258
10251
  border: "1px solid " + n.value,
10259
10252
  pointerEvents: "none"
10260
10253
  }));
10261
- return (u, h) => {
10254
+ return (l, h) => {
10262
10255
  const p = F("v-spacer"), f = F("v-icon"), T = hs("ripple");
10263
10256
  return fs((M(), it("div", {
10264
10257
  class: "d-flex align-center cursor-pointer",
10265
- style: z(l.value),
10258
+ style: z(_.value),
10266
10259
  onClick: h[1] || (h[1] = (E) => r("x-click", a.id)),
10267
10260
  onMouseout: h[2] || (h[2] = (E) => c.value = !1),
10268
10261
  onMouseover: h[3] || (h[3] = (E) => c.value = !0)
@@ -10330,7 +10323,7 @@ const Za = /* @__PURE__ */ pt({
10330
10323
  }), a.value = p;
10331
10324
  } });
10332
10325
  let c = [];
10333
- const l = () => {
10326
+ const _ = () => {
10334
10327
  if (t.lock) {
10335
10328
  Xn(n("x-block-lib.msg.cannotOperateInLockedState"));
10336
10329
  return;
@@ -10339,7 +10332,7 @@ const Za = /* @__PURE__ */ pt({
10339
10332
  a.value.forEach(({ id: f }) => {
10340
10333
  p.push(f);
10341
10334
  }), c = p;
10342
- }, d = () => !t.lock, u = (p) => {
10335
+ }, d = () => !t.lock, l = (p) => {
10343
10336
  if (!s.workspace) {
10344
10337
  console.assert(!1);
10345
10338
  return;
@@ -10380,9 +10373,9 @@ const Za = /* @__PURE__ */ pt({
10380
10373
  animation: 150,
10381
10374
  "ghost-class": "ghost",
10382
10375
  handle: ".x-handle",
10383
- onEnd: u,
10376
+ onEnd: l,
10384
10377
  onMove: d,
10385
- onStart: l
10378
+ onStart: _
10386
10379
  }, {
10387
10380
  default: lt(() => [
10388
10381
  (M(!0), it(to, null, ms(a.value, (T) => (M(), ut(sc, {
@@ -10423,11 +10416,11 @@ const Za = /* @__PURE__ */ pt({
10423
10416
  console.assert(!1);
10424
10417
  return;
10425
10418
  }
10426
- const l = c.getBlockById(r);
10427
- jn.setSelected(l), fn(r), n.value = !1;
10419
+ const _ = c.getBlockById(r);
10420
+ jn.setSelected(_), fn(r), n.value = !1;
10428
10421
  };
10429
10422
  return (r, c) => (M(), it("div", {
10430
- onClick: c[0] || (c[0] = (l) => a(""))
10423
+ onClick: c[0] || (c[0] = (_) => a(""))
10431
10424
  }, "blockTree"));
10432
10425
  }
10433
10426
  }), lc = { class: "text-subtitle-1" }, _c = /* @__PURE__ */ pt({
@@ -10444,7 +10437,7 @@ const Za = /* @__PURE__ */ pt({
10444
10437
  width: T,
10445
10438
  height: "100%"
10446
10439
  };
10447
- }), l = $(() => {
10440
+ }), _ = $(() => {
10448
10441
  let T = 48;
10449
10442
  return s.value && (T += 24), {
10450
10443
  position: "relative",
@@ -10452,31 +10445,31 @@ const Za = /* @__PURE__ */ pt({
10452
10445
  };
10453
10446
  }), d = $(() => ({
10454
10447
  height: "60px"
10455
- })), { open: u } = rn(`blocklyNavigatorDlg${Ze()}`);
10448
+ })), { open: l } = rn(`blocklyNavigatorDlg${Ze()}`);
10456
10449
  Ts(() => {
10457
- u.value = !1;
10450
+ l.value = !1;
10458
10451
  });
10459
10452
  const h = $t("blockList"), p = $t("blockTree");
10460
- return e({ open: u, update: () => {
10453
+ return e({ open: l, update: () => {
10461
10454
  t.type === "list" ? h.value?.update() : t.type === "tree" && p.value?.update();
10462
10455
  } }), (T, E) => {
10463
10456
  const y = F("v-sheet"), k = F("v-btn"), R = F("v-spacer"), Lt = F("v-dialog"), Ve = F("v-tooltip");
10464
10457
  return M(), it(to, null, [
10465
10458
  D(Lt, {
10466
- modelValue: Y(u),
10467
- "onUpdate:modelValue": E[5] || (E[5] = (Q) => oe(u) ? u.value = Q : null),
10459
+ modelValue: Y(l),
10460
+ "onUpdate:modelValue": E[5] || (E[5] = (Q) => oe(l) ? l.value = Q : null),
10468
10461
  eager: "",
10469
10462
  fullscreen: "",
10470
10463
  "no-click-animation": "",
10471
10464
  persistent: "",
10472
10465
  transition: "scroll-x-reverse-transition",
10473
- onKeydown: E[6] || (E[6] = eo(Kt((Q) => u.value = !1, ["stop", "prevent"]), ["esc"]))
10466
+ onKeydown: E[6] || (E[6] = eo(Kt((Q) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10474
10467
  }, {
10475
10468
  default: lt(() => [
10476
10469
  X("div", {
10477
10470
  class: "w-100 h-100 d-flex flex-row-reverse",
10478
- onClick: E[3] || (E[3] = Kt((Q) => u.value = !1, ["self"])),
10479
- onContextmenu: E[4] || (E[4] = Kt((Q) => u.value = !1, ["self", "prevent"]))
10471
+ onClick: E[3] || (E[3] = Kt((Q) => l.value = !1, ["self"])),
10472
+ onContextmenu: E[4] || (E[4] = Kt((Q) => l.value = !1, ["self", "prevent"]))
10480
10473
  }, [
10481
10474
  X("div", {
10482
10475
  class: "elevation-2",
@@ -10497,7 +10490,7 @@ const Za = /* @__PURE__ */ pt({
10497
10490
  density: "comfortable",
10498
10491
  icon: "mdi-close",
10499
10492
  variant: "text",
10500
- onClick: E[0] || (E[0] = (Q) => u.value = !1)
10493
+ onClick: E[0] || (E[0] = (Q) => l.value = !1)
10501
10494
  }),
10502
10495
  X("span", lc, Gt(Y(n)("x-block-lib.navigator")), 1),
10503
10496
  D(R)
@@ -10506,21 +10499,21 @@ const Za = /* @__PURE__ */ pt({
10506
10499
  }),
10507
10500
  X("div", {
10508
10501
  class: "overflow-y-auto",
10509
- style: z(l.value)
10502
+ style: z(_.value)
10510
10503
  }, [
10511
10504
  t.type === "list" ? (M(), ut(rc, {
10512
10505
  key: 0,
10513
10506
  ref_key: "blockList",
10514
10507
  ref: h,
10515
- modelValue: Y(u),
10516
- "onUpdate:modelValue": E[1] || (E[1] = (Q) => oe(u) ? u.value = Q : null),
10508
+ modelValue: Y(l),
10509
+ "onUpdate:modelValue": E[1] || (E[1] = (Q) => oe(l) ? l.value = Q : null),
10517
10510
  lock: t.lock
10518
10511
  }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (M(), ut(uc, {
10519
10512
  key: 1,
10520
10513
  ref_key: "blockTree",
10521
10514
  ref: p,
10522
- modelValue: Y(u),
10523
- "onUpdate:modelValue": E[2] || (E[2] = (Q) => oe(u) ? u.value = Q : null)
10515
+ modelValue: Y(l),
10516
+ "onUpdate:modelValue": E[2] || (E[2] = (Q) => oe(l) ? l.value = Q : null)
10524
10517
  }, null, 8, ["modelValue"])) : dt("", !0),
10525
10518
  X("div", {
10526
10519
  style: z(d.value)
@@ -10540,7 +10533,7 @@ const Za = /* @__PURE__ */ pt({
10540
10533
  density: "comfortable",
10541
10534
  icon: "mdi-navigation-variant",
10542
10535
  variant: "outlined",
10543
- onClick: E[7] || (E[7] = (Tn) => u.value = !0)
10536
+ onClick: E[7] || (E[7] = (Tn) => l.value = !0)
10544
10537
  }), null, 16)
10545
10538
  ]),
10546
10539
  _: 1
@@ -11747,7 +11740,11 @@ const Ie = { name: "COMPUTE_MISC_CATEGORY", callback: Pc }, Be = {
11747
11740
  function xc(t, e, n, o) {
11748
11741
  We.theme = o ? "dark" : "light", We.toolbox = Yc(e, n);
11749
11742
  const s = Jo(t, We);
11750
- return s.addChangeListener(qo.shadowBlockConversionChangeListener), Fc(s, e, n), wc(s), s;
11743
+ return s.addChangeListener((a) => {
11744
+ setTimeout(() => {
11745
+ qo.shadowBlockConversionChangeListener(a);
11746
+ }, 0);
11747
+ }), Fc(s, e, n), wc(s), s;
11751
11748
  }
11752
11749
  function Yc(t, e) {
11753
11750
  let n;
@@ -11787,32 +11784,32 @@ function Kc(t, e) {
11787
11784
  if (s instanceof Array)
11788
11785
  r = "json_array_v1";
11789
11786
  else {
11790
- const l = typeof s;
11791
- if (l === "object")
11787
+ const _ = typeof s;
11788
+ if (_ === "object")
11792
11789
  r = "json_map_v1";
11793
- else if (l === "string")
11790
+ else if (_ === "string")
11794
11791
  r = "json_string_v1";
11795
- else if (l === "number")
11792
+ else if (_ === "number")
11796
11793
  r = "json_number_v1";
11797
- else if (l === "boolean")
11794
+ else if (_ === "boolean")
11798
11795
  r = "json_boolean_v1";
11799
11796
  else
11800
11797
  return;
11801
11798
  }
11802
11799
  const c = e.newBlock(r);
11803
11800
  if (c.initSvg(), c.render(), a.connect(c.outputConnection), r === "json_map_v1") {
11804
- const l = [];
11801
+ const _ = [];
11805
11802
  for (const d in s)
11806
- l.push(d);
11807
- c.initData(l);
11808
- for (let d = 0; d < l.length; d++) {
11809
- const u = l[d], h = c.getInput("ENTRY" + d);
11810
- o(s[u], h.connection);
11803
+ _.push(d);
11804
+ c.initData(_);
11805
+ for (let d = 0; d < _.length; d++) {
11806
+ const l = _[d], h = c.getInput("ENTRY" + d);
11807
+ o(s[l], h.connection);
11811
11808
  }
11812
11809
  } else if (r === "json_array_v1") {
11813
11810
  c.initData(s.length);
11814
- for (let l = 0; l < s.length; l++)
11815
- o(s[l], c.getInput("ENTRY" + l).connection);
11811
+ for (let _ = 0; _ < s.length; _++)
11812
+ o(s[_], c.getInput("ENTRY" + _).connection);
11816
11813
  } else r === "json_string_v1" || r === "json_number_v1" ? c.setFieldValue(s, "VALUE") : r === "json_boolean_v1" && c.setFieldValue(s ? "true" : "false", "VALUE");
11817
11814
  };
11818
11815
  o(t, n.getInput("JSON").connection), O.fire(
@@ -11866,7 +11863,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11866
11863
  }),
11867
11864
  emits: /* @__PURE__ */ ze(["ready"], ["update:lock", "update:scale"]),
11868
11865
  setup(t, { expose: e, emit: n }) {
11869
- const { backgroundColor2: o } = Jt(), s = Ht(t, "lock"), a = Ht(t, "scale"), r = n, c = `blocklyEditor${Ze()}`, l = Pt(), d = $t("parentContainer"), u = $t("clean"), h = $t("navigator"), p = {};
11866
+ const { backgroundColor2: o } = Jt(), s = Ht(t, "lock"), a = Ht(t, "scale"), r = n, c = `blocklyEditor${Ze()}`, _ = Pt(), d = $t("parentContainer"), l = $t("clean"), h = $t("navigator"), p = {};
11870
11867
  za(p);
11871
11868
  const f = Pt(!0), T = Pt(!1), E = $(() => t.type === "json" ? "tree" : "list"), y = $(() => ({
11872
11869
  width: "100%",
@@ -11913,11 +11910,11 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11913
11910
  zIndex: 3e3
11914
11911
  })), { open: xt } = rn(`blocklyEditorFlyout${Ze()}`);
11915
11912
  Nn(async () => {
11916
- if (!l.value || !d.value) {
11913
+ if (!_.value || !d.value) {
11917
11914
  console.assert(!1);
11918
11915
  return;
11919
11916
  }
11920
- Qo(d.value), await Bn(t.locale), p.workspace = xc(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(O.disableOrphans), p.workspace.addChangeListener(No);
11917
+ Qo(d.value), await Bn(t.locale), p.workspace = xc(_.value, t.type, t.version, t.dark), p.workspace.addChangeListener(O.disableOrphans), p.workspace.addChangeListener(No);
11921
11918
  const b = document.querySelector(`#${c} .blocklyFlyout`);
11922
11919
  new MutationObserver((xe) => {
11923
11920
  xe.forEach((ee) => {
@@ -11926,7 +11923,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11926
11923
  }).observe(b, { attributes: !0 }), xt.value = p.workspace.getFlyout().isVisible(), En(), gn(), await Es(), r("ready");
11927
11924
  }), Ln(() => {
11928
11925
  xt.value = !1;
11929
- }), zo(l, () => {
11926
+ }), zo(_, () => {
11930
11927
  p.workspace && Zo(p.workspace);
11931
11928
  });
11932
11929
  async function No(b) {
@@ -11960,7 +11957,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11960
11957
  }, Ro = () => {
11961
11958
  p.workspace.fireChangeListener(new no());
11962
11959
  }, An = () => {
11963
- u.value?.cleanWorkspace();
11960
+ l.value?.cleanWorkspace();
11964
11961
  }, In = () => {
11965
11962
  s.value = !s.value;
11966
11963
  }, yn = () => {
@@ -11999,7 +11996,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11999
11996
  X("div", {
12000
11997
  id: c,
12001
11998
  ref_key: "blocklyDiv",
12002
- ref: l,
11999
+ ref: _,
12003
12000
  style: z(y.value)
12004
12001
  }, null, 4),
12005
12002
  X("div", {
@@ -12024,7 +12021,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
12024
12021
  }, [
12025
12022
  D(Za, {
12026
12023
  ref_key: "clean",
12027
- ref: u,
12024
+ ref: l,
12028
12025
  lock: s.value
12029
12026
  }, null, 8, ["lock"]),
12030
12027
  D(tc, {
@@ -12095,17 +12092,17 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
12095
12092
  };
12096
12093
  }), c = (d) => {
12097
12094
  a.value = d.code;
12098
- }, { open: l } = rn("sourceDlg", c);
12099
- return (d, u) => {
12095
+ }, { open: _ } = rn("sourceDlg", c);
12096
+ return (d, l) => {
12100
12097
  const h = F("v-sheet"), p = F("v-btn"), f = F("v-spacer"), T = F("v-dialog");
12101
12098
  return M(), ut(T, {
12102
- modelValue: Y(l),
12103
- "onUpdate:modelValue": u[1] || (u[1] = (E) => oe(l) ? l.value = E : null),
12099
+ modelValue: Y(_),
12100
+ "onUpdate:modelValue": l[1] || (l[1] = (E) => oe(_) ? _.value = E : null),
12104
12101
  fullscreen: "",
12105
12102
  "no-click-animation": "",
12106
12103
  persistent: "",
12107
12104
  transition: "dialog-bottom-transition",
12108
- onKeydown: u[2] || (u[2] = eo(Kt((E) => l.value = !1, ["stop", "prevent"]), ["esc"]))
12105
+ onKeydown: l[2] || (l[2] = eo(Kt((E) => _.value = !1, ["stop", "prevent"]), ["esc"]))
12109
12106
  }, {
12110
12107
  default: lt(() => [
12111
12108
  D(h, {
@@ -12129,7 +12126,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
12129
12126
  density: "comfortable",
12130
12127
  icon: "mdi-close",
12131
12128
  variant: "text",
12132
- onClick: u[0] || (u[0] = (E) => l.value = !1)
12129
+ onClick: l[0] || (l[0] = (E) => _.value = !1)
12133
12130
  }),
12134
12131
  X("span", jc, Gt(Y(e)("x-block-lib.dlg.source.title")), 1),
12135
12132
  D(f)