vue-wiguet-chatweb 0.1.33 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +403 -400
- package/dist/vue-wiguet-chatweb.umd.cjs +6 -6
- package/package.json +1 -1
- package/src/components/Chat.vue +5 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as x, createElementBlock as A, createElementVNode as v, getCurrentScope as yo, onScopeDispose as go, unref as
|
1
|
+
import { openBlock as x, createElementBlock as A, createElementVNode as v, getCurrentScope as yo, onScopeDispose as go, unref as Le, computed as ts, ref as B, watch as ns, getCurrentInstance as wo, onMounted as ss, defineComponent as Xt, onBeforeMount as vo, Fragment as dt, renderList as Dn, normalizeClass as De, createVNode as le, createCommentVNode as Se, toDisplayString as Ze, createBlock as rs, Teleport as bo, withModifiers as Fn, renderSlot as To, nextTick as gn, reactive as So, onUnmounted as ko, withDirectives as Zt, withKeys as Et, vModelText as Ss, normalizeProps as Eo, guardReactiveProps as Oo, withCtx as _o, createStaticVNode as Co, vShow as ks } from "vue";
|
2
2
|
let Ot;
|
3
3
|
const xo = new Uint8Array(16);
|
4
4
|
function No() {
|
@@ -65,7 +65,7 @@ function xr(t, e) {
|
|
65
65
|
return t.apply(e, arguments);
|
66
66
|
};
|
67
67
|
}
|
68
|
-
const { toString: Uo } = Object.prototype, { getPrototypeOf:
|
68
|
+
const { toString: Uo } = Object.prototype, { getPrototypeOf: is } = Object, en = /* @__PURE__ */ ((t) => (e) => {
|
69
69
|
const n = Uo.call(e);
|
70
70
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
71
71
|
})(/* @__PURE__ */ Object.create(null)), we = (t) => (t = t.toLowerCase(), (e) => en(e) === t), tn = (t) => (e) => typeof e === t, { isArray: Ke } = Array, pt = tn("undefined");
|
@@ -80,7 +80,7 @@ function $o(t) {
|
|
80
80
|
const qo = tn("string"), se = tn("function"), Ar = tn("number"), nn = (t) => t !== null && typeof t == "object", Wo = (t) => t === !0 || t === !1, Lt = (t) => {
|
81
81
|
if (en(t) !== "object")
|
82
82
|
return !1;
|
83
|
-
const e =
|
83
|
+
const e = is(t);
|
84
84
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
85
85
|
}, zo = we("Date"), Ho = we("File"), Zo = we("Blob"), jo = we("FileList"), Yo = (t) => nn(t) && se(t.pipe), Jo = (t) => {
|
86
86
|
let e;
|
@@ -110,11 +110,11 @@ function Rr(t, e) {
|
|
110
110
|
return r;
|
111
111
|
return null;
|
112
112
|
}
|
113
|
-
const
|
114
|
-
function
|
113
|
+
const Fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ir = (t) => !pt(t) && t !== Fe;
|
114
|
+
function Bn() {
|
115
115
|
const { caseless: t } = Ir(this) && this || {}, e = {}, n = (s, r) => {
|
116
116
|
const i = t && Rr(e, r) || r;
|
117
|
-
Lt(e[i]) && Lt(s) ? e[i] =
|
117
|
+
Lt(e[i]) && Lt(s) ? e[i] = Bn(e[i], s) : Lt(s) ? e[i] = Bn({}, s) : Ke(s) ? e[i] = s.slice() : e[i] = s;
|
118
118
|
};
|
119
119
|
for (let s = 0, r = arguments.length; s < r; s++)
|
120
120
|
arguments[s] && gt(arguments[s], n);
|
@@ -133,7 +133,7 @@ const n2 = (t, e, n, { allOwnKeys: s } = {}) => (gt(e, (r, i) => {
|
|
133
133
|
do {
|
134
134
|
for (r = Object.getOwnPropertyNames(t), i = r.length; i-- > 0; )
|
135
135
|
o = r[i], (!s || s(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = !0);
|
136
|
-
t = n !== !1 &&
|
136
|
+
t = n !== !1 && is(t);
|
137
137
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
138
138
|
return e;
|
139
139
|
}, o2 = (t, e, n) => {
|
@@ -149,7 +149,7 @@ const n2 = (t, e, n, { allOwnKeys: s } = {}) => (gt(e, (r, i) => {
|
|
149
149
|
for (; e-- > 0; )
|
150
150
|
n[e] = t[e];
|
151
151
|
return n;
|
152
|
-
}, l2 = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
152
|
+
}, l2 = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && is(Uint8Array)), c2 = (t, e) => {
|
153
153
|
const s = (t && t[Symbol.iterator]).call(t);
|
154
154
|
let r;
|
155
155
|
for (; (r = s.next()) && !r.done; ) {
|
@@ -196,10 +196,10 @@ const n2 = (t, e, n, { allOwnKeys: s } = {}) => (gt(e, (r, i) => {
|
|
196
196
|
};
|
197
197
|
return Ke(t) ? s(t) : s(String(t).split(e)), n;
|
198
198
|
}, y2 = () => {
|
199
|
-
}, g2 = (t, e) => t != null && Number.isFinite(t = +t) ? t : e,
|
199
|
+
}, g2 = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, wn = "abcdefghijklmnopqrstuvwxyz", Cs = "0123456789", Lr = {
|
200
200
|
DIGIT: Cs,
|
201
|
-
ALPHA:
|
202
|
-
ALPHA_DIGIT:
|
201
|
+
ALPHA: wn,
|
202
|
+
ALPHA_DIGIT: wn + wn.toUpperCase() + Cs
|
203
203
|
}, w2 = (t = 16, e = Lr.ALPHA_DIGIT) => {
|
204
204
|
let n = "";
|
205
205
|
const { length: s } = e;
|
@@ -227,14 +227,14 @@ const b2 = (t) => {
|
|
227
227
|
return s;
|
228
228
|
};
|
229
229
|
return n(t, 0);
|
230
|
-
}, T2 = we("AsyncFunction"), S2 = (t) => t && (nn(t) || se(t)) && se(t.then) && se(t.catch), Dr = ((t, e) => t ? setImmediate : e ? ((n, s) => (
|
231
|
-
r ===
|
230
|
+
}, T2 = we("AsyncFunction"), S2 = (t) => t && (nn(t) || se(t)) && se(t.then) && se(t.catch), Dr = ((t, e) => t ? setImmediate : e ? ((n, s) => (Fe.addEventListener("message", ({ source: r, data: i }) => {
|
231
|
+
r === Fe && i === n && s.length && s.shift()();
|
232
232
|
}, !1), (r) => {
|
233
|
-
s.push(r),
|
233
|
+
s.push(r), Fe.postMessage(n, "*");
|
234
234
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
235
235
|
typeof setImmediate == "function",
|
236
|
-
se(
|
237
|
-
), k2 = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
236
|
+
se(Fe.postMessage)
|
237
|
+
), k2 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Fe) : typeof process < "u" && process.nextTick || Dr, h = {
|
238
238
|
isArray: Ke,
|
239
239
|
isArrayBuffer: Nr,
|
240
240
|
isBuffer: Po,
|
@@ -260,7 +260,7 @@ const b2 = (t) => {
|
|
260
260
|
isTypedArray: l2,
|
261
261
|
isFileList: jo,
|
262
262
|
forEach: gt,
|
263
|
-
merge:
|
263
|
+
merge: Bn,
|
264
264
|
extend: n2,
|
265
265
|
trim: t2,
|
266
266
|
stripBOM: s2,
|
@@ -283,7 +283,7 @@ const b2 = (t) => {
|
|
283
283
|
noop: y2,
|
284
284
|
toFiniteNumber: g2,
|
285
285
|
findKey: Rr,
|
286
|
-
global:
|
286
|
+
global: Fe,
|
287
287
|
isContextDefined: Ir,
|
288
288
|
ALPHABET: Lr,
|
289
289
|
generateString: w2,
|
@@ -345,7 +345,7 @@ _.from = (t, e, n, s, r, i) => {
|
|
345
345
|
}, (a) => a !== "isAxiosError"), _.call(o, t.message, e, n, s, r), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
|
346
346
|
};
|
347
347
|
const E2 = null;
|
348
|
-
function
|
348
|
+
function Vn(t) {
|
349
349
|
return h.isPlainObject(t) || h.isArray(t);
|
350
350
|
}
|
351
351
|
function Vr(t) {
|
@@ -357,7 +357,7 @@ function xs(t, e, n) {
|
|
357
357
|
}).join(n ? "." : "") : e;
|
358
358
|
}
|
359
359
|
function O2(t) {
|
360
|
-
return h.isArray(t) && !t.some(
|
360
|
+
return h.isArray(t) && !t.some(Vn);
|
361
361
|
}
|
362
362
|
const _2 = h.toFlatObject(h, {}, null, function(e) {
|
363
363
|
return /^is[A-Z]/.test(e);
|
@@ -397,12 +397,12 @@ function sn(t, e, n) {
|
|
397
397
|
);
|
398
398
|
}), !1;
|
399
399
|
}
|
400
|
-
return
|
400
|
+
return Vn(d) ? !0 : (e.append(xs(g, T, i), c(d)), !1);
|
401
401
|
}
|
402
402
|
const f = [], p = Object.assign(_2, {
|
403
403
|
defaultVisitor: u,
|
404
404
|
convertValue: c,
|
405
|
-
isVisitable:
|
405
|
+
isVisitable: Vn
|
406
406
|
});
|
407
407
|
function m(d, T) {
|
408
408
|
if (!h.isUndefined(d)) {
|
@@ -437,10 +437,10 @@ function Ns(t) {
|
|
437
437
|
return e[s];
|
438
438
|
});
|
439
439
|
}
|
440
|
-
function
|
440
|
+
function os(t, e) {
|
441
441
|
this._pairs = [], t && sn(t, this, e);
|
442
442
|
}
|
443
|
-
const Ur =
|
443
|
+
const Ur = os.prototype;
|
444
444
|
Ur.append = function(e, n) {
|
445
445
|
this._pairs.push([e, n]);
|
446
446
|
};
|
@@ -464,7 +464,7 @@ function Pr(t, e, n) {
|
|
464
464
|
});
|
465
465
|
const r = n && n.serialize;
|
466
466
|
let i;
|
467
|
-
if (r ? i = r(e, n) : i = h.isURLSearchParams(e) ? e.toString() : new
|
467
|
+
if (r ? i = r(e, n) : i = h.isURLSearchParams(e) ? e.toString() : new os(e, n).toString(s), i) {
|
468
468
|
const o = t.indexOf("#");
|
469
469
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
470
470
|
}
|
@@ -528,7 +528,7 @@ const $r = {
|
|
528
528
|
silentJSONParsing: !0,
|
529
529
|
forcedJSONParsing: !0,
|
530
530
|
clarifyTimeoutError: !1
|
531
|
-
}, x2 = typeof URLSearchParams < "u" ? URLSearchParams :
|
531
|
+
}, x2 = typeof URLSearchParams < "u" ? URLSearchParams : os, N2 = typeof FormData < "u" ? FormData : null, A2 = typeof Blob < "u" ? Blob : null, R2 = {
|
532
532
|
isBrowser: !0,
|
533
533
|
classes: {
|
534
534
|
URLSearchParams: x2,
|
@@ -536,13 +536,13 @@ const $r = {
|
|
536
536
|
Blob: A2
|
537
537
|
},
|
538
538
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
539
|
-
},
|
540
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", L2 =
|
539
|
+
}, as = typeof window < "u" && typeof document < "u", Un = typeof navigator == "object" && navigator || void 0, I2 = as && (!Un || ["ReactNative", "NativeScript", "NS"].indexOf(Un.product) < 0), M2 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
540
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", L2 = as && window.location.href || "http://localhost", D2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
541
541
|
__proto__: null,
|
542
|
-
hasBrowserEnv:
|
542
|
+
hasBrowserEnv: as,
|
543
543
|
hasStandardBrowserEnv: I2,
|
544
544
|
hasStandardBrowserWebWorkerEnv: M2,
|
545
|
-
navigator:
|
545
|
+
navigator: Un,
|
546
546
|
origin: L2
|
547
547
|
}, Symbol.toStringTag, { value: "Module" })), J = {
|
548
548
|
...D2,
|
@@ -701,7 +701,7 @@ function q2(t) {
|
|
701
701
|
return e;
|
702
702
|
}
|
703
703
|
const W2 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
704
|
-
function
|
704
|
+
function vn(t, e, n, s, r) {
|
705
705
|
if (h.isFunction(s))
|
706
706
|
return s.call(this, e, n);
|
707
707
|
if (r && (e = n), !!h.isString(e)) {
|
@@ -770,7 +770,7 @@ class X {
|
|
770
770
|
has(e, n) {
|
771
771
|
if (e = at(e), e) {
|
772
772
|
const s = h.findKey(this, e);
|
773
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
773
|
+
return !!(s && this[s] !== void 0 && (!n || vn(this, this[s], s, n)));
|
774
774
|
}
|
775
775
|
return !1;
|
776
776
|
}
|
@@ -780,7 +780,7 @@ class X {
|
|
780
780
|
function i(o) {
|
781
781
|
if (o = at(o), o) {
|
782
782
|
const a = h.findKey(s, o);
|
783
|
-
a && (!n ||
|
783
|
+
a && (!n || vn(s, s[a], a, n)) && (delete s[a], r = !0);
|
784
784
|
}
|
785
785
|
}
|
786
786
|
return h.isArray(e) ? e.forEach(i) : i(e), r;
|
@@ -790,7 +790,7 @@ class X {
|
|
790
790
|
let s = n.length, r = !1;
|
791
791
|
for (; s--; ) {
|
792
792
|
const i = n[s];
|
793
|
-
(!e ||
|
793
|
+
(!e || vn(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
794
794
|
}
|
795
795
|
return r;
|
796
796
|
}
|
@@ -854,7 +854,7 @@ h.reduceDescriptors(X.prototype, ({ value: t }, e) => {
|
|
854
854
|
};
|
855
855
|
});
|
856
856
|
h.freezeMethods(X);
|
857
|
-
function
|
857
|
+
function bn(t, e) {
|
858
858
|
const n = this || wt, s = e || n, r = X.from(s.headers);
|
859
859
|
let i = s.data;
|
860
860
|
return h.forEach(t, function(a) {
|
@@ -978,7 +978,7 @@ function Hr(t, e) {
|
|
978
978
|
return t && !K2(e) ? Q2(t, e) : e;
|
979
979
|
}
|
980
980
|
const Ls = (t) => t instanceof X ? { ...t } : t;
|
981
|
-
function
|
981
|
+
function Ue(t, e) {
|
982
982
|
e = e || {};
|
983
983
|
const n = {};
|
984
984
|
function s(c, u, f, p) {
|
@@ -1043,7 +1043,7 @@ function Be(t, e) {
|
|
1043
1043
|
}), n;
|
1044
1044
|
}
|
1045
1045
|
const Zr = (t) => {
|
1046
|
-
const e =
|
1046
|
+
const e = Ue({}, t);
|
1047
1047
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: i, headers: o, auth: a } = e;
|
1048
1048
|
e.headers = o = X.from(o), e.url = Pr(Hr(e.baseURL, e.url), t.params, t.paramsSerializer), a && o.set(
|
1049
1049
|
"Authorization",
|
@@ -1087,10 +1087,10 @@ const Zr = (t) => {
|
|
1087
1087
|
config: t,
|
1088
1088
|
request: g
|
1089
1089
|
};
|
1090
|
-
zr(function(
|
1091
|
-
n(
|
1092
|
-
}, function(
|
1093
|
-
s(
|
1090
|
+
zr(function(U) {
|
1091
|
+
n(U), T();
|
1092
|
+
}, function(U) {
|
1093
|
+
s(U), T();
|
1094
1094
|
}, V), g = null;
|
1095
1095
|
}
|
1096
1096
|
"onloadend" in g ? g.onloadend = O : g.onreadystatechange = function() {
|
@@ -1216,8 +1216,8 @@ const Zr = (t) => {
|
|
1216
1216
|
}
|
1217
1217
|
}).headers.has("Content-Type");
|
1218
1218
|
return t && !e;
|
1219
|
-
}), Fs = 64 * 1024,
|
1220
|
-
stream:
|
1219
|
+
}), Fs = 64 * 1024, Pn = jr && Yr(() => h.isReadableStream(new Response("").body)), Yt = {
|
1220
|
+
stream: Pn && ((t) => t.body)
|
1221
1221
|
};
|
1222
1222
|
rn && ((t) => {
|
1223
1223
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
@@ -1272,11 +1272,11 @@ const aa = async (t) => {
|
|
1272
1272
|
duplex: "half"
|
1273
1273
|
}), oe;
|
1274
1274
|
if (h.isFormData(s) && (oe = V.headers.get("content-type")) && u.setContentType(oe), V.body) {
|
1275
|
-
const [
|
1275
|
+
const [U, he] = Is(
|
1276
1276
|
g,
|
1277
1277
|
jt(Ms(l))
|
1278
1278
|
);
|
1279
|
-
s = Ds(V.body, Fs,
|
1279
|
+
s = Ds(V.body, Fs, U, he);
|
1280
1280
|
}
|
1281
1281
|
}
|
1282
1282
|
h.isString(f) || (f = f ? "include" : "omit");
|
@@ -1291,18 +1291,18 @@ const aa = async (t) => {
|
|
1291
1291
|
credentials: O ? f : void 0
|
1292
1292
|
});
|
1293
1293
|
let C = await fetch(d);
|
1294
|
-
const D =
|
1295
|
-
if (
|
1294
|
+
const D = Pn && (c === "stream" || c === "response");
|
1295
|
+
if (Pn && (a || D && T)) {
|
1296
1296
|
const V = {};
|
1297
|
-
["status", "statusText", "headers"].forEach((
|
1298
|
-
V[
|
1297
|
+
["status", "statusText", "headers"].forEach((Z) => {
|
1298
|
+
V[Z] = C[Z];
|
1299
1299
|
});
|
1300
|
-
const oe = h.toFiniteNumber(C.headers.get("content-length")), [
|
1300
|
+
const oe = h.toFiniteNumber(C.headers.get("content-length")), [U, he] = a && Is(
|
1301
1301
|
oe,
|
1302
1302
|
jt(Ms(a), !0)
|
1303
1303
|
) || [];
|
1304
1304
|
C = new Response(
|
1305
|
-
Ds(C.body, Fs,
|
1305
|
+
Ds(C.body, Fs, U, () => {
|
1306
1306
|
he && he(), T && T();
|
1307
1307
|
}),
|
1308
1308
|
V
|
@@ -1328,12 +1328,12 @@ const aa = async (t) => {
|
|
1328
1328
|
}
|
1329
1329
|
) : _.from(O, O && O.code, t, d);
|
1330
1330
|
}
|
1331
|
-
}),
|
1331
|
+
}), $n = {
|
1332
1332
|
http: E2,
|
1333
1333
|
xhr: ea,
|
1334
1334
|
fetch: ca
|
1335
1335
|
};
|
1336
|
-
h.forEach(
|
1336
|
+
h.forEach($n, (t, e) => {
|
1337
1337
|
if (t) {
|
1338
1338
|
try {
|
1339
1339
|
Object.defineProperty(t, "name", { value: e });
|
@@ -1351,7 +1351,7 @@ const Bs = (t) => `- ${t}`, ua = (t) => h.isFunction(t) || t === null || t === !
|
|
1351
1351
|
for (let i = 0; i < e; i++) {
|
1352
1352
|
n = t[i];
|
1353
1353
|
let o;
|
1354
|
-
if (s = n, !ua(n) && (s =
|
1354
|
+
if (s = n, !ua(n) && (s = $n[(o = String(n)).toLowerCase()], s === void 0))
|
1355
1355
|
throw new _(`Unknown adapter '${o}'`);
|
1356
1356
|
if (s)
|
1357
1357
|
break;
|
@@ -1371,24 +1371,24 @@ const Bs = (t) => `- ${t}`, ua = (t) => h.isFunction(t) || t === null || t === !
|
|
1371
1371
|
}
|
1372
1372
|
return s;
|
1373
1373
|
},
|
1374
|
-
adapters:
|
1374
|
+
adapters: $n
|
1375
1375
|
};
|
1376
|
-
function
|
1376
|
+
function Tn(t) {
|
1377
1377
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
1378
1378
|
throw new Qe(null, t);
|
1379
1379
|
}
|
1380
1380
|
function Vs(t) {
|
1381
|
-
return
|
1381
|
+
return Tn(t), t.headers = X.from(t.headers), t.data = bn.call(
|
1382
1382
|
t,
|
1383
1383
|
t.transformRequest
|
1384
1384
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(t.adapter || wt.adapter)(t).then(function(s) {
|
1385
|
-
return
|
1385
|
+
return Tn(t), s.data = bn.call(
|
1386
1386
|
t,
|
1387
1387
|
t.transformResponse,
|
1388
1388
|
s
|
1389
1389
|
), s.headers = X.from(s.headers), s;
|
1390
1390
|
}, function(s) {
|
1391
|
-
return Wr(s) || (
|
1391
|
+
return Wr(s) || (Tn(t), s && s.response && (s.response.data = bn.call(
|
1392
1392
|
t,
|
1393
1393
|
t.transformResponse,
|
1394
1394
|
s.response
|
@@ -1444,7 +1444,7 @@ const Ft = {
|
|
1444
1444
|
assertOptions: fa,
|
1445
1445
|
validators: on
|
1446
1446
|
}, ve = Ft.validators;
|
1447
|
-
class
|
1447
|
+
class Ve {
|
1448
1448
|
constructor(e) {
|
1449
1449
|
this.defaults = e, this.interceptors = {
|
1450
1450
|
request: new As(),
|
@@ -1477,7 +1477,7 @@ class Fe {
|
|
1477
1477
|
}
|
1478
1478
|
}
|
1479
1479
|
_request(e, n) {
|
1480
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
1480
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Ue(this.defaults, n);
|
1481
1481
|
const { transitional: s, paramsSerializer: r, headers: i } = n;
|
1482
1482
|
s !== void 0 && Ft.assertOptions(s, {
|
1483
1483
|
silentJSONParsing: ve.transitional(ve.boolean),
|
@@ -1539,14 +1539,14 @@ class Fe {
|
|
1539
1539
|
return u;
|
1540
1540
|
}
|
1541
1541
|
getUri(e) {
|
1542
|
-
e =
|
1542
|
+
e = Ue(this.defaults, e);
|
1543
1543
|
const n = Hr(e.baseURL, e.url);
|
1544
1544
|
return Pr(n, e.params, e.paramsSerializer);
|
1545
1545
|
}
|
1546
1546
|
}
|
1547
1547
|
h.forEach(["delete", "get", "head", "options"], function(e) {
|
1548
|
-
|
1549
|
-
return this.request(
|
1548
|
+
Ve.prototype[e] = function(n, s) {
|
1549
|
+
return this.request(Ue(s || {}, {
|
1550
1550
|
method: e,
|
1551
1551
|
url: n,
|
1552
1552
|
data: (s || {}).data
|
@@ -1556,7 +1556,7 @@ h.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1556
1556
|
h.forEach(["post", "put", "patch"], function(e) {
|
1557
1557
|
function n(s) {
|
1558
1558
|
return function(i, o, a) {
|
1559
|
-
return this.request(
|
1559
|
+
return this.request(Ue(a || {}, {
|
1560
1560
|
method: e,
|
1561
1561
|
headers: s ? {
|
1562
1562
|
"Content-Type": "multipart/form-data"
|
@@ -1566,9 +1566,9 @@ h.forEach(["post", "put", "patch"], function(e) {
|
|
1566
1566
|
}));
|
1567
1567
|
};
|
1568
1568
|
}
|
1569
|
-
|
1569
|
+
Ve.prototype[e] = n(), Ve.prototype[e + "Form"] = n(!0);
|
1570
1570
|
});
|
1571
|
-
class
|
1571
|
+
class ls {
|
1572
1572
|
constructor(e) {
|
1573
1573
|
if (typeof e != "function")
|
1574
1574
|
throw new TypeError("executor must be a function.");
|
@@ -1634,7 +1634,7 @@ class as {
|
|
1634
1634
|
static source() {
|
1635
1635
|
let e;
|
1636
1636
|
return {
|
1637
|
-
token: new
|
1637
|
+
token: new ls(function(r) {
|
1638
1638
|
e = r;
|
1639
1639
|
}),
|
1640
1640
|
cancel: e
|
@@ -1649,7 +1649,7 @@ function ha(t) {
|
|
1649
1649
|
function da(t) {
|
1650
1650
|
return h.isObject(t) && t.isAxiosError === !0;
|
1651
1651
|
}
|
1652
|
-
const
|
1652
|
+
const qn = {
|
1653
1653
|
Continue: 100,
|
1654
1654
|
SwitchingProtocols: 101,
|
1655
1655
|
Processing: 102,
|
@@ -1714,35 +1714,35 @@ const $n = {
|
|
1714
1714
|
NotExtended: 510,
|
1715
1715
|
NetworkAuthenticationRequired: 511
|
1716
1716
|
};
|
1717
|
-
Object.entries(
|
1718
|
-
|
1717
|
+
Object.entries(qn).forEach(([t, e]) => {
|
1718
|
+
qn[e] = t;
|
1719
1719
|
});
|
1720
1720
|
function Kr(t) {
|
1721
|
-
const e = new
|
1722
|
-
return h.extend(n,
|
1723
|
-
return Kr(
|
1721
|
+
const e = new Ve(t), n = xr(Ve.prototype.request, e);
|
1722
|
+
return h.extend(n, Ve.prototype, e, { allOwnKeys: !0 }), h.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
1723
|
+
return Kr(Ue(t, r));
|
1724
1724
|
}, n;
|
1725
1725
|
}
|
1726
|
-
const
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1726
|
+
const H = Kr(wt);
|
1727
|
+
H.Axios = Ve;
|
1728
|
+
H.CanceledError = Qe;
|
1729
|
+
H.CancelToken = ls;
|
1730
|
+
H.isCancel = Wr;
|
1731
|
+
H.VERSION = Gr;
|
1732
|
+
H.toFormData = sn;
|
1733
|
+
H.AxiosError = _;
|
1734
|
+
H.Cancel = H.CanceledError;
|
1735
|
+
H.all = function(e) {
|
1736
1736
|
return Promise.all(e);
|
1737
1737
|
};
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1738
|
+
H.spread = ha;
|
1739
|
+
H.isAxiosError = da;
|
1740
|
+
H.mergeConfig = Ue;
|
1741
|
+
H.AxiosHeaders = X;
|
1742
|
+
H.formToJSON = (t) => qr(h.isHTMLForm(t) ? new FormData(t) : t);
|
1743
|
+
H.getAdapter = Jr.getAdapter;
|
1744
|
+
H.HttpStatusCode = qn;
|
1745
|
+
H.default = H;
|
1746
1746
|
const an = async function(t) {
|
1747
1747
|
const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : void 0, s = {
|
1748
1748
|
method: e.method,
|
@@ -1754,7 +1754,7 @@ const an = async function(t) {
|
|
1754
1754
|
},
|
1755
1755
|
data: e.data
|
1756
1756
|
};
|
1757
|
-
return await
|
1757
|
+
return await H(s).then(async function(r) {
|
1758
1758
|
return await r.data;
|
1759
1759
|
}).catch(async function(r) {
|
1760
1760
|
var o;
|
@@ -1818,13 +1818,13 @@ function ya(t) {
|
|
1818
1818
|
return yo() ? (go(t), !0) : !1;
|
1819
1819
|
}
|
1820
1820
|
function Qr(t) {
|
1821
|
-
return typeof t == "function" ? t() :
|
1821
|
+
return typeof t == "function" ? t() : Le(t);
|
1822
1822
|
}
|
1823
1823
|
const ga = typeof window < "u" && typeof document < "u";
|
1824
1824
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
1825
|
-
const wa = (t) => t != null,
|
1825
|
+
const wa = (t) => t != null, Sn = () => {
|
1826
1826
|
};
|
1827
|
-
function
|
1827
|
+
function kn(t) {
|
1828
1828
|
var e;
|
1829
1829
|
const n = Qr(t);
|
1830
1830
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
@@ -1832,13 +1832,13 @@ function Sn(t) {
|
|
1832
1832
|
const va = ga ? window : void 0;
|
1833
1833
|
function ba() {
|
1834
1834
|
const t = B(!1), e = wo();
|
1835
|
-
return e &&
|
1835
|
+
return e && ss(() => {
|
1836
1836
|
t.value = !0;
|
1837
1837
|
}, e), t;
|
1838
1838
|
}
|
1839
1839
|
function Ta(t) {
|
1840
1840
|
const e = ba();
|
1841
|
-
return
|
1841
|
+
return ts(() => (e.value, !!t()));
|
1842
1842
|
}
|
1843
1843
|
function Sa(t, e, n = {}) {
|
1844
1844
|
const {
|
@@ -1847,30 +1847,30 @@ function Sa(t, e, n = {}) {
|
|
1847
1847
|
threshold: i = 0.1,
|
1848
1848
|
window: o = va,
|
1849
1849
|
immediate: a = !0
|
1850
|
-
} = n, l = Ta(() => o && "IntersectionObserver" in o), c =
|
1850
|
+
} = n, l = Ta(() => o && "IntersectionObserver" in o), c = ts(() => {
|
1851
1851
|
const d = Qr(t);
|
1852
|
-
return (Array.isArray(d) ? d : [d]).map(
|
1852
|
+
return (Array.isArray(d) ? d : [d]).map(kn).filter(wa);
|
1853
1853
|
});
|
1854
|
-
let u =
|
1855
|
-
const f = B(a), p = l.value ?
|
1856
|
-
() => [c.value,
|
1854
|
+
let u = Sn;
|
1855
|
+
const f = B(a), p = l.value ? ns(
|
1856
|
+
() => [c.value, kn(s), f.value],
|
1857
1857
|
([d, T]) => {
|
1858
1858
|
if (u(), !f.value || !d.length)
|
1859
1859
|
return;
|
1860
1860
|
const g = new IntersectionObserver(
|
1861
1861
|
e,
|
1862
1862
|
{
|
1863
|
-
root:
|
1863
|
+
root: kn(T),
|
1864
1864
|
rootMargin: r,
|
1865
1865
|
threshold: i
|
1866
1866
|
}
|
1867
1867
|
);
|
1868
1868
|
d.forEach((O) => O && g.observe(O)), u = () => {
|
1869
|
-
g.disconnect(), u =
|
1869
|
+
g.disconnect(), u = Sn;
|
1870
1870
|
};
|
1871
1871
|
},
|
1872
1872
|
{ immediate: a, flush: "post" }
|
1873
|
-
) :
|
1873
|
+
) : Sn, m = () => {
|
1874
1874
|
u(), p(), f.value = !1;
|
1875
1875
|
};
|
1876
1876
|
return ya(m), {
|
@@ -1885,33 +1885,33 @@ function Sa(t, e, n = {}) {
|
|
1885
1885
|
stop: m
|
1886
1886
|
};
|
1887
1887
|
}
|
1888
|
-
class
|
1888
|
+
class Pe extends Error {
|
1889
1889
|
}
|
1890
|
-
class ka extends
|
1890
|
+
class ka extends Pe {
|
1891
1891
|
constructor(e) {
|
1892
1892
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
1893
1893
|
}
|
1894
1894
|
}
|
1895
|
-
class Ea extends
|
1895
|
+
class Ea extends Pe {
|
1896
1896
|
constructor(e) {
|
1897
1897
|
super(`Invalid Interval: ${e.toMessage()}`);
|
1898
1898
|
}
|
1899
1899
|
}
|
1900
|
-
class Oa extends
|
1900
|
+
class Oa extends Pe {
|
1901
1901
|
constructor(e) {
|
1902
1902
|
super(`Invalid Duration: ${e.toMessage()}`);
|
1903
1903
|
}
|
1904
1904
|
}
|
1905
|
-
class
|
1905
|
+
class He extends Pe {
|
1906
1906
|
}
|
1907
|
-
class Xr extends
|
1907
|
+
class Xr extends Pe {
|
1908
1908
|
constructor(e) {
|
1909
1909
|
super(`Invalid unit ${e}`);
|
1910
1910
|
}
|
1911
1911
|
}
|
1912
|
-
class Y extends
|
1912
|
+
class Y extends Pe {
|
1913
1913
|
}
|
1914
|
-
class Oe extends
|
1914
|
+
class Oe extends Pe {
|
1915
1915
|
constructor() {
|
1916
1916
|
super("Zone is an abstract class");
|
1917
1917
|
}
|
@@ -2126,14 +2126,14 @@ class vt {
|
|
2126
2126
|
throw new Oe();
|
2127
2127
|
}
|
2128
2128
|
}
|
2129
|
-
let
|
2129
|
+
let En = null;
|
2130
2130
|
class ln extends vt {
|
2131
2131
|
/**
|
2132
2132
|
* Get a singleton instance of the local zone
|
2133
2133
|
* @return {SystemZone}
|
2134
2134
|
*/
|
2135
2135
|
static get instance() {
|
2136
|
-
return
|
2136
|
+
return En === null && (En = new ln()), En;
|
2137
2137
|
}
|
2138
2138
|
/** @override **/
|
2139
2139
|
get type() {
|
@@ -2347,23 +2347,23 @@ function Ia(t, e = {}) {
|
|
2347
2347
|
let s = qs[n];
|
2348
2348
|
return s || (s = new Intl.ListFormat(t, e), qs[n] = s), s;
|
2349
2349
|
}
|
2350
|
-
let
|
2351
|
-
function
|
2350
|
+
let Wn = {};
|
2351
|
+
function zn(t, e = {}) {
|
2352
2352
|
const n = JSON.stringify([t, e]);
|
2353
|
-
let s =
|
2354
|
-
return s || (s = new Intl.DateTimeFormat(t, e),
|
2353
|
+
let s = Wn[n];
|
2354
|
+
return s || (s = new Intl.DateTimeFormat(t, e), Wn[n] = s), s;
|
2355
2355
|
}
|
2356
|
-
let
|
2356
|
+
let Hn = {};
|
2357
2357
|
function Ma(t, e = {}) {
|
2358
2358
|
const n = JSON.stringify([t, e]);
|
2359
|
-
let s =
|
2360
|
-
return s || (s = new Intl.NumberFormat(t, e),
|
2359
|
+
let s = Hn[n];
|
2360
|
+
return s || (s = new Intl.NumberFormat(t, e), Hn[n] = s), s;
|
2361
2361
|
}
|
2362
|
-
let
|
2362
|
+
let Zn = {};
|
2363
2363
|
function La(t, e = {}) {
|
2364
2364
|
const { base: n, ...s } = e, r = JSON.stringify([t, s]);
|
2365
|
-
let i =
|
2366
|
-
return i || (i = new Intl.RelativeTimeFormat(t, e),
|
2365
|
+
let i = Zn[r];
|
2366
|
+
return i || (i = new Intl.RelativeTimeFormat(t, e), Zn[r] = i), i;
|
2367
2367
|
}
|
2368
2368
|
let ut = null;
|
2369
2369
|
function Da() {
|
@@ -2387,10 +2387,10 @@ function Ba(t) {
|
|
2387
2387
|
{
|
2388
2388
|
let s, r;
|
2389
2389
|
try {
|
2390
|
-
s =
|
2390
|
+
s = zn(t).resolvedOptions(), r = t;
|
2391
2391
|
} catch {
|
2392
2392
|
const l = t.substring(0, n);
|
2393
|
-
s =
|
2393
|
+
s = zn(l).resolvedOptions(), r = l;
|
2394
2394
|
}
|
2395
2395
|
const { numberingSystem: i, calendar: o } = s;
|
2396
2396
|
return [r, i, o];
|
@@ -2436,8 +2436,8 @@ class qa {
|
|
2436
2436
|
const n = this.floor ? Math.floor(e) : e;
|
2437
2437
|
return this.inf.format(n);
|
2438
2438
|
} else {
|
2439
|
-
const n = this.floor ? Math.floor(e) :
|
2440
|
-
return
|
2439
|
+
const n = this.floor ? Math.floor(e) : ds(e, 3);
|
2440
|
+
return W(n, this.padTo);
|
2441
2441
|
}
|
2442
2442
|
}
|
2443
2443
|
}
|
@@ -2452,7 +2452,7 @@ class Wa {
|
|
2452
2452
|
e.offset !== 0 && ke.create(a).valid ? (r = a, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
2453
2453
|
} else e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, r = e.zone.name) : (r = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
2454
2454
|
const i = { ...this.opts };
|
2455
|
-
i.timeZone = i.timeZone || r, this.dtf =
|
2455
|
+
i.timeZone = i.timeZone || r, this.dtf = zn(n, i);
|
2456
2456
|
}
|
2457
2457
|
format() {
|
2458
2458
|
return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
|
@@ -2504,11 +2504,11 @@ class M {
|
|
2504
2504
|
);
|
2505
2505
|
}
|
2506
2506
|
static create(e, n, s, r, i = !1) {
|
2507
|
-
const o = e ||
|
2507
|
+
const o = e || $.defaultLocale, a = o || (i ? "en-US" : Da()), l = n || $.defaultNumberingSystem, c = s || $.defaultOutputCalendar, u = jn(r) || $.defaultWeekSettings;
|
2508
2508
|
return new M(a, l, c, u, o);
|
2509
2509
|
}
|
2510
2510
|
static resetCache() {
|
2511
|
-
ut = null,
|
2511
|
+
ut = null, Wn = {}, Hn = {}, Zn = {};
|
2512
2512
|
}
|
2513
2513
|
static fromObject({ locale: e, numberingSystem: n, outputCalendar: s, weekSettings: r } = {}) {
|
2514
2514
|
return M.create(e, n, s, r);
|
@@ -2529,7 +2529,7 @@ class M {
|
|
2529
2529
|
e.locale || this.specifiedLocale,
|
2530
2530
|
e.numberingSystem || this.numberingSystem,
|
2531
2531
|
e.outputCalendar || this.outputCalendar,
|
2532
|
-
|
2532
|
+
jn(e.weekSettings) || this.weekSettings,
|
2533
2533
|
e.defaultToEN || !1
|
2534
2534
|
);
|
2535
2535
|
}
|
@@ -2615,14 +2615,14 @@ class M {
|
|
2615
2615
|
return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
|
2616
2616
|
}
|
2617
2617
|
}
|
2618
|
-
let
|
2618
|
+
let On = null;
|
2619
2619
|
class K extends vt {
|
2620
2620
|
/**
|
2621
2621
|
* Get a singleton instance of UTC
|
2622
2622
|
* @return {FixedOffsetZone}
|
2623
2623
|
*/
|
2624
2624
|
static get utcInstance() {
|
2625
|
-
return
|
2625
|
+
return On === null && (On = new K(0)), On;
|
2626
2626
|
}
|
2627
2627
|
/**
|
2628
2628
|
* Get an instance with a specified offset
|
@@ -2782,7 +2782,7 @@ function xe(t, e) {
|
|
2782
2782
|
return n === "default" ? e : n === "local" || n === "system" ? ln.instance : n === "utc" || n === "gmt" ? K.utcInstance : K.parseSpecifier(n) || ke.create(t);
|
2783
2783
|
} else return Ne(t) ? K.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new Za(t);
|
2784
2784
|
}
|
2785
|
-
const
|
2785
|
+
const cs = {
|
2786
2786
|
arab: "[٠-٩]",
|
2787
2787
|
arabext: "[۰-۹]",
|
2788
2788
|
bali: "[᭐-᭙]",
|
@@ -2824,14 +2824,14 @@ const ls = {
|
|
2824
2824
|
telu: [3174, 3183],
|
2825
2825
|
thai: [3664, 3673],
|
2826
2826
|
tibt: [3872, 3881]
|
2827
|
-
}, ja =
|
2827
|
+
}, ja = cs.hanidec.replace(/[\[|\]]/g, "").split("");
|
2828
2828
|
function Ya(t) {
|
2829
2829
|
let e = parseInt(t, 10);
|
2830
2830
|
if (isNaN(e)) {
|
2831
2831
|
e = "";
|
2832
2832
|
for (let n = 0; n < t.length; n++) {
|
2833
2833
|
const s = t.charCodeAt(n);
|
2834
|
-
if (t[n].search(
|
2834
|
+
if (t[n].search(cs.hanidec) !== -1)
|
2835
2835
|
e += ja.indexOf(t[n]);
|
2836
2836
|
else
|
2837
2837
|
for (const r in zs) {
|
@@ -2843,16 +2843,16 @@ function Ya(t) {
|
|
2843
2843
|
} else
|
2844
2844
|
return e;
|
2845
2845
|
}
|
2846
|
-
let
|
2846
|
+
let ze = {};
|
2847
2847
|
function Ja() {
|
2848
|
-
|
2848
|
+
ze = {};
|
2849
2849
|
}
|
2850
2850
|
function de({ numberingSystem: t }, e = "") {
|
2851
2851
|
const n = t || "latn";
|
2852
|
-
return
|
2852
|
+
return ze[n] || (ze[n] = {}), ze[n][e] || (ze[n][e] = new RegExp(`${cs[n]}${e}`)), ze[n][e];
|
2853
2853
|
}
|
2854
2854
|
let Hs = () => Date.now(), Zs = "system", js = null, Ys = null, Js = null, Gs = 60, Ks, Qs = null;
|
2855
|
-
class
|
2855
|
+
class $ {
|
2856
2856
|
/**
|
2857
2857
|
* Get the callback for returning the current timestamp.
|
2858
2858
|
* @type {function}
|
@@ -2948,7 +2948,7 @@ class P {
|
|
2948
2948
|
* @param {WeekSettings|null} weekSettings
|
2949
2949
|
*/
|
2950
2950
|
static set defaultWeekSettings(e) {
|
2951
|
-
Qs =
|
2951
|
+
Qs = jn(e);
|
2952
2952
|
}
|
2953
2953
|
/**
|
2954
2954
|
* Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
|
@@ -3006,7 +3006,7 @@ function ue(t, e) {
|
|
3006
3006
|
`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
|
3007
3007
|
);
|
3008
3008
|
}
|
3009
|
-
function
|
3009
|
+
function us(t, e, n) {
|
3010
3010
|
const s = new Date(Date.UTC(t, e - 1, n));
|
3011
3011
|
t < 100 && t >= 0 && s.setUTCFullYear(s.getUTCFullYear() - 1900);
|
3012
3012
|
const r = s.getUTCDay();
|
@@ -3019,22 +3019,22 @@ function Si(t, e) {
|
|
3019
3019
|
const n = bt(t) ? bi : vi, s = n.findIndex((i) => i < e), r = e - n[s];
|
3020
3020
|
return { month: s + 1, day: r };
|
3021
3021
|
}
|
3022
|
-
function
|
3022
|
+
function fs(t, e) {
|
3023
3023
|
return (t - e + 7) % 7 + 1;
|
3024
3024
|
}
|
3025
3025
|
function Gt(t, e = 4, n = 1) {
|
3026
|
-
const { year: s, month: r, day: i } = t, o = Ti(s, r, i), a = us(
|
3026
|
+
const { year: s, month: r, day: i } = t, o = Ti(s, r, i), a = fs(us(s, r, i), n);
|
3027
3027
|
let l = Math.floor((o - a + 14 - e) / 7), c;
|
3028
3028
|
return l < 1 ? (c = s - 1, l = yt(c, e, n)) : l > yt(s, e, n) ? (c = s + 1, l = 1) : c = s, { weekYear: c, weekNumber: l, weekday: a, ...hn(t) };
|
3029
3029
|
}
|
3030
3030
|
function Xs(t, e = 4, n = 1) {
|
3031
|
-
const { weekYear: s, weekNumber: r, weekday: i } = t, o = us(
|
3031
|
+
const { weekYear: s, weekNumber: r, weekday: i } = t, o = fs(us(s, 1, e), n), a = je(s);
|
3032
3032
|
let l = r * 7 + i - o - 7 + e, c;
|
3033
3033
|
l < 1 ? (c = s - 1, l += je(c)) : l > a ? (c = s + 1, l -= je(s)) : c = s;
|
3034
3034
|
const { month: u, day: f } = Si(c, l);
|
3035
3035
|
return { year: c, month: u, day: f, ...hn(t) };
|
3036
3036
|
}
|
3037
|
-
function
|
3037
|
+
function _n(t) {
|
3038
3038
|
const { year: e, month: n, day: s } = t, r = Ti(e, n, s);
|
3039
3039
|
return { year: e, ordinal: r, ...hn(t) };
|
3040
3040
|
}
|
@@ -3045,7 +3045,7 @@ function er(t) {
|
|
3045
3045
|
function tr(t, e) {
|
3046
3046
|
if (!E(t.localWeekday) || !E(t.localWeekNumber) || !E(t.localWeekYear)) {
|
3047
3047
|
if (!E(t.weekday) || !E(t.weekNumber) || !E(t.weekYear))
|
3048
|
-
throw new
|
3048
|
+
throw new He(
|
3049
3049
|
"Cannot mix locale-based week fields with ISO-based week fields"
|
3050
3050
|
);
|
3051
3051
|
return E(t.localWeekday) || (t.weekday = t.localWeekday), E(t.localWeekNumber) || (t.weekNumber = t.localWeekNumber), E(t.localWeekYear) || (t.weekYear = t.localWeekYear), delete t.localWeekday, delete t.localWeekNumber, delete t.localWeekYear, {
|
@@ -3120,7 +3120,7 @@ function t0(t, e) {
|
|
3120
3120
|
function Ge(t, e) {
|
3121
3121
|
return Object.prototype.hasOwnProperty.call(t, e);
|
3122
3122
|
}
|
3123
|
-
function
|
3123
|
+
function jn(t) {
|
3124
3124
|
if (t == null)
|
3125
3125
|
return null;
|
3126
3126
|
if (typeof t != "object")
|
@@ -3139,7 +3139,7 @@ function fe(t, e, n) {
|
|
3139
3139
|
function n0(t, e) {
|
3140
3140
|
return t - e * Math.floor(t / e);
|
3141
3141
|
}
|
3142
|
-
function
|
3142
|
+
function W(t, e = 2) {
|
3143
3143
|
const n = t < 0;
|
3144
3144
|
let s;
|
3145
3145
|
return n ? s = "-" + ("" + -t).padStart(e, "0") : s = ("" + t).padStart(e, "0"), s;
|
@@ -3152,13 +3152,13 @@ function Re(t) {
|
|
3152
3152
|
if (!(E(t) || t === null || t === ""))
|
3153
3153
|
return parseFloat(t);
|
3154
3154
|
}
|
3155
|
-
function
|
3155
|
+
function hs(t) {
|
3156
3156
|
if (!(E(t) || t === null || t === "")) {
|
3157
3157
|
const e = parseFloat("0." + t) * 1e3;
|
3158
3158
|
return Math.floor(e);
|
3159
3159
|
}
|
3160
3160
|
}
|
3161
|
-
function
|
3161
|
+
function ds(t, e, n = !1) {
|
3162
3162
|
const s = 10 ** e;
|
3163
3163
|
return (n ? Math.trunc : Math.round)(t * s) / s;
|
3164
3164
|
}
|
@@ -3185,14 +3185,14 @@ function un(t) {
|
|
3185
3185
|
return t.year < 100 && t.year >= 0 && (e = new Date(e), e.setUTCFullYear(t.year, t.month - 1, t.day)), +e;
|
3186
3186
|
}
|
3187
3187
|
function sr(t, e, n) {
|
3188
|
-
return -us(
|
3188
|
+
return -fs(us(t, 1, e), n) + e - 1;
|
3189
3189
|
}
|
3190
3190
|
function yt(t, e = 4, n = 1) {
|
3191
3191
|
const s = sr(t, e, n), r = sr(t + 1, e, n);
|
3192
3192
|
return (je(t) - s + r) / 7;
|
3193
3193
|
}
|
3194
|
-
function
|
3195
|
-
return t > 99 ? t : t >
|
3194
|
+
function Yn(t) {
|
3195
|
+
return t > 99 ? t : t > $.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
|
3196
3196
|
}
|
3197
3197
|
function Ci(t, e, n, s = null) {
|
3198
3198
|
const r = new Date(t), i = {
|
@@ -3233,11 +3233,11 @@ function mt(t, e) {
|
|
3233
3233
|
const n = Math.trunc(Math.abs(t / 60)), s = Math.trunc(Math.abs(t % 60)), r = t >= 0 ? "+" : "-";
|
3234
3234
|
switch (e) {
|
3235
3235
|
case "short":
|
3236
|
-
return `${r}${
|
3236
|
+
return `${r}${W(n, 2)}:${W(s, 2)}`;
|
3237
3237
|
case "narrow":
|
3238
3238
|
return `${r}${n}${s > 0 ? `:${s}` : ""}`;
|
3239
3239
|
case "techie":
|
3240
|
-
return `${r}${
|
3240
|
+
return `${r}${W(n, 2)}${W(s, 2)}`;
|
3241
3241
|
default:
|
3242
3242
|
throw new RangeError(`Value format ${e} is out of range for property format`);
|
3243
3243
|
}
|
@@ -3428,7 +3428,7 @@ class G {
|
|
3428
3428
|
}
|
3429
3429
|
num(e, n = 0) {
|
3430
3430
|
if (this.opts.forceSimple)
|
3431
|
-
return
|
3431
|
+
return W(e, n);
|
3432
3432
|
const s = { ...this.opts };
|
3433
3433
|
return n > 0 && (s.padTo = n), this.loc.numberFormatter(s).format(e);
|
3434
3434
|
}
|
@@ -3633,8 +3633,8 @@ function Bi(...t) {
|
|
3633
3633
|
return [s, null, n + r];
|
3634
3634
|
};
|
3635
3635
|
}
|
3636
|
-
const Vi = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, p0 = `(?:${Vi.source}?(?:\\[(${Fi.source})\\])?)?`,
|
3637
|
-
`${
|
3636
|
+
const Vi = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, p0 = `(?:${Vi.source}?(?:\\[(${Fi.source})\\])?)?`, ms = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Ui = RegExp(`${ms.source}${p0}`), ps = RegExp(`(?:T${Ui.source})?`), y0 = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, g0 = /(\d{4})-?W(\d\d)(?:-?(\d))?/, w0 = /(\d{4})-?(\d{3})/, v0 = Bi("weekYear", "weekNumber", "weekDay"), b0 = Bi("year", "ordinal"), T0 = /(\d{4})-(\d\d)-(\d\d)/, Pi = RegExp(
|
3637
|
+
`${ms.source} ?(?:${Vi.source}|(${Fi.source}))?`
|
3638
3638
|
), S0 = RegExp(`(?: ${Pi.source})?`);
|
3639
3639
|
function Ye(t, e, n) {
|
3640
3640
|
const s = t[e];
|
@@ -3652,7 +3652,7 @@ function nt(t, e) {
|
|
3652
3652
|
hours: Ye(t, e, 0),
|
3653
3653
|
minutes: Ye(t, e + 1, 0),
|
3654
3654
|
seconds: Ye(t, e + 2, 0),
|
3655
|
-
milliseconds:
|
3655
|
+
milliseconds: hs(t[e + 3])
|
3656
3656
|
}, null, e + 4];
|
3657
3657
|
}
|
3658
3658
|
function Tt(t, e) {
|
@@ -3663,7 +3663,7 @@ function St(t, e) {
|
|
3663
3663
|
const n = t[e] ? ke.create(t[e]) : null;
|
3664
3664
|
return [{}, n, e + 1];
|
3665
3665
|
}
|
3666
|
-
const E0 = RegExp(`^T?${
|
3666
|
+
const E0 = RegExp(`^T?${ms.source}$`), O0 = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
3667
3667
|
function _0(t) {
|
3668
3668
|
const [e, n, s, r, i, o, a, l, c] = t, u = e[0] === "-", f = l && l[0] === "-", p = (m, d = !1) => m !== void 0 && (d || m && u) ? -m : m;
|
3669
3669
|
return [
|
@@ -3675,7 +3675,7 @@ function _0(t) {
|
|
3675
3675
|
hours: p(Re(o)),
|
3676
3676
|
minutes: p(Re(a)),
|
3677
3677
|
seconds: p(Re(l), l === "-0"),
|
3678
|
-
milliseconds: p(
|
3678
|
+
milliseconds: p(hs(c), f)
|
3679
3679
|
}
|
3680
3680
|
];
|
3681
3681
|
}
|
@@ -3690,9 +3690,9 @@ const C0 = {
|
|
3690
3690
|
PDT: -7 * 60,
|
3691
3691
|
PST: -8 * 60
|
3692
3692
|
};
|
3693
|
-
function
|
3693
|
+
function ys(t, e, n, s, r, i, o) {
|
3694
3694
|
const a = {
|
3695
|
-
year: e.length === 2 ?
|
3695
|
+
year: e.length === 2 ? Yn(Ce(e)) : Ce(e),
|
3696
3696
|
month: Ni.indexOf(n) + 1,
|
3697
3697
|
day: Ce(s),
|
3698
3698
|
hour: Ce(r),
|
@@ -3715,7 +3715,7 @@ function N0(t) {
|
|
3715
3715
|
c,
|
3716
3716
|
u,
|
3717
3717
|
f
|
3718
|
-
] = t, p =
|
3718
|
+
] = t, p = ys(e, r, s, n, i, o, a);
|
3719
3719
|
let m;
|
3720
3720
|
return l ? m = C0[l] : c ? m = 0 : m = fn(u, f), [p, new K(m)];
|
3721
3721
|
}
|
@@ -3725,13 +3725,13 @@ function A0(t) {
|
|
3725
3725
|
const R0 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, I0 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, M0 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
3726
3726
|
function ir(t) {
|
3727
3727
|
const [, e, n, s, r, i, o, a] = t;
|
3728
|
-
return [
|
3728
|
+
return [ys(e, r, s, n, i, o, a), K.utcInstance];
|
3729
3729
|
}
|
3730
3730
|
function L0(t) {
|
3731
3731
|
const [, e, n, s, r, i, o, a] = t;
|
3732
|
-
return [
|
3732
|
+
return [ys(e, a, n, s, r, i, o), K.utcInstance];
|
3733
3733
|
}
|
3734
|
-
const D0 = Xe(y0,
|
3734
|
+
const D0 = Xe(y0, ps), F0 = Xe(g0, ps), B0 = Xe(w0, ps), V0 = Xe(Ui), $i = et(
|
3735
3735
|
k0,
|
3736
3736
|
nt,
|
3737
3737
|
Tt,
|
@@ -3836,7 +3836,7 @@ const or = "Invalid Duration", qi = {
|
|
3836
3836
|
milliseconds: 30 * 24 * 60 * 60 * 1e3
|
3837
3837
|
},
|
3838
3838
|
...qi
|
3839
|
-
}, ae = 146097 / 400,
|
3839
|
+
}, ae = 146097 / 400, $e = 146097 / 4800, X0 = {
|
3840
3840
|
years: {
|
3841
3841
|
quarters: 4,
|
3842
3842
|
months: 12,
|
@@ -3857,15 +3857,15 @@ const or = "Invalid Duration", qi = {
|
|
3857
3857
|
milliseconds: ae * 24 * 60 * 60 * 1e3 / 4
|
3858
3858
|
},
|
3859
3859
|
months: {
|
3860
|
-
weeks:
|
3861
|
-
days:
|
3862
|
-
hours:
|
3863
|
-
minutes:
|
3864
|
-
seconds:
|
3865
|
-
milliseconds:
|
3860
|
+
weeks: $e / 7,
|
3861
|
+
days: $e,
|
3862
|
+
hours: $e * 24,
|
3863
|
+
minutes: $e * 24 * 60,
|
3864
|
+
seconds: $e * 24 * 60 * 60,
|
3865
|
+
milliseconds: $e * 24 * 60 * 60 * 1e3
|
3866
3866
|
},
|
3867
3867
|
...qi
|
3868
|
-
},
|
3868
|
+
}, Be = [
|
3869
3869
|
"years",
|
3870
3870
|
"quarters",
|
3871
3871
|
"months",
|
@@ -3875,7 +3875,7 @@ const or = "Invalid Duration", qi = {
|
|
3875
3875
|
"minutes",
|
3876
3876
|
"seconds",
|
3877
3877
|
"milliseconds"
|
3878
|
-
], el =
|
3878
|
+
], el = Be.slice(0).reverse();
|
3879
3879
|
function _e(t, e, n = !1) {
|
3880
3880
|
const s = {
|
3881
3881
|
values: n ? e.values : { ...t.values, ...e.values || {} },
|
@@ -3893,7 +3893,7 @@ function Wi(t, e) {
|
|
3893
3893
|
}
|
3894
3894
|
function ar(t, e) {
|
3895
3895
|
const n = Wi(t, e) < 0 ? -1 : 1;
|
3896
|
-
|
3896
|
+
Be.reduceRight((s, r) => {
|
3897
3897
|
if (E(e[r]))
|
3898
3898
|
return s;
|
3899
3899
|
if (s) {
|
@@ -3901,7 +3901,7 @@ function ar(t, e) {
|
|
3901
3901
|
e[r] += a * n, e[s] -= a * o * n;
|
3902
3902
|
}
|
3903
3903
|
return r;
|
3904
|
-
}, null),
|
3904
|
+
}, null), Be.reduce((s, r) => {
|
3905
3905
|
if (E(e[r]))
|
3906
3906
|
return s;
|
3907
3907
|
if (s) {
|
@@ -4039,7 +4039,7 @@ class R {
|
|
4039
4039
|
if (!e)
|
4040
4040
|
throw new Y("need to specify a reason the Duration is invalid");
|
4041
4041
|
const s = e instanceof ye ? e : new ye(e, n);
|
4042
|
-
if (
|
4042
|
+
if ($.throwOnInvalid)
|
4043
4043
|
throw new Oa(s);
|
4044
4044
|
return new R({ invalid: s });
|
4045
4045
|
}
|
@@ -4138,7 +4138,7 @@ class R {
|
|
4138
4138
|
*/
|
4139
4139
|
toHuman(e = {}) {
|
4140
4140
|
if (!this.isValid) return or;
|
4141
|
-
const n =
|
4141
|
+
const n = Be.map((s) => {
|
4142
4142
|
const r = this.values[s];
|
4143
4143
|
return E(r) ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...e, unit: s.slice(0, -1) }).format(r);
|
4144
4144
|
}).filter((s) => s);
|
@@ -4165,7 +4165,7 @@ class R {
|
|
4165
4165
|
toISO() {
|
4166
4166
|
if (!this.isValid) return null;
|
4167
4167
|
let e = "P";
|
4168
|
-
return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e +=
|
4168
|
+
return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += ds(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
|
4169
4169
|
}
|
4170
4170
|
/**
|
4171
4171
|
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
@@ -4238,7 +4238,7 @@ class R {
|
|
4238
4238
|
plus(e) {
|
4239
4239
|
if (!this.isValid) return this;
|
4240
4240
|
const n = R.fromDurationLike(e), s = {};
|
4241
|
-
for (const r of
|
4241
|
+
for (const r of Be)
|
4242
4242
|
(Ge(n.values, r) || Ge(this.values, r)) && (s[r] = n.get(r) + this.get(r));
|
4243
4243
|
return _e(this, { values: s }, !0);
|
4244
4244
|
}
|
@@ -4351,7 +4351,7 @@ class R {
|
|
4351
4351
|
e = e.map((o) => R.normalizeUnit(o));
|
4352
4352
|
const n = {}, s = {}, r = this.toObject();
|
4353
4353
|
let i;
|
4354
|
-
for (const o of
|
4354
|
+
for (const o of Be)
|
4355
4355
|
if (e.indexOf(o) >= 0) {
|
4356
4356
|
i = o;
|
4357
4357
|
let a = 0;
|
@@ -4491,20 +4491,20 @@ class R {
|
|
4491
4491
|
function n(s, r) {
|
4492
4492
|
return s === void 0 || s === 0 ? r === void 0 || r === 0 : s === r;
|
4493
4493
|
}
|
4494
|
-
for (const s of
|
4494
|
+
for (const s of Be)
|
4495
4495
|
if (!n(this.values[s], e.values[s]))
|
4496
4496
|
return !1;
|
4497
4497
|
return !0;
|
4498
4498
|
}
|
4499
4499
|
}
|
4500
|
-
const
|
4500
|
+
const qe = "Invalid Interval";
|
4501
4501
|
function nl(t, e) {
|
4502
|
-
return !t || !t.isValid ?
|
4502
|
+
return !t || !t.isValid ? P.invalid("missing or invalid start") : !e || !e.isValid ? P.invalid("missing or invalid end") : e < t ? P.invalid(
|
4503
4503
|
"end before start",
|
4504
4504
|
`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
|
4505
4505
|
) : null;
|
4506
4506
|
}
|
4507
|
-
class
|
4507
|
+
class P {
|
4508
4508
|
/**
|
4509
4509
|
* @private
|
4510
4510
|
*/
|
@@ -4521,9 +4521,9 @@ class U {
|
|
4521
4521
|
if (!e)
|
4522
4522
|
throw new Y("need to specify a reason the Interval is invalid");
|
4523
4523
|
const s = e instanceof ye ? e : new ye(e, n);
|
4524
|
-
if (
|
4524
|
+
if ($.throwOnInvalid)
|
4525
4525
|
throw new Ea(s);
|
4526
|
-
return new
|
4526
|
+
return new P({ invalid: s });
|
4527
4527
|
}
|
4528
4528
|
/**
|
4529
4529
|
* Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
|
@@ -4533,7 +4533,7 @@ class U {
|
|
4533
4533
|
*/
|
4534
4534
|
static fromDateTimes(e, n) {
|
4535
4535
|
const s = lt(e), r = lt(n), i = nl(s, r);
|
4536
|
-
return i ?? new
|
4536
|
+
return i ?? new P({
|
4537
4537
|
start: s,
|
4538
4538
|
end: r
|
4539
4539
|
});
|
@@ -4546,7 +4546,7 @@ class U {
|
|
4546
4546
|
*/
|
4547
4547
|
static after(e, n) {
|
4548
4548
|
const s = R.fromDurationLike(n), r = lt(e);
|
4549
|
-
return
|
4549
|
+
return P.fromDateTimes(r, r.plus(s));
|
4550
4550
|
}
|
4551
4551
|
/**
|
4552
4552
|
* Create an Interval from an end DateTime and a Duration to extend backwards to.
|
@@ -4556,7 +4556,7 @@ class U {
|
|
4556
4556
|
*/
|
4557
4557
|
static before(e, n) {
|
4558
4558
|
const s = R.fromDurationLike(n), r = lt(e);
|
4559
|
-
return
|
4559
|
+
return P.fromDateTimes(r.minus(s), r);
|
4560
4560
|
}
|
4561
4561
|
/**
|
4562
4562
|
* Create an Interval from an ISO 8601 string.
|
@@ -4582,18 +4582,18 @@ class U {
|
|
4582
4582
|
l = !1;
|
4583
4583
|
}
|
4584
4584
|
if (o && l)
|
4585
|
-
return
|
4585
|
+
return P.fromDateTimes(i, a);
|
4586
4586
|
if (o) {
|
4587
4587
|
const c = R.fromISO(r, n);
|
4588
4588
|
if (c.isValid)
|
4589
|
-
return
|
4589
|
+
return P.after(i, c);
|
4590
4590
|
} else if (l) {
|
4591
4591
|
const c = R.fromISO(s, n);
|
4592
4592
|
if (c.isValid)
|
4593
|
-
return
|
4593
|
+
return P.before(a, c);
|
4594
4594
|
}
|
4595
4595
|
}
|
4596
|
-
return
|
4596
|
+
return P.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
4597
4597
|
}
|
4598
4598
|
/**
|
4599
4599
|
* Check if an object is an Interval. Works across context boundaries
|
@@ -4708,7 +4708,7 @@ class U {
|
|
4708
4708
|
* @return {Interval}
|
4709
4709
|
*/
|
4710
4710
|
set({ start: e, end: n } = {}) {
|
4711
|
-
return this.isValid ?
|
4711
|
+
return this.isValid ? P.fromDateTimes(e || this.s, n || this.e) : this;
|
4712
4712
|
}
|
4713
4713
|
/**
|
4714
4714
|
* Split this Interval at each of the specified DateTimes
|
@@ -4721,7 +4721,7 @@ class U {
|
|
4721
4721
|
let { s: r } = this, i = 0;
|
4722
4722
|
for (; r < this.e; ) {
|
4723
4723
|
const o = n[i] || this.e, a = +o > +this.e ? this.e : o;
|
4724
|
-
s.push(
|
4724
|
+
s.push(P.fromDateTimes(r, a)), r = a, i += 1;
|
4725
4725
|
}
|
4726
4726
|
return s;
|
4727
4727
|
}
|
@@ -4739,7 +4739,7 @@ class U {
|
|
4739
4739
|
const o = [];
|
4740
4740
|
for (; s < this.e; ) {
|
4741
4741
|
const a = this.start.plus(n.mapUnits((l) => l * r));
|
4742
|
-
i = +a > +this.e ? this.e : a, o.push(
|
4742
|
+
i = +a > +this.e ? this.e : a, o.push(P.fromDateTimes(s, i)), s = i, r += 1;
|
4743
4743
|
}
|
4744
4744
|
return o;
|
4745
4745
|
}
|
@@ -4801,7 +4801,7 @@ class U {
|
|
4801
4801
|
intersection(e) {
|
4802
4802
|
if (!this.isValid) return this;
|
4803
4803
|
const n = this.s > e.s ? this.s : e.s, s = this.e < e.e ? this.e : e.e;
|
4804
|
-
return n >= s ? null :
|
4804
|
+
return n >= s ? null : P.fromDateTimes(n, s);
|
4805
4805
|
}
|
4806
4806
|
/**
|
4807
4807
|
* Return an Interval representing the union of this Interval and the specified Interval.
|
@@ -4812,7 +4812,7 @@ class U {
|
|
4812
4812
|
union(e) {
|
4813
4813
|
if (!this.isValid) return this;
|
4814
4814
|
const n = this.s < e.s ? this.s : e.s, s = this.e > e.e ? this.e : e.e;
|
4815
|
-
return
|
4815
|
+
return P.fromDateTimes(n, s);
|
4816
4816
|
}
|
4817
4817
|
/**
|
4818
4818
|
* Merge an array of Intervals into a equivalent minimal set of Intervals.
|
@@ -4839,8 +4839,8 @@ class U {
|
|
4839
4839
|
{ time: l.e, type: "e" }
|
4840
4840
|
]), o = Array.prototype.concat(...i), a = o.sort((l, c) => l.time - c.time);
|
4841
4841
|
for (const l of a)
|
4842
|
-
s += l.type === "s" ? 1 : -1, s === 1 ? n = l.time : (n && +n != +l.time && r.push(
|
4843
|
-
return
|
4842
|
+
s += l.type === "s" ? 1 : -1, s === 1 ? n = l.time : (n && +n != +l.time && r.push(P.fromDateTimes(n, l.time)), n = null);
|
4843
|
+
return P.merge(r);
|
4844
4844
|
}
|
4845
4845
|
/**
|
4846
4846
|
* Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
|
@@ -4848,14 +4848,14 @@ class U {
|
|
4848
4848
|
* @return {Array}
|
4849
4849
|
*/
|
4850
4850
|
difference(...e) {
|
4851
|
-
return
|
4851
|
+
return P.xor([this].concat(e)).map((n) => this.intersection(n)).filter((n) => n && !n.isEmpty());
|
4852
4852
|
}
|
4853
4853
|
/**
|
4854
4854
|
* Returns a string representation of this Interval appropriate for debugging.
|
4855
4855
|
* @return {string}
|
4856
4856
|
*/
|
4857
4857
|
toString() {
|
4858
|
-
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` :
|
4858
|
+
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` : qe;
|
4859
4859
|
}
|
4860
4860
|
/**
|
4861
4861
|
* Returns a string representation of this Interval appropriate for the REPL.
|
@@ -4883,7 +4883,7 @@ class U {
|
|
4883
4883
|
* @return {string}
|
4884
4884
|
*/
|
4885
4885
|
toLocaleString(e = Jt, n = {}) {
|
4886
|
-
return this.isValid ? G.create(this.s.loc.clone(n), e).formatInterval(this) :
|
4886
|
+
return this.isValid ? G.create(this.s.loc.clone(n), e).formatInterval(this) : qe;
|
4887
4887
|
}
|
4888
4888
|
/**
|
4889
4889
|
* Returns an ISO 8601-compliant string representation of this Interval.
|
@@ -4892,7 +4892,7 @@ class U {
|
|
4892
4892
|
* @return {string}
|
4893
4893
|
*/
|
4894
4894
|
toISO(e) {
|
4895
|
-
return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` :
|
4895
|
+
return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : qe;
|
4896
4896
|
}
|
4897
4897
|
/**
|
4898
4898
|
* Returns an ISO 8601-compliant string representation of date of this Interval.
|
@@ -4901,7 +4901,7 @@ class U {
|
|
4901
4901
|
* @return {string}
|
4902
4902
|
*/
|
4903
4903
|
toISODate() {
|
4904
|
-
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` :
|
4904
|
+
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : qe;
|
4905
4905
|
}
|
4906
4906
|
/**
|
4907
4907
|
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
@@ -4911,7 +4911,7 @@ class U {
|
|
4911
4911
|
* @return {string}
|
4912
4912
|
*/
|
4913
4913
|
toISOTime(e) {
|
4914
|
-
return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` :
|
4914
|
+
return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` : qe;
|
4915
4915
|
}
|
4916
4916
|
/**
|
4917
4917
|
* Returns a string representation of this Interval formatted according to the specified format
|
@@ -4925,7 +4925,7 @@ class U {
|
|
4925
4925
|
* @return {string}
|
4926
4926
|
*/
|
4927
4927
|
toFormat(e, { separator: n = " – " } = {}) {
|
4928
|
-
return this.isValid ? `${this.s.toFormat(e)}${n}${this.e.toFormat(e)}` :
|
4928
|
+
return this.isValid ? `${this.s.toFormat(e)}${n}${this.e.toFormat(e)}` : qe;
|
4929
4929
|
}
|
4930
4930
|
/**
|
4931
4931
|
* Return a Duration representing the time spanned by this interval.
|
@@ -4950,7 +4950,7 @@ class U {
|
|
4950
4950
|
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
4951
4951
|
*/
|
4952
4952
|
mapEndpoints(e) {
|
4953
|
-
return
|
4953
|
+
return P.fromDateTimes(e(this.s), e(this.e));
|
4954
4954
|
}
|
4955
4955
|
}
|
4956
4956
|
class xt {
|
@@ -4959,7 +4959,7 @@ class xt {
|
|
4959
4959
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
4960
4960
|
* @return {boolean}
|
4961
4961
|
*/
|
4962
|
-
static hasDST(e =
|
4962
|
+
static hasDST(e = $.defaultZone) {
|
4963
4963
|
const n = k.now().setZone(e).set({ month: 12 });
|
4964
4964
|
return !e.isUniversal && n.offset !== n.set({ month: 6 }).offset;
|
4965
4965
|
}
|
@@ -4986,7 +4986,7 @@ class xt {
|
|
4986
4986
|
* @return {Zone}
|
4987
4987
|
*/
|
4988
4988
|
static normalizeZone(e) {
|
4989
|
-
return xe(e,
|
4989
|
+
return xe(e, $.defaultZone);
|
4990
4990
|
}
|
4991
4991
|
/**
|
4992
4992
|
* Get the weekday on which the week starts according to the given locale.
|
@@ -5194,7 +5194,7 @@ function cl(t, e) {
|
|
5194
5194
|
case "y":
|
5195
5195
|
return I(c);
|
5196
5196
|
case "yy":
|
5197
|
-
return I(f,
|
5197
|
+
return I(f, Yn);
|
5198
5198
|
case "yyyy":
|
5199
5199
|
return I(i);
|
5200
5200
|
case "yyyyy":
|
@@ -5260,7 +5260,7 @@ function cl(t, e) {
|
|
5260
5260
|
case "kkkk":
|
5261
5261
|
return I(i);
|
5262
5262
|
case "kk":
|
5263
|
-
return I(f,
|
5263
|
+
return I(f, Yn);
|
5264
5264
|
case "W":
|
5265
5265
|
return I(a);
|
5266
5266
|
case "WW":
|
@@ -5406,14 +5406,14 @@ function ml(t) {
|
|
5406
5406
|
}
|
5407
5407
|
};
|
5408
5408
|
let n = null, s;
|
5409
|
-
return E(t.z) || (n = ke.create(t.z)), E(t.Z) || (n || (n = new K(t.Z)), s = t.Z), E(t.q) || (t.M = (t.q - 1) * 3 + 1), E(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), E(t.u) || (t.S =
|
5409
|
+
return E(t.z) || (n = ke.create(t.z)), E(t.Z) || (n || (n = new K(t.Z)), s = t.Z), E(t.q) || (t.M = (t.q - 1) * 3 + 1), E(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), E(t.u) || (t.S = hs(t.u)), [Object.keys(t).reduce((i, o) => {
|
5410
5410
|
const a = e(o);
|
5411
5411
|
return a && (i[a] = t[o]), i;
|
5412
5412
|
}, {}), n, s];
|
5413
5413
|
}
|
5414
|
-
let
|
5414
|
+
let Cn = null;
|
5415
5415
|
function pl() {
|
5416
|
-
return
|
5416
|
+
return Cn || (Cn = k.fromMillis(1555555555555)), Cn;
|
5417
5417
|
}
|
5418
5418
|
function yl(t, e) {
|
5419
5419
|
if (t.literal)
|
@@ -5435,7 +5435,7 @@ class ji {
|
|
5435
5435
|
if (this.isValid) {
|
5436
5436
|
const [n, s] = dl(e, this.regex, this.handlers), [r, i, o] = s ? ml(s) : [null, null, void 0];
|
5437
5437
|
if (Ge(s, "a") && Ge(s, "H"))
|
5438
|
-
throw new
|
5438
|
+
throw new He(
|
5439
5439
|
"Can't include meridiem when specifying 24-hour format"
|
5440
5440
|
);
|
5441
5441
|
return {
|
@@ -5471,14 +5471,14 @@ function Ji(t, e) {
|
|
5471
5471
|
const s = G.create(e, t).dtFormatter(pl()), r = s.formatToParts(), i = s.resolvedOptions();
|
5472
5472
|
return r.map((o) => fl(o, t, i));
|
5473
5473
|
}
|
5474
|
-
const
|
5474
|
+
const xn = "Invalid DateTime", wl = 864e13;
|
5475
5475
|
function ft(t) {
|
5476
5476
|
return new ye("unsupported zone", `the zone "${t.name}" is not supported`);
|
5477
5477
|
}
|
5478
|
-
function
|
5478
|
+
function Nn(t) {
|
5479
5479
|
return t.weekData === null && (t.weekData = Gt(t.c)), t.weekData;
|
5480
5480
|
}
|
5481
|
-
function
|
5481
|
+
function An(t) {
|
5482
5482
|
return t.localWeekData === null && (t.localWeekData = Gt(
|
5483
5483
|
t.c,
|
5484
5484
|
t.loc.getMinDaysInFirstWeek(),
|
@@ -5541,7 +5541,7 @@ function fr(t, e) {
|
|
5541
5541
|
let [l, c] = Gi(a, n, t.zone);
|
5542
5542
|
return o !== 0 && (l += o, c = t.zone.offset(l)), { ts: l, o: c };
|
5543
5543
|
}
|
5544
|
-
function
|
5544
|
+
function We(t, e, n, s, r, i) {
|
5545
5545
|
const { setZone: o, zone: a } = n;
|
5546
5546
|
if (t && Object.keys(t).length !== 0 || e) {
|
5547
5547
|
const l = e || a, c = k.fromObject(t, {
|
@@ -5561,14 +5561,14 @@ function Rt(t, e, n = !0) {
|
|
5561
5561
|
forceSimple: !0
|
5562
5562
|
}).formatDateTimeFromString(t, e) : null;
|
5563
5563
|
}
|
5564
|
-
function
|
5564
|
+
function Rn(t, e) {
|
5565
5565
|
const n = t.c.year > 9999 || t.c.year < 0;
|
5566
5566
|
let s = "";
|
5567
|
-
return n && t.c.year >= 0 && (s += "+"), s +=
|
5567
|
+
return n && t.c.year >= 0 && (s += "+"), s += W(t.c.year, n ? 6 : 4), e ? (s += "-", s += W(t.c.month), s += "-", s += W(t.c.day)) : (s += W(t.c.month), s += W(t.c.day)), s;
|
5568
5568
|
}
|
5569
5569
|
function hr(t, e, n, s, r, i) {
|
5570
|
-
let o =
|
5571
|
-
return e ? (o += ":", o +=
|
5570
|
+
let o = W(t.c.hour);
|
5571
|
+
return e ? (o += ":", o += W(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += ":")) : o += W(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += W(t.c.second), (t.c.millisecond !== 0 || !s) && (o += ".", o += W(t.c.millisecond, 3))), r && (t.isOffsetFixed && t.offset === 0 && !i ? o += "Z" : t.o < 0 ? (o += "-", o += W(Math.trunc(-t.o / 60)), o += ":", o += W(Math.trunc(-t.o % 60))) : (o += "+", o += W(Math.trunc(t.o / 60)), o += ":", o += W(Math.trunc(t.o % 60)))), i && (o += "[" + t.zone.ianaName + "]"), o;
|
5572
5572
|
}
|
5573
5573
|
const Ki = {
|
5574
5574
|
month: 1,
|
@@ -5645,16 +5645,16 @@ function dr(t) {
|
|
5645
5645
|
}
|
5646
5646
|
}
|
5647
5647
|
function El(t) {
|
5648
|
-
return Pt[t] || (Ut === void 0 && (Ut =
|
5648
|
+
return Pt[t] || (Ut === void 0 && (Ut = $.now()), Pt[t] = t.offset(Ut)), Pt[t];
|
5649
5649
|
}
|
5650
5650
|
function mr(t, e) {
|
5651
|
-
const n = xe(e.zone,
|
5651
|
+
const n = xe(e.zone, $.defaultZone);
|
5652
5652
|
if (!n.isValid)
|
5653
5653
|
return k.invalid(ft(n));
|
5654
5654
|
const s = M.fromObject(e);
|
5655
5655
|
let r, i;
|
5656
5656
|
if (E(t.year))
|
5657
|
-
r =
|
5657
|
+
r = $.now();
|
5658
5658
|
else {
|
5659
5659
|
for (const l of Qi)
|
5660
5660
|
E(t[l]) && (t[l] = Ki[l]);
|
@@ -5667,7 +5667,7 @@ function mr(t, e) {
|
|
5667
5667
|
return new k({ ts: r, zone: n, loc: s, o: i });
|
5668
5668
|
}
|
5669
5669
|
function pr(t, e, n) {
|
5670
|
-
const s = E(n.round) ? !0 : n.round, r = (o, a) => (o =
|
5670
|
+
const s = E(n.round) ? !0 : n.round, r = (o, a) => (o = ds(o, s || n.calendary ? 0 : 2, !0), e.loc.clone(n).relFormatter(n).format(o, a)), i = (o) => n.calendary ? e.hasSame(t, o) ? 0 : e.startOf(o).diff(t.startOf(o), o).get(o) : e.diff(t, o).get(o);
|
5671
5671
|
if (n.unit)
|
5672
5672
|
return r(i(n.unit), n.unit);
|
5673
5673
|
for (const o of n.units) {
|
@@ -5687,9 +5687,9 @@ class k {
|
|
5687
5687
|
* @access private
|
5688
5688
|
*/
|
5689
5689
|
constructor(e) {
|
5690
|
-
const n = e.zone ||
|
5690
|
+
const n = e.zone || $.defaultZone;
|
5691
5691
|
let s = e.invalid || (Number.isNaN(e.ts) ? new ye("invalid input") : null) || (n.isValid ? null : ft(n));
|
5692
|
-
this.ts = E(e.ts) ?
|
5692
|
+
this.ts = E(e.ts) ? $.now() : e.ts;
|
5693
5693
|
let r = null, i = null;
|
5694
5694
|
if (!s)
|
5695
5695
|
if (e.old && e.old.ts === this.ts && e.old.zone.equals(n))
|
@@ -5776,7 +5776,7 @@ class k {
|
|
5776
5776
|
const s = Xa(e) ? e.valueOf() : NaN;
|
5777
5777
|
if (Number.isNaN(s))
|
5778
5778
|
return k.invalid("invalid input");
|
5779
|
-
const r = xe(n.zone,
|
5779
|
+
const r = xe(n.zone, $.defaultZone);
|
5780
5780
|
return r.isValid ? new k({
|
5781
5781
|
ts: s,
|
5782
5782
|
zone: r,
|
@@ -5798,7 +5798,7 @@ class k {
|
|
5798
5798
|
if (Ne(e))
|
5799
5799
|
return e < -864e13 || e > wl ? k.invalid("Timestamp out of range") : new k({
|
5800
5800
|
ts: e,
|
5801
|
-
zone: xe(n.zone,
|
5801
|
+
zone: xe(n.zone, $.defaultZone),
|
5802
5802
|
loc: M.fromObject(n)
|
5803
5803
|
});
|
5804
5804
|
throw new Y(
|
@@ -5820,7 +5820,7 @@ class k {
|
|
5820
5820
|
if (Ne(e))
|
5821
5821
|
return new k({
|
5822
5822
|
ts: e * 1e3,
|
5823
|
-
zone: xe(n.zone,
|
5823
|
+
zone: xe(n.zone, $.defaultZone),
|
5824
5824
|
loc: M.fromObject(n)
|
5825
5825
|
});
|
5826
5826
|
throw new Y("fromSeconds requires a numerical input");
|
@@ -5860,19 +5860,19 @@ class k {
|
|
5860
5860
|
*/
|
5861
5861
|
static fromObject(e, n = {}) {
|
5862
5862
|
e = e || {};
|
5863
|
-
const s = xe(n.zone,
|
5863
|
+
const s = xe(n.zone, $.defaultZone);
|
5864
5864
|
if (!s.isValid)
|
5865
5865
|
return k.invalid(ft(s));
|
5866
|
-
const r = M.fromObject(n), i = Qt(e, dr), { minDaysInFirstWeek: o, startOfWeek: a } = tr(i, r), l =
|
5866
|
+
const r = M.fromObject(n), i = Qt(e, dr), { minDaysInFirstWeek: o, startOfWeek: a } = tr(i, r), l = $.now(), c = E(n.specificOffset) ? s.offset(l) : n.specificOffset, u = !E(i.ordinal), f = !E(i.year), p = !E(i.month) || !E(i.day), m = f || p, d = i.weekYear || i.weekNumber;
|
5867
5867
|
if ((m || u) && d)
|
5868
|
-
throw new
|
5868
|
+
throw new He(
|
5869
5869
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
5870
5870
|
);
|
5871
5871
|
if (p && u)
|
5872
|
-
throw new
|
5872
|
+
throw new He("Can't mix ordinal dates with month/day");
|
5873
5873
|
const T = d || i.weekday && !m;
|
5874
5874
|
let g, O, C = At(l, c);
|
5875
|
-
T ? (g = Tl, O = vl, C = Gt(C, o, a)) : u ? (g = Sl, O = bl, C =
|
5875
|
+
T ? (g = Tl, O = vl, C = Gt(C, o, a)) : u ? (g = Sl, O = bl, C = _n(C)) : (g = Qi, O = Ki);
|
5876
5876
|
let D = !1;
|
5877
5877
|
for (const Q of g) {
|
5878
5878
|
const pn = i[Q];
|
@@ -5881,16 +5881,16 @@ class k {
|
|
5881
5881
|
const ee = T ? Ga(i, o, a) : u ? Ka(i) : ki(i), V = ee || Ei(i);
|
5882
5882
|
if (V)
|
5883
5883
|
return k.invalid(V);
|
5884
|
-
const oe = T ? Xs(i, o, a) : u ? er(i) : i, [
|
5885
|
-
ts:
|
5884
|
+
const oe = T ? Xs(i, o, a) : u ? er(i) : i, [U, he] = Vt(oe, c, s), Z = new k({
|
5885
|
+
ts: U,
|
5886
5886
|
zone: s,
|
5887
5887
|
o: he,
|
5888
5888
|
loc: r
|
5889
5889
|
});
|
5890
|
-
return i.weekday && m && e.weekday !==
|
5890
|
+
return i.weekday && m && e.weekday !== Z.weekday ? k.invalid(
|
5891
5891
|
"mismatched weekday",
|
5892
|
-
`you can't specify both a weekday of ${i.weekday} and a date of ${
|
5893
|
-
) :
|
5892
|
+
`you can't specify both a weekday of ${i.weekday} and a date of ${Z.toISO()}`
|
5893
|
+
) : Z.isValid ? Z : k.invalid(Z.invalid);
|
5894
5894
|
}
|
5895
5895
|
/**
|
5896
5896
|
* Create a DateTime from an ISO 8601 string
|
@@ -5911,7 +5911,7 @@ class k {
|
|
5911
5911
|
*/
|
5912
5912
|
static fromISO(e, n = {}) {
|
5913
5913
|
const [s, r] = q0(e);
|
5914
|
-
return
|
5914
|
+
return We(s, r, n, "ISO 8601", e);
|
5915
5915
|
}
|
5916
5916
|
/**
|
5917
5917
|
* Create a DateTime from an RFC 2822 string
|
@@ -5930,7 +5930,7 @@ class k {
|
|
5930
5930
|
*/
|
5931
5931
|
static fromRFC2822(e, n = {}) {
|
5932
5932
|
const [s, r] = W0(e);
|
5933
|
-
return
|
5933
|
+
return We(s, r, n, "RFC 2822", e);
|
5934
5934
|
}
|
5935
5935
|
/**
|
5936
5936
|
* Create a DateTime from an HTTP header date
|
@@ -5950,7 +5950,7 @@ class k {
|
|
5950
5950
|
*/
|
5951
5951
|
static fromHTTP(e, n = {}) {
|
5952
5952
|
const [s, r] = z0(e);
|
5953
|
-
return
|
5953
|
+
return We(s, r, n, "HTTP", n);
|
5954
5954
|
}
|
5955
5955
|
/**
|
5956
5956
|
* Create a DateTime from an input string and format string.
|
@@ -5974,7 +5974,7 @@ class k {
|
|
5974
5974
|
numberingSystem: i,
|
5975
5975
|
defaultToEN: !0
|
5976
5976
|
}), [a, l, c, u] = gl(o, e, n);
|
5977
|
-
return u ? k.invalid(u) :
|
5977
|
+
return u ? k.invalid(u) : We(a, l, s, `format ${n}`, e, c);
|
5978
5978
|
}
|
5979
5979
|
/**
|
5980
5980
|
* @deprecated use fromFormat instead
|
@@ -6005,7 +6005,7 @@ class k {
|
|
6005
6005
|
*/
|
6006
6006
|
static fromSQL(e, n = {}) {
|
6007
6007
|
const [s, r] = K0(e);
|
6008
|
-
return
|
6008
|
+
return We(s, r, n, "SQL", e);
|
6009
6009
|
}
|
6010
6010
|
/**
|
6011
6011
|
* Create an invalid DateTime.
|
@@ -6017,7 +6017,7 @@ class k {
|
|
6017
6017
|
if (!e)
|
6018
6018
|
throw new Y("need to specify a reason the DateTime is invalid");
|
6019
6019
|
const s = e instanceof ye ? e : new ye(e, n);
|
6020
|
-
if (
|
6020
|
+
if ($.throwOnInvalid)
|
6021
6021
|
throw new ka(s);
|
6022
6022
|
return new k({ invalid: s });
|
6023
6023
|
}
|
@@ -6195,7 +6195,7 @@ class k {
|
|
6195
6195
|
* @type {number}
|
6196
6196
|
*/
|
6197
6197
|
get weekYear() {
|
6198
|
-
return this.isValid ?
|
6198
|
+
return this.isValid ? Nn(this).weekYear : NaN;
|
6199
6199
|
}
|
6200
6200
|
/**
|
6201
6201
|
* Get the week number of the week year (1-52ish).
|
@@ -6204,7 +6204,7 @@ class k {
|
|
6204
6204
|
* @type {number}
|
6205
6205
|
*/
|
6206
6206
|
get weekNumber() {
|
6207
|
-
return this.isValid ?
|
6207
|
+
return this.isValid ? Nn(this).weekNumber : NaN;
|
6208
6208
|
}
|
6209
6209
|
/**
|
6210
6210
|
* Get the day of the week.
|
@@ -6214,7 +6214,7 @@ class k {
|
|
6214
6214
|
* @type {number}
|
6215
6215
|
*/
|
6216
6216
|
get weekday() {
|
6217
|
-
return this.isValid ?
|
6217
|
+
return this.isValid ? Nn(this).weekday : NaN;
|
6218
6218
|
}
|
6219
6219
|
/**
|
6220
6220
|
* Returns true if this date is on a weekend according to the locale, false otherwise
|
@@ -6230,7 +6230,7 @@ class k {
|
|
6230
6230
|
* @returns {number}
|
6231
6231
|
*/
|
6232
6232
|
get localWeekday() {
|
6233
|
-
return this.isValid ?
|
6233
|
+
return this.isValid ? An(this).weekday : NaN;
|
6234
6234
|
}
|
6235
6235
|
/**
|
6236
6236
|
* Get the week number of the week year according to the locale. Different locales assign week numbers differently,
|
@@ -6239,7 +6239,7 @@ class k {
|
|
6239
6239
|
* @returns {number}
|
6240
6240
|
*/
|
6241
6241
|
get localWeekNumber() {
|
6242
|
-
return this.isValid ?
|
6242
|
+
return this.isValid ? An(this).weekNumber : NaN;
|
6243
6243
|
}
|
6244
6244
|
/**
|
6245
6245
|
* Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
|
@@ -6247,7 +6247,7 @@ class k {
|
|
6247
6247
|
* @returns {number}
|
6248
6248
|
*/
|
6249
6249
|
get localWeekYear() {
|
6250
|
-
return this.isValid ?
|
6250
|
+
return this.isValid ? An(this).weekYear : NaN;
|
6251
6251
|
}
|
6252
6252
|
/**
|
6253
6253
|
* Get the ordinal (meaning the day of the year)
|
@@ -6255,7 +6255,7 @@ class k {
|
|
6255
6255
|
* @type {number|DateTime}
|
6256
6256
|
*/
|
6257
6257
|
get ordinal() {
|
6258
|
-
return this.isValid ?
|
6258
|
+
return this.isValid ? _n(this.c).ordinal : NaN;
|
6259
6259
|
}
|
6260
6260
|
/**
|
6261
6261
|
* Get the human readable short month name, such as 'Oct'.
|
@@ -6436,7 +6436,7 @@ class k {
|
|
6436
6436
|
* @return {DateTime}
|
6437
6437
|
*/
|
6438
6438
|
toLocal() {
|
6439
|
-
return this.setZone(
|
6439
|
+
return this.setZone($.defaultZone);
|
6440
6440
|
}
|
6441
6441
|
/**
|
6442
6442
|
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
@@ -6448,7 +6448,7 @@ class k {
|
|
6448
6448
|
* @return {DateTime}
|
6449
6449
|
*/
|
6450
6450
|
setZone(e, { keepLocalTime: n = !1, keepCalendarTime: s = !1 } = {}) {
|
6451
|
-
if (e = xe(e,
|
6451
|
+
if (e = xe(e, $.defaultZone), e.equals(this.zone))
|
6452
6452
|
return this;
|
6453
6453
|
if (e.isValid) {
|
6454
6454
|
let r = this.ts;
|
@@ -6496,17 +6496,17 @@ class k {
|
|
6496
6496
|
if (!this.isValid) return this;
|
6497
6497
|
const n = Qt(e, dr), { minDaysInFirstWeek: s, startOfWeek: r } = tr(n, this.loc), i = !E(n.weekYear) || !E(n.weekNumber) || !E(n.weekday), o = !E(n.ordinal), a = !E(n.year), l = !E(n.month) || !E(n.day), c = a || l, u = n.weekYear || n.weekNumber;
|
6498
6498
|
if ((c || o) && u)
|
6499
|
-
throw new
|
6499
|
+
throw new He(
|
6500
6500
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
6501
6501
|
);
|
6502
6502
|
if (l && o)
|
6503
|
-
throw new
|
6503
|
+
throw new He("Can't mix ordinal dates with month/day");
|
6504
6504
|
let f;
|
6505
6505
|
i ? f = Xs(
|
6506
6506
|
{ ...Gt(this.c, s, r), ...n },
|
6507
6507
|
s,
|
6508
6508
|
r
|
6509
|
-
) : E(n.ordinal) ? (f = { ...this.toObject(), ...n }, E(n.day) && (f.day = Math.min(Kt(f.year, f.month), f.day))) : f = er({ ...
|
6509
|
+
) : E(n.ordinal) ? (f = { ...this.toObject(), ...n }, E(n.day) && (f.day = Math.min(Kt(f.year, f.month), f.day))) : f = er({ ..._n(this.c), ...n });
|
6510
6510
|
const [p, m] = Vt(f, this.o, this.zone);
|
6511
6511
|
return Ie(this, { ts: p, o: m });
|
6512
6512
|
}
|
@@ -6612,7 +6612,7 @@ class k {
|
|
6612
6612
|
* @return {string}
|
6613
6613
|
*/
|
6614
6614
|
toFormat(e, n = {}) {
|
6615
|
-
return this.isValid ? G.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this, e) :
|
6615
|
+
return this.isValid ? G.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this, e) : xn;
|
6616
6616
|
}
|
6617
6617
|
/**
|
6618
6618
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
@@ -6634,7 +6634,7 @@ class k {
|
|
6634
6634
|
* @return {string}
|
6635
6635
|
*/
|
6636
6636
|
toLocaleString(e = Jt, n = {}) {
|
6637
|
-
return this.isValid ? G.create(this.loc.clone(n), e).formatDateTime(this) :
|
6637
|
+
return this.isValid ? G.create(this.loc.clone(n), e).formatDateTime(this) : xn;
|
6638
6638
|
}
|
6639
6639
|
/**
|
6640
6640
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
@@ -6676,7 +6676,7 @@ class k {
|
|
6676
6676
|
if (!this.isValid)
|
6677
6677
|
return null;
|
6678
6678
|
const o = e === "extended";
|
6679
|
-
let a =
|
6679
|
+
let a = Rn(this, o);
|
6680
6680
|
return a += "T", a += hr(this, o, n, s, r, i), a;
|
6681
6681
|
}
|
6682
6682
|
/**
|
@@ -6688,7 +6688,7 @@ class k {
|
|
6688
6688
|
* @return {string}
|
6689
6689
|
*/
|
6690
6690
|
toISODate({ format: e = "extended" } = {}) {
|
6691
|
-
return this.isValid ?
|
6691
|
+
return this.isValid ? Rn(this, e === "extended") : null;
|
6692
6692
|
}
|
6693
6693
|
/**
|
6694
6694
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
@@ -6756,7 +6756,7 @@ class k {
|
|
6756
6756
|
* @return {string}
|
6757
6757
|
*/
|
6758
6758
|
toSQLDate() {
|
6759
|
-
return this.isValid ?
|
6759
|
+
return this.isValid ? Rn(this, !0) : null;
|
6760
6760
|
}
|
6761
6761
|
/**
|
6762
6762
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
@@ -6794,7 +6794,7 @@ class k {
|
|
6794
6794
|
* @return {string}
|
6795
6795
|
*/
|
6796
6796
|
toString() {
|
6797
|
-
return this.isValid ? this.toISO() :
|
6797
|
+
return this.isValid ? this.toISO() : xn;
|
6798
6798
|
}
|
6799
6799
|
/**
|
6800
6800
|
* Returns a string representation of this DateTime appropriate for the REPL.
|
@@ -6903,7 +6903,7 @@ class k {
|
|
6903
6903
|
* @return {Interval}
|
6904
6904
|
*/
|
6905
6905
|
until(e) {
|
6906
|
-
return this.isValid ?
|
6906
|
+
return this.isValid ? P.fromDateTimes(this, e) : this;
|
6907
6907
|
}
|
6908
6908
|
/**
|
6909
6909
|
* Return whether this DateTime is in the same unit of time as another DateTime.
|
@@ -7068,7 +7068,7 @@ class k {
|
|
7068
7068
|
`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`
|
7069
7069
|
);
|
7070
7070
|
const { result: a, zone: l, specificOffset: c, invalidReason: u } = n.explainFromTokens(e);
|
7071
|
-
return u ? k.invalid(u) :
|
7071
|
+
return u ? k.invalid(u) : We(
|
7072
7072
|
a,
|
7073
7073
|
l,
|
7074
7074
|
s,
|
@@ -7256,7 +7256,7 @@ function Cl(t, e) {
|
|
7256
7256
|
}, null, -1)
|
7257
7257
|
]));
|
7258
7258
|
}
|
7259
|
-
const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-424%20640-2%202-24%202-4%202-22%202-6%202-15%203-1%201-12%202-4%202-12%202-4%202-12%202-11%205-11%203-14%206-11%203-6%202-10%204-52%2026-18%2010-8%205-12%207-8%205-9%205-10%209-6%203-10%209-6%203-10%209-6%203-12%2011-19%2019-5%202-10%209-7%208-2%205-3%203v2h-2l-3%2011-2%203v32l9%2017%208%209%208%207%208%205%203%201v2l2%201%2014%201v2l4%201h8l5-3%2012-1%2011-6%2011-9%206-4%2017-17%208-7%205-4%206-4%2010-8%2016-12%206-4%2013-8%207-4%2010-6%2017-9%205-4%2010-3%2019-10%208-4%209-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%203-2%2013-2%206-2%2014-2%206-2%2014-2%207-2%2019-1%207-2%201-1h110l1%202%2010%201%2022%201v2l20%203%207%202%2013%202%205%202%2011%202%208%203%2016%205%208%203%2016%205%208%203%2013%206%2048%2024%2010%206%208%205%209%205%204%202%201%203%2011%207%209%206%2011%209%209%206%205%205h2l2%204h2l2%204h2l2%204h2l2%204h2v2l8%207%2011%207%206%204h3v2l2%201h9l5%202%203%202%208-1%202-2%2012-1%2016-8%209-7%204-5%205-5%204-8%205-11v-30l-3-6-2-7-6-8-3-5-9-10-7-6-6-3-25-25-5-4-6-3-10-9-6-3-10-9-6-3-10-9-7-3-8-5-5-4-14-7-6-5-23-11-17-9-23-11-10-5-10-3-35-12-14-5-51-13-22-4-21-3-19-2-7-2z'%20fill='%23C66021'/%3e%3c/svg%3e", wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-424%20579-18%201-19%2010-12%2012-4%207-7%2014v35l9%2017%2011%2012%208%207%209%206%207%207%208%207%209%206%206%205%205%205%209%206%206%205%205%205%209%206%205%205h2v2l9%206%208%207%205%205h2v2l9%206%208%207%202%202%201%205-4%202-5%205-6%203-10%209-24%2024v2h-2l-3%207-6%207-3%206-6%209-7%2014-6%2020-2%203-2%2013-2%202v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-8-16-6-10-6-7-4-6-9-10-26-26-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-10-10-7-4-8-7-9-8-6-3-10-10-7-4-11-9-5-3-13-7zm1006%201-19%2010-8%208-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-5%203-10%209-8%208-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-5%205-5%202-12%2011-7%207-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-36%2036-4%207-7%2010-12%2024-3%2010-4%2012-2%2010-2%205-1%201v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-7-14-6-8-3-5-5-7-3-5-9-10-22-22-5-4-6-3-5-5h-2l-1-4%203-5%208-6%206-4%208-7v-2l4-2%206-5%206-4%2012-11%208-5%2012-11%208-5%2012-11%208-5%207-6%205-5%206-5%209-6v-2l4-2%201-3%204-2%207-9%207-14%201-4v-32l-8-17-12-13-8-6-14-7zm-495%20827-4%204-53%201-3%202-23%202-5%202-16%202-5%202-15%202-4%202-15%203-42%2014-10%204-19%209-3%202-8%202-20%2011-4%203-14%207-18%2010-7%207-8%204-11%208-7%205-5%203-10%209-7%207-6%203-10%209-16%2016-4%207-7%2013v36l9%2017%209%2010h2v2l9%206%2013%207h34l19-9%2013-12%209-6%209-9%209-7%2018-12%208-7%2023-12%209-6%2016-8%205-3%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%203-2%2013-2%203-2%2013-2%204-2%2016-1%205-2%201-1h110l1%202%204%201%2016%201%208%203%2012%202%205%202%2011%202%208%203%2016%205%208%203%2016%207%2011%204%2016%208%209%206%2019%2010%206%204%203%201%201%203%2011%207%209%206%208%207%206%205%205%205%209%206%205%205h2v2l9%206%2013%207h34l19-9%2010-9%207-9%207-14%201-3v-34l-9-17-11-12-13-13-5-4-6-3-14-14-7-4-9-7-6-3-6-5-6-3-6-5-6-3-6-5-21-10-7-6-16-8-9-2-28-14-10-3-36-12-30-7-29-6-23-2-7-2-51-1-2-4z'%20fill='%23CA2E22'/%3e%3c/svg%3e", vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(988)'%20d='m0%200h72l44%202%2048%205%2035%205%2044%208%2035%208%2042%2011%2029%209%2021%207%2023%208%2010%204%2032%2013%2019%208%2015%207%2032%2016%2027%2014%2023%2013%2023%2014%2019%2012%2012%208%2016%2011%2017%2012%206%204v2l5%202%2014%2011%2010%208%2014%2011%2013%2011%2012%2011%2011%209%208%208%208%207%2048%2048%207%208%2011%2012%207%208%2011%2013%2011%2014%2010%2012%2010%2013%205%207v2h2l12%2017%2011%2016%2010%2015%2014%2022%209%2015%2011%2019%209%2016%2015%2029%2013%2026%2013%2029%2011%2027%208%2020%209%2026%207%2021%2011%2037%207%2027%206%2025%208%2040%206%2039%203%2024%204%2038%202%2044v72l-2%2044-5%2048-5%2035-8%2044-8%2035-11%2042-9%2029-7%2021-10%2028-15%2037-11%2025-16%2033-12%2024-11%2020-14%2024-13%2021-9%2014-10%2015-9%2013-13%2018-1%202h-2l-2%205-11%2014-8%2010-11%2014-11%2013-10%2011-9%2011-9%209-7%208-48%2048-8%207-11%2010-8%207-10%209-9%207-16%2013-14%2011-11%208h-2v2l-17%2012-16%2011-15%2010-19%2012-18%2011-17%2010-10%206-12%206-19%2010-32%2016-29%2013-27%2011-15%206-17%206-20%207-25%208-34%2010-36%209-39%208-41%207-32%204-38%204-44%202h-72l-44-2-48-5-35-5-44-8-35-8-42-11-29-9-21-7-23-8-10-4-32-13-19-8-15-7-32-16-27-14-23-13-23-14-19-12-12-8-16-11-17-12-6-4v-2l-5-2-14-11-10-8-14-11-13-11-12-11-11-9-8-8-8-7-48-48-7-8-11-12-7-8-11-13-11-14-10-12-10-13-5-7v-2h-2l-12-17-11-16-10-15-14-22-9-15-11-19-9-16-15-29-13-26-13-29-11-27-8-20-9-26-7-21-11-37-7-27-6-25-8-40-6-39-3-24-4-38-2-44v-72l2-44%205-48%205-35%208-44%208-35%2011-42%209-29%207-21%2010-28%2015-37%2011-25%2016-33%2013-26%2010-18%2014-24%2013-21%209-14%2010-15%209-13%2013-18%201-2h2l2-5%2011-14%208-10%2011-14%2011-13%2010-11%209-11%209-9%207-8%2048-48%208-7%2011-10%208-7%2010-9%209-7%2016-13%2014-11%2011-8h2v-2l17-12%2016-11%2015-10%2019-12%2021-13%2023-13%2022-12%2032-16%2021-10%2030-13%2030-12%2017-6%2020-7%2025-8%2034-10%2036-9%2039-8%2041-7%2032-4%2038-4zm-288%20579-17%203-20%206-16%208-14%209-13%2011-8%208-10%2013-10%2017-6%2015-5%2018-2%2013v25l3%2018%207%2021%2011%2021%2010%2013%2011%2012%2011%209%2013%209%2019%209%2016%205%2016%203h33l16-3%2018-6%2016-8%2011-7%2010-8%2016-16%209-13%206-10%208-19%205-18%202-16v-18l-2-15-6-21-5-12-7-13-11-15-12-13-14-11-13-8-17-8-21-6-13-2zm623%200-17%203-17%205-21%2010-13%209-14%2012-10%2011-12%2018-8%2017-5%2016-3%2016-1%208v18l2%2015%206%2021%208%2018%207%2011%209%2012%2017%2017%2013%209%2010%206%2019%208%2018%205%208%201h33l16-3%2016-5%2019-9%2017-12%2014-13%2011-14%208-13%208-17%206-21%202-13v-25l-3-18-7-21-8-16-8-12-11-13-8-8-13-10-17-10-15-6-18-5-13-2zm-859%20378-16%203-12%205-10%207-9%208-7%2010-6%2013-2%206-1%207v34l1%2021%205%2044%205%2028%206%2028%205%2020%209%2028%2010%2029%2013%2031%207%2015%2014%2027%2012%2021%206%209%205%209%2013%2019%2012%2017%2011%2014%2014%2017%2011%2012%209%2011%2030%2030%2011%209%207%207%2011%209%2016%2013%2019%2014%2027%2018%2031%2019%2014%207%2019%2010%2029%2013%2025%2010%2033%2011%2021%206%2028%207%2031%206%2020%203%2036%204%2021%201h52l21-1%2044-5%2028-5%2028-6%2020-5%2028-9%2029-10%2031-13%2015-7%2029-15%2019-11%209-6%209-5%2019-13%2017-12%2014-11%2017-14%2012-11%2011-9%2030-30%209-11%207-7%209-11%2013-16%2014-19%2018-27%208-13%2010-17%2014-26%209-19%2013-30%2011-30%208-26%205-18%208-36%206-36%204-36%201-21v-34l-2-10-5-13-7-10-8-9-10-7-12-6-12-3-14-1-17%203-16%208-6%204v2l-3%201v2l-4%202-8%2011-5%2010-3%2010-1%208-2%2046-3%2028-6%2035-8%2032-12%2036-13%2031-13%2027-9%2016-14%2023-20%2028-8%2010-9%2011-13%2015-32%2032-11%209-12%2010-14%2011-13%209-15%2010-25%2015-29%2015-19%208-11%205-23%208-15%205-25%207-29%206-19%203-28%203-22%201h-36l-34-2-35-5-29-6-29-8-34-12-25-11-25-12-18-10-19-12-12-8-22-16-11-9-15-13-8-7-30-30-9-11-10-12-10-13-10-14-10-15-9-15-8-14-13-25-14-33-7-20-5-15-7-26-4-18-5-29-3-28-2-46-2-12-5-13-7-10-5-6h-2l-1-3h-2v-2l-13-8-13-5-13-2z'%20fill='%233A8C03'/%3e%3c/svg%3e", br = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-676%20764-2%202-17%202-19%2010-12%2012-4%207-6%2011-1%205v31l5%2012%205%208%208%209h2v2l9%206%2014%207%2017%201v2l4%201h628l8-1%201-2%2015-1%2011-5%209-5%2010-9v-2h2l6-10%205-10%201-3v-33l-8-17-12-13-8-6-14-7-11-1h-7v-2l-2-1z'%20fill='%23E8A654'/%3e%3c/svg%3e", Tr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(932)'%20d='m0%200h184v3h15l18%201%203%201v2l28%201%209%203%2016%201%208%203%2012%201%208%203%2011%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%2010%203%209%202%208%203%2016%205%209%203%207%203%2021%207%2011%205%2011%204%209%204%2011%204%2024%2012%2010%203%2046%2023%208%206%2016%208%209%206%2016%209%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%2012%208v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2l4%202v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%206%207%2013%2013%203%206%206%206v2h2v2h2l7%208%205%206%203%205%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%208%2014%207%2011%206%209%208%2015%206%2012%206%209%208%2015%209%2019%206%2012%206%2016%208%2016%2011%2027%208%2020%2010%2030%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2014%202%202%202%2018%202%202%202%2018%202%201%202%2023%202%201%201%207v25l4%201%201%2035h3v183l-3%202-1%2030-2%205-1%201-1%2022-1%208-2%202-1%2018-2%205-1%201-1%2015-1%204h-2l-1%2012-3%205-1%2015-1%204h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-3%2010-4%2012-3%2010-6%2013-4%2011-10%2024-8%2016-8%2020-8%2016-10%2019-4%207-6%2010-9%2017-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-10%2011-2%205-7%207-1%202h-2l-2%204-8%207-4%208-93%2093h-5l-2%204-8%207-12%2012-6%203-10%209-6%203-10%209-4%204-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-9%206-11%206-9%206-12%206-13%208-19%2010-26%2013-20%208-22%2011-17%206-7%203-17%206-15%206-36%2012-23%207-11%203-24%206-54%2012-23%204-14%202-13%202-22%203-29%202-1%203h-184l-1-3-34-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-15-6-17-6-10-5-9-2-16-8-11-6-9-2-32-16-17-9-6-5-21-10-7-6-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-9-9-5-4-6-3-10-9-6-3-17-17-5-4-5-2-92-92-3-6-11-12-10-10-3-6-9-10-3-6-11-12-3-4-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-7-14-12-20-13-26-5-12-4-10-11-22-5-12-5-13-6-16-5-14-4-10-15-45-3-12-6-20-5-22-3-10-4-18-1-8-2-5-2-15-2-6-2-18-2-9-1-17-2-7-1-4-1-32-3-1v-183l3-3%201-26%202-8%201-3%201-23%203-7%201-17%203-11%202-13%202-6%202-14%205-18%208-32%205-16%203-12%2020-60%204-8%204-12%204-8%204-12%2012-24%203-10%2011-23%2011-20%203-6%205-7%208-16%207-13%205-7%206-12%206-8%206-9%207-11%207-10%204-5%203-6%208-9%206-10%203-3%203-6%2012-13%205-8%208-9%203-6%208-9h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%205-6%205-5h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2010-8%208-6%2010-9%2010-6%2011-8%209-7%2048-32%2014-8%2010-6%2019-10%207-4%2010-6%2019-10%2023-11%2010-3%2019-10%208-4%209-2%2011-6%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%202-2%2011-1%206-3%2013-1%205-2%201-1%2017-1%206-2%201-1%2015-1%204-2%206-1%2026-1%201-3%2034-1zm-219%20608-2%202-17%202-3%202-10%202-2%202-9%202-11%206-5%204-9%206-18%2018-4%207-7%2010-8%2015-5%2013-3%208v55l3%207%205%2017%209%2017%209%2010%203%206%204%205%2011%207%204%202%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm600%200-2%202-17%202-3%202-10%202-2%202-9%202-8%206-7%204-4%203v2l-5%201-12%2011-7%207-4%207-7%2010-8%2015-5%2013-3%2010v53l3%207%206%2018%204%208%206%209%2012%2015%203%205%205%204%206%204%203%201%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm-807%20604-19%2010-12%2012-4%207-6%2012-2%2012-3%205v8l3%205%201%2011%205%209%209%2010%203%206%205%205%208%209h2l2%204h2l2%204%2012%2012%203%206%2010%2010%2010%207%209%209h2l2%204h2l2%204h2l2%204h2v2l8%207%209%206%205%205h2v2l9%206%205%204h2v2l9%206%2010%207%206%204%208%207%2014%207%208%206%2013%207%209%206%2062%2031%209%203%209%204%2010%205%209%202%208%203%2016%205%208%203%2016%205%209%203%208%203%2011%202%205%202%2011%202%207%202%2013%202%207%202%2015%201%207%203%2023%201v2l9%201%2030%201%201%202%204%201h77l7-2%201-1%2028-1%2010-1%202-2%2021-1%206-2%201-1%2017-1%206-2%201-1%2018-2%202-2%2014-2%202-2%2014-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2010-2%202-2%207-3%2011-3%202-2%208-3%207-2%2023-11%2038-19%2015-8%209-6%2011-6%209-6%2011-6%209-8%208-5%2011-7%209-8%208-5%2012-11%208-5%2013-13%206-5%205-5v-2l4-2%205-5%206-3%2012-12%202-5%2011-11%205-6%206-5%207-8%205-5%203-6%208-9%205-10%201-11%203-4v-7l-3-7-2-11-8-16-11-12-8-6-14-7h-33l-2%202-9%202-11%206-14%2014-3%207-42%2042v2l-4%202-18%2018-5%202-12%2011-4%203-7%204-7%207-6%203-10%209-6%203-9%206-14%208-4%203-12%206-13%208-19%2010-9%203-19%209-14%205-10%204-7%203-11%203-6%202-7%203-12%202-8%203-9%203-15%202-4%202-16%202-4%202-21%202-3%202-31%202h-7l-1%203h-70l-10-1-2-2-24-1-34-5-44-9-29-8-35-12-25-10-5-3-7-3-6-2-5-2-4-2-1-3-10-2-3-3h-2v-2l-17-8-8-5-5-4-7-3-10-6-3-3-6-3-7-6-3-3-6-3-7-6-3-3-6-3-9-9-5-4-5-2-63-63-3-6-9-10-7-4-9-7-9-2-3-2z'%20fill='%238CBF50'/%3e%3c/svg%3e", We = {
|
7259
|
+
const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-424%20640-2%202-24%202-4%202-22%202-6%202-15%203-1%201-12%202-4%202-12%202-4%202-12%202-11%205-11%203-14%206-11%203-6%202-10%204-52%2026-18%2010-8%205-12%207-8%205-9%205-10%209-6%203-10%209-6%203-10%209-6%203-12%2011-19%2019-5%202-10%209-7%208-2%205-3%203v2h-2l-3%2011-2%203v32l9%2017%208%209%208%207%208%205%203%201v2l2%201%2014%201v2l4%201h8l5-3%2012-1%2011-6%2011-9%206-4%2017-17%208-7%205-4%206-4%2010-8%2016-12%206-4%2013-8%207-4%2010-6%2017-9%205-4%2010-3%2019-10%208-4%209-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%203-2%2013-2%206-2%2014-2%206-2%2014-2%207-2%2019-1%207-2%201-1h110l1%202%2010%201%2022%201v2l20%203%207%202%2013%202%205%202%2011%202%208%203%2016%205%208%203%2016%205%208%203%2013%206%2048%2024%2010%206%208%205%209%205%204%202%201%203%2011%207%209%206%2011%209%209%206%205%205h2l2%204h2l2%204h2l2%204h2l2%204h2v2l8%207%2011%207%206%204h3v2l2%201h9l5%202%203%202%208-1%202-2%2012-1%2016-8%209-7%204-5%205-5%204-8%205-11v-30l-3-6-2-7-6-8-3-5-9-10-7-6-6-3-25-25-5-4-6-3-10-9-6-3-10-9-6-3-10-9-7-3-8-5-5-4-14-7-6-5-23-11-17-9-23-11-10-5-10-3-35-12-14-5-51-13-22-4-21-3-19-2-7-2z'%20fill='%23C66021'/%3e%3c/svg%3e", wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-424%20579-18%201-19%2010-12%2012-4%207-7%2014v35l9%2017%2011%2012%208%207%209%206%207%207%208%207%209%206%206%205%205%205%209%206%206%205%205%205%209%206%205%205h2v2l9%206%208%207%205%205h2v2l9%206%208%207%202%202%201%205-4%202-5%205-6%203-10%209-24%2024v2h-2l-3%207-6%207-3%206-6%209-7%2014-6%2020-2%203-2%2013-2%202v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-8-16-6-10-6-7-4-6-9-10-26-26-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-10-10-7-4-8-7-9-8-6-3-10-10-7-4-11-9-5-3-13-7zm1006%201-19%2010-8%208-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-5%203-10%209-8%208-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-5%205-5%202-12%2011-7%207-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-36%2036-4%207-7%2010-12%2024-3%2010-4%2012-2%2010-2%205-1%201v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-7-14-6-8-3-5-5-7-3-5-9-10-22-22-5-4-6-3-5-5h-2l-1-4%203-5%208-6%206-4%208-7v-2l4-2%206-5%206-4%2012-11%208-5%2012-11%208-5%2012-11%208-5%207-6%205-5%206-5%209-6v-2l4-2%201-3%204-2%207-9%207-14%201-4v-32l-8-17-12-13-8-6-14-7zm-495%20827-4%204-53%201-3%202-23%202-5%202-16%202-5%202-15%202-4%202-15%203-42%2014-10%204-19%209-3%202-8%202-20%2011-4%203-14%207-18%2010-7%207-8%204-11%208-7%205-5%203-10%209-7%207-6%203-10%209-16%2016-4%207-7%2013v36l9%2017%209%2010h2v2l9%206%2013%207h34l19-9%2013-12%209-6%209-9%209-7%2018-12%208-7%2023-12%209-6%2016-8%205-3%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%203-2%2013-2%203-2%2013-2%204-2%2016-1%205-2%201-1h110l1%202%204%201%2016%201%208%203%2012%202%205%202%2011%202%208%203%2016%205%208%203%2016%207%2011%204%2016%208%209%206%2019%2010%206%204%203%201%201%203%2011%207%209%206%208%207%206%205%205%205%209%206%205%205h2v2l9%206%2013%207h34l19-9%2010-9%207-9%207-14%201-3v-34l-9-17-11-12-13-13-5-4-6-3-14-14-7-4-9-7-6-3-6-5-6-3-6-5-6-3-6-5-21-10-7-6-16-8-9-2-28-14-10-3-36-12-30-7-29-6-23-2-7-2-51-1-2-4z'%20fill='%23CA2E22'/%3e%3c/svg%3e", vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(988)'%20d='m0%200h72l44%202%2048%205%2035%205%2044%208%2035%208%2042%2011%2029%209%2021%207%2023%208%2010%204%2032%2013%2019%208%2015%207%2032%2016%2027%2014%2023%2013%2023%2014%2019%2012%2012%208%2016%2011%2017%2012%206%204v2l5%202%2014%2011%2010%208%2014%2011%2013%2011%2012%2011%2011%209%208%208%208%207%2048%2048%207%208%2011%2012%207%208%2011%2013%2011%2014%2010%2012%2010%2013%205%207v2h2l12%2017%2011%2016%2010%2015%2014%2022%209%2015%2011%2019%209%2016%2015%2029%2013%2026%2013%2029%2011%2027%208%2020%209%2026%207%2021%2011%2037%207%2027%206%2025%208%2040%206%2039%203%2024%204%2038%202%2044v72l-2%2044-5%2048-5%2035-8%2044-8%2035-11%2042-9%2029-7%2021-10%2028-15%2037-11%2025-16%2033-12%2024-11%2020-14%2024-13%2021-9%2014-10%2015-9%2013-13%2018-1%202h-2l-2%205-11%2014-8%2010-11%2014-11%2013-10%2011-9%2011-9%209-7%208-48%2048-8%207-11%2010-8%207-10%209-9%207-16%2013-14%2011-11%208h-2v2l-17%2012-16%2011-15%2010-19%2012-18%2011-17%2010-10%206-12%206-19%2010-32%2016-29%2013-27%2011-15%206-17%206-20%207-25%208-34%2010-36%209-39%208-41%207-32%204-38%204-44%202h-72l-44-2-48-5-35-5-44-8-35-8-42-11-29-9-21-7-23-8-10-4-32-13-19-8-15-7-32-16-27-14-23-13-23-14-19-12-12-8-16-11-17-12-6-4v-2l-5-2-14-11-10-8-14-11-13-11-12-11-11-9-8-8-8-7-48-48-7-8-11-12-7-8-11-13-11-14-10-12-10-13-5-7v-2h-2l-12-17-11-16-10-15-14-22-9-15-11-19-9-16-15-29-13-26-13-29-11-27-8-20-9-26-7-21-11-37-7-27-6-25-8-40-6-39-3-24-4-38-2-44v-72l2-44%205-48%205-35%208-44%208-35%2011-42%209-29%207-21%2010-28%2015-37%2011-25%2016-33%2013-26%2010-18%2014-24%2013-21%209-14%2010-15%209-13%2013-18%201-2h2l2-5%2011-14%208-10%2011-14%2011-13%2010-11%209-11%209-9%207-8%2048-48%208-7%2011-10%208-7%2010-9%209-7%2016-13%2014-11%2011-8h2v-2l17-12%2016-11%2015-10%2019-12%2021-13%2023-13%2022-12%2032-16%2021-10%2030-13%2030-12%2017-6%2020-7%2025-8%2034-10%2036-9%2039-8%2041-7%2032-4%2038-4zm-288%20579-17%203-20%206-16%208-14%209-13%2011-8%208-10%2013-10%2017-6%2015-5%2018-2%2013v25l3%2018%207%2021%2011%2021%2010%2013%2011%2012%2011%209%2013%209%2019%209%2016%205%2016%203h33l16-3%2018-6%2016-8%2011-7%2010-8%2016-16%209-13%206-10%208-19%205-18%202-16v-18l-2-15-6-21-5-12-7-13-11-15-12-13-14-11-13-8-17-8-21-6-13-2zm623%200-17%203-17%205-21%2010-13%209-14%2012-10%2011-12%2018-8%2017-5%2016-3%2016-1%208v18l2%2015%206%2021%208%2018%207%2011%209%2012%2017%2017%2013%209%2010%206%2019%208%2018%205%208%201h33l16-3%2016-5%2019-9%2017-12%2014-13%2011-14%208-13%208-17%206-21%202-13v-25l-3-18-7-21-8-16-8-12-11-13-8-8-13-10-17-10-15-6-18-5-13-2zm-859%20378-16%203-12%205-10%207-9%208-7%2010-6%2013-2%206-1%207v34l1%2021%205%2044%205%2028%206%2028%205%2020%209%2028%2010%2029%2013%2031%207%2015%2014%2027%2012%2021%206%209%205%209%2013%2019%2012%2017%2011%2014%2014%2017%2011%2012%209%2011%2030%2030%2011%209%207%207%2011%209%2016%2013%2019%2014%2027%2018%2031%2019%2014%207%2019%2010%2029%2013%2025%2010%2033%2011%2021%206%2028%207%2031%206%2020%203%2036%204%2021%201h52l21-1%2044-5%2028-5%2028-6%2020-5%2028-9%2029-10%2031-13%2015-7%2029-15%2019-11%209-6%209-5%2019-13%2017-12%2014-11%2017-14%2012-11%2011-9%2030-30%209-11%207-7%209-11%2013-16%2014-19%2018-27%208-13%2010-17%2014-26%209-19%2013-30%2011-30%208-26%205-18%208-36%206-36%204-36%201-21v-34l-2-10-5-13-7-10-8-9-10-7-12-6-12-3-14-1-17%203-16%208-6%204v2l-3%201v2l-4%202-8%2011-5%2010-3%2010-1%208-2%2046-3%2028-6%2035-8%2032-12%2036-13%2031-13%2027-9%2016-14%2023-20%2028-8%2010-9%2011-13%2015-32%2032-11%209-12%2010-14%2011-13%209-15%2010-25%2015-29%2015-19%208-11%205-23%208-15%205-25%207-29%206-19%203-28%203-22%201h-36l-34-2-35-5-29-6-29-8-34-12-25-11-25-12-18-10-19-12-12-8-22-16-11-9-15-13-8-7-30-30-9-11-10-12-10-13-10-14-10-15-9-15-8-14-13-25-14-33-7-20-5-15-7-26-4-18-5-29-3-28-2-46-2-12-5-13-7-10-5-6h-2l-1-3h-2v-2l-13-8-13-5-13-2z'%20fill='%233A8C03'/%3e%3c/svg%3e", br = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-676%20764-2%202-17%202-19%2010-12%2012-4%207-6%2011-1%205v31l5%2012%205%208%208%209h2v2l9%206%2014%207%2017%201v2l4%201h628l8-1%201-2%2015-1%2011-5%209-5%2010-9v-2h2l6-10%205-10%201-3v-33l-8-17-12-13-8-6-14-7-11-1h-7v-2l-2-1z'%20fill='%23E8A654'/%3e%3c/svg%3e", Tr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(932)'%20d='m0%200h184v3h15l18%201%203%201v2l28%201%209%203%2016%201%208%203%2012%201%208%203%2011%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%2010%203%209%202%208%203%2016%205%209%203%207%203%2021%207%2011%205%2011%204%209%204%2011%204%2024%2012%2010%203%2046%2023%208%206%2016%208%209%206%2016%209%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%2012%208v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2l4%202v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%206%207%2013%2013%203%206%206%206v2h2v2h2l7%208%205%206%203%205%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%208%2014%207%2011%206%209%208%2015%206%2012%206%209%208%2015%209%2019%206%2012%206%2016%208%2016%2011%2027%208%2020%2010%2030%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2014%202%202%202%2018%202%202%202%2018%202%201%202%2023%202%201%201%207v25l4%201%201%2035h3v183l-3%202-1%2030-2%205-1%201-1%2022-1%208-2%202-1%2018-2%205-1%201-1%2015-1%204h-2l-1%2012-3%205-1%2015-1%204h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-3%2010-4%2012-3%2010-6%2013-4%2011-10%2024-8%2016-8%2020-8%2016-10%2019-4%207-6%2010-9%2017-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-10%2011-2%205-7%207-1%202h-2l-2%204-8%207-4%208-93%2093h-5l-2%204-8%207-12%2012-6%203-10%209-6%203-10%209-4%204-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-9%206-11%206-9%206-12%206-13%208-19%2010-26%2013-20%208-22%2011-17%206-7%203-17%206-15%206-36%2012-23%207-11%203-24%206-54%2012-23%204-14%202-13%202-22%203-29%202-1%203h-184l-1-3-34-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-15-6-17-6-10-5-9-2-16-8-11-6-9-2-32-16-17-9-6-5-21-10-7-6-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-9-9-5-4-6-3-10-9-6-3-17-17-5-4-5-2-92-92-3-6-11-12-10-10-3-6-9-10-3-6-11-12-3-4-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-7-14-12-20-13-26-5-12-4-10-11-22-5-12-5-13-6-16-5-14-4-10-15-45-3-12-6-20-5-22-3-10-4-18-1-8-2-5-2-15-2-6-2-18-2-9-1-17-2-7-1-4-1-32-3-1v-183l3-3%201-26%202-8%201-3%201-23%203-7%201-17%203-11%202-13%202-6%202-14%205-18%208-32%205-16%203-12%2020-60%204-8%204-12%204-8%204-12%2012-24%203-10%2011-23%2011-20%203-6%205-7%208-16%207-13%205-7%206-12%206-8%206-9%207-11%207-10%204-5%203-6%208-9%206-10%203-3%203-6%2012-13%205-8%208-9%203-6%208-9h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%205-6%205-5h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2010-8%208-6%2010-9%2010-6%2011-8%209-7%2048-32%2014-8%2010-6%2019-10%207-4%2010-6%2019-10%2023-11%2010-3%2019-10%208-4%209-2%2011-6%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%202-2%2011-1%206-3%2013-1%205-2%201-1%2017-1%206-2%201-1%2015-1%204-2%206-1%2026-1%201-3%2034-1zm-219%20608-2%202-17%202-3%202-10%202-2%202-9%202-11%206-5%204-9%206-18%2018-4%207-7%2010-8%2015-5%2013-3%208v55l3%207%205%2017%209%2017%209%2010%203%206%204%205%2011%207%204%202%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm600%200-2%202-17%202-3%202-10%202-2%202-9%202-8%206-7%204-4%203v2l-5%201-12%2011-7%207-4%207-7%2010-8%2015-5%2013-3%2010v53l3%207%206%2018%204%208%206%209%2012%2015%203%205%205%204%206%204%203%201%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm-807%20604-19%2010-12%2012-4%207-6%2012-2%2012-3%205v8l3%205%201%2011%205%209%209%2010%203%206%205%205%208%209h2l2%204h2l2%204%2012%2012%203%206%2010%2010%2010%207%209%209h2l2%204h2l2%204h2l2%204h2v2l8%207%209%206%205%205h2v2l9%206%205%204h2v2l9%206%2010%207%206%204%208%207%2014%207%208%206%2013%207%209%206%2062%2031%209%203%209%204%2010%205%209%202%208%203%2016%205%208%203%2016%205%209%203%208%203%2011%202%205%202%2011%202%207%202%2013%202%207%202%2015%201%207%203%2023%201v2l9%201%2030%201%201%202%204%201h77l7-2%201-1%2028-1%2010-1%202-2%2021-1%206-2%201-1%2017-1%206-2%201-1%2018-2%202-2%2014-2%202-2%2014-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2010-2%202-2%207-3%2011-3%202-2%208-3%207-2%2023-11%2038-19%2015-8%209-6%2011-6%209-6%2011-6%209-8%208-5%2011-7%209-8%208-5%2012-11%208-5%2013-13%206-5%205-5v-2l4-2%205-5%206-3%2012-12%202-5%2011-11%205-6%206-5%207-8%205-5%203-6%208-9%205-10%201-11%203-4v-7l-3-7-2-11-8-16-11-12-8-6-14-7h-33l-2%202-9%202-11%206-14%2014-3%207-42%2042v2l-4%202-18%2018-5%202-12%2011-4%203-7%204-7%207-6%203-10%209-6%203-9%206-14%208-4%203-12%206-13%208-19%2010-9%203-19%209-14%205-10%204-7%203-11%203-6%202-7%203-12%202-8%203-9%203-15%202-4%202-16%202-4%202-21%202-3%202-31%202h-7l-1%203h-70l-10-1-2-2-24-1-34-5-44-9-29-8-35-12-25-10-5-3-7-3-6-2-5-2-4-2-1-3-10-2-3-3h-2v-2l-17-8-8-5-5-4-7-3-10-6-3-3-6-3-7-6-3-3-6-3-7-6-3-3-6-3-9-9-5-4-5-2-63-63-3-6-9-10-7-4-9-7-9-2-3-2z'%20fill='%238CBF50'/%3e%3c/svg%3e", Me = {
|
7260
7260
|
PREGUNTA: 1,
|
7261
7261
|
IMAGEN: 2,
|
7262
7262
|
AUDIO: 3,
|
@@ -7305,7 +7305,7 @@ const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3
|
|
7305
7305
|
}
|
7306
7306
|
vo(() => {
|
7307
7307
|
s.canLoadMoreMessages || i();
|
7308
|
-
}),
|
7308
|
+
}), ns(
|
7309
7309
|
() => s.canLoadMoreMessages,
|
7310
7310
|
(p) => {
|
7311
7311
|
if (p) {
|
@@ -7349,11 +7349,11 @@ const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3
|
|
7349
7349
|
class: "target"
|
7350
7350
|
}, null, 512),
|
7351
7351
|
v("div", Nl, [
|
7352
|
-
(x(!0), A(dt, null,
|
7352
|
+
(x(!0), A(dt, null, Dn(s.messages, (d) => {
|
7353
7353
|
var T, g, O;
|
7354
7354
|
return x(), A("div", {
|
7355
7355
|
key: d.id,
|
7356
|
-
class:
|
7356
|
+
class: De(["message", d.esCliente ? "message-right" : "message-left"])
|
7357
7357
|
}, [
|
7358
7358
|
v("div", Al, [
|
7359
7359
|
d.error && d.esCliente ? (x(), A("div", Rl, [
|
@@ -7370,10 +7370,10 @@ const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3
|
|
7370
7370
|
])) : Se("", !0),
|
7371
7371
|
v("div", Ml, [
|
7372
7372
|
v("div", {
|
7373
|
-
class:
|
7373
|
+
class: De(["bubble", d.esCliente ? "right" : "left"])
|
7374
7374
|
}, [
|
7375
7375
|
v("div", {
|
7376
|
-
class:
|
7376
|
+
class: De(d.esCliente ? "content-right" : "content-left")
|
7377
7377
|
}, [
|
7378
7378
|
d.message === "😊😄🙂😐🙁" ? (x(), A("div", Ll, [
|
7379
7379
|
m[0] || (m[0] = v("div", { class: "mb-2" }, [
|
@@ -7381,10 +7381,10 @@ const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3
|
|
7381
7381
|
v("span", null, "¿Que le pareció la atención?")
|
7382
7382
|
], -1)),
|
7383
7383
|
v("div", Dl, [
|
7384
|
-
(x(), A(dt, null,
|
7384
|
+
(x(), A(dt, null, Dn(u, (C) => v("a", {
|
7385
7385
|
key: C.value,
|
7386
7386
|
href: d.response ? void 0 : "javascript:",
|
7387
|
-
class:
|
7387
|
+
class: De(["btn-icon", { "content-disabled": !a(d, C) }]),
|
7388
7388
|
onClick: (D) => !d.response && n("onQualifying", { message: d, emoji: C })
|
7389
7389
|
}, [
|
7390
7390
|
v("div", Bl, [
|
@@ -7398,7 +7398,7 @@ const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3
|
|
7398
7398
|
], 10, Fl)), 64))
|
7399
7399
|
])
|
7400
7400
|
])) : (x(), A("div", Ul, [
|
7401
|
-
((T = d.messageType) == null ? void 0 : T.code) ===
|
7401
|
+
((T = d.messageType) == null ? void 0 : T.code) === Le(Me).IMAGEN ? (x(), A("div", Pl, [
|
7402
7402
|
v("a", {
|
7403
7403
|
href: "javascript:",
|
7404
7404
|
class: "btn-icon",
|
@@ -7426,7 +7426,7 @@ const xl = /* @__PURE__ */ ie(Ol, [["render", Cl]]), gr = "data:image/svg+xml,%3
|
|
7426
7426
|
])),
|
7427
7427
|
v("div", Zl, [
|
7428
7428
|
(g = d.sender) != null && g.nombreCompleto ? (x(), A("span", jl, Ze(d.esCliente ? (O = d.sender) == null ? void 0 : O.nombreCompleto : "ECOSISTEMA JL"), 1)) : (x(), A("span", Yl)),
|
7429
|
-
v("span", null, Ze(
|
7429
|
+
v("span", null, Ze(Le(k).fromISO(d.createdAt).toFormat(
|
7430
7430
|
"dd-MM-yyyy HH:mm"
|
7431
7431
|
)), 1)
|
7432
7432
|
])
|
@@ -7474,7 +7474,7 @@ const $t = /* @__PURE__ */ Object.create(null);
|
|
7474
7474
|
Object.keys(be).forEach((t) => {
|
7475
7475
|
$t[be[t]] = t;
|
7476
7476
|
});
|
7477
|
-
const
|
7477
|
+
const Jn = { type: "error", data: "parser error" }, Xi = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", eo = typeof ArrayBuffer == "function", to = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t && t.buffer instanceof ArrayBuffer, gs = ({ type: t, data: e }, n, s) => Xi && e instanceof Blob ? n ? s(e) : Sr(e, s) : eo && (e instanceof ArrayBuffer || to(e)) ? n ? s(e) : Sr(new Blob([e]), s) : s(be[t] + (e || "")), Sr = (t, e) => {
|
7478
7478
|
const n = new FileReader();
|
7479
7479
|
return n.onload = function() {
|
7480
7480
|
const s = n.result.split(",")[1];
|
@@ -7484,14 +7484,14 @@ const Yn = { type: "error", data: "parser error" }, Xi = typeof Blob == "functio
|
|
7484
7484
|
function kr(t) {
|
7485
7485
|
return t instanceof Uint8Array ? t : t instanceof ArrayBuffer ? new Uint8Array(t) : new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
7486
7486
|
}
|
7487
|
-
let
|
7487
|
+
let In;
|
7488
7488
|
function nc(t, e) {
|
7489
7489
|
if (Xi && t.data instanceof Blob)
|
7490
7490
|
return t.data.arrayBuffer().then(kr).then(e);
|
7491
7491
|
if (eo && (t.data instanceof ArrayBuffer || to(t.data)))
|
7492
7492
|
return e(kr(t.data));
|
7493
|
-
|
7494
|
-
|
7493
|
+
gs(t, !1, (n) => {
|
7494
|
+
In || (In = new TextEncoder()), e(In.encode(n));
|
7495
7495
|
});
|
7496
7496
|
}
|
7497
7497
|
const Er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ht = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
@@ -7504,7 +7504,7 @@ const sc = (t) => {
|
|
7504
7504
|
for (s = 0; s < n; s += 4)
|
7505
7505
|
i = ht[t.charCodeAt(s)], o = ht[t.charCodeAt(s + 1)], a = ht[t.charCodeAt(s + 2)], l = ht[t.charCodeAt(s + 3)], u[r++] = i << 2 | o >> 4, u[r++] = (o & 15) << 4 | a >> 2, u[r++] = (a & 3) << 6 | l & 63;
|
7506
7506
|
return c;
|
7507
|
-
}, rc = typeof ArrayBuffer == "function",
|
7507
|
+
}, rc = typeof ArrayBuffer == "function", ws = (t, e) => {
|
7508
7508
|
if (typeof t != "string")
|
7509
7509
|
return {
|
7510
7510
|
type: "message",
|
@@ -7519,7 +7519,7 @@ const sc = (t) => {
|
|
7519
7519
|
data: t.substring(1)
|
7520
7520
|
} : {
|
7521
7521
|
type: $t[n]
|
7522
|
-
} :
|
7522
|
+
} : Jn;
|
7523
7523
|
}, ic = (t, e) => {
|
7524
7524
|
if (rc) {
|
7525
7525
|
const n = sc(t);
|
@@ -7538,14 +7538,14 @@ const sc = (t) => {
|
|
7538
7538
|
const n = t.length, s = new Array(n);
|
7539
7539
|
let r = 0;
|
7540
7540
|
t.forEach((i, o) => {
|
7541
|
-
|
7541
|
+
gs(i, !1, (a) => {
|
7542
7542
|
s[o] = a, ++r === n && e(s.join(so));
|
7543
7543
|
});
|
7544
7544
|
});
|
7545
7545
|
}, ac = (t, e) => {
|
7546
7546
|
const n = t.split(so), s = [];
|
7547
7547
|
for (let r = 0; r < n.length; r++) {
|
7548
|
-
const i =
|
7548
|
+
const i = ws(n[r], e);
|
7549
7549
|
if (s.push(i), i.type === "error")
|
7550
7550
|
break;
|
7551
7551
|
}
|
@@ -7573,7 +7573,7 @@ function lc() {
|
|
7573
7573
|
}
|
7574
7574
|
});
|
7575
7575
|
}
|
7576
|
-
let
|
7576
|
+
let Mn;
|
7577
7577
|
function It(t) {
|
7578
7578
|
return t.reduce((e, n) => e + n.length, 0);
|
7579
7579
|
}
|
@@ -7587,7 +7587,7 @@ function Mt(t, e) {
|
|
7587
7587
|
return t.length && s < t[0].length && (t[0] = t[0].slice(s)), n;
|
7588
7588
|
}
|
7589
7589
|
function cc(t, e) {
|
7590
|
-
|
7590
|
+
Mn || (Mn = new TextDecoder());
|
7591
7591
|
const n = [];
|
7592
7592
|
let s = 0, r = -1, i = !1;
|
7593
7593
|
return new TransformStream({
|
@@ -7608,7 +7608,7 @@ function cc(t, e) {
|
|
7608
7608
|
break;
|
7609
7609
|
const l = Mt(n, 8), c = new DataView(l.buffer, l.byteOffset, l.length), u = c.getUint32(0);
|
7610
7610
|
if (u > Math.pow(2, 21) - 1) {
|
7611
|
-
a.enqueue(
|
7611
|
+
a.enqueue(Jn);
|
7612
7612
|
break;
|
7613
7613
|
}
|
7614
7614
|
r = u * Math.pow(2, 32) + c.getUint32(4), s = 3;
|
@@ -7616,10 +7616,10 @@ function cc(t, e) {
|
|
7616
7616
|
if (It(n) < r)
|
7617
7617
|
break;
|
7618
7618
|
const l = Mt(n, r);
|
7619
|
-
a.enqueue(
|
7619
|
+
a.enqueue(ws(i ? l : Mn.decode(l), e)), s = 0;
|
7620
7620
|
}
|
7621
7621
|
if (r === 0 || r > t) {
|
7622
|
-
a.enqueue(
|
7622
|
+
a.enqueue(Jn);
|
7623
7623
|
break;
|
7624
7624
|
}
|
7625
7625
|
}
|
@@ -7627,24 +7627,24 @@ function cc(t, e) {
|
|
7627
7627
|
});
|
7628
7628
|
}
|
7629
7629
|
const ro = 4;
|
7630
|
-
function
|
7630
|
+
function z(t) {
|
7631
7631
|
if (t) return uc(t);
|
7632
7632
|
}
|
7633
7633
|
function uc(t) {
|
7634
|
-
for (var e in
|
7635
|
-
t[e] =
|
7634
|
+
for (var e in z.prototype)
|
7635
|
+
t[e] = z.prototype[e];
|
7636
7636
|
return t;
|
7637
7637
|
}
|
7638
|
-
|
7638
|
+
z.prototype.on = z.prototype.addEventListener = function(t, e) {
|
7639
7639
|
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
|
7640
7640
|
};
|
7641
|
-
|
7641
|
+
z.prototype.once = function(t, e) {
|
7642
7642
|
function n() {
|
7643
7643
|
this.off(t, n), e.apply(this, arguments);
|
7644
7644
|
}
|
7645
7645
|
return n.fn = e, this.on(t, n), this;
|
7646
7646
|
};
|
7647
|
-
|
7647
|
+
z.prototype.off = z.prototype.removeListener = z.prototype.removeAllListeners = z.prototype.removeEventListener = function(t, e) {
|
7648
7648
|
if (this._callbacks = this._callbacks || {}, arguments.length == 0)
|
7649
7649
|
return this._callbacks = {}, this;
|
7650
7650
|
var n = this._callbacks["$" + t];
|
@@ -7658,7 +7658,7 @@ W.prototype.off = W.prototype.removeListener = W.prototype.removeAllListeners =
|
|
7658
7658
|
}
|
7659
7659
|
return n.length === 0 && delete this._callbacks["$" + t], this;
|
7660
7660
|
};
|
7661
|
-
|
7661
|
+
z.prototype.emit = function(t) {
|
7662
7662
|
this._callbacks = this._callbacks || {};
|
7663
7663
|
for (var e = new Array(arguments.length - 1), n = this._callbacks["$" + t], s = 1; s < arguments.length; s++)
|
7664
7664
|
e[s - 1] = arguments[s];
|
@@ -7669,11 +7669,11 @@ W.prototype.emit = function(t) {
|
|
7669
7669
|
}
|
7670
7670
|
return this;
|
7671
7671
|
};
|
7672
|
-
|
7673
|
-
|
7672
|
+
z.prototype.emitReserved = z.prototype.emit;
|
7673
|
+
z.prototype.listeners = function(t) {
|
7674
7674
|
return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
|
7675
7675
|
};
|
7676
|
-
|
7676
|
+
z.prototype.hasListeners = function(t) {
|
7677
7677
|
return !!this.listeners(t).length;
|
7678
7678
|
};
|
7679
7679
|
const dn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, n) => n(e, 0), ce = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), fc = "arraybuffer";
|
@@ -7716,7 +7716,7 @@ class vc extends Error {
|
|
7716
7716
|
super(e), this.description = n, this.context = s, this.type = "TransportError";
|
7717
7717
|
}
|
7718
7718
|
}
|
7719
|
-
class
|
7719
|
+
class vs extends z {
|
7720
7720
|
/**
|
7721
7721
|
* Transport abstract constructor.
|
7722
7722
|
*
|
@@ -7773,7 +7773,7 @@ class ws extends W {
|
|
7773
7773
|
* @protected
|
7774
7774
|
*/
|
7775
7775
|
onData(e) {
|
7776
|
-
const n =
|
7776
|
+
const n = ws(e, this.socket.binaryType);
|
7777
7777
|
this.onPacket(n);
|
7778
7778
|
}
|
7779
7779
|
/**
|
@@ -7814,7 +7814,7 @@ class ws extends W {
|
|
7814
7814
|
return n.length ? "?" + n : "";
|
7815
7815
|
}
|
7816
7816
|
}
|
7817
|
-
class bc extends
|
7817
|
+
class bc extends vs {
|
7818
7818
|
constructor() {
|
7819
7819
|
super(...arguments), this._polling = !1;
|
7820
7820
|
}
|
@@ -7956,7 +7956,7 @@ class kc extends bc {
|
|
7956
7956
|
}), this.pollXhr = e;
|
7957
7957
|
}
|
7958
7958
|
}
|
7959
|
-
let Je = class qt extends
|
7959
|
+
let Je = class qt extends z {
|
7960
7960
|
/**
|
7961
7961
|
* Request constructor
|
7962
7962
|
*
|
@@ -8097,7 +8097,7 @@ function lo(t) {
|
|
8097
8097
|
}
|
8098
8098
|
}
|
8099
8099
|
const co = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
8100
|
-
class _c extends
|
8100
|
+
class _c extends vs {
|
8101
8101
|
get name() {
|
8102
8102
|
return "websocket";
|
8103
8103
|
}
|
@@ -8128,7 +8128,7 @@ class _c extends ws {
|
|
8128
8128
|
this.writable = !1;
|
8129
8129
|
for (let n = 0; n < e.length; n++) {
|
8130
8130
|
const s = e[n], r = n === e.length - 1;
|
8131
|
-
|
8131
|
+
gs(s, this.supportsBinary, (i) => {
|
8132
8132
|
try {
|
8133
8133
|
this.doWrite(s, i);
|
8134
8134
|
} catch {
|
@@ -8153,16 +8153,16 @@ class _c extends ws {
|
|
8153
8153
|
return this.opts.timestampRequests && (n[this.opts.timestampParam] = oo()), this.supportsBinary || (n.b64 = 1), this.createUri(e, n);
|
8154
8154
|
}
|
8155
8155
|
}
|
8156
|
-
const
|
8156
|
+
const Ln = ce.WebSocket || ce.MozWebSocket;
|
8157
8157
|
class Cc extends _c {
|
8158
8158
|
createSocket(e, n, s) {
|
8159
|
-
return co ? new
|
8159
|
+
return co ? new Ln(e, n, s) : n ? new Ln(e, n) : new Ln(e);
|
8160
8160
|
}
|
8161
8161
|
doWrite(e, n) {
|
8162
8162
|
this.ws.send(n);
|
8163
8163
|
}
|
8164
8164
|
}
|
8165
|
-
class xc extends
|
8165
|
+
class xc extends vs {
|
8166
8166
|
get name() {
|
8167
8167
|
return "webtransport";
|
8168
8168
|
}
|
@@ -8228,7 +8228,7 @@ const Nc = {
|
|
8228
8228
|
"query",
|
8229
8229
|
"anchor"
|
8230
8230
|
];
|
8231
|
-
function
|
8231
|
+
function Gn(t) {
|
8232
8232
|
if (t.length > 8e3)
|
8233
8233
|
throw "URI too long";
|
8234
8234
|
const e = t, n = t.indexOf("["), s = t.indexOf("]");
|
@@ -8248,11 +8248,11 @@ function Mc(t, e) {
|
|
8248
8248
|
r && (n[r] = i);
|
8249
8249
|
}), n;
|
8250
8250
|
}
|
8251
|
-
const
|
8252
|
-
|
8251
|
+
const Kn = typeof addEventListener == "function" && typeof removeEventListener == "function", Wt = [];
|
8252
|
+
Kn && addEventListener("offline", () => {
|
8253
8253
|
Wt.forEach((t) => t());
|
8254
8254
|
}, !1);
|
8255
|
-
class Ae extends
|
8255
|
+
class Ae extends z {
|
8256
8256
|
/**
|
8257
8257
|
* Socket constructor.
|
8258
8258
|
*
|
@@ -8261,9 +8261,9 @@ class Ae extends W {
|
|
8261
8261
|
*/
|
8262
8262
|
constructor(e, n) {
|
8263
8263
|
if (super(), this.binaryType = fc, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, e && typeof e == "object" && (n = e, e = null), e) {
|
8264
|
-
const s =
|
8264
|
+
const s = Gn(e);
|
8265
8265
|
n.hostname = s.host, n.secure = s.protocol === "https" || s.protocol === "wss", n.port = s.port, s.query && (n.query = s.query);
|
8266
|
-
} else n.host && (n.hostname =
|
8266
|
+
} else n.host && (n.hostname = Gn(n.host).host);
|
8267
8267
|
mn(this, n), this.secure = n.secure != null ? n.secure : typeof location < "u" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = n.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, n.transports.forEach((s) => {
|
8268
8268
|
const r = s.prototype.name;
|
8269
8269
|
this.transports.push(r), this._transportsByName[r] = s;
|
@@ -8281,7 +8281,7 @@ class Ae extends W {
|
|
8281
8281
|
},
|
8282
8282
|
transportOptions: {},
|
8283
8283
|
closeOnBeforeunload: !1
|
8284
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = wc(this.opts.query)),
|
8284
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = wc(this.opts.query)), Kn && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
8285
8285
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
8286
8286
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
8287
8287
|
this._onClose("transport close", {
|
@@ -8514,7 +8514,7 @@ class Ae extends W {
|
|
8514
8514
|
*/
|
8515
8515
|
_onClose(e, n) {
|
8516
8516
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
8517
|
-
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(),
|
8517
|
+
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Kn && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
8518
8518
|
const s = Wt.indexOf(this._offlineEventListener);
|
8519
8519
|
s !== -1 && Wt.splice(s, 1);
|
8520
8520
|
}
|
@@ -8603,12 +8603,12 @@ let Dc = class extends Lc {
|
|
8603
8603
|
};
|
8604
8604
|
function Fc(t, e = "", n) {
|
8605
8605
|
let s = t;
|
8606
|
-
n = n || typeof location < "u" && location, t == null && (t = n.protocol + "//" + n.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = n.protocol + t : t = n.host + t), /^(https?|wss?):\/\//.test(t) || (typeof n < "u" ? t = n.protocol + "//" + t : t = "https://" + t), s =
|
8606
|
+
n = n || typeof location < "u" && location, t == null && (t = n.protocol + "//" + n.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = n.protocol + t : t = n.host + t), /^(https?|wss?):\/\//.test(t) || (typeof n < "u" ? t = n.protocol + "//" + t : t = "https://" + t), s = Gn(t)), s.port || (/^(http|ws)$/.test(s.protocol) ? s.port = "80" : /^(http|ws)s$/.test(s.protocol) && (s.port = "443")), s.path = s.path || "/";
|
8607
8607
|
const i = s.host.indexOf(":") !== -1 ? "[" + s.host + "]" : s.host;
|
8608
8608
|
return s.id = s.protocol + "://" + i + ":" + s.port + e, s.href = s.protocol + "://" + i + (n && n.port === s.port ? "" : ":" + s.port), s;
|
8609
8609
|
}
|
8610
8610
|
const Bc = typeof ArrayBuffer == "function", Vc = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer, uo = Object.prototype.toString, Uc = typeof Blob == "function" || typeof Blob < "u" && uo.call(Blob) === "[object BlobConstructor]", Pc = typeof File == "function" || typeof File < "u" && uo.call(File) === "[object FileConstructor]";
|
8611
|
-
function
|
8611
|
+
function bs(t) {
|
8612
8612
|
return Bc && (t instanceof ArrayBuffer || Vc(t)) || Uc && t instanceof Blob || Pc && t instanceof File;
|
8613
8613
|
}
|
8614
8614
|
function zt(t, e) {
|
@@ -8620,7 +8620,7 @@ function zt(t, e) {
|
|
8620
8620
|
return !0;
|
8621
8621
|
return !1;
|
8622
8622
|
}
|
8623
|
-
if (
|
8623
|
+
if (bs(t))
|
8624
8624
|
return !0;
|
8625
8625
|
if (t.toJSON && typeof t.toJSON == "function" && arguments.length === 1)
|
8626
8626
|
return zt(t.toJSON(), !0);
|
@@ -8631,31 +8631,31 @@ function zt(t, e) {
|
|
8631
8631
|
}
|
8632
8632
|
function $c(t) {
|
8633
8633
|
const e = [], n = t.data, s = t;
|
8634
|
-
return s.data =
|
8634
|
+
return s.data = Qn(n, e), s.attachments = e.length, { packet: s, buffers: e };
|
8635
8635
|
}
|
8636
|
-
function
|
8636
|
+
function Qn(t, e) {
|
8637
8637
|
if (!t)
|
8638
8638
|
return t;
|
8639
|
-
if (
|
8639
|
+
if (bs(t)) {
|
8640
8640
|
const n = { _placeholder: !0, num: e.length };
|
8641
8641
|
return e.push(t), n;
|
8642
8642
|
} else if (Array.isArray(t)) {
|
8643
8643
|
const n = new Array(t.length);
|
8644
8644
|
for (let s = 0; s < t.length; s++)
|
8645
|
-
n[s] =
|
8645
|
+
n[s] = Qn(t[s], e);
|
8646
8646
|
return n;
|
8647
8647
|
} else if (typeof t == "object" && !(t instanceof Date)) {
|
8648
8648
|
const n = {};
|
8649
8649
|
for (const s in t)
|
8650
|
-
Object.prototype.hasOwnProperty.call(t, s) && (n[s] =
|
8650
|
+
Object.prototype.hasOwnProperty.call(t, s) && (n[s] = Qn(t[s], e));
|
8651
8651
|
return n;
|
8652
8652
|
}
|
8653
8653
|
return t;
|
8654
8654
|
}
|
8655
8655
|
function qc(t, e) {
|
8656
|
-
return t.data =
|
8656
|
+
return t.data = Xn(t.data, e), delete t.attachments, t;
|
8657
8657
|
}
|
8658
|
-
function
|
8658
|
+
function Xn(t, e) {
|
8659
8659
|
if (!t)
|
8660
8660
|
return t;
|
8661
8661
|
if (t && t._placeholder === !0) {
|
@@ -8664,10 +8664,10 @@ function Qn(t, e) {
|
|
8664
8664
|
throw new Error("illegal attachments");
|
8665
8665
|
} else if (Array.isArray(t))
|
8666
8666
|
for (let n = 0; n < t.length; n++)
|
8667
|
-
t[n] =
|
8667
|
+
t[n] = Xn(t[n], e);
|
8668
8668
|
else if (typeof t == "object")
|
8669
8669
|
for (const n in t)
|
8670
|
-
Object.prototype.hasOwnProperty.call(t, n) && (t[n] =
|
8670
|
+
Object.prototype.hasOwnProperty.call(t, n) && (t[n] = Xn(t[n], e));
|
8671
8671
|
return t;
|
8672
8672
|
}
|
8673
8673
|
const Wc = [
|
@@ -8726,7 +8726,7 @@ class Hc {
|
|
8726
8726
|
function _r(t) {
|
8727
8727
|
return Object.prototype.toString.call(t) === "[object Object]";
|
8728
8728
|
}
|
8729
|
-
class
|
8729
|
+
class Ts extends z {
|
8730
8730
|
/**
|
8731
8731
|
* Decoder constructor
|
8732
8732
|
*
|
@@ -8748,7 +8748,7 @@ class bs extends W {
|
|
8748
8748
|
n = this.decodeString(e);
|
8749
8749
|
const s = n.type === N.BINARY_EVENT;
|
8750
8750
|
s || n.type === N.BINARY_ACK ? (n.type = s ? N.EVENT : N.ACK, this.reconstructor = new Zc(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
|
8751
|
-
} else if (
|
8751
|
+
} else if (bs(e) || e.base64)
|
8752
8752
|
if (this.reconstructor)
|
8753
8753
|
n = this.reconstructor.takeBinaryData(e), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
8754
8754
|
else
|
@@ -8801,7 +8801,7 @@ class bs extends W {
|
|
8801
8801
|
}
|
8802
8802
|
if (e.charAt(++n)) {
|
8803
8803
|
const i = this.tryParse(e.substr(n));
|
8804
|
-
if (
|
8804
|
+
if (Ts.isPayloadValid(s.type, i))
|
8805
8805
|
s.data = i;
|
8806
8806
|
else
|
8807
8807
|
throw new Error("invalid payload");
|
@@ -8866,7 +8866,7 @@ class Zc {
|
|
8866
8866
|
}
|
8867
8867
|
const jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8868
8868
|
__proto__: null,
|
8869
|
-
Decoder:
|
8869
|
+
Decoder: Ts,
|
8870
8870
|
Encoder: Hc,
|
8871
8871
|
get PacketType() {
|
8872
8872
|
return N;
|
@@ -8887,7 +8887,7 @@ const Yc = Object.freeze({
|
|
8887
8887
|
newListener: 1,
|
8888
8888
|
removeListener: 1
|
8889
8889
|
});
|
8890
|
-
class fo extends
|
8890
|
+
class fo extends z {
|
8891
8891
|
/**
|
8892
8892
|
* `Socket` constructor.
|
8893
8893
|
*/
|
@@ -9502,7 +9502,7 @@ st.prototype.setMax = function(t) {
|
|
9502
9502
|
st.prototype.setJitter = function(t) {
|
9503
9503
|
this.jitter = t;
|
9504
9504
|
};
|
9505
|
-
class
|
9505
|
+
class es extends z {
|
9506
9506
|
constructor(e, n) {
|
9507
9507
|
var s;
|
9508
9508
|
super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (n = e, e = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n, mn(this, n), this.reconnection(n.reconnection !== !1), this.reconnectionAttempts(n.reconnectionAttempts || 1 / 0), this.reconnectionDelay(n.reconnectionDelay || 1e3), this.reconnectionDelayMax(n.reconnectionDelayMax || 5e3), this.randomizationFactor((s = n.randomizationFactor) !== null && s !== void 0 ? s : 0.5), this.backoff = new st({
|
@@ -9745,17 +9745,17 @@ function Ht(t, e) {
|
|
9745
9745
|
typeof t == "object" && (e = t, t = void 0), e = e || {};
|
9746
9746
|
const n = Fc(t, e.path || "/socket.io"), s = n.source, r = n.id, i = n.path, o = ct[r] && i in ct[r].nsps, a = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
|
9747
9747
|
let l;
|
9748
|
-
return a ? l = new
|
9748
|
+
return a ? l = new es(s, e) : (ct[r] || (ct[r] = new es(s, e)), l = ct[r]), n.query && !e.query && (e.query = n.queryKey), l.socket(n.path, e);
|
9749
9749
|
}
|
9750
9750
|
Object.assign(Ht, {
|
9751
|
-
Manager:
|
9751
|
+
Manager: es,
|
9752
9752
|
Socket: fo,
|
9753
9753
|
io: Ht,
|
9754
9754
|
connect: Ht
|
9755
9755
|
});
|
9756
9756
|
var ho = /* @__PURE__ */ ((t) => (t.WEBCHAT = "webchat", t.CENTRAL = "central", t.WHATSAPP = "whatsapp", t.TELEGRAM = "telegram", t.SMS = "sms", t))(ho || {});
|
9757
9757
|
function Jc() {
|
9758
|
-
const t =
|
9758
|
+
const t = ts(() => [
|
9759
9759
|
"Android",
|
9760
9760
|
"iPhone"
|
9761
9761
|
/* IOS */
|
@@ -9810,19 +9810,19 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9810
9810
|
const n = t, s = e, r = B(!1), i = () => {
|
9811
9811
|
s("update:modelValue", !1);
|
9812
9812
|
};
|
9813
|
-
return
|
9813
|
+
return ss(() => {
|
9814
9814
|
const o = document.getElementById("app");
|
9815
9815
|
if (!o) throw new Error("app is required");
|
9816
9816
|
let a = document.getElementById("dialogs");
|
9817
9817
|
a || (a = document.createElement("div"), a.id = "dialogs", a.classList.add("widget-component"), o.appendChild(a), r.value = !0);
|
9818
|
-
}), (o, a) => r.value ? (x(),
|
9818
|
+
}), (o, a) => r.value ? (x(), rs(bo, {
|
9819
9819
|
key: 0,
|
9820
9820
|
to: "#dialogs"
|
9821
9821
|
}, [
|
9822
9822
|
n.modelValue ? (x(), A("div", eu, [
|
9823
9823
|
v("div", {
|
9824
9824
|
class: "dialog-content",
|
9825
|
-
onClick: a[1] || (a[1] =
|
9825
|
+
onClick: a[1] || (a[1] = Fn(() => {
|
9826
9826
|
}, ["stop"]))
|
9827
9827
|
}, [
|
9828
9828
|
v("div", tu, [
|
@@ -9890,7 +9890,7 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9890
9890
|
data: [],
|
9891
9891
|
canLoadMoreMessages: !1
|
9892
9892
|
}), c = B(""), u = B(!1), f = e, p = t, m = B(null);
|
9893
|
-
|
9893
|
+
ns(
|
9894
9894
|
() => p.visible,
|
9895
9895
|
async (y) => {
|
9896
9896
|
if (!y || (f("clear-new-messages"), V(), s.value > 0 && $s(c.value, p.tokenAuth), c.value)) return;
|
@@ -9905,8 +9905,8 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9905
9905
|
return;
|
9906
9906
|
}
|
9907
9907
|
if (y.key === "Enter" && y.shiftKey) {
|
9908
|
-
const
|
9909
|
-
y.target.value =
|
9908
|
+
const q = ((S = y.target) == null ? void 0 : S.value) || "";
|
9909
|
+
y.target.value = q + `
|
9910
9910
|
`, he();
|
9911
9911
|
return;
|
9912
9912
|
}
|
@@ -9923,7 +9923,7 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9923
9923
|
});
|
9924
9924
|
return;
|
9925
9925
|
}
|
9926
|
-
if (!y.trim() && b !==
|
9926
|
+
if (!y.trim() && b !== Me.IMAGEN) {
|
9927
9927
|
f("show-toast", {
|
9928
9928
|
severity: "warn",
|
9929
9929
|
summary: "Error",
|
@@ -9956,10 +9956,10 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9956
9956
|
response: void 0
|
9957
9957
|
};
|
9958
9958
|
}
|
9959
|
-
function g(y, b, S,
|
9959
|
+
function g(y, b, S, q) {
|
9960
9960
|
if (b == null) throw new Error("idx is required");
|
9961
9961
|
if (!S) {
|
9962
|
-
if (
|
9962
|
+
if (q) {
|
9963
9963
|
const F = l.value.data[b];
|
9964
9964
|
F.response = void 0;
|
9965
9965
|
} else
|
@@ -9976,7 +9976,7 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9976
9976
|
return;
|
9977
9977
|
}
|
9978
9978
|
let L = { ...S, chatId: y == null ? void 0 : y.chatId };
|
9979
|
-
if (
|
9979
|
+
if (q) {
|
9980
9980
|
const F = l.value.data[b];
|
9981
9981
|
F.response = S, L = { ...F, chatId: y == null ? void 0 : y.chatId };
|
9982
9982
|
} else
|
@@ -9993,14 +9993,14 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
9993
9993
|
L && (L.response = b);
|
9994
9994
|
} else
|
9995
9995
|
S = l.value.data.push(b) - 1;
|
9996
|
-
const
|
9996
|
+
const q = {
|
9997
9997
|
message: n.value,
|
9998
9998
|
appChatId: c.value,
|
9999
9999
|
...y,
|
10000
10000
|
codigoTipoMensaje: y == null ? void 0 : y.codigoTipoMensaje,
|
10001
10001
|
files: rt.value
|
10002
10002
|
};
|
10003
|
-
C(
|
10003
|
+
C(q).then((L) => {
|
10004
10004
|
var te, ne;
|
10005
10005
|
let F = g(
|
10006
10006
|
b,
|
@@ -10010,15 +10010,15 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10010
10010
|
);
|
10011
10011
|
F && (kt.value = !!l.value.data.find((Te) => {
|
10012
10012
|
var ot;
|
10013
|
-
return ((ot = Te.messageType) == null ? void 0 : ot.code) ===
|
10014
|
-
}), (ne =
|
10013
|
+
return ((ot = Te.messageType) == null ? void 0 : ot.code) === Me.PREGUNTA && Te.response == null;
|
10014
|
+
}), (ne = Z.value) == null || ne.emit(
|
10015
10015
|
"sendMessage",
|
10016
10016
|
{ roomId: (te = Q == null ? void 0 : Q.value) == null ? void 0 : te.appChat.id, message: F },
|
10017
10017
|
(Te) => {
|
10018
10018
|
console.log("🚀 ~ socketService.value.emit ~ response:", Te);
|
10019
10019
|
}
|
10020
10020
|
));
|
10021
|
-
}), n.value = "", V(),
|
10021
|
+
}), n.value = "", V(), U.value && (U.value.style.height = "20px");
|
10022
10022
|
}, C = async (y) => {
|
10023
10023
|
const b = {
|
10024
10024
|
...y,
|
@@ -10026,8 +10026,8 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10026
10026
|
};
|
10027
10027
|
return pa(b, p.tokenAuth);
|
10028
10028
|
}, D = async () => {
|
10029
|
-
var
|
10030
|
-
const y = (
|
10029
|
+
var q, L, F;
|
10030
|
+
const y = (q = l.value.data[0]) == null ? void 0 : q.id, b = {
|
10031
10031
|
lastMessagesId: y,
|
10032
10032
|
appChatId: c.value,
|
10033
10033
|
limit: 10
|
@@ -10036,13 +10036,13 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10036
10036
|
const S = await ma({ body: b, token: p.tokenAuth });
|
10037
10037
|
u.value = !1, kt.value = !!S.data.find((te) => {
|
10038
10038
|
var ne;
|
10039
|
-
return ((ne = te.messageType) == null ? void 0 : ne.code) ===
|
10039
|
+
return ((ne = te.messageType) == null ? void 0 : ne.code) === Me.PREGUNTA && te.response == null;
|
10040
10040
|
}), l.value.data.unshift(
|
10041
10041
|
...S.data.sort((te, ne) => -ne.createdAt.localeCompare(te.createdAt))
|
10042
10042
|
), l.value.canLoadMoreMessages = S.pagination.total > S.pagination.size, y && ((L = m.value) != null && L.scrollHeight) && oe((F = m.value) == null ? void 0 : F.scrollHeight), y || V();
|
10043
10043
|
}, ee = async (y) => {
|
10044
10044
|
f("show-confirm", async () => {
|
10045
|
-
var S,
|
10045
|
+
var S, q, L;
|
10046
10046
|
if (!((S = y.error) != null && S.id)) return;
|
10047
10047
|
const b = await C({
|
10048
10048
|
message: y.message,
|
@@ -10061,49 +10061,49 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10061
10061
|
"id",
|
10062
10062
|
y.error.id
|
10063
10063
|
);
|
10064
|
-
l.value.data[F] = { ...b, error: void 0 }, (L =
|
10065
|
-
roomId: (
|
10064
|
+
l.value.data[F] = { ...b, error: void 0 }, (L = Z.value) == null || L.emit("sendMessage", {
|
10065
|
+
roomId: (q = Q == null ? void 0 : Q.value) == null ? void 0 : q.appChat.id,
|
10066
10066
|
message: y
|
10067
10067
|
});
|
10068
10068
|
}
|
10069
10069
|
V();
|
10070
10070
|
});
|
10071
10071
|
}, V = () => {
|
10072
|
-
|
10072
|
+
gn(() => {
|
10073
10073
|
m.value && (m.value.scrollTop = m.value.scrollHeight);
|
10074
10074
|
});
|
10075
10075
|
}, oe = (y) => {
|
10076
|
-
|
10076
|
+
gn(() => {
|
10077
10077
|
const b = m.value;
|
10078
10078
|
b && (b.scrollTop = b.scrollHeight - y);
|
10079
10079
|
});
|
10080
|
-
},
|
10080
|
+
}, U = B();
|
10081
10081
|
function he() {
|
10082
|
-
|
10082
|
+
U.value && (U.value.style.height = U.value.scrollHeight - Su + "px", U.value.scrollHeight !== U.value.clientHeight && (U.value.style.height = U.value.scrollHeight + "px"));
|
10083
10083
|
}
|
10084
|
-
const
|
10084
|
+
const Z = B(), Q = B();
|
10085
10085
|
function pn(y, b = ho.WEBCHAT) {
|
10086
|
-
var S,
|
10086
|
+
var S, q;
|
10087
10087
|
if (!y) throw new Error("user chat is required");
|
10088
|
-
|
10088
|
+
Z.value = Ht(window.VITE_SOCKET_URI, {
|
10089
10089
|
query: {
|
10090
10090
|
// TODO: confirmar si se quita o no
|
10091
|
-
usuarioId: `${(
|
10091
|
+
usuarioId: `${(q = (S = y == null ? void 0 : y.chat) == null ? void 0 : S.persona) == null ? void 0 : q.funcionarioId}`,
|
10092
10092
|
aplicacion: b
|
10093
10093
|
},
|
10094
10094
|
extraHeaders: { Authorization: p.tokenAuth }
|
10095
|
-
}),
|
10095
|
+
}), Z.value.removeAllListeners(), Z.value.on("connect", () => {
|
10096
10096
|
var L, F;
|
10097
|
-
console.log("Conectado al servidor de sockets"), (F =
|
10098
|
-
}),
|
10097
|
+
console.log("Conectado al servidor de sockets"), (F = Z.value) == null || F.emit("joinRoom", `${(L = y == null ? void 0 : y.appChat) == null ? void 0 : L.id}`);
|
10098
|
+
}), Z.value.on("disconnect", () => {
|
10099
10099
|
console.log("Desconectado del servidor de sockets");
|
10100
|
-
}),
|
10100
|
+
}), Z.value.on("receiveMessage", (L) => {
|
10101
10101
|
var te, ne;
|
10102
10102
|
console.log("Mensaje recibido:", L.message, y);
|
10103
10103
|
const F = l.value.data.findIndex((Te) => Te.id === L.message.id);
|
10104
10104
|
L.message.sender.msPersonaId === ((ne = (te = y == null ? void 0 : y.chat) == null ? void 0 : te.persona) == null ? void 0 : ne.msPersonaId) && F === -1 || (F !== -1 ? l.value.data[F].response = L.message.response : l.value.data.push(L.message), kt.value = !!l.value.data.find((Te) => {
|
10105
10105
|
var ot;
|
10106
|
-
return ((ot = Te.messageType) == null ? void 0 : ot.code) ===
|
10106
|
+
return ((ot = Te.messageType) == null ? void 0 : ot.code) === Me.PREGUNTA && Te.response == null;
|
10107
10107
|
}), $s(L.message.appChatId, p.tokenAuth), V(), !p.visible && f("new-message"));
|
10108
10108
|
});
|
10109
10109
|
}
|
@@ -10122,7 +10122,10 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10122
10122
|
var S;
|
10123
10123
|
rt.value = [], it.value = [];
|
10124
10124
|
const y = ((S = r.value) == null ? void 0 : S.files) ?? [], b = y == null ? void 0 : y[0];
|
10125
|
-
rt.value = y, b && (it.value.push(URL.createObjectURL(b)), o.value = 0, Ee.title = "Preparar imagen", Ee.modelValue = !0)
|
10125
|
+
rt.value = y, b && (it.value.push(URL.createObjectURL(b)), o.value = 0, Ee.title = "Preparar imagen", Ee.modelValue = !0, gn(() => {
|
10126
|
+
var q;
|
10127
|
+
(q = U.value) == null || q.focus();
|
10128
|
+
}));
|
10126
10129
|
}
|
10127
10130
|
const rt = B([]), it = B([]), Ee = So({
|
10128
10131
|
modelValue: !1,
|
@@ -10131,13 +10134,13 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10131
10134
|
},
|
10132
10135
|
title: "Preparar imagen"
|
10133
10136
|
});
|
10134
|
-
return
|
10137
|
+
return ss(async () => {
|
10135
10138
|
if (c.value) return;
|
10136
10139
|
const y = await Ps(p.tokenAuth);
|
10137
10140
|
y && (Q.value = y, c.value = y.appChat.id, s.value = y.appChat.totalNoVistosCliente, pn(y), D(), f("not-viewed-total", y.appChat.totalNoVistosCliente));
|
10138
10141
|
}), ko(() => {
|
10139
10142
|
var y;
|
10140
|
-
(y =
|
10143
|
+
(y = Z.value) == null || y.off();
|
10141
10144
|
}), (y, b) => (x(), A(dt, null, [
|
10142
10145
|
v("div", iu, [
|
10143
10146
|
v("div", ou, [
|
@@ -10157,7 +10160,7 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10157
10160
|
u.value ? (x(), A("div", lu, [
|
10158
10161
|
le(ec)
|
10159
10162
|
])) : Se("", !0),
|
10160
|
-
l.value.data.length > 0 ? (x(),
|
10163
|
+
l.value.data.length > 0 ? (x(), rs(Gl, {
|
10161
10164
|
key: 1,
|
10162
10165
|
messages: l.value.data,
|
10163
10166
|
canLoadMoreMessages: l.value.canLoadMoreMessages,
|
@@ -10175,7 +10178,7 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10175
10178
|
kt.value ? (x(), A("span", mu, " Necesitamos que nos califique la atención para continuar ")) : (x(), A("form", {
|
10176
10179
|
key: 0,
|
10177
10180
|
class: "message-send",
|
10178
|
-
onSubmit: b[7] || (b[7] =
|
10181
|
+
onSubmit: b[7] || (b[7] = Fn((S) => O(), ["prevent"]))
|
10179
10182
|
}, [
|
10180
10183
|
v("div", fu, [
|
10181
10184
|
v("div", hu, [
|
@@ -10185,11 +10188,11 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10185
10188
|
placeholder: "Escribe tu mensaje",
|
10186
10189
|
required: "",
|
10187
10190
|
ref_key: "textAreaRef",
|
10188
|
-
ref:
|
10191
|
+
ref: U,
|
10189
10192
|
onInput: b[4] || (b[4] = () => he()),
|
10190
10193
|
onKeydown: b[5] || (b[5] = Et(
|
10191
10194
|
(S) => {
|
10192
|
-
!
|
10195
|
+
!Le(yn) && S.preventDefault();
|
10193
10196
|
},
|
10194
10197
|
["enter"]
|
10195
10198
|
)),
|
@@ -10228,17 +10231,17 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10228
10231
|
le(ru, Eo(Oo(Ee)), {
|
10229
10232
|
default: _o(() => [
|
10230
10233
|
o.value === 0 ? (x(), A("div", pu, [
|
10231
|
-
(x(!0), A(dt, null,
|
10232
|
-
key:
|
10234
|
+
(x(!0), A(dt, null, Dn(it.value, (S, q) => (x(), A("img", {
|
10235
|
+
key: q,
|
10233
10236
|
src: S.toString(),
|
10234
10237
|
alt: "Image",
|
10235
10238
|
width: "400"
|
10236
10239
|
}, null, 8, yu))), 128)),
|
10237
10240
|
v("form", {
|
10238
10241
|
class: "message-send",
|
10239
|
-
onSubmit: b[12] || (b[12] =
|
10242
|
+
onSubmit: b[12] || (b[12] = Fn(
|
10240
10243
|
(S) => {
|
10241
|
-
O(), Ee.modelValue = !1;
|
10244
|
+
O({ codigoTipoMensaje: Le(Me).IMAGEN }), Ee.modelValue = !1;
|
10242
10245
|
},
|
10243
10246
|
["prevent"]
|
10244
10247
|
))
|
@@ -10251,16 +10254,16 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10251
10254
|
class: "jl2-input-chat",
|
10252
10255
|
placeholder: "Escribe tu mensaje",
|
10253
10256
|
ref_key: "textAreaRef",
|
10254
|
-
ref:
|
10257
|
+
ref: U,
|
10255
10258
|
onInput: b[9] || (b[9] = () => he()),
|
10256
10259
|
onKeydown: b[10] || (b[10] = Et(
|
10257
10260
|
(S) => {
|
10258
|
-
!
|
10261
|
+
!Le(yn) && S.preventDefault();
|
10259
10262
|
},
|
10260
10263
|
["enter"]
|
10261
10264
|
)),
|
10262
10265
|
onKeyup: b[11] || (b[11] = Et((S) => {
|
10263
|
-
d(S,
|
10266
|
+
d(S, Le(Me).IMAGEN);
|
10264
10267
|
}, ["enter"]))
|
10265
10268
|
}, null, 544), [
|
10266
10269
|
[Ss, n.value]
|
@@ -10284,7 +10287,7 @@ const Xc = /* @__PURE__ */ ie(Gc, [["render", Qc]]), eu = {
|
|
10284
10287
|
}, 16)
|
10285
10288
|
], 64));
|
10286
10289
|
}
|
10287
|
-
}), Eu = /* @__PURE__ */ ie(ku, [["__scopeId", "data-v-
|
10290
|
+
}), Eu = /* @__PURE__ */ ie(ku, [["__scopeId", "data-v-b967b64a"]]), Ou = {}, _u = {
|
10288
10291
|
width: "87",
|
10289
10292
|
height: "87",
|
10290
10293
|
viewBox: "0 0 87 87",
|
@@ -10448,11 +10451,11 @@ const Pu = /* @__PURE__ */ ie(Bu, [["render", Uu]]), $u = {
|
|
10448
10451
|
r.value = !r.value;
|
10449
10452
|
}, l = t;
|
10450
10453
|
return (c, u) => (x(), A("div", {
|
10451
|
-
class:
|
10454
|
+
class: De(["widget-component widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
|
10452
10455
|
}, [
|
10453
10456
|
l.tokenAuth.length > 10 ? Zt((x(), A("div", $u, [
|
10454
10457
|
v("div", {
|
10455
|
-
class:
|
10458
|
+
class: De(["container-buttons-chat", { active: o.value }])
|
10456
10459
|
}, [
|
10457
10460
|
v("a", {
|
10458
10461
|
href: "javascript:;",
|
@@ -10476,7 +10479,7 @@ const Pu = /* @__PURE__ */ ie(Bu, [["render", Uu]]), $u = {
|
|
10476
10479
|
]),
|
10477
10480
|
v("a", {
|
10478
10481
|
href: "javascript:;",
|
10479
|
-
class:
|
10482
|
+
class: De(["button webchat", { disabled: l.tokenAuth.length < 10 }]),
|
10480
10483
|
title: "Debe estar autenticado",
|
10481
10484
|
onClick: u[2] || (u[2] = (f) => o.value && l.tokenAuth.length > 10 && a())
|
10482
10485
|
}, [
|
@@ -10495,7 +10498,7 @@ const Pu = /* @__PURE__ */ ie(Bu, [["render", Uu]]), $u = {
|
|
10495
10498
|
[ks, !r.value]
|
10496
10499
|
]) : Se("", !0),
|
10497
10500
|
Zt(v("div", Wu, [
|
10498
|
-
t.tokenAuth ? (x(),
|
10501
|
+
t.tokenAuth ? (x(), rs(Eu, {
|
10499
10502
|
key: 0,
|
10500
10503
|
visible: r.value,
|
10501
10504
|
titlePrincipal: t.titlePrincipal,
|