@wyltils/ems-editor 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -27763,7 +27763,7 @@ const ${T} = ${Tt};
27763
27763
  }
27764
27764
  a.value = v, console.log(v);
27765
27765
  }, b = () => {
27766
- var v, A, x;
27766
+ var v, A;
27767
27767
  if (((v = d.value.name) == null ? void 0 : v.length) == 0)
27768
27768
  return Wt.error("请选择数据关联!"), !1;
27769
27769
  if (a.value === null)
@@ -27771,13 +27771,13 @@ const ${T} = ${Tt};
27771
27771
  let y = {};
27772
27772
  if (s.value)
27773
27773
  try {
27774
- const E = new Function("data", "$", s.value);
27775
- d.value.type == "opcua" ? y = E({ payload: a.value, pointTemp: n.value.dataSource.point }, r.value) : d.value.type == "http" && (y = E(a.value, r.value)), y.dataSource = { parse: s.value }, t.setData(y), o.value = !1;
27776
- } catch (E) {
27777
- Wt.error("解析失败!"), console.log(E);
27774
+ const x = new Function("data", "$", s.value);
27775
+ d.value.type == "opcua" ? y = x({ payload: a.value, pointTemp: n.value.dataSource.point }, r.value) : d.value.type == "http" && (y = x(a.value, r.value)), y.dataSource = { parse: s.value }, t.setData(y), o.value = !1;
27776
+ } catch (x) {
27777
+ Wt.error("解析失败!"), console.log(x);
27778
27778
  }
27779
27779
  else
27780
- y[d.value.name] = ((x = (A = a.value) == null ? void 0 : A.payload) == null ? void 0 : x.value) || "--", t.setData(y), o.value = !1;
27780
+ y[d.value.name] = ((A = a.value) == null ? void 0 : A.value) || "--", y.dataSource = { parse: null }, t.setData(y), o.value = !1;
27781
27781
  };
27782
27782
  return (y, v) => {
27783
27783
  const A = K("el-option"), x = K("el-select"), E = K("el-form-item"), C = K("el-input"), S = K("el-button"), k = K("el-radio"), I = K("el-radio-group"), R = K("el-table-column"), Q = K("el-table"), Y = K("el-form"), z = K("el-dialog");
@@ -28059,7 +28059,7 @@ const ${T} = ${Tt};
28059
28059
  ]);
28060
28060
  };
28061
28061
  }
28062
- }, KE = /* @__PURE__ */ Rt(UE, [["__scopeId", "data-v-4c27164c"]]), JE = { class: "prop" }, VE = { class: "tabContainer" }, jE = ["onClick"], GE = { class: "activeLine" }, YE = {
28062
+ }, KE = /* @__PURE__ */ Rt(UE, [["__scopeId", "data-v-7768146c"]]), JE = { class: "prop" }, VE = { class: "tabContainer" }, jE = ["onClick"], GE = { class: "activeLine" }, YE = {
28063
28063
  key: 0,
28064
28064
  class: "main"
28065
28065
  }, HE = {
@@ -28459,7 +28459,7 @@ const ${T} = ${Tt};
28459
28459
  const o = ca();
28460
28460
  let r = [];
28461
28461
  const a = (c) => {
28462
- if (!c.cell) return !1;
28462
+ if (console.warn("进入画布数据初始化"), !c.cells) return !1;
28463
28463
  r.length > 0 && (e.unsubscribe(r.map((h) => h.path)), r = []);
28464
28464
  for (let h of c.cell)
28465
28465
  if (h.data && h.data.datasource && h.data.datasource.type !== "none") {
@@ -28532,7 +28532,7 @@ const ${T} = ${Tt};
28532
28532
  M(et(o))
28533
28533
  ]));
28534
28534
  }
