x-block-lib 0.6.1 → 0.6.3

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 +642 -637
  2. package/package.json +1 -1
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 be, 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 Ie, 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 gt, onBeforeUnmount as Oo, resolveComponent as Re, createBlock as dt, openBlock as ke, unref as X, withCtx as at, createVNode as Te, 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 ct, normalizeStyle as pt, createElementVNode as ut, toDisplayString as wo, withModifiers as Ln, Fragment as ka, renderList as Vl, withKeys as La, createCommentVNode as $t, 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 Xt, b as Vo, c as Ie, 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 Gt, m as an, 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 tn, 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 _t, 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,32 +37,32 @@ 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(() => {
48
- const h = Na(e);
49
- return Array.isArray(h) ? h.map((g) => Ss(g)) : [Ss(h)];
47
+ }, c = Be(() => {
48
+ const d = Na(e);
49
+ return Array.isArray(d) ? d.map((g) => Ss(g)) : [Ss(d)];
50
50
  }), _ = Lt(
51
51
  c,
52
- (h) => {
52
+ (d) => {
53
53
  if (l(), a.value && o) {
54
54
  s = new ResizeObserver(t);
55
- for (const g of h)
55
+ for (const g of d)
56
56
  g && s.observe(g, i);
57
57
  }
58
58
  },
59
59
  { immediate: !0, flush: "post" }
60
- ), d = () => {
60
+ ), h = () => {
61
61
  l(), _();
62
62
  };
63
- return cc(d), {
63
+ return cc(h), {
64
64
  isSupported: a,
65
- stop: d
65
+ stop: h
66
66
  };
67
67
  }
68
68
  C([
@@ -109,7 +109,7 @@ C([
109
109
  r.forBlock.app_env_v1 = function(e) {
110
110
  return [`__getEnvV1__() === ${r.quote_(e.getFieldValue("ENV"))}`, p.ATOMIC];
111
111
  };
112
- var Ua = typeof global == "object" && global && global.Object === Object && global, fc = typeof self == "object" && self && self.Object === Object && self, ft = Ua || fc || Function("return this")(), Ut = ft.Symbol, xa = Object.prototype, gc = xa.hasOwnProperty, mc = xa.toString, bn = Ut ? Ut.toStringTag : void 0;
112
+ var Ua = typeof global == "object" && global && global.Object === Object && global, fc = typeof self == "object" && self && self.Object === Object && self, mt = Ua || fc || Function("return this")(), Ut = mt.Symbol, xa = Object.prototype, gc = xa.hasOwnProperty, mc = xa.toString, bn = Ut ? Ut.toStringTag : void 0;
113
113
  function Tc(e) {
114
114
  var t = gc.call(e, bn), n = e[bn];
115
115
  try {
@@ -128,7 +128,7 @@ var Oc = "[object Null]", bc = "[object Undefined]", Bs = Ut ? Ut.toStringTag :
128
128
  function Hn(e) {
129
129
  return e == null ? e === void 0 ? bc : Oc : Bs && Bs in Object(e) ? Tc(e) : vc(e);
130
130
  }
131
- function Gt(e) {
131
+ function jt(e) {
132
132
  return e != null && typeof e == "object";
133
133
  }
134
134
  var Un = Array.isArray;
@@ -143,7 +143,7 @@ function wa(e) {
143
143
  var t = Hn(e);
144
144
  return t == yc || t == Cc || t == Ic || t == Nc;
145
145
  }
146
- var di = ft["__core-js_shared__"], Rs = function() {
146
+ var di = mt["__core-js_shared__"], Rs = function() {
147
147
  var e = /[^.]+$/.exec(di && di.keys && di.keys.IE_PROTO || "");
148
148
  return e ? "Symbol(src)_1." + e : "";
149
149
  }();
@@ -151,7 +151,7 @@ function kc(e) {
151
151
  return !!Rs && Rs in e;
152
152
  }
153
153
  var Lc = Function.prototype, Sc = Lc.toString;
154
- function Xt(e) {
154
+ function zt(e) {
155
155
  if (e != null) {
156
156
  try {
157
157
  return Sc.call(e);
@@ -171,16 +171,16 @@ function wc(e) {
171
171
  if (!$o(e) || kc(e))
172
172
  return !1;
173
173
  var t = wa(e) ? xc : Rc;
174
- return t.test(Xt(e));
174
+ return t.test(zt(e));
175
175
  }
176
176
  function Vc(e, t) {
177
177
  return e == null ? void 0 : e[t];
178
178
  }
179
- function zt(e, t) {
179
+ function qt(e, t) {
180
180
  var n = Vc(e, t);
181
181
  return wc(n) ? n : void 0;
182
182
  }
183
- var Ui = zt(ft, "WeakMap"), Ds = Object.create, Fc = /* @__PURE__ */ function() {
183
+ var Ui = qt(mt, "WeakMap"), Ds = Object.create, Fc = /* @__PURE__ */ function() {
184
184
  function e() {
185
185
  }
186
186
  return function(t) {
@@ -194,7 +194,7 @@ var Ui = zt(ft, "WeakMap"), Ds = Object.create, Fc = /* @__PURE__ */ function()
194
194
  };
195
195
  }(), Ms = function() {
196
196
  try {
197
- var e = zt(Object, "defineProperty");
197
+ var e = qt(Object, "defineProperty");
198
198
  return e({}, "", {}), e;
199
199
  } catch {
200
200
  }
@@ -244,21 +244,21 @@ function Qc(e, t) {
244
244
  }
245
245
  var Zc = "[object Arguments]";
246
246
  function Ps(e) {
247
- return Gt(e) && Hn(e) == Zc;
247
+ return jt(e) && Hn(e) == Zc;
248
248
  }
249
249
  var Ya = Object.prototype, eu = Ya.hasOwnProperty, tu = Ya.propertyIsEnumerable, nu = Ps(/* @__PURE__ */ function() {
250
250
  return arguments;
251
251
  }()) ? Ps : function(e) {
252
- return Gt(e) && eu.call(e, "callee") && !tu.call(e, "callee");
252
+ return jt(e) && eu.call(e, "callee") && !tu.call(e, "callee");
253
253
  };
254
254
  function ou() {
255
255
  return !1;
256
256
  }
257
- var Ka = typeof exports == "object" && exports && !exports.nodeType && exports, Us = Ka && typeof module == "object" && module && !module.nodeType && module, iu = Us && Us.exports === Ka, xs = iu ? ft.Buffer : void 0, su = xs ? xs.isBuffer : void 0, bo = su || ou, au = "[object Arguments]", ru = "[object Array]", lu = "[object Boolean]", cu = "[object Date]", uu = "[object Error]", pu = "[object Function]", _u = "[object Map]", du = "[object Number]", hu = "[object Object]", fu = "[object RegExp]", gu = "[object Set]", mu = "[object String]", Tu = "[object WeakMap]", Eu = "[object ArrayBuffer]", Au = "[object DataView]", vu = "[object Float32Array]", Ou = "[object Float64Array]", bu = "[object Int8Array]", Iu = "[object Int16Array]", yu = "[object Int32Array]", Cu = "[object Uint8Array]", Nu = "[object Uint8ClampedArray]", ku = "[object Uint16Array]", Lu = "[object Uint32Array]", _e = {};
257
+ var Ka = typeof exports == "object" && exports && !exports.nodeType && exports, Us = Ka && typeof module == "object" && module && !module.nodeType && module, iu = Us && Us.exports === Ka, xs = iu ? mt.Buffer : void 0, su = xs ? xs.isBuffer : void 0, bo = su || ou, au = "[object Arguments]", ru = "[object Array]", lu = "[object Boolean]", cu = "[object Date]", uu = "[object Error]", pu = "[object Function]", _u = "[object Map]", du = "[object Number]", hu = "[object Object]", fu = "[object RegExp]", gu = "[object Set]", mu = "[object String]", Tu = "[object WeakMap]", Eu = "[object ArrayBuffer]", Au = "[object DataView]", vu = "[object Float32Array]", Ou = "[object Float64Array]", bu = "[object Int8Array]", Iu = "[object Int16Array]", yu = "[object Int32Array]", Cu = "[object Uint8Array]", Nu = "[object Uint8ClampedArray]", ku = "[object Uint16Array]", Lu = "[object Uint32Array]", _e = {};
258
258
  _e[vu] = _e[Ou] = _e[bu] = _e[Iu] = _e[yu] = _e[Cu] = _e[Nu] = _e[ku] = _e[Lu] = !0;
259
259
  _e[au] = _e[ru] = _e[Eu] = _e[lu] = _e[Au] = _e[cu] = _e[uu] = _e[pu] = _e[_u] = _e[du] = _e[hu] = _e[fu] = _e[gu] = _e[mu] = _e[Tu] = !1;
260
260
  function Su(e) {
261
- return Gt(e) && Va(e.length) && !!_e[Hn(e)];
261
+ return jt(e) && Va(e.length) && !!_e[Hn(e)];
262
262
  }
263
263
  function os(e) {
264
264
  return function(t) {
@@ -299,7 +299,7 @@ function wu(e) {
299
299
  function Vu(e) {
300
300
  return qc(e) ? Mu(e) : wu(e);
301
301
  }
302
- var xn = zt(Object, "create");
302
+ var xn = qt(Object, "create");
303
303
  function Fu() {
304
304
  this.__data__ = xn ? xn(null) : {}, this.size = 0;
305
305
  }
@@ -326,18 +326,18 @@ function qu(e, t) {
326
326
  var n = this.__data__;
327
327
  return this.size += this.has(e) ? 0 : 1, n[e] = xn && t === void 0 ? zu : t, this;
328
328
  }
329
- function jt(e) {
329
+ function Wt(e) {
330
330
  var t = -1, n = e == null ? 0 : e.length;
331
331
  for (this.clear(); ++t < n; ) {
332
332
  var o = e[t];
333
333
  this.set(o[0], o[1]);
334
334
  }
335
335
  }
336
- jt.prototype.clear = Fu;
337
- jt.prototype.delete = Yu;
338
- jt.prototype.get = Gu;
339
- jt.prototype.has = Xu;
340
- jt.prototype.set = qu;
336
+ Wt.prototype.clear = Fu;
337
+ Wt.prototype.delete = Yu;
338
+ Wt.prototype.get = Gu;
339
+ Wt.prototype.has = Xu;
340
+ Wt.prototype.set = qu;
341
341
  function Ju() {
342
342
  this.__data__ = [], this.size = 0;
343
343
  }
@@ -378,12 +378,12 @@ It.prototype.delete = ep;
378
378
  It.prototype.get = tp;
379
379
  It.prototype.has = np;
380
380
  It.prototype.set = op;
381
- var wn = zt(ft, "Map");
381
+ var wn = qt(mt, "Map");
382
382
  function ip() {
383
383
  this.size = 0, this.__data__ = {
384
- hash: new jt(),
384
+ hash: new Wt(),
385
385
  map: new (wn || It)(),
386
- string: new jt()
386
+ string: new Wt()
387
387
  };
388
388
  }
389
389
  function sp(e) {
@@ -408,18 +408,18 @@ function cp(e, t) {
408
408
  var n = jo(this, e), o = n.size;
409
409
  return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
410
410
  }
411
- function qt(e) {
411
+ function Jt(e) {
412
412
  var t = -1, n = e == null ? 0 : e.length;
413
413
  for (this.clear(); ++t < n; ) {
414
414
  var o = e[t];
415
415
  this.set(o[0], o[1]);
416
416
  }
417
417
  }
418
- qt.prototype.clear = ip;
419
- qt.prototype.delete = ap;
420
- qt.prototype.get = rp;
421
- qt.prototype.has = lp;
422
- qt.prototype.set = cp;
418
+ Jt.prototype.clear = ip;
419
+ Jt.prototype.delete = ap;
420
+ Jt.prototype.get = rp;
421
+ Jt.prototype.has = lp;
422
+ Jt.prototype.set = cp;
423
423
  function up(e, t) {
424
424
  for (var n = -1, o = t.length, i = e.length; ++n < o; )
425
425
  e[i + n] = t[n];
@@ -446,7 +446,7 @@ function mp(e, t) {
446
446
  var o = n.__data__;
447
447
  if (!wn || o.length < gp - 1)
448
448
  return o.push([e, t]), this.size = ++n.size, this;
449
- n = this.__data__ = new qt(o);
449
+ n = this.__data__ = new Jt(o);
450
450
  }
451
451
  return n.set(e, t), this.size = n.size, this;
452
452
  }
@@ -459,7 +459,7 @@ At.prototype.delete = dp;
459
459
  At.prototype.get = hp;
460
460
  At.prototype.has = fp;
461
461
  At.prototype.set = mp;
462
- var ja = typeof exports == "object" && exports && !exports.nodeType && exports, Vs = ja && typeof module == "object" && module && !module.nodeType && module, Tp = Vs && Vs.exports === ja, Fs = Tp ? ft.Buffer : void 0;
462
+ var ja = typeof exports == "object" && exports && !exports.nodeType && exports, Vs = ja && typeof module == "object" && module && !module.nodeType && module, Tp = Vs && Vs.exports === ja, Fs = Tp ? mt.Buffer : void 0;
463
463
  Fs && Fs.allocUnsafe;
464
464
  function Ep(e, t) {
465
465
  return e.slice();
@@ -486,9 +486,9 @@ 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) {
491
- var t = Hn(e), n = t == Cp ? e.constructor : void 0, o = n ? Xt(n) : "";
489
+ var wi = qt(mt, "DataView"), Vi = qt(mt, "Promise"), Fi = qt(mt, "Set"), Ks = "[object Map]", Cp = "[object Object]", Hs = "[object Promise]", $s = "[object Set]", Gs = "[object WeakMap]", js = "[object DataView]", Np = zt(wi), kp = zt(wn), Lp = zt(Vi), Sp = zt(Fi), Bp = zt(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
+ var t = Hn(e), n = t == Cp ? e.constructor : void 0, o = n ? zt(n) : "";
492
492
  if (o)
493
493
  switch (o) {
494
494
  case Np:
@@ -509,7 +509,7 @@ function Mp(e) {
509
509
  var t = e.length, n = new e.constructor(t);
510
510
  return t && typeof e[0] == "string" && Dp.call(e, "index") && (n.index = e.index, n.input = e.input), n;
511
511
  }
512
- var Io = ft.Uint8Array;
512
+ var Io = mt.Uint8Array;
513
513
  function is(e) {
514
514
  var t = new e.constructor(e.byteLength);
515
515
  return new Io(t).set(new Io(e)), t;
@@ -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 jt(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 jt(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)
@@ -601,15 +601,15 @@ function ho(e, t, n, o, i, s) {
601
601
  }
602
602
  }
603
603
  s || (s = new At());
604
- var d = s.get(e);
605
- if (d)
606
- return d;
604
+ var h = s.get(e);
605
+ if (h)
606
+ return h;
607
607
  s.set(e, a), __(e) ? e.forEach(function(m) {
608
608
  a.add(ho(m, t, n, m, e, s));
609
609
  }) : c_(e) && e.forEach(function(m, I) {
610
610
  a.set(I, ho(m, t, n, I, e, s));
611
611
  });
612
- var h = xi, g = l ? void 0 : h(e);
612
+ var d = xi, g = l ? void 0 : d(e);
613
613
  return Yc(g || e, function(m, I) {
614
614
  g && (I = m, m = e[I]), Xc(a, I, ho(m, t, n, I, e, s));
615
615
  }), a;
@@ -627,7 +627,7 @@ function F_(e) {
627
627
  }
628
628
  function yo(e) {
629
629
  var t = -1, n = e == null ? 0 : e.length;
630
- for (this.__data__ = new qt(); ++t < n; )
630
+ for (this.__data__ = new Jt(); ++t < n; )
631
631
  this.add(e[t]);
632
632
  }
633
633
  yo.prototype.add = yo.prototype.push = V_;
@@ -646,14 +646,14 @@ function Ja(e, t, n, o, i, s) {
646
646
  var a = n & H_, l = e.length, c = t.length;
647
647
  if (l != c && !(a && c > l))
648
648
  return !1;
649
- var _ = s.get(e), d = s.get(t);
650
- if (_ && d)
651
- return _ == t && d == e;
652
- var h = -1, g = !0, m = n & $_ ? new yo() : void 0;
653
- for (s.set(e, t), s.set(t, e); ++h < l; ) {
654
- var I = e[h], O = t[h];
649
+ var _ = s.get(e), h = s.get(t);
650
+ if (_ && h)
651
+ return _ == t && h == e;
652
+ var d = -1, g = !0, m = n & $_ ? new yo() : void 0;
653
+ for (s.set(e, t), s.set(t, e); ++d < l; ) {
654
+ var I = e[d], O = t[d];
655
655
  if (o)
656
- var G = a ? o(O, I, h, t, e, s) : o(I, O, h, e, t, s);
656
+ var G = a ? o(O, I, d, t, e, s) : o(I, O, d, e, t, s);
657
657
  if (G !== void 0) {
658
658
  if (G)
659
659
  continue;
@@ -715,8 +715,8 @@ function ad(e, t, n, o, i, s, a) {
715
715
  if (_)
716
716
  return _ == t;
717
717
  o |= X_, a.set(e, t);
718
- var d = Ja(l(e), l(t), o, i, s, a);
719
- return a.delete(e), d;
718
+ var h = Ja(l(e), l(t), o, i, s, a);
719
+ return a.delete(e), h;
720
720
  case od:
721
721
  if (fi)
722
722
  return fi.call(e) == fi.call(t);
@@ -725,11 +725,11 @@ function ad(e, t, n, o, i, s, a) {
725
725
  }
726
726
  var rd = 1, ld = Object.prototype, cd = ld.hasOwnProperty;
727
727
  function ud(e, t, n, o, i, s) {
728
- var a = n & rd, l = xi(e), c = l.length, _ = xi(t), d = _.length;
729
- if (c != d && !a)
728
+ var a = n & rd, l = xi(e), c = l.length, _ = xi(t), h = _.length;
729
+ if (c != h && !a)
730
730
  return !1;
731
- for (var h = c; h--; ) {
732
- var g = l[h];
731
+ for (var d = c; d--; ) {
732
+ var g = l[d];
733
733
  if (!(a ? g in t : cd.call(t, g)))
734
734
  return !1;
735
735
  }
@@ -738,8 +738,8 @@ function ud(e, t, n, o, i, s) {
738
738
  return m == t && I == e;
739
739
  var O = !0;
740
740
  s.set(e, t), s.set(t, e);
741
- for (var G = a; ++h < c; ) {
742
- g = l[h];
741
+ for (var G = a; ++d < c; ) {
742
+ g = l[d];
743
743
  var D = e[g], j = t[g];
744
744
  if (o)
745
745
  var ee = a ? o(j, D, g, t, e, s) : o(D, j, g, e, t, s);
@@ -757,18 +757,18 @@ function ud(e, t, n, o, i, s) {
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
- var d = c == so, h = _ == so, g = c == _;
762
+ var h = c == so, d = _ == so, g = c == _;
763
763
  if (g && bo(e)) {
764
764
  if (!bo(t))
765
765
  return !1;
766
- a = !0, d = !1;
766
+ a = !0, h = !1;
767
767
  }
768
- if (g && !d)
768
+ if (g && !h)
769
769
  return s || (s = new At()), a || $a(e) ? Ja(e, t, n, o, i, s) : ad(e, t, c, n, o, i, s);
770
770
  if (!(n & pd)) {
771
- var m = d && ea.call(e, "__wrapped__"), I = h && ea.call(t, "__wrapped__");
771
+ var m = h && ea.call(e, "__wrapped__"), I = d && ea.call(t, "__wrapped__");
772
772
  if (m || I) {
773
773
  var O = m ? e.value() : e, G = I ? t.value() : t;
774
774
  return s || (s = new At()), i(O, G, n, o, s);
@@ -777,15 +777,15 @@ function dd(e, t, n, o, i, s) {
777
777
  return g ? (s || (s = new At()), ud(e, t, n, o, i, s)) : !1;
778
778
  }
779
779
  function Qa(e, t, n, o, i) {
780
- return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : dd(e, t, n, o, Qa, i);
780
+ return e === t ? !0 : e == null || t == null || !jt(e) && !jt(t) ? e !== e && t !== t : dd(e, t, n, o, Qa, i);
781
781
  }
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 = "";
@@ -813,8 +813,8 @@ function We(e, t) {
813
813
  return;
814
814
  let c = l.targetBlock();
815
815
  if (c) {
816
- const d = c;
817
- if (d && d.key === i && d.name === s)
816
+ const h = c;
817
+ if (h && h.key === i && h.name === s)
818
818
  return;
819
819
  c.dispose();
820
820
  }
@@ -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, _;
@@ -889,8 +889,8 @@ function Vn(e, t) {
889
889
  if (!Ke[e])
890
890
  return [];
891
891
  const l = [];
892
- return (_ = (c = n[e]) == null ? void 0 : c[s]) == null || _.forEach((d) => {
893
- t && (!d.raw.ui || d.raw.readonly || d.keys === "alias") || l.push(d);
892
+ return (_ = (c = n[e]) == null ? void 0 : c[s]) == null || _.forEach((h) => {
893
+ t && (!h.raw.ui || h.raw.readonly || h.keys === "alias") || l.push(h);
894
894
  }), l;
895
895
  }
896
896
  function un(e, t) {
@@ -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,16 +989,16 @@ 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
- var _, d;
995
+ var _, h;
996
996
  const { props: n } = V.runtime, { type: o, subtype: i } = V.app.activeObject, s = [], a = Ho(o, i);
997
997
  if (!a)
998
998
  return console.assert(!1, "invalid prop tag", o, i), s;
999
999
  const l = He(e);
1000
- return l ? Ke[l.key] ? ((d = (_ = n[l.key]) == null ? void 0 : _[a]) == null || d.forEach((h) => {
1001
- t && (!h.raw.ui || h.raw.readonly || h.keys === "alias") || s.push(h);
1000
+ return l ? Ke[l.key] ? ((h = (_ = n[l.key]) == null ? void 0 : _[a]) == null || h.forEach((d) => {
1001
+ t && (!d.raw.ui || d.raw.readonly || d.keys === "alias") || s.push(d);
1002
1002
  }), s) : (console.assert(!1, "invalid element", l.key), s) : s;
1003
1003
  }
1004
1004
  function pn(e, t) {
@@ -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
  });
@@ -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
  });
@@ -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() {
@@ -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() {
@@ -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() {
@@ -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() {
@@ -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() {
@@ -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);
@@ -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() {
@@ -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() {
@@ -3246,11 +3246,11 @@ r.forBlock.call_func_v1 = function(e) {
3246
3246
  _ += `${t}${g} = result[${m}];
3247
3247
  `;
3248
3248
  });
3249
- const d = r.statementToCode(o, "CALLBACK");
3249
+ const h = r.statementToCode(o, "CALLBACK");
3250
3250
  return `{
3251
3251
  var result = __callFuncV1__(${i}, ${s}, ${l}, __getEnv__(), ${c});
3252
3252
  ${_}
3253
- ${d}
3253
+ ${h}
3254
3254
  }
3255
3255
  `;
3256
3256
  };
@@ -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() {
@@ -3390,7 +3390,7 @@ r.forBlock.call_func_internal_v1 = function(e) {
3390
3390
  _ += `${t}${g} = result[${m}];
3391
3391
  `;
3392
3392
  });
3393
- const d = r.statementToCode(o, "CALLBACK");
3393
+ const h = r.statementToCode(o, "CALLBACK");
3394
3394
  return `{
3395
3395
  var result = __callFuncInternalV1__(${i}, ${s}, ${l});
3396
3396
  var success = result.success;
@@ -3400,7 +3400,7 @@ r.forBlock.call_func_internal_v1 = function(e) {
3400
3400
  throw 'call func<${c}> failed, reason: ' + message;
3401
3401
  }
3402
3402
  ${_}
3403
- ${d}
3403
+ ${h}
3404
3404
  }
3405
3405
  `;
3406
3406
  };
@@ -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);
@@ -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) {
@@ -3852,7 +3852,7 @@ const th = {
3852
3852
  ]),
3853
3853
  "TYPE"
3854
3854
  ), this.setMutator(
3855
- new Wt.MutatorIcon(
3855
+ new Xt.MutatorIcon(
3856
3856
  ["cond_logic_item_v1"],
3857
3857
  this
3858
3858
  )
@@ -4109,7 +4109,7 @@ const ah = {
4109
4109
  new $(() => this.genTableOpts_()),
4110
4110
  "TABLE"
4111
4111
  ), this.setMutator(
4112
- new Wt.MutatorIcon(
4112
+ new Xt.MutatorIcon(
4113
4113
  ["select_column_item_v1"],
4114
4114
  this
4115
4115
  )
@@ -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;
@@ -4287,8 +4287,8 @@ U.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++) {
4290
- const _ = n.getFieldValue("COLUMN" + c), d = n.getFieldValue("ALIAS" + c);
4291
- s.push(`{ name: ${_}, alias: ${d} }`);
4290
+ const _ = n.getFieldValue("COLUMN" + c), h = n.getFieldValue("ALIAS" + c);
4291
+ s.push(`{ name: ${_}, alias: ${h} }`);
4292
4292
  }
4293
4293
  const a = JSON.stringify(s);
4294
4294
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
@@ -4421,7 +4421,7 @@ const uh = {
4421
4421
  new $(() => this.genTableOpts_()),
4422
4422
  "TABLE"
4423
4423
  ), this.setMutator(
4424
- new Wt.MutatorIcon(
4424
+ new Xt.MutatorIcon(
4425
4425
  ["update_column_item_v1"],
4426
4426
  this
4427
4427
  )
@@ -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) {
@@ -4618,8 +4618,8 @@ U.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++) {
4621
- const _ = n.getFieldValue("COLUMN" + c), d = r.valueToCode(n, "ADD" + c, p.ATOMIC) || null;
4622
- s.push({ name: _, value: d });
4621
+ const _ = n.getFieldValue("COLUMN" + c), h = r.valueToCode(n, "ADD" + c, p.ATOMIC) || null;
4622
+ s.push({ name: _, value: h });
4623
4623
  }
4624
4624
  const a = JSON.stringify(s);
4625
4625
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
@@ -4674,7 +4674,7 @@ U.list_create_item_v1 = hh;
4674
4674
  const fh = {
4675
4675
  init: function() {
4676
4676
  this.itemCount_ = 0, this.setMutator(
4677
- new Wt.MutatorIcon(
4677
+ new Xt.MutatorIcon(
4678
4678
  ["list_create_item_v1"],
4679
4679
  this
4680
4680
  )
@@ -6288,7 +6288,7 @@ U.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(
6291
- new Wt.MutatorIcon(
6291
+ new Xt.MutatorIcon(
6292
6292
  ["object_create_item_v1"],
6293
6293
  this
6294
6294
  )
@@ -6655,7 +6655,7 @@ const Sh = {
6655
6655
  Pi.findLegalName("", this)
6656
6656
  );
6657
6657
  e.setValidator(Pi.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
6658
- new Wt.MutatorIcon(
6658
+ new Xt.MutatorIcon(
6659
6659
  ["procedure_def_item_v1"],
6660
6660
  this
6661
6661
  )
@@ -7121,7 +7121,7 @@ const Mh = k.xml, Ph = {
7121
7121
  this.removeInput("ADD" + e);
7122
7122
  }
7123
7123
  }, Uh = function() {
7124
- this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Wt.MutatorIcon(["text_join_item_v1"], this));
7124
+ this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Xt.MutatorIcon(["text_join_item_v1"], this));
7125
7125
  };
7126
7126
  Ie.registerMutator(
7127
7127
  "text_join_mutator_v1",
@@ -7374,13 +7374,13 @@ 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
  };
@@ -7665,25 +7665,25 @@ function Yh() {
7665
7665
  const No = {
7666
7666
  name: "DATA_CATEGORY",
7667
7667
  callback: Yh
7668
- }, tn = k.xml;
7668
+ }, nn = k.xml;
7669
7669
  function Kh(e) {
7670
7670
  const t = [];
7671
7671
  if (e === "flow") {
7672
7672
  {
7673
- const n = tn.createElement("block");
7673
+ const n = nn.createElement("block");
7674
7674
  n.setAttribute("type", "on_flow_state_event_v1"), t.push(n);
7675
7675
  }
7676
7676
  {
7677
- const n = tn.createElement("block");
7677
+ const n = nn.createElement("block");
7678
7678
  n.setAttribute("type", "compute_debug_trace_v1");
7679
7679
  {
7680
- const o = tn.createElement("value");
7680
+ const o = nn.createElement("value");
7681
7681
  o.setAttribute("name", "OBJECT");
7682
7682
  {
7683
- const i = tn.createElement("shadow");
7683
+ const i = nn.createElement("shadow");
7684
7684
  i.setAttribute("type", "text_v1");
7685
7685
  {
7686
- const s = tn.createElement("field");
7686
+ const s = nn.createElement("field");
7687
7687
  s.setAttribute("name", "TEXT"), i.appendChild(s);
7688
7688
  }
7689
7689
  o.appendChild(i);
@@ -7694,7 +7694,7 @@ function Kh(e) {
7694
7694
  }
7695
7695
  } else if (e === "func") {
7696
7696
  if (gn("func").length > 0) {
7697
- const n = tn.createElement("block");
7697
+ const n = nn.createElement("block");
7698
7698
  n.setAttribute("type", "call_func_internal_v1"), t.push(n);
7699
7699
  }
7700
7700
  } else
@@ -7704,37 +7704,37 @@ function Kh(e) {
7704
7704
  const ko = {
7705
7705
  name: "FLOW_CATEGORY",
7706
7706
  callback: Kh
7707
- }, Tt = k.xml;
7707
+ }, Et = k.xml;
7708
7708
  function Hh(e) {
7709
7709
  const { activeFunc: t } = V.compute, n = [];
7710
7710
  if (e === "func") {
7711
7711
  {
7712
- const o = Tt.createElement("block");
7712
+ const o = Et.createElement("block");
7713
7713
  o.setAttribute("type", "func_entry_v1"), n.push(o);
7714
7714
  }
7715
7715
  if (t.outputs.length > 0) {
7716
- const o = Tt.createElement("block");
7716
+ const o = Et.createElement("block");
7717
7717
  o.setAttribute("type", "set_func_output_v1"), n.push(o);
7718
7718
  }
7719
7719
  {
7720
- const o = Tt.createElement("block");
7720
+ const o = Et.createElement("block");
7721
7721
  o.setAttribute("type", "procedure_return_v1"), n.push(o);
7722
7722
  }
7723
7723
  if (gn("func").length > 0) {
7724
- const o = Tt.createElement("block");
7724
+ const o = Et.createElement("block");
7725
7725
  o.setAttribute("type", "call_func_internal_v1"), n.push(o);
7726
7726
  }
7727
7727
  {
7728
- const o = Tt.createElement("block");
7728
+ const o = Et.createElement("block");
7729
7729
  o.setAttribute("type", "compute_debug_trace_v1");
7730
7730
  {
7731
- const i = Tt.createElement("value");
7731
+ const i = Et.createElement("value");
7732
7732
  i.setAttribute("name", "OBJECT");
7733
7733
  {
7734
- const s = Tt.createElement("shadow");
7734
+ const s = Et.createElement("shadow");
7735
7735
  s.setAttribute("type", "text_v1");
7736
7736
  {
7737
- const a = Tt.createElement("field");
7737
+ const a = Et.createElement("field");
7738
7738
  a.setAttribute("name", "TEXT"), s.appendChild(a);
7739
7739
  }
7740
7740
  i.appendChild(s);
@@ -7745,7 +7745,7 @@ function Hh(e) {
7745
7745
  }
7746
7746
  } else if (e === "flow") {
7747
7747
  if (gn("func").length > 0) {
7748
- const o = Tt.createElement("block");
7748
+ const o = Et.createElement("block");
7749
7749
  o.setAttribute("type", "call_func_internal_v1"), n.push(o);
7750
7750
  }
7751
7751
  } else
@@ -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;
@@ -7998,7 +7998,7 @@ class Wh {
7998
7998
  return T.CROSS_TAB_COPY ? T.CROSS_TAB_COPY : "Copy";
7999
7999
  },
8000
8000
  preconditionFn: function() {
8001
- const n = sn();
8001
+ const n = an();
8002
8002
  return !n || !no(n) || !n.isDeletable() || !ui(n) || !n.isMovable() || !On(n) ? "disabled" : "enabled";
8003
8003
  },
8004
8004
  callback: function(n) {
@@ -8008,11 +8008,11 @@ class Wh {
8008
8008
  JSON.stringify((o = n.block) == null ? void 0 : o.toCopyData())
8009
8009
  );
8010
8010
  },
8011
- scopeType: $t.ScopeType.BLOCK,
8011
+ scopeType: Gt.ScopeType.BLOCK,
8012
8012
  id: "blockCopyToStorage",
8013
8013
  weight: 0
8014
8014
  };
8015
- $t.registry.register(t);
8015
+ Gt.registry.register(t);
8016
8016
  }
8017
8017
  blockPasteFromStorageContextMenu() {
8018
8018
  const t = {
@@ -8034,11 +8034,11 @@ class Wh {
8034
8034
  const i = JSON.parse(o);
8035
8035
  i && n.workspace && ks.paste(i, n.workspace);
8036
8036
  },
8037
- scopeType: $t.ScopeType.WORKSPACE,
8037
+ scopeType: Gt.ScopeType.WORKSPACE,
8038
8038
  id: "blockPasteFromStorage",
8039
8039
  weight: 0
8040
8040
  };
8041
- $t.registry.register(t);
8041
+ Gt.registry.register(t);
8042
8042
  }
8043
8043
  blockCopyToStorageShortcut() {
8044
8044
  const t = Ye.registry.createSerializedKey(
@@ -8055,12 +8055,12 @@ class Wh {
8055
8055
  preconditionFn: function(s) {
8056
8056
  if (s.options.readOnly || pi.inProgress())
8057
8057
  return !1;
8058
- const a = sn();
8058
+ const a = an();
8059
8059
  return !(!a || !no(a) || !a.isDeletable() || !ui(a) || !a.isMovable() || !On(a));
8060
8060
  },
8061
8061
  callback: function(s, a) {
8062
8062
  a.preventDefault();
8063
- const l = sn();
8063
+ const l = an();
8064
8064
  if (!l || !On(l))
8065
8065
  return !1;
8066
8066
  const c = l.toCopyData();
@@ -8085,12 +8085,12 @@ class Wh {
8085
8085
  preconditionFn: function(s) {
8086
8086
  if (s.options.readOnly || pi.inProgress())
8087
8087
  return !1;
8088
- const a = sn();
8088
+ const a = an();
8089
8089
  return !(!a || !no(a) || !a.isDeletable() || !ui(a) || !a.isMovable() || !On(a) || a.workspace.isFlyout);
8090
8090
  },
8091
8091
  callback: function(s, a) {
8092
8092
  a.preventDefault();
8093
- const l = sn();
8093
+ const l = an();
8094
8094
  if (!l || !no(l) || !l.isDeletable() || !On(l))
8095
8095
  return !1;
8096
8096
  const c = l.toCopyData();
@@ -8136,7 +8136,7 @@ class Wh {
8136
8136
  }
8137
8137
  class Xh {
8138
8138
  init() {
8139
- const t = $t.registry.getItem("cleanWorkspace");
8139
+ const t = Gt.registry.getItem("cleanWorkspace");
8140
8140
  t && (t.callback = function(n) {
8141
8141
  const o = n.workspace;
8142
8142
  if (!o)
@@ -8160,7 +8160,7 @@ function _r(e) {
8160
8160
  }
8161
8161
  class zh {
8162
8162
  init() {
8163
- const t = $t.registry.getItem("blockDisable");
8163
+ const t = Gt.registry.getItem("blockDisable");
8164
8164
  t && (t.preconditionFn = function(n) {
8165
8165
  const o = n.block;
8166
8166
  return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || _r(o) ? "disabled" : "enabled" : "hidden";
@@ -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) {
@@ -8933,7 +8933,7 @@ class dr extends _i {
8933
8933
  ), c.style.backgroundColor = o[l], o[l] === i && (c.className = "blocklyColourSelected", this.highlightedIndex = l);
8934
8934
  }
8935
8935
  this.boundEvents.push(
8936
- en.conditionalBind(
8936
+ tn.conditionalBind(
8937
8937
  s,
8938
8938
  "pointerdown",
8939
8939
  this,
@@ -8941,7 +8941,7 @@ class dr extends _i {
8941
8941
  !0
8942
8942
  )
8943
8943
  ), this.boundEvents.push(
8944
- en.conditionalBind(
8944
+ tn.conditionalBind(
8945
8945
  s,
8946
8946
  "pointermove",
8947
8947
  this,
@@ -8949,7 +8949,7 @@ class dr extends _i {
8949
8949
  !0
8950
8950
  )
8951
8951
  ), this.boundEvents.push(
8952
- en.conditionalBind(
8952
+ tn.conditionalBind(
8953
8953
  s,
8954
8954
  "pointerenter",
8955
8955
  this,
@@ -8957,7 +8957,7 @@ class dr extends _i {
8957
8957
  !0
8958
8958
  )
8959
8959
  ), this.boundEvents.push(
8960
- en.conditionalBind(
8960
+ tn.conditionalBind(
8961
8961
  s,
8962
8962
  "pointerleave",
8963
8963
  this,
@@ -8965,7 +8965,7 @@ class dr extends _i {
8965
8965
  !0
8966
8966
  )
8967
8967
  ), this.boundEvents.push(
8968
- en.conditionalBind(
8968
+ tn.conditionalBind(
8969
8969
  s,
8970
8970
  "keydown",
8971
8971
  this,
@@ -8977,7 +8977,7 @@ class dr extends _i {
8977
8977
  /** Disposes of events and DOM-references belonging to the colour editor. */
8978
8978
  dropdownDispose() {
8979
8979
  for (const n of this.boundEvents)
8980
- en.unbind(n);
8980
+ tn.unbind(n);
8981
8981
  this.boundEvents.length = 0, this.picker = null, this.highlightedIndex = null;
8982
8982
  }
8983
8983
  static fromJson(n) {
@@ -10052,7 +10052,7 @@ const zo = {
10052
10052
  custom: lr.name
10053
10053
  }
10054
10054
  ]
10055
- }, lf = /* @__PURE__ */ ht({
10055
+ }, lf = /* @__PURE__ */ gt({
10056
10056
  __name: "index",
10057
10057
  props: {
10058
10058
  lock: { type: Boolean }
@@ -10066,31 +10066,31 @@ const zo = {
10066
10066
  const i = Pt();
10067
10067
  if (!i)
10068
10068
  return;
10069
- const s = $t.registry.getItem("cleanWorkspace");
10069
+ const s = Gt.registry.getItem("cleanWorkspace");
10070
10070
  s && s.callback({ workspace: i }, new PointerEvent("dummy"));
10071
10071
  };
10072
10072
  return dn(() => {
10073
- ct.on("cleanWorkspace", o);
10073
+ _t.on("cleanWorkspace", o);
10074
10074
  }), Oo(() => {
10075
- ct.off("cleanWorkspace", o);
10075
+ _t.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 = Re("v-btn"), l = Re("v-tooltip");
10078
+ return ke(), dt(l, {
10079
10079
  text: X(t)("x-block-lib.tip.hotkeyCtrlQ")
10080
10080
  }, {
10081
- activator: pt(({ props: c }) => [
10082
- be(a, Zi(c, {
10081
+ activator: at(({ props: c }) => [
10082
+ Te(a, Zi(c, {
10083
10083
  variant: "outlined",
10084
10084
  density: "comfortable",
10085
10085
  icon: X(oc),
10086
- onClick: s[0] || (s[0] = (_) => X(ct).emit("cleanWorkspace"))
10086
+ onClick: s[0] || (s[0] = (_) => X(_t).emit("cleanWorkspace"))
10087
10087
  }), null, 16, ["icon"])
10088
10088
  ]),
10089
10089
  _: 1
10090
10090
  }, 8, ["text"]);
10091
10091
  };
10092
10092
  }
10093
- }), cf = /* @__PURE__ */ ht({
10093
+ }), cf = /* @__PURE__ */ gt({
10094
10094
  __name: "index",
10095
10095
  props: {
10096
10096
  modelValue: { type: Boolean, required: !0 },
@@ -10100,12 +10100,12 @@ const zo = {
10100
10100
  setup(e) {
10101
10101
  const { t } = Kn(), n = Di(e, "modelValue");
10102
10102
  return (o, i) => {
10103
- const s = De("v-btn"), a = De("v-tooltip");
10104
- return Be(), ut(a, {
10103
+ const s = Re("v-btn"), a = Re("v-tooltip");
10104
+ return ke(), dt(a, {
10105
10105
  text: X(t)("x-block-lib.tip.hotkeyCtrlW")
10106
10106
  }, {
10107
- activator: pt(({ props: l }) => [
10108
- be(s, Zi(l, {
10107
+ activator: at(({ props: l }) => [
10108
+ Te(s, Zi(l, {
10109
10109
  variant: "outlined",
10110
10110
  density: "comfortable",
10111
10111
  icon: n.value ? X(ac) : X(rc),
@@ -10117,7 +10117,7 @@ const zo = {
10117
10117
  };
10118
10118
  }
10119
10119
  });
10120
- var uf = Object.defineProperty, Bo = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, ra = (e, t, n) => t in e ? uf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
10120
+ var uf = Object.defineProperty, Bo = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, ra = (e, t, n) => t in e ? uf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ln = (e, t) => {
10121
10121
  for (var n in t || (t = {}))
10122
10122
  gr.call(t, n) && ra(e, n, t[n]);
10123
10123
  if (Bo)
@@ -10179,7 +10179,7 @@ function Tf(e, t, n = null) {
10179
10179
  };
10180
10180
  }
10181
10181
  function Ef(e, t) {
10182
- const n = rn({}, e);
10182
+ const n = ln({}, e);
10183
10183
  return Object.keys(t).forEach((o) => {
10184
10184
  n[o] ? n[o] = Tf(e[o], t[o]) : n[o] = t[o];
10185
10185
  }), n;
@@ -10213,7 +10213,7 @@ function da(e, t) {
10213
10213
  }
10214
10214
  return n;
10215
10215
  }
10216
- function dt(e) {
10216
+ function ft(e) {
10217
10217
  for (var t = 1; t < arguments.length; t++) {
10218
10218
  var n = arguments[t] != null ? arguments[t] : {};
10219
10219
  t % 2 ? da(Object(n), !0).forEach(function(o) {
@@ -10303,7 +10303,7 @@ function Ro(e, t) {
10303
10303
  function Nf(e) {
10304
10304
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
10305
10305
  }
10306
- function ot(e, t, n, o) {
10306
+ function it(e, t, n, o) {
10307
10307
  if (e) {
10308
10308
  n = n || document;
10309
10309
  do {
@@ -10355,14 +10355,14 @@ function br(e, t, n) {
10355
10355
  }
10356
10356
  return [];
10357
10357
  }
10358
- function _t() {
10358
+ function ht() {
10359
10359
  var e = document.scrollingElement;
10360
10360
  return e || document.documentElement;
10361
10361
  }
10362
10362
  function Ne(e, t, n, o, i) {
10363
10363
  if (!(!e.getBoundingClientRect && e !== window)) {
10364
- var s, a, l, c, _, d, h;
10365
- 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))
10364
+ var s, a, l, c, _, h, d;
10365
+ if (e !== window && e.parentNode && e !== ht() ? (s = e.getBoundingClientRect(), a = s.top, l = s.left, c = s.bottom, _ = s.right, h = s.height, d = s.width) : (a = 0, l = 0, c = window.innerHeight, _ = window.innerWidth, h = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !yt))
10366
10366
  do
10367
10367
  if (i && i.getBoundingClientRect && (M(i, "transform") !== "none" || n && M(i, "position") !== "static")) {
10368
10368
  var g = i.getBoundingClientRect();
@@ -10372,15 +10372,15 @@ function Ne(e, t, n, o, i) {
10372
10372
  while (i = i.parentNode);
10373
10373
  if (o && e !== window) {
10374
10374
  var m = _n(i || e), I = m && m.a, O = m && m.d;
10375
- m && (a /= O, l /= I, h /= I, d /= O, c = a + d, _ = l + h);
10375
+ m && (a /= O, l /= I, d /= I, h /= O, c = a + h, _ = l + d);
10376
10376
  }
10377
10377
  return {
10378
10378
  top: a,
10379
10379
  left: l,
10380
10380
  bottom: c,
10381
10381
  right: _,
10382
- width: h,
10383
- height: d
10382
+ width: d,
10383
+ height: h
10384
10384
  };
10385
10385
  }
10386
10386
  }
@@ -10389,7 +10389,7 @@ function ga(e, t, n) {
10389
10389
  var s = Ne(o)[n], a = void 0;
10390
10390
  if (a = i >= s, !a)
10391
10391
  return o;
10392
- if (o === _t())
10392
+ if (o === ht())
10393
10393
  break;
10394
10394
  o = Dt(o, !1);
10395
10395
  }
@@ -10397,7 +10397,7 @@ function ga(e, t, n) {
10397
10397
  }
10398
10398
  function mn(e, t, n, o) {
10399
10399
  for (var i = 0, s = 0, a = e.children; s < a.length; ) {
10400
- if (a[s].style.display !== "none" && a[s] !== P.ghost && (o || a[s] !== P.dragged) && ot(a[s], n.draggable, e, !1)) {
10400
+ if (a[s].style.display !== "none" && a[s] !== P.ghost && (o || a[s] !== P.dragged) && it(a[s], n.draggable, e, !1)) {
10401
10401
  if (i === t)
10402
10402
  return a[s];
10403
10403
  i++;
@@ -10420,7 +10420,7 @@ function Ze(e, t) {
10420
10420
  return n;
10421
10421
  }
10422
10422
  function ma(e) {
10423
- var t = 0, n = 0, o = _t();
10423
+ var t = 0, n = 0, o = ht();
10424
10424
  if (e)
10425
10425
  do {
10426
10426
  var i = _n(e), s = i.a, a = i.d;
@@ -10439,21 +10439,21 @@ function kf(e, t) {
10439
10439
  }
10440
10440
  function Dt(e, t) {
10441
10441
  if (!e || !e.getBoundingClientRect)
10442
- return _t();
10442
+ return ht();
10443
10443
  var n = e, o = !1;
10444
10444
  do
10445
10445
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
10446
10446
  var i = M(n);
10447
10447
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
10448
10448
  if (!n.getBoundingClientRect || n === document.body)
10449
- return _t();
10449
+ return ht();
10450
10450
  if (o || t)
10451
10451
  return n;
10452
10452
  o = !0;
10453
10453
  }
10454
10454
  }
10455
10455
  while (n = n.parentNode);
10456
- return _t();
10456
+ return ht();
10457
10457
  }
10458
10458
  function Lf(e, t) {
10459
10459
  if (e && t)
@@ -10489,7 +10489,7 @@ function Nr(e, t, n) {
10489
10489
  var o = {};
10490
10490
  return Array.from(e.children).forEach(function(i) {
10491
10491
  var s, a, l, c;
10492
- if (!(!ot(i, t.draggable, e, !1) || i.animated || i === n)) {
10492
+ if (!(!it(i, t.draggable, e, !1) || i.animated || i === n)) {
10493
10493
  var _ = Ne(i);
10494
10494
  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);
10495
10495
  }
@@ -10508,7 +10508,7 @@ function Bf() {
10508
10508
  target: o,
10509
10509
  rect: Ne(o)
10510
10510
  });
10511
- var i = dt({}, e[e.length - 1].rect);
10511
+ var i = ft({}, e[e.length - 1].rect);
10512
10512
  if (o.thisAnimationDuration) {
10513
10513
  var s = _n(o, !0);
10514
10514
  s && (i.top -= s.f, i.left -= s.e);
@@ -10534,9 +10534,9 @@ function Bf() {
10534
10534
  }
10535
10535
  var i = !1, s = 0;
10536
10536
  e.forEach(function(a) {
10537
- var l = 0, c = a.target, _ = c.fromRect, d = Ne(c), h = c.prevFromRect, g = c.prevToRect, m = a.rect, I = _n(c, !0);
10538
- 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
10539
- (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() {
10537
+ var l = 0, c = a.target, _ = c.fromRect, h = Ne(c), d = c.prevFromRect, g = c.prevToRect, m = a.rect, I = _n(c, !0);
10538
+ I && (h.top -= I.f, h.left -= I.e), c.toRect = h, c.thisAnimationDuration && bi(d, h) && !bi(_, h) && // Make sure animatingRect is on line between toRect & fromRect
10539
+ (m.top - h.top) / (m.left - h.left) === (_.top - h.top) / (_.left - h.left) && (l = Df(m, d, g, o.options)), bi(h, _) || (c.prevFromRect = _, c.prevToRect = h, l || (l = o.options.animation), o.animate(c, m, h, l)), l && (i = !0, s = Math.max(s, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
10540
10540
  c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
10541
10541
  }, l), c.thisAnimationDuration = l);
10542
10542
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -10546,8 +10546,8 @@ function Bf() {
10546
10546
  animate: function(n, o, i, s) {
10547
10547
  if (s) {
10548
10548
  M(n, "transition", ""), M(n, "transform", "");
10549
- 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);
10550
- 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() {
10549
+ var a = _n(this.el), l = a && a.a, c = a && a.d, _ = (o.left - i.left) / (l || 1), h = (o.top - i.top) / (c || 1);
10550
+ n.animatingX = !!_, n.animatingY = !!h, M(n, "transform", "translate3d(" + _ + "px," + h + "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() {
10551
10551
  M(n, "transition", ""), M(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
10552
10552
  }, s);
10553
10553
  }
@@ -10560,16 +10560,16 @@ function Rf(e) {
10560
10560
  function Df(e, t, n, o) {
10561
10561
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
10562
10562
  }
10563
- var nn = [], Ii = {
10563
+ var on = [], Ii = {
10564
10564
  initializeByDefault: !0
10565
10565
  }, Wn = {
10566
10566
  mount: function(e) {
10567
10567
  for (var t in Ii)
10568
10568
  Ii.hasOwnProperty(t) && !(t in e) && (e[t] = Ii[t]);
10569
- nn.forEach(function(n) {
10569
+ on.forEach(function(n) {
10570
10570
  if (n.pluginName === e.pluginName)
10571
10571
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
10572
- }), nn.push(e);
10572
+ }), on.push(e);
10573
10573
  },
10574
10574
  pluginEvent: function(e, t, n) {
10575
10575
  var o = this;
@@ -10577,16 +10577,16 @@ var nn = [], Ii = {
10577
10577
  o.eventCanceled = !0;
10578
10578
  };
10579
10579
  var i = e + "Global";
10580
- nn.forEach(function(s) {
10581
- t[s.pluginName] && (t[s.pluginName][i] && t[s.pluginName][i](dt({
10580
+ on.forEach(function(s) {
10581
+ t[s.pluginName] && (t[s.pluginName][i] && t[s.pluginName][i](ft({
10582
10582
  sortable: t
10583
- }, n)), t.options[s.pluginName] && t[s.pluginName][e] && t[s.pluginName][e](dt({
10583
+ }, n)), t.options[s.pluginName] && t[s.pluginName][e] && t[s.pluginName][e](ft({
10584
10584
  sortable: t
10585
10585
  }, n)));
10586
10586
  });
10587
10587
  },
10588
10588
  initializePlugins: function(e, t, n, o) {
10589
- nn.forEach(function(a) {
10589
+ on.forEach(function(a) {
10590
10590
  var l = a.pluginName;
10591
10591
  if (!(!e.options[l] && !a.initializeByDefault)) {
10592
10592
  var c = new a(e, t, e.options);
@@ -10601,26 +10601,26 @@ var nn = [], Ii = {
10601
10601
  },
10602
10602
  getEventProperties: function(e, t) {
10603
10603
  var n = {};
10604
- return nn.forEach(function(o) {
10604
+ return on.forEach(function(o) {
10605
10605
  typeof o.eventProperties == "function" && bt(n, o.eventProperties.call(t[o.pluginName], e));
10606
10606
  }), n;
10607
10607
  },
10608
10608
  modifyOption: function(e, t, n) {
10609
10609
  var o;
10610
- return nn.forEach(function(i) {
10610
+ return on.forEach(function(i) {
10611
10611
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (o = i.optionListeners[t].call(e[i.pluginName], n));
10612
10612
  }), o;
10613
10613
  }
10614
10614
  };
10615
10615
  function Mf(e) {
10616
- 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;
10616
+ 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, h = e.oldDraggableIndex, d = e.newDraggableIndex, g = e.originalEvent, m = e.putSortable, I = e.extraEventProperties;
10617
10617
  if (t = t || n && n[Qe], !!t) {
10618
10618
  var O, G = t.options, D = "on" + o.charAt(0).toUpperCase() + o.substr(1);
10619
10619
  window.CustomEvent && !yt && !jn ? O = new CustomEvent(o, {
10620
10620
  bubbles: !0,
10621
10621
  cancelable: !0
10622
- }) : (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;
10623
- var j = dt(dt({}, I), Wn.getEventProperties(o, t));
10622
+ }) : (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 = h, O.newDraggableIndex = d, O.originalEvent = g, O.pullMode = m ? m.lastPutMode : void 0;
10623
+ var j = ft(ft({}, I), Wn.getEventProperties(o, t));
10624
10624
  for (var ee in j)
10625
10625
  O[ee] = j[ee];
10626
10626
  n && n.dispatchEvent(O), G[D] && G[D].call(t, O);
@@ -10628,7 +10628,7 @@ function Mf(e) {
10628
10628
  }
10629
10629
  var Pf = ["evt"], je = function(e, t) {
10630
10630
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = yf(n, Pf);
10631
- Wn.pluginEvent.bind(P)(e, t, dt({
10631
+ Wn.pluginEvent.bind(P)(e, t, ft({
10632
10632
  dragEl: A,
10633
10633
  parentEl: me,
10634
10634
  ghostEl: K,
@@ -10641,7 +10641,7 @@ var Pf = ["evt"], je = function(e, t) {
10641
10641
  putSortable: Ue,
10642
10642
  activeSortable: P.active,
10643
10643
  originalEvent: o,
10644
- oldIndex: ln,
10644
+ oldIndex: cn,
10645
10645
  oldDraggableIndex: Dn,
10646
10646
  newIndex: Je,
10647
10647
  newDraggableIndex: kt,
@@ -10663,18 +10663,18 @@ var Pf = ["evt"], je = function(e, t) {
10663
10663
  }, i));
10664
10664
  };
10665
10665
  function Ge(e) {
10666
- Mf(dt({
10666
+ Mf(ft({
10667
10667
  putSortable: Ue,
10668
10668
  cloneEl: he,
10669
10669
  targetEl: A,
10670
10670
  rootEl: de,
10671
- oldIndex: ln,
10671
+ oldIndex: cn,
10672
10672
  oldDraggableIndex: Dn,
10673
10673
  newIndex: Je,
10674
10674
  newDraggableIndex: kt
10675
10675
  }, e));
10676
10676
  }
10677
- 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() {
10677
+ var A, me, K, de, Ht, mo, he, St, cn, Je, Dn, kt, ro, Ue, rn = !1, Do = !1, Mo = [], Yt, ot, yi, Ci, Ta, Ea, yn, sn, 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() {
10678
10678
  if (ni) {
10679
10679
  if (yt)
10680
10680
  return !1;
@@ -10688,8 +10688,8 @@ var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo =
10688
10688
  if (n.display === "grid")
10689
10689
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
10690
10690
  if (i && a.float && a.float !== "none") {
10691
- var d = a.float === "left" ? "left" : "right";
10692
- return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
10691
+ var h = a.float === "left" ? "left" : "right";
10692
+ return s && (l.clear === "both" || l.clear === h) ? "vertical" : "horizontal";
10693
10693
  }
10694
10694
  return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= o && n[Aa] === "none" || s && n[Aa] === "none" && c + _ > o) ? "vertical" : "horizontal";
10695
10695
  }, xf = function(e, t, n) {
@@ -10708,8 +10708,8 @@ var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo =
10708
10708
  }, Sr = function(e) {
10709
10709
  function t(i, s) {
10710
10710
  return function(a, l, c, _) {
10711
- var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
10712
- if (i == null && (s || d))
10711
+ var h = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
10712
+ if (i == null && (s || h))
10713
10713
  return !0;
10714
10714
  if (i == null || i === !1)
10715
10715
  return !1;
@@ -10717,8 +10717,8 @@ var A, me, K, de, Ht, mo, he, St, ln, Je, Dn, kt, ro, Ue, an = !1, Do = !1, Mo =
10717
10717
  return i;
10718
10718
  if (typeof i == "function")
10719
10719
  return t(i(a, l, c, _), s)(a, l, c, _);
10720
- var h = (s ? a : l).options.group.name;
10721
- return i === !0 || typeof i == "string" && i === h || i.join && i.indexOf(h) > -1;
10720
+ var d = (s ? a : l).options.group.name;
10721
+ return i === !0 || typeof i == "string" && i === d || i.join && i.indexOf(d) > -1;
10722
10722
  };
10723
10723
  }
10724
10724
  var n = {}, o = e.group;
@@ -10809,7 +10809,7 @@ P.prototype = /** @lends Sortable.prototype */
10809
10809
  {
10810
10810
  constructor: P,
10811
10811
  _isOutsideThisEl: function(e) {
10812
- !this.el.contains(e) && e !== this.el && (on = null);
10812
+ !this.el.contains(e) && e !== this.el && (sn = null);
10813
10813
  },
10814
10814
  _getDirection: function(e, t) {
10815
10815
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, A) : this.options.direction;
@@ -10817,8 +10817,8 @@ P.prototype = /** @lends Sortable.prototype */
10817
10817
  _onTapStart: function(e) {
10818
10818
  if (e.cancelable) {
10819
10819
  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;
10820
- 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)) {
10821
- if (ln = Ze(l), Dn = Ze(l, o.draggable), typeof _ == "function") {
10820
+ 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)) {
10821
+ if (cn = Ze(l), Dn = Ze(l, o.draggable), typeof _ == "function") {
10822
10822
  if (_.call(this, e, l, this)) {
10823
10823
  Ge({
10824
10824
  sortable: t,
@@ -10832,11 +10832,11 @@ P.prototype = /** @lends Sortable.prototype */
10832
10832
  }), i && e.cancelable && e.preventDefault();
10833
10833
  return;
10834
10834
  }
10835
- } else if (_ && (_ = _.split(",").some(function(d) {
10836
- if (d = ot(c, d.trim(), n, !1), d)
10835
+ } else if (_ && (_ = _.split(",").some(function(h) {
10836
+ if (h = it(c, h.trim(), n, !1), h)
10837
10837
  return Ge({
10838
10838
  sortable: t,
10839
- rootEl: d,
10839
+ rootEl: h,
10840
10840
  name: "filter",
10841
10841
  targetEl: l,
10842
10842
  fromEl: n,
@@ -10848,7 +10848,7 @@ P.prototype = /** @lends Sortable.prototype */
10848
10848
  i && e.cancelable && e.preventDefault();
10849
10849
  return;
10850
10850
  }
10851
- o.handle && !ot(c, o.handle, n, !1) || this._prepareDragStart(e, a, l);
10851
+ o.handle && !it(c, o.handle, n, !1) || this._prepareDragStart(e, a, l);
10852
10852
  }
10853
10853
  }
10854
10854
  },
@@ -10907,7 +10907,7 @@ P.prototype = /** @lends Sortable.prototype */
10907
10907
  }
10908
10908
  },
10909
10909
  _dragStarted: function(e, t) {
10910
- if (an = !1, de && A) {
10910
+ if (rn = !1, de && A) {
10911
10911
  je("dragStarted", this, {
10912
10912
  evt: t
10913
10913
  }), this.nativeDraggable && te(document, "dragover", Vf);
@@ -10921,17 +10921,17 @@ P.prototype = /** @lends Sortable.prototype */
10921
10921
  this._nulling();
10922
10922
  },
10923
10923
  _emulateDragOver: function() {
10924
- if (nt) {
10925
- this._lastX = nt.clientX, this._lastY = nt.clientY, Br();
10926
- for (var e = document.elementFromPoint(nt.clientX, nt.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(nt.clientX, nt.clientY), e !== t); )
10924
+ if (ot) {
10925
+ this._lastX = ot.clientX, this._lastY = ot.clientY, Br();
10926
+ for (var e = document.elementFromPoint(ot.clientX, ot.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ot.clientX, ot.clientY), e !== t); )
10927
10927
  t = e;
10928
10928
  if (A.parentNode[Qe]._isOutsideThisEl(e), t)
10929
10929
  do {
10930
10930
  if (t[Qe]) {
10931
10931
  var n = void 0;
10932
10932
  if (n = t[Qe]._onDragOver({
10933
- clientX: nt.clientX,
10934
- clientY: nt.clientY,
10933
+ clientX: ot.clientX,
10934
+ clientY: ot.clientY,
10935
10935
  target: e,
10936
10936
  rootEl: t
10937
10937
  }), n && !this.options.dragoverBubble)
@@ -10944,23 +10944,23 @@ P.prototype = /** @lends Sortable.prototype */
10944
10944
  },
10945
10945
  _onTouchMove: function(e) {
10946
10946
  if (Yt) {
10947
- 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);
10948
- if (!P.active && !an) {
10947
+ 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), h = (i.clientY - Yt.clientY + o.y) / (l || 1) + (c ? c[1] - Ni[1] : 0) / (l || 1);
10948
+ if (!P.active && !rn) {
10949
10949
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
10950
10950
  return;
10951
10951
  this._onDragStart(e, !0);
10952
10952
  }
10953
10953
  if (K) {
10954
- s ? (s.e += _ - (yi || 0), s.f += d - (Ci || 0)) : s = {
10954
+ s ? (s.e += _ - (yi || 0), s.f += h - (Ci || 0)) : s = {
10955
10955
  a: 1,
10956
10956
  b: 0,
10957
10957
  c: 0,
10958
10958
  d: 1,
10959
10959
  e: _,
10960
- f: d
10960
+ f: h
10961
10961
  };
10962
- var h = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
10963
- M(K, "webkitTransform", h), M(K, "mozTransform", h), M(K, "msTransform", h), M(K, "transform", h), yi = _, Ci = d, nt = i;
10962
+ var d = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
10963
+ M(K, "webkitTransform", d), M(K, "mozTransform", d), M(K, "msTransform", d), M(K, "transform", d), yi = _, Ci = h, ot = i;
10964
10964
  }
10965
10965
  e.cancelable && e.preventDefault();
10966
10966
  }
@@ -10971,7 +10971,7 @@ P.prototype = /** @lends Sortable.prototype */
10971
10971
  if (co) {
10972
10972
  for (Fe = e; M(Fe, "position") === "static" && M(Fe, "transform") === "none" && Fe !== document; )
10973
10973
  Fe = Fe.parentNode;
10974
- Fe !== document.body && Fe !== document.documentElement ? (Fe === document && (Fe = _t()), t.top += Fe.scrollTop, t.left += Fe.scrollLeft) : Fe = _t(), Ni = ma(Fe);
10974
+ Fe !== document.body && Fe !== document.documentElement ? (Fe === document && (Fe = ht()), t.top += Fe.scrollTop, t.left += Fe.scrollLeft) : Fe = ht(), Ni = ma(Fe);
10975
10975
  }
10976
10976
  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 + "%");
10977
10977
  }
@@ -10989,40 +10989,40 @@ P.prototype = /** @lends Sortable.prototype */
10989
10989
  sortable: n,
10990
10990
  name: "clone"
10991
10991
  }));
10992
- }), !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");
10992
+ }), !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)")), rn = !0, n._dragStartId = Eo(n._dragStarted.bind(n, t, e)), te(document, "selectstart", n), yn = !0, Bn && M(document.body, "user-select", "none");
10993
10993
  },
10994
10994
  // Returns true - if no further action is needed (either inserted or another condition)
10995
10995
  _onDragOver: function(e) {
10996
- 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;
10996
+ var t = this.el, n = e.target, o, i, s, a = this.options, l = a.group, c = P.active, _ = ro === l, h = a.sort, d = Ue || c, g, m = this, I = !1;
10997
10997
  if (Xi)
10998
10998
  return;
10999
10999
  function O(Me, re) {
11000
- je(Me, m, dt({
11000
+ je(Me, m, ft({
11001
11001
  evt: e,
11002
11002
  isOwner: _,
11003
11003
  axis: g ? "vertical" : "horizontal",
11004
11004
  revert: s,
11005
11005
  dragRect: o,
11006
11006
  targetRect: i,
11007
- canSort: d,
11008
- fromSortable: h,
11007
+ canSort: h,
11008
+ fromSortable: d,
11009
11009
  target: n,
11010
11010
  completed: D,
11011
- onMove: function(Xe, gt) {
11012
- return uo(de, t, A, o, Xe, Ne(Xe), e, gt);
11011
+ onMove: function(Xe, et) {
11012
+ return uo(de, t, A, o, Xe, Ne(Xe), e, et);
11013
11013
  },
11014
11014
  changed: j
11015
11015
  }, re));
11016
11016
  }
11017
11017
  function G() {
11018
- O("dragOverAnimationCapture"), m.captureAnimationState(), m !== h && h.captureAnimationState();
11018
+ O("dragOverAnimationCapture"), m.captureAnimationState(), m !== d && d.captureAnimationState();
11019
11019
  }
11020
11020
  function D(Me) {
11021
11021
  return O("dragOverCompleted", {
11022
11022
  insertion: Me
11023
- }), 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() {
11023
+ }), Me && (_ ? c._hideClone() : c._showClone(m), m !== d && (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), d === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
11024
11024
  O("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
11025
- }), 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;
11025
+ }), m !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === A && !A.animated || n === t && !n.animated) && (sn = null), !a.dragoverBubble && !e.rootEl && n !== document && (A.parentNode[Qe]._isOutsideThisEl(e.target), !Me && Kt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), I = !0;
11026
11026
  }
11027
11027
  function j() {
11028
11028
  Je = Ze(A), kt = Ze(A, a.draggable), Ge({
@@ -11034,11 +11034,11 @@ P.prototype = /** @lends Sortable.prototype */
11034
11034
  originalEvent: e
11035
11035
  });
11036
11036
  }
11037
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ot(n, a.draggable, t, !0), O("dragOver"), P.eventCanceled)
11037
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = it(n, a.draggable, t, !0), O("dragOver"), P.eventCanceled)
11038
11038
  return I;
11039
11039
  if (A.contains(e.target) || n.animated && n.animatingX && n.animatingY || m._ignoreWhileAnimating === n)
11040
11040
  return D(!1);
11041
- 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))) {
11041
+ if (Do = !1, c && !a.disabled && (_ ? h || (s = me !== de) : Ue === this || (this.lastPutMode = ro.checkPull(this, c, A, e)) && l.checkPut(this, c, A, e))) {
11042
11042
  if (g = this._getDirection(e, n) === "vertical", o = Ne(A), O("dragOverValid"), P.eventCanceled)
11043
11043
  return I;
11044
11044
  if (s)
@@ -11057,8 +11057,8 @@ P.prototype = /** @lends Sortable.prototype */
11057
11057
  return G(), t.insertBefore(A, fe), me = t, j(), D(!0);
11058
11058
  } else if (n.parentNode === t) {
11059
11059
  i = Ne(n);
11060
- 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;
11061
- 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);
11060
+ var J = 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"), ge = ie ? ie.scrollTop : void 0;
11061
+ sn !== n && (Le = 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, sn === n);
11062
11062
  var Q;
11063
11063
  if (J !== 0) {
11064
11064
  var se = Ze(A);
@@ -11068,12 +11068,12 @@ P.prototype = /** @lends Sortable.prototype */
11068
11068
  }
11069
11069
  if (J === 0 || Q === n)
11070
11070
  return D(!1);
11071
- on = n, Mn = J;
11071
+ sn = n, Mn = J;
11072
11072
  var oe = n.nextElementSibling, R = !1;
11073
11073
  R = J === 1;
11074
11074
  var ae = uo(de, t, A, o, n, i, e, R);
11075
11075
  if (ae !== !1)
11076
- 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 - Ne(n)[F])), j(), D(!0);
11076
+ 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, Le !== void 0 && !lo && (To = Math.abs(Le - Ne(n)[F])), j(), D(!0);
11077
11077
  }
11078
11078
  if (t.contains(A))
11079
11079
  return D(!1);
@@ -11096,7 +11096,7 @@ P.prototype = /** @lends Sortable.prototype */
11096
11096
  this._nulling();
11097
11097
  return;
11098
11098
  }
11099
- 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({
11099
+ rn = !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 && !rn && qe(A, Ue ? Ue.options.ghostClass : this.options.ghostClass, !1), qe(A, this.options.chosenClass, !1), Ge({
11100
11100
  sortable: this,
11101
11101
  name: "unchoose",
11102
11102
  toEl: me,
@@ -11125,7 +11125,7 @@ P.prototype = /** @lends Sortable.prototype */
11125
11125
  name: "sort",
11126
11126
  toEl: me,
11127
11127
  originalEvent: e
11128
- })), Ue && Ue.save()) : Je !== ln && Je >= 0 && (Ge({
11128
+ })), Ue && Ue.save()) : Je !== cn && Je >= 0 && (Ge({
11129
11129
  sortable: this,
11130
11130
  name: "update",
11131
11131
  toEl: me,
@@ -11135,7 +11135,7 @@ P.prototype = /** @lends Sortable.prototype */
11135
11135
  name: "sort",
11136
11136
  toEl: me,
11137
11137
  originalEvent: e
11138
- })), P.active && ((Je == null || Je === -1) && (Je = ln, kt = Dn), Ge({
11138
+ })), P.active && ((Je == null || Je === -1) && (Je = cn, kt = Dn), Ge({
11139
11139
  sortable: this,
11140
11140
  name: "end",
11141
11141
  toEl: me,
@@ -11143,7 +11143,7 @@ P.prototype = /** @lends Sortable.prototype */
11143
11143
  }), this.save()))), this._nulling();
11144
11144
  },
11145
11145
  _nulling: function() {
11146
- 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) {
11146
+ je("nulling", this), de = A = me = K = Ht = he = mo = St = Yt = ot = yn = Je = kt = cn = Dn = sn = Mn = Ue = ro = P.dragged = P.ghost = P.clone = P.active = null, Po.forEach(function(e) {
11147
11147
  e.checked = !0;
11148
11148
  }), Po.length = yi = Ci = 0;
11149
11149
  },
@@ -11168,7 +11168,7 @@ P.prototype = /** @lends Sortable.prototype */
11168
11168
  */
11169
11169
  toArray: function() {
11170
11170
  for (var e = [], t, n = this.el.children, o = 0, i = n.length, s = this.options; o < i; o++)
11171
- t = n[o], ot(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || jf(t));
11171
+ t = n[o], it(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || jf(t));
11172
11172
  return e;
11173
11173
  },
11174
11174
  /**
@@ -11179,7 +11179,7 @@ P.prototype = /** @lends Sortable.prototype */
11179
11179
  var n = {}, o = this.el;
11180
11180
  this.toArray().forEach(function(i, s) {
11181
11181
  var a = o.children[s];
11182
- ot(a, this.options.draggable, o, !1) && (n[i] = a);
11182
+ it(a, this.options.draggable, o, !1) && (n[i] = a);
11183
11183
  }, this), t && this.captureAnimationState(), e.forEach(function(i) {
11184
11184
  n[i] && (o.removeChild(n[i]), o.appendChild(n[i]));
11185
11185
  }), t && this.animateAll();
@@ -11198,7 +11198,7 @@ P.prototype = /** @lends Sortable.prototype */
11198
11198
  * @returns {HTMLElement|null}
11199
11199
  */
11200
11200
  closest: function(e, t) {
11201
- return ot(e, t || this.options.draggable, this.el, !1);
11201
+ return it(e, t || this.options.draggable, this.el, !1);
11202
11202
  },
11203
11203
  /**
11204
11204
  * Set/get option
@@ -11246,11 +11246,11 @@ function Ff(e) {
11246
11246
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
11247
11247
  }
11248
11248
  function uo(e, t, n, o, i, s, a, l) {
11249
- var c, _ = e[Qe], d = _.options.onMove, h;
11249
+ var c, _ = e[Qe], h = _.options.onMove, d;
11250
11250
  return window.CustomEvent && !yt && !jn ? c = new CustomEvent("move", {
11251
11251
  bubbles: !0,
11252
11252
  cancelable: !0
11253
- }) : (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 || Ne(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), d && (h = d.call(_, c, a)), h;
11253
+ }) : (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 || Ne(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), h && (d = h.call(_, c, a)), d;
11254
11254
  }
11255
11255
  function ki(e) {
11256
11256
  e.draggable = !1;
@@ -11267,17 +11267,17 @@ function Hf(e, t, n) {
11267
11267
  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;
11268
11268
  }
11269
11269
  function $f(e, t, n, o, i, s, a, l) {
11270
- var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, d = o ? n.top : n.left, h = o ? n.bottom : n.right, g = !1;
11270
+ var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, h = o ? n.top : n.left, d = o ? n.bottom : n.right, g = !1;
11271
11271
  if (!a) {
11272
11272
  if (l && To < _ * i) {
11273
- if (!Pn && (Mn === 1 ? c > d + _ * s / 2 : c < h - _ * s / 2) && (Pn = !0), Pn)
11273
+ if (!Pn && (Mn === 1 ? c > h + _ * s / 2 : c < d - _ * s / 2) && (Pn = !0), Pn)
11274
11274
  g = !0;
11275
- else if (Mn === 1 ? c < d + To : c > h - To)
11275
+ else if (Mn === 1 ? c < h + To : c > d - To)
11276
11276
  return -Mn;
11277
- } else if (c > d + _ * (1 - i) / 2 && c < h - _ * (1 - i) / 2)
11277
+ } else if (c > h + _ * (1 - i) / 2 && c < d - _ * (1 - i) / 2)
11278
11278
  return Gf(t);
11279
11279
  }
11280
- return g = g || a, g && (c < d + _ * s / 2 || c > h - _ * s / 2) ? c > d + _ / 2 ? 1 : -1 : 0;
11280
+ return g = g || a, g && (c < h + _ * s / 2 || c > d - _ * s / 2) ? c > h + _ / 2 ? 1 : -1 : 0;
11281
11281
  }
11282
11282
  function Gf(e) {
11283
11283
  return Ze(A) < Ze(e) ? 1 : -1;
@@ -11301,7 +11301,7 @@ function zi(e) {
11301
11301
  return clearTimeout(e);
11302
11302
  }
11303
11303
  ni && te(document, "touchmove", function(e) {
11304
- (P.active || an) && e.cancelable && e.preventDefault();
11304
+ (P.active || rn) && e.cancelable && e.preventDefault();
11305
11305
  });
11306
11306
  P.utils = {
11307
11307
  on: te,
@@ -11309,11 +11309,11 @@ P.utils = {
11309
11309
  css: M,
11310
11310
  find: br,
11311
11311
  is: function(e, t) {
11312
- return !!ot(e, t, e, !1);
11312
+ return !!it(e, t, e, !1);
11313
11313
  },
11314
11314
  extend: Lf,
11315
11315
  throttle: Ir,
11316
- closest: ot,
11316
+ closest: it,
11317
11317
  toggleClass: qe,
11318
11318
  clone: Cr,
11319
11319
  index: Ze,
@@ -11331,7 +11331,7 @@ P.mount = function() {
11331
11331
  t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
11332
11332
  if (!o.prototype || !o.prototype.constructor)
11333
11333
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
11334
- o.utils && (P.utils = dt(dt({}, P.utils), o.utils)), Wn.mount(o);
11334
+ o.utils && (P.utils = ft(ft({}, P.utils), o.utils)), Wn.mount(o);
11335
11335
  });
11336
11336
  };
11337
11337
  P.create = function(e, t) {
@@ -11379,7 +11379,7 @@ function Xf() {
11379
11379
  c !== l && (l = c, Ao()), Bi(t, o.options, c, n);
11380
11380
  }, 10), Li = i, Si = s);
11381
11381
  } else {
11382
- if (!this.options.bubbleScroll || Dt(a, !0) === _t()) {
11382
+ if (!this.options.bubbleScroll || Dt(a, !0) === ht()) {
11383
11383
  Ao();
11384
11384
  return;
11385
11385
  }
@@ -11401,23 +11401,23 @@ function va() {
11401
11401
  }
11402
11402
  var Bi = Ir(function(e, t, n, o) {
11403
11403
  if (t.scroll) {
11404
- var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, c = _t(), _ = !1, d;
11405
- qi !== n && (qi = n, Ao(), Cn = t.scroll, d = t.scrollFn, Cn === !0 && (Cn = Dt(n, !0)));
11406
- var h = 0, g = Cn;
11404
+ var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, c = ht(), _ = !1, h;
11405
+ qi !== n && (qi = n, Ao(), Cn = t.scroll, h = t.scrollFn, Cn === !0 && (Cn = Dt(n, !0)));
11406
+ var d = 0, g = Cn;
11407
11407
  do {
11408
- var m = g, I = Ne(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;
11409
- 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"));
11410
- 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);
11411
- if (!Ce[h])
11412
- for (var oe = 0; oe <= h; oe++)
11408
+ var m = g, I = Ne(m), O = I.top, G = I.bottom, D = I.left, j = I.right, ee = I.width, fe = I.height, J = void 0, Le = void 0, $e = m.scrollWidth, B = m.scrollHeight, F = M(m), ie = m.scrollLeft, ge = m.scrollTop;
11409
+ m === c ? (J = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), Le = fe < B && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (J = ee < $e && (F.overflowX === "auto" || F.overflowX === "scroll"), Le = fe < B && (F.overflowY === "auto" || F.overflowY === "scroll"));
11410
+ var Q = J && (Math.abs(j - i) <= a && ie + ee < $e) - (Math.abs(D - i) <= a && !!ie), se = Le && (Math.abs(G - s) <= a && ge + fe < B) - (Math.abs(O - s) <= a && !!ge);
11411
+ if (!Ce[d])
11412
+ for (var oe = 0; oe <= d; oe++)
11413
11413
  Ce[oe] || (Ce[oe] = {});
11414
- (Ce[h].vx != Q || Ce[h].vy != se || Ce[h].el !== m) && (Ce[h].el = m, Ce[h].vx = Q, Ce[h].vy = se, clearInterval(Ce[h].pid), (Q != 0 || se != 0) && (_ = !0, Ce[h].pid = setInterval((function() {
11414
+ (Ce[d].vx != Q || Ce[d].vy != se || Ce[d].el !== m) && (Ce[d].el = m, Ce[d].vx = Q, Ce[d].vy = se, clearInterval(Ce[d].pid), (Q != 0 || se != 0) && (_ = !0, Ce[d].pid = setInterval((function() {
11415
11415
  o && this.layer === 0 && P.active._onTouchMove(Uo);
11416
11416
  var R = Ce[this.layer].vy ? Ce[this.layer].vy * l : 0, ae = Ce[this.layer].vx ? Ce[this.layer].vx * l : 0;
11417
- typeof d == "function" && d.call(P.dragged.parentNode[Qe], ae, R, e, Uo, Ce[this.layer].el) !== "continue" || yr(Ce[this.layer].el, ae, R);
11417
+ typeof h == "function" && h.call(P.dragged.parentNode[Qe], ae, R, e, Uo, Ce[this.layer].el) !== "continue" || yr(Ce[this.layer].el, ae, R);
11418
11418
  }).bind({
11419
- layer: h
11420
- }), 24))), h++;
11419
+ layer: d
11420
+ }), 24))), d++;
11421
11421
  } while (t.bubbleScroll && g !== c && (g = Dt(g, !1)));
11422
11422
  Ji = _;
11423
11423
  }
@@ -11426,8 +11426,8 @@ var Bi = Ir(function(e, t, n, o) {
11426
11426
  if (t) {
11427
11427
  var c = n || i;
11428
11428
  a();
11429
- var _ = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, d = document.elementFromPoint(_.clientX, _.clientY);
11430
- l(), c && !c.el.contains(d) && (s("spill"), this.onSpill({
11429
+ var _ = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, h = document.elementFromPoint(_.clientX, _.clientY);
11430
+ l(), c && !c.el.contains(h) && (s("spill"), this.onSpill({
11431
11431
  dragEl: o,
11432
11432
  putSortable: n
11433
11433
  }));
@@ -11496,14 +11496,14 @@ function Zf(...e) {
11496
11496
  let c = null;
11497
11497
  const {
11498
11498
  immediate: _ = !0,
11499
- clone: d = zf,
11500
- customUpdate: h
11499
+ clone: h = zf,
11500
+ customUpdate: d
11501
11501
  } = (n = X(l)) != null ? n : {};
11502
11502
  function g(B) {
11503
11503
  var F;
11504
11504
  const { from: ie, oldIndex: ge, item: Q } = B;
11505
11505
  i = Array.from(ie.childNodes);
11506
- const se = X((F = X(a)) == null ? void 0 : F[ge]), oe = d(se);
11506
+ const se = X((F = X(a)) == null ? void 0 : F[ge]), oe = h(se);
11507
11507
  Oa(se, oe), Q[ba] = oe;
11508
11508
  }
11509
11509
  function m(B) {
@@ -11531,8 +11531,8 @@ function Zf(...e) {
11531
11531
  ca(X(a), Q);
11532
11532
  }
11533
11533
  function O(B) {
11534
- if (h) {
11535
- h(B);
11534
+ if (d) {
11535
+ d(B);
11536
11536
  return;
11537
11537
  }
11538
11538
  const { from: F, item: ie, oldIndex: ge, oldDraggableIndex: Q, newDraggableIndex: se } = B;
@@ -11615,10 +11615,10 @@ function Zf(...e) {
11615
11615
  save: () => c == null ? void 0 : c.save(),
11616
11616
  toArray: () => c == null ? void 0 : c.toArray(),
11617
11617
  closest: (...B) => c == null ? void 0 : c.closest(...B)
11618
- }, ke = () => J == null ? void 0 : J.option("disabled", !0), $e = () => J == null ? void 0 : J.option("disabled", !1);
11618
+ }, Le = () => J == null ? void 0 : J.option("disabled", !0), $e = () => J == null ? void 0 : J.option("disabled", !1);
11619
11619
  return Jf(() => {
11620
11620
  _ && fe();
11621
- }), qf(J.destroy), rn({ start: fe, pause: ke, resume: $e }, J);
11621
+ }), qf(J.destroy), ln({ start: fe, pause: Le, resume: $e }, J);
11622
11622
  }
11623
11623
  const Qi = [
11624
11624
  "update",
@@ -11678,7 +11678,7 @@ const Qi = [
11678
11678
  "target",
11679
11679
  "customUpdate",
11680
11680
  ...Qi.map((e) => `on${e.replace(/^\S/, (t) => t.toUpperCase())}`)
11681
- ], tg = ht({
11681
+ ], tg = gt({
11682
11682
  name: "VueDraggable",
11683
11683
  model: {
11684
11684
  prop: "modelValue",
@@ -11687,27 +11687,27 @@ const Qi = [
11687
11687
  props: eg,
11688
11688
  emits: ["update:modelValue", ...Qi],
11689
11689
  setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
11690
- const s = Qi.reduce((d, h) => {
11691
- const g = `on${h.replace(/^\S/, (m) => m.toUpperCase())}`;
11692
- return d[g] = (...m) => n(h, ...m), d;
11693
- }, {}), a = Se(() => {
11694
- const d = Ml(e), { modelValue: h } = d, g = Tr(d, ["modelValue"]), m = Object.entries(g).reduce((I, [O, G]) => {
11690
+ const s = Qi.reduce((h, d) => {
11691
+ const g = `on${d.replace(/^\S/, (m) => m.toUpperCase())}`;
11692
+ return h[g] = (...m) => n(d, ...m), h;
11693
+ }, {}), a = Be(() => {
11694
+ const h = Ml(e), { modelValue: d } = h, g = Tr(h, ["modelValue"]), m = Object.entries(g).reduce((I, [O, G]) => {
11695
11695
  const D = X(G);
11696
11696
  return D !== void 0 && (I[O] = D), I;
11697
11697
  }, {});
11698
- return rn(rn({}, s), hf(rn(rn({}, i), m)));
11699
- }), l = Se({
11698
+ return ln(ln({}, s), hf(ln(ln({}, i), m)));
11699
+ }), l = Be({
11700
11700
  get: () => e.modelValue,
11701
- set: (d) => n("update:modelValue", d)
11701
+ set: (h) => n("update:modelValue", h)
11702
11702
  }), c = Mt(), _ = Pl(
11703
11703
  Zf(e.target || c, l, a)
11704
11704
  );
11705
11705
  return o(_), () => {
11706
- var d;
11707
- return Mi(e.tag || "div", { ref: c }, (d = t == null ? void 0 : t.default) == null ? void 0 : d.call(t, _));
11706
+ var h;
11707
+ return Mi(e.tag || "div", { ref: c }, (h = t == null ? void 0 : t.default) == null ? void 0 : h.call(t, _));
11708
11708
  };
11709
11709
  }
11710
- }), ng = { class: "text-subtitle-1 ml-6" }, og = /* @__PURE__ */ ht({
11710
+ }), ng = { class: "text-subtitle-1 ml-6" }, og = /* @__PURE__ */ gt({
11711
11711
  __name: "item",
11712
11712
  props: {
11713
11713
  id: {},
@@ -11716,13 +11716,13 @@ const Qi = [
11716
11716
  },
11717
11717
  emits: ["x-click"],
11718
11718
  setup(e, { emit: t }) {
11719
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Yo(), s = e, a = t, l = Mt(!1), c = Se(() => ({
11719
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Yo(), s = e, a = t, l = Mt(!1), c = Be(() => ({
11720
11720
  position: "relative",
11721
11721
  background: l.value ? i.value : o.value,
11722
11722
  height: "48px",
11723
11723
  marginBottom: "1px",
11724
11724
  userSelect: "none"
11725
- })), _ = Se(() => ({
11725
+ })), _ = Be(() => ({
11726
11726
  display: s.select ? "block" : "none",
11727
11727
  position: "absolute",
11728
11728
  top: "0px",
@@ -11732,25 +11732,25 @@ const Qi = [
11732
11732
  border: "1px solid " + n.value,
11733
11733
  pointerEvents: "none"
11734
11734
  }));
11735
- return (d, h) => {
11736
- const g = De("v-spacer"), m = De("v-icon"), I = xl("ripple");
11737
- return wl((Be(), Et("div", {
11735
+ return (h, d) => {
11736
+ const g = Re("v-spacer"), m = Re("v-icon"), I = xl("ripple");
11737
+ return wl((ke(), ct("div", {
11738
11738
  class: "d-flex align-center cursor-pointer",
11739
- style: lt(c.value),
11740
- onClick: h[1] || (h[1] = (O) => a("x-click", s.id)),
11741
- onMouseover: h[2] || (h[2] = (O) => l.value = !0),
11742
- onMouseout: h[3] || (h[3] = (O) => l.value = !1)
11739
+ style: pt(c.value),
11740
+ onClick: d[1] || (d[1] = (O) => a("x-click", s.id)),
11741
+ onMouseover: d[2] || (d[2] = (O) => l.value = !0),
11742
+ onMouseout: d[3] || (d[3] = (O) => l.value = !1)
11743
11743
  }, [
11744
- st("span", ng, wo(s.title), 1),
11745
- be(g),
11746
- be(m, {
11744
+ ut("span", ng, wo(s.title), 1),
11745
+ Te(g),
11746
+ Te(m, {
11747
11747
  class: "x-handle cursor-move mr-3",
11748
11748
  icon: X(sc),
11749
- onMousedown: h[0] || (h[0] = Ln(() => {
11749
+ onMousedown: d[0] || (d[0] = Ln(() => {
11750
11750
  }, ["stop"]))
11751
11751
  }, null, 8, ["icon"]),
11752
- st("div", {
11753
- style: lt(_.value)
11752
+ ut("div", {
11753
+ style: pt(_.value)
11754
11754
  }, null, 4)
11755
11755
  ], 36)), [
11756
11756
  [I]
@@ -11760,22 +11760,22 @@ const Qi = [
11760
11760
  }), ig = {
11761
11761
  key: 1,
11762
11762
  class: "text-caption text-grey"
11763
- }, sg = /* @__PURE__ */ ht({
11763
+ }, sg = /* @__PURE__ */ gt({
11764
11764
  __name: "index",
11765
11765
  props: {
11766
11766
  lock: { type: Boolean }
11767
11767
  },
11768
11768
  setup(e) {
11769
11769
  const { t } = Kn(), n = e, o = Mt([]), i = () => {
11770
- const h = Pt();
11771
- if (!h) {
11770
+ const d = Pt();
11771
+ if (!d) {
11772
11772
  console.assert(!1);
11773
11773
  return;
11774
11774
  }
11775
11775
  const g = [];
11776
- h.getTopBlocks(!0).forEach((I) => {
11776
+ d.getTopBlocks(!0).forEach((I) => {
11777
11777
  var D;
11778
- const O = I.id === ((D = sn()) == null ? void 0 : D.id);
11778
+ const O = I.id === ((D = an()) == null ? void 0 : D.id);
11779
11779
  let G = "<n/a>";
11780
11780
  if (I.type.startsWith("on_node_event_v")) {
11781
11781
  const j = I, ee = Ke[j.node.key];
@@ -11789,9 +11789,9 @@ const Qi = [
11789
11789
  }), o.value = g;
11790
11790
  };
11791
11791
  dn(() => {
11792
- ct.on("codeUpdate", i);
11792
+ _t.on("codeUpdate", i);
11793
11793
  }), Oo(() => {
11794
- ct.off("codeUpdate", i);
11794
+ _t.off("codeUpdate", i);
11795
11795
  });
11796
11796
  let s = [];
11797
11797
  const a = () => {
@@ -11799,43 +11799,43 @@ const Qi = [
11799
11799
  Da(t("x-block-lib.msg.cannotOperateInLockedState"));
11800
11800
  return;
11801
11801
  }
11802
- const h = [];
11802
+ const d = [];
11803
11803
  o.value.forEach(({ id: g }) => {
11804
- h.push(g);
11805
- }), s = h;
11806
- }, l = () => !n.lock, c = (h) => {
11804
+ d.push(g);
11805
+ }), s = d;
11806
+ }, l = () => !n.lock, c = (d) => {
11807
11807
  const g = Pt();
11808
11808
  if (!g) {
11809
11809
  console.assert(!1);
11810
11810
  return;
11811
11811
  }
11812
- if (h.oldIndex === void 0 || h.newIndex === void 0) {
11812
+ if (d.oldIndex === void 0 || d.newIndex === void 0) {
11813
11813
  console.assert(!1);
11814
11814
  return;
11815
11815
  }
11816
- if (h.oldIndex === h.newIndex)
11816
+ if (d.oldIndex === d.newIndex)
11817
11817
  return;
11818
- const m = s[h.oldIndex], I = g.getBlockById(m);
11818
+ const m = s[d.oldIndex], I = g.getBlockById(m);
11819
11819
  if (!I) {
11820
11820
  console.assert(!1);
11821
11821
  return;
11822
11822
  }
11823
11823
  let O = "";
11824
- h.newIndex > h.oldIndex ? O = s[h.newIndex] : h.newIndex > 0 && (O = s[h.newIndex - 1]);
11824
+ d.newIndex > d.oldIndex ? O = s[d.newIndex] : d.newIndex > 0 && (O = s[d.newIndex - 1]);
11825
11825
  let G = -10;
11826
11826
  O !== "" && (G = g.getBlockById(O).getRelativeToSurfaceXY().y + 10);
11827
11827
  const D = I.getRelativeToSurfaceXY();
11828
- I.moveTo(new k.Coordinate(D.x, G)), ct.emit("cleanWorkspace"), pr();
11829
- }, { open: _ } = Ko("blocklyNavigatorDlg"), d = async (h) => {
11828
+ I.moveTo(new k.Coordinate(D.x, G)), _t.emit("cleanWorkspace"), pr();
11829
+ }, { open: _ } = Ko("blocklyNavigatorDlg"), h = async (d) => {
11830
11830
  const g = Pt();
11831
11831
  if (!g) {
11832
11832
  console.assert(!1);
11833
11833
  return;
11834
11834
  }
11835
- const m = g.getBlockById(h);
11836
- Wl.setSelected(m), ur(h), _.value = !1;
11835
+ const m = g.getBlockById(d);
11836
+ Wl.setSelected(m), ur(d), _.value = !1;
11837
11837
  };
11838
- return (h, g) => o.value.length > 0 ? (Be(), ut(X(tg), {
11838
+ return (d, g) => o.value.length > 0 ? (ke(), dt(X(tg), {
11839
11839
  key: 0,
11840
11840
  modelValue: o.value,
11841
11841
  "onUpdate:modelValue": g[0] || (g[0] = (m) => o.value = m),
@@ -11846,17 +11846,17 @@ const Qi = [
11846
11846
  onMove: l,
11847
11847
  onEnd: c
11848
11848
  }, {
11849
- default: pt(() => [
11850
- (Be(!0), Et(ka, null, Vl(o.value, (m) => (Be(), ut(og, {
11849
+ default: at(() => [
11850
+ (ke(!0), ct(ka, null, Vl(o.value, (m) => (ke(), dt(og, {
11851
11851
  id: m.id,
11852
11852
  key: m.id,
11853
11853
  title: m.name,
11854
11854
  select: m.select,
11855
- onXClick: d
11855
+ onXClick: h
11856
11856
  }, null, 8, ["id", "title", "select"]))), 128))
11857
11857
  ]),
11858
11858
  _: 1
11859
- }, 8, ["modelValue"])) : (Be(), Et("span", ig, wo(X(t)("x-block-lib.noOption")), 1));
11859
+ }, 8, ["modelValue"])) : (ke(), ct("span", ig, wo(X(t)("x-block-lib.noOption")), 1));
11860
11860
  }
11861
11861
  }), Ur = (e, t) => {
11862
11862
  const n = e.__vccOpts || e;
@@ -11865,87 +11865,86 @@ const Qi = [
11865
11865
  return n;
11866
11866
  }, ag = /* @__PURE__ */ Ur(sg, [["__scopeId", "data-v-448cc5cd"]]), rg = {};
11867
11867
  function lg(e, t) {
11868
- return Be(), Et("div", null, "blockTree");
11868
+ return ke(), ct("div", null, "blockTree");
11869
11869
  }
11870
- const cg = /* @__PURE__ */ Ur(rg, [["render", lg]]), ug = { class: "text-subtitle-1" }, pg = /* @__PURE__ */ ht({
11870
+ const cg = /* @__PURE__ */ Ur(rg, [["render", lg]]), ug = { class: "text-subtitle-1" }, pg = /* @__PURE__ */ gt({
11871
11871
  __name: "index",
11872
11872
  props: {
11873
11873
  type: {},
11874
11874
  lock: { type: Boolean }
11875
11875
  },
11876
11876
  setup(e) {
11877
- const { t } = Kn(), n = nc(), { sysBarAvail: o } = Ma(), { backgroundColor1: i } = Yo(), s = e, a = Se(() => {
11878
- let d = "100%";
11879
- return n.mdAndUp.value && (d = "400px"), {
11877
+ const { t } = Kn(), n = nc(), { sysBarAvail: o } = Ma(), { backgroundColor1: i } = Yo(), s = e, a = Be(() => {
11878
+ let h = "100%";
11879
+ return n.mdAndUp.value && (h = "400px"), {
11880
11880
  background: i.value,
11881
- width: d,
11881
+ width: h,
11882
11882
  height: "100%"
11883
11883
  };
11884
- }), l = Se(() => {
11885
- let d = 48;
11886
- return o.value && (d += 24), {
11884
+ }), l = Be(() => {
11885
+ let h = 48;
11886
+ return o.value && (h += 24), {
11887
11887
  position: "relative",
11888
- width: "100%",
11889
- height: `calc(100% - ${d}px)`
11888
+ height: `calc(100% - ${h}px)`
11890
11889
  };
11891
- }), c = Se(() => ({
11890
+ }), c = Be(() => ({
11892
11891
  height: "60px"
11893
11892
  })), { open: _ } = Ko("blocklyNavigatorDlg");
11894
- return (d, h) => {
11895
- const g = De("v-sheet"), m = De("v-btn"), I = De("v-spacer"), O = De("v-dialog"), G = De("v-tooltip");
11896
- return Be(), Et(ka, null, [
11897
- be(O, {
11893
+ return (h, d) => {
11894
+ const g = Re("v-sheet"), m = Re("v-btn"), I = Re("v-spacer"), O = Re("v-dialog"), G = Re("v-tooltip");
11895
+ return ke(), ct(ka, null, [
11896
+ Te(O, {
11898
11897
  modelValue: X(_),
11899
- "onUpdate:modelValue": h[3] || (h[3] = (D) => kn(_) ? _.value = D : null),
11898
+ "onUpdate:modelValue": d[3] || (d[3] = (D) => kn(_) ? _.value = D : null),
11900
11899
  transition: "scroll-x-reverse-transition",
11901
11900
  persistent: "",
11902
11901
  "no-click-animation": "",
11903
11902
  fullscreen: "",
11904
11903
  eager: "",
11905
- onKeydown: h[4] || (h[4] = La(Ln((D) => _.value = !1, ["stop", "prevent"]), ["esc"]))
11904
+ onKeydown: d[4] || (d[4] = La(Ln((D) => _.value = !1, ["stop", "prevent"]), ["esc"]))
11906
11905
  }, {
11907
- default: pt(() => [
11908
- st("div", {
11906
+ default: at(() => [
11907
+ ut("div", {
11909
11908
  class: "w-100 h-100 d-flex flex-row-reverse",
11910
- onClick: h[1] || (h[1] = Ln((D) => _.value = !1, ["self"])),
11911
- onContextmenu: h[2] || (h[2] = Ln((D) => _.value = !1, ["self", "prevent"]))
11909
+ onClick: d[1] || (d[1] = Ln((D) => _.value = !1, ["self"])),
11910
+ onContextmenu: d[2] || (d[2] = Ln((D) => _.value = !1, ["self", "prevent"]))
11912
11911
  }, [
11913
- st("div", {
11912
+ ut("div", {
11914
11913
  class: "elevation-2",
11915
- style: lt(a.value)
11914
+ style: pt(a.value)
11916
11915
  }, [
11917
- X(o) ? (Be(), ut(g, {
11916
+ X(o) ? (ke(), dt(g, {
11918
11917
  key: 0,
11919
11918
  color: "transparent",
11920
11919
  height: 24
11921
- })) : cn("", !0),
11922
- be(g, {
11920
+ })) : $t("", !0),
11921
+ Te(g, {
11923
11922
  class: "d-flex align-center px-2",
11924
11923
  color: "transparent",
11925
11924
  height: 48
11926
11925
  }, {
11927
- default: pt(() => [
11928
- be(m, {
11926
+ default: at(() => [
11927
+ Te(m, {
11929
11928
  variant: "text",
11930
11929
  density: "comfortable",
11931
11930
  icon: X(Pa),
11932
- onClick: h[0] || (h[0] = (D) => _.value = !1)
11931
+ onClick: d[0] || (d[0] = (D) => _.value = !1)
11933
11932
  }, null, 8, ["icon"]),
11934
- st("span", ug, wo(X(t)("x-block-lib.navigator")), 1),
11935
- be(I)
11933
+ ut("span", ug, wo(X(t)("x-block-lib.navigator")), 1),
11934
+ Te(I)
11936
11935
  ]),
11937
11936
  _: 1
11938
11937
  }),
11939
- st("div", {
11938
+ ut("div", {
11940
11939
  class: "overflow-y-auto",
11941
- style: lt(l.value)
11940
+ style: pt(l.value)
11942
11941
  }, [
11943
- s.type === "list" ? (Be(), ut(ag, {
11942
+ s.type === "list" ? (ke(), dt(ag, {
11944
11943
  key: 0,
11945
11944
  lock: s.lock
11946
- }, null, 8, ["lock"])) : s.type === "tree" ? (Be(), ut(cg, { key: 1 })) : cn("", !0),
11947
- st("div", {
11948
- style: lt(c.value)
11945
+ }, null, 8, ["lock"])) : s.type === "tree" ? (ke(), dt(cg, { key: 1 })) : $t("", !0),
11946
+ ut("div", {
11947
+ style: pt(c.value)
11949
11948
  }, null, 4)
11950
11949
  ], 4)
11951
11950
  ], 4)
@@ -11953,15 +11952,15 @@ const cg = /* @__PURE__ */ Ur(rg, [["render", lg]]), ug = { class: "text-subtitl
11953
11952
  ]),
11954
11953
  _: 1
11955
11954
  }, 8, ["modelValue"]),
11956
- be(G, {
11955
+ Te(G, {
11957
11956
  text: X(t)("x-block-lib.tip.hotkeyCtrlE")
11958
11957
  }, {
11959
- activator: pt(({ props: D }) => [
11960
- be(m, Zi(D, {
11958
+ activator: at(({ props: D }) => [
11959
+ Te(m, Zi(D, {
11961
11960
  variant: "outlined",
11962
11961
  density: "comfortable",
11963
11962
  icon: X(lc),
11964
- onClick: h[5] || (h[5] = (j) => _.value = !0)
11963
+ onClick: d[5] || (d[5] = (j) => _.value = !0)
11965
11964
  }), null, 16, ["icon"])
11966
11965
  ]),
11967
11966
  _: 1
@@ -12028,7 +12027,7 @@ function fg(e) {
12028
12027
  }, 100);
12029
12028
  });
12030
12029
  }
12031
- const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12030
+ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ gt({
12032
12031
  __name: "index",
12033
12032
  props: /* @__PURE__ */ Ns({
12034
12033
  type: {},
@@ -12042,8 +12041,8 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12042
12041
  emits: /* @__PURE__ */ Ns(["ready"], ["update:lock", "update:scale"]),
12043
12042
  setup(e, { expose: t, emit: n }) {
12044
12043
  const o = Zl(), i = ec(), s = Di(e, "lock"), a = Di(e, "scale"), l = e, c = n, _ = Mt();
12045
- let d;
12046
- const h = Mt(!1), g = Mt(!1), m = Se(() => l.type === "json" ? "tree" : "list"), I = Se(() => ({
12044
+ let h;
12045
+ const d = Mt(!1), g = Mt(!1), m = Be(() => l.type === "json" ? "tree" : "list"), I = Be(() => ({
12047
12046
  position: "absolute",
12048
12047
  background: o.value ? "#0000007f" : "#ffffff7f",
12049
12048
  top: "1px",
@@ -12051,12 +12050,12 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12051
12050
  width: "56px",
12052
12051
  height: "calc(100% - 1px)",
12053
12052
  zIndex: 999
12054
- })), O = Se(() => ({
12053
+ })), O = Be(() => ({
12055
12054
  position: "absolute",
12056
12055
  top: "0px",
12057
12056
  right: "0px",
12058
12057
  zIndex: 20
12059
- })), G = Se(() => ({
12058
+ })), G = Be(() => ({
12060
12059
  position: "absolute",
12061
12060
  background: o.value ? "#0000007f" : "#ffffff7f",
12062
12061
  top: "0px",
@@ -12064,7 +12063,7 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12064
12063
  width: "100%",
12065
12064
  height: "100%",
12066
12065
  pointerEvents: "none"
12067
- })), D = Se(() => ({
12066
+ })), D = Be(() => ({
12068
12067
  position: "absolute",
12069
12068
  background: o.value ? "#0000007f" : "#ffffff7f",
12070
12069
  top: "1px",
@@ -12078,46 +12077,46 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12078
12077
  console.assert(!1);
12079
12078
  return;
12080
12079
  }
12081
- await aa(i.value), d = _g(_.value, l.type, l.version), d.addChangeListener(w.disableOrphans), d.addChangeListener(ee);
12080
+ await aa(i.value), h = _g(_.value, l.type, l.version), h.addChangeListener(w.disableOrphans), h.addChangeListener(ee);
12082
12081
  const R = document.querySelector("#blocklyEditor .blocklyFlyout");
12083
12082
  new MutationObserver((Me) => {
12084
12083
  Me.forEach((re) => {
12085
- re.type === "attributes" && re.attributeName === "style" && (j.value = d.getFlyout().isVisible());
12084
+ re.type === "attributes" && re.attributeName === "style" && (j.value = h.getFlyout().isVisible());
12086
12085
  });
12087
- }).observe(R, { attributes: !0 }), j.value = d.getFlyout().isVisible(), $e(), B(), await es(), c("ready");
12086
+ }).observe(R, { attributes: !0 }), j.value = h.getFlyout().isVisible(), $e(), B(), await es(), c("ready");
12088
12087
  }), Oo(() => {
12089
12088
  j.value = !1;
12090
12089
  }), hc(_, () => {
12091
- d && zl(d);
12090
+ h && zl(h);
12092
12091
  });
12093
12092
  async function ee(R) {
12094
12093
  if (R.type === w.FINISHED_LOADING) {
12095
- pr(), ct.emit("codeUpdate"), h.value = !1;
12094
+ pr(), _t.emit("codeUpdate"), d.value = !1;
12096
12095
  return;
12097
12096
  }
12098
- if (!h.value) {
12097
+ if (!d.value) {
12099
12098
  if (R.type === w.VIEWPORT_CHANGE) {
12100
- a.value = d.getScale();
12099
+ a.value = h.getScale();
12101
12100
  return;
12102
12101
  }
12103
- R.type === w.BLOCK_DRAG && (R.isStart ? g.value = !0 : g.value = !1), ct.emit("codeUpdate");
12102
+ R.type === w.BLOCK_DRAG && (R.isStart ? g.value = !0 : g.value = !1), _t.emit("codeUpdate");
12104
12103
  }
12105
12104
  }
12106
12105
  const fe = (R) => {
12107
- h.value = !0, Ls.workspaces.load(R, d);
12108
- }, J = () => Ls.workspaces.save(d), ke = () => r.workspaceToCode(d), $e = () => {
12109
- d.options.readOnly = s.value, d.options.readOnly && (j.value = !1);
12106
+ d.value = !0, Ls.workspaces.load(R, h);
12107
+ }, J = () => Ls.workspaces.save(h), Le = () => r.workspaceToCode(h), $e = () => {
12108
+ h.options.readOnly = s.value, h.options.readOnly && (j.value = !1);
12110
12109
  }, B = () => {
12111
- d.setScale(a.value);
12110
+ h.setScale(a.value);
12112
12111
  };
12113
12112
  class F extends w.Abstract {
12114
12113
  constructor() {
12115
12114
  super(...arguments);
12116
- tt(this, "isBlank", !0);
12115
+ nt(this, "isBlank", !0);
12117
12116
  }
12118
12117
  }
12119
12118
  const ie = () => {
12120
- d.fireChangeListener(new F());
12119
+ h.fireChangeListener(new F());
12121
12120
  }, ge = (R) => {
12122
12121
  if (R.key === "q" && R.ctrlKey) {
12123
12122
  Q();
@@ -12132,11 +12131,11 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12132
12131
  return;
12133
12132
  }
12134
12133
  }, Q = () => {
12135
- ct.emit("cleanWorkspace");
12134
+ _t.emit("cleanWorkspace");
12136
12135
  }, se = () => {
12137
12136
  s.value = !s.value;
12138
12137
  }, oe = () => {
12139
- ct.emit("blocklyNavigatorDlg");
12138
+ _t.emit("blocklyNavigatorDlg");
12140
12139
  };
12141
12140
  return dn(() => {
12142
12141
  window.addEventListener("keydown", ge, !1);
@@ -12147,54 +12146,60 @@ const gg = { class: "position-relative w-100 h-100" }, mg = /* @__PURE__ */ ht({
12147
12146
  }), Lt(o, (R) => {
12148
12147
  nf(R ? "dark" : "light");
12149
12148
  }), Lt(j, (R) => {
12150
- R || d.hideChaff();
12149
+ R || h.hideChaff();
12151
12150
  }), Lt(s, () => {
12152
12151
  $e();
12153
12152
  }), Lt(a, () => {
12154
12153
  B();
12155
- }), t({ loading: h, load: fe, save: J, generateCode: ke, fireStateChange: ie }), (R, ae) => {
12156
- const Me = De("v-icon"), re = De("x-loading");
12157
- return Be(), Et("div", gg, [
12158
- st("div", {
12154
+ }), t({ loading: d, load: fe, save: J, generateCode: Le, fireStateChange: ie }), (R, ae) => {
12155
+ const Me = Re("v-icon"), re = Re("v-slide-y-transition"), Xe = Re("x-loading");
12156
+ return ke(), ct("div", gg, [
12157
+ ut("div", {
12159
12158
  id: "blocklyEditor",
12160
12159
  ref_key: "blocklyDiv",
12161
12160
  ref: _,
12162
12161
  class: "w-100 h-100"
12163
12162
  }, null, 512),
12164
- g.value ? (Be(), Et("div", {
12163
+ g.value ? (ke(), ct("div", {
12165
12164
  key: 0,
12166
12165
  class: "d-flex flex-column justify-center align-center",
12167
- style: lt(I.value)
12166
+ style: pt(I.value)
12168
12167
  }, [
12169
- be(Me, {
12168
+ Te(Me, {
12170
12169
  size: "x-large",
12171
12170
  icon: X(ic)
12172
12171
  }, null, 8, ["icon"])
12173
- ], 4)) : cn("", !0),
12174
- st("div", {
12175
- class: "d-flex align-end ga-3 pt-3 pr-3",
12176
- style: lt(O.value)
12177
- }, [
12178
- be(lf, { lock: s.value }, null, 8, ["lock"]),
12179
- be(cf, {
12180
- modelValue: s.value,
12181
- "onUpdate:modelValue": ae[0] || (ae[0] = (Xe) => s.value = Xe)
12182
- }, null, 8, ["modelValue"]),
12183
- be(pg, {
12184
- type: m.value,
12185
- lock: s.value
12186
- }, null, 8, ["type", "lock"])
12187
- ], 4),
12188
- s.value ? (Be(), Et("div", {
12172
+ ], 4)) : $t("", !0),
12173
+ Te(re, null, {
12174
+ default: at(() => [
12175
+ d.value ? $t("", !0) : (ke(), ct("div", {
12176
+ key: 0,
12177
+ class: "d-flex align-end ga-3 pt-3 pr-3",
12178
+ style: pt(O.value)
12179
+ }, [
12180
+ Te(lf, { lock: s.value }, null, 8, ["lock"]),
12181
+ Te(cf, {
12182
+ modelValue: s.value,
12183
+ "onUpdate:modelValue": ae[0] || (ae[0] = (et) => s.value = et)
12184
+ }, null, 8, ["modelValue"]),
12185
+ Te(pg, {
12186
+ type: m.value,
12187
+ lock: s.value
12188
+ }, null, 8, ["type", "lock"])
12189
+ ], 4))
12190
+ ]),
12191
+ _: 1
12192
+ }),
12193
+ s.value ? (ke(), ct("div", {
12189
12194
  key: 1,
12190
- style: lt(D.value)
12191
- }, null, 4)) : cn("", !0),
12192
- s.value ? (Be(), Et("div", {
12195
+ style: pt(D.value)
12196
+ }, null, 4)) : $t("", !0),
12197
+ s.value ? (ke(), ct("div", {
12193
12198
  key: 2,
12194
- style: lt(G.value)
12195
- }, null, 4)) : cn("", !0),
12196
- be(re, {
12197
- open: h.value,
12199
+ style: pt(G.value)
12200
+ }, null, 4)) : $t("", !0),
12201
+ Te(Xe, {
12202
+ open: d.value,
12198
12203
  "z-index": 99
12199
12204
  }, null, 8, ["open"])
12200
12205
  ]);
@@ -12234,8 +12239,8 @@ function Tg() {
12234
12239
  for (const Y in u)
12235
12240
  v[Y] = u[Y];
12236
12241
  return f.forEach(function(Y) {
12237
- for (const Ae in Y)
12238
- v[Ae] = Y[Ae];
12242
+ for (const ve in Y)
12243
+ v[ve] = Y[ve];
12239
12244
  }), /** @type {T} */
12240
12245
  v;
12241
12246
  }
@@ -12246,7 +12251,7 @@ function Tg() {
12246
12251
  const v = u.split(".");
12247
12252
  return [
12248
12253
  `${f}${v.shift()}`,
12249
- ...v.map((Y, Ae) => `${Y}${"_".repeat(Ae + 1)}`)
12254
+ ...v.map((Y, ve) => `${Y}${"_".repeat(ve + 1)}`)
12250
12255
  ].join(" ");
12251
12256
  }
12252
12257
  return `${f}${u}`;
@@ -12358,7 +12363,7 @@ function Tg() {
12358
12363
  }));
12359
12364
  }
12360
12365
  }
12361
- class d extends _ {
12366
+ class h extends _ {
12362
12367
  /**
12363
12368
  * @param {*} options
12364
12369
  */
@@ -12393,7 +12398,7 @@ function Tg() {
12393
12398
  return this.closeAllNodes(), !0;
12394
12399
  }
12395
12400
  }
12396
- function h(u) {
12401
+ function d(u) {
12397
12402
  return u ? typeof u == "string" ? u : u.source : null;
12398
12403
  }
12399
12404
  function g(u) {
@@ -12406,14 +12411,14 @@ function Tg() {
12406
12411
  return O("(?:", u, ")?");
12407
12412
  }
12408
12413
  function O(...u) {
12409
- return u.map((v) => h(v)).join("");
12414
+ return u.map((v) => d(v)).join("");
12410
12415
  }
12411
12416
  function G(u) {
12412
12417
  const f = u[u.length - 1];
12413
12418
  return typeof f == "object" && f.constructor === Object ? (u.splice(u.length - 1, 1), f) : {};
12414
12419
  }
12415
12420
  function D(...u) {
12416
- return "(" + (G(u).capture ? "" : "?:") + u.map((Y) => h(Y)).join("|") + ")";
12421
+ return "(" + (G(u).capture ? "" : "?:") + u.map((Y) => d(Y)).join("|") + ")";
12417
12422
  }
12418
12423
  function j(u) {
12419
12424
  return new RegExp(u.toString() + "|").exec("").length - 1;
@@ -12427,20 +12432,20 @@ function Tg() {
12427
12432
  let v = 0;
12428
12433
  return u.map((Y) => {
12429
12434
  v += 1;
12430
- const Ae = v;
12431
- let ve = h(Y), N = "";
12432
- for (; ve.length > 0; ) {
12433
- const y = fe.exec(ve);
12435
+ const ve = v;
12436
+ let Oe = d(Y), N = "";
12437
+ for (; Oe.length > 0; ) {
12438
+ const y = fe.exec(Oe);
12434
12439
  if (!y) {
12435
- N += ve;
12440
+ N += Oe;
12436
12441
  break;
12437
12442
  }
12438
- 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++);
12443
+ 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++);
12439
12444
  }
12440
12445
  return N;
12441
12446
  }).map((Y) => `(${Y})`).join(f);
12442
12447
  }
12443
- 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 = {}) => {
12448
+ 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+)?)", ge = "\\b(0b[01]+)", Q = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", se = (u = {}) => {
12444
12449
  const f = /^#![ ]*\//;
12445
12450
  return u.binary && (u.begin = O(
12446
12451
  f,
@@ -12493,7 +12498,7 @@ function Tg() {
12493
12498
  excludeBegin: !0,
12494
12499
  relevance: 0
12495
12500
  });
12496
- const Ae = D(
12501
+ const ve = D(
12497
12502
  // list of common 1 and 2 letter words in English
12498
12503
  "I",
12499
12504
  "a",
@@ -12533,14 +12538,14 @@ function Tg() {
12533
12538
  /[ ]+/,
12534
12539
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
12535
12540
  "(",
12536
- Ae,
12541
+ ve,
12537
12542
  /[.]?[:]?([.][ ]|[ ])/,
12538
12543
  "){3}"
12539
12544
  )
12540
12545
  // look for 3 words in a row
12541
12546
  }
12542
12547
  ), Y;
12543
- }, Xe = re("//", "$"), gt = re("/\\*", "\\*/"), Jt = re("#", "$"), An = {
12548
+ }, Xe = re("//", "$"), et = re("/\\*", "\\*/"), Qt = re("#", "$"), An = {
12544
12549
  scope: "number",
12545
12550
  begin: F,
12546
12551
  relevance: 0
@@ -12585,7 +12590,7 @@ function Tg() {
12585
12590
  BINARY_NUMBER_MODE: Fr,
12586
12591
  BINARY_NUMBER_RE: ge,
12587
12592
  COMMENT: re,
12588
- C_BLOCK_COMMENT_MODE: gt,
12593
+ C_BLOCK_COMMENT_MODE: et,
12589
12594
  C_LINE_COMMENT_MODE: Xe,
12590
12595
  C_NUMBER_MODE: Xn,
12591
12596
  C_NUMBER_RE: ie,
@@ -12604,9 +12609,9 @@ function Tg() {
12604
12609
  }
12605
12610
  );
12606
12611
  },
12607
- HASH_COMMENT_MODE: Jt,
12612
+ HASH_COMMENT_MODE: Qt,
12608
12613
  IDENT_RE: $e,
12609
- MATCH_NOTHING_RE: ke,
12614
+ MATCH_NOTHING_RE: Le,
12610
12615
  METHOD_GUARD: $r,
12611
12616
  NUMBER_MODE: An,
12612
12617
  NUMBER_RE: F,
@@ -12670,16 +12675,16 @@ function Tg() {
12670
12675
  ], Zr = "keyword";
12671
12676
  function ps(u, f, v = Zr) {
12672
12677
  const Y = /* @__PURE__ */ Object.create(null);
12673
- return typeof u == "string" ? Ae(v, u.split(" ")) : Array.isArray(u) ? Ae(v, u) : Object.keys(u).forEach(function(ve) {
12678
+ return typeof u == "string" ? ve(v, u.split(" ")) : Array.isArray(u) ? ve(v, u) : Object.keys(u).forEach(function(Oe) {
12674
12679
  Object.assign(
12675
12680
  Y,
12676
- ps(u[ve], f, ve)
12681
+ ps(u[Oe], f, Oe)
12677
12682
  );
12678
12683
  }), Y;
12679
- function Ae(ve, N) {
12684
+ function ve(Oe, N) {
12680
12685
  f && (N = N.map((y) => y.toLowerCase())), N.forEach(function(y) {
12681
12686
  const x = y.split("|");
12682
- Y[x[0]] = [ve, el(x[0], x[1])];
12687
+ Y[x[0]] = [Oe, el(x[0], x[1])];
12683
12688
  });
12684
12689
  }
12685
12690
  }
@@ -12693,15 +12698,15 @@ function Tg() {
12693
12698
  console.error(u);
12694
12699
  }, ds = (u, ...f) => {
12695
12700
  console.log(`WARN: ${u}`, ...f);
12696
- }, Qt = (u, f) => {
12701
+ }, Zt = (u, f) => {
12697
12702
  _s[`${u}/${f}`] || (console.log(`Deprecated as of ${u}. ${f}`), _s[`${u}/${f}`] = !0);
12698
12703
  }, qn = new Error();
12699
12704
  function hs(u, f, { key: v }) {
12700
12705
  let Y = 0;
12701
- const Ae = u[v], ve = {}, N = {};
12706
+ const ve = u[v], Oe = {}, N = {};
12702
12707
  for (let y = 1; y <= f.length; y++)
12703
- N[y + Y] = Ae[y], ve[y + Y] = !0, Y += j(f[y - 1]);
12704
- u[v] = N, u[v]._emit = ve, u[v]._multi = !0;
12708
+ N[y + Y] = ve[y], Oe[y + Y] = !0, Y += j(f[y - 1]);
12709
+ u[v] = N, u[v]._emit = Oe, u[v]._multi = !0;
12705
12710
  }
12706
12711
  function nl(u) {
12707
12712
  if (Array.isArray(u.begin)) {
@@ -12730,7 +12735,7 @@ function Tg() {
12730
12735
  function al(u) {
12731
12736
  function f(N, y) {
12732
12737
  return new RegExp(
12733
- h(N),
12738
+ d(N),
12734
12739
  "m" + (u.case_insensitive ? "i" : "") + (u.unicodeRegex ? "u" : "") + (y ? "g" : "")
12735
12740
  );
12736
12741
  }
@@ -12753,8 +12758,8 @@ function Tg() {
12753
12758
  const x = this.matcherRe.exec(y);
12754
12759
  if (!x)
12755
12760
  return null;
12756
- const Re = x.findIndex((vn, ii) => ii > 0 && vn !== void 0), ye = this.matchIndexes[Re];
12757
- return x.splice(0, Re), Object.assign(x, ye);
12761
+ const De = x.findIndex((vn, ii) => ii > 0 && vn !== void 0), ye = this.matchIndexes[De];
12762
+ return x.splice(0, De), Object.assign(x, ye);
12758
12763
  }
12759
12764
  }
12760
12765
  class Y {
@@ -12765,7 +12770,7 @@ function Tg() {
12765
12770
  getMatcher(y) {
12766
12771
  if (this.multiRegexes[y]) return this.multiRegexes[y];
12767
12772
  const x = new v();
12768
- return this.rules.slice(y).forEach(([Re, ye]) => x.addRule(Re, ye)), x.compile(), this.multiRegexes[y] = x, x;
12773
+ return this.rules.slice(y).forEach(([De, ye]) => x.addRule(De, ye)), x.compile(), this.multiRegexes[y] = x, x;
12769
12774
  }
12770
12775
  resumingScanAtSamePosition() {
12771
12776
  return this.regexIndex !== 0;
@@ -12781,19 +12786,19 @@ function Tg() {
12781
12786
  exec(y) {
12782
12787
  const x = this.getMatcher(this.regexIndex);
12783
12788
  x.lastIndex = this.lastIndex;
12784
- let Re = x.exec(y);
12785
- if (this.resumingScanAtSamePosition() && !(Re && Re.index === this.lastIndex)) {
12789
+ let De = x.exec(y);
12790
+ if (this.resumingScanAtSamePosition() && !(De && De.index === this.lastIndex)) {
12786
12791
  const ye = this.getMatcher(0);
12787
- ye.lastIndex = this.lastIndex + 1, Re = ye.exec(y);
12792
+ ye.lastIndex = this.lastIndex + 1, De = ye.exec(y);
12788
12793
  }
12789
- return Re && (this.regexIndex += Re.position + 1, this.regexIndex === this.count && this.considerAll()), Re;
12794
+ return De && (this.regexIndex += De.position + 1, this.regexIndex === this.count && this.considerAll()), De;
12790
12795
  }
12791
12796
  }
12792
- function Ae(N) {
12797
+ function ve(N) {
12793
12798
  const y = new Y();
12794
12799
  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;
12795
12800
  }
12796
- function ve(N, y) {
12801
+ function Oe(N, y) {
12797
12802
  const x = (
12798
12803
  /** @type CompiledMode */
12799
12804
  N
@@ -12814,23 +12819,23 @@ function Tg() {
12814
12819
  // default to 1 relevance if not specified
12815
12820
  qr
12816
12821
  ].forEach((ye) => ye(N, y)), N.isCompiled = !0;
12817
- let Re = null;
12818
- 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(
12822
+ let De = null;
12823
+ 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 = d(x.end) || "", N.endsWithParent && y.terminatorEnd && (x.terminatorEnd += (N.end ? "|" : "") + y.terminatorEnd)), N.illegal && (x.illegalRe = f(
12819
12824
  /** @type {RegExp | string} */
12820
12825
  N.illegal
12821
12826
  )), N.contains || (N.contains = []), N.contains = [].concat(...N.contains.map(function(ye) {
12822
12827
  return rl(ye === "self" ? N : ye);
12823
12828
  })), N.contains.forEach(function(ye) {
12824
- ve(
12829
+ Oe(
12825
12830
  /** @type Mode */
12826
12831
  ye,
12827
12832
  x
12828
12833
  );
12829
- }), N.starts && ve(N.starts, y), x.matcher = Ae(x), x;
12834
+ }), N.starts && Oe(N.starts, y), x.matcher = ve(x), x;
12830
12835
  }
12831
12836
  if (u.compilerExtensions || (u.compilerExtensions = []), u.contains && u.contains.includes("self"))
12832
12837
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
12833
- return u.classNameAliases = o(u.classNameAliases || {}), ve(
12838
+ return u.classNameAliases = o(u.classNameAliases || {}), Oe(
12834
12839
  /** @type Mode */
12835
12840
  u
12836
12841
  );
@@ -12851,8 +12856,8 @@ function Tg() {
12851
12856
  }
12852
12857
  const oi = n, gs = o, ms = Symbol("nomatch"), ul = 7, Ts = function(u) {
12853
12858
  const f = /* @__PURE__ */ Object.create(null), v = /* @__PURE__ */ Object.create(null), Y = [];
12854
- let Ae = !0;
12855
- const ve = "Could not find the language '{}', did you forget to load/include a language module?", N = { disableAutodetect: !0, name: "Plain text", contains: [] };
12859
+ let ve = !0;
12860
+ const Oe = "Could not find the language '{}', did you forget to load/include a language module?", N = { disableAutodetect: !0, name: "Plain text", contains: [] };
12856
12861
  let y = {
12857
12862
  ignoreUnescapedHTML: !1,
12858
12863
  throwUnescapedHTML: !1,
@@ -12863,36 +12868,36 @@ function Tg() {
12863
12868
  languages: null,
12864
12869
  // beta configuration options, subject to change, welcome to discuss
12865
12870
  // https://github.com/highlightjs/highlight.js/issues/1086
12866
- __emitter: d
12871
+ __emitter: h
12867
12872
  };
12868
12873
  function x(E) {
12869
12874
  return y.noHighlightRe.test(E);
12870
12875
  }
12871
- function Re(E) {
12876
+ function De(E) {
12872
12877
  let S = E.className + " ";
12873
12878
  S += E.parentNode ? E.parentNode.className : "";
12874
12879
  const z = y.languageDetectRe.exec(S);
12875
12880
  if (z) {
12876
12881
  const le = Ct(z[1]);
12877
- return le || (ds(ve.replace("{}", z[1])), ds("Falling back to no-highlight mode for this block.", E)), le ? z[1] : "no-highlight";
12882
+ return le || (ds(Oe.replace("{}", z[1])), ds("Falling back to no-highlight mode for this block.", E)), le ? z[1] : "no-highlight";
12878
12883
  }
12879
12884
  return S.split(/\s+/).find((le) => x(le) || Ct(le));
12880
12885
  }
12881
12886
  function ye(E, S, z) {
12882
- let le = "", Le = "";
12883
- 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.
12884
- https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z === void 0 && (z = !0);
12885
- const et = {
12887
+ let le = "", Se = "";
12888
+ typeof S == "object" ? (le = E, z = S.ignoreIllegals, Se = S.language) : (Zt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Zt("10.7.0", `Please use highlight(code, options) instead.
12889
+ https://github.com/highlightjs/highlight.js/issues/2277`), Se = E, le = S), z === void 0 && (z = !0);
12890
+ const tt = {
12886
12891
  code: le,
12887
- language: Le
12892
+ language: Se
12888
12893
  };
12889
- Qn("before:highlight", et);
12890
- const Nt = et.result ? et.result : vn(et.language, et.code, z);
12891
- return Nt.code = et.code, Qn("after:highlight", Nt), Nt;
12894
+ Qn("before:highlight", tt);
12895
+ const Nt = tt.result ? tt.result : vn(tt.language, tt.code, z);
12896
+ return Nt.code = tt.code, Qn("after:highlight", Nt), Nt;
12892
12897
  }
12893
12898
  function vn(E, S, z, le) {
12894
- const Le = /* @__PURE__ */ Object.create(null);
12895
- function et(b, L) {
12899
+ const Se = /* @__PURE__ */ Object.create(null);
12900
+ function tt(b, L) {
12896
12901
  return b.keywords[L];
12897
12902
  }
12898
12903
  function Nt() {
@@ -12905,14 +12910,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12905
12910
  let L = H.keywordPatternRe.exec(ce), W = "";
12906
12911
  for (; L; ) {
12907
12912
  W += ce.substring(b, L.index);
12908
- const ne = rt.case_insensitive ? L[0].toLowerCase() : L[0], Ve = et(H, ne);
12913
+ const ne = lt.case_insensitive ? L[0].toLowerCase() : L[0], Ve = tt(H, ne);
12909
12914
  if (Ve) {
12910
- const [mt, Nl] = Ve;
12911
- if (Pe.addText(W), W = "", Le[ne] = (Le[ne] || 0) + 1, Le[ne] <= ul && (to += Nl), mt.startsWith("_"))
12915
+ const [Tt, Nl] = Ve;
12916
+ if (Pe.addText(W), W = "", Se[ne] = (Se[ne] || 0) + 1, Se[ne] <= ul && (to += Nl), Tt.startsWith("_"))
12912
12917
  W += L[0];
12913
12918
  else {
12914
- const kl = rt.classNameAliases[mt] || mt;
12915
- at(L[0], kl);
12919
+ const kl = lt.classNameAliases[Tt] || Tt;
12920
+ rt(L[0], kl);
12916
12921
  }
12917
12922
  } else
12918
12923
  W += L[0];
@@ -12937,7 +12942,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12937
12942
  function ze() {
12938
12943
  H.subLanguage != null ? Zn() : Nt(), ce = "";
12939
12944
  }
12940
- function at(b, L) {
12945
+ function rt(b, L) {
12941
12946
  b !== "" && (Pe.startScope(L), Pe.addText(b), Pe.endScope());
12942
12947
  }
12943
12948
  function Os(b, L) {
@@ -12948,12 +12953,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12948
12953
  W++;
12949
12954
  continue;
12950
12955
  }
12951
- const Ve = rt.classNameAliases[b[W]] || b[W], mt = L[W];
12952
- Ve ? at(mt, Ve) : (ce = mt, Nt(), ce = ""), W++;
12956
+ const Ve = lt.classNameAliases[b[W]] || b[W], Tt = L[W];
12957
+ Ve ? rt(Tt, Ve) : (ce = Tt, Nt(), ce = ""), W++;
12953
12958
  }
12954
12959
  }
12955
12960
  function bs(b, L) {
12956
- 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;
12961
+ 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;
12957
12962
  }
12958
12963
  function Is(b, L, W) {
12959
12964
  let ne = ee(b.endRe, W);
@@ -12976,8 +12981,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12976
12981
  }
12977
12982
  function bl(b) {
12978
12983
  const L = b[0], W = b.rule, ne = new t(W), Ve = [W.__beforeBegin, W["on:begin"]];
12979
- for (const mt of Ve)
12980
- if (mt && (mt(b, ne), ne.isMatchIgnored))
12984
+ for (const Tt of Ve)
12985
+ if (Tt && (Tt(b, ne), ne.isMatchIgnored))
12981
12986
  return Ol(L);
12982
12987
  return W.skip ? ce += L : (W.excludeBegin && (ce += L), ze(), !W.returnBegin && !W.excludeBegin && (ce = L)), bs(W, b), W.returnBegin ? 0 : L.length;
12983
12988
  }
@@ -12986,7 +12991,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12986
12991
  if (!ne)
12987
12992
  return ms;
12988
12993
  const Ve = H;
12989
- 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));
12994
+ 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));
12990
12995
  do
12991
12996
  H.scope && Pe.closeNode(), !H.skip && !H.subLanguage && (to += H.relevance), H = H.parent;
12992
12997
  while (H !== ne.parent);
@@ -12994,7 +12999,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
12994
12999
  }
12995
13000
  function yl() {
12996
13001
  const b = [];
12997
- for (let L = H; L !== rt; L = L.parent)
13002
+ for (let L = H; L !== lt; L = L.parent)
12998
13003
  L.scope && b.unshift(L.scope);
12999
13004
  b.forEach((L) => Pe.openNode(L));
13000
13005
  }
@@ -13004,7 +13009,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13004
13009
  if (ce += b, W == null)
13005
13010
  return ze(), 0;
13006
13011
  if (eo.type === "begin" && L.type === "end" && eo.index === L.index && W === "") {
13007
- if (ce += S.slice(L.index, L.index + 1), !Ae) {
13012
+ if (ce += S.slice(L.index, L.index + 1), !ve) {
13008
13013
  const ne = new Error(`0 width match regex (${E})`);
13009
13014
  throw ne.languageName = E, ne.badRule = eo.rule, ne;
13010
13015
  }
@@ -13027,17 +13032,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13027
13032
  throw new Error("potential infinite loop, way more iterations than matches");
13028
13033
  return ce += W, W.length;
13029
13034
  }
13030
- const rt = Ct(E);
13031
- if (!rt)
13032
- throw Vt(ve.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13033
- const Cl = al(rt);
13035
+ const lt = Ct(E);
13036
+ if (!lt)
13037
+ throw Vt(Oe.replace("{}", E)), new Error('Unknown language: "' + E + '"');
13038
+ const Cl = al(lt);
13034
13039
  let ri = "", H = le || Cl;
13035
13040
  const Cs = {}, Pe = new y.__emitter(y);
13036
13041
  yl();
13037
13042
  let ce = "", to = 0, Ft = 0, li = 0, ci = !1;
13038
13043
  try {
13039
- if (rt.__emitTokens)
13040
- rt.__emitTokens(S, Pe);
13044
+ if (lt.__emitTokens)
13045
+ lt.__emitTokens(S, Pe);
13041
13046
  else {
13042
13047
  for (H.matcher.considerAll(); ; ) {
13043
13048
  li++, ci ? ci = !1 : H.matcher.considerAll(), H.matcher.lastIndex = Ft;
@@ -13072,7 +13077,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13072
13077
  },
13073
13078
  _emitter: Pe
13074
13079
  };
13075
- if (Ae)
13080
+ if (ve)
13076
13081
  return {
13077
13082
  language: E,
13078
13083
  value: oi(S),
@@ -13101,16 +13106,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13101
13106
  (ze) => vn(ze, E, !1)
13102
13107
  );
13103
13108
  le.unshift(z);
13104
- const Le = le.sort((ze, at) => {
13105
- if (ze.relevance !== at.relevance) return at.relevance - ze.relevance;
13106
- if (ze.language && at.language) {
13107
- if (Ct(ze.language).supersetOf === at.language)
13109
+ const Se = le.sort((ze, rt) => {
13110
+ if (ze.relevance !== rt.relevance) return rt.relevance - ze.relevance;
13111
+ if (ze.language && rt.language) {
13112
+ if (Ct(ze.language).supersetOf === rt.language)
13108
13113
  return 1;
13109
- if (Ct(at.language).supersetOf === ze.language)
13114
+ if (Ct(rt.language).supersetOf === ze.language)
13110
13115
  return -1;
13111
13116
  }
13112
13117
  return 0;
13113
- }), [et, Nt] = Le, Zn = et;
13118
+ }), [tt, Nt] = Se, Zn = tt;
13114
13119
  return Zn.secondBest = Nt, Zn;
13115
13120
  }
13116
13121
  function pl(E, S, z) {
@@ -13119,7 +13124,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13119
13124
  }
13120
13125
  function ai(E) {
13121
13126
  let S = null;
13122
- const z = Re(E);
13127
+ const z = De(E);
13123
13128
  if (x(z)) return;
13124
13129
  if (Qn(
13125
13130
  "before:highlightElement",
@@ -13134,25 +13139,25 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13134
13139
  E.innerHTML
13135
13140
  );
13136
13141
  S = E;
13137
- const le = S.textContent, Le = z ? ye(le, { language: z, ignoreIllegals: !0 }) : si(le);
13138
- E.innerHTML = Le.value, E.dataset.highlighted = "yes", pl(E, z, Le.language), E.result = {
13139
- language: Le.language,
13142
+ const le = S.textContent, Se = z ? ye(le, { language: z, ignoreIllegals: !0 }) : si(le);
13143
+ E.innerHTML = Se.value, E.dataset.highlighted = "yes", pl(E, z, Se.language), E.result = {
13144
+ language: Se.language,
13140
13145
  // TODO: remove with version 11.0
13141
- re: Le.relevance,
13142
- relevance: Le.relevance
13143
- }, Le.secondBest && (E.secondBest = {
13144
- language: Le.secondBest.language,
13145
- relevance: Le.secondBest.relevance
13146
- }), Qn("after:highlightElement", { el: E, result: Le, text: le });
13146
+ re: Se.relevance,
13147
+ relevance: Se.relevance
13148
+ }, Se.secondBest && (E.secondBest = {
13149
+ language: Se.secondBest.language,
13150
+ relevance: Se.secondBest.relevance
13151
+ }), Qn("after:highlightElement", { el: E, result: Se, text: le });
13147
13152
  }
13148
13153
  function _l(E) {
13149
13154
  y = gs(y, E);
13150
13155
  }
13151
13156
  const dl = () => {
13152
- Jn(), Qt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
13157
+ Jn(), Zt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
13153
13158
  };
13154
13159
  function hl() {
13155
- Jn(), Qt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
13160
+ Jn(), Zt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
13156
13161
  }
13157
13162
  let Es = !1;
13158
13163
  function Jn() {
@@ -13170,7 +13175,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13170
13175
  try {
13171
13176
  z = S(u);
13172
13177
  } catch (le) {
13173
- if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), Ae)
13178
+ if (Vt("Language definition for '{}' could not be registered.".replace("{}", E)), ve)
13174
13179
  Vt(le);
13175
13180
  else
13176
13181
  throw le;
@@ -13223,7 +13228,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13223
13228
  });
13224
13229
  }
13225
13230
  function vl(E) {
13226
- return Qt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Qt("10.7.0", "Please use highlightElement now."), ai(E);
13231
+ return Zt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Zt("10.7.0", "Please use highlightElement now."), ai(E);
13227
13232
  }
13228
13233
  Object.assign(u, {
13229
13234
  highlight: ye,
@@ -13245,9 +13250,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13245
13250
  addPlugin: El,
13246
13251
  removePlugin: Al
13247
13252
  }), u.debugMode = function() {
13248
- Ae = !1;
13253
+ ve = !1;
13249
13254
  }, u.safeMode = function() {
13250
- Ae = !0;
13255
+ ve = !0;
13251
13256
  }, u.versionString = ll, u.regex = {
13252
13257
  concat: O,
13253
13258
  lookahead: g,
@@ -13258,8 +13263,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, le = S), z ==
13258
13263
  for (const E in zn)
13259
13264
  typeof zn[E] == "object" && e(zn[E]);
13260
13265
  return Object.assign(u, zn), u;
13261
- }, Zt = Ts({});
13262
- return Zt.newInstance = () => Ts({}), Ri = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Ri;
13266
+ }, en = Ts({});
13267
+ return en.newInstance = () => Ts({}), Ri = en, en.HighlightJS = en, en.default = en, Ri;
13263
13268
  }
13264
13269
  var Eg = /* @__PURE__ */ Tg();
13265
13270
  const vo = /* @__PURE__ */ ql(Eg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Ag = [
@@ -13410,8 +13415,8 @@ const vo = /* @__PURE__ */ ql(Eg), Ca = "[A-Za-z$_][0-9A-Za-z$_]*", Ag = [
13410
13415
  );
13411
13416
  function Ig(e) {
13412
13417
  const t = e.regex, n = (re, { after: Xe }) => {
13413
- const gt = "</" + re[0].slice(1);
13414
- return re.input.indexOf(gt, Xe) !== -1;
13418
+ const et = "</" + re[0].slice(1);
13419
+ return re.input.indexOf(et, Xe) !== -1;
13415
13420
  }, o = Ca, i = {
13416
13421
  begin: "<>",
13417
13422
  end: "</>"
@@ -13423,21 +13428,21 @@ function Ig(e) {
13423
13428
  * @param {CallbackResponse} response
13424
13429
  */
13425
13430
  isTrulyOpeningTag: (re, Xe) => {
13426
- const gt = re[0].length + re.index, Jt = re.input[gt];
13431
+ const et = re[0].length + re.index, Qt = re.input[et];
13427
13432
  if (
13428
13433
  // HTML should not include another raw `<` inside a tag
13429
13434
  // nested type?
13430
13435
  // `<Array<Array<number>>`, etc.
13431
- Jt === "<" || // the , gives away that this is not HTML
13436
+ Qt === "<" || // the , gives away that this is not HTML
13432
13437
  // `<T, A extends keyof T, V>`
13433
- Jt === ","
13438
+ Qt === ","
13434
13439
  ) {
13435
13440
  Xe.ignoreMatch();
13436
13441
  return;
13437
13442
  }
13438
- Jt === ">" && (n(re, { after: gt }) || Xe.ignoreMatch());
13443
+ Qt === ">" && (n(re, { after: et }) || Xe.ignoreMatch());
13439
13444
  let An;
13440
- const Xn = re.input.substring(gt);
13445
+ const Xn = re.input.substring(et);
13441
13446
  if (An = Xn.match(/^\s*=/)) {
13442
13447
  Xe.ignoreMatch();
13443
13448
  return;
@@ -13453,12 +13458,12 @@ function Ig(e) {
13453
13458
  literal: vg,
13454
13459
  built_in: bg,
13455
13460
  "variable.language": Og
13456
- }, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, d = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", h = {
13461
+ }, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, h = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
13457
13462
  className: "number",
13458
13463
  variants: [
13459
13464
  // DecimalLiteral
13460
- { begin: `(\\b(${d})((${_})|\\.)?|(${_}))[eE][+-]?(${c})\\b` },
13461
- { begin: `\\b(${d})\\b((${_})\\b|\\.)?|(${_})\\b` },
13465
+ { begin: `(\\b(${h})((${_})|\\.)?|(${_}))[eE][+-]?(${c})\\b` },
13466
+ { begin: `\\b(${h})\\b((${_})\\b|\\.)?|(${_})\\b` },
13462
13467
  // DecimalBigIntegerLiteral
13463
13468
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
13464
13469
  // NonDecimalIntegerLiteral
@@ -13575,7 +13580,7 @@ function Ig(e) {
13575
13580
  G,
13576
13581
  // Skip numbers when they are part of a variable name
13577
13582
  { match: /\$\d+/ },
13578
- h
13583
+ d
13579
13584
  // This is intentional:
13580
13585
  // See https://github.com/highlightjs/highlight.js/issues/3288
13581
13586
  // hljs.REGEXP_MODE
@@ -13598,7 +13603,7 @@ function Ig(e) {
13598
13603
  keywords: l,
13599
13604
  contains: ["self"].concat(fe)
13600
13605
  }
13601
- ]), ke = {
13606
+ ]), Le = {
13602
13607
  className: "params",
13603
13608
  // convert this to negative lookbehind in v12
13604
13609
  begin: /(\s*)\(/,
@@ -13693,7 +13698,7 @@ function Ig(e) {
13693
13698
  3: "title.function"
13694
13699
  },
13695
13700
  label: "func.def",
13696
- contains: [ke],
13701
+ contains: [Le],
13697
13702
  illegal: /%/
13698
13703
  }, ge = {
13699
13704
  relevance: 0,
@@ -13741,7 +13746,7 @@ function Ig(e) {
13741
13746
  // eat to avoid empty params
13742
13747
  begin: /\(\)/
13743
13748
  },
13744
- ke
13749
+ Le
13745
13750
  ]
13746
13751
  }, ae = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Me = {
13747
13752
  match: [
@@ -13760,7 +13765,7 @@ function Ig(e) {
13760
13765
  3: "title.function"
13761
13766
  },
13762
13767
  contains: [
13763
- ke
13768
+ Le
13764
13769
  ]
13765
13770
  };
13766
13771
  return {
@@ -13786,7 +13791,7 @@ function Ig(e) {
13786
13791
  j,
13787
13792
  // Skip numbers when they are part of a variable name
13788
13793
  { match: /\$\d+/ },
13789
- h,
13794
+ d,
13790
13795
  B,
13791
13796
  {
13792
13797
  scope: "attr",
@@ -13884,7 +13889,7 @@ function Ig(e) {
13884
13889
  returnBegin: !0,
13885
13890
  label: "func.def",
13886
13891
  contains: [
13887
- ke,
13892
+ Le,
13888
13893
  e.inherit(e.TITLE_MODE, { begin: o, className: "title.function" })
13889
13894
  ]
13890
13895
  },
@@ -13904,7 +13909,7 @@ function Ig(e) {
13904
13909
  {
13905
13910
  match: [/\bconstructor(?=\s*\()/],
13906
13911
  className: { 1: "title.function" },
13907
- contains: [ke]
13912
+ contains: [Le]
13908
13913
  },
13909
13914
  se,
13910
13915
  ge,
@@ -13917,21 +13922,21 @@ function Ig(e) {
13917
13922
  ]
13918
13923
  };
13919
13924
  }
13920
- var yg = ht({ props: { code: { type: String, required: !0 }, language: { type: String, default: "" }, autodetect: { type: Boolean, default: !0 }, ignoreIllegals: { type: Boolean, default: !0 } }, setup: function(e) {
13925
+ var yg = gt({ props: { code: { type: String, required: !0 }, language: { type: String, default: "" }, autodetect: { type: Boolean, default: !0 }, ignoreIllegals: { type: Boolean, default: !0 } }, setup: function(e) {
13921
13926
  var t = Mt(e.language);
13922
13927
  Lt(function() {
13923
13928
  return e.language;
13924
13929
  }, function(i) {
13925
13930
  t.value = i;
13926
13931
  });
13927
- var n = Se(function() {
13932
+ var n = Be(function() {
13928
13933
  return e.autodetect || !t.value;
13929
- }), o = Se(function() {
13934
+ }), o = Be(function() {
13930
13935
  return !n.value && !vo.getLanguage(t.value);
13931
13936
  });
13932
- return { className: Se(function() {
13937
+ return { className: Be(function() {
13933
13938
  return o.value ? "" : "hljs " + t.value;
13934
- }), highlightedCode: Se(function() {
13939
+ }), highlightedCode: Be(function() {
13935
13940
  var i;
13936
13941
  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;");
13937
13942
  if (n.value) {
@@ -13943,7 +13948,7 @@ var yg = ht({ props: { code: { type: String, required: !0 }, language: { type: S
13943
13948
  }, render: function() {
13944
13949
  return Mi("pre", {}, [Mi("code", { class: this.className, innerHTML: this.highlightedCode })]);
13945
13950
  } }), Cg = { component: yg };
13946
- const Ng = /* @__PURE__ */ ht({
13951
+ const Ng = /* @__PURE__ */ gt({
13947
13952
  __name: "index",
13948
13953
  props: {
13949
13954
  code: {}
@@ -13953,14 +13958,14 @@ const Ng = /* @__PURE__ */ ht({
13953
13958
  vo.registerLanguage("javascript", Ig);
13954
13959
  const n = Cg.component, { backgroundColor2: o } = Yo();
13955
13960
  return (i, s) => {
13956
- const a = De("v-sheet");
13957
- return Be(), ut(a, {
13961
+ const a = Re("v-sheet");
13962
+ return ke(), dt(a, {
13958
13963
  color: X(o),
13959
13964
  width: "100%",
13960
13965
  height: "100%"
13961
13966
  }, {
13962
- default: pt(() => [
13963
- be(X(n), {
13967
+ default: at(() => [
13968
+ Te(X(n), {
13964
13969
  language: "js",
13965
13970
  code: t.code
13966
13971
  }, null, 8, ["code"])
@@ -13969,10 +13974,10 @@ const Ng = /* @__PURE__ */ ht({
13969
13974
  }, 8, ["color"]);
13970
13975
  };
13971
13976
  }
13972
- }), kg = { class: "text-subtitle-1 ml-3" }, Lg = /* @__PURE__ */ ht({
13977
+ }), kg = { class: "text-subtitle-1 ml-3" }, Lg = /* @__PURE__ */ gt({
13973
13978
  __name: "index",
13974
13979
  setup(e) {
13975
- const { t } = Kn(), { sysBarAvail: n } = Ma(), { backgroundColor0: o, backgroundColor2: i } = Yo(), s = Mt(""), a = Se(() => {
13980
+ const { t } = Kn(), { sysBarAvail: n } = Ma(), { backgroundColor0: o, backgroundColor2: i } = Yo(), s = Mt(""), a = Be(() => {
13976
13981
  let _ = 48;
13977
13982
  return n.value && (_ += 24), {
13978
13983
  position: "relative",
@@ -13982,48 +13987,48 @@ const Ng = /* @__PURE__ */ ht({
13982
13987
  }), l = (_) => {
13983
13988
  s.value = _.code;
13984
13989
  }, { open: c } = Ko("sourceDlg", l);
13985
- return (_, d) => {
13986
- const h = De("v-sheet"), g = De("v-icon"), m = De("v-spacer"), I = De("v-dialog");
13987
- return Be(), ut(I, {
13990
+ return (_, h) => {
13991
+ const d = Re("v-sheet"), g = Re("v-icon"), m = Re("v-spacer"), I = Re("v-dialog");
13992
+ return ke(), dt(I, {
13988
13993
  modelValue: X(c),
13989
- "onUpdate:modelValue": d[1] || (d[1] = (O) => kn(c) ? c.value = O : null),
13994
+ "onUpdate:modelValue": h[1] || (h[1] = (O) => kn(c) ? c.value = O : null),
13990
13995
  transition: "dialog-bottom-transition",
13991
13996
  persistent: "",
13992
13997
  "no-click-animation": "",
13993
13998
  fullscreen: "",
13994
- onKeydown: d[2] || (d[2] = La(Ln((O) => c.value = !1, ["stop", "prevent"]), ["esc"]))
13999
+ onKeydown: h[2] || (h[2] = La(Ln((O) => c.value = !1, ["stop", "prevent"]), ["esc"]))
13995
14000
  }, {
13996
- default: pt(() => [
13997
- be(h, {
14001
+ default: at(() => [
14002
+ Te(d, {
13998
14003
  color: X(o),
13999
14004
  width: "100%",
14000
14005
  height: "100%"
14001
14006
  }, {
14002
- default: pt(() => [
14003
- X(n) ? (Be(), ut(h, {
14007
+ default: at(() => [
14008
+ X(n) ? (ke(), dt(d, {
14004
14009
  key: 0,
14005
14010
  color: X(i),
14006
14011
  height: 24
14007
- }, null, 8, ["color"])) : cn("", !0),
14008
- be(h, {
14012
+ }, null, 8, ["color"])) : $t("", !0),
14013
+ Te(d, {
14009
14014
  class: "d-flex align-center px-3",
14010
14015
  color: X(i),
14011
14016
  height: 48
14012
14017
  }, {
14013
- default: pt(() => [
14014
- be(g, {
14018
+ default: at(() => [
14019
+ Te(g, {
14015
14020
  icon: X(Pa),
14016
- onClick: d[0] || (d[0] = (O) => c.value = !1)
14021
+ onClick: h[0] || (h[0] = (O) => c.value = !1)
14017
14022
  }, null, 8, ["icon"]),
14018
- st("span", kg, wo(X(t)("x-block-lib.dlg.source.title")), 1),
14019
- be(m)
14023
+ ut("span", kg, wo(X(t)("x-block-lib.dlg.source.title")), 1),
14024
+ Te(m)
14020
14025
  ]),
14021
14026
  _: 1
14022
14027
  }, 8, ["color"]),
14023
- st("div", {
14024
- style: lt(a.value)
14028
+ ut("div", {
14029
+ style: pt(a.value)
14025
14030
  }, [
14026
- be(Ng, { code: s.value }, null, 8, ["code"])
14031
+ Te(Ng, { code: s.value }, null, 8, ["code"])
14027
14032
  ], 4)
14028
14033
  ]),
14029
14034
  _: 1