ss-component-new 1.3.684 → 1.3.686

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,4 +1,4 @@
1
- import { ref as R, resolveComponent as t2, openBlock as b, createBlock as q, defineComponent as c0, computed as Q, watch as q2, createElementBlock as V, createVNode as K, withCtx as E, createElementVNode as a2, Fragment as O2, renderList as V2, withModifiers as Ae, normalizeClass as re, toDisplayString as E2, createSlots as be, renderSlot as P2, nextTick as q0, onMounted as Ge, createTextVNode as x0, isRef as Ir, isReactive as Ur, toRaw as qr, createCommentVNode as Z, onBeforeUnmount as an, normalizeStyle as u0, resolveDynamicComponent as yt, normalizeProps as Yr, guardReactiveProps as Fr, watchEffect as tt, reactive as d6, onUnmounted as n1, unref as f0, mergeProps as R1, inject as T6, withDirectives as _3, vShow as M6, resolveDirective as Kr, h as hi, toRefs as Xr } from "vue";
1
+ import { ref as R, resolveComponent as t2, openBlock as b, createBlock as q, defineComponent as c0, computed as Q, watch as q2, createElementBlock as V, createVNode as K, withCtx as E, createElementVNode as a2, Fragment as O2, renderList as V2, withModifiers as Ae, normalizeClass as re, toDisplayString as E2, createSlots as be, renderSlot as P2, nextTick as q0, onMounted as Ge, createTextVNode as x0, isRef as Ir, isReactive as Ur, toRaw as qr, createCommentVNode as Z, onBeforeUnmount as an, normalizeStyle as u0, resolveDynamicComponent as yt, normalizeProps as Yr, guardReactiveProps as Fr, watchEffect as tt, reactive as d6, onUnmounted as n1, unref as g0, mergeProps as R1, inject as T6, withDirectives as _3, vShow as M6, resolveDirective as Kr, h as hi, toRefs as Xr } from "vue";
2
2
  import { a5 as Qr, a6 as Jr, ai as Zr, aj as e9, ak as t9, al as n9, am as i9, g as s9, an as l9, ao as o9, ap as r9, a7 as di, aq as ui, ar as fi } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js";
3
3
  import { _ as G2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as Yt } from "./index-dD-mKgue.js";
@@ -8,7 +8,7 @@ import { _ as L0 } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js
8
8
  import { m as gi, B as w9, X as Vl } from "./index-DUPQ7Cfd.js";
9
9
  import { t as Pl } from "./fileUtil-UOt_otFo.js";
10
10
  import { s as un } from "./index-DJrzqi4-.js";
11
- import { T as vi, a as x9 } from "./threeViewerHost-BA3W7FKF.js";
11
+ import { T as vi, a as x9 } from "./threeViewerHost-BbYJmbrx.js";
12
12
  /* empty css */
13
13
  import { A as b9 } from "./index-D-YGtSgX.js";
14
14
  var _9 = "[object Date]";
