china-mobile-international-custom-components 0.1.23 → 0.1.25
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/es/AddOrEditSupplierDialog.mjs +2 -2
- package/es/AgentDetail.mjs +5 -5
- package/es/ApplicationTypeTag.mjs +3 -3
- package/es/AuthSection.mjs +2 -2
- package/es/AutoShowTooltip.mjs +1 -1
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +5 -5
- package/es/CodeView.mjs +1 -1
- package/es/CommonTagsList.mjs +62 -62
- package/es/CreateMcpForm.mjs +6 -6
- package/es/CustomSidebar.mjs +1 -1
- package/es/CustomTitle.mjs +1 -1
- package/es/CustomToggle.mjs +11 -11
- package/es/DialogContainer.mjs +5 -5
- package/es/DocSyncSelect.mjs +4 -4
- package/es/FileDisplay.mjs +1 -1
- package/es/FilePreview.mjs +9 -9
- package/es/FileUploader.mjs +2 -2
- package/es/ImageComponent.mjs +5 -0
- package/es/Logo.mjs +2 -2
- package/es/McpFormDialog.mjs +1 -1
- package/es/McpParamsSet.mjs +4 -4
- package/es/MdEditor.mjs +3 -3
- package/es/PageContainer.mjs +2 -2
- package/es/ParameterTable.mjs +2 -2
- package/es/PublishRecord.mjs +6 -6
- package/es/RadioGroup.mjs +5 -5
- package/es/SourcePublish.mjs +6 -6
- package/es/Table.mjs +2 -2
- package/es/WorkFlowDialog.mjs +3 -3
- package/es/WorkflowComponent.mjs +1 -1
- package/es/assets/DocSyncSelect.css +1 -1
- package/es/assets/ImageComponent.css +0 -0
- package/es/chunks/AddAgentDialog.BEDSZ4er.js +244 -0
- package/es/chunks/AddDialog.RuOrCghd.js +1969 -0
- package/es/chunks/BackBar.Ck5CV5ZM.js +629 -0
- package/es/chunks/CreatePluginDialog.DbQIt3Mz.js +775 -0
- package/es/chunks/CreateWorkflow.CIYJ3nGZ.js +268 -0
- package/es/chunks/ImageComponent.BgYVT3ZJ.js +74 -0
- package/es/chunks/ToolList.2k07ztsY.js +106 -0
- package/es/chunks/config.B_uTnClF.js +47 -0
- package/es/chunks/config.e_OOovlY.js +358 -0
- package/es/chunks/i18n.9cHOVn6X.js +4049 -0
- package/es/chunks/index.BGLAHzZm.js +398 -0
- package/es/chunks/index.CCNAKdQj.js +1279 -0
- package/es/chunks/index.CXIY0q5X.js +172 -0
- package/es/chunks/index.Cv9pn5nk.js +4 -0
- package/es/chunks/index.CyiNa6lr.js +256 -0
- package/es/chunks/index.JG8-HCzk.js +29609 -0
- package/es/chunks/layout.BAvYghmE.js +650 -0
- package/es/chunks/layout.Iob_aYQ7.js +26 -0
- package/es/chunks/view.BSjGhafy.js +824 -0
- package/es/index.mjs +66 -66
- package/lib/CommonTagsList.js +1 -1
- package/lib/DocSyncSelect.js +1 -1
- package/lib/ImageComponent.js +1 -0
- package/lib/assets/DocSyncSelect.css +1 -1
- package/lib/assets/ImageComponent.css +0 -0
- package/lib/chunks/ImageComponent.CdPLM_LX.js +1 -0
- package/lib/chunks/index.Cbkv4rXa.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
import { openBlock as L, createElementBlock as V, renderSlot as Xt, createElementVNode as u, createVNode as f, unref as l, withCtx as A, createTextVNode as C, toDisplayString as d, normalizeClass as Kt, computed as ot, Fragment as Jt, createCommentVNode as Yt, reactive as qt, createApp as Qt, h as Zt } from "vue";
|
|
2
|
+
import { _ as Z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
+
import { u as wt } from "./i18n.9cHOVn6X.js";
|
|
4
|
+
import { C as at } from "./index.CXIY0q5X.js";
|
|
5
|
+
import { Plugin2 as kt, IconOptimization as te, IconTimmer as W, IconFeedback as ee } from "color-message-aibox-vue";
|
|
6
|
+
import { ElIcon as $ } from "element-plus";
|
|
7
|
+
import { HtmlNodeModel as re, HtmlNode as ne } from "@logicflow/core";
|
|
8
|
+
import '../assets/view.css';const oe = {}, ae = { class: "card-container" };
|
|
9
|
+
function se(t, e) {
|
|
10
|
+
return L(), V("div", ae, [
|
|
11
|
+
Xt(t.$slots, "default", {}, void 0, !0)
|
|
12
|
+
]);
|
|
13
|
+
}
|
|
14
|
+
const ya = /* @__PURE__ */ Z(oe, [["render", se], ["__scopeId", "data-v-66a93c71"]]), ie = { class: "process-card" }, ce = { class: "process-card__row" }, ue = { class: "process-card__item" }, le = { class: "process-card__label" }, fe = { class: "process-card__value" }, de = { class: "process-card__item" }, pe = { class: "process-card__label" }, _e = { class: "process-card__item" }, he = { class: "process-card__label" }, ge = { class: "process-card__value" }, ye = { class: "process-card__item" }, be = { class: "process-card__label" }, Te = { class: "process-card__value" }, ve = { class: "process-card__row" }, me = { class: "process-card__item" }, Se = { class: "process-card__label" }, je = { class: "process-card__value" }, Oe = { class: "process-card__item" }, Ae = { class: "process-card__label" }, Ce = { class: "process-card__value" }, $e = {
|
|
15
|
+
__name: "ProcessCard",
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* @description 流程数据对象
|
|
19
|
+
*/
|
|
20
|
+
data: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => ({})
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(t) {
|
|
26
|
+
const { t: e } = wt(), r = (o) => ({
|
|
27
|
+
success: "success",
|
|
28
|
+
fail: "fail",
|
|
29
|
+
2: "fail",
|
|
30
|
+
3: "fail",
|
|
31
|
+
4: "fail",
|
|
32
|
+
6: "fail",
|
|
33
|
+
7: "success",
|
|
34
|
+
8: "fail",
|
|
35
|
+
9: "fail"
|
|
36
|
+
})[o] || "fail", n = (o) => {
|
|
37
|
+
const a = {
|
|
38
|
+
success: e("PROCESS_CARD.STATUS_TEXT_MAP.SUCCESS") || "成功",
|
|
39
|
+
fail: e("PROCESS_CARD.STATUS_TEXT_MAP.FAIL") || "失败"
|
|
40
|
+
}, s = {
|
|
41
|
+
1: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.SUCCESS") || "成功",
|
|
42
|
+
2: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.PENDING") || "挂起",
|
|
43
|
+
3: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.PAUSED") || "暂停",
|
|
44
|
+
4: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.BLOCKED") || "阻塞",
|
|
45
|
+
6: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.PSEUDO_END") || "伪结束",
|
|
46
|
+
7: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.SUCCESS") || "成功",
|
|
47
|
+
8: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.FAIL") || "失败",
|
|
48
|
+
9: e("PROCESS_CARD.FLOW_STATUS_TEXT_MAP.ABORTED") || "中止"
|
|
49
|
+
};
|
|
50
|
+
return a[o] || s[o] || e("PROCESS_CARD.UNKNOWN") || "未知";
|
|
51
|
+
};
|
|
52
|
+
return (o, a) => (L(), V("div", ie, [
|
|
53
|
+
u("div", ce, [
|
|
54
|
+
u("div", ue, [
|
|
55
|
+
u("div", le, [
|
|
56
|
+
f(l($), {
|
|
57
|
+
class: "process-card__icon",
|
|
58
|
+
size: 18
|
|
59
|
+
}, {
|
|
60
|
+
default: A(() => [
|
|
61
|
+
f(l(kt))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}),
|
|
65
|
+
C(" " + d(l(e)("PROCESS_CARD.POINT_TYPE") || "流程点类型:"), 1)
|
|
66
|
+
]),
|
|
67
|
+
u("div", fe, d(t.data?.type?.name || t.data?.nodeName || "-"), 1)
|
|
68
|
+
]),
|
|
69
|
+
u("div", de, [
|
|
70
|
+
u("div", pe, [
|
|
71
|
+
f(l($), {
|
|
72
|
+
class: "process-card__icon",
|
|
73
|
+
size: 20
|
|
74
|
+
}, {
|
|
75
|
+
default: A(() => [
|
|
76
|
+
f(l(te))
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
C(" " + d(l(e)("PROCESS_CARD.STATUS") || "状态:"), 1)
|
|
81
|
+
]),
|
|
82
|
+
u("div", {
|
|
83
|
+
class: Kt(["process-card__value", r(t.data?.status || t.data?.state)])
|
|
84
|
+
}, d(n(t.data?.status || t.data?.state)), 3)
|
|
85
|
+
]),
|
|
86
|
+
u("div", _e, [
|
|
87
|
+
u("div", he, [
|
|
88
|
+
f(l($), {
|
|
89
|
+
class: "process-card__icon",
|
|
90
|
+
size: 18
|
|
91
|
+
}, {
|
|
92
|
+
default: A(() => [
|
|
93
|
+
f(l(W))
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}),
|
|
97
|
+
C(" " + d(l(e)("PROCESS_CARD.REQUEST_TIME") || "请求时间:"), 1)
|
|
98
|
+
]),
|
|
99
|
+
u("div", ge, d(t.data?.startTime || "-"), 1)
|
|
100
|
+
]),
|
|
101
|
+
u("div", ye, [
|
|
102
|
+
u("div", be, [
|
|
103
|
+
f(l($), {
|
|
104
|
+
class: "process-card__icon",
|
|
105
|
+
size: 18
|
|
106
|
+
}, {
|
|
107
|
+
default: A(() => [
|
|
108
|
+
f(l(W))
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
C(" " + d(l(e)("PROCESS_CARD.OVERALL_TIME") || "整体耗时:"), 1)
|
|
113
|
+
]),
|
|
114
|
+
u("div", Te, d(t.data?.executeTime || t.data?.time || "-"), 1)
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
u("div", ve, [
|
|
118
|
+
u("div", me, [
|
|
119
|
+
u("div", Se, [
|
|
120
|
+
f(l($), {
|
|
121
|
+
class: "process-card__icon",
|
|
122
|
+
size: 18
|
|
123
|
+
}, {
|
|
124
|
+
default: A(() => [
|
|
125
|
+
f(l(W))
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}),
|
|
129
|
+
C(" " + d(l(e)("PROCESS_CARD.END_TIME") || "结束时间:"), 1)
|
|
130
|
+
]),
|
|
131
|
+
u("div", je, d(t.data?.endTime || "-"), 1)
|
|
132
|
+
]),
|
|
133
|
+
u("div", Oe, [
|
|
134
|
+
u("div", Ae, [
|
|
135
|
+
f(l($), {
|
|
136
|
+
class: "process-card__icon",
|
|
137
|
+
size: 18
|
|
138
|
+
}, {
|
|
139
|
+
default: A(() => [
|
|
140
|
+
f(l(ee))
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
C(" " + d(l(e)("PROCESS_CARD.TOKENS") || "Tokens:"), 1)
|
|
145
|
+
]),
|
|
146
|
+
u("div", Ce, d(t.data?.tokens || "-"), 1)
|
|
147
|
+
])
|
|
148
|
+
])
|
|
149
|
+
]));
|
|
150
|
+
}
|
|
151
|
+
}, we = /* @__PURE__ */ Z($e, [["__scopeId", "data-v-ecb7080b"]]), Pe = { class: "process-detail" }, Ee = { class: "mb-12" }, xe = { class: "mb-12" }, De = {
|
|
152
|
+
__name: "ProcessDetail",
|
|
153
|
+
props: {
|
|
154
|
+
detailData: {
|
|
155
|
+
type: Object,
|
|
156
|
+
default: () => ({})
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
setup(t) {
|
|
160
|
+
const { t: e } = wt(), r = t, n = ot(() => r.detailData?.nodeType == "start" ? r.detailData?.responseJson || JSON.stringify(r.detailData?.outputData) : r.detailData?.requestJson || JSON.stringify(r.detailData?.inputData)), o = ot(() => r.detailData?.status == "fail" ? r.detailData?.errorMsg || "" : r.detailData?.responseJson || JSON.stringify(r.detailData?.outputData));
|
|
161
|
+
return (a, s) => (L(), V("div", Pe, [
|
|
162
|
+
u("h4", null, d(l(e)("PROCESS_DETAIL.POINT") || "流程点详情"), 1),
|
|
163
|
+
f(we, { data: t.detailData }, null, 8, ["data"]),
|
|
164
|
+
u("h4", Ee, d(l(e)("PROCESS_DETAIL.INPUT") || "输入"), 1),
|
|
165
|
+
f(at, {
|
|
166
|
+
class: "mb-12",
|
|
167
|
+
code: n.value,
|
|
168
|
+
showCopy: "",
|
|
169
|
+
theme: "dark"
|
|
170
|
+
}, null, 8, ["code"]),
|
|
171
|
+
t.detailData?.nodeType != "start" ? (L(), V(Jt, { key: 0 }, [
|
|
172
|
+
u("h4", xe, d(l(e)("PROCESS_DETAIL.OUTPUT") || "输出"), 1),
|
|
173
|
+
f(at, {
|
|
174
|
+
code: o.value,
|
|
175
|
+
showCopy: "",
|
|
176
|
+
theme: "dark"
|
|
177
|
+
}, null, 8, ["code"])
|
|
178
|
+
], 64)) : Yt("", !0)
|
|
179
|
+
]));
|
|
180
|
+
}
|
|
181
|
+
}, ba = /* @__PURE__ */ Z(De, [["__scopeId", "data-v-2d336899"]]);
|
|
182
|
+
var Pt = typeof global == "object" && global && global.Object === Object && global, Ie = typeof self == "object" && self && self.Object === Object && self, g = Pt || Ie || Function("return this")(), w = g.Symbol, Et = Object.prototype, Me = Et.hasOwnProperty, Re = Et.toString, D = w ? w.toStringTag : void 0;
|
|
183
|
+
function Ne(t) {
|
|
184
|
+
var e = Me.call(t, D), r = t[D];
|
|
185
|
+
try {
|
|
186
|
+
t[D] = void 0;
|
|
187
|
+
var n = !0;
|
|
188
|
+
} catch {
|
|
189
|
+
}
|
|
190
|
+
var o = Re.call(t);
|
|
191
|
+
return n && (e ? t[D] = r : delete t[D]), o;
|
|
192
|
+
}
|
|
193
|
+
var Ue = Object.prototype, Fe = Ue.toString;
|
|
194
|
+
function Le(t) {
|
|
195
|
+
return Fe.call(t);
|
|
196
|
+
}
|
|
197
|
+
var Ve = "[object Null]", ze = "[object Undefined]", st = w ? w.toStringTag : void 0;
|
|
198
|
+
function N(t) {
|
|
199
|
+
return t == null ? t === void 0 ? ze : Ve : st && st in Object(t) ? Ne(t) : Le(t);
|
|
200
|
+
}
|
|
201
|
+
function U(t) {
|
|
202
|
+
return t != null && typeof t == "object";
|
|
203
|
+
}
|
|
204
|
+
var k = Array.isArray;
|
|
205
|
+
function z(t) {
|
|
206
|
+
var e = typeof t;
|
|
207
|
+
return t != null && (e == "object" || e == "function");
|
|
208
|
+
}
|
|
209
|
+
var Be = "[object AsyncFunction]", Ge = "[object Function]", We = "[object GeneratorFunction]", He = "[object Proxy]";
|
|
210
|
+
function xt(t) {
|
|
211
|
+
if (!z(t))
|
|
212
|
+
return !1;
|
|
213
|
+
var e = N(t);
|
|
214
|
+
return e == Ge || e == We || e == Be || e == He;
|
|
215
|
+
}
|
|
216
|
+
var H = g["__core-js_shared__"], it = (function() {
|
|
217
|
+
var t = /[^.]+$/.exec(H && H.keys && H.keys.IE_PROTO || "");
|
|
218
|
+
return t ? "Symbol(src)_1." + t : "";
|
|
219
|
+
})();
|
|
220
|
+
function Xe(t) {
|
|
221
|
+
return !!it && it in t;
|
|
222
|
+
}
|
|
223
|
+
var Ke = Function.prototype, Je = Ke.toString;
|
|
224
|
+
function j(t) {
|
|
225
|
+
if (t != null) {
|
|
226
|
+
try {
|
|
227
|
+
return Je.call(t);
|
|
228
|
+
} catch {
|
|
229
|
+
}
|
|
230
|
+
try {
|
|
231
|
+
return t + "";
|
|
232
|
+
} catch {
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return "";
|
|
236
|
+
}
|
|
237
|
+
var Ye = /[\\^$.*+?()[\]{}|]/g, qe = /^\[object .+?Constructor\]$/, Qe = Function.prototype, Ze = Object.prototype, ke = Qe.toString, tr = Ze.hasOwnProperty, er = RegExp(
|
|
238
|
+
"^" + ke.call(tr).replace(Ye, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
239
|
+
);
|
|
240
|
+
function rr(t) {
|
|
241
|
+
if (!z(t) || Xe(t))
|
|
242
|
+
return !1;
|
|
243
|
+
var e = xt(t) ? er : qe;
|
|
244
|
+
return e.test(j(t));
|
|
245
|
+
}
|
|
246
|
+
function nr(t, e) {
|
|
247
|
+
return t?.[e];
|
|
248
|
+
}
|
|
249
|
+
function O(t, e) {
|
|
250
|
+
var r = nr(t, e);
|
|
251
|
+
return rr(r) ? r : void 0;
|
|
252
|
+
}
|
|
253
|
+
var J = O(g, "WeakMap"), ct = Object.create, or = /* @__PURE__ */ (function() {
|
|
254
|
+
function t() {
|
|
255
|
+
}
|
|
256
|
+
return function(e) {
|
|
257
|
+
if (!z(e))
|
|
258
|
+
return {};
|
|
259
|
+
if (ct)
|
|
260
|
+
return ct(e);
|
|
261
|
+
t.prototype = e;
|
|
262
|
+
var r = new t();
|
|
263
|
+
return t.prototype = void 0, r;
|
|
264
|
+
};
|
|
265
|
+
})(), ut = (function() {
|
|
266
|
+
try {
|
|
267
|
+
var t = O(Object, "defineProperty");
|
|
268
|
+
return t({}, "", {}), t;
|
|
269
|
+
} catch {
|
|
270
|
+
}
|
|
271
|
+
})();
|
|
272
|
+
function ar(t, e) {
|
|
273
|
+
for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
|
|
274
|
+
;
|
|
275
|
+
return t;
|
|
276
|
+
}
|
|
277
|
+
var sr = 9007199254740991, ir = /^(?:0|[1-9]\d*)$/;
|
|
278
|
+
function cr(t, e) {
|
|
279
|
+
var r = typeof t;
|
|
280
|
+
return e = e ?? sr, !!e && (r == "number" || r != "symbol" && ir.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
281
|
+
}
|
|
282
|
+
function ur(t, e, r) {
|
|
283
|
+
e == "__proto__" && ut ? ut(t, e, {
|
|
284
|
+
configurable: !0,
|
|
285
|
+
enumerable: !0,
|
|
286
|
+
value: r,
|
|
287
|
+
writable: !0
|
|
288
|
+
}) : t[e] = r;
|
|
289
|
+
}
|
|
290
|
+
function Dt(t, e) {
|
|
291
|
+
return t === e || t !== t && e !== e;
|
|
292
|
+
}
|
|
293
|
+
var lr = Object.prototype, fr = lr.hasOwnProperty;
|
|
294
|
+
function dr(t, e, r) {
|
|
295
|
+
var n = t[e];
|
|
296
|
+
(!(fr.call(t, e) && Dt(n, r)) || r === void 0 && !(e in t)) && ur(t, e, r);
|
|
297
|
+
}
|
|
298
|
+
var pr = 9007199254740991;
|
|
299
|
+
function It(t) {
|
|
300
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= pr;
|
|
301
|
+
}
|
|
302
|
+
function _r(t) {
|
|
303
|
+
return t != null && It(t.length) && !xt(t);
|
|
304
|
+
}
|
|
305
|
+
var hr = Object.prototype;
|
|
306
|
+
function Mt(t) {
|
|
307
|
+
var e = t && t.constructor, r = typeof e == "function" && e.prototype || hr;
|
|
308
|
+
return t === r;
|
|
309
|
+
}
|
|
310
|
+
function gr(t, e) {
|
|
311
|
+
for (var r = -1, n = Array(t); ++r < t; )
|
|
312
|
+
n[r] = e(r);
|
|
313
|
+
return n;
|
|
314
|
+
}
|
|
315
|
+
var yr = "[object Arguments]";
|
|
316
|
+
function lt(t) {
|
|
317
|
+
return U(t) && N(t) == yr;
|
|
318
|
+
}
|
|
319
|
+
var Rt = Object.prototype, br = Rt.hasOwnProperty, Tr = Rt.propertyIsEnumerable, vr = lt(/* @__PURE__ */ (function() {
|
|
320
|
+
return arguments;
|
|
321
|
+
})()) ? lt : function(t) {
|
|
322
|
+
return U(t) && br.call(t, "callee") && !Tr.call(t, "callee");
|
|
323
|
+
};
|
|
324
|
+
function mr() {
|
|
325
|
+
return !1;
|
|
326
|
+
}
|
|
327
|
+
var Nt = typeof exports == "object" && exports && !exports.nodeType && exports, ft = Nt && typeof module == "object" && module && !module.nodeType && module, Sr = ft && ft.exports === Nt, dt = Sr ? g.Buffer : void 0, jr = dt ? dt.isBuffer : void 0, Ut = jr || mr, Or = "[object Arguments]", Ar = "[object Array]", Cr = "[object Boolean]", $r = "[object Date]", wr = "[object Error]", Pr = "[object Function]", Er = "[object Map]", xr = "[object Number]", Dr = "[object Object]", Ir = "[object RegExp]", Mr = "[object Set]", Rr = "[object String]", Nr = "[object WeakMap]", Ur = "[object ArrayBuffer]", Fr = "[object DataView]", Lr = "[object Float32Array]", Vr = "[object Float64Array]", zr = "[object Int8Array]", Br = "[object Int16Array]", Gr = "[object Int32Array]", Wr = "[object Uint8Array]", Hr = "[object Uint8ClampedArray]", Xr = "[object Uint16Array]", Kr = "[object Uint32Array]", c = {};
|
|
328
|
+
c[Lr] = c[Vr] = c[zr] = c[Br] = c[Gr] = c[Wr] = c[Hr] = c[Xr] = c[Kr] = !0;
|
|
329
|
+
c[Or] = c[Ar] = c[Ur] = c[Cr] = c[Fr] = c[$r] = c[wr] = c[Pr] = c[Er] = c[xr] = c[Dr] = c[Ir] = c[Mr] = c[Rr] = c[Nr] = !1;
|
|
330
|
+
function Jr(t) {
|
|
331
|
+
return U(t) && It(t.length) && !!c[N(t)];
|
|
332
|
+
}
|
|
333
|
+
function tt(t) {
|
|
334
|
+
return function(e) {
|
|
335
|
+
return t(e);
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
var Ft = typeof exports == "object" && exports && !exports.nodeType && exports, I = Ft && typeof module == "object" && module && !module.nodeType && module, Yr = I && I.exports === Ft, X = Yr && Pt.process, P = (function() {
|
|
339
|
+
try {
|
|
340
|
+
var t = I && I.require && I.require("util").types;
|
|
341
|
+
return t || X && X.binding && X.binding("util");
|
|
342
|
+
} catch {
|
|
343
|
+
}
|
|
344
|
+
})(), pt = P && P.isTypedArray, qr = pt ? tt(pt) : Jr, Qr = Object.prototype, Zr = Qr.hasOwnProperty;
|
|
345
|
+
function kr(t, e) {
|
|
346
|
+
var r = k(t), n = !r && vr(t), o = !r && !n && Ut(t), a = !r && !n && !o && qr(t), s = r || n || o || a, _ = s ? gr(t.length, String) : [], h = _.length;
|
|
347
|
+
for (var p in t)
|
|
348
|
+
Zr.call(t, p) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
349
|
+
(p == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
350
|
+
o && (p == "offset" || p == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
351
|
+
a && (p == "buffer" || p == "byteLength" || p == "byteOffset") || // Skip index properties.
|
|
352
|
+
cr(p, h))) && _.push(p);
|
|
353
|
+
return _;
|
|
354
|
+
}
|
|
355
|
+
function Lt(t, e) {
|
|
356
|
+
return function(r) {
|
|
357
|
+
return t(e(r));
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
var tn = Lt(Object.keys, Object), en = Object.prototype, rn = en.hasOwnProperty;
|
|
361
|
+
function nn(t) {
|
|
362
|
+
if (!Mt(t))
|
|
363
|
+
return tn(t);
|
|
364
|
+
var e = [];
|
|
365
|
+
for (var r in Object(t))
|
|
366
|
+
rn.call(t, r) && r != "constructor" && e.push(r);
|
|
367
|
+
return e;
|
|
368
|
+
}
|
|
369
|
+
function on(t) {
|
|
370
|
+
return _r(t) ? kr(t) : nn(t);
|
|
371
|
+
}
|
|
372
|
+
var M = O(Object, "create");
|
|
373
|
+
function an() {
|
|
374
|
+
this.__data__ = M ? M(null) : {}, this.size = 0;
|
|
375
|
+
}
|
|
376
|
+
function sn(t) {
|
|
377
|
+
var e = this.has(t) && delete this.__data__[t];
|
|
378
|
+
return this.size -= e ? 1 : 0, e;
|
|
379
|
+
}
|
|
380
|
+
var cn = "__lodash_hash_undefined__", un = Object.prototype, ln = un.hasOwnProperty;
|
|
381
|
+
function fn(t) {
|
|
382
|
+
var e = this.__data__;
|
|
383
|
+
if (M) {
|
|
384
|
+
var r = e[t];
|
|
385
|
+
return r === cn ? void 0 : r;
|
|
386
|
+
}
|
|
387
|
+
return ln.call(e, t) ? e[t] : void 0;
|
|
388
|
+
}
|
|
389
|
+
var dn = Object.prototype, pn = dn.hasOwnProperty;
|
|
390
|
+
function _n(t) {
|
|
391
|
+
var e = this.__data__;
|
|
392
|
+
return M ? e[t] !== void 0 : pn.call(e, t);
|
|
393
|
+
}
|
|
394
|
+
var hn = "__lodash_hash_undefined__";
|
|
395
|
+
function gn(t, e) {
|
|
396
|
+
var r = this.__data__;
|
|
397
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = M && e === void 0 ? hn : e, this;
|
|
398
|
+
}
|
|
399
|
+
function S(t) {
|
|
400
|
+
var e = -1, r = t == null ? 0 : t.length;
|
|
401
|
+
for (this.clear(); ++e < r; ) {
|
|
402
|
+
var n = t[e];
|
|
403
|
+
this.set(n[0], n[1]);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
S.prototype.clear = an;
|
|
407
|
+
S.prototype.delete = sn;
|
|
408
|
+
S.prototype.get = fn;
|
|
409
|
+
S.prototype.has = _n;
|
|
410
|
+
S.prototype.set = gn;
|
|
411
|
+
function yn() {
|
|
412
|
+
this.__data__ = [], this.size = 0;
|
|
413
|
+
}
|
|
414
|
+
function B(t, e) {
|
|
415
|
+
for (var r = t.length; r--; )
|
|
416
|
+
if (Dt(t[r][0], e))
|
|
417
|
+
return r;
|
|
418
|
+
return -1;
|
|
419
|
+
}
|
|
420
|
+
var bn = Array.prototype, Tn = bn.splice;
|
|
421
|
+
function vn(t) {
|
|
422
|
+
var e = this.__data__, r = B(e, t);
|
|
423
|
+
if (r < 0)
|
|
424
|
+
return !1;
|
|
425
|
+
var n = e.length - 1;
|
|
426
|
+
return r == n ? e.pop() : Tn.call(e, r, 1), --this.size, !0;
|
|
427
|
+
}
|
|
428
|
+
function mn(t) {
|
|
429
|
+
var e = this.__data__, r = B(e, t);
|
|
430
|
+
return r < 0 ? void 0 : e[r][1];
|
|
431
|
+
}
|
|
432
|
+
function Sn(t) {
|
|
433
|
+
return B(this.__data__, t) > -1;
|
|
434
|
+
}
|
|
435
|
+
function jn(t, e) {
|
|
436
|
+
var r = this.__data__, n = B(r, t);
|
|
437
|
+
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
438
|
+
}
|
|
439
|
+
function b(t) {
|
|
440
|
+
var e = -1, r = t == null ? 0 : t.length;
|
|
441
|
+
for (this.clear(); ++e < r; ) {
|
|
442
|
+
var n = t[e];
|
|
443
|
+
this.set(n[0], n[1]);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
b.prototype.clear = yn;
|
|
447
|
+
b.prototype.delete = vn;
|
|
448
|
+
b.prototype.get = mn;
|
|
449
|
+
b.prototype.has = Sn;
|
|
450
|
+
b.prototype.set = jn;
|
|
451
|
+
var R = O(g, "Map");
|
|
452
|
+
function On() {
|
|
453
|
+
this.size = 0, this.__data__ = {
|
|
454
|
+
hash: new S(),
|
|
455
|
+
map: new (R || b)(),
|
|
456
|
+
string: new S()
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
function An(t) {
|
|
460
|
+
var e = typeof t;
|
|
461
|
+
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
462
|
+
}
|
|
463
|
+
function G(t, e) {
|
|
464
|
+
var r = t.__data__;
|
|
465
|
+
return An(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
466
|
+
}
|
|
467
|
+
function Cn(t) {
|
|
468
|
+
var e = G(this, t).delete(t);
|
|
469
|
+
return this.size -= e ? 1 : 0, e;
|
|
470
|
+
}
|
|
471
|
+
function $n(t) {
|
|
472
|
+
return G(this, t).get(t);
|
|
473
|
+
}
|
|
474
|
+
function wn(t) {
|
|
475
|
+
return G(this, t).has(t);
|
|
476
|
+
}
|
|
477
|
+
function Pn(t, e) {
|
|
478
|
+
var r = G(this, t), n = r.size;
|
|
479
|
+
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
480
|
+
}
|
|
481
|
+
function E(t) {
|
|
482
|
+
var e = -1, r = t == null ? 0 : t.length;
|
|
483
|
+
for (this.clear(); ++e < r; ) {
|
|
484
|
+
var n = t[e];
|
|
485
|
+
this.set(n[0], n[1]);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
E.prototype.clear = On;
|
|
489
|
+
E.prototype.delete = Cn;
|
|
490
|
+
E.prototype.get = $n;
|
|
491
|
+
E.prototype.has = wn;
|
|
492
|
+
E.prototype.set = Pn;
|
|
493
|
+
function En(t, e) {
|
|
494
|
+
for (var r = -1, n = e.length, o = t.length; ++r < n; )
|
|
495
|
+
t[o + r] = e[r];
|
|
496
|
+
return t;
|
|
497
|
+
}
|
|
498
|
+
var xn = Lt(Object.getPrototypeOf, Object);
|
|
499
|
+
function Dn() {
|
|
500
|
+
this.__data__ = new b(), this.size = 0;
|
|
501
|
+
}
|
|
502
|
+
function In(t) {
|
|
503
|
+
var e = this.__data__, r = e.delete(t);
|
|
504
|
+
return this.size = e.size, r;
|
|
505
|
+
}
|
|
506
|
+
function Mn(t) {
|
|
507
|
+
return this.__data__.get(t);
|
|
508
|
+
}
|
|
509
|
+
function Rn(t) {
|
|
510
|
+
return this.__data__.has(t);
|
|
511
|
+
}
|
|
512
|
+
var Nn = 200;
|
|
513
|
+
function Un(t, e) {
|
|
514
|
+
var r = this.__data__;
|
|
515
|
+
if (r instanceof b) {
|
|
516
|
+
var n = r.__data__;
|
|
517
|
+
if (!R || n.length < Nn - 1)
|
|
518
|
+
return n.push([t, e]), this.size = ++r.size, this;
|
|
519
|
+
r = this.__data__ = new E(n);
|
|
520
|
+
}
|
|
521
|
+
return r.set(t, e), this.size = r.size, this;
|
|
522
|
+
}
|
|
523
|
+
function x(t) {
|
|
524
|
+
var e = this.__data__ = new b(t);
|
|
525
|
+
this.size = e.size;
|
|
526
|
+
}
|
|
527
|
+
x.prototype.clear = Dn;
|
|
528
|
+
x.prototype.delete = In;
|
|
529
|
+
x.prototype.get = Mn;
|
|
530
|
+
x.prototype.has = Rn;
|
|
531
|
+
x.prototype.set = Un;
|
|
532
|
+
var Vt = typeof exports == "object" && exports && !exports.nodeType && exports, _t = Vt && typeof module == "object" && module && !module.nodeType && module, Fn = _t && _t.exports === Vt, ht = Fn ? g.Buffer : void 0;
|
|
533
|
+
ht && ht.allocUnsafe;
|
|
534
|
+
function Ln(t, e) {
|
|
535
|
+
return t.slice();
|
|
536
|
+
}
|
|
537
|
+
function Vn(t, e) {
|
|
538
|
+
for (var r = -1, n = t == null ? 0 : t.length, o = 0, a = []; ++r < n; ) {
|
|
539
|
+
var s = t[r];
|
|
540
|
+
e(s, r, t) && (a[o++] = s);
|
|
541
|
+
}
|
|
542
|
+
return a;
|
|
543
|
+
}
|
|
544
|
+
function zn() {
|
|
545
|
+
return [];
|
|
546
|
+
}
|
|
547
|
+
var Bn = Object.prototype, Gn = Bn.propertyIsEnumerable, gt = Object.getOwnPropertySymbols, Wn = gt ? function(t) {
|
|
548
|
+
return t == null ? [] : (t = Object(t), Vn(gt(t), function(e) {
|
|
549
|
+
return Gn.call(t, e);
|
|
550
|
+
}));
|
|
551
|
+
} : zn;
|
|
552
|
+
function Hn(t, e, r) {
|
|
553
|
+
var n = e(t);
|
|
554
|
+
return k(t) ? n : En(n, r(t));
|
|
555
|
+
}
|
|
556
|
+
function Xn(t) {
|
|
557
|
+
return Hn(t, on, Wn);
|
|
558
|
+
}
|
|
559
|
+
var Y = O(g, "DataView"), q = O(g, "Promise"), Q = O(g, "Set"), yt = "[object Map]", Kn = "[object Object]", bt = "[object Promise]", Tt = "[object Set]", vt = "[object WeakMap]", mt = "[object DataView]", Jn = j(Y), Yn = j(R), qn = j(q), Qn = j(Q), Zn = j(J), y = N;
|
|
560
|
+
(Y && y(new Y(new ArrayBuffer(1))) != mt || R && y(new R()) != yt || q && y(q.resolve()) != bt || Q && y(new Q()) != Tt || J && y(new J()) != vt) && (y = function(t) {
|
|
561
|
+
var e = N(t), r = e == Kn ? t.constructor : void 0, n = r ? j(r) : "";
|
|
562
|
+
if (n)
|
|
563
|
+
switch (n) {
|
|
564
|
+
case Jn:
|
|
565
|
+
return mt;
|
|
566
|
+
case Yn:
|
|
567
|
+
return yt;
|
|
568
|
+
case qn:
|
|
569
|
+
return bt;
|
|
570
|
+
case Qn:
|
|
571
|
+
return Tt;
|
|
572
|
+
case Zn:
|
|
573
|
+
return vt;
|
|
574
|
+
}
|
|
575
|
+
return e;
|
|
576
|
+
});
|
|
577
|
+
var kn = Object.prototype, to = kn.hasOwnProperty;
|
|
578
|
+
function eo(t) {
|
|
579
|
+
var e = t.length, r = new t.constructor(e);
|
|
580
|
+
return e && typeof t[0] == "string" && to.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
581
|
+
}
|
|
582
|
+
var St = g.Uint8Array;
|
|
583
|
+
function et(t) {
|
|
584
|
+
var e = new t.constructor(t.byteLength);
|
|
585
|
+
return new St(e).set(new St(t)), e;
|
|
586
|
+
}
|
|
587
|
+
function ro(t, e) {
|
|
588
|
+
var r = et(t.buffer);
|
|
589
|
+
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
590
|
+
}
|
|
591
|
+
var no = /\w*$/;
|
|
592
|
+
function oo(t) {
|
|
593
|
+
var e = new t.constructor(t.source, no.exec(t));
|
|
594
|
+
return e.lastIndex = t.lastIndex, e;
|
|
595
|
+
}
|
|
596
|
+
var jt = w ? w.prototype : void 0, Ot = jt ? jt.valueOf : void 0;
|
|
597
|
+
function ao(t) {
|
|
598
|
+
return Ot ? Object(Ot.call(t)) : {};
|
|
599
|
+
}
|
|
600
|
+
function so(t, e) {
|
|
601
|
+
var r = et(t.buffer);
|
|
602
|
+
return new t.constructor(r, t.byteOffset, t.length);
|
|
603
|
+
}
|
|
604
|
+
var io = "[object Boolean]", co = "[object Date]", uo = "[object Map]", lo = "[object Number]", fo = "[object RegExp]", po = "[object Set]", _o = "[object String]", ho = "[object Symbol]", go = "[object ArrayBuffer]", yo = "[object DataView]", bo = "[object Float32Array]", To = "[object Float64Array]", vo = "[object Int8Array]", mo = "[object Int16Array]", So = "[object Int32Array]", jo = "[object Uint8Array]", Oo = "[object Uint8ClampedArray]", Ao = "[object Uint16Array]", Co = "[object Uint32Array]";
|
|
605
|
+
function $o(t, e, r) {
|
|
606
|
+
var n = t.constructor;
|
|
607
|
+
switch (e) {
|
|
608
|
+
case go:
|
|
609
|
+
return et(t);
|
|
610
|
+
case io:
|
|
611
|
+
case co:
|
|
612
|
+
return new n(+t);
|
|
613
|
+
case yo:
|
|
614
|
+
return ro(t);
|
|
615
|
+
case bo:
|
|
616
|
+
case To:
|
|
617
|
+
case vo:
|
|
618
|
+
case mo:
|
|
619
|
+
case So:
|
|
620
|
+
case jo:
|
|
621
|
+
case Oo:
|
|
622
|
+
case Ao:
|
|
623
|
+
case Co:
|
|
624
|
+
return so(t);
|
|
625
|
+
case uo:
|
|
626
|
+
return new n();
|
|
627
|
+
case lo:
|
|
628
|
+
case _o:
|
|
629
|
+
return new n(t);
|
|
630
|
+
case fo:
|
|
631
|
+
return oo(t);
|
|
632
|
+
case po:
|
|
633
|
+
return new n();
|
|
634
|
+
case ho:
|
|
635
|
+
return ao(t);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function wo(t) {
|
|
639
|
+
return typeof t.constructor == "function" && !Mt(t) ? or(xn(t)) : {};
|
|
640
|
+
}
|
|
641
|
+
var Po = "[object Map]";
|
|
642
|
+
function Eo(t) {
|
|
643
|
+
return U(t) && y(t) == Po;
|
|
644
|
+
}
|
|
645
|
+
var At = P && P.isMap, xo = At ? tt(At) : Eo, Do = "[object Set]";
|
|
646
|
+
function Io(t) {
|
|
647
|
+
return U(t) && y(t) == Do;
|
|
648
|
+
}
|
|
649
|
+
var Ct = P && P.isSet, Mo = Ct ? tt(Ct) : Io, zt = "[object Arguments]", Ro = "[object Array]", No = "[object Boolean]", Uo = "[object Date]", Fo = "[object Error]", Bt = "[object Function]", Lo = "[object GeneratorFunction]", Vo = "[object Map]", zo = "[object Number]", Gt = "[object Object]", Bo = "[object RegExp]", Go = "[object Set]", Wo = "[object String]", Ho = "[object Symbol]", Xo = "[object WeakMap]", Ko = "[object ArrayBuffer]", Jo = "[object DataView]", Yo = "[object Float32Array]", qo = "[object Float64Array]", Qo = "[object Int8Array]", Zo = "[object Int16Array]", ko = "[object Int32Array]", ta = "[object Uint8Array]", ea = "[object Uint8ClampedArray]", ra = "[object Uint16Array]", na = "[object Uint32Array]", i = {};
|
|
650
|
+
i[zt] = i[Ro] = i[Ko] = i[Jo] = i[No] = i[Uo] = i[Yo] = i[qo] = i[Qo] = i[Zo] = i[ko] = i[Vo] = i[zo] = i[Gt] = i[Bo] = i[Go] = i[Wo] = i[Ho] = i[ta] = i[ea] = i[ra] = i[na] = !0;
|
|
651
|
+
i[Fo] = i[Bt] = i[Xo] = !1;
|
|
652
|
+
function F(t, e, r, n, o, a) {
|
|
653
|
+
var s;
|
|
654
|
+
if (s !== void 0)
|
|
655
|
+
return s;
|
|
656
|
+
if (!z(t))
|
|
657
|
+
return t;
|
|
658
|
+
var _ = k(t);
|
|
659
|
+
if (_)
|
|
660
|
+
s = eo(t);
|
|
661
|
+
else {
|
|
662
|
+
var h = y(t), p = h == Bt || h == Lo;
|
|
663
|
+
if (Ut(t))
|
|
664
|
+
return Ln(t);
|
|
665
|
+
if (h == Gt || h == zt || p && !o)
|
|
666
|
+
s = p ? {} : wo(t);
|
|
667
|
+
else {
|
|
668
|
+
if (!i[h])
|
|
669
|
+
return o ? t : {};
|
|
670
|
+
s = $o(t, h);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
a || (a = new x());
|
|
674
|
+
var rt = a.get(t);
|
|
675
|
+
if (rt)
|
|
676
|
+
return rt;
|
|
677
|
+
a.set(t, s), Mo(t) ? t.forEach(function(T) {
|
|
678
|
+
s.add(F(T, e, r, T, t, a));
|
|
679
|
+
}) : xo(t) && t.forEach(function(T, v) {
|
|
680
|
+
s.set(v, F(T, e, r, v, t, a));
|
|
681
|
+
});
|
|
682
|
+
var Ht = Xn, nt = _ ? void 0 : Ht(t);
|
|
683
|
+
return ar(nt || t, function(T, v) {
|
|
684
|
+
nt && (v = T, T = t[v]), dr(s, v, F(T, e, r, v, t, a));
|
|
685
|
+
}), s;
|
|
686
|
+
}
|
|
687
|
+
var oa = 1, aa = 4;
|
|
688
|
+
function $t(t) {
|
|
689
|
+
return F(t, oa | aa);
|
|
690
|
+
}
|
|
691
|
+
function K(t) {
|
|
692
|
+
return t == null;
|
|
693
|
+
}
|
|
694
|
+
var sa = /* @__PURE__ */ (function() {
|
|
695
|
+
var t = function(e, r) {
|
|
696
|
+
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
697
|
+
n.__proto__ = o;
|
|
698
|
+
} || function(n, o) {
|
|
699
|
+
for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
700
|
+
}, t(e, r);
|
|
701
|
+
};
|
|
702
|
+
return function(e, r) {
|
|
703
|
+
if (typeof r != "function" && r !== null)
|
|
704
|
+
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
705
|
+
t(e, r);
|
|
706
|
+
function n() {
|
|
707
|
+
this.constructor = e;
|
|
708
|
+
}
|
|
709
|
+
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
710
|
+
};
|
|
711
|
+
})(), m = function() {
|
|
712
|
+
return m = Object.assign || function(t) {
|
|
713
|
+
for (var e, r = 1, n = arguments.length; r < n; r++) {
|
|
714
|
+
e = arguments[r];
|
|
715
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
716
|
+
}
|
|
717
|
+
return t;
|
|
718
|
+
}, m.apply(this, arguments);
|
|
719
|
+
}, ia = (
|
|
720
|
+
/** @class */
|
|
721
|
+
(function(t) {
|
|
722
|
+
sa(e, t);
|
|
723
|
+
function e() {
|
|
724
|
+
return t !== null && t.apply(this, arguments) || this;
|
|
725
|
+
}
|
|
726
|
+
return e.prototype.setAttributes = function() {
|
|
727
|
+
var r = this.properties, n = r.width, o = r.height, a = r.radius;
|
|
728
|
+
K(n) || (this.width = n), K(o) || (this.height = o), K(a) || (this.radius = a);
|
|
729
|
+
}, e.prototype.getTextStyle = function() {
|
|
730
|
+
var r = this.properties, n = r.refX, o = n === void 0 ? 0 : n, a = r.refY, s = a === void 0 ? 0 : a, _ = r.textStyle, h = t.prototype.getTextStyle.call(this);
|
|
731
|
+
return m(m(m({}, h), $t(_) || {}), { transform: "matrix(1 0 0 1 ".concat(o, " ").concat(s, ")") });
|
|
732
|
+
}, e.prototype.getNodeStyle = function() {
|
|
733
|
+
var r = t.prototype.getNodeStyle.call(this), n = this.properties.style;
|
|
734
|
+
return m(m({}, r), $t(n) || {});
|
|
735
|
+
}, e;
|
|
736
|
+
})(re)
|
|
737
|
+
), Wt = {};
|
|
738
|
+
function Ta(t, e) {
|
|
739
|
+
var r = t.type, n = t.component, o = t.effect, a = t.view, s = t.model;
|
|
740
|
+
if (!r)
|
|
741
|
+
throw new Error("You should specify type in config");
|
|
742
|
+
Wt[r] = {
|
|
743
|
+
component: n,
|
|
744
|
+
effect: o
|
|
745
|
+
}, e.register({
|
|
746
|
+
type: r,
|
|
747
|
+
view: a || ua,
|
|
748
|
+
model: s || ia
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
qt({});
|
|
752
|
+
var ca = /* @__PURE__ */ (function() {
|
|
753
|
+
var t = function(e, r) {
|
|
754
|
+
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
755
|
+
n.__proto__ = o;
|
|
756
|
+
} || function(n, o) {
|
|
757
|
+
for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
758
|
+
}, t(e, r);
|
|
759
|
+
};
|
|
760
|
+
return function(e, r) {
|
|
761
|
+
if (typeof r != "function" && r !== null)
|
|
762
|
+
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
763
|
+
t(e, r);
|
|
764
|
+
function n() {
|
|
765
|
+
this.constructor = e;
|
|
766
|
+
}
|
|
767
|
+
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
768
|
+
};
|
|
769
|
+
})(), ua = (
|
|
770
|
+
/** @class */
|
|
771
|
+
(function(t) {
|
|
772
|
+
ca(e, t);
|
|
773
|
+
function e() {
|
|
774
|
+
return t !== null && t.apply(this, arguments) || this;
|
|
775
|
+
}
|
|
776
|
+
return e.prototype.getComponentContainer = function() {
|
|
777
|
+
return this.root;
|
|
778
|
+
}, e.prototype.targetId = function() {
|
|
779
|
+
return "".concat(this.props.graphModel.flowId, ":").concat(this.props.model.id);
|
|
780
|
+
}, e.prototype.componentWillUnmount = function() {
|
|
781
|
+
t.prototype.componentWillUnmount.call(this), this.unmount();
|
|
782
|
+
}, e.prototype.setHtml = function(r) {
|
|
783
|
+
var n = document.createElement("div");
|
|
784
|
+
n.className = "custom-vue-node-content", this.root = n, r.appendChild(n), this.renderVueComponent();
|
|
785
|
+
}, e.prototype.confirmUpdate = function(r) {
|
|
786
|
+
}, e.prototype.renderVueComponent = function() {
|
|
787
|
+
var r;
|
|
788
|
+
this.unmountVueComponent();
|
|
789
|
+
var n = this.getComponentContainer(), o = this.props, a = o.model, s = o.graphModel;
|
|
790
|
+
if (n) {
|
|
791
|
+
var _ = Wt[a.type].component;
|
|
792
|
+
_ && (this.vm = Qt({
|
|
793
|
+
render: function() {
|
|
794
|
+
return Zt(_, {
|
|
795
|
+
node: a,
|
|
796
|
+
graph: s
|
|
797
|
+
});
|
|
798
|
+
},
|
|
799
|
+
provide: function() {
|
|
800
|
+
return {
|
|
801
|
+
getNode: function() {
|
|
802
|
+
return a;
|
|
803
|
+
},
|
|
804
|
+
getGraph: function() {
|
|
805
|
+
return s;
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
}), (r = this.vm) === null || r === void 0 || r.mount(n));
|
|
810
|
+
}
|
|
811
|
+
}, e.prototype.unmountVueComponent = function() {
|
|
812
|
+
var r = this.getComponentContainer();
|
|
813
|
+
return this.vm && (this.vm.unmount(), this.vm = null), r && (r.innerHTML = ""), r;
|
|
814
|
+
}, e.prototype.unmount = function() {
|
|
815
|
+
this.unmountVueComponent();
|
|
816
|
+
}, e;
|
|
817
|
+
})(ne)
|
|
818
|
+
);
|
|
819
|
+
export {
|
|
820
|
+
ya as C,
|
|
821
|
+
ba as P,
|
|
822
|
+
Ta as r,
|
|
823
|
+
Wt as v
|
|
824
|
+
};
|