x-block-lib 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +652 -637
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9,10 +9,10 @@
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
10
  var Ll = Object.defineProperty;
11
11
  var Sl = (e, t, n) => t in e ? Ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
- var tt = (e, t, n) => Sl(e, typeof t != "symbol" ? t + "" : t, n);
13
- import { getCurrentScope as Bl, onScopeDispose as Rl, computed as Se, toValue as Na, watch as Lt, shallowRef as Dl, getCurrentInstance as xo, onMounted as dn, defineComponent as ht, onBeforeUnmount as Oo, resolveComponent as De, createBlock as ut, openBlock as Be, unref as X, withCtx as pt, createVNode as Ne, mergeProps as Zi, useModel as Di, toRefs as Ml, ref as Mt, reactive as Pl, h as Mi, nextTick as es, onUnmounted as Ul, isRef as kn, resolveDirective as xl, withDirectives as wl, createElementBlock as Et, normalizeStyle as lt, createElementVNode as st, toDisplayString as wo, withModifiers as Ln, Fragment as ka, renderList as Vl, withKeys as La, createCommentVNode as cn, mergeModels as Ns } from "vue";
14
- import { d as C, j as r, O as p, E as w, u as k, X as Fl, M as T, B as U, i as pe, F as $, a as Wt, b as Vo, c as be, C as Sa, e as Yl, P as Pi, N as ts, V as po, g as Pt, f as Kl, h as Ba, s as Hl, S as Ye, k as _o, l as $t, m as sn, n as no, o as ui, p as On, q as ks, G as pi, r as $l, t as Gl, v as _i, U as oo, D as io, w as en, x as jl, T as Fo, y as Ra, z as Wl, A as Xl, H as Ls, I as zl, J as ql } from "./blockly-o2yt2sz2.js";
15
- import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as ct, messageWarning as Da, useColor as Yo, useViewStack as Ko, useSystem as Ma, injectDark as Zl, injectLocale as ec } from "x-essential-lib";
12
+ var nt = (e, t, n) => Sl(e, typeof t != "symbol" ? t + "" : t, n);
13
+ import { getCurrentScope as Bl, onScopeDispose as Rl, computed as Be, toValue as Na, watch as Lt, shallowRef as Dl, getCurrentInstance as xo, onMounted as dn, defineComponent as ht, onBeforeUnmount as Oo, resolveComponent as Ie, createBlock as pt, openBlock as Re, unref as X, withCtx as Ze, createVNode as he, mergeProps as Zi, useModel as Di, toRefs as Ml, ref as Mt, reactive as Pl, h as Mi, nextTick as es, onUnmounted as Ul, isRef as kn, resolveDirective as xl, withDirectives as wl, createElementBlock as Et, normalizeStyle as ct, createElementVNode as at, toDisplayString as wo, withModifiers as Ln, Fragment as ka, renderList as Vl, withKeys as La, createCommentVNode as cn, mergeModels as Ns } from "vue";
14
+ import { d as C, j as r, O as p, E as w, u as k, X as Fl, M as T, B as P, i as pe, F as $, a as Wt, b as Vo, c as ye, C as Sa, e as Yl, P as Pi, N as ts, V as po, g as Pt, f as Kl, h as Ba, s as Hl, S as Ye, k as _o, l as $t, m as sn, n as no, o as ui, p as On, q as ks, G as pi, r as $l, t as Gl, v as _i, U as oo, D as io, w as en, x as jl, T as Fo, y as Ra, z as Wl, A as Xl, H as Ls, I as zl, J as ql } from "./blockly-o2yt2sz2.js";
15
+ import { openConfirmDlg as Jl, openPromptDlg as Ql, eventBus as ut, messageWarning as Da, useColor as Yo, useViewStack as Ko, useSystem as Ma, injectDark as Zl, injectLocale as ec } from "x-essential-lib";
16
16
  import { pkgs as tc, elements as Ke, getPropTag as Ho } from "x-runtime-lib";
17
17
  import { globalState as V } from "x-state-lib";
18
18
  import { useI18n as Kn } from "vue-i18n";
@@ -37,14 +37,14 @@ function _c() {
37
37
  }
38
38
  function dc(e) {
39
39
  const t = _c();
40
- return Se(() => (t.value, !!e()));
40
+ return Be(() => (t.value, !!e()));
41
41
  }
