fec-dev-designer 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,727 +0,0 @@
1
- import { commonjsGlobal as J, getDefaultExportFromCjs as K } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as U } from "../../_virtual/vue-json-viewer.js";
3
- import q from "vue";
4
- import { __require as Q } from "../clipboard/dist/clipboard.js";
5
- (function(L, G) {
6
- (function(z, T) {
7
- L.exports = T(q, Q());
8
- })(J, function(z, T) {
9
- return A = {}, y.m = D = [function(a, n, t) {
10
- Object.defineProperty(n, "__esModule", { value: !0 }), n.default = (e, o) => {
11
- const i = e.__vccOpts || e;
12
- for (var [r, s] of o)
13
- i[r] = s;
14
- return i;
15
- };
16
- }, function(a, n) {
17
- a.exports = z;
18
- }, function(a, n, t) {
19
- Object.defineProperty(n, "__esModule", { value: !0 }), r(t(1));
20
- var e = r(t(22)), o = r(t(42)), i = t(43);
21
- function r(s) {
22
- return s && s.__esModule ? s : { default: s };
23
- }
24
- n.default = { name: "JsonViewer", components: { JsonBox: e.default }, props: { value: { type: [Object, Array, String, Number, Boolean, Function], required: !0 }, expanded: { type: Boolean, default: !1 }, expandDepth: { type: Number, default: 1 }, copyable: { type: [Boolean, Object], default: !1 }, sort: { type: Boolean, default: !1 }, boxed: { type: Boolean, default: !1 }, theme: { type: String, default: "jv-light" }, timeformat: { type: Function, default: function(s) {
25
- return s.toLocaleString();
26
- } }, previewMode: { type: Boolean, default: !1 }, showArrayIndex: { type: Boolean, default: !0 }, showDoubleQuotes: { type: Boolean, default: !1 } }, provide: function() {
27
- return { expandDepth: this.expandDepth, timeformat: this.timeformat, onKeyclick: this.onKeyclick };
28
- }, data: function() {
29
- return { copied: !1, expandableCode: !1, expandCode: this.expanded };
30
- }, computed: { jvClass: function() {
31
- return "jv-container " + this.theme + (this.boxed ? " boxed" : "");
32
- }, copyText: function() {
33
- var s = this.copyable;
34
- return { copyText: s.copyText || "copy", copiedText: s.copiedText || "copied!", timeout: s.timeout || 2e3, align: s.align };
35
- } }, watch: { value: function() {
36
- this.onResized();
37
- } }, mounted: function() {
38
- var s = this;
39
- this.debounceResized = (0, i.debounce)(this.debResized.bind(this), 200), this.boxed && this.$refs.jsonBox && (this.onResized(), this.$refs.jsonBox.$el.addEventListener("resized", this.onResized, !0)), this.copyable && new o.default(this.$refs.clip, { container: this.$refs.viewer, text: function() {
40
- return JSON.stringify(s.value, null, 2);
41
- } }).on("success", function(u) {
42
- s.onCopied(u);
43
- });
44
- }, methods: { onResized: function() {
45
- this.debounceResized();
46
- }, debResized: function() {
47
- var s = this;
48
- this.$nextTick(function() {
49
- s.$refs.jsonBox && (250 <= s.$refs.jsonBox.$el.clientHeight ? s.expandableCode = !0 : s.expandableCode = !1);
50
- });
51
- }, onCopied: function(s) {
52
- var u = this;
53
- this.copied || (this.copied = !0, setTimeout(function() {
54
- u.copied = !1;
55
- }, this.copyText.timeout), this.$emit("copied", s));
56
- }, toggleExpandCode: function() {
57
- this.expandCode = !this.expandCode;
58
- }, onKeyclick: function(s) {
59
- this.$emit("keyclick", s);
60
- } } };
61
- }, function(a, n, t) {
62
- Object.defineProperty(n, "__esModule", { value: !0 });
63
- var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(h) {
64
- return typeof h;
65
- } : function(h) {
66
- return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h;
67
- }, o = t(1), i = E(t(31)), r = E(t(32)), s = E(t(33)), u = E(t(34)), d = E(t(35)), g = E(t(36)), x = E(t(37)), M = E(t(38));
68
- function E(h) {
69
- return h && h.__esModule ? h : { default: h };
70
- }
71
- n.default = { name: "JsonBox", inject: ["expandDepth", "onKeyclick"], props: { value: { type: [Object, Array, String, Number, Boolean, Function, Date], default: null }, keyName: { type: String, default: "" }, sort: Boolean, depth: { type: Number, default: 0 }, previewMode: Boolean, forceExpand: Boolean, showArrayIndex: Boolean, showDoubleQuotes: Boolean, path: { type: String, default: "$" } }, data: function() {
72
- return { expand: !0, forceExpandMe: this.forceExpand };
73
- }, mounted: function() {
74
- this.expand = this.previewMode || !(this.depth >= this.expandDepth) || this.forceExpandMe;
75
- }, methods: { toggle: function() {
76
- this.expand = !this.expand, this.dispatchEvent();
77
- }, toggleAll: function() {
78
- this.expand = !this.expand, this.forceExpandMe = this.expand, this.dispatchEvent();
79
- }, dispatchEvent: function() {
80
- try {
81
- this.$el.dispatchEvent(new Event("resized"));
82
- } catch {
83
- var h = document.createEvent("Event");
84
- h.initEvent("resized", !0, !1), this.$el.dispatchEvent(h);
85
- }
86
- }, getPath: function() {
87
- for (var h = [this.keyName], w = this.$parent; w.depth; )
88
- w.$el.classList.contains("jv-node") && h.push(w.keyName), w = w.$parent;
89
- return h.reverse();
90
- } }, render: function() {
91
- var h = this, w = [], _ = void 0;
92
- this.value === null || this.value === void 0 ? _ = r.default : Array.isArray(this.value) ? _ = g.default : Object.prototype.toString.call(this.value) === "[object Date]" ? _ = M.default : e(this.value) === "object" ? _ = d.default : typeof this.value == "number" ? _ = s.default : typeof this.value == "string" ? _ = i.default : typeof this.value == "boolean" ? _ = u.default : typeof this.value == "function" && (_ = x.default);
93
- var B = this.keyName && this.value && (Array.isArray(this.value) || e(this.value) === "object" && Object.prototype.toString.call(this.value) !== "[object Date]");
94
- return !this.previewMode && B && w.push((0, o.h)("span", { class: { "jv-toggle": !0, open: !!this.expand }, onClick: function(O) {
95
- O.altKey ? h.toggleAll() : h.toggle();
96
- } })), this.keyName && w.push((0, o.h)("span", { class: { "jv-key": !0 }, innerText: this.showDoubleQuotes ? '"' + this.keyName + '":' : this.keyName + ":", onClick: function() {
97
- h.onKeyclick(h.path);
98
- } })), w.push((0, o.h)(_, { class: { "jv-push": !0 }, jsonValue: this.value, keyName: this.keyName, sort: this.sort, depth: this.depth, expand: this.expand, previewMode: this.previewMode, forceExpand: this.forceExpandMe, showArrayIndex: this.showArrayIndex, showDoubleQuotes: this.showDoubleQuotes, path: this.path, "onUpdate:expand": function(O) {
99
- h.expand = O;
100
- }, "onUpdate:expandAll": function(O) {
101
- h.expand = O, h.forceExpandMe = h.expand;
102
- } })), (0, o.h)("div", { class: { "jv-node": !0, "jv-key-node": !!this.keyName && !B, toggle: !this.previewMode && B } }, w);
103
- } };
104
- }, function(a, n, t) {
105
- Object.defineProperty(n, "__esModule", { value: !0 });
106
- var e = t(1), o = /^\w+:\/\//;
107
- n.default = { name: "JsonString", props: { jsonValue: { type: String, required: !0 } }, data: function() {
108
- return { expand: !0, canExtend: !1 };
109
- }, mounted: function() {
110
- this.$refs.itemRef.offsetHeight > this.$refs.holderRef.offsetHeight && (this.canExtend = !0);
111
- }, methods: { toggle: function() {
112
- this.expand = !this.expand;
113
- } }, render: function() {
114
- var i = this.jsonValue, r = o.test(i), s = void 0;
115
- return this.expand ? (s = { class: { "jv-item": !0, "jv-string": !0 }, ref: "itemRef" }, r ? s.innerHTML = '"' + (i = '<a href="' + i + '" target="_blank" class="jv-link">' + i + "</a>").toString() + '"' : s.innerText = '"' + i.toString() + '"') : s = { class: { "jv-ellipsis": !0 }, onClick: this.toggle, innerText: "..." }, (0, e.h)("span", {}, [this.canExtend && (0, e.h)("span", { class: { "jv-toggle": !0, open: this.expand }, onClick: this.toggle }), (0, e.h)("span", { class: { "jv-holder-node": !0 }, ref: "holderRef" }), (0, e.h)("span", s)]);
116
- } };
117
- }, function(a, n, t) {
118
- Object.defineProperty(n, "__esModule", { value: !0 });
119
- var e = t(1);
120
- n.default = { name: "JsonUndefined", functional: !0, props: { jsonValue: { type: Object, default: null } }, render: function() {
121
- return (0, e.h)("span", { class: { "jv-item": !0, "jv-undefined": !0 }, innerText: this.jsonValue === null ? "null" : "undefined" });
122
- } };
123
- }, function(a, n, t) {
124
- Object.defineProperty(n, "__esModule", { value: !0 });
125
- var e = t(1);
126
- n.default = { name: "JsonNumber", functional: !0, props: { jsonValue: { type: Number, required: !0 } }, render: function() {
127
- var o = Number.isInteger(this.jsonValue);
128
- return (0, e.h)("span", { class: { "jv-item": !0, "jv-number": !0, "jv-number-integer": o, "jv-number-float": !o }, innerText: this.jsonValue.toString() });
129
- } };
130
- }, function(a, n, t) {
131
- Object.defineProperty(n, "__esModule", { value: !0 });
132
- var e = t(1);
133
- n.default = { name: "JsonBoolean", functional: !0, props: { jsonValue: Boolean }, render: function() {
134
- return (0, e.h)("span", { class: { "jv-item": !0, "jv-boolean": !0 }, innerText: this.jsonValue.toString() });
135
- } };
136
- }, function(a, n, o) {
137
- Object.defineProperty(n, "__esModule", { value: !0 });
138
- var e = o(1), o = o(22), i = (o = o) && o.__esModule ? o : { default: o };
139
- n.default = { name: "JsonObject", props: { jsonValue: { type: Object, required: !0 }, keyName: { type: String, default: "" }, depth: { type: Number, default: 0 }, expand: Boolean, forceExpand: Boolean, sort: Boolean, previewMode: Boolean, showArrayIndex: Boolean, showDoubleQuotes: Boolean, path: String }, data: function() {
140
- return { value: {} };
141
- }, computed: { ordered: function() {
142
- var r = this;
143
- if (!this.sort)
144
- return this.value;
145
- var s = {};
146
- return Object.keys(this.value).sort().forEach(function(u) {
147
- s[u] = r.value[u];
148
- }), s;
149
- } }, watch: { jsonValue: function(r) {
150
- this.setValue(r);
151
- } }, mounted: function() {
152
- this.setValue(this.jsonValue);
153
- }, methods: { setValue: function(r) {
154
- var s = this;
155
- setTimeout(function() {
156
- s.value = r;
157
- }, 0);
158
- }, toggle: function() {
159
- this.$emit("update:expand", !this.expand), this.dispatchEvent();
160
- }, toggleAll: function() {
161
- this.$emit("update:expandAll", !this.expand), this.dispatchEvent();
162
- }, dispatchEvent: function() {
163
- try {
164
- this.$el.dispatchEvent(new Event("resized"));
165
- } catch {
166
- var r = document.createEvent("Event");
167
- r.initEvent("resized", !0, !1), this.$el.dispatchEvent(r);
168
- }
169
- } }, render: function() {
170
- var r, s = this, u = [];
171
- if (this.previewMode || this.keyName || u.push((0, e.h)("span", { class: { "jv-toggle": !0, open: !!this.expand }, onClick: function(g) {
172
- g.altKey ? s.toggleAll() : s.toggle();
173
- } })), u.push((0, e.h)("span", { class: { "jv-item": !0, "jv-object": !0 }, innerText: "{" })), this.expand)
174
- for (var d in this.ordered)
175
- this.ordered.hasOwnProperty(d) && (r = this.ordered[d], u.push((0, e.h)(i.default, { key: d, style: { display: this.expand ? void 0 : "none" }, sort: this.sort, keyName: d, depth: this.depth + 1, value: r, previewMode: this.previewMode, forceExpand: this.forceExpand, showArrayIndex: this.showArrayIndex, showDoubleQuotes: this.showDoubleQuotes, path: this.path + "." + d })));
176
- return !this.expand && Object.keys(this.value).length && u.push((0, e.h)("span", { class: { "jv-ellipsis": !0 }, onClick: function(g) {
177
- g.altKey ? s.toggleAll() : s.toggle();
178
- }, title: "click to reveal object content (keys: " + Object.keys(this.ordered).join(", ") + ")", innerText: "..." })), u.push((0, e.h)("span", { class: { "jv-item": !0, "jv-object": !0 }, innerText: "}" })), (0, e.h)("span", u);
179
- } };
180
- }, function(a, n, o) {
181
- Object.defineProperty(n, "__esModule", { value: !0 });
182
- var e = o(1), o = o(22), i = (o = o) && o.__esModule ? o : { default: o };
183
- n.default = { name: "JsonArray", props: { jsonValue: { type: Array, required: !0 }, keyName: { type: String, default: "" }, depth: { type: Number, default: 0 }, sort: Boolean, expand: Boolean, forceExpand: Boolean, previewMode: Boolean, showArrayIndex: Boolean, showDoubleQuotes: Boolean, path: String }, data: function() {
184
- return { value: [] };
185
- }, watch: { jsonValue: function(r) {
186
- this.setValue(r);
187
- } }, mounted: function() {
188
- this.setValue(this.jsonValue);
189
- }, methods: { setValue: function(r) {
190
- var s = this, u = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : 0;
191
- u === 0 && (this.value = []), setTimeout(function() {
192
- r.length > u && (s.value.push(r[u]), s.setValue(r, u + 1));
193
- }, 0);
194
- }, toggle: function() {
195
- this.$emit("update:expand", !this.expand), this.dispatchEvent();
196
- }, toggleAll: function() {
197
- this.$emit("update:expandAll", !this.expand), this.dispatchEvent();
198
- }, dispatchEvent: function() {
199
- try {
200
- this.$el.dispatchEvent(new Event("resized"));
201
- } catch {
202
- var r = document.createEvent("Event");
203
- r.initEvent("resized", !0, !1), this.$el.dispatchEvent(r);
204
- }
205
- } }, render: function() {
206
- var r = this, s = [];
207
- return this.previewMode || this.keyName || s.push((0, e.h)("span", { class: { "jv-toggle": !0, open: !!this.expand }, onClick: function(u) {
208
- u.altKey ? r.toggleAll() : r.toggle();
209
- } })), s.push((0, e.h)("span", { class: { "jv-item": !0, "jv-array": !0 }, innerText: "[" })), this.expand && this.value.forEach(function(u, d) {
210
- s.push((0, e.h)(i.default, { key: d, style: { display: r.expand ? void 0 : "none" }, sort: r.sort, keyName: r.showArrayIndex ? "" + d : "", depth: r.depth + 1, value: u, previewMode: r.previewMode, forceExpand: r.forceExpand, showArrayIndex: r.showArrayIndex, showDoubleQuotes: r.showDoubleQuotes, path: r.path + "." + d }));
211
- }), !this.expand && this.value.length && s.push((0, e.h)("span", { class: { "jv-ellipsis": !0 }, onClick: function(u) {
212
- u.altKey ? r.toggleAll() : r.toggle();
213
- }, title: "click to reveal " + this.value.length + " hidden items", innerText: "..." })), s.push((0, e.h)("span", { class: { "jv-item": !0, "jv-array": !0 }, innerText: "]" })), (0, e.h)("span", s);
214
- } };
215
- }, function(a, n, t) {
216
- Object.defineProperty(n, "__esModule", { value: !0 });
217
- var e = t(1);
218
- n.default = { name: "JsonFunction", functional: !0, props: { jsonValue: { type: Function, required: !0 } }, render: function() {
219
- return (0, e.h)("span", { class: { "jv-item": !0, "jv-function": !0 }, attrs: { title: this.jsonValue.toString() }, innerHTML: "&lt;function&gt;" });
220
- } };
221
- }, function(a, n, t) {
222
- Object.defineProperty(n, "__esModule", { value: !0 });
223
- var e = t(1);
224
- n.default = { name: "JsonDate", inject: ["timeformat"], functional: !0, props: { jsonValue: { type: Date, required: !0 } }, render: function() {
225
- var o = this.jsonValue, i = this.timeformat;
226
- return (0, e.h)("span", { class: { "jv-item": !0, "jv-string": !0 }, innerText: '"' + i(o) + '"' });
227
- } };
228
- }, function(a, n, t) {
229
- t.r(n);
230
- var e, o = t(2), i = t.n(o);
231
- for (e in t.d(n, "default", function() {
232
- return i.a;
233
- }), o)
234
- ["default", "default"].indexOf(e) < 0 && function(r) {
235
- t.d(n, r, function() {
236
- return o[r];
237
- });
238
- }(e);
239
- }, function(a, n, t) {
240
- t.r(n);
241
- var e, o = t(3), i = t.n(o);
242
- for (e in t.d(n, "default", function() {
243
- return i.a;
244
- }), o)
245
- ["default", "default"].indexOf(e) < 0 && function(r) {
246
- t.d(n, r, function() {
247
- return o[r];
248
- });
249
- }(e);
250
- }, function(a, n, t) {
251
- t.r(n);
252
- var e, o = t(4), i = t.n(o);
253
- for (e in t.d(n, "default", function() {
254
- return i.a;
255
- }), o)
256
- ["default", "default"].indexOf(e) < 0 && function(r) {
257
- t.d(n, r, function() {
258
- return o[r];
259
- });
260
- }(e);
261
- }, function(a, n, t) {
262
- t.r(n);
263
- var e, o = t(5), i = t.n(o);
264
- for (e in t.d(n, "default", function() {
265
- return i.a;
266
- }), o)
267
- ["default", "default"].indexOf(e) < 0 && function(r) {
268
- t.d(n, r, function() {
269
- return o[r];
270
- });
271
- }(e);
272
- }, function(a, n, t) {
273
- t.r(n);
274
- var e, o = t(6), i = t.n(o);
275
- for (e in t.d(n, "default", function() {
276
- return i.a;
277
- }), o)
278
- ["default", "default"].indexOf(e) < 0 && function(r) {
279
- t.d(n, r, function() {
280
- return o[r];
281
- });
282
- }(e);
283
- }, function(a, n, t) {
284
- t.r(n);
285
- var e, o = t(7), i = t.n(o);
286
- for (e in t.d(n, "default", function() {
287
- return i.a;
288
- }), o)
289
- ["default", "default"].indexOf(e) < 0 && function(r) {
290
- t.d(n, r, function() {
291
- return o[r];
292
- });
293
- }(e);
294
- }, function(a, n, t) {
295
- t.r(n);
296
- var e, o = t(8), i = t.n(o);
297
- for (e in t.d(n, "default", function() {
298
- return i.a;
299
- }), o)
300
- ["default", "default"].indexOf(e) < 0 && function(r) {
301
- t.d(n, r, function() {
302
- return o[r];
303
- });
304
- }(e);
305
- }, function(a, n, t) {
306
- t.r(n);
307
- var e, o = t(9), i = t.n(o);
308
- for (e in t.d(n, "default", function() {
309
- return i.a;
310
- }), o)
311
- ["default", "default"].indexOf(e) < 0 && function(r) {
312
- t.d(n, r, function() {
313
- return o[r];
314
- });
315
- }(e);
316
- }, function(a, n, t) {
317
- t.r(n);
318
- var e, o = t(10), i = t.n(o);
319
- for (e in t.d(n, "default", function() {
320
- return i.a;
321
- }), o)
322
- ["default", "default"].indexOf(e) < 0 && function(r) {
323
- t.d(n, r, function() {
324
- return o[r];
325
- });
326
- }(e);
327
- }, function(a, n, t) {
328
- t.r(n);
329
- var e, o = t(11), i = t.n(o);
330
- for (e in t.d(n, "default", function() {
331
- return i.a;
332
- }), o)
333
- ["default", "default"].indexOf(e) < 0 && function(r) {
334
- t.d(n, r, function() {
335
- return o[r];
336
- });
337
- }(e);
338
- }, function(a, n, t) {
339
- t.r(n);
340
- var e, o = t(13);
341
- for (e in o)
342
- e !== "default" && function(r) {
343
- t.d(n, r, function() {
344
- return o[r];
345
- });
346
- }(e);
347
- t(39);
348
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/json-box.vue"]]);
349
- n.default = i;
350
- }, function(a, n, t) {
351
- Object.defineProperty(n, "__esModule", { value: !0 }), n.render = function(o, i, r, s, u, d) {
352
- var g = (0, e.resolveComponent)("json-box");
353
- return (0, e.openBlock)(), (0, e.createElementBlock)("div", { ref: "viewer", class: (0, e.normalizeClass)(d.jvClass) }, [r.copyable ? ((0, e.openBlock)(), (0, e.createElementBlock)("div", { key: 0, class: (0, e.normalizeClass)("jv-tooltip " + (d.copyText.align || "right")) }, [(0, e.createElementVNode)("span", { ref: "clip", class: (0, e.normalizeClass)(["jv-button", { copied: u.copied }]) }, [(0, e.renderSlot)(o.$slots, "copy", { copied: u.copied }, function() {
354
- return [(0, e.createTextVNode)((0, e.toDisplayString)(u.copied ? d.copyText.copiedText : d.copyText.copyText), 1)];
355
- })], 2)], 2)) : (0, e.createCommentVNode)("v-if", !0), (0, e.createElementVNode)("div", { class: (0, e.normalizeClass)(["jv-code", { open: u.expandCode, boxed: r.boxed }]) }, [(0, e.createVNode)(g, { ref: "jsonBox", value: r.value, sort: r.sort, "preview-mode": r.previewMode, "show-array-index": r.showArrayIndex, "show-double-quotes": r.showDoubleQuotes, onKeyclick: d.onKeyclick }, null, 8, ["value", "sort", "preview-mode", "show-array-index", "show-double-quotes", "onKeyclick"])], 2), u.expandableCode && r.boxed ? ((0, e.openBlock)(), (0, e.createElementBlock)("div", { key: 1, class: "jv-more", onClick: i[0] || (i[0] = function() {
356
- return d.toggleExpandCode && d.toggleExpandCode.apply(d, arguments);
357
- }) }, [(0, e.createElementVNode)("span", { class: (0, e.normalizeClass)(["jv-toggle", { open: !!u.expandCode }]) }, null, 2)])) : (0, e.createCommentVNode)("v-if", !0)], 2);
358
- };
359
- var e = t(1);
360
- }, function(a, n, t) {
361
- var e = t(40);
362
- typeof e == "string" && (e = [[a.i, e, ""]]);
363
- var o = { hmr: !0, transform: void 0 };
364
- t(26)(e, o), e.locals && (a.exports = e.locals);
365
- }, function(a, n, t) {
366
- a.exports = function(e) {
367
- var o = [];
368
- return o.toString = function() {
369
- return this.map(function(i) {
370
- var r = function(s, u) {
371
- var d = s[1] || "", g = s[3];
372
- return g ? u && typeof btoa == "function" ? (s = function(x) {
373
- return x = btoa(unescape(encodeURIComponent(JSON.stringify(x)))), x = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(x), "/*# ".concat(x, " */");
374
- }(g), u = g.sources.map(function(x) {
375
- return "/*# sourceURL=".concat(g.sourceRoot || "").concat(x, " */");
376
- }), [d].concat(u).concat([s]).join(`
377
- `)) : [d].join(`
378
- `) : d;
379
- }(i, e);
380
- return i[2] ? "@media ".concat(i[2], " {").concat(r, "}") : r;
381
- }).join("");
382
- }, o.i = function(i, r, s) {
383
- typeof i == "string" && (i = [[null, i, ""]]);
384
- var u = {};
385
- if (s)
386
- for (var d = 0; d < this.length; d++) {
387
- var g = this[d][0];
388
- g != null && (u[g] = !0);
389
- }
390
- for (var x = 0; x < i.length; x++) {
391
- var M = [].concat(i[x]);
392
- s && u[M[0]] || (r && (M[2] ? M[2] = "".concat(r, " and ").concat(M[2]) : M[2] = r), o.push(M));
393
- }
394
- }, o;
395
- };
396
- }, function(a, n, t) {
397
- var e, o, i, r = {}, s = (e = function() {
398
- return window && document && document.all && !window.atob;
399
- }, function() {
400
- return o = o === void 0 ? e.apply(this, arguments) : o;
401
- }), u = (i = {}, function(c) {
402
- if (i[c] === void 0) {
403
- var l = (function(f) {
404
- return document.querySelector(f);
405
- }).call(this, c);
406
- if (l instanceof window.HTMLIFrameElement)
407
- try {
408
- l = l.contentDocument.head;
409
- } catch {
410
- l = null;
411
- }
412
- i[c] = l;
413
- }
414
- return i[c];
415
- }), d = null, g = 0, x = [], M = t(41);
416
- function E(c, l) {
417
- for (var f = 0; f < c.length; f++) {
418
- var v = c[f], j = r[v.id];
419
- if (j) {
420
- j.refs++;
421
- for (var p = 0; p < j.parts.length; p++)
422
- j.parts[p](v.parts[p]);
423
- for (; p < v.parts.length; p++)
424
- j.parts.push(I(v.parts[p], l));
425
- } else {
426
- for (var m = [], p = 0; p < v.parts.length; p++)
427
- m.push(I(v.parts[p], l));
428
- r[v.id] = { id: v.id, refs: 1, parts: m };
429
- }
430
- }
431
- }
432
- function h(c, l) {
433
- for (var f = [], v = {}, j = 0; j < c.length; j++) {
434
- var m = c[j], p = l.base ? m[0] + l.base : m[0], m = { css: m[1], media: m[2], sourceMap: m[3] };
435
- v[p] ? v[p].parts.push(m) : f.push(v[p] = { id: p, parts: [m] });
436
- }
437
- return f;
438
- }
439
- function w(c, l) {
440
- var f = u(c.insertInto);
441
- if (!f)
442
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
443
- var v = x[x.length - 1];
444
- if (c.insertAt === "top")
445
- v ? v.nextSibling ? f.insertBefore(l, v.nextSibling) : f.appendChild(l) : f.insertBefore(l, f.firstChild), x.push(l);
446
- else if (c.insertAt === "bottom")
447
- f.appendChild(l);
448
- else {
449
- if (typeof c.insertAt != "object" || !c.insertAt.before)
450
- throw new Error(`[Style Loader]
451
-
452
- Invalid value for parameter 'insertAt' ('options.insertAt') found.
453
- Must be 'top', 'bottom', or Object.
454
- (https://github.com/webpack-contrib/style-loader#insertat)
455
- `);
456
- c = u(c.insertInto + " " + c.insertAt.before), f.insertBefore(l, c);
457
- }
458
- }
459
- function _(c) {
460
- c.parentNode !== null && (c.parentNode.removeChild(c), 0 <= (c = x.indexOf(c)) && x.splice(c, 1));
461
- }
462
- function B(c) {
463
- var l = document.createElement("style");
464
- return c.attrs.type = "text/css", O(l, c.attrs), w(c, l), l;
465
- }
466
- function O(c, l) {
467
- Object.keys(l).forEach(function(f) {
468
- c.setAttribute(f, l[f]);
469
- });
470
- }
471
- function I(c, l) {
472
- var f, v, j, p, m;
473
- if (l.transform && c.css) {
474
- if (!(p = l.transform(c.css)))
475
- return function() {
476
- };
477
- c.css = p;
478
- }
479
- return j = l.singleton ? (m = g++, f = d = d || B(l), v = $.bind(null, f, m, !1), $.bind(null, f, m, !0)) : c.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (p = l, m = document.createElement("link"), p.attrs.type = "text/css", p.attrs.rel = "stylesheet", O(m, p.attrs), w(p, m), f = m, v = (function(b, C, S) {
480
- var k = S.css, N = S.sourceMap, S = C.convertToAbsoluteUrls === void 0 && N;
481
- (C.convertToAbsoluteUrls || S) && (k = M(k)), N && (k += `
482
- /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(N)))) + " */"), N = new Blob([k], { type: "text/css" }), k = b.href, b.href = URL.createObjectURL(N), k && URL.revokeObjectURL(k);
483
- }).bind(null, f, l), function() {
484
- _(f), f.href && URL.revokeObjectURL(f.href);
485
- }) : (f = B(l), v = (function(b, k) {
486
- var R = k.css, k = k.media;
487
- if (k && b.setAttribute("media", k), b.styleSheet)
488
- b.styleSheet.cssText = R;
489
- else {
490
- for (; b.firstChild; )
491
- b.removeChild(b.firstChild);
492
- b.appendChild(document.createTextNode(R));
493
- }
494
- }).bind(null, f), function() {
495
- _(f);
496
- }), v(c), function(b) {
497
- b ? b.css === c.css && b.media === c.media && b.sourceMap === c.sourceMap || v(c = b) : j();
498
- };
499
- }
500
- a.exports = function(c, l) {
501
- if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
502
- throw new Error("The style-loader cannot be used in a non-browser environment");
503
- (l = l || {}).attrs = typeof l.attrs == "object" ? l.attrs : {}, l.singleton || typeof l.singleton == "boolean" || (l.singleton = s()), l.insertInto || (l.insertInto = "head"), l.insertAt || (l.insertAt = "bottom");
504
- var f = h(c, l);
505
- return E(f, l), function(v) {
506
- for (var j = [], p = 0; p < f.length; p++) {
507
- var m = f[p];
508
- (b = r[m.id]).refs--, j.push(b);
509
- }
510
- v && E(h(v, l), l);
511
- for (var b, p = 0; p < j.length; p++)
512
- if ((b = j[p]).refs === 0) {
513
- for (var C = 0; C < b.parts.length; C++)
514
- b.parts[C]();
515
- delete r[b.id];
516
- }
517
- };
518
- };
519
- var V, P = (V = [], function(c, l) {
520
- return V[c] = l, V.filter(Boolean).join(`
521
- `);
522
- });
523
- function $(c, l, j, v) {
524
- var j = j ? "" : v.css;
525
- c.styleSheet ? c.styleSheet.cssText = P(l, j) : (v = document.createTextNode(j), (j = c.childNodes)[l] && c.removeChild(j[l]), j.length ? c.insertBefore(v, j[l]) : c.appendChild(v));
526
- }
527
- }, function(a, n, t) {
528
- var e = t(45);
529
- typeof e == "string" && (e = [[a.i, e, ""]]);
530
- var o = { hmr: !0, transform: void 0 };
531
- t(26)(e, o), e.locals && (a.exports = e.locals);
532
- }, function(a, n, t) {
533
- var e = t(23);
534
- t.o(e, "render") && t.d(n, "render", function() {
535
- return e.render;
536
- });
537
- }, function(a, n, e) {
538
- Object.defineProperty(n, "__esModule", { value: !0 });
539
- var e = e(30), o = (e = e) && e.__esModule ? e : { default: e };
540
- n.default = Object.assign(o.default, { install: function(i) {
541
- i.component("JsonViewer", o.default);
542
- } });
543
- }, function(a, n, t) {
544
- t.r(n);
545
- var e, r = t(28), o = t(12);
546
- for (e in o)
547
- e !== "default" && function(s) {
548
- t.d(n, s, function() {
549
- return o[s];
550
- });
551
- }(e);
552
- t(44);
553
- var i = t(0), r = t.n(i)()(o.default, [["render", r.render], ["__file", "lib/json-viewer.vue"]]);
554
- n.default = r;
555
- }, function(a, n, t) {
556
- t.r(n);
557
- var e, o = t(14);
558
- for (e in o)
559
- e !== "default" && function(r) {
560
- t.d(n, r, function() {
561
- return o[r];
562
- });
563
- }(e);
564
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-string.vue"]]);
565
- n.default = i;
566
- }, function(a, n, t) {
567
- t.r(n);
568
- var e, o = t(15);
569
- for (e in o)
570
- e !== "default" && function(r) {
571
- t.d(n, r, function() {
572
- return o[r];
573
- });
574
- }(e);
575
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-undefined.vue"]]);
576
- n.default = i;
577
- }, function(a, n, t) {
578
- t.r(n);
579
- var e, o = t(16);
580
- for (e in o)
581
- e !== "default" && function(r) {
582
- t.d(n, r, function() {
583
- return o[r];
584
- });
585
- }(e);
586
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-number.vue"]]);
587
- n.default = i;
588
- }, function(a, n, t) {
589
- t.r(n);
590
- var e, o = t(17);
591
- for (e in o)
592
- e !== "default" && function(r) {
593
- t.d(n, r, function() {
594
- return o[r];
595
- });
596
- }(e);
597
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-boolean.vue"]]);
598
- n.default = i;
599
- }, function(a, n, t) {
600
- t.r(n);
601
- var e, o = t(18);
602
- for (e in o)
603
- e !== "default" && function(r) {
604
- t.d(n, r, function() {
605
- return o[r];
606
- });
607
- }(e);
608
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-object.vue"]]);
609
- n.default = i;
610
- }, function(a, n, t) {
611
- t.r(n);
612
- var e, o = t(19);
613
- for (e in o)
614
- e !== "default" && function(r) {
615
- t.d(n, r, function() {
616
- return o[r];
617
- });
618
- }(e);
619
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-array.vue"]]);
620
- n.default = i;
621
- }, function(a, n, t) {
622
- t.r(n);
623
- var e, o = t(20);
624
- for (e in o)
625
- e !== "default" && function(r) {
626
- t.d(n, r, function() {
627
- return o[r];
628
- });
629
- }(e);
630
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-function.vue"]]);
631
- n.default = i;
632
- }, function(a, n, t) {
633
- t.r(n);
634
- var e, o = t(21);
635
- for (e in o)
636
- e !== "default" && function(r) {
637
- t.d(n, r, function() {
638
- return o[r];
639
- });
640
- }(e);
641
- var i = t(0), i = t.n(i)()(o.default, [["__file", "lib/types/json-date.vue"]]);
642
- n.default = i;
643
- }, function(a, n, t) {
644
- t(24);
645
- }, function(a, n, t) {
646
- (n = t(25)(!1)).push([a.i, `.jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}
647
- `, ""]), a.exports = n;
648
- }, function(a, n) {
649
- a.exports = function(t) {
650
- var e = typeof window < "u" && window.location;
651
- if (!e)
652
- throw new Error("fixUrls requires window.location");
653
- if (!t || typeof t != "string")
654
- return t;
655
- var o = e.protocol + "//" + e.host, i = o + e.pathname.replace(/\/[^\/]*$/, "/");
656
- return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(r, u) {
657
- var u = u.trim().replace(/^"(.*)"$/, function(d, g) {
658
- return g;
659
- }).replace(/^'(.*)'$/, function(d, g) {
660
- return g;
661
- });
662
- return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(u) ? r : (u = u.indexOf("//") === 0 ? u : u.indexOf("/") === 0 ? o + u : i + u.replace(/^\.\//, ""), "url(" + JSON.stringify(u) + ")");
663
- });
664
- };
665
- }, function(a, n) {
666
- a.exports = T;
667
- }, function(a, n, t) {
668
- Object.defineProperty(n, "__esModule", { value: !0 }), n.debounce = function(e, o) {
669
- var i = Date.now(), r = void 0;
670
- return function() {
671
- for (var s = arguments.length, u = Array(s), d = 0; d < s; d++)
672
- u[d] = arguments[d];
673
- Date.now() - i < o && r && clearTimeout(r), r = setTimeout(function() {
674
- e.apply(void 0, u);
675
- }, o), i = Date.now();
676
- };
677
- };
678
- }, function(a, n, t) {
679
- t(27);
680
- }, function(a, n, i) {
681
- var e = i(25), o = i(46), i = i(47);
682
- n = e(!1), i = o(i), n.push([a.i, ".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url(" + i + `);background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}
683
- `, ""]), a.exports = n;
684
- }, function(a, n, t) {
685
- a.exports = function(e, o) {
686
- return o = o || {}, typeof (e = e && e.__esModule ? e.default : e) != "string" ? e : (/^['"].*['"]$/.test(e) && (e = e.slice(1, -1)), o.hash && (e += o.hash), /["'() \t\n]/.test(e) || o.needQuotes ? '"'.concat(e.replace(/"/g, '\\"').replace(/\n/g, "\\n"), '"') : e);
687
- };
688
- }, function(a, n) {
689
- a.exports = "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4=";
690
- }], y.c = A, y.d = function(a, n, t) {
691
- y.o(a, n) || Object.defineProperty(a, n, { enumerable: !0, get: t });
692
- }, y.r = function(a) {
693
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(a, "__esModule", { value: !0 });
694
- }, y.t = function(a, n) {
695
- if (1 & n && (a = y(a)), 8 & n || 4 & n && typeof a == "object" && a && a.__esModule)
696
- return a;
697
- var t = /* @__PURE__ */ Object.create(null);
698
- if (y.r(t), Object.defineProperty(t, "default", { enumerable: !0, value: a }), 2 & n && typeof a != "string")
699
- for (var e in a)
700
- y.d(t, e, (function(o) {
701
- return a[o];
702
- }).bind(null, e));
703
- return t;
704
- }, y.n = function(a) {
705
- var n = a && a.__esModule ? function() {
706
- return a.default;
707
- } : function() {
708
- return a;
709
- };
710
- return y.d(n, "a", n), n;
711
- }, y.o = function(a, n) {
712
- return Object.prototype.hasOwnProperty.call(a, n);
713
- }, y.p = "", y(y.s = 29);
714
- function y(a) {
715
- if (A[a])
716
- return A[a].exports;
717
- var n = A[a] = { i: a, l: !1, exports: {} };
718
- return D[a].call(n.exports, n, n.exports, y), n.l = !0, n.exports;
719
- }
720
- var D, A;
721
- });
722
- })(U);
723
- var H = U.exports;
724
- const X = /* @__PURE__ */ K(H);
725
- export {
726
- X as default
727
- };