vue-wiguet-chatweb 0.0.1

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.
@@ -0,0 +1,4436 @@
1
+ import { defineComponent as Rt, computed as ys, openBlock as V, createElementBlock as j, createElementVNode as C, normalizeClass as is, toDisplayString as wt, unref as as, inject as kn, watch as gs, effectScope as On, reactive as Dn, ref as Me, onMounted as Mn, createVNode as Pe, Fragment as Cn, renderList as Tn, createBlock as Nn, withModifiers as xn, withDirectives as Yn, vModelText as En, pushScopeId as In, popScopeId as Wn, createStaticVNode as Rn, createCommentVNode as Ln } from "vue";
2
+ //! moment.js
3
+ //! version : 2.29.4
4
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5
+ //! license : MIT
6
+ //! momentjs.com
7
+ var vs;
8
+ function u() {
9
+ return vs.apply(null, arguments);
10
+ }
11
+ function Pn(e) {
12
+ vs = e;
13
+ }
14
+ function G(e) {
15
+ return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
16
+ }
17
+ function ge(e) {
18
+ return e != null && Object.prototype.toString.call(e) === "[object Object]";
19
+ }
20
+ function w(e, t) {
21
+ return Object.prototype.hasOwnProperty.call(e, t);
22
+ }
23
+ function Lt(e) {
24
+ if (Object.getOwnPropertyNames)
25
+ return Object.getOwnPropertyNames(e).length === 0;
26
+ var t;
27
+ for (t in e)
28
+ if (w(e, t))
29
+ return !1;
30
+ return !0;
31
+ }
32
+ function W(e) {
33
+ return e === void 0;
34
+ }
35
+ function oe(e) {
36
+ return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
37
+ }
38
+ function Be(e) {
39
+ return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
40
+ }
41
+ function ws(e, t) {
42
+ var s = [], n, r = e.length;
43
+ for (n = 0; n < r; ++n)
44
+ s.push(t(e[n], n));
45
+ return s;
46
+ }
47
+ function fe(e, t) {
48
+ for (var s in t)
49
+ w(t, s) && (e[s] = t[s]);
50
+ return w(t, "toString") && (e.toString = t.toString), w(t, "valueOf") && (e.valueOf = t.valueOf), e;
51
+ }
52
+ function X(e, t, s, n) {
53
+ return $s(e, t, s, n, !0).utc();
54
+ }
55
+ function An() {
56
+ return {
57
+ empty: !1,
58
+ unusedTokens: [],
59
+ unusedInput: [],
60
+ overflow: -2,
61
+ charsLeftOver: 0,
62
+ nullInput: !1,
63
+ invalidEra: null,
64
+ invalidMonth: null,
65
+ invalidFormat: !1,
66
+ userInvalidated: !1,
67
+ iso: !1,
68
+ parsedDateParts: [],
69
+ era: null,
70
+ meridiem: null,
71
+ rfc2822: !1,
72
+ weekdayMismatch: !1
73
+ };
74
+ }
75
+ function p(e) {
76
+ return e._pf == null && (e._pf = An()), e._pf;
77
+ }
78
+ var Mt;
79
+ Array.prototype.some ? Mt = Array.prototype.some : Mt = function(e) {
80
+ var t = Object(this), s = t.length >>> 0, n;
81
+ for (n = 0; n < s; n++)
82
+ if (n in t && e.call(this, t[n], n, t))
83
+ return !0;
84
+ return !1;
85
+ };
86
+ function Pt(e) {
87
+ if (e._isValid == null) {
88
+ var t = p(e), s = Mt.call(t.parsedDateParts, function(r) {
89
+ return r != null;
90
+ }), n = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && s);
91
+ if (e._strict && (n = n && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0), Object.isFrozen == null || !Object.isFrozen(e))
92
+ e._isValid = n;
93
+ else
94
+ return n;
95
+ }
96
+ return e._isValid;
97
+ }
98
+ function ot(e) {
99
+ var t = X(NaN);
100
+ return e != null ? fe(p(t), e) : p(t).userInvalidated = !0, t;
101
+ }
102
+ var os = u.momentProperties = [], bt = !1;
103
+ function At(e, t) {
104
+ var s, n, r, i = os.length;
105
+ if (W(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), W(t._i) || (e._i = t._i), W(t._f) || (e._f = t._f), W(t._l) || (e._l = t._l), W(t._strict) || (e._strict = t._strict), W(t._tzm) || (e._tzm = t._tzm), W(t._isUTC) || (e._isUTC = t._isUTC), W(t._offset) || (e._offset = t._offset), W(t._pf) || (e._pf = p(t)), W(t._locale) || (e._locale = t._locale), i > 0)
106
+ for (s = 0; s < i; s++)
107
+ n = os[s], r = t[n], W(r) || (e[n] = r);
108
+ return e;
109
+ }
110
+ function $e(e) {
111
+ At(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), bt === !1 && (bt = !0, u.updateOffset(this), bt = !1);
112
+ }
113
+ function z(e) {
114
+ return e instanceof $e || e != null && e._isAMomentObject != null;
115
+ }
116
+ function bs(e) {
117
+ u.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
118
+ }
119
+ function U(e, t) {
120
+ var s = !0;
121
+ return fe(function() {
122
+ if (u.deprecationHandler != null && u.deprecationHandler(null, e), s) {
123
+ var n = [], r, i, a, o = arguments.length;
124
+ for (i = 0; i < o; i++) {
125
+ if (r = "", typeof arguments[i] == "object") {
126
+ r += `
127
+ [` + i + "] ";
128
+ for (a in arguments[0])
129
+ w(arguments[0], a) && (r += a + ": " + arguments[0][a] + ", ");
130
+ r = r.slice(0, -2);
131
+ } else
132
+ r = arguments[i];
133
+ n.push(r);
134
+ }
135
+ bs(
136
+ e + `
137
+ Arguments: ` + Array.prototype.slice.call(n).join("") + `
138
+ ` + new Error().stack
139
+ ), s = !1;
140
+ }
141
+ return t.apply(this, arguments);
142
+ }, t);
143
+ }
144
+ var cs = {};
145
+ function Ss(e, t) {
146
+ u.deprecationHandler != null && u.deprecationHandler(e, t), cs[e] || (bs(t), cs[e] = !0);
147
+ }
148
+ u.suppressDeprecationWarnings = !1;
149
+ u.deprecationHandler = null;
150
+ function ee(e) {
151
+ return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
152
+ }
153
+ function Fn(e) {
154
+ var t, s;
155
+ for (s in e)
156
+ w(e, s) && (t = e[s], ee(t) ? this[s] = t : this["_" + s] = t);
157
+ this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
158
+ (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
159
+ );
160
+ }
161
+ function Ct(e, t) {
162
+ var s = fe({}, e), n;
163
+ for (n in t)
164
+ w(t, n) && (ge(e[n]) && ge(t[n]) ? (s[n] = {}, fe(s[n], e[n]), fe(s[n], t[n])) : t[n] != null ? s[n] = t[n] : delete s[n]);
165
+ for (n in e)
166
+ w(e, n) && !w(t, n) && ge(e[n]) && (s[n] = fe({}, s[n]));
167
+ return s;
168
+ }
169
+ function Ft(e) {
170
+ e != null && this.set(e);
171
+ }
172
+ var Tt;
173
+ Object.keys ? Tt = Object.keys : Tt = function(e) {
174
+ var t, s = [];
175
+ for (t in e)
176
+ w(e, t) && s.push(t);
177
+ return s;
178
+ };
179
+ var Hn = {
180
+ sameDay: "[Today at] LT",
181
+ nextDay: "[Tomorrow at] LT",
182
+ nextWeek: "dddd [at] LT",
183
+ lastDay: "[Yesterday at] LT",
184
+ lastWeek: "[Last] dddd [at] LT",
185
+ sameElse: "L"
186
+ };
187
+ function Vn(e, t, s) {
188
+ var n = this._calendar[e] || this._calendar.sameElse;
189
+ return ee(n) ? n.call(t, s) : n;
190
+ }
191
+ function J(e, t, s) {
192
+ var n = "" + Math.abs(e), r = t - n.length, i = e >= 0;
193
+ return (i ? s ? "+" : "" : "-") + Math.pow(10, Math.max(0, r)).toString().substr(1) + n;
194
+ }
195
+ var Ht = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, ze = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, St = {}, Ne = {};
196
+ function _(e, t, s, n) {
197
+ var r = n;
198
+ typeof n == "string" && (r = function() {
199
+ return this[n]();
200
+ }), e && (Ne[e] = r), t && (Ne[t[0]] = function() {
201
+ return J(r.apply(this, arguments), t[1], t[2]);
202
+ }), s && (Ne[s] = function() {
203
+ return this.localeData().ordinal(
204
+ r.apply(this, arguments),
205
+ e
206
+ );
207
+ });
208
+ }
209
+ function Un(e) {
210
+ return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
211
+ }
212
+ function Bn(e) {
213
+ var t = e.match(Ht), s, n;
214
+ for (s = 0, n = t.length; s < n; s++)
215
+ Ne[t[s]] ? t[s] = Ne[t[s]] : t[s] = Un(t[s]);
216
+ return function(r) {
217
+ var i = "", a;
218
+ for (a = 0; a < n; a++)
219
+ i += ee(t[a]) ? t[a].call(r, e) : t[a];
220
+ return i;
221
+ };
222
+ }
223
+ function Qe(e, t) {
224
+ return e.isValid() ? (t = ks(t, e.localeData()), St[t] = St[t] || Bn(t), St[t](e)) : e.localeData().invalidDate();
225
+ }
226
+ function ks(e, t) {
227
+ var s = 5;
228
+ function n(r) {
229
+ return t.longDateFormat(r) || r;
230
+ }
231
+ for (ze.lastIndex = 0; s >= 0 && ze.test(e); )
232
+ e = e.replace(
233
+ ze,
234
+ n
235
+ ), ze.lastIndex = 0, s -= 1;
236
+ return e;
237
+ }
238
+ var $n = {
239
+ LTS: "h:mm:ss A",
240
+ LT: "h:mm A",
241
+ L: "MM/DD/YYYY",
242
+ LL: "MMMM D, YYYY",
243
+ LLL: "MMMM D, YYYY h:mm A",
244
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
245
+ };
246
+ function jn(e) {
247
+ var t = this._longDateFormat[e], s = this._longDateFormat[e.toUpperCase()];
248
+ return t || !s ? t : (this._longDateFormat[e] = s.match(Ht).map(function(n) {
249
+ return n === "MMMM" || n === "MM" || n === "DD" || n === "dddd" ? n.slice(1) : n;
250
+ }).join(""), this._longDateFormat[e]);
251
+ }
252
+ var Gn = "Invalid date";
253
+ function zn() {
254
+ return this._invalidDate;
255
+ }
256
+ var Zn = "%d", qn = /\d{1,2}/;
257
+ function Kn(e) {
258
+ return this._ordinal.replace("%d", e);
259
+ }
260
+ var Qn = {
261
+ future: "in %s",
262
+ past: "%s ago",
263
+ s: "a few seconds",
264
+ ss: "%d seconds",
265
+ m: "a minute",
266
+ mm: "%d minutes",
267
+ h: "an hour",
268
+ hh: "%d hours",
269
+ d: "a day",
270
+ dd: "%d days",
271
+ w: "a week",
272
+ ww: "%d weeks",
273
+ M: "a month",
274
+ MM: "%d months",
275
+ y: "a year",
276
+ yy: "%d years"
277
+ };
278
+ function Jn(e, t, s, n) {
279
+ var r = this._relativeTime[s];
280
+ return ee(r) ? r(e, t, s, n) : r.replace(/%d/i, e);
281
+ }
282
+ function Xn(e, t) {
283
+ var s = this._relativeTime[e > 0 ? "future" : "past"];
284
+ return ee(s) ? s(t) : s.replace(/%s/i, t);
285
+ }
286
+ var Ae = {};
287
+ function Y(e, t) {
288
+ var s = e.toLowerCase();
289
+ Ae[s] = Ae[s + "s"] = Ae[t] = e;
290
+ }
291
+ function B(e) {
292
+ return typeof e == "string" ? Ae[e] || Ae[e.toLowerCase()] : void 0;
293
+ }
294
+ function Vt(e) {
295
+ var t = {}, s, n;
296
+ for (n in e)
297
+ w(e, n) && (s = B(n), s && (t[s] = e[n]));
298
+ return t;
299
+ }
300
+ var Os = {};
301
+ function E(e, t) {
302
+ Os[e] = t;
303
+ }
304
+ function er(e) {
305
+ var t = [], s;
306
+ for (s in e)
307
+ w(e, s) && t.push({ unit: s, priority: Os[s] });
308
+ return t.sort(function(n, r) {
309
+ return n.priority - r.priority;
310
+ }), t;
311
+ }
312
+ function ct(e) {
313
+ return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
314
+ }
315
+ function H(e) {
316
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
317
+ }
318
+ function y(e) {
319
+ var t = +e, s = 0;
320
+ return t !== 0 && isFinite(t) && (s = H(t)), s;
321
+ }
322
+ function Ee(e, t) {
323
+ return function(s) {
324
+ return s != null ? (Ds(this, e, s), u.updateOffset(this, t), this) : et(this, e);
325
+ };
326
+ }
327
+ function et(e, t) {
328
+ return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN;
329
+ }
330
+ function Ds(e, t, s) {
331
+ e.isValid() && !isNaN(s) && (t === "FullYear" && ct(e.year()) && e.month() === 1 && e.date() === 29 ? (s = y(s), e._d["set" + (e._isUTC ? "UTC" : "") + t](
332
+ s,
333
+ e.month(),
334
+ _t(s, e.month())
335
+ )) : e._d["set" + (e._isUTC ? "UTC" : "") + t](s));
336
+ }
337
+ function tr(e) {
338
+ return e = B(e), ee(this[e]) ? this[e]() : this;
339
+ }
340
+ function sr(e, t) {
341
+ if (typeof e == "object") {
342
+ e = Vt(e);
343
+ var s = er(e), n, r = s.length;
344
+ for (n = 0; n < r; n++)
345
+ this[s[n].unit](e[s[n].unit]);
346
+ } else if (e = B(e), ee(this[e]))
347
+ return this[e](t);
348
+ return this;
349
+ }
350
+ var Ms = /\d/, P = /\d\d/, Cs = /\d{3}/, Ut = /\d{4}/, lt = /[+-]?\d{6}/, D = /\d\d?/, Ts = /\d\d\d\d?/, Ns = /\d\d\d\d\d\d?/, ut = /\d{1,3}/, Bt = /\d{1,4}/, dt = /[+-]?\d{1,6}/, Ie = /\d+/, ht = /[+-]?\d+/, nr = /Z|[+-]\d\d:?\d\d/gi, ft = /Z|[+-]\d\d(?::?\d\d)?/gi, rr = /[+-]?\d+(\.\d{1,3})?/, je = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, tt;
351
+ tt = {};
352
+ function d(e, t, s) {
353
+ tt[e] = ee(t) ? t : function(n, r) {
354
+ return n && s ? s : t;
355
+ };
356
+ }
357
+ function ir(e, t) {
358
+ return w(tt, e) ? tt[e](t._strict, t._locale) : new RegExp(ar(e));
359
+ }
360
+ function ar(e) {
361
+ return L(
362
+ e.replace("\\", "").replace(
363
+ /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
364
+ function(t, s, n, r, i) {
365
+ return s || n || r || i;
366
+ }
367
+ )
368
+ );
369
+ }
370
+ function L(e) {
371
+ return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
372
+ }
373
+ var Nt = {};
374
+ function S(e, t) {
375
+ var s, n = t, r;
376
+ for (typeof e == "string" && (e = [e]), oe(t) && (n = function(i, a) {
377
+ a[t] = y(i);
378
+ }), r = e.length, s = 0; s < r; s++)
379
+ Nt[e[s]] = n;
380
+ }
381
+ function Ge(e, t) {
382
+ S(e, function(s, n, r, i) {
383
+ r._w = r._w || {}, t(s, r._w, r, i);
384
+ });
385
+ }
386
+ function or(e, t, s) {
387
+ t != null && w(Nt, e) && Nt[e](t, s._a, s, e);
388
+ }
389
+ var x = 0, re = 1, Q = 2, N = 3, $ = 4, ie = 5, ye = 6, cr = 7, lr = 8;
390
+ function ur(e, t) {
391
+ return (e % t + t) % t;
392
+ }
393
+ var T;
394
+ Array.prototype.indexOf ? T = Array.prototype.indexOf : T = function(e) {
395
+ var t;
396
+ for (t = 0; t < this.length; ++t)
397
+ if (this[t] === e)
398
+ return t;
399
+ return -1;
400
+ };
401
+ function _t(e, t) {
402
+ if (isNaN(e) || isNaN(t))
403
+ return NaN;
404
+ var s = ur(t, 12);
405
+ return e += (t - s) / 12, s === 1 ? ct(e) ? 29 : 28 : 31 - s % 7 % 2;
406
+ }
407
+ _("M", ["MM", 2], "Mo", function() {
408
+ return this.month() + 1;
409
+ });
410
+ _("MMM", 0, 0, function(e) {
411
+ return this.localeData().monthsShort(this, e);
412
+ });
413
+ _("MMMM", 0, 0, function(e) {
414
+ return this.localeData().months(this, e);
415
+ });
416
+ Y("month", "M");
417
+ E("month", 8);
418
+ d("M", D);
419
+ d("MM", D, P);
420
+ d("MMM", function(e, t) {
421
+ return t.monthsShortRegex(e);
422
+ });
423
+ d("MMMM", function(e, t) {
424
+ return t.monthsRegex(e);
425
+ });
426
+ S(["M", "MM"], function(e, t) {
427
+ t[re] = y(e) - 1;
428
+ });
429
+ S(["MMM", "MMMM"], function(e, t, s, n) {
430
+ var r = s._locale.monthsParse(e, n, s._strict);
431
+ r != null ? t[re] = r : p(s).invalidMonth = e;
432
+ });
433
+ var dr = "January_February_March_April_May_June_July_August_September_October_November_December".split(
434
+ "_"
435
+ ), xs = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Ys = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, hr = je, fr = je;
436
+ function _r(e, t) {
437
+ return e ? G(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Ys).test(t) ? "format" : "standalone"][e.month()] : G(this._months) ? this._months : this._months.standalone;
438
+ }
439
+ function mr(e, t) {
440
+ return e ? G(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Ys.test(t) ? "format" : "standalone"][e.month()] : G(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
441
+ }
442
+ function pr(e, t, s) {
443
+ var n, r, i, a = e.toLocaleLowerCase();
444
+ if (!this._monthsParse)
445
+ for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], n = 0; n < 12; ++n)
446
+ i = X([2e3, n]), this._shortMonthsParse[n] = this.monthsShort(
447
+ i,
448
+ ""
449
+ ).toLocaleLowerCase(), this._longMonthsParse[n] = this.months(i, "").toLocaleLowerCase();
450
+ return s ? t === "MMM" ? (r = T.call(this._shortMonthsParse, a), r !== -1 ? r : null) : (r = T.call(this._longMonthsParse, a), r !== -1 ? r : null) : t === "MMM" ? (r = T.call(this._shortMonthsParse, a), r !== -1 ? r : (r = T.call(this._longMonthsParse, a), r !== -1 ? r : null)) : (r = T.call(this._longMonthsParse, a), r !== -1 ? r : (r = T.call(this._shortMonthsParse, a), r !== -1 ? r : null));
451
+ }
452
+ function yr(e, t, s) {
453
+ var n, r, i;
454
+ if (this._monthsParseExact)
455
+ return pr.call(this, e, t, s);
456
+ for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), n = 0; n < 12; n++) {
457
+ if (r = X([2e3, n]), s && !this._longMonthsParse[n] && (this._longMonthsParse[n] = new RegExp(
458
+ "^" + this.months(r, "").replace(".", "") + "$",
459
+ "i"
460
+ ), this._shortMonthsParse[n] = new RegExp(
461
+ "^" + this.monthsShort(r, "").replace(".", "") + "$",
462
+ "i"
463
+ )), !s && !this._monthsParse[n] && (i = "^" + this.months(r, "") + "|^" + this.monthsShort(r, ""), this._monthsParse[n] = new RegExp(i.replace(".", ""), "i")), s && t === "MMMM" && this._longMonthsParse[n].test(e))
464
+ return n;
465
+ if (s && t === "MMM" && this._shortMonthsParse[n].test(e))
466
+ return n;
467
+ if (!s && this._monthsParse[n].test(e))
468
+ return n;
469
+ }
470
+ }
471
+ function Es(e, t) {
472
+ var s;
473
+ if (!e.isValid())
474
+ return e;
475
+ if (typeof t == "string") {
476
+ if (/^\d+$/.test(t))
477
+ t = y(t);
478
+ else if (t = e.localeData().monthsParse(t), !oe(t))
479
+ return e;
480
+ }
481
+ return s = Math.min(e.date(), _t(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, s), e;
482
+ }
483
+ function Is(e) {
484
+ return e != null ? (Es(this, e), u.updateOffset(this, !0), this) : et(this, "Month");
485
+ }
486
+ function gr() {
487
+ return _t(this.year(), this.month());
488
+ }
489
+ function vr(e) {
490
+ return this._monthsParseExact ? (w(this, "_monthsRegex") || Ws.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (w(this, "_monthsShortRegex") || (this._monthsShortRegex = hr), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
491
+ }
492
+ function wr(e) {
493
+ return this._monthsParseExact ? (w(this, "_monthsRegex") || Ws.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (w(this, "_monthsRegex") || (this._monthsRegex = fr), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
494
+ }
495
+ function Ws() {
496
+ function e(a, o) {
497
+ return o.length - a.length;
498
+ }
499
+ var t = [], s = [], n = [], r, i;
500
+ for (r = 0; r < 12; r++)
501
+ i = X([2e3, r]), t.push(this.monthsShort(i, "")), s.push(this.months(i, "")), n.push(this.months(i, "")), n.push(this.monthsShort(i, ""));
502
+ for (t.sort(e), s.sort(e), n.sort(e), r = 0; r < 12; r++)
503
+ t[r] = L(t[r]), s[r] = L(s[r]);
504
+ for (r = 0; r < 24; r++)
505
+ n[r] = L(n[r]);
506
+ this._monthsRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
507
+ "^(" + s.join("|") + ")",
508
+ "i"
509
+ ), this._monthsShortStrictRegex = new RegExp(
510
+ "^(" + t.join("|") + ")",
511
+ "i"
512
+ );
513
+ }
514
+ _("Y", 0, 0, function() {
515
+ var e = this.year();
516
+ return e <= 9999 ? J(e, 4) : "+" + e;
517
+ });
518
+ _(0, ["YY", 2], 0, function() {
519
+ return this.year() % 100;
520
+ });
521
+ _(0, ["YYYY", 4], 0, "year");
522
+ _(0, ["YYYYY", 5], 0, "year");
523
+ _(0, ["YYYYYY", 6, !0], 0, "year");
524
+ Y("year", "y");
525
+ E("year", 1);
526
+ d("Y", ht);
527
+ d("YY", D, P);
528
+ d("YYYY", Bt, Ut);
529
+ d("YYYYY", dt, lt);
530
+ d("YYYYYY", dt, lt);
531
+ S(["YYYYY", "YYYYYY"], x);
532
+ S("YYYY", function(e, t) {
533
+ t[x] = e.length === 2 ? u.parseTwoDigitYear(e) : y(e);
534
+ });
535
+ S("YY", function(e, t) {
536
+ t[x] = u.parseTwoDigitYear(e);
537
+ });
538
+ S("Y", function(e, t) {
539
+ t[x] = parseInt(e, 10);
540
+ });
541
+ function Fe(e) {
542
+ return ct(e) ? 366 : 365;
543
+ }
544
+ u.parseTwoDigitYear = function(e) {
545
+ return y(e) + (y(e) > 68 ? 1900 : 2e3);
546
+ };
547
+ var Rs = Ee("FullYear", !0);
548
+ function br() {
549
+ return ct(this.year());
550
+ }
551
+ function Sr(e, t, s, n, r, i, a) {
552
+ var o;
553
+ return e < 100 && e >= 0 ? (o = new Date(e + 400, t, s, n, r, i, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, s, n, r, i, a), o;
554
+ }
555
+ function He(e) {
556
+ var t, s;
557
+ return e < 100 && e >= 0 ? (s = Array.prototype.slice.call(arguments), s[0] = e + 400, t = new Date(Date.UTC.apply(null, s)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
558
+ }
559
+ function st(e, t, s) {
560
+ var n = 7 + t - s, r = (7 + He(e, 0, n).getUTCDay() - t) % 7;
561
+ return -r + n - 1;
562
+ }
563
+ function Ls(e, t, s, n, r) {
564
+ var i = (7 + s - n) % 7, a = st(e, n, r), o = 1 + 7 * (t - 1) + i + a, c, f;
565
+ return o <= 0 ? (c = e - 1, f = Fe(c) + o) : o > Fe(e) ? (c = e + 1, f = o - Fe(e)) : (c = e, f = o), {
566
+ year: c,
567
+ dayOfYear: f
568
+ };
569
+ }
570
+ function Ve(e, t, s) {
571
+ var n = st(e.year(), t, s), r = Math.floor((e.dayOfYear() - n - 1) / 7) + 1, i, a;
572
+ return r < 1 ? (a = e.year() - 1, i = r + ae(a, t, s)) : r > ae(e.year(), t, s) ? (i = r - ae(e.year(), t, s), a = e.year() + 1) : (a = e.year(), i = r), {
573
+ week: i,
574
+ year: a
575
+ };
576
+ }
577
+ function ae(e, t, s) {
578
+ var n = st(e, t, s), r = st(e + 1, t, s);
579
+ return (Fe(e) - n + r) / 7;
580
+ }
581
+ _("w", ["ww", 2], "wo", "week");
582
+ _("W", ["WW", 2], "Wo", "isoWeek");
583
+ Y("week", "w");
584
+ Y("isoWeek", "W");
585
+ E("week", 5);
586
+ E("isoWeek", 5);
587
+ d("w", D);
588
+ d("ww", D, P);
589
+ d("W", D);
590
+ d("WW", D, P);
591
+ Ge(
592
+ ["w", "ww", "W", "WW"],
593
+ function(e, t, s, n) {
594
+ t[n.substr(0, 1)] = y(e);
595
+ }
596
+ );
597
+ function kr(e) {
598
+ return Ve(e, this._week.dow, this._week.doy).week;
599
+ }
600
+ var Or = {
601
+ dow: 0,
602
+ // Sunday is the first day of the week.
603
+ doy: 6
604
+ // The week that contains Jan 6th is the first week of the year.
605
+ };
606
+ function Dr() {
607
+ return this._week.dow;
608
+ }
609
+ function Mr() {
610
+ return this._week.doy;
611
+ }
612
+ function Cr(e) {
613
+ var t = this.localeData().week(this);
614
+ return e == null ? t : this.add((e - t) * 7, "d");
615
+ }
616
+ function Tr(e) {
617
+ var t = Ve(this, 1, 4).week;
618
+ return e == null ? t : this.add((e - t) * 7, "d");
619
+ }
620
+ _("d", 0, "do", "day");
621
+ _("dd", 0, 0, function(e) {
622
+ return this.localeData().weekdaysMin(this, e);
623
+ });
624
+ _("ddd", 0, 0, function(e) {
625
+ return this.localeData().weekdaysShort(this, e);
626
+ });
627
+ _("dddd", 0, 0, function(e) {
628
+ return this.localeData().weekdays(this, e);
629
+ });
630
+ _("e", 0, 0, "weekday");
631
+ _("E", 0, 0, "isoWeekday");
632
+ Y("day", "d");
633
+ Y("weekday", "e");
634
+ Y("isoWeekday", "E");
635
+ E("day", 11);
636
+ E("weekday", 11);
637
+ E("isoWeekday", 11);
638
+ d("d", D);
639
+ d("e", D);
640
+ d("E", D);
641
+ d("dd", function(e, t) {
642
+ return t.weekdaysMinRegex(e);
643
+ });
644
+ d("ddd", function(e, t) {
645
+ return t.weekdaysShortRegex(e);
646
+ });
647
+ d("dddd", function(e, t) {
648
+ return t.weekdaysRegex(e);
649
+ });
650
+ Ge(["dd", "ddd", "dddd"], function(e, t, s, n) {
651
+ var r = s._locale.weekdaysParse(e, n, s._strict);
652
+ r != null ? t.d = r : p(s).invalidWeekday = e;
653
+ });
654
+ Ge(["d", "e", "E"], function(e, t, s, n) {
655
+ t[n] = y(e);
656
+ });
657
+ function Nr(e, t) {
658
+ return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
659
+ }
660
+ function xr(e, t) {
661
+ return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
662
+ }
663
+ function $t(e, t) {
664
+ return e.slice(t, 7).concat(e.slice(0, t));
665
+ }
666
+ var Yr = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Ps = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Er = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ir = je, Wr = je, Rr = je;
667
+ function Lr(e, t) {
668
+ var s = G(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
669
+ return e === !0 ? $t(s, this._week.dow) : e ? s[e.day()] : s;
670
+ }
671
+ function Pr(e) {
672
+ return e === !0 ? $t(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
673
+ }
674
+ function Ar(e) {
675
+ return e === !0 ? $t(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
676
+ }
677
+ function Fr(e, t, s) {
678
+ var n, r, i, a = e.toLocaleLowerCase();
679
+ if (!this._weekdaysParse)
680
+ for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], n = 0; n < 7; ++n)
681
+ i = X([2e3, 1]).day(n), this._minWeekdaysParse[n] = this.weekdaysMin(
682
+ i,
683
+ ""
684
+ ).toLocaleLowerCase(), this._shortWeekdaysParse[n] = this.weekdaysShort(
685
+ i,
686
+ ""
687
+ ).toLocaleLowerCase(), this._weekdaysParse[n] = this.weekdays(i, "").toLocaleLowerCase();
688
+ return s ? t === "dddd" ? (r = T.call(this._weekdaysParse, a), r !== -1 ? r : null) : t === "ddd" ? (r = T.call(this._shortWeekdaysParse, a), r !== -1 ? r : null) : (r = T.call(this._minWeekdaysParse, a), r !== -1 ? r : null) : t === "dddd" ? (r = T.call(this._weekdaysParse, a), r !== -1 || (r = T.call(this._shortWeekdaysParse, a), r !== -1) ? r : (r = T.call(this._minWeekdaysParse, a), r !== -1 ? r : null)) : t === "ddd" ? (r = T.call(this._shortWeekdaysParse, a), r !== -1 || (r = T.call(this._weekdaysParse, a), r !== -1) ? r : (r = T.call(this._minWeekdaysParse, a), r !== -1 ? r : null)) : (r = T.call(this._minWeekdaysParse, a), r !== -1 || (r = T.call(this._weekdaysParse, a), r !== -1) ? r : (r = T.call(this._shortWeekdaysParse, a), r !== -1 ? r : null));
689
+ }
690
+ function Hr(e, t, s) {
691
+ var n, r, i;
692
+ if (this._weekdaysParseExact)
693
+ return Fr.call(this, e, t, s);
694
+ for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), n = 0; n < 7; n++) {
695
+ if (r = X([2e3, 1]).day(n), s && !this._fullWeekdaysParse[n] && (this._fullWeekdaysParse[n] = new RegExp(
696
+ "^" + this.weekdays(r, "").replace(".", "\\.?") + "$",
697
+ "i"
698
+ ), this._shortWeekdaysParse[n] = new RegExp(
699
+ "^" + this.weekdaysShort(r, "").replace(".", "\\.?") + "$",
700
+ "i"
701
+ ), this._minWeekdaysParse[n] = new RegExp(
702
+ "^" + this.weekdaysMin(r, "").replace(".", "\\.?") + "$",
703
+ "i"
704
+ )), this._weekdaysParse[n] || (i = "^" + this.weekdays(r, "") + "|^" + this.weekdaysShort(r, "") + "|^" + this.weekdaysMin(r, ""), this._weekdaysParse[n] = new RegExp(i.replace(".", ""), "i")), s && t === "dddd" && this._fullWeekdaysParse[n].test(e))
705
+ return n;
706
+ if (s && t === "ddd" && this._shortWeekdaysParse[n].test(e))
707
+ return n;
708
+ if (s && t === "dd" && this._minWeekdaysParse[n].test(e))
709
+ return n;
710
+ if (!s && this._weekdaysParse[n].test(e))
711
+ return n;
712
+ }
713
+ }
714
+ function Vr(e) {
715
+ if (!this.isValid())
716
+ return e != null ? this : NaN;
717
+ var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
718
+ return e != null ? (e = Nr(e, this.localeData()), this.add(e - t, "d")) : t;
719
+ }
720
+ function Ur(e) {
721
+ if (!this.isValid())
722
+ return e != null ? this : NaN;
723
+ var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
724
+ return e == null ? t : this.add(e - t, "d");
725
+ }
726
+ function Br(e) {
727
+ if (!this.isValid())
728
+ return e != null ? this : NaN;
729
+ if (e != null) {
730
+ var t = xr(e, this.localeData());
731
+ return this.day(this.day() % 7 ? t : t - 7);
732
+ } else
733
+ return this.day() || 7;
734
+ }
735
+ function $r(e) {
736
+ return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || jt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (w(this, "_weekdaysRegex") || (this._weekdaysRegex = Ir), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
737
+ }
738
+ function jr(e) {
739
+ return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || jt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (w(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Wr), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
740
+ }
741
+ function Gr(e) {
742
+ return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || jt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (w(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Rr), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
743
+ }
744
+ function jt() {
745
+ function e(h, m) {
746
+ return m.length - h.length;
747
+ }
748
+ var t = [], s = [], n = [], r = [], i, a, o, c, f;
749
+ for (i = 0; i < 7; i++)
750
+ a = X([2e3, 1]).day(i), o = L(this.weekdaysMin(a, "")), c = L(this.weekdaysShort(a, "")), f = L(this.weekdays(a, "")), t.push(o), s.push(c), n.push(f), r.push(o), r.push(c), r.push(f);
751
+ t.sort(e), s.sort(e), n.sort(e), r.sort(e), this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
752
+ "^(" + n.join("|") + ")",
753
+ "i"
754
+ ), this._weekdaysShortStrictRegex = new RegExp(
755
+ "^(" + s.join("|") + ")",
756
+ "i"
757
+ ), this._weekdaysMinStrictRegex = new RegExp(
758
+ "^(" + t.join("|") + ")",
759
+ "i"
760
+ );
761
+ }
762
+ function Gt() {
763
+ return this.hours() % 12 || 12;
764
+ }
765
+ function zr() {
766
+ return this.hours() || 24;
767
+ }
768
+ _("H", ["HH", 2], 0, "hour");
769
+ _("h", ["hh", 2], 0, Gt);
770
+ _("k", ["kk", 2], 0, zr);
771
+ _("hmm", 0, 0, function() {
772
+ return "" + Gt.apply(this) + J(this.minutes(), 2);
773
+ });
774
+ _("hmmss", 0, 0, function() {
775
+ return "" + Gt.apply(this) + J(this.minutes(), 2) + J(this.seconds(), 2);
776
+ });
777
+ _("Hmm", 0, 0, function() {
778
+ return "" + this.hours() + J(this.minutes(), 2);
779
+ });
780
+ _("Hmmss", 0, 0, function() {
781
+ return "" + this.hours() + J(this.minutes(), 2) + J(this.seconds(), 2);
782
+ });
783
+ function As(e, t) {
784
+ _(e, 0, 0, function() {
785
+ return this.localeData().meridiem(
786
+ this.hours(),
787
+ this.minutes(),
788
+ t
789
+ );
790
+ });
791
+ }
792
+ As("a", !0);
793
+ As("A", !1);
794
+ Y("hour", "h");
795
+ E("hour", 13);
796
+ function Fs(e, t) {
797
+ return t._meridiemParse;
798
+ }
799
+ d("a", Fs);
800
+ d("A", Fs);
801
+ d("H", D);
802
+ d("h", D);
803
+ d("k", D);
804
+ d("HH", D, P);
805
+ d("hh", D, P);
806
+ d("kk", D, P);
807
+ d("hmm", Ts);
808
+ d("hmmss", Ns);
809
+ d("Hmm", Ts);
810
+ d("Hmmss", Ns);
811
+ S(["H", "HH"], N);
812
+ S(["k", "kk"], function(e, t, s) {
813
+ var n = y(e);
814
+ t[N] = n === 24 ? 0 : n;
815
+ });
816
+ S(["a", "A"], function(e, t, s) {
817
+ s._isPm = s._locale.isPM(e), s._meridiem = e;
818
+ });
819
+ S(["h", "hh"], function(e, t, s) {
820
+ t[N] = y(e), p(s).bigHour = !0;
821
+ });
822
+ S("hmm", function(e, t, s) {
823
+ var n = e.length - 2;
824
+ t[N] = y(e.substr(0, n)), t[$] = y(e.substr(n)), p(s).bigHour = !0;
825
+ });
826
+ S("hmmss", function(e, t, s) {
827
+ var n = e.length - 4, r = e.length - 2;
828
+ t[N] = y(e.substr(0, n)), t[$] = y(e.substr(n, 2)), t[ie] = y(e.substr(r)), p(s).bigHour = !0;
829
+ });
830
+ S("Hmm", function(e, t, s) {
831
+ var n = e.length - 2;
832
+ t[N] = y(e.substr(0, n)), t[$] = y(e.substr(n));
833
+ });
834
+ S("Hmmss", function(e, t, s) {
835
+ var n = e.length - 4, r = e.length - 2;
836
+ t[N] = y(e.substr(0, n)), t[$] = y(e.substr(n, 2)), t[ie] = y(e.substr(r));
837
+ });
838
+ function Zr(e) {
839
+ return (e + "").toLowerCase().charAt(0) === "p";
840
+ }
841
+ var qr = /[ap]\.?m?\.?/i, Kr = Ee("Hours", !0);
842
+ function Qr(e, t, s) {
843
+ return e > 11 ? s ? "pm" : "PM" : s ? "am" : "AM";
844
+ }
845
+ var Hs = {
846
+ calendar: Hn,
847
+ longDateFormat: $n,
848
+ invalidDate: Gn,
849
+ ordinal: Zn,
850
+ dayOfMonthOrdinalParse: qn,
851
+ relativeTime: Qn,
852
+ months: dr,
853
+ monthsShort: xs,
854
+ week: Or,
855
+ weekdays: Yr,
856
+ weekdaysMin: Er,
857
+ weekdaysShort: Ps,
858
+ meridiemParse: qr
859
+ }, M = {}, We = {}, Ue;
860
+ function Jr(e, t) {
861
+ var s, n = Math.min(e.length, t.length);
862
+ for (s = 0; s < n; s += 1)
863
+ if (e[s] !== t[s])
864
+ return s;
865
+ return n;
866
+ }
867
+ function ls(e) {
868
+ return e && e.toLowerCase().replace("_", "-");
869
+ }
870
+ function Xr(e) {
871
+ for (var t = 0, s, n, r, i; t < e.length; ) {
872
+ for (i = ls(e[t]).split("-"), s = i.length, n = ls(e[t + 1]), n = n ? n.split("-") : null; s > 0; ) {
873
+ if (r = mt(i.slice(0, s).join("-")), r)
874
+ return r;
875
+ if (n && n.length >= s && Jr(i, n) >= s - 1)
876
+ break;
877
+ s--;
878
+ }
879
+ t++;
880
+ }
881
+ return Ue;
882
+ }
883
+ function ei(e) {
884
+ return e.match("^[^/\\\\]*$") != null;
885
+ }
886
+ function mt(e) {
887
+ var t = null, s;
888
+ if (M[e] === void 0 && typeof module < "u" && module && module.exports && ei(e))
889
+ try {
890
+ t = Ue._abbr, s = require, s("./locale/" + e), me(t);
891
+ } catch {
892
+ M[e] = null;
893
+ }
894
+ return M[e];
895
+ }
896
+ function me(e, t) {
897
+ var s;
898
+ return e && (W(t) ? s = ce(e) : s = zt(e, t), s ? Ue = s : typeof console < "u" && console.warn && console.warn(
899
+ "Locale " + e + " not found. Did you forget to load it?"
900
+ )), Ue._abbr;
901
+ }
902
+ function zt(e, t) {
903
+ if (t !== null) {
904
+ var s, n = Hs;
905
+ if (t.abbr = e, M[e] != null)
906
+ Ss(
907
+ "defineLocaleOverride",
908
+ "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
909
+ ), n = M[e]._config;
910
+ else if (t.parentLocale != null)
911
+ if (M[t.parentLocale] != null)
912
+ n = M[t.parentLocale]._config;
913
+ else if (s = mt(t.parentLocale), s != null)
914
+ n = s._config;
915
+ else
916
+ return We[t.parentLocale] || (We[t.parentLocale] = []), We[t.parentLocale].push({
917
+ name: e,
918
+ config: t
919
+ }), null;
920
+ return M[e] = new Ft(Ct(n, t)), We[e] && We[e].forEach(function(r) {
921
+ zt(r.name, r.config);
922
+ }), me(e), M[e];
923
+ } else
924
+ return delete M[e], null;
925
+ }
926
+ function ti(e, t) {
927
+ if (t != null) {
928
+ var s, n, r = Hs;
929
+ M[e] != null && M[e].parentLocale != null ? M[e].set(Ct(M[e]._config, t)) : (n = mt(e), n != null && (r = n._config), t = Ct(r, t), n == null && (t.abbr = e), s = new Ft(t), s.parentLocale = M[e], M[e] = s), me(e);
930
+ } else
931
+ M[e] != null && (M[e].parentLocale != null ? (M[e] = M[e].parentLocale, e === me() && me(e)) : M[e] != null && delete M[e]);
932
+ return M[e];
933
+ }
934
+ function ce(e) {
935
+ var t;
936
+ if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
937
+ return Ue;
938
+ if (!G(e)) {
939
+ if (t = mt(e), t)
940
+ return t;
941
+ e = [e];
942
+ }
943
+ return Xr(e);
944
+ }
945
+ function si() {
946
+ return Tt(M);
947
+ }
948
+ function Zt(e) {
949
+ var t, s = e._a;
950
+ return s && p(e).overflow === -2 && (t = s[re] < 0 || s[re] > 11 ? re : s[Q] < 1 || s[Q] > _t(s[x], s[re]) ? Q : s[N] < 0 || s[N] > 24 || s[N] === 24 && (s[$] !== 0 || s[ie] !== 0 || s[ye] !== 0) ? N : s[$] < 0 || s[$] > 59 ? $ : s[ie] < 0 || s[ie] > 59 ? ie : s[ye] < 0 || s[ye] > 999 ? ye : -1, p(e)._overflowDayOfYear && (t < x || t > Q) && (t = Q), p(e)._overflowWeeks && t === -1 && (t = cr), p(e)._overflowWeekday && t === -1 && (t = lr), p(e).overflow = t), e;
951
+ }
952
+ var ni = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ri = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ii = /Z|[+-]\d\d(?::?\d\d)?/, Ze = [
953
+ ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
954
+ ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
955
+ ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
956
+ ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
957
+ ["YYYY-DDD", /\d{4}-\d{3}/],
958
+ ["YYYY-MM", /\d{4}-\d\d/, !1],
959
+ ["YYYYYYMMDD", /[+-]\d{10}/],
960
+ ["YYYYMMDD", /\d{8}/],
961
+ ["GGGG[W]WWE", /\d{4}W\d{3}/],
962
+ ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
963
+ ["YYYYDDD", /\d{7}/],
964
+ ["YYYYMM", /\d{6}/, !1],
965
+ ["YYYY", /\d{4}/, !1]
966
+ ], kt = [
967
+ ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
968
+ ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
969
+ ["HH:mm:ss", /\d\d:\d\d:\d\d/],
970
+ ["HH:mm", /\d\d:\d\d/],
971
+ ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
972
+ ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
973
+ ["HHmmss", /\d\d\d\d\d\d/],
974
+ ["HHmm", /\d\d\d\d/],
975
+ ["HH", /\d\d/]
976
+ ], ai = /^\/?Date\((-?\d+)/i, oi = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, ci = {
977
+ UT: 0,
978
+ GMT: 0,
979
+ EDT: -4 * 60,
980
+ EST: -5 * 60,
981
+ CDT: -5 * 60,
982
+ CST: -6 * 60,
983
+ MDT: -6 * 60,
984
+ MST: -7 * 60,
985
+ PDT: -7 * 60,
986
+ PST: -8 * 60
987
+ };
988
+ function Vs(e) {
989
+ var t, s, n = e._i, r = ni.exec(n) || ri.exec(n), i, a, o, c, f = Ze.length, h = kt.length;
990
+ if (r) {
991
+ for (p(e).iso = !0, t = 0, s = f; t < s; t++)
992
+ if (Ze[t][1].exec(r[1])) {
993
+ a = Ze[t][0], i = Ze[t][2] !== !1;
994
+ break;
995
+ }
996
+ if (a == null) {
997
+ e._isValid = !1;
998
+ return;
999
+ }
1000
+ if (r[3]) {
1001
+ for (t = 0, s = h; t < s; t++)
1002
+ if (kt[t][1].exec(r[3])) {
1003
+ o = (r[2] || " ") + kt[t][0];
1004
+ break;
1005
+ }
1006
+ if (o == null) {
1007
+ e._isValid = !1;
1008
+ return;
1009
+ }
1010
+ }
1011
+ if (!i && o != null) {
1012
+ e._isValid = !1;
1013
+ return;
1014
+ }
1015
+ if (r[4])
1016
+ if (ii.exec(r[4]))
1017
+ c = "Z";
1018
+ else {
1019
+ e._isValid = !1;
1020
+ return;
1021
+ }
1022
+ e._f = a + (o || "") + (c || ""), Kt(e);
1023
+ } else
1024
+ e._isValid = !1;
1025
+ }
1026
+ function li(e, t, s, n, r, i) {
1027
+ var a = [
1028
+ ui(e),
1029
+ xs.indexOf(t),
1030
+ parseInt(s, 10),
1031
+ parseInt(n, 10),
1032
+ parseInt(r, 10)
1033
+ ];
1034
+ return i && a.push(parseInt(i, 10)), a;
1035
+ }
1036
+ function ui(e) {
1037
+ var t = parseInt(e, 10);
1038
+ return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
1039
+ }
1040
+ function di(e) {
1041
+ return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
1042
+ }
1043
+ function hi(e, t, s) {
1044
+ if (e) {
1045
+ var n = Ps.indexOf(e), r = new Date(
1046
+ t[0],
1047
+ t[1],
1048
+ t[2]
1049
+ ).getDay();
1050
+ if (n !== r)
1051
+ return p(s).weekdayMismatch = !0, s._isValid = !1, !1;
1052
+ }
1053
+ return !0;
1054
+ }
1055
+ function fi(e, t, s) {
1056
+ if (e)
1057
+ return ci[e];
1058
+ if (t)
1059
+ return 0;
1060
+ var n = parseInt(s, 10), r = n % 100, i = (n - r) / 100;
1061
+ return i * 60 + r;
1062
+ }
1063
+ function Us(e) {
1064
+ var t = oi.exec(di(e._i)), s;
1065
+ if (t) {
1066
+ if (s = li(
1067
+ t[4],
1068
+ t[3],
1069
+ t[2],
1070
+ t[5],
1071
+ t[6],
1072
+ t[7]
1073
+ ), !hi(t[1], s, e))
1074
+ return;
1075
+ e._a = s, e._tzm = fi(t[8], t[9], t[10]), e._d = He.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), p(e).rfc2822 = !0;
1076
+ } else
1077
+ e._isValid = !1;
1078
+ }
1079
+ function _i(e) {
1080
+ var t = ai.exec(e._i);
1081
+ if (t !== null) {
1082
+ e._d = /* @__PURE__ */ new Date(+t[1]);
1083
+ return;
1084
+ }
1085
+ if (Vs(e), e._isValid === !1)
1086
+ delete e._isValid;
1087
+ else
1088
+ return;
1089
+ if (Us(e), e._isValid === !1)
1090
+ delete e._isValid;
1091
+ else
1092
+ return;
1093
+ e._strict ? e._isValid = !1 : u.createFromInputFallback(e);
1094
+ }
1095
+ u.createFromInputFallback = U(
1096
+ "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
1097
+ function(e) {
1098
+ e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
1099
+ }
1100
+ );
1101
+ function Ce(e, t, s) {
1102
+ return e ?? t ?? s;
1103
+ }
1104
+ function mi(e) {
1105
+ var t = new Date(u.now());
1106
+ return e._useUTC ? [
1107
+ t.getUTCFullYear(),
1108
+ t.getUTCMonth(),
1109
+ t.getUTCDate()
1110
+ ] : [t.getFullYear(), t.getMonth(), t.getDate()];
1111
+ }
1112
+ function qt(e) {
1113
+ var t, s, n = [], r, i, a;
1114
+ if (!e._d) {
1115
+ for (r = mi(e), e._w && e._a[Q] == null && e._a[re] == null && pi(e), e._dayOfYear != null && (a = Ce(e._a[x], r[x]), (e._dayOfYear > Fe(a) || e._dayOfYear === 0) && (p(e)._overflowDayOfYear = !0), s = He(a, 0, e._dayOfYear), e._a[re] = s.getUTCMonth(), e._a[Q] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1116
+ e._a[t] = n[t] = r[t];
1117
+ for (; t < 7; t++)
1118
+ e._a[t] = n[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
1119
+ e._a[N] === 24 && e._a[$] === 0 && e._a[ie] === 0 && e._a[ye] === 0 && (e._nextDay = !0, e._a[N] = 0), e._d = (e._useUTC ? He : Sr).apply(
1120
+ null,
1121
+ n
1122
+ ), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[N] = 24), e._w && typeof e._w.d < "u" && e._w.d !== i && (p(e).weekdayMismatch = !0);
1123
+ }
1124
+ }
1125
+ function pi(e) {
1126
+ var t, s, n, r, i, a, o, c, f;
1127
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (i = 1, a = 4, s = Ce(
1128
+ t.GG,
1129
+ e._a[x],
1130
+ Ve(O(), 1, 4).year
1131
+ ), n = Ce(t.W, 1), r = Ce(t.E, 1), (r < 1 || r > 7) && (c = !0)) : (i = e._locale._week.dow, a = e._locale._week.doy, f = Ve(O(), i, a), s = Ce(t.gg, e._a[x], f.year), n = Ce(t.w, f.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (c = !0)) : t.e != null ? (r = t.e + i, (t.e < 0 || t.e > 6) && (c = !0)) : r = i), n < 1 || n > ae(s, i, a) ? p(e)._overflowWeeks = !0 : c != null ? p(e)._overflowWeekday = !0 : (o = Ls(s, n, r, i, a), e._a[x] = o.year, e._dayOfYear = o.dayOfYear);
1132
+ }
1133
+ u.ISO_8601 = function() {
1134
+ };
1135
+ u.RFC_2822 = function() {
1136
+ };
1137
+ function Kt(e) {
1138
+ if (e._f === u.ISO_8601) {
1139
+ Vs(e);
1140
+ return;
1141
+ }
1142
+ if (e._f === u.RFC_2822) {
1143
+ Us(e);
1144
+ return;
1145
+ }
1146
+ e._a = [], p(e).empty = !0;
1147
+ var t = "" + e._i, s, n, r, i, a, o = t.length, c = 0, f, h;
1148
+ for (r = ks(e._f, e._locale).match(Ht) || [], h = r.length, s = 0; s < h; s++)
1149
+ i = r[s], n = (t.match(ir(i, e)) || [])[0], n && (a = t.substr(0, t.indexOf(n)), a.length > 0 && p(e).unusedInput.push(a), t = t.slice(
1150
+ t.indexOf(n) + n.length
1151
+ ), c += n.length), Ne[i] ? (n ? p(e).empty = !1 : p(e).unusedTokens.push(i), or(i, n, e)) : e._strict && !n && p(e).unusedTokens.push(i);
1152
+ p(e).charsLeftOver = o - c, t.length > 0 && p(e).unusedInput.push(t), e._a[N] <= 12 && p(e).bigHour === !0 && e._a[N] > 0 && (p(e).bigHour = void 0), p(e).parsedDateParts = e._a.slice(0), p(e).meridiem = e._meridiem, e._a[N] = yi(
1153
+ e._locale,
1154
+ e._a[N],
1155
+ e._meridiem
1156
+ ), f = p(e).era, f !== null && (e._a[x] = e._locale.erasConvertYear(f, e._a[x])), qt(e), Zt(e);
1157
+ }
1158
+ function yi(e, t, s) {
1159
+ var n;
1160
+ return s == null ? t : e.meridiemHour != null ? e.meridiemHour(t, s) : (e.isPM != null && (n = e.isPM(s), n && t < 12 && (t += 12), !n && t === 12 && (t = 0)), t);
1161
+ }
1162
+ function gi(e) {
1163
+ var t, s, n, r, i, a, o = !1, c = e._f.length;
1164
+ if (c === 0) {
1165
+ p(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
1166
+ return;
1167
+ }
1168
+ for (r = 0; r < c; r++)
1169
+ i = 0, a = !1, t = At({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Kt(t), Pt(t) && (a = !0), i += p(t).charsLeftOver, i += p(t).unusedTokens.length * 10, p(t).score = i, o ? i < n && (n = i, s = t) : (n == null || i < n || a) && (n = i, s = t, a && (o = !0));
1170
+ fe(e, s || t);
1171
+ }
1172
+ function vi(e) {
1173
+ if (!e._d) {
1174
+ var t = Vt(e._i), s = t.day === void 0 ? t.date : t.day;
1175
+ e._a = ws(
1176
+ [t.year, t.month, s, t.hour, t.minute, t.second, t.millisecond],
1177
+ function(n) {
1178
+ return n && parseInt(n, 10);
1179
+ }
1180
+ ), qt(e);
1181
+ }
1182
+ }
1183
+ function wi(e) {
1184
+ var t = new $e(Zt(Bs(e)));
1185
+ return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
1186
+ }
1187
+ function Bs(e) {
1188
+ var t = e._i, s = e._f;
1189
+ return e._locale = e._locale || ce(e._l), t === null || s === void 0 && t === "" ? ot({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), z(t) ? new $e(Zt(t)) : (Be(t) ? e._d = t : G(s) ? gi(e) : s ? Kt(e) : bi(e), Pt(e) || (e._d = null), e));
1190
+ }
1191
+ function bi(e) {
1192
+ var t = e._i;
1193
+ W(t) ? e._d = new Date(u.now()) : Be(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? _i(e) : G(t) ? (e._a = ws(t.slice(0), function(s) {
1194
+ return parseInt(s, 10);
1195
+ }), qt(e)) : ge(t) ? vi(e) : oe(t) ? e._d = new Date(t) : u.createFromInputFallback(e);
1196
+ }
1197
+ function $s(e, t, s, n, r) {
1198
+ var i = {};
1199
+ return (t === !0 || t === !1) && (n = t, t = void 0), (s === !0 || s === !1) && (n = s, s = void 0), (ge(e) && Lt(e) || G(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = r, i._l = s, i._i = e, i._f = t, i._strict = n, wi(i);
1200
+ }
1201
+ function O(e, t, s, n) {
1202
+ return $s(e, t, s, n, !1);
1203
+ }
1204
+ var Si = U(
1205
+ "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
1206
+ function() {
1207
+ var e = O.apply(null, arguments);
1208
+ return this.isValid() && e.isValid() ? e < this ? this : e : ot();
1209
+ }
1210
+ ), ki = U(
1211
+ "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
1212
+ function() {
1213
+ var e = O.apply(null, arguments);
1214
+ return this.isValid() && e.isValid() ? e > this ? this : e : ot();
1215
+ }
1216
+ );
1217
+ function js(e, t) {
1218
+ var s, n;
1219
+ if (t.length === 1 && G(t[0]) && (t = t[0]), !t.length)
1220
+ return O();
1221
+ for (s = t[0], n = 1; n < t.length; ++n)
1222
+ (!t[n].isValid() || t[n][e](s)) && (s = t[n]);
1223
+ return s;
1224
+ }
1225
+ function Oi() {
1226
+ var e = [].slice.call(arguments, 0);
1227
+ return js("isBefore", e);
1228
+ }
1229
+ function Di() {
1230
+ var e = [].slice.call(arguments, 0);
1231
+ return js("isAfter", e);
1232
+ }
1233
+ var Mi = function() {
1234
+ return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
1235
+ }, Re = [
1236
+ "year",
1237
+ "quarter",
1238
+ "month",
1239
+ "week",
1240
+ "day",
1241
+ "hour",
1242
+ "minute",
1243
+ "second",
1244
+ "millisecond"
1245
+ ];
1246
+ function Ci(e) {
1247
+ var t, s = !1, n, r = Re.length;
1248
+ for (t in e)
1249
+ if (w(e, t) && !(T.call(Re, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
1250
+ return !1;
1251
+ for (n = 0; n < r; ++n)
1252
+ if (e[Re[n]]) {
1253
+ if (s)
1254
+ return !1;
1255
+ parseFloat(e[Re[n]]) !== y(e[Re[n]]) && (s = !0);
1256
+ }
1257
+ return !0;
1258
+ }
1259
+ function Ti() {
1260
+ return this._isValid;
1261
+ }
1262
+ function Ni() {
1263
+ return q(NaN);
1264
+ }
1265
+ function pt(e) {
1266
+ var t = Vt(e), s = t.year || 0, n = t.quarter || 0, r = t.month || 0, i = t.week || t.isoWeek || 0, a = t.day || 0, o = t.hour || 0, c = t.minute || 0, f = t.second || 0, h = t.millisecond || 0;
1267
+ this._isValid = Ci(t), this._milliseconds = +h + f * 1e3 + // 1000
1268
+ c * 6e4 + // 1000 * 60
1269
+ o * 1e3 * 60 * 60, this._days = +a + i * 7, this._months = +r + n * 3 + s * 12, this._data = {}, this._locale = ce(), this._bubble();
1270
+ }
1271
+ function Je(e) {
1272
+ return e instanceof pt;
1273
+ }
1274
+ function xt(e) {
1275
+ return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
1276
+ }
1277
+ function xi(e, t, s) {
1278
+ var n = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), i = 0, a;
1279
+ for (a = 0; a < n; a++)
1280
+ (s && e[a] !== t[a] || !s && y(e[a]) !== y(t[a])) && i++;
1281
+ return i + r;
1282
+ }
1283
+ function Gs(e, t) {
1284
+ _(e, 0, 0, function() {
1285
+ var s = this.utcOffset(), n = "+";
1286
+ return s < 0 && (s = -s, n = "-"), n + J(~~(s / 60), 2) + t + J(~~s % 60, 2);
1287
+ });
1288
+ }
1289
+ Gs("Z", ":");
1290
+ Gs("ZZ", "");
1291
+ d("Z", ft);
1292
+ d("ZZ", ft);
1293
+ S(["Z", "ZZ"], function(e, t, s) {
1294
+ s._useUTC = !0, s._tzm = Qt(ft, e);
1295
+ });
1296
+ var Yi = /([\+\-]|\d\d)/gi;
1297
+ function Qt(e, t) {
1298
+ var s = (t || "").match(e), n, r, i;
1299
+ return s === null ? null : (n = s[s.length - 1] || [], r = (n + "").match(Yi) || ["-", 0, 0], i = +(r[1] * 60) + y(r[2]), i === 0 ? 0 : r[0] === "+" ? i : -i);
1300
+ }
1301
+ function Jt(e, t) {
1302
+ var s, n;
1303
+ return t._isUTC ? (s = t.clone(), n = (z(e) || Be(e) ? e.valueOf() : O(e).valueOf()) - s.valueOf(), s._d.setTime(s._d.valueOf() + n), u.updateOffset(s, !1), s) : O(e).local();
1304
+ }
1305
+ function Yt(e) {
1306
+ return -Math.round(e._d.getTimezoneOffset());
1307
+ }
1308
+ u.updateOffset = function() {
1309
+ };
1310
+ function Ei(e, t, s) {
1311
+ var n = this._offset || 0, r;
1312
+ if (!this.isValid())
1313
+ return e != null ? this : NaN;
1314
+ if (e != null) {
1315
+ if (typeof e == "string") {
1316
+ if (e = Qt(ft, e), e === null)
1317
+ return this;
1318
+ } else
1319
+ Math.abs(e) < 16 && !s && (e = e * 60);
1320
+ return !this._isUTC && t && (r = Yt(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), n !== e && (!t || this._changeInProgress ? qs(
1321
+ this,
1322
+ q(e - n, "m"),
1323
+ 1,
1324
+ !1
1325
+ ) : this._changeInProgress || (this._changeInProgress = !0, u.updateOffset(this, !0), this._changeInProgress = null)), this;
1326
+ } else
1327
+ return this._isUTC ? n : Yt(this);
1328
+ }
1329
+ function Ii(e, t) {
1330
+ return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
1331
+ }
1332
+ function Wi(e) {
1333
+ return this.utcOffset(0, e);
1334
+ }
1335
+ function Ri(e) {
1336
+ return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Yt(this), "m")), this;
1337
+ }
1338
+ function Li() {
1339
+ if (this._tzm != null)
1340
+ this.utcOffset(this._tzm, !1, !0);
1341
+ else if (typeof this._i == "string") {
1342
+ var e = Qt(nr, this._i);
1343
+ e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
1344
+ }
1345
+ return this;
1346
+ }
1347
+ function Pi(e) {
1348
+ return this.isValid() ? (e = e ? O(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
1349
+ }
1350
+ function Ai() {
1351
+ return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
1352
+ }
1353
+ function Fi() {
1354
+ if (!W(this._isDSTShifted))
1355
+ return this._isDSTShifted;
1356
+ var e = {}, t;
1357
+ return At(e, this), e = Bs(e), e._a ? (t = e._isUTC ? X(e._a) : O(e._a), this._isDSTShifted = this.isValid() && xi(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
1358
+ }
1359
+ function Hi() {
1360
+ return this.isValid() ? !this._isUTC : !1;
1361
+ }
1362
+ function Vi() {
1363
+ return this.isValid() ? this._isUTC : !1;
1364
+ }
1365
+ function zs() {
1366
+ return this.isValid() ? this._isUTC && this._offset === 0 : !1;
1367
+ }
1368
+ var Ui = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Bi = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
1369
+ function q(e, t) {
1370
+ var s = e, n = null, r, i, a;
1371
+ return Je(e) ? s = {
1372
+ ms: e._milliseconds,
1373
+ d: e._days,
1374
+ M: e._months
1375
+ } : oe(e) || !isNaN(+e) ? (s = {}, t ? s[t] = +e : s.milliseconds = +e) : (n = Ui.exec(e)) ? (r = n[1] === "-" ? -1 : 1, s = {
1376
+ y: 0,
1377
+ d: y(n[Q]) * r,
1378
+ h: y(n[N]) * r,
1379
+ m: y(n[$]) * r,
1380
+ s: y(n[ie]) * r,
1381
+ ms: y(xt(n[ye] * 1e3)) * r
1382
+ // the millisecond decimal point is included in the match
1383
+ }) : (n = Bi.exec(e)) ? (r = n[1] === "-" ? -1 : 1, s = {
1384
+ y: pe(n[2], r),
1385
+ M: pe(n[3], r),
1386
+ w: pe(n[4], r),
1387
+ d: pe(n[5], r),
1388
+ h: pe(n[6], r),
1389
+ m: pe(n[7], r),
1390
+ s: pe(n[8], r)
1391
+ }) : s == null ? s = {} : typeof s == "object" && ("from" in s || "to" in s) && (a = $i(
1392
+ O(s.from),
1393
+ O(s.to)
1394
+ ), s = {}, s.ms = a.milliseconds, s.M = a.months), i = new pt(s), Je(e) && w(e, "_locale") && (i._locale = e._locale), Je(e) && w(e, "_isValid") && (i._isValid = e._isValid), i;
1395
+ }
1396
+ q.fn = pt.prototype;
1397
+ q.invalid = Ni;
1398
+ function pe(e, t) {
1399
+ var s = e && parseFloat(e.replace(",", "."));
1400
+ return (isNaN(s) ? 0 : s) * t;
1401
+ }
1402
+ function us(e, t) {
1403
+ var s = {};
1404
+ return s.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(s.months, "M").isAfter(t) && --s.months, s.milliseconds = +t - +e.clone().add(s.months, "M"), s;
1405
+ }
1406
+ function $i(e, t) {
1407
+ var s;
1408
+ return e.isValid() && t.isValid() ? (t = Jt(t, e), e.isBefore(t) ? s = us(e, t) : (s = us(t, e), s.milliseconds = -s.milliseconds, s.months = -s.months), s) : { milliseconds: 0, months: 0 };
1409
+ }
1410
+ function Zs(e, t) {
1411
+ return function(s, n) {
1412
+ var r, i;
1413
+ return n !== null && !isNaN(+n) && (Ss(
1414
+ t,
1415
+ "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
1416
+ ), i = s, s = n, n = i), r = q(s, n), qs(this, r, e), this;
1417
+ };
1418
+ }
1419
+ function qs(e, t, s, n) {
1420
+ var r = t._milliseconds, i = xt(t._days), a = xt(t._months);
1421
+ e.isValid() && (n = n ?? !0, a && Es(e, et(e, "Month") + a * s), i && Ds(e, "Date", et(e, "Date") + i * s), r && e._d.setTime(e._d.valueOf() + r * s), n && u.updateOffset(e, i || a));
1422
+ }
1423
+ var ji = Zs(1, "add"), Gi = Zs(-1, "subtract");
1424
+ function Ks(e) {
1425
+ return typeof e == "string" || e instanceof String;
1426
+ }
1427
+ function zi(e) {
1428
+ return z(e) || Be(e) || Ks(e) || oe(e) || qi(e) || Zi(e) || e === null || e === void 0;
1429
+ }
1430
+ function Zi(e) {
1431
+ var t = ge(e) && !Lt(e), s = !1, n = [
1432
+ "years",
1433
+ "year",
1434
+ "y",
1435
+ "months",
1436
+ "month",
1437
+ "M",
1438
+ "days",
1439
+ "day",
1440
+ "d",
1441
+ "dates",
1442
+ "date",
1443
+ "D",
1444
+ "hours",
1445
+ "hour",
1446
+ "h",
1447
+ "minutes",
1448
+ "minute",
1449
+ "m",
1450
+ "seconds",
1451
+ "second",
1452
+ "s",
1453
+ "milliseconds",
1454
+ "millisecond",
1455
+ "ms"
1456
+ ], r, i, a = n.length;
1457
+ for (r = 0; r < a; r += 1)
1458
+ i = n[r], s = s || w(e, i);
1459
+ return t && s;
1460
+ }
1461
+ function qi(e) {
1462
+ var t = G(e), s = !1;
1463
+ return t && (s = e.filter(function(n) {
1464
+ return !oe(n) && Ks(e);
1465
+ }).length === 0), t && s;
1466
+ }
1467
+ function Ki(e) {
1468
+ var t = ge(e) && !Lt(e), s = !1, n = [
1469
+ "sameDay",
1470
+ "nextDay",
1471
+ "lastDay",
1472
+ "nextWeek",
1473
+ "lastWeek",
1474
+ "sameElse"
1475
+ ], r, i;
1476
+ for (r = 0; r < n.length; r += 1)
1477
+ i = n[r], s = s || w(e, i);
1478
+ return t && s;
1479
+ }
1480
+ function Qi(e, t) {
1481
+ var s = e.diff(t, "days", !0);
1482
+ return s < -6 ? "sameElse" : s < -1 ? "lastWeek" : s < 0 ? "lastDay" : s < 1 ? "sameDay" : s < 2 ? "nextDay" : s < 7 ? "nextWeek" : "sameElse";
1483
+ }
1484
+ function Ji(e, t) {
1485
+ arguments.length === 1 && (arguments[0] ? zi(arguments[0]) ? (e = arguments[0], t = void 0) : Ki(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
1486
+ var s = e || O(), n = Jt(s, this).startOf("day"), r = u.calendarFormat(this, n) || "sameElse", i = t && (ee(t[r]) ? t[r].call(this, s) : t[r]);
1487
+ return this.format(
1488
+ i || this.localeData().calendar(r, this, O(s))
1489
+ );
1490
+ }
1491
+ function Xi() {
1492
+ return new $e(this);
1493
+ }
1494
+ function ea(e, t) {
1495
+ var s = z(e) ? e : O(e);
1496
+ return this.isValid() && s.isValid() ? (t = B(t) || "millisecond", t === "millisecond" ? this.valueOf() > s.valueOf() : s.valueOf() < this.clone().startOf(t).valueOf()) : !1;
1497
+ }
1498
+ function ta(e, t) {
1499
+ var s = z(e) ? e : O(e);
1500
+ return this.isValid() && s.isValid() ? (t = B(t) || "millisecond", t === "millisecond" ? this.valueOf() < s.valueOf() : this.clone().endOf(t).valueOf() < s.valueOf()) : !1;
1501
+ }
1502
+ function sa(e, t, s, n) {
1503
+ var r = z(e) ? e : O(e), i = z(t) ? t : O(t);
1504
+ return this.isValid() && r.isValid() && i.isValid() ? (n = n || "()", (n[0] === "(" ? this.isAfter(r, s) : !this.isBefore(r, s)) && (n[1] === ")" ? this.isBefore(i, s) : !this.isAfter(i, s))) : !1;
1505
+ }
1506
+ function na(e, t) {
1507
+ var s = z(e) ? e : O(e), n;
1508
+ return this.isValid() && s.isValid() ? (t = B(t) || "millisecond", t === "millisecond" ? this.valueOf() === s.valueOf() : (n = s.valueOf(), this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf())) : !1;
1509
+ }
1510
+ function ra(e, t) {
1511
+ return this.isSame(e, t) || this.isAfter(e, t);
1512
+ }
1513
+ function ia(e, t) {
1514
+ return this.isSame(e, t) || this.isBefore(e, t);
1515
+ }
1516
+ function aa(e, t, s) {
1517
+ var n, r, i;
1518
+ if (!this.isValid())
1519
+ return NaN;
1520
+ if (n = Jt(e, this), !n.isValid())
1521
+ return NaN;
1522
+ switch (r = (n.utcOffset() - this.utcOffset()) * 6e4, t = B(t), t) {
1523
+ case "year":
1524
+ i = Xe(this, n) / 12;
1525
+ break;
1526
+ case "month":
1527
+ i = Xe(this, n);
1528
+ break;
1529
+ case "quarter":
1530
+ i = Xe(this, n) / 3;
1531
+ break;
1532
+ case "second":
1533
+ i = (this - n) / 1e3;
1534
+ break;
1535
+ case "minute":
1536
+ i = (this - n) / 6e4;
1537
+ break;
1538
+ case "hour":
1539
+ i = (this - n) / 36e5;
1540
+ break;
1541
+ case "day":
1542
+ i = (this - n - r) / 864e5;
1543
+ break;
1544
+ case "week":
1545
+ i = (this - n - r) / 6048e5;
1546
+ break;
1547
+ default:
1548
+ i = this - n;
1549
+ }
1550
+ return s ? i : H(i);
1551
+ }
1552
+ function Xe(e, t) {
1553
+ if (e.date() < t.date())
1554
+ return -Xe(t, e);
1555
+ var s = (t.year() - e.year()) * 12 + (t.month() - e.month()), n = e.clone().add(s, "months"), r, i;
1556
+ return t - n < 0 ? (r = e.clone().add(s - 1, "months"), i = (t - n) / (n - r)) : (r = e.clone().add(s + 1, "months"), i = (t - n) / (r - n)), -(s + i) || 0;
1557
+ }
1558
+ u.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
1559
+ u.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
1560
+ function oa() {
1561
+ return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
1562
+ }
1563
+ function ca(e) {
1564
+ if (!this.isValid())
1565
+ return null;
1566
+ var t = e !== !0, s = t ? this.clone().utc() : this;
1567
+ return s.year() < 0 || s.year() > 9999 ? Qe(
1568
+ s,
1569
+ t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
1570
+ ) : ee(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Qe(s, "Z")) : Qe(
1571
+ s,
1572
+ t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
1573
+ );
1574
+ }
1575
+ function la() {
1576
+ if (!this.isValid())
1577
+ return "moment.invalid(/* " + this._i + " */)";
1578
+ var e = "moment", t = "", s, n, r, i;
1579
+ return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), s = "[" + e + '("]', n = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", r = "-MM-DD[T]HH:mm:ss.SSS", i = t + '[")]', this.format(s + n + r + i);
1580
+ }
1581
+ function ua(e) {
1582
+ e || (e = this.isUtc() ? u.defaultFormatUtc : u.defaultFormat);
1583
+ var t = Qe(this, e);
1584
+ return this.localeData().postformat(t);
1585
+ }
1586
+ function da(e, t) {
1587
+ return this.isValid() && (z(e) && e.isValid() || O(e).isValid()) ? q({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
1588
+ }
1589
+ function ha(e) {
1590
+ return this.from(O(), e);
1591
+ }
1592
+ function fa(e, t) {
1593
+ return this.isValid() && (z(e) && e.isValid() || O(e).isValid()) ? q({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
1594
+ }
1595
+ function _a(e) {
1596
+ return this.to(O(), e);
1597
+ }
1598
+ function Qs(e) {
1599
+ var t;
1600
+ return e === void 0 ? this._locale._abbr : (t = ce(e), t != null && (this._locale = t), this);
1601
+ }
1602
+ var Js = U(
1603
+ "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
1604
+ function(e) {
1605
+ return e === void 0 ? this.localeData() : this.locale(e);
1606
+ }
1607
+ );
1608
+ function Xs() {
1609
+ return this._locale;
1610
+ }
1611
+ var nt = 1e3, xe = 60 * nt, rt = 60 * xe, en = (365 * 400 + 97) * 24 * rt;
1612
+ function Ye(e, t) {
1613
+ return (e % t + t) % t;
1614
+ }
1615
+ function tn(e, t, s) {
1616
+ return e < 100 && e >= 0 ? new Date(e + 400, t, s) - en : new Date(e, t, s).valueOf();
1617
+ }
1618
+ function sn(e, t, s) {
1619
+ return e < 100 && e >= 0 ? Date.UTC(e + 400, t, s) - en : Date.UTC(e, t, s);
1620
+ }
1621
+ function ma(e) {
1622
+ var t, s;
1623
+ if (e = B(e), e === void 0 || e === "millisecond" || !this.isValid())
1624
+ return this;
1625
+ switch (s = this._isUTC ? sn : tn, e) {
1626
+ case "year":
1627
+ t = s(this.year(), 0, 1);
1628
+ break;
1629
+ case "quarter":
1630
+ t = s(
1631
+ this.year(),
1632
+ this.month() - this.month() % 3,
1633
+ 1
1634
+ );
1635
+ break;
1636
+ case "month":
1637
+ t = s(this.year(), this.month(), 1);
1638
+ break;
1639
+ case "week":
1640
+ t = s(
1641
+ this.year(),
1642
+ this.month(),
1643
+ this.date() - this.weekday()
1644
+ );
1645
+ break;
1646
+ case "isoWeek":
1647
+ t = s(
1648
+ this.year(),
1649
+ this.month(),
1650
+ this.date() - (this.isoWeekday() - 1)
1651
+ );
1652
+ break;
1653
+ case "day":
1654
+ case "date":
1655
+ t = s(this.year(), this.month(), this.date());
1656
+ break;
1657
+ case "hour":
1658
+ t = this._d.valueOf(), t -= Ye(
1659
+ t + (this._isUTC ? 0 : this.utcOffset() * xe),
1660
+ rt
1661
+ );
1662
+ break;
1663
+ case "minute":
1664
+ t = this._d.valueOf(), t -= Ye(t, xe);
1665
+ break;
1666
+ case "second":
1667
+ t = this._d.valueOf(), t -= Ye(t, nt);
1668
+ break;
1669
+ }
1670
+ return this._d.setTime(t), u.updateOffset(this, !0), this;
1671
+ }
1672
+ function pa(e) {
1673
+ var t, s;
1674
+ if (e = B(e), e === void 0 || e === "millisecond" || !this.isValid())
1675
+ return this;
1676
+ switch (s = this._isUTC ? sn : tn, e) {
1677
+ case "year":
1678
+ t = s(this.year() + 1, 0, 1) - 1;
1679
+ break;
1680
+ case "quarter":
1681
+ t = s(
1682
+ this.year(),
1683
+ this.month() - this.month() % 3 + 3,
1684
+ 1
1685
+ ) - 1;
1686
+ break;
1687
+ case "month":
1688
+ t = s(this.year(), this.month() + 1, 1) - 1;
1689
+ break;
1690
+ case "week":
1691
+ t = s(
1692
+ this.year(),
1693
+ this.month(),
1694
+ this.date() - this.weekday() + 7
1695
+ ) - 1;
1696
+ break;
1697
+ case "isoWeek":
1698
+ t = s(
1699
+ this.year(),
1700
+ this.month(),
1701
+ this.date() - (this.isoWeekday() - 1) + 7
1702
+ ) - 1;
1703
+ break;
1704
+ case "day":
1705
+ case "date":
1706
+ t = s(this.year(), this.month(), this.date() + 1) - 1;
1707
+ break;
1708
+ case "hour":
1709
+ t = this._d.valueOf(), t += rt - Ye(
1710
+ t + (this._isUTC ? 0 : this.utcOffset() * xe),
1711
+ rt
1712
+ ) - 1;
1713
+ break;
1714
+ case "minute":
1715
+ t = this._d.valueOf(), t += xe - Ye(t, xe) - 1;
1716
+ break;
1717
+ case "second":
1718
+ t = this._d.valueOf(), t += nt - Ye(t, nt) - 1;
1719
+ break;
1720
+ }
1721
+ return this._d.setTime(t), u.updateOffset(this, !0), this;
1722
+ }
1723
+ function ya() {
1724
+ return this._d.valueOf() - (this._offset || 0) * 6e4;
1725
+ }
1726
+ function ga() {
1727
+ return Math.floor(this.valueOf() / 1e3);
1728
+ }
1729
+ function va() {
1730
+ return new Date(this.valueOf());
1731
+ }
1732
+ function wa() {
1733
+ var e = this;
1734
+ return [
1735
+ e.year(),
1736
+ e.month(),
1737
+ e.date(),
1738
+ e.hour(),
1739
+ e.minute(),
1740
+ e.second(),
1741
+ e.millisecond()
1742
+ ];
1743
+ }
1744
+ function ba() {
1745
+ var e = this;
1746
+ return {
1747
+ years: e.year(),
1748
+ months: e.month(),
1749
+ date: e.date(),
1750
+ hours: e.hours(),
1751
+ minutes: e.minutes(),
1752
+ seconds: e.seconds(),
1753
+ milliseconds: e.milliseconds()
1754
+ };
1755
+ }
1756
+ function Sa() {
1757
+ return this.isValid() ? this.toISOString() : null;
1758
+ }
1759
+ function ka() {
1760
+ return Pt(this);
1761
+ }
1762
+ function Oa() {
1763
+ return fe({}, p(this));
1764
+ }
1765
+ function Da() {
1766
+ return p(this).overflow;
1767
+ }
1768
+ function Ma() {
1769
+ return {
1770
+ input: this._i,
1771
+ format: this._f,
1772
+ locale: this._locale,
1773
+ isUTC: this._isUTC,
1774
+ strict: this._strict
1775
+ };
1776
+ }
1777
+ _("N", 0, 0, "eraAbbr");
1778
+ _("NN", 0, 0, "eraAbbr");
1779
+ _("NNN", 0, 0, "eraAbbr");
1780
+ _("NNNN", 0, 0, "eraName");
1781
+ _("NNNNN", 0, 0, "eraNarrow");
1782
+ _("y", ["y", 1], "yo", "eraYear");
1783
+ _("y", ["yy", 2], 0, "eraYear");
1784
+ _("y", ["yyy", 3], 0, "eraYear");
1785
+ _("y", ["yyyy", 4], 0, "eraYear");
1786
+ d("N", Xt);
1787
+ d("NN", Xt);
1788
+ d("NNN", Xt);
1789
+ d("NNNN", Pa);
1790
+ d("NNNNN", Aa);
1791
+ S(
1792
+ ["N", "NN", "NNN", "NNNN", "NNNNN"],
1793
+ function(e, t, s, n) {
1794
+ var r = s._locale.erasParse(e, n, s._strict);
1795
+ r ? p(s).era = r : p(s).invalidEra = e;
1796
+ }
1797
+ );
1798
+ d("y", Ie);
1799
+ d("yy", Ie);
1800
+ d("yyy", Ie);
1801
+ d("yyyy", Ie);
1802
+ d("yo", Fa);
1803
+ S(["y", "yy", "yyy", "yyyy"], x);
1804
+ S(["yo"], function(e, t, s, n) {
1805
+ var r;
1806
+ s._locale._eraYearOrdinalRegex && (r = e.match(s._locale._eraYearOrdinalRegex)), s._locale.eraYearOrdinalParse ? t[x] = s._locale.eraYearOrdinalParse(e, r) : t[x] = parseInt(e, 10);
1807
+ });
1808
+ function Ca(e, t) {
1809
+ var s, n, r, i = this._eras || ce("en")._eras;
1810
+ for (s = 0, n = i.length; s < n; ++s) {
1811
+ switch (typeof i[s].since) {
1812
+ case "string":
1813
+ r = u(i[s].since).startOf("day"), i[s].since = r.valueOf();
1814
+ break;
1815
+ }
1816
+ switch (typeof i[s].until) {
1817
+ case "undefined":
1818
+ i[s].until = 1 / 0;
1819
+ break;
1820
+ case "string":
1821
+ r = u(i[s].until).startOf("day").valueOf(), i[s].until = r.valueOf();
1822
+ break;
1823
+ }
1824
+ }
1825
+ return i;
1826
+ }
1827
+ function Ta(e, t, s) {
1828
+ var n, r, i = this.eras(), a, o, c;
1829
+ for (e = e.toUpperCase(), n = 0, r = i.length; n < r; ++n)
1830
+ if (a = i[n].name.toUpperCase(), o = i[n].abbr.toUpperCase(), c = i[n].narrow.toUpperCase(), s)
1831
+ switch (t) {
1832
+ case "N":
1833
+ case "NN":
1834
+ case "NNN":
1835
+ if (o === e)
1836
+ return i[n];
1837
+ break;
1838
+ case "NNNN":
1839
+ if (a === e)
1840
+ return i[n];
1841
+ break;
1842
+ case "NNNNN":
1843
+ if (c === e)
1844
+ return i[n];
1845
+ break;
1846
+ }
1847
+ else if ([a, o, c].indexOf(e) >= 0)
1848
+ return i[n];
1849
+ }
1850
+ function Na(e, t) {
1851
+ var s = e.since <= e.until ? 1 : -1;
1852
+ return t === void 0 ? u(e.since).year() : u(e.since).year() + (t - e.offset) * s;
1853
+ }
1854
+ function xa() {
1855
+ var e, t, s, n = this.localeData().eras();
1856
+ for (e = 0, t = n.length; e < t; ++e)
1857
+ if (s = this.clone().startOf("day").valueOf(), n[e].since <= s && s <= n[e].until || n[e].until <= s && s <= n[e].since)
1858
+ return n[e].name;
1859
+ return "";
1860
+ }
1861
+ function Ya() {
1862
+ var e, t, s, n = this.localeData().eras();
1863
+ for (e = 0, t = n.length; e < t; ++e)
1864
+ if (s = this.clone().startOf("day").valueOf(), n[e].since <= s && s <= n[e].until || n[e].until <= s && s <= n[e].since)
1865
+ return n[e].narrow;
1866
+ return "";
1867
+ }
1868
+ function Ea() {
1869
+ var e, t, s, n = this.localeData().eras();
1870
+ for (e = 0, t = n.length; e < t; ++e)
1871
+ if (s = this.clone().startOf("day").valueOf(), n[e].since <= s && s <= n[e].until || n[e].until <= s && s <= n[e].since)
1872
+ return n[e].abbr;
1873
+ return "";
1874
+ }
1875
+ function Ia() {
1876
+ var e, t, s, n, r = this.localeData().eras();
1877
+ for (e = 0, t = r.length; e < t; ++e)
1878
+ if (s = r[e].since <= r[e].until ? 1 : -1, n = this.clone().startOf("day").valueOf(), r[e].since <= n && n <= r[e].until || r[e].until <= n && n <= r[e].since)
1879
+ return (this.year() - u(r[e].since).year()) * s + r[e].offset;
1880
+ return this.year();
1881
+ }
1882
+ function Wa(e) {
1883
+ return w(this, "_erasNameRegex") || es.call(this), e ? this._erasNameRegex : this._erasRegex;
1884
+ }
1885
+ function Ra(e) {
1886
+ return w(this, "_erasAbbrRegex") || es.call(this), e ? this._erasAbbrRegex : this._erasRegex;
1887
+ }
1888
+ function La(e) {
1889
+ return w(this, "_erasNarrowRegex") || es.call(this), e ? this._erasNarrowRegex : this._erasRegex;
1890
+ }
1891
+ function Xt(e, t) {
1892
+ return t.erasAbbrRegex(e);
1893
+ }
1894
+ function Pa(e, t) {
1895
+ return t.erasNameRegex(e);
1896
+ }
1897
+ function Aa(e, t) {
1898
+ return t.erasNarrowRegex(e);
1899
+ }
1900
+ function Fa(e, t) {
1901
+ return t._eraYearOrdinalRegex || Ie;
1902
+ }
1903
+ function es() {
1904
+ var e = [], t = [], s = [], n = [], r, i, a = this.eras();
1905
+ for (r = 0, i = a.length; r < i; ++r)
1906
+ t.push(L(a[r].name)), e.push(L(a[r].abbr)), s.push(L(a[r].narrow)), n.push(L(a[r].name)), n.push(L(a[r].abbr)), n.push(L(a[r].narrow));
1907
+ this._erasRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
1908
+ "^(" + s.join("|") + ")",
1909
+ "i"
1910
+ );
1911
+ }
1912
+ _(0, ["gg", 2], 0, function() {
1913
+ return this.weekYear() % 100;
1914
+ });
1915
+ _(0, ["GG", 2], 0, function() {
1916
+ return this.isoWeekYear() % 100;
1917
+ });
1918
+ function yt(e, t) {
1919
+ _(0, [e, e.length], 0, t);
1920
+ }
1921
+ yt("gggg", "weekYear");
1922
+ yt("ggggg", "weekYear");
1923
+ yt("GGGG", "isoWeekYear");
1924
+ yt("GGGGG", "isoWeekYear");
1925
+ Y("weekYear", "gg");
1926
+ Y("isoWeekYear", "GG");
1927
+ E("weekYear", 1);
1928
+ E("isoWeekYear", 1);
1929
+ d("G", ht);
1930
+ d("g", ht);
1931
+ d("GG", D, P);
1932
+ d("gg", D, P);
1933
+ d("GGGG", Bt, Ut);
1934
+ d("gggg", Bt, Ut);
1935
+ d("GGGGG", dt, lt);
1936
+ d("ggggg", dt, lt);
1937
+ Ge(
1938
+ ["gggg", "ggggg", "GGGG", "GGGGG"],
1939
+ function(e, t, s, n) {
1940
+ t[n.substr(0, 2)] = y(e);
1941
+ }
1942
+ );
1943
+ Ge(["gg", "GG"], function(e, t, s, n) {
1944
+ t[n] = u.parseTwoDigitYear(e);
1945
+ });
1946
+ function Ha(e) {
1947
+ return nn.call(
1948
+ this,
1949
+ e,
1950
+ this.week(),
1951
+ this.weekday(),
1952
+ this.localeData()._week.dow,
1953
+ this.localeData()._week.doy
1954
+ );
1955
+ }
1956
+ function Va(e) {
1957
+ return nn.call(
1958
+ this,
1959
+ e,
1960
+ this.isoWeek(),
1961
+ this.isoWeekday(),
1962
+ 1,
1963
+ 4
1964
+ );
1965
+ }
1966
+ function Ua() {
1967
+ return ae(this.year(), 1, 4);
1968
+ }
1969
+ function Ba() {
1970
+ return ae(this.isoWeekYear(), 1, 4);
1971
+ }
1972
+ function $a() {
1973
+ var e = this.localeData()._week;
1974
+ return ae(this.year(), e.dow, e.doy);
1975
+ }
1976
+ function ja() {
1977
+ var e = this.localeData()._week;
1978
+ return ae(this.weekYear(), e.dow, e.doy);
1979
+ }
1980
+ function nn(e, t, s, n, r) {
1981
+ var i;
1982
+ return e == null ? Ve(this, n, r).year : (i = ae(e, n, r), t > i && (t = i), Ga.call(this, e, t, s, n, r));
1983
+ }
1984
+ function Ga(e, t, s, n, r) {
1985
+ var i = Ls(e, t, s, n, r), a = He(i.year, 0, i.dayOfYear);
1986
+ return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
1987
+ }
1988
+ _("Q", 0, "Qo", "quarter");
1989
+ Y("quarter", "Q");
1990
+ E("quarter", 7);
1991
+ d("Q", Ms);
1992
+ S("Q", function(e, t) {
1993
+ t[re] = (y(e) - 1) * 3;
1994
+ });
1995
+ function za(e) {
1996
+ return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
1997
+ }
1998
+ _("D", ["DD", 2], "Do", "date");
1999
+ Y("date", "D");
2000
+ E("date", 9);
2001
+ d("D", D);
2002
+ d("DD", D, P);
2003
+ d("Do", function(e, t) {
2004
+ return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
2005
+ });
2006
+ S(["D", "DD"], Q);
2007
+ S("Do", function(e, t) {
2008
+ t[Q] = y(e.match(D)[0]);
2009
+ });
2010
+ var rn = Ee("Date", !0);
2011
+ _("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2012
+ Y("dayOfYear", "DDD");
2013
+ E("dayOfYear", 4);
2014
+ d("DDD", ut);
2015
+ d("DDDD", Cs);
2016
+ S(["DDD", "DDDD"], function(e, t, s) {
2017
+ s._dayOfYear = y(e);
2018
+ });
2019
+ function Za(e) {
2020
+ var t = Math.round(
2021
+ (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
2022
+ ) + 1;
2023
+ return e == null ? t : this.add(e - t, "d");
2024
+ }
2025
+ _("m", ["mm", 2], 0, "minute");
2026
+ Y("minute", "m");
2027
+ E("minute", 14);
2028
+ d("m", D);
2029
+ d("mm", D, P);
2030
+ S(["m", "mm"], $);
2031
+ var qa = Ee("Minutes", !1);
2032
+ _("s", ["ss", 2], 0, "second");
2033
+ Y("second", "s");
2034
+ E("second", 15);
2035
+ d("s", D);
2036
+ d("ss", D, P);
2037
+ S(["s", "ss"], ie);
2038
+ var Ka = Ee("Seconds", !1);
2039
+ _("S", 0, 0, function() {
2040
+ return ~~(this.millisecond() / 100);
2041
+ });
2042
+ _(0, ["SS", 2], 0, function() {
2043
+ return ~~(this.millisecond() / 10);
2044
+ });
2045
+ _(0, ["SSS", 3], 0, "millisecond");
2046
+ _(0, ["SSSS", 4], 0, function() {
2047
+ return this.millisecond() * 10;
2048
+ });
2049
+ _(0, ["SSSSS", 5], 0, function() {
2050
+ return this.millisecond() * 100;
2051
+ });
2052
+ _(0, ["SSSSSS", 6], 0, function() {
2053
+ return this.millisecond() * 1e3;
2054
+ });
2055
+ _(0, ["SSSSSSS", 7], 0, function() {
2056
+ return this.millisecond() * 1e4;
2057
+ });
2058
+ _(0, ["SSSSSSSS", 8], 0, function() {
2059
+ return this.millisecond() * 1e5;
2060
+ });
2061
+ _(0, ["SSSSSSSSS", 9], 0, function() {
2062
+ return this.millisecond() * 1e6;
2063
+ });
2064
+ Y("millisecond", "ms");
2065
+ E("millisecond", 16);
2066
+ d("S", ut, Ms);
2067
+ d("SS", ut, P);
2068
+ d("SSS", ut, Cs);
2069
+ var _e, an;
2070
+ for (_e = "SSSS"; _e.length <= 9; _e += "S")
2071
+ d(_e, Ie);
2072
+ function Qa(e, t) {
2073
+ t[ye] = y(("0." + e) * 1e3);
2074
+ }
2075
+ for (_e = "S"; _e.length <= 9; _e += "S")
2076
+ S(_e, Qa);
2077
+ an = Ee("Milliseconds", !1);
2078
+ _("z", 0, 0, "zoneAbbr");
2079
+ _("zz", 0, 0, "zoneName");
2080
+ function Ja() {
2081
+ return this._isUTC ? "UTC" : "";
2082
+ }
2083
+ function Xa() {
2084
+ return this._isUTC ? "Coordinated Universal Time" : "";
2085
+ }
2086
+ var l = $e.prototype;
2087
+ l.add = ji;
2088
+ l.calendar = Ji;
2089
+ l.clone = Xi;
2090
+ l.diff = aa;
2091
+ l.endOf = pa;
2092
+ l.format = ua;
2093
+ l.from = da;
2094
+ l.fromNow = ha;
2095
+ l.to = fa;
2096
+ l.toNow = _a;
2097
+ l.get = tr;
2098
+ l.invalidAt = Da;
2099
+ l.isAfter = ea;
2100
+ l.isBefore = ta;
2101
+ l.isBetween = sa;
2102
+ l.isSame = na;
2103
+ l.isSameOrAfter = ra;
2104
+ l.isSameOrBefore = ia;
2105
+ l.isValid = ka;
2106
+ l.lang = Js;
2107
+ l.locale = Qs;
2108
+ l.localeData = Xs;
2109
+ l.max = ki;
2110
+ l.min = Si;
2111
+ l.parsingFlags = Oa;
2112
+ l.set = sr;
2113
+ l.startOf = ma;
2114
+ l.subtract = Gi;
2115
+ l.toArray = wa;
2116
+ l.toObject = ba;
2117
+ l.toDate = va;
2118
+ l.toISOString = ca;
2119
+ l.inspect = la;
2120
+ typeof Symbol < "u" && Symbol.for != null && (l[Symbol.for("nodejs.util.inspect.custom")] = function() {
2121
+ return "Moment<" + this.format() + ">";
2122
+ });
2123
+ l.toJSON = Sa;
2124
+ l.toString = oa;
2125
+ l.unix = ga;
2126
+ l.valueOf = ya;
2127
+ l.creationData = Ma;
2128
+ l.eraName = xa;
2129
+ l.eraNarrow = Ya;
2130
+ l.eraAbbr = Ea;
2131
+ l.eraYear = Ia;
2132
+ l.year = Rs;
2133
+ l.isLeapYear = br;
2134
+ l.weekYear = Ha;
2135
+ l.isoWeekYear = Va;
2136
+ l.quarter = l.quarters = za;
2137
+ l.month = Is;
2138
+ l.daysInMonth = gr;
2139
+ l.week = l.weeks = Cr;
2140
+ l.isoWeek = l.isoWeeks = Tr;
2141
+ l.weeksInYear = $a;
2142
+ l.weeksInWeekYear = ja;
2143
+ l.isoWeeksInYear = Ua;
2144
+ l.isoWeeksInISOWeekYear = Ba;
2145
+ l.date = rn;
2146
+ l.day = l.days = Vr;
2147
+ l.weekday = Ur;
2148
+ l.isoWeekday = Br;
2149
+ l.dayOfYear = Za;
2150
+ l.hour = l.hours = Kr;
2151
+ l.minute = l.minutes = qa;
2152
+ l.second = l.seconds = Ka;
2153
+ l.millisecond = l.milliseconds = an;
2154
+ l.utcOffset = Ei;
2155
+ l.utc = Wi;
2156
+ l.local = Ri;
2157
+ l.parseZone = Li;
2158
+ l.hasAlignedHourOffset = Pi;
2159
+ l.isDST = Ai;
2160
+ l.isLocal = Hi;
2161
+ l.isUtcOffset = Vi;
2162
+ l.isUtc = zs;
2163
+ l.isUTC = zs;
2164
+ l.zoneAbbr = Ja;
2165
+ l.zoneName = Xa;
2166
+ l.dates = U(
2167
+ "dates accessor is deprecated. Use date instead.",
2168
+ rn
2169
+ );
2170
+ l.months = U(
2171
+ "months accessor is deprecated. Use month instead",
2172
+ Is
2173
+ );
2174
+ l.years = U(
2175
+ "years accessor is deprecated. Use year instead",
2176
+ Rs
2177
+ );
2178
+ l.zone = U(
2179
+ "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
2180
+ Ii
2181
+ );
2182
+ l.isDSTShifted = U(
2183
+ "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
2184
+ Fi
2185
+ );
2186
+ function eo(e) {
2187
+ return O(e * 1e3);
2188
+ }
2189
+ function to() {
2190
+ return O.apply(null, arguments).parseZone();
2191
+ }
2192
+ function on(e) {
2193
+ return e;
2194
+ }
2195
+ var b = Ft.prototype;
2196
+ b.calendar = Vn;
2197
+ b.longDateFormat = jn;
2198
+ b.invalidDate = zn;
2199
+ b.ordinal = Kn;
2200
+ b.preparse = on;
2201
+ b.postformat = on;
2202
+ b.relativeTime = Jn;
2203
+ b.pastFuture = Xn;
2204
+ b.set = Fn;
2205
+ b.eras = Ca;
2206
+ b.erasParse = Ta;
2207
+ b.erasConvertYear = Na;
2208
+ b.erasAbbrRegex = Ra;
2209
+ b.erasNameRegex = Wa;
2210
+ b.erasNarrowRegex = La;
2211
+ b.months = _r;
2212
+ b.monthsShort = mr;
2213
+ b.monthsParse = yr;
2214
+ b.monthsRegex = wr;
2215
+ b.monthsShortRegex = vr;
2216
+ b.week = kr;
2217
+ b.firstDayOfYear = Mr;
2218
+ b.firstDayOfWeek = Dr;
2219
+ b.weekdays = Lr;
2220
+ b.weekdaysMin = Ar;
2221
+ b.weekdaysShort = Pr;
2222
+ b.weekdaysParse = Hr;
2223
+ b.weekdaysRegex = $r;
2224
+ b.weekdaysShortRegex = jr;
2225
+ b.weekdaysMinRegex = Gr;
2226
+ b.isPM = Zr;
2227
+ b.meridiem = Qr;
2228
+ function it(e, t, s, n) {
2229
+ var r = ce(), i = X().set(n, t);
2230
+ return r[s](i, e);
2231
+ }
2232
+ function cn(e, t, s) {
2233
+ if (oe(e) && (t = e, e = void 0), e = e || "", t != null)
2234
+ return it(e, t, s, "month");
2235
+ var n, r = [];
2236
+ for (n = 0; n < 12; n++)
2237
+ r[n] = it(e, n, s, "month");
2238
+ return r;
2239
+ }
2240
+ function ts(e, t, s, n) {
2241
+ typeof e == "boolean" ? (oe(t) && (s = t, t = void 0), t = t || "") : (t = e, s = t, e = !1, oe(t) && (s = t, t = void 0), t = t || "");
2242
+ var r = ce(), i = e ? r._week.dow : 0, a, o = [];
2243
+ if (s != null)
2244
+ return it(t, (s + i) % 7, n, "day");
2245
+ for (a = 0; a < 7; a++)
2246
+ o[a] = it(t, (a + i) % 7, n, "day");
2247
+ return o;
2248
+ }
2249
+ function so(e, t) {
2250
+ return cn(e, t, "months");
2251
+ }
2252
+ function no(e, t) {
2253
+ return cn(e, t, "monthsShort");
2254
+ }
2255
+ function ro(e, t, s) {
2256
+ return ts(e, t, s, "weekdays");
2257
+ }
2258
+ function io(e, t, s) {
2259
+ return ts(e, t, s, "weekdaysShort");
2260
+ }
2261
+ function ao(e, t, s) {
2262
+ return ts(e, t, s, "weekdaysMin");
2263
+ }
2264
+ me("en", {
2265
+ eras: [
2266
+ {
2267
+ since: "0001-01-01",
2268
+ until: 1 / 0,
2269
+ offset: 1,
2270
+ name: "Anno Domini",
2271
+ narrow: "AD",
2272
+ abbr: "AD"
2273
+ },
2274
+ {
2275
+ since: "0000-12-31",
2276
+ until: -1 / 0,
2277
+ offset: 1,
2278
+ name: "Before Christ",
2279
+ narrow: "BC",
2280
+ abbr: "BC"
2281
+ }
2282
+ ],
2283
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
2284
+ ordinal: function(e) {
2285
+ var t = e % 10, s = y(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
2286
+ return e + s;
2287
+ }
2288
+ });
2289
+ u.lang = U(
2290
+ "moment.lang is deprecated. Use moment.locale instead.",
2291
+ me
2292
+ );
2293
+ u.langData = U(
2294
+ "moment.langData is deprecated. Use moment.localeData instead.",
2295
+ ce
2296
+ );
2297
+ var te = Math.abs;
2298
+ function oo() {
2299
+ var e = this._data;
2300
+ return this._milliseconds = te(this._milliseconds), this._days = te(this._days), this._months = te(this._months), e.milliseconds = te(e.milliseconds), e.seconds = te(e.seconds), e.minutes = te(e.minutes), e.hours = te(e.hours), e.months = te(e.months), e.years = te(e.years), this;
2301
+ }
2302
+ function ln(e, t, s, n) {
2303
+ var r = q(t, s);
2304
+ return e._milliseconds += n * r._milliseconds, e._days += n * r._days, e._months += n * r._months, e._bubble();
2305
+ }
2306
+ function co(e, t) {
2307
+ return ln(this, e, t, 1);
2308
+ }
2309
+ function lo(e, t) {
2310
+ return ln(this, e, t, -1);
2311
+ }
2312
+ function ds(e) {
2313
+ return e < 0 ? Math.floor(e) : Math.ceil(e);
2314
+ }
2315
+ function uo() {
2316
+ var e = this._milliseconds, t = this._days, s = this._months, n = this._data, r, i, a, o, c;
2317
+ return e >= 0 && t >= 0 && s >= 0 || e <= 0 && t <= 0 && s <= 0 || (e += ds(Et(s) + t) * 864e5, t = 0, s = 0), n.milliseconds = e % 1e3, r = H(e / 1e3), n.seconds = r % 60, i = H(r / 60), n.minutes = i % 60, a = H(i / 60), n.hours = a % 24, t += H(a / 24), c = H(un(t)), s += c, t -= ds(Et(c)), o = H(s / 12), s %= 12, n.days = t, n.months = s, n.years = o, this;
2318
+ }
2319
+ function un(e) {
2320
+ return e * 4800 / 146097;
2321
+ }
2322
+ function Et(e) {
2323
+ return e * 146097 / 4800;
2324
+ }
2325
+ function ho(e) {
2326
+ if (!this.isValid())
2327
+ return NaN;
2328
+ var t, s, n = this._milliseconds;
2329
+ if (e = B(e), e === "month" || e === "quarter" || e === "year")
2330
+ switch (t = this._days + n / 864e5, s = this._months + un(t), e) {
2331
+ case "month":
2332
+ return s;
2333
+ case "quarter":
2334
+ return s / 3;
2335
+ case "year":
2336
+ return s / 12;
2337
+ }
2338
+ else
2339
+ switch (t = this._days + Math.round(Et(this._months)), e) {
2340
+ case "week":
2341
+ return t / 7 + n / 6048e5;
2342
+ case "day":
2343
+ return t + n / 864e5;
2344
+ case "hour":
2345
+ return t * 24 + n / 36e5;
2346
+ case "minute":
2347
+ return t * 1440 + n / 6e4;
2348
+ case "second":
2349
+ return t * 86400 + n / 1e3;
2350
+ case "millisecond":
2351
+ return Math.floor(t * 864e5) + n;
2352
+ default:
2353
+ throw new Error("Unknown unit " + e);
2354
+ }
2355
+ }
2356
+ function fo() {
2357
+ return this.isValid() ? this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + y(this._months / 12) * 31536e6 : NaN;
2358
+ }
2359
+ function le(e) {
2360
+ return function() {
2361
+ return this.as(e);
2362
+ };
2363
+ }
2364
+ var _o = le("ms"), mo = le("s"), po = le("m"), yo = le("h"), go = le("d"), vo = le("w"), wo = le("M"), bo = le("Q"), So = le("y");
2365
+ function ko() {
2366
+ return q(this);
2367
+ }
2368
+ function Oo(e) {
2369
+ return e = B(e), this.isValid() ? this[e + "s"]() : NaN;
2370
+ }
2371
+ function ve(e) {
2372
+ return function() {
2373
+ return this.isValid() ? this._data[e] : NaN;
2374
+ };
2375
+ }
2376
+ var Do = ve("milliseconds"), Mo = ve("seconds"), Co = ve("minutes"), To = ve("hours"), No = ve("days"), xo = ve("months"), Yo = ve("years");
2377
+ function Eo() {
2378
+ return H(this.days() / 7);
2379
+ }
2380
+ var se = Math.round, Te = {
2381
+ ss: 44,
2382
+ // a few seconds to seconds
2383
+ s: 45,
2384
+ // seconds to minute
2385
+ m: 45,
2386
+ // minutes to hour
2387
+ h: 22,
2388
+ // hours to day
2389
+ d: 26,
2390
+ // days to month/week
2391
+ w: null,
2392
+ // weeks to month
2393
+ M: 11
2394
+ // months to year
2395
+ };
2396
+ function Io(e, t, s, n, r) {
2397
+ return r.relativeTime(t || 1, !!s, e, n);
2398
+ }
2399
+ function Wo(e, t, s, n) {
2400
+ var r = q(e).abs(), i = se(r.as("s")), a = se(r.as("m")), o = se(r.as("h")), c = se(r.as("d")), f = se(r.as("M")), h = se(r.as("w")), m = se(r.as("y")), k = i <= s.ss && ["s", i] || i < s.s && ["ss", i] || a <= 1 && ["m"] || a < s.m && ["mm", a] || o <= 1 && ["h"] || o < s.h && ["hh", o] || c <= 1 && ["d"] || c < s.d && ["dd", c];
2401
+ return s.w != null && (k = k || h <= 1 && ["w"] || h < s.w && ["ww", h]), k = k || f <= 1 && ["M"] || f < s.M && ["MM", f] || m <= 1 && ["y"] || ["yy", m], k[2] = t, k[3] = +e > 0, k[4] = n, Io.apply(null, k);
2402
+ }
2403
+ function Ro(e) {
2404
+ return e === void 0 ? se : typeof e == "function" ? (se = e, !0) : !1;
2405
+ }
2406
+ function Lo(e, t) {
2407
+ return Te[e] === void 0 ? !1 : t === void 0 ? Te[e] : (Te[e] = t, e === "s" && (Te.ss = t - 1), !0);
2408
+ }
2409
+ function Po(e, t) {
2410
+ if (!this.isValid())
2411
+ return this.localeData().invalidDate();
2412
+ var s = !1, n = Te, r, i;
2413
+ return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (s = e), typeof t == "object" && (n = Object.assign({}, Te, t), t.s != null && t.ss == null && (n.ss = t.s - 1)), r = this.localeData(), i = Wo(this, !s, n, r), s && (i = r.pastFuture(+this, i)), r.postformat(i);
2414
+ }
2415
+ var Ot = Math.abs;
2416
+ function ke(e) {
2417
+ return (e > 0) - (e < 0) || +e;
2418
+ }
2419
+ function gt() {
2420
+ if (!this.isValid())
2421
+ return this.localeData().invalidDate();
2422
+ var e = Ot(this._milliseconds) / 1e3, t = Ot(this._days), s = Ot(this._months), n, r, i, a, o = this.asSeconds(), c, f, h, m;
2423
+ return o ? (n = H(e / 60), r = H(n / 60), e %= 60, n %= 60, i = H(s / 12), s %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", c = o < 0 ? "-" : "", f = ke(this._months) !== ke(o) ? "-" : "", h = ke(this._days) !== ke(o) ? "-" : "", m = ke(this._milliseconds) !== ke(o) ? "-" : "", c + "P" + (i ? f + i + "Y" : "") + (s ? f + s + "M" : "") + (t ? h + t + "D" : "") + (r || n || e ? "T" : "") + (r ? m + r + "H" : "") + (n ? m + n + "M" : "") + (e ? m + a + "S" : "")) : "P0D";
2424
+ }
2425
+ var g = pt.prototype;
2426
+ g.isValid = Ti;
2427
+ g.abs = oo;
2428
+ g.add = co;
2429
+ g.subtract = lo;
2430
+ g.as = ho;
2431
+ g.asMilliseconds = _o;
2432
+ g.asSeconds = mo;
2433
+ g.asMinutes = po;
2434
+ g.asHours = yo;
2435
+ g.asDays = go;
2436
+ g.asWeeks = vo;
2437
+ g.asMonths = wo;
2438
+ g.asQuarters = bo;
2439
+ g.asYears = So;
2440
+ g.valueOf = fo;
2441
+ g._bubble = uo;
2442
+ g.clone = ko;
2443
+ g.get = Oo;
2444
+ g.milliseconds = Do;
2445
+ g.seconds = Mo;
2446
+ g.minutes = Co;
2447
+ g.hours = To;
2448
+ g.days = No;
2449
+ g.weeks = Eo;
2450
+ g.months = xo;
2451
+ g.years = Yo;
2452
+ g.humanize = Po;
2453
+ g.toISOString = gt;
2454
+ g.toString = gt;
2455
+ g.toJSON = gt;
2456
+ g.locale = Qs;
2457
+ g.localeData = Xs;
2458
+ g.toIsoString = U(
2459
+ "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
2460
+ gt
2461
+ );
2462
+ g.lang = Js;
2463
+ _("X", 0, 0, "unix");
2464
+ _("x", 0, 0, "valueOf");
2465
+ d("x", ht);
2466
+ d("X", rr);
2467
+ S("X", function(e, t, s) {
2468
+ s._d = new Date(parseFloat(e) * 1e3);
2469
+ });
2470
+ S("x", function(e, t, s) {
2471
+ s._d = new Date(y(e));
2472
+ });
2473
+ //! moment.js
2474
+ u.version = "2.29.4";
2475
+ Pn(O);
2476
+ u.fn = l;
2477
+ u.min = Oi;
2478
+ u.max = Di;
2479
+ u.now = Mi;
2480
+ u.utc = X;
2481
+ u.unix = eo;
2482
+ u.months = so;
2483
+ u.isDate = Be;
2484
+ u.locale = me;
2485
+ u.invalid = ot;
2486
+ u.duration = q;
2487
+ u.isMoment = z;
2488
+ u.weekdays = ro;
2489
+ u.parseZone = to;
2490
+ u.localeData = ce;
2491
+ u.isDuration = Je;
2492
+ u.monthsShort = no;
2493
+ u.weekdaysMin = ao;
2494
+ u.defineLocale = zt;
2495
+ u.updateLocale = ti;
2496
+ u.locales = si;
2497
+ u.weekdaysShort = io;
2498
+ u.normalizeUnits = B;
2499
+ u.relativeTimeRounding = Ro;
2500
+ u.relativeTimeThreshold = Lo;
2501
+ u.calendarFormat = Qi;
2502
+ u.prototype = l;
2503
+ u.HTML5_FMT = {
2504
+ DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
2505
+ // <input type="datetime-local" />
2506
+ DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
2507
+ // <input type="datetime-local" step="1" />
2508
+ DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
2509
+ // <input type="datetime-local" step="0.001" />
2510
+ DATE: "YYYY-MM-DD",
2511
+ // <input type="date" />
2512
+ TIME: "HH:mm",
2513
+ // <input type="time" />
2514
+ TIME_SECONDS: "HH:mm:ss",
2515
+ // <input type="time" step="1" />
2516
+ TIME_MS: "HH:mm:ss.SSS",
2517
+ // <input type="time" step="0.001" />
2518
+ WEEK: "GGGG-[W]WW",
2519
+ // <input type="week" />
2520
+ MONTH: "YYYY-MM"
2521
+ // <input type="month" />
2522
+ };
2523
+ const Ao = (e) => u(e).format("hh:mm a").toLowerCase(), Fo = (e) => e.toLowerCase().split(" ").map(function(t) {
2524
+ return t.charAt(0).toUpperCase() + t.slice(1);
2525
+ }).join(" "), Ho = { class: "chat-message" }, Vo = { class: "message" }, Uo = { class: "detail-message flex justify-content-between" }, Bo = {
2526
+ key: 0,
2527
+ class: "mr-5"
2528
+ }, $o = {
2529
+ key: 1,
2530
+ class: "mr-5"
2531
+ }, jo = /* @__PURE__ */ Rt({
2532
+ __name: "ChatMessage",
2533
+ props: {
2534
+ message: { type: Object, required: !0 }
2535
+ },
2536
+ setup(e) {
2537
+ const t = e, s = ys(() => t.message.responseOrigin);
2538
+ return (n, r) => {
2539
+ var i;
2540
+ return V(), j("div", Ho, [
2541
+ C("div", {
2542
+ class: is(["bubble", s.value ? "left" : "right"])
2543
+ }, [
2544
+ C("div", {
2545
+ class: is(s.value ? "content-left" : "content-right")
2546
+ }, [
2547
+ C("div", Vo, wt(e.message.dataMessage), 1),
2548
+ C("div", Uo, [
2549
+ (i = e.message.user) != null && i.nombreCompleto ? (V(), j("span", Bo, wt(as(Fo)(e.message.user.nombreCompleto)), 1)) : (V(), j("span", $o)),
2550
+ C("span", null, wt(as(Ao)(e.message.createdAt)), 1)
2551
+ ])
2552
+ ], 2)
2553
+ ], 2)
2554
+ ]);
2555
+ };
2556
+ }
2557
+ });
2558
+ const we = (e, t) => {
2559
+ const s = e.__vccOpts || e;
2560
+ for (const [n, r] of t)
2561
+ s[n] = r;
2562
+ return s;
2563
+ }, Go = /* @__PURE__ */ we(jo, [["__scopeId", "data-v-27d93f86"]]);
2564
+ function zo() {
2565
+ return dn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2566
+ }
2567
+ function dn() {
2568
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
2569
+ }
2570
+ const Zo = typeof Proxy == "function", qo = "devtools-plugin:setup", Ko = "plugin:settings:set";
2571
+ let Oe, It;
2572
+ function Qo() {
2573
+ var e;
2574
+ return Oe !== void 0 || (typeof window < "u" && window.performance ? (Oe = !0, It = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (Oe = !0, It = global.perf_hooks.performance) : Oe = !1), Oe;
2575
+ }
2576
+ function Jo() {
2577
+ return Qo() ? It.now() : Date.now();
2578
+ }
2579
+ class Xo {
2580
+ constructor(t, s) {
2581
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = s;
2582
+ const n = {};
2583
+ if (t.settings)
2584
+ for (const a in t.settings) {
2585
+ const o = t.settings[a];
2586
+ n[a] = o.defaultValue;
2587
+ }
2588
+ const r = `__vue-devtools-plugin-settings__${t.id}`;
2589
+ let i = Object.assign({}, n);
2590
+ try {
2591
+ const a = localStorage.getItem(r), o = JSON.parse(a);
2592
+ Object.assign(i, o);
2593
+ } catch {
2594
+ }
2595
+ this.fallbacks = {
2596
+ getSettings() {
2597
+ return i;
2598
+ },
2599
+ setSettings(a) {
2600
+ try {
2601
+ localStorage.setItem(r, JSON.stringify(a));
2602
+ } catch {
2603
+ }
2604
+ i = a;
2605
+ },
2606
+ now() {
2607
+ return Jo();
2608
+ }
2609
+ }, s && s.on(Ko, (a, o) => {
2610
+ a === this.plugin.id && this.fallbacks.setSettings(o);
2611
+ }), this.proxiedOn = new Proxy({}, {
2612
+ get: (a, o) => this.target ? this.target.on[o] : (...c) => {
2613
+ this.onQueue.push({
2614
+ method: o,
2615
+ args: c
2616
+ });
2617
+ }
2618
+ }), this.proxiedTarget = new Proxy({}, {
2619
+ get: (a, o) => this.target ? this.target[o] : o === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(o) ? (...c) => (this.targetQueue.push({
2620
+ method: o,
2621
+ args: c,
2622
+ resolve: () => {
2623
+ }
2624
+ }), this.fallbacks[o](...c)) : (...c) => new Promise((f) => {
2625
+ this.targetQueue.push({
2626
+ method: o,
2627
+ args: c,
2628
+ resolve: f
2629
+ });
2630
+ })
2631
+ });
2632
+ }
2633
+ async setRealTarget(t) {
2634
+ this.target = t;
2635
+ for (const s of this.onQueue)
2636
+ this.target.on[s.method](...s.args);
2637
+ for (const s of this.targetQueue)
2638
+ s.resolve(await this.target[s.method](...s.args));
2639
+ }
2640
+ }
2641
+ function ec(e, t) {
2642
+ const s = e, n = dn(), r = zo(), i = Zo && s.enableEarlyProxy;
2643
+ if (r && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
2644
+ r.emit(qo, e, t);
2645
+ else {
2646
+ const a = i ? new Xo(s, r) : null;
2647
+ (n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2648
+ pluginDescriptor: s,
2649
+ setupFn: t,
2650
+ proxy: a
2651
+ }), a && t(a.proxiedTarget);
2652
+ }
2653
+ }
2654
+ /*!
2655
+ * vuex v4.1.0
2656
+ * (c) 2022 Evan You
2657
+ * @license MIT
2658
+ */
2659
+ var hn = "store";
2660
+ function tc(e) {
2661
+ return e === void 0 && (e = null), kn(e !== null ? e : hn);
2662
+ }
2663
+ function be(e, t) {
2664
+ Object.keys(e).forEach(function(s) {
2665
+ return t(e[s], s);
2666
+ });
2667
+ }
2668
+ function sc(e) {
2669
+ return e !== null && typeof e == "object";
2670
+ }
2671
+ function nc(e) {
2672
+ return e && typeof e.then == "function";
2673
+ }
2674
+ function Z(e, t) {
2675
+ if (!e)
2676
+ throw new Error("[vuex] " + t);
2677
+ }
2678
+ function rc(e, t) {
2679
+ return function() {
2680
+ return e(t);
2681
+ };
2682
+ }
2683
+ function fn(e, t, s) {
2684
+ return t.indexOf(e) < 0 && (s && s.prepend ? t.unshift(e) : t.push(e)), function() {
2685
+ var n = t.indexOf(e);
2686
+ n > -1 && t.splice(n, 1);
2687
+ };
2688
+ }
2689
+ function _n(e, t) {
2690
+ e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
2691
+ var s = e.state;
2692
+ vt(e, s, [], e._modules.root, !0), ss(e, s, t);
2693
+ }
2694
+ function ss(e, t, s) {
2695
+ var n = e._state, r = e._scope;
2696
+ e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
2697
+ var i = e._wrappedGetters, a = {}, o = {}, c = On(!0);
2698
+ c.run(function() {
2699
+ be(i, function(f, h) {
2700
+ a[h] = rc(f, e), o[h] = ys(function() {
2701
+ return a[h]();
2702
+ }), Object.defineProperty(e.getters, h, {
2703
+ get: function() {
2704
+ return o[h].value;
2705
+ },
2706
+ enumerable: !0
2707
+ // for local getters
2708
+ });
2709
+ });
2710
+ }), e._state = Dn({
2711
+ data: t
2712
+ }), e._scope = c, e.strict && lc(e), n && s && e._withCommit(function() {
2713
+ n.data = null;
2714
+ }), r && r.stop();
2715
+ }
2716
+ function vt(e, t, s, n, r) {
2717
+ var i = !s.length, a = e._modules.getNamespace(s);
2718
+ if (n.namespaced && (e._modulesNamespaceMap[a] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + a + " for the namespaced module " + s.join("/")), e._modulesNamespaceMap[a] = n), !i && !r) {
2719
+ var o = ns(t, s.slice(0, -1)), c = s[s.length - 1];
2720
+ e._withCommit(function() {
2721
+ process.env.NODE_ENV !== "production" && c in o && console.warn(
2722
+ '[vuex] state field "' + c + '" was overridden by a module with the same name at "' + s.join(".") + '"'
2723
+ ), o[c] = n.state;
2724
+ });
2725
+ }
2726
+ var f = n.context = ic(e, a, s);
2727
+ n.forEachMutation(function(h, m) {
2728
+ var k = a + m;
2729
+ ac(e, k, h, f);
2730
+ }), n.forEachAction(function(h, m) {
2731
+ var k = h.root ? m : a + m, v = h.handler || h;
2732
+ oc(e, k, v, f);
2733
+ }), n.forEachGetter(function(h, m) {
2734
+ var k = a + m;
2735
+ cc(e, k, h, f);
2736
+ }), n.forEachChild(function(h, m) {
2737
+ vt(e, t, s.concat(m), h, r);
2738
+ });
2739
+ }
2740
+ function ic(e, t, s) {
2741
+ var n = t === "", r = {
2742
+ dispatch: n ? e.dispatch : function(i, a, o) {
2743
+ var c = at(i, a, o), f = c.payload, h = c.options, m = c.type;
2744
+ if ((!h || !h.root) && (m = t + m, process.env.NODE_ENV !== "production" && !e._actions[m])) {
2745
+ console.error("[vuex] unknown local action type: " + c.type + ", global type: " + m);
2746
+ return;
2747
+ }
2748
+ return e.dispatch(m, f);
2749
+ },
2750
+ commit: n ? e.commit : function(i, a, o) {
2751
+ var c = at(i, a, o), f = c.payload, h = c.options, m = c.type;
2752
+ if ((!h || !h.root) && (m = t + m, process.env.NODE_ENV !== "production" && !e._mutations[m])) {
2753
+ console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + m);
2754
+ return;
2755
+ }
2756
+ e.commit(m, f, h);
2757
+ }
2758
+ };
2759
+ return Object.defineProperties(r, {
2760
+ getters: {
2761
+ get: n ? function() {
2762
+ return e.getters;
2763
+ } : function() {
2764
+ return mn(e, t);
2765
+ }
2766
+ },
2767
+ state: {
2768
+ get: function() {
2769
+ return ns(e.state, s);
2770
+ }
2771
+ }
2772
+ }), r;
2773
+ }
2774
+ function mn(e, t) {
2775
+ if (!e._makeLocalGettersCache[t]) {
2776
+ var s = {}, n = t.length;
2777
+ Object.keys(e.getters).forEach(function(r) {
2778
+ if (r.slice(0, n) === t) {
2779
+ var i = r.slice(n);
2780
+ Object.defineProperty(s, i, {
2781
+ get: function() {
2782
+ return e.getters[r];
2783
+ },
2784
+ enumerable: !0
2785
+ });
2786
+ }
2787
+ }), e._makeLocalGettersCache[t] = s;
2788
+ }
2789
+ return e._makeLocalGettersCache[t];
2790
+ }
2791
+ function ac(e, t, s, n) {
2792
+ var r = e._mutations[t] || (e._mutations[t] = []);
2793
+ r.push(function(a) {
2794
+ s.call(e, n.state, a);
2795
+ });
2796
+ }
2797
+ function oc(e, t, s, n) {
2798
+ var r = e._actions[t] || (e._actions[t] = []);
2799
+ r.push(function(a) {
2800
+ var o = s.call(e, {
2801
+ dispatch: n.dispatch,
2802
+ commit: n.commit,
2803
+ getters: n.getters,
2804
+ state: n.state,
2805
+ rootGetters: e.getters,
2806
+ rootState: e.state
2807
+ }, a);
2808
+ return nc(o) || (o = Promise.resolve(o)), e._devtoolHook ? o.catch(function(c) {
2809
+ throw e._devtoolHook.emit("vuex:error", c), c;
2810
+ }) : o;
2811
+ });
2812
+ }
2813
+ function cc(e, t, s, n) {
2814
+ if (e._wrappedGetters[t]) {
2815
+ process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
2816
+ return;
2817
+ }
2818
+ e._wrappedGetters[t] = function(i) {
2819
+ return s(
2820
+ n.state,
2821
+ // local state
2822
+ n.getters,
2823
+ // local getters
2824
+ i.state,
2825
+ // root state
2826
+ i.getters
2827
+ // root getters
2828
+ );
2829
+ };
2830
+ }
2831
+ function lc(e) {
2832
+ gs(function() {
2833
+ return e._state.data;
2834
+ }, function() {
2835
+ process.env.NODE_ENV !== "production" && Z(e._committing, "do not mutate vuex store state outside mutation handlers.");
2836
+ }, { deep: !0, flush: "sync" });
2837
+ }
2838
+ function ns(e, t) {
2839
+ return t.reduce(function(s, n) {
2840
+ return s[n];
2841
+ }, e);
2842
+ }
2843
+ function at(e, t, s) {
2844
+ return sc(e) && e.type && (s = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && Z(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: s };
2845
+ }
2846
+ var uc = "vuex bindings", hs = "vuex:mutations", Dt = "vuex:actions", De = "vuex", dc = 0;
2847
+ function hc(e, t) {
2848
+ ec(
2849
+ {
2850
+ id: "org.vuejs.vuex",
2851
+ app: e,
2852
+ label: "Vuex",
2853
+ homepage: "https://next.vuex.vuejs.org/",
2854
+ logo: "https://vuejs.org/images/icons/favicon-96x96.png",
2855
+ packageName: "vuex",
2856
+ componentStateTypes: [uc]
2857
+ },
2858
+ function(s) {
2859
+ s.addTimelineLayer({
2860
+ id: hs,
2861
+ label: "Vuex Mutations",
2862
+ color: fs
2863
+ }), s.addTimelineLayer({
2864
+ id: Dt,
2865
+ label: "Vuex Actions",
2866
+ color: fs
2867
+ }), s.addInspector({
2868
+ id: De,
2869
+ label: "Vuex",
2870
+ icon: "storage",
2871
+ treeFilterPlaceholder: "Filter stores..."
2872
+ }), s.on.getInspectorTree(function(n) {
2873
+ if (n.app === e && n.inspectorId === De)
2874
+ if (n.filter) {
2875
+ var r = [];
2876
+ vn(r, t._modules.root, n.filter, ""), n.rootNodes = r;
2877
+ } else
2878
+ n.rootNodes = [
2879
+ gn(t._modules.root, "")
2880
+ ];
2881
+ }), s.on.getInspectorState(function(n) {
2882
+ if (n.app === e && n.inspectorId === De) {
2883
+ var r = n.nodeId;
2884
+ mn(t, r), n.state = mc(
2885
+ yc(t._modules, r),
2886
+ r === "root" ? t.getters : t._makeLocalGettersCache,
2887
+ r
2888
+ );
2889
+ }
2890
+ }), s.on.editInspectorState(function(n) {
2891
+ if (n.app === e && n.inspectorId === De) {
2892
+ var r = n.nodeId, i = n.path;
2893
+ r !== "root" && (i = r.split("/").filter(Boolean).concat(i)), t._withCommit(function() {
2894
+ n.set(t._state.data, i, n.state.value);
2895
+ });
2896
+ }
2897
+ }), t.subscribe(function(n, r) {
2898
+ var i = {};
2899
+ n.payload && (i.payload = n.payload), i.state = r, s.notifyComponentUpdate(), s.sendInspectorTree(De), s.sendInspectorState(De), s.addTimelineEvent({
2900
+ layerId: hs,
2901
+ event: {
2902
+ time: Date.now(),
2903
+ title: n.type,
2904
+ data: i
2905
+ }
2906
+ });
2907
+ }), t.subscribeAction({
2908
+ before: function(n, r) {
2909
+ var i = {};
2910
+ n.payload && (i.payload = n.payload), n._id = dc++, n._time = Date.now(), i.state = r, s.addTimelineEvent({
2911
+ layerId: Dt,
2912
+ event: {
2913
+ time: n._time,
2914
+ title: n.type,
2915
+ groupId: n._id,
2916
+ subtitle: "start",
2917
+ data: i
2918
+ }
2919
+ });
2920
+ },
2921
+ after: function(n, r) {
2922
+ var i = {}, a = Date.now() - n._time;
2923
+ i.duration = {
2924
+ _custom: {
2925
+ type: "duration",
2926
+ display: a + "ms",
2927
+ tooltip: "Action duration",
2928
+ value: a
2929
+ }
2930
+ }, n.payload && (i.payload = n.payload), i.state = r, s.addTimelineEvent({
2931
+ layerId: Dt,
2932
+ event: {
2933
+ time: Date.now(),
2934
+ title: n.type,
2935
+ groupId: n._id,
2936
+ subtitle: "end",
2937
+ data: i
2938
+ }
2939
+ });
2940
+ }
2941
+ });
2942
+ }
2943
+ );
2944
+ }
2945
+ var fs = 8702998, fc = 6710886, _c = 16777215, pn = {
2946
+ label: "namespaced",
2947
+ textColor: _c,
2948
+ backgroundColor: fc
2949
+ };
2950
+ function yn(e) {
2951
+ return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
2952
+ }
2953
+ function gn(e, t) {
2954
+ return {
2955
+ id: t || "root",
2956
+ // all modules end with a `/`, we want the last segment only
2957
+ // cart/ -> cart
2958
+ // nested/cart/ -> cart
2959
+ label: yn(t),
2960
+ tags: e.namespaced ? [pn] : [],
2961
+ children: Object.keys(e._children).map(
2962
+ function(s) {
2963
+ return gn(
2964
+ e._children[s],
2965
+ t + s + "/"
2966
+ );
2967
+ }
2968
+ )
2969
+ };
2970
+ }
2971
+ function vn(e, t, s, n) {
2972
+ n.includes(s) && e.push({
2973
+ id: n || "root",
2974
+ label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
2975
+ tags: t.namespaced ? [pn] : []
2976
+ }), Object.keys(t._children).forEach(function(r) {
2977
+ vn(e, t._children[r], s, n + r + "/");
2978
+ });
2979
+ }
2980
+ function mc(e, t, s) {
2981
+ t = s === "root" ? t : t[s];
2982
+ var n = Object.keys(t), r = {
2983
+ state: Object.keys(e.state).map(function(a) {
2984
+ return {
2985
+ key: a,
2986
+ editable: !0,
2987
+ value: e.state[a]
2988
+ };
2989
+ })
2990
+ };
2991
+ if (n.length) {
2992
+ var i = pc(t);
2993
+ r.getters = Object.keys(i).map(function(a) {
2994
+ return {
2995
+ key: a.endsWith("/") ? yn(a) : a,
2996
+ editable: !1,
2997
+ value: Wt(function() {
2998
+ return i[a];
2999
+ })
3000
+ };
3001
+ });
3002
+ }
3003
+ return r;
3004
+ }
3005
+ function pc(e) {
3006
+ var t = {};
3007
+ return Object.keys(e).forEach(function(s) {
3008
+ var n = s.split("/");
3009
+ if (n.length > 1) {
3010
+ var r = t, i = n.pop();
3011
+ n.forEach(function(a) {
3012
+ r[a] || (r[a] = {
3013
+ _custom: {
3014
+ value: {},
3015
+ display: a,
3016
+ tooltip: "Module",
3017
+ abstract: !0
3018
+ }
3019
+ }), r = r[a]._custom.value;
3020
+ }), r[i] = Wt(function() {
3021
+ return e[s];
3022
+ });
3023
+ } else
3024
+ t[s] = Wt(function() {
3025
+ return e[s];
3026
+ });
3027
+ }), t;
3028
+ }
3029
+ function yc(e, t) {
3030
+ var s = t.split("/").filter(function(n) {
3031
+ return n;
3032
+ });
3033
+ return s.reduce(
3034
+ function(n, r, i) {
3035
+ var a = n[r];
3036
+ if (!a)
3037
+ throw new Error('Missing module "' + r + '" for path "' + t + '".');
3038
+ return i === s.length - 1 ? a : a._children;
3039
+ },
3040
+ t === "root" ? e : e.root._children
3041
+ );
3042
+ }
3043
+ function Wt(e) {
3044
+ try {
3045
+ return e();
3046
+ } catch (t) {
3047
+ return t;
3048
+ }
3049
+ }
3050
+ var K = function(t, s) {
3051
+ this.runtime = s, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
3052
+ var n = t.state;
3053
+ this.state = (typeof n == "function" ? n() : n) || {};
3054
+ }, wn = { namespaced: { configurable: !0 } };
3055
+ wn.namespaced.get = function() {
3056
+ return !!this._rawModule.namespaced;
3057
+ };
3058
+ K.prototype.addChild = function(t, s) {
3059
+ this._children[t] = s;
3060
+ };
3061
+ K.prototype.removeChild = function(t) {
3062
+ delete this._children[t];
3063
+ };
3064
+ K.prototype.getChild = function(t) {
3065
+ return this._children[t];
3066
+ };
3067
+ K.prototype.hasChild = function(t) {
3068
+ return t in this._children;
3069
+ };
3070
+ K.prototype.update = function(t) {
3071
+ this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
3072
+ };
3073
+ K.prototype.forEachChild = function(t) {
3074
+ be(this._children, t);
3075
+ };
3076
+ K.prototype.forEachGetter = function(t) {
3077
+ this._rawModule.getters && be(this._rawModule.getters, t);
3078
+ };
3079
+ K.prototype.forEachAction = function(t) {
3080
+ this._rawModule.actions && be(this._rawModule.actions, t);
3081
+ };
3082
+ K.prototype.forEachMutation = function(t) {
3083
+ this._rawModule.mutations && be(this._rawModule.mutations, t);
3084
+ };
3085
+ Object.defineProperties(K.prototype, wn);
3086
+ var Se = function(t) {
3087
+ this.register([], t, !1);
3088
+ };
3089
+ Se.prototype.get = function(t) {
3090
+ return t.reduce(function(s, n) {
3091
+ return s.getChild(n);
3092
+ }, this.root);
3093
+ };
3094
+ Se.prototype.getNamespace = function(t) {
3095
+ var s = this.root;
3096
+ return t.reduce(function(n, r) {
3097
+ return s = s.getChild(r), n + (s.namespaced ? r + "/" : "");
3098
+ }, "");
3099
+ };
3100
+ Se.prototype.update = function(t) {
3101
+ bn([], this.root, t);
3102
+ };
3103
+ Se.prototype.register = function(t, s, n) {
3104
+ var r = this;
3105
+ n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Sn(t, s);
3106
+ var i = new K(s, n);
3107
+ if (t.length === 0)
3108
+ this.root = i;
3109
+ else {
3110
+ var a = this.get(t.slice(0, -1));
3111
+ a.addChild(t[t.length - 1], i);
3112
+ }
3113
+ s.modules && be(s.modules, function(o, c) {
3114
+ r.register(t.concat(c), o, n);
3115
+ });
3116
+ };
3117
+ Se.prototype.unregister = function(t) {
3118
+ var s = this.get(t.slice(0, -1)), n = t[t.length - 1], r = s.getChild(n);
3119
+ if (!r) {
3120
+ process.env.NODE_ENV !== "production" && console.warn(
3121
+ "[vuex] trying to unregister module '" + n + "', which is not registered"
3122
+ );
3123
+ return;
3124
+ }
3125
+ r.runtime && s.removeChild(n);
3126
+ };
3127
+ Se.prototype.isRegistered = function(t) {
3128
+ var s = this.get(t.slice(0, -1)), n = t[t.length - 1];
3129
+ return s ? s.hasChild(n) : !1;
3130
+ };
3131
+ function bn(e, t, s) {
3132
+ if (process.env.NODE_ENV !== "production" && Sn(e, s), t.update(s), s.modules)
3133
+ for (var n in s.modules) {
3134
+ if (!t.getChild(n)) {
3135
+ process.env.NODE_ENV !== "production" && console.warn(
3136
+ "[vuex] trying to add a new module '" + n + "' on hot reloading, manual reload is needed"
3137
+ );
3138
+ return;
3139
+ }
3140
+ bn(
3141
+ e.concat(n),
3142
+ t.getChild(n),
3143
+ s.modules[n]
3144
+ );
3145
+ }
3146
+ }
3147
+ var _s = {
3148
+ assert: function(e) {
3149
+ return typeof e == "function";
3150
+ },
3151
+ expected: "function"
3152
+ }, gc = {
3153
+ assert: function(e) {
3154
+ return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
3155
+ },
3156
+ expected: 'function or object with "handler" function'
3157
+ }, ms = {
3158
+ getters: _s,
3159
+ mutations: _s,
3160
+ actions: gc
3161
+ };
3162
+ function Sn(e, t) {
3163
+ Object.keys(ms).forEach(function(s) {
3164
+ if (t[s]) {
3165
+ var n = ms[s];
3166
+ be(t[s], function(r, i) {
3167
+ Z(
3168
+ n.assert(r),
3169
+ vc(e, s, i, r, n.expected)
3170
+ );
3171
+ });
3172
+ }
3173
+ });
3174
+ }
3175
+ function vc(e, t, s, n, r) {
3176
+ var i = t + " should be " + r + ' but "' + t + "." + s + '"';
3177
+ return e.length > 0 && (i += ' in module "' + e.join(".") + '"'), i += " is " + JSON.stringify(n) + ".", i;
3178
+ }
3179
+ var A = function e(t) {
3180
+ var s = this;
3181
+ t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (Z(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), Z(this instanceof e, "store must be called with the new operator."));
3182
+ var n = t.plugins;
3183
+ n === void 0 && (n = []);
3184
+ var r = t.strict;
3185
+ r === void 0 && (r = !1);
3186
+ var i = t.devtools;
3187
+ this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new Se(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = i;
3188
+ var a = this, o = this, c = o.dispatch, f = o.commit;
3189
+ this.dispatch = function(k, v) {
3190
+ return c.call(a, k, v);
3191
+ }, this.commit = function(k, v, R) {
3192
+ return f.call(a, k, v, R);
3193
+ }, this.strict = r;
3194
+ var h = this._modules.root.state;
3195
+ vt(this, h, [], this._modules.root), ss(this, h), n.forEach(function(m) {
3196
+ return m(s);
3197
+ });
3198
+ }, rs = { state: { configurable: !0 } };
3199
+ A.prototype.install = function(t, s) {
3200
+ t.provide(s || hn, this), t.config.globalProperties.$store = this;
3201
+ var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
3202
+ n && hc(t, this);
3203
+ };
3204
+ rs.state.get = function() {
3205
+ return this._state.data;
3206
+ };
3207
+ rs.state.set = function(e) {
3208
+ process.env.NODE_ENV !== "production" && Z(!1, "use store.replaceState() to explicit replace store state.");
3209
+ };
3210
+ A.prototype.commit = function(t, s, n) {
3211
+ var r = this, i = at(t, s, n), a = i.type, o = i.payload, c = i.options, f = { type: a, payload: o }, h = this._mutations[a];
3212
+ if (!h) {
3213
+ process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + a);
3214
+ return;
3215
+ }
3216
+ this._withCommit(function() {
3217
+ h.forEach(function(k) {
3218
+ k(o);
3219
+ });
3220
+ }), this._subscribers.slice().forEach(function(m) {
3221
+ return m(f, r.state);
3222
+ }), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
3223
+ "[vuex] mutation type: " + a + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
3224
+ );
3225
+ };
3226
+ A.prototype.dispatch = function(t, s) {
3227
+ var n = this, r = at(t, s), i = r.type, a = r.payload, o = { type: i, payload: a }, c = this._actions[i];
3228
+ if (!c) {
3229
+ process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + i);
3230
+ return;
3231
+ }
3232
+ try {
3233
+ this._actionSubscribers.slice().filter(function(h) {
3234
+ return h.before;
3235
+ }).forEach(function(h) {
3236
+ return h.before(o, n.state);
3237
+ });
3238
+ } catch (h) {
3239
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(h));
3240
+ }
3241
+ var f = c.length > 1 ? Promise.all(c.map(function(h) {
3242
+ return h(a);
3243
+ })) : c[0](a);
3244
+ return new Promise(function(h, m) {
3245
+ f.then(function(k) {
3246
+ try {
3247
+ n._actionSubscribers.filter(function(v) {
3248
+ return v.after;
3249
+ }).forEach(function(v) {
3250
+ return v.after(o, n.state);
3251
+ });
3252
+ } catch (v) {
3253
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(v));
3254
+ }
3255
+ h(k);
3256
+ }, function(k) {
3257
+ try {
3258
+ n._actionSubscribers.filter(function(v) {
3259
+ return v.error;
3260
+ }).forEach(function(v) {
3261
+ return v.error(o, n.state, k);
3262
+ });
3263
+ } catch (v) {
3264
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(v));
3265
+ }
3266
+ m(k);
3267
+ });
3268
+ });
3269
+ };
3270
+ A.prototype.subscribe = function(t, s) {
3271
+ return fn(t, this._subscribers, s);
3272
+ };
3273
+ A.prototype.subscribeAction = function(t, s) {
3274
+ var n = typeof t == "function" ? { before: t } : t;
3275
+ return fn(n, this._actionSubscribers, s);
3276
+ };
3277
+ A.prototype.watch = function(t, s, n) {
3278
+ var r = this;
3279
+ return process.env.NODE_ENV !== "production" && Z(typeof t == "function", "store.watch only accepts a function."), gs(function() {
3280
+ return t(r.state, r.getters);
3281
+ }, s, Object.assign({}, n));
3282
+ };
3283
+ A.prototype.replaceState = function(t) {
3284
+ var s = this;
3285
+ this._withCommit(function() {
3286
+ s._state.data = t;
3287
+ });
3288
+ };
3289
+ A.prototype.registerModule = function(t, s, n) {
3290
+ n === void 0 && (n = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (Z(Array.isArray(t), "module path must be a string or an Array."), Z(t.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(t, s), vt(this, this.state, t, this._modules.get(t), n.preserveState), ss(this, this.state);
3291
+ };
3292
+ A.prototype.unregisterModule = function(t) {
3293
+ var s = this;
3294
+ typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && Z(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
3295
+ var n = ns(s.state, t.slice(0, -1));
3296
+ delete n[t[t.length - 1]];
3297
+ }), _n(this);
3298
+ };
3299
+ A.prototype.hasModule = function(t) {
3300
+ return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && Z(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
3301
+ };
3302
+ A.prototype.hotUpdate = function(t) {
3303
+ this._modules.update(t), _n(this, !0);
3304
+ };
3305
+ A.prototype._withCommit = function(t) {
3306
+ var s = this._committing;
3307
+ this._committing = !0, t(), this._committing = s;
3308
+ };
3309
+ Object.defineProperties(A.prototype, rs);
3310
+ var wc = Object.defineProperty, bc = (e, t, s) => t in e ? wc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Sc = (e, t, s) => (bc(e, typeof t != "symbol" ? t + "" : t, s), s);
3311
+ const Le = {
3312
+ // LINEFEED byte (octet 10)
3313
+ LF: `
3314
+ `,
3315
+ // NULL byte (octet 0)
3316
+ NULL: "\0"
3317
+ };
3318
+ class he {
3319
+ /**
3320
+ * Frame constructor. `command`, `headers` and `body` are available as properties.
3321
+ *
3322
+ * @internal
3323
+ */
3324
+ constructor(t) {
3325
+ const { command: s, headers: n, body: r, binaryBody: i, escapeHeaderValues: a, skipContentLengthHeader: o } = t;
3326
+ this.command = s, this.headers = Object.assign({}, n || {}), i ? (this._binaryBody = i, this.isBinaryBody = !0) : (this._body = r || "", this.isBinaryBody = !1), this.escapeHeaderValues = a || !1, this.skipContentLengthHeader = o || !1;
3327
+ }
3328
+ /**
3329
+ * body of the frame
3330
+ */
3331
+ get body() {
3332
+ return !this._body && this.isBinaryBody && (this._body = new TextDecoder().decode(this._binaryBody)), this._body || "";
3333
+ }
3334
+ /**
3335
+ * body as Uint8Array
3336
+ */
3337
+ get binaryBody() {
3338
+ return !this._binaryBody && !this.isBinaryBody && (this._binaryBody = new TextEncoder().encode(this._body)), this._binaryBody;
3339
+ }
3340
+ /**
3341
+ * deserialize a STOMP Frame from raw data.
3342
+ *
3343
+ * @internal
3344
+ */
3345
+ static fromRawFrame(t, s) {
3346
+ const n = {}, r = (i) => i.replace(/^\s+|\s+$/g, "");
3347
+ for (const i of t.headers.reverse()) {
3348
+ i.indexOf(":");
3349
+ const a = r(i[0]);
3350
+ let o = r(i[1]);
3351
+ s && t.command !== "CONNECT" && t.command !== "CONNECTED" && (o = he.hdrValueUnEscape(o)), n[a] = o;
3352
+ }
3353
+ return new he({
3354
+ command: t.command,
3355
+ headers: n,
3356
+ binaryBody: t.binaryBody,
3357
+ escapeHeaderValues: s
3358
+ });
3359
+ }
3360
+ /**
3361
+ * @internal
3362
+ */
3363
+ toString() {
3364
+ return this.serializeCmdAndHeaders();
3365
+ }
3366
+ /**
3367
+ * serialize this Frame in a format suitable to be passed to WebSocket.
3368
+ * If the body is string the output will be string.
3369
+ * If the body is binary (i.e. of type Unit8Array) it will be serialized to ArrayBuffer.
3370
+ *
3371
+ * @internal
3372
+ */
3373
+ serialize() {
3374
+ const t = this.serializeCmdAndHeaders();
3375
+ return this.isBinaryBody ? he.toUnit8Array(t, this._binaryBody).buffer : t + this._body + Le.NULL;
3376
+ }
3377
+ serializeCmdAndHeaders() {
3378
+ const t = [this.command];
3379
+ this.skipContentLengthHeader && delete this.headers["content-length"];
3380
+ for (const s of Object.keys(this.headers || {})) {
3381
+ const n = this.headers[s];
3382
+ this.escapeHeaderValues && this.command !== "CONNECT" && this.command !== "CONNECTED" ? t.push(`${s}:${he.hdrValueEscape(`${n}`)}`) : t.push(`${s}:${n}`);
3383
+ }
3384
+ return (this.isBinaryBody || !this.isBodyEmpty() && !this.skipContentLengthHeader) && t.push(`content-length:${this.bodyLength()}`), t.join(Le.LF) + Le.LF + Le.LF;
3385
+ }
3386
+ isBodyEmpty() {
3387
+ return this.bodyLength() === 0;
3388
+ }
3389
+ bodyLength() {
3390
+ const t = this.binaryBody;
3391
+ return t ? t.length : 0;
3392
+ }
3393
+ /**
3394
+ * Compute the size of a UTF-8 string by counting its number of bytes
3395
+ * (and not the number of characters composing the string)
3396
+ */
3397
+ static sizeOfUTF8(t) {
3398
+ return t ? new TextEncoder().encode(t).length : 0;
3399
+ }
3400
+ static toUnit8Array(t, s) {
3401
+ const n = new TextEncoder().encode(t), r = new Uint8Array([0]), i = new Uint8Array(n.length + s.length + r.length);
3402
+ return i.set(n), i.set(s, n.length), i.set(r, n.length + s.length), i;
3403
+ }
3404
+ /**
3405
+ * Serialize a STOMP frame as per STOMP standards, suitable to be sent to the STOMP broker.
3406
+ *
3407
+ * @internal
3408
+ */
3409
+ static marshall(t) {
3410
+ return new he(t).serialize();
3411
+ }
3412
+ /**
3413
+ * Escape header values
3414
+ */
3415
+ static hdrValueEscape(t) {
3416
+ return t.replace(/\\/g, "\\\\").replace(/\r/g, "\\r").replace(/\n/g, "\\n").replace(/:/g, "\\c");
3417
+ }
3418
+ /**
3419
+ * UnEscape header values
3420
+ */
3421
+ static hdrValueUnEscape(t) {
3422
+ return t.replace(/\\r/g, "\r").replace(/\\n/g, `
3423
+ `).replace(/\\c/g, ":").replace(/\\\\/g, "\\");
3424
+ }
3425
+ }
3426
+ const ps = 0, qe = 10, Ke = 13, kc = 58;
3427
+ class Oc {
3428
+ constructor(t, s) {
3429
+ this.onFrame = t, this.onIncomingPing = s, this._encoder = new TextEncoder(), this._decoder = new TextDecoder(), this._token = [], this._initState();
3430
+ }
3431
+ parseChunk(t, s = !1) {
3432
+ let n;
3433
+ if (typeof t == "string" ? n = this._encoder.encode(t) : n = new Uint8Array(t), s && n[n.length - 1] !== 0) {
3434
+ const r = new Uint8Array(n.length + 1);
3435
+ r.set(n, 0), r[n.length] = 0, n = r;
3436
+ }
3437
+ for (let r = 0; r < n.length; r++) {
3438
+ const i = n[r];
3439
+ this._onByte(i);
3440
+ }
3441
+ }
3442
+ // The following implements a simple Rec Descent Parser.
3443
+ // The grammar is simple and just one byte tells what should be the next state
3444
+ _collectFrame(t) {
3445
+ if (t !== ps && t !== Ke) {
3446
+ if (t === qe) {
3447
+ this.onIncomingPing();
3448
+ return;
3449
+ }
3450
+ this._onByte = this._collectCommand, this._reinjectByte(t);
3451
+ }
3452
+ }
3453
+ _collectCommand(t) {
3454
+ if (t !== Ke) {
3455
+ if (t === qe) {
3456
+ this._results.command = this._consumeTokenAsUTF8(), this._onByte = this._collectHeaders;
3457
+ return;
3458
+ }
3459
+ this._consumeByte(t);
3460
+ }
3461
+ }
3462
+ _collectHeaders(t) {
3463
+ if (t !== Ke) {
3464
+ if (t === qe) {
3465
+ this._setupCollectBody();
3466
+ return;
3467
+ }
3468
+ this._onByte = this._collectHeaderKey, this._reinjectByte(t);
3469
+ }
3470
+ }
3471
+ _reinjectByte(t) {
3472
+ this._onByte(t);
3473
+ }
3474
+ _collectHeaderKey(t) {
3475
+ if (t === kc) {
3476
+ this._headerKey = this._consumeTokenAsUTF8(), this._onByte = this._collectHeaderValue;
3477
+ return;
3478
+ }
3479
+ this._consumeByte(t);
3480
+ }
3481
+ _collectHeaderValue(t) {
3482
+ if (t !== Ke) {
3483
+ if (t === qe) {
3484
+ this._results.headers.push([
3485
+ this._headerKey,
3486
+ this._consumeTokenAsUTF8()
3487
+ ]), this._headerKey = void 0, this._onByte = this._collectHeaders;
3488
+ return;
3489
+ }
3490
+ this._consumeByte(t);
3491
+ }
3492
+ }
3493
+ _setupCollectBody() {
3494
+ const t = this._results.headers.filter((s) => s[0] === "content-length")[0];
3495
+ t ? (this._bodyBytesRemaining = parseInt(t[1], 10), this._onByte = this._collectBodyFixedSize) : this._onByte = this._collectBodyNullTerminated;
3496
+ }
3497
+ _collectBodyNullTerminated(t) {
3498
+ if (t === ps) {
3499
+ this._retrievedBody();
3500
+ return;
3501
+ }
3502
+ this._consumeByte(t);
3503
+ }
3504
+ _collectBodyFixedSize(t) {
3505
+ if (this._bodyBytesRemaining-- === 0) {
3506
+ this._retrievedBody();
3507
+ return;
3508
+ }
3509
+ this._consumeByte(t);
3510
+ }
3511
+ _retrievedBody() {
3512
+ this._results.binaryBody = this._consumeTokenAsRaw();
3513
+ try {
3514
+ this.onFrame(this._results);
3515
+ } catch (t) {
3516
+ console.log("Ignoring an exception thrown by a frame handler. Original exception: ", t);
3517
+ }
3518
+ this._initState();
3519
+ }
3520
+ // Rec Descent Parser helpers
3521
+ _consumeByte(t) {
3522
+ this._token.push(t);
3523
+ }
3524
+ _consumeTokenAsUTF8() {
3525
+ return this._decoder.decode(this._consumeTokenAsRaw());
3526
+ }
3527
+ _consumeTokenAsRaw() {
3528
+ const t = new Uint8Array(this._token);
3529
+ return this._token = [], t;
3530
+ }
3531
+ _initState() {
3532
+ this._results = {
3533
+ command: void 0,
3534
+ headers: [],
3535
+ binaryBody: void 0
3536
+ }, this._token = [], this._headerKey = void 0, this._onByte = this._collectFrame;
3537
+ }
3538
+ }
3539
+ var ne;
3540
+ (function(e) {
3541
+ e[e.CONNECTING = 0] = "CONNECTING", e[e.OPEN = 1] = "OPEN", e[e.CLOSING = 2] = "CLOSING", e[e.CLOSED = 3] = "CLOSED";
3542
+ })(ne = ne || (ne = {}));
3543
+ var F;
3544
+ (function(e) {
3545
+ e[e.ACTIVE = 0] = "ACTIVE", e[e.DEACTIVATING = 1] = "DEACTIVATING", e[e.INACTIVE = 2] = "INACTIVE";
3546
+ })(F = F || (F = {}));
3547
+ class I {
3548
+ /**
3549
+ * Takes an array of versions, typical elements '1.2', '1.1', or '1.0'
3550
+ *
3551
+ * You will be creating an instance of this class if you want to override
3552
+ * supported versions to be declared during STOMP handshake.
3553
+ */
3554
+ constructor(t) {
3555
+ this.versions = t;
3556
+ }
3557
+ /**
3558
+ * Used as part of CONNECT STOMP Frame
3559
+ */
3560
+ supportedVersions() {
3561
+ return this.versions.join(",");
3562
+ }
3563
+ /**
3564
+ * Used while creating a WebSocket
3565
+ */
3566
+ protocolVersions() {
3567
+ return this.versions.map((t) => `v${t.replace(".", "")}.stomp`);
3568
+ }
3569
+ }
3570
+ I.V1_0 = "1.0";
3571
+ I.V1_1 = "1.1";
3572
+ I.V1_2 = "1.2";
3573
+ I.default = new I([
3574
+ I.V1_2,
3575
+ I.V1_1,
3576
+ I.V1_0
3577
+ ]);
3578
+ function Dc(e, t) {
3579
+ e.terminate = function() {
3580
+ const s = () => {
3581
+ };
3582
+ this.onerror = s, this.onmessage = s, this.onopen = s;
3583
+ const n = /* @__PURE__ */ new Date(), r = Math.random().toString().substring(2, 8), i = this.onclose;
3584
+ this.onclose = (a) => {
3585
+ const o = (/* @__PURE__ */ new Date()).getTime() - n.getTime();
3586
+ t(`Discarded socket (#${r}) closed after ${o}ms, with code/reason: ${a.code}/${a.reason}`);
3587
+ }, this.close(), i == null || i.call(e, {
3588
+ code: 4001,
3589
+ reason: `Quick discarding socket (#${r}) without waiting for the shutdown sequence.`,
3590
+ wasClean: !1
3591
+ });
3592
+ };
3593
+ }
3594
+ class Mc {
3595
+ constructor(t, s, n) {
3596
+ this._client = t, this._webSocket = s, this._connected = !1, this._serverFrameHandlers = {
3597
+ // [CONNECTED Frame](https://stomp.github.com/stomp-specification-1.2.html#CONNECTED_Frame)
3598
+ CONNECTED: (r) => {
3599
+ this.debug(`connected to server ${r.headers.server}`), this._connected = !0, this._connectedVersion = r.headers.version, this._connectedVersion === I.V1_2 && (this._escapeHeaderValues = !0), this._setupHeartbeat(r.headers), this.onConnect(r);
3600
+ },
3601
+ // [MESSAGE Frame](https://stomp.github.com/stomp-specification-1.2.html#MESSAGE)
3602
+ MESSAGE: (r) => {
3603
+ const i = r.headers.subscription, a = this._subscriptions[i] || this.onUnhandledMessage, o = r, c = this, f = this._connectedVersion === I.V1_2 ? o.headers.ack : o.headers["message-id"];
3604
+ o.ack = (h = {}) => c.ack(f, i, h), o.nack = (h = {}) => c.nack(f, i, h), a(o);
3605
+ },
3606
+ // [RECEIPT Frame](https://stomp.github.com/stomp-specification-1.2.html#RECEIPT)
3607
+ RECEIPT: (r) => {
3608
+ const i = this._receiptWatchers[r.headers["receipt-id"]];
3609
+ i ? (i(r), delete this._receiptWatchers[r.headers["receipt-id"]]) : this.onUnhandledReceipt(r);
3610
+ },
3611
+ // [ERROR Frame](https://stomp.github.com/stomp-specification-1.2.html#ERROR)
3612
+ ERROR: (r) => {
3613
+ this.onStompError(r);
3614
+ }
3615
+ }, this._counter = 0, this._subscriptions = {}, this._receiptWatchers = {}, this._partialData = "", this._escapeHeaderValues = !1, this._lastServerActivityTS = Date.now(), this.debug = n.debug, this.stompVersions = n.stompVersions, this.connectHeaders = n.connectHeaders, this.disconnectHeaders = n.disconnectHeaders, this.heartbeatIncoming = n.heartbeatIncoming, this.heartbeatOutgoing = n.heartbeatOutgoing, this.splitLargeFrames = n.splitLargeFrames, this.maxWebSocketChunkSize = n.maxWebSocketChunkSize, this.forceBinaryWSFrames = n.forceBinaryWSFrames, this.logRawCommunication = n.logRawCommunication, this.appendMissingNULLonIncoming = n.appendMissingNULLonIncoming, this.discardWebsocketOnCommFailure = n.discardWebsocketOnCommFailure, this.onConnect = n.onConnect, this.onDisconnect = n.onDisconnect, this.onStompError = n.onStompError, this.onWebSocketClose = n.onWebSocketClose, this.onWebSocketError = n.onWebSocketError, this.onUnhandledMessage = n.onUnhandledMessage, this.onUnhandledReceipt = n.onUnhandledReceipt, this.onUnhandledFrame = n.onUnhandledFrame;
3616
+ }
3617
+ get connectedVersion() {
3618
+ return this._connectedVersion;
3619
+ }
3620
+ get connected() {
3621
+ return this._connected;
3622
+ }
3623
+ start() {
3624
+ const t = new Oc(
3625
+ // On Frame
3626
+ (s) => {
3627
+ const n = he.fromRawFrame(s, this._escapeHeaderValues);
3628
+ this.logRawCommunication || this.debug(`<<< ${n}`), (this._serverFrameHandlers[n.command] || this.onUnhandledFrame)(n);
3629
+ },
3630
+ // On Incoming Ping
3631
+ () => {
3632
+ this.debug("<<< PONG");
3633
+ }
3634
+ );
3635
+ this._webSocket.onmessage = (s) => {
3636
+ if (this.debug("Received data"), this._lastServerActivityTS = Date.now(), this.logRawCommunication) {
3637
+ const n = s.data instanceof ArrayBuffer ? new TextDecoder().decode(s.data) : s.data;
3638
+ this.debug(`<<< ${n}`);
3639
+ }
3640
+ t.parseChunk(s.data, this.appendMissingNULLonIncoming);
3641
+ }, this._webSocket.onclose = (s) => {
3642
+ this.debug(`Connection closed to ${this._webSocket.url}`), this._cleanUp(), this.onWebSocketClose(s);
3643
+ }, this._webSocket.onerror = (s) => {
3644
+ this.onWebSocketError(s);
3645
+ }, this._webSocket.onopen = () => {
3646
+ const s = Object.assign({}, this.connectHeaders);
3647
+ this.debug("Web Socket Opened..."), s["accept-version"] = this.stompVersions.supportedVersions(), s["heart-beat"] = [
3648
+ this.heartbeatOutgoing,
3649
+ this.heartbeatIncoming
3650
+ ].join(","), this._transmit({ command: "CONNECT", headers: s });
3651
+ };
3652
+ }
3653
+ _setupHeartbeat(t) {
3654
+ if (t.version !== I.V1_1 && t.version !== I.V1_2 || !t["heart-beat"])
3655
+ return;
3656
+ const [s, n] = t["heart-beat"].split(",").map((r) => parseInt(r, 10));
3657
+ if (this.heartbeatOutgoing !== 0 && n !== 0) {
3658
+ const r = Math.max(this.heartbeatOutgoing, n);
3659
+ this.debug(`send PING every ${r}ms`), this._pinger = setInterval(() => {
3660
+ this._webSocket.readyState === ne.OPEN && (this._webSocket.send(Le.LF), this.debug(">>> PING"));
3661
+ }, r);
3662
+ }
3663
+ if (this.heartbeatIncoming !== 0 && s !== 0) {
3664
+ const r = Math.max(this.heartbeatIncoming, s);
3665
+ this.debug(`check PONG every ${r}ms`), this._ponger = setInterval(() => {
3666
+ const i = Date.now() - this._lastServerActivityTS;
3667
+ i > r * 2 && (this.debug(`did not receive server activity for the last ${i}ms`), this._closeOrDiscardWebsocket());
3668
+ }, r);
3669
+ }
3670
+ }
3671
+ _closeOrDiscardWebsocket() {
3672
+ this.discardWebsocketOnCommFailure ? (this.debug("Discarding websocket, the underlying socket may linger for a while"), this.discardWebsocket()) : (this.debug("Issuing close on the websocket"), this._closeWebsocket());
3673
+ }
3674
+ forceDisconnect() {
3675
+ this._webSocket && (this._webSocket.readyState === ne.CONNECTING || this._webSocket.readyState === ne.OPEN) && this._closeOrDiscardWebsocket();
3676
+ }
3677
+ _closeWebsocket() {
3678
+ this._webSocket.onmessage = () => {
3679
+ }, this._webSocket.close();
3680
+ }
3681
+ discardWebsocket() {
3682
+ typeof this._webSocket.terminate != "function" && Dc(this._webSocket, (t) => this.debug(t)), this._webSocket.terminate();
3683
+ }
3684
+ _transmit(t) {
3685
+ const { command: s, headers: n, body: r, binaryBody: i, skipContentLengthHeader: a } = t, o = new he({
3686
+ command: s,
3687
+ headers: n,
3688
+ body: r,
3689
+ binaryBody: i,
3690
+ escapeHeaderValues: this._escapeHeaderValues,
3691
+ skipContentLengthHeader: a
3692
+ });
3693
+ let c = o.serialize();
3694
+ if (this.logRawCommunication ? this.debug(`>>> ${c}`) : this.debug(`>>> ${o}`), this.forceBinaryWSFrames && typeof c == "string" && (c = new TextEncoder().encode(c)), typeof c != "string" || !this.splitLargeFrames)
3695
+ this._webSocket.send(c);
3696
+ else {
3697
+ let f = c;
3698
+ for (; f.length > 0; ) {
3699
+ const h = f.substring(0, this.maxWebSocketChunkSize);
3700
+ f = f.substring(this.maxWebSocketChunkSize), this._webSocket.send(h), this.debug(`chunk sent = ${h.length}, remaining = ${f.length}`);
3701
+ }
3702
+ }
3703
+ }
3704
+ dispose() {
3705
+ if (this.connected)
3706
+ try {
3707
+ const t = Object.assign({}, this.disconnectHeaders);
3708
+ t.receipt || (t.receipt = `close-${this._counter++}`), this.watchForReceipt(t.receipt, (s) => {
3709
+ this._closeWebsocket(), this._cleanUp(), this.onDisconnect(s);
3710
+ }), this._transmit({ command: "DISCONNECT", headers: t });
3711
+ } catch (t) {
3712
+ this.debug(`Ignoring error during disconnect ${t}`);
3713
+ }
3714
+ else
3715
+ (this._webSocket.readyState === ne.CONNECTING || this._webSocket.readyState === ne.OPEN) && this._closeWebsocket();
3716
+ }
3717
+ _cleanUp() {
3718
+ this._connected = !1, this._pinger && (clearInterval(this._pinger), this._pinger = void 0), this._ponger && (clearInterval(this._ponger), this._ponger = void 0);
3719
+ }
3720
+ publish(t) {
3721
+ const { destination: s, headers: n, body: r, binaryBody: i, skipContentLengthHeader: a } = t, o = Object.assign({ destination: s }, n);
3722
+ this._transmit({
3723
+ command: "SEND",
3724
+ headers: o,
3725
+ body: r,
3726
+ binaryBody: i,
3727
+ skipContentLengthHeader: a
3728
+ });
3729
+ }
3730
+ watchForReceipt(t, s) {
3731
+ this._receiptWatchers[t] = s;
3732
+ }
3733
+ subscribe(t, s, n = {}) {
3734
+ n = Object.assign({}, n), n.id || (n.id = `sub-${this._counter++}`), n.destination = t, this._subscriptions[n.id] = s, this._transmit({ command: "SUBSCRIBE", headers: n });
3735
+ const r = this;
3736
+ return {
3737
+ id: n.id,
3738
+ unsubscribe(i) {
3739
+ return r.unsubscribe(n.id, i);
3740
+ }
3741
+ };
3742
+ }
3743
+ unsubscribe(t, s = {}) {
3744
+ s = Object.assign({}, s), delete this._subscriptions[t], s.id = t, this._transmit({ command: "UNSUBSCRIBE", headers: s });
3745
+ }
3746
+ begin(t) {
3747
+ const s = t || `tx-${this._counter++}`;
3748
+ this._transmit({
3749
+ command: "BEGIN",
3750
+ headers: {
3751
+ transaction: s
3752
+ }
3753
+ });
3754
+ const n = this;
3755
+ return {
3756
+ id: s,
3757
+ commit() {
3758
+ n.commit(s);
3759
+ },
3760
+ abort() {
3761
+ n.abort(s);
3762
+ }
3763
+ };
3764
+ }
3765
+ commit(t) {
3766
+ this._transmit({
3767
+ command: "COMMIT",
3768
+ headers: {
3769
+ transaction: t
3770
+ }
3771
+ });
3772
+ }
3773
+ abort(t) {
3774
+ this._transmit({
3775
+ command: "ABORT",
3776
+ headers: {
3777
+ transaction: t
3778
+ }
3779
+ });
3780
+ }
3781
+ ack(t, s, n = {}) {
3782
+ n = Object.assign({}, n), this._connectedVersion === I.V1_2 ? n.id = t : n["message-id"] = t, n.subscription = s, this._transmit({ command: "ACK", headers: n });
3783
+ }
3784
+ nack(t, s, n = {}) {
3785
+ return n = Object.assign({}, n), this._connectedVersion === I.V1_2 ? n.id = t : n["message-id"] = t, n.subscription = s, this._transmit({ command: "NACK", headers: n });
3786
+ }
3787
+ }
3788
+ class Cc {
3789
+ /**
3790
+ * Create an instance.
3791
+ */
3792
+ constructor(t = {}) {
3793
+ this.stompVersions = I.default, this.connectionTimeout = 0, this.reconnectDelay = 5e3, this.heartbeatIncoming = 1e4, this.heartbeatOutgoing = 1e4, this.splitLargeFrames = !1, this.maxWebSocketChunkSize = 8 * 1024, this.forceBinaryWSFrames = !1, this.appendMissingNULLonIncoming = !1, this.discardWebsocketOnCommFailure = !1, this.state = F.INACTIVE;
3794
+ const s = () => {
3795
+ };
3796
+ this.debug = s, this.beforeConnect = s, this.onConnect = s, this.onDisconnect = s, this.onUnhandledMessage = s, this.onUnhandledReceipt = s, this.onUnhandledFrame = s, this.onStompError = s, this.onWebSocketClose = s, this.onWebSocketError = s, this.logRawCommunication = !1, this.onChangeState = s, this.connectHeaders = {}, this._disconnectHeaders = {}, this.configure(t);
3797
+ }
3798
+ /**
3799
+ * Underlying WebSocket instance, READONLY.
3800
+ */
3801
+ get webSocket() {
3802
+ var t;
3803
+ return (t = this._stompHandler) == null ? void 0 : t._webSocket;
3804
+ }
3805
+ /**
3806
+ * Disconnection headers.
3807
+ */
3808
+ get disconnectHeaders() {
3809
+ return this._disconnectHeaders;
3810
+ }
3811
+ set disconnectHeaders(t) {
3812
+ this._disconnectHeaders = t, this._stompHandler && (this._stompHandler.disconnectHeaders = this._disconnectHeaders);
3813
+ }
3814
+ /**
3815
+ * `true` if there is an active connection to STOMP Broker
3816
+ */
3817
+ get connected() {
3818
+ return !!this._stompHandler && this._stompHandler.connected;
3819
+ }
3820
+ /**
3821
+ * version of STOMP protocol negotiated with the server, READONLY
3822
+ */
3823
+ get connectedVersion() {
3824
+ return this._stompHandler ? this._stompHandler.connectedVersion : void 0;
3825
+ }
3826
+ /**
3827
+ * if the client is active (connected or going to reconnect)
3828
+ */
3829
+ get active() {
3830
+ return this.state === F.ACTIVE;
3831
+ }
3832
+ _changeState(t) {
3833
+ this.state = t, this.onChangeState(t);
3834
+ }
3835
+ /**
3836
+ * Update configuration.
3837
+ */
3838
+ configure(t) {
3839
+ Object.assign(this, t);
3840
+ }
3841
+ /**
3842
+ * Initiate the connection with the broker.
3843
+ * If the connection breaks, as per [Client#reconnectDelay]{@link Client#reconnectDelay},
3844
+ * it will keep trying to reconnect.
3845
+ *
3846
+ * Call [Client#deactivate]{@link Client#deactivate} to disconnect and stop reconnection attempts.
3847
+ */
3848
+ activate() {
3849
+ const t = () => {
3850
+ if (this.active) {
3851
+ this.debug("Already ACTIVE, ignoring request to activate");
3852
+ return;
3853
+ }
3854
+ this._changeState(F.ACTIVE), this._connect();
3855
+ };
3856
+ this.state === F.DEACTIVATING ? (this.debug("Waiting for deactivation to finish before activating"), this.deactivate().then(() => {
3857
+ t();
3858
+ })) : t();
3859
+ }
3860
+ async _connect() {
3861
+ if (await this.beforeConnect(), this._stompHandler) {
3862
+ this.debug("There is already a stompHandler, skipping the call to connect");
3863
+ return;
3864
+ }
3865
+ if (!this.active) {
3866
+ this.debug("Client has been marked inactive, will not attempt to connect");
3867
+ return;
3868
+ }
3869
+ this.connectionTimeout > 0 && (this._connectionWatcher && clearTimeout(this._connectionWatcher), this._connectionWatcher = setTimeout(() => {
3870
+ this.connected || (this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`), this.forceDisconnect());
3871
+ }, this.connectionTimeout)), this.debug("Opening Web Socket...");
3872
+ const t = this._createWebSocket();
3873
+ this._stompHandler = new Mc(this, t, {
3874
+ debug: this.debug,
3875
+ stompVersions: this.stompVersions,
3876
+ connectHeaders: this.connectHeaders,
3877
+ disconnectHeaders: this._disconnectHeaders,
3878
+ heartbeatIncoming: this.heartbeatIncoming,
3879
+ heartbeatOutgoing: this.heartbeatOutgoing,
3880
+ splitLargeFrames: this.splitLargeFrames,
3881
+ maxWebSocketChunkSize: this.maxWebSocketChunkSize,
3882
+ forceBinaryWSFrames: this.forceBinaryWSFrames,
3883
+ logRawCommunication: this.logRawCommunication,
3884
+ appendMissingNULLonIncoming: this.appendMissingNULLonIncoming,
3885
+ discardWebsocketOnCommFailure: this.discardWebsocketOnCommFailure,
3886
+ onConnect: (s) => {
3887
+ if (this._connectionWatcher && (clearTimeout(this._connectionWatcher), this._connectionWatcher = void 0), !this.active) {
3888
+ this.debug("STOMP got connected while deactivate was issued, will disconnect now"), this._disposeStompHandler();
3889
+ return;
3890
+ }
3891
+ this.onConnect(s);
3892
+ },
3893
+ onDisconnect: (s) => {
3894
+ this.onDisconnect(s);
3895
+ },
3896
+ onStompError: (s) => {
3897
+ this.onStompError(s);
3898
+ },
3899
+ onWebSocketClose: (s) => {
3900
+ this._stompHandler = void 0, this.state === F.DEACTIVATING && this._changeState(F.INACTIVE), this.onWebSocketClose(s), this.active && this._schedule_reconnect();
3901
+ },
3902
+ onWebSocketError: (s) => {
3903
+ this.onWebSocketError(s);
3904
+ },
3905
+ onUnhandledMessage: (s) => {
3906
+ this.onUnhandledMessage(s);
3907
+ },
3908
+ onUnhandledReceipt: (s) => {
3909
+ this.onUnhandledReceipt(s);
3910
+ },
3911
+ onUnhandledFrame: (s) => {
3912
+ this.onUnhandledFrame(s);
3913
+ }
3914
+ }), this._stompHandler.start();
3915
+ }
3916
+ _createWebSocket() {
3917
+ let t;
3918
+ if (this.webSocketFactory)
3919
+ t = this.webSocketFactory();
3920
+ else if (this.brokerURL)
3921
+ t = new WebSocket(this.brokerURL, this.stompVersions.protocolVersions());
3922
+ else
3923
+ throw new Error("Either brokerURL or webSocketFactory must be provided");
3924
+ return t.binaryType = "arraybuffer", t;
3925
+ }
3926
+ _schedule_reconnect() {
3927
+ this.reconnectDelay > 0 && (this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`), this._reconnector = setTimeout(() => {
3928
+ this._connect();
3929
+ }, this.reconnectDelay));
3930
+ }
3931
+ /**
3932
+ * Disconnect if connected and stop auto reconnect loop.
3933
+ * Appropriate callbacks will be invoked if there is an underlying STOMP connection.
3934
+ *
3935
+ * This call is async. It will resolve immediately if there is no underlying active websocket,
3936
+ * otherwise, it will resolve after the underlying websocket is properly disposed of.
3937
+ *
3938
+ * It is not an error to invoke this method more than once.
3939
+ * Each of those would resolve on completion of deactivation.
3940
+ *
3941
+ * To reactivate, you can call [Client#activate]{@link Client#activate}.
3942
+ *
3943
+ * Experimental: pass `force: true` to immediately discard the underlying connection.
3944
+ * This mode will skip both the STOMP and the Websocket shutdown sequences.
3945
+ * In some cases, browsers take a long time in the Websocket shutdown
3946
+ * if the underlying connection had gone stale.
3947
+ * Using this mode can speed up.
3948
+ * When this mode is used, the actual Websocket may linger for a while
3949
+ * and the broker may not realize that the connection is no longer in use.
3950
+ *
3951
+ * It is possible to invoke this method initially without the `force` option
3952
+ * and subsequently, say after a wait, with the `force` option.
3953
+ */
3954
+ async deactivate(t = {}) {
3955
+ var s;
3956
+ const n = t.force || !1, r = this.active;
3957
+ let i;
3958
+ if (this.state === F.INACTIVE)
3959
+ return this.debug("Already INACTIVE, nothing more to do"), Promise.resolve();
3960
+ if (this._changeState(F.DEACTIVATING), this._reconnector && (clearTimeout(this._reconnector), this._reconnector = void 0), this._stompHandler && // @ts-ignore - if there is a _stompHandler, there is the webSocket
3961
+ this.webSocket.readyState !== ne.CLOSED) {
3962
+ const a = this._stompHandler.onWebSocketClose;
3963
+ i = new Promise((o, c) => {
3964
+ this._stompHandler.onWebSocketClose = (f) => {
3965
+ a(f), o();
3966
+ };
3967
+ });
3968
+ } else
3969
+ return this._changeState(F.INACTIVE), Promise.resolve();
3970
+ return n ? (s = this._stompHandler) == null || s.discardWebsocket() : r && this._disposeStompHandler(), i;
3971
+ }
3972
+ /**
3973
+ * Force disconnect if there is an active connection by directly closing the underlying WebSocket.
3974
+ * This is different from a normal disconnect where a DISCONNECT sequence is carried out with the broker.
3975
+ * After forcing disconnect, automatic reconnect will be attempted.
3976
+ * To stop further reconnects call [Client#deactivate]{@link Client#deactivate} as well.
3977
+ */
3978
+ forceDisconnect() {
3979
+ this._stompHandler && this._stompHandler.forceDisconnect();
3980
+ }
3981
+ _disposeStompHandler() {
3982
+ this._stompHandler && this._stompHandler.dispose();
3983
+ }
3984
+ /**
3985
+ * Send a message to a named destination. Refer to your STOMP broker documentation for types
3986
+ * and naming of destinations.
3987
+ *
3988
+ * STOMP protocol specifies and suggests some headers and also allows broker-specific headers.
3989
+ *
3990
+ * `body` must be String.
3991
+ * You will need to covert the payload to string in case it is not string (e.g. JSON).
3992
+ *
3993
+ * To send a binary message body, use `binaryBody` parameter. It should be a
3994
+ * [Uint8Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array).
3995
+ * Sometimes brokers may not support binary frames out of the box.
3996
+ * Please check your broker documentation.
3997
+ *
3998
+ * `content-length` header is automatically added to the STOMP Frame sent to the broker.
3999
+ * Set `skipContentLengthHeader` to indicate that `content-length` header should not be added.
4000
+ * For binary messages, `content-length` header is always added.
4001
+ *
4002
+ * Caution: The broker will, most likely, report an error and disconnect
4003
+ * if the message body has NULL octet(s) and `content-length` header is missing.
4004
+ *
4005
+ * ```javascript
4006
+ * client.publish({destination: "/queue/test", headers: {priority: 9}, body: "Hello, STOMP"});
4007
+ *
4008
+ * // Only destination is mandatory parameter
4009
+ * client.publish({destination: "/queue/test", body: "Hello, STOMP"});
4010
+ *
4011
+ * // Skip content-length header in the frame to the broker
4012
+ * client.publish({"/queue/test", body: "Hello, STOMP", skipContentLengthHeader: true});
4013
+ *
4014
+ * var binaryData = generateBinaryData(); // This need to be of type Uint8Array
4015
+ * // setting content-type header is not mandatory, however a good practice
4016
+ * client.publish({destination: '/topic/special', binaryBody: binaryData,
4017
+ * headers: {'content-type': 'application/octet-stream'}});
4018
+ * ```
4019
+ */
4020
+ publish(t) {
4021
+ this._checkConnection(), this._stompHandler.publish(t);
4022
+ }
4023
+ _checkConnection() {
4024
+ if (!this.connected)
4025
+ throw new TypeError("There is no underlying STOMP connection");
4026
+ }
4027
+ /**
4028
+ * STOMP brokers may carry out operation asynchronously and allow requesting for acknowledgement.
4029
+ * To request an acknowledgement, a `receipt` header needs to be sent with the actual request.
4030
+ * The value (say receipt-id) for this header needs to be unique for each use.
4031
+ * Typically, a sequence, a UUID, a random number or a combination may be used.
4032
+ *
4033
+ * A complaint broker will send a RECEIPT frame when an operation has actually been completed.
4034
+ * The operation needs to be matched based on the value of the receipt-id.
4035
+ *
4036
+ * This method allows watching for a receipt and invoking the callback
4037
+ * when the corresponding receipt has been received.
4038
+ *
4039
+ * The actual {@link IFrame} will be passed as parameter to the callback.
4040
+ *
4041
+ * Example:
4042
+ * ```javascript
4043
+ * // Subscribing with acknowledgement
4044
+ * let receiptId = randomText();
4045
+ *
4046
+ * client.watchForReceipt(receiptId, function() {
4047
+ * // Will be called after server acknowledges
4048
+ * });
4049
+ *
4050
+ * client.subscribe(TEST.destination, onMessage, {receipt: receiptId});
4051
+ *
4052
+ *
4053
+ * // Publishing with acknowledgement
4054
+ * receiptId = randomText();
4055
+ *
4056
+ * client.watchForReceipt(receiptId, function() {
4057
+ * // Will be called after server acknowledges
4058
+ * });
4059
+ * client.publish({destination: TEST.destination, headers: {receipt: receiptId}, body: msg});
4060
+ * ```
4061
+ */
4062
+ watchForReceipt(t, s) {
4063
+ this._checkConnection(), this._stompHandler.watchForReceipt(t, s);
4064
+ }
4065
+ /**
4066
+ * Subscribe to a STOMP Broker location. The callback will be invoked for each
4067
+ * received message with the {@link IMessage} as argument.
4068
+ *
4069
+ * Note: The library will generate a unique ID if there is none provided in the headers.
4070
+ * To use your own ID, pass it using the `headers` argument.
4071
+ *
4072
+ * ```javascript
4073
+ * callback = function(message) {
4074
+ * // called when the client receives a STOMP message from the server
4075
+ * if (message.body) {
4076
+ * alert("got message with body " + message.body)
4077
+ * } else {
4078
+ * alert("got empty message");
4079
+ * }
4080
+ * });
4081
+ *
4082
+ * var subscription = client.subscribe("/queue/test", callback);
4083
+ *
4084
+ * // Explicit subscription id
4085
+ * var mySubId = 'my-subscription-id-001';
4086
+ * var subscription = client.subscribe(destination, callback, { id: mySubId });
4087
+ * ```
4088
+ */
4089
+ subscribe(t, s, n = {}) {
4090
+ return this._checkConnection(), this._stompHandler.subscribe(t, s, n);
4091
+ }
4092
+ /**
4093
+ * It is preferable to unsubscribe from a subscription by calling
4094
+ * `unsubscribe()` directly on {@link StompSubscription} returned by `client.subscribe()`:
4095
+ *
4096
+ * ```javascript
4097
+ * var subscription = client.subscribe(destination, onmessage);
4098
+ * // ...
4099
+ * subscription.unsubscribe();
4100
+ * ```
4101
+ *
4102
+ * See: https://stomp.github.com/stomp-specification-1.2.html#UNSUBSCRIBE UNSUBSCRIBE Frame
4103
+ */
4104
+ unsubscribe(t, s = {}) {
4105
+ this._checkConnection(), this._stompHandler.unsubscribe(t, s);
4106
+ }
4107
+ /**
4108
+ * Start a transaction, the returned {@link ITransaction} has methods - [commit]{@link ITransaction#commit}
4109
+ * and [abort]{@link ITransaction#abort}.
4110
+ *
4111
+ * `transactionId` is optional, if not passed the library will generate it internally.
4112
+ */
4113
+ begin(t) {
4114
+ return this._checkConnection(), this._stompHandler.begin(t);
4115
+ }
4116
+ /**
4117
+ * Commit a transaction.
4118
+ *
4119
+ * It is preferable to commit a transaction by calling [commit]{@link ITransaction#commit} directly on
4120
+ * {@link ITransaction} returned by [client.begin]{@link Client#begin}.
4121
+ *
4122
+ * ```javascript
4123
+ * var tx = client.begin(txId);
4124
+ * //...
4125
+ * tx.commit();
4126
+ * ```
4127
+ */
4128
+ commit(t) {
4129
+ this._checkConnection(), this._stompHandler.commit(t);
4130
+ }
4131
+ /**
4132
+ * Abort a transaction.
4133
+ * It is preferable to abort a transaction by calling [abort]{@link ITransaction#abort} directly on
4134
+ * {@link ITransaction} returned by [client.begin]{@link Client#begin}.
4135
+ *
4136
+ * ```javascript
4137
+ * var tx = client.begin(txId);
4138
+ * //...
4139
+ * tx.abort();
4140
+ * ```
4141
+ */
4142
+ abort(t) {
4143
+ this._checkConnection(), this._stompHandler.abort(t);
4144
+ }
4145
+ /**
4146
+ * ACK a message. It is preferable to acknowledge a message by calling [ack]{@link IMessage#ack} directly
4147
+ * on the {@link IMessage} handled by a subscription callback:
4148
+ *
4149
+ * ```javascript
4150
+ * var callback = function (message) {
4151
+ * // process the message
4152
+ * // acknowledge it
4153
+ * message.ack();
4154
+ * };
4155
+ * client.subscribe(destination, callback, {'ack': 'client'});
4156
+ * ```
4157
+ */
4158
+ ack(t, s, n = {}) {
4159
+ this._checkConnection(), this._stompHandler.ack(t, s, n);
4160
+ }
4161
+ /**
4162
+ * NACK a message. It is preferable to acknowledge a message by calling [nack]{@link IMessage#nack} directly
4163
+ * on the {@link IMessage} handled by a subscription callback:
4164
+ *
4165
+ * ```javascript
4166
+ * var callback = function (message) {
4167
+ * // process the message
4168
+ * // an error occurs, nack it
4169
+ * message.nack();
4170
+ * };
4171
+ * client.subscribe(destination, callback, {'ack': 'client'});
4172
+ * ```
4173
+ */
4174
+ nack(t, s, n = {}) {
4175
+ this._checkConnection(), this._stompHandler.nack(t, s, n);
4176
+ }
4177
+ }
4178
+ class Tc {
4179
+ constructor(t, s) {
4180
+ Sc(this, "client"), this.virtualHost = t, this.queue = s, this.client = new Cc({
4181
+ brokerURL: window.VITE_BROKER_URL ? window.VITE_BROKER_URL : "ws://192.168.20.107:15674/ws",
4182
+ connectHeaders: {
4183
+ login: window.VITE_USERNAME ? window.VITE_USERNAME : "admin",
4184
+ passcode: window.VITE_PASSWORD ? window.VITE_PASSWORD : "password",
4185
+ host: this.virtualHost
4186
+ }
4187
+ // heartbeatIncoming:0,
4188
+ // heartbeatOutgoing:0,
4189
+ // debug: function(str) {
4190
+ // console.log(str);
4191
+ // }
4192
+ });
4193
+ }
4194
+ async connect() {
4195
+ return new Promise((t, s) => {
4196
+ this.client.onConnect = () => {
4197
+ t();
4198
+ }, this.client.activate();
4199
+ });
4200
+ }
4201
+ async disconnectClient() {
4202
+ this.client.onDisconnect = () => {
4203
+ }, this.client.deactivate(), this.client.unsubscribe("");
4204
+ }
4205
+ async subscribe(t) {
4206
+ await this.connect(), this.client.subscribe(`/queue/${this.queue}`, (s) => {
4207
+ const n = JSON.parse(s.body);
4208
+ t(n);
4209
+ });
4210
+ }
4211
+ async publish(t) {
4212
+ this.client.publish({ destination: `/queue/${this.queue}`, body: JSON.stringify({ data: t }) });
4213
+ }
4214
+ }
4215
+ const Nc = {}, xc = {
4216
+ width: "32",
4217
+ height: "32",
4218
+ viewBox: "0 0 32 32",
4219
+ fill: "none",
4220
+ xmlns: "http://www.w3.org/2000/svg"
4221
+ }, Yc = /* @__PURE__ */ C("path", {
4222
+ d: "M16 31C24.2843 31 31 24.2843 31 16C31 7.71573 24.2843 1 16 1C7.71573 1 1 7.71573 1 16C1 24.2843 7.71573 31 16 31Z",
4223
+ stroke: "#B3B3B3",
4224
+ "stroke-miterlimit": "10"
4225
+ }, null, -1), Ec = /* @__PURE__ */ C("path", {
4226
+ d: "M19.78 22.3L15.98 16.63H15.9601L12.2001 22.3H11.0701L15.37 15.8899L11.25 9.69995H12.38L15.98 15.08H16L19.67 9.69995H20.8L16.55 15.82L20.92 22.3H19.77H19.78Z",
4227
+ fill: "#B3B3B3"
4228
+ }, null, -1), Ic = [
4229
+ Yc,
4230
+ Ec
4231
+ ];
4232
+ function Wc(e, t) {
4233
+ return V(), j("svg", xc, Ic);
4234
+ }
4235
+ const Rc = /* @__PURE__ */ we(Nc, [["render", Wc]]), Lc = {}, Pc = {
4236
+ width: "24",
4237
+ height: "24",
4238
+ viewBox: "0 0 24 24",
4239
+ fill: "none",
4240
+ xmlns: "http://www.w3.org/2000/svg"
4241
+ }, Ac = /* @__PURE__ */ C("path", {
4242
+ d: "M11.9301 23.25C5.65005 23.25 0.550049 18.14 0.550049 11.87C0.550049 5.6 5.66005 0.48999 11.9301 0.48999C18.2001 0.48999 23.3101 5.6 23.3101 11.87C23.3101 18.14 18.2001 23.25 11.9301 23.25ZM11.9301 1.10999C6.00005 1.10999 1.17004 5.94 1.17004 11.87C1.17004 17.8 6.00005 22.63 11.9301 22.63C17.8601 22.63 22.6899 17.8 22.6899 11.87C22.6899 5.94 17.8601 1.10999 11.9301 1.10999Z",
4243
+ fill: "#F28B0C"
4244
+ }, null, -1), Fc = /* @__PURE__ */ C("path", {
4245
+ d: "M8.68994 17.0601C8.63994 17.0601 8.58004 17.0501 8.54004 17.0201C8.44004 16.9701 8.38 16.8601 8.38 16.7501V6.99007C8.38 6.88007 8.44004 6.78005 8.54004 6.72005C8.64004 6.66005 8.74998 6.67005 8.84998 6.72005L17.1899 11.6001C17.2799 11.6601 17.34 11.7601 17.34 11.8701C17.34 11.9801 17.2799 12.0801 17.1899 12.1401L8.84998 17.0201C8.84998 17.0201 8.74994 17.0601 8.68994 17.0601ZM9 7.5301V16.21L16.42 11.8701L9 7.5301Z",
4246
+ fill: "#F28B0C"
4247
+ }, null, -1), Hc = [
4248
+ Ac,
4249
+ Fc
4250
+ ];
4251
+ function Vc(e, t) {
4252
+ return V(), j("svg", Pc, Hc);
4253
+ }
4254
+ const Uc = /* @__PURE__ */ we(Lc, [["render", Vc]]), Bc = {}, $c = {
4255
+ width: "42",
4256
+ height: "42",
4257
+ viewBox: "0 0 42 42",
4258
+ fill: "none",
4259
+ xmlns: "http://www.w3.org/2000/svg"
4260
+ }, jc = /* @__PURE__ */ C("path", {
4261
+ d: "M21.04 40.9399C32.0857 40.9399 41.04 31.9856 41.04 20.9399C41.04 9.89419 32.0857 0.939941 21.04 0.939941C9.99428 0.939941 1.03998 9.89419 1.03998 20.9399C1.03998 31.9856 9.99428 40.9399 21.04 40.9399Z",
4262
+ stroke: "#F28B0C",
4263
+ "stroke-width": "1.5",
4264
+ "stroke-miterlimit": "10"
4265
+ }, null, -1), Gc = /* @__PURE__ */ C("path", {
4266
+ d: "M22.87 20.36C24.92 19.57 26.38 17.5801 26.38 15.2601C26.38 12.2401 23.93 9.79004 20.91 9.79004C17.89 9.79004 15.44 12.2401 15.44 15.2601C15.44 17.6301 16.95 19.6401 19.06 20.4001C16.15 21.2601 14.02 23.9501 14.02 27.1301V31.7701C14.02 31.9401 14.16 32.08 14.33 32.08H27.76C27.93 32.08 28.07 31.9401 28.07 31.7701V27.1301C28.07 23.8901 25.86 21.16 22.87 20.36Z",
4267
+ fill: "#F28B0C"
4268
+ }, null, -1), zc = [
4269
+ jc,
4270
+ Gc
4271
+ ];
4272
+ function Zc(e, t) {
4273
+ return V(), j("svg", $c, zc);
4274
+ }
4275
+ const qc = /* @__PURE__ */ we(Bc, [["render", Zc]]), Kc = (e) => (In("data-v-f8d5bc79"), e = e(), Wn(), e), Qc = { class: "widget" }, Jc = { class: "header-widget" }, Xc = /* @__PURE__ */ Kc(() => /* @__PURE__ */ C("span", null, null, -1)), el = {
4276
+ class: "messages-container",
4277
+ id: "messages-container",
4278
+ ref: "messagesContainer"
4279
+ }, tl = { class: "input-message w-full" }, sl = ["onSubmit"], nl = { class: "form-message" }, rl = { type: "submit" }, il = { class: "jl-inputgroup" }, al = { type: "submit" }, ol = /* @__PURE__ */ Rt({
4280
+ __name: "Chat",
4281
+ props: {
4282
+ toggleChat: { type: Function, required: !0 },
4283
+ tokenAuth: { type: String, required: !0 },
4284
+ phoneUser: { type: String, required: !0 }
4285
+ },
4286
+ setup(e) {
4287
+ const t = e, s = tc(), n = Me("webchat"), r = Me("76177719"), i = Me(null), a = Me(null), o = Me([]), c = (v) => v.startsWith("591") && v.length === 11 ? v.substring(3) : v, f = async (v) => {
4288
+ v.preventDefault();
4289
+ const { virtualHost: R } = s.state;
4290
+ await s.dispatch("sendMessageByAppAndPhone", {
4291
+ token: t.tokenAuth,
4292
+ data: {
4293
+ virtualHost: R,
4294
+ queue: `widget_chat_${sessionStorage.getItem("tabBrowser")}`,
4295
+ //`${selectDetailtChat.value.app}_${queueUniqueUser.value}`,
4296
+ device: "00000000",
4297
+ phone: c(r.value),
4298
+ app: n.value,
4299
+ message: a.value,
4300
+ widget: !0
4301
+ }
4302
+ }), a.value = null;
4303
+ }, h = async (v) => {
4304
+ v.resetConnection && k(), m();
4305
+ const R = [];
4306
+ await s.dispatch("messagesByAppAndPhone", {
4307
+ token: t.tokenAuth,
4308
+ data: {
4309
+ phone: t.phoneUser,
4310
+ app: n.value,
4311
+ device: null
4312
+ }
4313
+ });
4314
+ const ue = s.getters.get_messages_chat;
4315
+ if (ue) {
4316
+ for (const de of ue)
4317
+ R.push(...de.messages);
4318
+ o.value = R;
4319
+ }
4320
+ }, m = (v = "webchat") => {
4321
+ const { virtualHost: R } = s.state;
4322
+ if (!sessionStorage.getItem("tabBrowser")) {
4323
+ let de = Date.now();
4324
+ sessionStorage.setItem("tabBrowser", `${de}`);
4325
+ }
4326
+ i.value = new Tc(`${R}`, `widget_chat_${sessionStorage.getItem("tabBrowser")}`), i.value.connect(), i.value.subscribe(async () => {
4327
+ await h({ resetConnection: !1 });
4328
+ const de = document.getElementById("messages-container");
4329
+ de.scrollTop = de.scrollHeight;
4330
+ });
4331
+ }, k = () => {
4332
+ var v;
4333
+ (v = i.value) == null || v.disconnectClient();
4334
+ };
4335
+ return Mn(async () => {
4336
+ await h({ resetConnection: !1 });
4337
+ const v = `WIDGET_CHAT_${t.phoneUser}`;
4338
+ await s.dispatch("syncVirtualHostCentral", {
4339
+ token: t.tokenAuth,
4340
+ data: {
4341
+ virtualHost: v
4342
+ }
4343
+ }), m();
4344
+ }), (v, R) => (V(), j("div", Qc, [
4345
+ C("div", Jc, [
4346
+ Xc,
4347
+ Pe(Rc, {
4348
+ onClick: R[0] || (R[0] = (ue) => e.toggleChat())
4349
+ })
4350
+ ]),
4351
+ C("div", el, [
4352
+ (V(!0), j(Cn, null, Tn(o.value, (ue, de) => (V(), Nn(Go, {
4353
+ class: "message",
4354
+ key: de,
4355
+ message: ue
4356
+ }, null, 8, ["message"]))), 128))
4357
+ ], 512),
4358
+ C("div", tl, [
4359
+ C("form", {
4360
+ class: "message-send",
4361
+ onSubmit: xn(f, ["prevent"])
4362
+ }, [
4363
+ C("div", nl, [
4364
+ C("button", rl, [
4365
+ Pe(qc)
4366
+ ]),
4367
+ C("div", il, [
4368
+ Yn(C("input", {
4369
+ "onUpdate:modelValue": R[1] || (R[1] = (ue) => a.value = ue),
4370
+ class: "jl2-input",
4371
+ required: ""
4372
+ }, null, 512), [
4373
+ [En, a.value]
4374
+ ]),
4375
+ C("button", al, [
4376
+ Pe(Uc)
4377
+ ])
4378
+ ])
4379
+ ])
4380
+ ], 40, sl)
4381
+ ])
4382
+ ]));
4383
+ }
4384
+ });
4385
+ const cl = /* @__PURE__ */ we(ol, [["__scopeId", "data-v-f8d5bc79"]]), ll = {}, ul = {
4386
+ width: "87",
4387
+ height: "87",
4388
+ viewBox: "0 0 87 87",
4389
+ fill: "none",
4390
+ xmlns: "http://www.w3.org/2000/svg"
4391
+ }, dl = /* @__PURE__ */ Rn('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>', 2), hl = [
4392
+ dl
4393
+ ];
4394
+ function fl(e, t) {
4395
+ return V(), j("svg", ul, hl);
4396
+ }
4397
+ const _l = /* @__PURE__ */ we(ll, [["render", fl]]), ml = {
4398
+ key: 0,
4399
+ class: "chat-box"
4400
+ }, pl = /* @__PURE__ */ Rt({
4401
+ __name: "Widget",
4402
+ props: {
4403
+ tokenAuth: { type: String, required: !0 },
4404
+ phoneUser: { type: String, required: !0 }
4405
+ },
4406
+ setup(e) {
4407
+ const t = Me(!1), s = () => {
4408
+ t.value = !t.value;
4409
+ };
4410
+ return (n, r) => (V(), j("div", null, [
4411
+ C("div", null, [
4412
+ C("div", {
4413
+ id: "chat-circle",
4414
+ onClick: s
4415
+ }, [
4416
+ Pe(_l)
4417
+ ]),
4418
+ t.value ? (V(), j("div", ml, [
4419
+ Pe(cl, {
4420
+ toggleChat: s,
4421
+ tokenAuth: e.tokenAuth,
4422
+ phoneUser: e.phoneUser
4423
+ }, null, 8, ["tokenAuth", "phoneUser"])
4424
+ ])) : Ln("", !0)
4425
+ ])
4426
+ ]));
4427
+ }
4428
+ });
4429
+ const gl = /* @__PURE__ */ we(pl, [["__scopeId", "data-v-4b17fe0e"]]), vl = {
4430
+ install(e, t) {
4431
+ }
4432
+ };
4433
+ export {
4434
+ gl as Widget,
4435
+ vl as default
4436
+ };