28535
- }, ZE = /* @__PURE__ */ Rt($E, [["__scopeId", "data-v-a4b36e35"]]);
28535
+ }, ZE = /* @__PURE__ */ Rt($E, [["__scopeId", "data-v-a3e1da78"]]);
28536
28536
  window._iconfont_svg_string_5087053 = '<svg><symbol id="icon-jiesuo1" viewBox="0 0 1024 1024"><path d="M768.25422 0q48.810328 0 94.061569 18.303873t80.333664 50.33565 56.436941 74.740814 21.354518 91.519364l0 150.49851-123.042701 0 0-122.025819q0-64.063555-36.099305-99.654419t-97.112214-35.590864q-54.911619 0-88.468719 35.590864t-33.5571 99.654419l0 124.059583-128.12711 0 0-152.532274q0-48.810328 19.320755-91.519364t53.386296-74.740814 80.333664-50.33565 101.179742-18.303873zM766.220457 693.513406l0 87.451837 0 47.793446q0 27.455809-9.660377 51.860973t-26.438928 41.692155-39.658391 27.455809-50.33565 10.168818l-514.542205 0q-27.455809 0-49.82721-9.660377t-38.641509-26.438928-24.913605-39.14995-8.643496-47.793446l0-323.368421q0-28.472691 19.829196-47.793446t46.268123-19.320755l629.449851 0q28.472691 0 47.793446 19.320755t19.320755 47.793446l0 179.988083z" ></path></symbol><symbol id="icon-jianlizuhe1" viewBox="0 0 1024 1024"><path d="M891.8 65h-632c-35.5 0-64.4 28.8-64.4 64.4v125.3h-66.3c-35.5 0-64.4 28.8-64.4 64.4v575.6c0 35.5 28.8 64.4 64.4 64.4h572.6c35.5 0 64.4-28.8 64.4-64.4v-65.3h125.6c35.5 0 64.4-28.8 64.4-64.4V129.4c0.1-35.6-28.7-64.4-64.3-64.4zM702.2 894.6v0.1c0 0.1-0.2 0.2-0.2 0.2H129.1c-0.1 0-0.2-0.2-0.2-0.2V319v-0.1c0-0.1 0.2-0.2 0.2-0.2h0.1l66.3 0.1S194 794.1 194 797.4c0 17.7 14.3 32 32 32h476.2v65.2zM259.5 129.2c0-0.1 0.2-0.2 0.2-0.2h632.2c0.1 0 0.2 0.2 0.2 0.2V765.1c0 0.1-0.2 0.2-0.2 0.2H259.5V129.2z" ></path></symbol><symbol id="icon-suoding1" viewBox="0 0 1024 1024"><path d="M860.069521 429.487623h-73.242947v-170.422692C786.826574 116.337371 670.888872 0.272064 528.240764 0.272064c-142.650515 0-258.720638 116.065307-258.720638 258.792867v170.422692H196.339779c-35.281619 0-63.879618 28.612445-63.879618 63.91814v466.606275c0 35.368294 28.597999 63.983146 63.879618 63.983147h663.79234c35.29125 0 63.821834-28.614852 63.821835-63.983147V493.405763c-0.004815-35.310511-28.590776-63.91814-63.884433-63.91814zM564.114664 738.867504v101.889098c0 4.552855-3.765556 8.388233-8.385825 8.388233h-54.91355c-4.678053 0-8.446016-3.837785-8.446017-8.388233v-101.889098c-25.800316-13.201114-43.672259-39.665939-43.672259-70.68362 0-43.888947 35.613874-79.584681 79.481153-79.584682 43.932285 0 79.548567 35.695734 79.548566 79.584682 0.062599 31.020089-17.811752 57.482507-43.612068 70.68362z m123.476036-309.379881H368.883605v-166.202091c0-87.912723 71.55278-159.501618 159.417351-159.501618s159.287337 71.588895 159.287337 159.501618l0.002407 166.202091z" ></path></symbol><symbol id="icon-xingzhuang-juxing" viewBox="0 0 1024 1024"><path d="M864 896H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h704a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zM192 832h640V192H192v640z" ></path></symbol><symbol id="icon-shuzhi" viewBox="0 0 1024 1024"><path d="M921.6 21.162667H102.4c-37.546667 0-68.266667 30.788267-68.266667 68.4032v819.950933c0 37.546667 30.72 68.334933 68.266667 68.334933h819.2c37.546667 0 68.266667-30.72 68.266667-68.266666V89.4976c0-37.546667-30.72-68.334933-68.266667-68.334933z m0 854.2208c0 20.48-13.653333 34.133333-34.133333 34.133333h-750.933334c-20.48 0-34.133333-13.653333-34.133333-34.133333V123.767467c0-20.548267 13.653333-34.2016 34.133333-34.2016h750.933334c20.48 0 34.133333 13.653333 34.133333 34.133333v751.616z" ></path><path d="M274.568533 365.704533h36.0448V658.090667h-47.9232V423.458133a165.546667 165.546667 0 0 1-66.7648 35.6352v-47.5136c13.1072-3.2768 27.0336-9.0112 41.7792-17.2032 14.7456-9.0112 27.0336-18.432 36.864-28.672z m200.2944-5.7344c28.2624 0 51.6096 8.192 70.0416 24.576 18.0224 16.384 27.0336 37.2736 27.0336 63.488 0 25.3952-9.8304 48.3328-28.672 69.2224-11.4688 12.288-31.9488 27.8528-60.6208 47.104-29.9008 19.6608-47.9232 36.864-54.4768 51.6096h144.1792v42.1888H368.366933c0-29.9008 9.4208-55.7056 29.0816-77.824 10.6496-12.288 33.1776-30.3104 67.1744-53.6576 18.8416-13.1072 31.9488-24.1664 40.1408-32.768 12.6976-14.336 19.2512-29.9008 19.2512-46.2848 0-15.9744-4.5056-27.8528-12.6976-35.6352-8.6016-7.7824-21.2992-11.4688-38.0928-11.4688-18.0224 0-31.5392 6.144-40.5504 18.432-9.0112 11.4688-13.9264 29.0816-14.7456 52.0192H370.005333c0.4096-32.768 9.8304-58.9824 28.672-79.0528 19.2512-21.2992 44.6464-31.9488 76.1856-31.9488z m244.1216 0c29.4912 0 53.6576 6.9632 71.68 21.2992 17.6128 14.336 26.624 33.9968 26.624 59.392 0 31.9488-16.384 53.248-48.7424 63.8976 17.2032 5.3248 30.72 13.1072 39.7312 23.7568a61.986133 61.986133 0 0 1 14.7456 42.5984c0 27.0336-9.4208 49.152-28.2624 66.3552-19.6608 17.6128-45.4656 26.624-77.4144 26.624-30.3104 0-54.8864-7.7824-73.3184-23.3472-20.48-17.2032-31.9488-42.5984-34.4064-75.3664h48.7424c0.8192 18.8416 6.5536 33.5872 18.0224 43.8272 10.24 9.4208 23.7568 14.336 40.5504 14.336 18.432 0 33.1776-5.3248 43.8272-15.5648a47.240533 47.240533 0 0 0 14.336-34.816c0-16.7936-5.3248-29.0816-15.1552-36.864-9.8304-8.192-24.1664-11.8784-43.008-11.8784h-20.48V488.106667h20.48c17.2032 0 30.3104-3.6864 39.3216-11.0592 8.6016-7.3728 13.1072-18.432 13.1072-32.768 0-14.336-4.096-24.9856-11.8784-32.3584-8.6016-7.3728-21.2992-11.0592-38.0928-11.0592-17.2032 0-30.3104 4.096-39.7312 12.6976-9.8304 8.6016-15.5648 21.7088-17.2032 39.3216h-47.104c2.4576-29.4912 13.1072-52.4288 32.768-68.8128 18.432-16.384 42.1888-24.1664 70.8608-24.1664z" ></path></symbol><symbol id="icon-xianduan" viewBox="0 0 1024 1024"><path d="M0.034239 975.503207L976.222236 0l48.400922 48.435162L48.435162 1023.945217z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M512.122 272.146c-247.216 0-412.027 247.216-412.027 247.216s164.811 247.216 412.027 247.216c247.216 0 412.027-247.216 412.027-247.216S759.217 272.146 512.122 272.146z m0 410.207c-90.537 0-163.962-73.424-163.962-163.962s73.424-163.962 163.962-163.962c90.537 0 163.962 73.424 163.962 163.962-0.122 90.658-73.424 163.962-163.962 163.962z m-82.406-163.476c0 21.482 8.86 42.841 24.03 58.012s36.53 24.03 58.012 24.03 42.841-8.86 58.012-24.03c15.17-15.17 24.03-36.53 24.03-58.012s-8.86-42.841-24.03-58.012c-15.17-15.17-36.53-24.03-58.012-24.03s-42.841 8.86-58.012 24.03c-15.17 15.292-24.03 36.53-24.03 58.012z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M437.996 697.519V586.722H327.195c-61.187 0-110.797 49.61-110.797 110.797 0 61.195 49.61 110.797 110.797 110.797 61.192 0 110.801-49.602 110.801-110.797z m55.399 0c0 91.789-74.411 166.195-166.2 166.195C235.41 863.714 161 789.308 161 697.519c0-91.789 74.41-166.195 166.195-166.195h166.2v166.195z m92.328 0V586.722H696.52c61.195 0 110.796 49.61 110.796 110.797 0 61.195-49.601 110.797-110.796 110.797-61.188 0-110.797-49.602-110.797-110.797z m-55.399 0c0 91.789 74.41 166.195 166.196 166.195 91.789 0 166.199-74.406 166.199-166.195 0-91.789-74.41-166.195-166.199-166.195H530.324v166.195z m-92.328-369.324v110.801H327.195c-61.187 0-110.797-49.61-110.797-110.801 0-61.188 49.61-110.797 110.797-110.797 61.192 0 110.801 49.609 110.801 110.797z m55.399 0c0-91.785-74.411-166.195-166.2-166.195C235.41 162 161 236.41 161 328.195c0 91.789 74.41 166.199 166.195 166.199h166.2V328.195z m92.328 0v110.801H696.52c61.195 0 110.796-49.61 110.796-110.801 0-61.188-49.601-110.797-110.796-110.797-61.188 0-110.797 49.609-110.797 110.797z m-55.399 0C530.324 236.41 604.734 162 696.52 162c91.789 0 166.199 74.41 166.199 166.195 0 91.789-74.41 166.199-166.199 166.199H530.324V328.195z m0 0" ></path></symbol><symbol id="icon-tupian" viewBox="0 0 1024 1024"><path d="M335.36 440.32c38.4 0 71.68-30.72 71.68-71.68 0-38.4-30.72-71.68-71.68-71.68-38.4 0-71.68 30.72-71.68 71.68 2.56 40.96 33.28 71.68 71.68 71.68z m0 0M652.8 396.8L445.44 691.2 337.92 540.16 158.72 793.6h704L652.8 396.8z m0 0" ></path><path d="M934.4 107.52H89.6c-20.48 0-35.84 15.36-35.84 35.84V883.2c0 20.48 15.36 35.84 35.84 35.84h844.8c20.48 0 35.84-15.36 35.84-35.84V143.36c0-20.48-15.36-35.84-35.84-35.84z m-35.84 739.84H125.44V176.64h775.68v670.72h-2.56z m0 0" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M64.1 66v303.7l39.5-1.3c13.6-110.8 102.6-186.4 153.2-199 50.7-12.6 148.3 1.1 148.3 1.1s-1.3 625.2-1.3 669.2c0 44.1-59.3 63-59.3 63l-79 1.3-1.2 55.4h493.1v-54.1h-90.2c-40.8-3.8-65.4-56.7-65.4-56.7l1.1-684.5s61.8-11.3 150.8 5.1c89 16.4 164.3 204.1 164.3 204.1h39.5V66H64.1z" ></path></symbol><symbol id="icon-xinjian" viewBox="0 0 1024 1024"><path d="M618 958.5H202c-44.8 0-81.3-34.1-81.3-76v-740c0-41.9 36.5-76 81.3-76h610.5c44.8 0 81.3 34.1 81.3 76v521.9c0 12.8-10.4 23.1-23.1 23.1s-23.1-10.4-23.1-23.1V142.5c0-16.4-15.7-29.7-35-29.7H202c-19.3 0-35 13.3-35 29.7v740c0 16.4 15.7 29.7 35 29.7h416c12.8 0 23.1 10.4 23.1 23.1 0.1 12.8-10.3 23.2-23.1 23.2z" ></path><path d="M738.4 360.5H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h462.5c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1zM584.3 595.1H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h308.3c12.8 0 23.1 10.4 23.1 23.1 0 12.7-10.3 23.1-23.1 23.1zM878.8 826.3H614.6c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h264.3c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1z" ></path><path d="M746.7 958.5c-12.8 0-23.1-10.4-23.1-23.1V671.1c0-12.8 10.4-23.1 23.1-23.1 12.8 0 23.1 10.4 23.1 23.1v264.3c0 12.7-10.3 23.1-23.1 23.1z" ></path></symbol><symbol id="icon-qingkong" viewBox="0 0 1024 1024"><path d="M274.56 798.997333l19.434667-25.130666-33.792 68.565333a18.133333 18.133333 0 0 0 11.562666 25.536l59.733334 16a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.818667 35.626667-35.989333 45.290666-48.469333l19.456-25.130667-33.813333 68.565333a18.133333 18.133333 0 0 0 11.562667 25.536l84.48 22.634667a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-35.989333 45.269333-48.469333l19.456-25.130667-33.813333 68.565333A18.133333 18.133333 0 0 0 535.530667 938.666667l72.106666 19.328a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-36.010667 45.269334-48.490667l19.456-25.130667-33.813334 68.586667a18.133333 18.133333 0 0 0 11.584 25.514667l86.421334 23.338666 3.84-0.213333c13.269333-0.704 29.056-5.034667 43.84-12.8 29.781333-15.701333 48.170667-43.2 52.181333-78.250667 2.133333-18.517333 4.778667-38.549333 8.405333-63.530666 1.642667-11.221333 2.944-20.010667 6.229334-41.834667 11.050667-73.322667 14.634667-101.034667 17.130666-133.674667l0.938667-12.373333 2.837333-2.922667 12.330667-1.344a41.813333 41.813333 0 0 0 24.810667-11.221333c10.730667-10.24 14.805333-25.386667 11.093333-42.197333l-37.546667-171.584c-3.029333-13.696-11.264-27.946667-23.146666-39.829334-11.648-11.626667-25.92-20.138667-39.893334-23.893333L723.626667 331.306667l-2.261334-3.925334L774.250667 130.133333c8.32-31.061333-11.754667-63.744-44.970667-72.64l-79.509333-21.312c-33.194667-8.896-66.922667 9.365333-75.264 40.426667l-52.842667 197.269333-3.925333 2.261334-118.101334-31.637334c-13.994667-3.754667-30.634667-3.498667-46.506666 0.746667-16.256 4.352-30.506667 12.586667-39.957334 22.933333l-118.314666 129.792c-11.605333 12.714667-15.658667 27.84-11.52 42.090667 4.16 14.229333 15.850667 25.194667 32.896 30.528l13.610666 4.266667 2.133334 3.882666-3.626667 13.802667c-21.12 79.850667-52.885333 136.917333-85.717333 150.890667-47.530667 20.202667-72.938667 49.429333-78.421334 85.034666-5.034667 32.682667 9.28 67.114667 37.589334 91.541334l22.037333 8.341333 74.666667 20.010667a42.666667 42.666667 0 0 0 41.216-11.050667c15.274667-15.274667 26.88-28.032 34.837333-38.293333z m551.381333-396.565333c14.144 3.797333 29.952 19.2 32.768 32l34.56 157.781333a10.666667 10.666667 0 0 1-13.184 12.586667L240.64 433.493333a10.666667 10.666667 0 0 1-5.12-17.493333l108.8-119.36c8.832-9.685333 30.229333-15.146667 44.373333-11.349333l141.333334 37.866666a21.333333 21.333333 0 0 0 26.133333-15.082666l58.304-217.642667a21.333333 21.333333 0 0 1 26.133333-15.082667l77.056 20.650667a21.333333 21.333333 0 0 1 15.082667 26.133333l-58.325333 217.642667a21.333333 21.333333 0 0 0 15.082666 26.112l136.448 36.565333zM315.456 701.568c-33.664 45.141333-64.597333 79.082667-92.8 101.802667l-5.909333 4.778666-2.837334 0.597334-88.106666-24.106667-2.922667-3.2c-13.034667-14.165333-19.370667-31.04-16.981333-46.592 3.285333-21.333333 22.058667-39.338667 53.205333-52.586667 31.722667-13.482667 59.818667-47.104 82.922667-99.904 10.026667-22.954667 18.88-48.725333 26.389333-76.586666l3.882667-14.4 3.904-2.261334 566.165333 151.701334 2.346667 3.306666-0.789334 12.224c-1.984 30.592-30.336 229.397333-32.128 244.906667-2.346667 20.416-11.306667 34.986667-27.605333 44.394667a73.237333 73.237333 0 0 1-21.397333 8.106666l-5.013334 0.725334-60.373333-16.170667 11.242667-20.288c8.277333-14.976 22.656-43.84 43.093333-86.613333a21.12 21.12 0 0 0-9.962667-28.16l-3.136-1.493334a21.333333 21.333333 0 0 0-26.261333 6.485334c-33.642667 45.056-64.533333 78.912-92.672 101.546666l-5.909333 4.757334-2.837334 0.597333-52.544-14.08 11.114667-20.266667c3.562667-6.485333 7.04-13.013333 10.453333-19.626666 7.04-13.504 17.898667-35.797333 32.597334-66.816a21.290667 21.290667 0 0 0-9.984-28.309334l-3.029334-1.450666a21.333333 21.333333 0 0 0-26.368 6.442666c-33.6 45.013333-64.469333 78.826667-92.608 101.482667l-5.909333 4.757333-2.837333 0.597334-52.138667-13.973334 11.114667-20.266666c3.242667-5.888 6.72-12.416 10.453333-19.626667 6.997333-13.461333 17.962667-35.946667 32.896-67.434667a20.970667 20.970667 0 0 0-10.112-28.010666l-3.328-1.536a21.333333 21.333333 0 0 0-26.069333 6.613333c-33.642667 45.056-64.554667 78.976-92.778667 101.696l-5.909333 4.757333-2.837334 0.597334-32.64-8.746667 11.093334-20.245333c3.541333-6.506667 7.04-13.034667 10.453333-19.626667 6.976-13.482667 17.941333-35.968 32.874667-67.456a21.056 21.056 0 0 0-10.069334-28.074667l-3.242666-1.514666a21.333333 21.333333 0 0 0-26.154667 6.549333z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M202.666667 256h-42.666667a32 32 0 0 1 0-64h704a32 32 0 0 1 0 64H266.666667v565.333333a53.333333 53.333333 0 0 0 53.333333 53.333334h384a53.333333 53.333333 0 0 0 53.333333-53.333334V352a32 32 0 0 1 64 0v469.333333c0 64.8-52.533333 117.333333-117.333333 117.333334H320c-64.8 0-117.333333-52.533333-117.333333-117.333334V256z m224-106.666667a32 32 0 0 1 0-64h170.666666a32 32 0 0 1 0 64H426.666667z m-32 288a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z m170.666666 0a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z" ></path></symbol><symbol id="icon-jia" viewBox="0 0 1024 1024"><path d="M580.722174 437.990403 580.722174 78.171384 436.794158 78.171384 436.794158 437.990403 76.975139 437.990403 76.975139 581.918419 436.794158 581.918419 436.794158 941.737438 580.722174 941.737438 580.722174 581.918419 940.542216 581.918419 940.542216 437.990403Z" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M814.805 128a51.179 51.179 0 0 1 51.179 51.179V844.01a51.179 51.179 0 0 1-51.179 51.157H201.173a51.179 51.179 0 0 1-51.178-51.157V179.179A51.179 51.179 0 0 1 201.173 128h613.654zM329.024 434.837a51.093 51.093 0 0 1-51.179-51.093V179.157h-76.672v664.854h613.76V179.179H738.22v204.48a51.179 51.179 0 0 1-51.179 51.178H329.024z m0-51.093h357.995V179.157H329.024v204.587z m357.91 204.501a25.557 25.557 0 1 1 0.085 51.072H329.024a25.536 25.536 0 1 1 0-51.072h357.91z" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M293.632 645.248c91.456-86.784 183.552-220.544 346.88-211.584a20.8 20.8 0 0 1 20.224 20.8v59.392a21.376 21.376 0 0 0 34.432 16.64l211.2-171.2a21.376 21.376 0 0 0 0-33.28l-210.24-192a21.952 21.952 0 0 0-35.648 16.64v60.096a20.8 20.8 0 0 1-17.856 20.8c-280.704 61.76-351.36 391.104-348.992 413.696zM192 960a138.176 138.176 0 0 1-129.984-152.512L64 832V192a116.48 116.48 0 0 1 128-128c-108.8 1.024 256 0 256 0a28.224 28.224 0 0 1 29.76 27.84A35.968 35.968 0 0 1 448 128H192a53.12 53.12 0 0 0-64 64c1.536-37.504 0 640 0 640a52.8 52.8 0 0 0 64 64c49.536-0.448 640 0 640 0a52.48 52.48 0 0 0 64-64c-0.64 105.152 0-256 0-256a36.48 36.48 0 0 1 27.264-38.4A33.216 33.216 0 0 1 960 576v256a116.48 116.48 0 0 1-128 128c-50.56-0.448-640 0-640 0z" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M512 384a42.666667 42.666667 0 0 1 42.666667 42.666667v341.333333h130.986666a21.333333 21.333333 0 0 1 14.250667 5.504l2.688 2.901333a21.333333 21.333333 0 0 1-4.010667 29.866667l-165.717333 126.464a32 32 0 0 1-38.912-0.042667l-164.48-126.464A21.333333 21.333333 0 0 1 342.442667 768H469.333333v-341.333333a42.666667 42.666667 0 0 1 42.666667-42.666667z m229.674667 298.368A42.666667 42.666667 0 0 1 746.666667 597.333333H853.333333V170.666667H170.666667v426.666666h106.666666a42.666667 42.666667 0 0 1 0 85.333334H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333334V170.666667a85.333333 85.333333 0 0 1 85.333334-85.333334h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333334v426.666666a85.333333 85.333333 0 0 1-85.333334 85.333334h-106.666666z" ></path></symbol><symbol id="icon-huanyuan" viewBox="0 0 1024 1024"><path d="M909.637 478.524c-15.444-189.946-167.065-345.049-356.655-364.38-99.805-10.176-193.011 16.474-267.901 67.887l18.467-68.842c5.725-21.337-6.933-43.274-28.27-48.998s-43.274 6.934-48.998 28.271l-41.455 154.536c-5.724 21.337 6.933 43.273 28.271 48.998l154.536 41.455c21.337 5.724 43.273-6.934 48.998-28.271 5.724-21.337-6.934-43.274-28.271-48.998l-54.194-14.538c58.917-39.301 131.457-59.686 208.999-52.061 147.885 14.543 268.327 132.461 285.589 280.053 23.02 196.82-133.879 363.973-327.45 358.219-135.107-4.017-252.98-96.111-294.938-224.602-17.513-53.632-18.92-105.027-9.92-152.849 3.188-16.946-4.238-34.086-19.172-42.707l-0.049-0.028c-23.737-13.705-54.358-0.164-59.404 26.777-7.724 41.233-9.128 84.686-2.965 129.403 25.571 185.535 181.03 330.336 367.878 343.176C727.656 927.857 929.6 724.049 909.637 478.524z" ></path></symbol><symbol id="icon-menu-fold" viewBox="0 0 1024 1024"><path d="M85.312 170.688h853.376V256H85.312V170.688z m0 179.328L266.752 512l-181.44 162.048V349.952zM384 469.312h554.688v85.376H384V469.248zM85.312 768h853.376v85.312H85.312V768z" ></path></symbol><symbol id="icon-icon_image" viewBox="0 0 1024 1024"><path d="M85.333333 852.992V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h768a42.666667 42.666667 0 0 1 42.666667 42.666666v640a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-0.341333z m768-157.610667V256H170.666667v493.994667l127.744-127.744a42.666667 42.666667 0 0 1 47.018666-9.045334l126.293334 54.314667 184.789333-146.346667a42.666667 42.666667 0 0 1 59.52 6.485334L853.333333 695.381333zM837.418667 810.666667l-160.853334-196.48-171.818666 136.021333a42.666667 42.666667 0 0 1-43.349334 5.76l-123.093333-52.906667L230.656 810.666667h606.762667zM341.333333 512a85.333333 85.333333 0 1 1 0-170.666667 85.333333 85.333333 0 0 1 0 170.666667z" ></path></symbol><symbol id="icon-icon_chart" viewBox="0 0 1024 1024"><path d="M128 864V128H96v768h896v-32H128z" ></path><path d="M225.6 352h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V385.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M417.6 128h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V161.6A33.6 33.6 0 0 1 417.6 128z" ></path><path d="M609.6 544h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V577.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M801.6 704h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128v-62.4a33.6 33.6 0 0 1 33.6-33.6z" ></path></symbol><symbol id="icon-jichukongjian" viewBox="0 0 1024 1024"><path d="M912 662.016l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 662.016c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.84 271.872 163.072c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.872-163.136 59.712 35.84c19.456 11.712 19.456 30.592 0 42.24z" ></path><path d="M912 501.12l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 501.12c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.904 271.872 163.136c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.936-163.2 59.712 35.904c19.392 11.712 19.392 30.656 0 42.24z" ></path><path d="M912 340.224L559.744 551.68c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 340.224c-19.456-11.584-19.456-30.592 0-42.24l352.32-211.456c9.728-5.76 22.528-8.704 35.2-8.704 12.736 0 25.472 2.88 35.2 8.704l352.32 211.456c19.456 11.648 19.456 30.656 0 42.24z" ></path></symbol><symbol id="icon-icon-relativity" viewBox="0 0 1024 1024"><path d="M352 352v-192a64 64 0 0 1 64-64h448a64 64 0 0 1 64 64v448a64 64 0 0 1-64 64h-192v192a64 64 0 0 1-64 64h-448a64 64 0 0 1-64-64v-448a64 64 0 0 1 64-64h192z m64-192v192h192a64 64 0 0 1 64 64v192h192v-448h-448z m192 512h-192a64 64 0 0 1-64-64v-192h-192v448h448v-192z m0-64v-192h-192v192h192z" ></path></symbol><symbol id="icon-root-list" viewBox="0 0 1024 1024"><path d="M85.333333 85.333333h853.333334v853.333334H85.333333V85.333333z m85.333334 85.333334v682.666666h682.666666V170.666667H170.666667z m85.333333 149.333333h512v85.333333H256v-85.333333z m0 170.666667h341.333333v85.333333H256v-85.333333z" ></path></symbol><symbol id="icon-control-platform" viewBox="0 0 1024 1024"><path d="M512 36.48l426.688 237.056v476.928L512 987.456l-426.688-236.992V273.536L512 36.544zM170.688 379.52v320.704l298.624 165.952V537.6l-298.624-158.08z m384 486.656l298.624-165.952v-320.64L554.688 537.6v328.512zM512 463.744l303.744-160.832L512 134.144 208.256 302.912 512 463.744z" ></path></symbol><symbol id="icon-icon-yonghu" viewBox="0 0 1024 1024"><path d="M511.744 96a253.184 253.184 0 0 1 252.8 252.928c0 91.904-49.216 172.544-122.688 216.832 146.24 50.24 253.632 181.824 253.632 331.584a32 32 0 0 1-64 0c0-156.864-146.432-289.408-319.744-289.408C338.432 607.936 192 740.48 192 897.344a32 32 0 0 1-64 0c0-149.76 107.328-281.28 253.568-331.648a252.992 252.992 0 0 1-122.752-216.768A253.184 253.184 0 0 1 511.744 96z m0 64a189.12 189.12 0 0 0-188.928 188.928 189.12 189.12 0 0 0 188.928 188.928 189.12 189.12 0 0 0 188.8-188.928A189.12 189.12 0 0 0 511.808 160z" ></path></symbol><symbol id="icon-a-shezhi" viewBox="0 0 1024 1024"><path d="M933.868272 511.691752a140.807706 140.807706 0 0 1 90.131728-131.067068 525.562914 525.562914 0 0 0-57.334136-138.64997 139.882962 139.882962 0 0 1-184.948826-184.948826A525.562914 525.562914 0 0 0 643.067068 0a140.376159 140.376159 0 0 1-262.134136 0A525.562914 525.562914 0 0 0 242.282962 57.334136a139.882962 139.882962 0 0 1-184.948826 184.948826A506.698134 506.698134 0 0 0 0 380.932932a140.376159 140.376159 0 0 1 0 262.134136 525.562914 525.562914 0 0 0 57.334136 138.64997 139.882962 139.882962 0 0 1 184.948826 184.948826 525.562914 525.562914 0 0 0 138.64997 57.334136 140.376159 140.376159 0 0 1 262.134136 0 525.562914 525.562914 0 0 0 138.64997-57.334136 139.882962 139.882962 0 0 1 184.948826-184.948826 506.698134 506.698134 0 0 0 57.334136-138.64997A140.807706 140.807706 0 0 1 933.868272 511.691752zM511.691752 652.437809A140.437809 140.437809 0 1 1 652.437809 511.691752 140.499458 140.499458 0 0 1 511.691752 652.437809z" ></path></symbol></svg>', ((i) => {
28537
28537
  var t = (e = (e = document.getElementsByTagName("script"))[e.length - 1]).getAttribute("data-injectcss"), e = e.getAttribute("data-disable-injectsvg");
28538
28538
  if (!e) {
package/dist/index.umd.js CHANGED
@@ -837,4 +837,4 @@ a.length = a.length - 1
837
837
  return {"text": a.find(i => i.value == value)?.label || '--'}`)},y=d.computed(()=>e.modelValue||{}),w=d.computed(()=>e.globals||{}),C=d.computed(()=>{if(!g.value)return"selected";const T=g.value.split(".").filter(Boolean);return T[T.length-1]||"selected"}),x=(T,L)=>(Array.isArray(L)?L:String(L||"").split(".")).filter(Z=>Z!=="").reduce((Z,Et)=>{if(Z==null)return;const he=Number(Et);return!Number.isNaN(he)&&String(he)===String(Et)?Z[he]:Z[Et]},T),E=()=>{if(f.value="",!a)return"";try{return new Function("data","$",a.getValue())(y.value,w.value)}catch(T){return f.value=T.message,""}},S=T=>{try{return JSON.stringify(T??{},null,2)}catch{return""}},v=()=>{m.value.visible=!1},M=()=>{u.value.visible=!1},k=()=>{var T;if(!((T=m.value.pathParts)!=null&&T.length)){v();return}g.value=m.value.path,j(C.value,m.value.pathParts),v()},I=(T,L=!1)=>{var Et;if(!T&&T!==0)return;const _=String(T),Z=()=>{!O(_)&&L&&R(_)};(Et=navigator==null?void 0:navigator.clipboard)!=null&&Et.writeText?navigator.clipboard.writeText(_).catch(()=>{Z()}).finally(()=>{L&&R(_)}):(Z(),L&&R(_))},O=T=>{try{const L=document.createElement("textarea");L.value=T,document.body.appendChild(L),L.select();const _=document.execCommand("copy");return document.body.removeChild(L),_}catch{return!1}},R=T=>{if(!a)return;const L=a.getModel();if(!L)return;const _=a.getPosition();L.pushEditOperations([],[{range:new Qt.Range(_.lineNumber,_.column,_.lineNumber,_.column),text:T,forceMoveMarkers:!0}],()=>null),a.focus()},K=()=>{if(!m.value.key)return v();I(m.value.key,!0),v()},D=()=>{if(m.value.value===void 0)return v();const T=typeof m.value.value=="object"?JSON.stringify(m.value.value):m.value.value;I(T,!0),v()},N=()=>{if(!m.value.path)return v();const T=m.value.path.startsWith("data.")?m.value.path:`data.${m.value.path}`;I(T,!0),v()},j=(T,L)=>{if(!a)return;const _=a.getModel();if(!_)return;const Z=a.getPosition(),Et=H(L),he=`
838
838
  // ${Et}
839
839
  const ${T} = ${Et};
840
- `;_.pushEditOperations([],[{range:new Qt.Range(Z.lineNumber,Z.column,Z.lineNumber,Z.column),text:he,forceMoveMarkers:!0}],()=>null),a.focus()},rt=T=>{var Qd,Vd;if(!l)return;const L=l.getModel();if(!L)return;const _=((Qd=T.target)==null?void 0:Qd.position)||T.position;if(!_)return;const Z=L.getOffsetAt(_),Et=L.getValue(),Ue=Fv(Et,Z).path||[];if(!Ue.length)return;const Ld=it(Ue),Js=x(y.value,Ue),uE=Ue.length?String(Ue[Ue.length-1]):"",js=(Vd=s.value)==null?void 0:Vd.getBoundingClientRect();m.value={visible:!0,x:js?T.event.browserEvent.clientX-js.left:0,y:js?T.event.browserEvent.clientY-js.top:0,path:Ld,pathParts:Ue,key:uE,value:Js}},Ct=T=>{var _;T.event.preventDefault(),T.event.stopPropagation();const L=(_=s.value)==null?void 0:_.getBoundingClientRect();u.value={visible:!0,x:L?T.event.browserEvent.clientX-L.left:0,y:L?T.event.browserEvent.clientY-L.top:0}},pt=async()=>{if(!a)return M();const T=a.getModel().getValueInRange(a.getSelection());if(!T)return M();try{await navigator.clipboard.writeText(T)}catch{}M()},ct=async()=>{if(!a)return M();const T=a.getSelection(),L=a.getModel().getValueInRange(T);if(!L)return M();try{await navigator.clipboard.writeText(L),a.executeEdits("custom-cut",[{range:T,text:"",forceMoveMarkers:!0}])}catch{}M()},V=async()=>{if(!a)return M();try{const T=await navigator.clipboard.readText();if(!T)return M();a.executeEdits("custom-paste",[{range:a.getSelection(),text:T,forceMoveMarkers:!0}])}catch{}M()},tt=async()=>{if(!a)return M();try{const T=a.getAction("editor.action.formatDocument");T&&await T.run()}catch{}M()},it=T=>["data",...Array.isArray(T)?T:String(T||"").split(".").filter(Boolean)].map(_=>String(_)).join("."),H=T=>["data",...Array.isArray(T)?T:String(T||"").split(".").filter(Boolean)].map((_,Z)=>{if(Z===0)return"data";const Et=Number(_);return!Number.isNaN(Et)&&String(Et)===String(_)?`[${Et}]`:`.${_}`}).join(""),st=()=>{n("close")};d.onMounted(()=>{a=Qt.editor.create(o.value,{value:e.rule||jv,language:"javascript",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:14}),a.updateOptions({contextmenu:!1}),a.onContextMenu(T=>Ct(T)),a.onMouseDown(()=>M()),a.onKeyDown(()=>M()),h=a.addAction({id:"custom-paste",label:"粘贴",contextMenuGroupId:"9_cutcopypaste",run:async T=>{try{const L=await navigator.clipboard.readText();if(!L)return;T.executeEdits("custom-paste",[{range:T.getSelection(),text:L,forceMoveMarkers:!0}])}catch(L){console.warn("Clipboard read blocked",L)}}}),c=Qt.languages.registerCompletionItemProvider("javascript",{triggerCharacters:["$","."],provideCompletionItems(T,L){const Z=T.getValueInRange(new Qt.Range(L.lineNumber,1,L.lineNumber,L.column)).match(/\$\.[\w$]*$/);if(!Z)return{suggestions:[]};const Et=Z[0].split(".").pop()||"",he=new Qt.Range(L.lineNumber,L.column-Et.length,L.lineNumber,L.column);return{suggestions:Object.keys(w.value||{}).map(Js=>({label:Js,kind:Qt.languages.CompletionItemKind.Variable,insertText:Js,range:he}))}}}),l=Qt.editor.create(r.value,{value:S(y.value),language:"json",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:13,readOnly:!0,contextmenu:!1}),l.onContextMenu(T=>{T.event.preventDefault(),T.event.stopPropagation(),rt(T)}),a.updateOptions({contextmenu:!1}),a.onContextMenu(T=>{Ct(T)}),a.addCommand(Qt.KeyMod.CtrlCmd|Qt.KeyCode.KeyC,()=>pt()),a.addCommand(Qt.KeyMod.CtrlCmd|Qt.KeyCode.KeyX,()=>ct()),a.addCommand(Qt.KeyMod.CtrlCmd|Qt.KeyCode.KeyV,()=>V()),a.onDidChangeModelContent(()=>{try{const T=a.getValue();n("update:rule",T)}catch{}}),document.addEventListener("click",v),document.addEventListener("click",M),mt()}),d.watch(()=>e.rule,T=>{if(!a)return;const L=T||"";a.getValue()!==L&&a.setValue(L)}),d.watch(y,T=>{l&&l.setValue(S(T)),mt()}),d.onBeforeUnmount(()=>{a==null||a.dispose(),l==null||l.dispose(),c==null||c.dispose(),h==null||h.dispose(),u.value.visible=!1,document.removeEventListener("click",v),document.removeEventListener("click",M)});const mt=()=>{p.value=E()};return(T,L)=>(d.openBlock(),d.createElementBlock("div",{class:"json-rule-editor",ref_key:"rootRef",ref:s},[L[2]||(L[2]=d.createElementVNode("div",{class:"editor-header"},[d.createElementVNode("span",null,"数据 JSON(右键选取字段为变量)")],-1)),d.createElementVNode("div",{ref_key:"dataEditorContainer",ref:r,class:"monaco-pane slim"},null,512),m.value.visible?(d.openBlock(),d.createElementBlock("div",{key:0,class:"context-menu",style:d.normalizeStyle({left:m.value.x+"px",top:m.value.y+"px"})},[d.createElementVNode("div",{class:"menu-item",onClick:K},"复制属性"),d.createElementVNode("div",{class:"menu-item",onClick:D},"复制值"),d.createElementVNode("div",{class:"menu-item",onClick:N},"复制属性路径"),d.createElementVNode("div",{class:"menu-item",onClick:k},"设置为变量(并插入解析函数)"),L[0]||(L[0]=d.createElementVNode("div",{class:"menu-item disabled"},"设置为全局变量(待实现)",-1))],4)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"editor-header",style:{"margin-top":"8px"}},[L[1]||(L[1]=d.createElementVNode("span",null,"解析函数(JS,需 return 数值)",-1)),d.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:b},"填充示例")]),d.createElementVNode("div",{ref_key:"editorContainer",ref:o,class:"monaco-pane"},null,512),u.value.visible?(d.openBlock(),d.createElementBlock("div",{key:1,class:"context-menu",style:d.normalizeStyle({left:u.value.x+"px",top:u.value.y+"px"})},[d.createElementVNode("div",{class:"menu-item",onClick:ct},"剪切"),d.createElementVNode("div",{class:"menu-item",onClick:pt},"复制"),d.createElementVNode("div",{class:"menu-item",onClick:V},"粘贴"),d.createElementVNode("div",{class:"menu-item",onClick:tt},"格式化")],4)):d.createCommentVNode("",!0),d.createElementVNode("div",Uv,[d.createElementVNode("div",null,[d.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:mt},"运行测试"),d.createElementVNode("span",Kv,d.toDisplayString(p.value),1),f.value?(d.openBlock(),d.createElementBlock("span",Jv,"错误:"+d.toDisplayString(f.value),1)):d.createCommentVNode("",!0)]),d.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:st},"确认生效")]),L[3]||(L[3]=d.createElementVNode("div",{class:"helper"},[d.createElementVNode("div",{class:"helper-title"},"使用方式"),d.createElementVNode("p",null,"data 为当前 JSON 数据,$ 为全局变量对象;右键字段插入示例代码(data.xxx 或 $?.xxx)。在下方函数里 return 需要展示的数值。")],-1))],512))}},[["__scopeId","data-v-a757bc46"]]),Yv={class:"dataBox"},Hv={style:{padding:"10px 0","margin-bottom":"10px"}},_v={style:{padding:"10px 0","margin-bottom":"10px"}},Wv={class:"param-table"},qv={class:"param-table__toolbar"},Xv={style:{padding:"10px 0"}},$v={style:{padding:"10px 0","margin-bottom":"10px"}},Zv=vt({__name:"data",setup(i){const t=d.inject("getCurCell")(),e=d.inject("topoApi"),n=d.ref(t.getData()),s=d.ref(n.value.dataSource.parse||""),o=d.ref(!1),r=d.ref({text1:""}),a=d.ref(null),l={},c=d.ref({}),h=async()=>{if(a.value===null)return St.ElMessage.error("请获取数据!"),!1;if(!s.value){const w={};g.value.bindName.forEach(C=>{w[C]=""}),s.value=`return ${JSON.stringify(w)}`}g.value.type==="opcua"&&(c.value={payload:a.value,pointTemp:n.value.dataSource.point}),g.value.type==="http"&&(c.value=a.value),o.value=!0},u=()=>{a.value=null},g=d.ref(n.value.dataSource);Array.isArray(g.value.params)||(g.value.params=[]);const f=async()=>{if(!g.value.path)return St.ElMessage.error("请输入点位地址!"),!1;const w=await e.readPoints([g.value.path]);console.log(w),a.value=w[0]||{error:"未找到数据"}},p=()=>{g.value.params.push({label:"",value:""})},m=w=>{g.value.params.splice(w,1)},b=async()=>{if(!g.value.httpUrl)return St.ElMessage.error("请输入请求地址"),!1;let w={};for(let x of g.value.params)if(x.label)w[x.label]=x.value;else return St.ElMessage.error("请完善请求参数"),!1;let C;try{C=await e.httpRequest({...g.value,params:w})}catch{C={error:"数据获取失败"}}a.value=C,console.log(C)},y=()=>{var C,x,E;if(((C=g.value.name)==null?void 0:C.length)==0)return St.ElMessage.error("请选择数据关联!"),!1;if(a.value===null)return St.ElMessage.error("请获取数据!"),!1;let w={};if(s.value)try{const S=new Function("data","$",s.value);g.value.type=="opcua"?w=S({payload:a.value,pointTemp:n.value.dataSource.point},r.value):g.value.type=="http"&&(w=S(a.value,r.value)),w.dataSource={parse:s.value},t.setData(w),o.value=!1}catch(S){St.ElMessage.error("解析失败!"),console.log(S)}else w[g.value.name]=((E=(x=a.value)==null?void 0:x.payload)==null?void 0:E.value)||"--",t.setData(w),o.value=!1};return(w,C)=>{const x=d.resolveComponent("el-option"),E=d.resolveComponent("el-select"),S=d.resolveComponent("el-form-item"),v=d.resolveComponent("el-input"),M=d.resolveComponent("el-button"),k=d.resolveComponent("el-radio"),I=d.resolveComponent("el-radio-group"),O=d.resolveComponent("el-table-column"),R=d.resolveComponent("el-table"),K=d.resolveComponent("el-form"),D=d.resolveComponent("el-dialog");return d.openBlock(),d.createElementBlock("div",Yv,[d.createVNode(K,{class:"panelList",size:"small"},{default:d.withCtx(()=>[d.createVNode(S,{label:"数据类型"},{default:d.withCtx(()=>[d.createVNode(E,{modelValue:g.value.type,"onUpdate:modelValue":C[0]||(C[0]=N=>g.value.type=N),onChange:u},{default:d.withCtx(()=>[d.createVNode(x,{value:"none",label:"无"}),d.createVNode(x,{value:"opcua",label:"OPCUA点位"}),d.createVNode(x,{value:"http",label:"HTTP接口"}),d.createVNode(x,{value:"mock",label:"Mock模拟"})]),_:1},8,["modelValue"])]),_:1}),g.value.type!=="none"?(d.openBlock(),d.createBlock(S,{key:0,label:"数据关联"},{default:d.withCtx(()=>[d.createVNode(E,{modelValue:g.value.bindName,"onUpdate:modelValue":C[1]||(C[1]=N=>g.value.bindName=N),multiple:"","collapse-tags":""},{default:d.withCtx(()=>[d.createVNode(x,{value:"text",label:"文本"}),d.createVNode(x,{value:"color",label:"字体颜色"}),d.createVNode(x,{value:"backgroundColor",label:"背景颜色"}),d.createVNode(x,{value:"model",label:"内部变量"})]),_:1},8,["modelValue"])]),_:1})):d.createCommentVNode("",!0),g.value.type==="opcua"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(S,{label:"点位地址"},{default:d.withCtx(()=>[d.createVNode(v,{modelValue:g.value.path,"onUpdate:modelValue":C[2]||(C[2]=N=>g.value.path=N)},null,8,["modelValue"])]),_:1}),d.createElementVNode("div",Hv,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:f},{default:d.withCtx(()=>[...C[10]||(C[10]=[d.createTextVNode("获取数据",-1)])]),_:1})]),d.createVNode(zr,{modelValue:a.value,"onUpdate:modelValue":C[3]||(C[3]=N=>a.value=N),style:{height:"400px"}},null,8,["modelValue"]),d.createElementVNode("div",_v,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:h},{default:d.withCtx(()=>[...C[11]||(C[11]=[d.createTextVNode("数据解析",-1)])]),_:1})])],64)):d.createCommentVNode("",!0),g.value.type==="http"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createVNode(S,{label:"接口类型"},{default:d.withCtx(()=>[d.createVNode(I,{modelValue:g.value.httpType,"onUpdate:modelValue":C[4]||(C[4]=N=>g.value.httpType=N)},{default:d.withCtx(()=>[d.createVNode(k,{value:"GET"},{default:d.withCtx(()=>[...C[12]||(C[12]=[d.createTextVNode("GET",-1)])]),_:1}),d.createVNode(k,{value:"POST"},{default:d.withCtx(()=>[...C[13]||(C[13]=[d.createTextVNode("POST",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),d.createVNode(S,{label:"接口地址"},{default:d.withCtx(()=>[d.createVNode(v,{modelValue:g.value.httpUrl,"onUpdate:modelValue":C[5]||(C[5]=N=>g.value.httpUrl=N),autosize:{minRows:2,maxRows:4},type:"textarea"},null,8,["modelValue"])]),_:1}),d.createElementVNode("div",Wv,[d.createElementVNode("div",qv,[C[15]||(C[15]=d.createElementVNode("div",null,"请求参数",-1)),d.createVNode(M,{size:"small",type:"primary",plain:"",onClick:p},{default:d.withCtx(()=>[...C[14]||(C[14]=[d.createTextVNode("新增参数",-1)])]),_:1})]),d.createVNode(R,{data:g.value.params,size:"small",border:"",height:"180"},{default:d.withCtx(()=>[d.createVNode(O,{prop:"label",label:"字段名"},{default:d.withCtx(({row:N})=>[d.createVNode(v,{modelValue:N.label,"onUpdate:modelValue":j=>N.label=j,modelModifiers:{trim:!0},placeholder:"字段名"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),d.createVNode(O,{prop:"value",label:"值"},{default:d.withCtx(({row:N})=>[d.createVNode(v,{modelValue:N.value,"onUpdate:modelValue":j=>N.value=j,placeholder:"值"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),d.createVNode(O,{label:"操作",width:"60"},{default:d.withCtx(({$index:N})=>[d.createVNode(M,{link:"",type:"danger",onClick:j=>m(N)},{default:d.withCtx(()=>[...C[16]||(C[16]=[d.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])]),d.createElementVNode("div",Xv,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:b},{default:d.withCtx(()=>[...C[17]||(C[17]=[d.createTextVNode("获取数据",-1)])]),_:1})]),d.createVNode(zr,{modelValue:a.value,"onUpdate:modelValue":C[6]||(C[6]=N=>a.value=N),style:{height:"300px"}},null,8,["modelValue"]),d.createElementVNode("div",$v,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:h},{default:d.withCtx(()=>[...C[18]||(C[18]=[d.createTextVNode("数据解析",-1)])]),_:1})])],64)):d.createCommentVNode("",!0),g.value.type==="mock"?(d.openBlock(),d.createBlock(zr,{key:3,modelValue:n.value,"onUpdate:modelValue":C[7]||(C[7]=N=>n.value=N),style:{height:"600px"}},null,8,["modelValue"])):d.createCommentVNode("",!0)]),_:1}),d.createVNode(D,{modelValue:o.value,"onUpdate:modelValue":C[9]||(C[9]=N=>o.value=N),title:"实时数据解析",width:"800","align-center":""},{default:d.withCtx(()=>[d.createVNode(Gv,{"model-value":c.value,rule:s.value,"onUpdate:rule":C[8]||(C[8]=N=>s.value=N),globals:l,onClose:y},null,8,["model-value","rule"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-4c27164c"]]),tE={class:"prop"},eE={class:"tabContainer"},nE=["onClick"],iE={class:"activeLine"},sE={key:0,class:"main"},oE=vt({__name:"index",setup(i){const t=Kt(),e=Pn(),{targetType:n,tabs:s,activeTab:o,cellId:r}=be.storeToRefs(e),a=h=>{o.value=h};let l=r.value?t.graph.getCellById(r.value):null;d.provide("getCurCell",()=>l),d.provide("cellId",r);const c=d.ref(!0);return d.watch(r,()=>{console.log("cellId",r.value),l=t.graph.getCellById(r.value),c.value=!1,d.nextTick(()=>{c.value=!0})}),(h,u)=>(d.openBlock(),d.createElementBlock("div",tE,[d.createElementVNode("div",eE,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(s),(g,f)=>(d.openBlock(),d.createElementBlock("div",{key:f,class:d.normalizeClass(["tabItem",{active:d.unref(o)===f}]),onClick:p=>a(f)},[d.createTextVNode(d.toDisplayString(g)+" ",1),d.withDirectives(d.createElementVNode("div",iE,null,512),[[d.vShow,d.unref(o)===f]])],10,nE))),128))]),c.value?(d.openBlock(),d.createElementBlock("div",sE,[d.unref(n)==="blank"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.unref(o)===0?(d.openBlock(),d.createBlock(Tv,{key:0})):d.createCommentVNode("",!0)],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.unref(o)===0?(d.openBlock(),d.createBlock(Dv,{key:0})):d.unref(o)===1?(d.openBlock(),d.createBlock(Zv,{key:1})):d.createCommentVNode("",!0)],64))])):d.createCommentVNode("",!0)]))}},[["__scopeId","data-v-b4a4e65e"]]),rE={class:"ems-editor"},aE={class:"ems-editor__workspace"},Kr=Object.assign({name:"EmsEditor"},{__name:"index",props:{services:{type:Object,default:()=>({})},width:{type:Number,default:1920},height:{type:Number,default:1080}},emits:["ready","exit"],setup(i,{emit:t}){const e=On(),n=Pn(),s=Kt(),o=i,r={setItem(l,c){c!==void 0&&window.localStorage.setItem(l,JSON.stringify(c))},getItem(l){let c=window.localStorage.getItem(l);return JSON.parse(c)},removeItem(l){window.localStorage.removeItem(l)},clear(){window.localStorage.clear()}},a={async getAllMenus(){var c;let l=[];return(c=o.services)!=null&&c.getAllMenus?l=await o.services.getAllMenus()||[]:l=r.getItem("menus")||[{id:"1",parentId:"0",name:"首页",children:[{id:crypto.randomUUID(),parentId:"1",name:"首页概览",style:{},value:{}}]}],r.setItem("menus",l),l},async getMenu(l){var c;if((c=o.services)!=null&&c.getMenu)return await o.services.getMenu(l)||{};{let h=r.getItem("menus")||[];for(let u of h)if(u.children){for(let g of u.children)if(g.id===l)return g}return{}}},async addMenu({parent:l,parentNameNew:c,name:h}){var u;if((u=o.services)!=null&&u.addMenu)return await o.services.addMenu({parent:l,parentNameNew:c,name:h});{let g=r.getItem("menus")||[],f=null,p=crypto.randomUUID(),m="";if(l==="0")m=crypto.randomUUID(),f={name:h,id:p,parentId:m,style:{},value:{}},g.push({name:c,id:m,parentId:"0",children:[f]});else{const b=g.find(y=>y.id===l);b&&(m=b.id,b.children.push({name:h,id:p,parentId:m,style:{},value:{}}),f={name:h,id:p,parentId:m,style:{},value:{}})}return r.setItem(p,f),r.setItem("menus",g),f}},async saveMenus(l){var h;const c=await this.getMenu(l.id);if(c&&(c.name=l.name,c.style=l.style,c.value=l.value),(h=o.services)!=null&&h.saveMenus)await o.services.saveMenus(l);else{let u=r.getItem("menus")||[];for(let g of u){const f=g.children.findIndex(p=>p.id===l.id);f>-1&&(g.children[f]=l)}r.setItem("menus",u),r.setItem(l.id,l)}},async removeMenu(l){var c;if((c=o.services)!=null&&c.removeMenu)await o.services.removeMenu(l);else{let h=r.getItem("menus")||[];if(this.getMenu(l)){const g=h.find(f=>{var p;return(p=f.children)==null?void 0:p.some(m=>m.id===l)});g&&(g.children=g.children.filter(f=>f.id!==l),g.children.length===0&&(h=h.filter(f=>f.id!==g.id))),r.setItem("menus",h)}r.removeItem(l)}},async getDeviceList(){var c;let l=[];if((c=o.services)!=null&&c.getDeviceList)l=await o.services.getDeviceList();else{const h=[{id:"2010960121314734082",deviceName:"干接点",deviceType:"OTHERS",deviceNo:"DIDO",templateName:"DIDO_test.json",templateId:"2010957702564474882",pointList:[{id:"2010957702568669185",templateId:"2010957702564474882",tag:"en_sts",name:"使能STS",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0001, uint, AB]",description:"0:失能;1:启动使能;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863489",templateId:"2010957702564474882",tag:"connect_statu",name:"电网闸",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0002, uint, AB]",description:"0:断开;1:闭合;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863490",templateId:"2010957702564474882",tag:"icb_sign",name:"外源断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0003, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863491",templateId:"2010957702564474882",tag:"icb_ctrl",name:"外源断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0004, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863492",templateId:"2010957702564474882",tag:"lcb_sign",name:"负载断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0005, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863493",templateId:"2010957702564474882",tag:"lcb_ctrl",name:"负载断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0006, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863494",templateId:"2010957702564474882",tag:"dg_sign",name:"发动机启停状态",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0007, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863495",templateId:"2010957702564474882",tag:"dg_ctrl",name:"发动机控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0008, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863496",templateId:"2010957702564474882",tag:"ats",name:"ATS反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0009, uint, AB]",description:"0:合闸柴发;1:合闸电网;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null}]}];for(const u of h){const g=u.pointList;g&&Array.isArray(g)&&g.length>0&&l.push({id:u.id,label:u.deviceName,data:u,children:g.map(f=>({id:f.id,label:f.name,data:{...f,nodeId:`ns=1;s=${u.deviceType}.${f.tag}`}}))})}}return l},async readPoints(l){var c,h;return(c=o.services)!=null&&c.readPoints?await((h=o.services)==null?void 0:h.readPoints(l)):[{nodeId:"ns=1;s=PV.RatReActivePowerPer",value:1,statusCode:"Good",sourceTimestamp:"2026-01-16T02:26:37.533Z",serverTimestamp:"2026-01-16T02:26:37.533Z",aa:[{vv:1},{vv1:1}]}]},async httpRequest(l){var c,h;return(c=o.services)!=null&&c.httpRequest?await((h=o.services)==null?void 0:h.httpRequest(l)):{}}};return d.provide("topoApi",a),d.onMounted(()=>{}),d.onBeforeUnmount(()=>{e.$reset(),n.$reset(),s.$reset()}),(l,c)=>(d.openBlock(),d.createElementBlock("div",rE,[d.createElementVNode("div",aE,[d.createVNode(Bv),d.createVNode(jx,{width:o.width,height:o.height},null,8,["width","height"]),d.createVNode(oE)])]))}}),lE={class:"previewBox"},Dd=vt({__name:"preview",props:{menu:{type:Object,required:!0},service:{type:Object,required:!0}},setup(i){const t=i,e=t.service,n=d.ref(null);let s=null;const o=Dr();let r=[];const a=c=>{if(!c.cell)return!1;r.length>0&&(e.unsubscribe(r.map(h=>h.path)),r=[]);for(let h of c.cell)if(h.data&&h.data.datasource&&h.data.datasource.type!=="none"){const u=s.getCellById(h.id),g=h.data.datasource;if(g.type=="opcua"&&g.path&&g.parse)try{e.readPoints([g.path]).then(f=>{f&&f.length>0&&l(f[0],g,u)}),r.push({nodeId:g.path,callBack:f=>l(f,g,u)})}catch(f){ElMessage.error("解析失败!"),console.log(f)}if(g.type=="http"&&g.parse)try{const f=new Function("data","$",g.parse);e.httpRequest(g).then(p=>{if(p){let m=f(p,{});u.setData(m)}})}catch(f){ElMessage.error("解析失败!"),console.log(f)}}e.subscribe(r.map(h=>h.path)),e.onEvent(h=>{h.event==="data-changed"&&h.payload&&h.payload.nodeId&&r.forEach((u,g)=>{u.nodeId==h.payload.nodeId&&r[g].callBack(h.payload)})})},l=(c,h,u)=>{const g=new Function("data","$",h.parse);let f={};parse?f=g({payload:c,pointTemp:h.point},{}):f.text=res.payload.value||"--",u.setData(f)};return d.watch(()=>t.menu,c=>{s&&(s.clearCells(),s.resize(c.style.width,c.style.height),s.fromJSON(c.value),s.drawBackground({color:c.style.backgroundColor,image:c.style.backgroundImage,size:"cover"}),a(c.value))},{deep:!0}),d.onMounted(()=>{const{width:c,height:h}=t.menu.style;s=new B({container:n.value,width:c,height:h,interacting:!1,selecting:!1,keyboard:!1,mousewheel:!1,panning:!1}),Qr(),s.fromJSON(t.menu.value),s.drawBackground({color:t.menu.style.backgroundColor,image:t.menu.style.backgroundImage,size:"cover"})}),d.onBeforeUnmount(()=>{s&&s.dispose()}),(c,h)=>(d.openBlock(),d.createElementBlock("div",lE,[d.createElementVNode("div",{ref_key:"container",ref:n,class:"ems-preview"},null,512),d.createVNode(d.unref(o))]))}},[["__scopeId","data-v-a4b36e35"]]);window._iconfont_svg_string_5087053='<svg><symbol id="icon-jiesuo1" viewBox="0 0 1024 1024"><path d="M768.25422 0q48.810328 0 94.061569 18.303873t80.333664 50.33565 56.436941 74.740814 21.354518 91.519364l0 150.49851-123.042701 0 0-122.025819q0-64.063555-36.099305-99.654419t-97.112214-35.590864q-54.911619 0-88.468719 35.590864t-33.5571 99.654419l0 124.059583-128.12711 0 0-152.532274q0-48.810328 19.320755-91.519364t53.386296-74.740814 80.333664-50.33565 101.179742-18.303873zM766.220457 693.513406l0 87.451837 0 47.793446q0 27.455809-9.660377 51.860973t-26.438928 41.692155-39.658391 27.455809-50.33565 10.168818l-514.542205 0q-27.455809 0-49.82721-9.660377t-38.641509-26.438928-24.913605-39.14995-8.643496-47.793446l0-323.368421q0-28.472691 19.829196-47.793446t46.268123-19.320755l629.449851 0q28.472691 0 47.793446 19.320755t19.320755 47.793446l0 179.988083z" ></path></symbol><symbol id="icon-jianlizuhe1" viewBox="0 0 1024 1024"><path d="M891.8 65h-632c-35.5 0-64.4 28.8-64.4 64.4v125.3h-66.3c-35.5 0-64.4 28.8-64.4 64.4v575.6c0 35.5 28.8 64.4 64.4 64.4h572.6c35.5 0 64.4-28.8 64.4-64.4v-65.3h125.6c35.5 0 64.4-28.8 64.4-64.4V129.4c0.1-35.6-28.7-64.4-64.3-64.4zM702.2 894.6v0.1c0 0.1-0.2 0.2-0.2 0.2H129.1c-0.1 0-0.2-0.2-0.2-0.2V319v-0.1c0-0.1 0.2-0.2 0.2-0.2h0.1l66.3 0.1S194 794.1 194 797.4c0 17.7 14.3 32 32 32h476.2v65.2zM259.5 129.2c0-0.1 0.2-0.2 0.2-0.2h632.2c0.1 0 0.2 0.2 0.2 0.2V765.1c0 0.1-0.2 0.2-0.2 0.2H259.5V129.2z" ></path></symbol><symbol id="icon-suoding1" viewBox="0 0 1024 1024"><path d="M860.069521 429.487623h-73.242947v-170.422692C786.826574 116.337371 670.888872 0.272064 528.240764 0.272064c-142.650515 0-258.720638 116.065307-258.720638 258.792867v170.422692H196.339779c-35.281619 0-63.879618 28.612445-63.879618 63.91814v466.606275c0 35.368294 28.597999 63.983146 63.879618 63.983147h663.79234c35.29125 0 63.821834-28.614852 63.821835-63.983147V493.405763c-0.004815-35.310511-28.590776-63.91814-63.884433-63.91814zM564.114664 738.867504v101.889098c0 4.552855-3.765556 8.388233-8.385825 8.388233h-54.91355c-4.678053 0-8.446016-3.837785-8.446017-8.388233v-101.889098c-25.800316-13.201114-43.672259-39.665939-43.672259-70.68362 0-43.888947 35.613874-79.584681 79.481153-79.584682 43.932285 0 79.548567 35.695734 79.548566 79.584682 0.062599 31.020089-17.811752 57.482507-43.612068 70.68362z m123.476036-309.379881H368.883605v-166.202091c0-87.912723 71.55278-159.501618 159.417351-159.501618s159.287337 71.588895 159.287337 159.501618l0.002407 166.202091z" ></path></symbol><symbol id="icon-xingzhuang-juxing" viewBox="0 0 1024 1024"><path d="M864 896H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h704a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zM192 832h640V192H192v640z" ></path></symbol><symbol id="icon-shuzhi" viewBox="0 0 1024 1024"><path d="M921.6 21.162667H102.4c-37.546667 0-68.266667 30.788267-68.266667 68.4032v819.950933c0 37.546667 30.72 68.334933 68.266667 68.334933h819.2c37.546667 0 68.266667-30.72 68.266667-68.266666V89.4976c0-37.546667-30.72-68.334933-68.266667-68.334933z m0 854.2208c0 20.48-13.653333 34.133333-34.133333 34.133333h-750.933334c-20.48 0-34.133333-13.653333-34.133333-34.133333V123.767467c0-20.548267 13.653333-34.2016 34.133333-34.2016h750.933334c20.48 0 34.133333 13.653333 34.133333 34.133333v751.616z" ></path><path d="M274.568533 365.704533h36.0448V658.090667h-47.9232V423.458133a165.546667 165.546667 0 0 1-66.7648 35.6352v-47.5136c13.1072-3.2768 27.0336-9.0112 41.7792-17.2032 14.7456-9.0112 27.0336-18.432 36.864-28.672z m200.2944-5.7344c28.2624 0 51.6096 8.192 70.0416 24.576 18.0224 16.384 27.0336 37.2736 27.0336 63.488 0 25.3952-9.8304 48.3328-28.672 69.2224-11.4688 12.288-31.9488 27.8528-60.6208 47.104-29.9008 19.6608-47.9232 36.864-54.4768 51.6096h144.1792v42.1888H368.366933c0-29.9008 9.4208-55.7056 29.0816-77.824 10.6496-12.288 33.1776-30.3104 67.1744-53.6576 18.8416-13.1072 31.9488-24.1664 40.1408-32.768 12.6976-14.336 19.2512-29.9008 19.2512-46.2848 0-15.9744-4.5056-27.8528-12.6976-35.6352-8.6016-7.7824-21.2992-11.4688-38.0928-11.4688-18.0224 0-31.5392 6.144-40.5504 18.432-9.0112 11.4688-13.9264 29.0816-14.7456 52.0192H370.005333c0.4096-32.768 9.8304-58.9824 28.672-79.0528 19.2512-21.2992 44.6464-31.9488 76.1856-31.9488z m244.1216 0c29.4912 0 53.6576 6.9632 71.68 21.2992 17.6128 14.336 26.624 33.9968 26.624 59.392 0 31.9488-16.384 53.248-48.7424 63.8976 17.2032 5.3248 30.72 13.1072 39.7312 23.7568a61.986133 61.986133 0 0 1 14.7456 42.5984c0 27.0336-9.4208 49.152-28.2624 66.3552-19.6608 17.6128-45.4656 26.624-77.4144 26.624-30.3104 0-54.8864-7.7824-73.3184-23.3472-20.48-17.2032-31.9488-42.5984-34.4064-75.3664h48.7424c0.8192 18.8416 6.5536 33.5872 18.0224 43.8272 10.24 9.4208 23.7568 14.336 40.5504 14.336 18.432 0 33.1776-5.3248 43.8272-15.5648a47.240533 47.240533 0 0 0 14.336-34.816c0-16.7936-5.3248-29.0816-15.1552-36.864-9.8304-8.192-24.1664-11.8784-43.008-11.8784h-20.48V488.106667h20.48c17.2032 0 30.3104-3.6864 39.3216-11.0592 8.6016-7.3728 13.1072-18.432 13.1072-32.768 0-14.336-4.096-24.9856-11.8784-32.3584-8.6016-7.3728-21.2992-11.0592-38.0928-11.0592-17.2032 0-30.3104 4.096-39.7312 12.6976-9.8304 8.6016-15.5648 21.7088-17.2032 39.3216h-47.104c2.4576-29.4912 13.1072-52.4288 32.768-68.8128 18.432-16.384 42.1888-24.1664 70.8608-24.1664z" ></path></symbol><symbol id="icon-xianduan" viewBox="0 0 1024 1024"><path d="M0.034239 975.503207L976.222236 0l48.400922 48.435162L48.435162 1023.945217z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M512.122 272.146c-247.216 0-412.027 247.216-412.027 247.216s164.811 247.216 412.027 247.216c247.216 0 412.027-247.216 412.027-247.216S759.217 272.146 512.122 272.146z m0 410.207c-90.537 0-163.962-73.424-163.962-163.962s73.424-163.962 163.962-163.962c90.537 0 163.962 73.424 163.962 163.962-0.122 90.658-73.424 163.962-163.962 163.962z m-82.406-163.476c0 21.482 8.86 42.841 24.03 58.012s36.53 24.03 58.012 24.03 42.841-8.86 58.012-24.03c15.17-15.17 24.03-36.53 24.03-58.012s-8.86-42.841-24.03-58.012c-15.17-15.17-36.53-24.03-58.012-24.03s-42.841 8.86-58.012 24.03c-15.17 15.292-24.03 36.53-24.03 58.012z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M437.996 697.519V586.722H327.195c-61.187 0-110.797 49.61-110.797 110.797 0 61.195 49.61 110.797 110.797 110.797 61.192 0 110.801-49.602 110.801-110.797z m55.399 0c0 91.789-74.411 166.195-166.2 166.195C235.41 863.714 161 789.308 161 697.519c0-91.789 74.41-166.195 166.195-166.195h166.2v166.195z m92.328 0V586.722H696.52c61.195 0 110.796 49.61 110.796 110.797 0 61.195-49.601 110.797-110.796 110.797-61.188 0-110.797-49.602-110.797-110.797z m-55.399 0c0 91.789 74.41 166.195 166.196 166.195 91.789 0 166.199-74.406 166.199-166.195 0-91.789-74.41-166.195-166.199-166.195H530.324v166.195z m-92.328-369.324v110.801H327.195c-61.187 0-110.797-49.61-110.797-110.801 0-61.188 49.61-110.797 110.797-110.797 61.192 0 110.801 49.609 110.801 110.797z m55.399 0c0-91.785-74.411-166.195-166.2-166.195C235.41 162 161 236.41 161 328.195c0 91.789 74.41 166.199 166.195 166.199h166.2V328.195z m92.328 0v110.801H696.52c61.195 0 110.796-49.61 110.796-110.801 0-61.188-49.601-110.797-110.796-110.797-61.188 0-110.797 49.609-110.797 110.797z m-55.399 0C530.324 236.41 604.734 162 696.52 162c91.789 0 166.199 74.41 166.199 166.195 0 91.789-74.41 166.199-166.199 166.199H530.324V328.195z m0 0" ></path></symbol><symbol id="icon-tupian" viewBox="0 0 1024 1024"><path d="M335.36 440.32c38.4 0 71.68-30.72 71.68-71.68 0-38.4-30.72-71.68-71.68-71.68-38.4 0-71.68 30.72-71.68 71.68 2.56 40.96 33.28 71.68 71.68 71.68z m0 0M652.8 396.8L445.44 691.2 337.92 540.16 158.72 793.6h704L652.8 396.8z m0 0" ></path><path d="M934.4 107.52H89.6c-20.48 0-35.84 15.36-35.84 35.84V883.2c0 20.48 15.36 35.84 35.84 35.84h844.8c20.48 0 35.84-15.36 35.84-35.84V143.36c0-20.48-15.36-35.84-35.84-35.84z m-35.84 739.84H125.44V176.64h775.68v670.72h-2.56z m0 0" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M64.1 66v303.7l39.5-1.3c13.6-110.8 102.6-186.4 153.2-199 50.7-12.6 148.3 1.1 148.3 1.1s-1.3 625.2-1.3 669.2c0 44.1-59.3 63-59.3 63l-79 1.3-1.2 55.4h493.1v-54.1h-90.2c-40.8-3.8-65.4-56.7-65.4-56.7l1.1-684.5s61.8-11.3 150.8 5.1c89 16.4 164.3 204.1 164.3 204.1h39.5V66H64.1z" ></path></symbol><symbol id="icon-xinjian" viewBox="0 0 1024 1024"><path d="M618 958.5H202c-44.8 0-81.3-34.1-81.3-76v-740c0-41.9 36.5-76 81.3-76h610.5c44.8 0 81.3 34.1 81.3 76v521.9c0 12.8-10.4 23.1-23.1 23.1s-23.1-10.4-23.1-23.1V142.5c0-16.4-15.7-29.7-35-29.7H202c-19.3 0-35 13.3-35 29.7v740c0 16.4 15.7 29.7 35 29.7h416c12.8 0 23.1 10.4 23.1 23.1 0.1 12.8-10.3 23.2-23.1 23.2z" ></path><path d="M738.4 360.5H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h462.5c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1zM584.3 595.1H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h308.3c12.8 0 23.1 10.4 23.1 23.1 0 12.7-10.3 23.1-23.1 23.1zM878.8 826.3H614.6c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h264.3c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1z" ></path><path d="M746.7 958.5c-12.8 0-23.1-10.4-23.1-23.1V671.1c0-12.8 10.4-23.1 23.1-23.1 12.8 0 23.1 10.4 23.1 23.1v264.3c0 12.7-10.3 23.1-23.1 23.1z" ></path></symbol><symbol id="icon-qingkong" viewBox="0 0 1024 1024"><path d="M274.56 798.997333l19.434667-25.130666-33.792 68.565333a18.133333 18.133333 0 0 0 11.562666 25.536l59.733334 16a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.818667 35.626667-35.989333 45.290666-48.469333l19.456-25.130667-33.813333 68.565333a18.133333 18.133333 0 0 0 11.562667 25.536l84.48 22.634667a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-35.989333 45.269333-48.469333l19.456-25.130667-33.813333 68.565333A18.133333 18.133333 0 0 0 535.530667 938.666667l72.106666 19.328a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-36.010667 45.269334-48.490667l19.456-25.130667-33.813334 68.586667a18.133333 18.133333 0 0 0 11.584 25.514667l86.421334 23.338666 3.84-0.213333c13.269333-0.704 29.056-5.034667 43.84-12.8 29.781333-15.701333 48.170667-43.2 52.181333-78.250667 2.133333-18.517333 4.778667-38.549333 8.405333-63.530666 1.642667-11.221333 2.944-20.010667 6.229334-41.834667 11.050667-73.322667 14.634667-101.034667 17.130666-133.674667l0.938667-12.373333 2.837333-2.922667 12.330667-1.344a41.813333 41.813333 0 0 0 24.810667-11.221333c10.730667-10.24 14.805333-25.386667 11.093333-42.197333l-37.546667-171.584c-3.029333-13.696-11.264-27.946667-23.146666-39.829334-11.648-11.626667-25.92-20.138667-39.893334-23.893333L723.626667 331.306667l-2.261334-3.925334L774.250667 130.133333c8.32-31.061333-11.754667-63.744-44.970667-72.64l-79.509333-21.312c-33.194667-8.896-66.922667 9.365333-75.264 40.426667l-52.842667 197.269333-3.925333 2.261334-118.101334-31.637334c-13.994667-3.754667-30.634667-3.498667-46.506666 0.746667-16.256 4.352-30.506667 12.586667-39.957334 22.933333l-118.314666 129.792c-11.605333 12.714667-15.658667 27.84-11.52 42.090667 4.16 14.229333 15.850667 25.194667 32.896 30.528l13.610666 4.266667 2.133334 3.882666-3.626667 13.802667c-21.12 79.850667-52.885333 136.917333-85.717333 150.890667-47.530667 20.202667-72.938667 49.429333-78.421334 85.034666-5.034667 32.682667 9.28 67.114667 37.589334 91.541334l22.037333 8.341333 74.666667 20.010667a42.666667 42.666667 0 0 0 41.216-11.050667c15.274667-15.274667 26.88-28.032 34.837333-38.293333z m551.381333-396.565333c14.144 3.797333 29.952 19.2 32.768 32l34.56 157.781333a10.666667 10.666667 0 0 1-13.184 12.586667L240.64 433.493333a10.666667 10.666667 0 0 1-5.12-17.493333l108.8-119.36c8.832-9.685333 30.229333-15.146667 44.373333-11.349333l141.333334 37.866666a21.333333 21.333333 0 0 0 26.133333-15.082666l58.304-217.642667a21.333333 21.333333 0 0 1 26.133333-15.082667l77.056 20.650667a21.333333 21.333333 0 0 1 15.082667 26.133333l-58.325333 217.642667a21.333333 21.333333 0 0 0 15.082666 26.112l136.448 36.565333zM315.456 701.568c-33.664 45.141333-64.597333 79.082667-92.8 101.802667l-5.909333 4.778666-2.837334 0.597334-88.106666-24.106667-2.922667-3.2c-13.034667-14.165333-19.370667-31.04-16.981333-46.592 3.285333-21.333333 22.058667-39.338667 53.205333-52.586667 31.722667-13.482667 59.818667-47.104 82.922667-99.904 10.026667-22.954667 18.88-48.725333 26.389333-76.586666l3.882667-14.4 3.904-2.261334 566.165333 151.701334 2.346667 3.306666-0.789334 12.224c-1.984 30.592-30.336 229.397333-32.128 244.906667-2.346667 20.416-11.306667 34.986667-27.605333 44.394667a73.237333 73.237333 0 0 1-21.397333 8.106666l-5.013334 0.725334-60.373333-16.170667 11.242667-20.288c8.277333-14.976 22.656-43.84 43.093333-86.613333a21.12 21.12 0 0 0-9.962667-28.16l-3.136-1.493334a21.333333 21.333333 0 0 0-26.261333 6.485334c-33.642667 45.056-64.533333 78.912-92.672 101.546666l-5.909333 4.757334-2.837334 0.597333-52.544-14.08 11.114667-20.266667c3.562667-6.485333 7.04-13.013333 10.453333-19.626666 7.04-13.504 17.898667-35.797333 32.597334-66.816a21.290667 21.290667 0 0 0-9.984-28.309334l-3.029334-1.450666a21.333333 21.333333 0 0 0-26.368 6.442666c-33.6 45.013333-64.469333 78.826667-92.608 101.482667l-5.909333 4.757333-2.837333 0.597334-52.138667-13.973334 11.114667-20.266666c3.242667-5.888 6.72-12.416 10.453333-19.626667 6.997333-13.461333 17.962667-35.946667 32.896-67.434667a20.970667 20.970667 0 0 0-10.112-28.010666l-3.328-1.536a21.333333 21.333333 0 0 0-26.069333 6.613333c-33.642667 45.056-64.554667 78.976-92.778667 101.696l-5.909333 4.757333-2.837334 0.597334-32.64-8.746667 11.093334-20.245333c3.541333-6.506667 7.04-13.034667 10.453333-19.626667 6.976-13.482667 17.941333-35.968 32.874667-67.456a21.056 21.056 0 0 0-10.069334-28.074667l-3.242666-1.514666a21.333333 21.333333 0 0 0-26.154667 6.549333z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M202.666667 256h-42.666667a32 32 0 0 1 0-64h704a32 32 0 0 1 0 64H266.666667v565.333333a53.333333 53.333333 0 0 0 53.333333 53.333334h384a53.333333 53.333333 0 0 0 53.333333-53.333334V352a32 32 0 0 1 64 0v469.333333c0 64.8-52.533333 117.333333-117.333333 117.333334H320c-64.8 0-117.333333-52.533333-117.333333-117.333334V256z m224-106.666667a32 32 0 0 1 0-64h170.666666a32 32 0 0 1 0 64H426.666667z m-32 288a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z m170.666666 0a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z" ></path></symbol><symbol id="icon-jia" viewBox="0 0 1024 1024"><path d="M580.722174 437.990403 580.722174 78.171384 436.794158 78.171384 436.794158 437.990403 76.975139 437.990403 76.975139 581.918419 436.794158 581.918419 436.794158 941.737438 580.722174 941.737438 580.722174 581.918419 940.542216 581.918419 940.542216 437.990403Z" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M814.805 128a51.179 51.179 0 0 1 51.179 51.179V844.01a51.179 51.179 0 0 1-51.179 51.157H201.173a51.179 51.179 0 0 1-51.178-51.157V179.179A51.179 51.179 0 0 1 201.173 128h613.654zM329.024 434.837a51.093 51.093 0 0 1-51.179-51.093V179.157h-76.672v664.854h613.76V179.179H738.22v204.48a51.179 51.179 0 0 1-51.179 51.178H329.024z m0-51.093h357.995V179.157H329.024v204.587z m357.91 204.501a25.557 25.557 0 1 1 0.085 51.072H329.024a25.536 25.536 0 1 1 0-51.072h357.91z" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M293.632 645.248c91.456-86.784 183.552-220.544 346.88-211.584a20.8 20.8 0 0 1 20.224 20.8v59.392a21.376 21.376 0 0 0 34.432 16.64l211.2-171.2a21.376 21.376 0 0 0 0-33.28l-210.24-192a21.952 21.952 0 0 0-35.648 16.64v60.096a20.8 20.8 0 0 1-17.856 20.8c-280.704 61.76-351.36 391.104-348.992 413.696zM192 960a138.176 138.176 0 0 1-129.984-152.512L64 832V192a116.48 116.48 0 0 1 128-128c-108.8 1.024 256 0 256 0a28.224 28.224 0 0 1 29.76 27.84A35.968 35.968 0 0 1 448 128H192a53.12 53.12 0 0 0-64 64c1.536-37.504 0 640 0 640a52.8 52.8 0 0 0 64 64c49.536-0.448 640 0 640 0a52.48 52.48 0 0 0 64-64c-0.64 105.152 0-256 0-256a36.48 36.48 0 0 1 27.264-38.4A33.216 33.216 0 0 1 960 576v256a116.48 116.48 0 0 1-128 128c-50.56-0.448-640 0-640 0z" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M512 384a42.666667 42.666667 0 0 1 42.666667 42.666667v341.333333h130.986666a21.333333 21.333333 0 0 1 14.250667 5.504l2.688 2.901333a21.333333 21.333333 0 0 1-4.010667 29.866667l-165.717333 126.464a32 32 0 0 1-38.912-0.042667l-164.48-126.464A21.333333 21.333333 0 0 1 342.442667 768H469.333333v-341.333333a42.666667 42.666667 0 0 1 42.666667-42.666667z m229.674667 298.368A42.666667 42.666667 0 0 1 746.666667 597.333333H853.333333V170.666667H170.666667v426.666666h106.666666a42.666667 42.666667 0 0 1 0 85.333334H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333334V170.666667a85.333333 85.333333 0 0 1 85.333334-85.333334h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333334v426.666666a85.333333 85.333333 0 0 1-85.333334 85.333334h-106.666666z" ></path></symbol><symbol id="icon-huanyuan" viewBox="0 0 1024 1024"><path d="M909.637 478.524c-15.444-189.946-167.065-345.049-356.655-364.38-99.805-10.176-193.011 16.474-267.901 67.887l18.467-68.842c5.725-21.337-6.933-43.274-28.27-48.998s-43.274 6.934-48.998 28.271l-41.455 154.536c-5.724 21.337 6.933 43.273 28.271 48.998l154.536 41.455c21.337 5.724 43.273-6.934 48.998-28.271 5.724-21.337-6.934-43.274-28.271-48.998l-54.194-14.538c58.917-39.301 131.457-59.686 208.999-52.061 147.885 14.543 268.327 132.461 285.589 280.053 23.02 196.82-133.879 363.973-327.45 358.219-135.107-4.017-252.98-96.111-294.938-224.602-17.513-53.632-18.92-105.027-9.92-152.849 3.188-16.946-4.238-34.086-19.172-42.707l-0.049-0.028c-23.737-13.705-54.358-0.164-59.404 26.777-7.724 41.233-9.128 84.686-2.965 129.403 25.571 185.535 181.03 330.336 367.878 343.176C727.656 927.857 929.6 724.049 909.637 478.524z" ></path></symbol><symbol id="icon-menu-fold" viewBox="0 0 1024 1024"><path d="M85.312 170.688h853.376V256H85.312V170.688z m0 179.328L266.752 512l-181.44 162.048V349.952zM384 469.312h554.688v85.376H384V469.248zM85.312 768h853.376v85.312H85.312V768z" ></path></symbol><symbol id="icon-icon_image" viewBox="0 0 1024 1024"><path d="M85.333333 852.992V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h768a42.666667 42.666667 0 0 1 42.666667 42.666666v640a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-0.341333z m768-157.610667V256H170.666667v493.994667l127.744-127.744a42.666667 42.666667 0 0 1 47.018666-9.045334l126.293334 54.314667 184.789333-146.346667a42.666667 42.666667 0 0 1 59.52 6.485334L853.333333 695.381333zM837.418667 810.666667l-160.853334-196.48-171.818666 136.021333a42.666667 42.666667 0 0 1-43.349334 5.76l-123.093333-52.906667L230.656 810.666667h606.762667zM341.333333 512a85.333333 85.333333 0 1 1 0-170.666667 85.333333 85.333333 0 0 1 0 170.666667z" ></path></symbol><symbol id="icon-icon_chart" viewBox="0 0 1024 1024"><path d="M128 864V128H96v768h896v-32H128z" ></path><path d="M225.6 352h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V385.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M417.6 128h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V161.6A33.6 33.6 0 0 1 417.6 128z" ></path><path d="M609.6 544h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V577.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M801.6 704h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128v-62.4a33.6 33.6 0 0 1 33.6-33.6z" ></path></symbol><symbol id="icon-jichukongjian" viewBox="0 0 1024 1024"><path d="M912 662.016l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 662.016c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.84 271.872 163.072c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.872-163.136 59.712 35.84c19.456 11.712 19.456 30.592 0 42.24z" ></path><path d="M912 501.12l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 501.12c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.904 271.872 163.136c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.936-163.2 59.712 35.904c19.392 11.712 19.392 30.656 0 42.24z" ></path><path d="M912 340.224L559.744 551.68c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 340.224c-19.456-11.584-19.456-30.592 0-42.24l352.32-211.456c9.728-5.76 22.528-8.704 35.2-8.704 12.736 0 25.472 2.88 35.2 8.704l352.32 211.456c19.456 11.648 19.456 30.656 0 42.24z" ></path></symbol><symbol id="icon-icon-relativity" viewBox="0 0 1024 1024"><path d="M352 352v-192a64 64 0 0 1 64-64h448a64 64 0 0 1 64 64v448a64 64 0 0 1-64 64h-192v192a64 64 0 0 1-64 64h-448a64 64 0 0 1-64-64v-448a64 64 0 0 1 64-64h192z m64-192v192h192a64 64 0 0 1 64 64v192h192v-448h-448z m192 512h-192a64 64 0 0 1-64-64v-192h-192v448h448v-192z m0-64v-192h-192v192h192z" ></path></symbol><symbol id="icon-root-list" viewBox="0 0 1024 1024"><path d="M85.333333 85.333333h853.333334v853.333334H85.333333V85.333333z m85.333334 85.333334v682.666666h682.666666V170.666667H170.666667z m85.333333 149.333333h512v85.333333H256v-85.333333z m0 170.666667h341.333333v85.333333H256v-85.333333z" ></path></symbol><symbol id="icon-control-platform" viewBox="0 0 1024 1024"><path d="M512 36.48l426.688 237.056v476.928L512 987.456l-426.688-236.992V273.536L512 36.544zM170.688 379.52v320.704l298.624 165.952V537.6l-298.624-158.08z m384 486.656l298.624-165.952v-320.64L554.688 537.6v328.512zM512 463.744l303.744-160.832L512 134.144 208.256 302.912 512 463.744z" ></path></symbol><symbol id="icon-icon-yonghu" viewBox="0 0 1024 1024"><path d="M511.744 96a253.184 253.184 0 0 1 252.8 252.928c0 91.904-49.216 172.544-122.688 216.832 146.24 50.24 253.632 181.824 253.632 331.584a32 32 0 0 1-64 0c0-156.864-146.432-289.408-319.744-289.408C338.432 607.936 192 740.48 192 897.344a32 32 0 0 1-64 0c0-149.76 107.328-281.28 253.568-331.648a252.992 252.992 0 0 1-122.752-216.768A253.184 253.184 0 0 1 511.744 96z m0 64a189.12 189.12 0 0 0-188.928 188.928 189.12 189.12 0 0 0 188.928 188.928 189.12 189.12 0 0 0 188.8-188.928A189.12 189.12 0 0 0 511.808 160z" ></path></symbol><symbol id="icon-a-shezhi" viewBox="0 0 1024 1024"><path d="M933.868272 511.691752a140.807706 140.807706 0 0 1 90.131728-131.067068 525.562914 525.562914 0 0 0-57.334136-138.64997 139.882962 139.882962 0 0 1-184.948826-184.948826A525.562914 525.562914 0 0 0 643.067068 0a140.376159 140.376159 0 0 1-262.134136 0A525.562914 525.562914 0 0 0 242.282962 57.334136a139.882962 139.882962 0 0 1-184.948826 184.948826A506.698134 506.698134 0 0 0 0 380.932932a140.376159 140.376159 0 0 1 0 262.134136 525.562914 525.562914 0 0 0 57.334136 138.64997 139.882962 139.882962 0 0 1 184.948826 184.948826 525.562914 525.562914 0 0 0 138.64997 57.334136 140.376159 140.376159 0 0 1 262.134136 0 525.562914 525.562914 0 0 0 138.64997-57.334136 139.882962 139.882962 0 0 1 184.948826-184.948826 506.698134 506.698134 0 0 0 57.334136-138.64997A140.807706 140.807706 0 0 1 933.868272 511.691752zM511.691752 652.437809A140.437809 140.437809 0 1 1 652.437809 511.691752 140.499458 140.499458 0 0 1 511.691752 652.437809z" ></path></symbol></svg>',(i=>{var t=(e=(e=document.getElementsByTagName("script"))[e.length-1]).getAttribute("data-injectcss"),e=e.getAttribute("data-disable-injectsvg");if(!e){var n,s,o,r,a,l=function(u,g){g.parentNode.insertBefore(u,g)};if(t&&!i.__iconfont__svg__cssinject__){i.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(u){console&&console.log(u)}}n=function(){var u,g=document.createElement("div");g.innerHTML=i._iconfont_svg_string_5087053,(g=g.getElementsByTagName("svg")[0])&&(g.setAttribute("aria-hidden","true"),g.style.position="absolute",g.style.width=0,g.style.height=0,g.style.overflow="hidden",g=g,(u=document.body).firstChild?l(g,u.firstChild):u.appendChild(g))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),n()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(o=n,r=i.document,a=!1,h(),r.onreadystatechange=function(){r.readyState=="complete"&&(r.onreadystatechange=null,c())})}function c(){a||(a=!0,o())}function h(){try{r.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}c()}})(window);const cE=[Kr],Ks=i=>{!i||Ks.installed||(i.use(St),cE.forEach(t=>{const e=t.name||t.__name;e&&i.component(e,t)}),Ks.installed=!0)},hE={install:Ks,EmsEditor:Kr,EmsPreview:Dd};ht.EmsEditor=Kr,ht.EmsPreview=Dd,ht.default=hE,ht.install=Ks,Object.defineProperties(ht,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
840
+ `;_.pushEditOperations([],[{range:new Qt.Range(Z.lineNumber,Z.column,Z.lineNumber,Z.column),text:he,forceMoveMarkers:!0}],()=>null),a.focus()},rt=T=>{var Qd,Vd;if(!l)return;const L=l.getModel();if(!L)return;const _=((Qd=T.target)==null?void 0:Qd.position)||T.position;if(!_)return;const Z=L.getOffsetAt(_),Et=L.getValue(),Ue=Fv(Et,Z).path||[];if(!Ue.length)return;const Ld=it(Ue),Js=x(y.value,Ue),uE=Ue.length?String(Ue[Ue.length-1]):"",js=(Vd=s.value)==null?void 0:Vd.getBoundingClientRect();m.value={visible:!0,x:js?T.event.browserEvent.clientX-js.left:0,y:js?T.event.browserEvent.clientY-js.top:0,path:Ld,pathParts:Ue,key:uE,value:Js}},Ct=T=>{var _;T.event.preventDefault(),T.event.stopPropagation();const L=(_=s.value)==null?void 0:_.getBoundingClientRect();u.value={visible:!0,x:L?T.event.browserEvent.clientX-L.left:0,y:L?T.event.browserEvent.clientY-L.top:0}},pt=async()=>{if(!a)return M();const T=a.getModel().getValueInRange(a.getSelection());if(!T)return M();try{await navigator.clipboard.writeText(T)}catch{}M()},ct=async()=>{if(!a)return M();const T=a.getSelection(),L=a.getModel().getValueInRange(T);if(!L)return M();try{await navigator.clipboard.writeText(L),a.executeEdits("custom-cut",[{range:T,text:"",forceMoveMarkers:!0}])}catch{}M()},V=async()=>{if(!a)return M();try{const T=await navigator.clipboard.readText();if(!T)return M();a.executeEdits("custom-paste",[{range:a.getSelection(),text:T,forceMoveMarkers:!0}])}catch{}M()},tt=async()=>{if(!a)return M();try{const T=a.getAction("editor.action.formatDocument");T&&await T.run()}catch{}M()},it=T=>["data",...Array.isArray(T)?T:String(T||"").split(".").filter(Boolean)].map(_=>String(_)).join("."),H=T=>["data",...Array.isArray(T)?T:String(T||"").split(".").filter(Boolean)].map((_,Z)=>{if(Z===0)return"data";const Et=Number(_);return!Number.isNaN(Et)&&String(Et)===String(_)?`[${Et}]`:`.${_}`}).join(""),st=()=>{n("close")};d.onMounted(()=>{a=Qt.editor.create(o.value,{value:e.rule||jv,language:"javascript",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:14}),a.updateOptions({contextmenu:!1}),a.onContextMenu(T=>Ct(T)),a.onMouseDown(()=>M()),a.onKeyDown(()=>M()),h=a.addAction({id:"custom-paste",label:"粘贴",contextMenuGroupId:"9_cutcopypaste",run:async T=>{try{const L=await navigator.clipboard.readText();if(!L)return;T.executeEdits("custom-paste",[{range:T.getSelection(),text:L,forceMoveMarkers:!0}])}catch(L){console.warn("Clipboard read blocked",L)}}}),c=Qt.languages.registerCompletionItemProvider("javascript",{triggerCharacters:["$","."],provideCompletionItems(T,L){const Z=T.getValueInRange(new Qt.Range(L.lineNumber,1,L.lineNumber,L.column)).match(/\$\.[\w$]*$/);if(!Z)return{suggestions:[]};const Et=Z[0].split(".").pop()||"",he=new Qt.Range(L.lineNumber,L.column-Et.length,L.lineNumber,L.column);return{suggestions:Object.keys(w.value||{}).map(Js=>({label:Js,kind:Qt.languages.CompletionItemKind.Variable,insertText:Js,range:he}))}}}),l=Qt.editor.create(r.value,{value:S(y.value),language:"json",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:13,readOnly:!0,contextmenu:!1}),l.onContextMenu(T=>{T.event.preventDefault(),T.event.stopPropagation(),rt(T)}),a.updateOptions({contextmenu:!1}),a.onContextMenu(T=>{Ct(T)}),a.addCommand(Qt.KeyMod.CtrlCmd|Qt.KeyCode.KeyC,()=>pt()),a.addCommand(Qt.KeyMod.CtrlCmd|Qt.KeyCode.KeyX,()=>ct()),a.addCommand(Qt.KeyMod.CtrlCmd|Qt.KeyCode.KeyV,()=>V()),a.onDidChangeModelContent(()=>{try{const T=a.getValue();n("update:rule",T)}catch{}}),document.addEventListener("click",v),document.addEventListener("click",M),mt()}),d.watch(()=>e.rule,T=>{if(!a)return;const L=T||"";a.getValue()!==L&&a.setValue(L)}),d.watch(y,T=>{l&&l.setValue(S(T)),mt()}),d.onBeforeUnmount(()=>{a==null||a.dispose(),l==null||l.dispose(),c==null||c.dispose(),h==null||h.dispose(),u.value.visible=!1,document.removeEventListener("click",v),document.removeEventListener("click",M)});const mt=()=>{p.value=E()};return(T,L)=>(d.openBlock(),d.createElementBlock("div",{class:"json-rule-editor",ref_key:"rootRef",ref:s},[L[2]||(L[2]=d.createElementVNode("div",{class:"editor-header"},[d.createElementVNode("span",null,"数据 JSON(右键选取字段为变量)")],-1)),d.createElementVNode("div",{ref_key:"dataEditorContainer",ref:r,class:"monaco-pane slim"},null,512),m.value.visible?(d.openBlock(),d.createElementBlock("div",{key:0,class:"context-menu",style:d.normalizeStyle({left:m.value.x+"px",top:m.value.y+"px"})},[d.createElementVNode("div",{class:"menu-item",onClick:K},"复制属性"),d.createElementVNode("div",{class:"menu-item",onClick:D},"复制值"),d.createElementVNode("div",{class:"menu-item",onClick:N},"复制属性路径"),d.createElementVNode("div",{class:"menu-item",onClick:k},"设置为变量(并插入解析函数)"),L[0]||(L[0]=d.createElementVNode("div",{class:"menu-item disabled"},"设置为全局变量(待实现)",-1))],4)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"editor-header",style:{"margin-top":"8px"}},[L[1]||(L[1]=d.createElementVNode("span",null,"解析函数(JS,需 return 数值)",-1)),d.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:b},"填充示例")]),d.createElementVNode("div",{ref_key:"editorContainer",ref:o,class:"monaco-pane"},null,512),u.value.visible?(d.openBlock(),d.createElementBlock("div",{key:1,class:"context-menu",style:d.normalizeStyle({left:u.value.x+"px",top:u.value.y+"px"})},[d.createElementVNode("div",{class:"menu-item",onClick:ct},"剪切"),d.createElementVNode("div",{class:"menu-item",onClick:pt},"复制"),d.createElementVNode("div",{class:"menu-item",onClick:V},"粘贴"),d.createElementVNode("div",{class:"menu-item",onClick:tt},"格式化")],4)):d.createCommentVNode("",!0),d.createElementVNode("div",Uv,[d.createElementVNode("div",null,[d.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:mt},"运行测试"),d.createElementVNode("span",Kv,d.toDisplayString(p.value),1),f.value?(d.openBlock(),d.createElementBlock("span",Jv,"错误:"+d.toDisplayString(f.value),1)):d.createCommentVNode("",!0)]),d.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:st},"确认生效")]),L[3]||(L[3]=d.createElementVNode("div",{class:"helper"},[d.createElementVNode("div",{class:"helper-title"},"使用方式"),d.createElementVNode("p",null,"data 为当前 JSON 数据,$ 为全局变量对象;右键字段插入示例代码(data.xxx 或 $?.xxx)。在下方函数里 return 需要展示的数值。")],-1))],512))}},[["__scopeId","data-v-a757bc46"]]),Yv={class:"dataBox"},Hv={style:{padding:"10px 0","margin-bottom":"10px"}},_v={style:{padding:"10px 0","margin-bottom":"10px"}},Wv={class:"param-table"},qv={class:"param-table__toolbar"},Xv={style:{padding:"10px 0"}},$v={style:{padding:"10px 0","margin-bottom":"10px"}},Zv=vt({__name:"data",setup(i){const t=d.inject("getCurCell")(),e=d.inject("topoApi"),n=d.ref(t.getData()),s=d.ref(n.value.dataSource.parse||""),o=d.ref(!1),r=d.ref({text1:""}),a=d.ref(null),l={},c=d.ref({}),h=async()=>{if(a.value===null)return St.ElMessage.error("请获取数据!"),!1;if(!s.value){const w={};g.value.bindName.forEach(C=>{w[C]=""}),s.value=`return ${JSON.stringify(w)}`}g.value.type==="opcua"&&(c.value={payload:a.value,pointTemp:n.value.dataSource.point}),g.value.type==="http"&&(c.value=a.value),o.value=!0},u=()=>{a.value=null},g=d.ref(n.value.dataSource);Array.isArray(g.value.params)||(g.value.params=[]);const f=async()=>{if(!g.value.path)return St.ElMessage.error("请输入点位地址!"),!1;const w=await e.readPoints([g.value.path]);console.log(w),a.value=w[0]||{error:"未找到数据"}},p=()=>{g.value.params.push({label:"",value:""})},m=w=>{g.value.params.splice(w,1)},b=async()=>{if(!g.value.httpUrl)return St.ElMessage.error("请输入请求地址"),!1;let w={};for(let x of g.value.params)if(x.label)w[x.label]=x.value;else return St.ElMessage.error("请完善请求参数"),!1;let C;try{C=await e.httpRequest({...g.value,params:w})}catch{C={error:"数据获取失败"}}a.value=C,console.log(C)},y=()=>{var C,x;if(((C=g.value.name)==null?void 0:C.length)==0)return St.ElMessage.error("请选择数据关联!"),!1;if(a.value===null)return St.ElMessage.error("请获取数据!"),!1;let w={};if(s.value)try{const E=new Function("data","$",s.value);g.value.type=="opcua"?w=E({payload:a.value,pointTemp:n.value.dataSource.point},r.value):g.value.type=="http"&&(w=E(a.value,r.value)),w.dataSource={parse:s.value},t.setData(w),o.value=!1}catch(E){St.ElMessage.error("解析失败!"),console.log(E)}else w[g.value.name]=((x=a.value)==null?void 0:x.value)||"--",w.dataSource={parse:null},t.setData(w),o.value=!1};return(w,C)=>{const x=d.resolveComponent("el-option"),E=d.resolveComponent("el-select"),S=d.resolveComponent("el-form-item"),v=d.resolveComponent("el-input"),M=d.resolveComponent("el-button"),k=d.resolveComponent("el-radio"),I=d.resolveComponent("el-radio-group"),O=d.resolveComponent("el-table-column"),R=d.resolveComponent("el-table"),K=d.resolveComponent("el-form"),D=d.resolveComponent("el-dialog");return d.openBlock(),d.createElementBlock("div",Yv,[d.createVNode(K,{class:"panelList",size:"small"},{default:d.withCtx(()=>[d.createVNode(S,{label:"数据类型"},{default:d.withCtx(()=>[d.createVNode(E,{modelValue:g.value.type,"onUpdate:modelValue":C[0]||(C[0]=N=>g.value.type=N),onChange:u},{default:d.withCtx(()=>[d.createVNode(x,{value:"none",label:"无"}),d.createVNode(x,{value:"opcua",label:"OPCUA点位"}),d.createVNode(x,{value:"http",label:"HTTP接口"}),d.createVNode(x,{value:"mock",label:"Mock模拟"})]),_:1},8,["modelValue"])]),_:1}),g.value.type!=="none"?(d.openBlock(),d.createBlock(S,{key:0,label:"数据关联"},{default:d.withCtx(()=>[d.createVNode(E,{modelValue:g.value.bindName,"onUpdate:modelValue":C[1]||(C[1]=N=>g.value.bindName=N),multiple:"","collapse-tags":""},{default:d.withCtx(()=>[d.createVNode(x,{value:"text",label:"文本"}),d.createVNode(x,{value:"color",label:"字体颜色"}),d.createVNode(x,{value:"backgroundColor",label:"背景颜色"}),d.createVNode(x,{value:"model",label:"内部变量"})]),_:1},8,["modelValue"])]),_:1})):d.createCommentVNode("",!0),g.value.type==="opcua"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(S,{label:"点位地址"},{default:d.withCtx(()=>[d.createVNode(v,{modelValue:g.value.path,"onUpdate:modelValue":C[2]||(C[2]=N=>g.value.path=N)},null,8,["modelValue"])]),_:1}),d.createElementVNode("div",Hv,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:f},{default:d.withCtx(()=>[...C[10]||(C[10]=[d.createTextVNode("获取数据",-1)])]),_:1})]),d.createVNode(zr,{modelValue:a.value,"onUpdate:modelValue":C[3]||(C[3]=N=>a.value=N),style:{height:"400px"}},null,8,["modelValue"]),d.createElementVNode("div",_v,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:h},{default:d.withCtx(()=>[...C[11]||(C[11]=[d.createTextVNode("数据解析",-1)])]),_:1})])],64)):d.createCommentVNode("",!0),g.value.type==="http"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createVNode(S,{label:"接口类型"},{default:d.withCtx(()=>[d.createVNode(I,{modelValue:g.value.httpType,"onUpdate:modelValue":C[4]||(C[4]=N=>g.value.httpType=N)},{default:d.withCtx(()=>[d.createVNode(k,{value:"GET"},{default:d.withCtx(()=>[...C[12]||(C[12]=[d.createTextVNode("GET",-1)])]),_:1}),d.createVNode(k,{value:"POST"},{default:d.withCtx(()=>[...C[13]||(C[13]=[d.createTextVNode("POST",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),d.createVNode(S,{label:"接口地址"},{default:d.withCtx(()=>[d.createVNode(v,{modelValue:g.value.httpUrl,"onUpdate:modelValue":C[5]||(C[5]=N=>g.value.httpUrl=N),autosize:{minRows:2,maxRows:4},type:"textarea"},null,8,["modelValue"])]),_:1}),d.createElementVNode("div",Wv,[d.createElementVNode("div",qv,[C[15]||(C[15]=d.createElementVNode("div",null,"请求参数",-1)),d.createVNode(M,{size:"small",type:"primary",plain:"",onClick:p},{default:d.withCtx(()=>[...C[14]||(C[14]=[d.createTextVNode("新增参数",-1)])]),_:1})]),d.createVNode(R,{data:g.value.params,size:"small",border:"",height:"180"},{default:d.withCtx(()=>[d.createVNode(O,{prop:"label",label:"字段名"},{default:d.withCtx(({row:N})=>[d.createVNode(v,{modelValue:N.label,"onUpdate:modelValue":j=>N.label=j,modelModifiers:{trim:!0},placeholder:"字段名"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),d.createVNode(O,{prop:"value",label:"值"},{default:d.withCtx(({row:N})=>[d.createVNode(v,{modelValue:N.value,"onUpdate:modelValue":j=>N.value=j,placeholder:"值"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),d.createVNode(O,{label:"操作",width:"60"},{default:d.withCtx(({$index:N})=>[d.createVNode(M,{link:"",type:"danger",onClick:j=>m(N)},{default:d.withCtx(()=>[...C[16]||(C[16]=[d.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])]),d.createElementVNode("div",Xv,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:b},{default:d.withCtx(()=>[...C[17]||(C[17]=[d.createTextVNode("获取数据",-1)])]),_:1})]),d.createVNode(zr,{modelValue:a.value,"onUpdate:modelValue":C[6]||(C[6]=N=>a.value=N),style:{height:"300px"}},null,8,["modelValue"]),d.createElementVNode("div",$v,[d.createVNode(M,{type:"primary",style:{width:"100%"},onClick:h},{default:d.withCtx(()=>[...C[18]||(C[18]=[d.createTextVNode("数据解析",-1)])]),_:1})])],64)):d.createCommentVNode("",!0),g.value.type==="mock"?(d.openBlock(),d.createBlock(zr,{key:3,modelValue:n.value,"onUpdate:modelValue":C[7]||(C[7]=N=>n.value=N),style:{height:"600px"}},null,8,["modelValue"])):d.createCommentVNode("",!0)]),_:1}),d.createVNode(D,{modelValue:o.value,"onUpdate:modelValue":C[9]||(C[9]=N=>o.value=N),title:"实时数据解析",width:"800","align-center":""},{default:d.withCtx(()=>[d.createVNode(Gv,{"model-value":c.value,rule:s.value,"onUpdate:rule":C[8]||(C[8]=N=>s.value=N),globals:l,onClose:y},null,8,["model-value","rule"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-7768146c"]]),tE={class:"prop"},eE={class:"tabContainer"},nE=["onClick"],iE={class:"activeLine"},sE={key:0,class:"main"},oE=vt({__name:"index",setup(i){const t=Kt(),e=Pn(),{targetType:n,tabs:s,activeTab:o,cellId:r}=be.storeToRefs(e),a=h=>{o.value=h};let l=r.value?t.graph.getCellById(r.value):null;d.provide("getCurCell",()=>l),d.provide("cellId",r);const c=d.ref(!0);return d.watch(r,()=>{console.log("cellId",r.value),l=t.graph.getCellById(r.value),c.value=!1,d.nextTick(()=>{c.value=!0})}),(h,u)=>(d.openBlock(),d.createElementBlock("div",tE,[d.createElementVNode("div",eE,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(s),(g,f)=>(d.openBlock(),d.createElementBlock("div",{key:f,class:d.normalizeClass(["tabItem",{active:d.unref(o)===f}]),onClick:p=>a(f)},[d.createTextVNode(d.toDisplayString(g)+" ",1),d.withDirectives(d.createElementVNode("div",iE,null,512),[[d.vShow,d.unref(o)===f]])],10,nE))),128))]),c.value?(d.openBlock(),d.createElementBlock("div",sE,[d.unref(n)==="blank"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.unref(o)===0?(d.openBlock(),d.createBlock(Tv,{key:0})):d.createCommentVNode("",!0)],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.unref(o)===0?(d.openBlock(),d.createBlock(Dv,{key:0})):d.unref(o)===1?(d.openBlock(),d.createBlock(Zv,{key:1})):d.createCommentVNode("",!0)],64))])):d.createCommentVNode("",!0)]))}},[["__scopeId","data-v-b4a4e65e"]]),rE={class:"ems-editor"},aE={class:"ems-editor__workspace"},Kr=Object.assign({name:"EmsEditor"},{__name:"index",props:{services:{type:Object,default:()=>({})},width:{type:Number,default:1920},height:{type:Number,default:1080}},emits:["ready","exit"],setup(i,{emit:t}){const e=On(),n=Pn(),s=Kt(),o=i,r={setItem(l,c){c!==void 0&&window.localStorage.setItem(l,JSON.stringify(c))},getItem(l){let c=window.localStorage.getItem(l);return JSON.parse(c)},removeItem(l){window.localStorage.removeItem(l)},clear(){window.localStorage.clear()}},a={async getAllMenus(){var c;let l=[];return(c=o.services)!=null&&c.getAllMenus?l=await o.services.getAllMenus()||[]:l=r.getItem("menus")||[{id:"1",parentId:"0",name:"首页",children:[{id:crypto.randomUUID(),parentId:"1",name:"首页概览",style:{},value:{}}]}],r.setItem("menus",l),l},async getMenu(l){var c;if((c=o.services)!=null&&c.getMenu)return await o.services.getMenu(l)||{};{let h=r.getItem("menus")||[];for(let u of h)if(u.children){for(let g of u.children)if(g.id===l)return g}return{}}},async addMenu({parent:l,parentNameNew:c,name:h}){var u;if((u=o.services)!=null&&u.addMenu)return await o.services.addMenu({parent:l,parentNameNew:c,name:h});{let g=r.getItem("menus")||[],f=null,p=crypto.randomUUID(),m="";if(l==="0")m=crypto.randomUUID(),f={name:h,id:p,parentId:m,style:{},value:{}},g.push({name:c,id:m,parentId:"0",children:[f]});else{const b=g.find(y=>y.id===l);b&&(m=b.id,b.children.push({name:h,id:p,parentId:m,style:{},value:{}}),f={name:h,id:p,parentId:m,style:{},value:{}})}return r.setItem(p,f),r.setItem("menus",g),f}},async saveMenus(l){var h;const c=await this.getMenu(l.id);if(c&&(c.name=l.name,c.style=l.style,c.value=l.value),(h=o.services)!=null&&h.saveMenus)await o.services.saveMenus(l);else{let u=r.getItem("menus")||[];for(let g of u){const f=g.children.findIndex(p=>p.id===l.id);f>-1&&(g.children[f]=l)}r.setItem("menus",u),r.setItem(l.id,l)}},async removeMenu(l){var c;if((c=o.services)!=null&&c.removeMenu)await o.services.removeMenu(l);else{let h=r.getItem("menus")||[];if(this.getMenu(l)){const g=h.find(f=>{var p;return(p=f.children)==null?void 0:p.some(m=>m.id===l)});g&&(g.children=g.children.filter(f=>f.id!==l),g.children.length===0&&(h=h.filter(f=>f.id!==g.id))),r.setItem("menus",h)}r.removeItem(l)}},async getDeviceList(){var c;let l=[];if((c=o.services)!=null&&c.getDeviceList)l=await o.services.getDeviceList();else{const h=[{id:"2010960121314734082",deviceName:"干接点",deviceType:"OTHERS",deviceNo:"DIDO",templateName:"DIDO_test.json",templateId:"2010957702564474882",pointList:[{id:"2010957702568669185",templateId:"2010957702564474882",tag:"en_sts",name:"使能STS",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0001, uint, AB]",description:"0:失能;1:启动使能;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863489",templateId:"2010957702564474882",tag:"connect_statu",name:"电网闸",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0002, uint, AB]",description:"0:断开;1:闭合;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863490",templateId:"2010957702564474882",tag:"icb_sign",name:"外源断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0003, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863491",templateId:"2010957702564474882",tag:"icb_ctrl",name:"外源断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0004, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863492",templateId:"2010957702564474882",tag:"lcb_sign",name:"负载断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0005, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863493",templateId:"2010957702564474882",tag:"lcb_ctrl",name:"负载断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0006, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863494",templateId:"2010957702564474882",tag:"dg_sign",name:"发动机启停状态",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0007, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863495",templateId:"2010957702564474882",tag:"dg_ctrl",name:"发动机控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0008, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863496",templateId:"2010957702564474882",tag:"ats",name:"ATS反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0009, uint, AB]",description:"0:合闸柴发;1:合闸电网;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null}]}];for(const u of h){const g=u.pointList;g&&Array.isArray(g)&&g.length>0&&l.push({id:u.id,label:u.deviceName,data:u,children:g.map(f=>({id:f.id,label:f.name,data:{...f,nodeId:`ns=1;s=${u.deviceType}.${f.tag}`}}))})}}return l},async readPoints(l){var c,h;return(c=o.services)!=null&&c.readPoints?await((h=o.services)==null?void 0:h.readPoints(l)):[{nodeId:"ns=1;s=PV.RatReActivePowerPer",value:1,statusCode:"Good",sourceTimestamp:"2026-01-16T02:26:37.533Z",serverTimestamp:"2026-01-16T02:26:37.533Z",aa:[{vv:1},{vv1:1}]}]},async httpRequest(l){var c,h;return(c=o.services)!=null&&c.httpRequest?await((h=o.services)==null?void 0:h.httpRequest(l)):{}}};return d.provide("topoApi",a),d.onMounted(()=>{}),d.onBeforeUnmount(()=>{e.$reset(),n.$reset(),s.$reset()}),(l,c)=>(d.openBlock(),d.createElementBlock("div",rE,[d.createElementVNode("div",aE,[d.createVNode(Bv),d.createVNode(jx,{width:o.width,height:o.height},null,8,["width","height"]),d.createVNode(oE)])]))}}),lE={class:"previewBox"},Dd=vt({__name:"preview",props:{menu:{type:Object,required:!0},service:{type:Object,required:!0}},setup(i){const t=i,e=t.service,n=d.ref(null);let s=null;const o=Dr();let r=[];const a=c=>{if(console.warn("进入画布数据初始化"),!c.cells)return!1;r.length>0&&(e.unsubscribe(r.map(h=>h.path)),r=[]);for(let h of c.cell)if(h.data&&h.data.datasource&&h.data.datasource.type!=="none"){const u=s.getCellById(h.id),g=h.data.datasource;if(g.type=="opcua"&&g.path&&g.parse)try{e.readPoints([g.path]).then(f=>{f&&f.length>0&&l(f[0],g,u)}),r.push({nodeId:g.path,callBack:f=>l(f,g,u)})}catch(f){ElMessage.error("解析失败!"),console.log(f)}if(g.type=="http"&&g.parse)try{const f=new Function("data","$",g.parse);e.httpRequest(g).then(p=>{if(p){let m=f(p,{});u.setData(m)}})}catch(f){ElMessage.error("解析失败!"),console.log(f)}}e.subscribe(r.map(h=>h.path)),e.onEvent(h=>{h.event==="data-changed"&&h.payload&&h.payload.nodeId&&r.forEach((u,g)=>{u.nodeId==h.payload.nodeId&&r[g].callBack(h.payload)})})},l=(c,h,u)=>{const g=new Function("data","$",h.parse);let f={};parse?f=g({payload:c,pointTemp:h.point},{}):f.text=res.payload.value||"--",u.setData(f)};return d.watch(()=>t.menu,c=>{s&&(s.clearCells(),s.resize(c.style.width,c.style.height),s.fromJSON(c.value),s.drawBackground({color:c.style.backgroundColor,image:c.style.backgroundImage,size:"cover"}),a(c.value))},{deep:!0}),d.onMounted(()=>{const{width:c,height:h}=t.menu.style;s=new B({container:n.value,width:c,height:h,interacting:!1,selecting:!1,keyboard:!1,mousewheel:!1,panning:!1}),Qr(),s.fromJSON(t.menu.value),s.drawBackground({color:t.menu.style.backgroundColor,image:t.menu.style.backgroundImage,size:"cover"})}),d.onBeforeUnmount(()=>{s&&s.dispose()}),(c,h)=>(d.openBlock(),d.createElementBlock("div",lE,[d.createElementVNode("div",{ref_key:"container",ref:n,class:"ems-preview"},null,512),d.createVNode(d.unref(o))]))}},[["__scopeId","data-v-a3e1da78"]]);window._iconfont_svg_string_5087053='<svg><symbol id="icon-jiesuo1" viewBox="0 0 1024 1024"><path d="M768.25422 0q48.810328 0 94.061569 18.303873t80.333664 50.33565 56.436941 74.740814 21.354518 91.519364l0 150.49851-123.042701 0 0-122.025819q0-64.063555-36.099305-99.654419t-97.112214-35.590864q-54.911619 0-88.468719 35.590864t-33.5571 99.654419l0 124.059583-128.12711 0 0-152.532274q0-48.810328 19.320755-91.519364t53.386296-74.740814 80.333664-50.33565 101.179742-18.303873zM766.220457 693.513406l0 87.451837 0 47.793446q0 27.455809-9.660377 51.860973t-26.438928 41.692155-39.658391 27.455809-50.33565 10.168818l-514.542205 0q-27.455809 0-49.82721-9.660377t-38.641509-26.438928-24.913605-39.14995-8.643496-47.793446l0-323.368421q0-28.472691 19.829196-47.793446t46.268123-19.320755l629.449851 0q28.472691 0 47.793446 19.320755t19.320755 47.793446l0 179.988083z" ></path></symbol><symbol id="icon-jianlizuhe1" viewBox="0 0 1024 1024"><path d="M891.8 65h-632c-35.5 0-64.4 28.8-64.4 64.4v125.3h-66.3c-35.5 0-64.4 28.8-64.4 64.4v575.6c0 35.5 28.8 64.4 64.4 64.4h572.6c35.5 0 64.4-28.8 64.4-64.4v-65.3h125.6c35.5 0 64.4-28.8 64.4-64.4V129.4c0.1-35.6-28.7-64.4-64.3-64.4zM702.2 894.6v0.1c0 0.1-0.2 0.2-0.2 0.2H129.1c-0.1 0-0.2-0.2-0.2-0.2V319v-0.1c0-0.1 0.2-0.2 0.2-0.2h0.1l66.3 0.1S194 794.1 194 797.4c0 17.7 14.3 32 32 32h476.2v65.2zM259.5 129.2c0-0.1 0.2-0.2 0.2-0.2h632.2c0.1 0 0.2 0.2 0.2 0.2V765.1c0 0.1-0.2 0.2-0.2 0.2H259.5V129.2z" ></path></symbol><symbol id="icon-suoding1" viewBox="0 0 1024 1024"><path d="M860.069521 429.487623h-73.242947v-170.422692C786.826574 116.337371 670.888872 0.272064 528.240764 0.272064c-142.650515 0-258.720638 116.065307-258.720638 258.792867v170.422692H196.339779c-35.281619 0-63.879618 28.612445-63.879618 63.91814v466.606275c0 35.368294 28.597999 63.983146 63.879618 63.983147h663.79234c35.29125 0 63.821834-28.614852 63.821835-63.983147V493.405763c-0.004815-35.310511-28.590776-63.91814-63.884433-63.91814zM564.114664 738.867504v101.889098c0 4.552855-3.765556 8.388233-8.385825 8.388233h-54.91355c-4.678053 0-8.446016-3.837785-8.446017-8.388233v-101.889098c-25.800316-13.201114-43.672259-39.665939-43.672259-70.68362 0-43.888947 35.613874-79.584681 79.481153-79.584682 43.932285 0 79.548567 35.695734 79.548566 79.584682 0.062599 31.020089-17.811752 57.482507-43.612068 70.68362z m123.476036-309.379881H368.883605v-166.202091c0-87.912723 71.55278-159.501618 159.417351-159.501618s159.287337 71.588895 159.287337 159.501618l0.002407 166.202091z" ></path></symbol><symbol id="icon-xingzhuang-juxing" viewBox="0 0 1024 1024"><path d="M864 896H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h704a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zM192 832h640V192H192v640z" ></path></symbol><symbol id="icon-shuzhi" viewBox="0 0 1024 1024"><path d="M921.6 21.162667H102.4c-37.546667 0-68.266667 30.788267-68.266667 68.4032v819.950933c0 37.546667 30.72 68.334933 68.266667 68.334933h819.2c37.546667 0 68.266667-30.72 68.266667-68.266666V89.4976c0-37.546667-30.72-68.334933-68.266667-68.334933z m0 854.2208c0 20.48-13.653333 34.133333-34.133333 34.133333h-750.933334c-20.48 0-34.133333-13.653333-34.133333-34.133333V123.767467c0-20.548267 13.653333-34.2016 34.133333-34.2016h750.933334c20.48 0 34.133333 13.653333 34.133333 34.133333v751.616z" ></path><path d="M274.568533 365.704533h36.0448V658.090667h-47.9232V423.458133a165.546667 165.546667 0 0 1-66.7648 35.6352v-47.5136c13.1072-3.2768 27.0336-9.0112 41.7792-17.2032 14.7456-9.0112 27.0336-18.432 36.864-28.672z m200.2944-5.7344c28.2624 0 51.6096 8.192 70.0416 24.576 18.0224 16.384 27.0336 37.2736 27.0336 63.488 0 25.3952-9.8304 48.3328-28.672 69.2224-11.4688 12.288-31.9488 27.8528-60.6208 47.104-29.9008 19.6608-47.9232 36.864-54.4768 51.6096h144.1792v42.1888H368.366933c0-29.9008 9.4208-55.7056 29.0816-77.824 10.6496-12.288 33.1776-30.3104 67.1744-53.6576 18.8416-13.1072 31.9488-24.1664 40.1408-32.768 12.6976-14.336 19.2512-29.9008 19.2512-46.2848 0-15.9744-4.5056-27.8528-12.6976-35.6352-8.6016-7.7824-21.2992-11.4688-38.0928-11.4688-18.0224 0-31.5392 6.144-40.5504 18.432-9.0112 11.4688-13.9264 29.0816-14.7456 52.0192H370.005333c0.4096-32.768 9.8304-58.9824 28.672-79.0528 19.2512-21.2992 44.6464-31.9488 76.1856-31.9488z m244.1216 0c29.4912 0 53.6576 6.9632 71.68 21.2992 17.6128 14.336 26.624 33.9968 26.624 59.392 0 31.9488-16.384 53.248-48.7424 63.8976 17.2032 5.3248 30.72 13.1072 39.7312 23.7568a61.986133 61.986133 0 0 1 14.7456 42.5984c0 27.0336-9.4208 49.152-28.2624 66.3552-19.6608 17.6128-45.4656 26.624-77.4144 26.624-30.3104 0-54.8864-7.7824-73.3184-23.3472-20.48-17.2032-31.9488-42.5984-34.4064-75.3664h48.7424c0.8192 18.8416 6.5536 33.5872 18.0224 43.8272 10.24 9.4208 23.7568 14.336 40.5504 14.336 18.432 0 33.1776-5.3248 43.8272-15.5648a47.240533 47.240533 0 0 0 14.336-34.816c0-16.7936-5.3248-29.0816-15.1552-36.864-9.8304-8.192-24.1664-11.8784-43.008-11.8784h-20.48V488.106667h20.48c17.2032 0 30.3104-3.6864 39.3216-11.0592 8.6016-7.3728 13.1072-18.432 13.1072-32.768 0-14.336-4.096-24.9856-11.8784-32.3584-8.6016-7.3728-21.2992-11.0592-38.0928-11.0592-17.2032 0-30.3104 4.096-39.7312 12.6976-9.8304 8.6016-15.5648 21.7088-17.2032 39.3216h-47.104c2.4576-29.4912 13.1072-52.4288 32.768-68.8128 18.432-16.384 42.1888-24.1664 70.8608-24.1664z" ></path></symbol><symbol id="icon-xianduan" viewBox="0 0 1024 1024"><path d="M0.034239 975.503207L976.222236 0l48.400922 48.435162L48.435162 1023.945217z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M512.122 272.146c-247.216 0-412.027 247.216-412.027 247.216s164.811 247.216 412.027 247.216c247.216 0 412.027-247.216 412.027-247.216S759.217 272.146 512.122 272.146z m0 410.207c-90.537 0-163.962-73.424-163.962-163.962s73.424-163.962 163.962-163.962c90.537 0 163.962 73.424 163.962 163.962-0.122 90.658-73.424 163.962-163.962 163.962z m-82.406-163.476c0 21.482 8.86 42.841 24.03 58.012s36.53 24.03 58.012 24.03 42.841-8.86 58.012-24.03c15.17-15.17 24.03-36.53 24.03-58.012s-8.86-42.841-24.03-58.012c-15.17-15.17-36.53-24.03-58.012-24.03s-42.841 8.86-58.012 24.03c-15.17 15.292-24.03 36.53-24.03 58.012z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M437.996 697.519V586.722H327.195c-61.187 0-110.797 49.61-110.797 110.797 0 61.195 49.61 110.797 110.797 110.797 61.192 0 110.801-49.602 110.801-110.797z m55.399 0c0 91.789-74.411 166.195-166.2 166.195C235.41 863.714 161 789.308 161 697.519c0-91.789 74.41-166.195 166.195-166.195h166.2v166.195z m92.328 0V586.722H696.52c61.195 0 110.796 49.61 110.796 110.797 0 61.195-49.601 110.797-110.796 110.797-61.188 0-110.797-49.602-110.797-110.797z m-55.399 0c0 91.789 74.41 166.195 166.196 166.195 91.789 0 166.199-74.406 166.199-166.195 0-91.789-74.41-166.195-166.199-166.195H530.324v166.195z m-92.328-369.324v110.801H327.195c-61.187 0-110.797-49.61-110.797-110.801 0-61.188 49.61-110.797 110.797-110.797 61.192 0 110.801 49.609 110.801 110.797z m55.399 0c0-91.785-74.411-166.195-166.2-166.195C235.41 162 161 236.41 161 328.195c0 91.789 74.41 166.199 166.195 166.199h166.2V328.195z m92.328 0v110.801H696.52c61.195 0 110.796-49.61 110.796-110.801 0-61.188-49.601-110.797-110.796-110.797-61.188 0-110.797 49.609-110.797 110.797z m-55.399 0C530.324 236.41 604.734 162 696.52 162c91.789 0 166.199 74.41 166.199 166.195 0 91.789-74.41 166.199-166.199 166.199H530.324V328.195z m0 0" ></path></symbol><symbol id="icon-tupian" viewBox="0 0 1024 1024"><path d="M335.36 440.32c38.4 0 71.68-30.72 71.68-71.68 0-38.4-30.72-71.68-71.68-71.68-38.4 0-71.68 30.72-71.68 71.68 2.56 40.96 33.28 71.68 71.68 71.68z m0 0M652.8 396.8L445.44 691.2 337.92 540.16 158.72 793.6h704L652.8 396.8z m0 0" ></path><path d="M934.4 107.52H89.6c-20.48 0-35.84 15.36-35.84 35.84V883.2c0 20.48 15.36 35.84 35.84 35.84h844.8c20.48 0 35.84-15.36 35.84-35.84V143.36c0-20.48-15.36-35.84-35.84-35.84z m-35.84 739.84H125.44V176.64h775.68v670.72h-2.56z m0 0" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M64.1 66v303.7l39.5-1.3c13.6-110.8 102.6-186.4 153.2-199 50.7-12.6 148.3 1.1 148.3 1.1s-1.3 625.2-1.3 669.2c0 44.1-59.3 63-59.3 63l-79 1.3-1.2 55.4h493.1v-54.1h-90.2c-40.8-3.8-65.4-56.7-65.4-56.7l1.1-684.5s61.8-11.3 150.8 5.1c89 16.4 164.3 204.1 164.3 204.1h39.5V66H64.1z" ></path></symbol><symbol id="icon-xinjian" viewBox="0 0 1024 1024"><path d="M618 958.5H202c-44.8 0-81.3-34.1-81.3-76v-740c0-41.9 36.5-76 81.3-76h610.5c44.8 0 81.3 34.1 81.3 76v521.9c0 12.8-10.4 23.1-23.1 23.1s-23.1-10.4-23.1-23.1V142.5c0-16.4-15.7-29.7-35-29.7H202c-19.3 0-35 13.3-35 29.7v740c0 16.4 15.7 29.7 35 29.7h416c12.8 0 23.1 10.4 23.1 23.1 0.1 12.8-10.3 23.2-23.1 23.2z" ></path><path d="M738.4 360.5H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h462.5c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1zM584.3 595.1H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h308.3c12.8 0 23.1 10.4 23.1 23.1 0 12.7-10.3 23.1-23.1 23.1zM878.8 826.3H614.6c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h264.3c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1z" ></path><path d="M746.7 958.5c-12.8 0-23.1-10.4-23.1-23.1V671.1c0-12.8 10.4-23.1 23.1-23.1 12.8 0 23.1 10.4 23.1 23.1v264.3c0 12.7-10.3 23.1-23.1 23.1z" ></path></symbol><symbol id="icon-qingkong" viewBox="0 0 1024 1024"><path d="M274.56 798.997333l19.434667-25.130666-33.792 68.565333a18.133333 18.133333 0 0 0 11.562666 25.536l59.733334 16a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.818667 35.626667-35.989333 45.290666-48.469333l19.456-25.130667-33.813333 68.565333a18.133333 18.133333 0 0 0 11.562667 25.536l84.48 22.634667a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-35.989333 45.269333-48.469333l19.456-25.130667-33.813333 68.565333A18.133333 18.133333 0 0 0 535.530667 938.666667l72.106666 19.328a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-36.010667 45.269334-48.490667l19.456-25.130667-33.813334 68.586667a18.133333 18.133333 0 0 0 11.584 25.514667l86.421334 23.338666 3.84-0.213333c13.269333-0.704 29.056-5.034667 43.84-12.8 29.781333-15.701333 48.170667-43.2 52.181333-78.250667 2.133333-18.517333 4.778667-38.549333 8.405333-63.530666 1.642667-11.221333 2.944-20.010667 6.229334-41.834667 11.050667-73.322667 14.634667-101.034667 17.130666-133.674667l0.938667-12.373333 2.837333-2.922667 12.330667-1.344a41.813333 41.813333 0 0 0 24.810667-11.221333c10.730667-10.24 14.805333-25.386667 11.093333-42.197333l-37.546667-171.584c-3.029333-13.696-11.264-27.946667-23.146666-39.829334-11.648-11.626667-25.92-20.138667-39.893334-23.893333L723.626667 331.306667l-2.261334-3.925334L774.250667 130.133333c8.32-31.061333-11.754667-63.744-44.970667-72.64l-79.509333-21.312c-33.194667-8.896-66.922667 9.365333-75.264 40.426667l-52.842667 197.269333-3.925333 2.261334-118.101334-31.637334c-13.994667-3.754667-30.634667-3.498667-46.506666 0.746667-16.256 4.352-30.506667 12.586667-39.957334 22.933333l-118.314666 129.792c-11.605333 12.714667-15.658667 27.84-11.52 42.090667 4.16 14.229333 15.850667 25.194667 32.896 30.528l13.610666 4.266667 2.133334 3.882666-3.626667 13.802667c-21.12 79.850667-52.885333 136.917333-85.717333 150.890667-47.530667 20.202667-72.938667 49.429333-78.421334 85.034666-5.034667 32.682667 9.28 67.114667 37.589334 91.541334l22.037333 8.341333 74.666667 20.010667a42.666667 42.666667 0 0 0 41.216-11.050667c15.274667-15.274667 26.88-28.032 34.837333-38.293333z m551.381333-396.565333c14.144 3.797333 29.952 19.2 32.768 32l34.56 157.781333a10.666667 10.666667 0 0 1-13.184 12.586667L240.64 433.493333a10.666667 10.666667 0 0 1-5.12-17.493333l108.8-119.36c8.832-9.685333 30.229333-15.146667 44.373333-11.349333l141.333334 37.866666a21.333333 21.333333 0 0 0 26.133333-15.082666l58.304-217.642667a21.333333 21.333333 0 0 1 26.133333-15.082667l77.056 20.650667a21.333333 21.333333 0 0 1 15.082667 26.133333l-58.325333 217.642667a21.333333 21.333333 0 0 0 15.082666 26.112l136.448 36.565333zM315.456 701.568c-33.664 45.141333-64.597333 79.082667-92.8 101.802667l-5.909333 4.778666-2.837334 0.597334-88.106666-24.106667-2.922667-3.2c-13.034667-14.165333-19.370667-31.04-16.981333-46.592 3.285333-21.333333 22.058667-39.338667 53.205333-52.586667 31.722667-13.482667 59.818667-47.104 82.922667-99.904 10.026667-22.954667 18.88-48.725333 26.389333-76.586666l3.882667-14.4 3.904-2.261334 566.165333 151.701334 2.346667 3.306666-0.789334 12.224c-1.984 30.592-30.336 229.397333-32.128 244.906667-2.346667 20.416-11.306667 34.986667-27.605333 44.394667a73.237333 73.237333 0 0 1-21.397333 8.106666l-5.013334 0.725334-60.373333-16.170667 11.242667-20.288c8.277333-14.976 22.656-43.84 43.093333-86.613333a21.12 21.12 0 0 0-9.962667-28.16l-3.136-1.493334a21.333333 21.333333 0 0 0-26.261333 6.485334c-33.642667 45.056-64.533333 78.912-92.672 101.546666l-5.909333 4.757334-2.837334 0.597333-52.544-14.08 11.114667-20.266667c3.562667-6.485333 7.04-13.013333 10.453333-19.626666 7.04-13.504 17.898667-35.797333 32.597334-66.816a21.290667 21.290667 0 0 0-9.984-28.309334l-3.029334-1.450666a21.333333 21.333333 0 0 0-26.368 6.442666c-33.6 45.013333-64.469333 78.826667-92.608 101.482667l-5.909333 4.757333-2.837333 0.597334-52.138667-13.973334 11.114667-20.266666c3.242667-5.888 6.72-12.416 10.453333-19.626667 6.997333-13.461333 17.962667-35.946667 32.896-67.434667a20.970667 20.970667 0 0 0-10.112-28.010666l-3.328-1.536a21.333333 21.333333 0 0 0-26.069333 6.613333c-33.642667 45.056-64.554667 78.976-92.778667 101.696l-5.909333 4.757333-2.837334 0.597334-32.64-8.746667 11.093334-20.245333c3.541333-6.506667 7.04-13.034667 10.453333-19.626667 6.976-13.482667 17.941333-35.968 32.874667-67.456a21.056 21.056 0 0 0-10.069334-28.074667l-3.242666-1.514666a21.333333 21.333333 0 0 0-26.154667 6.549333z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M202.666667 256h-42.666667a32 32 0 0 1 0-64h704a32 32 0 0 1 0 64H266.666667v565.333333a53.333333 53.333333 0 0 0 53.333333 53.333334h384a53.333333 53.333333 0 0 0 53.333333-53.333334V352a32 32 0 0 1 64 0v469.333333c0 64.8-52.533333 117.333333-117.333333 117.333334H320c-64.8 0-117.333333-52.533333-117.333333-117.333334V256z m224-106.666667a32 32 0 0 1 0-64h170.666666a32 32 0 0 1 0 64H426.666667z m-32 288a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z m170.666666 0a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z" ></path></symbol><symbol id="icon-jia" viewBox="0 0 1024 1024"><path d="M580.722174 437.990403 580.722174 78.171384 436.794158 78.171384 436.794158 437.990403 76.975139 437.990403 76.975139 581.918419 436.794158 581.918419 436.794158 941.737438 580.722174 941.737438 580.722174 581.918419 940.542216 581.918419 940.542216 437.990403Z" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M814.805 128a51.179 51.179 0 0 1 51.179 51.179V844.01a51.179 51.179 0 0 1-51.179 51.157H201.173a51.179 51.179 0 0 1-51.178-51.157V179.179A51.179 51.179 0 0 1 201.173 128h613.654zM329.024 434.837a51.093 51.093 0 0 1-51.179-51.093V179.157h-76.672v664.854h613.76V179.179H738.22v204.48a51.179 51.179 0 0 1-51.179 51.178H329.024z m0-51.093h357.995V179.157H329.024v204.587z m357.91 204.501a25.557 25.557 0 1 1 0.085 51.072H329.024a25.536 25.536 0 1 1 0-51.072h357.91z" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M293.632 645.248c91.456-86.784 183.552-220.544 346.88-211.584a20.8 20.8 0 0 1 20.224 20.8v59.392a21.376 21.376 0 0 0 34.432 16.64l211.2-171.2a21.376 21.376 0 0 0 0-33.28l-210.24-192a21.952 21.952 0 0 0-35.648 16.64v60.096a20.8 20.8 0 0 1-17.856 20.8c-280.704 61.76-351.36 391.104-348.992 413.696zM192 960a138.176 138.176 0 0 1-129.984-152.512L64 832V192a116.48 116.48 0 0 1 128-128c-108.8 1.024 256 0 256 0a28.224 28.224 0 0 1 29.76 27.84A35.968 35.968 0 0 1 448 128H192a53.12 53.12 0 0 0-64 64c1.536-37.504 0 640 0 640a52.8 52.8 0 0 0 64 64c49.536-0.448 640 0 640 0a52.48 52.48 0 0 0 64-64c-0.64 105.152 0-256 0-256a36.48 36.48 0 0 1 27.264-38.4A33.216 33.216 0 0 1 960 576v256a116.48 116.48 0 0 1-128 128c-50.56-0.448-640 0-640 0z" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M512 384a42.666667 42.666667 0 0 1 42.666667 42.666667v341.333333h130.986666a21.333333 21.333333 0 0 1 14.250667 5.504l2.688 2.901333a21.333333 21.333333 0 0 1-4.010667 29.866667l-165.717333 126.464a32 32 0 0 1-38.912-0.042667l-164.48-126.464A21.333333 21.333333 0 0 1 342.442667 768H469.333333v-341.333333a42.666667 42.666667 0 0 1 42.666667-42.666667z m229.674667 298.368A42.666667 42.666667 0 0 1 746.666667 597.333333H853.333333V170.666667H170.666667v426.666666h106.666666a42.666667 42.666667 0 0 1 0 85.333334H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333334V170.666667a85.333333 85.333333 0 0 1 85.333334-85.333334h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333334v426.666666a85.333333 85.333333 0 0 1-85.333334 85.333334h-106.666666z" ></path></symbol><symbol id="icon-huanyuan" viewBox="0 0 1024 1024"><path d="M909.637 478.524c-15.444-189.946-167.065-345.049-356.655-364.38-99.805-10.176-193.011 16.474-267.901 67.887l18.467-68.842c5.725-21.337-6.933-43.274-28.27-48.998s-43.274 6.934-48.998 28.271l-41.455 154.536c-5.724 21.337 6.933 43.273 28.271 48.998l154.536 41.455c21.337 5.724 43.273-6.934 48.998-28.271 5.724-21.337-6.934-43.274-28.271-48.998l-54.194-14.538c58.917-39.301 131.457-59.686 208.999-52.061 147.885 14.543 268.327 132.461 285.589 280.053 23.02 196.82-133.879 363.973-327.45 358.219-135.107-4.017-252.98-96.111-294.938-224.602-17.513-53.632-18.92-105.027-9.92-152.849 3.188-16.946-4.238-34.086-19.172-42.707l-0.049-0.028c-23.737-13.705-54.358-0.164-59.404 26.777-7.724 41.233-9.128 84.686-2.965 129.403 25.571 185.535 181.03 330.336 367.878 343.176C727.656 927.857 929.6 724.049 909.637 478.524z" ></path></symbol><symbol id="icon-menu-fold" viewBox="0 0 1024 1024"><path d="M85.312 170.688h853.376V256H85.312V170.688z m0 179.328L266.752 512l-181.44 162.048V349.952zM384 469.312h554.688v85.376H384V469.248zM85.312 768h853.376v85.312H85.312V768z" ></path></symbol><symbol id="icon-icon_image" viewBox="0 0 1024 1024"><path d="M85.333333 852.992V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h768a42.666667 42.666667 0 0 1 42.666667 42.666666v640a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-0.341333z m768-157.610667V256H170.666667v493.994667l127.744-127.744a42.666667 42.666667 0 0 1 47.018666-9.045334l126.293334 54.314667 184.789333-146.346667a42.666667 42.666667 0 0 1 59.52 6.485334L853.333333 695.381333zM837.418667 810.666667l-160.853334-196.48-171.818666 136.021333a42.666667 42.666667 0 0 1-43.349334 5.76l-123.093333-52.906667L230.656 810.666667h606.762667zM341.333333 512a85.333333 85.333333 0 1 1 0-170.666667 85.333333 85.333333 0 0 1 0 170.666667z" ></path></symbol><symbol id="icon-icon_chart" viewBox="0 0 1024 1024"><path d="M128 864V128H96v768h896v-32H128z" ></path><path d="M225.6 352h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V385.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M417.6 128h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V161.6A33.6 33.6 0 0 1 417.6 128z" ></path><path d="M609.6 544h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V577.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M801.6 704h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128v-62.4a33.6 33.6 0 0 1 33.6-33.6z" ></path></symbol><symbol id="icon-jichukongjian" viewBox="0 0 1024 1024"><path d="M912 662.016l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 662.016c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.84 271.872 163.072c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.872-163.136 59.712 35.84c19.456 11.712 19.456 30.592 0 42.24z" ></path><path d="M912 501.12l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 501.12c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.904 271.872 163.136c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.936-163.2 59.712 35.904c19.392 11.712 19.392 30.656 0 42.24z" ></path><path d="M912 340.224L559.744 551.68c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 340.224c-19.456-11.584-19.456-30.592 0-42.24l352.32-211.456c9.728-5.76 22.528-8.704 35.2-8.704 12.736 0 25.472 2.88 35.2 8.704l352.32 211.456c19.456 11.648 19.456 30.656 0 42.24z" ></path></symbol><symbol id="icon-icon-relativity" viewBox="0 0 1024 1024"><path d="M352 352v-192a64 64 0 0 1 64-64h448a64 64 0 0 1 64 64v448a64 64 0 0 1-64 64h-192v192a64 64 0 0 1-64 64h-448a64 64 0 0 1-64-64v-448a64 64 0 0 1 64-64h192z m64-192v192h192a64 64 0 0 1 64 64v192h192v-448h-448z m192 512h-192a64 64 0 0 1-64-64v-192h-192v448h448v-192z m0-64v-192h-192v192h192z" ></path></symbol><symbol id="icon-root-list" viewBox="0 0 1024 1024"><path d="M85.333333 85.333333h853.333334v853.333334H85.333333V85.333333z m85.333334 85.333334v682.666666h682.666666V170.666667H170.666667z m85.333333 149.333333h512v85.333333H256v-85.333333z m0 170.666667h341.333333v85.333333H256v-85.333333z" ></path></symbol><symbol id="icon-control-platform" viewBox="0 0 1024 1024"><path d="M512 36.48l426.688 237.056v476.928L512 987.456l-426.688-236.992V273.536L512 36.544zM170.688 379.52v320.704l298.624 165.952V537.6l-298.624-158.08z m384 486.656l298.624-165.952v-320.64L554.688 537.6v328.512zM512 463.744l303.744-160.832L512 134.144 208.256 302.912 512 463.744z" ></path></symbol><symbol id="icon-icon-yonghu" viewBox="0 0 1024 1024"><path d="M511.744 96a253.184 253.184 0 0 1 252.8 252.928c0 91.904-49.216 172.544-122.688 216.832 146.24 50.24 253.632 181.824 253.632 331.584a32 32 0 0 1-64 0c0-156.864-146.432-289.408-319.744-289.408C338.432 607.936 192 740.48 192 897.344a32 32 0 0 1-64 0c0-149.76 107.328-281.28 253.568-331.648a252.992 252.992 0 0 1-122.752-216.768A253.184 253.184 0 0 1 511.744 96z m0 64a189.12 189.12 0 0 0-188.928 188.928 189.12 189.12 0 0 0 188.928 188.928 189.12 189.12 0 0 0 188.8-188.928A189.12 189.12 0 0 0 511.808 160z" ></path></symbol><symbol id="icon-a-shezhi" viewBox="0 0 1024 1024"><path d="M933.868272 511.691752a140.807706 140.807706 0 0 1 90.131728-131.067068 525.562914 525.562914 0 0 0-57.334136-138.64997 139.882962 139.882962 0 0 1-184.948826-184.948826A525.562914 525.562914 0 0 0 643.067068 0a140.376159 140.376159 0 0 1-262.134136 0A525.562914 525.562914 0 0 0 242.282962 57.334136a139.882962 139.882962 0 0 1-184.948826 184.948826A506.698134 506.698134 0 0 0 0 380.932932a140.376159 140.376159 0 0 1 0 262.134136 525.562914 525.562914 0 0 0 57.334136 138.64997 139.882962 139.882962 0 0 1 184.948826 184.948826 525.562914 525.562914 0 0 0 138.64997 57.334136 140.376159 140.376159 0 0 1 262.134136 0 525.562914 525.562914 0 0 0 138.64997-57.334136 139.882962 139.882962 0 0 1 184.948826-184.948826 506.698134 506.698134 0 0 0 57.334136-138.64997A140.807706 140.807706 0 0 1 933.868272 511.691752zM511.691752 652.437809A140.437809 140.437809 0 1 1 652.437809 511.691752 140.499458 140.499458 0 0 1 511.691752 652.437809z" ></path></symbol></svg>',(i=>{var t=(e=(e=document.getElementsByTagName("script"))[e.length-1]).getAttribute("data-injectcss"),e=e.getAttribute("data-disable-injectsvg");if(!e){var n,s,o,r,a,l=function(u,g){g.parentNode.insertBefore(u,g)};if(t&&!i.__iconfont__svg__cssinject__){i.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(u){console&&console.log(u)}}n=function(){var u,g=document.createElement("div");g.innerHTML=i._iconfont_svg_string_5087053,(g=g.getElementsByTagName("svg")[0])&&(g.setAttribute("aria-hidden","true"),g.style.position="absolute",g.style.width=0,g.style.height=0,g.style.overflow="hidden",g=g,(u=document.body).firstChild?l(g,u.firstChild):u.appendChild(g))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),n()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(o=n,r=i.document,a=!1,h(),r.onreadystatechange=function(){r.readyState=="complete"&&(r.onreadystatechange=null,c())})}function c(){a||(a=!0,o())}function h(){try{r.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}c()}})(window);const cE=[Kr],Ks=i=>{!i||Ks.installed||(i.use(St),cE.forEach(t=>{const e=t.name||t.__name;e&&i.component(e,t)}),Ks.installed=!0)},hE={install:Ks,EmsEditor:Kr,EmsPreview:Dd};ht.EmsEditor=Kr,ht.EmsPreview=Dd,ht.default=hE,ht.install=Ks,Object.defineProperties(ht,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});