x-block-lib 0.8.8 → 0.8.9

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.
@@ -1,6 +1,6 @@
1
- import { getCurrentScope as wv, onScopeDispose as Sv, computed as _i, toValue as yT, watch as j$, shallowRef as Rv, getCurrentInstance as Fa, onMounted as OT, defineComponent as AT, toRefs as kv, unref as Uo, ref as wT, reactive as Lv, h as x$, nextTick as ST, onUnmounted as Dv, isRef as f$ } from "vue";
2
- function xv(l) {
3
- return wv() ? (Sv(l), !0) : !1;
1
+ import { getCurrentScope as wv, onScopeDispose as Sv, watch as j$, computed as _i, toValue as yT, shallowRef as Rv, getCurrentInstance as Fa, onMounted as OT, defineComponent as AT, toRefs as kv, unref as Uo, ref as wT, reactive as Lv, h as x$, nextTick as ST, onUnmounted as Dv, isRef as f$ } from "vue";
2
+ function xv(l, g) {
3
+ return wv() ? (Sv(l, g), !0) : !1;
4
4
  }
5
5
  const Mv = typeof window < "u" && typeof document < "u";
6
6
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -8,7 +8,7 @@ const Fv = Mv ? window : void 0;
8
8
  function _E(l) {
9
9
  var g;
10
10
  const n = yT(l);
11
- return (g = n?.$el) != null ? g : n;
11
+ return (g = n?.$el) !== null && g !== void 0 ? g : n;
12
12
  }
13
13
  // @__NO_SIDE_EFFECTS__
14
14
  function Bv() {
@@ -25,27 +25,25 @@ function Pv(l) {
25
25
  function pw(l, g, n = {}) {
26
26
  const { window: f = Fv, ...C } = n;
27
27
  let v;
28
- const N = /* @__PURE__ */ Pv(() => f && "ResizeObserver" in f), S = () => {
28
+ const N = /* @__PURE__ */ Pv(() => f && "ResizeObserver" in f), w = () => {
29
29
  v && (v.disconnect(), v = void 0);
30
- }, b = _i(() => {
31
- const P = yT(l);
32
- return Array.isArray(P) ? P.map((w) => _E(w)) : [_E(P)];
33
- }), U = j$(
34
- b,
35
- (P) => {
36
- if (S(), N.value && f) {
37
- v = new ResizeObserver(g);
38
- for (const w of P)
39
- w && v.observe(w, C);
40
- }
41
- },
42
- { immediate: !0, flush: "post" }
43
- ), V = () => {
44
- S(), U();
30
+ }, b = j$(_i(() => {
31
+ const V = yT(l);
32
+ return Array.isArray(V) ? V.map((P) => _E(P)) : [_E(V)];
33
+ }), (V) => {
34
+ if (w(), N.value && f) {
35
+ v = new ResizeObserver(g);
36
+ for (const P of V) P && v.observe(P, C);
37
+ }
38
+ }, {
39
+ immediate: !0,
40
+ flush: "post"
41
+ }), U = () => {
42
+ w(), b();
45
43
  };
46
- return xv(V), {
44
+ return xv(U), {
47
45
  isSupported: N,
48
- stop: V
46
+ stop: U
49
47
  };
50
48
  }
51
49
  var EE = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -58,7 +56,7 @@ function Kr() {
58
56
  (function(n, f) {
59
57
  l.exports = f();
60
58
  })(Uv, function() {
61
- var n = {}, f, C, v, N, S, b, U, V, P, w, R, B, z, J, ne, X, ce, ee, q, ae, ye, ie, Z, W, K, te, me, _e, xe, qe, Qe, Le, Ve, le, ut, Lt, zt, Dt, Zt, Ke, ao, Qt, To, he, Ot, H, oe, eo, De, to, He, xt, Mt, vt, dt, jt, Ft, ot, h, O, Ae, Te, we, pe, Be, L, A, $e, be, Oe, Je, a, m, u, c, s, d, p, _, I, M, Q, ke, ue, se, Ie, mt, Ct, wr, bi, vi, Ci, Zr, dn, hn, Ii, Sr, Ni, Qr, Il, us, Zo, ei, yi, Nl, ds, yl, Rr, $n, re, Re, Xe, rt, _t, No, bo, ar, io, wo, pn, gn, So, At, Oi, mn, Wo, Ro, fn, yo, hs, Ai, Pe, $s, wt, at, kr, ur, ti, ps, fe, Se, Ue, tt, Xt, ht, gs, _n, Ol, Al, tp, Va, Ha, op, wl, wi, Sl, rp, Ga, Wa, ip, sp, Si, np, En, ms, fs, zo, lp, cp, ap, up, dp, hp, $p, za, oi, _s, ja, pp, gp, mp, fp, _p, Ep, Tp, bp, vp, Xa, Cp, Ri, Rl, Ip, Es, kl, Ya, Ka, Ll, Dl, Ja, Np, qa, Za, Qa, eu, tu, ou, ru, yp, Tn, iu, xl, Ml, dr, su, nu, bn, lu, cu, Op, Fl, au, Ap, wp, Sp, Rp, kp, Ts, uu, du, vn, hu, Lp, Dp, $u, pu, Lr, gu, mu, xp, Mp, Fp, Bp, fu, Pp, _u, Up, ki, Cn, Bl, Pl, Li, Eu, Ul, Tu, Bt, Vp, bs, vs, Hp, bu, Vl, Cs, vu, Di, In, Cu, Iu, Gp, Wp, zp, Nu, jp, yu, Is, Xp, Yp, Kp, Jp, Nn, Ou, Au, Hl, Gl, qp, yn, wu, On, Zp, Qp, ri, Su, hr, eg, tg, Ru, og, xi, ku, rg, ig, sg, ng, lg, Lu, cg, ag, Wl, ug, dg, Du, $r, hg, $g, Ns, pg, xu, zl, gg, mg, fg, Mu, jl, Fu, Xl, _g, Eg, Tg, bg, Ce, Oo, so, St, pr, ys, Ne, Pt, vg, Cg, Ig, Bu, Ng, Yl, Pu, Uu, Vu, Hu, Os, yg, Og, Ag, As, Gu, wg, Kl, jo, Wu, ws, Qo, zu, Sg, Ss, Rg, ii, Jl, An, ju, kg, Xu, Lg, ql, Yu, Ku, Ju, Dg, qu, xg, Zl, Mg, Fg, wn, Bg, Zu, Ql, ec, tc, oc, Qu, Pg, ed, rc, ic, Ug, sc, Vg, td, Hg, si, od, Sn, rd, id, nc, sd, nd, ld, cd, ad, ud, dd, hd, $d, Gg, Wg, zg, jg, Xg, Yg, Kg, Jg, qg, pd, gd, md, fd, _d, Ed, Td, lc, Rn, bd, Zg, vd, Cd, Id, Nd, yd, Od, Ad, wd, Sd, Rd, Qg, em, kd, tm, om, rm, im, F;
59
+ var n = {}, f, C, v, N, w, b, U, V, P, S, R, B, z, J, ne, X, ce, ee, q, ae, ye, ie, Z, W, K, te, me, _e, xe, qe, Qe, Le, Ve, le, ut, Lt, zt, Dt, Zt, Ke, ao, Qt, To, he, Ot, H, oe, eo, De, to, He, xt, Mt, vt, dt, jt, Ft, ot, h, O, Ae, Te, we, pe, Be, L, A, $e, be, Oe, Je, a, m, u, c, s, d, p, _, I, M, Q, ke, ue, se, Ie, mt, Ct, wr, bi, vi, Ci, Zr, dn, hn, Ii, Sr, Ni, Qr, Il, us, Zo, ei, yi, Nl, ds, yl, Rr, $n, re, Re, Xe, rt, _t, No, bo, ar, io, wo, pn, gn, So, At, Oi, mn, Wo, Ro, fn, yo, hs, Ai, Pe, $s, wt, at, kr, ur, ti, ps, fe, Se, Ue, tt, Xt, ht, gs, _n, Ol, Al, tp, Va, Ha, op, wl, wi, Sl, rp, Ga, Wa, ip, sp, Si, np, En, ms, fs, zo, lp, cp, ap, up, dp, hp, $p, za, oi, _s, ja, pp, gp, mp, fp, _p, Ep, Tp, bp, vp, Xa, Cp, Ri, Rl, Ip, Es, kl, Ya, Ka, Ll, Dl, Ja, Np, qa, Za, Qa, eu, tu, ou, ru, yp, Tn, iu, xl, Ml, dr, su, nu, bn, lu, cu, Op, Fl, au, Ap, wp, Sp, Rp, kp, Ts, uu, du, vn, hu, Lp, Dp, $u, pu, Lr, gu, mu, xp, Mp, Fp, Bp, fu, Pp, _u, Up, ki, Cn, Bl, Pl, Li, Eu, Ul, Tu, Bt, Vp, bs, vs, Hp, bu, Vl, Cs, vu, Di, In, Cu, Iu, Gp, Wp, zp, Nu, jp, yu, Is, Xp, Yp, Kp, Jp, Nn, Ou, Au, Hl, Gl, qp, yn, wu, On, Zp, Qp, ri, Su, hr, eg, tg, Ru, og, xi, ku, rg, ig, sg, ng, lg, Lu, cg, ag, Wl, ug, dg, Du, $r, hg, $g, Ns, pg, xu, zl, gg, mg, fg, Mu, jl, Fu, Xl, _g, Eg, Tg, bg, Ce, Oo, so, St, pr, ys, Ne, Pt, vg, Cg, Ig, Bu, Ng, Yl, Pu, Uu, Vu, Hu, Os, yg, Og, Ag, As, Gu, wg, Kl, jo, Wu, ws, Qo, zu, Sg, Ss, Rg, ii, Jl, An, ju, kg, Xu, Lg, ql, Yu, Ku, Ju, Dg, qu, xg, Zl, Mg, Fg, wn, Bg, Zu, Ql, ec, tc, oc, Qu, Pg, ed, rc, ic, Ug, sc, Vg, td, Hg, si, od, Sn, rd, id, nc, sd, nd, ld, cd, ad, ud, dd, hd, $d, Gg, Wg, zg, jg, Xg, Yg, Kg, Jg, qg, pd, gd, md, fd, _d, Ed, Td, lc, Rn, bd, Zg, vd, Cd, Id, Nd, yd, Od, Ad, wd, Sd, Rd, Qg, em, kd, tm, om, rm, im, F;
62
60
  f = function(e, t, o, r) {
63
61
  if (!(e instanceof j) && typeof e != "string" || `${e}`.trim() === "") throw Error('Invalid type "' + e + '". The type must be a non-empty string or a Blockly.registry.Type.');
64
62
  if (e = `${e}`.toLowerCase(), typeof t != "string" || t.trim() === "") throw Error('Invalid name "' + t + '". The name must be a non-empty string.');
@@ -84,7 +82,7 @@ function Kr() {
84
82
  return console.warn(t), null;
85
83
  }
86
84
  return r[t];
87
- }, S = function(e, t) {
85
+ }, w = function(e, t) {
88
86
  return e = `${e}`.toLowerCase(), t = t.toLowerCase(), (e = ni[e]) ? !!e[t] : !1;
89
87
  }, b = function(e, t, o) {
90
88
  return N(e, t, o);
@@ -103,7 +101,7 @@ function Kr() {
103
101
  return o;
104
102
  }, P = function(e, t, o) {
105
103
  return t = t.plugins[String(e)] || ko, typeof t == "function" ? t : b(e, t, o);
106
- }, w = function(e, t) {
104
+ }, S = function(e, t) {
107
105
  R(), uc = setTimeout(function() {
108
106
  t && t.handleRightClick(e);
109
107
  }, Lb);
@@ -2960,7 +2958,7 @@ Use ` + r + " instead."), Qm.has(e) || (Qm.add(e), console.warn(e));
2960
2958
  };
2961
2959
  j.CONNECTION_CHECKER = new j("connectionChecker"), j.CONNECTION_PREVIEWER = new j("connectionPreviewer"), j.CURSOR = new j("cursor"), j.EVENT = new j("event"), j.FIELD = new j("field"), j.INPUT = new j("input"), j.RENDERER = new j("renderer"), j.TOOLBOX = new j("toolbox"), j.THEME = new j("theme"), j.TOOLBOX_ITEM = new j("toolboxItem"), j.FLYOUTS_VERTICAL_TOOLBOX = new j("flyoutsVerticalToolbox"), j.FLYOUTS_HORIZONTAL_TOOLBOX = new j("flyoutsHorizontalToolbox"), j.FLYOUT_INFLATER = new j("flyoutInflater"), j.METRICS_MANAGER = new j("metricsManager"), j.BLOCK_DRAGGER = new j("blockDragger"), j.SERIALIZER = new j("serializer"), j.ICON = new j("icon"), j.PASTER = new j("paster"), j.VARIABLE_MODEL = new j("variableModel"), j.VARIABLE_MAP = new j("variableMap");
2962
2960
  var Dr = { DEFAULT: ko, TEST_ONLY: kb };
2963
- Dr.Type = j, Dr.getAllItems = V, Dr.getClass = b, Dr.getClassFromOptions = P, Dr.getObject = U, Dr.hasItem = S, Dr.register = f, Dr.unregister = v;
2961
+ Dr.Type = j, Dr.getAllItems = V, Dr.getClass = b, Dr.getClassFromOptions = P, Dr.getObject = U, Dr.hasItem = w, Dr.register = f, Dr.unregister = v;
2964
2962
  var Et = /* @__PURE__ */ Object.create(null), Lb = 750, sm = "ontouchstart" in globalThis || !!(globalThis.document && document.documentElement && "ontouchstart" in document.documentElement) || !(!globalThis.navigator || !globalThis.navigator.maxTouchPoints && !globalThis.navigator.msMaxTouchPoints), ac = null, Mi = {
2965
2963
  mousedown: ["pointerdown"],
2966
2964
  mouseenter: ["pointerenter"],
@@ -2972,7 +2970,7 @@ Use ` + r + " instead."), Qm.has(e) || (Qm.add(e), console.warn(e));
2972
2970
  touchend: ["pointerup"],
2973
2971
  touchcancel: ["pointercancel"]
2974
2972
  }, uc = 0, Fi = { TOUCH_ENABLED: sm, TOUCH_MAP: Mi };
2975
- Fi.checkTouchIdentifier = ne, Fi.clearTouchIdentifier = B, Fi.getTouchIdentifierFromEvent = J, Fi.longStart = w, Fi.longStop = R, Fi.shouldHandleEvent = z;
2973
+ Fi.checkTouchIdentifier = ne, Fi.clearTouchIdentifier = B, Fi.getTouchIdentifierFromEvent = J, Fi.longStart = S, Fi.longStop = R, Fi.shouldHandleEvent = z;
2976
2974
  var Ld, nm, lm, cm, dc, hc, Dd, am, um, dm;
2977
2975
  (function(e) {
2978
2976
  function t(r) {
@@ -7748,7 +7746,7 @@ children`), this.state = e;
7748
7746
  return r ? (e.check && r.setCheck(e.check), e.align && (o = o[e.align.toUpperCase()], o === void 0 ? console.warn(t + "Illegal align value: ", e.align) : r.setAlign(o)), r) : null;
7749
7747
  }
7750
7748
  isInputKeyword(e) {
7751
- return e === "input_value" || e === "input_statement" || e === "input_dummy" || e === "input_end_row" || S(j.INPUT, e);
7749
+ return e === "input_value" || e === "input_statement" || e === "input_dummy" || e === "input_end_row" || w(j.INPUT, e);
7752
7750
  }
7753
7751
  stringToFieldJson(e) {
7754
7752
  return (e = e.trim()) ? { type: "field_label", text: e } : null;
@@ -9757,7 +9755,7 @@ children`), this.state = e;
9757
9755
  }
9758
9756
  doStart(e) {
9759
9757
  if (!this.startWorkspace_) throw Error("Cannot start the touch gesture becauase the start workspace is undefined");
9760
- this.isPinchZoomEnabled = this.startWorkspace_.options.zoomOptions && this.startWorkspace_.options.zoomOptions.pinch, q(e) ? this.cancel() : (this.gestureHasStarted = !0, Os(), this.startWorkspace_.updateScreenCalculationsIfScrolled(), this.startWorkspace_.isMutator && this.startWorkspace_.resize(), this.currentDropdownOwner = Ka(), this.startWorkspace_.hideChaff(!!this.flyout), this.startWorkspace_.markFocused(), this.mostRecentEvent = e, gu(), ae(e) ? this.handleRightClick(e) : (e.type.toLowerCase() === "pointerdown" && e.pointerType !== "mouse" && w(e, this), this.mouseDownXY = new Y(e.clientX, e.clientY), this.bindMouseEvents(e), this.isEnding_ || this.handleTouchStart(e)));
9758
+ this.isPinchZoomEnabled = this.startWorkspace_.options.zoomOptions && this.startWorkspace_.options.zoomOptions.pinch, q(e) ? this.cancel() : (this.gestureHasStarted = !0, Os(), this.startWorkspace_.updateScreenCalculationsIfScrolled(), this.startWorkspace_.isMutator && this.startWorkspace_.resize(), this.currentDropdownOwner = Ka(), this.startWorkspace_.hideChaff(!!this.flyout), this.startWorkspace_.markFocused(), this.mostRecentEvent = e, gu(), ae(e) ? this.handleRightClick(e) : (e.type.toLowerCase() === "pointerdown" && e.pointerType !== "mouse" && S(e, this), this.mouseDownXY = new Y(e.clientX, e.clientY), this.bindMouseEvents(e), this.isEnding_ || this.handleTouchStart(e)));
9761
9759
  }
9762
9760
  bindMouseEvents(e) {
9763
9761
  this.boundEvents.push(X(document, "pointerdown", null, this.handleStart.bind(this), !0)), this.boundEvents.push(X(document, "pointermove", null, this.handleMove.bind(this), !0)), this.boundEvents.push(X(document, "pointerup", null, this.handleUp.bind(this), !0)), this.boundEvents.push(X(
@@ -15408,7 +15406,7 @@ Blockly.YourGeneratorName.nameDB_.setVariableMap(workspace.getVariableMap());`),
15408
15406
  this.flyoutItems_ = [], e = !0;
15409
15407
  for (let o = 0; o < t.length; o++) {
15410
15408
  const r = t[o];
15411
- !S(j.TOOLBOX_ITEM, r.kind) || r.kind.toLowerCase() === cl.registrationName && e ? (this.flyoutItems_.push(r), e = !0) : (this.createToolboxItem(r), e = !1);
15409
+ !w(j.TOOLBOX_ITEM, r.kind) || r.kind.toLowerCase() === cl.registrationName && e ? (this.flyoutItems_.push(r), e = !0) : (this.createToolboxItem(r), e = !1);
15412
15410
  }
15413
15411
  }
15414
15412
  }
@@ -16015,7 +16013,7 @@ function ${d.FUNCTION_NAME_PLACEHOLDER_}(value, n) {
16015
16013
  }
16016
16014
  `), _ = d.valueToCode(s, "ITEM", h.NONE) || "null";
16017
16015
  return s = d.valueToCode(s, "NUM", h.NONE) || "0", [p + "(" + _ + ", " + s + ")", h.FUNCTION_CALL];
16018
- }, S = function(s, d) {
16016
+ }, w = function(s, d) {
16019
16017
  return [(d.valueToCode(s, "VALUE", h.MEMBER) || "[]") + ".length", h.MEMBER];
16020
16018
  }, b = function(s, d) {
16021
16019
  return ["!" + (d.valueToCode(s, "VALUE", h.MEMBER) || "[]") + ".length", h.LOGICAL_NOT];
@@ -16112,7 +16110,7 @@ function ${d.FUNCTION_NAME_PLACEHOLDER_}(list, remove) {
16112
16110
  `);
16113
16111
  }
16114
16112
  throw Error("Unhandled combination (lists_setIndex).");
16115
- }, w = function(s, d) {
16113
+ }, S = function(s, d) {
16116
16114
  var p = { FIRST: "First", LAST: "Last", FROM_START: "FromStart", FROM_END: "FromEnd" }, _ = d.valueToCode(s, "LIST", h.MEMBER) || "[]";
16117
16115
  const I = s.getFieldValue("WHERE1"), M = s.getFieldValue("WHERE2");
16118
16116
  if (I === "FIRST" && M === "LAST") _ += ".slice(0)";
@@ -16761,7 +16759,7 @@ function ${d.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
16761
16759
  }, Ae = function(s, d, p) {
16762
16760
  return d === "FIRST" ? "0" : d === "FROM_END" ? s + ".length - 1 - " + p : d === "LAST" ? s + ".length - 1" : p;
16763
16761
  }, Te = {};
16764
- Te.lists_create_empty = C, Te.lists_create_with = v, Te.lists_getIndex = V, Te.lists_getSublist = w, Te.lists_indexOf = U, Te.lists_isEmpty = b, Te.lists_length = S, Te.lists_repeat = N, Te.lists_reverse = z, Te.lists_setIndex = P, Te.lists_sort = R, Te.lists_split = B;
16762
+ Te.lists_create_empty = C, Te.lists_create_with = v, Te.lists_getIndex = V, Te.lists_getSublist = S, Te.lists_indexOf = U, Te.lists_isEmpty = b, Te.lists_length = w, Te.lists_repeat = N, Te.lists_reverse = z, Te.lists_setIndex = P, Te.lists_sort = R, Te.lists_split = B;
16765
16763
  var we = {};
16766
16764
  we.controls_if = J, we.controls_ifelse = J, we.logic_boolean = ee, we.logic_compare = ne, we.logic_negate = ce, we.logic_null = q, we.logic_operation = X, we.logic_ternary = ae;
16767
16765
  var pe = {};
@@ -17012,14 +17010,14 @@ var VT = typeof exports == "object" && exports && !exports.nodeType && exports,
17012
17010
  }
17013
17011
  })(), LE = cn && cn.isTypedArray, HT = LE ? K$(LE) : fI, EI = Object.prototype, TI = EI.hasOwnProperty;
17014
17012
  function bI(l, g) {
17015
- var n = ln(l), f = !n && GC(l), C = !n && !f && Aa(l), v = !n && !f && !C && HT(l), N = n || f || C || v, S = N ? PC(l.length, String) : [], b = S.length;
17013
+ var n = ln(l), f = !n && GC(l), C = !n && !f && Aa(l), v = !n && !f && !C && HT(l), N = n || f || C || v, w = N ? PC(l.length, String) : [], b = w.length;
17016
17014
  for (var U in l)
17017
17015
  TI.call(l, U) && !(N && // Safari 9 has enumerable `arguments.length` in strict mode.
17018
17016
  (U == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
17019
17017
  C && (U == "offset" || U == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
17020
17018
  v && (U == "buffer" || U == "byteLength" || U == "byteOffset") || // Skip index properties.
17021
- RC(U, b))) && S.push(U);
17022
- return S;
17019
+ RC(U, b))) && w.push(U);
17020
+ return w;
17023
17021
  }
17024
17022
  function GT(l, g) {
17025
17023
  return function(n) {
@@ -17564,8 +17562,8 @@ function ga(l, g, n, f, C, v) {
17564
17562
  return N;
17565
17563
  if (!ss(l))
17566
17564
  return l;
17567
- var S = ln(l);
17568
- if (S)
17565
+ var w = ln(l);
17566
+ if (w)
17569
17567
  N = uy(l);
17570
17568
  else {
17571
17569
  var b = cr(l), U = b == sb || b == Xy;
@@ -17588,9 +17586,9 @@ function ga(l, g, n, f, C, v) {
17588
17586
  }) : Py(l) && l.forEach(function(R, B) {
17589
17587
  N.set(B, ga(R, g, n, B, l, v));
17590
17588
  });
17591
- var P = F$, w = S ? void 0 : P(l);
17592
- return AC(w || l, function(R, B) {
17593
- w && (B = R, R = l[B]), xC(N, B, ga(R, g, n, B, l, v));
17589
+ var P = F$, S = w ? void 0 : P(l);
17590
+ return AC(S || l, function(R, B) {
17591
+ S && (B = R, R = l[B]), xC(N, B, ga(R, g, n, B, l, v));
17594
17592
  }), N;
17595
17593
  }
17596
17594
  var hO = 1, $O = 4;
@@ -17622,21 +17620,21 @@ function _O(l, g) {
17622
17620
  }
17623
17621
  var EO = 1, TO = 2;
17624
17622
  function lb(l, g, n, f, C, v) {
17625
- var N = n & EO, S = l.length, b = g.length;
17626
- if (S != b && !(N && b > S))
17623
+ var N = n & EO, w = l.length, b = g.length;
17624
+ if (w != b && !(N && b > w))
17627
17625
  return !1;
17628
17626
  var U = v.get(l), V = v.get(g);
17629
17627
  if (U && V)
17630
17628
  return U == g && V == l;
17631
- var P = -1, w = !0, R = n & TO ? new Sa() : void 0;
17632
- for (v.set(l, g), v.set(g, l); ++P < S; ) {
17629
+ var P = -1, S = !0, R = n & TO ? new Sa() : void 0;
17630
+ for (v.set(l, g), v.set(g, l); ++P < w; ) {
17633
17631
  var B = l[P], z = g[P];
17634
17632
  if (f)
17635
17633
  var J = N ? f(z, B, P, g, l, v) : f(B, z, P, l, g, v);
17636
17634
  if (J !== void 0) {
17637
17635
  if (J)
17638
17636
  continue;
17639
- w = !1;
17637
+ S = !1;
17640
17638
  break;
17641
17639
  }
17642
17640
  if (R) {
@@ -17644,15 +17642,15 @@ function lb(l, g, n, f, C, v) {
17644
17642
  if (!_O(R, X) && (B === ne || C(B, ne, n, f, v)))
17645
17643
  return R.push(X);
17646
17644
  })) {
17647
- w = !1;
17645
+ S = !1;
17648
17646
  break;
17649
17647
  }
17650
17648
  } else if (!(B === z || C(B, z, n, f, v))) {
17651
- w = !1;
17649
+ S = !1;
17652
17650
  break;
17653
17651
  }
17654
17652
  }
17655
- return v.delete(l), v.delete(g), w;
17653
+ return v.delete(l), v.delete(g), S;
17656
17654
  }
17657
17655
  function bO(l) {
17658
17656
  var g = -1, n = Array(l.size);
@@ -17685,16 +17683,16 @@ function MO(l, g, n, f, C, v, N) {
17685
17683
  case kO:
17686
17684
  return l == g + "";
17687
17685
  case AO:
17688
- var S = bO;
17686
+ var w = bO;
17689
17687
  case RO:
17690
17688
  var b = f & CO;
17691
- if (S || (S = vO), l.size != g.size && !b)
17689
+ if (w || (w = vO), l.size != g.size && !b)
17692
17690
  return !1;
17693
17691
  var U = N.get(l);
17694
17692
  if (U)
17695
17693
  return U == g;
17696
17694
  f |= IO, N.set(l, g);
17697
- var V = lb(S(l), S(g), f, C, v, N);
17695
+ var V = lb(w(l), w(g), f, C, v, N);
17698
17696
  return N.delete(l), V;
17699
17697
  case LO:
17700
17698
  if (T$)
@@ -17704,12 +17702,12 @@ function MO(l, g, n, f, C, v, N) {
17704
17702
  }
17705
17703
  var FO = 1, BO = Object.prototype, PO = BO.hasOwnProperty;
17706
17704
  function UO(l, g, n, f, C, v) {
17707
- var N = n & FO, S = F$(l), b = S.length, U = F$(g), V = U.length;
17705
+ var N = n & FO, w = F$(l), b = w.length, U = F$(g), V = U.length;
17708
17706
  if (b != V && !N)
17709
17707
  return !1;
17710
17708
  for (var P = b; P--; ) {
17711
- var w = S[P];
17712
- if (!(N ? w in g : PO.call(g, w)))
17709
+ var S = w[P];
17710
+ if (!(N ? S in g : PO.call(g, S)))
17713
17711
  return !1;
17714
17712
  }
17715
17713
  var R = v.get(l), B = v.get(g);
@@ -17718,15 +17716,15 @@ function UO(l, g, n, f, C, v) {
17718
17716
  var z = !0;
17719
17717
  v.set(l, g), v.set(g, l);
17720
17718
  for (var J = N; ++P < b; ) {
17721
- w = S[P];
17722
- var ne = l[w], X = g[w];
17719
+ S = w[P];
17720
+ var ne = l[S], X = g[S];
17723
17721
  if (f)
17724
- var ce = N ? f(X, ne, w, g, l, v) : f(ne, X, w, l, g, v);
17722
+ var ce = N ? f(X, ne, S, g, l, v) : f(ne, X, S, l, g, v);
17725
17723
  if (!(ce === void 0 ? ne === X || C(ne, X, n, f, v) : ce)) {
17726
17724
  z = !1;
17727
17725
  break;
17728
17726
  }
17729
- J || (J = w == "constructor");
17727
+ J || (J = S == "constructor");
17730
17728
  }
17731
17729
  if (z && !J) {
17732
17730
  var ee = l.constructor, q = g.constructor;
@@ -17736,15 +17734,15 @@ function UO(l, g, n, f, C, v) {
17736
17734
  }
17737
17735
  var VO = 1, qE = "[object Arguments]", ZE = "[object Array]", ca = "[object Object]", HO = Object.prototype, QE = HO.hasOwnProperty;
17738
17736
  function GO(l, g, n, f, C, v) {
17739
- var N = ln(l), S = ln(g), b = N ? ZE : cr(l), U = S ? ZE : cr(g);
17737
+ var N = ln(l), w = ln(g), b = N ? ZE : cr(l), U = w ? ZE : cr(g);
17740
17738
  b = b == qE ? ca : b, U = U == qE ? ca : U;
17741
- var V = b == ca, P = U == ca, w = b == U;
17742
- if (w && Aa(l)) {
17739
+ var V = b == ca, P = U == ca, S = b == U;
17740
+ if (S && Aa(l)) {
17743
17741
  if (!Aa(g))
17744
17742
  return !1;
17745
17743
  N = !0, V = !1;
17746
17744
  }
17747
- if (w && !V)
17745
+ if (S && !V)
17748
17746
  return v || (v = new jr()), N || HT(l) ? lb(l, g, n, f, C, v) : MO(l, g, b, n, f, C, v);
17749
17747
  if (!(n & VO)) {
17750
17748
  var R = V && QE.call(l, "__wrapped__"), B = P && QE.call(g, "__wrapped__");
@@ -17753,7 +17751,7 @@ function GO(l, g, n, f, C, v) {
17753
17751
  return v || (v = new jr()), C(z, J, n, f, v);
17754
17752
  }
17755
17753
  }
17756
- return w ? (v || (v = new jr()), UO(l, g, n, f, C, v)) : !1;
17754
+ return S ? (v || (v = new jr()), UO(l, g, n, f, C, v)) : !1;
17757
17755
  }
17758
17756
  function cb(l, g, n, f, C) {
17759
17757
  return l === g ? !0 : l == null || g == null || !Ti(l) && !Ti(g) ? l !== l && g !== g : GO(l, g, n, f, cb, C);
@@ -17762,16 +17760,16 @@ var b$ = function() {
17762
17760
  return qo.Date.now();
17763
17761
  }, WO = "Expected a function", zO = Math.max, jO = Math.min;
17764
17762
  function fk(l, g, n) {
17765
- var f, C, v, N, S, b, U = 0, V = !1, P = !1, w = !0;
17763
+ var f, C, v, N, w, b, U = 0, V = !1, P = !1, S = !0;
17766
17764
  if (typeof l != "function")
17767
17765
  throw new TypeError(WO);
17768
- g = yE(g) || 0, ss(n) && (V = !!n.leading, P = "maxWait" in n, v = P ? zO(yE(n.maxWait) || 0, g) : v, w = "trailing" in n ? !!n.trailing : w);
17766
+ g = yE(g) || 0, ss(n) && (V = !!n.leading, P = "maxWait" in n, v = P ? zO(yE(n.maxWait) || 0, g) : v, S = "trailing" in n ? !!n.trailing : S);
17769
17767
  function R(ae) {
17770
17768
  var ye = f, ie = C;
17771
17769
  return f = C = void 0, U = ae, N = l.apply(ie, ye), N;
17772
17770
  }
17773
17771
  function B(ae) {
17774
- return U = ae, S = setTimeout(ne, g), V ? R(ae) : N;
17772
+ return U = ae, w = setTimeout(ne, g), V ? R(ae) : N;
17775
17773
  }
17776
17774
  function z(ae) {
17777
17775
  var ye = ae - b, ie = ae - U, Z = g - ye;
@@ -17785,26 +17783,26 @@ function fk(l, g, n) {
17785
17783
  var ae = b$();
17786
17784
  if (J(ae))
17787
17785
  return X(ae);
17788
- S = setTimeout(ne, z(ae));
17786
+ w = setTimeout(ne, z(ae));
17789
17787
  }
17790
17788
  function X(ae) {
17791
- return S = void 0, w && f ? R(ae) : (f = C = void 0, N);
17789
+ return w = void 0, S && f ? R(ae) : (f = C = void 0, N);
17792
17790
  }
17793
17791
  function ce() {
17794
- S !== void 0 && clearTimeout(S), U = 0, f = b = C = S = void 0;
17792
+ w !== void 0 && clearTimeout(w), U = 0, f = b = C = w = void 0;
17795
17793
  }
17796
17794
  function ee() {
17797
- return S === void 0 ? N : X(b$());
17795
+ return w === void 0 ? N : X(b$());
17798
17796
  }
17799
17797
  function q() {
17800
17798
  var ae = b$(), ye = J(ae);
17801
17799
  if (f = arguments, C = this, b = ae, ye) {
17802
- if (S === void 0)
17800
+ if (w === void 0)
17803
17801
  return B(b);
17804
17802
  if (P)
17805
- return clearTimeout(S), S = setTimeout(ne, g), R(b);
17803
+ return clearTimeout(w), w = setTimeout(ne, g), R(b);
17806
17804
  }
17807
- return S === void 0 && (S = setTimeout(ne, g)), N;
17805
+ return w === void 0 && (w = setTimeout(ne, g)), N;
17808
17806
  }
17809
17807
  return q.cancel = ce, q.flush = ee, q;
17810
17808
  }
@@ -17923,7 +17921,7 @@ function oA() {
17923
17921
  }, N = function(a, m) {
17924
17922
  const u = m.valueToCode(a, "ITEM", h.NONE) || "null";
17925
17923
  return ["new List.filled(" + (m.valueToCode(a, "NUM", h.NONE) || "0") + ", " + u + ")", h.UNARY_POSTFIX];
17926
- }, S = function(a, m) {
17924
+ }, w = function(a, m) {
17927
17925
  return [(m.valueToCode(a, "VALUE", h.UNARY_POSTFIX) || "[]") + ".length", h.UNARY_POSTFIX];
17928
17926
  }, b = function(a, m) {
17929
17927
  return [(m.valueToCode(a, "VALUE", h.UNARY_POSTFIX) || "[]") + ".isEmpty", h.UNARY_POSTFIX];
@@ -18058,7 +18056,7 @@ dynamic ${m.FUNCTION_NAME_PLACEHOLDER_}(List my_list, num x) {
18058
18056
  `);
18059
18057
  }
18060
18058
  throw Error("Unhandled combination (lists_setIndex).");
18061
- }, w = function(a, m) {
18059
+ }, S = function(a, m) {
18062
18060
  const u = m.valueToCode(a, "LIST", h.UNARY_POSTFIX) || "[]";
18063
18061
  var c = a.getFieldValue("WHERE1");
18064
18062
  const s = a.getFieldValue("WHERE2");
@@ -18780,7 +18778,7 @@ int ${m.FUNCTION_NAME_PLACEHOLDER_}(String haystack, String needle) {
18780
18778
  return u ? p = h.ADDITIVE : c && (p = h.UNARY_PREFIX), a = this.valueToCode(a, m, p) || d, u === 0 && !c ? a : f.isNumber$$module$build$src$core$utils$string(a) ? (a = String(Number(a) + u), c && (a = String(-Number(a))), a) : (u > 0 ? a = `${a} + ${u}` : u < 0 && (a = `${a} - ${-u}`), c && (a = u ? `-(${a})` : `-${a}`), Math.floor(s) >= Math.floor(p) && (a = `(${a})`), a);
18781
18779
  }
18782
18780
  }, Ae = {};
18783
- Ae.lists_create_empty = C, Ae.lists_create_with = v, Ae.lists_getIndex = V, Ae.lists_getSublist = w, Ae.lists_indexOf = U, Ae.lists_isEmpty = b, Ae.lists_length = S, Ae.lists_repeat = N, Ae.lists_reverse = z, Ae.lists_setIndex = P, Ae.lists_sort = R, Ae.lists_split = B;
18781
+ Ae.lists_create_empty = C, Ae.lists_create_with = v, Ae.lists_getIndex = V, Ae.lists_getSublist = S, Ae.lists_indexOf = U, Ae.lists_isEmpty = b, Ae.lists_length = w, Ae.lists_repeat = N, Ae.lists_reverse = z, Ae.lists_setIndex = P, Ae.lists_sort = R, Ae.lists_split = B;
18784
18782
  var Te = {};
18785
18783
  Te.controls_if = J, Te.controls_ifelse = J, Te.logic_boolean = ee, Te.logic_compare = ne, Te.logic_negate = ce, Te.logic_null = q, Te.logic_operation = X, Te.logic_ternary = ae;
18786
18784
  var we = {};
@@ -18827,7 +18825,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(item, count)
18827
18825
  end
18828
18826
  `), p = s.valueToCode(c, "ITEM", O.NONE) || "nil";
18829
18827
  return c = s.valueToCode(c, "NUM", O.NONE) || "0", [d + "(" + p + ", " + c + ")", O.HIGH];
18830
- }, S = function(c, s) {
18828
+ }, w = function(c, s) {
18831
18829
  return ["#" + (s.valueToCode(c, "VALUE", O.UNARY) || "{}"), O.UNARY];
18832
18830
  }, b = function(c, s) {
18833
18831
  return ["#" + (s.valueToCode(c, "VALUE", O.UNARY) || "{}") + " == 0", O.RELATIONAL];
@@ -18873,7 +18871,7 @@ table.remove(` + s + ", " + d + `)
18873
18871
  return _ !== "LAST" && _ !== "FROM_END" && _ !== "RANDOM" || d.match(/^\w+$/) || (s = s.nameDB_.getDistinctName("tmp_list", f.NameType$$module$build$src$core$names.VARIABLE), M = s + " = " + d + `
18874
18872
  `, d = s), M = p === "SET" ? M + (d + "[" + Te(d, _, I) + "] = " + c) : M + ("table.insert(" + d + ", " + (Te(d, _, I) + (_ === "LAST" ? " + 1" : "")) + ", " + c + ")"), M + `
18875
18873
  `;
18876
- }, w = function(c, s) {
18874
+ }, S = function(c, s) {
18877
18875
  const d = s.valueToCode(c, "LIST", O.NONE) || "{}", p = c.getFieldValue("WHERE1"), _ = c.getFieldValue("WHERE2"), I = s.valueToCode(c, "AT1", O.NONE) || "1";
18878
18876
  c = s.valueToCode(c, "AT2", O.NONE) || "1";
18879
18877
  const M = p === "FROM_END" || p === "FROM_START" ? ", at1" : "", Q = _ === "FROM_END" || _ === "FROM_START" ? ", at2" : "";
@@ -19546,7 +19544,7 @@ end
19546
19544
  }, Te = function(c, s, d) {
19547
19545
  return s === "FIRST" ? "1" : s === "FROM_END" ? "#" + c + " + 1 - " + d : s === "LAST" ? "#" + c : s === "RANDOM" ? "math.random(#" + c + ")" : d;
19548
19546
  }, we = {};
19549
- we.lists_create_empty = C, we.lists_create_with = v, we.lists_getIndex = V, we.lists_getSublist = w, we.lists_indexOf = U, we.lists_isEmpty = b, we.lists_length = S, we.lists_repeat = N, we.lists_reverse = z, we.lists_setIndex = P, we.lists_sort = R, we.lists_split = B;
19547
+ we.lists_create_empty = C, we.lists_create_with = v, we.lists_getIndex = V, we.lists_getSublist = S, we.lists_indexOf = U, we.lists_isEmpty = b, we.lists_length = w, we.lists_repeat = N, we.lists_reverse = z, we.lists_setIndex = P, we.lists_sort = R, we.lists_split = B;
19550
19548
  var pe = {};
19551
19549
  pe.controls_if = J, pe.controls_ifelse = J, pe.logic_boolean = ee, pe.logic_compare = ne, pe.logic_negate = ce, pe.logic_null = q, pe.logic_operation = X, pe.logic_ternary = ae;
19552
19550
  var Be = `goto continue
@@ -19592,7 +19590,7 @@ function ${m.FUNCTION_NAME_PLACEHOLDER_}($value, $count) {
19592
19590
  }
19593
19591
  `), c = m.valueToCode(a, "ITEM", h.NONE) || "null";
19594
19592
  return a = m.valueToCode(a, "NUM", h.NONE) || "0", [u + "(" + c + ", " + a + ")", h.FUNCTION_CALL];
19595
- }, S = function(a, m) {
19593
+ }, w = function(a, m) {
19596
19594
  const u = m.provideFunction_("length", `
19597
19595
  function ${m.FUNCTION_NAME_PLACEHOLDER_}($value) {
19598
19596
  if (is_string($value)) {
@@ -19742,7 +19740,7 @@ function ${m.FUNCTION_NAME_PLACEHOLDER_}(&$list, $at, $value) {
19742
19740
  `);
19743
19741
  }
19744
19742
  throw Error("Unhandled combination (lists_setIndex).");
19745
- }, w = function(a, m) {
19743
+ }, S = function(a, m) {
19746
19744
  var u = m.valueToCode(a, "LIST", h.NONE) || "array()", c = a.getFieldValue("WHERE1");
19747
19745
  const s = a.getFieldValue("WHERE2");
19748
19746
  if (c !== "FIRST" || s !== "LAST") if (u.match(/^\$\w+$/) || c !== "FROM_END" && s === "FROM_START") {
@@ -20349,7 +20347,7 @@ function ${m.FUNCTION_NAME_PLACEHOLDER_}($text, $where1, $at1, $where2, $at2) {
20349
20347
  return u > 0 ? p = h.ADDITION : u < 0 ? p = h.SUBTRACTION : c && (p = h.UNARY_NEGATION), a = this.valueToCode(a, m, p) || d, u === 0 && !c ? a : f.isNumber$$module$build$src$core$utils$string(a) ? (a = String(Number(a) + u), c && (a = String(-Number(a))), a) : (u > 0 ? a = `${a} + ${u}` : u < 0 && (a = `${a} - ${-u}`), c && (a = u ? `-(${a})` : `-${a}`), Math.floor(s) >= Math.floor(p) && (a = `(${a})`), a);
20350
20348
  }
20351
20349
  }, Ae = {};
20352
- Ae.lists_create_empty = C, Ae.lists_create_with = v, Ae.lists_getIndex = V, Ae.lists_getSublist = w, Ae.lists_indexOf = U, Ae.lists_isEmpty = b, Ae.lists_length = S, Ae.lists_repeat = N, Ae.lists_reverse = z, Ae.lists_setIndex = P, Ae.lists_sort = R, Ae.lists_split = B;
20350
+ Ae.lists_create_empty = C, Ae.lists_create_with = v, Ae.lists_getIndex = V, Ae.lists_getSublist = S, Ae.lists_indexOf = U, Ae.lists_isEmpty = b, Ae.lists_length = w, Ae.lists_repeat = N, Ae.lists_reverse = z, Ae.lists_setIndex = P, Ae.lists_sort = R, Ae.lists_split = B;
20353
20351
  var Te = {};
20354
20352
  Te.controls_if = J, Te.controls_ifelse = J, Te.logic_boolean = ee, Te.logic_compare = ne, Te.logic_negate = ce, Te.logic_null = q, Te.logic_operation = X, Te.logic_ternary = ae;
20355
20353
  var we = {};
@@ -20386,7 +20384,7 @@ function cA() {
20386
20384
  }, N = function(u, c) {
20387
20385
  const s = c.valueToCode(u, "ITEM", h.NONE) || "None";
20388
20386
  return u = c.valueToCode(u, "NUM", h.MULTIPLICATIVE) || "0", ["[" + s + "] * " + u, h.MULTIPLICATIVE];
20389
- }, S = function(u, c) {
20387
+ }, w = function(u, c) {
20390
20388
  return [
20391
20389
  "len(" + (c.valueToCode(u, "VALUE", h.NONE) || "[]") + ")",
20392
20390
  h.FUNCTION_CALL
@@ -20485,7 +20483,7 @@ def ${c.FUNCTION_NAME_PLACEHOLDER_}(myList):
20485
20483
  `);
20486
20484
  }
20487
20485
  throw Error("Unhandled combination (lists_setIndex).");
20488
- }, w = function(u, c) {
20486
+ }, S = function(u, c) {
20489
20487
  const s = c.valueToCode(u, "LIST", h.MEMBER) || "[]";
20490
20488
  var d = u.getFieldValue("WHERE1");
20491
20489
  const p = u.getFieldValue("WHERE2");
@@ -21076,7 +21074,7 @@ def ${c.FUNCTION_NAME_PLACEHOLDER_}(msg):
21076
21074
  return u = this.valueToCode(u, c, s ? h.ADDITIVE : h.NONE) || p, f.isNumber$$module$build$src$core$utils$string(u) ? (u = parseInt(u, 10) + s, d && (u = -u)) : (u = s > 0 ? "int(" + u + " + " + s + ")" : s < 0 ? "int(" + u + " - " + -s + ")" : "int(" + u + ")", d && (u = "-" + u)), u;
21077
21075
  }
21078
21076
  }, Ae = {};
21079
- Ae.lists_create_empty = C, Ae.lists_create_with = v, Ae.lists_getIndex = V, Ae.lists_getSublist = w, Ae.lists_indexOf = U, Ae.lists_isEmpty = b, Ae.lists_length = S, Ae.lists_repeat = N, Ae.lists_reverse = z, Ae.lists_setIndex = P, Ae.lists_sort = R, Ae.lists_split = B;
21077
+ Ae.lists_create_empty = C, Ae.lists_create_with = v, Ae.lists_getIndex = V, Ae.lists_getSublist = S, Ae.lists_indexOf = U, Ae.lists_isEmpty = b, Ae.lists_length = w, Ae.lists_repeat = N, Ae.lists_reverse = z, Ae.lists_setIndex = P, Ae.lists_sort = R, Ae.lists_split = B;
21080
21078
  var Te = {};
21081
21079
  Te.controls_if = J, Te.controls_ifelse = J, Te.logic_boolean = ee, Te.logic_compare = ne, Te.logic_negate = ce, Te.logic_null = q, Te.logic_operation = X, Te.logic_ternary = ae;
21082
21080
  var we = {};
@@ -21108,16 +21106,16 @@ function uA() {
21108
21106
  return iT || (iT = 1, (function(l, g) {
21109
21107
  (function(n, f) {
21110
21108
  l.exports = f(Kr(), RT(), oA(), iA(), nA(), cA());
21111
- })(aA, (n, f, C, v, N, S) => (() => {
21112
- var b = { 127: (w) => {
21113
- w.exports = f;
21114
- }, 157: (w) => {
21115
- w.exports = v;
21116
- }, 370: (w) => {
21117
- w.exports = n;
21118
- }, 379: (w) => {
21119
- w.exports = C;
21120
- }, 462: function(w, R, B) {
21109
+ })(aA, (n, f, C, v, N, w) => (() => {
21110
+ var b = { 127: (S) => {
21111
+ S.exports = f;
21112
+ }, 157: (S) => {
21113
+ S.exports = v;
21114
+ }, 370: (S) => {
21115
+ S.exports = n;
21116
+ }, 379: (S) => {
21117
+ S.exports = C;
21118
+ }, 462: function(S, R, B) {
21121
21119
  var z;
21122
21120
  z = (J) => (() => {
21123
21121
  var ne = { 370: (Z) => {
@@ -21351,28 +21349,28 @@ function uA() {
21351
21349
  outline: none;
21352
21350
  }
21353
21351
  `), ee;
21354
- })(), w.exports = z(B(370));
21355
- }, 537: (w) => {
21356
- w.exports = N;
21357
- }, 557: (w) => {
21358
- w.exports = S;
21352
+ })(), S.exports = z(B(370));
21353
+ }, 537: (S) => {
21354
+ S.exports = N;
21355
+ }, 557: (S) => {
21356
+ S.exports = w;
21359
21357
  } }, U = {};
21360
- function V(w) {
21361
- var R = U[w];
21358
+ function V(S) {
21359
+ var R = U[S];
21362
21360
  if (R !== void 0) return R.exports;
21363
- var B = U[w] = { exports: {} };
21364
- return b[w].call(B.exports, B, B.exports, V), B.exports;
21361
+ var B = U[S] = { exports: {} };
21362
+ return b[S].call(B.exports, B, B.exports, V), B.exports;
21365
21363
  }
21366
- V.d = (w, R) => {
21367
- for (var B in R) V.o(R, B) && !V.o(w, B) && Object.defineProperty(w, B, { enumerable: !0, get: R[B] });
21368
- }, V.o = (w, R) => Object.prototype.hasOwnProperty.call(w, R), V.r = (w) => {
21369
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(w, "__esModule", { value: !0 });
21364
+ V.d = (S, R) => {
21365
+ for (var B in R) V.o(R, B) && !V.o(S, B) && Object.defineProperty(S, B, { enumerable: !0, get: R[B] });
21366
+ }, V.o = (S, R) => Object.prototype.hasOwnProperty.call(S, R), V.r = (S) => {
21367
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(S, "__esModule", { value: !0 });
21370
21368
  };
21371
21369
  var P = {};
21372
21370
  return (() => {
21373
- V.r(P), V.d(P, { FieldColour: () => ce, colourBlend: () => z, colourPicker: () => w, colourRandom: () => R, colourRgb: () => B, installAllBlocks: () => Be, registerFieldColour: () => q });
21374
- var w = {};
21375
- V.r(w), V.d(w, { BLOCK_NAME: () => K, blockDefinition: () => Ve, installBlock: () => le, toDart: () => _e, toJavascript: () => me, toLua: () => xe, toPhp: () => qe, toPython: () => Qe });
21371
+ V.r(P), V.d(P, { FieldColour: () => ce, colourBlend: () => z, colourPicker: () => S, colourRandom: () => R, colourRgb: () => B, installAllBlocks: () => Be, registerFieldColour: () => q });
21372
+ var S = {};
21373
+ V.r(S), V.d(S, { BLOCK_NAME: () => K, blockDefinition: () => Ve, installBlock: () => le, toDart: () => _e, toJavascript: () => me, toLua: () => xe, toPhp: () => qe, toPython: () => Qe });
21376
21374
  var R = {};
21377
21375
  V.r(R), V.d(R, { BLOCK_NAME: () => ut, blockDefinition: () => To, installBlock: () => he, toDart: () => Dt, toJavascript: () => zt, toLua: () => Zt, toPhp: () => Ke, toPython: () => ao });
21378
21376
  var B = {};
@@ -21753,35 +21751,35 @@ function hA() {
21753
21751
  (function(n, f) {
21754
21752
  l.exports = f(Kr());
21755
21753
  })(dA, (n) => (() => {
21756
- var f = { 370: (w) => {
21757
- w.exports = n;
21754
+ var f = { 370: (S) => {
21755
+ S.exports = n;
21758
21756
  } }, C = {};
21759
- function v(w) {
21760
- var R = C[w];
21757
+ function v(S) {
21758
+ var R = C[S];
21761
21759
  if (R !== void 0) return R.exports;
21762
- var B = C[w] = { exports: {} };
21763
- return f[w](B, B.exports, v), B.exports;
21760
+ var B = C[S] = { exports: {} };
21761
+ return f[S](B, B.exports, v), B.exports;
21764
21762
  }
21765
- v.n = (w) => {
21766
- var R = w && w.__esModule ? () => w.default : () => w;
21763
+ v.n = (S) => {
21764
+ var R = S && S.__esModule ? () => S.default : () => S;
21767
21765
  return v.d(R, { a: R }), R;
21768
- }, v.d = (w, R) => {
21769
- for (var B in R) v.o(R, B) && !v.o(w, B) && Object.defineProperty(w, B, { enumerable: !0, get: R[B] });
21770
- }, v.o = (w, R) => Object.prototype.hasOwnProperty.call(w, R), v.r = (w) => {
21771
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(w, "__esModule", { value: !0 });
21766
+ }, v.d = (S, R) => {
21767
+ for (var B in R) v.o(R, B) && !v.o(S, B) && Object.defineProperty(S, B, { enumerable: !0, get: R[B] });
21768
+ }, v.o = (S, R) => Object.prototype.hasOwnProperty.call(S, R), v.r = (S) => {
21769
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(S, "__esModule", { value: !0 });
21772
21770
  };
21773
21771
  var N = {};
21774
21772
  v.r(N), v.d(N, { CrossTabCopyPaste: () => P });
21775
- var S, b = v(370);
21776
- function U(w) {
21777
- return !!(b.isCopyable(w) && b.isDeletable(w) && b.isDraggable(w)) && (w.isCopyable ? w.isCopyable() : w instanceof b.BlockSvg || w instanceof b.comments.RenderedWorkspaceComment ? w.isOwnDeletable() && w.isOwnMovable() : w.isDeletable() && w.isMovable());
21773
+ var w, b = v(370);
21774
+ function U(S) {
21775
+ return !!(b.isCopyable(S) && b.isDeletable(S) && b.isDraggable(S)) && (S.isCopyable ? S.isCopyable() : S instanceof b.BlockSvg || S instanceof b.comments.RenderedWorkspaceComment ? S.isOwnDeletable() && S.isOwnMovable() : S.isDeletable() && S.isMovable());
21778
21776
  }
21779
- function V(w) {
21780
- return U(w) && b.isDeletable(w) && w.isDeletable();
21777
+ function V(S) {
21778
+ return U(S) && b.isDeletable(S) && S.isDeletable();
21781
21779
  }
21782
- (function(w) {
21783
- w.ENABLED = "enabled", w.DISABLED = "disabled", w.HIDDEN = "hidden";
21784
- })(S || (S = {}));
21780
+ (function(S) {
21781
+ S.ENABLED = "enabled", S.DISABLED = "disabled", S.HIDDEN = "hidden";
21782
+ })(w || (w = {}));
21785
21783
  class P {
21786
21784
  constructor() {
21787
21785
  this.localStorageKey = "blocklyStash";
@@ -21795,9 +21793,9 @@ function hA() {
21795
21793
  }
21796
21794
  copyPrecondition(R, B) {
21797
21795
  const z = R.focusedNode;
21798
- if (!z || !b.isCopyable(z) || (B || (B = z.workspace), !(B instanceof b.WorkspaceSvg))) return S.HIDDEN;
21796
+ if (!z || !b.isCopyable(z) || (B || (B = z.workspace), !(B instanceof b.WorkspaceSvg))) return w.HIDDEN;
21799
21797
  const J = B.isFlyout ? B.targetWorkspace : B;
21800
- return z && J && !J.isDragging() && !b.getFocusManager().ephemeralFocusTaken() && U(z) ? S.ENABLED : S.DISABLED;
21798
+ return z && J && !J.isDragging() && !b.getFocusManager().ephemeralFocusTaken() && U(z) ? w.ENABLED : w.DISABLED;
21801
21799
  }
21802
21800
  copyCallback(R, B) {
21803
21801
  const z = R.focusedNode;
@@ -21810,7 +21808,7 @@ function hA() {
21810
21808
  }
21811
21809
  pastePrecondition(R) {
21812
21810
  const B = this.getCopyData();
21813
- return B ? "typeCounts" in B && !R?.isCapacityAvailable(B.typeCounts) || !R || R.isReadOnly() || R.isDragging() || b.getFocusManager().ephemeralFocusTaken() ? S.DISABLED : S.ENABLED : S.DISABLED;
21811
+ return B ? "typeCounts" in B && !R?.isCapacityAvailable(B.typeCounts) || !R || R.isReadOnly() || R.isDragging() || b.getFocusManager().ephemeralFocusTaken() ? w.DISABLED : w.ENABLED : w.DISABLED;
21814
21812
  }
21815
21813
  getContextMenuText(R) {
21816
21814
  return R.indexOf(")") === R.length - 1 && (R = R.split(" (")[0]), R;
@@ -21826,7 +21824,7 @@ function hA() {
21826
21824
  }
21827
21825
  blockPasteFromStorageContextMenu(R) {
21828
21826
  const B = { displayText: () => b.Msg.CROSS_TAB_PASTE ? b.Msg.CROSS_TAB_PASTE : this.getContextMenuText(b.Msg.PASTE_SHORTCUT), preconditionFn: (z) => {
21829
- if (!(z.focusedNode instanceof b.WorkspaceSvg) || z.focusedNode.isFlyout) return S.HIDDEN;
21827
+ if (!(z.focusedNode instanceof b.WorkspaceSvg) || z.focusedNode.isFlyout) return w.HIDDEN;
21830
21828
  const J = z.focusedNode;
21831
21829
  return this.pastePrecondition(J);
21832
21830
  }, callback: (z, J, ne, X) => {
@@ -21845,7 +21843,7 @@ function hA() {
21845
21843
  b.ContextMenuRegistry.registry.register(B);
21846
21844
  }
21847
21845
  blockCopyToStorageShortcut() {
21848
- const R = b.ShortcutRegistry.registry.createSerializedKey(b.utils.KeyCodes.C, [b.utils.KeyCodes.CTRL]), B = b.ShortcutRegistry.registry.createSerializedKey(b.utils.KeyCodes.C, [b.utils.KeyCodes.META]), z = { name: b.ShortcutItems.names.COPY, keyCodes: [R, B], preconditionFn: (J, ne) => this.copyPrecondition(ne, J) === S.ENABLED, callback: (J, ne, X, ce) => (ne.preventDefault(), this.copyCallback(ce, J)) };
21846
+ const R = b.ShortcutRegistry.registry.createSerializedKey(b.utils.KeyCodes.C, [b.utils.KeyCodes.CTRL]), B = b.ShortcutRegistry.registry.createSerializedKey(b.utils.KeyCodes.C, [b.utils.KeyCodes.META]), z = { name: b.ShortcutItems.names.COPY, keyCodes: [R, B], preconditionFn: (J, ne) => this.copyPrecondition(ne, J) === w.ENABLED, callback: (J, ne, X, ce) => (ne.preventDefault(), this.copyCallback(ce, J)) };
21849
21847
  b.ShortcutRegistry.registry.register(z);
21850
21848
  }
21851
21849
  blockCutToStorageShortcut() {
@@ -21870,7 +21868,7 @@ function hA() {
21870
21868
  blockPasteFromStorageShortcut(R) {
21871
21869
  const B = b.ShortcutRegistry.registry.createSerializedKey(b.utils.KeyCodes.V, [b.utils.KeyCodes.CTRL]), z = b.ShortcutRegistry.registry.createSerializedKey(b.utils.KeyCodes.V, [b.utils.KeyCodes.META]), J = { name: b.ShortcutItems.names.PASTE, keyCodes: [B, z], preconditionFn: (ne) => {
21872
21870
  const X = ne.isFlyout ? ne.targetWorkspace : ne;
21873
- return !!X && this.pastePrecondition(X) === S.ENABLED;
21871
+ return !!X && this.pastePrecondition(X) === w.ENABLED;
21874
21872
  }, callback: (ne, X) => {
21875
21873
  X.preventDefault();
21876
21874
  const ce = this.getCopyData();
@@ -22140,22 +22138,22 @@ function yr() {
22140
22138
  }
22141
22139
  function qt(l, g, n, f, C) {
22142
22140
  if (!(!l.getBoundingClientRect && l !== window)) {
22143
- var v, N, S, b, U, V, P;
22144
- if (l !== window && l.parentNode && l !== yr() ? (v = l.getBoundingClientRect(), N = v.top, S = v.left, b = v.bottom, U = v.right, V = v.height, P = v.width) : (N = 0, S = 0, b = window.innerHeight, U = window.innerWidth, V = window.innerHeight, P = window.innerWidth), (g || n) && l !== window && (C = C || l.parentNode, !qr))
22141
+ var v, N, w, b, U, V, P;
22142
+ if (l !== window && l.parentNode && l !== yr() ? (v = l.getBoundingClientRect(), N = v.top, w = v.left, b = v.bottom, U = v.right, V = v.height, P = v.width) : (N = 0, w = 0, b = window.innerHeight, U = window.innerWidth, V = window.innerHeight, P = window.innerWidth), (g || n) && l !== window && (C = C || l.parentNode, !qr))
22145
22143
  do
22146
22144
  if (C && C.getBoundingClientRect && (Me(C, "transform") !== "none" || n && Me(C, "position") !== "static")) {
22147
- var w = C.getBoundingClientRect();
22148
- N -= w.top + parseInt(Me(C, "border-top-width")), S -= w.left + parseInt(Me(C, "border-left-width")), b = N + v.height, U = S + v.width;
22145
+ var S = C.getBoundingClientRect();
22146
+ N -= S.top + parseInt(Me(C, "border-top-width")), w -= S.left + parseInt(Me(C, "border-left-width")), b = N + v.height, U = w + v.width;
22149
22147
  break;
22150
22148
  }
22151
22149
  while (C = C.parentNode);
22152
22150
  if (f && l !== window) {
22153
22151
  var R = nn(C || l), B = R && R.a, z = R && R.d;
22154
- R && (N /= z, S /= B, P /= B, V /= z, b = N + V, U = S + P);
22152
+ R && (N /= z, w /= B, P /= B, V /= z, b = N + V, U = w + P);
22155
22153
  }
22156
22154
  return {
22157
22155
  top: N,
22158
- left: S,
22156
+ left: w,
22159
22157
  bottom: b,
22160
22158
  right: U,
22161
22159
  width: P,
@@ -22267,10 +22265,10 @@ function Eb(l) {
22267
22265
  function Tb(l, g, n) {
22268
22266
  var f = {};
22269
22267
  return Array.from(l.children).forEach(function(C) {
22270
- var v, N, S, b;
22268
+ var v, N, w, b;
22271
22269
  if (!(!lr(C, g.draggable, l, !1) || C.animated || C === n)) {
22272
22270
  var U = qt(C);
22273
- f.left = Math.min((v = f.left) !== null && v !== void 0 ? v : 1 / 0, U.left), f.top = Math.min((N = f.top) !== null && N !== void 0 ? N : 1 / 0, U.top), f.right = Math.max((S = f.right) !== null && S !== void 0 ? S : -1 / 0, U.right), f.bottom = Math.max((b = f.bottom) !== null && b !== void 0 ? b : -1 / 0, U.bottom);
22271
+ f.left = Math.min((v = f.left) !== null && v !== void 0 ? v : 1 / 0, U.left), f.top = Math.min((N = f.top) !== null && N !== void 0 ? N : 1 / 0, U.top), f.right = Math.max((w = f.right) !== null && w !== void 0 ? w : -1 / 0, U.right), f.bottom = Math.max((b = f.bottom) !== null && b !== void 0 ? b : -1 / 0, U.bottom);
22274
22272
  }
22275
22273
  }), f.width = f.right - f.left, f.height = f.bottom - f.top, f.x = f.left, f.y = f.top, f;
22276
22274
  }
@@ -22313,11 +22311,11 @@ function DA() {
22313
22311
  }
22314
22312
  var C = !1, v = 0;
22315
22313
  l.forEach(function(N) {
22316
- var S = 0, b = N.target, U = b.fromRect, V = qt(b), P = b.prevFromRect, w = b.prevToRect, R = N.rect, B = nn(b, !0);
22314
+ var w = 0, b = N.target, U = b.fromRect, V = qt(b), P = b.prevFromRect, S = b.prevToRect, R = N.rect, B = nn(b, !0);
22317
22315
  B && (V.top -= B.f, V.left -= B.e), b.toRect = V, b.thisAnimationDuration && I$(P, V) && !I$(U, V) && // Make sure animatingRect is on line between toRect & fromRect
22318
- (R.top - V.top) / (R.left - V.left) === (U.top - V.top) / (U.left - V.left) && (S = MA(R, P, w, f.options)), I$(V, U) || (b.prevFromRect = U, b.prevToRect = V, S || (S = f.options.animation), f.animate(b, R, V, S)), S && (C = !0, v = Math.max(v, S), clearTimeout(b.animationResetTimer), b.animationResetTimer = setTimeout(function() {
22316
+ (R.top - V.top) / (R.left - V.left) === (U.top - V.top) / (U.left - V.left) && (w = MA(R, P, S, f.options)), I$(V, U) || (b.prevFromRect = U, b.prevToRect = V, w || (w = f.options.animation), f.animate(b, R, V, w)), w && (C = !0, v = Math.max(v, w), clearTimeout(b.animationResetTimer), b.animationResetTimer = setTimeout(function() {
22319
22317
  b.animationTime = 0, b.prevFromRect = null, b.fromRect = null, b.prevToRect = null, b.thisAnimationDuration = null;
22320
- }, S), b.thisAnimationDuration = S);
22318
+ }, w), b.thisAnimationDuration = w);
22321
22319
  }), clearTimeout(g), C ? g = setTimeout(function() {
22322
22320
  typeof n == "function" && n();
22323
22321
  }, v) : typeof n == "function" && n(), l = [];
@@ -22325,7 +22323,7 @@ function DA() {
22325
22323
  animate: function(n, f, C, v) {
22326
22324
  if (v) {
22327
22325
  Me(n, "transition", ""), Me(n, "transform", "");
22328
- var N = nn(this.el), S = N && N.a, b = N && N.d, U = (f.left - C.left) / (S || 1), V = (f.top - C.top) / (b || 1);
22326
+ var N = nn(this.el), w = N && N.a, b = N && N.d, U = (f.left - C.left) / (w || 1), V = (f.top - C.top) / (b || 1);
22329
22327
  n.animatingX = !!U, n.animatingY = !!V, Me(n, "transform", "translate3d(" + U + "px," + V + "px,0)"), this.forRepaintDummy = xA(n), Me(n, "transition", "transform " + v + "ms" + (this.options.easing ? " " + this.options.easing : "")), Me(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
22330
22328
  Me(n, "transition", ""), Me(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
22331
22329
  }, v);
@@ -22366,10 +22364,10 @@ var Qs = [], N$ = {
22366
22364
  },
22367
22365
  initializePlugins: function(l, g, n, f) {
22368
22366
  Qs.forEach(function(N) {
22369
- var S = N.pluginName;
22370
- if (!(!l.options[S] && !N.initializeByDefault)) {
22367
+ var w = N.pluginName;
22368
+ if (!(!l.options[w] && !N.initializeByDefault)) {
22371
22369
  var b = new N(l, g, l.options);
22372
- b.sortable = l, b.options = l.options, l[S] = b, Yr(n, b.defaults);
22370
+ b.sortable = l, b.options = l.options, l[w] = b, Yr(n, b.defaults);
22373
22371
  }
22374
22372
  });
22375
22373
  for (var C in l.options)
@@ -22392,13 +22390,13 @@ var Qs = [], N$ = {
22392
22390
  }
22393
22391
  };
22394
22392
  function FA(l) {
22395
- var g = l.sortable, n = l.rootEl, f = l.name, C = l.targetEl, v = l.cloneEl, N = l.toEl, S = l.fromEl, b = l.oldIndex, U = l.newIndex, V = l.oldDraggableIndex, P = l.newDraggableIndex, w = l.originalEvent, R = l.putSortable, B = l.extraEventProperties;
22393
+ var g = l.sortable, n = l.rootEl, f = l.name, C = l.targetEl, v = l.cloneEl, N = l.toEl, w = l.fromEl, b = l.oldIndex, U = l.newIndex, V = l.oldDraggableIndex, P = l.newDraggableIndex, S = l.originalEvent, R = l.putSortable, B = l.extraEventProperties;
22396
22394
  if (g = g || n && n[Go], !!g) {
22397
22395
  var z, J = g.options, ne = "on" + f.charAt(0).toUpperCase() + f.substr(1);
22398
22396
  window.CustomEvent && !qr && !vl ? z = new CustomEvent(f, {
22399
22397
  bubbles: !0,
22400
22398
  cancelable: !0
22401
- }) : (z = document.createEvent("Event"), z.initEvent(f, !0, !0)), z.to = N || n, z.from = S || n, z.item = C || n, z.clone = v, z.oldIndex = b, z.newIndex = U, z.oldDraggableIndex = V, z.newDraggableIndex = P, z.originalEvent = w, z.pullMode = R ? R.lastPutMode : void 0;
22399
+ }) : (z = document.createEvent("Event"), z.initEvent(f, !0, !0)), z.to = N || n, z.from = w || n, z.item = C || n, z.clone = v, z.oldIndex = b, z.newIndex = U, z.oldDraggableIndex = V, z.newDraggableIndex = P, z.originalEvent = S, z.pullMode = R ? R.lastPutMode : void 0;
22402
22400
  var X = Ar(Ar({}, B), Cl.getEventProperties(f, g));
22403
22401
  for (var ce in X)
22404
22402
  z[ce] = X[ce];
@@ -22461,33 +22459,33 @@ var de, Wt, We, yt, rs, Ca, kt, fi, sn, Ho, fl, mi, aa, po, on = !1, La = !1, Da
22461
22459
  return l.style.cssText = "pointer-events:auto", l.style.pointerEvents === "auto";
22462
22460
  }
22463
22461
  })(), vb = function(l, g) {
22464
- var n = Me(l), f = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), C = an(l, 0, g), v = an(l, 1, g), N = C && Me(C), S = v && Me(v), b = N && parseInt(N.marginLeft) + parseInt(N.marginRight) + qt(C).width, U = S && parseInt(S.marginLeft) + parseInt(S.marginRight) + qt(v).width;
22462
+ var n = Me(l), f = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), C = an(l, 0, g), v = an(l, 1, g), N = C && Me(C), w = v && Me(v), b = N && parseInt(N.marginLeft) + parseInt(N.marginRight) + qt(C).width, U = w && parseInt(w.marginLeft) + parseInt(w.marginRight) + qt(v).width;
22465
22463
  if (n.display === "flex")
22466
22464
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
22467
22465
  if (n.display === "grid")
22468
22466
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
22469
22467
  if (C && N.float && N.float !== "none") {
22470
22468
  var V = N.float === "left" ? "left" : "right";
22471
- return v && (S.clear === "both" || S.clear === V) ? "vertical" : "horizontal";
22469
+ return v && (w.clear === "both" || w.clear === V) ? "vertical" : "horizontal";
22472
22470
  }
22473
22471
  return C && (N.display === "block" || N.display === "flex" || N.display === "table" || N.display === "grid" || b >= f && n[ET] === "none" || v && n[ET] === "none" && b + U > f) ? "vertical" : "horizontal";
22474
22472
  }, UA = function(l, g, n) {
22475
- var f = n ? l.left : l.top, C = n ? l.right : l.bottom, v = n ? l.width : l.height, N = n ? g.left : g.top, S = n ? g.right : g.bottom, b = n ? g.width : g.height;
22476
- return f === N || C === S || f + v / 2 === N + b / 2;
22473
+ var f = n ? l.left : l.top, C = n ? l.right : l.bottom, v = n ? l.width : l.height, N = n ? g.left : g.top, w = n ? g.right : g.bottom, b = n ? g.width : g.height;
22474
+ return f === N || C === w || f + v / 2 === N + b / 2;
22477
22475
  }, VA = function(l, g) {
22478
22476
  var n;
22479
22477
  return Da.some(function(f) {
22480
22478
  var C = f[Go].options.emptyInsertThreshold;
22481
22479
  if (!(!C || Z$(f))) {
22482
- var v = qt(f), N = l >= v.left - C && l <= v.right + C, S = g >= v.top - C && g <= v.bottom + C;
22483
- if (N && S)
22480
+ var v = qt(f), N = l >= v.left - C && l <= v.right + C, w = g >= v.top - C && g <= v.bottom + C;
22481
+ if (N && w)
22484
22482
  return n = f;
22485
22483
  }
22486
22484
  }), n;
22487
22485
  }, Cb = function(l) {
22488
22486
  function g(C, v) {
22489
- return function(N, S, b, U) {
22490
- var V = N.options.group.name && S.options.group.name && N.options.group.name === S.options.group.name;
22487
+ return function(N, w, b, U) {
22488
+ var V = N.options.group.name && w.options.group.name && N.options.group.name === w.options.group.name;
22491
22489
  if (C == null && (v || V))
22492
22490
  return !0;
22493
22491
  if (C == null || C === !1)
@@ -22495,8 +22493,8 @@ var de, Wt, We, yt, rs, Ca, kt, fi, sn, Ho, fl, mi, aa, po, on = !1, La = !1, Da
22495
22493
  if (v && C === "clone")
22496
22494
  return C;
22497
22495
  if (typeof C == "function")
22498
- return g(C(N, S, b, U), v)(N, S, b, U);
22499
- var P = (v ? N : S).options.group.name;
22496
+ return g(C(N, w, b, U), v)(N, w, b, U);
22497
+ var P = (v ? N : w).options.group.name;
22500
22498
  return C === !0 || typeof C == "string" && C === P || C.join && C.indexOf(P) > -1;
22501
22499
  };
22502
22500
  }
@@ -22595,15 +22593,15 @@ Fe.prototype = /** @lends Sortable.prototype */
22595
22593
  },
22596
22594
  _onTapStart: function(l) {
22597
22595
  if (l.cancelable) {
22598
- var g = this, n = this.el, f = this.options, C = f.preventOnFilter, v = l.type, N = l.touches && l.touches[0] || l.pointerType && l.pointerType === "touch" && l, S = (N || l).target, b = l.target.shadowRoot && (l.path && l.path[0] || l.composedPath && l.composedPath()[0]) || S, U = f.filter;
22599
- if (JA(n), !de && !(/mousedown|pointerdown/.test(v) && l.button !== 0 || f.disabled) && !b.isContentEditable && !(!this.nativeDraggable && gl && S && S.tagName.toUpperCase() === "SELECT") && (S = lr(S, f.draggable, n, !1), !(S && S.animated) && Ca !== S)) {
22600
- if (sn = Jo(S), fl = Jo(S, f.draggable), typeof U == "function") {
22601
- if (U.call(this, l, S, this)) {
22596
+ var g = this, n = this.el, f = this.options, C = f.preventOnFilter, v = l.type, N = l.touches && l.touches[0] || l.pointerType && l.pointerType === "touch" && l, w = (N || l).target, b = l.target.shadowRoot && (l.path && l.path[0] || l.composedPath && l.composedPath()[0]) || w, U = f.filter;
22597
+ if (JA(n), !de && !(/mousedown|pointerdown/.test(v) && l.button !== 0 || f.disabled) && !b.isContentEditable && !(!this.nativeDraggable && gl && w && w.tagName.toUpperCase() === "SELECT") && (w = lr(w, f.draggable, n, !1), !(w && w.animated) && Ca !== w)) {
22598
+ if (sn = Jo(w), fl = Jo(w, f.draggable), typeof U == "function") {
22599
+ if (U.call(this, l, w, this)) {
22602
22600
  Io({
22603
22601
  sortable: g,
22604
22602
  rootEl: b,
22605
22603
  name: "filter",
22606
- targetEl: S,
22604
+ targetEl: w,
22607
22605
  toEl: n,
22608
22606
  fromEl: n
22609
22607
  }), Ao("filter", g, {
@@ -22617,7 +22615,7 @@ Fe.prototype = /** @lends Sortable.prototype */
22617
22615
  sortable: g,
22618
22616
  rootEl: V,
22619
22617
  name: "filter",
22620
- targetEl: S,
22618
+ targetEl: w,
22621
22619
  fromEl: n,
22622
22620
  toEl: n
22623
22621
  }), Ao("filter", g, {
@@ -22627,19 +22625,19 @@ Fe.prototype = /** @lends Sortable.prototype */
22627
22625
  C && l.cancelable && l.preventDefault();
22628
22626
  return;
22629
22627
  }
22630
- f.handle && !lr(b, f.handle, n, !1) || this._prepareDragStart(l, N, S);
22628
+ f.handle && !lr(b, f.handle, n, !1) || this._prepareDragStart(l, N, w);
22631
22629
  }
22632
22630
  }
22633
22631
  },
22634
22632
  _prepareDragStart: function(l, g, n) {
22635
- var f = this, C = f.el, v = f.options, N = C.ownerDocument, S;
22633
+ var f = this, C = f.el, v = f.options, N = C.ownerDocument, w;
22636
22634
  if (n && !de && n.parentNode === C) {
22637
22635
  var b = qt(n);
22638
22636
  if (yt = C, de = n, Wt = de.parentNode, rs = de.nextSibling, Ca = n, aa = v.group, Fe.dragged = de, ts = {
22639
22637
  target: de,
22640
22638
  clientX: (g || l).clientX,
22641
22639
  clientY: (g || l).clientY
22642
- }, fT = ts.clientX - b.left, _T = ts.clientY - b.top, this._lastX = (g || l).clientX, this._lastY = (g || l).clientY, de.style["will-change"] = "all", S = function() {
22640
+ }, fT = ts.clientX - b.left, _T = ts.clientY - b.top, this._lastX = (g || l).clientX, this._lastY = (g || l).clientY, de.style["will-change"] = "all", w = function() {
22643
22641
  if (Ao("delayEnded", f, {
22644
22642
  evt: l
22645
22643
  }), Fe.eventCanceled) {
@@ -22660,9 +22658,9 @@ Fe.prototype = /** @lends Sortable.prototype */
22660
22658
  this._onDrop();
22661
22659
  return;
22662
22660
  }
22663
- nt(N, "mouseup", f._disableDelayedDrag), nt(N, "touchend", f._disableDelayedDrag), nt(N, "touchcancel", f._disableDelayedDrag), nt(N, "mousemove", f._delayedDragTouchMoveHandler), nt(N, "touchmove", f._delayedDragTouchMoveHandler), v.supportPointer && nt(N, "pointermove", f._delayedDragTouchMoveHandler), f._dragStartTimer = setTimeout(S, v.delay);
22661
+ nt(N, "mouseup", f._disableDelayedDrag), nt(N, "touchend", f._disableDelayedDrag), nt(N, "touchcancel", f._disableDelayedDrag), nt(N, "mousemove", f._delayedDragTouchMoveHandler), nt(N, "touchmove", f._delayedDragTouchMoveHandler), v.supportPointer && nt(N, "pointermove", f._delayedDragTouchMoveHandler), f._dragStartTimer = setTimeout(w, v.delay);
22664
22662
  } else
22665
- S();
22663
+ w();
22666
22664
  }
22667
22665
  },
22668
22666
  _delayedDragTouchMoveHandler: function(l) {
@@ -22723,7 +22721,7 @@ Fe.prototype = /** @lends Sortable.prototype */
22723
22721
  },
22724
22722
  _onTouchMove: function(l) {
22725
22723
  if (ts) {
22726
- var g = this.options, n = g.fallbackTolerance, f = g.fallbackOffset, C = l.touches ? l.touches[0] : l, v = We && nn(We, !0), N = We && v && v.a, S = We && v && v.d, b = da && Eo && mT(Eo), U = (C.clientX - ts.clientX + f.x) / (N || 1) + (b ? b[0] - A$[0] : 0) / (N || 1), V = (C.clientY - ts.clientY + f.y) / (S || 1) + (b ? b[1] - A$[1] : 0) / (S || 1);
22724
+ var g = this.options, n = g.fallbackTolerance, f = g.fallbackOffset, C = l.touches ? l.touches[0] : l, v = We && nn(We, !0), N = We && v && v.a, w = We && v && v.d, b = da && Eo && mT(Eo), U = (C.clientX - ts.clientX + f.x) / (N || 1) + (b ? b[0] - A$[0] : 0) / (N || 1), V = (C.clientY - ts.clientY + f.y) / (w || 1) + (b ? b[1] - A$[1] : 0) / (w || 1);
22727
22725
  if (!Fe.active && !on) {
22728
22726
  if (n && Math.max(Math.abs(C.clientX - this._lastX), Math.abs(C.clientY - this._lastY)) < n)
22729
22727
  return;
@@ -22772,14 +22770,14 @@ Fe.prototype = /** @lends Sortable.prototype */
22772
22770
  },
22773
22771
  // Returns true - if no further action is needed (either inserted or another condition)
22774
22772
  _onDragOver: function(l) {
22775
- var g = this.el, n = l.target, f, C, v, N = this.options, S = N.group, b = Fe.active, U = aa === S, V = N.sort, P = po || b, w, R = this, B = !1;
22773
+ var g = this.el, n = l.target, f, C, v, N = this.options, w = N.group, b = Fe.active, U = aa === w, V = N.sort, P = po || b, S, R = this, B = !1;
22776
22774
  if (V$)
22777
22775
  return;
22778
22776
  function z(Qe, Le) {
22779
22777
  Ao(Qe, R, Ar({
22780
22778
  evt: l,
22781
22779
  isOwner: U,
22782
- axis: w ? "vertical" : "horizontal",
22780
+ axis: S ? "vertical" : "horizontal",
22783
22781
  revert: v,
22784
22782
  dragRect: f,
22785
22783
  targetRect: C,
@@ -22817,18 +22815,18 @@ Fe.prototype = /** @lends Sortable.prototype */
22817
22815
  return B;
22818
22816
  if (de.contains(l.target) || n.animated && n.animatingX && n.animatingY || R._ignoreWhileAnimating === n)
22819
22817
  return ne(!1);
22820
- if (La = !1, b && !N.disabled && (U ? V || (v = Wt !== yt) : po === this || (this.lastPutMode = aa.checkPull(this, b, de, l)) && S.checkPut(this, b, de, l))) {
22821
- if (w = this._getDirection(l, n) === "vertical", f = qt(de), z("dragOverValid"), Fe.eventCanceled)
22818
+ if (La = !1, b && !N.disabled && (U ? V || (v = Wt !== yt) : po === this || (this.lastPutMode = aa.checkPull(this, b, de, l)) && w.checkPut(this, b, de, l))) {
22819
+ if (S = this._getDirection(l, n) === "vertical", f = qt(de), z("dragOverValid"), Fe.eventCanceled)
22822
22820
  return B;
22823
22821
  if (v)
22824
22822
  return Wt = yt, J(), this._hideClone(), z("revert"), Fe.eventCanceled || (rs ? yt.insertBefore(de, rs) : yt.appendChild(de)), ne(!0);
22825
22823
  var ce = Z$(g, N.draggable);
22826
- if (!ce || jA(l, w, this) && !ce.animated) {
22824
+ if (!ce || jA(l, S, this) && !ce.animated) {
22827
22825
  if (ce === de)
22828
22826
  return ne(!1);
22829
22827
  if (ce && g === l.target && (n = ce), n && (C = qt(n)), ha(yt, g, de, f, n, C, l, !!n) !== !1)
22830
22828
  return J(), ce && ce.nextSibling ? g.insertBefore(de, ce.nextSibling) : g.appendChild(de), Wt = g, X(), ne(!0);
22831
- } else if (ce && zA(l, w, this)) {
22829
+ } else if (ce && zA(l, S, this)) {
22832
22830
  var ee = an(g, 0, N, !0);
22833
22831
  if (ee === de)
22834
22832
  return ne(!1);
@@ -22836,8 +22834,8 @@ Fe.prototype = /** @lends Sortable.prototype */
22836
22834
  return J(), g.insertBefore(de, ee), Wt = g, X(), ne(!0);
22837
22835
  } else if (n.parentNode === g) {
22838
22836
  C = qt(n);
22839
- var q = 0, ae, ye = de.parentNode !== g, ie = !UA(de.animated && de.toRect || f, n.animated && n.toRect || C, w), Z = w ? "top" : "left", W = gT(n, "top", "top") || gT(de, "top", "top"), K = W ? W.scrollTop : void 0;
22840
- en !== n && (ae = C[Z], El = !1, ua = !ie && N.invertSwap || ye), q = XA(l, n, C, w, ie ? 1 : N.swapThreshold, N.invertedSwapThreshold == null ? N.swapThreshold : N.invertedSwapThreshold, ua, en === n);
22837
+ var q = 0, ae, ye = de.parentNode !== g, ie = !UA(de.animated && de.toRect || f, n.animated && n.toRect || C, S), Z = S ? "top" : "left", W = gT(n, "top", "top") || gT(de, "top", "top"), K = W ? W.scrollTop : void 0;
22838
+ en !== n && (ae = C[Z], El = !1, ua = !ie && N.invertSwap || ye), q = XA(l, n, C, S, ie ? 1 : N.swapThreshold, N.invertedSwapThreshold == null ? N.swapThreshold : N.invertedSwapThreshold, ua, en === n);
22841
22839
  var te;
22842
22840
  if (q !== 0) {
22843
22841
  var me = Jo(de);
@@ -23024,12 +23022,12 @@ Fe.prototype = /** @lends Sortable.prototype */
23024
23022
  function GA(l) {
23025
23023
  l.dataTransfer && (l.dataTransfer.dropEffect = "move"), l.cancelable && l.preventDefault();
23026
23024
  }
23027
- function ha(l, g, n, f, C, v, N, S) {
23025
+ function ha(l, g, n, f, C, v, N, w) {
23028
23026
  var b, U = l[Go], V = U.options.onMove, P;
23029
23027
  return window.CustomEvent && !qr && !vl ? b = new CustomEvent("move", {
23030
23028
  bubbles: !0,
23031
23029
  cancelable: !0
23032
- }) : (b = document.createEvent("Event"), b.initEvent("move", !0, !0)), b.to = g, b.from = l, b.dragged = n, b.draggedRect = f, b.related = C || g, b.relatedRect = v || qt(g), b.willInsertAfter = S, b.originalEvent = N, l.dispatchEvent(b), V && (P = V.call(U, b, N)), P;
23030
+ }) : (b = document.createEvent("Event"), b.initEvent("move", !0, !0)), b.to = g, b.from = l, b.dragged = n, b.draggedRect = f, b.related = C || g, b.relatedRect = v || qt(g), b.willInsertAfter = w, b.originalEvent = N, l.dispatchEvent(b), V && (P = V.call(U, b, N)), P;
23033
23031
  }
23034
23032
  function w$(l) {
23035
23033
  l.draggable = !1;
@@ -23045,18 +23043,18 @@ function jA(l, g, n) {
23045
23043
  var f = qt(Z$(n.el, n.options.draggable)), C = Tb(n.el, n.options, We), v = 10;
23046
23044
  return g ? l.clientX > C.right + v || l.clientY > f.bottom && l.clientX > f.left : l.clientY > C.bottom + v || l.clientX > f.right && l.clientY > f.top;
23047
23045
  }
23048
- function XA(l, g, n, f, C, v, N, S) {
23049
- var b = f ? l.clientY : l.clientX, U = f ? n.height : n.width, V = f ? n.top : n.left, P = f ? n.bottom : n.right, w = !1;
23046
+ function XA(l, g, n, f, C, v, N, w) {
23047
+ var b = f ? l.clientY : l.clientX, U = f ? n.height : n.width, V = f ? n.top : n.left, P = f ? n.bottom : n.right, S = !1;
23050
23048
  if (!N) {
23051
- if (S && Ia < U * C) {
23049
+ if (w && Ia < U * C) {
23052
23050
  if (!El && (_l === 1 ? b > V + U * v / 2 : b < P - U * v / 2) && (El = !0), El)
23053
- w = !0;
23051
+ S = !0;
23054
23052
  else if (_l === 1 ? b < V + Ia : b > P - Ia)
23055
23053
  return -_l;
23056
23054
  } else if (b > V + U * (1 - C) / 2 && b < P - U * (1 - C) / 2)
23057
23055
  return YA(g);
23058
23056
  }
23059
- return w = w || N, w && (b < V + U * v / 2 || b > P - U * v / 2) ? b > V + U / 2 ? 1 : -1 : 0;
23057
+ return S = S || N, S && (b < V + U * v / 2 || b > P - U * v / 2) ? b > V + U / 2 ? 1 : -1 : 0;
23060
23058
  }
23061
23059
  function YA(l) {
23062
23060
  return Jo(de) < Jo(l) ? 1 : -1;
@@ -23152,10 +23150,10 @@ function qA() {
23152
23150
  var f = this, C = (g.touches ? g.touches[0] : g).clientX, v = (g.touches ? g.touches[0] : g).clientY, N = document.elementFromPoint(C, v);
23153
23151
  if (Ma = g, n || this.options.forceAutoScrollFallback || vl || qr || gl) {
23154
23152
  k$(g, this.options, N, n);
23155
- var S = Ei(N, !0);
23153
+ var w = Ei(N, !0);
23156
23154
  W$ && (!$l || C !== S$ || v !== R$) && ($l && TT(), $l = setInterval(function() {
23157
23155
  var b = Ei(document.elementFromPoint(C, v), !0);
23158
- b !== S && (S = b, ya()), k$(g, f.options, b, n);
23156
+ b !== w && (w = b, ya()), k$(g, f.options, b, n);
23159
23157
  }, 10), S$ = C, R$ = v);
23160
23158
  } else {
23161
23159
  if (!this.options.bubbleScroll || Ei(N, !0) === yr()) {
@@ -23180,11 +23178,11 @@ function TT() {
23180
23178
  }
23181
23179
  var k$ = fb(function(l, g, n, f) {
23182
23180
  if (g.scroll) {
23183
- var C = (l.touches ? l.touches[0] : l).clientX, v = (l.touches ? l.touches[0] : l).clientY, N = g.scrollSensitivity, S = g.scrollSpeed, b = yr(), U = !1, V;
23181
+ var C = (l.touches ? l.touches[0] : l).clientX, v = (l.touches ? l.touches[0] : l).clientY, N = g.scrollSensitivity, w = g.scrollSpeed, b = yr(), U = !1, V;
23184
23182
  G$ !== n && (G$ = n, ya(), hl = g.scroll, V = g.scrollFn, hl === !0 && (hl = Ei(n, !0)));
23185
- var P = 0, w = hl;
23183
+ var P = 0, S = hl;
23186
23184
  do {
23187
- var R = w, B = qt(R), z = B.top, J = B.bottom, ne = B.left, X = B.right, ce = B.width, ee = B.height, q = void 0, ae = void 0, ye = R.scrollWidth, ie = R.scrollHeight, Z = Me(R), W = R.scrollLeft, K = R.scrollTop;
23185
+ var R = S, B = qt(R), z = B.top, J = B.bottom, ne = B.left, X = B.right, ce = B.width, ee = B.height, q = void 0, ae = void 0, ye = R.scrollWidth, ie = R.scrollHeight, Z = Me(R), W = R.scrollLeft, K = R.scrollTop;
23188
23186
  R === b ? (q = ce < ye && (Z.overflowX === "auto" || Z.overflowX === "scroll" || Z.overflowX === "visible"), ae = ee < ie && (Z.overflowY === "auto" || Z.overflowY === "scroll" || Z.overflowY === "visible")) : (q = ce < ye && (Z.overflowX === "auto" || Z.overflowX === "scroll"), ae = ee < ie && (Z.overflowY === "auto" || Z.overflowY === "scroll"));
23189
23187
  var te = q && (Math.abs(X - C) <= N && W + ce < ye) - (Math.abs(ne - C) <= N && !!W), me = ae && (Math.abs(J - v) <= N && K + ee < ie) - (Math.abs(z - v) <= N && !!K);
23190
23188
  if (!Jt[P])
@@ -23192,21 +23190,21 @@ var k$ = fb(function(l, g, n, f) {
23192
23190
  Jt[_e] || (Jt[_e] = {});
23193
23191
  (Jt[P].vx != te || Jt[P].vy != me || Jt[P].el !== R) && (Jt[P].el = R, Jt[P].vx = te, Jt[P].vy = me, clearInterval(Jt[P].pid), (te != 0 || me != 0) && (U = !0, Jt[P].pid = setInterval((function() {
23194
23192
  f && this.layer === 0 && Fe.active._onTouchMove(Ma);
23195
- var xe = Jt[this.layer].vy ? Jt[this.layer].vy * S : 0, qe = Jt[this.layer].vx ? Jt[this.layer].vx * S : 0;
23193
+ var xe = Jt[this.layer].vy ? Jt[this.layer].vy * w : 0, qe = Jt[this.layer].vx ? Jt[this.layer].vx * w : 0;
23196
23194
  typeof V == "function" && V.call(Fe.dragged.parentNode[Go], qe, xe, l, Ma, Jt[this.layer].el) !== "continue" || _b(Jt[this.layer].el, qe, xe);
23197
23195
  }).bind({
23198
23196
  layer: P
23199
23197
  }), 24))), P++;
23200
- } while (g.bubbleScroll && w !== b && (w = Ei(w, !1)));
23198
+ } while (g.bubbleScroll && S !== b && (S = Ei(S, !1)));
23201
23199
  W$ = U;
23202
23200
  }
23203
23201
  }, 30), yb = function(l) {
23204
- var g = l.originalEvent, n = l.putSortable, f = l.dragEl, C = l.activeSortable, v = l.dispatchSortableEvent, N = l.hideGhostForTarget, S = l.unhideGhostForTarget;
23202
+ var g = l.originalEvent, n = l.putSortable, f = l.dragEl, C = l.activeSortable, v = l.dispatchSortableEvent, N = l.hideGhostForTarget, w = l.unhideGhostForTarget;
23205
23203
  if (g) {
23206
23204
  var b = n || C;
23207
23205
  N();
23208
23206
  var U = g.changedTouches && g.changedTouches.length ? g.changedTouches[0] : g, V = document.elementFromPoint(U.clientX, U.clientY);
23209
- S(), b && !b.el.contains(V) && (v("spill"), this.onSpill({
23207
+ w(), b && !b.el.contains(V) && (v("spill"), this.onSpill({
23210
23208
  dragEl: f,
23211
23209
  putSortable: n
23212
23210
  }));
@@ -23270,15 +23268,15 @@ function ow(...l) {
23270
23268
  const f = (g = Fa()) == null ? void 0 : g.proxy;
23271
23269
  let C = null;
23272
23270
  const v = l[0];
23273
- let [, N, S] = l;
23274
- Array.isArray(Uo(N)) || (S = N, N = null);
23271
+ let [, N, w] = l;
23272
+ Array.isArray(Uo(N)) || (w = N, N = null);
23275
23273
  let b = null;
23276
23274
  const {
23277
23275
  immediate: U = !0,
23278
23276
  clone: V = ZA,
23279
23277
  customUpdate: P
23280
- } = (n = Uo(S)) != null ? n : {};
23281
- function w(ie) {
23278
+ } = (n = Uo(w)) != null ? n : {};
23279
+ function S(ie) {
23282
23280
  var Z;
23283
23281
  const { from: W, oldIndex: K, item: te } = ie;
23284
23282
  C = Array.from(W.childNodes);
@@ -23352,7 +23350,7 @@ function ow(...l) {
23352
23350
  }
23353
23351
  const ne = {
23354
23352
  onUpdate: z,
23355
- onStart: w,
23353
+ onStart: S,
23356
23354
  onAdd: R,
23357
23355
  onRemove: B,
23358
23356
  onEnd: J
@@ -23363,7 +23361,7 @@ function ow(...l) {
23363
23361
  }
23364
23362
  function ce() {
23365
23363
  var ie;
23366
- const Z = (ie = Uo(S)) != null ? ie : {}, { immediate: W, clone: K } = Z, te = db(Z, ["immediate", "clone"]);
23364
+ const Z = (ie = Uo(w)) != null ? ie : {}, { immediate: W, clone: K } = Z, te = db(Z, ["immediate", "clone"]);
23367
23365
  return dT(te, (me, _e) => {
23368
23366
  IA(me) && (te[me] = (xe, ...qe) => {
23369
23367
  const Qe = tw();
@@ -23378,7 +23376,7 @@ function ow(...l) {
23378
23376
  ie = X(ie), b && q.destroy(), b = new Fe(ie, ce());
23379
23377
  };
23380
23378
  j$(
23381
- () => S,
23379
+ () => w,
23382
23380
  () => {
23383
23381
  b && dT(ce(), (ie, Z) => {
23384
23382
  b?.option(ie, Z);
@@ -23467,19 +23465,19 @@ const z$ = [
23467
23465
  emits: ["update:modelValue", ...z$],
23468
23466
  setup(l, { slots: g, emit: n, expose: f, attrs: C }) {
23469
23467
  const v = z$.reduce((V, P) => {
23470
- const w = `on${P.replace(/^\S/, (R) => R.toUpperCase())}`;
23471
- return V[w] = (...R) => n(P, ...R), V;
23468
+ const S = `on${P.replace(/^\S/, (R) => R.toUpperCase())}`;
23469
+ return V[S] = (...R) => n(P, ...R), V;
23472
23470
  }, {}), N = _i(() => {
23473
- const V = kv(l), { modelValue: P } = V, w = db(V, ["modelValue"]), R = Object.entries(w).reduce((B, [z, J]) => {
23471
+ const V = kv(l), { modelValue: P } = V, S = db(V, ["modelValue"]), R = Object.entries(S).reduce((B, [z, J]) => {
23474
23472
  const ne = Uo(J);
23475
23473
  return ne !== void 0 && (B[z] = ne), B;
23476
23474
  }, {});
23477
23475
  return rn(rn({}, v), fA(rn(rn({}, C), R)));
23478
- }), S = _i({
23476
+ }), w = _i({
23479
23477
  get: () => l.modelValue,
23480
23478
  set: (V) => n("update:modelValue", V)
23481
23479
  }), b = wT(), U = Lv(
23482
- ow(l.target || b, S, N)
23480
+ ow(l.target || b, w, N)
23483
23481
  );
23484
23482
  return f(U), () => {
23485
23483
  var V;
@@ -23499,35 +23497,35 @@ function sw() {
23499
23497
  P.exports = n;
23500
23498
  } }, C = {};
23501
23499
  function v(P) {
23502
- var w = C[P];
23503
- if (w !== void 0) return w.exports;
23500
+ var S = C[P];
23501
+ if (S !== void 0) return S.exports;
23504
23502
  var R = C[P] = { exports: {} };
23505
23503
  return f[P](R, R.exports, v), R.exports;
23506
23504
  }
23507
- v.d = (P, w) => {
23508
- for (var R in w) v.o(w, R) && !v.o(P, R) && Object.defineProperty(P, R, { enumerable: !0, get: w[R] });
23509
- }, v.o = (P, w) => Object.prototype.hasOwnProperty.call(P, w), v.r = (P) => {
23505
+ v.d = (P, S) => {
23506
+ for (var R in S) v.o(S, R) && !v.o(P, R) && Object.defineProperty(P, R, { enumerable: !0, get: S[R] });
23507
+ }, v.o = (P, S) => Object.prototype.hasOwnProperty.call(P, S), v.r = (P) => {
23510
23508
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(P, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(P, "__esModule", { value: !0 });
23511
23509
  };
23512
23510
  var N = {};
23513
23511
  v.r(N), v.d(N, { BlockShadowStateChange: () => b, shadowBlockConversionChangeListener: () => V });
23514
- var S = v(370);
23515
- class b extends S.Events.BlockBase {
23516
- constructor(w, R, B) {
23517
- super(w), this.type = b.EVENT_TYPE, this.inputIndexInParent = R, this.shadowState = B;
23512
+ var w = v(370);
23513
+ class b extends w.Events.BlockBase {
23514
+ constructor(S, R, B) {
23515
+ super(S), this.type = b.EVENT_TYPE, this.inputIndexInParent = R, this.shadowState = B;
23518
23516
  }
23519
23517
  toJson() {
23520
- const w = super.toJson();
23521
- return w.inputIndexInParent = this.inputIndexInParent, w.shadowState = this.shadowState, w;
23518
+ const S = super.toJson();
23519
+ return S.inputIndexInParent = this.inputIndexInParent, S.shadowState = this.shadowState, S;
23522
23520
  }
23523
- static fromJson(w, R, B) {
23524
- const z = super.fromJson(w, R, B);
23525
- return z.inputIndexInParent = w.inputIndexInParent, z.shadowState = w.shadowState, B;
23521
+ static fromJson(S, R, B) {
23522
+ const z = super.fromJson(S, R, B);
23523
+ return z.inputIndexInParent = S.inputIndexInParent, z.shadowState = S.shadowState, B;
23526
23524
  }
23527
23525
  isNull() {
23528
23526
  return !1;
23529
23527
  }
23530
- run(w) {
23528
+ run(S) {
23531
23529
  const R = this.getEventWorkspace_();
23532
23530
  if (!this.blockId) throw new Error("The block ID is undefined. Either pass a block to the constructor, or call fromJson");
23533
23531
  const B = R.getBlockById(this.blockId);
@@ -23540,15 +23538,15 @@ function sw() {
23540
23538
  J = B.inputList[this.inputIndexInParent].connection;
23541
23539
  }
23542
23540
  if (J === null) throw new Error("No matching connection was found.");
23543
- w && J.setShadowState(this.shadowState || null), S.getFocusManager().focusNode(B);
23541
+ S && J.setShadowState(this.shadowState || null), w.getFocusManager().focusNode(B);
23544
23542
  }
23545
23543
  }
23546
- function U(P, w = !1) {
23544
+ function U(P, S = !1) {
23547
23545
  var R, B;
23548
23546
  let z = null, J = !1;
23549
23547
  if (!((R = P.previousConnection) === null || R === void 0) && R.isConnected() ? z = P.previousConnection.targetConnection : !((B = P.outputConnection) === null || B === void 0) && B.isConnected() && (z = P.outputConnection.targetConnection, J = !0), z === null) return P;
23550
23548
  let ne = z.getSourceBlock();
23551
- const X = z.getParentInput(), ce = X ? ne.inputList.indexOf(X) : null, ee = z.getShadowState(!1), q = S.serialization.blocks.save(P, { addCoordinates: !1, addInputBlocks: !0, addNextBlocks: !0, doFullSerialization: !1 });
23549
+ const X = z.getParentInput(), ce = X ? ne.inputList.indexOf(X) : null, ee = z.getShadowState(!1), q = w.serialization.blocks.save(P, { addCoordinates: !1, addInputBlocks: !0, addNextBlocks: !0, doFullSerialization: !1 });
23552
23550
  if (ee === null || q === null) return P;
23553
23551
  if (ne.isShadow()) {
23554
23552
  const ie = U(ne);
@@ -23561,21 +23559,21 @@ function sw() {
23561
23559
  if (z === null) throw new Error("Couldn't find the corresponding connection on the new version of the parent block.");
23562
23560
  }
23563
23561
  q.id = void 0;
23564
- const ae = S.serialization.blocks.append(q, ne.workspace, { recordUndo: !0 }), ye = J ? ae.outputConnection : ae.previousConnection;
23565
- return ye && z.connect(ye), z.setShadowState(ee), S.Events.fire(new b(ne, ce, ee)), w && S.getFocusManager().focusNode(ae), ae;
23562
+ const ae = w.serialization.blocks.append(q, ne.workspace, { recordUndo: !0 }), ye = J ? ae.outputConnection : ae.previousConnection;
23563
+ return ye && z.connect(ye), z.setShadowState(ee), w.Events.fire(new b(ne, ce, ee)), S && w.getFocusManager().focusNode(ae), ae;
23566
23564
  }
23567
23565
  function V(P) {
23568
- if (!P.recordUndo || P.type != S.Events.BLOCK_CHANGE) return;
23569
- const w = P;
23570
- if (!w.workspaceId || !w.blockId) return;
23571
- const R = S.Workspace.getById(w.workspaceId);
23566
+ if (!P.recordUndo || P.type != w.Events.BLOCK_CHANGE) return;
23567
+ const S = P;
23568
+ if (!S.workspaceId || !S.blockId) return;
23569
+ const R = w.Workspace.getById(S.workspaceId);
23572
23570
  if (!R) return;
23573
- const B = R.getBlockById(w.blockId);
23571
+ const B = R.getBlockById(S.blockId);
23574
23572
  if (!B || !B.isShadow()) return;
23575
- const z = S.Events.getGroup();
23576
- w.group ? S.Events.setGroup(w.group) : S.Events.setGroup(!0), U(B, !0), S.Events.setGroup(z);
23573
+ const z = w.Events.getGroup();
23574
+ S.group ? w.Events.setGroup(S.group) : w.Events.setGroup(!0), U(B, !0), w.Events.setGroup(z);
23577
23575
  }
23578
- return b.EVENT_TYPE = "block_shadow_state_change", S.registry.register(S.registry.Type.EVENT, b.EVENT_TYPE, b), N;
23576
+ return b.EVENT_TYPE = "block_shadow_state_change", w.registry.register(w.registry.Type.EVENT, b.EVENT_TYPE, b), N;
23579
23577
  })());
23580
23578
  })(Oa)), Oa.exports;
23581
23579
  }
@@ -23629,7 +23627,7 @@ function nw() {
23629
23627
  }
23630
23628
  return `${_}${p}`;
23631
23629
  };
23632
- class S {
23630
+ class w {
23633
23631
  /**
23634
23632
  * Creates a new HTMLRenderer
23635
23633
  *
@@ -23765,7 +23763,7 @@ function nw() {
23765
23763
  I && (M.scope = `language:${I}`), this.add(M);
23766
23764
  }
23767
23765
  toHTML() {
23768
- return new S(this, this.options).value();
23766
+ return new w(this, this.options).value();
23769
23767
  }
23770
23768
  finalize() {
23771
23769
  return this.closeAllNodes(), !0;
@@ -23774,7 +23772,7 @@ function nw() {
23774
23772
  function P(p) {
23775
23773
  return p ? typeof p == "string" ? p : p.source : null;
23776
23774
  }
23777
- function w(p) {
23775
+ function S(p) {
23778
23776
  return z("(?=", p, ")");
23779
23777
  }
23780
23778
  function R(p) {
@@ -24024,7 +24022,7 @@ function nw() {
24024
24022
  const I = Object.assign({}, p);
24025
24023
  Object.keys(p).forEach((M) => {
24026
24024
  delete p[M];
24027
- }), p.keywords = I.keywords, p.begin = z(I.beforeMatch, w(I.begin)), p.starts = {
24025
+ }), p.keywords = I.keywords, p.begin = z(I.beforeMatch, S(I.begin)), p.starts = {
24028
24026
  relevance: 0,
24029
24027
  contains: [
24030
24028
  Object.assign(I, { endsParent: !0 })
@@ -24628,7 +24626,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _t = re, rt = Re), Xe
24628
24626
  Q = !0;
24629
24627
  }, p.versionString = Oe, p.regex = {
24630
24628
  concat: z,
24631
- lookahead: w,
24629
+ lookahead: S,
24632
24630
  either: ne,
24633
24631
  optional: B,
24634
24632
  anyNumberOfTimes: R
@@ -24825,7 +24823,7 @@ function yk(l) {
24825
24823
  return;
24826
24824
  }
24827
24825
  }
24828
- }, S = {
24826
+ }, w = {
24829
24827
  $pattern: NT,
24830
24828
  keyword: cw,
24831
24829
  literal: aw,
@@ -24848,11 +24846,11 @@ function yk(l) {
24848
24846
  { begin: "\\b0[0-7]+n?\\b" }
24849
24847
  ],
24850
24848
  relevance: 0
24851
- }, w = {
24849
+ }, S = {
24852
24850
  className: "subst",
24853
24851
  begin: "\\$\\{",
24854
24852
  end: "\\}",
24855
- keywords: S,
24853
+ keywords: w,
24856
24854
  contains: []
24857
24855
  // defined later
24858
24856
  }, R = {
@@ -24863,7 +24861,7 @@ function yk(l) {
24863
24861
  returnEnd: !1,
24864
24862
  contains: [
24865
24863
  l.BACKSLASH_ESCAPE,
24866
- w
24864
+ S
24867
24865
  ],
24868
24866
  subLanguage: "xml"
24869
24867
  }
@@ -24875,7 +24873,7 @@ function yk(l) {
24875
24873
  returnEnd: !1,
24876
24874
  contains: [
24877
24875
  l.BACKSLASH_ESCAPE,
24878
- w
24876
+ S
24879
24877
  ],
24880
24878
  subLanguage: "css"
24881
24879
  }
@@ -24887,7 +24885,7 @@ function yk(l) {
24887
24885
  returnEnd: !1,
24888
24886
  contains: [
24889
24887
  l.BACKSLASH_ESCAPE,
24890
- w
24888
+ S
24891
24889
  ],
24892
24890
  subLanguage: "graphql"
24893
24891
  }
@@ -24897,7 +24895,7 @@ function yk(l) {
24897
24895
  end: "`",
24898
24896
  contains: [
24899
24897
  l.BACKSLASH_ESCAPE,
24900
- w
24898
+ S
24901
24899
  ]
24902
24900
  }, X = {
24903
24901
  className: "comment",
@@ -24958,22 +24956,22 @@ function yk(l) {
24958
24956
  // See https://github.com/highlightjs/highlight.js/issues/3288
24959
24957
  // hljs.REGEXP_MODE
24960
24958
  ];
24961
- w.contains = ce.concat({
24959
+ S.contains = ce.concat({
24962
24960
  // we need to pair up {} inside our subst to prevent
24963
24961
  // it from ending too early by matching another }
24964
24962
  begin: /\{/,
24965
24963
  end: /\}/,
24966
- keywords: S,
24964
+ keywords: w,
24967
24965
  contains: [
24968
24966
  "self"
24969
24967
  ].concat(ce)
24970
24968
  });
24971
- const ee = [].concat(X, w.contains), q = ee.concat([
24969
+ const ee = [].concat(X, S.contains), q = ee.concat([
24972
24970
  // eat recursive parens in sub expressions
24973
24971
  {
24974
24972
  begin: /(\s*)\(/,
24975
24973
  end: /\)/,
24976
- keywords: S,
24974
+ keywords: w,
24977
24975
  contains: ["self"].concat(ee)
24978
24976
  }
24979
24977
  ]), ae = {
@@ -24984,7 +24982,7 @@ function yk(l) {
24984
24982
  end: /\)/,
24985
24983
  excludeBegin: !0,
24986
24984
  excludeEnd: !0,
24987
- keywords: S,
24985
+ keywords: w,
24988
24986
  contains: q
24989
24987
  }, ye = {
24990
24988
  variants: [
@@ -25144,7 +25142,7 @@ function yk(l) {
25144
25142
  return {
25145
25143
  name: "JavaScript",
25146
25144
  aliases: ["js", "jsx", "mjs", "cjs"],
25147
- keywords: S,
25145
+ keywords: w,
25148
25146
  // this will be extended by TypeScript
25149
25147
  exports: { PARAMS_CONTAINS: q, CLASS_REFERENCE: ie },
25150
25148
  illegal: /#(?![$_A-z])/,
@@ -25206,7 +25204,7 @@ function yk(l) {
25206
25204
  end: /\)/,
25207
25205
  excludeBegin: !0,
25208
25206
  excludeEnd: !0,
25209
- keywords: S,
25207
+ keywords: w,
25210
25208
  contains: q
25211
25209
  }
25212
25210
  ]