@talkjs/core 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/talkSession.cjs +1 -1
- package/dist/talkSession.js +118 -138
- package/package.json +1 -1
package/dist/talkSession.js
CHANGED
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
var _a, _e2, _t2
|
|
59
|
+
var _a, _e2, _t2;
|
|
60
60
|
function e(e2, s2) {
|
|
61
61
|
if (s2.ok) return s2.value.data;
|
|
62
62
|
if ("SESSION_DESTROYED" === s2.value) throw new Error(`${e2} failed because the session was destroyed`);
|
|
@@ -505,14 +505,14 @@ class x {
|
|
|
505
505
|
this.sent = true;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
class
|
|
508
|
+
class T extends x {
|
|
509
509
|
constructor(e2, t2) {
|
|
510
510
|
super(t2, () => {
|
|
511
511
|
this.sendSubscribe(), this.sendGet();
|
|
512
512
|
}), this.connection = e2, this.getCalls = [], this.subscribeCalls = [];
|
|
513
513
|
}
|
|
514
514
|
canPush(e2, t2) {
|
|
515
|
-
return
|
|
515
|
+
return T.isCorrectBatchTypeFor(e2, t2);
|
|
516
516
|
}
|
|
517
517
|
static isCorrectBatchTypeFor(e2, t2) {
|
|
518
518
|
return s(t2, ["users", "*"]) && ("GET" === e2 || "SUBSCRIBE" === e2);
|
|
@@ -538,12 +538,12 @@ class I extends x {
|
|
|
538
538
|
this.connection.call("SUBSCRIBE", ["users"], { ids: e2 }).then((e3) => this.subscribeCalls.forEach((t2) => t2.deferred.resolve(e3)));
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
class
|
|
541
|
+
class I extends x {
|
|
542
542
|
constructor(e2, t2, s2) {
|
|
543
543
|
super(s2, () => this.sendMutate()), this.conversationId = e2, this.connection = t2, this.calls = [];
|
|
544
544
|
}
|
|
545
545
|
canPush(e2, t2) {
|
|
546
|
-
return !!
|
|
546
|
+
return !!I.isCorrectBatchTypeFor(e2, t2) && t2[1] === this.conversationId;
|
|
547
547
|
}
|
|
548
548
|
static isCorrectBatchTypeFor(e2, t2) {
|
|
549
549
|
return s(t2, ["conversations", "*", "participants", "*"]) && ("PUT" === e2 || "POST" === e2 || "PATCH" === e2);
|
|
@@ -585,10 +585,10 @@ class D {
|
|
|
585
585
|
return this.connection.isConnected();
|
|
586
586
|
}
|
|
587
587
|
createEmptyBatchFor(e2, t2) {
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
588
|
+
if (T.isCorrectBatchTypeFor(e2, t2)) return new T(this.connection, () => this.pendingBatch = null);
|
|
589
|
+
if (I.isCorrectBatchTypeFor(e2, t2)) {
|
|
590
590
|
const e3 = t2[1];
|
|
591
|
-
return new
|
|
591
|
+
return new I(e3, this.connection, () => this.pendingBatch = null);
|
|
592
592
|
}
|
|
593
593
|
return null;
|
|
594
594
|
}
|
|
@@ -704,18 +704,18 @@ class N {
|
|
|
704
704
|
function _(e2) {
|
|
705
705
|
return Object.freeze(e2);
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function O(e2) {
|
|
708
708
|
return _(e2.map((e3) => function(e4) {
|
|
709
709
|
switch (e4.type) {
|
|
710
710
|
case "text":
|
|
711
|
-
return Object.freeze({ type: "text", children:
|
|
711
|
+
return Object.freeze({ type: "text", children: P(e4.children) });
|
|
712
712
|
case "file":
|
|
713
713
|
case "location":
|
|
714
714
|
return Object.freeze(e4);
|
|
715
715
|
}
|
|
716
716
|
}(e3)));
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function P(e2) {
|
|
719
719
|
return _(e2.map((e3) => function(e4) {
|
|
720
720
|
if ("string" == typeof e4) return e4;
|
|
721
721
|
switch (e4.type) {
|
|
@@ -727,7 +727,7 @@ function O(e2) {
|
|
|
727
727
|
case "link":
|
|
728
728
|
case "actionLink":
|
|
729
729
|
case "actionButton":
|
|
730
|
-
return Object.freeze(__spreadProps(__spreadValues({}, e4), { children:
|
|
730
|
+
return Object.freeze(__spreadProps(__spreadValues({}, e4), { children: P(e4.children) }));
|
|
731
731
|
case "mention":
|
|
732
732
|
case "autoLink":
|
|
733
733
|
case "codeSpan":
|
|
@@ -793,10 +793,10 @@ class H {
|
|
|
793
793
|
return (_a2 = this.pendingPointer) != null ? _a2 : this.getPointer;
|
|
794
794
|
}
|
|
795
795
|
canAppendState(e2) {
|
|
796
|
-
var _a2,
|
|
796
|
+
var _a2, _b;
|
|
797
797
|
const t2 = (_a2 = this.getPointer) == null ? void 0 : _a2.seq;
|
|
798
798
|
if (void 0 !== t2 && e2 <= t2) return false;
|
|
799
|
-
const s2 = (
|
|
799
|
+
const s2 = (_b = this.pendingPointer) == null ? void 0 : _b.seq;
|
|
800
800
|
return !(void 0 !== s2 && e2 < s2);
|
|
801
801
|
}
|
|
802
802
|
set(e2) {
|
|
@@ -1023,9 +1023,9 @@ function re(e2, t2) {
|
|
|
1023
1023
|
const s2 = e2.map((e3) => function(e4, t3) {
|
|
1024
1024
|
if ("text" === e4.type) return function(e5, t4) {
|
|
1025
1025
|
const s3 = function(e6) {
|
|
1026
|
-
var _a2,
|
|
1026
|
+
var _a2, _b, _c, _d, _e3, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
1027
1027
|
let t5 = "";
|
|
1028
|
-
return e6.t && (t5 = `(${e6.t("CONTACT_INFORMATION_HIDDEN")})`), { formattedLinks: (_a2 = e6.formattedLinks) != null ? _a2 : "plaintext", markup: (
|
|
1028
|
+
return e6.t && (t5 = `(${e6.t("CONTACT_INFORMATION_HIDDEN")})`), { formattedLinks: (_a2 = e6.formattedLinks) != null ? _a2 : "plaintext", markup: (_b = e6.markup) != null ? _b : false, useFallbackMentions: (_c = e6.useFallbackMentions) != null ? _c : false, sameTabLinkRules: (_d = e6.sameTabLinkRules) != null ? _d : [], enableEmojiImageFallback: (_e3 = e6.enableEmojiImageFallback) != null ? _e3 : false, highlight: (_f = e6.highlight) != null ? _f : [], contactInfo: (_g = e6.contactInfo) != null ? _g : false, suppression: (_h = e6.suppression) != null ? _h : new ne({ mode: "off" }), contactInfoHiddenText: (_k = (_j = e6.contactInfoHiddenText) != null ? _j : (_i = e6.suppression) == null ? void 0 : _i.replacement) != null ? _k : t5, customEmojiUrls: (_l = e6.customEmojiUrls) != null ? _l : {}, enableActions: (_m = e6.enableActions) != null ? _m : true };
|
|
1029
1029
|
}(t4);
|
|
1030
1030
|
return ie(e5, s3);
|
|
1031
1031
|
}(e4.children, t3);
|
|
@@ -1148,7 +1148,7 @@ class le extends G {
|
|
|
1148
1148
|
if (!e3.ok) return e3;
|
|
1149
1149
|
t2 = e3.value.data;
|
|
1150
1150
|
}
|
|
1151
|
-
return c({ lastChanged: e2, sender: null === t2.senderId ? null : this.realtimeClient.internalSubscribe(["users", t2.senderId]), data: { id: t2.id, type: t2.type, custom: _(t2.custom), createdAt: t2.createdAt, editedAt: t2.editedAt, referencedMessageId: t2.referencedMessageId, origin: t2.origin, plaintext: re(t2.content, {}), content:
|
|
1151
|
+
return c({ lastChanged: e2, sender: null === t2.senderId ? null : this.realtimeClient.internalSubscribe(["users", t2.senderId]), data: { id: t2.id, type: t2.type, custom: _(t2.custom), createdAt: t2.createdAt, editedAt: t2.editedAt, referencedMessageId: t2.referencedMessageId, origin: t2.origin, plaintext: re(t2.content, {}), content: O(t2.content), reactions: ue(t2.reactions) } });
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
refetch(e2) {
|
|
@@ -1170,8 +1170,8 @@ class le extends G {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
loadNested(e2, t2) {
|
|
1172
1172
|
return __async(this, null, function* () {
|
|
1173
|
-
var _a2,
|
|
1174
|
-
const s2 = yield (
|
|
1173
|
+
var _a2, _b, _c;
|
|
1174
|
+
const s2 = yield (_b = (_a2 = t2.sender) == null ? void 0 : _a2.store) == null ? void 0 : _b.getDeep(e2);
|
|
1175
1175
|
if (false === (s2 == null ? void 0 : s2.ok)) return s2;
|
|
1176
1176
|
if (null === t2.data) return c({ snapshot: null });
|
|
1177
1177
|
const n2 = s2 == null ? void 0 : s2.value;
|
|
@@ -1181,7 +1181,7 @@ class le extends G {
|
|
|
1181
1181
|
messageEdited(e2, t2) {
|
|
1182
1182
|
this.mutate(e2, (s2) => {
|
|
1183
1183
|
if (null === s2.value.data) return s2;
|
|
1184
|
-
const n2 = s2.value.data.content, r2 = (i2 = n2, void 0 === (a2 = t2.diff.content) ? i2 :
|
|
1184
|
+
const n2 = s2.value.data.content, r2 = (i2 = n2, void 0 === (a2 = t2.diff.content) ? i2 : O(a2));
|
|
1185
1185
|
var i2, a2;
|
|
1186
1186
|
const o2 = n2 === r2 ? s2.value.data.plaintext : re(r2, {});
|
|
1187
1187
|
return c({ lastChanged: e2, sender: s2.value.sender, data: { id: s2.value.data.id, type: s2.value.data.type, createdAt: s2.value.data.createdAt, origin: s2.value.data.origin, referencedMessageId: s2.value.data.referencedMessageId, editedAt: j(s2.value.data.editedAt, t2.diff.editedAt), custom: $(s2.value.data.custom, t2.diff.custom), plaintext: o2, content: r2, reactions: he(s2.value.data.reactions, t2.diff.reactions) } });
|
|
@@ -1192,7 +1192,7 @@ class le extends G {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
getFromCache() {
|
|
1194
1194
|
return __async(this, null, function* () {
|
|
1195
|
-
var
|
|
1195
|
+
var _b;
|
|
1196
1196
|
const e2 = yield this.mostRecentState.resultPromise;
|
|
1197
1197
|
if (!e2.ok) return l("NOT_IN_CACHE");
|
|
1198
1198
|
if (null === e2.value.data) {
|
|
@@ -1201,7 +1201,7 @@ class le extends G {
|
|
|
1201
1201
|
const _a2 = e2.value, { sender: t2 } = _a2, s2 = __objRest(_a2, ["sender"]), n2 = {};
|
|
1202
1202
|
return s2.data.reactions.forEach((e3) => {
|
|
1203
1203
|
n2[e3.emoji] = { count: e3.count, currentUserReacted: e3.currentUserReacted };
|
|
1204
|
-
}), c({ status: 200, data: __spreadProps(__spreadValues({}, s2.data), { senderId: (
|
|
1204
|
+
}), c({ status: 200, data: __spreadProps(__spreadValues({}, s2.data), { senderId: (_b = t2 == null ? void 0 : t2.store.userId) != null ? _b : null, reactions: n2 }) });
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
@@ -1245,14 +1245,14 @@ class de extends G {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
loadNested(e2, t2) {
|
|
1247
1247
|
return __async(this, null, function* () {
|
|
1248
|
-
var _a2,
|
|
1248
|
+
var _a2, _b, _c;
|
|
1249
1249
|
const s2 = yield t2.dataStore.getDeep(e2);
|
|
1250
1250
|
if (!s2.ok) return s2;
|
|
1251
1251
|
const n2 = s2.value;
|
|
1252
1252
|
if (null === n2.snapshot) return c({ snapshot: null });
|
|
1253
1253
|
const r2 = yield (_a2 = t2.referencedDataStore) == null ? void 0 : _a2.getDeep(e2);
|
|
1254
1254
|
if (r2 && !r2.ok) return r2;
|
|
1255
|
-
const i2 = (
|
|
1255
|
+
const i2 = (_b = r2 == null ? void 0 : r2.value) != null ? _b : null, a2 = (_c = i2 == null ? void 0 : i2.snapshot) != null ? _c : null;
|
|
1256
1256
|
return c({ snapshot: _({ id: n2.snapshot.id, type: n2.snapshot.type, sender: n2.snapshot.sender, custom: _(n2.snapshot.custom), createdAt: n2.snapshot.createdAt, editedAt: n2.snapshot.editedAt, referencedMessage: a2, origin: n2.snapshot.origin, plaintext: n2.snapshot.plaintext, content: n2.snapshot.content, reactions: n2.snapshot.reactions }) });
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
@@ -1410,7 +1410,7 @@ function fe(_0) {
|
|
|
1410
1410
|
});
|
|
1411
1411
|
}
|
|
1412
1412
|
function me({ seq: e2, prevState: t2, messages: s2, cursor: n2, conversationId: r2, realtimeClient: i2 }) {
|
|
1413
|
-
var _a2,
|
|
1413
|
+
var _a2, _b, _c, _d;
|
|
1414
1414
|
const a2 = t2 ? __spreadValues({}, t2.stores) : {};
|
|
1415
1415
|
for (const t3 of s2) if (void 0 === a2[t3.id]) {
|
|
1416
1416
|
const s3 = new le(e2, r2, t3, i2);
|
|
@@ -1426,7 +1426,7 @@ function me({ seq: e2, prevState: t2, messages: s2, cursor: n2, conversationId:
|
|
|
1426
1426
|
const o2 = t2 ? [...t2.inWindow] : [];
|
|
1427
1427
|
for (const t3 of s2) o2.push(new de(e2, t3.createdAt, a2[t3.id], t3.referencedMessageId ? a2[t3.referencedMessageId] : null));
|
|
1428
1428
|
o2.sort((e3, t3) => t3.createdAt - e3.createdAt);
|
|
1429
|
-
const u2 = (
|
|
1429
|
+
const u2 = (_b = (_a2 = t2 == null ? void 0 : t2.inWindow) == null ? void 0 : _a2[0]) == null ? void 0 : _b.messageId, l2 = (_c = o2 == null ? void 0 : o2[0]) == null ? void 0 : _c.messageId, h2 = u2 === l2 ? (_d = t2 == null ? void 0 : t2.lastMessageChanged) != null ? _d : e2 : e2;
|
|
1430
1430
|
if (null === n2) return c({ lastChanged: e2, lastMessageChanged: h2, stores: a2, inWindow: o2, windowEnd: null });
|
|
1431
1431
|
return c({ lastChanged: e2, lastMessageChanged: h2, stores: a2, inWindow: o2, windowEnd: { cursor: n2, oldestMessageTs: s2[s2.length - 1].createdAt } });
|
|
1432
1432
|
}
|
|
@@ -1555,8 +1555,8 @@ class ye extends G {
|
|
|
1555
1555
|
throw "Do not call refetch on participant data stores, it can return outdated data. Destroy and remake them instead";
|
|
1556
1556
|
}
|
|
1557
1557
|
equal(e2, t2) {
|
|
1558
|
-
var _a2,
|
|
1559
|
-
return ((
|
|
1558
|
+
var _a2, _b, _c, _d;
|
|
1559
|
+
return ((_b = (_a2 = e2.user) == null ? void 0 : _a2.store) == null ? void 0 : _b.userId) === ((_d = (_c = t2.user) == null ? void 0 : _c.store) == null ? void 0 : _d.userId) && W(e2.data, t2.data);
|
|
1560
1560
|
}
|
|
1561
1561
|
teardownNested(e2) {
|
|
1562
1562
|
var _a2;
|
|
@@ -1725,7 +1725,7 @@ class ke extends z {
|
|
|
1725
1725
|
fetchInitial(e2) {
|
|
1726
1726
|
return __async(this, null, function* () {
|
|
1727
1727
|
const t2 = yield xe({ realtimeClient: this.realtimeClient, count: 20 });
|
|
1728
|
-
return t2.ok ? null === t2.value.conversations ? c({ lastChanged: e2, stores: null, windowEnd: null }) :
|
|
1728
|
+
return t2.ok ? null === t2.value.conversations ? c({ lastChanged: e2, stores: null, windowEnd: null }) : Te({ seq: e2, conversations: t2.value.conversations, cursor: t2.value.nextCursor, getConvDataStore: this.getConvDataStore }) : t2;
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
1731
|
teardownNested(e2) {
|
|
@@ -1751,8 +1751,8 @@ class ke extends z {
|
|
|
1751
1751
|
if (n2) return n2;
|
|
1752
1752
|
const r2 = s2.filter((e3) => null !== e3.value.snapshot).map((e3) => e3.value.snapshot);
|
|
1753
1753
|
return r2.sort((e3, t3) => {
|
|
1754
|
-
var _a2,
|
|
1755
|
-
const s3 = (
|
|
1754
|
+
var _a2, _b, _c, _d;
|
|
1755
|
+
const s3 = (_b = (_a2 = e3.lastMessage) == null ? void 0 : _a2.createdAt) != null ? _b : e3.joinedAt;
|
|
1756
1756
|
return ((_d = (_c = t3.lastMessage) == null ? void 0 : _c.createdAt) != null ? _d : t3.joinedAt) - s3;
|
|
1757
1757
|
}), c({ snapshot: _(r2), loadedAll: null === t2.windowEnd });
|
|
1758
1758
|
});
|
|
@@ -1783,7 +1783,7 @@ class ke extends z {
|
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
loadedMore(e2, t2) {
|
|
1786
|
-
this.mutate(e2, (s2) => null === s2.value.windowEnd ? s2 : t2.data.ok ? null === t2.data.value.conversations ? (console.warn("[TalkJS] When loading more conversations, the user stopped existing, which should be impossible."), s2) :
|
|
1786
|
+
this.mutate(e2, (s2) => null === s2.value.windowEnd ? s2 : t2.data.ok ? null === t2.data.value.conversations ? (console.warn("[TalkJS] When loading more conversations, the user stopped existing, which should be impossible."), s2) : Te({ seq: e2, prevStores: s2.value.stores, conversations: t2.data.value.conversations, cursor: t2.data.value.nextCursor, getConvDataStore: this.getConvDataStore }) : t2.data);
|
|
1787
1787
|
}
|
|
1788
1788
|
userCreated(e2, t2) {
|
|
1789
1789
|
this.mutate(e2, (e3) => null !== e3.value.stores ? e3 : c({ lastChanged: e3.value.lastChanged, stores: {}, windowEnd: null }));
|
|
@@ -1832,13 +1832,13 @@ function xe(_0) {
|
|
|
1832
1832
|
return r2.ok || "server" !== r2.where || 404 !== r2.value.status || "USER_NOT_FOUND" !== r2.value.errorCode ? r2 : c({ conversations: null, nextCursor: null });
|
|
1833
1833
|
});
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Te({ seq: e2, prevStores: t2, conversations: s2, cursor: n2, getConvDataStore: r2 }) {
|
|
1836
1836
|
const i2 = t2 ? __spreadValues({}, t2) : {};
|
|
1837
1837
|
for (const e3 of s2) void 0 === i2[e3.id] && (i2[e3.id] = r2(e3));
|
|
1838
1838
|
if (null === n2) return c({ lastChanged: e2, stores: i2, windowEnd: null });
|
|
1839
1839
|
return c({ lastChanged: e2, stores: i2, windowEnd: { cursor: n2, oldestMessageTs: Math.min(...s2.map((e3) => e3.lastMessageAt)) } });
|
|
1840
1840
|
}
|
|
1841
|
-
class
|
|
1841
|
+
class Ie extends z {
|
|
1842
1842
|
constructor(e2, t2, s2, n2, r2) {
|
|
1843
1843
|
super(e2, n2, r2), this.conversation = t2, this.realtimeClient = s2, this.unsubscribeDebounceMs = 5e3;
|
|
1844
1844
|
}
|
|
@@ -1993,10 +1993,10 @@ class Me {
|
|
|
1993
1993
|
}));
|
|
1994
1994
|
}
|
|
1995
1995
|
handlePublish(e2, t2) {
|
|
1996
|
-
var _a2,
|
|
1996
|
+
var _a2, _b, _c, _d, _e3, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t3, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
|
1997
1997
|
switch (t2.type) {
|
|
1998
1998
|
case "user.created":
|
|
1999
|
-
return (_a2 = this.storeMap[`/users/${t2.userId}`]) == null ? void 0 : _a2.userCreated(e2, t2), (
|
|
1999
|
+
return (_a2 = this.storeMap[`/users/${t2.userId}`]) == null ? void 0 : _a2.userCreated(e2, t2), (_b = this.storeMap["/me/conversations"]) == null ? void 0 : _b.userCreated(e2, t2), void ((_c = this.storeMap[`/users/${t2.userId}/online`]) == null ? void 0 : _c.userCreated(e2, t2));
|
|
2000
2000
|
case "user.edited":
|
|
2001
2001
|
return void ((_d = this.storeMap[`/users/${t2.userId}`]) == null ? void 0 : _d.userEdited(e2, t2));
|
|
2002
2002
|
case "side.created":
|
|
@@ -2012,7 +2012,7 @@ class Me {
|
|
|
2012
2012
|
case "message.edited":
|
|
2013
2013
|
return void ((_r = this.storeMap[`/me/conversations/${t2.conversationId}/messages`]) == null ? void 0 : _r.messageEdited(e2, t2));
|
|
2014
2014
|
case "message.deleted":
|
|
2015
|
-
return void ((
|
|
2015
|
+
return void ((_s = this.storeMap[`/me/conversations/${t2.conversationId}/messages`]) == null ? void 0 : _s.messageDeleted(e2, t2));
|
|
2016
2016
|
case "typing.available":
|
|
2017
2017
|
return void ((_t3 = this.storeMap[`/me/conversations/${t2.conversationId}/typing`]) == null ? void 0 : _t3.typingAvailable(e2, t2));
|
|
2018
2018
|
case "typing.changed":
|
|
@@ -2142,7 +2142,7 @@ class Me {
|
|
|
2142
2142
|
const e3 = this.convDataStores[t2];
|
|
2143
2143
|
return { store: e3, unsubscribe: e3.registerInternalSubscription() };
|
|
2144
2144
|
}
|
|
2145
|
-
const s2 = new
|
|
2145
|
+
const s2 = new Ie(this.virtualSeq, e2, this.realtimeClient, this.emitMutex, { onTeardown: () => {
|
|
2146
2146
|
delete this.convDataStores[t2];
|
|
2147
2147
|
} });
|
|
2148
2148
|
return this.convDataStores[t2] = s2, { store: s2, unsubscribe: s2.registerInternalSubscription() };
|
|
@@ -2261,7 +2261,7 @@ class _e {
|
|
|
2261
2261
|
return this._realtimeClient.subscribe(["users", this.brandedId, "online"], e2);
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
|
-
class
|
|
2264
|
+
class Oe {
|
|
2265
2265
|
constructor(e2, t2, s2) {
|
|
2266
2266
|
this.userId = e2, this.conversationId = t2, this._realtimeClient = s2;
|
|
2267
2267
|
}
|
|
@@ -2304,7 +2304,7 @@ class Pe {
|
|
|
2304
2304
|
});
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function Pe(e2) {
|
|
2308
2308
|
const t2 = "-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";
|
|
2309
2309
|
let s2 = 0;
|
|
2310
2310
|
const n2 = [], r2 = e2 === s2;
|
|
@@ -2699,10 +2699,10 @@ var tt, st = function() {
|
|
|
2699
2699
|
return "(?=(" + Ct + "))\\" + e2;
|
|
2700
2700
|
}, Et = function(e2) {
|
|
2701
2701
|
return "(?:" + At(e2) + "(?:\\." + At(e2 + 1) + "){0,126}|" + yt + ")";
|
|
2702
|
-
}, kt = new RegExp("[" + bt + "]"), xt = /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/, It = new RegExp("[" + bt + "!#$%&'*+/=?^_`{|}~-]"), Tt = new RegExp("^" + xt.source + "$"), Dt = function(e2) {
|
|
2702
|
+
}, kt = new RegExp("[" + bt + "]"), xt = /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/, Tt = new RegExp("[" + bt + "!#$%&'*+/=?^_`{|}~-]"), It = new RegExp("^" + xt.source + "$"), Dt = function(e2) {
|
|
2703
2703
|
function t2() {
|
|
2704
2704
|
var t3 = null !== e2 && e2.apply(this, arguments) || this;
|
|
2705
|
-
return t3.localPartCharRegex =
|
|
2705
|
+
return t3.localPartCharRegex = Tt, t3.strictTldRegex = It, t3;
|
|
2706
2706
|
}
|
|
2707
2707
|
return et(t2, e2), t2.prototype.parseMatches = function(e3) {
|
|
2708
2708
|
for (var t3 = this.tagBuilder, s2 = this.localPartCharRegex, n2 = this.strictTldRegex, r2 = [], i2 = e3.length, a2 = new St(), o2 = { m: "a", a: "i", i: "l", l: "t", t: "o", o: ":" }, u2 = 0, c2 = 0, l2 = a2; u2 < i2; ) {
|
|
@@ -2849,7 +2849,7 @@ var tt, st = function() {
|
|
|
2849
2849
|
var n2 = new RegExp("^((.?//)?[-." + bt + "]*[-" + bt + "]\\.[-" + bt + "]+)").exec(e3);
|
|
2850
2850
|
return null === n2 ? -1 : (s2 += n2[1].length, e3 = e3.slice(n2[1].length), /^[^-.A-Za-z0-9:\/?#]/.test(e3) ? s2 : -1);
|
|
2851
2851
|
}, t2;
|
|
2852
|
-
}(ut), Nt = new RegExp("#[_" + bt + "]{1,139}(?![_" + bt + "])", "g"), _t = new RegExp("[^" + bt + "]"),
|
|
2852
|
+
}(ut), Nt = new RegExp("#[_" + bt + "]{1,139}(?![_" + bt + "])", "g"), _t = new RegExp("[^" + bt + "]"), Ot = function(e2) {
|
|
2853
2853
|
function t2(t3) {
|
|
2854
2854
|
var s2 = e2.call(this, t3) || this;
|
|
2855
2855
|
return s2.serviceName = "twitter", s2.matcherRegex = Nt, s2.nonWordCharRegex = _t, s2.serviceName = t3.serviceName, s2;
|
|
@@ -2864,10 +2864,10 @@ var tt, st = function() {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
return a2;
|
|
2866
2866
|
}, t2;
|
|
2867
|
-
}(ut),
|
|
2867
|
+
}(ut), Pt = new RegExp(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source + "|" + /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source, "g"), jt = function(e2) {
|
|
2868
2868
|
function t2() {
|
|
2869
2869
|
var t3 = null !== e2 && e2.apply(this, arguments) || this;
|
|
2870
|
-
return t3.matcherRegex =
|
|
2870
|
+
return t3.matcherRegex = Pt, t3;
|
|
2871
2871
|
}
|
|
2872
2872
|
return et(t2, e2), t2.prototype.parseMatches = function(e3) {
|
|
2873
2873
|
for (var t3, s2 = this.matcherRegex, n2 = this.tagBuilder, r2 = []; null !== (t3 = s2.exec(e3)); ) {
|
|
@@ -2934,10 +2934,10 @@ function Lt(e2, t2) {
|
|
|
2934
2934
|
x2(f2);
|
|
2935
2935
|
break;
|
|
2936
2936
|
case 11:
|
|
2937
|
-
|
|
2937
|
+
T2(f2);
|
|
2938
2938
|
break;
|
|
2939
2939
|
case 12:
|
|
2940
|
-
|
|
2940
|
+
I2(f2);
|
|
2941
2941
|
break;
|
|
2942
2942
|
case 13:
|
|
2943
2943
|
D2();
|
|
@@ -2969,28 +2969,28 @@ function Lt(e2, t2) {
|
|
|
2969
2969
|
c2++;
|
|
2970
2970
|
}
|
|
2971
2971
|
function m2(e3) {
|
|
2972
|
-
"<" === e3 &&
|
|
2972
|
+
"<" === e3 && P2();
|
|
2973
2973
|
}
|
|
2974
2974
|
function g2(e3) {
|
|
2975
|
-
"!" === e3 ? h2 = 13 : "/" === e3 ? (h2 = 2, p2 = new Gt(st(st({}, p2), { isClosing: true }))) : "<" === e3 ?
|
|
2975
|
+
"!" === e3 ? h2 = 13 : "/" === e3 ? (h2 = 2, p2 = new Gt(st(st({}, p2), { isClosing: true }))) : "<" === e3 ? P2() : ct.test(e3) ? (h2 = 3, p2 = new Gt(st(st({}, p2), { isOpening: true }))) : (h2 = 0, p2 = u2);
|
|
2976
2976
|
}
|
|
2977
2977
|
function v2(e3) {
|
|
2978
|
-
dt.test(e3) ? (p2 = new Gt(st(st({}, p2), { name: U2() })), h2 = 4) : "<" === e3 ?
|
|
2978
|
+
dt.test(e3) ? (p2 = new Gt(st(st({}, p2), { name: U2() })), h2 = 4) : "<" === e3 ? P2() : "/" === e3 ? (p2 = new Gt(st(st({}, p2), { name: U2() })), h2 = 12) : ">" === e3 ? (p2 = new Gt(st(st({}, p2), { name: U2() })), j2()) : ct.test(e3) || lt.test(e3) || ":" === e3 || O2();
|
|
2979
2979
|
}
|
|
2980
2980
|
function w2(e3) {
|
|
2981
|
-
">" === e3 ?
|
|
2981
|
+
">" === e3 ? O2() : ct.test(e3) ? h2 = 3 : O2();
|
|
2982
2982
|
}
|
|
2983
2983
|
function b2(e3) {
|
|
2984
|
-
dt.test(e3) || ("/" === e3 ? h2 = 12 : ">" === e3 ? j2() : "<" === e3 ?
|
|
2984
|
+
dt.test(e3) || ("/" === e3 ? h2 = 12 : ">" === e3 ? j2() : "<" === e3 ? P2() : "=" === e3 || pt.test(e3) || ft.test(e3) ? O2() : h2 = 5);
|
|
2985
2985
|
}
|
|
2986
2986
|
function y2(e3) {
|
|
2987
|
-
dt.test(e3) ? h2 = 6 : "/" === e3 ? h2 = 12 : "=" === e3 ? h2 = 7 : ">" === e3 ? j2() : "<" === e3 ?
|
|
2987
|
+
dt.test(e3) ? h2 = 6 : "/" === e3 ? h2 = 12 : "=" === e3 ? h2 = 7 : ">" === e3 ? j2() : "<" === e3 ? P2() : pt.test(e3) && O2();
|
|
2988
2988
|
}
|
|
2989
2989
|
function C2(e3) {
|
|
2990
|
-
dt.test(e3) || ("/" === e3 ? h2 = 12 : "=" === e3 ? h2 = 7 : ">" === e3 ? j2() : "<" === e3 ?
|
|
2990
|
+
dt.test(e3) || ("/" === e3 ? h2 = 12 : "=" === e3 ? h2 = 7 : ">" === e3 ? j2() : "<" === e3 ? P2() : pt.test(e3) ? O2() : h2 = 5);
|
|
2991
2991
|
}
|
|
2992
2992
|
function A2(e3) {
|
|
2993
|
-
dt.test(e3) || ('"' === e3 ? h2 = 8 : "'" === e3 ? h2 = 9 : /[>=`]/.test(e3) ?
|
|
2993
|
+
dt.test(e3) || ('"' === e3 ? h2 = 8 : "'" === e3 ? h2 = 9 : /[>=`]/.test(e3) ? O2() : "<" === e3 ? P2() : h2 = 10);
|
|
2994
2994
|
}
|
|
2995
2995
|
function E2(e3) {
|
|
2996
2996
|
'"' === e3 && (h2 = 11);
|
|
@@ -2999,22 +2999,22 @@ function Lt(e2, t2) {
|
|
|
2999
2999
|
"'" === e3 && (h2 = 11);
|
|
3000
3000
|
}
|
|
3001
3001
|
function x2(e3) {
|
|
3002
|
-
dt.test(e3) ? h2 = 4 : ">" === e3 ? j2() : "<" === e3 &&
|
|
3003
|
-
}
|
|
3004
|
-
function I2(e3) {
|
|
3005
|
-
dt.test(e3) ? h2 = 4 : "/" === e3 ? h2 = 12 : ">" === e3 ? j2() : "<" === e3 ? O2() : (h2 = 4, c2--);
|
|
3002
|
+
dt.test(e3) ? h2 = 4 : ">" === e3 ? j2() : "<" === e3 && P2();
|
|
3006
3003
|
}
|
|
3007
3004
|
function T2(e3) {
|
|
3005
|
+
dt.test(e3) ? h2 = 4 : "/" === e3 ? h2 = 12 : ">" === e3 ? j2() : "<" === e3 ? P2() : (h2 = 4, c2--);
|
|
3006
|
+
}
|
|
3007
|
+
function I2(e3) {
|
|
3008
3008
|
">" === e3 ? (p2 = new Gt(st(st({}, p2), { isClosing: true })), j2()) : h2 = 4;
|
|
3009
3009
|
}
|
|
3010
3010
|
function D2(t3) {
|
|
3011
|
-
"--" === e2.substr(c2, 2) ? (c2 += 2, p2 = new Gt(st(st({}, p2), { type: "comment" })), h2 = 14) : "DOCTYPE" === e2.substr(c2, 7).toUpperCase() ? (c2 += 7, p2 = new Gt(st(st({}, p2), { type: "doctype" })), h2 = 20) :
|
|
3011
|
+
"--" === e2.substr(c2, 2) ? (c2 += 2, p2 = new Gt(st(st({}, p2), { type: "comment" })), h2 = 14) : "DOCTYPE" === e2.substr(c2, 7).toUpperCase() ? (c2 += 7, p2 = new Gt(st(st({}, p2), { type: "doctype" })), h2 = 20) : O2();
|
|
3012
3012
|
}
|
|
3013
3013
|
function S2(e3) {
|
|
3014
|
-
"-" === e3 ? h2 = 15 : ">" === e3 ?
|
|
3014
|
+
"-" === e3 ? h2 = 15 : ">" === e3 ? O2() : h2 = 16;
|
|
3015
3015
|
}
|
|
3016
3016
|
function M2(e3) {
|
|
3017
|
-
"-" === e3 ? h2 = 18 : ">" === e3 ?
|
|
3017
|
+
"-" === e3 ? h2 = 18 : ">" === e3 ? O2() : h2 = 16;
|
|
3018
3018
|
}
|
|
3019
3019
|
function F2(e3) {
|
|
3020
3020
|
"-" === e3 && (h2 = 17);
|
|
@@ -3029,17 +3029,17 @@ function Lt(e2, t2) {
|
|
|
3029
3029
|
"-" === e3 ? h2 = 17 : ">" === e3 ? j2() : h2 = 16;
|
|
3030
3030
|
}
|
|
3031
3031
|
function _2(e3) {
|
|
3032
|
-
">" === e3 ? j2() : "<" === e3 &&
|
|
3032
|
+
">" === e3 ? j2() : "<" === e3 && P2();
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function O2() {
|
|
3035
3035
|
h2 = 0, p2 = u2;
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function P2() {
|
|
3038
3038
|
h2 = 1, p2 = new Gt({ idx: c2 });
|
|
3039
3039
|
}
|
|
3040
3040
|
function j2() {
|
|
3041
3041
|
var t3 = e2.slice(d2, p2.idx);
|
|
3042
|
-
t3 && i2(t3, d2), "comment" === p2.type ? a2(p2.idx) : "doctype" === p2.type ? o2(p2.idx) : (p2.isOpening && n2(p2.name, p2.idx), p2.isClosing && r2(p2.name, p2.idx)),
|
|
3042
|
+
t3 && i2(t3, d2), "comment" === p2.type ? a2(p2.idx) : "doctype" === p2.type ? o2(p2.idx) : (p2.isOpening && n2(p2.name, p2.idx), p2.isClosing && r2(p2.name, p2.idx)), O2(), d2 = c2 + 1;
|
|
3043
3043
|
}
|
|
3044
3044
|
function U2() {
|
|
3045
3045
|
var t3 = p2.idx + (p2.isClosing ? 2 : 1);
|
|
@@ -3147,12 +3147,12 @@ var Gt = function(e2) {
|
|
|
3147
3147
|
return this.replaceFn && (t2 = this.replaceFn.call(this.context, e3)), "string" == typeof t2 ? t2 : false === t2 ? e3.getMatchedText() : t2 instanceof Ve ? t2.toAnchorString() : e3.buildTag().toAnchorString();
|
|
3148
3148
|
}, e2.prototype.getMatchers = function() {
|
|
3149
3149
|
if (this.matchers) return this.matchers;
|
|
3150
|
-
var e3 = this.getTagBuilder(), t2 = [new
|
|
3150
|
+
var e3 = this.getTagBuilder(), t2 = [new Ot({ tagBuilder: e3, serviceName: this.hashtag }), new Dt({ tagBuilder: e3 }), new jt({ tagBuilder: e3 }), new Ht({ tagBuilder: e3, serviceName: this.mention }), new Rt({ tagBuilder: e3, stripPrefix: this.stripPrefix, stripTrailingSlash: this.stripTrailingSlash, decodePercentEncoding: this.decodePercentEncoding })];
|
|
3151
3151
|
return this.matchers = t2;
|
|
3152
3152
|
}, e2.prototype.getTagBuilder = function() {
|
|
3153
3153
|
var e3 = this.tagBuilder;
|
|
3154
3154
|
return e3 || (e3 = this.tagBuilder = new Ze({ newWindow: this.newWindow, truncate: this.truncate, className: this.className })), e3;
|
|
3155
|
-
}, e2.version = "3.14.3", e2.AnchorTagBuilder = Ze, e2.HtmlTag = Ve, e2.matcher = { Email: Dt, Hashtag:
|
|
3155
|
+
}, e2.version = "3.14.3", e2.AnchorTagBuilder = Ze, e2.HtmlTag = Ve, e2.matcher = { Email: Dt, Hashtag: Ot, Matcher: ut, Mention: Ht, Phone: jt, Url: Rt }, e2.match = { Email: nt, Hashtag: rt, Match: Ke, Mention: it, Phone: at, Url: ot }, e2;
|
|
3156
3156
|
}();
|
|
3157
3157
|
function Jt(e2, t2 = e2) {
|
|
3158
3158
|
return { type: "autolink", url: e2, text: t2 };
|
|
@@ -3326,9 +3326,9 @@ class gs {
|
|
|
3326
3326
|
participant(e2) {
|
|
3327
3327
|
if ("string" == typeof e2) {
|
|
3328
3328
|
if ("" === e2) throw new Error(`Creating ParticipantRef failed because ID "${e2}" is an empty string`);
|
|
3329
|
-
return new
|
|
3329
|
+
return new Oe(e2, this.id, this._realtimeClient);
|
|
3330
3330
|
}
|
|
3331
|
-
if ("brandedId" in e2) return new
|
|
3331
|
+
if ("brandedId" in e2) return new Oe(e2.id, this.id, this._realtimeClient);
|
|
3332
3332
|
throw new Error(`Creating ParticipantRef failed because user "${e2}" is not a string or a UserRef`);
|
|
3333
3333
|
}
|
|
3334
3334
|
message(e2) {
|
|
@@ -3385,7 +3385,7 @@ class gs {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
send(t2) {
|
|
3387
3387
|
return __async(this, null, function* () {
|
|
3388
|
-
const s2 = { content: vs(t2), referencedMessageId: ws(t2), custom: "string" == typeof t2 ? void 0 : t2.custom, idempotencyKey:
|
|
3388
|
+
const s2 = { content: vs(t2), referencedMessageId: ws(t2), custom: "string" == typeof t2 ? void 0 : t2.custom, idempotencyKey: Pe((/* @__PURE__ */ new Date()).getTime()) }, n2 = yield this._realtimeClient.call("POST", ["conversations", this.brandedId, "messages"], s2), r2 = e("Send message to conversation " + this.id, n2);
|
|
3389
3389
|
return new fs(r2.id, this.brandedId, this._realtimeClient);
|
|
3390
3390
|
});
|
|
3391
3391
|
}
|
|
@@ -3452,65 +3452,39 @@ class bs {
|
|
|
3452
3452
|
return e2.includes("localhost") || e2.includes("localtest.me") || /^\d+\.\d+\.\d+\.\d+(:\d+)?$/.test(e2) ? new bs(`ws://${e2}/public_api/v1`, `http://${e2}/api/v0`, `http://${e2}/public_api/v1`) : new bs(`wss://${e2}/public_api/v1`, `https://${e2}/api/v0`, `https://${e2}/public_api/v1`);
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
|
-
function ys({ method: e2, url: t2, data: s2, options: n2, attempts: r2, shouldRetry: i2, authProvider: o2 }) {
|
|
3455
|
+
function ys({ method: e2, url: t2, data: s2, options: n2, attempts: r2, shouldRetry: i2, authProvider: o2, errorTracker: u2 }) {
|
|
3456
3456
|
var _a2;
|
|
3457
3457
|
(!r2 || r2 <= 0) && (r2 = 1);
|
|
3458
|
-
const
|
|
3459
|
-
s2 instanceof FormData || (
|
|
3458
|
+
const c2 = { "x-talkjs-client-build": "jssdk-dev", "x-talkjs-client-date": "2025-11-04T15:29:42.017Z" };
|
|
3459
|
+
s2 instanceof FormData || (c2["Content-Type"] = (_a2 = n2 == null ? void 0 : n2.contentType) != null ? _a2 : "application/json");
|
|
3460
3460
|
return a(r2, () => __async(this, null, function* () {
|
|
3461
3461
|
if (o2) {
|
|
3462
3462
|
const e3 = yield o2.getToken();
|
|
3463
|
-
|
|
3463
|
+
c2.Authorization = `Bearer ${e3}`;
|
|
3464
3464
|
}
|
|
3465
|
-
return fetch(t2, { method: e2, headers:
|
|
3465
|
+
return fetch(t2, { method: e2, headers: c2, body: s2 }).then((e3) => {
|
|
3466
3466
|
if (e3.ok) return e3;
|
|
3467
3467
|
throw e3;
|
|
3468
3468
|
});
|
|
3469
3469
|
}), { initialDelay: 0.2, log: void 0, shouldRetry: (s3) => __async(this, null, function* () {
|
|
3470
|
-
return o2 && 401 === s3.status ? (
|
|
3470
|
+
return o2 && 401 === s3.status ? (u2 == null ? void 0 : u2.log(`401 error from ${e2} ${t2}, ${yield o2.getToken()}`), o2.refreshToken(), true) : i2 ? i2(s3) : !("status" in s3 && s3.status >= 400 && s3.status < 500);
|
|
3471
3471
|
}) }).catch((s3) => {
|
|
3472
3472
|
if (Math.random() < 0.1 && !t2.toString().startsWith("https://capture.trackjs.com")) {
|
|
3473
3473
|
const n3 = `Network Error for ${e2} ${t2}`;
|
|
3474
3474
|
if ("undefined" != typeof window) if (s3 instanceof Response) {
|
|
3475
|
-
s3.clone().text().then((e3) =>
|
|
3476
|
-
} else
|
|
3475
|
+
s3.clone().text().then((e3) => u2 == null ? void 0 : u2.log(`${n3} ${s3.status} ${e3} (10% logged)`));
|
|
3476
|
+
} else u2 == null ? void 0 : u2.log(`${n3} ${s3} (10% logged)`);
|
|
3477
3477
|
console.error("[TalkJS]", n3);
|
|
3478
3478
|
}
|
|
3479
3479
|
throw s3;
|
|
3480
3480
|
});
|
|
3481
3481
|
}
|
|
3482
|
-
|
|
3483
|
-
if ("undefined" == typeof window) return { cdnHost: "test-hostname", appHost: "test-hostname", appProtocol: "http:", appWsProtocol: "ws:" };
|
|
3484
|
-
if (!globalThis.document) return { appHost: "app.talkjs.com", appProtocol: "http:", appWsProtocol: "ws:" };
|
|
3485
|
-
const e2 = function() {
|
|
3486
|
-
if (document.currentScript) return document.currentScript.src;
|
|
3487
|
-
try {
|
|
3488
|
-
throw new Error();
|
|
3489
|
-
} catch (e3) {
|
|
3490
|
-
const t3 = e3.stack.match(/https?:\/\/.*\.(js|jsx|ts|tsx)/);
|
|
3491
|
-
return t3 ? t3[0] : "";
|
|
3492
|
-
}
|
|
3493
|
-
}(), t2 = new URL(e2), s2 = t2.host, n2 = function(e3) {
|
|
3494
|
-
if (e3.match(/^cdn[.-]/)) return e3.replace(/^cdn/, "app");
|
|
3495
|
-
if ("talkjs.com" === e3) return "app.talkjs.com";
|
|
3496
|
-
return e3;
|
|
3497
|
-
}(s2), r2 = function(e3) {
|
|
3498
|
-
if (e3.match(/^app[.-]/)) return e3.replace(/^app/, "api");
|
|
3499
|
-
return e3 + "/public_api";
|
|
3500
|
-
}(n2), i2 = function(e3) {
|
|
3501
|
-
if (e3.match(/^app[.-]/)) return e3.replace(/^app/, "realtime");
|
|
3502
|
-
return e3 + "/public_api";
|
|
3503
|
-
}(n2), a2 = t2.protocol;
|
|
3504
|
-
return { cdnHost: s2, appHost: n2, restHost: r2, realtimeHost: i2, appProtocol: a2, appWsProtocol: "https:" === a2 ? "wss:" : "ws:" };
|
|
3505
|
-
}();
|
|
3506
|
-
const Ts = As.startsWith("app.talkjs.com");
|
|
3507
|
-
const Ds = "undefined" == typeof window ? { log: (e2) => Promise.resolve(), setData: (e2) => {
|
|
3508
|
-
} } : new (_b = class {
|
|
3482
|
+
class Cs {
|
|
3509
3483
|
constructor(e2) {
|
|
3510
3484
|
__privateAdd(this, _e2);
|
|
3511
3485
|
__privateAdd(this, _t2);
|
|
3512
|
-
var _a2,
|
|
3513
|
-
this._timeCreated = Date.now(),
|
|
3486
|
+
var _a2, _b, _c, _d;
|
|
3487
|
+
this._timeCreated = Date.now(), __privateSet(this, _e2, (_b = (_a2 = globalThis.document) == null ? void 0 : _a2.referrer) != null ? _b : ""), __privateSet(this, _t2, ((_d = (_c = globalThis.location) == null ? void 0 : _c.href) != null ? _d : globalThis.HermesInternal) ? "React Native Hermes" : ""), this._trackJSData = { customer: { application: "", correlationId: "", sessionId: "", token: "", userId: "", version: "dev-2025-11-04T15:29:42.017Z" }, entry: "direct", environment: { age: Date.now() - this._timeCreated, dependencies: {}, originalUrl: __privateGet(this, _t2), referrer: __privateGet(this, _e2), userAgent: window.navigator.userAgent }, metadata: [], nav: [], network: [], url: __privateGet(this, _t2), stack: "", timestamp: (/* @__PURE__ */ new Date()).toISOString(), version: "dev-2025-11-04T15:29:42.017Z", throttled: 0 }, this._url = `https://capture.trackjs.com/capture?token=${e2}`, this._trackJSData.customer.token = e2;
|
|
3514
3488
|
}
|
|
3515
3489
|
setData({ appId: e2, meId: t2, sessionId: s2 }) {
|
|
3516
3490
|
this._trackJSData.customer.userId = e2, this._trackJSData.customer.sessionId = `${e2}/${t2}`, this._trackJSData.customer.correlationId = s2;
|
|
@@ -3518,7 +3492,7 @@ const Ds = "undefined" == typeof window ? { log: (e2) => Promise.resolve(), setD
|
|
|
3518
3492
|
log(e2) {
|
|
3519
3493
|
return __async(this, null, function* () {
|
|
3520
3494
|
try {
|
|
3521
|
-
|
|
3495
|
+
0;
|
|
3522
3496
|
const t2 = __spreadProps(__spreadValues({}, this._trackJSData), { message: e2 });
|
|
3523
3497
|
yield ys({ method: "POST", url: this._url, data: JSON.stringify(t2), options: { contentType: "text/plain" } });
|
|
3524
3498
|
} catch (e3) {
|
|
@@ -3526,8 +3500,12 @@ const Ds = "undefined" == typeof window ? { log: (e2) => Promise.resolve(), setD
|
|
|
3526
3500
|
}
|
|
3527
3501
|
});
|
|
3528
3502
|
}
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3503
|
+
}
|
|
3504
|
+
_e2 = new WeakMap();
|
|
3505
|
+
_t2 = new WeakMap();
|
|
3506
|
+
const As = { log: (e2) => Promise.resolve(), setData: (e2) => {
|
|
3507
|
+
} };
|
|
3508
|
+
class Es {
|
|
3531
3509
|
constructor(e2, t2 = {}) {
|
|
3532
3510
|
this._onSubscription = t2, this._handlers = {};
|
|
3533
3511
|
for (const t3 in e2) Object.hasOwnProperty.call(e2, t3) && (this._handlers[t3] = []);
|
|
@@ -3553,9 +3531,9 @@ class Ss {
|
|
|
3553
3531
|
return e2 in this._handlers;
|
|
3554
3532
|
}
|
|
3555
3533
|
on(e2, t2) {
|
|
3556
|
-
var _a2,
|
|
3534
|
+
var _a2, _b;
|
|
3557
3535
|
if (!this.supports(e2)) throw new Error(`Unknown event type '${String(e2)}'`);
|
|
3558
|
-
(
|
|
3536
|
+
(_b = (_a2 = this._onSubscription)[e2]) == null ? void 0 : _b.call(_a2), this._handlers[e2].push(t2);
|
|
3559
3537
|
}
|
|
3560
3538
|
off(e2, t2) {
|
|
3561
3539
|
if (!Object.hasOwnProperty.call(this._handlers, e2)) throw new Error(`Unknown event type '${String(e2)}'`);
|
|
@@ -3572,12 +3550,14 @@ class Ss {
|
|
|
3572
3550
|
return this.on(e2, t2), { unsubscribe: () => this.off(e2, t2) };
|
|
3573
3551
|
}
|
|
3574
3552
|
}
|
|
3575
|
-
class
|
|
3553
|
+
class ks {
|
|
3576
3554
|
constructor(e2, t2, s2, n2, r2, i2) {
|
|
3577
|
-
|
|
3555
|
+
this.appId = t2, this.userId = s2, this.tokenFetcher = r2, this.usingBokens = false, this.requestInProgress = false, this.eventEmitter = new Es({ tokenChanged(e3) {
|
|
3578
3556
|
}, tokenRefreshFailed(e3) {
|
|
3579
3557
|
}, tokenAccepted(e3) {
|
|
3580
|
-
} }), this.sessionExpiryWarningTimeoutId = void 0
|
|
3558
|
+
} }), this.sessionExpiryWarningTimeoutId = void 0;
|
|
3559
|
+
const a2 = "undefined" != typeof window && e2.restApiHttpUrl.includes("api.talkjs.com");
|
|
3560
|
+
if (this.errorTracker = a2 ? new Cs("970cd0be0fb74630b75c8451051299dc") : As, i2 && (n2 || r2)) throw new Error("[TalkJS] If providing a signature for authentication, you must not provide a token or tokenFetcher.");
|
|
3581
3561
|
n2 ? this.fetchToken(() => n2) : (r2 || (this.usingBokens = true, this.tokenFetcher = () => this.sendBokenRequest(e2, i2)), this.refreshToken());
|
|
3582
3562
|
}
|
|
3583
3563
|
get canRefreshToken() {
|
|
@@ -3666,7 +3646,7 @@ class Ms {
|
|
|
3666
3646
|
const e3 = function(e4) {
|
|
3667
3647
|
const t3 = e4.split(".");
|
|
3668
3648
|
if (3 !== t3.length) throw "Token does not contain exactly two `.`. Check that you generated your JWT correctly. It should be `<header>.<payload>.<signature>`.";
|
|
3669
|
-
return { header:
|
|
3649
|
+
return { header: xs(t3[0]), payload: xs(t3[1]) };
|
|
3670
3650
|
}(s2);
|
|
3671
3651
|
n2 = e3.header, r2 = e3.payload;
|
|
3672
3652
|
} catch (e3) {
|
|
@@ -3680,7 +3660,7 @@ class Ms {
|
|
|
3680
3660
|
const e3 = this.checkJwtPayload(r2);
|
|
3681
3661
|
t2.push(...e3);
|
|
3682
3662
|
}
|
|
3683
|
-
if (t2.length) if (this.usingBokens)
|
|
3663
|
+
if (t2.length) if (this.usingBokens) this.errorTracker.log(`JWT Errors detected by AuthProvider when using bokens: ${t2.join("\n")}`);
|
|
3684
3664
|
else {
|
|
3685
3665
|
console.warn("[TalkJS] Authentication token appears to be generated incorrectly. Will still attempt to authenticate, but TalkJS may not work as expected. See below for a description of any problems and how to fix them.");
|
|
3686
3666
|
const s3 = t2.length > 1;
|
|
@@ -3717,12 +3697,12 @@ class Ms {
|
|
|
3717
3697
|
if (e3.status >= 400 && e3.status < 500) throw `Unexpected HTTP ${e3.status} response when fetching auth token. Check that you configured the session correctly.`;
|
|
3718
3698
|
if (s2++, s2 >= 5) throw `Unexpected HTTP ${e3.status} response when fetching auth token, retrying did not help.`;
|
|
3719
3699
|
return true;
|
|
3720
|
-
} });
|
|
3700
|
+
}, errorTracker: this.errorTracker });
|
|
3721
3701
|
return (yield r2.json()).boken;
|
|
3722
3702
|
});
|
|
3723
3703
|
}
|
|
3724
3704
|
}
|
|
3725
|
-
function
|
|
3705
|
+
function xs(e2) {
|
|
3726
3706
|
try {
|
|
3727
3707
|
const t2 = e2.replace(/-/g, "+").replace(/_/g, "/"), s2 = decodeURIComponent(atob(t2).split("").map((e3) => "%" + ("00" + e3.charCodeAt(0).toString(16)).slice(-2)).join(""));
|
|
3728
3708
|
return JSON.parse(s2);
|
|
@@ -3730,7 +3710,7 @@ function Fs(e2) {
|
|
|
3730
3710
|
throw `Could not base64-decode and JSON-parse token section: ${e2}. Check that you base-64 encoded the section correctly.`;
|
|
3731
3711
|
}
|
|
3732
3712
|
}
|
|
3733
|
-
class
|
|
3713
|
+
class Ts {
|
|
3734
3714
|
constructor(e2) {
|
|
3735
3715
|
this.target = e2;
|
|
3736
3716
|
}
|
|
@@ -3738,7 +3718,7 @@ class Bs {
|
|
|
3738
3718
|
return this.target;
|
|
3739
3719
|
}
|
|
3740
3720
|
}
|
|
3741
|
-
const
|
|
3721
|
+
const Is = new class {
|
|
3742
3722
|
constructor() {
|
|
3743
3723
|
this.registry = {};
|
|
3744
3724
|
}
|
|
@@ -3746,7 +3726,7 @@ const Rs = new class {
|
|
|
3746
3726
|
var _a2;
|
|
3747
3727
|
const t2 = this.key(e2), s2 = (_a2 = this.registry[t2]) == null ? void 0 : _a2.deref();
|
|
3748
3728
|
if (s2) return s2;
|
|
3749
|
-
const n2 = new
|
|
3729
|
+
const n2 = new Ss(e2), r2 = globalThis.WeakRef ? new WeakRef(n2) : new Ts(n2);
|
|
3750
3730
|
return this.registry[t2] = r2, n2;
|
|
3751
3731
|
}
|
|
3752
3732
|
deregister(e2, t2) {
|
|
@@ -3757,11 +3737,11 @@ const Rs = new class {
|
|
|
3757
3737
|
return `${e2}:${t2}`;
|
|
3758
3738
|
}
|
|
3759
3739
|
}();
|
|
3760
|
-
function
|
|
3740
|
+
function Ds(e2) {
|
|
3761
3741
|
if (!e2) throw new Error("[TalkJS] Must provide an options object to `getTalkSession`");
|
|
3762
|
-
return e2.forceCreateNew ? new
|
|
3742
|
+
return e2.forceCreateNew ? new Ss(e2) : Is.getOrCreate(e2);
|
|
3763
3743
|
}
|
|
3764
|
-
class
|
|
3744
|
+
class Ss {
|
|
3765
3745
|
constructor(e2) {
|
|
3766
3746
|
!function(e3) {
|
|
3767
3747
|
function t3(e4, t4) {
|
|
@@ -3771,13 +3751,13 @@ class _s {
|
|
|
3771
3751
|
void 0 !== e3.tokenFetcher && t3("function" == typeof e3.tokenFetcher, "The `tokenFetcher` property of TalkSession#constructor must be a function.");
|
|
3772
3752
|
}(e2);
|
|
3773
3753
|
const { appId: t2, userId: s2, token: n2, tokenFetcher: r2, signature: i2 } = e2;
|
|
3774
|
-
this._appId = t2, this._apiUrls = e2.apiUrls ? new bs(e2.apiUrls.realtimeWsApiUrl, e2.apiUrls.internalHttpApiUrl, e2.apiUrls.restApiHttpUrl) : bs.fromHost(e2.host), this._authProvider = new
|
|
3754
|
+
this._appId = t2, this._apiUrls = e2.apiUrls ? new bs(e2.apiUrls.realtimeWsApiUrl, e2.apiUrls.internalHttpApiUrl, e2.apiUrls.restApiHttpUrl) : bs.fromHost(e2.host), this._authProvider = new ks(this._apiUrls, t2, s2, n2, r2, i2);
|
|
3775
3755
|
const a2 = Math.random().toString().split(".")[1];
|
|
3776
|
-
this._realtimeClient = new Be(this._apiUrls.getRealtimeWsUrl(t2, s2, "1.5.
|
|
3756
|
+
this._realtimeClient = new Be(this._apiUrls.getRealtimeWsUrl(t2, s2, "1.5.8", a2, e2.clientBuild), s2, this._authProvider), this.currentUser = new _e(this._realtimeClient.userId, this._realtimeClient), this._terminationReason = o(), this._terminationReason.promise.then((e3) => {
|
|
3777
3757
|
console.error(`[TalkSession] ${e3}`);
|
|
3778
3758
|
}), function(e3, t3, s3) {
|
|
3779
3759
|
return __async(this, null, function* () {
|
|
3780
|
-
return ys({ method: "GET", url: `${t3}/${e3}/app`, authProvider: s3 }).then((e4) => 200 === e4.status || 404 !== e4.status && (console.warn(`[TalkJS] Received unexpected ${e4.status} status code when validating app ID. Assuming that the app ID is valid.`), true)).catch((e4) => {
|
|
3760
|
+
return ys({ method: "GET", url: `${t3}/${e3}/app`, authProvider: s3, errorTracker: s3.errorTracker }).then((e4) => 200 === e4.status || 404 !== e4.status && (console.warn(`[TalkJS] Received unexpected ${e4.status} status code when validating app ID. Assuming that the app ID is valid.`), true)).catch((e4) => {
|
|
3781
3761
|
if ("string" != typeof e4 && "status" in e4) {
|
|
3782
3762
|
const t4 = e4;
|
|
3783
3763
|
return 200 === t4.status || 404 !== t4.status && (console.warn(`[TalkJS] Received unexpected ${t4.status} status code when validating app ID. Assuming that the app ID is valid.`), true);
|
|
@@ -3811,31 +3791,31 @@ class _s {
|
|
|
3811
3791
|
return this._realtimeClient.subscribe(["me", "conversations"], e2);
|
|
3812
3792
|
}
|
|
3813
3793
|
terminate(e2) {
|
|
3814
|
-
|
|
3794
|
+
Is.deregister(this._appId, this.currentUser.id), this._terminationReason.resolve(e2), this._realtimeClient.destroy();
|
|
3815
3795
|
}
|
|
3816
3796
|
_isConnected() {
|
|
3817
3797
|
return this._realtimeClient.isConnected();
|
|
3818
3798
|
}
|
|
3819
3799
|
uploadFile(e2, t2) {
|
|
3820
|
-
return
|
|
3800
|
+
return Ms(`${this._apiUrls.restApiHttpUrl}/${this._appId}/files`, this._authProvider, e2, t2);
|
|
3821
3801
|
}
|
|
3822
3802
|
uploadImage(e2, t2) {
|
|
3823
|
-
return
|
|
3803
|
+
return Ms(`${this._apiUrls.restApiHttpUrl}/${this._appId}/files`, this._authProvider, e2, __spreadValues({ subtype: "image" }, t2));
|
|
3824
3804
|
}
|
|
3825
3805
|
uploadVideo(e2, t2) {
|
|
3826
|
-
return
|
|
3806
|
+
return Ms(`${this._apiUrls.restApiHttpUrl}/${this._appId}/files`, this._authProvider, e2, __spreadValues({ subtype: "video" }, t2));
|
|
3827
3807
|
}
|
|
3828
3808
|
uploadAudio(e2, t2) {
|
|
3829
|
-
return
|
|
3809
|
+
return Ms(`${this._apiUrls.restApiHttpUrl}/${this._appId}/files`, this._authProvider, e2, __spreadValues({ subtype: "audio" }, t2));
|
|
3830
3810
|
}
|
|
3831
3811
|
uploadVoice(e2, t2) {
|
|
3832
|
-
return
|
|
3812
|
+
return Ms(`${this._apiUrls.restApiHttpUrl}/${this._appId}/files`, this._authProvider, e2, __spreadValues({ subtype: "voice" }, t2));
|
|
3833
3813
|
}
|
|
3834
3814
|
}
|
|
3835
|
-
function
|
|
3815
|
+
function Ms(_0, _1, _2, _3) {
|
|
3836
3816
|
return __async(this, arguments, function* (e2, t2, s2, { subtype: n2, filename: r2, width: i2, height: a2, duration: o2 }) {
|
|
3837
3817
|
const u2 = new FormData();
|
|
3838
|
-
return u2.set("file", s2, r2), void 0 !== n2 && u2.set("subtype", n2), void 0 !== i2 && u2.set("width", i2.toString()), void 0 !== a2 && u2.set("height", a2.toString()), void 0 !== o2 && u2.set("duration", o2.toString()), ys({ method: "POST", url: e2, data: u2, authProvider: t2 }).then((e3) => e3.json()).then((e3) => e3.attachmentToken).catch((e3) => __async(this, null, function* () {
|
|
3818
|
+
return u2.set("file", s2, r2), void 0 !== n2 && u2.set("subtype", n2), void 0 !== i2 && u2.set("width", i2.toString()), void 0 !== a2 && u2.set("height", a2.toString()), void 0 !== o2 && u2.set("duration", o2.toString()), ys({ method: "POST", url: e2, data: u2, authProvider: t2, errorTracker: t2.errorTracker }).then((e3) => e3.json()).then((e3) => e3.attachmentToken).catch((e3) => __async(this, null, function* () {
|
|
3839
3819
|
if (e3 instanceof Response) {
|
|
3840
3820
|
const t3 = yield e3.json(), s3 = `Unexpected response when uploading file, status code ${e3.status} ${t3.errorCode}, ${t3.reasons}`;
|
|
3841
3821
|
throw new Error(s3);
|
|
@@ -3845,7 +3825,7 @@ function Ps(_0, _1, _2, _3) {
|
|
|
3845
3825
|
});
|
|
3846
3826
|
}
|
|
3847
3827
|
export {
|
|
3848
|
-
|
|
3828
|
+
Ds as getTalkSession,
|
|
3849
3829
|
f as registerPolyfills
|
|
3850
3830
|
};
|
|
3851
3831
|
//# sourceMappingURL=talkSession.js.map
|