go-captcha-vue 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -4
- package/dist/components/button/index.vue.d.ts +3 -6
- package/dist/components/click/hooks/handler.d.ts +5 -1
- package/dist/components/click/index.vue.d.ts +9 -6
- package/dist/components/click/meta/config.d.ts +2 -0
- package/dist/components/click/meta/data.d.ts +1 -1
- package/dist/components/click/meta/event.d.ts +2 -3
- package/dist/components/click/meta/expose.d.ts +11 -0
- package/dist/components/rotate/hooks/handler.d.ts +7 -1
- package/dist/components/rotate/index.vue.d.ts +9 -6
- package/dist/components/rotate/meta/config.d.ts +2 -0
- package/dist/components/rotate/meta/data.d.ts +1 -0
- package/dist/components/rotate/meta/event.d.ts +1 -1
- package/dist/components/rotate/meta/expose.d.ts +11 -0
- package/dist/components/slide/hooks/handler.d.ts +7 -1
- package/dist/components/slide/index.vue.d.ts +9 -6
- package/dist/components/slide/meta/config.d.ts +2 -0
- package/dist/components/slide/meta/data.d.ts +1 -0
- package/dist/components/slide/meta/event.d.ts +1 -1
- package/dist/components/slide/meta/expose.d.ts +11 -0
- package/dist/components/slide-region/hooks/handler.d.ts +7 -1
- package/dist/components/slide-region/index.vue.d.ts +9 -6
- package/dist/components/slide-region/meta/config.d.ts +2 -0
- package/dist/components/slide-region/meta/data.d.ts +1 -0
- package/dist/components/slide-region/meta/event.d.ts +1 -1
- package/dist/components/slide-region/meta/expose.d.ts +11 -0
- package/dist/go-captcha-vue.es.js +2325 -593
- package/dist/go-captcha-vue.umd.js +24 -8
- package/dist/index.d.ts +4 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as te, openBlock as z, createElementBlock as U, mergeProps as Se, createElementVNode as f, reactive as M, toRaw as Q, watch as H, computed as L, withDirectives as oe, normalizeClass as _e, normalizeStyle as C, toDisplayString as Le, vShow as re, createVNode as G, unref as x, Fragment as Qn, renderList as Zn, ref as ie, onMounted as Rt, nextTick as Vt, onUnmounted as es, toRefs as ts, createBlock as Je, createCommentVNode as ns } from "vue";
|
|
2
|
+
const Qt = () => ({
|
|
3
3
|
width: 300,
|
|
4
4
|
height: 220,
|
|
5
5
|
thumbWidth: 150,
|
|
@@ -8,32 +8,34 @@ const re = () => ({
|
|
|
8
8
|
horizontalPadding: 12,
|
|
9
9
|
showTheme: !0,
|
|
10
10
|
title: "请在下图依次点击",
|
|
11
|
-
buttonText: "确认"
|
|
12
|
-
|
|
11
|
+
buttonText: "确认",
|
|
12
|
+
iconSize: 22,
|
|
13
|
+
dotSize: 24
|
|
14
|
+
}), ss = /* @__PURE__ */ f("path", { d: `M100.1,189.9C100.1,189.9,100,189.9,100.1,189.9c-49.7,0-90-40.4-90-89.9c0-49.6,40.4-89.9,89.9-89.9
|
|
13
15
|
c49.6,0,89.9,40.4,89.9,89.9c0,18.2-5.4,35.7-15.6,50.7c-1.5,2.1-3.6,3.4-6.1,3.9c-2.5,0.4-5-0.1-7-1.6c-4.2-3-5.3-8.6-2.4-12.9
|
|
14
16
|
c8.1-11.9,12.4-25.7,12.4-40.1c0-39.2-31.9-71.1-71.1-71.1c-39.2,0-71.1,31.9-71.1,71.1c0,39.2,31.9,71.1,71.1,71.1
|
|
15
17
|
c7.7,0,15.3-1.2,22.6-3.6c2.4-0.8,4.9-0.6,7.2,0.5c2.2,1.1,3.9,3.1,4.7,5.5c1.6,4.9-1,10.2-5.9,11.9
|
|
16
18
|
C119.3,188.4,109.8,189.9,100.1,189.9z M73,136.4C73,136.4,73,136.4,73,136.4c-2.5,0-4.9-1-6.7-2.8c-3.7-3.7-3.7-9.6,0-13.3
|
|
17
19
|
L86.7,100L66.4,79.7c-3.7-3.7-3.7-9.6,0-13.3c3.7-3.7,9.6-3.7,13.3,0L100,86.7l20.3-20.3c1.8-1.8,4.1-2.8,6.7-2.8c0,0,0,0,0,0
|
|
18
20
|
c2.5,0,4.9,1,6.7,2.8c1.8,1.8,2.8,4.1,2.8,6.7c0,2.5-1,4.9-2.8,6.7L113.3,100l20.3,20.3c3.7,3.7,3.7,9.6,0,13.3
|
|
19
|
-
c-3.7,3.7-9.6,3.7-13.3,0L100,113.3l-20.3,20.3C77.9,135.4,75.5,136.4,73,136.4z` }, null, -1),
|
|
20
|
-
|
|
21
|
-
],
|
|
21
|
+
c-3.7,3.7-9.6,3.7-13.3,0L100,113.3l-20.3,20.3C77.9,135.4,75.5,136.4,73,136.4z` }, null, -1), os = [
|
|
22
|
+
ss
|
|
23
|
+
], mt = /* @__PURE__ */ te({
|
|
22
24
|
__name: "close-icon",
|
|
23
25
|
emits: ["click"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
function s
|
|
27
|
-
|
|
26
|
+
setup(e, { emit: t }) {
|
|
27
|
+
const n = t;
|
|
28
|
+
function o(s) {
|
|
29
|
+
n("click", s);
|
|
28
30
|
}
|
|
29
|
-
return (
|
|
31
|
+
return (s, r) => (z(), U("svg", Se({
|
|
30
32
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
33
|
viewBox: "0 0 200 200",
|
|
32
34
|
width: "20",
|
|
33
35
|
height: "20"
|
|
34
|
-
},
|
|
36
|
+
}, s.$attrs, { onClick: o }), os, 16));
|
|
35
37
|
}
|
|
36
|
-
}),
|
|
38
|
+
}), rs = /* @__PURE__ */ f("path", { d: `M135,149.9c-10.7,7.6-23.2,11.4-36,11.2c-1.7,0-3.4-0.1-5-0.3c-0.7-0.1-1.4-0.2-2-0.3c-1.3-0.2-2.6-0.4-3.9-0.6
|
|
37
39
|
c-0.8-0.2-1.6-0.4-2.3-0.5c-1.2-0.3-2.5-0.6-3.7-1c-0.6-0.2-1.2-0.4-1.7-0.6c-1.4-0.5-2.8-1-4.2-1.5c-0.3-0.1-0.6-0.3-0.9-0.4
|
|
38
40
|
c-1.6-0.7-3.2-1.4-4.7-2.3c-0.1,0-0.1-0.1-0.2-0.1c-5.1-2.9-9.8-6.4-14-10.6c-0.1-0.1-0.1-0.1-0.2-0.2c-1.3-1.3-2.5-2.7-3.7-4.1
|
|
39
41
|
c-0.2-0.3-0.5-0.6-0.7-0.9c-8.4-10.6-13.5-24.1-13.5-38.8h14.3c0.4,0,0.7-0.2,0.9-0.5c0.2-0.3,0.2-0.8,0-1.1L29.5,60.9
|
|
@@ -50,29 +52,29 @@ const re = () => ({
|
|
|
50
52
|
c0.6,0.1,1.3,0.3,1.9,0.4c1.4,0.3,2.8,0.7,4.2,1.1c0.4,0.1,0.9,0.3,1.3,0.4c1.6,0.5,3.1,1.1,4.6,1.7c0.2,0.1,0.3,0.1,0.5,0.2
|
|
51
53
|
c9,3.9,17,10,23.2,17.6c0,0,0.1,0.1,0.1,0.2c8.7,10.7,14,24.5,14,39.4H147c-0.4,0-0.7,0.2-0.9,0.5c-0.2,0.3-0.2,0.8,0,1.1l24,36.4
|
|
52
54
|
c0.2,0.3,0.5,0.5,0.9,0.5c0.4,0,0.7-0.2,0.9-0.5l23.9-36.4c0.2-0.3,0.2-0.7,0-1.1c-0.2-0.3-0.5-0.5-0.9-0.5L180.6,98.9L180.6,98.9
|
|
53
|
-
L180.6,98.9z` }, null, -1),
|
|
54
|
-
|
|
55
|
-
],
|
|
55
|
+
L180.6,98.9z` }, null, -1), cs = [
|
|
56
|
+
rs
|
|
57
|
+
], _t = /* @__PURE__ */ te({
|
|
56
58
|
__name: "refresh-icon",
|
|
57
59
|
emits: ["click"],
|
|
58
|
-
setup(
|
|
59
|
-
const
|
|
60
|
-
function s
|
|
61
|
-
|
|
60
|
+
setup(e, { emit: t }) {
|
|
61
|
+
const n = t;
|
|
62
|
+
function o(s) {
|
|
63
|
+
n("click", s);
|
|
62
64
|
}
|
|
63
|
-
return (
|
|
65
|
+
return (s, r) => (z(), U("svg", Se({
|
|
64
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
65
67
|
viewBox: "0 0 200 200",
|
|
66
68
|
width: "20",
|
|
67
69
|
height: "20"
|
|
68
|
-
},
|
|
70
|
+
}, s.$attrs, { onClick: o }), cs, 16));
|
|
69
71
|
}
|
|
70
|
-
}),
|
|
72
|
+
}), is = /* @__PURE__ */ f("circle", {
|
|
71
73
|
cx: "50",
|
|
72
74
|
cy: "36.8101",
|
|
73
75
|
r: "10"
|
|
74
76
|
}, [
|
|
75
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ f("animate", {
|
|
76
78
|
attributeName: "cy",
|
|
77
79
|
dur: "1s",
|
|
78
80
|
repeatCount: "indefinite",
|
|
@@ -81,164 +83,190 @@ const re = () => ({
|
|
|
81
83
|
keyTimes: "0;0.5;1",
|
|
82
84
|
values: "23;77;23"
|
|
83
85
|
})
|
|
84
|
-
], -1),
|
|
85
|
-
|
|
86
|
-
],
|
|
86
|
+
], -1), ls = [
|
|
87
|
+
is
|
|
88
|
+
], vt = /* @__PURE__ */ te({
|
|
87
89
|
__name: "loading-icon",
|
|
88
90
|
emits: ["click"],
|
|
89
|
-
setup(
|
|
90
|
-
const
|
|
91
|
-
function s
|
|
92
|
-
|
|
91
|
+
setup(e, { emit: t }) {
|
|
92
|
+
const n = t;
|
|
93
|
+
function o(s) {
|
|
94
|
+
n("click", s);
|
|
93
95
|
}
|
|
94
|
-
return (
|
|
96
|
+
return (s, r) => (z(), U("svg", Se({
|
|
95
97
|
xmlns: "http://www.w3.org/2000/svg",
|
|
96
98
|
viewBox: "0 0 100 100",
|
|
97
99
|
preserveAspectRatio: "xMidYMid",
|
|
98
100
|
width: "84",
|
|
99
101
|
height: "84"
|
|
100
|
-
},
|
|
102
|
+
}, s.$attrs, { onClick: o }), ls, 16));
|
|
101
103
|
}
|
|
102
104
|
});
|
|
103
|
-
function
|
|
104
|
-
let
|
|
105
|
-
if (
|
|
106
|
-
const
|
|
107
|
-
|
|
105
|
+
function as(e) {
|
|
106
|
+
let t = 0, n = 0;
|
|
107
|
+
if (e.getBoundingClientRect) {
|
|
108
|
+
const o = e.getBoundingClientRect(), s = document.documentElement;
|
|
109
|
+
t = o.left + Math.max(s.scrollLeft, document.body.scrollLeft) - s.clientLeft, n = o.top + Math.max(s.scrollTop, document.body.scrollTop) - s.clientTop;
|
|
108
110
|
} else
|
|
109
|
-
for (;
|
|
110
|
-
|
|
111
|
+
for (; e !== document.body; )
|
|
112
|
+
t += e.offsetLeft, n += e.offsetTop, e = e.offsetParent;
|
|
111
113
|
return {
|
|
112
|
-
domX:
|
|
113
|
-
domY:
|
|
114
|
+
domX: t,
|
|
115
|
+
domY: n
|
|
114
116
|
};
|
|
115
117
|
}
|
|
116
|
-
function
|
|
117
|
-
let
|
|
118
|
+
function zt(e, t) {
|
|
119
|
+
let n = t.relatedTarget;
|
|
118
120
|
try {
|
|
119
|
-
for (;
|
|
120
|
-
|
|
121
|
-
} catch (
|
|
122
|
-
console.warn(
|
|
121
|
+
for (; n && n !== e; )
|
|
122
|
+
n = n.parentNode;
|
|
123
|
+
} catch (o) {
|
|
124
|
+
console.warn(o);
|
|
123
125
|
}
|
|
124
|
-
return
|
|
126
|
+
return n !== e;
|
|
125
127
|
}
|
|
126
|
-
function
|
|
127
|
-
const
|
|
128
|
+
function us(e, t, n) {
|
|
129
|
+
const o = M({ list: [] }), s = (a) => {
|
|
130
|
+
const E = a.currentTarget, b = as(E), h = a.pageX || a.clientX, w = a.pageY || a.clientY, m = b.domX, N = b.domY, P = h - m, _ = w - N, v = parseInt(P.toString()), d = parseInt(_.toString()), y = /* @__PURE__ */ new Date(), V = o.list.length;
|
|
131
|
+
return o.list.push({ key: y.getTime(), index: V + 1, x: v, y: d }), t.click && t.click(v, d), a.cancelBubble = !0, a.preventDefault(), !1;
|
|
132
|
+
}, r = (a) => (t.confirm && t.confirm(Q(o.list), () => {
|
|
133
|
+
g();
|
|
134
|
+
}), a.cancelBubble = !0, a.preventDefault(), !1), c = (a) => (i(), a.cancelBubble = !0, a.preventDefault(), !1), l = (a) => (u(), a.cancelBubble = !0, a.preventDefault(), !1), i = () => {
|
|
135
|
+
t.close && t.close(), g();
|
|
136
|
+
}, u = () => {
|
|
137
|
+
t.refresh && t.refresh(), g();
|
|
138
|
+
}, g = () => {
|
|
139
|
+
o.list = [];
|
|
140
|
+
};
|
|
128
141
|
return {
|
|
129
|
-
dots:
|
|
130
|
-
clickEvent:
|
|
131
|
-
|
|
132
|
-
|
|
142
|
+
dots: o,
|
|
143
|
+
clickEvent: s,
|
|
144
|
+
confirmEvent: r,
|
|
145
|
+
closeEvent: c,
|
|
146
|
+
refreshEvent: l,
|
|
147
|
+
resetData: g,
|
|
148
|
+
clearData: () => {
|
|
149
|
+
g(), n && n();
|
|
133
150
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}), o.cancelBubble = !0, o.preventDefault(), !1),
|
|
137
|
-
closeEvent: (o) => (n.close && n.close(), t.list = [], o.cancelBubble = !0, o.preventDefault(), !1),
|
|
138
|
-
refreshEvent: (o) => (n.refresh && n.refresh(), t.list = [], o.cancelBubble = !0, o.preventDefault(), !1)
|
|
151
|
+
refresh: u,
|
|
152
|
+
close: i
|
|
139
153
|
};
|
|
140
154
|
}
|
|
141
|
-
const
|
|
155
|
+
const ds = { class: "gc-header" }, fs = ["src"], hs = { class: "gc-loading" }, ps = ["src"], gs = { class: "gc-dots" }, ms = { class: "gc-footer" }, _s = { class: "gc-icon-block gc-icon-block2" }, vs = { class: "gc-button-block" }, ct = /* @__PURE__ */ te({
|
|
142
156
|
__name: "index",
|
|
143
157
|
props: {
|
|
144
|
-
config: { default:
|
|
158
|
+
config: { default: Qt },
|
|
145
159
|
events: { default: () => ({}) },
|
|
146
160
|
data: { default: () => ({}) }
|
|
147
161
|
},
|
|
148
|
-
setup(
|
|
149
|
-
const n =
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
162
|
+
setup(e, { expose: t }) {
|
|
163
|
+
const n = e, { data: o, events: s, config: r } = n, c = M({ ...Q(o) }), l = M({ ...Q(s) }), i = M({ ...Qt(), ...Q(r) });
|
|
164
|
+
H(() => n.data, (h, w) => {
|
|
165
|
+
Object.assign(c, h);
|
|
166
|
+
}, { deep: !0 }), H(() => n.events, (h, w) => {
|
|
167
|
+
Object.assign(l, h);
|
|
168
|
+
}, { deep: !0 }), H(() => n.config, (h, w) => {
|
|
169
|
+
Object.assign(i, h);
|
|
170
|
+
}, { deep: !0 });
|
|
171
|
+
const u = us(c, l, () => {
|
|
172
|
+
c.thumb = "", c.image = "";
|
|
173
|
+
}), g = L(() => {
|
|
174
|
+
const h = i.horizontalPadding || 0, w = i.verticalPadding || 0;
|
|
175
|
+
return {
|
|
176
|
+
width: (i.width || 0) + h * 2 + (i.showTheme ? 2 : 0) + "px",
|
|
177
|
+
paddingLeft: h + "px",
|
|
178
|
+
paddingRight: h + "px",
|
|
179
|
+
paddingTop: w + "px",
|
|
180
|
+
paddingBottom: w + "px"
|
|
157
181
|
};
|
|
158
|
-
})
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
class: j(`go-captcha gc-wrapper ${e.value.showTheme ? "gc-theme" : ""}`),
|
|
174
|
-
style: _(m.value)
|
|
182
|
+
}), p = L(() => ({
|
|
183
|
+
width: i.thumbWidth + "px",
|
|
184
|
+
height: i.thumbHeight + "px"
|
|
185
|
+
})), a = L(() => ({
|
|
186
|
+
width: i.width + "px",
|
|
187
|
+
height: i.height + "px"
|
|
188
|
+
})), E = L(() => c.image != "" || c.thumb != ""), b = L(() => (i.width || 0) > 0 || (i.height || 0) > 0);
|
|
189
|
+
return t({
|
|
190
|
+
reset: u.resetData,
|
|
191
|
+
clear: u.clearData,
|
|
192
|
+
refresh: u.refresh,
|
|
193
|
+
close: u.close
|
|
194
|
+
}), (h, w) => oe((z(), U("div", {
|
|
195
|
+
class: _e(`go-captcha gc-wrapper ${i.showTheme && "gc-theme"}`),
|
|
196
|
+
style: C(g.value)
|
|
175
197
|
}, [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
style:
|
|
180
|
-
src:
|
|
181
|
-
alt: "
|
|
182
|
-
}, null, 12,
|
|
183
|
-
[
|
|
198
|
+
f("div", ds, [
|
|
199
|
+
f("span", null, Le(i.title), 1),
|
|
200
|
+
oe(f("img", {
|
|
201
|
+
style: C(p.value),
|
|
202
|
+
src: c.thumb,
|
|
203
|
+
alt: ""
|
|
204
|
+
}, null, 12, fs), [
|
|
205
|
+
[re, E.value]
|
|
184
206
|
])
|
|
185
207
|
]),
|
|
186
|
-
|
|
208
|
+
f("div", {
|
|
187
209
|
class: "gc-body",
|
|
188
|
-
style:
|
|
210
|
+
style: C(a.value)
|
|
189
211
|
}, [
|
|
190
|
-
|
|
191
|
-
|
|
212
|
+
f("div", hs, [
|
|
213
|
+
G(vt)
|
|
192
214
|
]),
|
|
193
|
-
|
|
194
|
-
style:
|
|
215
|
+
oe(f("img", {
|
|
216
|
+
style: C(a.value),
|
|
195
217
|
class: "gc-picture",
|
|
196
|
-
src:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}, null, 12,
|
|
201
|
-
[
|
|
218
|
+
src: c.image,
|
|
219
|
+
onClick: w[0] || (w[0] = //@ts-ignore
|
|
220
|
+
(...m) => x(u).clickEvent && x(u).clickEvent(...m)),
|
|
221
|
+
alt: ""
|
|
222
|
+
}, null, 12, ps), [
|
|
223
|
+
[re, E.value]
|
|
202
224
|
]),
|
|
203
|
-
|
|
204
|
-
(
|
|
225
|
+
f("div", gs, [
|
|
226
|
+
(z(!0), U(Qn, null, Zn(x(u).dots.list, (m) => (z(), U("div", {
|
|
205
227
|
class: "gc-dot",
|
|
206
|
-
key: `${
|
|
207
|
-
style:
|
|
208
|
-
|
|
209
|
-
|
|
228
|
+
key: `${m.key + "-" + m.index}`,
|
|
229
|
+
style: C({
|
|
230
|
+
width: i.dotSize + "px",
|
|
231
|
+
height: i.dotSize + "px",
|
|
232
|
+
borderRadius: i.dotSize + "px",
|
|
233
|
+
top: m.y - (i.dotSize || 1) / 2 - 1 + "px",
|
|
234
|
+
left: m.x - (i.dotSize || 1) / 2 - 1 + "px"
|
|
210
235
|
})
|
|
211
|
-
},
|
|
236
|
+
}, Le(m.index), 5))), 128))
|
|
212
237
|
])
|
|
213
238
|
], 4),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
width:
|
|
218
|
-
height:
|
|
219
|
-
onClick:
|
|
220
|
-
}, null, 8, ["onClick"]),
|
|
221
|
-
|
|
222
|
-
width:
|
|
223
|
-
height:
|
|
224
|
-
onClick:
|
|
225
|
-
}, null, 8, ["onClick"])
|
|
239
|
+
f("div", ms, [
|
|
240
|
+
f("div", _s, [
|
|
241
|
+
G(mt, {
|
|
242
|
+
width: i.iconSize,
|
|
243
|
+
height: i.iconSize,
|
|
244
|
+
onClick: x(u).closeEvent
|
|
245
|
+
}, null, 8, ["width", "height", "onClick"]),
|
|
246
|
+
G(_t, {
|
|
247
|
+
width: i.iconSize,
|
|
248
|
+
height: i.iconSize,
|
|
249
|
+
onClick: x(u).refreshEvent
|
|
250
|
+
}, null, 8, ["width", "height", "onClick"])
|
|
226
251
|
]),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
252
|
+
f("div", vs, [
|
|
253
|
+
f("button", {
|
|
254
|
+
class: _e(!E.value && "disabled"),
|
|
255
|
+
onClick: w[1] || (w[1] = //@ts-ignore
|
|
256
|
+
(...m) => x(u).confirmEvent && x(u).confirmEvent(...m))
|
|
257
|
+
}, Le(i.buttonText), 3)
|
|
232
258
|
])
|
|
233
259
|
])
|
|
234
|
-
], 6))
|
|
260
|
+
], 6)), [
|
|
261
|
+
[re, b.value]
|
|
262
|
+
]);
|
|
235
263
|
}
|
|
236
264
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
265
|
+
ct.name = "gocaptcha-click";
|
|
266
|
+
ct.install = function(e) {
|
|
267
|
+
e.component("gocaptcha-click", ct);
|
|
240
268
|
};
|
|
241
|
-
const
|
|
269
|
+
const Zt = () => ({
|
|
242
270
|
width: 300,
|
|
243
271
|
height: 220,
|
|
244
272
|
thumbWidth: 150,
|
|
@@ -246,664 +274,2368 @@ const de = () => ({
|
|
|
246
274
|
verticalPadding: 16,
|
|
247
275
|
horizontalPadding: 12,
|
|
248
276
|
showTheme: !0,
|
|
249
|
-
title: "请拖动滑块完成拼图"
|
|
250
|
-
|
|
277
|
+
title: "请拖动滑块完成拼图",
|
|
278
|
+
iconSize: 22,
|
|
279
|
+
scope: !0
|
|
280
|
+
}), Es = /* @__PURE__ */ f("path", { d: `M131.6,116.3c0,0-75.6,0-109.7,0c-9.1,0-16.2-7.4-16.2-16.2c0-9.1,7.4-16.2,16.2-16.2c28.7,0,109.7,0,109.7,0
|
|
251
281
|
s-5.4-5.4-30.4-30.7c-6.4-6.4-6.4-16.7,0-23.1s16.7-6.4,23.1,0l58.4,58.4c6.4,6.4,6.4,16.7,0,23.1c0,0-32.9,32.9-57.9,57.9
|
|
252
|
-
c-6.4,6.4-16.7,6.4-23.1,0c-6.4-6.4-6.4-16.7,0-23.1C121.8,126.2,131.6,116.3,131.6,116.3z` }, null, -1),
|
|
253
|
-
|
|
254
|
-
],
|
|
282
|
+
c-6.4,6.4-16.7,6.4-23.1,0c-6.4-6.4-6.4-16.7,0-23.1C121.8,126.2,131.6,116.3,131.6,116.3z` }, null, -1), bs = [
|
|
283
|
+
Es
|
|
284
|
+
], vn = /* @__PURE__ */ te({
|
|
255
285
|
__name: "arrows-icon",
|
|
256
286
|
emits: ["click"],
|
|
257
|
-
setup(
|
|
258
|
-
const
|
|
259
|
-
function s
|
|
260
|
-
|
|
287
|
+
setup(e, { emit: t }) {
|
|
288
|
+
const n = t;
|
|
289
|
+
function o(s) {
|
|
290
|
+
n("click", s);
|
|
261
291
|
}
|
|
262
|
-
return (
|
|
292
|
+
return (s, r) => (z(), U("svg", Se({
|
|
263
293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
294
|
viewBox: "0 0 200 200",
|
|
265
295
|
width: "20",
|
|
266
296
|
height: "20"
|
|
267
|
-
},
|
|
297
|
+
}, s.$attrs, { onClick: o }), bs, 16));
|
|
268
298
|
}
|
|
299
|
+
}), ws = () => ({
|
|
300
|
+
thumbX: 0,
|
|
301
|
+
thumbY: 0,
|
|
302
|
+
thumbWidth: 0,
|
|
303
|
+
thumbHeight: 0,
|
|
304
|
+
image: "",
|
|
305
|
+
thumb: ""
|
|
269
306
|
});
|
|
270
|
-
function
|
|
271
|
-
const
|
|
272
|
-
|
|
307
|
+
function xs(e, t, n, o, s, r, c, l, i) {
|
|
308
|
+
const u = M({ dragLeft: 0, thumbLeft: e.thumbX || 0, isFreeze: !1 });
|
|
309
|
+
H(() => e, (m, N) => {
|
|
310
|
+
u.isFreeze || (u.thumbLeft = m.thumbX || 0);
|
|
311
|
+
}, { deep: !0 });
|
|
312
|
+
const g = (m) => {
|
|
313
|
+
const N = m.touches && m.touches[0], P = c.value.offsetLeft, _ = s.value.offsetWidth, v = c.value.offsetWidth, d = _ - v, y = r.value.offsetWidth, V = r.value.offsetLeft, fe = _ - y, ne = (_ - (y + V)) / d;
|
|
314
|
+
let Z = !1, k = null, ce = 0, K = 0;
|
|
315
|
+
N ? ce = N.pageX - P : ce = m.clientX - P;
|
|
316
|
+
const X = (j) => {
|
|
317
|
+
Z = !0;
|
|
318
|
+
const se = j.touches && j.touches[0];
|
|
319
|
+
let A = 0;
|
|
320
|
+
se ? A = se.pageX - ce : A = j.clientX - ce;
|
|
321
|
+
let Gn = V + A * ne;
|
|
322
|
+
if (A >= d) {
|
|
323
|
+
u.dragLeft = d, u.thumbLeft = K = fe;
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
if (A <= 0) {
|
|
327
|
+
u.dragLeft = 0, u.thumbLeft = K = V;
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
u.dragLeft = A, u.thumbLeft = K = Gn, t.move && t.move(K, e.thumbY || 0), j.cancelBubble = !0, j.preventDefault();
|
|
331
|
+
}, ee = (j) => {
|
|
332
|
+
zt(l.value, j) && Z && (F(), !(K < 0) && (Z = !1, t.confirm && t.confirm({ x: parseInt(K.toString()), y: e.thumbY || 0 }, () => {
|
|
333
|
+
h();
|
|
334
|
+
}), j.cancelBubble = !0, j.preventDefault()));
|
|
335
|
+
}, q = (j) => {
|
|
336
|
+
k = j;
|
|
337
|
+
}, J = () => {
|
|
338
|
+
k = null;
|
|
339
|
+
}, ve = (j) => {
|
|
340
|
+
k && (ee(k), F());
|
|
341
|
+
}, O = n.scope, T = O ? o.value : l.value, I = O ? o.value : document.body, F = () => {
|
|
342
|
+
I.removeEventListener("mousemove", X, !1), I.removeEventListener("touchmove", X, { passive: !1 }), T.removeEventListener("mouseup", ee, !1), T.removeEventListener("mouseenter", J, !1), T.removeEventListener("mouseleave", q, !1), T.removeEventListener("touchend", ee, !1), I.removeEventListener("mouseleave", ee, !1), I.removeEventListener("mouseup", ve, !1), u.isFreeze = !1;
|
|
343
|
+
};
|
|
344
|
+
u.isFreeze = !0, I.addEventListener("mousemove", X, !1), I.addEventListener("touchmove", X, { passive: !1 }), T.addEventListener("mouseup", ee, !1), T.addEventListener("mouseenter", J, !1), T.addEventListener("mouseleave", q, !1), T.addEventListener("touchend", ee, !1), I.addEventListener("mouseleave", ee, !1), I.addEventListener("mouseup", ve, !1);
|
|
345
|
+
}, p = (m) => (E(), m.cancelBubble = !0, m.preventDefault(), !1), a = (m) => (b(), m.cancelBubble = !0, m.preventDefault(), !1), E = () => {
|
|
346
|
+
t && t.close && t.close(), h();
|
|
347
|
+
}, b = () => {
|
|
348
|
+
t && t.refresh && t.refresh(), h();
|
|
349
|
+
}, h = () => {
|
|
350
|
+
u.dragLeft = 0, u.thumbLeft = e.thumbX || 0;
|
|
273
351
|
};
|
|
274
352
|
return {
|
|
275
|
-
state:
|
|
276
|
-
dragEvent:
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
const G = f.touches && f.touches[0];
|
|
283
|
-
let y = 0;
|
|
284
|
-
if (G ? y = G.pageX - Y : y = f.clientX - Y, y >= p) {
|
|
285
|
-
d.dragLeft = p;
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (y <= 0) {
|
|
289
|
-
d.dragLeft = 0;
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
d.dragLeft = y, H = L + y * T, d.thumbLeft = H, n.move && n.move(H, l.thumbY || 0), f.cancelBubble = !0, f.preventDefault();
|
|
293
|
-
}, h = (f) => {
|
|
294
|
-
ue(i.value, f) && k && (k = !1, J(), n.confirm && n.confirm({ x: parseInt(H.toString()), y: l.thumbY || 0 }, () => {
|
|
295
|
-
o();
|
|
296
|
-
}), f.cancelBubble = !0, f.preventDefault());
|
|
297
|
-
}, A = (f) => {
|
|
298
|
-
S = f;
|
|
299
|
-
}, W = () => {
|
|
300
|
-
S = null;
|
|
301
|
-
}, q = (f) => {
|
|
302
|
-
S && (h(S), J());
|
|
303
|
-
}, J = () => {
|
|
304
|
-
i.value.removeEventListener("mousemove", B, !1), i.value.removeEventListener("touchmove", B, { passive: !1 }), i.value.removeEventListener("mouseup", h, !1), i.value.removeEventListener("mouseenter", W, !1), i.value.removeEventListener("mouseleave", A, !1), i.value.removeEventListener("touchend", h, !1), document.body.removeEventListener("mouseleave", h, !1), document.body.removeEventListener("mouseup", q, !1);
|
|
305
|
-
};
|
|
306
|
-
i.value.addEventListener("mousemove", B, !1), i.value.addEventListener("touchmove", B, { passive: !1 }), i.value.addEventListener("mouseup", h, !1), i.value.addEventListener("mouseenter", W, !1), i.value.addEventListener("mouseleave", A, !1), i.value.addEventListener("touchend", h, !1), document.body.addEventListener("mouseleave", h, !1), document.body.addEventListener("mouseup", q, !1);
|
|
353
|
+
state: u,
|
|
354
|
+
dragEvent: g,
|
|
355
|
+
closeEvent: p,
|
|
356
|
+
refreshEvent: a,
|
|
357
|
+
resetData: h,
|
|
358
|
+
clearData: () => {
|
|
359
|
+
i && i(), h();
|
|
307
360
|
},
|
|
308
|
-
|
|
309
|
-
|
|
361
|
+
refresh: b,
|
|
362
|
+
close: E
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @vue/shared v3.4.27
|
|
367
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
368
|
+
* @license MIT
|
|
369
|
+
**/
|
|
370
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
371
|
+
// @__NO_SIDE_EFFECTS__
|
|
372
|
+
function ys(e, t) {
|
|
373
|
+
const n = new Set(e.split(","));
|
|
374
|
+
return t ? (o) => n.has(o.toLowerCase()) : (o) => n.has(o);
|
|
375
|
+
}
|
|
376
|
+
const be = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
377
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
378
|
+
const Pe = () => {
|
|
379
|
+
}, Ss = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
380
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), pe = Object.assign, Ls = Object.prototype.hasOwnProperty, R = (e, t) => Ls.call(e, t), $ = Array.isArray, Ve = (e) => Et(e) === "[object Map]", Ns = (e) => Et(e) === "[object Set]", B = (e) => typeof e == "function", ae = (e) => typeof e == "string", Ue = (e) => typeof e == "symbol", ue = (e) => e !== null && typeof e == "object", Os = (e) => (ue(e) || B(e)) && B(e.then) && B(e.catch), Ds = Object.prototype.toString, Et = (e) => Ds.call(e), En = (e) => Et(e).slice(8, -1), $s = (e) => Et(e) === "[object Object]", It = (e) => ae(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, bn = (e) => {
|
|
381
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
382
|
+
return (n) => t[n] || (t[n] = e(n));
|
|
383
|
+
}, wn = bn((e) => e.charAt(0).toUpperCase() + e.slice(1)), Cs = bn((e) => e ? `on${wn(e)}` : ""), Ie = (e, t) => !Object.is(e, t), Ps = (e, t, n, o = !1) => {
|
|
384
|
+
Object.defineProperty(e, t, {
|
|
385
|
+
configurable: !0,
|
|
386
|
+
enumerable: !1,
|
|
387
|
+
writable: o,
|
|
388
|
+
value: n
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
let en;
|
|
392
|
+
const xn = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
393
|
+
function Mt(e) {
|
|
394
|
+
if ($(e)) {
|
|
395
|
+
const t = {};
|
|
396
|
+
for (let n = 0; n < e.length; n++) {
|
|
397
|
+
const o = e[n], s = ae(o) ? zs(o) : Mt(o);
|
|
398
|
+
if (s)
|
|
399
|
+
for (const r in s)
|
|
400
|
+
t[r] = s[r];
|
|
401
|
+
}
|
|
402
|
+
return t;
|
|
403
|
+
} else if (ae(e) || ue(e))
|
|
404
|
+
return e;
|
|
405
|
+
}
|
|
406
|
+
const Ts = /;(?![^(]*\))/g, Rs = /:([^]+)/, Vs = /\/\*[^]*?\*\//g;
|
|
407
|
+
function zs(e) {
|
|
408
|
+
const t = {};
|
|
409
|
+
return e.replace(Vs, "").split(Ts).forEach((n) => {
|
|
410
|
+
if (n) {
|
|
411
|
+
const o = n.split(Rs);
|
|
412
|
+
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
413
|
+
}
|
|
414
|
+
}), t;
|
|
415
|
+
}
|
|
416
|
+
function kt(e) {
|
|
417
|
+
let t = "";
|
|
418
|
+
if (ae(e))
|
|
419
|
+
t = e;
|
|
420
|
+
else if ($(e))
|
|
421
|
+
for (let n = 0; n < e.length; n++) {
|
|
422
|
+
const o = kt(e[n]);
|
|
423
|
+
o && (t += o + " ");
|
|
424
|
+
}
|
|
425
|
+
else if (ue(e))
|
|
426
|
+
for (const n in e)
|
|
427
|
+
e[n] && (t += n + " ");
|
|
428
|
+
return t.trim();
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @vue/reactivity v3.4.27
|
|
432
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
433
|
+
* @license MIT
|
|
434
|
+
**/
|
|
435
|
+
function Xe(e, ...t) {
|
|
436
|
+
console.warn(`[Vue warn] ${e}`, ...t);
|
|
437
|
+
}
|
|
438
|
+
let Is;
|
|
439
|
+
function Ms(e, t = Is) {
|
|
440
|
+
t && t.active && t.effects.push(e);
|
|
441
|
+
}
|
|
442
|
+
let je;
|
|
443
|
+
class ks {
|
|
444
|
+
constructor(t, n, o, s) {
|
|
445
|
+
this.fn = t, this.trigger = n, this.scheduler = o, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, Ms(this, s);
|
|
446
|
+
}
|
|
447
|
+
get dirty() {
|
|
448
|
+
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
449
|
+
this._dirtyLevel = 1, Ke();
|
|
450
|
+
for (let t = 0; t < this._depsLength; t++) {
|
|
451
|
+
const n = this.deps[t];
|
|
452
|
+
if (n.computed && (Fs(n.computed), this._dirtyLevel >= 4))
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
this._dirtyLevel === 1 && (this._dirtyLevel = 0), qe();
|
|
456
|
+
}
|
|
457
|
+
return this._dirtyLevel >= 4;
|
|
458
|
+
}
|
|
459
|
+
set dirty(t) {
|
|
460
|
+
this._dirtyLevel = t ? 4 : 0;
|
|
461
|
+
}
|
|
462
|
+
run() {
|
|
463
|
+
if (this._dirtyLevel = 0, !this.active)
|
|
464
|
+
return this.fn();
|
|
465
|
+
let t = Ne, n = je;
|
|
466
|
+
try {
|
|
467
|
+
return Ne = !0, je = this, this._runnings++, tn(this), this.fn();
|
|
468
|
+
} finally {
|
|
469
|
+
nn(this), this._runnings--, je = n, Ne = t;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
stop() {
|
|
473
|
+
this.active && (tn(this), nn(this), this.onStop && this.onStop(), this.active = !1);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function Fs(e) {
|
|
477
|
+
return e.value;
|
|
478
|
+
}
|
|
479
|
+
function tn(e) {
|
|
480
|
+
e._trackId++, e._depsLength = 0;
|
|
481
|
+
}
|
|
482
|
+
function nn(e) {
|
|
483
|
+
if (e.deps.length > e._depsLength) {
|
|
484
|
+
for (let t = e._depsLength; t < e.deps.length; t++)
|
|
485
|
+
yn(e.deps[t], e);
|
|
486
|
+
e.deps.length = e._depsLength;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function yn(e, t) {
|
|
490
|
+
const n = e.get(t);
|
|
491
|
+
n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
|
|
492
|
+
}
|
|
493
|
+
let Ne = !0, St = 0;
|
|
494
|
+
const Sn = [];
|
|
495
|
+
function Ke() {
|
|
496
|
+
Sn.push(Ne), Ne = !1;
|
|
497
|
+
}
|
|
498
|
+
function qe() {
|
|
499
|
+
const e = Sn.pop();
|
|
500
|
+
Ne = e === void 0 ? !0 : e;
|
|
501
|
+
}
|
|
502
|
+
function Ft() {
|
|
503
|
+
St++;
|
|
504
|
+
}
|
|
505
|
+
function jt() {
|
|
506
|
+
for (St--; !St && Lt.length; )
|
|
507
|
+
Lt.shift()();
|
|
508
|
+
}
|
|
509
|
+
function js(e, t, n) {
|
|
510
|
+
var o;
|
|
511
|
+
if (t.get(e) !== e._trackId) {
|
|
512
|
+
t.set(e, e._trackId);
|
|
513
|
+
const s = e.deps[e._depsLength];
|
|
514
|
+
s !== t ? (s && yn(s, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((o = e.onTrack) == null || o.call(e, pe({ effect: e }, n)));
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
const Lt = [];
|
|
518
|
+
function As(e, t, n) {
|
|
519
|
+
var o;
|
|
520
|
+
Ft();
|
|
521
|
+
for (const s of e.keys()) {
|
|
522
|
+
let r;
|
|
523
|
+
s._dirtyLevel < t && (r ?? (r = e.get(s) === s._trackId)) && (s._shouldSchedule || (s._shouldSchedule = s._dirtyLevel === 0), s._dirtyLevel = t), s._shouldSchedule && (r ?? (r = e.get(s) === s._trackId)) && (process.env.NODE_ENV !== "production" && ((o = s.onTrigger) == null || o.call(s, pe({ effect: s }, n))), s.trigger(), (!s._runnings || s.allowRecurse) && s._dirtyLevel !== 2 && (s._shouldSchedule = !1, s.scheduler && Lt.push(s.scheduler)));
|
|
524
|
+
}
|
|
525
|
+
jt();
|
|
526
|
+
}
|
|
527
|
+
const Hs = (e, t) => {
|
|
528
|
+
const n = /* @__PURE__ */ new Map();
|
|
529
|
+
return n.cleanup = e, n.computed = t, n;
|
|
530
|
+
}, Nt = /* @__PURE__ */ new WeakMap(), Oe = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Ot = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
531
|
+
function W(e, t, n) {
|
|
532
|
+
if (Ne && je) {
|
|
533
|
+
let o = Nt.get(e);
|
|
534
|
+
o || Nt.set(e, o = /* @__PURE__ */ new Map());
|
|
535
|
+
let s = o.get(n);
|
|
536
|
+
s || o.set(n, s = Hs(() => o.delete(n))), js(
|
|
537
|
+
je,
|
|
538
|
+
s,
|
|
539
|
+
process.env.NODE_ENV !== "production" ? {
|
|
540
|
+
target: e,
|
|
541
|
+
type: t,
|
|
542
|
+
key: n
|
|
543
|
+
} : void 0
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function ye(e, t, n, o, s, r) {
|
|
548
|
+
const c = Nt.get(e);
|
|
549
|
+
if (!c)
|
|
550
|
+
return;
|
|
551
|
+
let l = [];
|
|
552
|
+
if (t === "clear")
|
|
553
|
+
l = [...c.values()];
|
|
554
|
+
else if (n === "length" && $(e)) {
|
|
555
|
+
const i = Number(o);
|
|
556
|
+
c.forEach((u, g) => {
|
|
557
|
+
(g === "length" || !Ue(g) && g >= i) && l.push(u);
|
|
558
|
+
});
|
|
559
|
+
} else
|
|
560
|
+
switch (n !== void 0 && l.push(c.get(n)), t) {
|
|
561
|
+
case "add":
|
|
562
|
+
$(e) ? It(n) && l.push(c.get("length")) : (l.push(c.get(Oe)), Ve(e) && l.push(c.get(Ot)));
|
|
563
|
+
break;
|
|
564
|
+
case "delete":
|
|
565
|
+
$(e) || (l.push(c.get(Oe)), Ve(e) && l.push(c.get(Ot)));
|
|
566
|
+
break;
|
|
567
|
+
case "set":
|
|
568
|
+
Ve(e) && l.push(c.get(Oe));
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
Ft();
|
|
572
|
+
for (const i of l)
|
|
573
|
+
i && As(
|
|
574
|
+
i,
|
|
575
|
+
4,
|
|
576
|
+
process.env.NODE_ENV !== "production" ? {
|
|
577
|
+
target: e,
|
|
578
|
+
type: t,
|
|
579
|
+
key: n,
|
|
580
|
+
newValue: o,
|
|
581
|
+
oldValue: s,
|
|
582
|
+
oldTarget: r
|
|
583
|
+
} : void 0
|
|
584
|
+
);
|
|
585
|
+
jt();
|
|
586
|
+
}
|
|
587
|
+
const Bs = /* @__PURE__ */ ys("__proto__,__v_isRef,__isVue"), Ln = new Set(
|
|
588
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ue)
|
|
589
|
+
), sn = /* @__PURE__ */ Ws();
|
|
590
|
+
function Ws() {
|
|
591
|
+
const e = {};
|
|
592
|
+
return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
|
|
593
|
+
e[t] = function(...n) {
|
|
594
|
+
const o = S(this);
|
|
595
|
+
for (let r = 0, c = this.length; r < c; r++)
|
|
596
|
+
W(o, "get", r + "");
|
|
597
|
+
const s = o[t](...n);
|
|
598
|
+
return s === -1 || s === !1 ? o[t](...n.map(S)) : s;
|
|
599
|
+
};
|
|
600
|
+
}), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
|
|
601
|
+
e[t] = function(...n) {
|
|
602
|
+
Ke(), Ft();
|
|
603
|
+
const o = S(this)[t].apply(this, n);
|
|
604
|
+
return jt(), qe(), o;
|
|
605
|
+
};
|
|
606
|
+
}), e;
|
|
607
|
+
}
|
|
608
|
+
function Xs(e) {
|
|
609
|
+
Ue(e) || (e = String(e));
|
|
610
|
+
const t = S(this);
|
|
611
|
+
return W(t, "has", e), t.hasOwnProperty(e);
|
|
612
|
+
}
|
|
613
|
+
class Nn {
|
|
614
|
+
constructor(t = !1, n = !1) {
|
|
615
|
+
this._isReadonly = t, this._isShallow = n;
|
|
616
|
+
}
|
|
617
|
+
get(t, n, o) {
|
|
618
|
+
const s = this._isReadonly, r = this._isShallow;
|
|
619
|
+
if (n === "__v_isReactive")
|
|
620
|
+
return !s;
|
|
621
|
+
if (n === "__v_isReadonly")
|
|
622
|
+
return s;
|
|
623
|
+
if (n === "__v_isShallow")
|
|
624
|
+
return r;
|
|
625
|
+
if (n === "__v_raw")
|
|
626
|
+
return o === (s ? r ? Pn : Cn : r ? oo : $n).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
627
|
+
// this means the reciever is a user proxy of the reactive proxy
|
|
628
|
+
Object.getPrototypeOf(t) === Object.getPrototypeOf(o) ? t : void 0;
|
|
629
|
+
const c = $(t);
|
|
630
|
+
if (!s) {
|
|
631
|
+
if (c && R(sn, n))
|
|
632
|
+
return Reflect.get(sn, n, o);
|
|
633
|
+
if (n === "hasOwnProperty")
|
|
634
|
+
return Xs;
|
|
635
|
+
}
|
|
636
|
+
const l = Reflect.get(t, n, o);
|
|
637
|
+
return (Ue(n) ? Ln.has(n) : Bs(n)) || (s || W(t, "get", n), r) ? l : de(l) ? c && It(n) ? l : l.value : ue(l) ? s ? Rn(l) : Tn(l) : l;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
class Ys extends Nn {
|
|
641
|
+
constructor(t = !1) {
|
|
642
|
+
super(!1, t);
|
|
643
|
+
}
|
|
644
|
+
set(t, n, o, s) {
|
|
645
|
+
let r = t[n];
|
|
646
|
+
if (!this._isShallow) {
|
|
647
|
+
const i = it(r);
|
|
648
|
+
if (!Dt(o) && !it(o) && (r = S(r), o = S(o)), !$(t) && de(r) && !de(o))
|
|
649
|
+
return i ? !1 : (r.value = o, !0);
|
|
650
|
+
}
|
|
651
|
+
const c = $(t) && It(n) ? Number(n) < t.length : R(t, n), l = Reflect.set(t, n, o, s);
|
|
652
|
+
return t === S(s) && (c ? Ie(o, r) && ye(t, "set", n, o, r) : ye(t, "add", n, o)), l;
|
|
653
|
+
}
|
|
654
|
+
deleteProperty(t, n) {
|
|
655
|
+
const o = R(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
|
|
656
|
+
return r && o && ye(t, "delete", n, void 0, s), r;
|
|
657
|
+
}
|
|
658
|
+
has(t, n) {
|
|
659
|
+
const o = Reflect.has(t, n);
|
|
660
|
+
return (!Ue(n) || !Ln.has(n)) && W(t, "has", n), o;
|
|
661
|
+
}
|
|
662
|
+
ownKeys(t) {
|
|
663
|
+
return W(
|
|
664
|
+
t,
|
|
665
|
+
"iterate",
|
|
666
|
+
$(t) ? "length" : Oe
|
|
667
|
+
), Reflect.ownKeys(t);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
class On extends Nn {
|
|
671
|
+
constructor(t = !1) {
|
|
672
|
+
super(!0, t);
|
|
673
|
+
}
|
|
674
|
+
set(t, n) {
|
|
675
|
+
return process.env.NODE_ENV !== "production" && Xe(
|
|
676
|
+
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
677
|
+
t
|
|
678
|
+
), !0;
|
|
679
|
+
}
|
|
680
|
+
deleteProperty(t, n) {
|
|
681
|
+
return process.env.NODE_ENV !== "production" && Xe(
|
|
682
|
+
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
683
|
+
t
|
|
684
|
+
), !0;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
const Us = /* @__PURE__ */ new Ys(), Ks = /* @__PURE__ */ new On(), qs = /* @__PURE__ */ new On(!0), At = (e) => e, bt = (e) => Reflect.getPrototypeOf(e);
|
|
688
|
+
function Ge(e, t, n = !1, o = !1) {
|
|
689
|
+
e = e.__v_raw;
|
|
690
|
+
const s = S(e), r = S(t);
|
|
691
|
+
n || (Ie(t, r) && W(s, "get", t), W(s, "get", r));
|
|
692
|
+
const { has: c } = bt(s), l = o ? At : n ? Xt : Wt;
|
|
693
|
+
if (c.call(s, t))
|
|
694
|
+
return l(e.get(t));
|
|
695
|
+
if (c.call(s, r))
|
|
696
|
+
return l(e.get(r));
|
|
697
|
+
e !== s && e.get(t);
|
|
698
|
+
}
|
|
699
|
+
function Qe(e, t = !1) {
|
|
700
|
+
const n = this.__v_raw, o = S(n), s = S(e);
|
|
701
|
+
return t || (Ie(e, s) && W(o, "has", e), W(o, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
|
|
702
|
+
}
|
|
703
|
+
function Ze(e, t = !1) {
|
|
704
|
+
return e = e.__v_raw, !t && W(S(e), "iterate", Oe), Reflect.get(e, "size", e);
|
|
705
|
+
}
|
|
706
|
+
function on(e) {
|
|
707
|
+
e = S(e);
|
|
708
|
+
const t = S(this);
|
|
709
|
+
return bt(t).has.call(t, e) || (t.add(e), ye(t, "add", e, e)), this;
|
|
710
|
+
}
|
|
711
|
+
function rn(e, t) {
|
|
712
|
+
t = S(t);
|
|
713
|
+
const n = S(this), { has: o, get: s } = bt(n);
|
|
714
|
+
let r = o.call(n, e);
|
|
715
|
+
r ? process.env.NODE_ENV !== "production" && Dn(n, o, e) : (e = S(e), r = o.call(n, e));
|
|
716
|
+
const c = s.call(n, e);
|
|
717
|
+
return n.set(e, t), r ? Ie(t, c) && ye(n, "set", e, t, c) : ye(n, "add", e, t), this;
|
|
718
|
+
}
|
|
719
|
+
function cn(e) {
|
|
720
|
+
const t = S(this), { has: n, get: o } = bt(t);
|
|
721
|
+
let s = n.call(t, e);
|
|
722
|
+
s ? process.env.NODE_ENV !== "production" && Dn(t, n, e) : (e = S(e), s = n.call(t, e));
|
|
723
|
+
const r = o ? o.call(t, e) : void 0, c = t.delete(e);
|
|
724
|
+
return s && ye(t, "delete", e, void 0, r), c;
|
|
725
|
+
}
|
|
726
|
+
function ln() {
|
|
727
|
+
const e = S(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? Ve(e) ? new Map(e) : new Set(e) : void 0, o = e.clear();
|
|
728
|
+
return t && ye(e, "clear", void 0, void 0, n), o;
|
|
729
|
+
}
|
|
730
|
+
function et(e, t) {
|
|
731
|
+
return function(o, s) {
|
|
732
|
+
const r = this, c = r.__v_raw, l = S(c), i = t ? At : e ? Xt : Wt;
|
|
733
|
+
return !e && W(l, "iterate", Oe), c.forEach((u, g) => o.call(s, i(u), i(g), r));
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function tt(e, t, n) {
|
|
737
|
+
return function(...o) {
|
|
738
|
+
const s = this.__v_raw, r = S(s), c = Ve(r), l = e === "entries" || e === Symbol.iterator && c, i = e === "keys" && c, u = s[e](...o), g = n ? At : t ? Xt : Wt;
|
|
739
|
+
return !t && W(
|
|
740
|
+
r,
|
|
741
|
+
"iterate",
|
|
742
|
+
i ? Ot : Oe
|
|
743
|
+
), {
|
|
744
|
+
// iterator protocol
|
|
745
|
+
next() {
|
|
746
|
+
const { value: p, done: a } = u.next();
|
|
747
|
+
return a ? { value: p, done: a } : {
|
|
748
|
+
value: l ? [g(p[0]), g(p[1])] : g(p),
|
|
749
|
+
done: a
|
|
750
|
+
};
|
|
751
|
+
},
|
|
752
|
+
// iterable protocol
|
|
753
|
+
[Symbol.iterator]() {
|
|
754
|
+
return this;
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
function Ee(e) {
|
|
760
|
+
return function(...t) {
|
|
761
|
+
if (process.env.NODE_ENV !== "production") {
|
|
762
|
+
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
763
|
+
Xe(
|
|
764
|
+
`${wn(e)} operation ${n}failed: target is readonly.`,
|
|
765
|
+
S(this)
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
function Js() {
|
|
772
|
+
const e = {
|
|
773
|
+
get(r) {
|
|
774
|
+
return Ge(this, r);
|
|
775
|
+
},
|
|
776
|
+
get size() {
|
|
777
|
+
return Ze(this);
|
|
778
|
+
},
|
|
779
|
+
has: Qe,
|
|
780
|
+
add: on,
|
|
781
|
+
set: rn,
|
|
782
|
+
delete: cn,
|
|
783
|
+
clear: ln,
|
|
784
|
+
forEach: et(!1, !1)
|
|
785
|
+
}, t = {
|
|
786
|
+
get(r) {
|
|
787
|
+
return Ge(this, r, !1, !0);
|
|
788
|
+
},
|
|
789
|
+
get size() {
|
|
790
|
+
return Ze(this);
|
|
791
|
+
},
|
|
792
|
+
has: Qe,
|
|
793
|
+
add: on,
|
|
794
|
+
set: rn,
|
|
795
|
+
delete: cn,
|
|
796
|
+
clear: ln,
|
|
797
|
+
forEach: et(!1, !0)
|
|
798
|
+
}, n = {
|
|
799
|
+
get(r) {
|
|
800
|
+
return Ge(this, r, !0);
|
|
801
|
+
},
|
|
802
|
+
get size() {
|
|
803
|
+
return Ze(this, !0);
|
|
804
|
+
},
|
|
805
|
+
has(r) {
|
|
806
|
+
return Qe.call(this, r, !0);
|
|
807
|
+
},
|
|
808
|
+
add: Ee("add"),
|
|
809
|
+
set: Ee("set"),
|
|
810
|
+
delete: Ee("delete"),
|
|
811
|
+
clear: Ee("clear"),
|
|
812
|
+
forEach: et(!0, !1)
|
|
813
|
+
}, o = {
|
|
814
|
+
get(r) {
|
|
815
|
+
return Ge(this, r, !0, !0);
|
|
816
|
+
},
|
|
817
|
+
get size() {
|
|
818
|
+
return Ze(this, !0);
|
|
819
|
+
},
|
|
820
|
+
has(r) {
|
|
821
|
+
return Qe.call(this, r, !0);
|
|
822
|
+
},
|
|
823
|
+
add: Ee("add"),
|
|
824
|
+
set: Ee("set"),
|
|
825
|
+
delete: Ee("delete"),
|
|
826
|
+
clear: Ee("clear"),
|
|
827
|
+
forEach: et(!0, !0)
|
|
828
|
+
};
|
|
829
|
+
return [
|
|
830
|
+
"keys",
|
|
831
|
+
"values",
|
|
832
|
+
"entries",
|
|
833
|
+
Symbol.iterator
|
|
834
|
+
].forEach((r) => {
|
|
835
|
+
e[r] = tt(r, !1, !1), n[r] = tt(r, !0, !1), t[r] = tt(r, !1, !0), o[r] = tt(
|
|
836
|
+
r,
|
|
837
|
+
!0,
|
|
838
|
+
!0
|
|
839
|
+
);
|
|
840
|
+
}), [
|
|
841
|
+
e,
|
|
842
|
+
n,
|
|
843
|
+
t,
|
|
844
|
+
o
|
|
845
|
+
];
|
|
846
|
+
}
|
|
847
|
+
const [
|
|
848
|
+
Gs,
|
|
849
|
+
Qs,
|
|
850
|
+
Zs,
|
|
851
|
+
eo
|
|
852
|
+
] = /* @__PURE__ */ Js();
|
|
853
|
+
function Ht(e, t) {
|
|
854
|
+
const n = t ? e ? eo : Zs : e ? Qs : Gs;
|
|
855
|
+
return (o, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
|
|
856
|
+
R(n, s) && s in o ? n : o,
|
|
857
|
+
s,
|
|
858
|
+
r
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
const to = {
|
|
862
|
+
get: /* @__PURE__ */ Ht(!1, !1)
|
|
863
|
+
}, no = {
|
|
864
|
+
get: /* @__PURE__ */ Ht(!0, !1)
|
|
865
|
+
}, so = {
|
|
866
|
+
get: /* @__PURE__ */ Ht(!0, !0)
|
|
867
|
+
};
|
|
868
|
+
function Dn(e, t, n) {
|
|
869
|
+
const o = S(n);
|
|
870
|
+
if (o !== n && t.call(e, o)) {
|
|
871
|
+
const s = En(e);
|
|
872
|
+
Xe(
|
|
873
|
+
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
const $n = /* @__PURE__ */ new WeakMap(), oo = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakMap();
|
|
878
|
+
function ro(e) {
|
|
879
|
+
switch (e) {
|
|
880
|
+
case "Object":
|
|
881
|
+
case "Array":
|
|
882
|
+
return 1;
|
|
883
|
+
case "Map":
|
|
884
|
+
case "Set":
|
|
885
|
+
case "WeakMap":
|
|
886
|
+
case "WeakSet":
|
|
887
|
+
return 2;
|
|
888
|
+
default:
|
|
889
|
+
return 0;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
function co(e) {
|
|
893
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : ro(En(e));
|
|
894
|
+
}
|
|
895
|
+
function Tn(e) {
|
|
896
|
+
return it(e) ? e : Bt(
|
|
897
|
+
e,
|
|
898
|
+
!1,
|
|
899
|
+
Us,
|
|
900
|
+
to,
|
|
901
|
+
$n
|
|
902
|
+
);
|
|
903
|
+
}
|
|
904
|
+
function Rn(e) {
|
|
905
|
+
return Bt(
|
|
906
|
+
e,
|
|
907
|
+
!0,
|
|
908
|
+
Ks,
|
|
909
|
+
no,
|
|
910
|
+
Cn
|
|
911
|
+
);
|
|
912
|
+
}
|
|
913
|
+
function nt(e) {
|
|
914
|
+
return Bt(
|
|
915
|
+
e,
|
|
916
|
+
!0,
|
|
917
|
+
qs,
|
|
918
|
+
so,
|
|
919
|
+
Pn
|
|
920
|
+
);
|
|
921
|
+
}
|
|
922
|
+
function Bt(e, t, n, o, s) {
|
|
923
|
+
if (!ue(e))
|
|
924
|
+
return process.env.NODE_ENV !== "production" && Xe(`value cannot be made reactive: ${String(e)}`), e;
|
|
925
|
+
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
926
|
+
return e;
|
|
927
|
+
const r = s.get(e);
|
|
928
|
+
if (r)
|
|
929
|
+
return r;
|
|
930
|
+
const c = co(e);
|
|
931
|
+
if (c === 0)
|
|
932
|
+
return e;
|
|
933
|
+
const l = new Proxy(
|
|
934
|
+
e,
|
|
935
|
+
c === 2 ? o : n
|
|
936
|
+
);
|
|
937
|
+
return s.set(e, l), l;
|
|
938
|
+
}
|
|
939
|
+
function Ae(e) {
|
|
940
|
+
return it(e) ? Ae(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
941
|
+
}
|
|
942
|
+
function it(e) {
|
|
943
|
+
return !!(e && e.__v_isReadonly);
|
|
944
|
+
}
|
|
945
|
+
function Dt(e) {
|
|
946
|
+
return !!(e && e.__v_isShallow);
|
|
947
|
+
}
|
|
948
|
+
function $t(e) {
|
|
949
|
+
return e ? !!e.__v_raw : !1;
|
|
950
|
+
}
|
|
951
|
+
function S(e) {
|
|
952
|
+
const t = e && e.__v_raw;
|
|
953
|
+
return t ? S(t) : e;
|
|
954
|
+
}
|
|
955
|
+
function io(e) {
|
|
956
|
+
return Object.isExtensible(e) && Ps(e, "__v_skip", !0), e;
|
|
957
|
+
}
|
|
958
|
+
const Wt = (e) => ue(e) ? Tn(e) : e, Xt = (e) => ue(e) ? Rn(e) : e;
|
|
959
|
+
function de(e) {
|
|
960
|
+
return !!(e && e.__v_isRef === !0);
|
|
961
|
+
}
|
|
962
|
+
function lo(e) {
|
|
963
|
+
return de(e) ? e.value : e;
|
|
964
|
+
}
|
|
965
|
+
const ao = {
|
|
966
|
+
get: (e, t, n) => lo(Reflect.get(e, t, n)),
|
|
967
|
+
set: (e, t, n, o) => {
|
|
968
|
+
const s = e[t];
|
|
969
|
+
return de(s) && !de(n) ? (s.value = n, !0) : Reflect.set(e, t, n, o);
|
|
970
|
+
}
|
|
971
|
+
};
|
|
972
|
+
function uo(e) {
|
|
973
|
+
return Ae(e) ? e : new Proxy(e, ao);
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* @vue/runtime-core v3.4.27
|
|
977
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
978
|
+
* @license MIT
|
|
979
|
+
**/
|
|
980
|
+
const De = [];
|
|
981
|
+
function fo(e) {
|
|
982
|
+
De.push(e);
|
|
983
|
+
}
|
|
984
|
+
function ho() {
|
|
985
|
+
De.pop();
|
|
986
|
+
}
|
|
987
|
+
function D(e, ...t) {
|
|
988
|
+
Ke();
|
|
989
|
+
const n = De.length ? De[De.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = po();
|
|
990
|
+
if (o)
|
|
991
|
+
$e(
|
|
992
|
+
o,
|
|
993
|
+
n,
|
|
994
|
+
11,
|
|
995
|
+
[
|
|
996
|
+
e + t.map((r) => {
|
|
997
|
+
var c, l;
|
|
998
|
+
return (l = (c = r.toString) == null ? void 0 : c.call(r)) != null ? l : JSON.stringify(r);
|
|
999
|
+
}).join(""),
|
|
1000
|
+
n && n.proxy,
|
|
1001
|
+
s.map(
|
|
1002
|
+
({ vnode: r }) => `at <${qn(n, r.type)}>`
|
|
1003
|
+
).join(`
|
|
1004
|
+
`),
|
|
1005
|
+
s
|
|
1006
|
+
]
|
|
1007
|
+
);
|
|
1008
|
+
else {
|
|
1009
|
+
const r = [`[Vue warn]: ${e}`, ...t];
|
|
1010
|
+
s.length && r.push(`
|
|
1011
|
+
`, ...go(s)), console.warn(...r);
|
|
1012
|
+
}
|
|
1013
|
+
qe();
|
|
1014
|
+
}
|
|
1015
|
+
function po() {
|
|
1016
|
+
let e = De[De.length - 1];
|
|
1017
|
+
if (!e)
|
|
1018
|
+
return [];
|
|
1019
|
+
const t = [];
|
|
1020
|
+
for (; e; ) {
|
|
1021
|
+
const n = t[0];
|
|
1022
|
+
n && n.vnode === e ? n.recurseCount++ : t.push({
|
|
1023
|
+
vnode: e,
|
|
1024
|
+
recurseCount: 0
|
|
1025
|
+
});
|
|
1026
|
+
const o = e.component && e.component.parent;
|
|
1027
|
+
e = o && o.vnode;
|
|
1028
|
+
}
|
|
1029
|
+
return t;
|
|
1030
|
+
}
|
|
1031
|
+
function go(e) {
|
|
1032
|
+
const t = [];
|
|
1033
|
+
return e.forEach((n, o) => {
|
|
1034
|
+
t.push(...o === 0 ? [] : [`
|
|
1035
|
+
`], ...mo(n));
|
|
1036
|
+
}), t;
|
|
1037
|
+
}
|
|
1038
|
+
function mo({ vnode: e, recurseCount: t }) {
|
|
1039
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${qn(
|
|
1040
|
+
e.component,
|
|
1041
|
+
e.type,
|
|
1042
|
+
o
|
|
1043
|
+
)}`, r = ">" + n;
|
|
1044
|
+
return e.props ? [s, ..._o(e.props), r] : [s + r];
|
|
1045
|
+
}
|
|
1046
|
+
function _o(e) {
|
|
1047
|
+
const t = [], n = Object.keys(e);
|
|
1048
|
+
return n.slice(0, 3).forEach((o) => {
|
|
1049
|
+
t.push(...Vn(o, e[o]));
|
|
1050
|
+
}), n.length > 3 && t.push(" ..."), t;
|
|
1051
|
+
}
|
|
1052
|
+
function Vn(e, t, n) {
|
|
1053
|
+
return ae(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : de(t) ? (t = Vn(e, S(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : B(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = S(t), n ? t : [`${e}=`, t]);
|
|
1054
|
+
}
|
|
1055
|
+
const Yt = {
|
|
1056
|
+
sp: "serverPrefetch hook",
|
|
1057
|
+
bc: "beforeCreate hook",
|
|
1058
|
+
c: "created hook",
|
|
1059
|
+
bm: "beforeMount hook",
|
|
1060
|
+
m: "mounted hook",
|
|
1061
|
+
bu: "beforeUpdate hook",
|
|
1062
|
+
u: "updated",
|
|
1063
|
+
bum: "beforeUnmount hook",
|
|
1064
|
+
um: "unmounted hook",
|
|
1065
|
+
a: "activated hook",
|
|
1066
|
+
da: "deactivated hook",
|
|
1067
|
+
ec: "errorCaptured hook",
|
|
1068
|
+
rtc: "renderTracked hook",
|
|
1069
|
+
rtg: "renderTriggered hook",
|
|
1070
|
+
0: "setup function",
|
|
1071
|
+
1: "render function",
|
|
1072
|
+
2: "watcher getter",
|
|
1073
|
+
3: "watcher callback",
|
|
1074
|
+
4: "watcher cleanup function",
|
|
1075
|
+
5: "native event handler",
|
|
1076
|
+
6: "component event handler",
|
|
1077
|
+
7: "vnode hook",
|
|
1078
|
+
8: "directive hook",
|
|
1079
|
+
9: "transition hook",
|
|
1080
|
+
10: "app errorHandler",
|
|
1081
|
+
11: "app warnHandler",
|
|
1082
|
+
12: "ref function",
|
|
1083
|
+
13: "async component loader",
|
|
1084
|
+
14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
|
|
1085
|
+
};
|
|
1086
|
+
function $e(e, t, n, o) {
|
|
1087
|
+
try {
|
|
1088
|
+
return o ? e(...o) : e();
|
|
1089
|
+
} catch (s) {
|
|
1090
|
+
Ut(s, t, n);
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
function He(e, t, n, o) {
|
|
1094
|
+
if (B(e)) {
|
|
1095
|
+
const s = $e(e, t, n, o);
|
|
1096
|
+
return s && Os(s) && s.catch((r) => {
|
|
1097
|
+
Ut(r, t, n);
|
|
1098
|
+
}), s;
|
|
1099
|
+
}
|
|
1100
|
+
if ($(e)) {
|
|
1101
|
+
const s = [];
|
|
1102
|
+
for (let r = 0; r < e.length; r++)
|
|
1103
|
+
s.push(He(e[r], t, n, o));
|
|
1104
|
+
return s;
|
|
1105
|
+
} else
|
|
1106
|
+
process.env.NODE_ENV !== "production" && D(
|
|
1107
|
+
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
function Ut(e, t, n, o = !0) {
|
|
1111
|
+
const s = t ? t.vnode : null;
|
|
1112
|
+
if (t) {
|
|
1113
|
+
let r = t.parent;
|
|
1114
|
+
const c = t.proxy, l = process.env.NODE_ENV !== "production" ? Yt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1115
|
+
for (; r; ) {
|
|
1116
|
+
const u = r.ec;
|
|
1117
|
+
if (u) {
|
|
1118
|
+
for (let g = 0; g < u.length; g++)
|
|
1119
|
+
if (u[g](e, c, l) === !1)
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
r = r.parent;
|
|
1123
|
+
}
|
|
1124
|
+
const i = t.appContext.config.errorHandler;
|
|
1125
|
+
if (i) {
|
|
1126
|
+
Ke(), $e(
|
|
1127
|
+
i,
|
|
1128
|
+
null,
|
|
1129
|
+
10,
|
|
1130
|
+
[e, c, l]
|
|
1131
|
+
), qe();
|
|
1132
|
+
return;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
vo(e, n, s, o);
|
|
1136
|
+
}
|
|
1137
|
+
function vo(e, t, n, o = !0) {
|
|
1138
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1139
|
+
const s = Yt[t];
|
|
1140
|
+
if (n && fo(n), D(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && ho(), o)
|
|
1141
|
+
throw e;
|
|
1142
|
+
console.error(e);
|
|
1143
|
+
} else
|
|
1144
|
+
console.error(e);
|
|
1145
|
+
}
|
|
1146
|
+
let lt = !1, Ct = !1;
|
|
1147
|
+
const le = [];
|
|
1148
|
+
let xe = 0;
|
|
1149
|
+
const ze = [];
|
|
1150
|
+
let ge = null, we = 0;
|
|
1151
|
+
const zn = /* @__PURE__ */ Promise.resolve();
|
|
1152
|
+
let Kt = null;
|
|
1153
|
+
const Eo = 100;
|
|
1154
|
+
function bo(e) {
|
|
1155
|
+
const t = Kt || zn;
|
|
1156
|
+
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1157
|
+
}
|
|
1158
|
+
function wo(e) {
|
|
1159
|
+
let t = xe + 1, n = le.length;
|
|
1160
|
+
for (; t < n; ) {
|
|
1161
|
+
const o = t + n >>> 1, s = le[o], r = Ye(s);
|
|
1162
|
+
r < e || r === e && s.pre ? t = o + 1 : n = o;
|
|
1163
|
+
}
|
|
1164
|
+
return t;
|
|
1165
|
+
}
|
|
1166
|
+
function qt(e) {
|
|
1167
|
+
(!le.length || !le.includes(
|
|
1168
|
+
e,
|
|
1169
|
+
lt && e.allowRecurse ? xe + 1 : xe
|
|
1170
|
+
)) && (e.id == null ? le.push(e) : le.splice(wo(e.id), 0, e), In());
|
|
1171
|
+
}
|
|
1172
|
+
function In() {
|
|
1173
|
+
!lt && !Ct && (Ct = !0, Kt = zn.then(kn));
|
|
1174
|
+
}
|
|
1175
|
+
function Mn(e) {
|
|
1176
|
+
$(e) ? ze.push(...e) : (!ge || !ge.includes(
|
|
1177
|
+
e,
|
|
1178
|
+
e.allowRecurse ? we + 1 : we
|
|
1179
|
+
)) && ze.push(e), In();
|
|
1180
|
+
}
|
|
1181
|
+
function xo(e) {
|
|
1182
|
+
if (ze.length) {
|
|
1183
|
+
const t = [...new Set(ze)].sort(
|
|
1184
|
+
(n, o) => Ye(n) - Ye(o)
|
|
1185
|
+
);
|
|
1186
|
+
if (ze.length = 0, ge) {
|
|
1187
|
+
ge.push(...t);
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
for (ge = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), we = 0; we < ge.length; we++)
|
|
1191
|
+
process.env.NODE_ENV !== "production" && Fn(e, ge[we]) || ge[we]();
|
|
1192
|
+
ge = null, we = 0;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
const Ye = (e) => e.id == null ? 1 / 0 : e.id, yo = (e, t) => {
|
|
1196
|
+
const n = Ye(e) - Ye(t);
|
|
1197
|
+
if (n === 0) {
|
|
1198
|
+
if (e.pre && !t.pre)
|
|
1199
|
+
return -1;
|
|
1200
|
+
if (t.pre && !e.pre)
|
|
1201
|
+
return 1;
|
|
1202
|
+
}
|
|
1203
|
+
return n;
|
|
1204
|
+
};
|
|
1205
|
+
function kn(e) {
|
|
1206
|
+
Ct = !1, lt = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), le.sort(yo);
|
|
1207
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Fn(e, n) : Pe;
|
|
1208
|
+
try {
|
|
1209
|
+
for (xe = 0; xe < le.length; xe++) {
|
|
1210
|
+
const n = le[xe];
|
|
1211
|
+
if (n && n.active !== !1) {
|
|
1212
|
+
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1213
|
+
continue;
|
|
1214
|
+
$e(n, null, 14);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
} finally {
|
|
1218
|
+
xe = 0, le.length = 0, xo(e), lt = !1, Kt = null, (le.length || ze.length) && kn(e);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
function Fn(e, t) {
|
|
1222
|
+
if (!e.has(t))
|
|
1223
|
+
e.set(t, 1);
|
|
1224
|
+
else {
|
|
1225
|
+
const n = e.get(t);
|
|
1226
|
+
if (n > Eo) {
|
|
1227
|
+
const o = t.ownerInstance, s = o && Kn(o.type);
|
|
1228
|
+
return Ut(
|
|
1229
|
+
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1230
|
+
null,
|
|
1231
|
+
10
|
|
1232
|
+
), !0;
|
|
1233
|
+
} else
|
|
1234
|
+
e.set(t, n + 1);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
const ke = /* @__PURE__ */ new Set();
|
|
1238
|
+
process.env.NODE_ENV !== "production" && (xn().__VUE_HMR_RUNTIME__ = {
|
|
1239
|
+
createRecord: wt(So),
|
|
1240
|
+
rerender: wt(Lo),
|
|
1241
|
+
reload: wt(No)
|
|
1242
|
+
});
|
|
1243
|
+
const at = /* @__PURE__ */ new Map();
|
|
1244
|
+
function So(e, t) {
|
|
1245
|
+
return at.has(e) ? !1 : (at.set(e, {
|
|
1246
|
+
initialDef: Be(t),
|
|
1247
|
+
instances: /* @__PURE__ */ new Set()
|
|
1248
|
+
}), !0);
|
|
1249
|
+
}
|
|
1250
|
+
function Be(e) {
|
|
1251
|
+
return Jn(e) ? e.__vccOpts : e;
|
|
1252
|
+
}
|
|
1253
|
+
function Lo(e, t) {
|
|
1254
|
+
const n = at.get(e);
|
|
1255
|
+
n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
|
|
1256
|
+
t && (o.render = t, Be(o.type).render = t), o.renderCache = [], o.effect.dirty = !0, o.update();
|
|
1257
|
+
}));
|
|
1258
|
+
}
|
|
1259
|
+
function No(e, t) {
|
|
1260
|
+
const n = at.get(e);
|
|
1261
|
+
if (!n)
|
|
1262
|
+
return;
|
|
1263
|
+
t = Be(t), an(n.initialDef, t);
|
|
1264
|
+
const o = [...n.instances];
|
|
1265
|
+
for (const s of o) {
|
|
1266
|
+
const r = Be(s.type);
|
|
1267
|
+
ke.has(r) || (r !== n.initialDef && an(r, t), ke.add(r)), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (ke.add(r), s.ceReload(t.styles), ke.delete(r)) : s.parent ? (s.parent.effect.dirty = !0, qt(s.parent.update)) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1268
|
+
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1269
|
+
);
|
|
1270
|
+
}
|
|
1271
|
+
Mn(() => {
|
|
1272
|
+
for (const s of o)
|
|
1273
|
+
ke.delete(
|
|
1274
|
+
Be(s.type)
|
|
1275
|
+
);
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
function an(e, t) {
|
|
1279
|
+
pe(e, t);
|
|
1280
|
+
for (const n in e)
|
|
1281
|
+
n !== "__file" && !(n in t) && delete e[n];
|
|
1282
|
+
}
|
|
1283
|
+
function wt(e) {
|
|
1284
|
+
return (t, n) => {
|
|
1285
|
+
try {
|
|
1286
|
+
return e(t, n);
|
|
1287
|
+
} catch (o) {
|
|
1288
|
+
console.error(o), console.warn(
|
|
1289
|
+
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
1290
|
+
);
|
|
1291
|
+
}
|
|
310
1292
|
};
|
|
311
1293
|
}
|
|
312
|
-
|
|
1294
|
+
let Ce, st = [];
|
|
1295
|
+
function jn(e, t) {
|
|
1296
|
+
var n, o;
|
|
1297
|
+
Ce = e, Ce ? (Ce.enabled = !0, st.forEach(({ event: s, args: r }) => Ce.emit(s, ...r)), st = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1298
|
+
window.HTMLElement && // also exclude jsdom
|
|
1299
|
+
!((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
|
|
1300
|
+
jn(r, t);
|
|
1301
|
+
}), setTimeout(() => {
|
|
1302
|
+
Ce || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, st = []);
|
|
1303
|
+
}, 3e3)) : st = [];
|
|
1304
|
+
}
|
|
1305
|
+
let me = null, Oo = null;
|
|
1306
|
+
const Do = Symbol.for("v-ndc"), $o = (e) => e.__isSuspense;
|
|
1307
|
+
function Co(e, t) {
|
|
1308
|
+
t && t.pendingBranch ? $(e) ? t.effects.push(...e) : t.effects.push(e) : Mn(e);
|
|
1309
|
+
}
|
|
1310
|
+
const Po = Symbol.for("v-scx"), To = () => {
|
|
1311
|
+
{
|
|
1312
|
+
const e = Wo(Po);
|
|
1313
|
+
return e || process.env.NODE_ENV !== "production" && D(
|
|
1314
|
+
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
1315
|
+
), e;
|
|
1316
|
+
}
|
|
1317
|
+
}, ot = {};
|
|
1318
|
+
function Ro(e, t, {
|
|
1319
|
+
immediate: n,
|
|
1320
|
+
deep: o,
|
|
1321
|
+
flush: s,
|
|
1322
|
+
once: r,
|
|
1323
|
+
onTrack: c,
|
|
1324
|
+
onTrigger: l
|
|
1325
|
+
} = be) {
|
|
1326
|
+
if (t && r) {
|
|
1327
|
+
const d = t;
|
|
1328
|
+
t = (...y) => {
|
|
1329
|
+
d(...y), v();
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
process.env.NODE_ENV !== "production" && o !== void 0 && typeof o == "number" && D(
|
|
1333
|
+
'watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'
|
|
1334
|
+
), process.env.NODE_ENV !== "production" && !t && (n !== void 0 && D(
|
|
1335
|
+
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1336
|
+
), o !== void 0 && D(
|
|
1337
|
+
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1338
|
+
), r !== void 0 && D(
|
|
1339
|
+
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1340
|
+
));
|
|
1341
|
+
const i = (d) => {
|
|
1342
|
+
D(
|
|
1343
|
+
"Invalid watch source: ",
|
|
1344
|
+
d,
|
|
1345
|
+
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1346
|
+
);
|
|
1347
|
+
}, u = Me, g = (d) => o === !0 ? d : (
|
|
1348
|
+
// for deep: false, only traverse root-level properties
|
|
1349
|
+
Te(d, o === !1 ? 1 : void 0)
|
|
1350
|
+
);
|
|
1351
|
+
let p, a = !1, E = !1;
|
|
1352
|
+
if (de(e) ? (p = () => e.value, a = Dt(e)) : Ae(e) ? (p = () => g(e), a = !0) : $(e) ? (E = !0, a = e.some((d) => Ae(d) || Dt(d)), p = () => e.map((d) => {
|
|
1353
|
+
if (de(d))
|
|
1354
|
+
return d.value;
|
|
1355
|
+
if (Ae(d))
|
|
1356
|
+
return g(d);
|
|
1357
|
+
if (B(d))
|
|
1358
|
+
return $e(d, u, 2);
|
|
1359
|
+
process.env.NODE_ENV !== "production" && i(d);
|
|
1360
|
+
})) : B(e) ? t ? p = () => $e(e, u, 2) : p = () => (b && b(), He(
|
|
1361
|
+
e,
|
|
1362
|
+
u,
|
|
1363
|
+
3,
|
|
1364
|
+
[h]
|
|
1365
|
+
)) : (p = Pe, process.env.NODE_ENV !== "production" && i(e)), t && o) {
|
|
1366
|
+
const d = p;
|
|
1367
|
+
p = () => Te(d());
|
|
1368
|
+
}
|
|
1369
|
+
let b, h = (d) => {
|
|
1370
|
+
b = _.onStop = () => {
|
|
1371
|
+
$e(d, u, 4), b = _.onStop = void 0;
|
|
1372
|
+
};
|
|
1373
|
+
}, w;
|
|
1374
|
+
if (Gt)
|
|
1375
|
+
if (h = Pe, t ? n && He(t, u, 3, [
|
|
1376
|
+
p(),
|
|
1377
|
+
E ? [] : void 0,
|
|
1378
|
+
h
|
|
1379
|
+
]) : p(), s === "sync") {
|
|
1380
|
+
const d = To();
|
|
1381
|
+
w = d.__watcherHandles || (d.__watcherHandles = []);
|
|
1382
|
+
} else
|
|
1383
|
+
return Pe;
|
|
1384
|
+
let m = E ? new Array(e.length).fill(ot) : ot;
|
|
1385
|
+
const N = () => {
|
|
1386
|
+
if (!(!_.active || !_.dirty))
|
|
1387
|
+
if (t) {
|
|
1388
|
+
const d = _.run();
|
|
1389
|
+
(o || a || (E ? d.some((y, V) => Ie(y, m[V])) : Ie(d, m))) && (b && b(), He(t, u, 3, [
|
|
1390
|
+
d,
|
|
1391
|
+
// pass undefined as the old value when it's changed for the first time
|
|
1392
|
+
m === ot ? void 0 : E && m[0] === ot ? [] : m,
|
|
1393
|
+
h
|
|
1394
|
+
]), m = d);
|
|
1395
|
+
} else
|
|
1396
|
+
_.run();
|
|
1397
|
+
};
|
|
1398
|
+
N.allowRecurse = !!t;
|
|
1399
|
+
let P;
|
|
1400
|
+
s === "sync" ? P = N : s === "post" ? P = () => gn(N, u && u.suspense) : (N.pre = !0, u && (N.id = u.uid), P = () => qt(N));
|
|
1401
|
+
const _ = new ks(p, Pe, P), v = () => {
|
|
1402
|
+
_.stop();
|
|
1403
|
+
};
|
|
1404
|
+
return process.env.NODE_ENV !== "production" && (_.onTrack = c, _.onTrigger = l), t ? n ? N() : m = _.run() : s === "post" ? gn(
|
|
1405
|
+
_.run.bind(_),
|
|
1406
|
+
u && u.suspense
|
|
1407
|
+
) : _.run(), w && w.push(v), v;
|
|
1408
|
+
}
|
|
1409
|
+
function Vo(e, t, n) {
|
|
1410
|
+
const o = this.proxy, s = ae(e) ? e.includes(".") ? zo(o, e) : () => o[e] : e.bind(o, o);
|
|
1411
|
+
let r;
|
|
1412
|
+
B(t) ? r = t : (r = t.handler, n = t);
|
|
1413
|
+
const c = Un(this), l = Ro(s, r.bind(o), n);
|
|
1414
|
+
return c(), l;
|
|
1415
|
+
}
|
|
1416
|
+
function zo(e, t) {
|
|
1417
|
+
const n = t.split(".");
|
|
1418
|
+
return () => {
|
|
1419
|
+
let o = e;
|
|
1420
|
+
for (let s = 0; s < n.length && o; s++)
|
|
1421
|
+
o = o[n[s]];
|
|
1422
|
+
return o;
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
function Te(e, t = 1 / 0, n) {
|
|
1426
|
+
if (t <= 0 || !ue(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
1427
|
+
return e;
|
|
1428
|
+
if (n.add(e), t--, de(e))
|
|
1429
|
+
Te(e.value, t, n);
|
|
1430
|
+
else if ($(e))
|
|
1431
|
+
for (let o = 0; o < e.length; o++)
|
|
1432
|
+
Te(e[o], t, n);
|
|
1433
|
+
else if (Ns(e) || Ve(e))
|
|
1434
|
+
e.forEach((o) => {
|
|
1435
|
+
Te(o, t, n);
|
|
1436
|
+
});
|
|
1437
|
+
else if ($s(e))
|
|
1438
|
+
for (const o in e)
|
|
1439
|
+
Te(e[o], t, n);
|
|
1440
|
+
return e;
|
|
1441
|
+
}
|
|
1442
|
+
function Io(e, t, n = Me, o = !1) {
|
|
1443
|
+
if (n) {
|
|
1444
|
+
const s = n[e] || (n[e] = []), r = t.__weh || (t.__weh = (...c) => {
|
|
1445
|
+
if (n.isUnmounted)
|
|
1446
|
+
return;
|
|
1447
|
+
Ke();
|
|
1448
|
+
const l = Un(n), i = He(t, n, e, c);
|
|
1449
|
+
return l(), qe(), i;
|
|
1450
|
+
});
|
|
1451
|
+
return o ? s.unshift(r) : s.push(r), r;
|
|
1452
|
+
} else if (process.env.NODE_ENV !== "production") {
|
|
1453
|
+
const s = Cs(Yt[e].replace(/ hook$/, ""));
|
|
1454
|
+
D(
|
|
1455
|
+
`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
1456
|
+
);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
const Mo = (e) => (t, n = Me) => (
|
|
1460
|
+
// post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
|
|
1461
|
+
(!Gt || e === "sp") && Io(e, (...o) => t(...o), n)
|
|
1462
|
+
), An = Mo("um"), Pt = (e) => e ? nr(e) ? sr(e) || e.proxy : Pt(e.parent) : null, We = (
|
|
1463
|
+
// Move PURE marker to new line to workaround compiler discarding it
|
|
1464
|
+
// due to type annotation
|
|
1465
|
+
/* @__PURE__ */ pe(/* @__PURE__ */ Object.create(null), {
|
|
1466
|
+
$: (e) => e,
|
|
1467
|
+
$el: (e) => e.vnode.el,
|
|
1468
|
+
$data: (e) => e.data,
|
|
1469
|
+
$props: (e) => process.env.NODE_ENV !== "production" ? nt(e.props) : e.props,
|
|
1470
|
+
$attrs: (e) => process.env.NODE_ENV !== "production" ? nt(e.attrs) : e.attrs,
|
|
1471
|
+
$slots: (e) => process.env.NODE_ENV !== "production" ? nt(e.slots) : e.slots,
|
|
1472
|
+
$refs: (e) => process.env.NODE_ENV !== "production" ? nt(e.refs) : e.refs,
|
|
1473
|
+
$parent: (e) => Pt(e.parent),
|
|
1474
|
+
$root: (e) => Pt(e.root),
|
|
1475
|
+
$emit: (e) => e.emit,
|
|
1476
|
+
$options: (e) => jo(e),
|
|
1477
|
+
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1478
|
+
e.effect.dirty = !0, qt(e.update);
|
|
1479
|
+
}),
|
|
1480
|
+
$nextTick: (e) => e.n || (e.n = bo.bind(e.proxy)),
|
|
1481
|
+
$watch: (e) => Vo.bind(e)
|
|
1482
|
+
})
|
|
1483
|
+
), ko = (e) => e === "_" || e === "$", xt = (e, t) => e !== be && !e.__isScriptSetup && R(e, t), Fo = {
|
|
1484
|
+
get({ _: e }, t) {
|
|
1485
|
+
if (t === "__v_skip")
|
|
1486
|
+
return !0;
|
|
1487
|
+
const { ctx: n, setupState: o, data: s, props: r, accessCache: c, type: l, appContext: i } = e;
|
|
1488
|
+
if (process.env.NODE_ENV !== "production" && t === "__isVue")
|
|
1489
|
+
return !0;
|
|
1490
|
+
let u;
|
|
1491
|
+
if (t[0] !== "$") {
|
|
1492
|
+
const E = c[t];
|
|
1493
|
+
if (E !== void 0)
|
|
1494
|
+
switch (E) {
|
|
1495
|
+
case 1:
|
|
1496
|
+
return o[t];
|
|
1497
|
+
case 2:
|
|
1498
|
+
return s[t];
|
|
1499
|
+
case 4:
|
|
1500
|
+
return n[t];
|
|
1501
|
+
case 3:
|
|
1502
|
+
return r[t];
|
|
1503
|
+
}
|
|
1504
|
+
else {
|
|
1505
|
+
if (xt(o, t))
|
|
1506
|
+
return c[t] = 1, o[t];
|
|
1507
|
+
if (s !== be && R(s, t))
|
|
1508
|
+
return c[t] = 2, s[t];
|
|
1509
|
+
if (
|
|
1510
|
+
// only cache other properties when instance has declared (thus stable)
|
|
1511
|
+
// props
|
|
1512
|
+
(u = e.propsOptions[0]) && R(u, t)
|
|
1513
|
+
)
|
|
1514
|
+
return c[t] = 3, r[t];
|
|
1515
|
+
if (n !== be && R(n, t))
|
|
1516
|
+
return c[t] = 4, n[t];
|
|
1517
|
+
c[t] = 0;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
const g = We[t];
|
|
1521
|
+
let p, a;
|
|
1522
|
+
if (g)
|
|
1523
|
+
return t === "$attrs" ? (W(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && W(e, "get", t), g(e);
|
|
1524
|
+
if (
|
|
1525
|
+
// css module (injected by vue-loader)
|
|
1526
|
+
(p = l.__cssModules) && (p = p[t])
|
|
1527
|
+
)
|
|
1528
|
+
return p;
|
|
1529
|
+
if (n !== be && R(n, t))
|
|
1530
|
+
return c[t] = 4, n[t];
|
|
1531
|
+
if (
|
|
1532
|
+
// global properties
|
|
1533
|
+
a = i.config.globalProperties, R(a, t)
|
|
1534
|
+
)
|
|
1535
|
+
return a[t];
|
|
1536
|
+
process.env.NODE_ENV !== "production" && me && (!ae(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
1537
|
+
// to infinite warning loop
|
|
1538
|
+
t.indexOf("__v") !== 0) && (s !== be && ko(t[0]) && R(s, t) ? D(
|
|
1539
|
+
`Property ${JSON.stringify(
|
|
1540
|
+
t
|
|
1541
|
+
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
1542
|
+
) : e === me && D(
|
|
1543
|
+
`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
|
|
1544
|
+
));
|
|
1545
|
+
},
|
|
1546
|
+
set({ _: e }, t, n) {
|
|
1547
|
+
const { data: o, setupState: s, ctx: r } = e;
|
|
1548
|
+
return xt(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && R(s, t) ? (D(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== be && R(o, t) ? (o[t] = n, !0) : R(e.props, t) ? (process.env.NODE_ENV !== "production" && D(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && D(
|
|
1549
|
+
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
1550
|
+
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(r, t, {
|
|
1551
|
+
enumerable: !0,
|
|
1552
|
+
configurable: !0,
|
|
1553
|
+
value: n
|
|
1554
|
+
}) : r[t] = n, !0);
|
|
1555
|
+
},
|
|
1556
|
+
has({
|
|
1557
|
+
_: { data: e, setupState: t, accessCache: n, ctx: o, appContext: s, propsOptions: r }
|
|
1558
|
+
}, c) {
|
|
1559
|
+
let l;
|
|
1560
|
+
return !!n[c] || e !== be && R(e, c) || xt(t, c) || (l = r[0]) && R(l, c) || R(o, c) || R(We, c) || R(s.config.globalProperties, c);
|
|
1561
|
+
},
|
|
1562
|
+
defineProperty(e, t, n) {
|
|
1563
|
+
return n.get != null ? e._.accessCache[t] = 0 : R(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
process.env.NODE_ENV !== "production" && (Fo.ownKeys = (e) => (D(
|
|
1567
|
+
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1568
|
+
), Reflect.ownKeys(e)));
|
|
1569
|
+
function un(e) {
|
|
1570
|
+
return $(e) ? e.reduce(
|
|
1571
|
+
(t, n) => (t[n] = null, t),
|
|
1572
|
+
{}
|
|
1573
|
+
) : e;
|
|
1574
|
+
}
|
|
1575
|
+
function jo(e) {
|
|
1576
|
+
const t = e.type, { mixins: n, extends: o } = t, {
|
|
1577
|
+
mixins: s,
|
|
1578
|
+
optionsCache: r,
|
|
1579
|
+
config: { optionMergeStrategies: c }
|
|
1580
|
+
} = e.appContext, l = r.get(t);
|
|
1581
|
+
let i;
|
|
1582
|
+
return l ? i = l : !s.length && !n && !o ? i = t : (i = {}, s.length && s.forEach(
|
|
1583
|
+
(u) => ut(i, u, c, !0)
|
|
1584
|
+
), ut(i, t, c)), ue(t) && r.set(t, i), i;
|
|
1585
|
+
}
|
|
1586
|
+
function ut(e, t, n, o = !1) {
|
|
1587
|
+
const { mixins: s, extends: r } = t;
|
|
1588
|
+
r && ut(e, r, n, !0), s && s.forEach(
|
|
1589
|
+
(c) => ut(e, c, n, !0)
|
|
1590
|
+
);
|
|
1591
|
+
for (const c in t)
|
|
1592
|
+
if (o && c === "expose")
|
|
1593
|
+
process.env.NODE_ENV !== "production" && D(
|
|
1594
|
+
'"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
|
|
1595
|
+
);
|
|
1596
|
+
else {
|
|
1597
|
+
const l = Ao[c] || n && n[c];
|
|
1598
|
+
e[c] = l ? l(e[c], t[c]) : t[c];
|
|
1599
|
+
}
|
|
1600
|
+
return e;
|
|
1601
|
+
}
|
|
1602
|
+
const Ao = {
|
|
1603
|
+
data: dn,
|
|
1604
|
+
props: hn,
|
|
1605
|
+
emits: hn,
|
|
1606
|
+
// objects
|
|
1607
|
+
methods: Fe,
|
|
1608
|
+
computed: Fe,
|
|
1609
|
+
// lifecycle
|
|
1610
|
+
beforeCreate: Y,
|
|
1611
|
+
created: Y,
|
|
1612
|
+
beforeMount: Y,
|
|
1613
|
+
mounted: Y,
|
|
1614
|
+
beforeUpdate: Y,
|
|
1615
|
+
updated: Y,
|
|
1616
|
+
beforeDestroy: Y,
|
|
1617
|
+
beforeUnmount: Y,
|
|
1618
|
+
destroyed: Y,
|
|
1619
|
+
unmounted: Y,
|
|
1620
|
+
activated: Y,
|
|
1621
|
+
deactivated: Y,
|
|
1622
|
+
errorCaptured: Y,
|
|
1623
|
+
serverPrefetch: Y,
|
|
1624
|
+
// assets
|
|
1625
|
+
components: Fe,
|
|
1626
|
+
directives: Fe,
|
|
1627
|
+
// watch
|
|
1628
|
+
watch: Bo,
|
|
1629
|
+
// provide / inject
|
|
1630
|
+
provide: dn,
|
|
1631
|
+
inject: Ho
|
|
1632
|
+
};
|
|
1633
|
+
function dn(e, t) {
|
|
1634
|
+
return t ? e ? function() {
|
|
1635
|
+
return pe(
|
|
1636
|
+
B(e) ? e.call(this, this) : e,
|
|
1637
|
+
B(t) ? t.call(this, this) : t
|
|
1638
|
+
);
|
|
1639
|
+
} : t : e;
|
|
1640
|
+
}
|
|
1641
|
+
function Ho(e, t) {
|
|
1642
|
+
return Fe(fn(e), fn(t));
|
|
1643
|
+
}
|
|
1644
|
+
function fn(e) {
|
|
1645
|
+
if ($(e)) {
|
|
1646
|
+
const t = {};
|
|
1647
|
+
for (let n = 0; n < e.length; n++)
|
|
1648
|
+
t[e[n]] = e[n];
|
|
1649
|
+
return t;
|
|
1650
|
+
}
|
|
1651
|
+
return e;
|
|
1652
|
+
}
|
|
1653
|
+
function Y(e, t) {
|
|
1654
|
+
return e ? [...new Set([].concat(e, t))] : t;
|
|
1655
|
+
}
|
|
1656
|
+
function Fe(e, t) {
|
|
1657
|
+
return e ? pe(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1658
|
+
}
|
|
1659
|
+
function hn(e, t) {
|
|
1660
|
+
return e ? $(e) && $(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : pe(
|
|
1661
|
+
/* @__PURE__ */ Object.create(null),
|
|
1662
|
+
un(e),
|
|
1663
|
+
un(t ?? {})
|
|
1664
|
+
) : t;
|
|
1665
|
+
}
|
|
1666
|
+
function Bo(e, t) {
|
|
1667
|
+
if (!e)
|
|
1668
|
+
return t;
|
|
1669
|
+
if (!t)
|
|
1670
|
+
return e;
|
|
1671
|
+
const n = pe(/* @__PURE__ */ Object.create(null), e);
|
|
1672
|
+
for (const o in t)
|
|
1673
|
+
n[o] = Y(e[o], t[o]);
|
|
1674
|
+
return n;
|
|
1675
|
+
}
|
|
1676
|
+
let pn = null;
|
|
1677
|
+
function Wo(e, t, n = !1) {
|
|
1678
|
+
const o = Me || me;
|
|
1679
|
+
if (o || pn) {
|
|
1680
|
+
const s = o ? o.parent == null ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : pn._context.provides;
|
|
1681
|
+
if (s && e in s)
|
|
1682
|
+
return s[e];
|
|
1683
|
+
if (arguments.length > 1)
|
|
1684
|
+
return n && B(t) ? t.call(o && o.proxy) : t;
|
|
1685
|
+
process.env.NODE_ENV !== "production" && D(`injection "${String(e)}" not found.`);
|
|
1686
|
+
} else
|
|
1687
|
+
process.env.NODE_ENV !== "production" && D("inject() can only be used inside setup() or functional components.");
|
|
1688
|
+
}
|
|
1689
|
+
const Xo = {}, Hn = (e) => Object.getPrototypeOf(e) === Xo, gn = Co, Yo = (e) => e.__isTeleport, Bn = Symbol.for("v-fgt"), Uo = Symbol.for("v-txt"), Ko = Symbol.for("v-cmt");
|
|
1690
|
+
let Re = null;
|
|
1691
|
+
function qo(e) {
|
|
1692
|
+
return e ? e.__v_isVNode === !0 : !1;
|
|
1693
|
+
}
|
|
1694
|
+
const Jo = (...e) => Xn(
|
|
1695
|
+
...e
|
|
1696
|
+
), Wn = ({ key: e }) => e ?? null, rt = ({
|
|
1697
|
+
ref: e,
|
|
1698
|
+
ref_key: t,
|
|
1699
|
+
ref_for: n
|
|
1700
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? ae(e) || de(e) || B(e) ? { i: me, r: e, k: t, f: !!n } : e : null);
|
|
1701
|
+
function Go(e, t = null, n = null, o = 0, s = null, r = e === Bn ? 0 : 1, c = !1, l = !1) {
|
|
1702
|
+
const i = {
|
|
1703
|
+
__v_isVNode: !0,
|
|
1704
|
+
__v_skip: !0,
|
|
1705
|
+
type: e,
|
|
1706
|
+
props: t,
|
|
1707
|
+
key: t && Wn(t),
|
|
1708
|
+
ref: t && rt(t),
|
|
1709
|
+
scopeId: Oo,
|
|
1710
|
+
slotScopeIds: null,
|
|
1711
|
+
children: n,
|
|
1712
|
+
component: null,
|
|
1713
|
+
suspense: null,
|
|
1714
|
+
ssContent: null,
|
|
1715
|
+
ssFallback: null,
|
|
1716
|
+
dirs: null,
|
|
1717
|
+
transition: null,
|
|
1718
|
+
el: null,
|
|
1719
|
+
anchor: null,
|
|
1720
|
+
target: null,
|
|
1721
|
+
targetAnchor: null,
|
|
1722
|
+
staticCount: 0,
|
|
1723
|
+
shapeFlag: r,
|
|
1724
|
+
patchFlag: o,
|
|
1725
|
+
dynamicProps: s,
|
|
1726
|
+
dynamicChildren: null,
|
|
1727
|
+
appContext: null,
|
|
1728
|
+
ctx: me
|
|
1729
|
+
};
|
|
1730
|
+
return l ? (Jt(i, n), r & 128 && e.normalize(i)) : n && (i.shapeFlag |= ae(n) ? 8 : 16), process.env.NODE_ENV !== "production" && i.key !== i.key && D("VNode created with invalid key (NaN). VNode type:", i.type), // avoid a block node from tracking itself
|
|
1731
|
+
!c && // has current parent block
|
|
1732
|
+
Re && // presence of a patch flag indicates this node needs patching on updates.
|
|
1733
|
+
// component nodes also should always be patched, because even if the
|
|
1734
|
+
// component doesn't need to update, it needs to persist the instance on to
|
|
1735
|
+
// the next vnode so that it can be properly unmounted later.
|
|
1736
|
+
(i.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
1737
|
+
// vnode should not be considered dynamic due to handler caching.
|
|
1738
|
+
i.patchFlag !== 32 && Re.push(i), i;
|
|
1739
|
+
}
|
|
1740
|
+
const Qo = process.env.NODE_ENV !== "production" ? Jo : Xn;
|
|
1741
|
+
function Xn(e, t = null, n = null, o = 0, s = null, r = !1) {
|
|
1742
|
+
if ((!e || e === Do) && (process.env.NODE_ENV !== "production" && !e && D(`Invalid vnode type when creating vnode: ${e}.`), e = Ko), qo(e)) {
|
|
1743
|
+
const l = dt(
|
|
1744
|
+
e,
|
|
1745
|
+
t,
|
|
1746
|
+
!0
|
|
1747
|
+
/* mergeRef: true */
|
|
1748
|
+
);
|
|
1749
|
+
return n && Jt(l, n), !r && Re && (l.shapeFlag & 6 ? Re[Re.indexOf(e)] = l : Re.push(l)), l.patchFlag |= -2, l;
|
|
1750
|
+
}
|
|
1751
|
+
if (Jn(e) && (e = e.__vccOpts), t) {
|
|
1752
|
+
t = Zo(t);
|
|
1753
|
+
let { class: l, style: i } = t;
|
|
1754
|
+
l && !ae(l) && (t.class = kt(l)), ue(i) && ($t(i) && !$(i) && (i = pe({}, i)), t.style = Mt(i));
|
|
1755
|
+
}
|
|
1756
|
+
const c = ae(e) ? 1 : $o(e) ? 128 : Yo(e) ? 64 : ue(e) ? 4 : B(e) ? 2 : 0;
|
|
1757
|
+
return process.env.NODE_ENV !== "production" && c & 4 && $t(e) && (e = S(e), D(
|
|
1758
|
+
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1759
|
+
`
|
|
1760
|
+
Component that was made reactive: `,
|
|
1761
|
+
e
|
|
1762
|
+
)), Go(
|
|
1763
|
+
e,
|
|
1764
|
+
t,
|
|
1765
|
+
n,
|
|
1766
|
+
o,
|
|
1767
|
+
s,
|
|
1768
|
+
c,
|
|
1769
|
+
r,
|
|
1770
|
+
!0
|
|
1771
|
+
);
|
|
1772
|
+
}
|
|
1773
|
+
function Zo(e) {
|
|
1774
|
+
return e ? $t(e) || Hn(e) ? pe({}, e) : e : null;
|
|
1775
|
+
}
|
|
1776
|
+
function dt(e, t, n = !1, o = !1) {
|
|
1777
|
+
const { props: s, ref: r, patchFlag: c, children: l, transition: i } = e, u = t ? tr(s || {}, t) : s, g = {
|
|
1778
|
+
__v_isVNode: !0,
|
|
1779
|
+
__v_skip: !0,
|
|
1780
|
+
type: e.type,
|
|
1781
|
+
props: u,
|
|
1782
|
+
key: u && Wn(u),
|
|
1783
|
+
ref: t && t.ref ? (
|
|
1784
|
+
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1785
|
+
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1786
|
+
// the refs so the single vnode can be set on multiple refs
|
|
1787
|
+
n && r ? $(r) ? r.concat(rt(t)) : [r, rt(t)] : rt(t)
|
|
1788
|
+
) : r,
|
|
1789
|
+
scopeId: e.scopeId,
|
|
1790
|
+
slotScopeIds: e.slotScopeIds,
|
|
1791
|
+
children: process.env.NODE_ENV !== "production" && c === -1 && $(l) ? l.map(Yn) : l,
|
|
1792
|
+
target: e.target,
|
|
1793
|
+
targetAnchor: e.targetAnchor,
|
|
1794
|
+
staticCount: e.staticCount,
|
|
1795
|
+
shapeFlag: e.shapeFlag,
|
|
1796
|
+
// if the vnode is cloned with extra props, we can no longer assume its
|
|
1797
|
+
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1798
|
+
// note: preserve flag for fragments since they use the flag for children
|
|
1799
|
+
// fast paths only.
|
|
1800
|
+
patchFlag: t && e.type !== Bn ? c === -1 ? 16 : c | 16 : c,
|
|
1801
|
+
dynamicProps: e.dynamicProps,
|
|
1802
|
+
dynamicChildren: e.dynamicChildren,
|
|
1803
|
+
appContext: e.appContext,
|
|
1804
|
+
dirs: e.dirs,
|
|
1805
|
+
transition: i,
|
|
1806
|
+
// These should technically only be non-null on mounted VNodes. However,
|
|
1807
|
+
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1808
|
+
// them since them being non-null during a mount doesn't affect the logic as
|
|
1809
|
+
// they will simply be overwritten.
|
|
1810
|
+
component: e.component,
|
|
1811
|
+
suspense: e.suspense,
|
|
1812
|
+
ssContent: e.ssContent && dt(e.ssContent),
|
|
1813
|
+
ssFallback: e.ssFallback && dt(e.ssFallback),
|
|
1814
|
+
el: e.el,
|
|
1815
|
+
anchor: e.anchor,
|
|
1816
|
+
ctx: e.ctx,
|
|
1817
|
+
ce: e.ce
|
|
1818
|
+
};
|
|
1819
|
+
return i && o && (g.transition = i.clone(g)), g;
|
|
1820
|
+
}
|
|
1821
|
+
function Yn(e) {
|
|
1822
|
+
const t = dt(e);
|
|
1823
|
+
return $(e.children) && (t.children = e.children.map(Yn)), t;
|
|
1824
|
+
}
|
|
1825
|
+
function er(e = " ", t = 0) {
|
|
1826
|
+
return Qo(Uo, null, e, t);
|
|
1827
|
+
}
|
|
1828
|
+
function Jt(e, t) {
|
|
1829
|
+
let n = 0;
|
|
1830
|
+
const { shapeFlag: o } = e;
|
|
1831
|
+
if (t == null)
|
|
1832
|
+
t = null;
|
|
1833
|
+
else if ($(t))
|
|
1834
|
+
n = 16;
|
|
1835
|
+
else if (typeof t == "object")
|
|
1836
|
+
if (o & 65) {
|
|
1837
|
+
const s = t.default;
|
|
1838
|
+
s && (s._c && (s._d = !1), Jt(e, s()), s._c && (s._d = !0));
|
|
1839
|
+
return;
|
|
1840
|
+
} else {
|
|
1841
|
+
n = 32;
|
|
1842
|
+
const s = t._;
|
|
1843
|
+
!s && !Hn(t) ? t._ctx = me : s === 3 && me && (me.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
1844
|
+
}
|
|
1845
|
+
else
|
|
1846
|
+
B(t) ? (t = { default: t, _ctx: me }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [er(t)]) : n = 8);
|
|
1847
|
+
e.children = t, e.shapeFlag |= n;
|
|
1848
|
+
}
|
|
1849
|
+
function tr(...e) {
|
|
1850
|
+
const t = {};
|
|
1851
|
+
for (let n = 0; n < e.length; n++) {
|
|
1852
|
+
const o = e[n];
|
|
1853
|
+
for (const s in o)
|
|
1854
|
+
if (s === "class")
|
|
1855
|
+
t.class !== o.class && (t.class = kt([t.class, o.class]));
|
|
1856
|
+
else if (s === "style")
|
|
1857
|
+
t.style = Mt([t.style, o.style]);
|
|
1858
|
+
else if (Ss(s)) {
|
|
1859
|
+
const r = t[s], c = o[s];
|
|
1860
|
+
c && r !== c && !($(r) && r.includes(c)) && (t[s] = r ? [].concat(r, c) : c);
|
|
1861
|
+
} else
|
|
1862
|
+
s !== "" && (t[s] = o[s]);
|
|
1863
|
+
}
|
|
1864
|
+
return t;
|
|
1865
|
+
}
|
|
1866
|
+
let Me = null, Tt;
|
|
1867
|
+
{
|
|
1868
|
+
const e = xn(), t = (n, o) => {
|
|
1869
|
+
let s;
|
|
1870
|
+
return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
|
|
1871
|
+
s.length > 1 ? s.forEach((c) => c(r)) : s[0](r);
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
Tt = t(
|
|
1875
|
+
"__VUE_INSTANCE_SETTERS__",
|
|
1876
|
+
(n) => Me = n
|
|
1877
|
+
), t(
|
|
1878
|
+
"__VUE_SSR_SETTERS__",
|
|
1879
|
+
(n) => Gt = n
|
|
1880
|
+
);
|
|
1881
|
+
}
|
|
1882
|
+
const Un = (e) => {
|
|
1883
|
+
const t = Me;
|
|
1884
|
+
return Tt(e), e.scope.on(), () => {
|
|
1885
|
+
e.scope.off(), Tt(t);
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
function nr(e) {
|
|
1889
|
+
return e.vnode.shapeFlag & 4;
|
|
1890
|
+
}
|
|
1891
|
+
let Gt = !1;
|
|
1892
|
+
process.env.NODE_ENV;
|
|
1893
|
+
function sr(e) {
|
|
1894
|
+
if (e.exposed)
|
|
1895
|
+
return e.exposeProxy || (e.exposeProxy = new Proxy(uo(io(e.exposed)), {
|
|
1896
|
+
get(t, n) {
|
|
1897
|
+
if (n in t)
|
|
1898
|
+
return t[n];
|
|
1899
|
+
if (n in We)
|
|
1900
|
+
return We[n](e);
|
|
1901
|
+
},
|
|
1902
|
+
has(t, n) {
|
|
1903
|
+
return n in t || n in We;
|
|
1904
|
+
}
|
|
1905
|
+
}));
|
|
1906
|
+
}
|
|
1907
|
+
const or = /(?:^|[-_])(\w)/g, rr = (e) => e.replace(or, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1908
|
+
function Kn(e, t = !0) {
|
|
1909
|
+
return B(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1910
|
+
}
|
|
1911
|
+
function qn(e, t, n = !1) {
|
|
1912
|
+
let o = Kn(t);
|
|
1913
|
+
if (!o && t.__file) {
|
|
1914
|
+
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1915
|
+
s && (o = s[1]);
|
|
1916
|
+
}
|
|
1917
|
+
if (!o && e && e.parent) {
|
|
1918
|
+
const s = (r) => {
|
|
1919
|
+
for (const c in r)
|
|
1920
|
+
if (r[c] === t)
|
|
1921
|
+
return c;
|
|
1922
|
+
};
|
|
1923
|
+
o = s(
|
|
1924
|
+
e.components || e.parent.type.components
|
|
1925
|
+
) || s(e.appContext.components);
|
|
1926
|
+
}
|
|
1927
|
+
return o ? rr(o) : n ? "App" : "Anonymous";
|
|
1928
|
+
}
|
|
1929
|
+
function Jn(e) {
|
|
1930
|
+
return B(e) && "__vccOpts" in e;
|
|
1931
|
+
}
|
|
1932
|
+
process.env.NODE_ENV;
|
|
1933
|
+
process.env.NODE_ENV;
|
|
1934
|
+
process.env.NODE_ENV;
|
|
1935
|
+
const cr = { class: "gc-header" }, ir = { class: "gc-icon-block" }, lr = { class: "gc-loading" }, ar = ["src"], ur = ["src"], dr = { class: "gc-footer" }, fr = /* @__PURE__ */ f("div", { class: "gc-drag-line" }, null, -1), ft = /* @__PURE__ */ te({
|
|
313
1936
|
__name: "index",
|
|
314
1937
|
props: {
|
|
315
|
-
config: { default:
|
|
1938
|
+
config: { default: Zt },
|
|
316
1939
|
events: { default: () => ({}) },
|
|
317
1940
|
data: { default: () => ({}) }
|
|
318
1941
|
},
|
|
319
|
-
setup(
|
|
320
|
-
const n =
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
})
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
1942
|
+
setup(e, { expose: t }) {
|
|
1943
|
+
const n = e, { data: o, events: s, config: r } = n, c = M({ ...ws(), ...Q(o) }), l = M({ ...Q(s) }), i = M({ ...Zt(), ...Q(r) });
|
|
1944
|
+
H(() => n.data, (d, y) => {
|
|
1945
|
+
Object.assign(c, d);
|
|
1946
|
+
}, { deep: !0 }), H(() => n.events, (d, y) => {
|
|
1947
|
+
Object.assign(l, d);
|
|
1948
|
+
}, { deep: !0 }), H(() => n.config, (d, y) => {
|
|
1949
|
+
Object.assign(i, d);
|
|
1950
|
+
}, { deep: !0 });
|
|
1951
|
+
const u = ie(null), g = ie(null), p = ie(null), a = ie(null), E = ie(null), b = xs(
|
|
1952
|
+
c,
|
|
1953
|
+
l,
|
|
1954
|
+
i,
|
|
1955
|
+
u,
|
|
1956
|
+
p,
|
|
1957
|
+
E,
|
|
1958
|
+
a,
|
|
1959
|
+
g,
|
|
1960
|
+
() => {
|
|
1961
|
+
c.thumb = "", c.image = "", c.thumbX = 0, c.thumbY = 0, c.thumbWidth = 0, c.thumbHeight = 0;
|
|
1962
|
+
}
|
|
1963
|
+
), h = L(() => {
|
|
1964
|
+
const d = i.horizontalPadding || 0, y = i.verticalPadding || 0;
|
|
1965
|
+
return {
|
|
1966
|
+
width: (i.width || 0) + d * 2 + (i.showTheme ? 2 : 0) + "px",
|
|
1967
|
+
paddingLeft: d + "px",
|
|
1968
|
+
paddingRight: d + "px",
|
|
1969
|
+
paddingTop: y + "px",
|
|
1970
|
+
paddingBottom: y + "px"
|
|
328
1971
|
};
|
|
329
|
-
})
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}), (
|
|
348
|
-
class:
|
|
349
|
-
style:
|
|
1972
|
+
}), w = L(() => ({
|
|
1973
|
+
width: c.thumbWidth + "px",
|
|
1974
|
+
height: c.thumbHeight + "px",
|
|
1975
|
+
top: c.thumbY + "px",
|
|
1976
|
+
left: b.state.thumbLeft + "px"
|
|
1977
|
+
})), m = L(() => ({
|
|
1978
|
+
width: i.width + "px",
|
|
1979
|
+
height: i.height + "px"
|
|
1980
|
+
})), N = L(() => c.image != ""), P = L(() => c.thumb != ""), _ = L(() => (i.width || 0) > 0 || (i.height || 0) > 0), v = (d) => d.preventDefault();
|
|
1981
|
+
return Rt(async () => {
|
|
1982
|
+
await Vt(), a.value && a.value.addEventListener("dragstart", v);
|
|
1983
|
+
}), An(() => {
|
|
1984
|
+
a.value && a.value.removeEventListener("dragstart", v);
|
|
1985
|
+
}), t({
|
|
1986
|
+
reset: b.resetData,
|
|
1987
|
+
clear: b.clearData,
|
|
1988
|
+
refresh: b.refresh,
|
|
1989
|
+
close: b.close
|
|
1990
|
+
}), (d, y) => oe((z(), U("div", {
|
|
1991
|
+
class: _e(`go-captcha gc-wrapper ${i.showTheme && "gc-theme"}`),
|
|
1992
|
+
style: C(h.value),
|
|
1993
|
+
ref_key: "rootRef",
|
|
1994
|
+
ref: u
|
|
350
1995
|
}, [
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
width:
|
|
356
|
-
height:
|
|
357
|
-
onClick:
|
|
358
|
-
}, null, 8, ["onClick"]),
|
|
359
|
-
|
|
360
|
-
width:
|
|
361
|
-
height:
|
|
362
|
-
onClick:
|
|
363
|
-
}, null, 8, ["onClick"])
|
|
1996
|
+
f("div", cr, [
|
|
1997
|
+
f("span", null, Le(i.title), 1),
|
|
1998
|
+
f("div", ir, [
|
|
1999
|
+
G(mt, {
|
|
2000
|
+
width: i.iconSize,
|
|
2001
|
+
height: i.iconSize,
|
|
2002
|
+
onClick: x(b).closeEvent
|
|
2003
|
+
}, null, 8, ["width", "height", "onClick"]),
|
|
2004
|
+
G(_t, {
|
|
2005
|
+
width: i.iconSize,
|
|
2006
|
+
height: i.iconSize,
|
|
2007
|
+
onClick: x(b).refreshEvent
|
|
2008
|
+
}, null, 8, ["width", "height", "onClick"])
|
|
364
2009
|
])
|
|
365
2010
|
]),
|
|
366
|
-
|
|
2011
|
+
f("div", {
|
|
367
2012
|
class: "gc-body",
|
|
368
2013
|
ref_key: "containerRef",
|
|
369
|
-
ref:
|
|
370
|
-
style:
|
|
2014
|
+
ref: p,
|
|
2015
|
+
style: C(m.value)
|
|
371
2016
|
}, [
|
|
372
|
-
|
|
373
|
-
|
|
2017
|
+
f("div", lr, [
|
|
2018
|
+
G(vt)
|
|
374
2019
|
]),
|
|
375
|
-
|
|
2020
|
+
oe(f("img", {
|
|
376
2021
|
class: "gc-picture",
|
|
377
|
-
style:
|
|
378
|
-
src:
|
|
379
|
-
alt: "
|
|
380
|
-
}, null, 12,
|
|
381
|
-
[
|
|
2022
|
+
style: C(m.value),
|
|
2023
|
+
src: c.image,
|
|
2024
|
+
alt: ""
|
|
2025
|
+
}, null, 12, ar), [
|
|
2026
|
+
[re, N.value]
|
|
382
2027
|
]),
|
|
383
|
-
|
|
2028
|
+
f("div", {
|
|
384
2029
|
class: "gc-tile",
|
|
385
2030
|
ref_key: "tileRef",
|
|
386
|
-
ref:
|
|
387
|
-
style:
|
|
2031
|
+
ref: E,
|
|
2032
|
+
style: C(w.value)
|
|
388
2033
|
}, [
|
|
389
|
-
|
|
390
|
-
src:
|
|
391
|
-
alt: "
|
|
392
|
-
}, null, 8,
|
|
393
|
-
[
|
|
2034
|
+
oe(f("img", {
|
|
2035
|
+
src: c.thumb,
|
|
2036
|
+
alt: ""
|
|
2037
|
+
}, null, 8, ur), [
|
|
2038
|
+
[re, P.value]
|
|
394
2039
|
])
|
|
395
2040
|
], 4)
|
|
396
2041
|
], 4),
|
|
397
|
-
|
|
398
|
-
|
|
2042
|
+
f("div", dr, [
|
|
2043
|
+
f("div", {
|
|
399
2044
|
class: "gc-drag-slide-bar",
|
|
400
2045
|
ref_key: "dragBarRef",
|
|
401
|
-
ref:
|
|
2046
|
+
ref: g
|
|
402
2047
|
}, [
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
class: "gc-drag-block",
|
|
2048
|
+
fr,
|
|
2049
|
+
f("div", {
|
|
2050
|
+
class: _e(["gc-drag-block", !N.value && "disabled"]),
|
|
406
2051
|
ref_key: "dragBlockRef",
|
|
407
|
-
ref:
|
|
408
|
-
onMousedown:
|
|
409
|
-
(
|
|
410
|
-
style:
|
|
2052
|
+
ref: a,
|
|
2053
|
+
onMousedown: y[1] || (y[1] = //@ts-ignore
|
|
2054
|
+
(...V) => x(b).dragEvent && x(b).dragEvent(...V)),
|
|
2055
|
+
style: C({ left: x(b).state.dragLeft + "px" })
|
|
411
2056
|
}, [
|
|
412
|
-
|
|
413
|
-
class: "drag-block-inline",
|
|
414
|
-
onTouchstart:
|
|
415
|
-
(
|
|
2057
|
+
f("div", {
|
|
2058
|
+
class: "gc-drag-block-inline",
|
|
2059
|
+
onTouchstart: y[0] || (y[0] = //@ts-ignore
|
|
2060
|
+
(...V) => x(b).dragEvent && x(b).dragEvent(...V))
|
|
416
2061
|
}, [
|
|
417
|
-
|
|
2062
|
+
G(vn)
|
|
418
2063
|
], 32)
|
|
419
|
-
],
|
|
2064
|
+
], 38)
|
|
420
2065
|
], 512)
|
|
421
2066
|
])
|
|
422
|
-
], 6))
|
|
2067
|
+
], 6)), [
|
|
2068
|
+
[re, _.value]
|
|
2069
|
+
]);
|
|
423
2070
|
}
|
|
424
2071
|
});
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
2072
|
+
ft.name = "gocaptcha-slide";
|
|
2073
|
+
ft.install = function(e) {
|
|
2074
|
+
e.component("gocaptcha-slide", ft);
|
|
428
2075
|
};
|
|
429
|
-
const
|
|
2076
|
+
const mn = () => ({
|
|
430
2077
|
width: 300,
|
|
431
2078
|
height: 220,
|
|
432
2079
|
verticalPadding: 16,
|
|
433
2080
|
horizontalPadding: 12,
|
|
434
2081
|
showTheme: !0,
|
|
435
|
-
title: "请拖拽贴图完成拼图"
|
|
2082
|
+
title: "请拖拽贴图完成拼图",
|
|
2083
|
+
iconSize: 22,
|
|
2084
|
+
scope: !0
|
|
2085
|
+
}), hr = () => ({
|
|
2086
|
+
thumbX: 0,
|
|
2087
|
+
thumbY: 0,
|
|
2088
|
+
thumbWidth: 0,
|
|
2089
|
+
thumbHeight: 0,
|
|
2090
|
+
image: "",
|
|
2091
|
+
thumb: ""
|
|
436
2092
|
});
|
|
437
|
-
function
|
|
438
|
-
const
|
|
439
|
-
|
|
2093
|
+
function pr(e, t, n, o, s, r, c) {
|
|
2094
|
+
const l = M({ x: e.thumbX || 0, y: e.thumbY || 0, isFreeze: !1 });
|
|
2095
|
+
H(() => e, (h, w) => {
|
|
2096
|
+
l.isFreeze || (l.x = h.thumbX || 0, l.y = h.thumbY || 0);
|
|
2097
|
+
}, { deep: !0 });
|
|
2098
|
+
const i = (h) => {
|
|
2099
|
+
const w = h.touches && h.touches[0], m = r.value.offsetLeft, N = r.value.offsetTop, P = s.value.offsetWidth, _ = s.value.offsetHeight, v = r.value.offsetWidth, d = r.value.offsetHeight, y = P - v, V = _ - d;
|
|
2100
|
+
let fe = !1, he = null, ne = 0, Z = 0, k = 0, ce = 0;
|
|
2101
|
+
w ? (ne = w.pageX - m, Z = w.pageY - N) : (ne = h.clientX - m, Z = h.clientY - N);
|
|
2102
|
+
const K = (F) => {
|
|
2103
|
+
fe = !0;
|
|
2104
|
+
const j = F.touches && F.touches[0];
|
|
2105
|
+
let se = 0, A = 0;
|
|
2106
|
+
j ? (se = j.pageX - ne, A = j.pageY - Z) : (se = F.clientX - ne, A = F.clientY - Z), se <= 0 && (se = 0), A <= 0 && (A = 0), se >= y && (se = y), A >= V && (A = V), l.x = se, l.y = A, k = se, ce = A, t.move && t.move(se, A), F.cancelBubble = !0, F.preventDefault();
|
|
2107
|
+
}, X = (F) => {
|
|
2108
|
+
zt(s.value, F) && fe && (fe = !1, I(), !(k < 0 || ce < 0) && (t.confirm && t.confirm({ x: k, y: ce }, () => {
|
|
2109
|
+
E();
|
|
2110
|
+
}), F.cancelBubble = !0, F.preventDefault()));
|
|
2111
|
+
}, ee = (F) => {
|
|
2112
|
+
he = F;
|
|
2113
|
+
}, q = () => {
|
|
2114
|
+
he = null;
|
|
2115
|
+
}, J = (F) => {
|
|
2116
|
+
he && (X(he), I());
|
|
2117
|
+
}, ve = n.scope, O = ve ? o.value : s.value, T = ve ? o.value : document.body, I = () => {
|
|
2118
|
+
T.removeEventListener("mousemove", K, !1), T.removeEventListener("touchmove", K, { passive: !1 }), O.removeEventListener("mouseup", X, !1), O.removeEventListener("mouseenter", q, !1), O.removeEventListener("mouseleave", ee, !1), O.removeEventListener("touchend", X, !1), T.removeEventListener("mouseleave", X, !1), T.removeEventListener("mouseup", J, !1), l.isFreeze = !1;
|
|
2119
|
+
};
|
|
2120
|
+
l.isFreeze = !0, T.addEventListener("mousemove", K, !1), T.addEventListener("touchmove", K, { passive: !1 }), O.addEventListener("mouseup", X, !1), O.addEventListener("mouseenter", q, !1), O.addEventListener("mouseleave", ee, !1), O.addEventListener("touchend", X, !1), T.addEventListener("mouseleave", X, !1), T.addEventListener("mouseup", J, !1);
|
|
2121
|
+
}, u = (h) => (p(), h.cancelBubble = !0, h.preventDefault(), !1), g = (h) => (a(), h.cancelBubble = !0, h.preventDefault(), !1), p = () => {
|
|
2122
|
+
t && t.close && t.close(), E();
|
|
2123
|
+
}, a = () => {
|
|
2124
|
+
t && t.refresh && t.refresh(), E();
|
|
2125
|
+
}, E = () => {
|
|
2126
|
+
l.x = e.thumbX || 0, l.y = e.thumbY || 0;
|
|
440
2127
|
};
|
|
441
2128
|
return {
|
|
442
|
-
state:
|
|
443
|
-
dragEvent:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
const G = f.touches && f.touches[0];
|
|
450
|
-
let y = 0, F = 0;
|
|
451
|
-
G ? (y = G.pageX - k, F = G.pageY - S) : (y = f.clientX - k, F = f.clientY - S), y <= 0 && (y = 0), F <= 0 && (F = 0), y >= L && (y = L), F >= $ && (F = $), e.x = y, e.y = F, Y = y, H = F, n.move && n.move(y, F), f.cancelBubble = !0, f.preventDefault();
|
|
452
|
-
}, h = (f) => {
|
|
453
|
-
ue(t.value, f) && M && (M = !1, J(), n.confirm && n.confirm({ x: Y, y: H }, () => {
|
|
454
|
-
i();
|
|
455
|
-
}), f.cancelBubble = !0, f.preventDefault());
|
|
456
|
-
}, A = (f) => {
|
|
457
|
-
T = f;
|
|
458
|
-
}, W = () => {
|
|
459
|
-
T = null;
|
|
460
|
-
}, q = (f) => {
|
|
461
|
-
T && (h(T), J());
|
|
462
|
-
}, J = () => {
|
|
463
|
-
t.value.removeEventListener("mousemove", B, !1), t.value.removeEventListener("touchmove", B, { passive: !1 }), t.value.removeEventListener("mouseup", h, !1), t.value.removeEventListener("mouseenter", W, !1), t.value.removeEventListener("mouseleave", A, !1), t.value.removeEventListener("touchend", h, !1), document.body.removeEventListener("mouseleave", h, !1), document.body.removeEventListener("mouseup", q, !1);
|
|
464
|
-
};
|
|
465
|
-
t.value.addEventListener("mousemove", B, !1), t.value.addEventListener("touchmove", B, { passive: !1 }), t.value.addEventListener("mouseup", h, !1), t.value.addEventListener("mouseenter", W, !1), t.value.addEventListener("mouseleave", A, !1), t.value.addEventListener("touchend", h, !1), document.body.addEventListener("mouseleave", h, !1), document.body.addEventListener("mouseup", q, !1);
|
|
2129
|
+
state: l,
|
|
2130
|
+
dragEvent: i,
|
|
2131
|
+
closeEvent: u,
|
|
2132
|
+
refreshEvent: g,
|
|
2133
|
+
resetData: E,
|
|
2134
|
+
clearData: () => {
|
|
2135
|
+
c && c(), E();
|
|
466
2136
|
},
|
|
467
|
-
|
|
468
|
-
|
|
2137
|
+
refresh: a,
|
|
2138
|
+
close: p
|
|
469
2139
|
};
|
|
470
2140
|
}
|
|
471
|
-
const
|
|
2141
|
+
const gr = { class: "gc-header gc-header2" }, mr = { class: "gc-loading" }, _r = ["src"], vr = ["src"], Er = { class: "gc-footer" }, br = { class: "gc-icon-block" }, ht = /* @__PURE__ */ te({
|
|
472
2142
|
__name: "index",
|
|
473
2143
|
props: {
|
|
474
|
-
config: { default:
|
|
2144
|
+
config: { default: mn },
|
|
475
2145
|
events: { default: () => ({}) },
|
|
476
2146
|
data: { default: () => ({}) }
|
|
477
2147
|
},
|
|
478
|
-
setup(
|
|
479
|
-
const n =
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
})
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
2148
|
+
setup(e, { expose: t }) {
|
|
2149
|
+
const n = e, { data: o, events: s, config: r } = n, c = M({ ...hr(), ...Q(o) }), l = M({ ...Q(s) }), i = M({ ...mn(), ...Q(r) });
|
|
2150
|
+
H(() => n.data, (_, v) => {
|
|
2151
|
+
Object.assign(c, _);
|
|
2152
|
+
}, { deep: !0 }), H(() => n.events, (_, v) => {
|
|
2153
|
+
Object.assign(l, _);
|
|
2154
|
+
}, { deep: !0 }), H(() => n.config, (_, v) => {
|
|
2155
|
+
Object.assign(i, _);
|
|
2156
|
+
}, { deep: !0 });
|
|
2157
|
+
const u = ie(null), g = ie(null), p = ie(null), a = pr(
|
|
2158
|
+
c,
|
|
2159
|
+
l,
|
|
2160
|
+
i,
|
|
2161
|
+
u,
|
|
2162
|
+
g,
|
|
2163
|
+
p,
|
|
2164
|
+
() => {
|
|
2165
|
+
c.thumb = "", c.image = "", c.thumbX = 0, c.thumbY = 0, c.thumbWidth = 0, c.thumbHeight = 0;
|
|
2166
|
+
}
|
|
2167
|
+
), E = L(() => {
|
|
2168
|
+
const _ = i.horizontalPadding || 0, v = i.verticalPadding || 0;
|
|
2169
|
+
return {
|
|
2170
|
+
width: (i.width || 0) + _ * 2 + (i.showTheme ? 2 : 0) + "px",
|
|
2171
|
+
paddingLeft: _ + "px",
|
|
2172
|
+
paddingRight: _ + "px",
|
|
2173
|
+
paddingTop: v + "px",
|
|
2174
|
+
paddingBottom: v + "px"
|
|
487
2175
|
};
|
|
488
|
-
})
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
2176
|
+
}), b = L(() => ({
|
|
2177
|
+
width: c.thumbWidth + "px",
|
|
2178
|
+
height: c.thumbHeight + "px",
|
|
2179
|
+
top: a.state.y + "px",
|
|
2180
|
+
left: a.state.x + "px"
|
|
2181
|
+
})), h = L(() => ({
|
|
2182
|
+
width: i.width + "px",
|
|
2183
|
+
height: i.height + "px"
|
|
2184
|
+
})), w = L(() => c.image != ""), m = L(() => c.thumb != ""), N = L(() => (i.width || 0) > 0 || (i.height || 0) > 0), P = (_) => _.preventDefault();
|
|
2185
|
+
return Rt(async () => {
|
|
2186
|
+
await Vt(), p.value && p.value.addEventListener("dragstart", P);
|
|
2187
|
+
}), An(() => {
|
|
2188
|
+
p.value && p.value.removeEventListener("dragstart", P);
|
|
2189
|
+
}), t({
|
|
2190
|
+
reset: a.resetData,
|
|
2191
|
+
clear: a.clearData,
|
|
2192
|
+
refresh: a.refresh,
|
|
2193
|
+
close: a.close
|
|
2194
|
+
}), (_, v) => oe((z(), U("div", {
|
|
2195
|
+
class: _e(`go-captcha gc-wrapper ${i.showTheme && "gc-theme"}`),
|
|
2196
|
+
style: C(E.value),
|
|
2197
|
+
ref_key: "rootRef",
|
|
2198
|
+
ref: u
|
|
511
2199
|
}, [
|
|
512
|
-
|
|
513
|
-
|
|
2200
|
+
f("div", gr, [
|
|
2201
|
+
f("span", null, Le(i.title), 1)
|
|
514
2202
|
]),
|
|
515
|
-
|
|
2203
|
+
f("div", {
|
|
516
2204
|
class: "gc-body",
|
|
517
2205
|
ref_key: "containerRef",
|
|
518
|
-
ref:
|
|
519
|
-
style:
|
|
2206
|
+
ref: g,
|
|
2207
|
+
style: C(h.value)
|
|
520
2208
|
}, [
|
|
521
|
-
|
|
522
|
-
|
|
2209
|
+
f("div", mr, [
|
|
2210
|
+
G(vt)
|
|
523
2211
|
]),
|
|
524
|
-
|
|
2212
|
+
oe(f("img", {
|
|
525
2213
|
class: "gc-picture",
|
|
526
|
-
style:
|
|
527
|
-
src:
|
|
528
|
-
alt: "
|
|
529
|
-
}, null, 12,
|
|
530
|
-
[
|
|
2214
|
+
style: C(h.value),
|
|
2215
|
+
src: c.image,
|
|
2216
|
+
alt: ""
|
|
2217
|
+
}, null, 12, _r), [
|
|
2218
|
+
[re, w.value]
|
|
531
2219
|
]),
|
|
532
|
-
|
|
2220
|
+
f("div", {
|
|
533
2221
|
class: "gc-tile",
|
|
534
2222
|
ref_key: "tileRef",
|
|
535
|
-
ref:
|
|
536
|
-
style:
|
|
537
|
-
onMousedown:
|
|
538
|
-
(...
|
|
539
|
-
onTouchstart:
|
|
540
|
-
(...
|
|
2223
|
+
ref: p,
|
|
2224
|
+
style: C(b.value),
|
|
2225
|
+
onMousedown: v[0] || (v[0] = //@ts-ignore
|
|
2226
|
+
(...d) => x(a).dragEvent && x(a).dragEvent(...d)),
|
|
2227
|
+
onTouchstart: v[1] || (v[1] = //@ts-ignore
|
|
2228
|
+
(...d) => x(a).dragEvent && x(a).dragEvent(...d))
|
|
541
2229
|
}, [
|
|
542
|
-
|
|
543
|
-
src:
|
|
544
|
-
alt: "
|
|
545
|
-
}, null, 8,
|
|
546
|
-
[
|
|
2230
|
+
oe(f("img", {
|
|
2231
|
+
src: c.thumb,
|
|
2232
|
+
alt: ""
|
|
2233
|
+
}, null, 8, vr), [
|
|
2234
|
+
[re, m.value]
|
|
547
2235
|
])
|
|
548
2236
|
], 36)
|
|
549
2237
|
], 4),
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
width:
|
|
554
|
-
height:
|
|
555
|
-
onClick: a
|
|
556
|
-
}, null, 8, ["onClick"]),
|
|
557
|
-
|
|
558
|
-
width:
|
|
559
|
-
height:
|
|
560
|
-
onClick: a
|
|
561
|
-
}, null, 8, ["onClick"])
|
|
2238
|
+
f("div", Er, [
|
|
2239
|
+
f("div", br, [
|
|
2240
|
+
G(mt, {
|
|
2241
|
+
width: i.iconSize,
|
|
2242
|
+
height: i.iconSize,
|
|
2243
|
+
onClick: x(a).closeEvent
|
|
2244
|
+
}, null, 8, ["width", "height", "onClick"]),
|
|
2245
|
+
G(_t, {
|
|
2246
|
+
width: i.iconSize,
|
|
2247
|
+
height: i.iconSize,
|
|
2248
|
+
onClick: x(a).refreshEvent
|
|
2249
|
+
}, null, 8, ["width", "height", "onClick"])
|
|
562
2250
|
])
|
|
563
2251
|
])
|
|
564
|
-
], 6))
|
|
2252
|
+
], 6)), [
|
|
2253
|
+
[re, N.value]
|
|
2254
|
+
]);
|
|
565
2255
|
}
|
|
566
2256
|
});
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
2257
|
+
ht.name = "gocaptcha-slide-region";
|
|
2258
|
+
ht.install = function(e) {
|
|
2259
|
+
e.component("gocaptcha-slide-region", ht);
|
|
570
2260
|
};
|
|
571
|
-
const
|
|
2261
|
+
const yt = () => ({
|
|
572
2262
|
width: 300,
|
|
573
2263
|
height: 220,
|
|
574
2264
|
size: 220,
|
|
575
2265
|
verticalPadding: 16,
|
|
576
2266
|
horizontalPadding: 12,
|
|
577
2267
|
showTheme: !0,
|
|
578
|
-
title: "请拖动滑块完成拼图"
|
|
2268
|
+
title: "请拖动滑块完成拼图",
|
|
2269
|
+
iconSize: 22,
|
|
2270
|
+
scope: !0
|
|
2271
|
+
}), wr = () => ({
|
|
2272
|
+
angle: 0,
|
|
2273
|
+
image: "",
|
|
2274
|
+
thumb: ""
|
|
579
2275
|
});
|
|
580
|
-
function
|
|
581
|
-
const
|
|
582
|
-
|
|
2276
|
+
function xr(e, t, n, o, s, r, c) {
|
|
2277
|
+
const l = M({ dragLeft: 0, thumbAngle: e.angle || 0, isFreeze: !1 });
|
|
2278
|
+
H(() => e, (h, w) => {
|
|
2279
|
+
l.isFreeze || (l.thumbAngle = h.angle || 0);
|
|
2280
|
+
}, { deep: !0 });
|
|
2281
|
+
const i = (h) => {
|
|
2282
|
+
const w = h.touches && h.touches[0], m = s.value.offsetLeft, N = r.value.offsetWidth, P = s.value.offsetWidth, _ = N - P, v = 360, d = (v - e.angle) / _;
|
|
2283
|
+
let y = 0, V = !1, fe = null, he = 0, ne = 0;
|
|
2284
|
+
w ? he = w.pageX - m : he = h.clientX - m;
|
|
2285
|
+
const Z = (O) => {
|
|
2286
|
+
V = !0;
|
|
2287
|
+
const T = O.touches && O.touches[0];
|
|
2288
|
+
let I = 0;
|
|
2289
|
+
if (T ? I = T.pageX - he : I = O.clientX - he, y = e.angle + I * d, I >= _) {
|
|
2290
|
+
l.dragLeft = _, l.thumbAngle = ne = v;
|
|
2291
|
+
return;
|
|
2292
|
+
}
|
|
2293
|
+
if (I <= 0) {
|
|
2294
|
+
l.dragLeft = 0, l.thumbAngle = ne = e.angle;
|
|
2295
|
+
return;
|
|
2296
|
+
}
|
|
2297
|
+
l.dragLeft = I, l.thumbAngle = ne = y, t.rotate && t.rotate(y), O.cancelBubble = !0, O.preventDefault();
|
|
2298
|
+
}, k = (O) => {
|
|
2299
|
+
zt(r.value, O) && V && (ve(), !(ne < 0) && (V = !1, t.confirm && t.confirm(parseInt(ne.toString()), () => {
|
|
2300
|
+
E();
|
|
2301
|
+
}), O.cancelBubble = !0, O.preventDefault()));
|
|
2302
|
+
}, ce = (O) => {
|
|
2303
|
+
fe = O;
|
|
2304
|
+
}, K = () => {
|
|
2305
|
+
fe = null;
|
|
2306
|
+
}, X = (O) => {
|
|
2307
|
+
fe && (k(fe), ve());
|
|
2308
|
+
}, ee = n.scope, q = ee ? o.value : r.value, J = ee ? o.value : document.body, ve = () => {
|
|
2309
|
+
J.removeEventListener("mousemove", Z, !1), J.removeEventListener("touchmove", Z, { passive: !1 }), q.removeEventListener("mouseup", k, !1), q.removeEventListener("mouseenter", K, !1), q.removeEventListener("mouseleave", ce, !1), q.removeEventListener("touchend", k, !1), J.removeEventListener("mouseleave", k, !1), J.removeEventListener("mouseup", X, !1), l.isFreeze = !1;
|
|
2310
|
+
};
|
|
2311
|
+
l.isFreeze = !0, J.addEventListener("mousemove", Z, !1), J.addEventListener("touchmove", Z, { passive: !1 }), q.addEventListener("mouseup", k, !1), q.addEventListener("mouseenter", K, !1), q.addEventListener("mouseleave", ce, !1), q.addEventListener("touchend", k, !1), J.addEventListener("mouseleave", k, !1), J.addEventListener("mouseup", X, !1);
|
|
2312
|
+
}, u = (h) => (p(), h.cancelBubble = !0, h.preventDefault(), !1), g = (h) => (a(), h.cancelBubble = !0, h.preventDefault(), !1), p = () => {
|
|
2313
|
+
t && t.close && t.close(), E();
|
|
2314
|
+
}, a = () => {
|
|
2315
|
+
t && t.refresh && t.refresh(), E();
|
|
2316
|
+
}, E = () => {
|
|
2317
|
+
l.dragLeft = 0, l.thumbAngle = e.angle;
|
|
583
2318
|
};
|
|
584
2319
|
return {
|
|
585
|
-
state:
|
|
586
|
-
dragEvent:
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
const A = h.touches && h.touches[0];
|
|
593
|
-
let W = 0;
|
|
594
|
-
if (A ? W = A.pageX - M : W = h.clientX - M, W >= b) {
|
|
595
|
-
e.dragLeft = b;
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
if (W <= 0) {
|
|
599
|
-
e.dragLeft = 0;
|
|
600
|
-
return;
|
|
601
|
-
}
|
|
602
|
-
e.dragLeft = W, p = W * g, e.thumbAngle = p, n.rotate && n.rotate(p), h.cancelBubble = !0, h.preventDefault();
|
|
603
|
-
}, k = (h) => {
|
|
604
|
-
ue(s.value, h) && L && (B(), L = !1, n.confirm && n.confirm(parseInt(p.toString()), () => {
|
|
605
|
-
i();
|
|
606
|
-
}), h.cancelBubble = !0, h.preventDefault());
|
|
607
|
-
}, S = (h) => {
|
|
608
|
-
$ = h;
|
|
609
|
-
}, Y = () => {
|
|
610
|
-
$ = null;
|
|
611
|
-
}, H = (h) => {
|
|
612
|
-
$ && (k($), B());
|
|
613
|
-
}, B = () => {
|
|
614
|
-
s.value.removeEventListener("mousemove", T, !1), s.value.removeEventListener("touchmove", T, { passive: !1 }), s.value.removeEventListener("mouseup", k, !1), s.value.removeEventListener("mouseenter", Y, !1), s.value.removeEventListener("mouseleave", S, !1), s.value.removeEventListener("touchend", k, !1), document.body.removeEventListener("mouseleave", k, !1), document.body.removeEventListener("mouseup", H, !1);
|
|
615
|
-
};
|
|
616
|
-
s.value.addEventListener("mousemove", T, !1), s.value.addEventListener("touchmove", T, { passive: !1 }), s.value.addEventListener("mouseup", k, !1), s.value.addEventListener("mouseenter", Y, !1), s.value.addEventListener("mouseleave", S, !1), s.value.addEventListener("touchend", k, !1), document.body.addEventListener("mouseleave", k, !1), document.body.addEventListener("mouseup", H, !1);
|
|
2320
|
+
state: l,
|
|
2321
|
+
dragEvent: i,
|
|
2322
|
+
closeEvent: u,
|
|
2323
|
+
refreshEvent: g,
|
|
2324
|
+
resetData: E,
|
|
2325
|
+
clearData: () => {
|
|
2326
|
+
c && c(), E();
|
|
617
2327
|
},
|
|
618
|
-
|
|
619
|
-
|
|
2328
|
+
refresh: a,
|
|
2329
|
+
close: p
|
|
620
2330
|
};
|
|
621
2331
|
}
|
|
622
|
-
const
|
|
2332
|
+
const yr = { class: "gc-header" }, Sr = { class: "gc-icon-block" }, Lr = { class: "gc-loading" }, Nr = ["src"], Or = /* @__PURE__ */ f("div", { class: "gc-round" }, null, -1), Dr = { class: "gc-thumb gc-rotate-thumb" }, $r = ["src"], Cr = { class: "gc-footer" }, Pr = /* @__PURE__ */ f("div", { class: "gc-drag-line" }, null, -1), pt = /* @__PURE__ */ te({
|
|
623
2333
|
__name: "index",
|
|
624
2334
|
props: {
|
|
625
|
-
config: { default:
|
|
2335
|
+
config: { default: yt },
|
|
626
2336
|
events: { default: () => ({}) },
|
|
627
2337
|
data: { default: () => ({}) }
|
|
628
2338
|
},
|
|
629
|
-
setup(
|
|
630
|
-
const n =
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
})
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
2339
|
+
setup(e, { expose: t }) {
|
|
2340
|
+
const n = e, { data: o, events: s, config: r } = n, c = M({ ...wr(), ...Q(o) }), l = M({ ...Q(s) }), i = M({ ...yt(), ...Q(r) });
|
|
2341
|
+
H(() => n.data, (v, d) => {
|
|
2342
|
+
Object.assign(c, v);
|
|
2343
|
+
}, { deep: !0 }), H(() => n.events, (v, d) => {
|
|
2344
|
+
Object.assign(l, v);
|
|
2345
|
+
}, { deep: !0 }), H(() => n.config, (v, d) => {
|
|
2346
|
+
Object.assign(i, v);
|
|
2347
|
+
}, { deep: !0 });
|
|
2348
|
+
const u = ie(null), g = ie(null), p = ie(null), a = xr(
|
|
2349
|
+
c,
|
|
2350
|
+
l,
|
|
2351
|
+
i,
|
|
2352
|
+
u,
|
|
2353
|
+
p,
|
|
2354
|
+
g,
|
|
2355
|
+
() => {
|
|
2356
|
+
c.thumb = "", c.image = "", c.angle = 0;
|
|
2357
|
+
}
|
|
2358
|
+
), E = L(() => {
|
|
2359
|
+
const v = i.horizontalPadding || 0, d = i.verticalPadding || 0;
|
|
642
2360
|
return {
|
|
643
|
-
width: (
|
|
644
|
-
paddingLeft:
|
|
645
|
-
paddingRight:
|
|
646
|
-
paddingTop:
|
|
647
|
-
paddingBottom:
|
|
2361
|
+
width: (i.width || 0) + v * 2 + (i.showTheme ? 2 : 0) + "px",
|
|
2362
|
+
paddingLeft: v + "px",
|
|
2363
|
+
paddingRight: v + "px",
|
|
2364
|
+
paddingTop: d + "px",
|
|
2365
|
+
paddingBottom: d + "px"
|
|
648
2366
|
};
|
|
649
|
-
}),
|
|
650
|
-
transform: `rotate(${
|
|
651
|
-
})),
|
|
652
|
-
|
|
653
|
-
|
|
2367
|
+
}), b = L(() => ({
|
|
2368
|
+
transform: `rotate(${a.state.thumbAngle}deg)`
|
|
2369
|
+
})), h = L(() => ({
|
|
2370
|
+
width: i.width + "px",
|
|
2371
|
+
height: i.height + "px"
|
|
2372
|
+
})), w = L(() => {
|
|
2373
|
+
const v = (i.size || 0) > 0 ? i.size : yt().size;
|
|
654
2374
|
return {
|
|
655
|
-
width:
|
|
656
|
-
height:
|
|
2375
|
+
width: v + "px",
|
|
2376
|
+
height: v + "px"
|
|
657
2377
|
};
|
|
658
|
-
});
|
|
659
|
-
return
|
|
660
|
-
await
|
|
661
|
-
}), (
|
|
662
|
-
|
|
663
|
-
|
|
2378
|
+
}), m = L(() => c.image != ""), N = L(() => c.thumb != ""), P = L(() => (i.width || 0) > 0 || (i.height || 0) > 0), _ = (v) => v.preventDefault();
|
|
2379
|
+
return Rt(async () => {
|
|
2380
|
+
await Vt(), p.value && p.value.addEventListener("dragstart", _);
|
|
2381
|
+
}), es(() => {
|
|
2382
|
+
p.value && p.value.removeEventListener("dragstart", _);
|
|
2383
|
+
}), t({
|
|
2384
|
+
reset: a.resetData,
|
|
2385
|
+
clear: a.clearData,
|
|
2386
|
+
refresh: a.refresh,
|
|
2387
|
+
close: a.close
|
|
2388
|
+
}), (v, d) => oe((z(), U("div", {
|
|
2389
|
+
class: _e(`go-captcha gc-wrapper ${i.showTheme && "gc-theme"}`),
|
|
2390
|
+
style: C(E.value),
|
|
2391
|
+
ref_key: "rootRef",
|
|
2392
|
+
ref: u
|
|
664
2393
|
}, [
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
width:
|
|
670
|
-
height:
|
|
671
|
-
onClick: a
|
|
672
|
-
}, null, 8, ["onClick"]),
|
|
673
|
-
|
|
674
|
-
width:
|
|
675
|
-
height:
|
|
676
|
-
onClick: a
|
|
677
|
-
}, null, 8, ["onClick"])
|
|
2394
|
+
f("div", yr, [
|
|
2395
|
+
f("span", null, Le(i.title), 1),
|
|
2396
|
+
f("div", Sr, [
|
|
2397
|
+
G(mt, {
|
|
2398
|
+
width: i.iconSize,
|
|
2399
|
+
height: i.iconSize,
|
|
2400
|
+
onClick: x(a).closeEvent
|
|
2401
|
+
}, null, 8, ["width", "height", "onClick"]),
|
|
2402
|
+
G(_t, {
|
|
2403
|
+
width: i.iconSize,
|
|
2404
|
+
height: i.iconSize,
|
|
2405
|
+
onClick: x(a).refreshEvent
|
|
2406
|
+
}, null, 8, ["width", "height", "onClick"])
|
|
678
2407
|
])
|
|
679
2408
|
]),
|
|
680
|
-
|
|
2409
|
+
f("div", {
|
|
681
2410
|
class: "gc-body gc-rotate-body",
|
|
682
2411
|
ref: "containerRef",
|
|
683
|
-
style:
|
|
2412
|
+
style: C(h.value)
|
|
684
2413
|
}, [
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
c("div", {
|
|
689
|
-
class: "gc-picture gc-rotate-picture",
|
|
690
|
-
style: _(m.value)
|
|
2414
|
+
f("div", {
|
|
2415
|
+
class: "gc-body-inner",
|
|
2416
|
+
style: C(w.value)
|
|
691
2417
|
}, [
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
alt: "..."
|
|
695
|
-
}, null, 8, st), [
|
|
696
|
-
[N, a(t).image !== ""]
|
|
2418
|
+
f("div", Lr, [
|
|
2419
|
+
G(vt)
|
|
697
2420
|
]),
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
c("div", {
|
|
702
|
-
class: "gc-rotate-thumb-block",
|
|
703
|
-
style: _(u.value)
|
|
2421
|
+
f("div", {
|
|
2422
|
+
class: "gc-picture gc-rotate-picture",
|
|
2423
|
+
style: C(w.value)
|
|
704
2424
|
}, [
|
|
705
|
-
|
|
706
|
-
src:
|
|
707
|
-
alt: "
|
|
708
|
-
}, null, 8,
|
|
709
|
-
[
|
|
710
|
-
])
|
|
711
|
-
|
|
712
|
-
|
|
2425
|
+
oe(f("img", {
|
|
2426
|
+
src: c.image,
|
|
2427
|
+
alt: ""
|
|
2428
|
+
}, null, 8, Nr), [
|
|
2429
|
+
[re, m.value]
|
|
2430
|
+
]),
|
|
2431
|
+
Or
|
|
2432
|
+
], 4),
|
|
2433
|
+
f("div", Dr, [
|
|
2434
|
+
f("div", {
|
|
2435
|
+
class: "gc-rotate-thumb-block",
|
|
2436
|
+
style: C(b.value)
|
|
2437
|
+
}, [
|
|
2438
|
+
oe(f("img", {
|
|
2439
|
+
src: c.thumb,
|
|
2440
|
+
alt: ""
|
|
2441
|
+
}, null, 8, $r), [
|
|
2442
|
+
[re, N.value]
|
|
2443
|
+
])
|
|
2444
|
+
], 4)
|
|
2445
|
+
])
|
|
2446
|
+
], 4)
|
|
713
2447
|
], 4),
|
|
714
|
-
|
|
715
|
-
|
|
2448
|
+
f("div", Cr, [
|
|
2449
|
+
f("div", {
|
|
716
2450
|
class: "gc-drag-slide-bar",
|
|
717
2451
|
ref_key: "dragBarRef",
|
|
718
|
-
ref:
|
|
2452
|
+
ref: g
|
|
719
2453
|
}, [
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
class: "gc-drag-block",
|
|
2454
|
+
Pr,
|
|
2455
|
+
f("div", {
|
|
2456
|
+
class: _e(["gc-drag-block", !m.value && "disabled"]),
|
|
723
2457
|
ref_key: "dragBlockRef",
|
|
724
|
-
ref:
|
|
725
|
-
onMousedown:
|
|
726
|
-
(...
|
|
727
|
-
style:
|
|
2458
|
+
ref: p,
|
|
2459
|
+
onMousedown: d[1] || (d[1] = //@ts-ignore
|
|
2460
|
+
(...y) => x(a).dragEvent && x(a).dragEvent(...y)),
|
|
2461
|
+
style: C({ left: x(a).state.dragLeft + "px" })
|
|
728
2462
|
}, [
|
|
729
|
-
|
|
730
|
-
class: "drag-block-inline",
|
|
731
|
-
onTouchstart:
|
|
732
|
-
(...
|
|
2463
|
+
f("div", {
|
|
2464
|
+
class: "gc-drag-block-inline",
|
|
2465
|
+
onTouchstart: d[0] || (d[0] = //@ts-ignore
|
|
2466
|
+
(...y) => x(a).dragEvent && x(a).dragEvent(...y))
|
|
733
2467
|
}, [
|
|
734
|
-
|
|
2468
|
+
G(vn)
|
|
735
2469
|
], 32)
|
|
736
|
-
],
|
|
2470
|
+
], 38)
|
|
737
2471
|
], 512)
|
|
738
2472
|
])
|
|
739
|
-
], 6))
|
|
2473
|
+
], 6)), [
|
|
2474
|
+
[re, P.value]
|
|
2475
|
+
]);
|
|
740
2476
|
}
|
|
741
2477
|
});
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
2478
|
+
pt.name = "gocaptcha-rotate";
|
|
2479
|
+
pt.install = function(e) {
|
|
2480
|
+
e.component("gocaptcha-rotate", pt);
|
|
745
2481
|
};
|
|
746
|
-
const
|
|
2482
|
+
const Tr = /* @__PURE__ */ f("circle", {
|
|
747
2483
|
fill: "#3E7CFF",
|
|
748
2484
|
cx: "100",
|
|
749
2485
|
cy: "100",
|
|
750
2486
|
r: "96.3"
|
|
751
|
-
}, null, -1),
|
|
2487
|
+
}, null, -1), Rr = /* @__PURE__ */ f("path", {
|
|
752
2488
|
fill: "#FFFFFF",
|
|
753
2489
|
d: `M140.8,64.4l-39.6-11.9h-2.4L59.2,64.4c-1.6,0.8-2.8,2.4-2.8,4v24.1c0,25.3,15.8,45.9,42.3,54.6
|
|
754
2490
|
c0.4,0,0.8,0.4,1.2,0.4c0.4,0,0.8,0,1.2-0.4c26.5-8.7,42.3-28.9,42.3-54.6V68.3C143.5,66.8,142.3,65.2,140.8,64.4z`
|
|
755
|
-
}, null, -1),
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
],
|
|
2491
|
+
}, null, -1), Vr = [
|
|
2492
|
+
Tr,
|
|
2493
|
+
Rr
|
|
2494
|
+
], zr = /* @__PURE__ */ te({
|
|
759
2495
|
__name: "btn-default-icon",
|
|
760
2496
|
emits: ["click"],
|
|
761
|
-
setup(
|
|
762
|
-
const
|
|
763
|
-
function s
|
|
764
|
-
|
|
2497
|
+
setup(e, { emit: t }) {
|
|
2498
|
+
const n = t;
|
|
2499
|
+
function o(s) {
|
|
2500
|
+
n("click", s);
|
|
765
2501
|
}
|
|
766
|
-
return (
|
|
2502
|
+
return (s, r) => (z(), U("svg", Se({
|
|
767
2503
|
xmlns: "http://www.w3.org/2000/svg",
|
|
768
2504
|
viewBox: "0 0 200 200",
|
|
769
2505
|
width: "20",
|
|
770
2506
|
height: "20"
|
|
771
|
-
},
|
|
2507
|
+
}, s.$attrs, { onClick: o }), Vr, 16));
|
|
772
2508
|
}
|
|
773
|
-
}),
|
|
2509
|
+
}), Ir = /* @__PURE__ */ f("path", {
|
|
774
2510
|
fill: "#FFA000",
|
|
775
2511
|
d: `M184,26.6L102.4,2.1h-4.9L16,26.6c-3.3,1.6-5.7,4.9-5.7,8.2v49.8c0,52.2,32.6,94.7,87.3,112.6
|
|
776
2512
|
c0.8,0,1.6,0.8,2.4,0.8s1.6,0,2.4-0.8c54.7-18,87.3-59.6,87.3-112.6V34.7C189.8,31.5,187.3,28.2,184,26.6z M107.3,109.1
|
|
777
2513
|
c-0.5,5.4-3.9,7.9-7.3,7.9c-2.5,0,0,0,0,0c-3.2-0.6-5.7-2-6.8-7.4l-4.4-50.9c0-5.1,6.2-9.7,11.5-9.7c5.3,0,11,4.7,11,9.9
|
|
778
2514
|
L107.3,109.1z M109.3,133.3c0,5.1-4.2,9.3-9.3,9.3c-5.1,0-9.3-4.2-9.3-9.3c0-5.1,4.2-9.3,9.3-9.3C105.1,124,109.3,128.1,109.3,133.3
|
|
779
2515
|
z`
|
|
780
|
-
}, null, -1),
|
|
781
|
-
|
|
782
|
-
],
|
|
2516
|
+
}, null, -1), Mr = [
|
|
2517
|
+
Ir
|
|
2518
|
+
], kr = /* @__PURE__ */ te({
|
|
783
2519
|
__name: "btn-warn-icon",
|
|
784
2520
|
emits: ["click"],
|
|
785
|
-
setup(
|
|
786
|
-
const
|
|
787
|
-
function s
|
|
788
|
-
|
|
2521
|
+
setup(e, { emit: t }) {
|
|
2522
|
+
const n = t;
|
|
2523
|
+
function o(s) {
|
|
2524
|
+
n("click", s);
|
|
789
2525
|
}
|
|
790
|
-
return (
|
|
2526
|
+
return (s, r) => (z(), U("svg", Se({
|
|
791
2527
|
xmlns: "http://www.w3.org/2000/svg",
|
|
792
2528
|
viewBox: "0 0 200 200",
|
|
793
2529
|
width: "20",
|
|
794
2530
|
height: "20"
|
|
795
|
-
},
|
|
2531
|
+
}, s.$attrs, { onClick: o }), Mr, 16));
|
|
796
2532
|
}
|
|
797
|
-
}),
|
|
2533
|
+
}), Fr = /* @__PURE__ */ f("path", {
|
|
798
2534
|
fill: "#ED4630",
|
|
799
2535
|
d: `M184,26.6L102.4,2.1h-4.9L16,26.6c-3.3,1.6-5.7,4.9-5.7,8.2v49.8c0,52.2,32.6,94.7,87.3,112.6
|
|
800
2536
|
c0.8,0,1.6,0.8,2.4,0.8s1.6,0,2.4-0.8c54.7-18,87.3-59.6,87.3-112.6V34.7C189.8,31.5,187.3,28.2,184,26.6z M134.5,123.1
|
|
801
2537
|
c3.1,3.1,3.1,8.2,0,11.3c-1.6,1.6-3.6,2.3-5.7,2.3s-4.1-0.8-5.7-2.3L100,111.3l-23.1,23.1c-1.6,1.6-3.6,2.3-5.7,2.3
|
|
802
2538
|
c-2,0-4.1-0.8-5.7-2.3c-3.1-3.1-3.1-8.2,0-11.3L88.7,100L65.5,76.9c-3.1-3.1-3.1-8.2,0-11.3c3.1-3.1,8.2-3.1,11.3,0L100,88.7
|
|
803
2539
|
l23.1-23.1c3.1-3.1,8.2-3.1,11.3,0c3.1,3.1,3.1,8.2,0,11.3L111.3,100L134.5,123.1z`
|
|
804
|
-
}, null, -1),
|
|
805
|
-
|
|
806
|
-
],
|
|
2540
|
+
}, null, -1), jr = [
|
|
2541
|
+
Fr
|
|
2542
|
+
], Ar = /* @__PURE__ */ te({
|
|
807
2543
|
__name: "btn-error-icon",
|
|
808
2544
|
emits: ["click"],
|
|
809
|
-
setup(
|
|
810
|
-
const
|
|
811
|
-
function s
|
|
812
|
-
|
|
2545
|
+
setup(e, { emit: t }) {
|
|
2546
|
+
const n = t;
|
|
2547
|
+
function o(s) {
|
|
2548
|
+
n("click", s);
|
|
813
2549
|
}
|
|
814
|
-
return (
|
|
2550
|
+
return (s, r) => (z(), U("svg", Se({
|
|
815
2551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
816
2552
|
viewBox: "0 0 200 200",
|
|
817
2553
|
width: "20",
|
|
818
2554
|
height: "20"
|
|
819
|
-
},
|
|
2555
|
+
}, s.$attrs, { onClick: o }), jr, 16));
|
|
820
2556
|
}
|
|
821
|
-
}),
|
|
2557
|
+
}), Hr = /* @__PURE__ */ f("path", {
|
|
822
2558
|
fill: "#5EAA2F",
|
|
823
2559
|
d: `M183.3,27.2L102.4,2.9h-4.9L16.7,27.2C13.4,28.8,11,32,11,35.3v49.4c0,51.8,32.4,93.9,86.6,111.7
|
|
824
2560
|
c0.8,0,1.6,0.8,2.4,0.8c0.8,0,1.6,0,2.4-0.8c54.2-17.8,86.6-59.1,86.6-111.7V35.3C189,32,186.6,28.8,183.3,27.2z M146.1,81.4
|
|
825
2561
|
l-48.5,48.5c-1.6,1.6-3.2,2.4-5.7,2.4c-2.4,0-4-0.8-5.7-2.4L62,105.7c-3.2-3.2-3.2-8.1,0-11.3c3.2-3.2,8.1-3.2,11.3,0l18.6,18.6
|
|
826
2562
|
l42.9-42.9c3.2-3.2,8.1-3.2,11.3,0C149.4,73.3,149.4,78.2,146.1,81.4L146.1,81.4z`
|
|
827
|
-
}, null, -1),
|
|
828
|
-
|
|
829
|
-
],
|
|
2563
|
+
}, null, -1), Br = [
|
|
2564
|
+
Hr
|
|
2565
|
+
], Wr = /* @__PURE__ */ te({
|
|
830
2566
|
__name: "btn-success-icon",
|
|
831
2567
|
emits: ["click"],
|
|
832
|
-
setup(
|
|
833
|
-
const
|
|
834
|
-
function s
|
|
835
|
-
|
|
2568
|
+
setup(e, { emit: t }) {
|
|
2569
|
+
const n = t;
|
|
2570
|
+
function o(s) {
|
|
2571
|
+
n("click", s);
|
|
836
2572
|
}
|
|
837
|
-
return (
|
|
2573
|
+
return (s, r) => (z(), U("svg", Se({
|
|
838
2574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
839
2575
|
viewBox: "0 0 200 200",
|
|
840
2576
|
width: "20",
|
|
841
2577
|
height: "20"
|
|
842
|
-
},
|
|
2578
|
+
}, s.$attrs, { onClick: o }), Br, 16));
|
|
843
2579
|
}
|
|
844
|
-
}),
|
|
2580
|
+
}), _n = () => ({
|
|
845
2581
|
width: 330,
|
|
846
2582
|
height: 44,
|
|
847
2583
|
verticalPadding: 12,
|
|
848
2584
|
horizontalPadding: 16
|
|
849
|
-
}),
|
|
2585
|
+
}), gt = /* @__PURE__ */ te({
|
|
850
2586
|
__name: "index",
|
|
851
2587
|
props: {
|
|
852
|
-
config: { default:
|
|
2588
|
+
config: { default: _n },
|
|
853
2589
|
clickEvent: {},
|
|
854
2590
|
disabled: { type: Boolean, default: !1 },
|
|
855
2591
|
type: { default: "default" },
|
|
856
2592
|
title: { default: "点击按键进行验证" }
|
|
857
2593
|
},
|
|
858
2594
|
emits: ["click-event"],
|
|
859
|
-
setup(
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
});
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
paddingRight: d.value.horizontalPadding + "px",
|
|
875
|
-
paddingTop: d.value.verticalPadding + "px",
|
|
876
|
-
paddingBottom: d.value.verticalPadding + "px"
|
|
877
|
-
})), u = n;
|
|
878
|
-
function m(r) {
|
|
879
|
-
u("click-event", r);
|
|
2595
|
+
setup(e, { emit: t }) {
|
|
2596
|
+
const n = e, { type: o, title: s, disabled: r, config: c } = ts(n), l = M({ ..._n(), ...Q(c) });
|
|
2597
|
+
H(() => n.config, (a, E) => {
|
|
2598
|
+
Object.assign(l, a);
|
|
2599
|
+
}, { deep: !0 });
|
|
2600
|
+
const i = L(() => ["go-captcha", "gc-btn-block", `gc-${o.value}`, r.value ? "gc-disabled" : ""]), u = L(() => ({
|
|
2601
|
+
width: l.width + "px",
|
|
2602
|
+
height: l.height + "px",
|
|
2603
|
+
paddingLeft: l.horizontalPadding + "px",
|
|
2604
|
+
paddingRight: l.horizontalPadding + "px",
|
|
2605
|
+
paddingTop: l.verticalPadding + "px",
|
|
2606
|
+
paddingBottom: l.verticalPadding + "px"
|
|
2607
|
+
})), g = t;
|
|
2608
|
+
function p(a) {
|
|
2609
|
+
g("click-event", a);
|
|
880
2610
|
}
|
|
881
|
-
return (
|
|
882
|
-
class:
|
|
883
|
-
style:
|
|
884
|
-
onClick:
|
|
2611
|
+
return (a, E) => (z(), U("div", {
|
|
2612
|
+
class: _e(i.value),
|
|
2613
|
+
style: C(u.value),
|
|
2614
|
+
onClick: p
|
|
885
2615
|
}, [
|
|
886
|
-
|
|
887
|
-
class:
|
|
2616
|
+
f("div", {
|
|
2617
|
+
class: _e(x(o) === "default" ? "gc-ripple" : "")
|
|
888
2618
|
}, [
|
|
889
|
-
|
|
2619
|
+
x(o) === "default" ? (z(), Je(zr, { key: 0 })) : x(o) === "warn" ? (z(), Je(kr, { key: 1 })) : x(o) === "error" ? (z(), Je(Ar, { key: 2 })) : x(o) === "success" ? (z(), Je(Wr, { key: 3 })) : ns("", !0)
|
|
890
2620
|
], 2),
|
|
891
|
-
|
|
2621
|
+
f("span", null, Le(x(s)), 1)
|
|
892
2622
|
], 6));
|
|
893
2623
|
}
|
|
894
2624
|
});
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
2625
|
+
gt.name = "gocaptcha-button";
|
|
2626
|
+
gt.install = function(e) {
|
|
2627
|
+
e.component("gocaptcha-button", gt);
|
|
898
2628
|
};
|
|
899
|
-
const
|
|
900
|
-
|
|
2629
|
+
const Yr = {
|
|
2630
|
+
install(e) {
|
|
2631
|
+
ct.install(e), ft.install(e), ht.install(e), pt.install(e), gt.install(e);
|
|
2632
|
+
}
|
|
901
2633
|
};
|
|
902
2634
|
export {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
2635
|
+
gt as Button,
|
|
2636
|
+
ct as Click,
|
|
2637
|
+
pt as Rotate,
|
|
2638
|
+
ft as Slide,
|
|
2639
|
+
ht as SlideRegion,
|
|
2640
|
+
Yr as default
|
|
909
2641
|
};
|