42
42
  function hc(e, t, n = {}) {
43
43
  const { window: o = pc, ...i } = n;
44
44
  let s;
45
45
  const a = dc(() => o && "ResizeObserver" in o), l = () => {
46
46
  s && (s.disconnect(), s = void 0);
47
- }, c = Se(() => {
47
+ }, c = Be(() => {
48
48
  const h = Na(e);
49
49
  return Array.isArray(h) ? h.map((g) => Ss(g)) : [Ss(h)];
50
50
  }), _ = Lt(
@@ -486,8 +486,8 @@ function yp(e, t, n) {
486
486
  function xi(e) {
487
487
  return yp(e, Vu, Ip);
488
488
  }
489
- var wi = zt(ft, "DataView"), Vi = zt(ft, "Promise"), Fi = zt(ft, "Set"), Ks = "[object Map]", Cp = "[object Object]", Hs = "[object Promise]", $s = "[object Set]", Gs = "[object WeakMap]", js = "[object DataView]", Np = Xt(wi), kp = Xt(wn), Lp = Xt(Vi), Sp = Xt(Fi), Bp = Xt(Ui), it = Hn;
490
- (wi && it(new wi(new ArrayBuffer(1))) != js || wn && it(new wn()) != Ks || Vi && it(Vi.resolve()) != Hs || Fi && it(new Fi()) != $s || Ui && it(new Ui()) != Gs) && (it = function(e) {
489
+ var wi = zt(ft, "DataView"), Vi = zt(ft, "Promise"), Fi = zt(ft, "Set"), Ks = "[object Map]", Cp = "[object Object]", Hs = "[object Promise]", $s = "[object Set]", Gs = "[object WeakMap]", js = "[object DataView]", Np = Xt(wi), kp = Xt(wn), Lp = Xt(Vi), Sp = Xt(Fi), Bp = Xt(Ui), st = Hn;
490
+ (wi && st(new wi(new ArrayBuffer(1))) != js || wn && st(new wn()) != Ks || Vi && st(Vi.resolve()) != Hs || Fi && st(new Fi()) != $s || Ui && st(new Ui()) != Gs) && (st = function(e) {
491
491
  var t = Hn(e), n = t == Cp ? e.constructor : void 0, o = n ? Xt(n) : "";
492
492
  if (o)
493
493
  switch (o) {
@@ -570,11 +570,11 @@ function a_(e) {
570
570
  }
571
571
  var r_ = "[object Map]";
572
572
  function l_(e) {
573
- return Gt(e) && it(e) == r_;
573
+ return Gt(e) && st(e) == r_;
574
574
  }
575
575
  var zs = hn && hn.isMap, c_ = zs ? os(zs) : l_, u_ = "[object Set]";
576
576
  function p_(e) {
577
- return Gt(e) && it(e) == u_;
577
+ return Gt(e) && st(e) == u_;
578
578
  }
579
579
  var qs = hn && hn.isSet, __ = qs ? os(qs) : p_, Wa = "[object Arguments]", d_ = "[object Array]", h_ = "[object Boolean]", f_ = "[object Date]", g_ = "[object Error]", Xa = "[object Function]", m_ = "[object GeneratorFunction]", T_ = "[object Map]", E_ = "[object Number]", za = "[object Object]", A_ = "[object RegExp]", v_ = "[object Set]", O_ = "[object String]", b_ = "[object Symbol]", I_ = "[object WeakMap]", y_ = "[object ArrayBuffer]", C_ = "[object DataView]", N_ = "[object Float32Array]", k_ = "[object Float64Array]", L_ = "[object Int8Array]", S_ = "[object Int16Array]", B_ = "[object Int32Array]", R_ = "[object Uint8Array]", D_ = "[object Uint8ClampedArray]", M_ = "[object Uint16Array]", P_ = "[object Uint32Array]", ue = {};
580
580
  ue[Wa] = ue[d_] = ue[y_] = ue[C_] = ue[h_] = ue[f_] = ue[N_] = ue[k_] = ue[L_] = ue[S_] = ue[B_] = ue[T_] = ue[E_] = ue[za] = ue[A_] = ue[v_] = ue[O_] = ue[b_] = ue[R_] = ue[D_] = ue[M_] = ue[P_] = !0;
@@ -589,7 +589,7 @@ function ho(e, t, n, o, i, s) {
589
589
  if (l)
590
590
  a = Mp(e);
591
591
  else {
592
- var c = it(e), _ = c == Xa || c == m_;
592
+ var c = st(e), _ = c == Xa || c == m_;
593
593
  if (bo(e))
594
594
  return Ep(e);
595
595
  if (c == za || c == Wa || _ && !i)
@@ -661,9 +661,9 @@ function Ja(e, t, n, o, i, s) {
661
661
  break;
662
662
  }
663
663
  if (m) {
664
- if (!Y_(t, function(D, j) {
665
- if (!K_(m, j) && (I === D || i(I, D, n, o, s)))
666
- return m.push(j);
664
+ if (!Y_(t, function(j, U) {
665
+ if (!K_(m, U) && (I === j || i(I, j, n, o, s)))
666
+ return m.push(U);
667
667
  })) {
668
668
  g = !1;
669
669
  break;
@@ -740,24 +740,24 @@ function ud(e, t, n, o, i, s) {
740
740
  s.set(e, t), s.set(t, e);
741
741
  for (var G = a; ++h < c; ) {
742
742
  g = l[h];
743
- var D = e[g], j = t[g];
743
+ var j = e[g], U = t[g];
744
744
  if (o)
745
- var ee = a ? o(j, D, g, t, e, s) : o(D, j, g, e, t, s);
746
- if (!(ee === void 0 ? D === j || i(D, j, n, o, s) : ee)) {
745
+ var J = a ? o(U, j, g, t, e, s) : o(j, U, g, e, t, s);
746
+ if (!(J === void 0 ? j === U || i(j, U, n, o, s) : J)) {
747
747
  O = !1;
748
748
  break;
749
749
  }
750
750
  G || (G = g == "constructor");
751
751
  }
752
752
  if (O && !G) {
753
- var fe = e.constructor, J = t.constructor;
754
- fe != J && "constructor" in e && "constructor" in t && !(typeof fe == "function" && fe instanceof fe && typeof J == "function" && J instanceof J) && (O = !1);
753
+ var ge = e.constructor, Q = t.constructor;
754
+ ge != Q && "constructor" in e && "constructor" in t && !(typeof ge == "function" && ge instanceof ge && typeof Q == "function" && Q instanceof Q) && (O = !1);
755
755
  }
756
756
  return s.delete(e), s.delete(t), O;
757
757
  }
758
758
  var pd = 1, Qs = "[object Arguments]", Zs = "[object Array]", so = "[object Object]", _d = Object.prototype, ea = _d.hasOwnProperty;
759
759
  function dd(e, t, n, o, i, s) {
760
- var a = Un(e), l = Un(t), c = a ? Zs : it(e), _ = l ? Zs : it(t);
760
+ var a = Un(e), l = Un(t), c = a ? Zs : st(e), _ = l ? Zs : st(t);
761
761
  c = c == Qs ? so : c, _ = _ == Qs ? so : _;
762
762
  var d = c == so, h = _ == so, g = c == _;
763
763
  if (g && bo(e)) {
@@ -782,10 +782,10 @@ function Qa(e, t, n, o, i) {
782
782
  function we(e, t) {
783
783
  return Qa(e, t);
784
784
  }
785
- function Ee(e) {
785
+ function Ae(e) {
786
786
  return e.length <= 0 && e.push([T.NO_OPTION, ""]), e;
787
787
  }
788
- function Te(e) {
788
+ function Ee(e) {
789
789
  let t = "";
790
790
  if (e.type === "string") {
791
791
  let n = "";
@@ -849,7 +849,7 @@ function fn(e) {
849
849
  const { i18n: t } = V.base, n = [];
850
850
  return $n(e).forEach((i) => {
851
851
  n.push([t.global.t(i.name), i.key]);
852
- }), Ee(n);
852
+ }), Ae(n);
853
853
  }
854
854
  function Yi(e) {
855
855
  const t = Ke[e];
@@ -864,7 +864,7 @@ function hd(e) {
864
864
  const t = [];
865
865
  return Yi(e).forEach(({ key: o, name: i }) => {
866
866
  t.push([T[i] ?? i, o]);
867
- }), Ee(t);
867
+ }), Ae(t);
868
868
  }
869
869
  function Ki(e) {
870
870
  const t = Ke[e];
@@ -879,7 +879,7 @@ function fd(e) {
879
879
  const t = [];
880
880
  return Ki(e).forEach(({ key: o, name: i }) => {
881
881
  t.push([T[i] ?? i, o]);
882
- }), Ee(t);
882
+ }), Ae(t);
883
883
  }
884
884
  function Vn(e, t) {
885
885
  var c, _;
@@ -909,7 +909,7 @@ function Za(e, t) {
909
909
  s.names.forEach((l, c) => {
910
910
  c !== 0 && (a += " - "), a += n.global.t(l);
911
911
  }), o.push([a, s.keys]);
912
- }), Ee(o);
912
+ }), Ae(o);
913
913
  }
914
914
  function Tn(e) {
915
915
  const { nodes: t } = V.app.activeObject, n = [];
@@ -941,7 +941,7 @@ function Gn(e) {
941
941
  }
942
942
  let a = t.global.t(s.name);
943
943
  i.alias && (a += ` / ${i.alias}`), n.push([a, i.id]);
944
- }), Ee(n);
944
+ }), Ae(n);
945
945
  }
946
946
  function Hi(e) {
947
947
  const t = He(e);
@@ -965,7 +965,7 @@ function gd(e) {
965
965
  const t = [];
966
966
  return Hi(e).forEach(({ key: o, name: i }) => {
967
967
  t.push([T[i] ?? i, o]);
968
- }), Ee(t);
968
+ }), Ae(t);
969
969
  }
970
970
  function $i(e) {
971
971
  const t = He(e);
@@ -989,7 +989,7 @@ function md(e) {
989
989
  const t = [];
990
990
  return $i(e).forEach(({ key: o, name: i }) => {
991
991
  t.push([T[i] ?? i, o]);
992
- }), Ee(t);
992
+ }), Ae(t);
993
993
  }
994
994
  function Fn(e, t) {
995
995
  var _, d;
@@ -1019,7 +1019,7 @@ function er(e, t) {
1019
1019
  s.names.forEach((l, c) => {
1020
1020
  c !== 0 && (a += " - "), a += n.global.t(l);
1021
1021
  }), o.push([a, s.keys]);
1022
- }), Ee(o);
1022
+ }), Ae(o);
1023
1023
  }
1024
1024
  const Td = {
1025
1025
  init: function() {
@@ -1143,7 +1143,7 @@ const Td = {
1143
1143
  const t = this.method.inputs[e];
1144
1144
  if (!t.type)
1145
1145
  continue;
1146
- const n = Te({
1146
+ const n = Ee({
1147
1147
  type: t.type,
1148
1148
  default: t.default
1149
1149
  });
@@ -1183,7 +1183,7 @@ const Td = {
1183
1183
  this.setWarningText(null);
1184
1184
  }
1185
1185
  };
1186
- U.call_node_method_v1 = Td;
1186
+ P.call_node_method_v1 = Td;
1187
1187
  r.forBlock.call_node_method_v1 = function(e) {
1188
1188
  const t = r.quote_, n = e;
1189
1189
  let o = n.node.id;
@@ -1327,7 +1327,7 @@ const Ed = {
1327
1327
  const t = this.method.inputs[e];
1328
1328
  if (!t.type)
1329
1329
  continue;
1330
- const n = Te({
1330
+ const n = Ee({
1331
1331
  type: t.type,
1332
1332
  default: t.default
1333
1333
  });
@@ -1363,7 +1363,7 @@ const Ed = {
1363
1363
  this.setWarningText(null);
1364
1364
  }
1365
1365
  };
1366
- U.call_node_method_as_v1 = Ed;
1366
+ P.call_node_method_as_v1 = Ed;
1367
1367
  r.forBlock.call_node_method_as_v1 = function(e) {
1368
1368
  const t = r.quote_, n = e, o = r.valueToCode(n, "NODE", p.NONE) || "";
1369
1369
  if (!o)
@@ -1400,7 +1400,7 @@ function tr() {
1400
1400
  const e = [];
1401
1401
  return Yn().forEach((n) => {
1402
1402
  e.push([n.name, n.id]);
1403
- }), Ee(e);
1403
+ }), Ae(e);
1404
1404
  }
1405
1405
  function Gi(e) {
1406
1406
  const t = V.app.activeComp.meta.methods.find(
@@ -1419,7 +1419,7 @@ function vd(e) {
1419
1419
  const t = [];
1420
1420
  return Gi(e).forEach((o) => {
1421
1421
  t.push([o.name, o.id]);
1422
- }), Ee(t);
1422
+ }), Ae(t);
1423
1423
  }
1424
1424
  function nr() {
1425
1425
  return V.app.activeComp.meta.events;
@@ -1431,7 +1431,7 @@ function Od() {
1431
1431
  const e = [];
1432
1432
  return nr().forEach((n) => {
1433
1433
  e.push([n.name, n.id]);
1434
- }), Ee(e);
1434
+ }), Ae(e);
1435
1435
  }
1436
1436
  const bd = {
1437
1437
  init: function() {
@@ -1517,7 +1517,7 @@ const bd = {
1517
1517
  this.setWarningText(null);
1518
1518
  }
1519
1519
  };
1520
- U.comp_method_impl_v1 = bd;
1520
+ P.comp_method_impl_v1 = bd;
1521
1521
  r.forBlock.comp_method_impl_v1 = function(e) {
1522
1522
  const t = e;
1523
1523
  return `{${r.statementToCode(t, "HANDLE")}}`;
@@ -1586,7 +1586,7 @@ const Id = {
1586
1586
  this.node.alias !== e.alias && (this.node.alias = e.alias), this.setWarningText(null);
1587
1587
  }
1588
1588
  };
1589
- U.get_node_v1 = Id;
1589
+ P.get_node_v1 = Id;
1590
1590
  r.forBlock.get_node_v1 = function(e) {
1591
1591
  const t = e;
1592
1592
  return [r.quote_(t.node.id), p.ATOMIC];
@@ -1685,7 +1685,7 @@ const yd = {
1685
1685
  we(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
1686
1686
  }
1687
1687
  };
1688
- U.get_node_prop_v1 = yd;
1688
+ P.get_node_prop_v1 = yd;
1689
1689
  r.forBlock.get_node_prop_v1 = function(e) {
1690
1690
  const t = e, n = r.quote_(t.node.id), o = r.quote_(t.prop.keys);
1691
1691
  return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
@@ -1782,7 +1782,7 @@ const Cd = {
1782
1782
  we(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
1783
1783
  }
1784
1784
  };
1785
- U.get_node_prop_as_v1 = Cd;
1785
+ P.get_node_prop_as_v1 = Cd;
1786
1786
  r.forBlock.get_node_prop_as_v1 = function(e) {
1787
1787
  const t = e, n = r.valueToCode(t, "NODE", p.ATOMIC) || "null", o = r.quote_(t.prop.keys);
1788
1788
  return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
@@ -1802,7 +1802,7 @@ function kd() {
1802
1802
  const e = [];
1803
1803
  return or().forEach((n) => {
1804
1804
  e.push([n.name, n.id]);
1805
- }), Ee(e);
1805
+ }), Ae(e);
1806
1806
  }
1807
1807
  const Ld = {
1808
1808
  init: function() {
@@ -1863,7 +1863,7 @@ const Ld = {
1863
1863
  this.setWarningText(null);
1864
1864
  }
1865
1865
  };
1866
- U.get_page_argument_v1 = Ld;
1866
+ P.get_page_argument_v1 = Ld;
1867
1867
  r.forBlock.get_page_argument_v1 = function(e) {
1868
1868
  const t = e;
1869
1869
  return [`__getPageArgumentV1__(${r.quote_(t.argument.id)})`, p.FUNCTION_CALL];
@@ -1878,7 +1878,7 @@ function Sd() {
1878
1878
  const e = [];
1879
1879
  return as().forEach((n) => {
1880
1880
  e.push([n.name, n.id]);
1881
- }), Ee(e);
1881
+ }), Ae(e);
1882
1882
  }
1883
1883
  function ji(e) {
1884
1884
  const t = V.app.appList.find((n) => n.id === e);
@@ -1893,7 +1893,7 @@ function Bd(e) {
1893
1893
  const t = [];
1894
1894
  return ji(e).forEach((o) => {
1895
1895
  t.push([o.name, o.id]);
1896
- }), Ee(t);
1896
+ }), Ae(t);
1897
1897
  }
1898
1898
  const Rd = {
1899
1899
  init: function() {
@@ -1990,7 +1990,7 @@ const Rd = {
1990
1990
  t.name !== this.page.name && (this.page.name = t.name), this.setWarningText(null);
1991
1991
  }
1992
1992
  };
1993
- U.navigate_to_v1 = Rd;
1993
+ P.navigate_to_v1 = Rd;
1994
1994
  r.forBlock.navigate_to_v1 = function(e) {
1995
1995
  const t = e, n = r.quote_(t.app.id), o = r.quote_(t.page.id), i = r.quote_(t.getFieldValue("MODE"));
1996
1996
  return `__navigateToV1__(${n}, ${o}, ${i});
@@ -2116,7 +2116,7 @@ const Dd = {
2116
2116
  this.setWarningText(null);
2117
2117
  }
2118
2118
  };
2119
- U.on_node_event_v1 = Dd;
2119
+ P.on_node_event_v1 = Dd;
2120
2120
  r.forBlock.on_node_event_v1 = function(e) {
2121
2121
  const t = e, n = r.quote_(t.node.id), o = r.quote_(t.event.key);
2122
2122
  let i = "";
@@ -2246,7 +2246,7 @@ const Md = {
2246
2246
  this.setWarningText(null);
2247
2247
  }
2248
2248
  };
2249
- U.on_node_event_as_v1 = Md;
2249
+ P.on_node_event_as_v1 = Md;
2250
2250
  r.forBlock.on_node_event_as_v1 = function(e) {
2251
2251
  const t = e, n = r.valueToCode(t, "NODE", p.NONE), o = r.quote_(t.event.key);
2252
2252
  let i = "";
@@ -2276,9 +2276,9 @@ const Pd = {
2276
2276
  updateShadow_: function() {
2277
2277
  if (this.isInsertionMarker())
2278
2278
  return;
2279
- const e = Te({ type: "string", default: "" });
2279
+ const e = Ee({ type: "string", default: "" });
2280
2280
  this.getInput("TITLE").connection.setShadowDom(e);
2281
- const t = Te({ type: "string", default: "" });
2281
+ const t = Ee({ type: "string", default: "" });
2282
2282
  this.getInput("TEXT").connection.setShadowDom(t);
2283
2283
  },
2284
2284
  rebuildBlocks_: function() {
@@ -2287,7 +2287,7 @@ const Pd = {
2287
2287
  ]);
2288
2288
  }
2289
2289
  };
2290
- U.open_confirm_dlg_v1 = Pd;
2290
+ P.open_confirm_dlg_v1 = Pd;
2291
2291
  r.forBlock.open_confirm_dlg_v1 = function(e) {
2292
2292
  const t = r.valueToCode(e, "TITLE", p.ATOMIC), n = r.valueToCode(e, "TEXT", p.ATOMIC), o = r.statementToCode(e, "HANDLE");
2293
2293
  return `{
@@ -2313,11 +2313,11 @@ const Ud = {
2313
2313
  updateShadow_: function() {
2314
2314
  if (this.isInsertionMarker())
2315
2315
  return;
2316
- const e = Te({ type: "string", default: "" });
2316
+ const e = Ee({ type: "string", default: "" });
2317
2317
  this.getInput("TITLE").connection.setShadowDom(e);
2318
- const t = Te({ type: "string", default: "" });
2318
+ const t = Ee({ type: "string", default: "" });
2319
2319
  this.getInput("LABEL").connection.setShadowDom(t);
2320
- const n = Te({ type: "string", default: "" });
2320
+ const n = Ee({ type: "string", default: "" });
2321
2321
  this.getInput("VALUE").connection.setShadowDom(n);
2322
2322
  },
2323
2323
  rebuildBlocks_: function() {
@@ -2326,7 +2326,7 @@ const Ud = {
2326
2326
  ]);
2327
2327
  }
2328
2328
  };
2329
- U.open_prompt_dlg_v1 = Ud;
2329
+ P.open_prompt_dlg_v1 = Ud;
2330
2330
  r.forBlock.open_prompt_dlg_v1 = function(e) {
2331
2331
  const t = r.valueToCode(e, "TITLE", p.ATOMIC), n = r.valueToCode(e, "LABEL", p.ATOMIC), o = r.valueToCode(e, "VALUE", p.ATOMIC), i = r.statementToCode(e, "HANDLE");
2332
2332
  return `{
@@ -2460,7 +2460,7 @@ const xd = {
2460
2460
  return;
2461
2461
  let e = null;
2462
2462
  const t = this.output.type;
2463
- t === "string" ? e = Te({ type: "string", default: "" }) : t === "number" ? e = Te({ type: "number", default: 0 }) : t === "boolean" && (e = Te({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
2463
+ t === "string" ? e = Ee({ type: "string", default: "" }) : t === "number" ? e = Ee({ type: "number", default: 0 }) : t === "boolean" && (e = Ee({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
2464
2464
  },
2465
2465
  checkWarning_: function() {
2466
2466
  const e = Co(this.method.id);
@@ -2481,7 +2481,7 @@ const xd = {
2481
2481
  this.setWarningText(null);
2482
2482
  }
2483
2483
  };
2484
- U.set_comp_method_output_v1 = xd;
2484
+ P.set_comp_method_output_v1 = xd;
2485
2485
  r.forBlock.set_comp_method_output_v1 = function(e) {
2486
2486
  const t = e;
2487
2487
  let n = r.valueToCode(t, "VALUE", p.ATOMIC);
@@ -2600,7 +2600,7 @@ const wd = {
2600
2600
  we(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
2601
2601
  }
2602
2602
  };
2603
- U.set_node_prop_v1 = wd;
2603
+ P.set_node_prop_v1 = wd;
2604
2604
  r.forBlock.set_node_prop_v1 = function(e) {
2605
2605
  const t = e, n = r.quote_(t.node.id), o = r.quote_(t.prop.keys), i = r.valueToCode(t, "VALUE", p.NONE);
2606
2606
  return `__setNodePropV1__(${n}, ${o}, ${i});
@@ -2700,7 +2700,7 @@ const Vd = {
2700
2700
  we(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
2701
2701
  }
2702
2702
  };
2703
- U.set_node_prop_as_v1 = Vd;
2703
+ P.set_node_prop_as_v1 = Vd;
2704
2704
  r.forBlock.set_node_prop_as_v1 = function(e) {
2705
2705
  const t = e, n = r.valueToCode(t, "NODE", p.NONE), o = r.quote_(t.prop.keys), i = r.valueToCode(t, "VALUE", p.NONE);
2706
2706
  return `__setNodePropV1__(${n}, ${o}, ${i});
@@ -2779,7 +2779,7 @@ const Fd = {
2779
2779
  for (let n = 0; n < this.event.params.length; n++) {
2780
2780
  const o = this.event.params[n].type;
2781
2781
  let i = null;
2782
- o === "string" ? i = Te({ type: "string", default: "" }) : o === "number" ? i = Te({ type: "number", default: 0 }) : o === "boolean" && (i = Te({ type: "boolean", default: !1 })), (t = (e = this.getInput("PARAM" + n)) == null ? void 0 : e.connection) == null || t.setShadowDom(i);
2782
+ o === "string" ? i = Ee({ type: "string", default: "" }) : o === "number" ? i = Ee({ type: "number", default: 0 }) : o === "boolean" && (i = Ee({ type: "boolean", default: !1 })), (t = (e = this.getInput("PARAM" + n)) == null ? void 0 : e.connection) == null || t.setShadowDom(i);
2783
2783
  }
2784
2784
  },
2785
2785
  checkWarning_: function() {
@@ -2795,7 +2795,7 @@ const Fd = {
2795
2795
  this.setWarningText(null);
2796
2796
  }
2797
2797
  };
2798
- U.trigger_comp_event_v1 = Fd;
2798
+ P.trigger_comp_event_v1 = Fd;
2799
2799
  r.forBlock.trigger_comp_event_v1 = function() {
2800
2800
  return "";
2801
2801
  };
@@ -3060,7 +3060,7 @@ const $d = {
3060
3060
  this.locale ? this.setFieldValue(T[this.name], "LABEL") : this.setFieldValue(this.name, "LABEL");
3061
3061
  }
3062
3062
  };
3063
- U.parameter_v1 = $d;
3063
+ P.parameter_v1 = $d;
3064
3064
  r.forBlock.parameter_v1 = function(e) {
3065
3065
  return [e.key, p.ATOMIC];
3066
3066
  };
@@ -3077,7 +3077,7 @@ function sr() {
3077
3077
  const e = [];
3078
3078
  return gn().forEach((n) => {
3079
3079
  e.push([n.name, n.id]);
3080
- }), Ee(e);
3080
+ }), Ae(e);
3081
3081
  }
3082
3082
  function rs(e) {
3083
3083
  const t = V.compute.spaces.find((n) => n.id === e);
@@ -3092,7 +3092,7 @@ function rr(e) {
3092
3092
  const t = [];
3093
3093
  return rs(e).forEach((o) => {
3094
3094
  t.push([o.name, o.id]);
3095
- }), Ee(t);
3095
+ }), Ae(t);
3096
3096
  }
3097
3097
  function Wi() {
3098
3098
  return V.compute.activeFunc;
@@ -3105,7 +3105,7 @@ function Gd() {
3105
3105
  const e = [], { outputs: t } = V.compute.activeFunc;
3106
3106
  return t.forEach(({ id: n, name: o }) => {
3107
3107
  e.push([o, n]);
3108
- }), Ee(e);
3108
+ }), Ae(e);
3109
3109
  }
3110
3110
  const jd = {
3111
3111
  init: function() {
@@ -3197,7 +3197,7 @@ const jd = {
3197
3197
  n = { type: "boolean", default: !1 };
3198
3198
  else
3199
3199
  continue;
3200
- this.getInput("INPUT" + e).connection.setShadowDom(Te(n));
3200
+ this.getInput("INPUT" + e).connection.setShadowDom(Ee(n));
3201
3201
  }
3202
3202
  },
3203
3203
  rebuildBlocks_: function() {
@@ -3233,7 +3233,7 @@ const jd = {
3233
3233
  this.setWarningText(null);
3234
3234
  }
3235
3235
  };
3236
- U.call_func_v1 = jd;
3236
+ P.call_func_v1 = jd;
3237
3237
  r.forBlock.call_func_v1 = function(e) {
3238
3238
  const t = r.INDENT, n = r.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
3239
3239
  for (let g = 0; g < o.func.inputs.length; g++)
@@ -3341,7 +3341,7 @@ const Wd = {
3341
3341
  n = { type: "boolean", default: !1 };
3342
3342
  else
3343
3343
  continue;
3344
- this.getInput("INPUT" + e).connection.setShadowDom(Te(n));
3344
+ this.getInput("INPUT" + e).connection.setShadowDom(Ee(n));
3345
3345
  }
3346
3346
  },
3347
3347
  rebuildBlocks_: function() {
@@ -3377,7 +3377,7 @@ const Wd = {
3377
3377
  this.setWarningText(null);
3378
3378
  }
3379
3379
  };
3380
- U.call_func_internal_v1 = Wd;
3380
+ P.call_func_internal_v1 = Wd;
3381
3381
  r.forBlock.call_func_internal_v1 = function(e) {
3382
3382
  const t = r.INDENT, n = r.quote_, o = e, i = n(o.space.id), s = n(o.func.id), a = [];
3383
3383
  for (let g = 0; g < o.func.inputs.length; g++)
@@ -3483,7 +3483,7 @@ const Xd = {
3483
3483
  this.setWarningText(null);
3484
3484
  }
3485
3485
  };
3486
- U.func_entry_v1 = Xd;
3486
+ P.func_entry_v1 = Xd;
3487
3487
  r.forBlock.func_entry_v1 = function(e) {
3488
3488
  const t = e, n = r.statementToCode(t, "HANDLE"), o = [];
3489
3489
  for (let a = 0; a < t.func.inputs.length; a++) {
@@ -3497,7 +3497,7 @@ const zd = {
3497
3497
  init: function() {
3498
3498
  }
3499
3499
  };
3500
- U.on_flow_state_event_v1 = zd;
3500
+ P.on_flow_state_event_v1 = zd;
3501
3501
  r.forBlock.on_flow_state_event_v1 = function() {
3502
3502
  return `__onFlowStateEventV1__();
3503
3503
  `;
@@ -3566,7 +3566,7 @@ const qd = {
3566
3566
  return;
3567
3567
  let e = null;
3568
3568
  const t = this.output.type;
3569
- t === "string" ? e = Te({ type: "string", default: "" }) : t === "number" ? e = Te({ type: "number", default: 0 }) : t === "boolean" && (e = Te({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
3569
+ t === "string" ? e = Ee({ type: "string", default: "" }) : t === "number" ? e = Ee({ type: "number", default: 0 }) : t === "boolean" && (e = Ee({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
3570
3570
  },
3571
3571
  checkWarning_: function() {
3572
3572
  const e = ia(this.output.id);
@@ -3581,7 +3581,7 @@ const qd = {
3581
3581
  this.setWarningText(null);
3582
3582
  }
3583
3583
  };
3584
- U.set_func_output_v1 = qd;
3584
+ P.set_func_output_v1 = qd;
3585
3585
  r.forBlock.set_func_output_v1 = function(e) {
3586
3586
  const t = r.quote_, n = e, { id: o, type: i } = n.output;
3587
3587
  let s = r.valueToCode(n, "VALUE", p.ATOMIC);
@@ -3631,7 +3631,7 @@ const Jd = {
3631
3631
  ]);
3632
3632
  }
3633
3633
  };
3634
- U.add_data_v1 = Jd;
3634
+ P.add_data_v1 = Jd;
3635
3635
  r.forBlock.add_data_v1 = function(e) {
3636
3636
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.statementToCode(e, "HANDLE");
3637
3637
  return `{
@@ -3657,7 +3657,7 @@ function Wo() {
3657
3657
  const e = [];
3658
3658
  return En().forEach((n) => {
3659
3659
  e.push([n.name, n.id]);
3660
- }), Ee(e);
3660
+ }), Ae(e);
3661
3661
  }
3662
3662
  function Ot(e) {
3663
3663
  const { spaces: t } = V.data, n = t.find((o) => o.id === e);
@@ -3672,7 +3672,7 @@ function Xo(e) {
3672
3672
  const t = [];
3673
3673
  return Ot(e).forEach((o) => {
3674
3674
  t.push([o.name, o.id]);
3675
- }), Ee(t);
3675
+ }), Ae(t);
3676
3676
  }
3677
3677
  const Qd = {
3678
3678
  init: function() {
@@ -3751,7 +3751,7 @@ const Qd = {
3751
3751
  const e = [], t = xe(this.space.id, this.table.id);
3752
3752
  return t == null || t.columns.forEach((n) => {
3753
3753
  e.push([n.name, n.name]);
3754
- }), Ee(e);
3754
+ }), Ae(e);
3755
3755
  },
3756
3756
  onchange: function(e) {
3757
3757
  if (e.type === w.BLOCK_CHANGE) {
@@ -3819,7 +3819,7 @@ const Qd = {
3819
3819
  this.setWarningText(null);
3820
3820
  }
3821
3821
  };
3822
- U.cond_atomic_v1 = Qd;
3822
+ P.cond_atomic_v1 = Qd;
3823
3823
  r.forBlock.cond_atomic_v1 = function(e) {
3824
3824
  const t = r.quote_, n = e.getFieldValue("COLUMN"), o = r.valueToCode(e, "VALUE", p.ATOMIC) || null, s = {
3825
3825
  EQ: "=",
@@ -3836,13 +3836,13 @@ const Zd = {
3836
3836
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
3837
3837
  }
3838
3838
  };
3839
- U.cond_logic_container_v1 = Zd;
3839
+ P.cond_logic_container_v1 = Zd;
3840
3840
  const eh = {
3841
3841
  init: function() {
3842
3842
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
3843
3843
  }
3844
3844
  };
3845
- U.cond_logic_item_v1 = eh;
3845
+ P.cond_logic_item_v1 = eh;
3846
3846
  const th = {
3847
3847
  init: function() {
3848
3848
  this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
@@ -3919,7 +3919,7 @@ const th = {
3919
3919
  this.getInput("ADD" + e) || this.appendValueInput("ADD" + e).setCheck("Condition");
3920
3920
  }
3921
3921
  };
3922
- U.cond_logic_v1 = th;
3922
+ P.cond_logic_v1 = th;
3923
3923
  r.forBlock.cond_logic_v1 = function(e) {
3924
3924
  const t = r.quote_, n = e, o = n.getFieldValue("TYPE"), i = [], s = r.valueToCode(n, "VALUE", p.ATOMIC) || null;
3925
3925
  i.push(s);
@@ -3951,7 +3951,7 @@ const nh = {
3951
3951
  ]);
3952
3952
  }
3953
3953
  };
3954
- U.delete_data_v1 = nh;
3954
+ P.delete_data_v1 = nh;
3955
3955
  r.forBlock.delete_data_v1 = function(e) {
3956
3956
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
3957
3957
  return `{
@@ -4012,7 +4012,7 @@ const oh = {
4012
4012
  ]);
4013
4013
  }
4014
4014
  };
4015
- U.query_data_v1 = oh;
4015
+ P.query_data_v1 = oh;
4016
4016
  r.forBlock.query_data_v1 = function(e) {
4017
4017
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null";
4018
4018
  let i = "null";
@@ -4087,13 +4087,13 @@ const ih = {
4087
4087
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
4088
4088
  }
4089
4089
  };
4090
- U.select_column_container_v1 = ih;
4090
+ P.select_column_container_v1 = ih;
4091
4091
  const sh = {
4092
4092
  init: function() {
4093
4093
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
4094
4094
  }
4095
4095
  };
4096
- U.select_column_item_v1 = sh;
4096
+ P.select_column_item_v1 = sh;
4097
4097
  const ah = {
4098
4098
  init: function() {
4099
4099
  this.space = {
@@ -4155,7 +4155,7 @@ const ah = {
4155
4155
  const e = [], t = xe(this.space.id, this.table.id);
4156
4156
  return t == null || t.columns.forEach((n) => {
4157
4157
  e.push([n.name, n.name]);
4158
- }), Ee(e);
4158
+ }), Ae(e);
4159
4159
  },
4160
4160
  onchange: function(e) {
4161
4161
  var t;
@@ -4283,7 +4283,7 @@ const ah = {
4283
4283
  this.setWarningText(null);
4284
4284
  }
4285
4285
  };
4286
- U.select_column_v1 = ah;
4286
+ P.select_column_v1 = ah;
4287
4287
  r.forBlock.select_column_v1 = function(e) {
4288
4288
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
4289
4289
  for (let c = 0; c < n.itemCount_; c++) {
@@ -4389,7 +4389,7 @@ const rh = {
4389
4389
  t.name !== this.table.name && (this.table.name = t.name), this.setWarningText(null);
4390
4390
  }
4391
4391
  };
4392
- U.select_table_v1 = rh;
4392
+ P.select_table_v1 = rh;
4393
4393
  r.forBlock.select_table_v1 = function(e) {
4394
4394
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id;
4395
4395
  return [`{spaceid:${t(o)},tableid:${t(i)}}`, p.ATOMIC];
@@ -4399,13 +4399,13 @@ const lh = {
4399
4399
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
4400
4400
  }
4401
4401
  };
4402
- U.update_column_container_v1 = lh;
4402
+ P.update_column_container_v1 = lh;
4403
4403
  const ch = {
4404
4404
  init: function() {
4405
4405
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
4406
4406
  }
4407
4407
  };
4408
- U.update_column_item_v1 = ch;
4408
+ P.update_column_item_v1 = ch;
4409
4409
  const uh = {
4410
4410
  init: function() {
4411
4411
  this.space = {
@@ -4467,7 +4467,7 @@ const uh = {
4467
4467
  const e = [], t = xe(this.space.id, this.table.id);
4468
4468
  return t == null || t.columns.forEach((n) => {
4469
4469
  e.push([n.name, n.name]);
4470
- }), Ee(e);
4470
+ }), Ae(e);
4471
4471
  },
4472
4472
  onchange: function(e) {
4473
4473
  if (e.type === w.BLOCK_CHANGE) {
@@ -4614,7 +4614,7 @@ const uh = {
4614
4614
  this.setWarningText(null);
4615
4615
  }
4616
4616
  };
4617
- U.update_column_v1 = uh;
4617
+ P.update_column_v1 = uh;
4618
4618
  r.forBlock.update_column_v1 = function(e) {
4619
4619
  const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
4620
4620
  for (let c = 0; c < n.itemCount_; c++) {
@@ -4647,7 +4647,7 @@ const ph = {
4647
4647
  ]);
4648
4648
  }
4649
4649
  };
4650
- U.update_data_v1 = ph;
4650
+ P.update_data_v1 = ph;
4651
4651
  r.forBlock.update_data_v1 = function(e) {
4652
4652
  const t = r.INDENT, n = r.valueToCode(e, "TABLE", p.ATOMIC) || "null", o = r.valueToCode(e, "CONDITION", p.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
4653
4653
  return `{
@@ -4664,13 +4664,13 @@ const _h = k.xml, dh = {
4664
4664
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
4665
4665
  }
4666
4666
  };
4667
- U.list_create_container_v1 = dh;
4667
+ P.list_create_container_v1 = dh;
4668
4668
  const hh = {
4669
4669
  init: function() {
4670
4670
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("list_blocks"), this.contextMenu = !1;
4671
4671
  }
4672
4672
  };
4673
- U.list_create_item_v1 = hh;
4673
+ P.list_create_item_v1 = hh;
4674
4674
  const fh = {
4675
4675
  init: function() {
4676
4676
  this.itemCount_ = 0, this.setMutator(
@@ -4755,7 +4755,7 @@ const fh = {
4755
4755
  this.removeInput("ADD" + e);
4756
4756
  }
4757
4757
  };
4758
- U.list_create_v1 = fh;
4758
+ P.list_create_v1 = fh;
4759
4759
  r.forBlock.list_create_v1 = function(e) {
4760
4760
  const t = e, n = new Array(t.itemCount_);
4761
4761
  for (let i = 0; i < t.itemCount_; i++)
@@ -4983,9 +4983,9 @@ const gh = {
4983
4983
  AND: "%{BKY_LOGIC_V1_OPERATION_TOOLTIP_AND}",
4984
4984
  OR: "%{BKY_LOGIC_V1_OPERATION_TOOLTIP_OR}"
4985
4985
  };
4986
- be.register(
4986
+ ye.register(
4987
4987
  "logic_op_tooltip_v1",
4988
- be.buildTooltipForDropdown("OP", gh)
4988
+ ye.buildTooltipForDropdown("OP", gh)
4989
4989
  );
4990
4990
  C([
4991
4991
  {
@@ -5027,7 +5027,7 @@ const mh = {
5027
5027
  this.prevBlocks_[0] = this.getInputTargetBlock("A"), this.prevBlocks_[1] = this.getInputTargetBlock("B");
5028
5028
  }
5029
5029
  };
5030
- be.register(
5030
+ ye.register(
5031
5031
  "logic_compare_v1",
5032
5032
  function() {
5033
5033
  this.mixin(mh);
@@ -5206,7 +5206,7 @@ const Th = {
5206
5206
  n == null || n.reconnect(this, "ELSE");
5207
5207
  }
5208
5208
  };
5209
- be.registerMutator(
5209
+ ye.registerMutator(
5210
5210
  "logic_if_v1_mutator",
5211
5211
  Th,
5212
5212
  void 0,
@@ -5369,7 +5369,7 @@ const Eh = {
5369
5369
  this.prevParentConnection_ = o;
5370
5370
  }
5371
5371
  };
5372
- be.registerMixin("logic_ternary_v1", Eh);
5372
+ ye.registerMixin("logic_ternary_v1", Eh);
5373
5373
  C([
5374
5374
  {
5375
5375
  type: "logic_ternary_v1",
@@ -5426,13 +5426,13 @@ const Ah = {
5426
5426
  }
5427
5427
  }
5428
5428
  };
5429
- be.registerMixin(
5429
+ ye.registerMixin(
5430
5430
  "contextMenu_newGetVariableBlock_v1",
5431
5431
  Ah
5432
5432
  );
5433
- be.register(
5433
+ ye.register(
5434
5434
  "flow_control_tooltip_v1",
5435
- be.buildTooltipForDropdown("MODE", {
5435
+ ye.buildTooltipForDropdown("MODE", {
5436
5436
  BREAK: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_BREAK}",
5437
5437
  CONTINUE: "%{BKY_LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE}"
5438
5438
  })
@@ -5467,7 +5467,7 @@ const vh = /* @__PURE__ */ new Set([
5467
5467
  }
5468
5468
  }
5469
5469
  };
5470
- be.registerMixin(
5470
+ ye.registerMixin(
5471
5471
  "flow_control_in_loop_check_v1",
5472
5472
  Oh
5473
5473
  );
@@ -5492,9 +5492,9 @@ C([
5492
5492
  extensions: ["flow_control_tooltip_v1", "flow_control_in_loop_check_v1"]
5493
5493
  }
5494
5494
  ]);
5495
- be.register(
5495
+ ye.register(
5496
5496
  "for_tooltip_v1",
5497
- be.buildTooltipWithFieldText(
5497
+ ye.buildTooltipWithFieldText(
5498
5498
  "%{BKY_LOOP_V1_FOR_TOOLTIP}",
5499
5499
  "VAR"
5500
5500
  )
@@ -5543,9 +5543,9 @@ C([
5543
5543
  extensions: ["contextMenu_newGetVariableBlock_v1", "for_tooltip_v1"]
5544
5544
  }
5545
5545
  ]);
5546
- be.register(
5546
+ ye.register(
5547
5547
  "for_each_tooltip_v1",
5548
- be.buildTooltipWithFieldText(
5548
+ ye.buildTooltipWithFieldText(
5549
5549
  "%{BKY_LOOP_V1_FOR_EACH_TOOLTIP}",
5550
5550
  "VAR"
5551
5551
  )
@@ -5580,9 +5580,9 @@ C([
5580
5580
  extensions: ["contextMenu_newGetVariableBlock_v1", "for_each_tooltip_v1"]
5581
5581
  }
5582
5582
  ]);
5583
- be.register(
5583
+ ye.register(
5584
5584
  "loop_while_until_tooltip_v1",
5585
- be.buildTooltipForDropdown("MODE", {
5585
+ ye.buildTooltipForDropdown("MODE", {
5586
5586
  WHILE: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE}",
5587
5587
  UNTIL: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL}"
5588
5588
  })
@@ -5666,9 +5666,9 @@ const bh = {
5666
5666
  STD_DEV: "%{BKY_MATH_V1_ON_LIST_TOOLTIP_STD_DEV}",
5667
5667
  RANDOM: "%{BKY_MATH_V1_ON_LIST_TOOLTIP_RANDOM}"
5668
5668
  };
5669
- be.register(
5669
+ ye.register(
5670
5670
  "math_op_tooltip_v1",
5671
- be.buildTooltipForDropdown("OP", bh)
5671
+ ye.buildTooltipForDropdown("OP", bh)
5672
5672
  );
5673
5673
  C([
5674
5674
  {
@@ -6278,13 +6278,13 @@ const Ih = k.xml, yh = {
6278
6278
  ), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
6279
6279
  }
6280
6280
  };
6281
- U.object_create_container_v1 = yh;
6281
+ P.object_create_container_v1 = yh;
6282
6282
  const Ch = {
6283
6283
  init: function() {
6284
6284
  this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_ITEM_TITLE}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
6285
6285
  }
6286
6286
  };
6287
- U.object_create_item_v1 = Ch;
6287
+ P.object_create_item_v1 = Ch;
6288
6288
  const Nh = {
6289
6289
  init: function() {
6290
6290
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
@@ -6361,7 +6361,7 @@ const Nh = {
6361
6361
  this.removeInput("ADD" + e);
6362
6362
  }
6363
6363
  };
6364
- U.object_create_v1 = Nh;
6364
+ P.object_create_v1 = Nh;
6365
6365
  r.forBlock.object_create_v1 = function(e) {
6366
6366
  const t = e;
6367
6367
  let n = "{";
@@ -6624,7 +6624,7 @@ const sa = k.xml, kh = {
6624
6624
  this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new Yl(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
6625
6625
  }
6626
6626
  };
6627
- U.procedure_def_container_v1 = kh;
6627
+ P.procedure_def_container_v1 = kh;
6628
6628
  const Lh = {
6629
6629
  init: function() {
6630
6630
  const e = new Vo(Pi.DEFAULT_ARG);
@@ -6647,7 +6647,7 @@ const Lh = {
6647
6647
  return e;
6648
6648
  }
6649
6649
  };
6650
- U.procedure_def_item_v1 = Lh;
6650
+ P.procedure_def_item_v1 = Lh;
6651
6651
  const Sh = {
6652
6652
  init: function() {
6653
6653
  this.withReturn = !1, this.args = [];
@@ -6753,7 +6753,7 @@ const Sh = {
6753
6753
  }
6754
6754
  }
6755
6755
  };
6756
- U.procedure_def_v1 = Sh;
6756
+ P.procedure_def_v1 = Sh;
6757
6757
  const Bh = k.xml, Rh = {
6758
6758
  init: function() {
6759
6759
  this.withReturn = !1, this.appendDummyInput("DUMMY").appendField("%{BKY_PROCEDURE_RETURN}"), this.appendValueInput("VALUE").appendField("%{BKY_PROCEDURE_RETURN}").setVisible(!1), this.setPreviousStatement(!0), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_RETURN_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_RETURN_HELPURL}");
@@ -6810,7 +6810,7 @@ const Bh = k.xml, Rh = {
6810
6810
  e.type === "procedure_def_v1" || e.type === "func_entry_v1" ? this.setWarningText(null) : this.setWarningText("the block can only be used in procedure block");
6811
6811
  }
6812
6812
  };
6813
- U.procedure_return_v1 = Rh;
6813
+ P.procedure_return_v1 = Rh;
6814
6814
  r.forBlock.procedure_return_v1 = function(e) {
6815
6815
  const t = e;
6816
6816
  return t.withReturn ? `return ${r.valueToCode(t, "VALUE", p.NONE) || "null"};
@@ -6842,9 +6842,9 @@ const Dh = /^\s*'([^']|\\')*'\s*$/;
6842
6842
  function fo(e) {
6843
6843
  return Dh.test(e) ? [e, p.ATOMIC] : [`String(${e})`, p.FUNCTION_CALL];
6844
6844
  }
6845
- be.register(
6845
+ ye.register(
6846
6846
  "text_append_tooltip_v1",
6847
- be.buildTooltipWithFieldText(
6847
+ ye.buildTooltipWithFieldText(
6848
6848
  "%{BKY_TEXT_V1_APPEND_TOOLTIP}",
6849
6849
  "VAR"
6850
6850
  )
@@ -7123,7 +7123,7 @@ const Mh = k.xml, Ph = {
7123
7123
  }, Uh = function() {
7124
7124
  this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Wt.MutatorIcon(["text_join_item_v1"], this));
7125
7125
  };
7126
- be.registerMutator(
7126
+ ye.registerMutator(
7127
7127
  "text_join_mutator_v1",
7128
7128
  Ph,
7129
7129
  Uh
@@ -7374,17 +7374,17 @@ const xh = {
7374
7374
  updateShadow_: function() {
7375
7375
  var e, t, n, o, i, s, a, l;
7376
7376
  this.isInsertionMarker() || ((t = (e = this.getInput("INTERVAL")) == null ? void 0 : e.connection) == null || t.setShadowDom(
7377
- Te({ type: "number", default: 1e3 })
7377
+ Ee({ type: "number", default: 1e3 })
7378
7378
  ), (o = (n = this.getInput("LOOP")) == null ? void 0 : n.connection) == null || o.setShadowDom(
7379
- Te({ type: "boolean", default: !1 })
7379
+ Ee({ type: "boolean", default: !1 })
7380
7380
  ), (s = (i = this.getInput("COUNT")) == null ? void 0 : i.connection) == null || s.setShadowDom(
7381
- Te({ type: "number", default: 1 })
7381
+ Ee({ type: "number", default: 1 })
7382
7382
  ), (l = (a = this.getInput("IMMEDIATE")) == null ? void 0 : a.connection) == null || l.setShadowDom(
7383
- Te({ type: "boolean", default: !1 })
7383
+ Ee({ type: "boolean", default: !1 })
7384
7384
  ));
7385
7385
  }
7386
7386
  };
7387
- U.create_timer_v1 = xh;
7387
+ P.create_timer_v1 = xh;
7388
7388
  r.forBlock.create_timer_v1 = function(e) {
7389
7389
  const t = r.valueToCode(e, "INTERVAL", p.ATOMIC) || "1000", n = r.valueToCode(e, "LOOP", p.ATOMIC) || "false", o = r.valueToCode(e, "COUNT", p.ATOMIC) || "1", i = r.valueToCode(e, "IMMEDIATE", p.ATOMIC) || "false", s = r.statementToCode(e, "CALLBACK");
7390
7390
  return `__createTimerV1__(${t}, ${n}, ${o}, ${i}, function() {
@@ -7453,7 +7453,7 @@ const wh = {
7453
7453
  t.deleteVariableById(o.getId()), t.refreshToolboxSelection();
7454
7454
  };
7455
7455
  };
7456
- be.registerMixin(
7456
+ ye.registerMixin(
7457
7457
  "context_menu_variable_v1",
7458
7458
  wh
7459
7459
  );
@@ -7788,97 +7788,97 @@ function $h() {
7788
7788
  const Bt = {
7789
7789
  name: "PROCEDURE_CATEGORY",
7790
7790
  callback: $h
7791
- }, Oe = k.xml;
7791
+ }, be = k.xml;
7792
7792
  function Gh() {
7793
7793
  const e = [];
7794
7794
  if (Nd()) {
7795
7795
  {
7796
- const t = Oe.createElement("label");
7796
+ const t = be.createElement("label");
7797
7797
  t.setAttribute("text", T.LABEL_PAGE), e.push(t);
7798
7798
  }
7799
7799
  if (or().length > 0) {
7800
- const t = Oe.createElement("block");
7800
+ const t = be.createElement("block");
7801
7801
  t.setAttribute("type", "get_page_argument_v1"), e.push(t);
7802
7802
  }
7803
7803
  }
7804
7804
  if (Ad()) {
7805
7805
  {
7806
- const t = Oe.createElement("label");
7806
+ const t = be.createElement("label");
7807
7807
  t.setAttribute("text", T.LABEL_COMP), e.push(t);
7808
7808
  }
7809
7809
  if (Yn().length > 0) {
7810
7810
  {
7811
- const t = Oe.createElement("block");
7811
+ const t = be.createElement("block");
7812
7812
  t.setAttribute("type", "comp_method_impl_v1"), e.push(t);
7813
7813
  }
7814
7814
  {
7815
- const t = Oe.createElement("block");
7815
+ const t = be.createElement("block");
7816
7816
  t.setAttribute("type", "set_comp_method_output_v1"), e.push(t);
7817
7817
  }
7818
7818
  }
7819
7819
  if (Yn().length > 0) {
7820
- const t = Oe.createElement("block");
7820
+ const t = be.createElement("block");
7821
7821
  t.setAttribute("type", "trigger_comp_event_v1"), e.push(t);
7822
7822
  }
7823
7823
  }
7824
7824
  {
7825
- const t = Oe.createElement("label");
7825
+ const t = be.createElement("label");
7826
7826
  t.setAttribute("text", T.LABEL_EVENT), e.push(t);
7827
7827
  }
7828
7828
  {
7829
- const t = Oe.createElement("block");
7829
+ const t = be.createElement("block");
7830
7830
  t.setAttribute("type", "on_node_event_v1"), e.push(t);
7831
7831
  }
7832
7832
  {
7833
- const t = Oe.createElement("block");
7833
+ const t = be.createElement("block");
7834
7834
  t.setAttribute("type", "on_node_event_as_v1"), e.push(t);
7835
7835
  }
7836
7836
  {
7837
- const t = Oe.createElement("label");
7837
+ const t = be.createElement("label");
7838
7838
  t.setAttribute("text", T.LABEL_METHOD), e.push(t);
7839
7839
  }
7840
7840
  {
7841
- const t = Oe.createElement("block");
7841
+ const t = be.createElement("block");
7842
7842
  t.setAttribute("type", "call_node_method_v1"), e.push(t);
7843
7843
  }
7844
7844
  {
7845
- const t = Oe.createElement("block");
7845
+ const t = be.createElement("block");
7846
7846
  t.setAttribute("type", "call_node_method_as_v1"), e.push(t);
7847
7847
  }
7848
7848
  {
7849
- const t = Oe.createElement("label");
7849
+ const t = be.createElement("label");
7850
7850
  t.setAttribute("text", T.LABEL_PROPERTY), e.push(t);
7851
7851
  }
7852
7852
  {
7853
- const t = Oe.createElement("block");
7853
+ const t = be.createElement("block");
7854
7854
  t.setAttribute("type", "get_node_prop_v1"), e.push(t);
7855
7855
  }
7856
7856
  {
7857
- const t = Oe.createElement("block");
7857
+ const t = be.createElement("block");
7858
7858
  t.setAttribute("type", "get_node_prop_as_v1"), e.push(t);
7859
7859
  }
7860
7860
  {
7861
- const t = Oe.createElement("block");
7861
+ const t = be.createElement("block");
7862
7862
  t.setAttribute("type", "set_node_prop_v1"), e.push(t);
7863
7863
  }
7864
7864
  {
7865
- const t = Oe.createElement("block");
7865
+ const t = be.createElement("block");
7866
7866
  t.setAttribute("type", "set_node_prop_as_v1"), e.push(t);
7867
7867
  }
7868
7868
  {
7869
- const t = Oe.createElement("label");
7869
+ const t = be.createElement("label");
7870
7870
  t.setAttribute("text", T.LABEL_OTHER), e.push(t);
7871
7871
  }
7872
7872
  {
7873
- const t = Oe.createElement("block");
7873
+ const t = be.createElement("block");
7874
7874
  t.setAttribute("type", "get_node_v1"), e.push(t);
7875
7875
  }
7876
7876
  {
7877
- const t = Oe.createElement("block");
7877
+ const t = be.createElement("block");
7878
7878
  t.setAttribute("type", "app_env_v1"), e.push(t);
7879
7879
  }
7880
7880
  if (as().length > 0) {
7881
- const t = Oe.createElement("block");
7881
+ const t = be.createElement("block");
7882
7882
  t.setAttribute("type", "navigate_to_v1"), e.push(t);
7883
7883
  }
7884
7884
  return e;
@@ -8171,33 +8171,33 @@ class dr extends _i {
8171
8171
  constructor(n, o, i) {
8172
8172
  super(_i.SKIP_SETUP);
8173
8173
  /** The field's colour picker element. */
8174
- tt(this, "picker", null);
8174
+ nt(this, "picker", null);
8175
8175
  /** Index of the currently highlighted element. */
8176
- tt(this, "highlightedIndex", null);
8176
+ nt(this, "highlightedIndex", null);
8177
8177
  /**
8178
8178
  * Array holding info needed to unbind events.
8179
8179
  * Used for disposing.
8180
8180
  * Ex: [[node, name, func], [node, name, func]].
8181
8181
  */
8182
- tt(this, "boundEvents", []);
8182
+ nt(this, "boundEvents", []);
8183
8183
  /**
8184
8184
  * Serializable fields are saved by the serializer, non-serializable fields
8185
8185
  * are not. Editable fields should also be serializable.
8186
8186
  */
8187
- tt(this, "SERIALIZABLE", !0);
8187
+ nt(this, "SERIALIZABLE", !0);
8188
8188
  /** Mouse cursor style when over the hotspot that initiates the editor. */
8189
- tt(this, "CURSOR", "default");
8189
+ nt(this, "CURSOR", "default");
8190
8190
  /**
8191
8191
  * Used to tell if the field needs to be rendered the next time the block is
8192
8192
  * rendered. Colour fields are statically sized, and only need to be
8193
8193
  * rendered at initialization.
8194
8194
  */
8195
- tt(this, "isDirty_", !1);
8195
+ nt(this, "isDirty_", !1);
8196
8196
  /**
8197
8197
  * An array of colour strings for the palette.
8198
8198
  * Copied from goog.ui.ColorPicker.SIMPLE_GRID_COLORS
8199
8199
  */
8200
- tt(this, "colours", [
8200
+ nt(this, "colours", [
8201
8201
  // red
8202
8202
  "#F44336",
8203
8203
  // base
@@ -8759,11 +8759,11 @@ class dr extends _i {
8759
8759
  * An array of tooltip strings for the palette. If not the same length as
8760
8760
  * COLOURS, the colour's hex code will be used for any missing titles.
8761
8761
  */
8762
- tt(this, "titles", ["%{BKY_COLOR_RED}"]);
8762
+ nt(this, "titles", ["%{BKY_COLOR_RED}"]);
8763
8763
  /**
8764
8764
  * Number of columns in the palette.
8765
8765
  */
8766
- tt(this, "columns", 14);
8766
+ nt(this, "columns", 14);
8767
8767
  n !== _i.SKIP_SETUP && (i && this.configure_(i), this.setValue(n), o && this.setValidator(o));
8768
8768
  }
8769
8769
  configure_(n) {
@@ -10070,22 +10070,26 @@ const zo = {
10070
10070
  s && s.callback({ workspace: i }, new PointerEvent("dummy"));
10071
10071
  };
10072
10072
  return dn(() => {
10073
- ct.on("cleanWorkspace", o);
10073
+ ut.on("cleanWorkspace", o);
10074
10074
  }), Oo(() => {
10075
- ct.off("cleanWorkspace", o);
10075
+ ut.off("cleanWorkspace", o);
10076
10076
  }), (i, s) => {
10077
- const a = De("v-btn"), l = De("v-tooltip");
10078
- return Be(), ut(l, {
10077
+ const a = Ie("v-btn"), l = Ie("v-fade-transition"), c = Ie("v-tooltip");
10078
+ return Re(), pt(c, {
10079
10079
  text: X(t)("x-block-lib.tip.hotkeyCtrlQ")
10080
10080
  }, {
10081
- activator: pt(({ props: c }) => [
10082
- Ne(a, Zi(c, {
10083
- class: "mr-3",
10084
- variant: "outlined",
10085
- density: "comfortable",
10086
- icon: X(oc),
10087
- onClick: s[0] || (s[0] = (_) => X(ct).emit("cleanWorkspace"))
10088
- }), null, 16, ["icon"])
10081
+ activator: Ze(({ props: _ }) => [
10082
+ he(l, null, {
10083
+ default: Ze(() => [
10084
+ he(a, Zi(_, {
10085
+ variant: "outlined",
10086
+ density: "comfortable",
10087
+ icon: X(oc),
10088
+ onClick: s[0] || (s[0] = (d) => X(ut).emit("cleanWorkspace"))
10089
+ }), null, 16, ["icon"])
10090
+ ]),
10091
+ _: 2
10092
+ }, 1024)
10089
10093
  ]),
10090
10094
  _: 1
10091
10095
  }, 8, ["text"]);
@@ -10101,18 +10105,22 @@ const zo = {
10101
10105
  setup(e) {
10102
10106
  const { t } = Kn(), n = Di(e, "modelValue");
10103
10107
  return (o, i) => {
10104
- const s = De("v-btn"), a = De("v-tooltip");
10105
- return Be(), ut(a, {
10108
+ const s = Ie("v-btn"), a = Ie("v-fade-transition"), l = Ie("v-tooltip");
10109
+ return Re(), pt(l, {
10106
10110
  text: X(t)("x-block-lib.tip.hotkeyCtrlW")
10107
10111
  }, {
10108
- activator: pt(({ props: l }) => [
10109
- Ne(s, Zi(l, {
10110
- class: "mr-3",
10111
- variant: "outlined",
10112
- density: "comfortable",
10113
- icon: n.value ? X(ac) : X(rc),
10114
- onClick: i[0] || (i[0] = (c) => n.value = !n.value)
10115
- }), null, 16, ["icon"])
10112
+ activator: Ze(({ props: c }) => [
10113
+ he(a, null, {
10114
+ default: Ze(() => [
10115
+ he(s, Zi(c, {
10116
+ variant: "outlined",
10117
+ density: "comfortable",
10118
+ icon: n.value ? X(ac) : X(rc),
10119
+ onClick: i[0] || (i[0] = (_) => n.value = !n.value)
10120
+ }), null, 16, ["icon"])
10121
+ ]),
10122
+ _: 2
10123
+ }, 1024)
10116
10124
  ]),
10117
10125
  _: 1
10118
10126
  }, 8, ["text"]);
@@ -10283,7 +10291,7 @@ var yt = vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), jn = vt(/E
10283
10291
  function te(e, t, n) {
10284
10292
  e.addEventListener(t, n, !yt && Or);
10285
10293
  }
10286
- function Z(e, t, n) {
10294
+ function ee(e, t, n) {
10287
10295
  e.removeEventListener(t, n, !yt && Or);
10288
10296
  }
10289
10297
  function Ro(e, t) {
@@ -10305,7 +10313,7 @@ function Ro(e, t) {
10305
10313
  function Nf(e) {
10306
10314
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
10307
10315
  }
10308
- function ot(e, t, n, o) {
10316
+ function it(e, t, n, o) {
10309
10317
  if (e) {
10310
10318
  n = n || document;
10311
10319
  do {
@@ -10327,7 +10335,7 @@ function qe(e, t, n) {
10327
10335
  e.className = (o + (n ? " " + t : "")).replace(fa, " ");
10328
10336
  }
10329
10337
  }
10330
- function M(e, t, n) {
10338
+ function D(e, t, n) {
10331
10339
  var o = e && e.style;
10332
10340
  if (o) {
10333
10341
  if (n === void 0)
@@ -10341,7 +10349,7 @@ function _n(e, t) {
10341
10349
  n = e;
10342
10350
  else
10343
10351
  do {
10344
- var o = M(e, "transform");
10352
+ var o = D(e, "transform");
10345
10353
  o && o !== "none" && (n = o + " " + n);
10346
10354
  } while (!t && (e = e.parentNode));
10347
10355
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
@@ -10361,14 +10369,14 @@ function _t() {
10361
10369
  var e = document.scrollingElement;
10362
10370
  return e || document.documentElement;
10363
10371
  }
10364
- function Ce(e, t, n, o, i) {
10372
+ function ke(e, t, n, o, i) {
10365
10373
  if (!(!e.getBoundingClientRect && e !== window)) {
10366
10374
  var s, a, l, c, _, d, h;
10367
10375
  if (e !== window && e.parentNode && e !== _t() ? (s = e.getBoundingClientRect(), a = s.top, l = s.left, c = s.bottom, _ = s.right, d = s.height, h = s.width) : (a = 0, l = 0, c = window.innerHeight, _ = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !yt))
10368
10376
  do
10369
- if (i && i.getBoundingClientRect && (M(i, "transform") !== "none" || n && M(i, "position") !== "static")) {
10377
+ if (i && i.getBoundingClientRect && (D(i, "transform") !== "none" || n && D(i, "position") !== "static")) {
10370
10378
  var g = i.getBoundingClientRect();
10371
- a -= g.top + parseInt(M(i, "border-top-width")), l -= g.left + parseInt(M(i, "border-left-width")), c = a + s.height, _ = l + s.width;
10379
+ a -= g.top + parseInt(D(i, "border-top-width")), l -= g.left + parseInt(D(i, "border-left-width")), c = a + s.height, _ = l + s.width;
10372
10380
  break;
10373
10381
  }
10374
10382
  while (i = i.parentNode);
@@ -10387,8 +10395,8 @@ function Ce(e, t, n, o, i) {
10387
10395
  }
10388
10396
  }
10389
10397
  function ga(e, t, n) {
10390
- for (var o = Dt(e, !0), i = Ce(e)[t]; o; ) {
10391
- var s = Ce(o)[n], a = void 0;
10398
+ for (var o = Dt(e, !0), i = ke(e)[t]; o; ) {
10399
+ var s = ke(o)[n], a = void 0;
10392
10400
  if (a = i >= s, !a)
10393
10401
  return o;
10394
10402
  if (o === _t())
@@ -10399,7 +10407,7 @@ function ga(e, t, n) {
10399
10407
  }
10400
10408
  function mn(e, t, n, o) {
10401
10409
  for (var i = 0, s = 0, a = e.children; s < a.length; ) {
10402
- if (a[s].style.display !== "none" && a[s] !== P.ghost && (o || a[s] !== P.dragged) && ot(a[s], n.draggable, e, !1)) {
10410
+ if (a[s].style.display !== "none" && a[s] !== M.ghost && (o || a[s] !== M.dragged) && it(a[s], n.draggable, e, !1)) {
10403
10411
  if (i === t)
10404
10412
  return a[s];
10405
10413
  i++;
@@ -10409,16 +10417,16 @@ function mn(e, t, n, o) {
10409
10417
  return null;
10410
10418
  }
10411
10419
  function ls(e, t) {
10412
- for (var n = e.lastElementChild; n && (n === P.ghost || M(n, "display") === "none" || t && !Ro(n, t)); )
10420
+ for (var n = e.lastElementChild; n && (n === M.ghost || D(n, "display") === "none" || t && !Ro(n, t)); )
10413
10421
  n = n.previousElementSibling;
10414
10422
  return n || null;
10415
10423
  }
10416
- function Ze(e, t) {
10424
+ function et(e, t) {
10417
10425
  var n = 0;
10418
10426
  if (!e || !e.parentNode)
10419
10427
  return -1;
10420
10428
  for (; e = e.previousElementSibling; )
10421
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== P.clone && (!t || Ro(e, t)) && n++;
10429
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== M.clone && (!t || Ro(e, t)) && n++;
10422
10430
  return n;
10423
10431
  }
10424
10432
  function ma(e) {
@@ -10445,7 +10453,7 @@ function Dt(e, t) {
10445
10453
  var n = e, o = !1;
10446
10454
  do
10447
10455
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
10448
- var i = M(n);
10456
+ var i = D(n);
10449
10457
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
10450
10458
  if (!n.getBoundingClientRect || n === document.body)
10451
10459
  return _t();
@@ -10491,8 +10499,8 @@ function Nr(e, t, n) {
10491
10499
  var o = {};
10492
10500
  return Array.from(e.children).forEach(function(i) {
10493
10501
  var s, a, l, c;
10494
- if (!(!ot(i, t.draggable, e, !1) || i.animated || i === n)) {
10495
- var _ = Ce(i);
10502
+ if (!(!it(i, t.draggable, e, !1) || i.animated || i === n)) {
10503
+ var _ = ke(i);
10496
10504
  o.left = Math.min((s = o.left) !== null && s !== void 0 ? s : 1 / 0, _.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, _.top), o.right = Math.max((l = o.right) !== null && l !== void 0 ? l : -1 / 0, _.right), o.bottom = Math.max((c = o.bottom) !== null && c !== void 0 ? c : -1 / 0, _.bottom);
10497
10505
  }
10498
10506
  }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
@@ -10505,10 +10513,10 @@ function Bf() {
10505
10513
  if (e = [], !!this.options.animation) {
10506
10514
  var n = [].slice.call(this.el.children);
10507
10515
  n.forEach(function(o) {
10508
- if (!(M(o, "display") === "none" || o === P.ghost)) {
10516
+ if (!(D(o, "display") === "none" || o === M.ghost)) {
10509
10517
  e.push({
10510
10518
  target: o,
10511
- rect: Ce(o)
10519
+ rect: ke(o)
10512
10520
  });
10513
10521
  var i = dt({}, e[e.length - 1].rect);
10514
10522
  if (o.thisAnimationDuration) {
@@ -10536,7 +10544,7 @@ function Bf() {
10536
10544
  }
10537
10545
  var i = !1, s = 0;
10538
10546
  e.forEach(function(a) {
10539
- var l = 0, c = a.target, _ = c.fromRect, d = Ce(c), h = c.prevFromRect, g = c.prevToRect, m = a.rect, I = _n(c, !0);
10547
+ var l = 0, c = a.target, _ = c.fromRect, d = ke(c), h = c.prevFromRect, g = c.prevToRect, m = a.rect, I = _n(c, !0);
10540
10548
  I && (d.top -= I.f, d.left -= I.e), c.toRect = d, c.thisAnimationDuration && bi(h, d) && !bi(_, d) && // Make sure animatingRect is on line between toRect & fromRect
10541
10549
  (m.top - d.top) / (m.left - d.left) === (_.top - d.top) / (_.left - d.left) && (l = Df(m, h, g, o.options)), bi(d, _) || (c.prevFromRect = _, c.prevToRect = d, l || (l = o.options.animation), o.animate(c, m, d, l)), l && (i = !0, s = Math.max(s, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
10542
10550
  c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
@@ -10547,10 +10555,10 @@ function Bf() {
10547
10555
  },
10548
10556
  animate: function(n, o, i, s) {
10549
10557
  if (s) {
10550
- M(n, "transition", ""), M(n, "transform", "");
10558
+ D(n, "transition", ""), D(n, "transform", "");
10551
10559
  var a = _n(this.el), l = a && a.a, c = a && a.d, _ = (o.left - i.left) / (l || 1), d = (o.top - i.top) / (c || 1);
10552
- n.animatingX = !!_, n.animatingY = !!d, M(n, "transform", "translate3d(" + _ + "px," + d + "px,0)"), this.forRepaintDummy = Rf(n), M(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), M(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
10553
- M(n, "transition", ""), M(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
10560
+ n.animatingX = !!_, n.animatingY = !!d, D(n, "transform", "translate3d(" + _ + "px," + d + "px,0)"), this.forRepaintDummy = Rf(n), D(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), D(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
10561
+ D(n, "transition", ""), D(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
10554
10562
  }, s);
10555
10563
  }
10556
10564
  }
@@ -10617,31 +10625,31 @@ var nn = [], Ii = {
10617
10625
  function Mf(e) {
10618
10626
  var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, l = e.fromEl, c = e.oldIndex, _ = e.newIndex, d = e.oldDraggableIndex, h = e.newDraggableIndex, g = e.originalEvent, m = e.putSortable, I = e.extraEventProperties;
10619
10627
  if (t = t || n && n[Qe], !!t) {
10620
- var O, G = t.options, D = "on" + o.charAt(0).toUpperCase() + o.substr(1);
10628
+ var O, G = t.options, j = "on" + o.charAt(0).toUpperCase() + o.substr(1);
10621
10629
  window.CustomEvent && !yt && !jn ? O = new CustomEvent(o, {
10622
10630
  bubbles: !0,
10623
10631
  cancelable: !0
10624
10632
  }) : (O = document.createEvent("Event"), O.initEvent(o, !0, !0)), O.to = a || n, O.from = l || n, O.item = i || n, O.clone = s, O.oldIndex = c, O.newIndex = _, O.oldDraggableIndex = d, O.newDraggableIndex = h, O.originalEvent = g, O.pullMode = m ? m.lastPutMode : void 0;
10625
- var j = dt(dt({}, I), Wn.getEventProperties(o, t));
10626
- for (var ee in j)
10627
- O[ee] = j[ee];
10628
- n && n.dispatchEvent(O), G[D] && G[D].call(t, O);
10633
+ var U = dt(dt({}, I), Wn.getEventProperties(o, t));
10634
+ for (var J in U)
10635
+ O[J] = U[J];
10636
+ n && n.dispatchEvent(O), G[j] && G[j].call(t, O);
10629
10637
  }
10630
10638
  }
10631
10639
  var Pf = ["evt"], je = function(e, t) {
10632
10640
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = yf(n, Pf);
10633
- Wn.pluginEvent.bind(P)(e, t, dt({
10641
+ Wn.pluginEvent.bind(M)(e, t, dt({
10634
10642
  dragEl: A,
10635
- parentEl: me,
10643
+ parentEl: Te,
10636
10644
  ghostEl: K,
10637
10645
  rootEl: de,
10638
10646
  nextEl: Ht,
10639
10647
  lastDownEl: mo,
10640
- cloneEl: he,
10648
+ cloneEl: fe,
10641
10649
  cloneHidden: St,
10642
10650
  dragStarted: yn,
10643
10651
  putSortable: Ue,
10644
- activeSortable: P.active,
10652
+ activeSortable: M.active,
10645
10653
  originalEvent: o,
10646
10654
  oldIndex: ln,
10647
10655
  oldDraggableIndex: Dn,
@@ -10667,7 +10675,7 @@ var Pf = ["evt"], je = function(e, t) {
10667
10675
  function Ge(e) {
10668
10676
  Mf(dt({
10669
10677
  putSortable: Ue,
10670
- cloneEl: he,
10678
+ cloneEl: fe,
10671
10679
  targetEl: A,
10672
10680
  rootEl: de,
10673
10681
  oldIndex: ln,
@@ -10676,7 +10684,7 @@ function Ge(e) {
10676
10684
  newDraggableIndex: kt
10677
10685
  }, e));
10678
10686
  }
10679
- var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo = [], Yt, nt, yi, Ci, Ta, Ea, yn, on, Mn, Pn = !1, lo = !1, To, Fe, Ni = [], Xi = !1, Po = [], ni = typeof document < "u", co = Ar, Aa = jn || yt ? "cssFloat" : "float", Uf = ni && !vr && !Ar && "draggable" in document.createElement("div"), kr = function() {
10687
+ var A, Te, K, de, Ht, mo, fe, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo = [], Yt, ot, yi, Ci, Ta, Ea, yn, on, Mn, Pn = !1, lo = !1, To, Fe, Ni = [], Xi = !1, Po = [], ni = typeof document < "u", co = Ar, Aa = jn || yt ? "cssFloat" : "float", Uf = ni && !vr && !Ar && "draggable" in document.createElement("div"), kr = function() {
10680
10688
  if (ni) {
10681
10689
  if (yt)
10682
10690
  return !1;
@@ -10684,7 +10692,7 @@ var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo =
10684
10692
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
10685
10693
  }
10686
10694
  }(), Lr = function(e, t) {
10687
- var n = M(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = mn(e, 0, t), s = mn(e, 1, t), a = i && M(i), l = s && M(s), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + Ce(i).width, _ = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + Ce(s).width;
10695
+ var n = D(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = mn(e, 0, t), s = mn(e, 1, t), a = i && D(i), l = s && D(s), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + ke(i).width, _ = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + ke(s).width;
10688
10696
  if (n.display === "flex")
10689
10697
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
10690
10698
  if (n.display === "grid")
@@ -10702,7 +10710,7 @@ var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo =
10702
10710
  return Mo.some(function(o) {
10703
10711
  var i = o[Qe].options.emptyInsertThreshold;
10704
10712
  if (!(!i || ls(o))) {
10705
- var s = Ce(o), a = e >= s.left - i && e <= s.right + i, l = t >= s.top - i && t <= s.bottom + i;
10713
+ var s = ke(o), a = e >= s.left - i && e <= s.right + i, l = t >= s.top - i && t <= s.bottom + i;
10706
10714
  if (a && l)
10707
10715
  return n = o;
10708
10716
  }
@@ -10728,9 +10736,9 @@ var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo =
10728
10736
  name: o
10729
10737
  }), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
10730
10738
  }, Br = function() {
10731
- !kr && K && M(K, "display", "none");
10739
+ !kr && K && D(K, "display", "none");
10732
10740
  }, Rr = function() {
10733
- !kr && K && M(K, "display", "");
10741
+ !kr && K && D(K, "display", "");
10734
10742
  };
10735
10743
  ni && !vr && document.addEventListener("click", function(e) {
10736
10744
  if (Do)
@@ -10750,7 +10758,7 @@ var Kt = function(e) {
10750
10758
  }, Vf = function(e) {
10751
10759
  A && A.parentNode[Qe]._isOutsideThisEl(e.target);
10752
10760
  };
10753
- function P(e, t) {
10761
+ function M(e, t) {
10754
10762
  if (!(e && e.nodeType && e.nodeType === 1))
10755
10763
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
10756
10764
  this.el = e, this.options = t = bt({}, t), e[Qe] = this;
@@ -10796,7 +10804,7 @@ function P(e, t) {
10796
10804
  x: 0,
10797
10805
  y: 0
10798
10806
  },
10799
- supportPointer: P.supportPointer !== !1 && "PointerEvent" in window && !Bn,
10807
+ supportPointer: M.supportPointer !== !1 && "PointerEvent" in window && !Bn,
10800
10808
  emptyInsertThreshold: 5
10801
10809
  };
10802
10810
  Wn.initializePlugins(this, e, n);
@@ -10807,9 +10815,9 @@ function P(e, t) {
10807
10815
  i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
10808
10816
  this.nativeDraggable = t.forceFallback ? !1 : Uf, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? te(e, "pointerdown", this._onTapStart) : (te(e, "mousedown", this._onTapStart), te(e, "touchstart", this._onTapStart)), this.nativeDraggable && (te(e, "dragover", this), te(e, "dragenter", this)), Mo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, Bf());
10809
10817
  }
10810
- P.prototype = /** @lends Sortable.prototype */
10818
+ M.prototype = /** @lends Sortable.prototype */
10811
10819
  {
10812
- constructor: P,
10820
+ constructor: M,
10813
10821
  _isOutsideThisEl: function(e) {
10814
10822
  !this.el.contains(e) && e !== this.el && (on = null);
10815
10823
  },
@@ -10819,8 +10827,8 @@ P.prototype = /** @lends Sortable.prototype */
10819
10827
  _onTapStart: function(e) {
10820
10828
  if (e.cancelable) {
10821
10829
  var t = this, n = this.el, o = this.options, i = o.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, _ = o.filter;
10822
- if (Wf(n), !A && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Bn && l && l.tagName.toUpperCase() === "SELECT") && (l = ot(l, o.draggable, n, !1), !(l && l.animated) && mo !== l)) {
10823
- if (ln = Ze(l), Dn = Ze(l, o.draggable), typeof _ == "function") {
10830
+ if (Wf(n), !A && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Bn && l && l.tagName.toUpperCase() === "SELECT") && (l = it(l, o.draggable, n, !1), !(l && l.animated) && mo !== l)) {
10831
+ if (ln = et(l), Dn = et(l, o.draggable), typeof _ == "function") {
10824
10832
  if (_.call(this, e, l, this)) {
10825
10833
  Ge({
10826
10834
  sortable: t,
@@ -10835,7 +10843,7 @@ P.prototype = /** @lends Sortable.prototype */
10835
10843
  return;
10836
10844
  }
10837
10845
  } else if (_ && (_ = _.split(",").some(function(d) {
10838
- if (d = ot(c, d.trim(), n, !1), d)
10846
+ if (d = it(c, d.trim(), n, !1), d)
10839
10847
  return Ge({
10840
10848
  sortable: t,
10841
10849
  rootEl: d,
@@ -10850,22 +10858,22 @@ P.prototype = /** @lends Sortable.prototype */
10850
10858
  i && e.cancelable && e.preventDefault();
10851
10859
  return;
10852
10860
  }
10853
- o.handle && !ot(c, o.handle, n, !1) || this._prepareDragStart(e, a, l);
10861
+ o.handle && !it(c, o.handle, n, !1) || this._prepareDragStart(e, a, l);
10854
10862
  }
10855
10863
  }
10856
10864
  },
10857
10865
  _prepareDragStart: function(e, t, n) {
10858
10866
  var o = this, i = o.el, s = o.options, a = i.ownerDocument, l;
10859
10867
  if (n && !A && n.parentNode === i) {
10860
- var c = Ce(n);
10861
- if (de = i, A = n, me = A.parentNode, Ht = A.nextSibling, mo = n, ro = s.group, P.dragged = A, Yt = {
10868
+ var c = ke(n);
10869
+ if (de = i, A = n, Te = A.parentNode, Ht = A.nextSibling, mo = n, ro = s.group, M.dragged = A, Yt = {
10862
10870
  target: A,
10863
10871
  clientX: (t || e).clientX,
10864
10872
  clientY: (t || e).clientY
10865
10873
  }, Ta = Yt.clientX - c.left, Ea = Yt.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, A.style["will-change"] = "all", l = function() {
10866
10874
  if (je("delayEnded", o, {
10867
10875
  evt: e
10868
- }), P.eventCanceled) {
10876
+ }), M.eventCanceled) {
10869
10877
  o._onDrop();
10870
10878
  return;
10871
10879
  }
@@ -10879,7 +10887,7 @@ P.prototype = /** @lends Sortable.prototype */
10879
10887
  }), te(a, "dragover", Kt), te(a, "mousemove", Kt), te(a, "touchmove", Kt), te(a, "mouseup", o._onDrop), te(a, "touchend", o._onDrop), te(a, "touchcancel", o._onDrop), ha && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), je("delayStart", this, {
10880
10888
  evt: e
10881
10889
  }), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(jn || yt))) {
10882
- if (P.eventCanceled) {
10890
+ if (M.eventCanceled) {
10883
10891
  this._onDrop();
10884
10892
  return;
10885
10893
  }
@@ -10897,7 +10905,7 @@ P.prototype = /** @lends Sortable.prototype */
10897
10905
  },
10898
10906
  _disableDelayedDragEvents: function() {
10899
10907
  var e = this.el.ownerDocument;
10900
- Z(e, "mouseup", this._disableDelayedDrag), Z(e, "touchend", this._disableDelayedDrag), Z(e, "touchcancel", this._disableDelayedDrag), Z(e, "mousemove", this._delayedDragTouchMoveHandler), Z(e, "touchmove", this._delayedDragTouchMoveHandler), Z(e, "pointermove", this._delayedDragTouchMoveHandler);
10908
+ ee(e, "mouseup", this._disableDelayedDrag), ee(e, "touchend", this._disableDelayedDrag), ee(e, "touchcancel", this._disableDelayedDrag), ee(e, "mousemove", this._delayedDragTouchMoveHandler), ee(e, "touchmove", this._delayedDragTouchMoveHandler), ee(e, "pointermove", this._delayedDragTouchMoveHandler);
10901
10909
  },
10902
10910
  _triggerDragStart: function(e, t) {
10903
10911
  t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? te(document, "pointermove", this._onTouchMove) : t ? te(document, "touchmove", this._onTouchMove) : te(document, "mousemove", this._onTouchMove) : (te(A, "dragend", this), te(de, "dragstart", this._onDragStart));
@@ -10914,7 +10922,7 @@ P.prototype = /** @lends Sortable.prototype */
10914
10922
  evt: t
10915
10923
  }), this.nativeDraggable && te(document, "dragover", Vf);
10916
10924
  var n = this.options;
10917
- !e && qe(A, n.dragClass, !1), qe(A, n.ghostClass, !0), P.active = this, e && this._appendGhost(), Ge({
10925
+ !e && qe(A, n.dragClass, !1), qe(A, n.ghostClass, !0), M.active = this, e && this._appendGhost(), Ge({
10918
10926
  sortable: this,
10919
10927
  name: "start",
10920
10928
  originalEvent: t
@@ -10923,17 +10931,17 @@ P.prototype = /** @lends Sortable.prototype */
10923
10931
  this._nulling();
10924
10932
  },
10925
10933
  _emulateDragOver: function() {
10926
- if (nt) {
10927
- this._lastX = nt.clientX, this._lastY = nt.clientY, Br();
10928
- for (var e = document.elementFromPoint(nt.clientX, nt.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(nt.clientX, nt.clientY), e !== t); )
10934
+ if (ot) {
10935
+ this._lastX = ot.clientX, this._lastY = ot.clientY, Br();
10936
+ for (var e = document.elementFromPoint(ot.clientX, ot.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ot.clientX, ot.clientY), e !== t); )
10929
10937
  t = e;
10930
10938
  if (A.parentNode[Qe]._isOutsideThisEl(e), t)
10931
10939
  do {
10932
10940
  if (t[Qe]) {
10933
10941
  var n = void 0;
10934
10942
  if (n = t[Qe]._onDragOver({
10935
- clientX: nt.clientX,
10936
- clientY: nt.clientY,
10943
+ clientX: ot.clientX,
10944
+ clientY: ot.clientY,
10937
10945
  target: e,
10938
10946
  rootEl: t
10939
10947
  }), n && !this.options.dragoverBubble)
@@ -10947,7 +10955,7 @@ P.prototype = /** @lends Sortable.prototype */
10947
10955
  _onTouchMove: function(e) {
10948
10956
  if (Yt) {
10949
10957
  var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = K && _n(K, !0), a = K && s && s.a, l = K && s && s.d, c = co && Fe && ma(Fe), _ = (i.clientX - Yt.clientX + o.x) / (a || 1) + (c ? c[0] - Ni[0] : 0) / (a || 1), d = (i.clientY - Yt.clientY + o.y) / (l || 1) + (c ? c[1] - Ni[1] : 0) / (l || 1);
10950
- if (!P.active && !an) {
10958
+ if (!M.active && !an) {
10951
10959
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
10952
10960
  return;
10953
10961
  this._onDragStart(e, !0);
@@ -10962,40 +10970,40 @@ P.prototype = /** @lends Sortable.prototype */
10962
10970
  f: d
10963
10971
  };
10964
10972
  var h = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
10965
- M(K, "webkitTransform", h), M(K, "mozTransform", h), M(K, "msTransform", h), M(K, "transform", h), yi = _, Ci = d, nt = i;
10973
+ D(K, "webkitTransform", h), D(K, "mozTransform", h), D(K, "msTransform", h), D(K, "transform", h), yi = _, Ci = d, ot = i;
10966
10974
  }
10967
10975
  e.cancelable && e.preventDefault();
10968
10976
  }
10969
10977
  },
10970
10978
  _appendGhost: function() {
10971
10979
  if (!K) {
10972
- var e = this.options.fallbackOnBody ? document.body : de, t = Ce(A, !0, co, !0, e), n = this.options;
10980
+ var e = this.options.fallbackOnBody ? document.body : de, t = ke(A, !0, co, !0, e), n = this.options;
10973
10981
  if (co) {
10974
- for (Fe = e; M(Fe, "position") === "static" && M(Fe, "transform") === "none" && Fe !== document; )
10982
+ for (Fe = e; D(Fe, "position") === "static" && D(Fe, "transform") === "none" && Fe !== document; )
10975
10983
  Fe = Fe.parentNode;
10976
10984
  Fe !== document.body && Fe !== document.documentElement ? (Fe === document && (Fe = _t()), t.top += Fe.scrollTop, t.left += Fe.scrollLeft) : Fe = _t(), Ni = ma(Fe);
10977
10985
  }
10978
- K = A.cloneNode(!0), qe(K, n.ghostClass, !1), qe(K, n.fallbackClass, !0), qe(K, n.dragClass, !0), M(K, "transition", ""), M(K, "transform", ""), M(K, "box-sizing", "border-box"), M(K, "margin", 0), M(K, "top", t.top), M(K, "left", t.left), M(K, "width", t.width), M(K, "height", t.height), M(K, "opacity", "0.8"), M(K, "position", co ? "absolute" : "fixed"), M(K, "zIndex", "100000"), M(K, "pointerEvents", "none"), P.ghost = K, e.appendChild(K), M(K, "transform-origin", Ta / parseInt(K.style.width) * 100 + "% " + Ea / parseInt(K.style.height) * 100 + "%");
10986
+ K = A.cloneNode(!0), qe(K, n.ghostClass, !1), qe(K, n.fallbackClass, !0), qe(K, n.dragClass, !0), D(K, "transition", ""), D(K, "transform", ""), D(K, "box-sizing", "border-box"), D(K, "margin", 0), D(K, "top", t.top), D(K, "left", t.left), D(K, "width", t.width), D(K, "height", t.height), D(K, "opacity", "0.8"), D(K, "position", co ? "absolute" : "fixed"), D(K, "zIndex", "100000"), D(K, "pointerEvents", "none"), M.ghost = K, e.appendChild(K), D(K, "transform-origin", Ta / parseInt(K.style.width) * 100 + "% " + Ea / parseInt(K.style.height) * 100 + "%");
10979
10987
  }
10980
10988
  },
10981
10989
  _onDragStart: function(e, t) {
10982
10990
  var n = this, o = e.dataTransfer, i = n.options;
10983
10991
  if (je("dragStart", this, {
10984
10992
  evt: e
10985
- }), P.eventCanceled) {
10993
+ }), M.eventCanceled) {
10986
10994
  this._onDrop();
10987
10995
  return;
10988
10996
  }
10989
- je("setupClone", this), P.eventCanceled || (he = Cr(A), he.removeAttribute("id"), he.draggable = !1, he.style["will-change"] = "", this._hideClone(), qe(he, this.options.chosenClass, !1), P.clone = he), n.cloneId = Eo(function() {
10990
- je("clone", n), !P.eventCanceled && (n.options.removeCloneOnHide || de.insertBefore(he, A), n._hideClone(), Ge({
10997
+ je("setupClone", this), M.eventCanceled || (fe = Cr(A), fe.removeAttribute("id"), fe.draggable = !1, fe.style["will-change"] = "", this._hideClone(), qe(fe, this.options.chosenClass, !1), M.clone = fe), n.cloneId = Eo(function() {
10998
+ je("clone", n), !M.eventCanceled && (n.options.removeCloneOnHide || de.insertBefore(fe, A), n._hideClone(), Ge({
10991
10999
  sortable: n,
10992
11000
  name: "clone"
10993
11001
  }));
10994
- }), !t && qe(A, i.dragClass, !0), t ? (Do = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Z(document, "mouseup", n._onDrop), Z(document, "touchend", n._onDrop), Z(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), te(document, "drop", n), M(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), te(document, "selectstart", n), yn = !0, Bn && M(document.body, "user-select", "none");
11002
+ }), !t && qe(A, i.dragClass, !0), t ? (Do = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (ee(document, "mouseup", n._onDrop), ee(document, "touchend", n._onDrop), ee(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, A)), te(document, "drop", n), D(A, "transform", "translateZ(0)")), an = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), te(document, "selectstart", n), yn = !0, Bn && D(document.body, "user-select", "none");
10995
11003
  },
10996
11004
  // Returns true - if no further action is needed (either inserted or another condition)
10997
11005
  _onDragOver: function(e) {
10998
- var t = this.el, n = e.target, o, i, s, a = this.options, l = a.group, c = P.active, _ = ro === l, d = a.sort, h = Ue || c, g, m = this, I = !1;
11006
+ var t = this.el, n = e.target, o, i, s, a = this.options, l = a.group, c = M.active, _ = ro === l, d = a.sort, h = Ue || c, g, m = this, I = !1;
10999
11007
  if (Xi)
11000
11008
  return;
11001
11009
  function O(Me, re) {
@@ -11009,25 +11017,25 @@ P.prototype = /** @lends Sortable.prototype */
11009
11017
  canSort: d,
11010
11018
  fromSortable: h,
11011
11019
  target: n,
11012
- completed: D,
11020
+ completed: j,
11013
11021
  onMove: function(Xe, gt) {
11014
- return uo(de, t, A, o, Xe, Ce(Xe), e, gt);
11022
+ return uo(de, t, A, o, Xe, ke(Xe), e, gt);
11015
11023
  },
11016
- changed: j
11024
+ changed: U
11017
11025
  }, re));
11018
11026
  }
11019
11027
  function G() {
11020
11028
  O("dragOverAnimationCapture"), m.captureAnimationState(), m !== h && h.captureAnimationState();
11021
11029
  }
11022
- function D(Me) {
11030
+ function j(Me) {
11023
11031
  return O("dragOverCompleted", {
11024
11032
  insertion: Me
11025
- }), Me && (_ ? c._hideClone() : c._showClone(m), m !== h && (qe(A, Ue ? Ue.options.ghostClass : c.options.ghostClass, !1), qe(A, a.ghostClass, !0)), Ue !== m && m !== P.active ? Ue = m : m === P.active && Ue && (Ue = null), h === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
11033
+ }), Me && (_ ? c._hideClone() : c._showClone(m), m !== h && (qe(A, Ue ? Ue.options.ghostClass : c.options.ghostClass, !1), qe(A, a.ghostClass, !0)), Ue !== m && m !== M.active ? Ue = m : m === M.active && Ue && (Ue = null), h === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
11026
11034
  O("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
11027
11035
  }), m !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (on = null), !a.dragoverBubble && !e.rootEl && n !== document && (A.parentNode[Qe]._isOutsideThisEl(e.target), !Me && Kt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), I = !0;
11028
11036
  }
11029
- function j() {
11030
- Je = Ze(A), kt = Ze(A, a.draggable), Ge({
11037
+ function U() {
11038
+ Je = et(A), kt = et(A, a.draggable), Ge({
11031
11039
  sortable: m,
11032
11040
  name: "change",
11033
11041
  toEl: t,
@@ -11036,116 +11044,116 @@ P.prototype = /** @lends Sortable.prototype */
11036
11044
  originalEvent: e
11037
11045
  });
11038
11046
  }
11039
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ot(n, a.draggable, t, !0), O("dragOver"), P.eventCanceled)
11047
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = it(n, a.draggable, t, !0), O("dragOver"), M.eventCanceled)
11040
11048
  return I;
11041
11049
  if (A.contains(e.target) || n.animated && n.animatingX && n.animatingY || m._ignoreWhileAnimating === n)
11042
- return D(!1);
11043
- if (Do = !1, c && !a.disabled && (_ ? d || (s = me !== de) : Ue === this || (this.lastPutMode = ro.checkPull(this, c, A, e)) && l.checkPut(this, c, A, e))) {
11044
- if (g = this._getDirection(e, n) === "vertical", o = Ce(A), O("dragOverValid"), P.eventCanceled)
11050
+ return j(!1);
11051
+ if (Do = !1, c && !a.disabled && (_ ? d || (s = Te !== de) : Ue === this || (this.lastPutMode = ro.checkPull(this, c, A, e)) && l.checkPut(this, c, A, e))) {
11052
+ if (g = this._getDirection(e, n) === "vertical", o = ke(A), O("dragOverValid"), M.eventCanceled)
11045
11053
  return I;
11046
11054
  if (s)
11047
- return me = de, G(), this._hideClone(), O("revert"), P.eventCanceled || (Ht ? de.insertBefore(A, Ht) : de.appendChild(A)), D(!0);
11048
- var ee = ls(t, a.draggable);
11049
- if (!ee || Hf(e, g, this) && !ee.animated) {
11050
- if (ee === A)
11051
- return D(!1);
11052
- if (ee && t === e.target && (n = ee), n && (i = Ce(n)), uo(de, t, A, o, n, i, e, !!n) !== !1)
11053
- return G(), ee && ee.nextSibling ? t.insertBefore(A, ee.nextSibling) : t.appendChild(A), me = t, j(), D(!0);
11054
- } else if (ee && Kf(e, g, this)) {
11055
- var fe = mn(t, 0, a, !0);
11056
- if (fe === A)
11057
- return D(!1);
11058
- if (n = fe, i = Ce(n), uo(de, t, A, o, n, i, e, !1) !== !1)
11059
- return G(), t.insertBefore(A, fe), me = t, j(), D(!0);
11055
+ return Te = de, G(), this._hideClone(), O("revert"), M.eventCanceled || (Ht ? de.insertBefore(A, Ht) : de.appendChild(A)), j(!0);
11056
+ var J = ls(t, a.draggable);
11057
+ if (!J || Hf(e, g, this) && !J.animated) {
11058
+ if (J === A)
11059
+ return j(!1);
11060
+ if (J && t === e.target && (n = J), n && (i = ke(n)), uo(de, t, A, o, n, i, e, !!n) !== !1)
11061
+ return G(), J && J.nextSibling ? t.insertBefore(A, J.nextSibling) : t.appendChild(A), Te = t, U(), j(!0);
11062
+ } else if (J && Kf(e, g, this)) {
11063
+ var ge = mn(t, 0, a, !0);
11064
+ if (ge === A)
11065
+ return j(!1);
11066
+ if (n = ge, i = ke(n), uo(de, t, A, o, n, i, e, !1) !== !1)
11067
+ return G(), t.insertBefore(A, ge), Te = t, U(), j(!0);
11060
11068
  } else if (n.parentNode === t) {
11061
- i = Ce(n);
11062
- var J = 0, ke, $e = A.parentNode !== t, B = !xf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", ie = ga(n, "top", "top") || ga(A, "top", "top"), ge = ie ? ie.scrollTop : void 0;
11063
- on !== n && (ke = i[F], Pn = !1, lo = !B && a.invertSwap || $e), J = $f(e, n, i, g, B ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
11064
- var Q;
11065
- if (J !== 0) {
11066
- var se = Ze(A);
11069
+ i = ke(n);
11070
+ var Q = 0, Le, $e = A.parentNode !== t, B = !xf(A.animated && A.toRect || o, n.animated && n.toRect || i, g), F = g ? "top" : "left", ie = ga(n, "top", "top") || ga(A, "top", "top"), me = ie ? ie.scrollTop : void 0;
11071
+ on !== n && (Le = i[F], Pn = !1, lo = !B && a.invertSwap || $e), Q = $f(e, n, i, g, B ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, lo, on === n);
11072
+ var Z;
11073
+ if (Q !== 0) {
11074
+ var se = et(A);
11067
11075
  do
11068
- se -= J, Q = me.children[se];
11069
- while (Q && (M(Q, "display") === "none" || Q === K));
11076
+ se -= Q, Z = Te.children[se];
11077
+ while (Z && (D(Z, "display") === "none" || Z === K));
11070
11078
  }
11071
- if (J === 0 || Q === n)
11072
- return D(!1);
11073
- on = n, Mn = J;
11079
+ if (Q === 0 || Z === n)
11080
+ return j(!1);
11081
+ on = n, Mn = Q;
11074
11082
  var oe = n.nextElementSibling, R = !1;
11075
- R = J === 1;
11083
+ R = Q === 1;
11076
11084
  var ae = uo(de, t, A, o, n, i, e, R);
11077
11085
  if (ae !== !1)
11078
- return (ae === 1 || ae === -1) && (R = ae === 1), Xi = !0, setTimeout(Yf, 30), G(), R && !oe ? t.appendChild(A) : n.parentNode.insertBefore(A, R ? oe : n), ie && yr(ie, 0, ge - ie.scrollTop), me = A.parentNode, ke !== void 0 && !lo && (To = Math.abs(ke - Ce(n)[F])), j(), D(!0);
11086
+ return (ae === 1 || ae === -1) && (R = ae === 1), Xi = !0, setTimeout(Yf, 30), G(), R && !oe ? t.appendChild(A) : n.parentNode.insertBefore(A, R ? oe : n), ie && yr(ie, 0, me - ie.scrollTop), Te = A.parentNode, Le !== void 0 && !lo && (To = Math.abs(Le - ke(n)[F])), U(), j(!0);
11079
11087
  }
11080
11088
  if (t.contains(A))
11081
- return D(!1);
11089
+ return j(!1);
11082
11090
  }
11083
11091
  return !1;
11084
11092
  },
11085
11093
  _ignoreWhileAnimating: null,
11086
11094
  _offMoveEvents: function() {
11087
- Z(document, "mousemove", this._onTouchMove), Z(document, "touchmove", this._onTouchMove), Z(document, "pointermove", this._onTouchMove), Z(document, "dragover", Kt), Z(document, "mousemove", Kt), Z(document, "touchmove", Kt);
11095
+ ee(document, "mousemove", this._onTouchMove), ee(document, "touchmove", this._onTouchMove), ee(document, "pointermove", this._onTouchMove), ee(document, "dragover", Kt), ee(document, "mousemove", Kt), ee(document, "touchmove", Kt);
11088
11096
  },
11089
11097
  _offUpEvents: function() {
11090
11098
  var e = this.el.ownerDocument;
11091
- Z(e, "mouseup", this._onDrop), Z(e, "touchend", this._onDrop), Z(e, "pointerup", this._onDrop), Z(e, "touchcancel", this._onDrop), Z(document, "selectstart", this);
11099
+ ee(e, "mouseup", this._onDrop), ee(e, "touchend", this._onDrop), ee(e, "pointerup", this._onDrop), ee(e, "touchcancel", this._onDrop), ee(document, "selectstart", this);
11092
11100
  },
11093
11101
  _onDrop: function(e) {
11094
11102
  var t = this.el, n = this.options;
11095
- if (Je = Ze(A), kt = Ze(A, n.draggable), je("drop", this, {
11103
+ if (Je = et(A), kt = et(A, n.draggable), je("drop", this, {
11096
11104
  evt: e
11097
- }), me = A && A.parentNode, Je = Ze(A), kt = Ze(A, n.draggable), P.eventCanceled) {
11105
+ }), Te = A && A.parentNode, Je = et(A), kt = et(A, n.draggable), M.eventCanceled) {
11098
11106
  this._nulling();
11099
11107
  return;
11100
11108
  }
11101
- an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (Z(document, "drop", this), Z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Bn && M(document.body, "user-select", ""), M(A, "transform", ""), e && (yn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (de === me || Ue && Ue.lastPutMode !== "clone") && he && he.parentNode && he.parentNode.removeChild(he), A && (this.nativeDraggable && Z(A, "dragend", this), ki(A), A.style["will-change"] = "", yn && !an && qe(A, Ue ? Ue.options.ghostClass : this.options.ghostClass, !1), qe(A, this.options.chosenClass, !1), Ge({
11109
+ an = !1, lo = !1, Pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zi(this.cloneId), zi(this._dragStartId), this.nativeDraggable && (ee(document, "drop", this), ee(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Bn && D(document.body, "user-select", ""), D(A, "transform", ""), e && (yn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (de === Te || Ue && Ue.lastPutMode !== "clone") && fe && fe.parentNode && fe.parentNode.removeChild(fe), A && (this.nativeDraggable && ee(A, "dragend", this), ki(A), A.style["will-change"] = "", yn && !an && qe(A, Ue ? Ue.options.ghostClass : this.options.ghostClass, !1), qe(A, this.options.chosenClass, !1), Ge({
11102
11110
  sortable: this,
11103
11111
  name: "unchoose",
11104
- toEl: me,
11112
+ toEl: Te,
11105
11113
  newIndex: null,
11106
11114
  newDraggableIndex: null,
11107
11115
  originalEvent: e
11108
- }), de !== me ? (Je >= 0 && (Ge({
11109
- rootEl: me,
11116
+ }), de !== Te ? (Je >= 0 && (Ge({
11117
+ rootEl: Te,
11110
11118
  name: "add",
11111
- toEl: me,
11119
+ toEl: Te,
11112
11120
  fromEl: de,
11113
11121
  originalEvent: e
11114
11122
  }), Ge({
11115
11123
  sortable: this,
11116
11124
  name: "remove",
11117
- toEl: me,
11125
+ toEl: Te,
11118
11126
  originalEvent: e
11119
11127
  }), Ge({
11120
- rootEl: me,
11128
+ rootEl: Te,
11121
11129
  name: "sort",
11122
- toEl: me,
11130
+ toEl: Te,
11123
11131
  fromEl: de,
11124
11132
  originalEvent: e
11125
11133
  }), Ge({
11126
11134
  sortable: this,
11127
11135
  name: "sort",
11128
- toEl: me,
11136
+ toEl: Te,
11129
11137
  originalEvent: e
11130
11138
  })), Ue && Ue.save()) : Je !== ln && Je >= 0 && (Ge({
11131
11139
  sortable: this,
11132
11140
  name: "update",
11133
- toEl: me,
11141
+ toEl: Te,
11134
11142
  originalEvent: e
11135
11143
  }), Ge({
11136
11144
  sortable: this,
11137
11145
  name: "sort",
11138
- toEl: me,
11146
+ toEl: Te,
11139
11147
  originalEvent: e
11140
- })), P.active && ((Je == null || Je === -1) && (Je = ln, kt = Dn), Ge({
11148
+ })), M.active && ((Je == null || Je === -1) && (Je = ln, kt = Dn), Ge({
11141
11149
  sortable: this,
11142
11150
  name: "end",
11143
- toEl: me,
11151
+ toEl: Te,
11144
11152
  originalEvent: e
11145
11153
  }), this.save()))), this._nulling();
11146
11154
  },
11147
11155
  _nulling: function() {
11148
- je("nulling", this), de = A = me = K = Ht = he = mo = St = Yt = nt = yn = Je = kt = ln = Dn = on = Mn = Ue = ro = P.dragged = P.ghost = P.clone = P.active = null, Po.forEach(function(e) {
11156
+ je("nulling", this), de = A = Te = K = Ht = fe = mo = St = Yt = ot = yn = Je = kt = ln = Dn = on = Mn = Ue = ro = M.dragged = M.ghost = M.clone = M.active = null, Po.forEach(function(e) {
11149
11157
  e.checked = !0;
11150
11158
  }), Po.length = yi = Ci = 0;
11151
11159
  },
@@ -11170,7 +11178,7 @@ P.prototype = /** @lends Sortable.prototype */
11170
11178
  */
11171
11179
  toArray: function() {
11172
11180
  for (var e = [], t, n = this.el.children, o = 0, i = n.length, s = this.options; o < i; o++)
11173
- t = n[o], ot(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || jf(t));
11181
+ t = n[o], it(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || jf(t));
11174
11182
  return e;
11175
11183
  },
11176
11184
  /**
@@ -11181,7 +11189,7 @@ P.prototype = /** @lends Sortable.prototype */
11181
11189
  var n = {}, o = this.el;
11182
11190
  this.toArray().forEach(function(i, s) {
11183
11191
  var a = o.children[s];
11184
- ot(a, this.options.draggable, o, !1) && (n[i] = a);
11192
+ it(a, this.options.draggable, o, !1) && (n[i] = a);
11185
11193
  }, this), t && this.captureAnimationState(), e.forEach(function(i) {
11186
11194
  n[i] && (o.removeChild(n[i]), o.appendChild(n[i]));
11187
11195
  }), t && this.animateAll();
@@ -11200,7 +11208,7 @@ P.prototype = /** @lends Sortable.prototype */
11200
11208
  * @returns {HTMLElement|null}
11201
11209
  */
11202
11210
  closest: function(e, t) {
11203
- return ot(e, t || this.options.draggable, this.el, !1);
11211
+ return it(e, t || this.options.draggable, this.el, !1);
11204
11212
  },
11205
11213
  /**
11206
11214
  * Set/get option
@@ -11221,15 +11229,15 @@ P.prototype = /** @lends Sortable.prototype */
11221
11229
  destroy: function() {
11222
11230
  je("destroy", this);
11223
11231
  var e = this.el;
11224
- e[Qe] = null, Z(e, "mousedown", this._onTapStart), Z(e, "touchstart", this._onTapStart), Z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Z(e, "dragover", this), Z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
11232
+ e[Qe] = null, ee(e, "mousedown", this._onTapStart), ee(e, "touchstart", this._onTapStart), ee(e, "pointerdown", this._onTapStart), this.nativeDraggable && (ee(e, "dragover", this), ee(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
11225
11233
  t.removeAttribute("draggable");
11226
11234
  }), this._onDrop(), this._disableDelayedDragEvents(), Mo.splice(Mo.indexOf(this.el), 1), this.el = e = null;
11227
11235
  },
11228
11236
  _hideClone: function() {
11229
11237
  if (!St) {
11230
- if (je("hideClone", this), P.eventCanceled)
11238
+ if (je("hideClone", this), M.eventCanceled)
11231
11239
  return;
11232
- M(he, "display", "none"), this.options.removeCloneOnHide && he.parentNode && he.parentNode.removeChild(he), St = !0;
11240
+ D(fe, "display", "none"), this.options.removeCloneOnHide && fe.parentNode && fe.parentNode.removeChild(fe), St = !0;
11233
11241
  }
11234
11242
  },
11235
11243
  _showClone: function(e) {
@@ -11238,9 +11246,9 @@ P.prototype = /** @lends Sortable.prototype */
11238
11246
  return;
11239
11247
  }
11240
11248
  if (St) {
11241
- if (je("showClone", this), P.eventCanceled)
11249
+ if (je("showClone", this), M.eventCanceled)
11242
11250
  return;
11243
- A.parentNode == de && !this.options.group.revertClone ? de.insertBefore(he, A) : Ht ? de.insertBefore(he, Ht) : de.appendChild(he), this.options.group.revertClone && this.animate(A, he), M(he, "display", ""), St = !1;
11251
+ A.parentNode == de && !this.options.group.revertClone ? de.insertBefore(fe, A) : Ht ? de.insertBefore(fe, Ht) : de.appendChild(fe), this.options.group.revertClone && this.animate(A, fe), D(fe, "display", ""), St = !1;
11244
11252
  }
11245
11253
  }
11246
11254
  };
@@ -11252,7 +11260,7 @@ function uo(e, t, n, o, i, s, a, l) {
11252
11260
  return window.CustomEvent && !yt && !jn ? c = new CustomEvent("move", {
11253
11261
  bubbles: !0,
11254
11262
  cancelable: !0
11255
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = i || t, c.relatedRect = s || Ce(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), d && (h = d.call(_, c, a)), h;
11263
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = i || t, c.relatedRect = s || ke(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), d && (h = d.call(_, c, a)), h;
11256
11264
  }
11257
11265
  function ki(e) {
11258
11266
  e.draggable = !1;
@@ -11261,11 +11269,11 @@ function Yf() {
11261
11269
  Xi = !1;
11262
11270
  }
11263
11271
  function Kf(e, t, n) {
11264
- var o = Ce(mn(n.el, 0, n.options, !0)), i = Nr(n.el, n.options, K), s = 10;
11272
+ var o = ke(mn(n.el, 0, n.options, !0)), i = Nr(n.el, n.options, K), s = 10;
11265
11273
  return t ? e.clientX < i.left - s || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - s || e.clientY < o.bottom && e.clientX < o.left;
11266
11274
  }
11267
11275
  function Hf(e, t, n) {
11268
- var o = Ce(ls(n.el, n.options.draggable)), i = Nr(n.el, n.options, K), s = 10;
11276
+ var o = ke(ls(n.el, n.options.draggable)), i = Nr(n.el, n.options, K), s = 10;
11269
11277
  return t ? e.clientX > i.right + s || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + s || e.clientX > o.right && e.clientY > o.top;
11270
11278
  }
11271
11279
  function $f(e, t, n, o, i, s, a, l) {
@@ -11282,7 +11290,7 @@ function $f(e, t, n, o, i, s, a, l) {
11282
11290
  return g = g || a, g && (c < d + _ * s / 2 || c > h - _ * s / 2) ? c > d + _ / 2 ? 1 : -1 : 0;
11283
11291
  }
11284
11292
  function Gf(e) {
11285
- return Ze(A) < Ze(e) ? 1 : -1;
11293
+ return et(A) < et(e) ? 1 : -1;
11286
11294
  }
11287
11295
  function jf(e) {
11288
11296
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
@@ -11303,44 +11311,44 @@ function zi(e) {
11303
11311
  return clearTimeout(e);
11304
11312
  }
11305
11313
  ni && te(document, "touchmove", function(e) {
11306
- (P.active || an) && e.cancelable && e.preventDefault();
11314
+ (M.active || an) && e.cancelable && e.preventDefault();
11307
11315
  });
11308
- P.utils = {
11316
+ M.utils = {
11309
11317
  on: te,
11310
- off: Z,
11311
- css: M,
11318
+ off: ee,
11319
+ css: D,
11312
11320
  find: br,
11313
11321
  is: function(e, t) {
11314
- return !!ot(e, t, e, !1);
11322
+ return !!it(e, t, e, !1);
11315
11323
  },
11316
11324
  extend: Lf,
11317
11325
  throttle: Ir,
11318
- closest: ot,
11326
+ closest: it,
11319
11327
  toggleClass: qe,
11320
11328
  clone: Cr,
11321
- index: Ze,
11329
+ index: et,
11322
11330
  nextTick: Eo,
11323
11331
  cancelNextTick: zi,
11324
11332
  detectDirection: Lr,
11325
11333
  getChild: mn
11326
11334
  };
11327
- P.get = function(e) {
11335
+ M.get = function(e) {
11328
11336
  return e[Qe];
11329
11337
  };
11330
- P.mount = function() {
11338
+ M.mount = function() {
11331
11339
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
11332
11340
  t[n] = arguments[n];
11333
11341
  t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
11334
11342
  if (!o.prototype || !o.prototype.constructor)
11335
11343
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
11336
- o.utils && (P.utils = dt(dt({}, P.utils), o.utils)), Wn.mount(o);
11344
+ o.utils && (M.utils = dt(dt({}, M.utils), o.utils)), Wn.mount(o);
11337
11345
  });
11338
11346
  };
11339
- P.create = function(e, t) {
11340
- return new P(e, t);
11347
+ M.create = function(e, t) {
11348
+ return new M(e, t);
11341
11349
  };
11342
- P.version = Cf;
11343
- var ye = [], Cn, qi, Ji = !1, Li, Si, Uo, Nn;
11350
+ M.version = Cf;
11351
+ var Ne = [], Cn, qi, Ji = !1, Li, Si, Uo, Nn;
11344
11352
  function Xf() {
11345
11353
  function e() {
11346
11354
  this.defaults = {
@@ -11363,10 +11371,10 @@ function Xf() {
11363
11371
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
11364
11372
  },
11365
11373
  drop: function() {
11366
- this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), va(), Ao(), Sf();
11374
+ this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), va(), Ao(), Sf();
11367
11375
  },
11368
11376
  nulling: function() {
11369
- Uo = qi = Cn = Ji = Nn = Li = Si = null, ye.length = 0;
11377
+ Uo = qi = Cn = Ji = Nn = Li = Si = null, Ne.length = 0;
11370
11378
  },
11371
11379
  _handleFallbackAutoScroll: function(t) {
11372
11380
  this._handleAutoScroll(t, !0);
@@ -11394,9 +11402,9 @@ function Xf() {
11394
11402
  });
11395
11403
  }
11396
11404
  function Ao() {
11397
- ye.forEach(function(e) {
11405
+ Ne.forEach(function(e) {
11398
11406
  clearInterval(e.pid);
11399
- }), ye = [];
11407
+ }), Ne = [];
11400
11408
  }
11401
11409
  function va() {
11402
11410
  clearInterval(Nn);
@@ -11407,16 +11415,16 @@ var Bi = Ir(function(e, t, n, o) {
11407
11415
  qi !== n && (qi = n, Ao(), Cn = t.scroll, d = t.scrollFn, Cn === !0 && (Cn = Dt(n, !0)));
11408
11416
  var h = 0, g = Cn;
11409
11417
  do {
11410
- var m = g, I = Ce(m), O = I.top, G = I.bottom, D = I.left, j = I.right, ee = I.width, fe = I.height, J = void 0, ke = void 0, $e = m.scrollWidth, B = m.scrollHeight, F = M(m), ie = m.scrollLeft, ge = m.scrollTop;
11411
- m === c ? (J = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), ke = fe < B && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (J = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), ke = fe < B && (F.overflowY === "auto" || F.overflowY === "scroll"));
11412
- var Q = J && (Math.abs(j - i) <= a && ie + ee < $e) - (Math.abs(D - i) <= a && !!ie), se = ke && (Math.abs(G - s) <= a && ge + fe < B) - (Math.abs(O - s) <= a && !!ge);
11413
- if (!ye[h])
11418
+ var m = g, I = ke(m), O = I.top, G = I.bottom, j = I.left, U = I.right, J = I.width, ge = I.height, Q = void 0, Le = void 0, $e = m.scrollWidth, B = m.scrollHeight, F = D(m), ie = m.scrollLeft, me = m.scrollTop;
11419
+ m === c ? (Q = J < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), Le = ge < B && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (Q = J < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), Le = ge < B && (F.overflowY === "auto" || F.overflowY === "scroll"));
11420
+ var Z = Q && (Math.abs(U - i) <= a && ie + J < $e) - (Math.abs(j - i) <= a && !!ie), se = Le && (Math.abs(G - s) <= a && me + ge < B) - (Math.abs(O - s) <= a && !!me);
11421
+ if (!Ne[h])
11414
11422
  for (var oe = 0; oe <= h; oe++)
11415
- ye[oe] || (ye[oe] = {});
11416
- (ye[h].vx != Q || ye[h].vy != se || ye[h].el !== m) && (ye[h].el = m, ye[h].vx = Q, ye[h].vy = se, clearInterval(ye[h].pid), (Q != 0 || se != 0) && (_ = !0, ye[h].pid = setInterval((function() {
11417
- o && this.layer === 0 && P.active._onTouchMove(Uo);
11418
- var R = ye[this.layer].vy ? ye[this.layer].vy * l : 0, ae = ye[this.layer].vx ? ye[this.layer].vx * l : 0;
11419
- typeof d == "function" && d.call(P.dragged.parentNode[Qe], ae, R, e, Uo, ye[this.layer].el) !== "continue" || yr(ye[this.layer].el, ae, R);
11423
+ Ne[oe] || (Ne[oe] = {});
11424
+ (Ne[h].vx != Z || Ne[h].vy != se || Ne[h].el !== m) && (Ne[h].el = m, Ne[h].vx = Z, Ne[h].vy = se, clearInterval(Ne[h].pid), (Z != 0 || se != 0) && (_ = !0, Ne[h].pid = setInterval((function() {
11425
+ o && this.layer === 0 && M.active._onTouchMove(Uo);
11426
+ var R = Ne[this.layer].vy ? Ne[this.layer].vy * l : 0, ae = Ne[this.layer].vx ? Ne[this.layer].vx * l : 0;
11427
+ typeof d == "function" && d.call(M.dragged.parentNode[Qe], ae, R, e, Uo, Ne[this.layer].el) !== "continue" || yr(Ne[this.layer].el, ae, R);
11420
11428
  }).bind({
11421
11429
  layer: h
11422
11430
  }), 24))), h++;
@@ -11466,8 +11474,8 @@ us.prototype = {
11466
11474
  bt(us, {
11467
11475
  pluginName: "removeOnSpill"
11468
11476
  });
11469
- P.mount(new Xf());
11470
- P.mount(us, cs);
11477
+ M.mount(new Xf());
11478
+ M.mount(us, cs);
11471
11479
  function zf(e) {
11472
11480
  return e == null ? e : JSON.parse(JSON.stringify(e));
11473
11481
  }
@@ -11503,10 +11511,10 @@ function Zf(...e) {
11503
11511
  } = (n = X(l)) != null ? n : {};
11504
11512
  function g(B) {
11505
11513
  var F;
11506
- const { from: ie, oldIndex: ge, item: Q } = B;
11514
+ const { from: ie, oldIndex: me, item: Z } = B;
11507
11515
  i = Array.from(ie.childNodes);
11508
- const se = X((F = X(a)) == null ? void 0 : F[ge]), oe = d(se);
11509
- Oa(se, oe), Q[ba] = oe;
11516
+ const se = X((F = X(a)) == null ? void 0 : F[me]), oe = d(se);
11517
+ Oa(se, oe), Z[ba] = oe;
11510
11518
  }
11511
11519
  function m(B) {
11512
11520
  const F = B.item[ba];
@@ -11520,47 +11528,47 @@ function Zf(...e) {
11520
11528
  }
11521
11529
  }
11522
11530
  function I(B) {
11523
- const { from: F, item: ie, oldIndex: ge, oldDraggableIndex: Q, pullMode: se, clone: oe } = B;
11524
- if (pa(F, ie, ge), se === "clone") {
11531
+ const { from: F, item: ie, oldIndex: me, oldDraggableIndex: Z, pullMode: se, clone: oe } = B;
11532
+ if (pa(F, ie, me), se === "clone") {
11525
11533
  Oi(oe);
11526
11534
  return;
11527
11535
  }
11528
11536
  if (kn(a)) {
11529
11537
  const R = [...X(a)];
11530
- a.value = ca(R, Q);
11538
+ a.value = ca(R, Z);
11531
11539
  return;
11532
11540
  }
11533
- ca(X(a), Q);
11541
+ ca(X(a), Z);
11534
11542
  }
11535
11543
  function O(B) {
11536
11544
  if (h) {
11537
11545
  h(B);
11538
11546
  return;
11539
11547
  }
11540
- const { from: F, item: ie, oldIndex: ge, oldDraggableIndex: Q, newDraggableIndex: se } = B;
11541
- if (Oi(ie), pa(F, ie, ge), kn(a)) {
11548
+ const { from: F, item: ie, oldIndex: me, oldDraggableIndex: Z, newDraggableIndex: se } = B;
11549
+ if (Oi(ie), pa(F, ie, me), kn(a)) {
11542
11550
  const oe = [...X(a)];
11543
11551
  a.value = la(
11544
11552
  oe,
11545
- Q,
11553
+ Z,
11546
11554
  se
11547
11555
  );
11548
11556
  return;
11549
11557
  }
11550
- la(X(a), Q, se);
11558
+ la(X(a), Z, se);
11551
11559
  }
11552
11560
  function G(B) {
11553
- const { newIndex: F, oldIndex: ie, from: ge, to: Q } = B;
11561
+ const { newIndex: F, oldIndex: ie, from: me, to: Z } = B;
11554
11562
  let se = null;
11555
- const oe = F === ie && ge === Q;
11563
+ const oe = F === ie && me === Z;
11556
11564
  try {
11557
11565
  if (oe) {
11558
11566
  let R = null;
11559
11567
  i == null || i.some((ae, Me) => {
11560
- if (R && (i == null ? void 0 : i.length) !== Q.childNodes.length)
11561
- return ge.insertBefore(R, ae.nextSibling), !0;
11562
- const re = Q.childNodes[Me];
11563
- R = Q == null ? void 0 : Q.replaceChild(ae, re);
11568
+ if (R && (i == null ? void 0 : i.length) !== Z.childNodes.length)
11569
+ return me.insertBefore(R, ae.nextSibling), !0;
11570
+ const re = Z.childNodes[Me];
11571
+ R = Z == null ? void 0 : Z.replaceChild(ae, re);
11564
11572
  });
11565
11573
  }
11566
11574
  } catch (R) {
@@ -11573,43 +11581,43 @@ function Zf(...e) {
11573
11581
  throw se;
11574
11582
  });
11575
11583
  }
11576
- const D = {
11584
+ const j = {
11577
11585
  onUpdate: O,
11578
11586
  onStart: g,
11579
11587
  onAdd: m,
11580
11588
  onRemove: I,
11581
11589
  onEnd: G
11582
11590
  };
11583
- function j(B) {
11591
+ function U(B) {
11584
11592
  const F = X(s);
11585
11593
  return B || (B = gf(F) ? mf(F, o == null ? void 0 : o.$el) : F), B && !Af(B) && (B = B.$el), B || _f("Root element not found"), B;
11586
11594
  }
11587
- function ee() {
11595
+ function J() {
11588
11596
  var B;
11589
- const F = (B = X(l)) != null ? B : {}, { immediate: ie, clone: ge } = F, Q = Tr(F, ["immediate", "clone"]);
11590
- return _a(Q, (se, oe) => {
11591
- vf(se) && (Q[se] = (R, ...ae) => {
11597
+ const F = (B = X(l)) != null ? B : {}, { immediate: ie, clone: me } = F, Z = Tr(F, ["immediate", "clone"]);
11598
+ return _a(Z, (se, oe) => {
11599
+ vf(se) && (Z[se] = (R, ...ae) => {
11592
11600
  const Me = Qf();
11593
11601
  return Of(R, Me), oe(R, ...ae);
11594
11602
  });
11595
11603
  }), Ef(
11596
- a === null ? {} : D,
11597
- Q
11604
+ a === null ? {} : j,
11605
+ Z
11598
11606
  );
11599
11607
  }
11600
- const fe = (B) => {
11601
- B = j(B), c && J.destroy(), c = new P(B, ee());
11608
+ const ge = (B) => {
11609
+ B = U(B), c && Q.destroy(), c = new M(B, J());
11602
11610
  };
11603
11611
  Lt(
11604
11612
  () => l,
11605
11613
  () => {
11606
- c && _a(ee(), (B, F) => {
11614
+ c && _a(J(), (B, F) => {
11607
11615
  c == null || c.option(B, F);
11608
11616
  });
11609
11617
  },
11610
11618
  { deep: !0 }
11611
11619
  );
11612
- const J = {
11620
+ const Q = {
11613
11621
  option: (B, F) => c == null ? void 0 : c.option(B, F),
11614
11622
  destroy: () => {
11615
11623
  c == null || c.destroy(), c = null;
@@ -11617,10 +11625,10 @@ function Zf(...e) {
11617
11625
  save: () => c == null ? void 0 : c.save(),
11618
11626
  toArray: () => c == null ? void 0 : c.toArray(),
11619
11627
  closest: (...B) => c == null ? void 0 : c.closest(...B)
11620
- }, ke = () => J == null ? void 0 : J.option("disabled", !0), $e = () => J == null ? void 0 : J.option("disabled", !1);
11628
+ }, Le = () => Q == null ? void 0 : Q.option("disabled", !0), $e = () => Q == null ? void 0 : Q.option("disabled", !1);
11621
11629
  return Jf(() => {
11622
- _ && fe();
11623
- }), qf(J.destroy), rn({ start: fe, pause: ke, resume: $e }, J);
11630
+ _ && ge();
11631
+ }), qf(Q.destroy), rn({ start: ge, pause: Le, resume: $e }, Q);
11624
11632
  }
11625
11633
  const Qi = [
11626
11634
  "update",
@@ -11692,13 +11700,13 @@ const Qi = [
11692
11700
  const s = Qi.reduce((d, h) => {
11693
11701
  const g = `on${h.replace(/^\S/, (m) => m.toUpperCase())}`;
11694
11702
  return d[g] = (...m) => n(h, ...m), d;
11695
- }, {}), a = Se(() => {
11703
+ }, {}), a = Be(() => {
11696
11704
  const d = Ml(e), { modelValue: h } = d, g = Tr(d, ["modelValue"]), m = Object.entries(g).reduce((I, [O, G]) => {
11697
- const D = X(G);
11698
- return D !== void 0 && (I[O] = D), I;
11705
+ const j = X(G);
11706
+ return j !== void 0 && (I[O] = j), I;
11699
11707
  }, {});
11700
11708
  return rn(rn({}, s), hf(rn(rn({}, i), m)));
11701
- }), l = Se({
11709
+ }), l = Be({
11702
11710
  get: () => e.modelValue,
11703
11711
  set: (d) => n("update:modelValue", d)
11704
11712
  }), c = Mt(), _ = Pl(
@@ -11718,13 +11726,13 @@ const Qi = [
11718
11726
  },
11719
11727
  emits: ["x-click"],
11720
11728
  setup(e, { emit: t }) {
11721
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Yo(), s = e, a = t, l = Mt(!1), c = Se(() => ({
11729
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Yo(), s = e, a = t, l = Mt(!1), c = Be(() => ({
11722
11730
  position: "relative",
11723
11731
  background: l.value ? i.value : o.value,
11724
11732
  height: "48px",
11725
11733
  marginBottom: "1px",
11726
11734
  userSelect: "none"
11727
- })), _ = Se(() => ({
11735
+ })), _ = Be(() => ({
11728
11736
  display: s.select ? "block" : "none",
11729
11737
  position: "absolute",
11730
11738
  top: "0px",
@@ -11735,24 +11743,24 @@ const Qi = [
11735
11743
  pointerEvents: "none"
11736
11744
  }));
11737
11745
  return (d, h) => {
11738
- const g = De("v-spacer"), m = De("v-icon"), I = xl("ripple");
11739
- return wl((Be(), Et("div", {
11746
+ const g = Ie("v-spacer"), m = Ie("v-icon"), I = xl("ripple");
11747
+ return wl((Re(), Et("div", {
11740
11748
  class: "d-flex align-center cursor-pointer",
11741
- style: lt(c.value),
11749
+ style: ct(c.value),
11742
11750
  onClick: h[1] || (h[1] = (O) => a("x-click", s.id)),
11743
11751
  onMouseover: h[2] || (h[2] = (O) => l.value = !0),
11744
11752
  onMouseout: h[3] || (h[3] = (O) => l.value = !1)
11745
11753
  }, [
11746
- st("span", ng, wo(s.title), 1),
11747
- Ne(g),
11748
- Ne(m, {
11754
+ at("span", ng, wo(s.title), 1),
11755
+ he(g),
11756
+ he(m, {
11749
11757
  class: "x-handle cursor-move mr-3",
11750
11758
  icon: X(sc),
11751
11759
  onMousedown: h[0] || (h[0] = Ln(() => {
11752
11760
  }, ["stop"]))
11753
11761
  }, null, 8, ["icon"]),
11754
- st("div", {
11755
- style: lt(_.value)
11762
+ at("div", {
11763
+ style: ct(_.value)
11756
11764
  }, null, 4)
11757
11765
  ], 36)), [
11758
11766
  [I]
@@ -11776,12 +11784,12 @@ const Qi = [
11776
11784
  }
11777
11785
  const g = [];
11778
11786
  h.getTopBlocks(!0).forEach((I) => {
11779
- var D;
11780
- const O = I.id === ((D = sn()) == null ? void 0 : D.id);
11787
+ var j;
11788
+ const O = I.id === ((j = sn()) == null ? void 0 : j.id);
11781
11789
  let G = "<n/a>";
11782
11790
  if (I.type.startsWith("on_node_event_v")) {
11783
- const j = I, ee = Ke[j.node.key];
11784
- ee && (G = t(ee.name), j.node.alias && (G += " / " + j.node.alias), G += " - " + T[j.event.name]);
11791
+ const U = I, J = Ke[U.node.key];
11792
+ J && (G = t(J.name), U.node.alias && (G += " / " + U.node.alias), G += " - " + T[U.event.name]);
11785
11793
  } else I.type.startsWith("func_entry_v") ? G = t("x-block-lib.funcEntry") : I.type.startsWith("procedure_def_v") ? (console.log(I), G = t("x-block-lib.procedure") + " - " + I.getFieldValue("NAME")) : G = t("x-block-lib.temporaryBlock");
11786
11794
  g.push({
11787
11795
  id: I.id,
@@ -11791,9 +11799,9 @@ const Qi = [
11791
11799
  }), o.value = g;
11792
11800
  };
11793
11801
  dn(() => {
11794
- ct.on("codeUpdate", i);
11802
+ ut.on("codeUpdate", i);
11795
11803
  }), Oo(() => {
11796
- ct.off("codeUpdate", i);
11804
+ ut.off("codeUpdate", i);
11797
11805
  });
11798
11806
  let s = [];
11799
11807
  const a = () => {
@@ -11826,8 +11834,8 @@ const Qi = [
11826
11834
  h.newIndex > h.oldIndex ? O = s[h.newIndex] : h.newIndex > 0 && (O = s[h.newIndex - 1]);
11827
11835
  let G = -10;
11828
11836
  O !== "" && (G = g.getBlockById(O).getRelativeToSurfaceXY().y + 10);
11829
- const D = I.getRelativeToSurfaceXY();
11830
- I.moveTo(new k.Coordinate(D.x, G)), ct.emit("cleanWorkspace"), pr();
11837
+ const j = I.getRelativeToSurfaceXY();
11838
+ I.moveTo(new k.Coordinate(j.x, G)), ut.emit("cleanWorkspace"), pr();
11831
11839
  }, { open: _ } = Ko("blocklyNavigatorDlg"), d = async (h) => {
11832
11840
  const g = Pt();
11833
11841
  if (!g) {
@@ -11837,7 +11845,7 @@ const Qi = [
11837
11845
  const m = g.getBlockById(h);
11838
11846
  Wl.setSelected(m), ur(h), _.value = !1;
11839
11847
  };
11840
- return (h, g) => o.value.length > 0 ? (Be(), ut(X(tg), {
11848
+ return (h, g) => o.value.length > 0 ? (Re(), pt(X(tg), {
11841
11849
  key: 0,
11842
11850
  modelValue: o.value,
11843
11851
  "onUpdate:modelValue": g[0] || (g[0] = (m) => o.value = m),
@@ -11848,8 +11856,8 @@ const Qi = [
11848
11856
  onMove: l,
11849
11857
  onEnd: c
11850
11858
  }, {
11851
- default: pt(() => [
11852
- (Be(!0), Et(ka, null, Vl(o.value, (m) => (Be(), ut(og, {
11859
+ default: Ze(() => [
11860
+ (Re(!0), Et(ka, null, Vl(o.value, (m) => (Re(), pt(og, {
11853
11861
  id: m.id,
11854
11862
  key: m.id,
11855
11863
  title: m.name,
@@ -11858,7 +11866,7 @@ const Qi = [
11858
11866
  }, null, 8, ["id", "title", "select"]))), 128))
11859
11867
  ]),
11860
11868
  _: 1
11861
- }, 8, ["modelValue"])) : (Be(), Et("span", ig, wo(X(t)("x-block-lib.noOption")), 1));
11869
+ }, 8, ["modelValue"])) : (Re(), Et("span", ig, wo(X(t)("x-block-lib.noOption")), 1));
11862
11870
  }
11863
11871
  }), Ur = (e, t) => {
11864
11872
  const n = e.__vccOpts || e;
@@ -11867,84 +11875,86 @@ const Qi = [
11867
11875
  return n;
11868
11876
  }, ag = /* @__PURE__ */ Ur(sg, [["__scopeId", "data-v-448cc5cd"]]), rg = {};
11869
11877
  function lg(e, t) {
11870
- return Be(), Et("div", null, "blockTree");
11878
+ return Re(), Et("div", null, "blockTree");
11871
11879
  }
11872
- const cg = /* @__PURE__ */ Ur(rg, [["render", lg]]), ug = { class: "text-subtitle-1 ml-3" }, pg = /* @__PURE__ */ ht({
11880
+ const cg = /* @__PURE__ */ Ur(rg, [["render", lg]]), ug = { class: "text-subtitle-1" }, pg = /* @__PURE__ */ ht({
11873
11881
  __name: "index",
11874
11882
  props: {
11875
11883
  type: {},
11876
11884
  lock: { type: Boolean }
11877
11885
  },
11878
11886
  setup(e) {
11879
- const { t } = Kn(), n = nc(), { sysBarAvail: o } = Ma(), { backgroundColor1: i } = Yo(), s = e, a = Se(() => {
11887
+ const { t } = Kn(), n = nc(), { sysBarAvail: o } = Ma(), { backgroundColor1: i } = Yo(), s = e, a = Be(() => {
11880
11888
  let d = "100%";
11881
11889
  return n.mdAndUp.value && (d = "400px"), {
11882
11890
  background: i.value,
11883
11891
  width: d,
11884
11892
  height: "100%"
11885
11893
  };
11886
- }), l = Se(() => {
11894
+ }), l = Be(() => {
11887
11895
  let d = 48;
11888
11896
  return o.value && (d += 24), {
11889
11897
  position: "relative",
11890
- width: "100%",
11891
11898
  height: `calc(100% - ${d}px)`
11892
11899
  };
11893
- }), c = Se(() => ({
11900
+ }), c = Be(() => ({
11894
11901
  height: "60px"
11895
11902
  })), { open: _ } = Ko("blocklyNavigatorDlg");
11896
11903
  return (d, h) => {
11897
- const g = De("v-sheet"), m = De("v-icon"), I = De("v-dialog"), O = De("v-btn"), G = De("v-tooltip");
11898
- return Be(), Et(ka, null, [
11899
- Ne(I, {
11904
+ const g = Ie("v-sheet"), m = Ie("v-btn"), I = Ie("v-spacer"), O = Ie("v-dialog"), G = Ie("v-fade-transition"), j = Ie("v-tooltip");
11905
+ return Re(), Et(ka, null, [
11906
+ he(O, {
11900
11907
  modelValue: X(_),
11901
- "onUpdate:modelValue": h[3] || (h[3] = (D) => kn(_) ? _.value = D : null),
11908
+ "onUpdate:modelValue": h[3] || (h[3] = (U) => kn(_) ? _.value = U : null),
11902
11909
  transition: "scroll-x-reverse-transition",
11903
11910
  persistent: "",
11904
11911
  "no-click-animation": "",
11905
11912
  fullscreen: "",
11906
11913
  eager: "",
11907
- onKeydown: h[4] || (h[4] = La(Ln((D) => _.value = !1, ["stop", "prevent"]), ["esc"]))
11914
+ onKeydown: h[4] || (h[4] = La(Ln((U) => _.value = !1, ["stop", "prevent"]), ["esc"]))
11908
11915
  }, {
11909
- default: pt(() => [
11910
- st("div", {
11916
+ default: Ze(() => [
11917
+ at("div", {
11911
11918
  class: "w-100 h-100 d-flex flex-row-reverse",
11912
- onClick: h[1] || (h[1] = Ln((D) => _.value = !1, ["self"])),
11913
- onContextmenu: h[2] || (h[2] = Ln((D) => _.value = !1, ["self", "prevent"]))
11919
+ onClick: h[1] || (h[1] = Ln((U) => _.value = !1, ["self"])),
11920
+ onContextmenu: h[2] || (h[2] = Ln((U) => _.value = !1, ["self", "prevent"]))
11914
11921
  }, [
11915
- st("div", {
11922
+ at("div", {
11916
11923
  class: "elevation-2",
11917
- style: lt(a.value)
11924
+ style: ct(a.value)
11918
11925
  }, [
11919
- X(o) ? (Be(), ut(g, {
11926
+ X(o) ? (Re(), pt(g, {
11920
11927
  key: 0,
11921
11928
  color: "transparent",
11922
11929
  height: 24
11923
11930
  })) : cn("", !0),
11924
- Ne(g, {
11925
- class: "d-flex align-center px-3",
11931
+ he(g, {
11932
+ class: "d-flex align-center px-2",
11926
11933
  color: "transparent",
11927
11934
  height: 48
11928
11935
  }, {
11929
- default: pt(() => [
11930
- Ne(m, {
11936
+ default: Ze(() => [
11937
+ he(m, {
11938
+ variant: "text",
11939
+ density: "comfortable",
11931
11940
  icon: X(Pa),
11932
- onClick: h[0] || (h[0] = (D) => _.value = !1)
11941
+ onClick: h[0] || (h[0] = (U) => _.value = !1)
11933
11942
  }, null, 8, ["icon"]),
11934
- st("span", ug, wo(X(t)("x-block-lib.navigator")), 1)
11943
+ at("span", ug, wo(X(t)("x-block-lib.navigator")), 1),
11944
+ he(I)
11935
11945
  ]),
11936
11946
  _: 1
11937
11947
  }),
11938
- st("div", {
11948
+ at("div", {
11939
11949
  class: "overflow-y-auto",
11940
- style: lt(l.value)
11950
+ style: ct(l.value)
11941
11951
  }, [
11942
- s.type === "list" ? (Be(), ut(ag, {
11952
+ s.type === "list" ? (Re(), pt(ag, {
11943
11953
  key: 0,
11944
11954
  lock: s.lock
11945
- }, null, 8, ["lock"])) : s.type === "tree" ? (Be(), ut(cg, { key: 1 })) : cn("", !0),
11946
- st("div", {
11947
- style: lt(c.value)
11955
+ }, null, 8, ["lock"])) : s.type === "tree" ? (Re(), pt(cg, { key: 1 })) : cn("", !0),
11956
+ at("div", {
11957
+ style: ct(c.value)
11948
11958
  }, null, 4)
11949
11959
  ], 4)
11950
11960
  ], 4)
@@ -11952,16 +11962,21 @@ const cg = /* @__PURE__ */ Ur(rg, [["render", lg]]), ug = { class: "text-subtitl
11952
11962
  ]),
11953
11963
  _: 1
11954
11964
  }, 8, ["modelValue"]),
11955
- Ne(G, {
11965
+ he(j, {
11956
11966
  text: X(t)("x-block-lib.tip.hotkeyCtrlE")
11957
11967
  }, {
11958
- activator: pt(({ props: D }) => [
11959
- Ne(O, Zi(D, {
11960
- variant: "outlined",
11961
- density: "comfortable",
11962
- icon: X(lc),
11963
- onClick: h[5] || (h[5] = (j) => _.value = !0)
11964
- }), null, 16, ["icon"])
11968
+ activator: Ze(({ props: U }) => [
11969
+ he(G, null, {
11970
+ default: Ze(() => [
11971
+ he(m, Zi(U, {
11972
+ variant: "outlined",
11973
+ density: "comfortable",
11974
+ icon: X(lc),
11975
+ onClick: h[5] || (h[5] = (J) => _.value = !0)
11976
+ }), null, 16, ["icon"])
11977
+ ]),
11978
+ _: 2
11979
+ }, 1024)
11965
11980
  ]),
11966
11981
  _: 1
11967
11982
  }, 8, ["text"])
@@ -12042,7 +12057,7 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12042
12057
  setup(e, { expose: t, emit: n }) {
12043
12058
  const o = Zl(), i = ec(), s = Di(e, "lock"), a = Di(e, "scale"), l = e, c = n, _ = Mt();
12044
12059
  let d;
12045
- const h = Mt(!1), g = Mt(!1), m = Se(() => l.type === "json" ? "tree" : "list"), I = Se(() => ({
12060
+ const h = Mt(!1), g = Mt(!1), m = Be(() => l.type === "json" ? "tree" : "list"), I = Be(() => ({
12046
12061
  position: "absolute",
12047
12062
  background: o.value ? "#0000007f" : "#ffffff7f",
12048
12063
  top: "1px",
@@ -12050,12 +12065,12 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12050
12065
  width: "56px",
12051
12066
  height: "calc(100% - 1px)",
12052
12067
  zIndex: 999
12053
- })), O = Se(() => ({
12068
+ })), O = Be(() => ({
12054
12069
  position: "absolute",
12055
12070
  top: "0px",
12056
12071
  right: "0px",
12057
12072
  zIndex: 20
12058
- })), G = Se(() => ({
12073
+ })), G = Be(() => ({
12059
12074
  position: "absolute",
12060
12075
  background: o.value ? "#0000007f" : "#ffffff7f",
12061
12076
  top: "0px",
@@ -12063,7 +12078,7 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12063
12078
  width: "100%",
12064
12079
  height: "100%",
12065
12080
  pointerEvents: "none"
12066
- })), D = Se(() => ({
12081
+ })), j = Be(() => ({
12067
12082
  position: "absolute",
12068
12083
  background: o.value ? "#0000007f" : "#ffffff7f",
12069
12084
  top: "1px",
@@ -12071,27 +12086,27 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12071
12086
  width: "56px",
12072
12087
  height: "calc(100% - 1px)",
12073
12088
  zIndex: 999
12074
- })), { open: j } = Ko("blocklyEditorFlyout");
12089
+ })), { open: U } = Ko("blocklyEditorFlyout");
12075
12090
  dn(async () => {
12076
12091
  if (!_.value) {
12077
12092
  console.assert(!1);
12078
12093
  return;
12079
12094
  }
12080
- await aa(i.value), d = _g(_.value, l.type, l.version), d.addChangeListener(w.disableOrphans), d.addChangeListener(ee);
12095
+ await aa(i.value), d = _g(_.value, l.type, l.version), d.addChangeListener(w.disableOrphans), d.addChangeListener(J);
12081
12096
  const R = document.querySelector("#blocklyEditor .blocklyFlyout");
12082
12097
  new MutationObserver((Me) => {
12083
12098
  Me.forEach((re) => {
12084
- re.type === "attributes" && re.attributeName === "style" && (j.value = d.getFlyout().isVisible());
12099
+ re.type === "attributes" && re.attributeName === "style" && (U.value = d.getFlyout().isVisible());
12085
12100
  });
12086
- }).observe(R, { attributes: !0 }), j.value = d.getFlyout().isVisible(), $e(), B(), await es(), c("ready");
12101
+ }).observe(R, { attributes: !0 }), U.value = d.getFlyout().isVisible(), $e(), B(), await es(), c("ready");
12087
12102
  }), Oo(() => {
12088
- j.value = !1;
12103
+ U.value = !1;
12089
12104
  }), hc(_, () => {
12090
12105
  d && zl(d);
12091
12106
  });
12092
- async function ee(R) {
12107
+ async function J(R) {
12093
12108
  if (R.type === w.FINISHED_LOADING) {
12094
- pr(), ct.emit("codeUpdate"), h.value = !1;
12109
+ pr(), ut.emit("codeUpdate"), h.value = !1;
12095
12110
  return;
12096
12111
  }
12097
12112
  if (!h.value) {
@@ -12099,27 +12114,27 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12099
12114
  a.value = d.getScale();
12100
12115
  return;
12101
12116
  }
12102
- R.type === w.BLOCK_DRAG && (R.isStart ? g.value = !0 : g.value = !1), ct.emit("codeUpdate");
12117
+ R.type === w.BLOCK_DRAG && (R.isStart ? g.value = !0 : g.value = !1), ut.emit("codeUpdate");
12103
12118
  }
12104
12119
  }
12105
- const fe = (R) => {
12120
+ const ge = (R) => {
12106
12121
  h.value = !0, Ls.workspaces.load(R, d);
12107
- }, J = () => Ls.workspaces.save(d), ke = () => r.workspaceToCode(d), $e = () => {
12108
- d.options.readOnly = s.value, d.options.readOnly && (j.value = !1);
12122
+ }, Q = () => Ls.workspaces.save(d), Le = () => r.workspaceToCode(d), $e = () => {
12123
+ d.options.readOnly = s.value, d.options.readOnly && (U.value = !1);
12109
12124
  }, B = () => {
12110
12125
  d.setScale(a.value);
12111
12126
  };
12112
12127
  class F extends w.Abstract {
12113
12128
  constructor() {
12114
12129
  super(...arguments);
12115
- tt(this, "isBlank", !0);
12130
+ nt(this, "isBlank", !0);
12116
12131
  }
12117
12132
  }
12118
12133
  const ie = () => {
12119
12134
  d.fireChangeListener(new F());
12120
- }, ge = (R) => {
12135
+ }, me = (R) => {
12121
12136
  if (R.key === "q" && R.ctrlKey) {
12122
- Q();
12137
+ Z();
12123
12138
  return;
12124
12139
  }
12125
12140
  if (R.key === "w" && R.ctrlKey) {
@@ -12130,69 +12145,69 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12130
12145
  oe();
12131
12146
  return;
12132
12147
  }
12133
- }, Q = () => {
12134
- ct.emit("cleanWorkspace");
12148
+ }, Z = () => {
12149
+ ut.emit("cleanWorkspace");
12135
12150
  }, se = () => {
12136
12151
  s.value = !s.value;
12137
12152
  }, oe = () => {
12138
- ct.emit("blocklyNavigatorDlg");
12153
+ ut.emit("blocklyNavigatorDlg");
12139
12154
  };
12140
12155
  return dn(() => {
12141
- window.addEventListener("keydown", ge, !1);
12156
+ window.addEventListener("keydown", me, !1);
12142
12157
  }), Oo(() => {
12143
- window.addEventListener("keydown", ge, !1);
12158
+ window.addEventListener("keydown", me, !1);
12144
12159
  }), Lt(i, (R) => {
12145
12160
  aa(R);
12146
12161
  }), Lt(o, (R) => {
12147
12162
  nf(R ? "dark" : "light");
12148
- }), Lt(j, (R) => {
12163
+ }), Lt(U, (R) => {
12149
12164
  R || d.hideChaff();
12150
12165
  }), Lt(s, () => {
12151
12166
  $e();
12152
12167
  }), Lt(a, () => {
12153
12168
  B();
12154
- }), t({ loading: h, load: fe, save: J, generateCode: ke, fireStateChange: ie }), (R, ae) => {
12155
- const Me = De("v-icon"), re = De("x-loading");
12156
- return Be(), Et("div", gg, [
12157
- st("div", {
12169
+ }), t({ loading: h, load: ge, save: Q, generateCode: Le, fireStateChange: ie }), (R, ae) => {
12170
+ const Me = Ie("v-icon"), re = Ie("x-loading");
12171
+ return Re(), Et("div", gg, [
12172
+ at("div", {
12158
12173
  id: "blocklyEditor",
12159
12174
  ref_key: "blocklyDiv",
12160
12175
  ref: _,
12161
12176
  class: "w-100 h-100"
12162
12177
  }, null, 512),
12163
- g.value ? (Be(), Et("div", {
12178
+ g.value ? (Re(), Et("div", {
12164
12179
  key: 0,
12165
12180
  class: "d-flex flex-column justify-center align-center",
12166
- style: lt(I.value)
12181
+ style: ct(I.value)
12167
12182
  }, [
12168
- Ne(Me, {
12183
+ he(Me, {
12169
12184
  size: "x-large",
12170
12185
  icon: X(ic)
12171
12186
  }, null, 8, ["icon"])
12172
12187
  ], 4)) : cn("", !0),
12173
- st("div", {
12174
- class: "d-flex align-end pt-3 pr-3",
12175
- style: lt(O.value)
12188
+ at("div", {
12189
+ class: "d-flex align-end ga-3 pt-3 pr-3",
12190
+ style: ct(O.value)
12176
12191
  }, [
12177
- Ne(lf, { lock: s.value }, null, 8, ["lock"]),
12178
- Ne(cf, {
12192
+ he(lf, { lock: s.value }, null, 8, ["lock"]),
12193
+ he(cf, {
12179
12194
  modelValue: s.value,
12180
12195
  "onUpdate:modelValue": ae[0] || (ae[0] = (Xe) => s.value = Xe)
12181
12196
  }, null, 8, ["modelValue"]),
12182
- Ne(pg, {
12197
+ he(pg, {
12183
12198
  type: m.value,
12184
12199
  lock: s.value
12185
12200
  }, null, 8, ["type", "lock"])
12186
12201
  ], 4),
12187
- s.value ? (Be(), Et("div", {
12202
+ s.value ? (Re(), Et("div", {
12188
12203
  key: 1,
12189
- style: lt(D.value)
12204
+ style: ct(j.value)
12190
12205
  }, null, 4)) : cn("", !0),
12191
- s.value ? (Be(), Et("div", {
12206
+ s.value ? (Re(), Et("div", {
12192
12207
  key: 2,
12193
- style: lt(G.value)
12208
+ style: ct(G.value)
12194
12209
  }, null, 4)) : cn("", !0),
12195
- Ne(re, {
12210
+ he(re, {
12196
12211
  open: h.value,
12197
12212
  "z-index": 99
12198
12213
  }, null, 8, ["open"])
@@ -12233,8 +12248,8 @@ function Tg() {
12233
12248
  for (const Y in u)
12234
12249
  v[Y] = u[Y];
12235
12250
  return f.forEach(function(Y) {
12236
- for (const Ae in Y)
12237
- v[Ae] = Y[Ae];
12251
+ for (const ve in Y)
12252
+ v[ve] = Y[ve];
12238
12253
  }), /** @type {T} */
12239
12254
  v;
12240
12255
  }
@@ -12245,7 +12260,7 @@ function Tg() {
12245
12260
  const v = u.split(".");
12246
12261
  return [
12247
12262
  `${f}${v.shift()}`,
12248
- ...v.map((Y, Ae) => `${Y}${"_".repeat(Ae + 1)}`)
12263
+ ...v.map((Y, ve) => `${Y}${"_".repeat(ve + 1)}`)
12249
12264
  ].join(" ");
12250
12265
  }
12251
12266
  return `${f}${u}`;
@@ -12411,35 +12426,35 @@ function Tg() {
12411
12426
  const f = u[u.length - 1];
12412
12427
  return typeof f == "object" && f.constructor === Object ? (u.splice(u.length - 1, 1), f) : {};
12413
12428
  }
12414
- function D(...u) {
12429
+ function j(...u) {
12415
12430
  return "(" + (G(u).capture ? "" : "?:") + u.map((Y) => h(Y)).join("|") + ")";
12416
12431
  }
12417
- function j(u) {
12432
+ function U(u) {
12418
12433
  return new RegExp(u.toString() + "|").exec("").length - 1;
12419
12434
  }
12420
- function ee(u, f) {
12435
+ function J(u, f) {
12421
12436
  const v = u && u.exec(f);
12422
12437
  return v && v.index === 0;
12423
12438
  }
12424
- const fe = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
12425
- function J(u, { joinWith: f }) {
12439
+ const ge = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
12440
+ function Q(u, { joinWith: f }) {
12426
12441
  let v = 0;
12427
12442
  return u.map((Y) => {
12428
12443
  v += 1;
12429
- const Ae = v;
12430
- let ve = h(Y), N = "";
12431
- for (; ve.length > 0; ) {
12432
- const y = fe.exec(ve);
12444
+ const ve = v;
12445
+ let Oe = h(Y), N = "";
12446
+ for (; Oe.length > 0; ) {
12447
+ const y = ge.exec(Oe);
12433
12448
  if (!y) {
12434
- N += ve;
12449
+ N += Oe;
12435
12450
  break;
12436
12451
  }
12437
- N += ve.substring(0, y.index), ve = ve.substring(y.index + y[0].length), y[0][0] === "\\" && y[1] ? N += "\\" + String(Number(y[1]) + Ae) : (N += y[0], y[0] === "(" && v++);
12452
+ N += Oe.substring(0, y.index), Oe = Oe.substring(y.index + y[0].length), y[0][0] === "\\" && y[1] ? N += "\\" + String(Number(y[1]) + ve) : (N += y[0], y[0] === "(" && v++);
12438
12453
  }
12439
12454
  return N;
12440
12455
  }).map((Y) => `(${Y})`).join(f);
12441
12456
  }
12442
- const ke = /\b\B/, $e = "[a-zA-Z]\\w*", B = "[a-zA-Z_]\\w*", F = "\\b\\d+(\\.\\d+)?", ie = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", ge = "\\b(0b[01]+)", Q = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", se = (u = {}) => {
12457
+ const Le = /\b\B/, $e = "[a-zA-Z]\\w*", B = "[a-zA-Z_]\\w*", F = "\\b\\d+(\\.\\d+)?", ie = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", me = "\\b(0b[01]+)", Z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", se = (u = {}) => {
12443
12458
  const f = /^#![ ]*\//;
12444
12459
  return u.binary && (u.begin = O(
12445
12460
  f,
@@ -12492,7 +12507,7 @@ function Tg() {
12492
12507
  excludeBegin: !0,
12493
12508
  relevance: 0
12494
12509
  });
12495
- const Ae = D(
12510
+ const ve = j(
12496
12511
  // list of common 1 and 2 letter words in English
12497
12512
  "I",
12498
12513
  "a",
@@ -12532,7 +12547,7 @@ function Tg() {
12532
12547
  /[ ]+/,
12533
12548
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
12534
12549
  "(",
12535
- Ae,
12550
+ ve,
12536
12551
  /[.]?[:]?([.][ ]|[ ])/,
12537
12552
  "){3}"
12538
12553
  )
@@ -12549,7 +12564,7 @@ function Tg() {
12549
12564
  relevance: 0
12550
12565
  }, Fr = {
12551
12566
  scope: "number",
12552
- begin: ge,
12567
+ begin: me,
12553
12568
  relevance: 0
12554
12569
  }, Yr = {
12555
12570
  scope: "regexp",
@@ -12582,7 +12597,7 @@ function Tg() {
12582
12597
  APOS_STRING_MODE: R,
12583
12598
  BACKSLASH_ESCAPE: oe,
12584
12599
  BINARY_NUMBER_MODE: Fr,
12585
- BINARY_NUMBER_RE: ge,
12600
+ BINARY_NUMBER_RE: me,
12586
12601
  COMMENT: re,
12587
12602
  C_BLOCK_COMMENT_MODE: gt,
12588
12603
  C_LINE_COMMENT_MODE: Xe,
@@ -12605,14 +12620,14 @@ function Tg() {
12605
12620
  },
12606
12621
  HASH_COMMENT_MODE: Jt,
12607
12622
  IDENT_RE: $e,
12608
- MATCH_NOTHING_RE: ke,
12623
+ MATCH_NOTHING_RE: Le,
12609
12624
  METHOD_GUARD: $r,
12610
12625
  NUMBER_MODE: An,
12611
12626
  NUMBER_RE: F,
12612
12627
  PHRASAL_WORDS_MODE: Me,
12613
12628
  QUOTE_STRING_MODE: ae,
12614
12629
  REGEXP_MODE: Yr,
12615
- RE_STARTERS_RE: Q,
12630
+ RE_STARTERS_RE: Z,
12616
12631
  SHEBANG: se,
12617
12632
  TITLE_MODE: Kr,
12618
12633
  UNDERSCORE_IDENT_RE: B,
@@ -12628,7 +12643,7 @@ function Tg() {
12628
12643
  f && u.beginKeywords && (u.begin = "\\b(" + u.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", u.__beforeBegin = Gr, u.keywords = u.keywords || u.beginKeywords, delete u.beginKeywords, u.relevance === void 0 && (u.relevance = 0));
12629
12644
  }
12630
12645
  function Xr(u, f) {
12631
- Array.isArray(u.illegal) && (u.illegal = D(...u.illegal));
12646
+ Array.isArray(u.illegal) && (u.illegal = j(...u.illegal));
12632
12647
  }
12633
12648
  function zr(u, f) {
12634
12649
  if (u.match) {
@@ -12669,16 +12684,16 @@ function Tg() {
12669
12684
  ], Zr = "keyword";
12670
12685
  function ps(u, f, v = Zr) {
12671
12686
  const Y = /* @__PURE__ */ Object.create(null);
12672
- return typeof u == "string" ? Ae(v, u.split(" ")) : Array.isArray(u) ? Ae(v, u) : Object.keys(u).forEach(function(ve) {
12687
+ return typeof u == "string" ? ve(v, u.split(" ")) : Array.isArray(u) ? ve(v, u) : Object.keys(u).forEach(function(Oe) {
12673
12688
  Object.assign(
12674
12689
  Y,
12675
- ps(u[ve], f, ve)
12690
+ ps(u[Oe], f, Oe)
12676
12691
  );
12677
12692
  }), Y;
12678
- function Ae(ve, N) {
12693
+ function ve(Oe, N) {
12679
12694
  f && (N = N.map((y) => y.toLowerCase())), N.forEach(function(y) {
12680
12695
  const x = y.split("|");
12681
- Y[x[0]] = [ve, el(x[0], x[1])];
12696
+ Y[x[0]] = [Oe, el(x[0], x[1])];
12682
12697
  });
12683
12698
  }
12684
12699
  }
@@ -12697,10 +12712,10 @@ function Tg() {
12697
12712
  }, qn = new Error();
12698
12713
  function hs(u, f, { key: v }) {
12699
12714
  let Y = 0;
12700
- const Ae = u[v], ve = {}, N = {};
12715
+ const ve = u[v], Oe = {}, N = {};
12701
12716
  for (let y = 1; y <= f.length; y++)
12702
- N[y + Y] = Ae[y], ve[y + Y] = !0, Y += j(f[y - 1]);
12703
- u[v] = N, u[v]._emit = ve, u[v]._multi = !0;
12717
+ N[y + Y] = ve[y], Oe[y + Y] = !0, Y += U(f[y - 1]);
12718
+ u[v] = N, u[v]._emit = Oe, u[v]._multi = !0;
12704
12719
  }
12705
12720
  function nl(u) {
12706
12721
  if (Array.isArray(u.begin)) {
@@ -12708,7 +12723,7 @@ function Tg() {
12708
12723
  throw Vt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), qn;
12709
12724
  if (typeof u.beginScope != "object" || u.beginScope === null)
12710
12725
  throw Vt("beginScope must be object"), qn;
12711
- hs(u, u.begin, { key: "beginScope" }), u.begin = J(u.begin, { joinWith: "" });
12726
+ hs(u, u.begin, { key: "beginScope" }), u.begin = Q(u.begin, { joinWith: "" });
12712
12727
  }
12713
12728
  }
12714
12729
  function ol(u) {
@@ -12717,7 +12732,7 @@ function Tg() {
12717
12732
  throw Vt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), qn;
12718
12733
  if (typeof u.endScope != "object" || u.endScope === null)
12719
12734
  throw Vt("endScope must be object"), qn;
12720
- hs(u, u.end, { key: "endScope" }), u.end = J(u.end, { joinWith: "" });
12735
+ hs(u, u.end, { key: "endScope" }), u.end = Q(u.end, { joinWith: "" });
12721
12736
  }
12722
12737
  }
12723
12738
  function il(u) {
@@ -12739,12 +12754,12 @@ function Tg() {
12739
12754
  }
12740
12755
  // @ts-ignore
12741
12756
  addRule(y, x) {
12742
- x.position = this.position++, this.matchIndexes[this.matchAt] = x, this.regexes.push([x, y]), this.matchAt += j(y) + 1;
12757
+ x.position = this.position++, this.matchIndexes[this.matchAt] = x, this.regexes.push([x, y]), this.matchAt += U(y) + 1;
12743
12758
  }
12744
12759
  compile() {
12745
12760
  this.regexes.length === 0 && (this.exec = () => null);
12746
12761
  const y = this.regexes.map((x) => x[1]);
12747
- this.matcherRe = f(J(y, { joinWith: "|" }), !0), this.lastIndex = 0;
12762
+ this.matcherRe = f(Q(y, { joinWith: "|" }), !0), this.lastIndex = 0;
12748
12763
  }
12749
12764
  /** @param {string} s */
12750
12765
  exec(y) {
@@ -12752,8 +12767,8 @@ function Tg() {
12752
12767
  const x = this.matcherRe.exec(y);
12753
12768
  if (!x)
12754
12769
  return null;
12755
- const Re = x.findIndex((vn, ii) => ii > 0 && vn !== void 0), Ie = this.matchIndexes[Re];
12756
- return x.splice(0, Re), Object.assign(x, Ie);
12770
+ const De = x.findIndex((vn, ii) => ii > 0 && vn !== void 0), Ce = this.matchIndexes[De];
12771
+ return x.splice(0, De), Object.assign(x, Ce);
12757
12772
  }
12758
12773
  }
12759
12774
  class Y {
@@ -12764,7 +12779,7 @@ function Tg() {
12764
12779
  getMatcher(y) {
12765
12780
  if (this.multiRegexes[y]) return this.multiRegexes[y];
12766
12781
  const x = new v();
12767
- return this.rules.slice(y).forEach(([Re, Ie]) => x.addRule(Re, Ie)), x.compile(), this.multiRegexes[y] = x, x;
12782
+ return this.rules.slice(y).forEach(([De, Ce]) => x.addRule(De, Ce)), x.compile(), this.multiRegexes[y] = x, x;
12768
12783
  }
12769
12784
  resumingScanAtSamePosition() {
12770
12785
  return this.regexIndex !== 0;
@@ -12780,19 +12795,19 @@ function Tg() {
12780
12795
  exec(y) {
12781
12796
  const x = this.getMatcher(this.regexIndex);
12782
12797
  x.lastIndex = this.lastIndex;
12783
- let Re = x.exec(y);
12784
- if (this.resumingScanAtSamePosition() && !(Re && Re.index === this.lastIndex)) {
12785
- const Ie = this.getMatcher(0);
12786
- Ie.lastIndex = this.lastIndex + 1, Re = Ie.exec(y);
12798
+ let De = x.exec(y);
12799
+ if (this.resumingScanAtSamePosition() && !(De && De.index === this.lastIndex)) {
12800
+ const Ce = this.getMatcher(0);
12801
+ Ce.lastIndex = this.lastIndex + 1, De = Ce.exec(y);
12787
12802
  }
12788
- return Re && (this.regexIndex += Re.position + 1, this.regexIndex === this.count && this.considerAll()), Re;
12803
+ return De && (this.regexIndex += De.position + 1, this.regexIndex === this.count && this.considerAll()), De;
12789
12804
  }
12790
12805
  }
12791
- function Ae(N) {
12806
+ function ve(N) {
12792
12807
  const y = new Y();
12793
12808
  return N.contains.forEach((x) => y.addRule(x.begin, { rule: x, type: "begin" })), N.terminatorEnd && y.addRule(N.terminatorEnd, { type: "end" }), N.illegal && y.addRule(N.illegal, { type: "illegal" }), y;
12794
12809
  }
12795
- function ve(N, y) {
12810
+ function Oe(N, y) {
12796
12811
  const x = (
12797
12812
  /** @type CompiledMode */
12798
12813
  N
@@ -12805,31 +12820,31 @@ function Tg() {
12805
12820
  zr,
12806
12821
  sl,
12807
12822
  Jr
12808
- ].forEach((Ie) => Ie(N, y)), u.compilerExtensions.forEach((Ie) => Ie(N, y)), N.__beforeBegin = null, [
12823
+ ].forEach((Ce) => Ce(N, y)), u.compilerExtensions.forEach((Ce) => Ce(N, y)), N.__beforeBegin = null, [
12809
12824
  Wr,
12810
12825
  // do this later so compiler extensions that come earlier have access to the
12811
12826
  // raw array if they wanted to perhaps manipulate it, etc.
12812
12827
  Xr,
12813
12828
  // default to 1 relevance if not specified
12814
12829
  qr
12815
- ].forEach((Ie) => Ie(N, y)), N.isCompiled = !0;
12816
- let Re = null;
12817
- return typeof N.keywords == "object" && N.keywords.$pattern && (N.keywords = Object.assign({}, N.keywords), Re = N.keywords.$pattern, delete N.keywords.$pattern), Re = Re || /\w+/, N.keywords && (N.keywords = ps(N.keywords, u.case_insensitive)), x.keywordPatternRe = f(Re, !0), y && (N.begin || (N.begin = /\B|\b/), x.beginRe = f(x.begin), !N.end && !N.endsWithParent && (N.end = /\B|\b/), N.end && (x.endRe = f(x.end)), x.terminatorEnd = h(x.end) || "", N.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (N.end ? "|" : "") + y.terminatorEnd)), N.illegal && (x.illegalRe = f(
12830
+ ].forEach((Ce) => Ce(N, y)), N.isCompiled = !0;
12831
+ let De = null;
12832
+ return typeof N.keywords == "object" && N.keywords.$pattern && (N.keywords = Object.assign({}, N.keywords), De = N.keywords.$pattern, delete N.keywords.$pattern), De = De || /\w+/, N.keywords && (N.keywords = ps(N.keywords, u.case_insensitive)), x.keywordPatternRe = f(De, !0), y && (N.begin || (N.begin = /\B|\b/), x.beginRe = f(x.begin), !N.end && !N.endsWithParent && (N.end = /\B|\b/), N.end && (x.endRe = f(x.end)), x.terminatorEnd = h(x.end) || "", N.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (N.end ? "|" : "") + y.terminatorEnd)), N.illegal && (x.illegalRe = f(
12818
12833
  /** @type {RegExp | string} */
12819
12834
  N.illegal
12820
- )), N.contains || (N.contains = []), N.contains = [].concat(...N.contains.map(function(Ie) {
12821
- return rl(Ie === "self" ? N : Ie);
12822
- })), N.contains.forEach(function(Ie) {
12823
- ve(
12835
+ )), N.contains || (N.contains = []), N.contains = [].concat(...N.contains.map(function(Ce) {
12836
+ return rl(Ce === "self" ? N : Ce);
12837
+ })), N.contains.forEach(function(Ce) {
12838
+ Oe(
12824
12839
  /** @type Mode */
12825
- Ie,
12840
+ Ce,
12826
12841
  x
12827
12842
  );
12828
- }), N.starts && ve(N.starts, y), x.matcher = Ae(x), x;
12843
+ }), N.starts && Oe(N.starts, y), x.matcher = ve(x), x;
12829
12844
  }
12830
12845
  if (u.compilerExtensions || (u.compilerExtensions = []), u.contains && u.contains.includes("self"))
12831
12846
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
12832
- return u.classNameAliases = o(u.classNameAliases || {}), ve(
12847
+ return u.classNameAliases = o(u.classNameAliases || {}), Oe(
12833
12848
  /** @type Mode */
12834
12849
  u
12835
12850
  );
@@ -12850,8 +12865,8 @@ function Tg() {
12850
12865
  }
12851
12866
  const oi = n, gs = o, ms = Symbol("nomatch"), ul = 7, Ts = function(u) {
12852
12867
  const f = /* @__PURE__ */ Object.create(null), v = /* @__PURE__ */ Object.create(null), Y = [];
12853
- let Ae = !0;
12854
- const ve = "Could not find the language '{}', did you forget to load/include a language module?", N = { disableAutodetect: !0, name: "Plain text", contains: [] };
12868
+ let ve = !0;
12869
+ const Oe = "Could not find the language '{}', did you forget to load/include a language module?", N = { disableAutodetect: !0, name: "Plain text", contains: [] };
12855
12870
  let y = {
12856
12871
  ignoreUnescapedHTML: !1,
12857
12872
  throwUnescapedHTML: !1,
@@ -12867,31 +12882,31 @@ function Tg() {
12867
12882
  function x(E) {
12868
12883
  return y.noHighlightRe.test(E);
12869
12884
  }
12870
- function Re(E) {
12885
+ function De(E) {
12871
12886
  let S = E.className + " ";
12872
12887
  S += E.parentNode ? E.parentNode.className : "";
12873
12888
  const z = y.languageDetectRe.exec(S);
12874
12889
  if (z) {
12875
12890
  const le = Ct(z[1]);
12876
- return le || (ds(ve.replace("{}", z[1])), ds("Falling back to no-highlight mode for this block.", E)), le ? z[1] : "no-highlight";
12891
+ return le || (ds(Oe.replace("{}", z[1])), ds("Falling back to no-highlight mode for this block.", E)), le ? z[1] : "no-highlight";
12877
12892
  }
12878
12893
  return S.split(/\s+/).find((le) => x(le) || Ct(le));
12879
12894
  }
12880
- function Ie(E, S, z) {
12881
- let le = "", Le = "";
12882
- typeof S == "object" ? (le = E, z = S.ignoreIllegals, Le = S.language) : (Qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qt("10.7.0", `Please use highlight(code, options) instead.
12883
- https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z === void 0 && (z = !0);
12884
- const et = {
12895
+ function Ce(E, S, z) {
12896
+ let le = "", Se = "";
12897
+ typeof S == "object" ? (le = E, z = S.ignoreIllegals, Se = S.language) : (Qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qt("10.7.0", `Please use highlight(code, options) instead.
12898
+ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, le = S), z === void 0 && (z = !0);
12899
+ const tt = {
12885
12900
  code: le,
12886
- language: Le
12901
+ language: Se
12887
12902
  };
12888
- Qn("before:highlight", et);
12889
- const Nt = et.result ? et.result : vn(et.language, et.code, z);
12890
- return Nt.code = et.code, Qn("after:highlight", Nt), Nt;
12903
+ Qn("before:highlight", tt);
12904
+ const Nt = tt.result ? tt.result : vn(tt.language, tt.code, z);
12905
+ return Nt.code = tt.code, Qn("after:highlight", Nt), Nt;
12891
12906
  }
12892
12907
  function vn(E, S, z, le) {
12893
- const Le = /* @__PURE__ */ Object.create(null);
12894
- function et(b, L) {
12908
+ const Se = /* @__PURE__ */ Object.create(null);
12909
+ function tt(b, L) {
12895
12910
  return b.keywords[L];
12896
12911
  }
12897
12912
  function Nt() {
@@ -12904,14 +12919,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12904
12919
  let L = H.keywordPatternRe.exec(ce), W = "";
12905
12920
  for (; L; ) {
12906
12921
  W += ce.substring(b, L.index);
12907
- const ne = rt.case_insensitive ? L[0].toLowerCase() : L[0], Ve = et(H, ne);
12922
+ const ne = lt.case_insensitive ? L[0].toLowerCase() : L[0], Ve = tt(H, ne);
12908
12923
  if (Ve) {
12909
12924
  const [mt, Nl] = Ve;
12910
- if (Pe.addText(W), W = "", Le[ne] = (Le[ne] || 0) + 1, Le[ne] <= ul && (to += Nl), mt.startsWith("_"))
12925
+ if (Pe.addText(W), W = "", Se[ne] = (Se[ne] || 0) + 1, Se[ne] <= ul && (to += Nl), mt.startsWith("_"))
12911
12926
  W += L[0];
12912
12927
  else {
12913
- const kl = rt.classNameAliases[mt] || mt;
12914
- at(L[0], kl);
12928
+ const kl = lt.classNameAliases[mt] || mt;
12929
+ rt(L[0], kl);
12915
12930
  }
12916
12931
  } else
12917
12932
  W += L[0];
@@ -12936,7 +12951,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12936
12951
  function ze() {
12937
12952
  H.subLanguage != null ? Zn() : Nt(), ce = "";
12938
12953
  }
12939
- function at(b, L) {
12954
+ function rt(b, L) {
12940
12955
  b !== "" && (Pe.startScope(L), Pe.addText(b), Pe.endScope());
12941
12956
  }
12942
12957
  function Os(b, L) {
@@ -12947,15 +12962,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12947
12962
  W++;
12948
12963
  continue;
12949
12964
  }
12950
- const Ve = rt.classNameAliases[b[W]] || b[W], mt = L[W];
12951
- Ve ? at(mt, Ve) : (ce = mt, Nt(), ce = ""), W++;
12965
+ const Ve = lt.classNameAliases[b[W]] || b[W], mt = L[W];
12966
+ Ve ? rt(mt, Ve) : (ce = mt, Nt(), ce = ""), W++;
12952
12967
  }
12953
12968
  }
12954
12969
  function bs(b, L) {
12955
- return b.scope && typeof b.scope == "string" && Pe.openNode(rt.classNameAliases[b.scope] || b.scope), b.beginScope && (b.beginScope._wrap ? (at(ce, rt.classNameAliases[b.beginScope._wrap] || b.beginScope._wrap), ce = "") : b.beginScope._multi && (Os(b.beginScope, L), ce = "")), H = Object.create(b, { parent: { value: H } }), H;
12970
+ return b.scope && typeof b.scope == "string" && Pe.openNode(lt.classNameAliases[b.scope] || b.scope), b.beginScope && (b.beginScope._wrap ? (rt(ce, lt.classNameAliases[b.beginScope._wrap] || b.beginScope._wrap), ce = "") : b.beginScope._multi && (Os(b.beginScope, L), ce = "")), H = Object.create(b, { parent: { value: H } }), H;
12956
12971
  }
12957
12972
  function Is(b, L, W) {
12958
- let ne = ee(b.endRe, W);
12973
+ let ne = J(b.endRe, W);
12959
12974
  if (ne) {
12960
12975
  if (b["on:end"]) {
12961
12976
  const Ve = new t(b);
@@ -12985,7 +13000,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12985
13000
  if (!ne)
12986
13001
  return ms;
12987
13002
  const Ve = H;
12988
- H.endScope && H.endScope._wrap ? (ze(), at(L, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (ze(), Os(H.endScope, b)) : Ve.skip ? ce += L : (Ve.returnEnd || Ve.excludeEnd || (ce += L), ze(), Ve.excludeEnd && (ce = L));
13003
+ H.endScope && H.endScope._wrap ? (ze(), rt(L, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (ze(), Os(H.endScope, b)) : Ve.skip ? ce += L : (Ve.returnEnd || Ve.excludeEnd || (ce += L), ze(), Ve.excludeEnd && (ce = L));
12989
13004
  do
12990
13005
  H.scope && Pe.closeNode(), !H.skip && !H.subLanguage && (to += H.relevance), H = H.parent;
12991
13006
  while (H !== ne.parent);
@@ -12993,7 +13008,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12993
13008
  }
12994
13009
  function yl() {
12995
13010
  const b = [];
12996
- for (let L = H; L !== rt; L = L.parent)
13011
+ for (let L = H; L !== lt; L = L.parent)
12997
13012
  L.scope && b.unshift(L.scope);
12998
13013
  b.forEach((L) => Pe.openNode(L));
12999
13014
  }
@@ -13003,7 +13018,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13003
13018
  if (ce += b, W == null)
13004
13019
  return ze(), 0;
13005
13020
  if (eo.type === "begin" && L.type === "end" && eo.index === L.index && W === "") {
13006
- if (ce += S.slice(L.index, L.index + 1), !Ae) {
13021
+ if (ce += S.slice(L.index, L.index + 1), !ve) {
13007
13022
  const ne = new Error(`0 width match regex (${E})`);
13008
13023
  throw ne.languageName = E, ne.badRule = eo.rule, ne;
13009
13024
  }
@@ -13026,17 +13041,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13026
13041
  throw new Error("potential infinite loop, way more iterations than matches");
13027
13042
  return ce += W, W.length;
13028
13043
  }
13029
- const rt = Ct(E);
13030
- if (!rt)
13031
- throw Vt(ve.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13032
- const Cl = al(rt);
13044
+ const lt = Ct(E);
13045
+ if (!lt)
13046
+ throw Vt(Oe.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13047
+ const Cl = al(lt);
13033
13048
  let ri = "", H = le || Cl;
13034
13049
  const Cs = {}, Pe = new y.__emitter(y);
13035
13050
  yl();
13036
13051
  let ce = "", to = 0, Ft = 0, li = 0, ci = !1;
13037
13052
  try {
13038
- if (rt.__emitTokens)
13039
- rt.__emitTokens(S, Pe);
13053
+ if (lt.__emitTokens)
13054
+ lt.__emitTokens(S, Pe);
13040
13055
  else {
13041
13056
  for (H.matcher.considerAll(); ; ) {
13042
13057
  li++, ci ? ci = !1 : H.matcher.considerAll(), H.matcher.lastIndex = Ft;
@@ -13071,7 +13086,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13071
13086
  },
13072
13087
  _emitter: Pe
13073
13088
  };
13074
- if (Ae)
13089
+ if (ve)
13075
13090
  return {
13076
13091
  language: E,
13077
13092
  value: oi(S),
@@ -13100,16 +13115,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13100
13115
  (ze) => vn(ze, E, !1)
13101
13116
  );
13102
13117
  le.unshift(z);
13103
- const Le = le.sort((ze, at) => {
13104
- if (ze.relevance !== at.relevance) return at.relevance - ze.relevance;
13105
- if (ze.language && at.language) {
13106
- if (Ct(ze.language).supersetOf === at.language)
13118
+ const Se = le.sort((ze, rt) => {
13119
+ if (ze.relevance !== rt.relevance) return rt.relevance - ze.relevance;
13120
+ if (ze.language && rt.language) {
13121
+ if (Ct(ze.language).supersetOf === rt.language)
13107
13122
  return 1;
13108
- if (Ct(at.language).supersetOf === ze.language)
13123
+ if (Ct(rt.language).supersetOf === ze.language)
13109
13124
  return -1;
13110
13125
  }
13111
13126
  return 0;
13112
- }), [et, Nt] = Le, Zn = et;
13127
+ }), [tt, Nt] = Se, Zn = tt;
13113
13128
  return Zn.secondBest = Nt, Zn;
13114
13129
  }
13115
13130
  function pl(E, S, z) {
@@ -13118,7 +13133,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13118
13133
  }
13119
13134
  function ai(E) {
13120
13135
  let S = null;
13121
- const z = Re(E);
13136
+ const z = De(E);
13122
13137
  if (x(z)) return;
13123
13138
  if (Qn(
13124
13139
  "before:highlightElement",
@@ -13133,16 +13148,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13133
13148
  E.innerHTML
13134
13149
  );
13135
13150
  S = E;
13136
- const le = S.textContent, Le = z ? Ie(le, { language: z, ignoreIllegals: !0 }) : si(le);
13137
- E.innerHTML = Le.value, E.dataset.highlighted = "yes", pl(E, z, Le.language), E.result = {
13138
- language: Le.language,
13151
+ const le = S.textContent, Se = z ? Ce(le, { language: z, ignoreIllegals: !0 }) : si(le);
13152
+ E.innerHTML = Se.value, E.dataset.highlighted = "yes", pl(E, z, Se.language), E.result = {
13153
+ language: Se.language,
13139
13154
  // TODO: remove with version 11.0
13140
- re: Le.relevance,
13141
- relevance: Le.relevance
13142
- }, Le.secondBest && (E.secondBest = {
13143
- language: Le.secondBest.language,
13144
- relevance: Le.secondBest.relevance
13145
- }), Qn("after:highlightElement", { el: E, result: Le, text: le });
13155
+ re: Se.relevance,
13156
+ relevance: Se.relevance
13157
+ }, Se.secondBest && (E.secondBest = {
13158
+ language: Se.secondBest.language,
13159
+ relevance: Se.secondBest.relevance
13160
+ }), Qn("after:highlightElement", { el: E, result: Se, text: le });
13146
13161
  }
13147
13162
  function _l(E) {
13148
13163
  y = gs(y, E);
@@ -13169,7 +13184,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13169
13184
  try {
13170
13185
  z = S(u);
13171
13186
  } catch (le) {
13172
- if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), Ae)
13187
+ if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), ve)
13173
13188
  Vt(le);
13174
13189
  else
13175
13190
  throw le;
@@ -13225,7 +13240,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13225
13240
  return Qt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Qt("10.7.0", "Please use highlightElement now."), ai(E);
13226
13241
  }
13227
13242
  Object.assign(u, {
13228
- highlight: Ie,
13243
+ highlight: Ce,
13229
13244
  highlightAuto: si,
13230
13245
  highlightAll: Jn,
13231
13246
  highlightElement: ai,
@@ -13244,13 +13259,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13244
13259
  addPlugin: El,
13245
13260
  removePlugin: Al
13246
13261
  }), u.debugMode = function() {
13247
- Ae = !1;
13262
+ ve = !1;
13248
13263
  }, u.safeMode = function() {
13249
- Ae = !0;
13264
+ ve = !0;
13250
13265
  }, u.versionString = ll, u.regex = {
13251
13266
  concat: O,
13252
13267
  lookahead: g,
13253
- either: D,
13268
+ either: j,
13254
13269
  optional: I,
13255
13270
  anyNumberOfTimes: m
13256
13271
  };
@@ -13520,7 +13535,7 @@ function Ig(e) {
13520
13535
  e.BACKSLASH_ESCAPE,
13521
13536
  g
13522
13537
  ]
13523
- }, j = {
13538
+ }, U = {
13524
13539
  className: "comment",
13525
13540
  variants: [
13526
13541
  e.COMMENT(
@@ -13565,7 +13580,7 @@ function Ig(e) {
13565
13580
  e.C_BLOCK_COMMENT_MODE,
13566
13581
  e.C_LINE_COMMENT_MODE
13567
13582
  ]
13568
- }, ee = [
13583
+ }, J = [
13569
13584
  e.APOS_STRING_MODE,
13570
13585
  e.QUOTE_STRING_MODE,
13571
13586
  m,
@@ -13579,7 +13594,7 @@ function Ig(e) {
13579
13594
  // See https://github.com/highlightjs/highlight.js/issues/3288
13580
13595
  // hljs.REGEXP_MODE
13581
13596
  ];
13582
- g.contains = ee.concat({
13597
+ g.contains = J.concat({
13583
13598
  // we need to pair up {} inside our subst to prevent
13584
13599
  // it from ending too early by matching another }
13585
13600
  begin: /\{/,
@@ -13587,17 +13602,17 @@ function Ig(e) {
13587
13602
  keywords: l,
13588
13603
  contains: [
13589
13604
  "self"
13590
- ].concat(ee)
13605
+ ].concat(J)
13591
13606
  });
13592
- const fe = [].concat(j, g.contains), J = fe.concat([
13607
+ const ge = [].concat(U, g.contains), Q = ge.concat([
13593
13608
  // eat recursive parens in sub expressions
13594
13609
  {
13595
13610
  begin: /(\s*)\(/,
13596
13611
  end: /\)/,
13597
13612
  keywords: l,
13598
- contains: ["self"].concat(fe)
13613
+ contains: ["self"].concat(ge)
13599
13614
  }
13600
- ]), ke = {
13615
+ ]), Le = {
13601
13616
  className: "params",
13602
13617
  // convert this to negative lookbehind in v12
13603
13618
  begin: /(\s*)\(/,
@@ -13606,7 +13621,7 @@ function Ig(e) {
13606
13621
  excludeBegin: !0,
13607
13622
  excludeEnd: !0,
13608
13623
  keywords: l,
13609
- contains: J
13624
+ contains: Q
13610
13625
  }, $e = {
13611
13626
  variants: [
13612
13627
  // class Car extends vehicle
@@ -13692,20 +13707,20 @@ function Ig(e) {
13692
13707
  3: "title.function"
13693
13708
  },
13694
13709
  label: "func.def",
13695
- contains: [ke],
13710
+ contains: [Le],
13696
13711
  illegal: /%/
13697
- }, ge = {
13712
+ }, me = {
13698
13713
  relevance: 0,
13699
13714
  match: /\b[A-Z][A-Z_0-9]+\b/,
13700
13715
  className: "variable.constant"
13701
13716
  };
13702
- function Q(re) {
13717
+ function Z(re) {
13703
13718
  return t.concat("(?!", re.join("|"), ")");
13704
13719
  }
13705
13720
  const se = {
13706
13721
  match: t.concat(
13707
13722
  /\b/,
13708
- Q([
13723
+ Z([
13709
13724
  ...Vr,
13710
13725
  "super",
13711
13726
  "import"
@@ -13740,7 +13755,7 @@ function Ig(e) {
13740
13755
  // eat to avoid empty params
13741
13756
  begin: /\(\)/
13742
13757
  },
13743
- ke
13758
+ Le
13744
13759
  ]
13745
13760
  }, ae = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Me = {
13746
13761
  match: [
@@ -13759,7 +13774,7 @@ function Ig(e) {
13759
13774
  3: "title.function"
13760
13775
  },
13761
13776
  contains: [
13762
- ke
13777
+ Le
13763
13778
  ]
13764
13779
  };
13765
13780
  return {
@@ -13767,7 +13782,7 @@ function Ig(e) {
13767
13782
  aliases: ["js", "jsx", "mjs", "cjs"],
13768
13783
  keywords: l,
13769
13784
  // this will be extended by TypeScript
13770
- exports: { PARAMS_CONTAINS: J, CLASS_REFERENCE: B },
13785
+ exports: { PARAMS_CONTAINS: Q, CLASS_REFERENCE: B },
13771
13786
  illegal: /#(?![$_A-z])/,
13772
13787
  contains: [
13773
13788
  e.SHEBANG({
@@ -13782,7 +13797,7 @@ function Ig(e) {
13782
13797
  I,
13783
13798
  O,
13784
13799
  G,
13785
- j,
13800
+ U,
13786
13801
  // Skip numbers when they are part of a variable name
13787
13802
  { match: /\$\d+/ },
13788
13803
  h,
@@ -13799,7 +13814,7 @@ function Ig(e) {
13799
13814
  keywords: "return throw case",
13800
13815
  relevance: 0,
13801
13816
  contains: [
13802
- j,
13817
+ U,
13803
13818
  e.REGEXP_MODE,
13804
13819
  {
13805
13820
  className: "function",
@@ -13828,7 +13843,7 @@ function Ig(e) {
13828
13843
  excludeBegin: !0,
13829
13844
  excludeEnd: !0,
13830
13845
  keywords: l,
13831
- contains: J
13846
+ contains: Q
13832
13847
  }
13833
13848
  ]
13834
13849
  }
@@ -13883,7 +13898,7 @@ function Ig(e) {
13883
13898
  returnBegin: !0,
13884
13899
  label: "func.def",
13885
13900
  contains: [
13886
- ke,
13901
+ Le,
13887
13902
  e.inherit(e.TITLE_MODE, { begin: o, className: "title.function" })
13888
13903
  ]
13889
13904
  },
@@ -13903,10 +13918,10 @@ function Ig(e) {
13903
13918
  {
13904
13919
  match: [/\bconstructor(?=\s*\()/],
13905
13920
  className: { 1: "title.function" },
13906
- contains: [ke]
13921
+ contains: [Le]
13907
13922
  },
13908
13923
  se,
13909
- ge,
13924
+ me,
13910
13925
  $e,
13911
13926
  R,
13912
13927
  {
@@ -13923,14 +13938,14 @@ var yg = ht({ props: { code: { type: String, required: !0 }, language: { type: S
13923
13938
  }, function(i) {
13924
13939
  t.value = i;
13925
13940
  });
13926
- var n = Se(function() {
13941
+ var n = Be(function() {
13927
13942
  return e.autodetect || !t.value;
13928
- }), o = Se(function() {
13943
+ }), o = Be(function() {
13929
13944
  return !n.value && !vo.getLanguage(t.value);
13930
13945
  });
13931
- return { className: Se(function() {
13946
+ return { className: Be(function() {
13932
13947
  return o.value ? "" : "hljs " + t.value;
13933
- }), highlightedCode: Se(function() {
13948
+ }), highlightedCode: Be(function() {
13934
13949
  var i;
13935
13950
  if (o.value) return console.warn('The language "' + t.value + '" you specified could not be found.'), e.code.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
13936
13951
  if (n.value) {
@@ -13952,14 +13967,14 @@ const Ng = /* @__PURE__ */ ht({
13952
13967
  vo.registerLanguage("javascript", Ig);
13953
13968
  const n = Cg.component, { backgroundColor2: o } = Yo();
13954
13969
  return (i, s) => {
13955
- const a = De("v-sheet");
13956
- return Be(), ut(a, {
13970
+ const a = Ie("v-sheet");
13971
+ return Re(), pt(a, {
13957
13972
  color: X(o),
13958
13973
  width: "100%",
13959
13974
  height: "100%"
13960
13975
  }, {
13961
- default: pt(() => [
13962
- Ne(X(n), {
13976
+ default: Ze(() => [
13977
+ he(X(n), {
13963
13978
  language: "js",
13964
13979
  code: t.code
13965
13980
  }, null, 8, ["code"])
@@ -13971,7 +13986,7 @@ const Ng = /* @__PURE__ */ ht({
13971
13986
  }), kg = { class: "text-subtitle-1 ml-3" }, Lg = /* @__PURE__ */ ht({
13972
13987
  __name: "index",
13973
13988
  setup(e) {
13974
- const { t } = Kn(), { sysBarAvail: n } = Ma(), { backgroundColor0: o, backgroundColor2: i } = Yo(), s = Mt(""), a = Se(() => {
13989
+ const { t } = Kn(), { sysBarAvail: n } = Ma(), { backgroundColor0: o, backgroundColor2: i } = Yo(), s = Mt(""), a = Be(() => {
13975
13990
  let _ = 48;
13976
13991
  return n.value && (_ += 24), {
13977
13992
  position: "relative",
@@ -13982,47 +13997,47 @@ const Ng = /* @__PURE__ */ ht({
13982
13997
  s.value = _.code;
13983
13998
  }, { open: c } = Ko("sourceDlg", l);
13984
13999
  return (_, d) => {
13985
- const h = De("v-sheet"), g = De("v-icon"), m = De("v-spacer"), I = De("v-dialog");
13986
- return Be(), ut(I, {
14000
+ const h = Ie("v-sheet"), g = Ie("v-icon"), m = Ie("v-spacer"), I = Ie("v-dialog");
14001
+ return Re(), pt(I, {
13987
14002
  modelValue: X(c),
13988
14003
  "onUpdate:modelValue": d[1] || (d[1] = (O) => kn(c) ? c.value = O : null),
13989
- transition: "fade-transition",
14004
+ transition: "dialog-bottom-transition",
13990
14005
  persistent: "",
13991
14006
  "no-click-animation": "",
13992
14007
  fullscreen: "",
13993
14008
  onKeydown: d[2] || (d[2] = La(Ln((O) => c.value = !1, ["stop", "prevent"]), ["esc"]))
13994
14009
  }, {
13995
- default: pt(() => [
13996
- Ne(h, {
14010
+ default: Ze(() => [
14011
+ he(h, {
13997
14012
  color: X(o),
13998
14013
  width: "100%",
13999
14014
  height: "100%"
14000
14015
  }, {
14001
- default: pt(() => [
14002
- X(n) ? (Be(), ut(h, {
14016
+ default: Ze(() => [
14017
+ X(n) ? (Re(), pt(h, {
14003
14018
  key: 0,
14004
14019
  color: X(i),
14005
14020
  height: 24
14006
14021
  }, null, 8, ["color"])) : cn("", !0),
14007
- Ne(h, {
14022
+ he(h, {
14008
14023
  class: "d-flex align-center px-3",
14009
14024
  color: X(i),
14010
14025
  height: 48
14011
14026
  }, {
14012
- default: pt(() => [
14013
- Ne(g, {
14027
+ default: Ze(() => [
14028
+ he(g, {
14014
14029
  icon: X(Pa),
14015
14030
  onClick: d[0] || (d[0] = (O) => c.value = !1)
14016
14031
  }, null, 8, ["icon"]),
14017
- st("span", kg, wo(X(t)("x-block-lib.dlg.source.title")), 1),
14018
- Ne(m)
14032
+ at("span", kg, wo(X(t)("x-block-lib.dlg.source.title")), 1),
14033
+ he(m)
14019
14034
  ]),
14020
14035
  _: 1
14021
14036
  }, 8, ["color"]),
14022
- st("div", {
14023
- style: lt(a.value)
14037
+ at("div", {
14038
+ style: ct(a.value)
14024
14039
  }, [
14025
- Ne(Ng, { code: s.value }, null, 8, ["code"])
14040
+ he(Ng, { code: s.value }, null, 8, ["code"])
14026
14041
  ], 4)
14027
14042
  ]),
14028
14043
  _: 1