@@ -122,8 +122,8 @@ const C9 = {
122
122
  const h = () => {
123
123
  n("blurChange"), n("change", l.value);
124
124
  }, d = (m) => {
125
- var O;
126
- const w = m && typeof m == "object" ? ((O = m == null ? void 0 : m.target) == null ? void 0 : O.value) ?? "" : m;
125
+ var T;
126
+ const w = m && typeof m == "object" ? ((T = m == null ? void 0 : m.target) == null ? void 0 : T.value) ?? "" : m;
127
127
  l.value = w, s.value = w, n("input", w), w && t.suggestList && t.suggestList.length > 0 ? (a.value = !0, c.value = -1) : w || (a.value = !1);
128
128
  }, u = (m) => {
129
129
  !a.value || t.suggestList.length === 0 || (m.key === "ArrowDown" ? (m.preventDefault(), c.value = Math.min(c.value + 1, t.suggestList.length - 1), f()) : m.key === "ArrowUp" ? (m.preventDefault(), c.value = Math.max(c.value - 1, -1), f()) : m.key === "Enter" && c.value >= 0 ? (m.preventDefault(), p(t.suggestList[c.value])) : m.key === "Escape" && (a.value = !1, c.value = -1));
@@ -136,9 +136,9 @@ const C9 = {
136
136
  });
137
137
  }, p = (m) => {
138
138
  m && (l.value = m.label, s.value = m.label, a.value = !1, c.value = -1, n("selectSuggest", m), q0(() => {
139
- var w, O;
139
+ var w, T;
140
140
  try {
141
- (O = (w = o.value) == null ? void 0 : w.focus) == null || O.call(w);
141
+ (T = (w = o.value) == null ? void 0 : w.focus) == null || T.call(w);
142
142
  } catch {
143
143
  }
144
144
  }));
@@ -150,8 +150,8 @@ const C9 = {
150
150
  n("focus"), l.value && t.suggestList && t.suggestList.length > 0 && (a.value = !0);
151
151
  };
152
152
  return (m, w) => {
153
- const O = t2("el-input"), z = t2("el-popover");
154
- return Array.isArray(l.value) ? (b(), q(O, {
153
+ const T = t2("el-input"), z = t2("el-popover");
154
+ return Array.isArray(l.value) ? (b(), q(T, {
155
155
  key: 1,
156
156
  modelValue: l.value,
157
157
  "onUpdate:modelValue": w[2] || (w[2] = (M) => l.value = M),
@@ -176,7 +176,7 @@ const C9 = {
176
176
  "popper-class": "input-suggest-popper"
177
177
  }, {
178
178
  reference: E(() => [
179
- K(O, {
179
+ K(T, {
180
180
  modelValue: l.value,
181
181
  "onUpdate:modelValue": w[0] || (w[0] = (M) => l.value = M),
182
182
  disabled: !(t != null && t.isEdit) || (t == null ? void 0 : t.disabled),
@@ -209,8 +209,8 @@ const C9 = {
209
209
  class: re(["suggest-item", { highlight: y === c.value }]),
210
210
  onMousedown: w[1] || (w[1] = Ae(() => {
211
211
  }, ["prevent", "stop"])),
212
- onClick: Ae((T) => p(M), ["stop"]),
213
- onMouseenter: (T) => c.value = y
212
+ onClick: Ae((O) => p(M), ["stop"]),
213
+ onMouseenter: (O) => c.value = y
214
214
  }, E2(M == null ? void 0 : M.label), 43, D9))), 128))
215
215
  ], 512)
216
216
  ]),
@@ -1476,7 +1476,7 @@ const bi = async (i) => {
1476
1476
  }, y = () => {
1477
1477
  var D;
1478
1478
  Array.isArray(t == null ? void 0 : t.originalValue) && ((D = t == null ? void 0 : t.originalValue) == null ? void 0 : D.length) > 1 || (o.value = !0);
1479
- }, T = () => {
1479
+ }, O = () => {
1480
1480
  n("mouseEnter");
1481
1481
  }, j = () => {
1482
1482
  o.value = !1;
@@ -1565,16 +1565,16 @@ const bi = async (i) => {
1565
1565
  var t0, m0, Z0;
1566
1566
  (v2 == null ? void 0 : v2[0]) === "@" && (v2 = (m0 = (t0 = v2 == null ? void 0 : v2.replace("(", "$R")) == null ? void 0 : t0.split("$R")) == null ? void 0 : m0[1], v2 = v2 == null ? void 0 : v2.slice(0, (v2 == null ? void 0 : v2.length) - 1)), S == null || S.push(gi("(" + v2 + ")")), b2 == null || b2.push(Object.keys((Z0 = gi("(" + v2 + ")")) == null ? void 0 : Z0[0]));
1567
1567
  }), b2 = b2 == null ? void 0 : b2[0];
1568
- let p0 = [];
1568
+ let f0 = [];
1569
1569
  for (let v2 in (t == null ? void 0 : t.wholeValue) ?? ((j2 = t.optionUrl) == null ? void 0 : j2.contactValue))
1570
1570
  if (b2 != null && b2.find((t0) => t0 === v2) || b2 != null && b2.find((t0) => v2 == null ? void 0 : v2.includes("." + t0))) {
1571
1571
  let t0 = (b2 == null ? void 0 : b2.find((m0) => m0 === v2)) ?? (b2 == null ? void 0 : b2.find((m0) => v2 == null ? void 0 : v2.includes("." + m0)));
1572
- p0.push({
1572
+ f0.push({
1573
1573
  [t0]: (A2 = (t == null ? void 0 : t.wholeValue) ?? ((F2 = t.optionUrl) == null ? void 0 : F2.contactValue)) == null ? void 0 : A2[v2]
1574
1574
  });
1575
1575
  }
1576
1576
  let Q0 = {};
1577
- p0 == null || p0.forEach((v2) => {
1577
+ f0 == null || f0.forEach((v2) => {
1578
1578
  for (let t0 in v2)
1579
1579
  Q0[t0] = v2 == null ? void 0 : v2[t0];
1580
1580
  });
@@ -1622,7 +1622,7 @@ const bi = async (i) => {
1622
1622
  "value-on-clear": "",
1623
1623
  onChange: F,
1624
1624
  onDblclick: y,
1625
- onMouseenter: T,
1625
+ onMouseenter: O,
1626
1626
  "onUpdate:modelValue": z
1627
1627
  }, {
1628
1628
  label: E(({ label: T2, value: j2 }) => [
@@ -1793,7 +1793,7 @@ const bi = async (i) => {
1793
1793
  }, (D, A) => {
1794
1794
  D !== A && (v.value = D);
1795
1795
  }, { immediate: !0, deep: !0 });
1796
- const O = async (D) => {
1796
+ const T = async (D) => {
1797
1797
  if (D) {
1798
1798
  p.value && (URL.revokeObjectURL(p.value), p.value = "");
1799
1799
  try {
@@ -1807,7 +1807,7 @@ const bi = async (i) => {
1807
1807
  q2(() => t == null ? void 0 : t.backGroundImage, (D) => {
1808
1808
  D && (f.value = D);
1809
1809
  }, { immediate: !0 }), q2(f, (D) => {
1810
- O(D);
1810
+ T(D);
1811
1811
  }, { immediate: !0 });
1812
1812
  const z = async (D) => {
1813
1813
  var I, x2, T2;
@@ -1822,7 +1822,7 @@ const bi = async (i) => {
1822
1822
  const j2 = new FormData();
1823
1823
  j2.append("file", n2);
1824
1824
  const F2 = await C1(j2), A2 = (T2 = (x2 = F2 == null ? void 0 : F2.data) == null ? void 0 : x2.result) == null ? void 0 : T2.url;
1825
- A2 ? (f.value = A2, r("update:backGroundImage", A2), O(A2), ae.success("背景图片上传成功")) : ae.error("背景图片上传失败");
1825
+ A2 ? (f.value = A2, r("update:backGroundImage", A2), T(A2), ae.success("背景图片上传成功")) : ae.error("背景图片上传失败");
1826
1826
  } catch {
1827
1827
  ae.error("背景图片上传失败");
1828
1828
  } finally {
@@ -1832,7 +1832,7 @@ const bi = async (i) => {
1832
1832
  }, M = R < HTMLInputElement | null > null, y = () => {
1833
1833
  var D;
1834
1834
  (D = M.value) == null || D.click();
1835
- }, T = Q(() => {
1835
+ }, O = Q(() => {
1836
1836
  const D = Number(t == null ? void 0 : t.textSize), A = w9(t == null ? void 0 : t.textColor), n2 = {
1837
1837
  flexDirection: t != null && t.isButtonRow ? "row" : "column"
1838
1838
  };
@@ -1964,7 +1964,7 @@ const bi = async (i) => {
1964
1964
  const n2 = t2("el-form-item"), I = t2("el-tab-pane"), x2 = t2("el-tabs"), T2 = t2("el-form"), j2 = t2("el-button");
1965
1965
  return b(), V("div", {
1966
1966
  class: "form-content",
1967
- style: u0(T.value)
1967
+ style: u0(O.value)
1968
1968
  }, [
1969
1969
  (t == null ? void 0 : t.backGround) === "Yes" ? (b(), V("div", {
1970
1970
  key: 0,
@@ -2014,7 +2014,7 @@ const bi = async (i) => {
2014
2014
  })
2015
2015
  }, be({
2016
2016
  default: E(() => {
2017
- var b2, S, S0, p0, Q0, J0, v2, t0, m0, Z0, w0, ht, dt, ut;
2017
+ var b2, S, S0, f0, Q0, J0, v2, t0, m0, Z0, w0, ht, dt, ut;
2018
2018
  return [
2019
2019
  !(x != null && x.isFormColHidden) && (x == null ? void 0 : x.type) !== "Url" ? (b(), q(yt($((x == null ? void 0 : x.type) ?? "Input")), {
2020
2020
  modelValue: d.value[(x == null ? void 0 : x.prop) ?? (x == null ? void 0 : x.name)],
@@ -2047,7 +2047,7 @@ const bi = async (i) => {
2047
2047
  modelValue: "详情"
2048
2048
  }, null, 8, ["onClickTrigger"])
2049
2049
  ])) : Z("", !0),
2050
- typeof d.value[(x == null ? void 0 : x.prop) ?? x.name] == "string" && ((b2 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && b2.includes(".stl") || (S = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && S.includes(".obj") || (S0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && S0.includes(".urdf") || (p0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && p0.includes(".STL") || (Q0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && Q0.includes(".ls") || (J0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && J0.includes(".uv") || (v2 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && v2.includes(".UV") || (t0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && t0.includes(".cpt") || (m0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && m0.includes(".CPT") || (Z0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && Z0.includes(".cyd") || (w0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && w0.includes(".CYD") || (ht = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && ht.includes(".nc") || (dt = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && dt.includes(".NC") || (ut = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && ut.includes(".csv")) ? (b(), q(L0, {
2050
+ typeof d.value[(x == null ? void 0 : x.prop) ?? x.name] == "string" && ((b2 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && b2.includes(".stl") || (S = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && S.includes(".obj") || (S0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && S0.includes(".urdf") || (f0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && f0.includes(".STL") || (Q0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && Q0.includes(".ls") || (J0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && J0.includes(".uv") || (v2 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && v2.includes(".UV") || (t0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && t0.includes(".cpt") || (m0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && m0.includes(".CPT") || (Z0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && Z0.includes(".cyd") || (w0 = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && w0.includes(".CYD") || (ht = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && ht.includes(".nc") || (dt = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && dt.includes(".NC") || (ut = d.value[(x == null ? void 0 : x.prop) ?? x.name]) != null && ut.includes(".csv")) ? (b(), q(L0, {
2051
2051
  key: 2,
2052
2052
  class: "calculator-content form-preview",
2053
2053
  onClickTrigger: (ee) => N(d.value[(x == null ? void 0 : x.prop) ?? x.name]),
@@ -2123,7 +2123,7 @@ const bi = async (i) => {
2123
2123
  })
2124
2124
  }, be({
2125
2125
  default: E(() => {
2126
- var p0, Q0, J0, v2, t0, m0, Z0, w0, ht, dt, ut, ee, Y1, F1;
2126
+ var f0, Q0, J0, v2, t0, m0, Z0, w0, ht, dt, ut, ee, Y1, F1;
2127
2127
  return [
2128
2128
  !(S != null && S.isFormColHidden) && (S == null ? void 0 : S.type) !== "Url" ? (b(), q(yt($((S == null ? void 0 : S.type) ?? "Input")), {
2129
2129
  modelValue: d.value[(S == null ? void 0 : S.prop) ?? (S == null ? void 0 : S.name)],
@@ -2156,7 +2156,7 @@ const bi = async (i) => {
2156
2156
  modelValue: "详情"
2157
2157
  }, null, 8, ["onClickTrigger"])
2158
2158
  ])) : Z("", !0),
2159
- typeof d.value[(S == null ? void 0 : S.prop) ?? S.name] == "string" && ((p0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && p0.includes(".stl") || (Q0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Q0.includes(".obj") || (J0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && J0.includes(".urdf") || (v2 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && v2.includes(".STL") || (t0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && t0.includes(".ls") || (m0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && m0.includes(".uv") || (Z0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Z0.includes(".UV") || (w0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && w0.includes(".cpt") || (ht = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ht.includes(".CPT") || (dt = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && dt.includes(".cyd") || (ut = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ut.includes(".CYD") || (ee = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ee.includes(".nc") || (Y1 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Y1.includes(".NC") || (F1 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && F1.includes(".csv")) ? (b(), q(L0, {
2159
+ typeof d.value[(S == null ? void 0 : S.prop) ?? S.name] == "string" && ((f0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && f0.includes(".stl") || (Q0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Q0.includes(".obj") || (J0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && J0.includes(".urdf") || (v2 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && v2.includes(".STL") || (t0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && t0.includes(".ls") || (m0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && m0.includes(".uv") || (Z0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Z0.includes(".UV") || (w0 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && w0.includes(".cpt") || (ht = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ht.includes(".CPT") || (dt = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && dt.includes(".cyd") || (ut = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ut.includes(".CYD") || (ee = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ee.includes(".nc") || (Y1 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Y1.includes(".NC") || (F1 = d.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && F1.includes(".csv")) ? (b(), q(L0, {
2160
2160
  key: 2,
2161
2161
  class: "calculator-content form-preview",
2162
2162
  onClickTrigger: (Ce) => N(d.value[(S == null ? void 0 : S.prop) ?? S.name]),
@@ -2179,7 +2179,7 @@ const bi = async (i) => {
2179
2179
  value: S == null ? void 0 : S.label,
2180
2180
  appendShow: !0,
2181
2181
  class: "col-edit-input",
2182
- onChange: (p0) => $2(p0, S)
2182
+ onChange: (f0) => $2(f0, S)
2183
2183
  }, {
2184
2184
  append: E(() => [
2185
2185
  K(g1, {
@@ -2187,7 +2187,7 @@ const bi = async (i) => {
2187
2187
  content: j.value,
2188
2188
  placeholder: "类型",
2189
2189
  style: { width: "100%" },
2190
- onChange: (p0) => h0(p0, S)
2190
+ onChange: (f0) => h0(f0, S)
2191
2191
  }, null, 8, ["value", "content", "onChange"])
2192
2192
  ]),
2193
2193
  _: 2
@@ -2257,7 +2257,7 @@ const bi = async (i) => {
2257
2257
  })
2258
2258
  }, be({
2259
2259
  default: E(() => {
2260
- var Q2, R0, x, s0, b2, S, S0, p0, Q0, J0, v2, t0, m0, Z0;
2260
+ var Q2, R0, x, s0, b2, S, S0, f0, Q0, J0, v2, t0, m0, Z0;
2261
2261
  return [
2262
2262
  (_ == null ? void 0 : _.type) !== "Url" ? (b(), q(yt($((_ == null ? void 0 : _.type) ?? "Input")), {
2263
2263
  modelValue: d.value[(_ == null ? void 0 : _.prop) ?? (_ == null ? void 0 : _.name)],
@@ -2290,7 +2290,7 @@ const bi = async (i) => {
2290
2290
  modelValue: "详情"
2291
2291
  }, null, 8, ["onClickTrigger"])
2292
2292
  ])) : Z("", !0),
2293
- typeof d.value[(_ == null ? void 0 : _.prop) ?? _.name] == "string" && ((Q2 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && Q2.includes(".stl") || (R0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && R0.includes(".obj") || (x = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && x.includes(".urdf") || (s0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && s0.includes(".STL") || (b2 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && b2.includes(".ls") || (S = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && S.includes(".uv") || (S0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && S0.includes(".UV") || (p0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && p0.includes(".cpt") || (Q0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && Q0.includes(".CPT") || (J0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && J0.includes(".cyd") || (v2 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && v2.includes(".CYD") || (t0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && t0.includes(".nc") || (m0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && m0.includes(".NC") || (Z0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && Z0.includes(".csv")) ? (b(), q(L0, {
2293
+ typeof d.value[(_ == null ? void 0 : _.prop) ?? _.name] == "string" && ((Q2 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && Q2.includes(".stl") || (R0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && R0.includes(".obj") || (x = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && x.includes(".urdf") || (s0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && s0.includes(".STL") || (b2 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && b2.includes(".ls") || (S = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && S.includes(".uv") || (S0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && S0.includes(".UV") || (f0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && f0.includes(".cpt") || (Q0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && Q0.includes(".CPT") || (J0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && J0.includes(".cyd") || (v2 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && v2.includes(".CYD") || (t0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && t0.includes(".nc") || (m0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && m0.includes(".NC") || (Z0 = d.value[(_ == null ? void 0 : _.prop) ?? _.name]) != null && Z0.includes(".csv")) ? (b(), q(L0, {
2294
2294
  key: 2,
2295
2295
  class: "calculator-content form-preview",
2296
2296
  onClickTrigger: (w0) => N(d.value[(_ == null ? void 0 : _.prop) ?? _.name]),
@@ -3440,7 +3440,7 @@ class He {
3440
3440
  return new He(e);
3441
3441
  }
3442
3442
  }
3443
- class g0 extends He {
3443
+ class p0 extends He {
3444
3444
  constructor(e, t) {
3445
3445
  super(e), this.inserted = t;
3446
3446
  }
@@ -3475,7 +3475,7 @@ class g0 extends He {
3475
3475
  }
3476
3476
  l += o;
3477
3477
  }
3478
- return new g0(t, n);
3478
+ return new p0(t, n);
3479
3479
  }
3480
3480
  /**
3481
3481
  Combine two subsequent change sets into a single set. `other`
@@ -3545,7 +3545,7 @@ class g0 extends He {
3545
3545
  }
3546
3546
  }
3547
3547
  return {
3548
- changes: new g0(t, n),
3548
+ changes: new p0(t, n),
3549
3549
  filtered: He.create(s)
3550
3550
  };
3551
3551
  }
@@ -3570,14 +3570,14 @@ class g0 extends He {
3570
3570
  if (!h && !s.length)
3571
3571
  return;
3572
3572
  o < t && z0(s, t - o, -1);
3573
- let d = new g0(s, l);
3573
+ let d = new p0(s, l);
3574
3574
  r = r ? r.compose(d.map(r)) : d, s = [], l = [], o = 0;
3575
3575
  }
3576
3576
  function c(h) {
3577
3577
  if (Array.isArray(h))
3578
3578
  for (let d of h)
3579
3579
  c(d);
3580
- else if (h instanceof g0) {
3580
+ else if (h instanceof p0) {
3581
3581
  if (h.length != t)
3582
3582
  throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);
3583
3583
  a(), r = r ? r.compose(h.map(r)) : h;
@@ -3597,7 +3597,7 @@ class g0 extends He {
3597
3597
  Create an empty changeset of the given length.
3598
3598
  */
3599
3599
  static empty(e) {
3600
- return new g0(e ? [e, -1] : [], []);
3600
+ return new p0(e ? [e, -1] : [], []);
3601
3601
  }
3602
3602
  /**
3603
3603
  Create a changeset from its JSON representation (as produced by
@@ -3623,13 +3623,13 @@ class g0 extends He {
3623
3623
  }
3624
3624
  }
3625
3625
  }
3626
- return new g0(t, n);
3626
+ return new p0(t, n);
3627
3627
  }
3628
3628
  /**
3629
3629
  @internal
3630
3630
  */
3631
3631
  static createSet(e, t) {
3632
- return new g0(e, t);
3632
+ return new p0(e, t);
3633
3633
  }
3634
3634
  }
3635
3635
  function z0(i, e, t, n = !1) {
@@ -3692,7 +3692,7 @@ function g4(i, e, t, n = !1) {
3692
3692
  z0(s, c, a < o.i ? o.ins : 0), l && a < o.i && Je(l, s, o.text), a = o.i, o.forward(o.len - h);
3693
3693
  } else {
3694
3694
  if (o.done && r.done)
3695
- return l ? g0.createSet(s, l) : He.create(s);
3695
+ return l ? p0.createSet(s, l) : He.create(s);
3696
3696
  throw new Error("Mismatched change set lengths");
3697
3697
  }
3698
3698
  }
@@ -3701,7 +3701,7 @@ function Nl(i, e, t = !1) {
3701
3701
  let n = [], s = t ? [] : null, l = new k1(i), o = new k1(e);
3702
3702
  for (let r = !1; ; ) {
3703
3703
  if (l.done && o.done)
3704
- return s ? g0.createSet(n, s) : He.create(n);
3704
+ return s ? p0.createSet(n, s) : He.create(n);
3705
3705
  if (l.ins == 0)
3706
3706
  z0(n, l.len, 0, r), l.next();
3707
3707
  else if (o.len == 0 && !o.done)
@@ -4498,7 +4498,7 @@ function Ov(i, e) {
4498
4498
  function Fl(i, e, t) {
4499
4499
  var n;
4500
4500
  let s, l, o;
4501
- return t ? (s = e.changes, l = g0.empty(e.changes.length), o = i.changes.compose(e.changes)) : (s = e.changes.map(i.changes), l = i.changes.mapDesc(e.changes, !0), o = i.changes.compose(s)), {
4501
+ return t ? (s = e.changes, l = p0.empty(e.changes.length), o = i.changes.compose(e.changes)) : (s = e.changes.map(i.changes), l = i.changes.mapDesc(e.changes, !0), o = i.changes.compose(s)), {
4502
4502
  changes: o,
4503
4503
  selection: e.selection ? e.selection.map(l) : (n = i.selection) === null || n === void 0 ? void 0 : n.map(s),
4504
4504
  effects: k2.mapEffects(i.effects, s).concat(k2.mapEffects(e.effects, l)),
@@ -4509,7 +4509,7 @@ function Fl(i, e, t) {
4509
4509
  function x4(i, e, t) {
4510
4510
  let n = e.selection, s = Rt(e.annotations);
4511
4511
  return e.userEvent && (s = s.concat(v0.userEvent.of(e.userEvent))), {
4512
- changes: e.changes instanceof g0 ? e.changes : g0.of(e.changes || [], t, i.facet(jl)),
4512
+ changes: e.changes instanceof p0 ? e.changes : p0.of(e.changes || [], t, i.facet(jl)),
4513
4513
  selection: n && (n instanceof B ? n : B.single(n.anchor, n.head)),
4514
4514
  effects: Rt(e.effects),
4515
4515
  annotations: s,
@@ -4540,7 +4540,7 @@ function Tv(i) {
4540
4540
  if (t !== !0) {
4541
4541
  let s, l;
4542
4542
  if (t === !1)
4543
- l = i.changes.invertedDesc, s = g0.empty(e.doc.length);
4543
+ l = i.changes.invertedDesc, s = p0.empty(e.doc.length);
4544
4544
  else {
4545
4545
  let o = i.changes.filter(t);
4546
4546
  s = o.changes, l = o.filtered.mapDesc(o.changes).invertedDesc;
@@ -4685,7 +4685,7 @@ class B2 {
4685
4685
  separator into account.
4686
4686
  */
4687
4687
  changes(e = []) {
4688
- return e instanceof g0 ? e : g0.of(e, this.doc.length, this.facet(B2.lineSeparator));
4688
+ return e instanceof p0 ? e : p0.of(e, this.doc.length, this.facet(B2.lineSeparator));
4689
4689
  }
4690
4690
  /**
4691
4691
  Using the state's [line
@@ -6091,17 +6091,17 @@ function jv(i, e, t, n, s, l, o, r) {
6091
6091
  if (s == "nearest")
6092
6092
  e.top < u.top + o ? (m = e.top - (u.top + o), t > 0 && e.bottom > u.bottom + m && (m = e.bottom - u.bottom + o)) : e.bottom > u.bottom - o && (m = e.bottom - u.bottom + o, t < 0 && e.top - m < u.top && (m = e.top - (u.top + o)));
6093
6093
  else {
6094
- let w = e.bottom - e.top, O = u.bottom - u.top;
6095
- m = (s == "center" && w <= O ? e.top + w / 2 - O / 2 : s == "start" || s == "center" && t < 0 ? e.top - o : e.bottom - O + o) - u.top;
6094
+ let w = e.bottom - e.top, T = u.bottom - u.top;
6095
+ m = (s == "center" && w <= T ? e.top + w / 2 - T / 2 : s == "start" || s == "center" && t < 0 ? e.top - o : e.bottom - T + o) - u.top;
6096
6096
  }
6097
6097
  if (n == "nearest" ? e.left < u.left + l ? (v = e.left - (u.left + l), t > 0 && e.right > u.right + v && (v = e.right - u.right + l)) : e.right > u.right - l && (v = e.right - u.right + l, t < 0 && e.left < u.left + v && (v = e.left - (u.left + l))) : v = (n == "center" ? e.left + (e.right - e.left) / 2 - (u.right - u.left) / 2 : n == "start" == r ? e.left - l : e.right - (u.right - u.left) + l) - u.left, v || m)
6098
6098
  if (f)
6099
6099
  c.scrollBy(v, m);
6100
6100
  else {
6101
- let w = 0, O = 0;
6101
+ let w = 0, T = 0;
6102
6102
  if (m) {
6103
6103
  let z = h.scrollTop;
6104
- h.scrollTop += m / g, O = (h.scrollTop - z) * g;
6104
+ h.scrollTop += m / g, T = (h.scrollTop - z) * g;
6105
6105
  }
6106
6106
  if (v) {
6107
6107
  let z = h.scrollLeft;
@@ -6109,10 +6109,10 @@ function jv(i, e, t, n, s, l, o, r) {
6109
6109
  }
6110
6110
  e = {
6111
6111
  left: e.left - w,
6112
- top: e.top - O,
6112
+ top: e.top - T,
6113
6113
  right: e.right - w,
6114
- bottom: e.bottom - O
6115
- }, w && Math.abs(w - v) < 1 && (n = "nearest"), O && Math.abs(O - m) < 1 && (s = "nearest");
6114
+ bottom: e.bottom - T
6115
+ }, w && Math.abs(w - v) < 1 && (n = "nearest"), T && Math.abs(T - m) < 1 && (s = "nearest");
6116
6116
  }
6117
6117
  if (f)
6118
6118
  break;
@@ -6732,7 +6732,7 @@ class ce {
6732
6732
  }
6733
6733
  class G3 {
6734
6734
  constructor(e, t, n) {
6735
- this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = g0.empty(this.startState.doc.length);
6735
+ this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = p0.empty(this.startState.doc.length);
6736
6736
  for (let l of n)
6737
6737
  this.changes = this.changes.compose(l.changes);
6738
6738
  let s = [];
@@ -7855,7 +7855,7 @@ class ji {
7855
7855
  if (f && !p && (c += m.top - f.top), g instanceof je)
7856
7856
  v > n && h(g, u, m);
7857
7857
  else if (u >= n && (c > 0 && t.push(-c), t.push(w + c), c = 0, o)) {
7858
- let O = g.dom.lastChild, z = O ? C3(O) : [];
7858
+ let T = g.dom.lastChild, z = T ? C3(T) : [];
7859
7859
  if (z.length) {
7860
7860
  let M = z[z.length - 1], y = a ? M.right - m.left : m.right - M.left;
7861
7861
  y > r && (r = y, this.minWidth = l, this.minWidthFrom = u, this.minWidthTo = v);
@@ -8314,17 +8314,17 @@ class Mm {
8314
8314
  let v = t(g);
8315
8315
  if (v)
8316
8316
  for (let m = 0; m < v.length; m++) {
8317
- let w = v[m], O = 0;
8317
+ let w = v[m], T = 0;
8318
8318
  if (!(w.width == 0 && v.length > 1)) {
8319
8319
  if (w.bottom < this.y)
8320
- (!a || a.bottom < w.bottom) && (a = w), O = 1;
8320
+ (!a || a.bottom < w.bottom) && (a = w), T = 1;
8321
8321
  else if (w.top > this.y)
8322
- (!c || c.top > w.top) && (c = w), O = -1;
8322
+ (!c || c.top > w.top) && (c = w), T = -1;
8323
8323
  else {
8324
8324
  let z = w.left > this.x ? this.x - w.left : w.right < this.x ? this.x - w.right : 0, M = Math.abs(z);
8325
- M < d && (h = g, d = M, u = w), z && (O = z < 0 == (this.baseDir == Y2.LTR) ? -1 : 1);
8325
+ M < d && (h = g, d = M, u = w), z && (T = z < 0 == (this.baseDir == Y2.LTR) ? -1 : 1);
8326
8326
  }
8327
- O == -1 && (!r || this.baseDirAt(e[g], 1)) ? l = g : O == 1 && (!r || this.baseDirAt(e[g + 1], -1)) && (s = g + 1);
8327
+ T == -1 && (!r || this.baseDirAt(e[g], 1)) ? l = g : T == 1 && (!r || this.baseDirAt(e[g + 1], -1)) && (s = g + 1);
8328
8328
  }
8329
8329
  }
8330
8330
  }
@@ -9666,7 +9666,7 @@ class ns {
9666
9666
  this.state = e.state;
9667
9667
  let n = this.stateDeco;
9668
9668
  this.stateDeco = ss(this.state);
9669
- let s = e.changedRanges, l = ce.extendWithRanges(s, sw(n, this.stateDeco, e ? e.changes : g0.empty(this.state.doc.length))), o = this.heightMap.height, r = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollOffset);
9669
+ let s = e.changedRanges, l = ce.extendWithRanges(s, sw(n, this.stateDeco, e ? e.changes : p0.empty(this.state.doc.length))), o = this.heightMap.height, r = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollOffset);
9670
9670
  es(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), l), (this.heightMap.height != o || Jt) && (e.flags |= 2), r ? (this.scrollAnchorPos = e.changes.mapPos(r.from, -1), this.scrollAnchorHeight = r.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = o);
9671
9671
  let a = l.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
9672
9672
  (t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
@@ -9694,17 +9694,17 @@ class ns {
9694
9694
  let w = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
9695
9695
  if (w != this.inView && (this.inView = w, w && (a = !0)), !this.inView && !this.scrollTarget && !rw(e.dom))
9696
9696
  return 0;
9697
- let O = r.width;
9698
- if ((this.contentDOMWidth != O || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = r.width, this.editorHeight = e.scrollDOM.clientHeight, c |= 16), a) {
9697
+ let T = r.width;
9698
+ if ((this.contentDOMWidth != T || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = r.width, this.editorHeight = e.scrollDOM.clientHeight, c |= 16), a) {
9699
9699
  let M = e.docView.measureVisibleLineHeights(this.viewport);
9700
- if (s.mustRefreshForHeights(M) && (o = !0), o || s.lineWrapping && Math.abs(O - this.contentDOMWidth) > s.charWidth) {
9701
- let { lineHeight: y, charWidth: T, textHeight: j } = e.docView.measureTextSize();
9702
- o = y > 0 && s.refresh(l, y, T, j, Math.max(5, O / T), M), o && (e.docView.minWidth = 0, c |= 16);
9700
+ if (s.mustRefreshForHeights(M) && (o = !0), o || s.lineWrapping && Math.abs(T - this.contentDOMWidth) > s.charWidth) {
9701
+ let { lineHeight: y, charWidth: O, textHeight: j } = e.docView.measureTextSize();
9702
+ o = y > 0 && s.refresh(l, y, O, j, Math.max(5, T / O), M), o && (e.docView.minWidth = 0, c |= 16);
9703
9703
  }
9704
9704
  v > 0 && m > 0 ? h = Math.max(v, m) : v < 0 && m < 0 && (h = Math.min(v, m)), es();
9705
9705
  for (let y of this.viewports) {
9706
- let T = y.from == this.viewport.from ? M : e.docView.measureVisibleLineHeights(y);
9707
- this.heightMap = (o ? N0.empty().applyChanges(this.stateDeco, H2.empty, this.heightOracle, [new ce(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, o, new ew(y.from, T));
9706
+ let O = y.from == this.viewport.from ? M : e.docView.measureVisibleLineHeights(y);
9707
+ this.heightMap = (o ? N0.empty().applyChanges(this.stateDeco, H2.empty, this.heightOracle, [new ce(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, o, new ew(y.from, O));
9708
9708
  }
9709
9709
  Jt && (c |= 2);
9710
9710
  }
@@ -9779,9 +9779,9 @@ class ns {
9779
9779
  }
9780
9780
  let v = dw(e, (m) => m.from >= u.from && m.to <= u.to && Math.abs(m.from - h) < l && Math.abs(m.to - d) < l && !g.some((w) => m.from < w && m.to > w));
9781
9781
  if (!v) {
9782
- if (d < u.to && t && n && t.visibleRanges.some((O) => O.from <= d && O.to >= d)) {
9783
- let O = t.moveToLineBoundary(B.cursor(d), !1, !0).head;
9784
- O > h && (d = O);
9782
+ if (d < u.to && t && n && t.visibleRanges.some((T) => T.from <= d && T.to >= d)) {
9783
+ let T = t.moveToLineBoundary(B.cursor(d), !1, !0).head;
9784
+ T > h && (d = T);
9785
9785
  }
9786
9786
  let m = this.gapSize(u, h, d, f), w = n || m < 2e6 ? m : 2e6;
9787
9787
  v = new N6(h, d, m, w);
@@ -9797,8 +9797,8 @@ class ns {
9797
9797
  if (n) {
9798
9798
  let g = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, v, m;
9799
9799
  if (u != null) {
9800
- let w = l3(d, u), O = ((this.visibleBottom - this.visibleTop) / 2 + g) / h.height;
9801
- v = w - O, m = w + O;
9800
+ let w = l3(d, u), T = ((this.visibleBottom - this.visibleTop) / 2 + g) / h.height;
9801
+ v = w - T, m = w + T;
9802
9802
  } else
9803
9803
  v = (this.visibleTop - h.top - g) / h.height, m = (this.visibleBottom - h.top + g) / h.height;
9804
9804
  f = s3(d, v), p = s3(d, m);
@@ -9807,12 +9807,12 @@ class ns {
9807
9807
  if (g > 2e6)
9808
9808
  for (let y of e)
9809
9809
  y.from >= h.from && y.from < h.to && y.size != y.displaySize && y.from * this.heightOracle.charWidth + m < this.pixelViewport.left && (m = y.size - y.displaySize);
9810
- let w = this.pixelViewport.left + m, O = this.pixelViewport.right + m, z, M;
9810
+ let w = this.pixelViewport.left + m, T = this.pixelViewport.right + m, z, M;
9811
9811
  if (u != null) {
9812
- let y = l3(d, u), T = ((O - w) / 2 + v) / g;
9813
- z = y - T, M = y + T;
9812
+ let y = l3(d, u), O = ((T - w) / 2 + v) / g;
9813
+ z = y - O, M = y + O;
9814
9814
  } else
9815
- z = (w - v) / g, M = (O + v) / g;
9815
+ z = (w - v) / g, M = (T + v) / g;
9816
9816
  f = s3(d, z), p = s3(d, M);
9817
9817
  }
9818
9818
  f > h.from && a(h.from, f, h, d), p < h.to && a(p, h.to, h, d);
@@ -11507,8 +11507,8 @@ function Sw(i, e = ww) {
11507
11507
  s(w, !0), f[w] || (f[w] = {
11508
11508
  preventDefault: !0,
11509
11509
  stopPropagation: !1,
11510
- run: [(O) => {
11511
- let z = Qe = { view: O, prefix: w, scope: o };
11510
+ run: [(T) => {
11511
+ let z = Qe = { view: T, prefix: w, scope: o };
11512
11512
  return setTimeout(() => {
11513
11513
  Qe == z && (Qe = null);
11514
11514
  }, yw), !0;
@@ -11614,27 +11614,27 @@ function Cw(i, e, t) {
11614
11614
  return [];
11615
11615
  let n = Math.max(t.from, i.viewport.from), s = Math.min(t.to, i.viewport.to), l = i.textDirection == Y2.LTR, o = i.contentDOM, r = o.getBoundingClientRect(), a = Yo(i), c = o.querySelector(".cm-line"), h = c && window.getComputedStyle(c), d = r.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), u = r.right - (h ? parseInt(h.paddingRight) : 0), f = H4(i, n, 1), p = H4(i, s, -1), g = f.type == D0.Text ? f : null, v = p.type == D0.Text ? p : null;
11616
11616
  if (g && (i.lineWrapping || f.widgetLineBreaks) && (g = hs(i, n, 1, g)), v && (i.lineWrapping || p.widgetLineBreaks) && (v = hs(i, s, -1, v)), g && v && g.from == v.from && g.to == v.to)
11617
- return w(O(t.from, t.to, g));
11617
+ return w(T(t.from, t.to, g));
11618
11618
  {
11619
- let M = g ? O(t.from, null, g) : z(f, !1), y = v ? O(null, t.to, v) : z(p, !0), T = [];
11620
- return (g || f).to < (v || p).from - (g && v ? 1 : 0) || f.widgetLineBreaks > 1 && M.bottom + i.defaultLineHeight / 2 < y.top ? T.push(m(d, M.bottom, u, y.top)) : M.bottom < y.top && i.elementAtHeight((M.bottom + y.top) / 2).type == D0.Text && (M.bottom = y.top = (M.bottom + y.top) / 2), w(M).concat(T).concat(w(y));
11619
+ let M = g ? T(t.from, null, g) : z(f, !1), y = v ? T(null, t.to, v) : z(p, !0), O = [];
11620
+ return (g || f).to < (v || p).from - (g && v ? 1 : 0) || f.widgetLineBreaks > 1 && M.bottom + i.defaultLineHeight / 2 < y.top ? O.push(m(d, M.bottom, u, y.top)) : M.bottom < y.top && i.elementAtHeight((M.bottom + y.top) / 2).type == D0.Text && (M.bottom = y.top = (M.bottom + y.top) / 2), w(M).concat(O).concat(w(y));
11621
11621
  }
11622
- function m(M, y, T, j) {
11623
- return new St(e, M - a.left, y - a.top, Math.max(0, T - M), j - y);
11622
+ function m(M, y, O, j) {
11623
+ return new St(e, M - a.left, y - a.top, Math.max(0, O - M), j - y);
11624
11624
  }
11625
- function w({ top: M, bottom: y, horizontal: T }) {
11625
+ function w({ top: M, bottom: y, horizontal: O }) {
11626
11626
  let j = [];
11627
- for (let C = 0; C < T.length; C += 2)
11628
- j.push(m(T[C], M, T[C + 1], y));
11627
+ for (let C = 0; C < O.length; C += 2)
11628
+ j.push(m(O[C], M, O[C + 1], y));
11629
11629
  return j;
11630
11630
  }
11631
- function O(M, y, T) {
11631
+ function T(M, y, O) {
11632
11632
  let j = 1e9, C = -1e9, $ = [];
11633
11633
  function G(e2, o2, F, y2, D2) {
11634
- let w2 = i.coordsAtPos(e2, e2 == T.to ? -2 : 2), N2 = i.coordsAtPos(F, F == T.from ? 2 : -2);
11634
+ let w2 = i.coordsAtPos(e2, e2 == O.to ? -2 : 2), N2 = i.coordsAtPos(F, F == O.from ? 2 : -2);
11635
11635
  !w2 || !N2 || (j = Math.min(w2.top, N2.top, j), C = Math.max(w2.bottom, N2.bottom, C), D2 == Y2.LTR ? $.push(l && o2 ? d : w2.left, l && y2 ? u : N2.right) : $.push(!l && y2 ? d : N2.left, !l && o2 ? u : w2.right));
11636
11636
  }
11637
- let W = M ?? T.from, N = y ?? T.to;
11637
+ let W = M ?? O.from, N = y ?? O.to;
11638
11638
  for (let e2 of i.visibleRanges)
11639
11639
  if (e2.to > W && e2.from < N)
11640
11640
  for (let o2 = Math.max(e2.from, W), F = Math.min(e2.to, N); ; ) {
@@ -11651,8 +11651,8 @@ function Cw(i, e, t) {
11651
11651
  return $.length == 0 && G(W, M == null, N, y == null, i.textDirection), { top: j, bottom: C, horizontal: $ };
11652
11652
  }
11653
11653
  function z(M, y) {
11654
- let T = r.top + (y ? M.top : M.bottom);
11655
- return { top: T, bottom: T, horizontal: [] };
11654
+ let O = r.top + (y ? M.top : M.bottom);
11655
+ return { top: O, bottom: O, horizontal: [] };
11656
11656
  }
11657
11657
  }
11658
11658
  function kw(i, e) {
@@ -12318,7 +12318,7 @@ const W6 = /* @__PURE__ */ s2.define({
12318
12318
  h.style.top = a3;
12319
12319
  continue;
12320
12320
  }
12321
- let f = a.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, v = (e = gs.get(c)) !== null && e !== void 0 ? e : u.bottom - u.top, m = c.offset || nx, w = this.view.textDirection == Y2.LTR, O = u.width > n.right - n.left ? w ? n.left : n.right - u.width : w ? Math.max(n.left, Math.min(d.left - (f ? 14 : 0) + m.x, n.right - g)) : Math.min(Math.max(n.left, d.left - g + (f ? 14 : 0) - m.x), n.right - g), z = this.above[r];
12321
+ let f = a.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, v = (e = gs.get(c)) !== null && e !== void 0 ? e : u.bottom - u.top, m = c.offset || nx, w = this.view.textDirection == Y2.LTR, T = u.width > n.right - n.left ? w ? n.left : n.right - u.width : w ? Math.max(n.left, Math.min(d.left - (f ? 14 : 0) + m.x, n.right - g)) : Math.min(Math.max(n.left, d.left - g + (f ? 14 : 0) - m.x), n.right - g), z = this.above[r];
12322
12322
  !a.strictSide && (z ? d.top - v - p - m.y < n.top : d.bottom + v + p + m.y > n.bottom) && z == n.bottom - d.bottom > d.top - n.top && (z = this.above[r] = !z);
12323
12323
  let M = (z ? d.top - n.top : n.bottom - d.bottom) - p;
12324
12324
  if (M < v && c.resize !== !1) {
@@ -12328,15 +12328,15 @@ const W6 = /* @__PURE__ */ s2.define({
12328
12328
  }
12329
12329
  gs.set(c, v), h.style.height = (v = M) / l + "px";
12330
12330
  } else h.style.height && (h.style.height = "");
12331
- let y = z ? d.top - v - p - m.y : d.bottom + p + m.y, T = O + g;
12331
+ let y = z ? d.top - v - p - m.y : d.bottom + p + m.y, O = T + g;
12332
12332
  if (c.overlap !== !0)
12333
12333
  for (let j of o)
12334
- j.left < T && j.right > O && j.top < y + v && j.bottom > y && (y = z ? j.top - v - 2 - p : j.bottom + p + 2);
12335
- if (this.position == "absolute" ? (h.style.top = (y - i.parent.top) / l + "px", vs(h, (O - i.parent.left) / s)) : (h.style.top = y / l + "px", vs(h, O / s)), f) {
12336
- let j = d.left + (w ? m.x : -m.x) - (O + 14 - 7);
12334
+ j.left < O && j.right > T && j.top < y + v && j.bottom > y && (y = z ? j.top - v - 2 - p : j.bottom + p + 2);
12335
+ if (this.position == "absolute" ? (h.style.top = (y - i.parent.top) / l + "px", vs(h, (T - i.parent.left) / s)) : (h.style.top = y / l + "px", vs(h, T / s)), f) {
12336
+ let j = d.left + (w ? m.x : -m.x) - (T + 14 - 7);
12337
12337
  f.style.left = j / s + "px";
12338
12338
  }
12339
- c.overlap !== !0 && o.push({ left: O, top: y, right: T, bottom: y + v }), h.classList.toggle("cm-tooltip-above", z), h.classList.toggle("cm-tooltip-below", !z), c.positioned && c.positioned(i.space);
12339
+ c.overlap !== !0 && o.push({ left: T, top: y, right: O, bottom: y + v }), h.classList.toggle("cm-tooltip-above", z), h.classList.toggle("cm-tooltip-below", !z), c.positioned && c.positioned(i.space);
12340
12340
  }
12341
12341
  }
12342
12342
  maybeMeasure() {
@@ -14228,12 +14228,12 @@ function Ln(i) {
14228
14228
  function zx(i) {
14229
14229
  var e;
14230
14230
  let { buffer: t, nodeSet: n, maxBufferLength: s = l8, reused: l = [], minRepeatType: o = n.types.length } = i, r = Array.isArray(t) ? new Bn(t, t.length) : t, a = n.types, c = 0, h = 0;
14231
- function d(M, y, T, j, C, $) {
14231
+ function d(M, y, O, j, C, $) {
14232
14232
  let { id: G, start: W, end: N, size: e2 } = r, o2 = h, F = c;
14233
14233
  if (e2 < 0)
14234
14234
  if (r.next(), e2 == -1) {
14235
14235
  let X2 = l[G];
14236
- T.push(X2), j.push(W - M);
14236
+ O.push(X2), j.push(W - M);
14237
14237
  return;
14238
14238
  } else if (e2 == -3) {
14239
14239
  c = G;
@@ -14261,9 +14261,9 @@ function zx(i) {
14261
14261
  } else
14262
14262
  D2 = g(y2, $2, h0, N - W, o2 - N, F);
14263
14263
  }
14264
- T.push(D2), j.push(N2);
14264
+ O.push(D2), j.push(N2);
14265
14265
  }
14266
- function u(M, y, T, j) {
14266
+ function u(M, y, O, j) {
14267
14267
  let C = [], $ = 0, G = -1;
14268
14268
  for (; r.pos > y; ) {
14269
14269
  let { id: W, start: N, end: e2, size: o2 } = r;
@@ -14279,27 +14279,27 @@ function zx(i) {
14279
14279
  let W = new Uint16Array($ * 4), N = C[C.length - 2];
14280
14280
  for (let e2 = C.length - 3, o2 = 0; e2 >= 0; e2 -= 3)
14281
14281
  W[o2++] = C[e2], W[o2++] = C[e2 + 1] - N, W[o2++] = C[e2 + 2] - N, W[o2++] = o2;
14282
- T.push(new ot(W, C[2] - N, n)), j.push(N - M);
14282
+ O.push(new ot(W, C[2] - N, n)), j.push(N - M);
14283
14283
  }
14284
14284
  }
14285
14285
  function f(M, y) {
14286
- return (T, j, C) => {
14287
- let $ = 0, G = T.length - 1, W, N;
14288
- if (G >= 0 && (W = T[G]) instanceof r0) {
14286
+ return (O, j, C) => {
14287
+ let $ = 0, G = O.length - 1, W, N;
14288
+ if (G >= 0 && (W = O[G]) instanceof r0) {
14289
14289
  if (!G && W.type == M && W.length == C)
14290
14290
  return W;
14291
14291
  (N = W.prop(M2.lookAhead)) && ($ = j[G] + W.length + N);
14292
14292
  }
14293
- return g(M, T, j, C, $, y);
14293
+ return g(M, O, j, C, $, y);
14294
14294
  };
14295
14295
  }
14296
- function p(M, y, T, j, C, $, G, W, N) {
14296
+ function p(M, y, O, j, C, $, G, W, N) {
14297
14297
  let e2 = [], o2 = [];
14298
14298
  for (; M.length > j; )
14299
- e2.push(M.pop()), o2.push(y.pop() + T - C);
14300
- M.push(g(n.types[G], e2, o2, $ - C, W - $, N)), y.push(C - T);
14299
+ e2.push(M.pop()), o2.push(y.pop() + O - C);
14300
+ M.push(g(n.types[G], e2, o2, $ - C, W - $, N)), y.push(C - O);
14301
14301
  }
14302
- function g(M, y, T, j, C, $, G) {
14302
+ function g(M, y, O, j, C, $, G) {
14303
14303
  if ($) {
14304
14304
  let W = [M2.contextHash, $];
14305
14305
  G = G ? [W].concat(G) : [W];
@@ -14308,51 +14308,51 @@ function zx(i) {
14308
14308
  let W = [M2.lookAhead, C];
14309
14309
  G = G ? [W].concat(G) : [W];
14310
14310
  }
14311
- return new r0(M, y, T, j, G);
14311
+ return new r0(M, y, O, j, G);
14312
14312
  }
14313
14313
  function v(M, y) {
14314
- let T = r.fork(), j = 0, C = 0, $ = 0, G = T.end - s, W = { size: 0, start: 0, skip: 0 };
14315
- e: for (let N = T.pos - M; T.pos > N; ) {
14316
- let e2 = T.size;
14317
- if (T.id == y && e2 >= 0) {
14318
- W.size = j, W.start = C, W.skip = $, $ += 4, j += 4, T.next();
14314
+ let O = r.fork(), j = 0, C = 0, $ = 0, G = O.end - s, W = { size: 0, start: 0, skip: 0 };
14315
+ e: for (let N = O.pos - M; O.pos > N; ) {
14316
+ let e2 = O.size;
14317
+ if (O.id == y && e2 >= 0) {
14318
+ W.size = j, W.start = C, W.skip = $, $ += 4, j += 4, O.next();
14319
14319
  continue;
14320
14320
  }
14321
- let o2 = T.pos - e2;
14322
- if (e2 < 0 || o2 < N || T.start < G)
14321
+ let o2 = O.pos - e2;
14322
+ if (e2 < 0 || o2 < N || O.start < G)
14323
14323
  break;
14324
- let F = T.id >= o ? 4 : 0, y2 = T.start;
14325
- for (T.next(); T.pos > o2; ) {
14326
- if (T.size < 0)
14327
- if (T.size == -3 || T.size == -4)
14324
+ let F = O.id >= o ? 4 : 0, y2 = O.start;
14325
+ for (O.next(); O.pos > o2; ) {
14326
+ if (O.size < 0)
14327
+ if (O.size == -3 || O.size == -4)
14328
14328
  F += 4;
14329
14329
  else
14330
14330
  break e;
14331
- else T.id >= o && (F += 4);
14332
- T.next();
14331
+ else O.id >= o && (F += 4);
14332
+ O.next();
14333
14333
  }
14334
14334
  C = y2, j += e2, $ += F;
14335
14335
  }
14336
14336
  return (y < 0 || j == M) && (W.size = j, W.start = C, W.skip = $), W.size > 4 ? W : void 0;
14337
14337
  }
14338
- function m(M, y, T) {
14338
+ function m(M, y, O) {
14339
14339
  let { id: j, start: C, end: $, size: G } = r;
14340
14340
  if (r.next(), G >= 0 && j < o) {
14341
- let W = T;
14341
+ let W = O;
14342
14342
  if (G > 4) {
14343
14343
  let N = r.pos - (G - 4);
14344
14344
  for (; r.pos > N; )
14345
- T = m(M, y, T);
14345
+ O = m(M, y, O);
14346
14346
  }
14347
- y[--T] = W, y[--T] = $ - M, y[--T] = C - M, y[--T] = j;
14347
+ y[--O] = W, y[--O] = $ - M, y[--O] = C - M, y[--O] = j;
14348
14348
  } else G == -3 ? c = j : G == -4 && (h = j);
14349
- return T;
14349
+ return O;
14350
14350
  }
14351
- let w = [], O = [];
14351
+ let w = [], T = [];
14352
14352
  for (; r.pos > 0; )
14353
- d(i.start || 0, i.bufferStart || 0, w, O, -1, 0);
14354
- let z = (e = i.length) !== null && e !== void 0 ? e : w.length ? O[0] + w[0].length : 0;
14355
- return new r0(a[i.topID], w.reverse(), O.reverse(), z);
14353
+ d(i.start || 0, i.bufferStart || 0, w, T, -1, 0);
14354
+ let z = (e = i.length) !== null && e !== void 0 ? e : w.length ? T[0] + w[0].length : 0;
14355
+ return new r0(a[i.topID], w.reverse(), T.reverse(), z);
14356
14356
  }
14357
14357
  const ks = /* @__PURE__ */ new WeakMap();
14358
14358
  function M3(i, e) {
@@ -14381,24 +14381,24 @@ function En(i, e, t, n, s, l, o, r, a) {
14381
14381
  /* Balance.BranchFactor */
14382
14382
  ), d = [], u = [];
14383
14383
  function f(p, g, v, m, w) {
14384
- for (let O = v; O < m; ) {
14385
- let z = O, M = g[O], y = M3(i, p[O]);
14386
- for (O++; O < m; O++) {
14387
- let T = M3(i, p[O]);
14388
- if (y + T >= h)
14384
+ for (let T = v; T < m; ) {
14385
+ let z = T, M = g[T], y = M3(i, p[T]);
14386
+ for (T++; T < m; T++) {
14387
+ let O = M3(i, p[T]);
14388
+ if (y + O >= h)
14389
14389
  break;
14390
- y += T;
14390
+ y += O;
14391
14391
  }
14392
- if (O == z + 1) {
14392
+ if (T == z + 1) {
14393
14393
  if (y > h) {
14394
- let T = p[z];
14395
- f(T.children, T.positions, 0, T.children.length, g[z] + w);
14394
+ let O = p[z];
14395
+ f(O.children, O.positions, 0, O.children.length, g[z] + w);
14396
14396
  continue;
14397
14397
  }
14398
14398
  d.push(p[z]);
14399
14399
  } else {
14400
- let T = g[O - 1] + p[O - 1].length - M;
14401
- d.push(En(i, p, g, z, O, M, T, null, a));
14400
+ let O = g[T - 1] + p[T - 1].length - M;
14401
+ d.push(En(i, p, g, z, T, M, O, null, a));
14402
14402
  }
14403
14403
  u.push(M + w - l);
14404
14404
  }
@@ -14716,11 +14716,11 @@ class Gx {
14716
14716
  if (u && u.overlay) {
14717
14717
  let f = e.node.enter(u.overlay[0].from + r, 1), p = this.highlighters.filter((v) => !v.scope || v.scope(u.tree.type)), g = e.firstChild();
14718
14718
  for (let v = 0, m = r; ; v++) {
14719
- let w = v < u.overlay.length ? u.overlay[v] : null, O = w ? w.from + r : a, z = Math.max(t, m), M = Math.min(n, O);
14719
+ let w = v < u.overlay.length ? u.overlay[v] : null, T = w ? w.from + r : a, z = Math.max(t, m), M = Math.min(n, T);
14720
14720
  if (z < M && g)
14721
- for (; e.from < M && (this.highlightRange(e, z, M, s, l), this.startSpan(Math.min(M, e.to), c), !(e.to >= O || !e.nextSibling())); )
14721
+ for (; e.from < M && (this.highlightRange(e, z, M, s, l), this.startSpan(Math.min(M, e.to), c), !(e.to >= T || !e.nextSibling())); )
14722
14722
  ;
14723
- if (!w || O > n)
14723
+ if (!w || T > n)
14724
14724
  break;
14725
14725
  m = w.to + r, m > t && (this.highlightRange(f.cursor(), Math.max(t, w.from + r), Math.min(n, m), "", p), this.startSpan(Math.min(n, m), c));
14726
14726
  }
@@ -16578,7 +16578,7 @@ class F0 {
16578
16578
  };
16579
16579
  }
16580
16580
  static fromJSON(e) {
16581
- return new F0(e.changes && g0.fromJSON(e.changes), [], e.mapped && He.fromJSON(e.mapped), e.startSelection && B.fromJSON(e.startSelection), e.selectionsAfter.map(B.fromJSON));
16581
+ return new F0(e.changes && p0.fromJSON(e.changes), [], e.mapped && He.fromJSON(e.mapped), e.startSelection && B.fromJSON(e.startSelection), e.selectionsAfter.map(B.fromJSON));
16582
16582
  }
16583
16583
  // This does not check `addToHistory` and such, it assumes the
16584
16584
  // transaction needs to be converted to an item. Returns null when
@@ -18105,19 +18105,19 @@ class Cy {
18105
18105
  return null;
18106
18106
  let { chars: t, folded: n, any: s, precise: l, byWord: o } = this;
18107
18107
  if (t.length == 1) {
18108
- let w = j0(e, 0), O = Ve(w), z = O == e.length ? 0 : -100;
18108
+ let w = j0(e, 0), T = Ve(w), z = T == e.length ? 0 : -100;
18109
18109
  if (w != t[0]) if (w == n[0])
18110
18110
  z += -200;
18111
18111
  else
18112
18112
  return null;
18113
- return this.ret(z, [0, O]);
18113
+ return this.ret(z, [0, T]);
18114
18114
  }
18115
18115
  let r = e.indexOf(this.pattern);
18116
18116
  if (r == 0)
18117
18117
  return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
18118
18118
  let a = t.length, c = 0;
18119
18119
  if (r < 0) {
18120
- for (let w = 0, O = Math.min(e.length, 200); w < O && c < a; ) {
18120
+ for (let w = 0, T = Math.min(e.length, 200); w < T && c < a; ) {
18121
18121
  let z = j0(e, w);
18122
18122
  (z == t[c] || z == n[c]) && (s[c++] = w), w += Ve(z);
18123
18123
  }
@@ -18125,11 +18125,11 @@ class Cy {
18125
18125
  return null;
18126
18126
  }
18127
18127
  let h = 0, d = 0, u = !1, f = 0, p = -1, g = -1, v = /[a-z]/.test(e), m = !0;
18128
- for (let w = 0, O = Math.min(e.length, 200), z = 0; w < O && d < a; ) {
18128
+ for (let w = 0, T = Math.min(e.length, 200), z = 0; w < T && d < a; ) {
18129
18129
  let M = j0(e, w);
18130
18130
  r < 0 && (h < a && M == t[h] && (l[h++] = w), f < a && (M == t[f] || M == n[f] ? (f == 0 && (p = w), g = w + 1, f++) : f = 0));
18131
- let y, T = M < 255 ? M >= 48 && M <= 57 || M >= 97 && M <= 122 ? 2 : M >= 65 && M <= 90 ? 1 : 0 : (y = fn(M)) != y.toLowerCase() ? 1 : y != y.toUpperCase() ? 2 : 0;
18132
- (!w || T == 1 && v || z == 0 && T != 0) && (t[d] == M || n[d] == M && (u = !0) ? o[d++] = w : o.length && (m = !1)), z = T, w += Ve(M);
18131
+ let y, O = M < 255 ? M >= 48 && M <= 57 || M >= 97 && M <= 122 ? 2 : M >= 65 && M <= 90 ? 1 : 0 : (y = fn(M)) != y.toLowerCase() ? 1 : y != y.toUpperCase() ? 2 : 0;
18132
+ (!w || O == 1 && v || z == 0 && O != 0) && (t[d] == M || n[d] == M && (u = !0) ? o[d++] = w : o.length && (m = !1)), z = O, w += Ve(M);
18133
18133
  }
18134
18134
  return d == a && o[0] == 0 && m ? this.result(-100 + (u ? -200 : 0), o, e) : f == a && p == 0 ? this.ret(-200 - e.length + (g == e.length ? 0 : -100), [0, g]) : r > -1 ? this.ret(-700 - e.length, [r, r + this.pattern.length]) : f == a ? this.ret(-900 - e.length, [p, g]) : d == a ? this.result(-100 + (u ? -200 : 0) + -700 + (m ? 0 : -1100), o, e) : t.length == 2 ? null : this.result((s[0] ? -700 : 0) + -200 + -1100, s, e);
18135
18135
  }
@@ -19157,26 +19157,26 @@ class mt {
19157
19157
  break;
19158
19158
  let g, v;
19159
19159
  if (r.length)
19160
- g = a, v = r.reduce((O, z) => Math.min(O, z.to), p && p.from > g ? p.from : 1e8);
19160
+ g = a, v = r.reduce((T, z) => Math.min(T, z.to), p && p.from > g ? p.from : 1e8);
19161
19161
  else {
19162
19162
  if (g = p.from, g > d)
19163
19163
  break;
19164
19164
  v = p.to, r.push(p), f++;
19165
19165
  }
19166
19166
  for (; f < l.length; ) {
19167
- let O = l[f];
19168
- if (O.from == g && (O.to > O.from || O.to == g))
19169
- r.push(O), f++, v = Math.min(O.to, v);
19167
+ let T = l[f];
19168
+ if (T.from == g && (T.to > T.from || T.to == g))
19169
+ r.push(T), f++, v = Math.min(T.to, v);
19170
19170
  else {
19171
- v = Math.min(O.from, v);
19171
+ v = Math.min(T.from, v);
19172
19172
  break;
19173
19173
  }
19174
19174
  }
19175
19175
  v = Math.min(v, d);
19176
19176
  let m = !1;
19177
- if (r.some((O) => O.from == g && (O.to == v || v == d)) && (m = g == v, !m && v - g < 10)) {
19178
- let O = g - (h + c.value.length);
19179
- O > 0 && (c.next(O), h = g);
19177
+ if (r.some((T) => T.from == g && (T.to == v || v == d)) && (m = g == v, !m && v - g < 10)) {
19178
+ let T = g - (h + c.value.length);
19179
+ T > 0 && (c.next(T), h = g);
19180
19180
  for (let z = g; ; ) {
19181
19181
  if (z >= v) {
19182
19182
  m = !0;
@@ -19194,17 +19194,17 @@ class mt {
19194
19194
  diagnostics: r.slice()
19195
19195
  }));
19196
19196
  else {
19197
- let O = r.reduce((z, M) => M.markClass ? z + " " + M.markClass : z, "");
19197
+ let T = r.reduce((z, M) => M.markClass ? z + " " + M.markClass : z, "");
19198
19198
  o.add(g, v, m2.mark({
19199
- class: "cm-lintRange cm-lintRange-" + w + O,
19199
+ class: "cm-lintRange cm-lintRange-" + w + T,
19200
19200
  diagnostics: r.slice(),
19201
19201
  inclusiveEnd: r.some((z) => z.to > v)
19202
19202
  }));
19203
19203
  }
19204
19204
  if (a = v, a == d)
19205
19205
  break;
19206
- for (let O = 0; O < r.length; O++)
19207
- r[O].to <= a && r.splice(O--, 1);
19206
+ for (let T = 0; T < r.length; T++)
19207
+ r[T].to <= a && r.splice(T--, 1);
19208
19208
  }
19209
19209
  let u = o.finish();
19210
19210
  return new mt(u, t, at(u));
@@ -21140,14 +21140,14 @@ function QS(i, e) {
21140
21140
  } else if (u == "tag") {
21141
21141
  let g = r4(h, p), v = r[g], m = [], w = p && p.lastChild;
21142
21142
  g && (!w || w.name != "CloseTag" || V3(h, w) != g) && m.push(v ? v.closeCompletion : { label: "</" + g + ">", type: "type", boost: 2 });
21143
- let O = m.concat(((v == null ? void 0 : v.children) || (p ? l : o)).map((z) => z.openCompletion));
21143
+ let T = m.concat(((v == null ? void 0 : v.children) || (p ? l : o)).map((z) => z.openCompletion));
21144
21144
  if (p && (v != null && v.text.length)) {
21145
21145
  let z = p.firstChild;
21146
- z.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(z.to, a.pos)) && (O = O.concat(v.text));
21146
+ z.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(z.to, a.pos)) && (T = T.concat(v.text));
21147
21147
  }
21148
21148
  return {
21149
21149
  from: f,
21150
- options: O,
21150
+ options: T,
21151
21151
  validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
21152
21152
  };
21153
21153
  } else
@@ -21390,13 +21390,13 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21390
21390
  }), g = Q(() => (r == null ? void 0 : r.value) === "ls"), v = Q(() => {
21391
21391
  var G, W;
21392
21392
  return ((W = (G = n.blobUrl) == null ? void 0 : G.toUpperCase()) == null ? void 0 : W.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
21393
- }), m = Q(() => v.value), w = Q(() => (r == null ? void 0 : r.value) === "docx"), O = Q(() => (r == null ? void 0 : r.value) === "csv"), z = Q(() => (r == null ? void 0 : r.value) === "xlsx"), M = Q(() => (r == null ? void 0 : r.value) === "pdf"), y = Q(() => {
21393
+ }), m = Q(() => v.value), w = Q(() => (r == null ? void 0 : r.value) === "docx"), T = Q(() => (r == null ? void 0 : r.value) === "csv"), z = Q(() => (r == null ? void 0 : r.value) === "xlsx"), M = Q(() => (r == null ? void 0 : r.value) === "pdf"), y = Q(() => {
21394
21394
  const G = r == null ? void 0 : r.value;
21395
21395
  return G === "jpg" || G === "jpeg" || G === "png" || G === "gif" || G === "webp" || G === "bmp";
21396
- }), T = Q(() => (r == null ? void 0 : r.value) === "pptx"), j = Q(() => (r == null ? void 0 : r.value) === "mp4"), C = Q(() => {
21396
+ }), O = Q(() => (r == null ? void 0 : r.value) === "pptx"), j = Q(() => (r == null ? void 0 : r.value) === "mp4"), C = Q(() => {
21397
21397
  const G = r == null ? void 0 : r.value;
21398
21398
  return G === "doc" || G === "xls" || G === "ppt";
21399
- }), $ = Q(() => !f && !g && !m && !w && !z && !M && !y && !T);
21399
+ }), $ = Q(() => !f && !g && !m && !w && !z && !M && !y && !O);
21400
21400
  return n1(() => {
21401
21401
  t("destroy");
21402
21402
  }), (G, W) => (b(), V("div", fC, [
@@ -21433,7 +21433,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21433
21433
  blobUrl: s.value
21434
21434
  }, null, 8, ["fileName", "blobUrl"])
21435
21435
  ])) : Z("", !0),
21436
- O.value ? (b(), V("div", wC, [
21436
+ T.value ? (b(), V("div", wC, [
21437
21437
  K(cv, {
21438
21438
  fileName: l.value,
21439
21439
  blobUrl: s.value
@@ -21451,7 +21451,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21451
21451
  blobUrl: s.value
21452
21452
  }, null, 8, ["fileName", "blobUrl"])
21453
21453
  ])) : Z("", !0),
21454
- T.value ? (b(), V("div", _C, [
21454
+ O.value ? (b(), V("div", _C, [
21455
21455
  K(aC, {
21456
21456
  fileName: l.value,
21457
21457
  blobUrl: s.value
@@ -21465,7 +21465,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21465
21465
  ])) : Z("", !0),
21466
21466
  C.value ? (b(), V("div", SC, [
21467
21467
  a2("div", null, "当前文件格式(." + E2(r.value) + ")暂不支持预览,请下载后用本地软件打开", 1)
21468
- ])) : !w.value && !z.value && !M.value && !v.value && !y.value && !T.value && !p.value && !j.value && !a.value && !O.value ? (b(), V("div", CC, [
21468
+ ])) : !w.value && !z.value && !M.value && !v.value && !y.value && !O.value && !p.value && !j.value && !a.value && !T.value ? (b(), V("div", CC, [
21469
21469
  K(nC, {
21470
21470
  fileName: l.value,
21471
21471
  blobUrl: s.value
@@ -21548,60 +21548,62 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21548
21548
  },
21549
21549
  emits: ["destroy"],
21550
21550
  setup(i, { emit: e }) {
21551
- const { nextZIndex: t } = c9(), n = t(), s = e, l = i, o = R(!0), r = Q(() => l.fileDataList), a = Q(() => l.index), c = Q(() => l.isRevokeBlob), h = Q(() => {
21552
- var w;
21553
- const v = r.value;
21554
- return (w = v == null ? void 0 : v[0]) == null ? void 0 : w.name;
21555
- }), d = () => {
21556
- var v, m, w, O;
21557
- Pl((m = (v = r.value) == null ? void 0 : v[0]) == null ? void 0 : m.blobUrl, (O = (w = r.value) == null ? void 0 : w[0]) == null ? void 0 : O.name);
21558
- }, u = R(!1), f = () => {
21559
- const v = u.value;
21560
- u.value = !v;
21551
+ const t = e, n = i, s = R(!0), { nextZIndex: l } = c9();
21552
+ Q(() => s.value ? l() : 3e3);
21553
+ const o = Q(() => n.fileDataList), r = Q(() => n.index), a = Q(() => n.isRevokeBlob), c = Q(() => {
21554
+ var m;
21555
+ const g = o.value;
21556
+ return (m = g == null ? void 0 : g[0]) == null ? void 0 : m.name;
21557
+ }), h = () => {
21558
+ var g, v, m, w;
21559
+ Pl((v = (g = o.value) == null ? void 0 : g[0]) == null ? void 0 : v.blobUrl, (w = (m = o.value) == null ? void 0 : m[0]) == null ? void 0 : w.name);
21560
+ }, d = R(!1), u = () => {
21561
+ const g = d.value;
21562
+ d.value = !g;
21563
+ }, f = () => {
21564
+ p(), s.value = !1;
21561
21565
  }, p = () => {
21562
- g(), o.value = !1;
21563
- }, g = () => {
21564
- s("destroy");
21566
+ t("destroy");
21565
21567
  };
21566
21568
  return n1(() => {
21567
- s("destroy");
21568
- const v = r.value;
21569
- c.value && (v == null || v.forEach((w) => {
21570
- const { blobUrl: O } = w;
21571
- URL.revokeObjectURL(O);
21569
+ t("destroy");
21570
+ const g = o.value;
21571
+ a.value && (g == null || g.forEach((m) => {
21572
+ const { blobUrl: w } = m;
21573
+ URL.revokeObjectURL(w);
21572
21574
  }));
21573
- }), (v, m) => {
21574
- const w = t2("el-icon");
21575
+ }), (g, v) => {
21576
+ const m = t2("el-icon");
21575
21577
  return b(), q(un, {
21576
21578
  class: "file-preview-dialog",
21577
- visible: o.value,
21578
- onBeforeDestroy: g,
21579
+ visible: s.value,
21580
+ onBeforeDestroy: p,
21579
21581
  showClose: !1,
21580
- fullScreen: u.value,
21581
- zIndex: f0(n)
21582
+ fullScreen: d.value,
21583
+ zIndex: 3e3
21582
21584
  }, {
21583
21585
  header: E(() => [
21584
21586
  a2("div", PC, [
21585
21587
  a2("div", {
21586
21588
  class: "header-left",
21587
- title: h.value
21588
- }, E2(h.value), 9, AC),
21589
+ title: c.value
21590
+ }, E2(c.value), 9, AC),
21589
21591
  a2("div", BC, [
21590
- K(w, null, {
21592
+ K(m, null, {
21591
21593
  default: E(() => [
21592
- K(f0(Tl), { onClick: d })
21594
+ K(g0(Tl), { onClick: h })
21593
21595
  ]),
21594
21596
  _: 1
21595
21597
  }),
21596
- K(w, null, {
21598
+ K(m, null, {
21597
21599
  default: E(() => [
21598
- K(f0(h9), { onClick: f })
21600
+ K(g0(h9), { onClick: u })
21599
21601
  ]),
21600
21602
  _: 1
21601
21603
  }),
21602
- K(w, null, {
21604
+ K(m, null, {
21603
21605
  default: E(() => [
21604
- K(f0(d9), { onClick: p })
21606
+ K(g0(d9), { onClick: f })
21605
21607
  ]),
21606
21608
  _: 1
21607
21609
  })
@@ -21609,25 +21611,25 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21609
21611
  ])
21610
21612
  ]),
21611
21613
  default: E(() => {
21612
- var O;
21614
+ var w;
21613
21615
  return [
21614
21616
  a2("div", LC, [
21615
- m[0] || (m[0] = a2("div", { class: "file-preview-header" }, null, -1)),
21617
+ v[0] || (v[0] = a2("div", { class: "file-preview-header" }, null, -1)),
21616
21618
  (b(), q(Ar, {
21617
21619
  class: "file-preview-content",
21618
- fileDataList: r.value,
21619
- key: (O = r.value) == null ? void 0 : O.length,
21620
- index: a.value,
21621
- fullScreen: u.value
21620
+ fileDataList: o.value,
21621
+ key: (w = o.value) == null ? void 0 : w.length,
21622
+ index: r.value,
21623
+ fullScreen: d.value
21622
21624
  }, null, 8, ["fileDataList", "index", "fullScreen"]))
21623
21625
  ])
21624
21626
  ];
21625
21627
  }),
21626
21628
  _: 1
21627
- }, 8, ["visible", "fullScreen", "zIndex"]);
21629
+ }, 8, ["visible", "fullScreen"]);
21628
21630
  };
21629
21631
  }
21630
- }), a6 = /* @__PURE__ */ G2(EC, [["__scopeId", "data-v-32913475"]]), HC = { class: "upload-image-wrap" }, GC = ["accept"], NC = ["src", "title"], RC = {
21632
+ }), a6 = /* @__PURE__ */ G2(EC, [["__scopeId", "data-v-dae46205"]]), HC = { class: "upload-image-wrap" }, GC = ["accept"], NC = ["src", "title"], RC = {
21631
21633
  key: 1,
21632
21634
  class: "placeholder"
21633
21635
  }, $C = { class: "label" }, WC = ["src"], jC = {
@@ -21676,11 +21678,11 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21676
21678
  var v;
21677
21679
  !t.isEdit || t.disabled || (v = o.value) == null || v.click();
21678
21680
  }, u = async (v) => {
21679
- var M, y, T, j;
21681
+ var M, y, O, j;
21680
21682
  const m = (y = (M = v.target) == null ? void 0 : M.files) == null ? void 0 : y[0];
21681
21683
  if (v.target.value = "", !m) return;
21682
- const w = t.accept.split(",").map((C) => C.trim().toLowerCase()), O = "." + m.name.toLowerCase().split(".").pop();
21683
- if (!w.includes(O)) {
21684
+ const w = t.accept.split(",").map((C) => C.trim().toLowerCase()), T = "." + m.name.toLowerCase().split(".").pop();
21685
+ if (!w.includes(T)) {
21684
21686
  ae.warning(`仅支持 ${w.map((C) => C.replace(/^\./, "")).join("/")} 格式`);
21685
21687
  return;
21686
21688
  }
@@ -21692,7 +21694,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21692
21694
  try {
21693
21695
  const C = new FormData();
21694
21696
  C.append("file", m, m.name);
21695
- const $ = await C1(C), G = (j = (T = $ == null ? void 0 : $.data) == null ? void 0 : T.result) == null ? void 0 : j.url;
21697
+ const $ = await C1(C), G = (j = (O = $ == null ? void 0 : $.data) == null ? void 0 : O.result) == null ? void 0 : j.url;
21696
21698
  if (!G) throw new Error("服务端未返回 url");
21697
21699
  s.value = G, n("change", G), n("blurChange");
21698
21700
  } catch (C) {
@@ -21703,8 +21705,8 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21703
21705
  }, f = async () => {
21704
21706
  const v = s.value;
21705
21707
  if (!v) return;
21706
- const m = P3.service({ lock: !0, text: "Loading", background: "rgba(0,0,0,0.7)" }), w = await h(v).finally(() => m.close()), O = v.split("/").pop() ?? "图片";
21707
- a.value = [{ name: decodeURI(O), blobUrl: w }], r.value = !0;
21708
+ const m = P3.service({ lock: !0, text: "Loading", background: "rgba(0,0,0,0.7)" }), w = await h(v).finally(() => m.close()), T = v.split("/").pop() ?? "图片";
21709
+ a.value = [{ name: decodeURI(T), blobUrl: w }], r.value = !0;
21708
21710
  }, p = () => {
21709
21711
  r.value = !1;
21710
21712
  }, g = () => {
@@ -21735,7 +21737,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21735
21737
  }, null, 8, NC)) : (b(), V("span", RC, [
21736
21738
  K(w, null, {
21737
21739
  default: E(() => [
21738
- K(f0(u9))
21740
+ K(g0(u9))
21739
21741
  ]),
21740
21742
  _: 1
21741
21743
  }),
@@ -21753,7 +21755,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21753
21755
  onClick: f
21754
21756
  }, {
21755
21757
  default: E(() => [
21756
- K(f0(Ml))
21758
+ K(g0(Ml))
21757
21759
  ]),
21758
21760
  _: 1
21759
21761
  }),
@@ -21763,7 +21765,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21763
21765
  onClick: d
21764
21766
  }, {
21765
21767
  default: E(() => [
21766
- K(f0(f9))
21768
+ K(g0(f9))
21767
21769
  ]),
21768
21770
  _: 1
21769
21771
  }),
@@ -21773,7 +21775,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21773
21775
  onClick: g
21774
21776
  }, {
21775
21777
  default: E(() => [
21776
- K(f0(p9))
21778
+ K(g0(p9))
21777
21779
  ]),
21778
21780
  _: 1
21779
21781
  })
@@ -21869,7 +21871,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21869
21871
  sortable: ((d = i.column) == null ? void 0 : d.prop) === "operate" || ((u = i.column) == null ? void 0 : u.label) === "操作" || Array.isArray((f = i.column) == null ? void 0 : f.children) && i.column.children.length > 0 ? !1 : ((p = i.column) == null ? void 0 : p.sortable) ?? !1 ? "custom" : !1,
21870
21872
  "show-overflow-tooltip": ((g = i.column) == null ? void 0 : g.showOverflowTooltip) ?? !0,
21871
21873
  "class-name": (((v = i.column) == null ? void 0 : v.isNotDrag) ?? !1) === !0 ? "is-not-drag recursive-column" : "is-drag recursive-column",
21872
- "min-width": f0(Lr)(i.column)
21874
+ "min-width": g0(Lr)(i.column)
21873
21875
  }, {
21874
21876
  header: E(() => [
21875
21877
  i.column.prop !== "operate" ? (b(), V("span", {
@@ -21897,17 +21899,17 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21897
21899
  $index: m.$index,
21898
21900
  scope: m
21899
21901
  }),
21900
- (b(!0), V(O2, null, V2(i.column.children, (w, O) => (b(), q(l, {
21901
- key: O,
21902
+ (b(!0), V(O2, null, V2(i.column.children, (w, T) => (b(), q(l, {
21903
+ key: T,
21902
21904
  column: w,
21903
21905
  tableData: i.tableData
21904
21906
  }, be({ _: 2 }, [
21905
21907
  V2(e.$slots, (z, M) => ({
21906
21908
  name: M,
21907
- fn: E(({ row: y, slotData: T, item: j, column: C }) => [
21908
- P2(e.$slots, M, R1({ ref_for: !0 }, T ?? y, {
21909
+ fn: E(({ row: y, slotData: O, item: j, column: C }) => [
21910
+ P2(e.$slots, M, R1({ ref_for: !0 }, O ?? y, {
21909
21911
  item: j ?? w,
21910
- slotData: T ?? y,
21912
+ slotData: O ?? y,
21911
21913
  row: y,
21912
21914
  column: C,
21913
21915
  columnProp: w
@@ -21962,7 +21964,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21962
21964
  })) : !1;
21963
21965
  };
21964
21966
  return (d, u) => {
21965
- var g, v, m, w, O, z, M, y, T, j;
21967
+ var g, v, m, w, T, z, M, y, O, j;
21966
21968
  const f = t2("svg-icon"), p = t2("el-table-column");
21967
21969
  return i.column.isTableColHidden ? Z("", !0) : (b(), q(p, {
21968
21970
  key: 0,
@@ -21971,12 +21973,12 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
21971
21973
  fixed: ((g = i.column) == null ? void 0 : g.prop) === "operate" ? "right" : (v = i.column) == null ? void 0 : v.fixed,
21972
21974
  align: "center",
21973
21975
  "header-align": (((w = (m = i.column) == null ? void 0 : m.children) == null ? void 0 : w.length) > 0, "center"),
21974
- sortable: ((O = i.column) == null ? void 0 : O.prop) === "operate" ? !1 : (z = i.column) != null && z.sortable ? "custom" : !1,
21976
+ sortable: ((T = i.column) == null ? void 0 : T.prop) === "operate" ? !1 : (z = i.column) != null && z.sortable ? "custom" : !1,
21975
21977
  filters: (M = i.column) != null && M.filterable ? h(i.column) : null,
21976
21978
  "filter-method": o,
21977
21979
  "show-overflow-tooltip": ((y = i.column) == null ? void 0 : y.showOverflowTooltip) ?? !0,
21978
- "class-name": ((T = i.column) == null ? void 0 : T.prop) === "operate" ? "action" : (((j = i.column) == null ? void 0 : j.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag",
21979
- "min-width": f0(Lr)(i.column)
21980
+ "class-name": ((O = i.column) == null ? void 0 : O.prop) === "operate" ? "action" : (((j = i.column) == null ? void 0 : j.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag",
21981
+ "min-width": g0(Lr)(i.column)
21980
21982
  }, {
21981
21983
  header: E(() => [
21982
21984
  i.column.prop !== "operate" ? (b(), V(O2, { key: 0 }, [
@@ -22218,12 +22220,12 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22218
22220
  } catch {
22219
22221
  return !1;
22220
22222
  }
22221
- }), u = d6({ x: 0, y: 0 }), f = R([]), p = R([]), g = R({}), v = R(0), m = R(null), w = R(null), O = R(null), z = Q(() => {
22223
+ }), u = d6({ x: 0, y: 0 }), f = R([]), p = R([]), g = R({}), v = R(0), m = R(null), w = R(null), T = R(null), z = Q(() => {
22222
22224
  var k, P;
22223
22225
  return Array.isArray(f.value) && ((P = (k = f.value) == null ? void 0 : k[0]) == null ? void 0 : P.prop) === "disabled";
22224
22226
  }), M = Q(() => n.allowRowAddOrDelete && !z.value), y = t;
22225
22227
  T6("contentRef");
22226
- const T = R(""), j = Q(() => (n == null ? void 0 : n.loadingButtonText) || T.value);
22228
+ const O = R(""), j = Q(() => (n == null ? void 0 : n.loadingButtonText) || O.value);
22227
22229
  Ge(() => {
22228
22230
  var P, H, U, c2, h2, C2;
22229
22231
  e2 = N(), f.value = n == null ? void 0 : n.columns, p.value = (P = n == null ? void 0 : n.tableData) == null ? void 0 : P.map((X) => {
@@ -22251,12 +22253,12 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22251
22253
  m0(), w0(), document.addEventListener("click", D2);
22252
22254
  });
22253
22255
  const C = R(null), $ = async (k, P) => {
22254
- T.value = k == null ? void 0 : k.label;
22256
+ O.value = k == null ? void 0 : k.label;
22255
22257
  try {
22256
22258
  y("clickButton", k == null ? void 0 : k.label, "", { extra: k });
22257
22259
  } finally {
22258
22260
  C.value = setTimeout(() => {
22259
- T.value = "";
22261
+ O.value = "";
22260
22262
  }, 1e3);
22261
22263
  }
22262
22264
  };
@@ -22451,7 +22453,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22451
22453
  y("dbClickRow", k, P);
22452
22454
  }, S0 = (k) => {
22453
22455
  y("doSizeChange", k);
22454
- }, p0 = (k) => {
22456
+ }, f0 = (k) => {
22455
22457
  y("fixRow", k);
22456
22458
  }, Q0 = (k) => {
22457
22459
  y("deleteRow", k);
@@ -22538,7 +22540,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22538
22540
  k.preventDefault();
22539
22541
  const c2 = Y1(U);
22540
22542
  if (!c2.length) return;
22541
- const { rowIndex: h2, columnIndex: C2 } = O.value || { rowIndex: 0, columnIndex: 0 }, X = [];
22543
+ const { rowIndex: h2, columnIndex: C2 } = T.value || { rowIndex: 0, columnIndex: 0 }, X = [];
22542
22544
  if (c2 == null || c2.forEach((d2) => {
22543
22545
  X.push(d2.length + C2);
22544
22546
  }), (X == null ? void 0 : X.filter((d2) => {
@@ -22591,7 +22593,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22591
22593
  }
22592
22594
  f2.push(Z2);
22593
22595
  }
22594
- const { rowIndex: r2, columnProp: L2 } = O.value || { rowIndex: 0, columnIndex: 0 };
22596
+ const { rowIndex: r2, columnProp: L2 } = T.value || { rowIndex: 0, columnIndex: 0 };
22595
22597
  if (Array.isArray(f2) && f2.length) {
22596
22598
  const l0 = [];
22597
22599
  f2.forEach((Z2) => {
@@ -22624,7 +22626,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22624
22626
  u2 = u2 + f2.textContent.trim();
22625
22627
  if (Array.isArray(u2)) {
22626
22628
  k.preventDefault();
22627
- const { rowIndex: f2, columnProp: r2 } = O.value || { rowIndex: 0, columnIndex: 0 }, L2 = {}, l0 = p.value;
22629
+ const { rowIndex: f2, columnProp: r2 } = T.value || { rowIndex: 0, columnIndex: 0 }, L2 = {}, l0 = p.value;
22628
22630
  l0[f2][r2] = u2;
22629
22631
  }
22630
22632
  }
@@ -22634,7 +22636,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22634
22636
  }
22635
22637
  }, Y1 = (k) => k.trim().split(/\r\n|\n|\r/).map((U) => U.trim() ? U.split(" ").map((c2) => c2.replace(/^"(.*)"$/, "$1")) : [""]), F1 = (k) => {
22636
22638
  var P;
22637
- k && (O.value = {
22639
+ k && (T.value = {
22638
22640
  rowIndex: k == null ? void 0 : k.$index,
22639
22641
  columnIndex: k == null ? void 0 : k.cellIndex,
22640
22642
  columnProp: (P = k.column) == null ? void 0 : P.property
@@ -22771,7 +22773,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22771
22773
  }, [
22772
22774
  K(H, { size: 14 }, {
22773
22775
  default: E(() => [
22774
- K(f0(h4))
22776
+ K(g0(h4))
22775
22777
  ]),
22776
22778
  _: 1
22777
22779
  })
@@ -22805,7 +22807,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22805
22807
  }, [
22806
22808
  K(H, { size: 12 }, {
22807
22809
  default: E(() => [
22808
- K(f0(h4))
22810
+ K(g0(h4))
22809
22811
  ]),
22810
22812
  _: 1
22811
22813
  })
@@ -22817,7 +22819,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22817
22819
  }, [
22818
22820
  K(H, { size: 12 }, {
22819
22821
  default: E(() => [
22820
- K(f0(g9))
22822
+ K(g0(g9))
22821
22823
  ]),
22822
22824
  _: 1
22823
22825
  })
@@ -22929,7 +22931,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22929
22931
  }, void 0, !0),
22930
22932
  i.isShowEdit ? (b(), V("span", {
22931
22933
  key: 0,
22932
- onClick: (S2) => p0(g2),
22934
+ onClick: (S2) => f0(g2),
22933
22935
  class: "blue-table-operate table-operate-content"
22934
22936
  }, "编辑", 8, dk)) : Z("", !0),
22935
22937
  i.isShowDelete ? (b(), V("span", {
@@ -22954,8 +22956,8 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
22954
22956
  direction: (ri = ve ?? J2 ?? L) == null ? void 0 : ri.controlDirection,
22955
22957
  align: (ai = ve ?? J2 ?? L) == null ? void 0 : ai.controlAlign,
22956
22958
  optionUrl: ve ?? J2 ?? L,
22957
- "suggest-list": f0(D)(g2, d0),
22958
- loading: f0(A)(g2, d0),
22959
+ "suggest-list": g0(D)(g2, d0),
22960
+ loading: g0(A)(g2, d0),
22959
22961
  onFocus: (S2) => F1(ti),
22960
22962
  onInput: (S2) => n2(S2, g2, d0, ve ?? J2 ?? L),
22961
22963
  onSelectSuggest: (S2) => I(S2, g2, d0),
@@ -23364,7 +23366,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
23364
23366
  m.value && m.value.open(z);
23365
23367
  }
23366
23368
  }), (z, M) => {
23367
- const y = t2("el-sub-menu"), T = t2("el-menu-item"), j = t2("el-menu");
23369
+ const y = t2("el-sub-menu"), O = t2("el-menu-item"), j = t2("el-menu");
23368
23370
  return b(), q(j, {
23369
23371
  ref_key: "menuRef",
23370
23372
  ref: m,
@@ -23410,7 +23412,7 @@ const JS = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
23410
23412
  ]), 1032, ["menuList"])
23411
23413
  ]),
23412
23414
  _: 2
23413
- }, 1032, ["index", "style"])) : C.show ? (b(), q(T, {
23415
+ }, 1032, ["index", "style"])) : C.show ? (b(), q(O, {
23414
23416
  index: C.path,
23415
23417
  key: C.path,
23416
23418
  style: u0(C.style),
@@ -23649,7 +23651,7 @@ const Lk = {
23649
23651
  }], a.value = !0;
23650
23652
  }, w = () => {
23651
23653
  a.value = !1;
23652
- }, O = async (C) => {
23654
+ }, T = async (C) => {
23653
23655
  var N, e2, o2, F, y2, D2;
23654
23656
  if (!C) return;
23655
23657
  const $ = P3.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)" }), G = await v(C).finally(() => $.close()), W = C != null && C.oldUrl ? C.oldUrl.split("/").pop() : (C == null ? void 0 : C.name) + "." + ((D2 = (e2 = (N = H0(C)) == null ? void 0 : N.url) == null ? void 0 : e2.split(".")) == null ? void 0 : D2[((y2 = (F = (o2 = H0(C)) == null ? void 0 : o2.url) == null ? void 0 : F.split(".")) == null ? void 0 : y2.length) - 1]);
@@ -23686,7 +23688,7 @@ const Lk = {
23686
23688
  url: ((y2 = (F = N == null ? void 0 : N.data) == null ? void 0 : F.result) == null ? void 0 : y2.url) ?? (N == null ? void 0 : N.url)
23687
23689
  }), (w2 = (D2 = N == null ? void 0 : N.data) == null ? void 0 : D2.result) == null ? void 0 : w2.url;
23688
23690
  }), ae.success("上传成功"), r.value = G, l("update:modelValue", G), l("change", G), h.value = [], d.value = !1, o.value = !1;
23689
- }, T = () => {
23691
+ }, O = () => {
23690
23692
  d.value = !1, h.value = r.value, p.value = r.value;
23691
23693
  }, j = (C) => {
23692
23694
  if (!C) return;
@@ -23747,7 +23749,7 @@ const Lk = {
23747
23749
  ])) : Z("", !0),
23748
23750
  K(un, {
23749
23751
  visible: d.value,
23750
- onBeforeDestroy: T,
23752
+ onBeforeDestroy: O,
23751
23753
  title: "上传文件"
23752
23754
  }, {
23753
23755
  default: E(() => [
@@ -23770,7 +23772,7 @@ const Lk = {
23770
23772
  default: E(() => [
23771
23773
  K(W, { class: "el-icon--upload" }, {
23772
23774
  default: E(() => [
23773
- K(f0(v9))
23775
+ K(g0(v9))
23774
23776
  ]),
23775
23777
  _: 1
23776
23778
  }),
@@ -23810,7 +23812,7 @@ const Lk = {
23810
23812
  footer: E(() => [
23811
23813
  a2("div", jk, [
23812
23814
  K(L0, {
23813
- onClickTrigger: T,
23815
+ onClickTrigger: O,
23814
23816
  id: "themeBorderButton",
23815
23817
  disabled: o.value,
23816
23818
  modelValue: "取消"
@@ -23853,17 +23855,17 @@ const Lk = {
23853
23855
  onClick: (D2) => m(F)
23854
23856
  }, {
23855
23857
  default: E(() => [
23856
- K(f0(Ml))
23858
+ K(g0(Ml))
23857
23859
  ]),
23858
23860
  _: 1
23859
23861
  }, 8, ["onClick"]),
23860
23862
  K(W, {
23861
23863
  class: "icon-blue action-icon",
23862
23864
  title: "下载",
23863
- onClick: (D2) => O(F)
23865
+ onClick: (D2) => T(F)
23864
23866
  }, {
23865
23867
  default: E(() => [
23866
- K(f0(Tl))
23868
+ K(g0(Tl))
23867
23869
  ]),
23868
23870
  _: 1
23869
23871
  }, 8, ["onClick"])
@@ -23888,7 +23890,7 @@ const Lk = {
23888
23890
  emits: ["update:modelValue", "change"],
23889
23891
  setup(i, { emit: e }) {
23890
23892
  const t = i, n = Q(() => "http://222.92.178.198:62001"), s = e, l = async (c) => {
23891
- var g, v, m, w, O;
23893
+ var g, v, m, w, T;
23892
23894
  const { file: h, onSuccess: d, onError: u } = c, f = new FormData();
23893
23895
  f.append("file", h);
23894
23896
  const p = await C1(f);
@@ -23896,7 +23898,7 @@ const Lk = {
23896
23898
  name: h == null ? void 0 : h.name,
23897
23899
  uid: h == null ? void 0 : h.uid,
23898
23900
  id: (m = (v = p == null ? void 0 : p.data) == null ? void 0 : v.result) == null ? void 0 : m.id,
23899
- url: (O = (w = p == null ? void 0 : p.data) == null ? void 0 : w.result) == null ? void 0 : O.url
23901
+ url: (T = (w = p == null ? void 0 : p.data) == null ? void 0 : w.result) == null ? void 0 : T.url
23900
23902
  }]);
23901
23903
  }, o = R([]);
23902
23904
  q2(() => t == null ? void 0 : t.modelValue, (c) => {
@@ -23932,7 +23934,7 @@ const Lk = {
23932
23934
  default: E(() => [
23933
23935
  K(d, null, {
23934
23936
  default: E(() => [
23935
- K(f0(h4))
23937
+ K(g0(h4))
23936
23938
  ]),
23937
23939
  _: 1
23938
23940
  })
@@ -24332,21 +24334,21 @@ var tD = /* @__PURE__ */ c0({
24332
24334
  throw new Error('No canvas could be found with this "ref" in the template');
24333
24335
  return n.value;
24334
24336
  }), l = Q(() => {
24335
- const y = Array.from(bl(i.images)), T = Array.from(bl(t.cacheImages));
24336
- return [...y, ...T];
24337
+ const y = Array.from(bl(i.images)), O = Array.from(bl(t.cacheImages));
24338
+ return [...y, ...O];
24337
24339
  });
24338
24340
  q2(() => i.options, (y) => {
24339
- Object.keys(y).forEach((T) => {
24340
- Object.prototype.hasOwnProperty.call(t.signaturePad, T) && (t.signaturePad[T] = y[T]);
24341
+ Object.keys(y).forEach((O) => {
24342
+ Object.prototype.hasOwnProperty.call(t.signaturePad, O) && (t.signaturePad[O] = y[O]);
24341
24343
  });
24342
24344
  });
24343
24345
  function o() {
24344
- const y = s.value, T = t.signaturePad.toData(), j = Math.max(window.devicePixelRatio || 1, 1);
24346
+ const y = s.value, O = t.signaturePad.toData(), j = Math.max(window.devicePixelRatio || 1, 1);
24345
24347
  y.width = y.offsetWidth * j, y.height = y.offsetHeight * j;
24346
24348
  const C = y.getContext("2d");
24347
- C && C.scale(j, j), t.signaturePad.clear(), t.signatureData = _l, t.signaturePad.fromData(T);
24349
+ C && C.scale(j, j), t.signaturePad.clear(), t.signatureData = _l, t.signaturePad.fromData(O);
24348
24350
  }
24349
- function r(y = i.saveType, T) {
24351
+ function r(y = i.saveType, O) {
24350
24352
  if (t.signaturePad.isEmpty()) {
24351
24353
  if (i.saveOutput === W0.FILE)
24352
24354
  return {
@@ -24362,7 +24364,7 @@ var tD = /* @__PURE__ */ c0({
24362
24364
  };
24363
24365
  throw new Error(`This saveOutput ${i.saveOutput} is not supported`);
24364
24366
  }
24365
- const j = t.signaturePad.toDataURL(y, T);
24367
+ const j = t.signaturePad.toDataURL(y, O);
24366
24368
  if (t.signatureData.src = j, i.saveOutput === W0.FILE)
24367
24369
  return {
24368
24370
  isEmpty: !1,
@@ -24383,8 +24385,8 @@ var tD = /* @__PURE__ */ c0({
24383
24385
  }
24384
24386
  function c() {
24385
24387
  const y = r();
24386
- let T = null;
24387
- y.output === W0.FILE ? T = y.file : y.output === W0.DATA_URL && (T = y.data), e.emit("input", T);
24388
+ let O = null;
24389
+ y.output === W0.FILE ? O = y.file : y.output === W0.DATA_URL && (O = y.data), e.emit("input", O);
24388
24390
  }
24389
24391
  function h(y) {
24390
24392
  return t.signatureData = y, xl([...i.images, ...t.cacheImages, t.signatureData]);
@@ -24392,14 +24394,14 @@ var tD = /* @__PURE__ */ c0({
24392
24394
  function d(y = []) {
24393
24395
  return t.cacheImages = [...t.cacheImages, ...y], xl([...i.images, ...t.cacheImages, t.signatureData]);
24394
24396
  }
24395
- function u(y, T = {}, j) {
24396
- t.signaturePad.fromDataURL(y, T, j);
24397
+ function u(y, O = {}, j) {
24398
+ t.signaturePad.fromDataURL(y, O, j);
24397
24399
  }
24398
24400
  function f(y) {
24399
24401
  t.signaturePad.fromData(y);
24400
24402
  }
24401
- function p(y = S1.PNG, T) {
24402
- return t.signaturePad.toDataURL(y, T);
24403
+ function p(y = S1.PNG, O) {
24404
+ return t.signaturePad.toDataURL(y, O);
24403
24405
  }
24404
24406
  function g() {
24405
24407
  return t.signaturePad.toData();
@@ -24413,7 +24415,7 @@ var tD = /* @__PURE__ */ c0({
24413
24415
  function w() {
24414
24416
  return t.signaturePad.isEmpty();
24415
24417
  }
24416
- function O() {
24418
+ function T() {
24417
24419
  return l.value;
24418
24420
  }
24419
24421
  function z() {
@@ -24423,11 +24425,11 @@ var tD = /* @__PURE__ */ c0({
24423
24425
  t.signaturePad.clear(), e.emit("input", null);
24424
24426
  }
24425
24427
  return Ge(() => {
24426
- const y = s.value, T = new h6(y, {
24428
+ const y = s.value, O = new h6(y, {
24427
24429
  onEnd: c,
24428
24430
  ...i.options
24429
24431
  });
24430
- t.signaturePad = T, t.onResizeHandler = o, window.addEventListener("resize", t.onResizeHandler, !1), o();
24432
+ t.signaturePad = O, t.onResizeHandler = o, window.addEventListener("resize", t.onResizeHandler, !1), o();
24431
24433
  }), an(() => {
24432
24434
  t.onResizeHandler && window.removeEventListener("resize", t.onResizeHandler, !1);
24433
24435
  }), {
@@ -24449,7 +24451,7 @@ var tD = /* @__PURE__ */ c0({
24449
24451
  lockSignaturePad: v,
24450
24452
  openSignaturePad: m,
24451
24453
  isEmpty: w,
24452
- getPropImagesAndCacheImages: O,
24454
+ getPropImagesAndCacheImages: T,
24453
24455
  clearCacheImages: z,
24454
24456
  clearSignature: M
24455
24457
  };
@@ -24523,9 +24525,9 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24523
24525
  var y;
24524
24526
  return (y = n.value) == null ? void 0 : y.signaturePad;
24525
24527
  }, u = () => {
24526
- var T;
24528
+ var O;
24527
24529
  const y = d();
24528
- return ((T = y == null ? void 0 : y.toData) == null ? void 0 : T.call(y)) ?? [];
24530
+ return ((O = y == null ? void 0 : y.toData) == null ? void 0 : O.call(y)) ?? [];
24529
24531
  }, f = () => {
24530
24532
  var y;
24531
24533
  l.value = ((y = u()) == null ? void 0 : y.length) ?? 0;
@@ -24535,13 +24537,13 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24535
24537
  o.signOptions.penColor = yl, o.signOptions.minWidth = Sl;
24536
24538
  }, v = (y) => {
24537
24539
  var j, C;
24538
- const T = d();
24539
- T && (typeof T.clear == "function" ? T.clear() : typeof ((j = n.value) == null ? void 0 : j.clearSignature) == "function" ? n.value.clearSignature() : typeof ((C = n.value) == null ? void 0 : C.clearCanvas) == "function" && n.value.clearCanvas(), y.length > 0 && typeof T.fromData == "function" && T.fromData(y), f());
24540
+ const O = d();
24541
+ O && (typeof O.clear == "function" ? O.clear() : typeof ((j = n.value) == null ? void 0 : j.clearSignature) == "function" ? n.value.clearSignature() : typeof ((C = n.value) == null ? void 0 : C.clearCanvas) == "function" && n.value.clearCanvas(), y.length > 0 && typeof O.fromData == "function" && O.fromData(y), f());
24540
24542
  }, m = () => {
24541
- var T, j;
24543
+ var O, j;
24542
24544
  if (!a.value) return;
24543
24545
  const y = u();
24544
- if (s.value.push(y), typeof ((T = n.value) == null ? void 0 : T.undoSignature) == "function")
24546
+ if (s.value.push(y), typeof ((O = n.value) == null ? void 0 : O.undoSignature) == "function")
24545
24547
  n.value.undoSignature();
24546
24548
  else if (typeof ((j = n.value) == null ? void 0 : j.undo) == "function")
24547
24549
  n.value.undo();
@@ -24554,10 +24556,10 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24554
24556
  if (!c.value) return;
24555
24557
  const y = s.value.pop();
24556
24558
  v(y ?? []);
24557
- }, O = () => {
24558
- var T, j;
24559
+ }, T = () => {
24560
+ var O, j;
24559
24561
  const y = d();
24560
- typeof (y == null ? void 0 : y.clear) == "function" ? y.clear() : typeof ((T = n.value) == null ? void 0 : T.clearSignature) == "function" ? n.value.clearSignature() : typeof ((j = n.value) == null ? void 0 : j.clearCanvas) == "function" && n.value.clearCanvas(), p();
24562
+ typeof (y == null ? void 0 : y.clear) == "function" ? y.clear() : typeof ((O = n.value) == null ? void 0 : O.clearSignature) == "function" ? n.value.clearSignature() : typeof ((j = n.value) == null ? void 0 : j.clearCanvas) == "function" && n.value.clearCanvas(), p();
24561
24563
  };
24562
24564
  q2(
24563
24565
  () => {
@@ -24566,19 +24568,19 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24566
24568
  },
24567
24569
  (y) => {
24568
24570
  y && (g(), q0(() => {
24569
- var T, j;
24570
- (j = (T = n.value) == null ? void 0 : T.resizeCanvas) == null || j.call(T), p();
24571
+ var O, j;
24572
+ (j = (O = n.value) == null ? void 0 : O.resizeCanvas) == null || j.call(O), p();
24571
24573
  }));
24572
24574
  }
24573
24575
  );
24574
24576
  const z = () => {
24575
- O(), g(), p(), r("beforeDestroy");
24577
+ T(), g(), p(), r("beforeDestroy");
24576
24578
  }, M = () => {
24577
24579
  var j;
24578
- const { isEmpty: y, data: T } = (j = n.value) == null ? void 0 : j.saveSignature();
24579
- r("clickSubmitSign", T);
24580
+ const { isEmpty: y, data: O } = (j = n.value) == null ? void 0 : j.saveSignature();
24581
+ r("clickSubmitSign", O);
24580
24582
  };
24581
- return (y, T) => {
24583
+ return (y, O) => {
24582
24584
  var G, W, N;
24583
24585
  const j = t2("el-input-number"), C = t2("el-color-picker"), $ = t2("el-button");
24584
24586
  return b(), V("div", null, [
@@ -24597,7 +24599,7 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24597
24599
  }, {
24598
24600
  default: E(() => [
24599
24601
  a2("div", lD, [
24600
- K(f0(nD), {
24602
+ K(g0(nD), {
24601
24603
  ref_key: "signaturePadRef",
24602
24604
  ref: n,
24603
24605
  options: h.value,
@@ -24607,10 +24609,10 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24607
24609
  ]),
24608
24610
  a2("div", oD, [
24609
24611
  a2("div", null, [
24610
- T[2] || (T[2] = a2("span", null, "画笔粗细:", -1)),
24612
+ O[2] || (O[2] = a2("span", null, "画笔粗细:", -1)),
24611
24613
  K(j, {
24612
24614
  modelValue: o.signOptions.minWidth,
24613
- "onUpdate:modelValue": T[0] || (T[0] = (e2) => o.signOptions.minWidth = e2),
24615
+ "onUpdate:modelValue": O[0] || (O[0] = (e2) => o.signOptions.minWidth = e2),
24614
24616
  min: 0.5,
24615
24617
  max: 2.5,
24616
24618
  step: 0.1,
@@ -24618,10 +24620,10 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24618
24620
  }, null, 8, ["modelValue"])
24619
24621
  ]),
24620
24622
  a2("div", null, [
24621
- T[3] || (T[3] = a2("span", null, "画笔颜色:", -1)),
24623
+ O[3] || (O[3] = a2("span", null, "画笔颜色:", -1)),
24622
24624
  K(C, {
24623
24625
  modelValue: o.signOptions.penColor,
24624
- "onUpdate:modelValue": T[1] || (T[1] = (e2) => o.signOptions.penColor = e2),
24626
+ "onUpdate:modelValue": O[1] || (O[1] = (e2) => o.signOptions.penColor = e2),
24625
24627
  "color-format": "hex",
24626
24628
  size: "default"
24627
24629
  }, null, 8, ["modelValue"])
@@ -24632,7 +24634,7 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24632
24634
  disabled: !a.value,
24633
24635
  onClick: m
24634
24636
  }, {
24635
- default: E(() => [...T[4] || (T[4] = [
24637
+ default: E(() => [...O[4] || (O[4] = [
24636
24638
  x0("上一步", -1)
24637
24639
  ])]),
24638
24640
  _: 1
@@ -24642,16 +24644,16 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24642
24644
  disabled: !c.value,
24643
24645
  onClick: w
24644
24646
  }, {
24645
- default: E(() => [...T[5] || (T[5] = [
24647
+ default: E(() => [...O[5] || (O[5] = [
24646
24648
  x0("下一步", -1)
24647
24649
  ])]),
24648
24650
  _: 1
24649
24651
  }, 8, ["disabled"]),
24650
24652
  K($, {
24651
24653
  size: "small",
24652
- onClick: O
24654
+ onClick: T
24653
24655
  }, {
24654
- default: E(() => [...T[6] || (T[6] = [
24656
+ default: E(() => [...O[6] || (O[6] = [
24655
24657
  x0("清除", -1)
24656
24658
  ])]),
24657
24659
  _: 1
@@ -24661,7 +24663,7 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24661
24663
  ]),
24662
24664
  footer: E(() => [
24663
24665
  K($, { onClick: z }, {
24664
- default: E(() => [...T[7] || (T[7] = [
24666
+ default: E(() => [...O[7] || (O[7] = [
24665
24667
  x0("取消", -1)
24666
24668
  ])]),
24667
24669
  _: 1
@@ -24670,7 +24672,7 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24670
24672
  type: "primary",
24671
24673
  onClick: M
24672
24674
  }, {
24673
- default: E(() => [...T[8] || (T[8] = [
24675
+ default: E(() => [...O[8] || (O[8] = [
24674
24676
  x0("确认", -1)
24675
24677
  ])]),
24676
24678
  _: 1
@@ -24796,36 +24798,36 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24796
24798
  }), h = (m) => {
24797
24799
  if (!m)
24798
24800
  return [];
24799
- const w = /{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/, O = new RegExp("(?:(" + w.source + "))([\\da-fA-F\\s]+)\\}", "g"), z = m.match(O), M = [];
24801
+ const w = /{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/, T = new RegExp("(?:(" + w.source + "))([\\da-fA-F\\s]+)\\}", "g"), z = m.match(T), M = [];
24800
24802
  if (z)
24801
24803
  for (const y of z) {
24802
- let T = !1;
24803
- y.includes("\\pngblip") ? T = "image/png" : y.includes("\\jpegblip") && (T = "image/jpeg"), T && M.push({
24804
+ let O = !1;
24805
+ y.includes("\\pngblip") ? O = "image/png" : y.includes("\\jpegblip") && (O = "image/jpeg"), O && M.push({
24804
24806
  hex: y.replace(w, "").replace(/[^\da-fA-F]/g, ""),
24805
- type: T
24807
+ type: O
24806
24808
  });
24807
24809
  }
24808
24810
  return M;
24809
24811
  }, d = (m) => btoa(m.match(/\w{2}/g).map((w) => String.fromCharCode(parseInt(w, 16))).join("")), u = (m, w = "file") => {
24810
- let O = m.split(","), z = O[0].match(/:(.*?);/)[1], M = z.split("/")[1], y = atob(O[1]), T = y.length, j = new Uint8Array(T);
24811
- for (; T--; )
24812
- j[T] = y.charCodeAt(T);
24812
+ let T = m.split(","), z = T[0].match(/:(.*?);/)[1], M = z.split("/")[1], y = atob(T[1]), O = y.length, j = new Uint8Array(O);
24813
+ for (; O--; )
24814
+ j[O] = y.charCodeAt(O);
24813
24815
  return new File([j], `${w}.${M}`, {
24814
24816
  type: z
24815
24817
  });
24816
24818
  }, f = async (m, w) => {
24817
- let O = u(m), z = new FormData();
24818
- z.append("file", O), await d4(z).then((M) => {
24819
+ let T = u(m), z = new FormData();
24820
+ z.append("file", T), await d4(z).then((M) => {
24819
24821
  });
24820
24822
  };
24821
24823
  function p() {
24822
24824
  const m = document.createElement("input");
24823
24825
  m.setAttribute("type", "file"), m.setAttribute("accept", ".pdf,.doc,.docx,.xls,.xlsx,.txt"), m.click(), m.onchange = async () => {
24824
- var O;
24826
+ var T;
24825
24827
  const w = m.files[0];
24826
24828
  if (w)
24827
24829
  try {
24828
- const z = await d4({ file: w }), M = (O = z == null ? void 0 : z.data) == null ? void 0 : O.result, y = l.getSelection(!0);
24830
+ const z = await d4({ file: w }), M = (T = z == null ? void 0 : z.data) == null ? void 0 : T.result, y = l.getSelection(!0);
24829
24831
  l.insertText(y.index, `📎 ${w.name}`, "link", M.url), l.setSelection(y.index + w.name.length + 2);
24830
24832
  } catch (z) {
24831
24833
  console.error("上传失败:", z);
@@ -24846,9 +24848,9 @@ const iD = { class: "signature-wrap" }, sD = { class: "signature-types" }, lD =
24846
24848
  }
24847
24849
  m.root.addEventListener("paste", async (w) => {
24848
24850
  o.value = [];
24849
- const O = w.clipboardData.getData("text/rtf");
24850
- if (O && O !== "") {
24851
- const M = h(O).map((C) => d(C.hex));
24851
+ const T = w.clipboardData.getData("text/rtf");
24852
+ if (T && T !== "") {
24853
+ const M = h(T).map((C) => d(C.hex));
24852
24854
  for (let C = 0; C < M.length; C++) {
24853
24855
  let $ = o.value;
24854
24856
  $.push(`data:image/png;base64,${M[C]}`), o.value = $, await f(`data:image/png;base64,${M[C]}`, M.length);
@@ -25198,19 +25200,19 @@ const MD = ["onDblclick"], zD = {
25198
25200
  return [
25199
25201
  v != null && v.label ? (b(), V("div", {
25200
25202
  key: 0,
25201
- onDblclick: (O) => a(v),
25203
+ onDblclick: (T) => a(v),
25202
25204
  class: "normal-label"
25203
25205
  }, E2(v == null ? void 0 : v.label), 41, MD)) : Z("", !0),
25204
25206
  v != null && v.contents && ((w = v == null ? void 0 : v.contents) == null ? void 0 : w.length) > 0 ? (b(), V("div", zD, [
25205
- (b(!0), V(O2, null, V2(v == null ? void 0 : v.contents, (O, z) => (b(), V("div", {
25207
+ (b(!0), V(O2, null, V2(v == null ? void 0 : v.contents, (T, z) => (b(), V("div", {
25206
25208
  key: z,
25207
25209
  class: "tabs-children"
25208
25210
  }, [
25209
- O != null && O.value || (O == null ? void 0 : O.value) === "" ? (b(), q(yt(r(O == null ? void 0 : O.type)), {
25211
+ T != null && T.value || (T == null ? void 0 : T.value) === "" ? (b(), q(yt(r(T == null ? void 0 : T.type)), {
25210
25212
  key: 0,
25211
- modelValue: O.value,
25212
- "onUpdate:modelValue": (M) => O.value = M,
25213
- content: (O == null ? void 0 : O.contents) ?? []
25213
+ modelValue: T.value,
25214
+ "onUpdate:modelValue": (M) => T.value = M,
25215
+ content: (T == null ? void 0 : T.contents) ?? []
25214
25216
  }, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : Z("", !0)
25215
25217
  ]))), 128))
25216
25218
  ])) : Z("", !0),
@@ -25222,8 +25224,8 @@ const MD = ["onDblclick"], zD = {
25222
25224
  tab: v,
25223
25225
  index: m
25224
25226
  }, () => [
25225
- (b(!0), V(O2, null, V2(v == null ? void 0 : v.children, (w, O) => (b(), V("div", {
25226
- key: O,
25227
+ (b(!0), V(O2, null, V2(v == null ? void 0 : v.children, (w, T) => (b(), V("div", {
25228
+ key: T,
25227
25229
  class: "tabs-contents"
25228
25230
  }, [
25229
25231
  P2(u.$slots, `${(w == null ? void 0 : w.value) ?? ""}_operateButtons`, {}, void 0, !0),