go-captcha-vue 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
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 = () => ({
1
+ import { defineComponent as q, openBlock as z, createElementBlock as H, mergeProps as oe, createElementVNode as o, reactive as T, toRaw as V, watch as F, computed as L, withDirectives as K, normalizeClass as se, normalizeStyle as D, toDisplayString as ie, vShow as Q, createVNode as I, unref as v, Fragment as $e, renderList as ze, ref as ee, onMounted as _e, nextTick as be, onUnmounted as we, toRefs as Ce, createBlock as le, createCommentVNode as Se } from "vue";
2
+ const Ee = () => ({
3
3
  width: 300,
4
4
  height: 220,
5
5
  thumbWidth: 150,
@@ -11,31 +11,31 @@ const Qt = () => ({
11
11
  buttonText: "确认",
12
12
  iconSize: 22,
13
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
14
+ }), Be = /* @__PURE__ */ o("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
15
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
16
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
17
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
18
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
19
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
20
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
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({
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), Te = [
22
+ Be
23
+ ], fe = /* @__PURE__ */ q({
24
24
  __name: "close-icon",
25
25
  emits: ["click"],
26
- setup(e, { emit: t }) {
27
- const n = t;
28
- function o(s) {
29
- n("click", s);
26
+ setup(s, { emit: t }) {
27
+ const a = t;
28
+ function r(i) {
29
+ a("click", i);
30
30
  }
31
- return (s, r) => (z(), U("svg", Se({
31
+ return (i, m) => (z(), H("svg", oe({
32
32
  xmlns: "http://www.w3.org/2000/svg",
33
33
  viewBox: "0 0 200 200",
34
34
  width: "20",
35
35
  height: "20"
36
- }, s.$attrs, { onClick: o }), os, 16));
36
+ }, i.$attrs, { onClick: r }), Te, 16));
37
37
  }
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
38
+ }), Pe = /* @__PURE__ */ o("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
39
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
40
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
41
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
@@ -52,29 +52,29 @@ const Qt = () => ({
52
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
53
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
54
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
55
- L180.6,98.9z` }, null, -1), cs = [
56
- rs
57
- ], _t = /* @__PURE__ */ te({
55
+ L180.6,98.9z` }, null, -1), Xe = [
56
+ Pe
57
+ ], ve = /* @__PURE__ */ q({
58
58
  __name: "refresh-icon",
59
59
  emits: ["click"],
60
- setup(e, { emit: t }) {
61
- const n = t;
62
- function o(s) {
63
- n("click", s);
60
+ setup(s, { emit: t }) {
61
+ const a = t;
62
+ function r(i) {
63
+ a("click", i);
64
64
  }
65
- return (s, r) => (z(), U("svg", Se({
65
+ return (i, m) => (z(), H("svg", oe({
66
66
  xmlns: "http://www.w3.org/2000/svg",
67
67
  viewBox: "0 0 200 200",
68
68
  width: "20",
69
69
  height: "20"
70
- }, s.$attrs, { onClick: o }), cs, 16));
70
+ }, i.$attrs, { onClick: r }), Xe, 16));
71
71
  }
72
- }), is = /* @__PURE__ */ f("circle", {
72
+ }), We = /* @__PURE__ */ o("circle", {
73
73
  cx: "50",
74
74
  cy: "36.8101",
75
75
  r: "10"
76
76
  }, [
77
- /* @__PURE__ */ f("animate", {
77
+ /* @__PURE__ */ o("animate", {
78
78
  attributeName: "cy",
79
79
  dur: "1s",
80
80
  repeatCount: "indefinite",
@@ -83,190 +83,190 @@ const Qt = () => ({
83
83
  keyTimes: "0;0.5;1",
84
84
  values: "23;77;23"
85
85
  })
86
- ], -1), ls = [
87
- is
88
- ], vt = /* @__PURE__ */ te({
86
+ ], -1), Me = [
87
+ We
88
+ ], me = /* @__PURE__ */ q({
89
89
  __name: "loading-icon",
90
90
  emits: ["click"],
91
- setup(e, { emit: t }) {
92
- const n = t;
93
- function o(s) {
94
- n("click", s);
91
+ setup(s, { emit: t }) {
92
+ const a = t;
93
+ function r(i) {
94
+ a("click", i);
95
95
  }
96
- return (s, r) => (z(), U("svg", Se({
96
+ return (i, m) => (z(), H("svg", oe({
97
97
  xmlns: "http://www.w3.org/2000/svg",
98
98
  viewBox: "0 0 100 100",
99
99
  preserveAspectRatio: "xMidYMid",
100
100
  width: "84",
101
101
  height: "84"
102
- }, s.$attrs, { onClick: o }), ls, 16));
102
+ }, i.$attrs, { onClick: r }), Me, 16));
103
103
  }
104
104
  });
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;
105
+ function Fe(s) {
106
+ let t = 0, a = 0;
107
+ if (s.getBoundingClientRect) {
108
+ const r = s.getBoundingClientRect(), i = document.documentElement;
109
+ t = r.left + Math.max(i.scrollLeft, document.body.scrollLeft) - i.clientLeft, a = r.top + Math.max(i.scrollTop, document.body.scrollTop) - i.clientTop;
110
110
  } else
111
- for (; e !== document.body; )
112
- t += e.offsetLeft, n += e.offsetTop, e = e.offsetParent;
111
+ for (; s !== document.body; )
112
+ t += s.offsetLeft, a += s.offsetTop, s = s.offsetParent;
113
113
  return {
114
114
  domX: t,
115
- domY: n
115
+ domY: a
116
116
  };
117
117
  }
118
- function zt(e, t) {
119
- let n = t.relatedTarget;
118
+ function ae(s, t) {
119
+ let a = t.relatedTarget;
120
120
  try {
121
- for (; n && n !== e; )
122
- n = n.parentNode;
123
- } catch (o) {
124
- console.warn(o);
121
+ for (; a && a !== s; )
122
+ a = a.parentNode;
123
+ } catch (r) {
124
+ console.warn(r);
125
125
  }
126
- return n !== e;
127
- }
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 = [];
126
+ return a !== s;
127
+ }
128
+ function Ye(s, t, a) {
129
+ const r = T({ list: [] }), i = (n) => {
130
+ const _ = n.currentTarget, x = Fe(_), l = n.pageX || n.clientX, b = n.pageY || n.clientY, h = x.domX, S = x.domY, Y = l - h, w = b - S, g = parseInt(Y.toString()), f = parseInt(w.toString()), E = /* @__PURE__ */ new Date(), B = r.list.length;
131
+ return r.list.push({ key: E.getTime(), index: B + 1, x: g, y: f }), t.click && t.click(g, f), n.cancelBubble = !0, n.preventDefault(), !1;
132
+ }, m = (n) => (t.confirm && t.confirm(V(r.list), () => {
133
+ y();
134
+ }), n.cancelBubble = !0, n.preventDefault(), !1), c = (n) => (e(), n.cancelBubble = !0, n.preventDefault(), !1), u = (n) => (d(), n.cancelBubble = !0, n.preventDefault(), !1), e = () => {
135
+ t.close && t.close(), y();
136
+ }, d = () => {
137
+ t.refresh && t.refresh(), y();
138
+ }, y = () => {
139
+ r.list = [];
140
140
  };
141
141
  return {
142
- dots: o,
143
- clickEvent: s,
144
- confirmEvent: r,
142
+ dots: r,
143
+ clickEvent: i,
144
+ confirmEvent: m,
145
145
  closeEvent: c,
146
- refreshEvent: l,
147
- resetData: g,
146
+ refreshEvent: u,
147
+ resetData: y,
148
148
  clearData: () => {
149
- g(), n && n();
149
+ y(), a && a();
150
150
  },
151
- refresh: u,
152
- close: i
151
+ refresh: d,
152
+ close: e
153
153
  };
154
154
  }
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({
155
+ const Re = { class: "gc-header" }, He = ["src"], Oe = { class: "gc-loading" }, je = ["src"], Ae = { class: "gc-dots" }, Ie = { class: "gc-footer" }, Ve = { class: "gc-icon-block gc-icon-block2" }, Ne = { class: "gc-button-block" }, re = /* @__PURE__ */ q({
156
156
  __name: "index",
157
157
  props: {
158
- config: { default: Qt },
158
+ config: { default: Ee },
159
159
  events: { default: () => ({}) },
160
160
  data: { default: () => ({}) }
161
161
  },
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);
162
+ setup(s, { expose: t }) {
163
+ const a = s, { data: r, events: i, config: m } = a, c = T({ ...V(r) }), u = T({ ...V(i) }), e = T({ ...Ee(), ...V(m) });
164
+ F(() => a.data, (l, b) => {
165
+ Object.assign(c, l);
166
+ }, { deep: !0 }), F(() => a.events, (l, b) => {
167
+ Object.assign(u, l);
168
+ }, { deep: !0 }), F(() => a.config, (l, b) => {
169
+ Object.assign(e, l);
170
170
  }, { deep: !0 });
171
- const u = us(c, l, () => {
171
+ const d = Ye(c, u, () => {
172
172
  c.thumb = "", c.image = "";
173
- }), g = L(() => {
174
- const h = i.horizontalPadding || 0, w = i.verticalPadding || 0;
173
+ }), y = L(() => {
174
+ const l = e.horizontalPadding || 0, b = e.verticalPadding || 0;
175
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"
176
+ width: (e.width || 0) + l * 2 + (e.showTheme ? 2 : 0) + "px",
177
+ paddingLeft: l + "px",
178
+ paddingRight: l + "px",
179
+ paddingTop: b + "px",
180
+ paddingBottom: b + "px"
181
181
  };
182
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);
183
+ width: e.thumbWidth + "px",
184
+ height: e.thumbHeight + "px"
185
+ })), n = L(() => ({
186
+ width: e.width + "px",
187
+ height: e.height + "px"
188
+ })), _ = L(() => c.image != "" || c.thumb != ""), x = L(() => (e.width || 0) > 0 || (e.height || 0) > 0);
189
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)
190
+ reset: d.resetData,
191
+ clear: d.clearData,
192
+ refresh: d.refresh,
193
+ close: d.close
194
+ }), (l, b) => K((z(), H("div", {
195
+ class: se(`go-captcha gc-wrapper ${e.showTheme && "gc-theme"}`),
196
+ style: D(y.value)
197
197
  }, [
198
- f("div", ds, [
199
- f("span", null, Le(i.title), 1),
200
- oe(f("img", {
201
- style: C(p.value),
198
+ o("div", Re, [
199
+ o("span", null, ie(e.title), 1),
200
+ K(o("img", {
201
+ style: D(p.value),
202
202
  src: c.thumb,
203
203
  alt: ""
204
- }, null, 12, fs), [
205
- [re, E.value]
204
+ }, null, 12, He), [
205
+ [Q, _.value]
206
206
  ])
207
207
  ]),
208
- f("div", {
208
+ o("div", {
209
209
  class: "gc-body",
210
- style: C(a.value)
210
+ style: D(n.value)
211
211
  }, [
212
- f("div", hs, [
213
- G(vt)
212
+ o("div", Oe, [
213
+ I(me)
214
214
  ]),
215
- oe(f("img", {
216
- style: C(a.value),
215
+ K(o("img", {
216
+ style: D(n.value),
217
217
  class: "gc-picture",
218
218
  src: c.image,
219
- onClick: w[0] || (w[0] = //@ts-ignore
220
- (...m) => x(u).clickEvent && x(u).clickEvent(...m)),
219
+ onClick: b[0] || (b[0] = //@ts-ignore
220
+ (...h) => v(d).clickEvent && v(d).clickEvent(...h)),
221
221
  alt: ""
222
- }, null, 12, ps), [
223
- [re, E.value]
222
+ }, null, 12, je), [
223
+ [Q, _.value]
224
224
  ]),
225
- f("div", gs, [
226
- (z(!0), U(Qn, null, Zn(x(u).dots.list, (m) => (z(), U("div", {
225
+ o("div", Ae, [
226
+ (z(!0), H($e, null, ze(v(d).dots.list, (h) => (z(), H("div", {
227
227
  class: "gc-dot",
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"
228
+ key: `${h.key + "-" + h.index}`,
229
+ style: D({
230
+ width: e.dotSize + "px",
231
+ height: e.dotSize + "px",
232
+ borderRadius: e.dotSize + "px",
233
+ top: h.y - (e.dotSize || 1) / 2 - 1 + "px",
234
+ left: h.x - (e.dotSize || 1) / 2 - 1 + "px"
235
235
  })
236
- }, Le(m.index), 5))), 128))
236
+ }, ie(h.index), 5))), 128))
237
237
  ])
238
238
  ], 4),
239
- f("div", ms, [
240
- f("div", _s, [
241
- G(mt, {
242
- width: i.iconSize,
243
- height: i.iconSize,
244
- onClick: x(u).closeEvent
239
+ o("div", Ie, [
240
+ o("div", Ve, [
241
+ I(fe, {
242
+ width: e.iconSize,
243
+ height: e.iconSize,
244
+ onClick: v(d).closeEvent
245
245
  }, null, 8, ["width", "height", "onClick"]),
246
- G(_t, {
247
- width: i.iconSize,
248
- height: i.iconSize,
249
- onClick: x(u).refreshEvent
246
+ I(ve, {
247
+ width: e.iconSize,
248
+ height: e.iconSize,
249
+ onClick: v(d).refreshEvent
250
250
  }, null, 8, ["width", "height", "onClick"])
251
251
  ]),
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)
252
+ o("div", Ne, [
253
+ o("button", {
254
+ class: se(!_.value && "disabled"),
255
+ onClick: b[1] || (b[1] = //@ts-ignore
256
+ (...h) => v(d).confirmEvent && v(d).confirmEvent(...h))
257
+ }, ie(e.buttonText), 3)
258
258
  ])
259
259
  ])
260
260
  ], 6)), [
261
- [re, b.value]
261
+ [Q, x.value]
262
262
  ]);
263
263
  }
264
264
  });
265
- ct.name = "gocaptcha-click";
266
- ct.install = function(e) {
267
- e.component("gocaptcha-click", ct);
265
+ re.name = "gocaptcha-click";
266
+ re.install = function(s) {
267
+ s.component("gocaptcha-click", re);
268
268
  };
269
- const Zt = () => ({
269
+ const xe = () => ({
270
270
  width: 300,
271
271
  height: 220,
272
272
  thumbWidth: 150,
@@ -277,26 +277,26 @@ const Zt = () => ({
277
277
  title: "请拖动滑块完成拼图",
278
278
  iconSize: 22,
279
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
280
+ }), Ue = /* @__PURE__ */ o("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
281
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
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({
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), qe = [
283
+ Ue
284
+ ], ke = /* @__PURE__ */ q({
285
285
  __name: "arrows-icon",
286
286
  emits: ["click"],
287
- setup(e, { emit: t }) {
288
- const n = t;
289
- function o(s) {
290
- n("click", s);
287
+ setup(s, { emit: t }) {
288
+ const a = t;
289
+ function r(i) {
290
+ a("click", i);
291
291
  }
292
- return (s, r) => (z(), U("svg", Se({
292
+ return (i, m) => (z(), H("svg", oe({
293
293
  xmlns: "http://www.w3.org/2000/svg",
294
294
  viewBox: "0 0 200 200",
295
295
  width: "20",
296
296
  height: "20"
297
- }, s.$attrs, { onClick: o }), bs, 16));
297
+ }, i.$attrs, { onClick: r }), qe, 16));
298
298
  }
299
- }), ws = () => ({
299
+ }), Ge = () => ({
300
300
  thumbX: 0,
301
301
  thumbY: 0,
302
302
  thumbWidth: 0,
@@ -304,1776 +304,208 @@ const Zt = () => ({
304
304
  image: "",
305
305
  thumb: ""
306
306
  });
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);
307
+ function Je(s, t, a, r, i, m, c, u, e) {
308
+ const d = T({ dragLeft: 0, thumbLeft: s.thumbX || 0, isFreeze: !1 });
309
+ F(() => s, (h, S) => {
310
+ d.isFreeze || (d.thumbLeft = h.thumbX || 0);
311
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;
312
+ const y = (h) => {
313
+ if (!ae(u.value, h))
314
+ return;
315
+ const S = h.touches && h.touches[0], Y = c.value.offsetLeft, w = i.value.offsetWidth, g = c.value.offsetWidth, f = w - g, E = m.value.offsetWidth, B = m.value.offsetLeft, te = w - E, G = (w - (E + B)) / f;
316
+ let N = !1, P = null, Z = 0, O = 0;
317
+ S ? Z = S.pageX - Y : Z = h.clientX - Y;
318
+ const R = (W) => {
319
+ N = !0;
320
+ const J = W.touches && W.touches[0];
321
+ let M = 0;
322
+ J ? M = J.pageX - Z : M = W.clientX - Z;
323
+ let De = B + M * G;
324
+ if (M >= f) {
325
+ d.dragLeft = f, d.thumbLeft = O = te;
324
326
  return;
325
327
  }
326
- if (A <= 0) {
327
- u.dragLeft = 0, u.thumbLeft = K = V;
328
+ if (M <= 0) {
329
+ d.dragLeft = 0, d.thumbLeft = O = B;
328
330
  return;
329
331
  }
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;
332
+ d.dragLeft = M, d.thumbLeft = O = De, t.move && t.move(O, s.thumbY || 0), W.cancelBubble = !0, W.preventDefault();
333
+ }, U = (W) => {
334
+ ae(u.value, W) && (X(), N && (N = !1, !(O < 0) && (t.confirm && t.confirm({ x: parseInt(O.toString()), y: s.thumbY || 0 }, () => {
335
+ l();
336
+ }), W.cancelBubble = !0, W.preventDefault())));
337
+ }, j = (W) => {
338
+ P = W;
339
+ }, A = () => {
340
+ P = null;
341
+ }, ce = (W) => {
342
+ P && (U(P), X());
343
+ }, k = a.scope, $ = k ? r.value : u.value, C = k ? r.value : document.body, X = () => {
344
+ C.removeEventListener("mousemove", R, !1), C.removeEventListener("touchmove", R, { passive: !1 }), $.removeEventListener("mouseup", U, !1), $.removeEventListener("mouseenter", A, !1), $.removeEventListener("mouseleave", j, !1), $.removeEventListener("touchend", U, !1), C.removeEventListener("mouseleave", U, !1), C.removeEventListener("mouseup", ce, !1), d.isFreeze = !1;
343
345
  };
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;
346
+ d.isFreeze = !0, C.addEventListener("mousemove", R, !1), C.addEventListener("touchmove", R, { passive: !1 }), $.addEventListener("mouseup", U, !1), $.addEventListener("mouseenter", A, !1), $.addEventListener("mouseleave", j, !1), $.addEventListener("touchend", U, !1), C.addEventListener("mouseleave", U, !1), C.addEventListener("mouseup", ce, !1);
347
+ }, p = (h) => (_(), h.cancelBubble = !0, h.preventDefault(), !1), n = (h) => (x(), h.cancelBubble = !0, h.preventDefault(), !1), _ = () => {
348
+ t && t.close && t.close(), l();
349
+ }, x = () => {
350
+ t && t.refresh && t.refresh(), l();
351
+ }, l = () => {
352
+ d.dragLeft = 0, d.thumbLeft = s.thumbX || 0;
351
353
  };
352
354
  return {
353
- state: u,
354
- dragEvent: g,
355
+ state: d,
356
+ dragEvent: y,
355
357
  closeEvent: p,
356
- refreshEvent: a,
357
- resetData: h,
358
+ refreshEvent: n,
359
+ resetData: l,
358
360
  clearData: () => {
359
- i && i(), h();
361
+ e && e(), l();
360
362
  },
361
- refresh: b,
362
- close: E
363
+ refresh: x,
364
+ close: _
363
365
  };
364
366
  }
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
- }
1292
- };
1293
- }
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({
367
+ const Ke = { class: "gc-header" }, Qe = { class: "gc-icon-block" }, Ze = { class: "gc-loading" }, et = ["src"], tt = ["src"], nt = { class: "gc-footer" }, st = /* @__PURE__ */ o("div", { class: "gc-drag-line" }, null, -1), ue = /* @__PURE__ */ q({
1936
368
  __name: "index",
1937
369
  props: {
1938
- config: { default: Zt },
370
+ config: { default: xe },
1939
371
  events: { default: () => ({}) },
1940
372
  data: { default: () => ({}) }
1941
373
  },
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);
374
+ setup(s, { expose: t }) {
375
+ const a = s, { data: r, events: i, config: m } = a, c = T({ ...Ge(), ...V(r) }), u = T({ ...V(i) }), e = T({ ...xe(), ...V(m) });
376
+ F(() => a.data, (f, E) => {
377
+ Object.assign(c, f);
378
+ }, { deep: !0 }), F(() => a.events, (f, E) => {
379
+ Object.assign(u, f);
380
+ }, { deep: !0 }), F(() => a.config, (f, E) => {
381
+ Object.assign(e, f);
1950
382
  }, { deep: !0 });
1951
- const u = ie(null), g = ie(null), p = ie(null), a = ie(null), E = ie(null), b = xs(
383
+ const d = ee(null), y = ee(null), p = ee(null), n = ee(null), _ = ee(null), x = Je(
1952
384
  c,
1953
- l,
1954
- i,
1955
385
  u,
386
+ e,
387
+ d,
1956
388
  p,
1957
- E,
1958
- a,
1959
- g,
389
+ _,
390
+ n,
391
+ y,
1960
392
  () => {
1961
393
  c.thumb = "", c.image = "", c.thumbX = 0, c.thumbY = 0, c.thumbWidth = 0, c.thumbHeight = 0;
1962
394
  }
1963
- ), h = L(() => {
1964
- const d = i.horizontalPadding || 0, y = i.verticalPadding || 0;
395
+ ), l = L(() => {
396
+ const f = e.horizontalPadding || 0, E = e.verticalPadding || 0;
1965
397
  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"
398
+ width: (e.width || 0) + f * 2 + (e.showTheme ? 2 : 0) + "px",
399
+ paddingLeft: f + "px",
400
+ paddingRight: f + "px",
401
+ paddingTop: E + "px",
402
+ paddingBottom: E + "px"
1971
403
  };
1972
- }), w = L(() => ({
404
+ }), b = L(() => ({
1973
405
  width: c.thumbWidth + "px",
1974
406
  height: c.thumbHeight + "px",
1975
407
  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);
408
+ left: x.state.thumbLeft + "px"
409
+ })), h = L(() => ({
410
+ width: e.width + "px",
411
+ height: e.height + "px"
412
+ })), S = L(() => c.image != ""), Y = L(() => c.thumb != ""), w = L(() => (e.width || 0) > 0 || (e.height || 0) > 0), g = (f) => f.preventDefault();
413
+ return _e(async () => {
414
+ await be(), n.value && n.value.addEventListener("dragstart", g);
415
+ }), we(() => {
416
+ n.value && n.value.removeEventListener("dragstart", g);
1985
417
  }), 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),
418
+ reset: x.resetData,
419
+ clear: x.clearData,
420
+ refresh: x.refresh,
421
+ close: x.close
422
+ }), (f, E) => K((z(), H("div", {
423
+ class: se(`go-captcha gc-wrapper ${e.showTheme && "gc-theme"}`),
424
+ style: D(l.value),
1993
425
  ref_key: "rootRef",
1994
- ref: u
426
+ ref: d
1995
427
  }, [
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
428
+ o("div", Ke, [
429
+ o("span", null, ie(e.title), 1),
430
+ o("div", Qe, [
431
+ I(fe, {
432
+ width: e.iconSize,
433
+ height: e.iconSize,
434
+ onClick: v(x).closeEvent
2003
435
  }, null, 8, ["width", "height", "onClick"]),
2004
- G(_t, {
2005
- width: i.iconSize,
2006
- height: i.iconSize,
2007
- onClick: x(b).refreshEvent
436
+ I(ve, {
437
+ width: e.iconSize,
438
+ height: e.iconSize,
439
+ onClick: v(x).refreshEvent
2008
440
  }, null, 8, ["width", "height", "onClick"])
2009
441
  ])
2010
442
  ]),
2011
- f("div", {
443
+ o("div", {
2012
444
  class: "gc-body",
2013
445
  ref_key: "containerRef",
2014
446
  ref: p,
2015
- style: C(m.value)
447
+ style: D(h.value)
2016
448
  }, [
2017
- f("div", lr, [
2018
- G(vt)
449
+ o("div", Ze, [
450
+ I(me)
2019
451
  ]),
2020
- oe(f("img", {
452
+ K(o("img", {
2021
453
  class: "gc-picture",
2022
- style: C(m.value),
454
+ style: D(h.value),
2023
455
  src: c.image,
2024
456
  alt: ""
2025
- }, null, 12, ar), [
2026
- [re, N.value]
457
+ }, null, 12, et), [
458
+ [Q, S.value]
2027
459
  ]),
2028
- f("div", {
460
+ o("div", {
2029
461
  class: "gc-tile",
2030
462
  ref_key: "tileRef",
2031
- ref: E,
2032
- style: C(w.value)
463
+ ref: _,
464
+ style: D(b.value)
2033
465
  }, [
2034
- oe(f("img", {
466
+ K(o("img", {
2035
467
  src: c.thumb,
2036
468
  alt: ""
2037
- }, null, 8, ur), [
2038
- [re, P.value]
469
+ }, null, 8, tt), [
470
+ [Q, Y.value]
2039
471
  ])
2040
472
  ], 4)
2041
473
  ], 4),
2042
- f("div", dr, [
2043
- f("div", {
474
+ o("div", nt, [
475
+ o("div", {
2044
476
  class: "gc-drag-slide-bar",
2045
477
  ref_key: "dragBarRef",
2046
- ref: g
478
+ ref: y
2047
479
  }, [
2048
- fr,
2049
- f("div", {
2050
- class: _e(["gc-drag-block", !N.value && "disabled"]),
480
+ st,
481
+ o("div", {
482
+ class: se(["gc-drag-block", !S.value && "disabled"]),
2051
483
  ref_key: "dragBlockRef",
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" })
484
+ ref: n,
485
+ onMousedown: E[1] || (E[1] = //@ts-ignore
486
+ (...B) => v(x).dragEvent && v(x).dragEvent(...B)),
487
+ style: D({ left: v(x).state.dragLeft + "px" })
2056
488
  }, [
2057
- f("div", {
489
+ o("div", {
2058
490
  class: "gc-drag-block-inline",
2059
- onTouchstart: y[0] || (y[0] = //@ts-ignore
2060
- (...V) => x(b).dragEvent && x(b).dragEvent(...V))
491
+ onTouchstart: E[0] || (E[0] = //@ts-ignore
492
+ (...B) => v(x).dragEvent && v(x).dragEvent(...B))
2061
493
  }, [
2062
- G(vn)
494
+ I(ke)
2063
495
  ], 32)
2064
496
  ], 38)
2065
497
  ], 512)
2066
498
  ])
2067
499
  ], 6)), [
2068
- [re, _.value]
500
+ [Q, w.value]
2069
501
  ]);
2070
502
  }
2071
503
  });
2072
- ft.name = "gocaptcha-slide";
2073
- ft.install = function(e) {
2074
- e.component("gocaptcha-slide", ft);
504
+ ue.name = "gocaptcha-slide";
505
+ ue.install = function(s) {
506
+ s.component("gocaptcha-slide", ue);
2075
507
  };
2076
- const mn = () => ({
508
+ const Le = () => ({
2077
509
  width: 300,
2078
510
  height: 220,
2079
511
  verticalPadding: 16,
@@ -2082,7 +514,7 @@ const mn = () => ({
2082
514
  title: "请拖拽贴图完成拼图",
2083
515
  iconSize: 22,
2084
516
  scope: !0
2085
- }), hr = () => ({
517
+ }), ct = () => ({
2086
518
  thumbX: 0,
2087
519
  thumbY: 0,
2088
520
  thumbWidth: 0,
@@ -2090,175 +522,177 @@ const mn = () => ({
2090
522
  image: "",
2091
523
  thumb: ""
2092
524
  });
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);
525
+ function ot(s, t, a, r, i, m, c) {
526
+ const u = T({ x: s.thumbX || 0, y: s.thumbY || 0, isFreeze: !1 });
527
+ F(() => s, (l, b) => {
528
+ u.isFreeze || (u.x = l.thumbX || 0, u.y = l.thumbY || 0);
2097
529
  }, { 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;
530
+ const e = (l) => {
531
+ if (!ae(i.value, l))
532
+ return;
533
+ const b = l.touches && l.touches[0], h = m.value.offsetLeft, S = m.value.offsetTop, Y = i.value.offsetWidth, w = i.value.offsetHeight, g = m.value.offsetWidth, f = m.value.offsetHeight, E = Y - g, B = w - f;
534
+ let te = !1, ne = null, G = 0, N = 0, P = 0, Z = 0;
535
+ b ? (G = b.pageX - h, N = b.pageY - S) : (G = l.clientX - h, N = l.clientY - S);
536
+ const O = (X) => {
537
+ te = !0;
538
+ const W = X.touches && X.touches[0];
539
+ let J = 0, M = 0;
540
+ W ? (J = W.pageX - G, M = W.pageY - N) : (J = X.clientX - G, M = X.clientY - N), J <= 0 && (J = 0), M <= 0 && (M = 0), J >= E && (J = E), M >= B && (M = B), u.x = J, u.y = M, P = J, Z = M, t.move && t.move(J, M), X.cancelBubble = !0, X.preventDefault();
541
+ }, R = (X) => {
542
+ ae(i.value, X) && (C(), te && (te = !1, !(P < 0 || Z < 0) && (t.confirm && t.confirm({ x: P, y: Z }, () => {
543
+ _();
544
+ }), X.cancelBubble = !0, X.preventDefault())));
545
+ }, U = (X) => {
546
+ ne = X;
547
+ }, j = () => {
548
+ ne = null;
549
+ }, A = (X) => {
550
+ ne && (R(ne), C());
551
+ }, ce = a.scope, k = ce ? r.value : i.value, $ = ce ? r.value : document.body, C = () => {
552
+ $.removeEventListener("mousemove", O, !1), $.removeEventListener("touchmove", O, { passive: !1 }), k.removeEventListener("mouseup", R, !1), k.removeEventListener("mouseenter", j, !1), k.removeEventListener("mouseleave", U, !1), k.removeEventListener("touchend", R, !1), $.removeEventListener("mouseleave", R, !1), $.removeEventListener("mouseup", A, !1), u.isFreeze = !1;
2119
553
  };
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;
554
+ u.isFreeze = !0, $.addEventListener("mousemove", O, !1), $.addEventListener("touchmove", O, { passive: !1 }), k.addEventListener("mouseup", R, !1), k.addEventListener("mouseenter", j, !1), k.addEventListener("mouseleave", U, !1), k.addEventListener("touchend", R, !1), $.addEventListener("mouseleave", R, !1), $.addEventListener("mouseup", A, !1);
555
+ }, d = (l) => (p(), l.cancelBubble = !0, l.preventDefault(), !1), y = (l) => (n(), l.cancelBubble = !0, l.preventDefault(), !1), p = () => {
556
+ t && t.close && t.close(), _();
557
+ }, n = () => {
558
+ t && t.refresh && t.refresh(), _();
559
+ }, _ = () => {
560
+ u.x = s.thumbX || 0, u.y = s.thumbY || 0;
2127
561
  };
2128
562
  return {
2129
- state: l,
2130
- dragEvent: i,
2131
- closeEvent: u,
2132
- refreshEvent: g,
2133
- resetData: E,
563
+ state: u,
564
+ dragEvent: e,
565
+ closeEvent: d,
566
+ refreshEvent: y,
567
+ resetData: _,
2134
568
  clearData: () => {
2135
- c && c(), E();
569
+ c && c(), _();
2136
570
  },
2137
- refresh: a,
571
+ refresh: n,
2138
572
  close: p
2139
573
  };
2140
574
  }
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({
575
+ const it = { class: "gc-header gc-header2" }, at = { class: "gc-loading" }, lt = ["src"], rt = ["src"], ut = { class: "gc-footer" }, dt = { class: "gc-icon-block" }, de = /* @__PURE__ */ q({
2142
576
  __name: "index",
2143
577
  props: {
2144
- config: { default: mn },
578
+ config: { default: Le },
2145
579
  events: { default: () => ({}) },
2146
580
  data: { default: () => ({}) }
2147
581
  },
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, _);
582
+ setup(s, { expose: t }) {
583
+ const a = s, { data: r, events: i, config: m } = a, c = T({ ...ct(), ...V(r) }), u = T({ ...V(i) }), e = T({ ...Le(), ...V(m) });
584
+ F(() => a.data, (w, g) => {
585
+ Object.assign(c, w);
586
+ }, { deep: !0 }), F(() => a.events, (w, g) => {
587
+ Object.assign(u, w);
588
+ }, { deep: !0 }), F(() => a.config, (w, g) => {
589
+ Object.assign(e, w);
2156
590
  }, { deep: !0 });
2157
- const u = ie(null), g = ie(null), p = ie(null), a = pr(
591
+ const d = ee(null), y = ee(null), p = ee(null), n = ot(
2158
592
  c,
2159
- l,
2160
- i,
2161
593
  u,
2162
- g,
594
+ e,
595
+ d,
596
+ y,
2163
597
  p,
2164
598
  () => {
2165
599
  c.thumb = "", c.image = "", c.thumbX = 0, c.thumbY = 0, c.thumbWidth = 0, c.thumbHeight = 0;
2166
600
  }
2167
- ), E = L(() => {
2168
- const _ = i.horizontalPadding || 0, v = i.verticalPadding || 0;
601
+ ), _ = L(() => {
602
+ const w = e.horizontalPadding || 0, g = e.verticalPadding || 0;
2169
603
  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"
604
+ width: (e.width || 0) + w * 2 + (e.showTheme ? 2 : 0) + "px",
605
+ paddingLeft: w + "px",
606
+ paddingRight: w + "px",
607
+ paddingTop: g + "px",
608
+ paddingBottom: g + "px"
2175
609
  };
2176
- }), b = L(() => ({
610
+ }), x = L(() => ({
2177
611
  width: c.thumbWidth + "px",
2178
612
  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);
613
+ top: n.state.y + "px",
614
+ left: n.state.x + "px"
615
+ })), l = L(() => ({
616
+ width: e.width + "px",
617
+ height: e.height + "px"
618
+ })), b = L(() => c.image != ""), h = L(() => c.thumb != ""), S = L(() => (e.width || 0) > 0 || (e.height || 0) > 0), Y = (w) => w.preventDefault();
619
+ return _e(async () => {
620
+ await be(), p.value && p.value.addEventListener("dragstart", Y);
621
+ }), we(() => {
622
+ p.value && p.value.removeEventListener("dragstart", Y);
2189
623
  }), 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),
624
+ reset: n.resetData,
625
+ clear: n.clearData,
626
+ refresh: n.refresh,
627
+ close: n.close
628
+ }), (w, g) => K((z(), H("div", {
629
+ class: se(`go-captcha gc-wrapper ${e.showTheme && "gc-theme"}`),
630
+ style: D(_.value),
2197
631
  ref_key: "rootRef",
2198
- ref: u
632
+ ref: d
2199
633
  }, [
2200
- f("div", gr, [
2201
- f("span", null, Le(i.title), 1)
634
+ o("div", it, [
635
+ o("span", null, ie(e.title), 1)
2202
636
  ]),
2203
- f("div", {
637
+ o("div", {
2204
638
  class: "gc-body",
2205
639
  ref_key: "containerRef",
2206
- ref: g,
2207
- style: C(h.value)
640
+ ref: y,
641
+ style: D(l.value)
2208
642
  }, [
2209
- f("div", mr, [
2210
- G(vt)
643
+ o("div", at, [
644
+ I(me)
2211
645
  ]),
2212
- oe(f("img", {
646
+ K(o("img", {
2213
647
  class: "gc-picture",
2214
- style: C(h.value),
648
+ style: D(l.value),
2215
649
  src: c.image,
2216
650
  alt: ""
2217
- }, null, 12, _r), [
2218
- [re, w.value]
651
+ }, null, 12, lt), [
652
+ [Q, b.value]
2219
653
  ]),
2220
- f("div", {
654
+ o("div", {
2221
655
  class: "gc-tile",
2222
656
  ref_key: "tileRef",
2223
657
  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))
658
+ style: D(x.value),
659
+ onMousedown: g[0] || (g[0] = //@ts-ignore
660
+ (...f) => v(n).dragEvent && v(n).dragEvent(...f)),
661
+ onTouchstart: g[1] || (g[1] = //@ts-ignore
662
+ (...f) => v(n).dragEvent && v(n).dragEvent(...f))
2229
663
  }, [
2230
- oe(f("img", {
664
+ K(o("img", {
2231
665
  src: c.thumb,
2232
666
  alt: ""
2233
- }, null, 8, vr), [
2234
- [re, m.value]
667
+ }, null, 8, rt), [
668
+ [Q, h.value]
2235
669
  ])
2236
670
  ], 36)
2237
671
  ], 4),
2238
- f("div", Er, [
2239
- f("div", br, [
2240
- G(mt, {
2241
- width: i.iconSize,
2242
- height: i.iconSize,
2243
- onClick: x(a).closeEvent
672
+ o("div", ut, [
673
+ o("div", dt, [
674
+ I(fe, {
675
+ width: e.iconSize,
676
+ height: e.iconSize,
677
+ onClick: v(n).closeEvent
2244
678
  }, null, 8, ["width", "height", "onClick"]),
2245
- G(_t, {
2246
- width: i.iconSize,
2247
- height: i.iconSize,
2248
- onClick: x(a).refreshEvent
679
+ I(ve, {
680
+ width: e.iconSize,
681
+ height: e.iconSize,
682
+ onClick: v(n).refreshEvent
2249
683
  }, null, 8, ["width", "height", "onClick"])
2250
684
  ])
2251
685
  ])
2252
686
  ], 6)), [
2253
- [re, N.value]
687
+ [Q, S.value]
2254
688
  ]);
2255
689
  }
2256
690
  });
2257
- ht.name = "gocaptcha-slide-region";
2258
- ht.install = function(e) {
2259
- e.component("gocaptcha-slide-region", ht);
691
+ de.name = "gocaptcha-slide-region";
692
+ de.install = function(s) {
693
+ s.component("gocaptcha-slide-region", de);
2260
694
  };
2261
- const yt = () => ({
695
+ const pe = () => ({
2262
696
  width: 300,
2263
697
  height: 220,
2264
698
  size: 220,
@@ -2268,374 +702,376 @@ const yt = () => ({
2268
702
  title: "请拖动滑块完成拼图",
2269
703
  iconSize: 22,
2270
704
  scope: !0
2271
- }), wr = () => ({
705
+ }), ht = () => ({
2272
706
  angle: 0,
2273
707
  image: "",
2274
708
  thumb: ""
2275
709
  });
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);
710
+ function gt(s, t, a, r, i, m, c) {
711
+ const u = T({ dragLeft: 0, thumbAngle: s.angle || 0, isFreeze: !1 });
712
+ F(() => s, (l, b) => {
713
+ u.isFreeze || (u.thumbAngle = l.angle || 0);
2280
714
  }, { 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;
715
+ const e = (l) => {
716
+ if (!ae(m.value, l))
717
+ return;
718
+ const b = l.touches && l.touches[0], h = i.value.offsetLeft, S = m.value.offsetWidth, Y = i.value.offsetWidth, w = S - Y, g = 360, f = (g - s.angle) / w;
719
+ let E = 0, B = !1, te = null, ne = 0, G = 0;
720
+ b ? ne = b.pageX - h : ne = l.clientX - h;
721
+ const N = (k) => {
722
+ B = !0;
723
+ const $ = k.touches && k.touches[0];
724
+ let C = 0;
725
+ if ($ ? C = $.pageX - ne : C = k.clientX - ne, E = s.angle + C * f, C >= w) {
726
+ u.dragLeft = w, u.thumbAngle = G = g;
2291
727
  return;
2292
728
  }
2293
- if (I <= 0) {
2294
- l.dragLeft = 0, l.thumbAngle = ne = e.angle;
729
+ if (C <= 0) {
730
+ u.dragLeft = 0, u.thumbAngle = G = s.angle;
2295
731
  return;
2296
732
  }
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;
733
+ u.dragLeft = C, u.thumbAngle = G = E, t.rotate && t.rotate(E), k.cancelBubble = !0, k.preventDefault();
734
+ }, P = (k) => {
735
+ ae(m.value, k) && (ce(), B && (B = !1, !(G < 0) && (t.confirm && t.confirm(parseInt(G.toString()), () => {
736
+ _();
737
+ }), k.cancelBubble = !0, k.preventDefault())));
738
+ }, Z = (k) => {
739
+ te = k;
740
+ }, O = () => {
741
+ te = null;
742
+ }, R = (k) => {
743
+ te && (P(te), ce());
744
+ }, U = a.scope, j = U ? r.value : m.value, A = U ? r.value : document.body, ce = () => {
745
+ A.removeEventListener("mousemove", N, !1), A.removeEventListener("touchmove", N, { passive: !1 }), j.removeEventListener("mouseup", P, !1), j.removeEventListener("mouseenter", O, !1), j.removeEventListener("mouseleave", Z, !1), j.removeEventListener("touchend", P, !1), A.removeEventListener("mouseleave", P, !1), A.removeEventListener("mouseup", R, !1), u.isFreeze = !1;
2310
746
  };
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;
747
+ u.isFreeze = !0, A.addEventListener("mousemove", N, !1), A.addEventListener("touchmove", N, { passive: !1 }), j.addEventListener("mouseup", P, !1), j.addEventListener("mouseenter", O, !1), j.addEventListener("mouseleave", Z, !1), j.addEventListener("touchend", P, !1), A.addEventListener("mouseleave", P, !1), A.addEventListener("mouseup", R, !1);
748
+ }, d = (l) => (p(), l.cancelBubble = !0, l.preventDefault(), !1), y = (l) => (n(), l.cancelBubble = !0, l.preventDefault(), !1), p = () => {
749
+ t && t.close && t.close(), _();
750
+ }, n = () => {
751
+ t && t.refresh && t.refresh(), _();
752
+ }, _ = () => {
753
+ u.dragLeft = 0, u.thumbAngle = s.angle;
2318
754
  };
2319
755
  return {
2320
- state: l,
2321
- dragEvent: i,
2322
- closeEvent: u,
2323
- refreshEvent: g,
2324
- resetData: E,
756
+ state: u,
757
+ dragEvent: e,
758
+ closeEvent: d,
759
+ refreshEvent: y,
760
+ resetData: _,
2325
761
  clearData: () => {
2326
- c && c(), E();
762
+ c && c(), _();
2327
763
  },
2328
- refresh: a,
764
+ refresh: n,
2329
765
  close: p
2330
766
  };
2331
767
  }
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({
768
+ const ft = { class: "gc-header" }, vt = { class: "gc-icon-block" }, mt = { class: "gc-loading" }, pt = ["src"], _t = /* @__PURE__ */ o("div", { class: "gc-round" }, null, -1), bt = { class: "gc-thumb gc-rotate-thumb" }, wt = ["src"], Et = { class: "gc-footer" }, xt = /* @__PURE__ */ o("div", { class: "gc-drag-line" }, null, -1), he = /* @__PURE__ */ q({
2333
769
  __name: "index",
2334
770
  props: {
2335
- config: { default: yt },
771
+ config: { default: pe },
2336
772
  events: { default: () => ({}) },
2337
773
  data: { default: () => ({}) }
2338
774
  },
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);
775
+ setup(s, { expose: t }) {
776
+ const a = s, { data: r, events: i, config: m } = a, c = T({ ...ht(), ...V(r) }), u = T({ ...V(i) }), e = T({ ...pe(), ...V(m) });
777
+ F(() => a.data, (g, f) => {
778
+ Object.assign(c, g);
779
+ }, { deep: !0 }), F(() => a.events, (g, f) => {
780
+ Object.assign(u, g);
781
+ }, { deep: !0 }), F(() => a.config, (g, f) => {
782
+ Object.assign(e, g);
2347
783
  }, { deep: !0 });
2348
- const u = ie(null), g = ie(null), p = ie(null), a = xr(
784
+ const d = ee(null), y = ee(null), p = ee(null), n = gt(
2349
785
  c,
2350
- l,
2351
- i,
2352
786
  u,
787
+ e,
788
+ d,
2353
789
  p,
2354
- g,
790
+ y,
2355
791
  () => {
2356
792
  c.thumb = "", c.image = "", c.angle = 0;
2357
793
  }
2358
- ), E = L(() => {
2359
- const v = i.horizontalPadding || 0, d = i.verticalPadding || 0;
794
+ ), _ = L(() => {
795
+ const g = e.horizontalPadding || 0, f = e.verticalPadding || 0;
2360
796
  return {
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"
797
+ width: (e.width || 0) + g * 2 + (e.showTheme ? 2 : 0) + "px",
798
+ paddingLeft: g + "px",
799
+ paddingRight: g + "px",
800
+ paddingTop: f + "px",
801
+ paddingBottom: f + "px"
2366
802
  };
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;
803
+ }), x = L(() => ({
804
+ transform: `rotate(${n.state.thumbAngle}deg)`
805
+ })), l = L(() => ({
806
+ width: e.width + "px",
807
+ height: e.height + "px"
808
+ })), b = L(() => {
809
+ const g = (e.size || 0) > 0 ? e.size : pe().size;
2374
810
  return {
2375
- width: v + "px",
2376
- height: v + "px"
811
+ width: g + "px",
812
+ height: g + "px"
2377
813
  };
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", _);
814
+ }), h = L(() => c.image != ""), S = L(() => c.thumb != ""), Y = L(() => (e.width || 0) > 0 || (e.height || 0) > 0), w = (g) => g.preventDefault();
815
+ return _e(async () => {
816
+ await be(), p.value && p.value.addEventListener("dragstart", w);
817
+ }), we(() => {
818
+ p.value && p.value.removeEventListener("dragstart", w);
2383
819
  }), 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),
820
+ reset: n.resetData,
821
+ clear: n.clearData,
822
+ refresh: n.refresh,
823
+ close: n.close
824
+ }), (g, f) => K((z(), H("div", {
825
+ class: se(`go-captcha gc-wrapper ${e.showTheme && "gc-theme"}`),
826
+ style: D(_.value),
2391
827
  ref_key: "rootRef",
2392
- ref: u
828
+ ref: d
2393
829
  }, [
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
830
+ o("div", ft, [
831
+ o("span", null, ie(e.title), 1),
832
+ o("div", vt, [
833
+ I(fe, {
834
+ width: e.iconSize,
835
+ height: e.iconSize,
836
+ onClick: v(n).closeEvent
2401
837
  }, null, 8, ["width", "height", "onClick"]),
2402
- G(_t, {
2403
- width: i.iconSize,
2404
- height: i.iconSize,
2405
- onClick: x(a).refreshEvent
838
+ I(ve, {
839
+ width: e.iconSize,
840
+ height: e.iconSize,
841
+ onClick: v(n).refreshEvent
2406
842
  }, null, 8, ["width", "height", "onClick"])
2407
843
  ])
2408
844
  ]),
2409
- f("div", {
845
+ o("div", {
2410
846
  class: "gc-body gc-rotate-body",
2411
847
  ref: "containerRef",
2412
- style: C(h.value)
848
+ style: D(l.value)
2413
849
  }, [
2414
- f("div", {
850
+ o("div", {
2415
851
  class: "gc-body-inner",
2416
- style: C(w.value)
852
+ style: D(b.value)
2417
853
  }, [
2418
- f("div", Lr, [
2419
- G(vt)
854
+ o("div", mt, [
855
+ I(me)
2420
856
  ]),
2421
- f("div", {
857
+ o("div", {
2422
858
  class: "gc-picture gc-rotate-picture",
2423
- style: C(w.value)
859
+ style: D(b.value)
2424
860
  }, [
2425
- oe(f("img", {
861
+ K(o("img", {
2426
862
  src: c.image,
2427
863
  alt: ""
2428
- }, null, 8, Nr), [
2429
- [re, m.value]
864
+ }, null, 8, pt), [
865
+ [Q, h.value]
2430
866
  ]),
2431
- Or
867
+ _t
2432
868
  ], 4),
2433
- f("div", Dr, [
2434
- f("div", {
869
+ o("div", bt, [
870
+ o("div", {
2435
871
  class: "gc-rotate-thumb-block",
2436
- style: C(b.value)
872
+ style: D(x.value)
2437
873
  }, [
2438
- oe(f("img", {
874
+ K(o("img", {
2439
875
  src: c.thumb,
2440
876
  alt: ""
2441
- }, null, 8, $r), [
2442
- [re, N.value]
877
+ }, null, 8, wt), [
878
+ [Q, S.value]
2443
879
  ])
2444
880
  ], 4)
2445
881
  ])
2446
882
  ], 4)
2447
883
  ], 4),
2448
- f("div", Cr, [
2449
- f("div", {
884
+ o("div", Et, [
885
+ o("div", {
2450
886
  class: "gc-drag-slide-bar",
2451
887
  ref_key: "dragBarRef",
2452
- ref: g
888
+ ref: y
2453
889
  }, [
2454
- Pr,
2455
- f("div", {
2456
- class: _e(["gc-drag-block", !m.value && "disabled"]),
890
+ xt,
891
+ o("div", {
892
+ class: se(["gc-drag-block", !h.value && "disabled"]),
2457
893
  ref_key: "dragBlockRef",
2458
894
  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" })
895
+ onMousedown: f[1] || (f[1] = //@ts-ignore
896
+ (...E) => v(n).dragEvent && v(n).dragEvent(...E)),
897
+ style: D({ left: v(n).state.dragLeft + "px" })
2462
898
  }, [
2463
- f("div", {
899
+ o("div", {
2464
900
  class: "gc-drag-block-inline",
2465
- onTouchstart: d[0] || (d[0] = //@ts-ignore
2466
- (...y) => x(a).dragEvent && x(a).dragEvent(...y))
901
+ onTouchstart: f[0] || (f[0] = //@ts-ignore
902
+ (...E) => v(n).dragEvent && v(n).dragEvent(...E))
2467
903
  }, [
2468
- G(vn)
904
+ I(ke)
2469
905
  ], 32)
2470
906
  ], 38)
2471
907
  ], 512)
2472
908
  ])
2473
909
  ], 6)), [
2474
- [re, P.value]
910
+ [Q, Y.value]
2475
911
  ]);
2476
912
  }
2477
913
  });
2478
- pt.name = "gocaptcha-rotate";
2479
- pt.install = function(e) {
2480
- e.component("gocaptcha-rotate", pt);
914
+ he.name = "gocaptcha-rotate";
915
+ he.install = function(s) {
916
+ s.component("gocaptcha-rotate", he);
2481
917
  };
2482
- const Tr = /* @__PURE__ */ f("circle", {
918
+ const Lt = /* @__PURE__ */ o("circle", {
2483
919
  fill: "#3E7CFF",
2484
920
  cx: "100",
2485
921
  cy: "100",
2486
922
  r: "96.3"
2487
- }, null, -1), Rr = /* @__PURE__ */ f("path", {
923
+ }, null, -1), yt = /* @__PURE__ */ o("path", {
2488
924
  fill: "#FFFFFF",
2489
925
  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
2490
926
  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`
2491
- }, null, -1), Vr = [
2492
- Tr,
2493
- Rr
2494
- ], zr = /* @__PURE__ */ te({
927
+ }, null, -1), kt = [
928
+ Lt,
929
+ yt
930
+ ], Dt = /* @__PURE__ */ q({
2495
931
  __name: "btn-default-icon",
2496
932
  emits: ["click"],
2497
- setup(e, { emit: t }) {
2498
- const n = t;
2499
- function o(s) {
2500
- n("click", s);
933
+ setup(s, { emit: t }) {
934
+ const a = t;
935
+ function r(i) {
936
+ a("click", i);
2501
937
  }
2502
- return (s, r) => (z(), U("svg", Se({
938
+ return (i, m) => (z(), H("svg", oe({
2503
939
  xmlns: "http://www.w3.org/2000/svg",
2504
940
  viewBox: "0 0 200 200",
2505
941
  width: "20",
2506
942
  height: "20"
2507
- }, s.$attrs, { onClick: o }), Vr, 16));
943
+ }, i.$attrs, { onClick: r }), kt, 16));
2508
944
  }
2509
- }), Ir = /* @__PURE__ */ f("path", {
945
+ }), $t = /* @__PURE__ */ o("path", {
2510
946
  fill: "#FFA000",
2511
947
  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
2512
948
  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
2513
949
  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
2514
950
  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
2515
951
  z`
2516
- }, null, -1), Mr = [
2517
- Ir
2518
- ], kr = /* @__PURE__ */ te({
952
+ }, null, -1), zt = [
953
+ $t
954
+ ], Ct = /* @__PURE__ */ q({
2519
955
  __name: "btn-warn-icon",
2520
956
  emits: ["click"],
2521
- setup(e, { emit: t }) {
2522
- const n = t;
2523
- function o(s) {
2524
- n("click", s);
957
+ setup(s, { emit: t }) {
958
+ const a = t;
959
+ function r(i) {
960
+ a("click", i);
2525
961
  }
2526
- return (s, r) => (z(), U("svg", Se({
962
+ return (i, m) => (z(), H("svg", oe({
2527
963
  xmlns: "http://www.w3.org/2000/svg",
2528
964
  viewBox: "0 0 200 200",
2529
965
  width: "20",
2530
966
  height: "20"
2531
- }, s.$attrs, { onClick: o }), Mr, 16));
967
+ }, i.$attrs, { onClick: r }), zt, 16));
2532
968
  }
2533
- }), Fr = /* @__PURE__ */ f("path", {
969
+ }), St = /* @__PURE__ */ o("path", {
2534
970
  fill: "#ED4630",
2535
971
  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
2536
972
  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
2537
973
  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
2538
974
  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
2539
975
  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`
2540
- }, null, -1), jr = [
2541
- Fr
2542
- ], Ar = /* @__PURE__ */ te({
976
+ }, null, -1), Bt = [
977
+ St
978
+ ], Tt = /* @__PURE__ */ q({
2543
979
  __name: "btn-error-icon",
2544
980
  emits: ["click"],
2545
- setup(e, { emit: t }) {
2546
- const n = t;
2547
- function o(s) {
2548
- n("click", s);
981
+ setup(s, { emit: t }) {
982
+ const a = t;
983
+ function r(i) {
984
+ a("click", i);
2549
985
  }
2550
- return (s, r) => (z(), U("svg", Se({
986
+ return (i, m) => (z(), H("svg", oe({
2551
987
  xmlns: "http://www.w3.org/2000/svg",
2552
988
  viewBox: "0 0 200 200",
2553
989
  width: "20",
2554
990
  height: "20"
2555
- }, s.$attrs, { onClick: o }), jr, 16));
991
+ }, i.$attrs, { onClick: r }), Bt, 16));
2556
992
  }
2557
- }), Hr = /* @__PURE__ */ f("path", {
993
+ }), Pt = /* @__PURE__ */ o("path", {
2558
994
  fill: "#5EAA2F",
2559
995
  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
2560
996
  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
2561
997
  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
2562
998
  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`
2563
- }, null, -1), Br = [
2564
- Hr
2565
- ], Wr = /* @__PURE__ */ te({
999
+ }, null, -1), Xt = [
1000
+ Pt
1001
+ ], Wt = /* @__PURE__ */ q({
2566
1002
  __name: "btn-success-icon",
2567
1003
  emits: ["click"],
2568
- setup(e, { emit: t }) {
2569
- const n = t;
2570
- function o(s) {
2571
- n("click", s);
1004
+ setup(s, { emit: t }) {
1005
+ const a = t;
1006
+ function r(i) {
1007
+ a("click", i);
2572
1008
  }
2573
- return (s, r) => (z(), U("svg", Se({
1009
+ return (i, m) => (z(), H("svg", oe({
2574
1010
  xmlns: "http://www.w3.org/2000/svg",
2575
1011
  viewBox: "0 0 200 200",
2576
1012
  width: "20",
2577
1013
  height: "20"
2578
- }, s.$attrs, { onClick: o }), Br, 16));
1014
+ }, i.$attrs, { onClick: r }), Xt, 16));
2579
1015
  }
2580
- }), _n = () => ({
1016
+ }), ye = () => ({
2581
1017
  width: 330,
2582
1018
  height: 44,
2583
1019
  verticalPadding: 12,
2584
1020
  horizontalPadding: 16
2585
- }), gt = /* @__PURE__ */ te({
1021
+ }), ge = /* @__PURE__ */ q({
2586
1022
  __name: "index",
2587
1023
  props: {
2588
- config: { default: _n },
1024
+ config: { default: ye },
2589
1025
  clickEvent: {},
2590
1026
  disabled: { type: Boolean, default: !1 },
2591
1027
  type: { default: "default" },
2592
1028
  title: { default: "点击按键进行验证" }
2593
1029
  },
2594
1030
  emits: ["click-event"],
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);
1031
+ setup(s, { emit: t }) {
1032
+ const a = s, { type: r, title: i, disabled: m, config: c } = Ce(a), u = T({ ...ye(), ...V(c) });
1033
+ F(() => a.config, (n, _) => {
1034
+ Object.assign(u, n);
2599
1035
  }, { 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);
1036
+ const e = L(() => ["go-captcha", "gc-btn-block", `gc-${r.value}`, m.value ? "gc-disabled" : ""]), d = L(() => ({
1037
+ width: u.width + "px",
1038
+ height: u.height + "px",
1039
+ paddingLeft: u.horizontalPadding + "px",
1040
+ paddingRight: u.horizontalPadding + "px",
1041
+ paddingTop: u.verticalPadding + "px",
1042
+ paddingBottom: u.verticalPadding + "px"
1043
+ })), y = t;
1044
+ function p(n) {
1045
+ y("click-event", n);
2610
1046
  }
2611
- return (a, E) => (z(), U("div", {
2612
- class: _e(i.value),
2613
- style: C(u.value),
1047
+ return (n, _) => (z(), H("div", {
1048
+ class: se(e.value),
1049
+ style: D(d.value),
2614
1050
  onClick: p
2615
1051
  }, [
2616
- f("div", {
2617
- class: _e(x(o) === "default" ? "gc-ripple" : "")
1052
+ o("div", {
1053
+ class: se(v(r) === "default" ? "gc-ripple" : "")
2618
1054
  }, [
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)
1055
+ v(r) === "default" ? (z(), le(Dt, { key: 0 })) : v(r) === "warn" ? (z(), le(Ct, { key: 1 })) : v(r) === "error" ? (z(), le(Tt, { key: 2 })) : v(r) === "success" ? (z(), le(Wt, { key: 3 })) : Se("", !0)
2620
1056
  ], 2),
2621
- f("span", null, Le(x(s)), 1)
1057
+ o("span", null, ie(v(i)), 1)
2622
1058
  ], 6));
2623
1059
  }
2624
1060
  });
2625
- gt.name = "gocaptcha-button";
2626
- gt.install = function(e) {
2627
- e.component("gocaptcha-button", gt);
1061
+ ge.name = "gocaptcha-button";
1062
+ ge.install = function(s) {
1063
+ s.component("gocaptcha-button", ge);
2628
1064
  };
2629
- const Yr = {
2630
- install(e) {
2631
- ct.install(e), ft.install(e), ht.install(e), pt.install(e), gt.install(e);
1065
+ const Ft = {
1066
+ install(s) {
1067
+ re.install(s), ue.install(s), de.install(s), he.install(s), ge.install(s);
2632
1068
  }
2633
1069
  };
2634
1070
  export {
2635
- gt as Button,
2636
- ct as Click,
2637
- pt as Rotate,
2638
- ft as Slide,
2639
- ht as SlideRegion,
2640
- Yr as default
1071
+ ge as Button,
1072
+ re as Click,
1073
+ he as Rotate,
1074
+ ue as Slide,
1075
+ de as SlideRegion,
1076
+ Ft as default
2641
1077
  };