@joker.front/datav 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs ADDED
@@ -0,0 +1,926 @@
1
+ var ue = Object.defineProperty;
2
+ var be = (e, l, o) => l in e ? ue(e, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[l] = o;
3
+ var t = (e, l, o) => be(e, typeof l != "symbol" ? l + "" : l, o);
4
+ import { Component as ye, VNode as Re, SCOPE_ID as d, registerGlobalComponent as ve } from "@joker.front/core";
5
+ function c(e = 32) {
6
+ let l = [], o = [
7
+ "0",
8
+ "1",
9
+ "2",
10
+ "3",
11
+ "4",
12
+ "5",
13
+ "6",
14
+ "7",
15
+ "8",
16
+ "9",
17
+ "a",
18
+ "b",
19
+ "c",
20
+ "d",
21
+ "e",
22
+ "f",
23
+ "g",
24
+ "h",
25
+ "i",
26
+ "j",
27
+ "k",
28
+ "l",
29
+ "m",
30
+ "n",
31
+ "o",
32
+ "p",
33
+ "q",
34
+ "r",
35
+ "s",
36
+ "t",
37
+ "u",
38
+ "v",
39
+ "w",
40
+ "x",
41
+ "y",
42
+ "z"
43
+ ];
44
+ for (let i = 0; i < e; i++) {
45
+ let r = Math.round(Math.random() * (o.length - 1));
46
+ l.push(o[r]);
47
+ }
48
+ return l.join("");
49
+ }
50
+ function Ce(e, l = "-") {
51
+ return e = e || "", e.split(/(?=[A-Z])/).map((i) => i.toLowerCase()).join(l);
52
+ }
53
+ function ke(e, l, o = {}) {
54
+ let i, r = !1, n = 0, s = () => {
55
+ i && clearTimeout(i);
56
+ }, g = (h) => {
57
+ s(), r = !h;
58
+ };
59
+ function m(...h) {
60
+ let E = Date.now() - n;
61
+ if (r)
62
+ return;
63
+ let p = () => {
64
+ n = Date.now(), l.apply(m, h);
65
+ };
66
+ function f() {
67
+ i = void 0;
68
+ }
69
+ !o.noLeading && o.debounceMode && !i && p(), s(), o.debounceMode === void 0 && E > e ? o.noLeading ? (n = Date.now(), o.noTrailing || (i = setTimeout(o.debounceMode ? f : p, e))) : p() : o.noTrailing !== !0 && (i = setTimeout(o.debounceMode ? f : p, o.debounceMode === void 0 ? e - E : e));
70
+ }
71
+ return m.cancel = g, m;
72
+ }
73
+ function Se(e, l, o = !1) {
74
+ return ke(e, l, { debounceMode: o !== !1 });
75
+ }
76
+ class a extends ye {
77
+ constructor(...o) {
78
+ super(...o);
79
+ t(this, "container");
80
+ t(this, "debounceInitWHFun", Se(100, this.initSize.bind(this)));
81
+ t(this, "resize");
82
+ t(this, "domObserver");
83
+ this.model.width = 0, this.model.height = 0, this.$on("mounted", () => {
84
+ var i;
85
+ this.container = this.$rootVNode.first((r) => r instanceof Re.Element).output, this.container && (this.initSize(), (i = this.resize) == null || i.call(this), this.bindDomResizeCallback());
86
+ }), this.$on("beforeDestroy", () => {
87
+ this.unbindDomResizeCallback();
88
+ });
89
+ }
90
+ initSize() {
91
+ var o;
92
+ this.container && (this.model.width = this.container.clientWidth, this.model.height = this.container.clientHeight, (o = this.resize) == null || o.call(this));
93
+ }
94
+ bindDomResizeCallback() {
95
+ this.container && (this.domObserver = Le(this.container, this.debounceInitWHFun), window.addEventListener("resize", this.debounceInitWHFun));
96
+ }
97
+ unbindDomResizeCallback() {
98
+ this.container && (this.domObserver && (this.domObserver.disconnect(), this.domObserver.takeRecords()), window.removeEventListener("resize", this.debounceInitWHFun));
99
+ }
100
+ fade(o, i) {
101
+ o = o.replace("#", "");
102
+ let r = parseInt(o.substring(0, 2), 16), n = parseInt(o.substring(2, 4), 16), s = parseInt(o.substring(4, 6), 16);
103
+ return `rgba(${r},${n},${s},${i / 100})`;
104
+ }
105
+ }
106
+ function Le(e, l) {
107
+ let o = new MutationObserver(l);
108
+ return o.observe(e, { attributes: !0, attributeFilter: ["style"], attributeOldValue: !0 }), o;
109
+ }
110
+ class xe extends a {
111
+ constructor() {
112
+ super(...arguments);
113
+ t(this, "propsOption", {
114
+ colors: ["#4fd2dd", "#235fa7"],
115
+ backgroundColor: "transparent"
116
+ });
117
+ t(this, "border", ["left-top", "right-top", "left-bottom", "right-bottom"]);
118
+ }
119
+ }
120
+ let Ae = { render: function(e) {
121
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "border", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "10, 27 10, @(model.height - 27) 13, @(model.height - 24) 13, @(model.height - 21) 24, @(model.height - 11) 38, @(model.height - 11) 41, @(model.height - 8) 73, @(model.height - 8) 75, @(model.height-10) 81, @(model.height - 10) 85, @(model.height - 6) @(model.width - 85), @(model.height - 6) @(model.width - 81), @(model.height - 10) @(model.width - 75), @(model.height - 10) @(model.width - 73), @(model.height - 8) @(model.width - 41), @(model.height - 8) @(model.width-38), @(model.height - 11) @(model.width - 24), @(model.height - 11) @(model.width - 13), @(model.height - 21) @(model.width -13), @(model.height - 24) @(model.width - 10), @(model.height - 27) @(model.width - 10), 27 @(model.width - 13), 25 @(model.width -13), 21 @(model.width - 24), 11 @(model.width - 38), 11 @(model.width - 41), 8 @(model.width - 73), 8 @(model.width -75), 10 @(model.width - 81), 10 @(model.width -85), 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24" }, [])]), e.createCommand("for", "let item of border", [e.createElement("svg", { width: "150px", height: "150px", class: "@item border" }, [e.createElement("polygon", { fill: "@(props.colors[0])", points: "6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63" }, [e.createElement("animate", { attributeName: "fill", values: "@(props.colors[0]);@(props.colors[1]);@(props.colors[0])", dur: "0.5s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { fill: "@(props.colors[1])", points: "27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8" }, [e.createElement("animate", { attributeName: "fill", values: "@(props.colors[1]);@(props.colors[0]);@(props.colors[1])", dur: "0.5s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { fill: "@(props.colors[0])", points: "9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54" }, [e.createElement("animate", { attributeName: "fill", values: "@(props.colors[0]);@(props.colors[1]);transparent", dur: "1s", begin: "0s", repeatCount: "indefinite" }, [])])])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
122
+ } }, Ie = {
123
+ component: xe
124
+ };
125
+ var v, C;
126
+ let Pe = class extends (C = Ie.component, v = d, C) {
127
+ constructor() {
128
+ super(...arguments);
129
+ t(this, v, "2b4d949b");
130
+ t(this, "template", Ae.render);
131
+ }
132
+ };
133
+ class Te extends a {
134
+ constructor() {
135
+ super(...arguments);
136
+ t(this, "propsOption", {
137
+ colors: ["#fff", "rgba(255, 255, 255, 0.6)"],
138
+ backgroundColor: "transparent"
139
+ });
140
+ }
141
+ }
142
+ let Ne = { render: function(e) {
143
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "7, 7 @(model.width-7), 7 @(model.width-7), @(model.height-7) 7, @(model.height-7)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "2, 2 @(model.width-2) ,2 @(model.width-2), @(model.height-2) 2, @(model.height-2) 2, 2" }, []), e.createElement("polyline", { stroke: "@props.colors[1]", points: "6, 6 @(model.width-6), 6 @(model.width-6), @(model.height-6) 6, @(model.height-6) 6, 6" }, []), e.createElement("circle", { fill: "@props.colors[0]", cx: "11", cy: "11", r: "1" }, []), e.createElement("circle", { fill: "@props.colors[0]", cx: "@(model.width - 11)", cy: "11", r: "1" }, []), e.createElement("circle", { fill: "@props.colors[0]", cx: "@(model.width - 11)", cy: "@(model.height - 11)", r: "1" }, []), e.createElement("circle", { fill: "@props.colors[0]", cx: "11", cy: "@(model.height - 11)", r: "1" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
144
+ } }, Oe = {
145
+ component: Te
146
+ };
147
+ var k, S;
148
+ let $e = class extends (S = Oe.component, k = d, S) {
149
+ constructor() {
150
+ super(...arguments);
151
+ t(this, k, "3b9d3fa6");
152
+ t(this, "template", Ne.render);
153
+ }
154
+ };
155
+ class Me extends a {
156
+ constructor() {
157
+ super(...arguments);
158
+ t(this, "propsOption", {
159
+ colors: ["#2862b7", "#2862b7"],
160
+ backgroundColor: "transparent"
161
+ });
162
+ }
163
+ }
164
+ let De = { render: function(e) {
165
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "23, 23 @(model.width-24), 23 @(model.width-24), @(model.height-24) 23, @(model.height-24)" }, []), e.createElement("polyline", { class: "dv-bb3-line1", stroke: "@props.colors[0]", points: "4, 4 @(model.width-22) ,4 @(model.width-22), @(model.height-22) 4, @(model.height-22) 4, 4" }, []), e.createElement("polyline", { class: "dv-bb3-line2", stroke: "@props.colors[1]", points: "10, 10 @(model.width-16), 10 @(model.width-16), @(model.height-16) 10, @(model.height-16) 10, 10" }, []), e.createElement("polyline", { class: "dv-bb3-line2", stroke: "@props.colors[1]", points: "16, 16 @(model.width-10), 16 @(model.width-10), @(model.height-10) 16, @(model.height-10) 16, 16" }, []), e.createElement("polyline", { class: "dv-bb3-line2", stroke: "@props.colors[1]", points: "22, 22 @(model.width-4), 22 @(model.width-4), @(model.height-4) 22, @(model.height-4) 22, 22" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
166
+ } }, Fe = {
167
+ component: Me
168
+ };
169
+ var L, x;
170
+ let Je = class extends (x = Fe.component, L = d, x) {
171
+ constructor() {
172
+ super(...arguments);
173
+ t(this, L, "113d37b6");
174
+ t(this, "template", De.render);
175
+ }
176
+ };
177
+ class Ke extends a {
178
+ constructor() {
179
+ super(...arguments);
180
+ t(this, "propsOption", {
181
+ colors: ["red", "rgba(0,0,255,0.8)"],
182
+ backgroundColor: "transparent"
183
+ });
184
+ }
185
+ }
186
+ let We = { render: function(e) {
187
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container @(props.reverse && 'dv-reverse')", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "@(model.width-15), 22 170, 22 150, 7 40, 7 28, 21 32, 24 16, 42 16, @(model.height-32) 41, @(model.height-7) @(model.width-15), @(model.height-7)" }, []), e.createElement("polyline", { class: "dv-bb4-line-1", stroke: "@props.colors[0]", points: "145, @(model.height-5) 40, @(model.height-5) 10, @(model.height-35) 10, 40 40, 5 150, 5 170, 20 @(model.width-15), 20" }, []), e.createElement("polyline", { stroke: "@props.colors[1]", class: "dv-bb4-line-2", points: "245, @(model.height-1) 36, @(model.height-1) 14,@(model.height-23) 14, @(model.height-100)" }, []), e.createElement("polyline", { class: "dv-bb4-line-3", stroke: "@props.colors[0]", points: "7, @(model.height-40) 7, @(model.height-75)" }, []), e.createElement("polyline", { class: "dv-bb4-line-4", stroke: "@props.colors[0]", points: "28, 24 13, 41 13, 64" }, []), e.createElement("polyline", { class: "dv-bb4-line-5", stroke: "@props.colors[0]", points: "5, 45 5, 140" }, []), e.createElement("polyline", { class: "dv-bb4-line-6", stroke: "@props.colors[1]", points: "14, 75 14, 180" }, []), e.createElement("polyline", { class: "dv-bb4-line-7", stroke: "@props.colors[1]", points: "55, 11 147, 11 167, 26 250, 26" }, []), e.createElement("polyline", { class: "dv-bb4-line-8", stroke: "@props.colors[1]", points: "158, 5 173, 16" }, []), e.createElement("polyline", { class: "dv-bb4-line-9", stroke: "@props.colors[0]", points: "200, 17 @(model.width-10), 17" }, []), e.createElement("polyline", { class: "dv-bb4-line-10", stroke: "@props.colors[1]", points: "385, 17 @(model.width-10), 17" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
188
+ } }, He = {
189
+ component: Ke
190
+ };
191
+ var A, I;
192
+ let ze = class extends (I = He.component, A = d, I) {
193
+ constructor() {
194
+ super(...arguments);
195
+ t(this, A, "237a53e4");
196
+ t(this, "template", We.render);
197
+ }
198
+ };
199
+ class Be extends a {
200
+ constructor() {
201
+ super(...arguments);
202
+ t(this, "propsOption", {
203
+ colors: ["rgba(255, 255, 255, 0.35)", "rgba(255, 255, 255, 0.20)"],
204
+ backgroundColor: "transparent"
205
+ });
206
+ }
207
+ }
208
+ let Ge = { render: function(e) {
209
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container @(props.reverse && 'dv-reverse')", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "10, 22 @(model.width-22), 22 @(model.width-22), @(model.height-86) @(model.height-84), @(model.height-24) 10, @(model.height-24)" }, []), e.createElement("polyline", { class: "dv-bb5-line-1", stroke: "@props.colors[0]", points: "8, 5 @(model.width-5), 5 @(model.width-5), @(model.height-100) @(model.width-100), @(model.height-5) 8, @(model.height-5) 8, 5" }, []), e.createElement("polyline", { class: "dv-bb5-line-2", stroke: "@props.colors[1]", points: "3, 5 @(model.width-20), 5 @(model.width-20), @(model.height-60) @(model.width-74), @(model.height-5) 3, @(model.height-5) 3, 5" }, []), e.createElement("polyline", { class: "dv-bb5-line-3", stroke: "@props.colors[1]", points: "50, 13 @(model.width-35), 13" }, []), e.createElement("polyline", { class: "dv-bb5-line-4", stroke: "@props.colors[1]", points: "15, 20 @(model.width-35), 20" }, []), e.createElement("polyline", { class: "dv-bb5-line-5", stroke: "@props.colors[1]", points: "15, @(model.height-20) @(model.width-110), @(model.height-20)" }, []), e.createElement("polyline", { class: "dv-bb5-line-6", stroke: "@props.colors[1]", points: "15, @(model.height-13) @(model.width-110), @(model.height-13)" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
210
+ } }, Xe = {
211
+ component: Be
212
+ };
213
+ var P, T;
214
+ let Ue = class extends (T = Xe.component, P = d, T) {
215
+ constructor() {
216
+ super(...arguments);
217
+ t(this, P, "6fd7b4d4");
218
+ t(this, "template", Ge.render);
219
+ }
220
+ };
221
+ class je extends a {
222
+ constructor() {
223
+ super(...arguments);
224
+ t(this, "propsOption", {
225
+ colors: ["rgba(255, 255, 255, 0.35)", "gray"],
226
+ backgroundColor: "transparent"
227
+ });
228
+ }
229
+ }
230
+ let Qe = { render: function(e) {
231
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "9, 7 @(model.width-9), 7 @(model.width-9), @(model.height-7) 9, @(model.height-7)" }, []), e.createElement("circle", { fill: "@props.colors[1]", cx: "5", cy: "5", r: "2" }, []), e.createElement("circle", { fill: "@props.colors[1]", cx: "@(model.width - 5)", cy: "5", r: "2" }, []), e.createElement("circle", { fill: "@props.colors[1]", cx: "@(model.width - 5)", ":cy": "height - 5", r: "2" }, []), e.createElement("circle", { fill: "@props.colors[1]", cx: "5", cy: "@(model.height - 5)", r: "2" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "10, 4 @(model.width - 10), 4" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "10, @(model.height-4) @(model.width - 10), @(model.height-4)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "5, 70 5, @(model.height-70)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "@(model.width - 5), 70 @(model.width - 5), @(model.height-70)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "3, 10, 3, 50" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "7, 30 7, 80" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "@(model.width - 3), 10 @(model.width - 3), 50" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "@(model.width - 7), 30 @(model.width - 7), 80" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "3, @(model.height-10) 3, @(model.height-50)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "7, @(model.height-30) 7, @(model.height-80)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "@(model.width-3), @(model.height-10) @(model.width-3), @(model.height-50)" }, []), e.createElement("polyline", { stroke: "@props.colors[0]", points: "@(model.width-7), @(model.height-30) @(model.width-7), @(model.height-80)" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
232
+ } }, Ve = {
233
+ component: je
234
+ };
235
+ var N, O;
236
+ let qe = class extends (O = Ve.component, N = d, O) {
237
+ constructor() {
238
+ super(...arguments);
239
+ t(this, N, "ebdf6a26");
240
+ t(this, "template", Qe.render);
241
+ }
242
+ };
243
+ class Ze extends a {
244
+ constructor() {
245
+ super(...arguments);
246
+ t(this, "propsOption", {
247
+ colors: ["rgba(128,128,128,0.3)", "rgba(128,128,128,0.5)"],
248
+ backgroundColor: "transparent"
249
+ });
250
+ }
251
+ }
252
+ let Ye = { render: function(e) {
253
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "box-shadow: inset 0 0 40px @(props.colors[0]); border: 1px solid @(props.colors[0]); background-color: @(props.backgroundColor)" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("polyline", { class: "dv-bb7-line-width-2", stroke: "@props.colors[0]", points: "0, 25 0, 0 25, 0" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-2", stroke: "@props.colors[0]", points: "@(model.width-25), 0 @(model.width), 0 @(model.width), 25" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-2", stroke: "@props.colors[0]", points: "@(model.width-25), @(model.height) @(model.width), @(model.height) @(model.width), @(model.height-25)" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-2", stroke: "@props.colors[0]", points: "0, @(model.height-25) 0, @(model.height) 25, @(model.height)" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-5", stroke: "@props.colors[1]", points: "0, 10 0, 0 10, 0" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-5", stroke: "@props.colors[1]", points: "@(model.width-10), 0 @(model.width), 0 @(model.width), 10" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-5", stroke: "@props.colors[1]", points: "@(model.width-10), @(model.height) @(model.width), @(model.height) @(model.width), @(model.height-10)" }, []), e.createElement("polyline", { class: "dv-bb7-line-width-5", stroke: "@props.colors[1]", points: "0, @(model.height-10) 0, @(model.height) 10, @(model.height)" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
254
+ } }, et = {
255
+ component: Ze
256
+ };
257
+ var $, M;
258
+ let tt = class extends (M = et.component, $ = d, M) {
259
+ constructor() {
260
+ super(...arguments);
261
+ t(this, $, "44fa29fb");
262
+ t(this, "template", Ye.render);
263
+ }
264
+ };
265
+ class ot extends a {
266
+ constructor() {
267
+ super(...arguments);
268
+ t(this, "path", `border-box-8-path-${c()}`);
269
+ t(this, "gradient", `border-box-8-gradient-${c()}`);
270
+ t(this, "mask", `border-box-8-mask-${c()}`);
271
+ t(this, "propsOption", {
272
+ colors: ["#235fa7", "#4fd2dd"],
273
+ backgroundColor: "transparent",
274
+ dur: 3
275
+ });
276
+ }
277
+ get length() {
278
+ return (this.model.width + this.model.height - 5) * 2;
279
+ }
280
+ get pathD() {
281
+ return this.props.reverse ? `M 2.5, 2.5 L 2.5, ${this.model.height - 2.5} L ${this.model.width - 2.5}, ${this.model.height - 2.5} L ${this.model.width - 2.5}, 2.5 L 2.5, 2.5` : `M2.5, 2.5 L${this.model.width - 2.5}, 2.5 L${this.model.width - 2.5}, ${this.model.height - 2.5} L2.5, ${this.model.height - 2.5} L2.5, 2.5`;
282
+ }
283
+ }
284
+ let lt = { render: function(e) {
285
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("defs", {}, [e.createElement("path", { id: "@path", d: "@pathD", fill: "transparent" }, []), e.createElement("radialGradient", { id: "@gradient", cx: "50%", cy: "50%", r: "50%" }, [e.createElement("stop", { offset: "0%", "stop-color": "#fff", "stop-opacity": "1" }, []), e.createElement("stop", { offset: "100%", "stop-color": "#fff", "stop-opacity": "0" }, [])]), e.createElement("mask", { id: "@mask" }, [e.createElement("circle", { cx: "0", cy: "0", r: "150", fill: "url(#@(gradient))" }, [e.createElement("animateMotion", { dur: "@(props.dur)s", path: "@pathD", rotate: "auto", repeatCount: "indefinite" }, [])])])]), e.createElement("polygon", { fill: "@props.backgroundColor", points: "5, 5 @(model.width-5), 5 @(model.width-5) @(model.height-5) 5,@(model.height-5)" }, []), e.createElement("use", { stroke: "@props.colors[0]", "stroke-width": "1", "xlink:href": "#@(path)" }, []), e.createElement("use", { stroke: "@props.colors[1]", "stroke-width": "3", "xlink:href": "#@(path)", mask: "url(#@(mask))" }, [e.createElement("animate", { attributeName: "stroke-dasharray", from: "0, @(length)", to: "@length, 0", dur: "@(props.dur)s", repeatCount: "indefinite" }, [])])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
286
+ } }, it = {
287
+ component: ot
288
+ };
289
+ var D, F;
290
+ let rt = class extends (F = it.component, D = d, F) {
291
+ constructor() {
292
+ super(...arguments);
293
+ t(this, D, "df10b11e");
294
+ t(this, "template", lt.render);
295
+ }
296
+ };
297
+ class nt extends a {
298
+ constructor() {
299
+ super(...arguments);
300
+ t(this, "gradient", `border-box-9-gradient-${c()}`);
301
+ t(this, "mask", `border-box-9-mask-${c()}`);
302
+ t(this, "propsOption", {
303
+ colors: ["#11eefd", "#0078d2"],
304
+ backgroundColor: "transparent",
305
+ dur: 3
306
+ });
307
+ }
308
+ get length() {
309
+ return (this.model.width + this.model.height - 5) * 2;
310
+ }
311
+ get pathD() {
312
+ return this.props.reverse ? `M 2.5, 2.5 L 2.5, ${this.model.height - 2.5} L ${this.model.width - 2.5}, ${this.model.height - 2.5} L ${this.model.width - 2.5}, 2.5 L 2.5, 2.5` : `M2.5, 2.5 L${this.model.width - 2.5}, 2.5 L${this.model.width - 2.5}, ${this.model.height - 2.5} L2.5, ${this.model.height - 2.5} L2.5, 2.5`;
313
+ }
314
+ }
315
+ let st = { render: function(e) {
316
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("defs", {}, [e.createElement("linearGradient", { id: "@gradient", x1: "0%", y1: "0%", x2: "100%", y2: "100%" }, [e.createElement("animate", { attributeName: "x1", values: "0%;100%;0%", dur: "10s", begin: "0s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "x2", values: "100%;0%;100%", dur: "10s", begin: "0s", repeatCount: "indefinite" }, []), e.createElement("stop", { offset: "0%", "stop-color": "@props.colors[0]" }, [e.createElement("animate", { attributeName: "stop-color", values: "@(props.colors[0]);@(props.colors[1]);@(props.colors[0])", dur: "10s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("stop", { offset: "100%", "stop-color": "@(props.colors[1])" }, [e.createElement("animate", { attributeName: "stop-color", values: "`@(props.colors[1]);@(props.colors[0]);@(props.colors[1])", dur: "10s", begin: "0s", repeatCount: "indefinite" }, [])])]), e.createElement("mask", { id: "@mask" }, [e.createElement("polyline", { stroke: "#fff", "stroke-width": "3", fill: "transparent", points: "8, @(model.height*0.4) 8, 3, @(model.width*0.4+7), 3" }, []), e.createElement("polyline", { fill: "#fff", points: "8, @(model.height*0.15) 8, 3, @(model.width*0.1+7), 3 @(model.width*0.1), 8 14, 8 14, @(model.height*0.15-7)" }, []), e.createElement("polyline", { stroke: "#fff", "stroke-width": "3", fill: "transparent", points: "@(model.width*0.5), 3 @(model.width -3), 3, @(model.width -3), @(model.height*0.25)" }, []), e.createElement("polyline", { fill: "#fff", points: "@(model.width*0.52), 3 @(model.width*0.58), 3 @(model.width*0.58-7), 9 @(model.width*0.52-7), 9" }, []), e.createElement("polyline", { fill: "#fff", points: "@(model.width*0.9), 3 @(model.width -3), 3 @(model.width -3), @(model.height*0.1) @(model.width -9), @(model.height*0.1-7) @(model.width -9), 9 @(model.width *0.9+7), 9" }, []), e.createElement("polyline", { stroke: "#fff", "stroke-width": "3", fill: "transparent", points: "8, @(model.height*0.5) 8, @(model.height -3) @(model.width *0.3 + 7), @(model.height -3)" }, []), e.createElement("polyline", { fill: "#fff", points: "8, @(model.height*0.55) 8, @(model.height*0.7) 2,@(model.height*0.7-7) 2, @(model.height*0.55+7)" }, []), e.createElement("polyline", { stroke: "#fff", "stroke-width": "3", fill: "transparent", points: "@(model.width * 0.35), @(model.height - 3) @(model.width - 3), @(model.height - 3) @(model.width - 3), @(model.height*0.35)" }, []), e.createElement("polyline", { fill: "#fff", points: "@(model.width * 0.92), @(model.height - 3) @(model.width - 3), @(model.height - 3) @(model.width - 3), @(model.height *0.8) @(model.width - 9), @(model.height*0.8 + 7) @(model.width - 9), @(model.height - 9) @(model.width*0.92 +7), @(model.height - 9)" }, [])])]), e.createElement("polygon", { fill: "@props.backgroundColor", points: "15, 9 @(model.width * 0.1 + 1), 9 @(model.width * 0.1 + 4), 6 @(model.width * 0.52 + 2), 6 @(model.width * 0.52 + 6), 10 @(model.width * 0.58 - 7), 10 @(model.width * 0.58 - 2), 6 @(model.width * 0.9 + 2), 6 @(model.width * 0.9 + 6), 10 @(model.width - 10), 10 @(model.width - 10), @(model.height * 0.1 - 6) @(model.width - 6), @(model.height * 0.1 - 1) @(model.width - 6), @(model.height * 0.8 + 1) @(model.width - 10), @(model.height * 0.8 + 6) @(model.width - 10), @(model.height - 10) @(model.width * 0.92 + 7), @(model.height - 10) @(model.width * 0.92 + 2), @(model.height - 6) 11, @(model.height - 6) 11, @(model.height * 0.15 - 2) 15, @(model.height * 0.15 - 7)" }, []), e.createElement("rect", { x: "0", y: "0", width: "@model.width", height: "@model.height", fill: "url(#@(gradient))", mask: "url(#@(mask))" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
317
+ } }, dt = {
318
+ component: nt
319
+ };
320
+ var J, K;
321
+ let at = class extends (K = dt.component, J = d, K) {
322
+ constructor() {
323
+ super(...arguments);
324
+ t(this, J, "e4c62a5f");
325
+ t(this, "template", st.render);
326
+ }
327
+ };
328
+ class mt extends a {
329
+ constructor() {
330
+ super(...arguments);
331
+ t(this, "propsOption", {
332
+ colors: ["#1d48c4", "#d3e1f8"],
333
+ backgroundColor: "transparent"
334
+ });
335
+ t(this, "border", ["left-top", "right-top", "left-bottom", "right-bottom"]);
336
+ }
337
+ }
338
+ let pt = { render: function(e) {
339
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "box-shadow: inset 0 0 25px 3px @(props.colors[0])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@props.backgroundColor", points: "4, 0 @(model.width - 4), 0 @(model.width), 4 @(model.width), @(model.height - 4) @(model.width - 4), @(model.height) 4, @(model.height) 0, @(model.height - 4) 0, 4" }, [])]), e.createCommand("for", "let item of border", [e.createElement("svg", { width: "150px", height: "150px", class: "@item dv-border-svg-container" }, [e.createElement("polygon", { fill: "@(props.colors[1])", points: "40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3" }, [])])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
340
+ } }, ct = {
341
+ component: mt
342
+ };
343
+ var W, H;
344
+ let ht = class extends (H = ct.component, W = d, H) {
345
+ constructor() {
346
+ super(...arguments);
347
+ t(this, W, "c1b255d6");
348
+ t(this, "template", pt.render);
349
+ }
350
+ };
351
+ class gt extends a {
352
+ constructor() {
353
+ super(...arguments);
354
+ t(this, "propsOption", {
355
+ colors: ["#8aaafb", "#1f33a2"],
356
+ backgroundColor: "transparent",
357
+ titleWidth: 250,
358
+ title: ""
359
+ });
360
+ t(this, "filterId", `border-box-11-filterId-${c()}`);
361
+ }
362
+ }
363
+ let Et = { render: function(e) {
364
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("defs", {}, [e.createElement("filter", { id: "@filterId", height: "150%", width: "150%", x: "-25%", y: "-25%" }, [e.createElement("feMorphology", { operator: "dilate", radius: "2", in: "SourceAlpha", result: "thicken" }, []), e.createElement("feGaussianBlur", { in: "thicken", stdDeviation: "3", result: "blurred" }, []), e.createElement("feFlood", { "flood-color": "@(props.colors[1])", result: "glowColor" }, []), e.createElement("feComposite", { in: "glowColor", in2: "blurred", operator: "in", result: "softGlowColored" }, []), e.createElement("feMerge", {}, [e.createElement("feMergeNode", { in: "softGlowColored" }, []), e.createElement("feMergeNode", { in: "SourceGraphic" }, [])])])]), e.createElement("polygon", { fill: "@props.backgroundColor", points: "20, 32 @(model.width * 0.5 - props.titleWidth / 2), 32 @(model.width * 0.5 - props.titleWidth / 2 + 20), 53 @(model.width * 0.5 + props.titleWidth / 2 - 20), 53 @(model.width * 0.5 + props.titleWidth / 2), 32 @(model.width - 20), 32 @(model.width - 8), 48 @(model.width - 8), @(model.height - 25) @(model.width - 20), @(model.height - 8) 20, @(model.height - 8) 8, @(model.height - 25) 8, 50" }, []), e.createElement("polyline", { stroke: "@(props.colors[0])", filter: "url(#@(filterId))", points: "@((model.width - props.titleWidth) / 2), 30 20, 30 7, 50 7, @(50 + (model.height - 167) / 2) 13, @(55 + (model.height - 167) / 2) 13, @(135 + (model.height - 167) / 2) 7, @(140 + (model.height - 167) / 2) 7, @(model.height - 27) 20, @(model.height - 7) @(model.width - 20), @(model.height - 7) @(model.width - 7), @(model.height - 27) @(model.width - 7), @(140 + (model.height - 167) / 2) @(model.width - 13), @(135 + (model.height - 167) / 2) @(model.width - 13), @(55 + (model.height - 167) / 2) @(model.width - 7), @(50 + (model.height - 167) / 2) @(model.width - 7), 50 @(model.width - 20), 30 @((model.width + props.titleWidth) / 2), 30 @((model.width + props.titleWidth) / 2 - 20), 7 @((model.width - props.titleWidth) / 2 + 20), 7 @((model.width - props.titleWidth) / 2), 30 @((model.width - props.titleWidth) / 2 + 20), 52 @((model.width + props.titleWidth) / 2 - 20), 52 @((model.width + props.titleWidth) / 2), 30" }, []), e.createElement("polygon", { stroke: "@(props.colors[0])", fill: "transparent", points: "@((model.width + props.titleWidth) / 2 - 5), 30 @((model.width + props.titleWidth) / 2 - 21), 11 @((model.width + props.titleWidth) / 2 - 27), 11 @((model.width + props.titleWidth) / 2 - 8), 34" }, []), e.createElement("polygon", { stroke: "@(props.colors[0])", fill: "transparent", points: "@((model.width - props.titleWidth) / 2 + 5), 30 @((model.width - props.titleWidth) / 2 + 22), 49 @((model.width - props.titleWidth) / 2 + 28), 49 @((model.width - props.titleWidth) / 2 + 8), 26" }, []), e.createElement("polygon", { stroke: "@(props.colors[0])", fill: "@(fade(props.colors[1]), 30)", filter: "url(#@(filterId))", points: "@((model.width + props.titleWidth) / 2 - 11), 37 @((model.width + props.titleWidth) / 2 - 32), 11 @((model.width - props.titleWidth) / 2 + 23), 11 @((model.width - props.titleWidth) / 2 + 11), 23 @((model.width - props.titleWidth) / 2 + 33), 49 @((model.width + props.titleWidth) / 2 - 22), 49" }, []), e.createElement("polygon", { filter: "url(#@(filterId))", fill: "@(props.colors[0])", opacity: "1", points: "@((model.width - props.titleWidth) / 2 - 10), 37 @((model.width - props.titleWidth) / 2 - 31), 37 @((model.width - props.titleWidth) / 2 - 25), 46 @((model.width - props.titleWidth) / 2 - 4), 46" }, [e.createElement("animate", { attributeName: "opacity", values: "1;0.7;1", dur: "2s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { filter: "url(#@(filterId))", fill: "@(props.colors[0])", opacity: "0.7", points: "@((model.width - props.titleWidth) / 2 - 40), 37 @((model.width - props.titleWidth) / 2 - 61), 37 @((model.width - props.titleWidth) / 2 - 55), 46 @((model.width - props.titleWidth) / 2 - 34), 46" }, [e.createElement("animate", { attributeName: "opacity", values: "0.7;0.4;0.7", dur: "2s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { filter: "url(#@(filterId))", fill: "@(props.colors[0])", opacity: "0.5", points: "@((model.width - props.titleWidth) / 2 - 70), 37 @((model.width - props.titleWidth) / 2 - 91), 37 @((model.width - props.titleWidth) / 2 - 85), 46 @((model.width - props.titleWidth) / 2 - 64), 46" }, [e.createElement("animate", { attributeName: "opacity", values: "0.5;0.2;0.5", dur: "2s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { filter: "url(#@(filterId))", fill: "@(props.colors[0])", opacity: "1", points: "@((model.width + props.titleWidth) / 2 + 30), 37 @((model.width + props.titleWidth) / 2 + 9), 37 @((model.width + props.titleWidth) / 2 + 3), 46 @((model.width + props.titleWidth) / 2 + 24), 46" }, [e.createElement("animate", { attributeName: "opacity", values: "1;0.7;1", dur: "2s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { filter: "url(#@(filterId))", fill: "@(props.colors[0])", opacity: "0.7", points: "@((model.width + props.titleWidth) / 2 + 60), 37 @((model.width + props.titleWidth) / 2 + 39), 37 @((model.width + props.titleWidth) / 2 + 33), 46 @((model.width + props.titleWidth) / 2 + 54), 46" }, [e.createElement("animate", { attributeName: "opacity", values: "0.7;0.4;0.7", dur: "2s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("polygon", { filter: "url(#@(filterId))", fill: "@(props.colors[0])", opacity: "0.5", points: "@((model.width + props.titleWidth) / 2 + 90), 37 @((model.width + props.titleWidth) / 2 + 69), 37 @((model.width + props.titleWidth) / 2 + 63), 46 @((model.width + props.titleWidth) / 2 + 84), 46" }, [e.createElement("animate", { attributeName: "opacity", values: "0.5;0.2;0.5", dur: "2s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("text", { class: "dv-border-box-11-title", x: "@(model.width / 2)", y: "32", fill: "#fff", "font-size": "18", "text-anchor": "middle", "dominant-baseline": "middle" }, [e.createCodeFunction("props.title")]), e.createElement("polygon", { fill: "@(props.colors[0])", filter: "url(#@(filterId))", points: "7, @(53 + (model.height - 167) / 2) 11, @(57 + (model.height - 167) / 2) 11, @(133 + (model.height - 167) / 2) 7, @(137 + (model.height - 167) / 2)" }, []), e.createElement("polygon", { fill: "@(props.colors[0])", filter: "url(#@(filterId))", points: "@(model.width - 7), @(53 + (model.height - 167) / 2) @(model.width - 11), @(57 + (model.height - 167) / 2) @(model.width - 11), @(133 + (model.height - 167) / 2) @(model.width - 7), @(137 + (model.height - 167) / 2)" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
365
+ } }, ft = {
366
+ component: gt
367
+ };
368
+ var z, B;
369
+ let _t = class extends (B = ft.component, z = d, B) {
370
+ constructor() {
371
+ super(...arguments);
372
+ t(this, z, "639f3c2e");
373
+ t(this, "template", Et.render);
374
+ }
375
+ };
376
+ class wt extends a {
377
+ constructor() {
378
+ super(...arguments);
379
+ t(this, "propsOption", {
380
+ colors: ["#2e6099", "#7ce7fd"],
381
+ backgroundColor: "transparent"
382
+ });
383
+ t(this, "filterId", `borderr-box-12-filterId-${c()}`);
384
+ }
385
+ }
386
+ let ut = { render: function(e) {
387
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("defs", {}, [e.createElement("filter", { id: "@filterId", height: "150%", width: "150%", x: "-25%", y: "-25%" }, [e.createElement("feMorphology", { operator: "dilate", radius: "1", in: "SourceAlpha", result: "thicken" }, []), e.createElement("feGaussianBlur", { in: "thicken", stdDeviation: "2", result: "blurred" }, []), e.createElement("feFlood", { "flood-color": "@(fade(props.colors[1]), 70)", result: "glowColor" }, [e.createElement("animate", { attributeName: "flood-color", values: "@(fade(props.colors[1], 70)); @(fade(props.colors[1], 30)); @(fade(props.colors[1], 70));", dur: "3s", begin: "0s", repeatCount: "indefinite" }, [])]), e.createElement("feComposite", { in: "glowColor", in2: "blurred", operator: "in", result: "softGlowColored" }, []), e.createElement("feMerge", {}, [e.createElement("feMergeNode", { in: "softGlowColored" }, []), e.createElement("feMergeNode", { in: "SourceGraphic" }, [])])])]), e.createElement("path", { "v-if": "width && height", fill: "@props.backgroundColor", "stroke-width": "2", stroke: "@(props.colors[0])", d: "M15 5 L @(model.width - 15) 5 Q @(model.width - 5) 5, @(model.width - 5) 15 L @(model.width - 5) @(model.height - 15) Q @(model.width - 5) @(model.height - 5), @(model.width - 15) @(model.height - 5) L 15, @(model.height - 5) Q 5 @(model.height - 5) 5 @(model.height - 15) L 5 15 Q 5 5 15 5" }, []), e.createElement("path", { "stroke-width": "2", fill: "transparent", "stroke-linecap": "round", filter: "url(#@(filterId))", stroke: "@(props.colors[1])", d: "M 20 5 L 15 5 Q 5 5 5 15 L 5 20" }, []), e.createElement("path", { "stroke-width": "2", fill: "transparent", "stroke-linecap": "round", filter: "url(#@(filterId))", stroke: "@(props.colors[1])", d: "M @(model.width - 20) 5 L @(model.width - 15) 5 Q @(model.width - 5) 5 @(model.width - 5) 15 L @(model.width - 5) 20" }, []), e.createElement("path", { "stroke-width": "2", fill: "transparent", "stroke-linecap": "round", filter: "url(#@(filterId))", stroke: "@(props.colors[1])", d: "M @(model.width - 20) @(model.height - 5) L @(model.width - 15) @(model.height - 5) Q @(model.width - 5) @(model.height - 5) @(model.width - 5) @(model.height - 15) L @(model.width - 5) @(model.height - 20)" }, []), e.createElement("path", { "stroke-width": "2", fill: "transparent", "stroke-linecap": "round", filter: "url(#@(filterId))", stroke: "@(props.colors[1])", d: "M 20 @(model.height - 5) L 15 @(model.height - 5) Q 5 @(model.height - 5) 5 @(model.height - 15) L 5 @(model.height - 20)" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createElement("slot", {}, [])])])];
388
+ } }, bt = {
389
+ component: wt
390
+ };
391
+ var G, X;
392
+ let yt = class extends (X = bt.component, G = d, X) {
393
+ constructor() {
394
+ super(...arguments);
395
+ t(this, G, "9a8985f2");
396
+ t(this, "template", ut.render);
397
+ }
398
+ };
399
+ class Rt extends a {
400
+ constructor() {
401
+ super(...arguments);
402
+ t(this, "propsOption", {
403
+ colors: ["#6586ec", "#2cf7fe"],
404
+ backgroundColor: "transparent"
405
+ });
406
+ }
407
+ }
408
+ let vt = { render: function(e) {
409
+ return [e.createElement("div", { class: "@(['container', props.class])" }, [e.createElement("svg", { class: "dv-border-svg-container", width: "@model.width", height: "@model.height" }, [e.createElement("path", { fill: "@props.backgroundColor", stroke: "@(props.colors[0])", d: "M 5 20 L 5 10 L 12 3 L 60 3 L 68 10 L @(model.width - 20) 10 L @(model.width - 5) 25 L @(model.width - 5) @(model.height - 5) L 20 @(model.height - 5) L 5 @(model.height - 20) L 5 20" }, []), e.createElement("path", { fill: "transparent", "stroke-width": "3", "stroke-linecap": "round", "stroke-dasharray": "10, 5", stroke: "@(props.colors[0])", d: "M 16 9 L 61 9" }, []), e.createElement("path", { fill: "transparent", stroke: "@(props.colors[1])", d: "M 5 20 L 5 10 L 12 3 L 60 3 L 68 10" }, []), e.createElement("path", { fill: "transparent", stroke: "@(props.colors[1])", d: "M @(model.width - 5) @(model.height - 30) L @(model.width - 5) @(model.height - 5) L @(model.width - 30) @(model.height - 5)" }, [])]), e.createElement("div", { class: "border-box-content" }, [e.createCommand("RenderSection", "")])])];
410
+ } }, Ct = {
411
+ component: Rt
412
+ };
413
+ var U, j;
414
+ let kt = class extends (j = Ct.component, U = d, j) {
415
+ constructor() {
416
+ super(...arguments);
417
+ t(this, U, "9f1d0629");
418
+ t(this, "template", vt.render);
419
+ }
420
+ };
421
+ class St extends a {
422
+ constructor() {
423
+ super(...arguments);
424
+ t(this, "propsOption", {
425
+ colors: ["#fff", "#0de7c2"]
426
+ });
427
+ t(this, "model", {
428
+ width: 0,
429
+ height: 0,
430
+ points: [],
431
+ rects: [],
432
+ svgScale: [1, 1]
433
+ });
434
+ t(this, "resize", () => {
435
+ this.calcPointsPosition(), this.calcRectsPosition(), this.calcScale();
436
+ });
437
+ t(this, "svgWH", [200, 50]);
438
+ t(this, "rowNum", 4);
439
+ t(this, "rowPoints", 20);
440
+ t(this, "pointSideLength", 2.5);
441
+ t(this, "halfPointSideLength", 2.5 / 2);
442
+ }
443
+ calcPointsPosition() {
444
+ let { svgWH: o, rowNum: i, rowPoints: r } = this, [n, s] = o, g = n / (r + 1), m = s / (i + 1), h = new Array(i).fill(0).map(
445
+ (E, p) => new Array(r).fill(0).map((f, _) => [g * (_ + 1), m * (p + 1)])
446
+ );
447
+ this.model.points = h.reduce((E, p) => [...E, ...p], []);
448
+ }
449
+ calcRectsPosition() {
450
+ let o = this.model.points[this.rowPoints * 2 - 1], i = this.model.points[this.rowPoints * 2 - 3];
451
+ this.model.rects = [o, i];
452
+ }
453
+ calcScale() {
454
+ let [o, i] = this.svgWH;
455
+ this.model.svgScale = [this.model.width / o, this.model.height / i];
456
+ }
457
+ }
458
+ let Lt = { render: function(e) {
459
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@(svgWH[0])px", height: "@(svgWH[1])px", style: "transform:scale(@(model.svgScale[0]),@(model.svgScale[1]));" }, [e.createCommand("for", "let point of model.points", [e.createCommand("if", "Math.random() > 0.6", [e.createElement("rect", { fill: "@(props.colors[0])", x: "@(point[0] - halfPointSideLength)", y: "@(point[1] - halfPointSideLength)", width: "@pointSideLength", height: "@pointSideLength" }, [e.createCommand("if", "Math.random() > 0.6", [e.createElement("animate", { attributeName: "fill", values: "@(props.colors[0]);transparent", dur: "1s", begin: "@(Math.random() * 2)", repeatCount: "indefinite" }, [])])])])]), e.createCommand("if", "model.rects[0]", [e.createElement("rect", { fill: "@(props.colors[1])", x: "@(model.rects[0][0] - pointSideLength)", y: "@(model.rects[0][1] - pointSideLength)", width: "@(pointSideLength * 2)", height: "@(pointSideLength * 2)" }, [e.createElement("animate", { attributeName: "width", values: "0;@(pointSideLength * 2)", dur: "2s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "height", values: "0;@(pointSideLength * 2)", dur: "2s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "x", values: "@(model.rects[0][0]);@(model.rects[0][0] - pointSideLength)", dur: "2s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "y", values: "@(model.rects[0][1]);@(model.rects[0][1] - pointSideLength)", dur: "2s", repeatCount: "indefinite" }, [])])]), e.createCommand("if", "model.rects[1]", [e.createElement("rect", { fill: "@(props.colors[1])", x: "@(model.rects[1][0] - 40)", y: "@(model.rects[1][1] - pointSideLength)", width: "40", height: "@(pointSideLength * 2)" }, [e.createElement("animate", { attributeName: "width", values: "0;40;0", dur: "2s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "x", values: "@(model.rects[1][0]);@(model.rects[1][0] - 40);@(model.rects[1][0])", dur: "2s", repeatCount: "indefinite" }, [])])])])])];
460
+ } }, xt = {
461
+ component: St
462
+ };
463
+ var Q, V;
464
+ let At = class extends (V = xt.component, Q = d, V) {
465
+ constructor() {
466
+ super(...arguments);
467
+ t(this, Q, "5d2cdceb");
468
+ t(this, "template", Lt.render);
469
+ }
470
+ };
471
+ class It extends a {
472
+ constructor() {
473
+ super(...arguments);
474
+ t(this, "propsOption", {
475
+ colors: ["#3faacb", "#fff"],
476
+ dur: 6
477
+ });
478
+ t(this, "model", {
479
+ width: 0,
480
+ height: 0,
481
+ x: 0,
482
+ y: 0,
483
+ w: 0,
484
+ h: 0
485
+ });
486
+ t(this, "resize", () => {
487
+ this.calcSVGData();
488
+ });
489
+ }
490
+ calcSVGData() {
491
+ this.props.reverse ? (this.model.w = 1, this.model.h = this.model.height, this.model.x = this.model.width / 2, this.model.y = 0) : (this.model.w = this.model.width, this.model.h = 1, this.model.x = 0, this.model.y = this.model.height / 2);
492
+ }
493
+ }
494
+ let Pt = { render: function(e) {
495
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@(model.width)px", height: "@(model.height)px" }, [e.createElement("rect", { x: "@model.x", y: "@model.y", width: "@model.w", height: "@model.h", fill: "@(props.colors[0])" }, [e.createElement("animate", { attributeName: "@(props.reverse ? 'height' : 'width')", from: "0", to: "@(props.reverse ? model.height : model.width)", dur: "@(props.dur)s", calcMode: "spline", keyTimes: "0;1", keySplines: ".42,0,.58,1", repeatCount: "indefinite" }, [])]), e.createElement("rect", { x: "@model.x", y: "@model.y", width: "1", height: "1", fill: "@(props.colors[1])" }, [e.createElement("animate", { attributeName: "@(props.reverse ? 'y' : 'x')", from: "0", to: "@(props.reverse ? model.height : model.width)", dur: "@(props.dur)s", calcMode: "spline", keyTimes: "0;1", keySplines: "0.42,0,0.58,1", repeatCount: "indefinite" }, [])])])])];
496
+ } }, Tt = {
497
+ component: It
498
+ };
499
+ var q, Z;
500
+ let Nt = class extends (Z = Tt.component, q = d, Z) {
501
+ constructor() {
502
+ super(...arguments);
503
+ t(this, q, "2ceeebd3");
504
+ t(this, "template", Pt.render);
505
+ }
506
+ };
507
+ class Ot extends a {
508
+ constructor() {
509
+ super(...arguments);
510
+ t(this, "propsOption", {
511
+ colors: ["#7acaec", "transparent"]
512
+ });
513
+ t(this, "model", {
514
+ width: 0,
515
+ height: 0,
516
+ svgScale: [1, 1],
517
+ points: []
518
+ });
519
+ t(this, "resize", () => {
520
+ this.calcPointsPosition(), this.calcScale();
521
+ });
522
+ t(this, "svgWH", [300, 35]);
523
+ t(this, "rowNum", 2);
524
+ t(this, "rowPoints", 25);
525
+ t(this, "pointSideLength", 7);
526
+ t(this, "halfPointSideLength", this.pointSideLength / 2);
527
+ }
528
+ calcPointsPosition() {
529
+ let { svgWH: o, rowNum: i, rowPoints: r } = this, [n, s] = o, g = n / (r + 1), m = s / (i + 1), h = new Array(i).fill(0).map(
530
+ (E, p) => new Array(r).fill(0).map((f, _) => [g * (_ + 1), m * (p + 1)])
531
+ );
532
+ this.model.points = h.reduce((E, p) => [...E, ...p], []);
533
+ }
534
+ calcScale() {
535
+ let [o, i] = this.svgWH;
536
+ this.model.svgScale = [this.model.width / o, this.model.height / i];
537
+ }
538
+ }
539
+ let $t = { render: function(e) {
540
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@(svgWH[0])px", height: "@(svgWH[1])px", style: "transform:scale(@(model.svgScale[0]),@(model.svgScale[1]));" }, [e.createCommand("for", "let point of model.points", [e.createElement("rect", { fill: "@(props.colors[0])", x: "@(point[0] - halfPointSideLength)", y: "@(point[1] - halfPointSideLength)", width: "@pointSideLength", height: "@pointSideLength" }, [e.createElement("animate", { attributeName: "fill", values: "@(props.colors.join(';'))", dur: "@(Math.random() + 1)s", begin: "@(Math.random() * 2)", repeatCount: "indefinite" }, [])])])])])];
541
+ } }, Mt = {
542
+ component: Ot
543
+ };
544
+ var Y, ee;
545
+ let Dt = class extends (ee = Mt.component, Y = d, ee) {
546
+ constructor() {
547
+ super(...arguments);
548
+ t(this, Y, "e4dd1f59");
549
+ t(this, "template", $t.render);
550
+ }
551
+ };
552
+ class Ft extends a {
553
+ constructor() {
554
+ super(...arguments);
555
+ t(this, "propsOption", {
556
+ colors: ["rgba(255, 255, 255, 0.3)", "rgba(255, 255, 255, 0.3)"],
557
+ dur: 3
558
+ });
559
+ }
560
+ }
561
+ let Jt = { render: function(e) {
562
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("div", { class: "container-bar @(props.reverse ? 'reverse' : 'normal')", style: "@({ width: props.reverse ? model.width + 'px' : '5px', height: props.reverse ? '5px' : model.height + 'px', animationDuration: props.dur + 's' })" }, [e.createElement("svg", { width: "@(props.reverse ? model.width : 5)", height: "@(props.reverse ? 5 : model.height)" }, [e.createElement("polyline", { stroke: "@(props.colors[0])", points: "@(props.reverse ? `0, 2.5 ${model.width}, 2.5` : `2.5, 0 2.5, ${model.height}`)" }, []), e.createElement("polyline", { class: "bold-line", stroke: "@(props.colors[1])", "stroke-width": "3", "stroke-dasharray": "20, 80", "stroke-dashoffset": "-30", points: "@(props.reverse ? `0, 2.5 ${model.width}, 2.5` : `2.5, 0 2.5, ${model.height}`)" }, [])])])])];
563
+ } }, Kt = {
564
+ component: Ft
565
+ };
566
+ var te, oe;
567
+ let Wt = class extends (oe = Kt.component, te = d, oe) {
568
+ constructor() {
569
+ super(...arguments);
570
+ t(this, te, "820e3df4");
571
+ t(this, "template", Jt.render);
572
+ }
573
+ };
574
+ function b(e) {
575
+ let l = 0;
576
+ for (let o = 1; o < e.length; o++) {
577
+ let i = e[o - 1], r = e[o], n = r[0] - i[0], s = r[1] - i[1];
578
+ l += Math.sqrt(n * n + s * s);
579
+ }
580
+ return l;
581
+ }
582
+ function y(e, l) {
583
+ return arguments.length === 1 ? parseInt((Math.random() * e + 1).toString(), 10) : parseInt((Math.random() * (l - e + 1) + e).toString(), 10);
584
+ }
585
+ function w(e, l, o, i) {
586
+ return [e + Math.cos(i) * o, l + Math.sin(i) * o];
587
+ }
588
+ class Ht extends a {
589
+ constructor() {
590
+ super(...arguments);
591
+ t(this, "propsOption", {
592
+ colors: ["#3f96a5", "#3f96a5"],
593
+ dur: 1.2
594
+ });
595
+ t(this, "model", {
596
+ width: 0,
597
+ height: 0,
598
+ line1Points: "",
599
+ line2Points: "",
600
+ line1Length: 0,
601
+ line2Length: 0
602
+ });
603
+ t(this, "resize", () => {
604
+ this.calcSVGData();
605
+ });
606
+ }
607
+ calcSVGData() {
608
+ let { width: o, height: i } = this.model, r = [
609
+ [0, i * 0.2],
610
+ [o * 0.18, i * 0.2],
611
+ [o * 0.2, i * 0.4],
612
+ [o * 0.25, i * 0.4],
613
+ [o * 0.27, i * 0.6],
614
+ [o * 0.72, i * 0.6],
615
+ [o * 0.75, i * 0.4],
616
+ [o * 0.8, i * 0.4],
617
+ [o * 0.82, i * 0.2],
618
+ [o, i * 0.2]
619
+ ], n = [
620
+ [o * 0.3, i * 0.8],
621
+ [o * 0.7, i * 0.8]
622
+ ], s = b(r), g = b(n);
623
+ this.model.line1Points = r.map((m) => m.join(",")).join(" "), this.model.line2Points = n.map((m) => m.join(",")).join(" "), this.model.line1Length = s, this.model.line2Length = g;
624
+ }
625
+ }
626
+ let zt = { render: function(e) {
627
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@model.width", height: "@model.height" }, [e.createElement("polyline", { fill: "transparent", stroke: "@(props.colors[0])", "stroke-width": "3", points: "@model.line1Points" }, [e.createElement("animate", { attributeName: "stroke-dasharray", attributeType: "XML", from: "0, @(model.line1Length / 2), 0, @(model.line1Length / 2)", to: "0, 0, @(model.line1Length), 0", dur: "@(props.dur)s", begin: "0s", calcMode: "spline", keyTimes: "0;1", keySplines: "0.4,1,0.49,0.98", repeatCount: "indefinite" }, [])]), e.createElement("polyline", { fill: "transparent", stroke: "@(props.colors[1])", "stroke-width": "2", points: "@model.line2Points" }, [e.createElement("animate", { attributeName: "stroke-dasharray", attributeType: "XML", from: "0, @(model.line2Length / 2), 0, @(model.line2Length / 2)", to: "0, 0, @(model.line2Length), 0", dur: "@(props.dur)s", begin: "0s", calcMode: "spline", keyTimes: "0;1", keySplines: ".4,1,.49,.98", repeatCount: "indefinite" }, [])])])])];
628
+ } }, Bt = {
629
+ component: Ht
630
+ };
631
+ var le, ie;
632
+ let Gt = class extends (ie = Bt.component, le = d, ie) {
633
+ constructor() {
634
+ super(...arguments);
635
+ t(this, le, "165a82cd");
636
+ t(this, "template", zt.render);
637
+ }
638
+ };
639
+ class Xt extends a {
640
+ constructor() {
641
+ super(...arguments);
642
+ t(this, "propsOption", {
643
+ colors: ["#7acaec", "#7acaec"]
644
+ });
645
+ t(this, "model", {
646
+ width: 0,
647
+ height: 0,
648
+ svgScale: [1, 1],
649
+ points: [],
650
+ heights: [],
651
+ minHeights: [],
652
+ randoms: []
653
+ });
654
+ t(this, "svgWH", [300, 35]);
655
+ t(this, "rowNum", 1);
656
+ t(this, "rowPoints", 40);
657
+ t(this, "rectWidth", 7);
658
+ t(this, "halfRectWidth", this.rectWidth / 2);
659
+ t(this, "resize", () => {
660
+ this.calcPointsPosition(), this.calcScale();
661
+ });
662
+ }
663
+ calcPointsPosition() {
664
+ let { svgWH: o, rowNum: i, rowPoints: r } = this, [n, s] = o, g = n / (r + 1), m = s / (i + 1), h = new Array(i).fill(0).map(
665
+ (p, f) => new Array(r).fill(0).map((_, u) => [g * (u + 1), m * (f + 1)])
666
+ );
667
+ this.model.points = h.reduce((p, f) => [...p, ...f], []);
668
+ let E = this.model.heights = new Array(i * r).fill(0).map((p) => Math.random() > 0.8 ? y(0.7 * s, s) : y(0.2 * s, 0.5 * s));
669
+ this.model.minHeights = new Array(i * r).fill(0).map((p, f) => E[f] * Math.random()), this.model.randoms = new Array(i * r).fill(0).map((p) => Math.random() + 1.5);
670
+ }
671
+ calcScale() {
672
+ let [o, i] = this.svgWH;
673
+ this.model.svgScale = [this.model.width / o, this.model.height / i];
674
+ }
675
+ }
676
+ let Ut = { render: function(e) {
677
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@(svgWH[0])px", height: "@(svgWH[1])px", style: "transform:scale(@(model.svgScale[0]),@(model.svgScale[1]));" }, [e.createCommand("for", "let (i,point) in model.points", [e.createElement("rect", { fill: "@(props.colors[Math.random() > 0.5 ? 0 : 1])", x: "@(point[0] - halfRectWidth)", y: "@(point[1] - model.heights[i] / 2)", width: "@rectWidth", height: "@(model.heights[i])" }, [e.createElement("animate", { attributeName: "y", values: "@(point[1] - model.minHeights[i] / 2);@(point[1] - model.heights[i] / 2);@(point[1] - model.minHeights[i] / 2)", dur: "@(model.randoms[i])s", keyTimes: "0;0.5;1", calcMode: "spline", keySplines: "0.42,0,0.58,1;0.42,0,0.58,1", begin: "0s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "height", values: "@(model.minHeights[i]);@(model.heights[i]);@(model.minHeights[i])", dur: "@(model.randoms[i])s", keyTimes: "0;0.5;1", calcMode: "spline", keySplines: "0.42,0,0.58,1;0.42,0,0.58,1", begin: "0s", repeatCount: "indefinite" }, [])])])])])];
678
+ } }, jt = {
679
+ component: Xt
680
+ };
681
+ var re, ne;
682
+ let Qt = class extends (ne = jt.component, re = d, ne) {
683
+ constructor() {
684
+ super(...arguments);
685
+ t(this, re, "2a7c89dd");
686
+ t(this, "template", Ut.render);
687
+ }
688
+ };
689
+ class Vt extends a {
690
+ constructor() {
691
+ super(...arguments);
692
+ t(this, "propsOption", {
693
+ colors: ["#1dc1f5", "#1dc1f5"]
694
+ });
695
+ }
696
+ }
697
+ let qt = { render: function(e) {
698
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "21px", height: "20px" }, [e.createElement("polyline", { "stroke-width": "4", fill: "transparent", stroke: "@(props.colors[0])", points: "10, 0 19, 10 10, 20" }, []), e.createElement("polyline", { "stroke-width": "2", fill: "transparent", stroke: "@(props.colors[1])", points: "2, 0 11, 10 2, 20" }, [])]), e.createCommand("RenderSection", ""), e.createElement("svg", { width: "21px", height: "20px" }, [e.createElement("polyline", { "stroke-width": "4", fill: "transparent", stroke: "@(props.colors[0])", points: "11, 0 2, 10 11, 20" }, []), e.createElement("polyline", { "stroke-width": "2", fill: "transparent", stroke: "@(props.colors[1])", points: "19, 0 10, 10 19, 20" }, [])])])];
699
+ } }, Zt = {
700
+ component: Vt
701
+ };
702
+ var se, de;
703
+ let Yt = class extends (de = Zt.component, se = d, de) {
704
+ constructor() {
705
+ super(...arguments);
706
+ t(this, se, "6a75cfee");
707
+ t(this, "template", qt.render);
708
+ }
709
+ };
710
+ class eo extends a {
711
+ constructor() {
712
+ super(...arguments);
713
+ t(this, "propsOption", {
714
+ colors: ["#3f96a5", "#3f96a5"]
715
+ });
716
+ }
717
+ xPos(o) {
718
+ return this.props.reverse ? this.model.width - o : o;
719
+ }
720
+ }
721
+ let to = { render: function(e) {
722
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@model.width", height: "@model.height" }, [e.createElement("polyline", { stroke: "@(props.colors[0])", "stroke-width": "2", fill: "transparent", points: "@xPos(0), 0 @xPos(30), @(model.height / 2)" }, []), e.createElement("polyline", { stroke: "@(props.colors[0])", "stroke-width": "2", fill: "transparent", points: "@xPos(20), 0 @xPos(50), @(model.height / 2) @xPos(model.width), @(model.height / 2)" }, []), e.createElement("polyline", { stroke: "@(props.colors[1])", fill: "transparent", "stroke-width": "3", points: "@xPos(0), @(model.height - 3), @xPos(200), @(model.height - 3)" }, [])])])];
723
+ } }, oo = {
724
+ component: eo
725
+ };
726
+ var ae, me;
727
+ let lo = class extends (me = oo.component, ae = d, me) {
728
+ constructor() {
729
+ super(...arguments);
730
+ t(this, ae, "597abf05");
731
+ t(this, "template", to.render);
732
+ }
733
+ };
734
+ class io extends a {
735
+ constructor() {
736
+ super(...arguments);
737
+ t(this, "model", {
738
+ width: 0,
739
+ height: 0,
740
+ svgScale: [1, 1]
741
+ });
742
+ t(this, "polygonId", `decoration-9-polygon-${c()}`);
743
+ t(this, "propsOption", {
744
+ colors: ["rgba(3, 166, 224, 0.8)", "rgba(3, 166, 224, 0.5)"],
745
+ dur: 3
746
+ });
747
+ t(this, "resize", () => {
748
+ this.calcScale();
749
+ });
750
+ t(this, "svgWH", [100, 100]);
751
+ }
752
+ calcScale() {
753
+ let [o, i] = this.svgWH;
754
+ this.model.svgScale = [this.model.width / o, this.model.height / i];
755
+ }
756
+ }
757
+ let ro = { render: function(e) {
758
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@(svgWH[0])px", height: "@(svgWH[1])px", style: "transform:scale(@(model.svgScale[0]),@(model.svgScale[1]));" }, [e.createElement("defs", {}, [e.createElement("polygon", { id: "@polygonId", points: "15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5" }, [])]), e.createElement("circle", { cx: "50", cy: "50", r: "45", fill: "transparent", stroke: "@(props.colors[1])", "stroke-width": "10", "stroke-dasharray": "80, 100, 30, 100" }, [e.createElement("animateTransform", { attributeName: "transform", type: "rotate", values: "0 50 50;360 50 50", dur: "@(props.dur)s", repeatCount: "indefinite" }, [])]), e.createElement("circle", { cx: "50", cy: "50", r: "45", fill: "transparent", stroke: "@(props.colors[0])", "stroke-width": "6", "stroke-dasharray": "50, 66, 100, 66" }, [e.createElement("animateTransform", { attributeName: "transform", type: "rotate", values: "0 50 50;-360 50 50", dur: "@(props.dur)s", repeatCount: "indefinite" }, [])]), e.createElement("circle", { cx: "50", cy: "50", r: "38", fill: "transparent", stroke: "@(fade(props.colors[1], 30))", "stroke-width": "1", "stroke-dasharray": "5, 1" }, []), e.createCommand("for", "let i = 0; i < 20; i++", [e.createElement("use", { "xlink:href": "#@(polygonId)", stroke: "@(props.colors[1])", fill: "@(Math.random() > 0.4 ? 'transparent' : props.colors[0])" }, [e.createElement("animateTransform", { attributeName: "transform", type: "rotate", values: "0 50 50;360 50 50", dur: "@(props.dur)s", begin: "@(i * props.dur / 20)s", repeatCount: "indefinite" }, [])])]), e.createElement("circle", { cx: "50", cy: "50", r: "26", fill: "transparent", stroke: "@(fade(props.colors[1], 30))", "stroke-width": "1", "stroke-dasharray": "5, 1" }, [])]), e.createCommand("RenderSection", "")])];
759
+ } }, no = {
760
+ component: io
761
+ };
762
+ var pe, ce;
763
+ let so = class extends (ce = no.component, pe = d, ce) {
764
+ constructor() {
765
+ super(...arguments);
766
+ t(this, pe, "ed9a8703");
767
+ t(this, "template", ro.render);
768
+ }
769
+ };
770
+ class ao extends a {
771
+ constructor() {
772
+ super(...arguments);
773
+ t(this, "animationId1", `d10ani1${c()}`);
774
+ t(this, "animationId2", `d10ani2${c()}`);
775
+ t(this, "animationId3", `d10ani3${c()}`);
776
+ t(this, "animationId4", `d10ani4${c()}`);
777
+ t(this, "animationId5", `d10ani5${c()}`);
778
+ t(this, "animationId6", `d10ani6${c()}`);
779
+ t(this, "animationId7", `d10ani7${c()}`);
780
+ t(this, "propsOption", {
781
+ colors: ["#00c2ff", "rgba(0, 194, 255, 0.3)"]
782
+ });
783
+ }
784
+ }
785
+ let mo = { render: function(e) {
786
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@model.width", height: "@model.height" }, [e.createElement("polyline", { stroke: "@(props.colors[1])", "stroke-width": "2", points: "0, @(model.height / 2) @(model.width), @(model.height / 2)" }, []), e.createElement("polyline", { stroke: "@(props.colors[0])", "stroke-width": "2", points: "5, @(model.height / 2) @(model.width * 0.2 - 3), @(model.height / 2)", "stroke-dasharray": "0, @(model.width * 0.2)", fill: "freeze" }, [e.createElement("animate", { id: "@animationId2", attributeName: "stroke-dasharray", values: "0, @(model.width * 0.2);@(model.width * 0.2), 0;", dur: "3s", begin: "@(animationId1).end", fill: "freeze" }, []), e.createElement("animate", { attributeName: "stroke-dasharray", values: "@(model.width * 0.2), 0;0, @(model.width * 0.2)", dur: "0.01s", begin: "@(animationId7).end", fill: "freeze" }, [])]), e.createElement("polyline", { stroke: "@(props.colors[0])", "stroke-width": "2", points: "@(model.width * 0.2 + 3), @(model.height / 2) @(model.width * 0.8 - 3), @(model.height / 2)", "stroke-dasharray": "0, @(model.width * 0.6)" }, [e.createElement("animate", { id: "@animationId4", attributeName: "stroke-dasharray", values: "0, @(model.width * 0.6);@(model.width * 0.6), 0", dur: "3s", begin: "@(animationId3).end + 1s", fill: "freeze" }, []), e.createElement("animate", { attributeName: "stroke-dasharray", values: "@(model.width * 0.6), 0;0, @(model.width * 0.6)", dur: "0.01s", begin: "@(animationId7).end", fill: "freeze" }, [])]), e.createElement("polyline", { stroke: "@(props.colors[0])", "stroke-width": "2", points: "@(model.width * 0.8 + 3), @(model.height / 2) @(model.width - 5), @(model.height / 2)", "stroke-dasharray": "0, @(model.width * 0.2)" }, [e.createElement("animate", { id: "@animationId6", attributeName: "stroke-dasharray", values: "0, @(model.width * 0.2);@(model.width * 0.2), 0", dur: "3s", begin: "@(animationId5).end + 1s", fill: "freeze" }, []), e.createElement("animate", { attributeName: "stroke-dasharray", values: "@(model.width * 0.2), 0;0, @(model.width * 0.3)", dur: "0.01s", begin: "@(animationId7).end", fill: "freeze" }, [])]), e.createElement("circle", { cx: "2", cy: "@(model.height / 2)", r: "2", fill: "@(props.colors[1])" }, [e.createElement("animate", { id: "@animationId1", attributeName: "fill", values: "@(props.colors[1]);@(props.colors[0])", begin: "0s;@(animationId7).end", dur: "0.3s", fill: "freeze" }, [])]), e.createElement("circle", { cx: "@(model.width * 0.2)", cy: "@(model.height / 2)", r: "2", fill: "@(props.colors[1])" }, [e.createElement("animate", { id: "@animationId3", attributeName: "fill", values: "@(props.colors[1]);@(props.colors[0])", begin: "@(animationId2).end", dur: "0.3s", fill: "freeze" }, []), e.createElement("animate", { attributeName: "fill", values: "@(props.colors[1]);@(props.colors[1])", dur: "0.01s", begin: "@(animationId7).end", fill: "freeze" }, [])]), e.createElement("circle", { cx: "@(model.width * 0.8)", cy: "@(model.height / 2)", r: "2", fill: "@(props.colors[1])" }, [e.createElement("animate", { id: "@animationId5", attributeName: "fill", values: "@(props.colors[1]);@(props.colors[0])", begin: "@(animationId4).end", dur: "0.3s", fill: "freeze" }, []), e.createElement("animate", { attributeName: "fill", values: "@(props.colors[1]);@(props.colors[1])", dur: "0.01s", begin: "@(animationId7).end", fill: "freeze" }, [])]), e.createElement("circle", { cx: "@(model.width - 2)", cy: "@(model.height / 2)", r: "2", fill: "@(props.colors[1])" }, [e.createElement("animate", { id: "@animationId7", attributeName: "fill", values: "@(props.colors[1]);@(props.colors[0])", begin: "@(animationId6).end", dur: "0.3s", fill: "freeze" }, []), e.createElement("animate", { attributeName: "fill", values: "@(props.colors[1]);@(props.colors[1])", dur: "0.01s", begin: "@(animationId7).end", fill: "freeze" }, [])])])])];
787
+ } }, po = {
788
+ component: ao
789
+ };
790
+ var he, ge;
791
+ let co = class extends (ge = po.component, he = d, ge) {
792
+ constructor() {
793
+ super(...arguments);
794
+ t(this, he, "72693e04");
795
+ t(this, "template", mo.render);
796
+ }
797
+ };
798
+ class ho extends a {
799
+ constructor() {
800
+ super(...arguments);
801
+ t(this, "propsOption", {
802
+ colors: ["#1a98fc", "#2cf7fe"]
803
+ });
804
+ }
805
+ }
806
+ let go = { render: function(e) {
807
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@model.width", height: "@model.height" }, [e.createElement("polygon", { fill: "@(fade(props.colors[1], 10))", stroke: "@(props.colors[1])", points: "20 10, 25 4, 55 4 60 10" }, []), e.createElement("polygon", { fill: "@(fade(props.colors[1], 10))", stroke: "@(props.colors[1])", points: "20 @(model.height - 10), 25 @(model.height - 4), 55 @(model.height - 4) 60 @(model.height - 10)" }, []), e.createElement("polygon", { fill: "@(fade(props.colors[1], 10))", stroke: "@(props.colors[1])", points: "@(model.width - 20) 10, @(model.width - 25) 4, @(model.width - 55) 4 @(model.width - 60) 10" }, []), e.createElement("polygon", { fill: "@(fade(props.colors[1], 10))", stroke: "@(props.colors[1])", points: "@(model.width - 20) @(model.height - 10), @(model.width - 25) @(model.height - 4), @(model.width - 55) @(model.height - 4) @(model.width - 60) @(model.height - 10)" }, []), e.createElement("polygon", { fill: "@(fade(props.colors[0] , 20))", stroke: "@(props.colors[0])", points: "20 10, 5 @(model.height / 2) 20 @(model.height - 10) @(model.width - 20) @(model.height - 10) @(model.width - 5) @(model.height / 2) @(model.width - 20) 10" }, []), e.createElement("polyline", { fill: "transparent", stroke: "@fade(props.colors[0] , 70)", points: "25 18, 15 @(model.height / 2) 25 @(model.height - 18)" }, []), e.createElement("polyline", { fill: "transparent", stroke: "@fade(props.colors[0] , 70)", points: "@(model.width - 25) 18, @(model.width - 15) @(model.height / 2) @(model.width - 25) @(model.height - 18)" }, [])]), e.createElement("div", { class: "decoration-content" }, [e.createCommand("RenderSection", "")])])];
808
+ } }, Eo = {
809
+ component: ho
810
+ };
811
+ var Ee, fe;
812
+ let fo = class extends (fe = Eo.component, Ee = d, fe) {
813
+ constructor() {
814
+ super(...arguments);
815
+ t(this, Ee, "be570701");
816
+ t(this, "template", go.render);
817
+ }
818
+ };
819
+ class _o extends a {
820
+ constructor() {
821
+ super(...arguments);
822
+ t(this, "gId", `decoration-12-g-${c()}`);
823
+ t(this, "gradientId", `decoration-12-gradient-${c()}`);
824
+ t(this, "propsOption", {
825
+ colors: ["#2783ce", "#2cf7fe"],
826
+ scanDur: 3,
827
+ haloDur: 2
828
+ });
829
+ t(this, "segment", 30);
830
+ t(this, "sectorAngle", Math.PI / 3);
831
+ t(this, "ringNum", 3);
832
+ t(this, "ringWidth", 1);
833
+ t(this, "model", {
834
+ width: 0,
835
+ height: 0,
836
+ pathD: [],
837
+ pathColor: [],
838
+ circleR: [],
839
+ splitLinePoints: [],
840
+ arcD: []
841
+ });
842
+ t(this, "resize", () => {
843
+ this.calcPathColor(), this.calcPathD(), this.calcCircleR(), this.calcSplitLinePoints(), this.calcArcD();
844
+ });
845
+ }
846
+ get x() {
847
+ return this.model.width / 2;
848
+ }
849
+ get y() {
850
+ return this.model.height / 2;
851
+ }
852
+ calcPathD() {
853
+ let { x: o, y: i, segment: r, sectorAngle: n } = this, s = -Math.PI / 2, g = n / r, m = this.model.width / 4, h = w(o, i, m, s);
854
+ this.model.pathD = new Array(r).fill("").map((E, p) => {
855
+ let f = w(o, i, m, s - (p + 1) * g).map((u) => u.toFixed(5)), _ = `M${h.join(",")} A${m}, ${m} 0 0 0 ${f.join(",")}`;
856
+ return h = f.map((u) => Number(u)), _;
857
+ });
858
+ }
859
+ calcPathColor() {
860
+ let o = 100 / (this.segment - 1);
861
+ this.model.pathColor = new Array(this.segment).fill(this.props.colors[0]).map((i, r) => this.fade(this.props.colors[0], 100 - r * o));
862
+ }
863
+ calcCircleR() {
864
+ let { ringNum: o, ringWidth: i } = this, r = (this.model.width / 2 - i / 2) / o;
865
+ this.model.circleR = new Array(o).fill(0).map((n, s) => r * (s + 1));
866
+ }
867
+ calcSplitLinePoints() {
868
+ let { x: o, y: i } = this, r = Math.PI / 6, n = this.model.width / 2;
869
+ this.model.splitLinePoints = new Array(6).fill("").map((s, g) => {
870
+ const m = r * (g + 1), h = m + Math.PI, E = w(o, i, n, m), p = w(o, i, n, h);
871
+ return `${E.join(",")} ${p.join(",")}`;
872
+ });
873
+ }
874
+ calcArcD() {
875
+ let { x: o, y: i } = this, r = Math.PI / 6, n = this.model.width / 2 - 1;
876
+ this.model.arcD = new Array(4).fill("").map((s, g) => {
877
+ let m = r * (3 * g + 1), h = m + r, E = w(o, i, n, m), p = w(o, i, n, h);
878
+ return `M${E.join(",")} A${o}, ${i} 0 0 1 ${p.join(",")}`;
879
+ });
880
+ }
881
+ }
882
+ let wo = { render: function(e) {
883
+ return [e.createElement("div", { class: "@(['container', props.class])", style: "@props.style" }, [e.createElement("svg", { width: "@model.width", height: "@model.height" }, [e.createElement("defs", {}, [e.createElement("g", { id: "@gId" }, [e.createCommand("for", "let (i,d) in model.pathD", [e.createElement("path", { stroke: "@(model.pathColor[i])", "stroke-width": "@(model.width / 2)", fill: "transparent", d: "@d" }, [])])]), e.createElement("radialGradient", { id: "@gradientId", cx: "50%", cy: "50%", r: "50%" }, [e.createElement("stop", { offset: "0%", "stop-color": "transparent", "stop-opacity": "1" }, []), e.createElement("stop", { offset: "100%", "stop-color": "@fade(props.colors[1], 30)", "stop-opacity": "1" }, [])])]), e.createCommand("for", "let r of model.circleR", [e.createElement("circle", { r: "@r", cx: "@x", cy: "@y", stroke: "@(props.colors[1])", "stroke-width": "0.5", fill: "transparent" }, [])]), e.createElement("circle", { r: "1", cx: "@x", cy: "@y", stroke: "transparent", fill: "url(#@(gradientId))" }, [e.createElement("animate", { attributeName: "r", values: "1;@(model.width / 2)", dur: "@(props.haloDur)s", repeatCount: "indefinite" }, []), e.createElement("animate", { attributeName: "opacity", values: "1;0", dur: "@(props.haloDur)s", repeatCount: "indefinite" }, [])]), e.createElement("circle", { r: "2", cx: "@x", cy: "@y", fill: "@(props.colors[1])" }, []), e.createElement("g", {}, [e.createCommand("for", "let p of model.splitLinePoints", [e.createElement("polyline", { points: "@p", stroke: "@(props.colors[1])", "stroke-width": "0.5", opacity: "0.5" }, [])])]), e.createCommand("for", "let d of model.arcD", [e.createElement("path", { d: "@d", stroke: "@(props.colors[1])", "stroke-width": "2", fill: "transparent" }, [])]), e.createElement("use", { "xlink:href": "#@gId" }, [e.createElement("animateTransform", { attributeName: "transform", type: "rotate", values: "0, @x @y;360, @x @y", dur: "@(props.scanDur)s", repeatCount: "indefinite" }, [])])]), e.createElement("div", { class: "decoration-content" }, [e.createCommand("RenderSection", "")])])];
884
+ } }, uo = {
885
+ component: _o
886
+ };
887
+ var _e, we;
888
+ let bo = class extends (we = uo.component, _e = d, we) {
889
+ constructor() {
890
+ super(...arguments);
891
+ t(this, _e, "b78c6be8");
892
+ t(this, "template", wo.render);
893
+ }
894
+ }, R = {
895
+ BorderBox1: Pe,
896
+ BorderBox2: $e,
897
+ BorderBox3: Je,
898
+ BorderBox4: ze,
899
+ BorderBox5: Ue,
900
+ BorderBox6: qe,
901
+ BorderBox7: tt,
902
+ BorderBox8: rt,
903
+ BorderBox9: at,
904
+ BorderBox10: ht,
905
+ BorderBox11: _t,
906
+ BorderBox12: yt,
907
+ BorderBox13: kt,
908
+ Decoration1: At,
909
+ Decoration2: Nt,
910
+ Decoration3: Dt,
911
+ Decoration4: Wt,
912
+ Decoration5: Gt,
913
+ Decoration6: Qt,
914
+ Decoration7: Yt,
915
+ Decoration8: lo,
916
+ Decoration9: so,
917
+ Decoration10: co,
918
+ Decoration11: fo,
919
+ Decoration12: bo
920
+ };
921
+ for (let e in R) {
922
+ let l = `dv-${Ce(e)}`;
923
+ ve({
924
+ [l]: R[e]
925
+ });
926
+ }