@sendity/client 0.1.11 → 0.1.12
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/dist/components/sendity.d.ts +1 -0
- package/dist/i18n/index.d.ts +3 -1
- package/dist/i18n/sendity.bg.d.ts +3 -0
- package/dist/i18n/sendity.bn.d.ts +3 -0
- package/dist/i18n/sendity.bs.d.ts +3 -0
- package/dist/i18n/sendity.ga.d.ts +3 -0
- package/dist/i18n/sendity.hi.d.ts +3 -0
- package/dist/i18n/sendity.hu.d.ts +3 -0
- package/dist/i18n/sendity.id.d.ts +3 -0
- package/dist/i18n/sendity.is.d.ts +3 -0
- package/dist/i18n/sendity.mk.d.ts +3 -0
- package/dist/i18n/sendity.ms.d.ts +3 -0
- package/dist/i18n/sendity.mt.d.ts +3 -0
- package/dist/i18n/sendity.no.d.ts +3 -0
- package/dist/i18n/sendity.ro.d.ts +3 -0
- package/dist/i18n/sendity.th.d.ts +3 -0
- package/dist/i18n/sendity.uk.d.ts +3 -0
- package/dist/i18n/sendity.vi.d.ts +3 -0
- package/dist/sendity-client.js +909 -431
- package/package.json +1 -1
package/dist/sendity-client.js
CHANGED
|
@@ -241,6 +241,8 @@ const ft = `<template id="sendity-tpl">
|
|
|
241
241
|
min-height: var(--sendity-code-min-height);
|
|
242
242
|
flex: 0 0 auto;
|
|
243
243
|
text-align: center;
|
|
244
|
+
direction: ltr;
|
|
245
|
+
unicode-bidi: isolate;
|
|
244
246
|
gap: 0.5rem;
|
|
245
247
|
overflow: hidden;
|
|
246
248
|
transition: opacity var(--sendity-crossfade-duration) ease, transform var(--sendity-crossfade-duration) ease, background-color var(--sendity-crossfade-duration) ease, border-color var(--sendity-crossfade-duration) ease, color var(--sendity-crossfade-duration) ease;
|
|
@@ -700,7 +702,7 @@ const ft = `<template id="sendity-tpl">
|
|
|
700
702
|
--sendity-shadow-error: 0 0 0 1px rgb(244 63 94 / 0.24), 0 18px 46px -18px rgb(244 63 94 / 0.9);
|
|
701
703
|
}
|
|
702
704
|
`;
|
|
703
|
-
class
|
|
705
|
+
class He {
|
|
704
706
|
constructor() {
|
|
705
707
|
this.notificationCreatedEvent = ".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated";
|
|
706
708
|
}
|
|
@@ -729,7 +731,7 @@ class We {
|
|
|
729
731
|
return this.stopListening(".client-" + i, s);
|
|
730
732
|
}
|
|
731
733
|
}
|
|
732
|
-
class
|
|
734
|
+
class St {
|
|
733
735
|
/**
|
|
734
736
|
* Create a new class instance.
|
|
735
737
|
*/
|
|
@@ -756,12 +758,12 @@ function Di(g) {
|
|
|
756
758
|
return !1;
|
|
757
759
|
}
|
|
758
760
|
}
|
|
759
|
-
class Ne extends
|
|
761
|
+
class Ne extends He {
|
|
760
762
|
/**
|
|
761
763
|
* Create a new class instance.
|
|
762
764
|
*/
|
|
763
765
|
constructor(i, s, a) {
|
|
764
|
-
super(), this.name = s, this.pusher = i, this.options = a, this.eventFormatter = new
|
|
766
|
+
super(), this.name = s, this.pusher = i, this.options = a, this.eventFormatter = new St(this.options.namespace), this.subscribe();
|
|
765
767
|
}
|
|
766
768
|
/**
|
|
767
769
|
* Subscribe to a Pusher channel.
|
|
@@ -791,8 +793,8 @@ class Ne extends We {
|
|
|
791
793
|
let d = String(this.options.namespace ?? "").replace(
|
|
792
794
|
/\./g,
|
|
793
795
|
"\\"
|
|
794
|
-
),
|
|
795
|
-
i(
|
|
796
|
+
), h = s.startsWith(d) ? s.substring(d.length + 1) : "." + s;
|
|
797
|
+
i(h, a);
|
|
796
798
|
}), this;
|
|
797
799
|
}
|
|
798
800
|
/**
|
|
@@ -890,12 +892,12 @@ class $i extends xt {
|
|
|
890
892
|
}), this;
|
|
891
893
|
}
|
|
892
894
|
}
|
|
893
|
-
class Et extends
|
|
895
|
+
class Et extends He {
|
|
894
896
|
/**
|
|
895
897
|
* Create a new class instance.
|
|
896
898
|
*/
|
|
897
899
|
constructor(i, s, a) {
|
|
898
|
-
super(), this.events = {}, this.listeners = {}, this.name = s, this.socket = i, this.options = a, this.eventFormatter = new
|
|
900
|
+
super(), this.events = {}, this.listeners = {}, this.name = s, this.socket = i, this.options = a, this.eventFormatter = new St(this.options.namespace), this.subscribe();
|
|
899
901
|
}
|
|
900
902
|
/**
|
|
901
903
|
* Subscribe to a Socket.io channel.
|
|
@@ -946,7 +948,7 @@ class Et extends We {
|
|
|
946
948
|
*/
|
|
947
949
|
on(i, s) {
|
|
948
950
|
return this.listeners[i] = this.listeners[i] || [], this.events[i] || (this.events[i] = (a, d) => {
|
|
949
|
-
this.name === a && this.listeners[i] && this.listeners[i].forEach((
|
|
951
|
+
this.name === a && this.listeners[i] && this.listeners[i].forEach((h) => h(d));
|
|
950
952
|
}, this.socket.on(i, this.events[i])), this.listeners[i].push(s), this;
|
|
951
953
|
}
|
|
952
954
|
/**
|
|
@@ -1016,7 +1018,7 @@ class Gi extends Tt {
|
|
|
1016
1018
|
), this;
|
|
1017
1019
|
}
|
|
1018
1020
|
}
|
|
1019
|
-
class ge extends
|
|
1021
|
+
class ge extends He {
|
|
1020
1022
|
/**
|
|
1021
1023
|
* Subscribe to a channel.
|
|
1022
1024
|
*/
|
|
@@ -1072,7 +1074,7 @@ class _t extends ge {
|
|
|
1072
1074
|
return this;
|
|
1073
1075
|
}
|
|
1074
1076
|
}
|
|
1075
|
-
class
|
|
1077
|
+
class Ki extends ge {
|
|
1076
1078
|
/**
|
|
1077
1079
|
* Send a whisper event to other clients in the channel.
|
|
1078
1080
|
*/
|
|
@@ -1080,7 +1082,7 @@ class Vi extends ge {
|
|
|
1080
1082
|
return this;
|
|
1081
1083
|
}
|
|
1082
1084
|
}
|
|
1083
|
-
class
|
|
1085
|
+
class Vi extends _t {
|
|
1084
1086
|
/**
|
|
1085
1087
|
* Register a callback to be called anytime the member list changes.
|
|
1086
1088
|
*/
|
|
@@ -1148,8 +1150,8 @@ At._defaultOptions = {
|
|
|
1148
1150
|
key: null,
|
|
1149
1151
|
namespace: "App.Events"
|
|
1150
1152
|
};
|
|
1151
|
-
let
|
|
1152
|
-
class pe extends
|
|
1153
|
+
let Ie = At;
|
|
1154
|
+
class pe extends Ie {
|
|
1153
1155
|
constructor() {
|
|
1154
1156
|
super(...arguments), this.channels = {};
|
|
1155
1157
|
}
|
|
@@ -1286,7 +1288,7 @@ class pe extends He {
|
|
|
1286
1288
|
this.pusher.disconnect();
|
|
1287
1289
|
}
|
|
1288
1290
|
}
|
|
1289
|
-
class Xi extends
|
|
1291
|
+
class Xi extends Ie {
|
|
1290
1292
|
constructor() {
|
|
1291
1293
|
super(...arguments), this.channels = {};
|
|
1292
1294
|
}
|
|
@@ -1408,7 +1410,7 @@ class Xi extends He {
|
|
|
1408
1410
|
this.socket.disconnect();
|
|
1409
1411
|
}
|
|
1410
1412
|
}
|
|
1411
|
-
class mt extends
|
|
1413
|
+
class mt extends Ie {
|
|
1412
1414
|
constructor() {
|
|
1413
1415
|
super(...arguments), this.channels = {};
|
|
1414
1416
|
}
|
|
@@ -1439,13 +1441,13 @@ class mt extends He {
|
|
|
1439
1441
|
* Get a private encrypted channel instance by name.
|
|
1440
1442
|
*/
|
|
1441
1443
|
encryptedPrivateChannel(i) {
|
|
1442
|
-
return new
|
|
1444
|
+
return new Ki();
|
|
1443
1445
|
}
|
|
1444
1446
|
/**
|
|
1445
1447
|
* Get a presence channel instance by name.
|
|
1446
1448
|
*/
|
|
1447
1449
|
presenceChannel(i) {
|
|
1448
|
-
return new
|
|
1450
|
+
return new Vi();
|
|
1449
1451
|
}
|
|
1450
1452
|
/**
|
|
1451
1453
|
* Leave the given channel, as well as its private and presence variants.
|
|
@@ -1655,12 +1657,12 @@ function Zi() {
|
|
|
1655
1657
|
var s = {
|
|
1656
1658
|
/***/
|
|
1657
1659
|
594(m, v) {
|
|
1658
|
-
var
|
|
1660
|
+
var b = this && this.__extends || /* @__PURE__ */ (function() {
|
|
1659
1661
|
var x = function(u, p) {
|
|
1660
1662
|
return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, P) {
|
|
1661
1663
|
C.__proto__ = P;
|
|
1662
1664
|
} || function(C, P) {
|
|
1663
|
-
for (var
|
|
1665
|
+
for (var H in P) P.hasOwnProperty(H) && (C[H] = P[H]);
|
|
1664
1666
|
}, x(u, p);
|
|
1665
1667
|
};
|
|
1666
1668
|
return function(u, p) {
|
|
@@ -1672,7 +1674,7 @@ function Zi() {
|
|
|
1672
1674
|
};
|
|
1673
1675
|
})();
|
|
1674
1676
|
Object.defineProperty(v, "__esModule", { value: !0 });
|
|
1675
|
-
var E = 256,
|
|
1677
|
+
var E = 256, k = (
|
|
1676
1678
|
/** @class */
|
|
1677
1679
|
(function() {
|
|
1678
1680
|
function x(u) {
|
|
@@ -1685,10 +1687,10 @@ function Zi() {
|
|
|
1685
1687
|
var P = u[C] << 16 | u[C + 1] << 8 | u[C + 2];
|
|
1686
1688
|
p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63), p += this._encodeByte(P >>> 6 & 63), p += this._encodeByte(P >>> 0 & 63);
|
|
1687
1689
|
}
|
|
1688
|
-
var
|
|
1689
|
-
if (
|
|
1690
|
-
var P = u[C] << 16 | (
|
|
1691
|
-
p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63),
|
|
1690
|
+
var H = u.length - C;
|
|
1691
|
+
if (H > 0) {
|
|
1692
|
+
var P = u[C] << 16 | (H === 2 ? u[C + 1] << 8 : 0);
|
|
1693
|
+
p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63), H === 2 ? p += this._encodeByte(P >>> 6 & 63) : p += this._paddingCharacter || "", p += this._paddingCharacter || "";
|
|
1692
1694
|
}
|
|
1693
1695
|
return p;
|
|
1694
1696
|
}, x.prototype.maxDecodedLength = function(u) {
|
|
@@ -1698,9 +1700,9 @@ function Zi() {
|
|
|
1698
1700
|
}, x.prototype.decode = function(u) {
|
|
1699
1701
|
if (u.length === 0)
|
|
1700
1702
|
return new Uint8Array(0);
|
|
1701
|
-
for (var p = this._getPaddingLength(u), C = u.length - p, P = new Uint8Array(this.maxDecodedLength(C)),
|
|
1702
|
-
|
|
1703
|
-
if (z < C - 1 && (
|
|
1703
|
+
for (var p = this._getPaddingLength(u), C = u.length - p, P = new Uint8Array(this.maxDecodedLength(C)), H = 0, z = 0, O = 0, V = 0, M = 0, q = 0, X = 0; z < C - 4; z += 4)
|
|
1704
|
+
V = this._decodeChar(u.charCodeAt(z + 0)), M = this._decodeChar(u.charCodeAt(z + 1)), q = this._decodeChar(u.charCodeAt(z + 2)), X = this._decodeChar(u.charCodeAt(z + 3)), P[H++] = V << 2 | M >>> 4, P[H++] = M << 4 | q >>> 2, P[H++] = q << 6 | X, O |= V & E, O |= M & E, O |= q & E, O |= X & E;
|
|
1705
|
+
if (z < C - 1 && (V = this._decodeChar(u.charCodeAt(z)), M = this._decodeChar(u.charCodeAt(z + 1)), P[H++] = V << 2 | M >>> 4, O |= V & E, O |= M & E), z < C - 2 && (q = this._decodeChar(u.charCodeAt(z + 2)), P[H++] = M << 4 | q >>> 2, O |= q & E), z < C - 3 && (X = this._decodeChar(u.charCodeAt(z + 3)), P[H++] = q << 6 | X, O |= X & E), O !== 0)
|
|
1704
1706
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
1705
1707
|
return P;
|
|
1706
1708
|
}, x.prototype._encodeByte = function(u) {
|
|
@@ -1721,20 +1723,20 @@ function Zi() {
|
|
|
1721
1723
|
}, x;
|
|
1722
1724
|
})()
|
|
1723
1725
|
);
|
|
1724
|
-
v.Coder =
|
|
1725
|
-
var
|
|
1726
|
-
function
|
|
1727
|
-
return
|
|
1726
|
+
v.Coder = k;
|
|
1727
|
+
var W = new k();
|
|
1728
|
+
function S(x) {
|
|
1729
|
+
return W.encode(x);
|
|
1728
1730
|
}
|
|
1729
|
-
v.encode =
|
|
1731
|
+
v.encode = S;
|
|
1730
1732
|
function A(x) {
|
|
1731
|
-
return
|
|
1733
|
+
return W.decode(x);
|
|
1732
1734
|
}
|
|
1733
1735
|
v.decode = A;
|
|
1734
1736
|
var B = (
|
|
1735
1737
|
/** @class */
|
|
1736
1738
|
(function(x) {
|
|
1737
|
-
|
|
1739
|
+
b(u, x);
|
|
1738
1740
|
function u() {
|
|
1739
1741
|
return x !== null && x.apply(this, arguments) || this;
|
|
1740
1742
|
}
|
|
@@ -1745,80 +1747,80 @@ function Zi() {
|
|
|
1745
1747
|
var C = E;
|
|
1746
1748
|
return C += (44 - p & p - 46) >>> 8 & -E + p - 45 + 62, C += (94 - p & p - 96) >>> 8 & -E + p - 95 + 63, C += (47 - p & p - 58) >>> 8 & -E + p - 48 + 52, C += (64 - p & p - 91) >>> 8 & -E + p - 65 + 0, C += (96 - p & p - 123) >>> 8 & -E + p - 97 + 26, C;
|
|
1747
1749
|
}, u;
|
|
1748
|
-
})(
|
|
1750
|
+
})(k)
|
|
1749
1751
|
);
|
|
1750
1752
|
v.URLSafeCoder = B;
|
|
1751
|
-
var
|
|
1753
|
+
var I = new B();
|
|
1752
1754
|
function D(x) {
|
|
1753
|
-
return
|
|
1755
|
+
return I.encode(x);
|
|
1754
1756
|
}
|
|
1755
1757
|
v.encodeURLSafe = D;
|
|
1756
1758
|
function te(x) {
|
|
1757
|
-
return
|
|
1759
|
+
return I.decode(x);
|
|
1758
1760
|
}
|
|
1759
1761
|
v.decodeURLSafe = te, v.encodedLength = function(x) {
|
|
1760
|
-
return
|
|
1762
|
+
return W.encodedLength(x);
|
|
1761
1763
|
}, v.maxDecodedLength = function(x) {
|
|
1762
|
-
return
|
|
1764
|
+
return W.maxDecodedLength(x);
|
|
1763
1765
|
}, v.decodedLength = function(x) {
|
|
1764
|
-
return
|
|
1766
|
+
return W.decodedLength(x);
|
|
1765
1767
|
};
|
|
1766
1768
|
},
|
|
1767
1769
|
/***/
|
|
1768
1770
|
978(m, v) {
|
|
1769
|
-
var
|
|
1770
|
-
function E(
|
|
1771
|
-
for (var
|
|
1772
|
-
var A = S
|
|
1771
|
+
var b = "utf8: invalid source encoding";
|
|
1772
|
+
function E(k) {
|
|
1773
|
+
for (var W = [], S = 0; S < k.length; S++) {
|
|
1774
|
+
var A = k[S];
|
|
1773
1775
|
if (A & 128) {
|
|
1774
1776
|
var B = void 0;
|
|
1775
1777
|
if (A < 224) {
|
|
1776
|
-
if (
|
|
1777
|
-
throw new Error(
|
|
1778
|
-
var
|
|
1779
|
-
if ((
|
|
1780
|
-
throw new Error(
|
|
1781
|
-
A = (A & 31) << 6 |
|
|
1778
|
+
if (S >= k.length)
|
|
1779
|
+
throw new Error(b);
|
|
1780
|
+
var I = k[++S];
|
|
1781
|
+
if ((I & 192) !== 128)
|
|
1782
|
+
throw new Error(b);
|
|
1783
|
+
A = (A & 31) << 6 | I & 63, B = 128;
|
|
1782
1784
|
} else if (A < 240) {
|
|
1783
|
-
if (
|
|
1784
|
-
throw new Error(
|
|
1785
|
-
var
|
|
1786
|
-
if ((
|
|
1787
|
-
throw new Error(
|
|
1788
|
-
A = (A & 15) << 12 | (
|
|
1785
|
+
if (S >= k.length - 1)
|
|
1786
|
+
throw new Error(b);
|
|
1787
|
+
var I = k[++S], D = k[++S];
|
|
1788
|
+
if ((I & 192) !== 128 || (D & 192) !== 128)
|
|
1789
|
+
throw new Error(b);
|
|
1790
|
+
A = (A & 15) << 12 | (I & 63) << 6 | D & 63, B = 2048;
|
|
1789
1791
|
} else if (A < 248) {
|
|
1790
|
-
if (
|
|
1791
|
-
throw new Error(
|
|
1792
|
-
var
|
|
1793
|
-
if ((
|
|
1794
|
-
throw new Error(
|
|
1795
|
-
A = (A & 15) << 18 | (
|
|
1792
|
+
if (S >= k.length - 2)
|
|
1793
|
+
throw new Error(b);
|
|
1794
|
+
var I = k[++S], D = k[++S], te = k[++S];
|
|
1795
|
+
if ((I & 192) !== 128 || (D & 192) !== 128 || (te & 192) !== 128)
|
|
1796
|
+
throw new Error(b);
|
|
1797
|
+
A = (A & 15) << 18 | (I & 63) << 12 | (D & 63) << 6 | te & 63, B = 65536;
|
|
1796
1798
|
} else
|
|
1797
|
-
throw new Error(
|
|
1799
|
+
throw new Error(b);
|
|
1798
1800
|
if (A < B || A >= 55296 && A <= 57343)
|
|
1799
|
-
throw new Error(
|
|
1801
|
+
throw new Error(b);
|
|
1800
1802
|
if (A >= 65536) {
|
|
1801
1803
|
if (A > 1114111)
|
|
1802
|
-
throw new Error(
|
|
1803
|
-
A -= 65536,
|
|
1804
|
+
throw new Error(b);
|
|
1805
|
+
A -= 65536, W.push(String.fromCharCode(55296 | A >> 10)), A = 56320 | A & 1023;
|
|
1804
1806
|
}
|
|
1805
1807
|
}
|
|
1806
|
-
|
|
1808
|
+
W.push(String.fromCharCode(A));
|
|
1807
1809
|
}
|
|
1808
|
-
return
|
|
1810
|
+
return W.join("");
|
|
1809
1811
|
}
|
|
1810
1812
|
v.D4 = E;
|
|
1811
1813
|
},
|
|
1812
1814
|
/***/
|
|
1813
|
-
721(m, v,
|
|
1814
|
-
m.exports =
|
|
1815
|
+
721(m, v, b) {
|
|
1816
|
+
m.exports = b(207).default;
|
|
1815
1817
|
},
|
|
1816
1818
|
/***/
|
|
1817
|
-
207(m, v,
|
|
1818
|
-
|
|
1819
|
+
207(m, v, b) {
|
|
1820
|
+
b.d(v, {
|
|
1819
1821
|
default: () => (
|
|
1820
1822
|
/* binding */
|
|
1821
|
-
|
|
1823
|
+
he
|
|
1822
1824
|
)
|
|
1823
1825
|
});
|
|
1824
1826
|
class E {
|
|
@@ -1827,16 +1829,16 @@ function Zi() {
|
|
|
1827
1829
|
}
|
|
1828
1830
|
create(e) {
|
|
1829
1831
|
this.lastId++;
|
|
1830
|
-
var t = this.lastId, r = this.prefix + t, o = this.name + "[" + t + "]", c = !1,
|
|
1832
|
+
var t = this.lastId, r = this.prefix + t, o = this.name + "[" + t + "]", c = !1, l = function() {
|
|
1831
1833
|
c || (e.apply(null, arguments), c = !0);
|
|
1832
1834
|
};
|
|
1833
|
-
return this[t] =
|
|
1835
|
+
return this[t] = l, { number: t, id: r, name: o, callback: l };
|
|
1834
1836
|
}
|
|
1835
1837
|
remove(e) {
|
|
1836
1838
|
delete this[e.number];
|
|
1837
1839
|
}
|
|
1838
1840
|
}
|
|
1839
|
-
var
|
|
1841
|
+
var k = new E("_pusher_script_", "Pusher.ScriptReceivers"), W = {
|
|
1840
1842
|
VERSION: "8.5.0",
|
|
1841
1843
|
PROTOCOL: 7,
|
|
1842
1844
|
wsPort: 80,
|
|
@@ -1864,10 +1866,10 @@ function Zi() {
|
|
|
1864
1866
|
cdn_https: "https://js.pusher.com",
|
|
1865
1867
|
dependency_suffix: ""
|
|
1866
1868
|
};
|
|
1867
|
-
const
|
|
1869
|
+
const S = W;
|
|
1868
1870
|
class A {
|
|
1869
1871
|
constructor(e) {
|
|
1870
|
-
this.options = e, this.receivers = e.receivers ||
|
|
1872
|
+
this.options = e, this.receivers = e.receivers || k, this.loading = {};
|
|
1871
1873
|
}
|
|
1872
1874
|
load(e, t, r) {
|
|
1873
1875
|
var o = this;
|
|
@@ -1875,17 +1877,17 @@ function Zi() {
|
|
|
1875
1877
|
o.loading[e].push(r);
|
|
1876
1878
|
else {
|
|
1877
1879
|
o.loading[e] = [r];
|
|
1878
|
-
var c = w.createScriptRequest(o.getPath(e, t)),
|
|
1879
|
-
if (o.receivers.remove(
|
|
1880
|
-
var
|
|
1880
|
+
var c = w.createScriptRequest(o.getPath(e, t)), l = o.receivers.create(function(f) {
|
|
1881
|
+
if (o.receivers.remove(l), o.loading[e]) {
|
|
1882
|
+
var y = o.loading[e];
|
|
1881
1883
|
delete o.loading[e];
|
|
1882
1884
|
for (var T = function(R) {
|
|
1883
1885
|
R || c.cleanup();
|
|
1884
|
-
}, _ = 0; _ <
|
|
1885
|
-
|
|
1886
|
+
}, _ = 0; _ < y.length; _++)
|
|
1887
|
+
y[_](f, T);
|
|
1886
1888
|
}
|
|
1887
1889
|
});
|
|
1888
|
-
c.send(
|
|
1890
|
+
c.send(l);
|
|
1889
1891
|
}
|
|
1890
1892
|
}
|
|
1891
1893
|
getRoot(e) {
|
|
@@ -1896,11 +1898,11 @@ function Zi() {
|
|
|
1896
1898
|
return this.getRoot(t) + "/" + e + this.options.suffix + ".js";
|
|
1897
1899
|
}
|
|
1898
1900
|
}
|
|
1899
|
-
var B = new E("_pusher_dependencies", "Pusher.DependenciesReceivers"),
|
|
1900
|
-
cdn_http:
|
|
1901
|
-
cdn_https:
|
|
1902
|
-
version:
|
|
1903
|
-
suffix:
|
|
1901
|
+
var B = new E("_pusher_dependencies", "Pusher.DependenciesReceivers"), I = new A({
|
|
1902
|
+
cdn_http: S.cdn_http,
|
|
1903
|
+
cdn_https: S.cdn_https,
|
|
1904
|
+
version: S.VERSION,
|
|
1905
|
+
suffix: S.dependency_suffix,
|
|
1904
1906
|
receivers: B
|
|
1905
1907
|
});
|
|
1906
1908
|
const D = {
|
|
@@ -1948,7 +1950,7 @@ function Zi() {
|
|
|
1948
1950
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1949
1951
|
}
|
|
1950
1952
|
}
|
|
1951
|
-
class
|
|
1953
|
+
class H extends Error {
|
|
1952
1954
|
constructor(e) {
|
|
1953
1955
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1954
1956
|
}
|
|
@@ -1958,12 +1960,12 @@ function Zi() {
|
|
|
1958
1960
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1959
1961
|
}
|
|
1960
1962
|
}
|
|
1961
|
-
class
|
|
1963
|
+
class O extends Error {
|
|
1962
1964
|
constructor(e) {
|
|
1963
1965
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1964
1966
|
}
|
|
1965
1967
|
}
|
|
1966
|
-
class
|
|
1968
|
+
class V extends Error {
|
|
1967
1969
|
constructor(e) {
|
|
1968
1970
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1969
1971
|
}
|
|
@@ -1981,23 +1983,23 @@ function Zi() {
|
|
|
1981
1983
|
const jt = function(n, e, t, r, o) {
|
|
1982
1984
|
const c = w.createXHR();
|
|
1983
1985
|
c.open("POST", t.endpoint, !0), c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
1984
|
-
for (var
|
|
1985
|
-
c.setRequestHeader(
|
|
1986
|
+
for (var l in t.headers)
|
|
1987
|
+
c.setRequestHeader(l, t.headers[l]);
|
|
1986
1988
|
if (t.headersProvider != null) {
|
|
1987
1989
|
let f = t.headersProvider();
|
|
1988
|
-
for (var
|
|
1989
|
-
c.setRequestHeader(
|
|
1990
|
+
for (var l in f)
|
|
1991
|
+
c.setRequestHeader(l, f[l]);
|
|
1990
1992
|
}
|
|
1991
1993
|
return c.onreadystatechange = function() {
|
|
1992
1994
|
if (c.readyState === 4)
|
|
1993
1995
|
if (c.status === 200) {
|
|
1994
|
-
let f,
|
|
1996
|
+
let f, y = !1;
|
|
1995
1997
|
try {
|
|
1996
|
-
f = JSON.parse(c.responseText),
|
|
1998
|
+
f = JSON.parse(c.responseText), y = !0;
|
|
1997
1999
|
} catch {
|
|
1998
2000
|
o(new q(200, `JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${c.responseText}`), null);
|
|
1999
2001
|
}
|
|
2000
|
-
|
|
2002
|
+
y && o(null, f);
|
|
2001
2003
|
} else {
|
|
2002
2004
|
let f = "";
|
|
2003
2005
|
switch (r) {
|
|
@@ -2012,15 +2014,15 @@ function Zi() {
|
|
|
2012
2014
|
}
|
|
2013
2015
|
}, c.send(e), c;
|
|
2014
2016
|
};
|
|
2015
|
-
function
|
|
2017
|
+
function Wt(n) {
|
|
2016
2018
|
return zt(Nt(n));
|
|
2017
2019
|
}
|
|
2018
|
-
var ne = String.fromCharCode, oe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
2020
|
+
var ne = String.fromCharCode, oe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ht = function(n) {
|
|
2019
2021
|
var e = n.charCodeAt(0);
|
|
2020
2022
|
return e < 128 ? n : e < 2048 ? ne(192 | e >>> 6) + ne(128 | e & 63) : ne(224 | e >>> 12 & 15) + ne(128 | e >>> 6 & 63) + ne(128 | e & 63);
|
|
2021
2023
|
}, Nt = function(n) {
|
|
2022
|
-
return n.replace(/[^\x00-\x7F]/g,
|
|
2023
|
-
},
|
|
2024
|
+
return n.replace(/[^\x00-\x7F]/g, Ht);
|
|
2025
|
+
}, It = function(n) {
|
|
2024
2026
|
var e = [0, 2, 1][n.length % 3], t = n.charCodeAt(0) << 16 | (n.length > 1 ? n.charCodeAt(1) : 0) << 8 | (n.length > 2 ? n.charCodeAt(2) : 0), r = [
|
|
2025
2027
|
oe.charAt(t >>> 18),
|
|
2026
2028
|
oe.charAt(t >>> 12 & 63),
|
|
@@ -2029,9 +2031,9 @@ function Zi() {
|
|
|
2029
2031
|
];
|
|
2030
2032
|
return r.join("");
|
|
2031
2033
|
}, zt = window.btoa || function(n) {
|
|
2032
|
-
return n.replace(/[\s\S]{1,3}/g,
|
|
2034
|
+
return n.replace(/[\s\S]{1,3}/g, It);
|
|
2033
2035
|
};
|
|
2034
|
-
class
|
|
2036
|
+
class Ut {
|
|
2035
2037
|
constructor(e, t, r, o) {
|
|
2036
2038
|
this.clear = t, this.timer = e(() => {
|
|
2037
2039
|
this.timer && (this.timer = o(this.timer));
|
|
@@ -2044,21 +2046,21 @@ function Zi() {
|
|
|
2044
2046
|
this.timer && (this.clear(this.timer), this.timer = null);
|
|
2045
2047
|
}
|
|
2046
2048
|
}
|
|
2047
|
-
const
|
|
2048
|
-
function
|
|
2049
|
+
const Oe = Ut;
|
|
2050
|
+
function Ot(n) {
|
|
2049
2051
|
window.clearTimeout(n);
|
|
2050
2052
|
}
|
|
2051
2053
|
function qt(n) {
|
|
2052
2054
|
window.clearInterval(n);
|
|
2053
2055
|
}
|
|
2054
|
-
class J extends
|
|
2056
|
+
class J extends Oe {
|
|
2055
2057
|
constructor(e, t) {
|
|
2056
|
-
super(setTimeout,
|
|
2058
|
+
super(setTimeout, Ot, e, function(r) {
|
|
2057
2059
|
return t(), null;
|
|
2058
2060
|
});
|
|
2059
2061
|
}
|
|
2060
2062
|
}
|
|
2061
|
-
class Mt extends
|
|
2063
|
+
class Mt extends Oe {
|
|
2062
2064
|
constructor(e, t) {
|
|
2063
2065
|
super(setInterval, qt, e, function(r) {
|
|
2064
2066
|
return t(), r;
|
|
@@ -2080,11 +2082,11 @@ function Zi() {
|
|
|
2080
2082
|
}
|
|
2081
2083
|
};
|
|
2082
2084
|
const N = Bt;
|
|
2083
|
-
function
|
|
2085
|
+
function U(n, ...e) {
|
|
2084
2086
|
for (var t = 0; t < e.length; t++) {
|
|
2085
2087
|
var r = e[t];
|
|
2086
2088
|
for (var o in r)
|
|
2087
|
-
r[o] && r[o].constructor && r[o].constructor === Object ? n[o] =
|
|
2089
|
+
r[o] && r[o].constructor && r[o].constructor === Object ? n[o] = U(n[o] || {}, r[o]) : n[o] = r[o];
|
|
2088
2090
|
}
|
|
2089
2091
|
return n;
|
|
2090
2092
|
}
|
|
@@ -2161,43 +2163,43 @@ function Zi() {
|
|
|
2161
2163
|
return !0;
|
|
2162
2164
|
return !1;
|
|
2163
2165
|
}
|
|
2164
|
-
function
|
|
2166
|
+
function Kt(n, e) {
|
|
2165
2167
|
for (var t = 0; t < n.length; t++)
|
|
2166
2168
|
if (!e(n[t], t, n))
|
|
2167
2169
|
return !1;
|
|
2168
2170
|
return !0;
|
|
2169
2171
|
}
|
|
2170
|
-
function
|
|
2172
|
+
function Vt(n) {
|
|
2171
2173
|
return $t(n, function(e) {
|
|
2172
|
-
return typeof e == "object" && (e = ae(e)), encodeURIComponent(
|
|
2174
|
+
return typeof e == "object" && (e = ae(e)), encodeURIComponent(Wt(e.toString()));
|
|
2173
2175
|
});
|
|
2174
2176
|
}
|
|
2175
2177
|
function Xt(n) {
|
|
2176
2178
|
var e = Fe(n, function(r) {
|
|
2177
2179
|
return r !== void 0;
|
|
2178
|
-
}), t = Be(Gt(
|
|
2180
|
+
}), t = Be(Gt(Vt(e)), N.method("join", "=")).join("&");
|
|
2179
2181
|
return t;
|
|
2180
2182
|
}
|
|
2181
2183
|
function Jt(n) {
|
|
2182
2184
|
var e = [], t = [];
|
|
2183
2185
|
return (function r(o, c) {
|
|
2184
|
-
var
|
|
2186
|
+
var l, f, y;
|
|
2185
2187
|
switch (typeof o) {
|
|
2186
2188
|
case "object":
|
|
2187
2189
|
if (!o)
|
|
2188
2190
|
return null;
|
|
2189
|
-
for (
|
|
2190
|
-
if (e[
|
|
2191
|
-
return { $ref: t[
|
|
2191
|
+
for (l = 0; l < e.length; l += 1)
|
|
2192
|
+
if (e[l] === o)
|
|
2193
|
+
return { $ref: t[l] };
|
|
2192
2194
|
if (e.push(o), t.push(c), Object.prototype.toString.apply(o) === "[object Array]")
|
|
2193
|
-
for (
|
|
2194
|
-
|
|
2195
|
+
for (y = [], l = 0; l < o.length; l += 1)
|
|
2196
|
+
y[l] = r(o[l], c + "[" + l + "]");
|
|
2195
2197
|
else {
|
|
2196
|
-
|
|
2198
|
+
y = {};
|
|
2197
2199
|
for (f in o)
|
|
2198
|
-
Object.prototype.hasOwnProperty.call(o, f) && (
|
|
2200
|
+
Object.prototype.hasOwnProperty.call(o, f) && (y[f] = r(o[f], c + "[" + JSON.stringify(f) + "]"));
|
|
2199
2201
|
}
|
|
2200
|
-
return
|
|
2202
|
+
return y;
|
|
2201
2203
|
case "number":
|
|
2202
2204
|
case "string":
|
|
2203
2205
|
case "boolean":
|
|
@@ -2235,7 +2237,7 @@ function Zi() {
|
|
|
2235
2237
|
}
|
|
2236
2238
|
log(e, ...t) {
|
|
2237
2239
|
var r = Dt.apply(this, arguments);
|
|
2238
|
-
|
|
2240
|
+
he.log ? he.log(r) : he.logToConsole && e.bind(this)(r);
|
|
2239
2241
|
}
|
|
2240
2242
|
}
|
|
2241
2243
|
const L = new Yt();
|
|
@@ -2243,13 +2245,13 @@ function Zi() {
|
|
|
2243
2245
|
(t.headers !== void 0 || t.headersProvider != null) && L.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);
|
|
2244
2246
|
var c = n.nextAuthCallbackID.toString();
|
|
2245
2247
|
n.nextAuthCallbackID++;
|
|
2246
|
-
var
|
|
2248
|
+
var l = n.getDocument(), f = l.createElement("script");
|
|
2247
2249
|
n.auth_callbacks[c] = function(_) {
|
|
2248
2250
|
o(null, _);
|
|
2249
2251
|
};
|
|
2250
|
-
var
|
|
2251
|
-
f.src = t.endpoint + "?callback=" + encodeURIComponent(
|
|
2252
|
-
var T =
|
|
2252
|
+
var y = "Pusher.auth_callbacks['" + c + "']";
|
|
2253
|
+
f.src = t.endpoint + "?callback=" + encodeURIComponent(y) + "&" + e;
|
|
2254
|
+
var T = l.getElementsByTagName("head")[0] || l.documentElement;
|
|
2253
2255
|
T.insertBefore(f, T.firstChild);
|
|
2254
2256
|
};
|
|
2255
2257
|
const Qt = Zt;
|
|
@@ -2289,40 +2291,40 @@ function Zi() {
|
|
|
2289
2291
|
}
|
|
2290
2292
|
var nn = function(n, e) {
|
|
2291
2293
|
return function(t, r) {
|
|
2292
|
-
var o = "http" + (e ? "s" : "") + "://", c = o + (n.host || n.options.host) + n.options.path,
|
|
2293
|
-
|
|
2294
|
+
var o = "http" + (e ? "s" : "") + "://", c = o + (n.host || n.options.host) + n.options.path, l = w.createJSONPRequest(c, t), f = w.ScriptReceivers.create(function(y, T) {
|
|
2295
|
+
k.remove(f), l.cleanup(), T && T.host && (n.host = T.host), r && r(y, T);
|
|
2294
2296
|
});
|
|
2295
|
-
|
|
2297
|
+
l.send(f);
|
|
2296
2298
|
};
|
|
2297
2299
|
}, rn = {
|
|
2298
2300
|
name: "jsonp",
|
|
2299
2301
|
getAgent: nn
|
|
2300
2302
|
};
|
|
2301
2303
|
const sn = rn;
|
|
2302
|
-
function
|
|
2304
|
+
function be(n, e, t) {
|
|
2303
2305
|
var r = n + (e.useTLS ? "s" : ""), o = e.useTLS ? e.hostTLS : e.hostNonTLS;
|
|
2304
2306
|
return r + "://" + o + t;
|
|
2305
2307
|
}
|
|
2306
|
-
function
|
|
2307
|
-
var t = "/app/" + n, r = "?protocol=" +
|
|
2308
|
+
function ye(n, e) {
|
|
2309
|
+
var t = "/app/" + n, r = "?protocol=" + S.PROTOCOL + "&client=js&version=" + S.VERSION + (e ? "&" + e : "");
|
|
2308
2310
|
return t + r;
|
|
2309
2311
|
}
|
|
2310
2312
|
var on = {
|
|
2311
2313
|
getInitial: function(n, e) {
|
|
2312
|
-
var t = (e.httpPath || "") +
|
|
2313
|
-
return
|
|
2314
|
+
var t = (e.httpPath || "") + ye(n, "flash=false");
|
|
2315
|
+
return be("ws", e, t);
|
|
2314
2316
|
}
|
|
2315
2317
|
}, an = {
|
|
2316
2318
|
getInitial: function(n, e) {
|
|
2317
|
-
var t = (e.httpPath || "/pusher") +
|
|
2318
|
-
return
|
|
2319
|
+
var t = (e.httpPath || "/pusher") + ye(n);
|
|
2320
|
+
return be("http", e, t);
|
|
2319
2321
|
}
|
|
2320
2322
|
}, cn = {
|
|
2321
2323
|
getInitial: function(n, e) {
|
|
2322
|
-
return
|
|
2324
|
+
return be("http", e, e.httpPath || "/pusher");
|
|
2323
2325
|
},
|
|
2324
2326
|
getPath: function(n, e) {
|
|
2325
|
-
return
|
|
2327
|
+
return ye(n);
|
|
2326
2328
|
}
|
|
2327
2329
|
};
|
|
2328
2330
|
class dn {
|
|
@@ -2385,15 +2387,15 @@ function Zi() {
|
|
|
2385
2387
|
emit(e, t, r) {
|
|
2386
2388
|
for (var o = 0; o < this.global_callbacks.length; o++)
|
|
2387
2389
|
this.global_callbacks[o](e, t);
|
|
2388
|
-
var c = this.callbacks.get(e),
|
|
2389
|
-
if (r ?
|
|
2390
|
+
var c = this.callbacks.get(e), l = [];
|
|
2391
|
+
if (r ? l.push(t, r) : t && l.push(t), c && c.length > 0)
|
|
2390
2392
|
for (var o = 0; o < c.length; o++)
|
|
2391
|
-
c[o].fn.apply(c[o].context || window,
|
|
2393
|
+
c[o].fn.apply(c[o].context || window, l);
|
|
2392
2394
|
else this.failThrough && this.failThrough(e, t);
|
|
2393
2395
|
return this;
|
|
2394
2396
|
}
|
|
2395
2397
|
}
|
|
2396
|
-
class
|
|
2398
|
+
class ln extends G {
|
|
2397
2399
|
constructor(e, t, r, o, c) {
|
|
2398
2400
|
super(), this.initialize = w.transportConnectionInitializer, this.hooks = e, this.name = t, this.priority = r, this.key = o, this.options = c, this.state = "new", this.timeline = c.timeline, this.activityTimeout = c.activityTimeout, this.id = this.timeline.generateUniqueID();
|
|
2399
2401
|
}
|
|
@@ -2469,7 +2471,7 @@ function Zi() {
|
|
|
2469
2471
|
})), this.emit(e, t);
|
|
2470
2472
|
}
|
|
2471
2473
|
buildTimelineMessage(e) {
|
|
2472
|
-
return
|
|
2474
|
+
return U({ cid: this.id }, e);
|
|
2473
2475
|
}
|
|
2474
2476
|
}
|
|
2475
2477
|
class ee {
|
|
@@ -2480,10 +2482,10 @@ function Zi() {
|
|
|
2480
2482
|
return this.hooks.isSupported(e);
|
|
2481
2483
|
}
|
|
2482
2484
|
createConnection(e, t, r, o) {
|
|
2483
|
-
return new
|
|
2485
|
+
return new ln(this.hooks, e, t, r, o);
|
|
2484
2486
|
}
|
|
2485
2487
|
}
|
|
2486
|
-
var
|
|
2488
|
+
var hn = new ee({
|
|
2487
2489
|
urls: on,
|
|
2488
2490
|
handlesActivityChecks: !1,
|
|
2489
2491
|
supportsPing: !1,
|
|
@@ -2503,11 +2505,11 @@ function Zi() {
|
|
|
2503
2505
|
isInitialized: function() {
|
|
2504
2506
|
return !0;
|
|
2505
2507
|
}
|
|
2506
|
-
},
|
|
2508
|
+
}, Ke = U({
|
|
2507
2509
|
getSocket: function(n) {
|
|
2508
2510
|
return w.HTTPFactory.createStreamingSocket(n);
|
|
2509
2511
|
}
|
|
2510
|
-
}, Ge),
|
|
2512
|
+
}, Ge), Ve = U({
|
|
2511
2513
|
getSocket: function(n) {
|
|
2512
2514
|
return w.HTTPFactory.createPollingSocket(n);
|
|
2513
2515
|
}
|
|
@@ -2515,8 +2517,8 @@ function Zi() {
|
|
|
2515
2517
|
isSupported: function() {
|
|
2516
2518
|
return w.isXHRSupported();
|
|
2517
2519
|
}
|
|
2518
|
-
}, un = new ee(
|
|
2519
|
-
ws:
|
|
2520
|
+
}, un = new ee(U({}, Ke, Xe)), pn = new ee(U({}, Ve, Xe)), fn = {
|
|
2521
|
+
ws: hn,
|
|
2520
2522
|
xhr_streaming: un,
|
|
2521
2523
|
xhr_polling: pn
|
|
2522
2524
|
};
|
|
@@ -2534,7 +2536,7 @@ function Zi() {
|
|
|
2534
2536
|
},
|
|
2535
2537
|
getSocket: function(n, e) {
|
|
2536
2538
|
return new window.SockJS(n, null, {
|
|
2537
|
-
js_path:
|
|
2539
|
+
js_path: I.getPath("sockjs", {
|
|
2538
2540
|
useTLS: e.useTLS
|
|
2539
2541
|
}),
|
|
2540
2542
|
ignore_null_origin: e.ignoreNullOrigin
|
|
@@ -2550,10 +2552,10 @@ function Zi() {
|
|
|
2550
2552
|
var e = w.isXDRSupported(n.useTLS);
|
|
2551
2553
|
return e;
|
|
2552
2554
|
}
|
|
2553
|
-
}, gn = new ee(
|
|
2555
|
+
}, gn = new ee(U({}, Ke, Je)), vn = new ee(U({}, Ve, Je));
|
|
2554
2556
|
ce.xdr_streaming = gn, ce.xdr_polling = vn, ce.sockjs = mn;
|
|
2555
|
-
const
|
|
2556
|
-
class
|
|
2557
|
+
const bn = ce;
|
|
2558
|
+
class yn extends G {
|
|
2557
2559
|
constructor() {
|
|
2558
2560
|
super();
|
|
2559
2561
|
var e = this;
|
|
@@ -2567,22 +2569,22 @@ function Zi() {
|
|
|
2567
2569
|
return window.navigator.onLine === void 0 ? !0 : window.navigator.onLine;
|
|
2568
2570
|
}
|
|
2569
2571
|
}
|
|
2570
|
-
var wn = new
|
|
2572
|
+
var wn = new yn();
|
|
2571
2573
|
class Cn {
|
|
2572
2574
|
constructor(e, t, r) {
|
|
2573
2575
|
this.manager = e, this.transport = t, this.minPingDelay = r.minPingDelay, this.maxPingDelay = r.maxPingDelay, this.pingDelay = void 0;
|
|
2574
2576
|
}
|
|
2575
2577
|
createConnection(e, t, r, o) {
|
|
2576
|
-
o =
|
|
2578
|
+
o = U({}, o, {
|
|
2577
2579
|
activityTimeout: this.pingDelay
|
|
2578
2580
|
});
|
|
2579
|
-
var c = this.transport.createConnection(e, t, r, o),
|
|
2580
|
-
c.unbind("open", f), c.bind("closed",
|
|
2581
|
-
},
|
|
2582
|
-
if (c.unbind("closed",
|
|
2581
|
+
var c = this.transport.createConnection(e, t, r, o), l = null, f = function() {
|
|
2582
|
+
c.unbind("open", f), c.bind("closed", y), l = N.now();
|
|
2583
|
+
}, y = (T) => {
|
|
2584
|
+
if (c.unbind("closed", y), T.code === 1002 || T.code === 1003)
|
|
2583
2585
|
this.manager.reportDeath();
|
|
2584
|
-
else if (!T.wasClean &&
|
|
2585
|
-
var _ = N.now() -
|
|
2586
|
+
else if (!T.wasClean && l) {
|
|
2587
|
+
var _ = N.now() - l;
|
|
2586
2588
|
_ < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(_ / 2, this.minPingDelay));
|
|
2587
2589
|
}
|
|
2588
2590
|
};
|
|
@@ -2646,7 +2648,7 @@ function Zi() {
|
|
|
2646
2648
|
} : null;
|
|
2647
2649
|
}
|
|
2648
2650
|
}, Y = Ye;
|
|
2649
|
-
class
|
|
2651
|
+
class kn extends G {
|
|
2650
2652
|
constructor(e, t) {
|
|
2651
2653
|
super(), this.id = e, this.transport = t, this.activityTimeout = t.activityTimeout, this.bindListeners();
|
|
2652
2654
|
}
|
|
@@ -2720,7 +2722,7 @@ function Zi() {
|
|
|
2720
2722
|
r && this.emit("error", r), t && this.emit(t, { action: t, error: r });
|
|
2721
2723
|
}
|
|
2722
2724
|
}
|
|
2723
|
-
class
|
|
2725
|
+
class Sn {
|
|
2724
2726
|
constructor(e, t) {
|
|
2725
2727
|
this.transport = e, this.callback = t, this.bindListeners();
|
|
2726
2728
|
}
|
|
@@ -2738,7 +2740,7 @@ function Zi() {
|
|
|
2738
2740
|
return;
|
|
2739
2741
|
}
|
|
2740
2742
|
t.action === "connected" ? this.finish("connected", {
|
|
2741
|
-
connection: new
|
|
2743
|
+
connection: new kn(t.id, this.transport),
|
|
2742
2744
|
activityTimeout: t.activityTimeout
|
|
2743
2745
|
}) : (this.finish(t.action, { error: t.error }), this.transport.close());
|
|
2744
2746
|
}, this.onClosed = (e) => {
|
|
@@ -2751,7 +2753,7 @@ function Zi() {
|
|
|
2751
2753
|
this.transport.unbind("message", this.onMessage), this.transport.unbind("closed", this.onClosed);
|
|
2752
2754
|
}
|
|
2753
2755
|
finish(e, t) {
|
|
2754
|
-
this.callback(
|
|
2756
|
+
this.callback(U({ transport: this.transport, action: e }, t));
|
|
2755
2757
|
}
|
|
2756
2758
|
}
|
|
2757
2759
|
class xn {
|
|
@@ -2824,7 +2826,7 @@ function Zi() {
|
|
|
2824
2826
|
this.subscriptionCancelled = !1;
|
|
2825
2827
|
}
|
|
2826
2828
|
}
|
|
2827
|
-
class
|
|
2829
|
+
class ke extends Ce {
|
|
2828
2830
|
authorize(e, t) {
|
|
2829
2831
|
return this.pusher.config.channelAuthorizer({
|
|
2830
2832
|
channelName: this.name,
|
|
@@ -2866,32 +2868,32 @@ function Zi() {
|
|
|
2866
2868
|
}
|
|
2867
2869
|
var Tn = function(n, e, t, r) {
|
|
2868
2870
|
function o(c) {
|
|
2869
|
-
return c instanceof t ? c : new t(function(
|
|
2870
|
-
|
|
2871
|
+
return c instanceof t ? c : new t(function(l) {
|
|
2872
|
+
l(c);
|
|
2871
2873
|
});
|
|
2872
2874
|
}
|
|
2873
|
-
return new (t || (t = Promise))(function(c,
|
|
2875
|
+
return new (t || (t = Promise))(function(c, l) {
|
|
2874
2876
|
function f(_) {
|
|
2875
2877
|
try {
|
|
2876
2878
|
T(r.next(_));
|
|
2877
2879
|
} catch (R) {
|
|
2878
|
-
|
|
2880
|
+
l(R);
|
|
2879
2881
|
}
|
|
2880
2882
|
}
|
|
2881
|
-
function
|
|
2883
|
+
function y(_) {
|
|
2882
2884
|
try {
|
|
2883
2885
|
T(r.throw(_));
|
|
2884
2886
|
} catch (R) {
|
|
2885
|
-
|
|
2887
|
+
l(R);
|
|
2886
2888
|
}
|
|
2887
2889
|
}
|
|
2888
2890
|
function T(_) {
|
|
2889
|
-
_.done ? c(_.value) : o(_.value).then(f,
|
|
2891
|
+
_.done ? c(_.value) : o(_.value).then(f, y);
|
|
2890
2892
|
}
|
|
2891
2893
|
T((r = r.apply(n, e || [])).next());
|
|
2892
2894
|
});
|
|
2893
2895
|
};
|
|
2894
|
-
class _n extends
|
|
2896
|
+
class _n extends ke {
|
|
2895
2897
|
constructor(e, t) {
|
|
2896
2898
|
super(e, t), this.members = new En();
|
|
2897
2899
|
}
|
|
@@ -2904,8 +2906,8 @@ function Zi() {
|
|
|
2904
2906
|
} else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
|
|
2905
2907
|
this.members.setMyID(this.pusher.user.user_data.id);
|
|
2906
2908
|
else {
|
|
2907
|
-
let
|
|
2908
|
-
L.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${
|
|
2909
|
+
let l = x.buildLogSuffix("authorizationEndpoint");
|
|
2910
|
+
L.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${l}, or the user should be signed in.`), t("Invalid auth response");
|
|
2909
2911
|
return;
|
|
2910
2912
|
}
|
|
2911
2913
|
t(r, o);
|
|
@@ -2946,8 +2948,8 @@ function Zi() {
|
|
|
2946
2948
|
this.members.reset(), super.disconnect();
|
|
2947
2949
|
}
|
|
2948
2950
|
}
|
|
2949
|
-
var An =
|
|
2950
|
-
class Pn extends
|
|
2951
|
+
var An = b(978), Se = b(594);
|
|
2952
|
+
class Pn extends ke {
|
|
2951
2953
|
constructor(e, t, r) {
|
|
2952
2954
|
super(e, t), this.key = null, this.nacl = r;
|
|
2953
2955
|
}
|
|
@@ -2962,11 +2964,11 @@ function Zi() {
|
|
|
2962
2964
|
t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
|
|
2963
2965
|
return;
|
|
2964
2966
|
}
|
|
2965
|
-
this.key = (0,
|
|
2967
|
+
this.key = (0, Se.decode)(c), delete o.shared_secret, t(null, o);
|
|
2966
2968
|
});
|
|
2967
2969
|
}
|
|
2968
2970
|
trigger(e, t) {
|
|
2969
|
-
throw new
|
|
2971
|
+
throw new O("Client events are not currently supported for encrypted channels");
|
|
2970
2972
|
}
|
|
2971
2973
|
handleEvent(e) {
|
|
2972
2974
|
var t = e.event, r = e.data;
|
|
@@ -2985,20 +2987,20 @@ function Zi() {
|
|
|
2985
2987
|
L.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + t);
|
|
2986
2988
|
return;
|
|
2987
2989
|
}
|
|
2988
|
-
let r = (0,
|
|
2990
|
+
let r = (0, Se.decode)(t.ciphertext);
|
|
2989
2991
|
if (r.length < this.nacl.secretbox.overheadLength) {
|
|
2990
2992
|
L.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);
|
|
2991
2993
|
return;
|
|
2992
2994
|
}
|
|
2993
|
-
let o = (0,
|
|
2995
|
+
let o = (0, Se.decode)(t.nonce);
|
|
2994
2996
|
if (o.length < this.nacl.secretbox.nonceLength) {
|
|
2995
2997
|
L.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${o.length}`);
|
|
2996
2998
|
return;
|
|
2997
2999
|
}
|
|
2998
3000
|
let c = this.nacl.secretbox.open(r, o, this.key);
|
|
2999
3001
|
if (c === null) {
|
|
3000
|
-
L.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (
|
|
3001
|
-
if (
|
|
3002
|
+
L.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (l, f) => {
|
|
3003
|
+
if (l) {
|
|
3002
3004
|
L.error(`Failed to make a request to the authEndpoint: ${f}. Unable to fetch new key, so dropping encrypted event`);
|
|
3003
3005
|
return;
|
|
3004
3006
|
}
|
|
@@ -3110,7 +3112,7 @@ function Zi() {
|
|
|
3110
3112
|
this.activityTimer && this.activityTimer.ensureAborted();
|
|
3111
3113
|
}
|
|
3112
3114
|
buildConnectionCallbacks(e) {
|
|
3113
|
-
return
|
|
3115
|
+
return U({}, e, {
|
|
3114
3116
|
message: (t) => {
|
|
3115
3117
|
this.resetActivityCheck(), this.emit("message", t);
|
|
3116
3118
|
},
|
|
@@ -3129,7 +3131,7 @@ function Zi() {
|
|
|
3129
3131
|
});
|
|
3130
3132
|
}
|
|
3131
3133
|
buildHandshakeCallbacks(e) {
|
|
3132
|
-
return
|
|
3134
|
+
return U({}, e, {
|
|
3133
3135
|
connected: (t) => {
|
|
3134
3136
|
this.activityTimeout = Math.min(this.options.activityTimeout, t.activityTimeout, t.connection.activityTimeout || 1 / 0), this.clearUnavailableTimer(), this.setConnection(t.connection), this.socket_id = this.connection.id, this.updateState("connected", { socket_id: this.socket_id });
|
|
3135
3137
|
}
|
|
@@ -3206,20 +3208,20 @@ function Zi() {
|
|
|
3206
3208
|
function jn(n, e) {
|
|
3207
3209
|
if (n.indexOf("private-encrypted-") === 0) {
|
|
3208
3210
|
if (e.config.nacl)
|
|
3209
|
-
return
|
|
3211
|
+
return K.createEncryptedChannel(n, e, e.config.nacl);
|
|
3210
3212
|
let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", r = x.buildLogSuffix("encryptedChannelSupport");
|
|
3211
|
-
throw new
|
|
3213
|
+
throw new O(`${t}. ${r}`);
|
|
3212
3214
|
} else {
|
|
3213
3215
|
if (n.indexOf("private-") === 0)
|
|
3214
|
-
return
|
|
3216
|
+
return K.createPrivateChannel(n, e);
|
|
3215
3217
|
if (n.indexOf("presence-") === 0)
|
|
3216
|
-
return
|
|
3218
|
+
return K.createPresenceChannel(n, e);
|
|
3217
3219
|
if (n.indexOf("#") === 0)
|
|
3218
3220
|
throw new C('Cannot create a channel with name "' + n + '".');
|
|
3219
|
-
return
|
|
3221
|
+
return K.createChannel(n, e);
|
|
3220
3222
|
}
|
|
3221
3223
|
}
|
|
3222
|
-
var
|
|
3224
|
+
var Wn = {
|
|
3223
3225
|
createChannels() {
|
|
3224
3226
|
return new Rn();
|
|
3225
3227
|
},
|
|
@@ -3230,7 +3232,7 @@ function Zi() {
|
|
|
3230
3232
|
return new Ce(n, e);
|
|
3231
3233
|
},
|
|
3232
3234
|
createPrivateChannel(n, e) {
|
|
3233
|
-
return new
|
|
3235
|
+
return new ke(n, e);
|
|
3234
3236
|
},
|
|
3235
3237
|
createPresenceChannel(n, e) {
|
|
3236
3238
|
return new _n(n, e);
|
|
@@ -3242,19 +3244,19 @@ function Zi() {
|
|
|
3242
3244
|
return new xn(n, e);
|
|
3243
3245
|
},
|
|
3244
3246
|
createHandshake(n, e) {
|
|
3245
|
-
return new
|
|
3247
|
+
return new Sn(n, e);
|
|
3246
3248
|
},
|
|
3247
3249
|
createAssistantToTheTransportManager(n, e, t) {
|
|
3248
3250
|
return new Cn(n, e, t);
|
|
3249
3251
|
}
|
|
3250
3252
|
};
|
|
3251
|
-
const
|
|
3253
|
+
const K = Wn;
|
|
3252
3254
|
class Ze {
|
|
3253
3255
|
constructor(e) {
|
|
3254
3256
|
this.options = e || {}, this.livesLeft = this.options.lives || 1 / 0;
|
|
3255
3257
|
}
|
|
3256
3258
|
getAssistant(e) {
|
|
3257
|
-
return
|
|
3259
|
+
return K.createAssistantToTheTransportManager(this, e, {
|
|
3258
3260
|
minPingDelay: this.options.minPingDelay,
|
|
3259
3261
|
maxPingDelay: this.options.maxPingDelay
|
|
3260
3262
|
});
|
|
@@ -3274,30 +3276,30 @@ function Zi() {
|
|
|
3274
3276
|
return $e(this.strategies, N.method("isSupported"));
|
|
3275
3277
|
}
|
|
3276
3278
|
connect(e, t) {
|
|
3277
|
-
var r = this.strategies, o = 0, c = this.timeout,
|
|
3278
|
-
T ? t(null, T) : (o = o + 1, this.loop && (o = o % r.length), o < r.length ? (c && (c = c * 2, this.timeoutLimit && (c = Math.min(c, this.timeoutLimit))),
|
|
3279
|
+
var r = this.strategies, o = 0, c = this.timeout, l = null, f = (y, T) => {
|
|
3280
|
+
T ? t(null, T) : (o = o + 1, this.loop && (o = o % r.length), o < r.length ? (c && (c = c * 2, this.timeoutLimit && (c = Math.min(c, this.timeoutLimit))), l = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f)) : t(!0));
|
|
3279
3281
|
};
|
|
3280
|
-
return
|
|
3282
|
+
return l = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f), {
|
|
3281
3283
|
abort: function() {
|
|
3282
|
-
|
|
3284
|
+
l.abort();
|
|
3283
3285
|
},
|
|
3284
|
-
forceMinPriority: function(
|
|
3285
|
-
e =
|
|
3286
|
+
forceMinPriority: function(y) {
|
|
3287
|
+
e = y, l && l.forceMinPriority(y);
|
|
3286
3288
|
}
|
|
3287
3289
|
};
|
|
3288
3290
|
}
|
|
3289
3291
|
tryStrategy(e, t, r, o) {
|
|
3290
|
-
var c = null,
|
|
3292
|
+
var c = null, l = null;
|
|
3291
3293
|
return r.timeout > 0 && (c = new J(r.timeout, function() {
|
|
3292
|
-
|
|
3293
|
-
})),
|
|
3294
|
-
f && c && c.isRunning() && !r.failFast || (c && c.ensureAborted(), o(f,
|
|
3294
|
+
l.abort(), o(!0);
|
|
3295
|
+
})), l = e.connect(t, function(f, y) {
|
|
3296
|
+
f && c && c.isRunning() && !r.failFast || (c && c.ensureAborted(), o(f, y));
|
|
3295
3297
|
}), {
|
|
3296
3298
|
abort: function() {
|
|
3297
|
-
c && c.ensureAborted(),
|
|
3299
|
+
c && c.ensureAborted(), l.abort();
|
|
3298
3300
|
},
|
|
3299
3301
|
forceMinPriority: function(f) {
|
|
3300
|
-
|
|
3302
|
+
l.forceMinPriority(f);
|
|
3301
3303
|
}
|
|
3302
3304
|
};
|
|
3303
3305
|
}
|
|
@@ -3310,26 +3312,26 @@ function Zi() {
|
|
|
3310
3312
|
return $e(this.strategies, N.method("isSupported"));
|
|
3311
3313
|
}
|
|
3312
3314
|
connect(e, t) {
|
|
3313
|
-
return
|
|
3314
|
-
return function(c,
|
|
3315
|
+
return Hn(this.strategies, e, function(r, o) {
|
|
3316
|
+
return function(c, l) {
|
|
3315
3317
|
if (o[r].error = c, c) {
|
|
3316
3318
|
Nn(o) && t(!0);
|
|
3317
3319
|
return;
|
|
3318
3320
|
}
|
|
3319
3321
|
ie(o, function(f) {
|
|
3320
|
-
f.forceMinPriority(
|
|
3321
|
-
}), t(null,
|
|
3322
|
+
f.forceMinPriority(l.transport.priority);
|
|
3323
|
+
}), t(null, l);
|
|
3322
3324
|
};
|
|
3323
3325
|
});
|
|
3324
3326
|
}
|
|
3325
3327
|
}
|
|
3326
|
-
function
|
|
3327
|
-
var r = Be(n, function(o, c,
|
|
3328
|
+
function Hn(n, e, t) {
|
|
3329
|
+
var r = Be(n, function(o, c, l, f) {
|
|
3328
3330
|
return o.connect(e, t(c, f));
|
|
3329
3331
|
});
|
|
3330
3332
|
return {
|
|
3331
3333
|
abort: function() {
|
|
3332
|
-
ie(r,
|
|
3334
|
+
ie(r, In);
|
|
3333
3335
|
},
|
|
3334
3336
|
forceMinPriority: function(o) {
|
|
3335
3337
|
ie(r, function(c) {
|
|
@@ -3339,11 +3341,11 @@ function Zi() {
|
|
|
3339
3341
|
};
|
|
3340
3342
|
}
|
|
3341
3343
|
function Nn(n) {
|
|
3342
|
-
return
|
|
3344
|
+
return Kt(n, function(e) {
|
|
3343
3345
|
return !!e.error;
|
|
3344
3346
|
});
|
|
3345
3347
|
}
|
|
3346
|
-
function
|
|
3348
|
+
function In(n) {
|
|
3347
3349
|
!n.error && !n.aborted && (n.abort(), n.aborted = !0);
|
|
3348
3350
|
}
|
|
3349
3351
|
class zn {
|
|
@@ -3354,20 +3356,20 @@ function Zi() {
|
|
|
3354
3356
|
return this.strategy.isSupported();
|
|
3355
3357
|
}
|
|
3356
3358
|
connect(e, t) {
|
|
3357
|
-
var r = this.usingTLS, o =
|
|
3359
|
+
var r = this.usingTLS, o = Un(r), c = o && o.cacheSkipCount ? o.cacheSkipCount : 0, l = [this.strategy];
|
|
3358
3360
|
if (o && o.timestamp + this.ttl >= N.now()) {
|
|
3359
3361
|
var f = this.transports[o.transport];
|
|
3360
3362
|
f && (["ws", "wss"].includes(o.transport) || c > 3 ? (this.timeline.info({
|
|
3361
3363
|
cached: !0,
|
|
3362
3364
|
transport: o.transport,
|
|
3363
3365
|
latency: o.latency
|
|
3364
|
-
}),
|
|
3366
|
+
}), l.push(new Z([f], {
|
|
3365
3367
|
timeout: o.latency * 2 + 1e3,
|
|
3366
3368
|
failFast: !0
|
|
3367
3369
|
}))) : c++);
|
|
3368
3370
|
}
|
|
3369
|
-
var
|
|
3370
|
-
R ? (Qe(r),
|
|
3371
|
+
var y = N.now(), T = l.pop().connect(e, function _(R, ue) {
|
|
3372
|
+
R ? (Qe(r), l.length > 0 ? (y = N.now(), T = l.pop().connect(e, _)) : t(R)) : (On(r, ue.transport.name, N.now() - y, c), t(null, ue));
|
|
3371
3373
|
});
|
|
3372
3374
|
return {
|
|
3373
3375
|
abort: function() {
|
|
@@ -3382,7 +3384,7 @@ function Zi() {
|
|
|
3382
3384
|
function Ee(n) {
|
|
3383
3385
|
return "pusherTransport" + (n ? "TLS" : "NonTLS");
|
|
3384
3386
|
}
|
|
3385
|
-
function
|
|
3387
|
+
function Un(n) {
|
|
3386
3388
|
var e = w.getLocalStorage();
|
|
3387
3389
|
if (e)
|
|
3388
3390
|
try {
|
|
@@ -3394,7 +3396,7 @@ function Zi() {
|
|
|
3394
3396
|
}
|
|
3395
3397
|
return null;
|
|
3396
3398
|
}
|
|
3397
|
-
function
|
|
3399
|
+
function On(n, e, t, r) {
|
|
3398
3400
|
var o = w.getLocalStorage();
|
|
3399
3401
|
if (o)
|
|
3400
3402
|
try {
|
|
@@ -3430,8 +3432,8 @@ function Zi() {
|
|
|
3430
3432
|
abort: function() {
|
|
3431
3433
|
c.ensureAborted(), o && o.abort();
|
|
3432
3434
|
},
|
|
3433
|
-
forceMinPriority: function(
|
|
3434
|
-
e =
|
|
3435
|
+
forceMinPriority: function(l) {
|
|
3436
|
+
e = l, o && o.forceMinPriority(l);
|
|
3435
3437
|
}
|
|
3436
3438
|
};
|
|
3437
3439
|
}
|
|
@@ -3470,21 +3472,21 @@ function Zi() {
|
|
|
3470
3472
|
}
|
|
3471
3473
|
var Mn = function(n, e, t) {
|
|
3472
3474
|
var r = {};
|
|
3473
|
-
function o(ut,
|
|
3474
|
-
var pt = t(n, ut,
|
|
3475
|
+
function o(ut, Ui, Oi, qi, Mi) {
|
|
3476
|
+
var pt = t(n, ut, Ui, Oi, qi, Mi);
|
|
3475
3477
|
return r[ut] = pt, pt;
|
|
3476
3478
|
}
|
|
3477
3479
|
var c = Object.assign({}, e, {
|
|
3478
3480
|
hostNonTLS: n.wsHost + ":" + n.wsPort,
|
|
3479
3481
|
hostTLS: n.wsHost + ":" + n.wssPort,
|
|
3480
3482
|
httpPath: n.wsPath
|
|
3481
|
-
}),
|
|
3483
|
+
}), l = Object.assign({}, c, {
|
|
3482
3484
|
useTLS: !0
|
|
3483
3485
|
}), f = Object.assign({}, e, {
|
|
3484
3486
|
hostNonTLS: n.httpHost + ":" + n.httpPort,
|
|
3485
3487
|
hostTLS: n.httpHost + ":" + n.httpsPort,
|
|
3486
3488
|
httpPath: n.httpPath
|
|
3487
|
-
}),
|
|
3489
|
+
}), y = {
|
|
3488
3490
|
loop: !0,
|
|
3489
3491
|
timeout: 15e3,
|
|
3490
3492
|
timeoutLimit: 6e4
|
|
@@ -3495,22 +3497,22 @@ function Zi() {
|
|
|
3495
3497
|
lives: 2,
|
|
3496
3498
|
minPingDelay: 1e4,
|
|
3497
3499
|
maxPingDelay: n.activityTimeout
|
|
3498
|
-
}), R = o("ws", "ws", 3, c, T), ue = o("wss", "ws", 3,
|
|
3499
|
-
new re(se(ot), ot,
|
|
3500
|
-
],
|
|
3500
|
+
}), R = o("ws", "ws", 3, c, T), ue = o("wss", "ws", 3, l, T), Wi = o("sockjs", "sockjs", 1, f), ot = o("xhr_streaming", "xhr_streaming", 1, f, _), Hi = o("xdr_streaming", "xdr_streaming", 1, f, _), at = o("xhr_polling", "xhr_polling", 1, f), Ni = o("xdr_polling", "xdr_polling", 1, f), ct = new Z([R], y), Ii = new Z([ue], y), zi = new Z([Wi], y), dt = new Z([
|
|
3501
|
+
new re(se(ot), ot, Hi)
|
|
3502
|
+
], y), lt = new Z([
|
|
3501
3503
|
new re(se(at), at, Ni)
|
|
3502
|
-
],
|
|
3504
|
+
], y), ht = new Z([
|
|
3503
3505
|
new re(se(dt), new xe([
|
|
3504
3506
|
dt,
|
|
3505
|
-
new de(
|
|
3506
|
-
]),
|
|
3507
|
-
],
|
|
3507
|
+
new de(lt, { delay: 4e3 })
|
|
3508
|
+
]), lt)
|
|
3509
|
+
], y), Ae = new re(se(ht), ht, zi), Pe;
|
|
3508
3510
|
return e.useTLS ? Pe = new xe([
|
|
3509
3511
|
ct,
|
|
3510
3512
|
new de(Ae, { delay: 2e3 })
|
|
3511
3513
|
]) : Pe = new xe([
|
|
3512
3514
|
ct,
|
|
3513
|
-
new de(
|
|
3515
|
+
new de(Ii, { delay: 2e3 }),
|
|
3514
3516
|
new de(Ae, { delay: 5e3 })
|
|
3515
3517
|
]), new zn(new qn(new re(se(R), Pe, Ae)), r, {
|
|
3516
3518
|
ttl: 18e5,
|
|
@@ -3523,7 +3525,7 @@ function Zi() {
|
|
|
3523
3525
|
var n = this;
|
|
3524
3526
|
n.timeline.info(n.buildTimelineMessage({
|
|
3525
3527
|
transport: n.name + (n.options.useTLS ? "s" : "")
|
|
3526
|
-
})), n.hooks.isInitialized() ? n.changeState("initialized") : n.hooks.file ? (n.changeState("initializing"),
|
|
3528
|
+
})), n.hooks.isInitialized() ? n.changeState("initialized") : n.hooks.file ? (n.changeState("initializing"), I.load(n.hooks.file, { useTLS: n.options.useTLS }, function(e, t) {
|
|
3527
3529
|
n.hooks.isInitialized() ? (n.changeState("initialized"), t(!0)) : (e && n.onError(e), n.onClose(), t(!1));
|
|
3528
3530
|
})) : n.onClose();
|
|
3529
3531
|
}
|
|
@@ -3545,7 +3547,7 @@ function Zi() {
|
|
|
3545
3547
|
}
|
|
3546
3548
|
};
|
|
3547
3549
|
const $n = Fn, Gn = 256 * 1024;
|
|
3548
|
-
class
|
|
3550
|
+
class Kn extends G {
|
|
3549
3551
|
constructor(e, t, r) {
|
|
3550
3552
|
super(), this.hooks = e, this.method = t, this.url = r;
|
|
3551
3553
|
}
|
|
@@ -3581,7 +3583,7 @@ function Zi() {
|
|
|
3581
3583
|
n[n.CONNECTING = 0] = "CONNECTING", n[n.OPEN = 1] = "OPEN", n[n.CLOSED = 3] = "CLOSED";
|
|
3582
3584
|
})(Te || (Te = {}));
|
|
3583
3585
|
const Q = Te;
|
|
3584
|
-
var
|
|
3586
|
+
var Vn = 1;
|
|
3585
3587
|
class Xn {
|
|
3586
3588
|
constructor(e, t) {
|
|
3587
3589
|
this.hooks = e, this.session = tt(1e3) + "/" + Qn(8), this.location = Jn(t), this.readyState = Q.CONNECTING, this.openStream();
|
|
@@ -3684,7 +3686,7 @@ function Zi() {
|
|
|
3684
3686
|
}
|
|
3685
3687
|
function et(n) {
|
|
3686
3688
|
var e = n.indexOf("?") === -1 ? "?" : "&";
|
|
3687
|
-
return n + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" +
|
|
3689
|
+
return n + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" + Vn++;
|
|
3688
3690
|
}
|
|
3689
3691
|
function Zn(n, e) {
|
|
3690
3692
|
var t = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(n);
|
|
@@ -3761,7 +3763,7 @@ function Zi() {
|
|
|
3761
3763
|
return this.createRequest(oi, n, e);
|
|
3762
3764
|
},
|
|
3763
3765
|
createRequest(n, e, t) {
|
|
3764
|
-
return new
|
|
3766
|
+
return new Kn(n, e, t);
|
|
3765
3767
|
}
|
|
3766
3768
|
};
|
|
3767
3769
|
const nt = ai;
|
|
@@ -3771,10 +3773,10 @@ function Zi() {
|
|
|
3771
3773
|
var ci = {
|
|
3772
3774
|
nextAuthCallbackID: 1,
|
|
3773
3775
|
auth_callbacks: {},
|
|
3774
|
-
ScriptReceivers:
|
|
3776
|
+
ScriptReceivers: k,
|
|
3775
3777
|
DependenciesReceivers: B,
|
|
3776
3778
|
getDefaultStrategy: Bn,
|
|
3777
|
-
Transports:
|
|
3779
|
+
Transports: bn,
|
|
3778
3780
|
transportConnectionInitializer: Dn,
|
|
3779
3781
|
HTTPFactory: nt,
|
|
3780
3782
|
TimelineTransport: sn,
|
|
@@ -3789,7 +3791,7 @@ function Zi() {
|
|
|
3789
3791
|
var e = () => {
|
|
3790
3792
|
this.onDocumentBody(n.ready);
|
|
3791
3793
|
};
|
|
3792
|
-
window.JSON ? e() :
|
|
3794
|
+
window.JSON ? e() : I.load("json2", {}, e);
|
|
3793
3795
|
},
|
|
3794
3796
|
getDocument() {
|
|
3795
3797
|
return document;
|
|
@@ -3867,28 +3869,28 @@ function Zi() {
|
|
|
3867
3869
|
(function(n) {
|
|
3868
3870
|
n[n.ERROR = 3] = "ERROR", n[n.INFO = 6] = "INFO", n[n.DEBUG = 7] = "DEBUG";
|
|
3869
3871
|
})(_e || (_e = {}));
|
|
3870
|
-
const
|
|
3872
|
+
const le = _e;
|
|
3871
3873
|
class di {
|
|
3872
3874
|
constructor(e, t, r) {
|
|
3873
3875
|
this.key = e, this.session = t, this.events = [], this.options = r || {}, this.sent = 0, this.uniqueID = 0;
|
|
3874
3876
|
}
|
|
3875
3877
|
log(e, t) {
|
|
3876
|
-
e <= this.options.level && (this.events.push(
|
|
3878
|
+
e <= this.options.level && (this.events.push(U({}, t, { timestamp: N.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
|
|
3877
3879
|
}
|
|
3878
3880
|
error(e) {
|
|
3879
|
-
this.log(
|
|
3881
|
+
this.log(le.ERROR, e);
|
|
3880
3882
|
}
|
|
3881
3883
|
info(e) {
|
|
3882
|
-
this.log(
|
|
3884
|
+
this.log(le.INFO, e);
|
|
3883
3885
|
}
|
|
3884
3886
|
debug(e) {
|
|
3885
|
-
this.log(
|
|
3887
|
+
this.log(le.DEBUG, e);
|
|
3886
3888
|
}
|
|
3887
3889
|
isEmpty() {
|
|
3888
3890
|
return this.events.length === 0;
|
|
3889
3891
|
}
|
|
3890
3892
|
send(e, t) {
|
|
3891
|
-
var r =
|
|
3893
|
+
var r = U({
|
|
3892
3894
|
session: this.session,
|
|
3893
3895
|
bundle: this.sent + 1,
|
|
3894
3896
|
key: this.key,
|
|
@@ -3906,7 +3908,7 @@ function Zi() {
|
|
|
3906
3908
|
return this.uniqueID++, this.uniqueID;
|
|
3907
3909
|
}
|
|
3908
3910
|
}
|
|
3909
|
-
class
|
|
3911
|
+
class li {
|
|
3910
3912
|
constructor(e, t, r, o) {
|
|
3911
3913
|
this.name = e, this.priority = t, this.transport = r, this.options = o || {};
|
|
3912
3914
|
}
|
|
@@ -3918,24 +3920,24 @@ function Zi() {
|
|
|
3918
3920
|
connect(e, t) {
|
|
3919
3921
|
if (this.isSupported()) {
|
|
3920
3922
|
if (this.priority < e)
|
|
3921
|
-
return it(new
|
|
3923
|
+
return it(new H(), t);
|
|
3922
3924
|
} else return it(new M(), t);
|
|
3923
|
-
var r = !1, o = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), c = null,
|
|
3924
|
-
o.unbind("initialized",
|
|
3925
|
+
var r = !1, o = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), c = null, l = function() {
|
|
3926
|
+
o.unbind("initialized", l), o.connect();
|
|
3925
3927
|
}, f = function() {
|
|
3926
|
-
c =
|
|
3928
|
+
c = K.createHandshake(o, function(R) {
|
|
3927
3929
|
r = !0, _(), t(null, R);
|
|
3928
3930
|
});
|
|
3929
|
-
},
|
|
3931
|
+
}, y = function(R) {
|
|
3930
3932
|
_(), t(R);
|
|
3931
3933
|
}, T = function() {
|
|
3932
3934
|
_();
|
|
3933
3935
|
var R;
|
|
3934
3936
|
R = ae(o), t(new z(R));
|
|
3935
3937
|
}, _ = function() {
|
|
3936
|
-
o.unbind("initialized",
|
|
3938
|
+
o.unbind("initialized", l), o.unbind("open", f), o.unbind("error", y), o.unbind("closed", T);
|
|
3937
3939
|
};
|
|
3938
|
-
return o.bind("initialized",
|
|
3940
|
+
return o.bind("initialized", l), o.bind("open", f), o.bind("error", y), o.bind("closed", T), o.initialize(), {
|
|
3939
3941
|
abort: () => {
|
|
3940
3942
|
r || (_(), c ? c.close() : o.close());
|
|
3941
3943
|
},
|
|
@@ -3955,13 +3957,13 @@ function Zi() {
|
|
|
3955
3957
|
}
|
|
3956
3958
|
};
|
|
3957
3959
|
}
|
|
3958
|
-
const { Transports:
|
|
3960
|
+
const { Transports: hi } = w;
|
|
3959
3961
|
var ui = function(n, e, t, r, o, c) {
|
|
3960
|
-
var
|
|
3961
|
-
if (!
|
|
3962
|
-
throw new
|
|
3963
|
-
var f = (!n.enabledTransports || qe(n.enabledTransports, e) !== -1) && (!n.disabledTransports || qe(n.disabledTransports, e) === -1),
|
|
3964
|
-
return f ? (o = Object.assign({ ignoreNullOrigin: n.ignoreNullOrigin }, o),
|
|
3962
|
+
var l = hi[t];
|
|
3963
|
+
if (!l)
|
|
3964
|
+
throw new V(t);
|
|
3965
|
+
var f = (!n.enabledTransports || qe(n.enabledTransports, e) !== -1) && (!n.disabledTransports || qe(n.disabledTransports, e) === -1), y;
|
|
3966
|
+
return f ? (o = Object.assign({ ignoreNullOrigin: n.ignoreNullOrigin }, o), y = new li(e, r, c ? c.getAssistant(l) : l, o)) : y = pi, y;
|
|
3965
3967
|
}, pi = {
|
|
3966
3968
|
isSupported: function() {
|
|
3967
3969
|
return !1;
|
|
@@ -4014,14 +4016,14 @@ function Zi() {
|
|
|
4014
4016
|
t += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(o[r]);
|
|
4015
4017
|
}
|
|
4016
4018
|
return t;
|
|
4017
|
-
},
|
|
4019
|
+
}, bi = (n) => {
|
|
4018
4020
|
if (typeof w.getAuthorizers()[n.transport] > "u")
|
|
4019
4021
|
throw `'${n.transport}' is not a recognized auth transport`;
|
|
4020
4022
|
return (e, t) => {
|
|
4021
4023
|
const r = vi(e, n);
|
|
4022
4024
|
w.getAuthorizers()[n.transport](w, r, n, u.ChannelAuthorization, t);
|
|
4023
4025
|
};
|
|
4024
|
-
},
|
|
4026
|
+
}, yi = (n, e, t) => {
|
|
4025
4027
|
const r = {
|
|
4026
4028
|
authTransport: e.transport,
|
|
4027
4029
|
authEndpoint: e.endpoint,
|
|
@@ -4031,26 +4033,26 @@ function Zi() {
|
|
|
4031
4033
|
}
|
|
4032
4034
|
};
|
|
4033
4035
|
return (o, c) => {
|
|
4034
|
-
const
|
|
4035
|
-
t(
|
|
4036
|
+
const l = n.channel(o.channelName);
|
|
4037
|
+
t(l, r).authorize(o.socketId, c);
|
|
4036
4038
|
};
|
|
4037
4039
|
};
|
|
4038
4040
|
function rt(n, e) {
|
|
4039
4041
|
let t = {
|
|
4040
|
-
activityTimeout: n.activityTimeout ||
|
|
4042
|
+
activityTimeout: n.activityTimeout || S.activityTimeout,
|
|
4041
4043
|
cluster: n.cluster,
|
|
4042
|
-
httpPath: n.httpPath ||
|
|
4043
|
-
httpPort: n.httpPort ||
|
|
4044
|
-
httpsPort: n.httpsPort ||
|
|
4045
|
-
pongTimeout: n.pongTimeout ||
|
|
4046
|
-
statsHost: n.statsHost ||
|
|
4047
|
-
unavailableTimeout: n.unavailableTimeout ||
|
|
4048
|
-
wsPath: n.wsPath ||
|
|
4049
|
-
wsPort: n.wsPort ||
|
|
4050
|
-
wssPort: n.wssPort ||
|
|
4044
|
+
httpPath: n.httpPath || S.httpPath,
|
|
4045
|
+
httpPort: n.httpPort || S.httpPort,
|
|
4046
|
+
httpsPort: n.httpsPort || S.httpsPort,
|
|
4047
|
+
pongTimeout: n.pongTimeout || S.pongTimeout,
|
|
4048
|
+
statsHost: n.statsHost || S.stats_host,
|
|
4049
|
+
unavailableTimeout: n.unavailableTimeout || S.unavailableTimeout,
|
|
4050
|
+
wsPath: n.wsPath || S.wsPath,
|
|
4051
|
+
wsPort: n.wsPort || S.wsPort,
|
|
4052
|
+
wssPort: n.wssPort || S.wssPort,
|
|
4051
4053
|
enableStats: xi(n),
|
|
4052
4054
|
httpHost: wi(n),
|
|
4053
|
-
useTLS:
|
|
4055
|
+
useTLS: Si(n),
|
|
4054
4056
|
wsHost: Ci(n),
|
|
4055
4057
|
userAuthenticator: Ei(n),
|
|
4056
4058
|
channelAuthorizer: _i(n, e)
|
|
@@ -4058,15 +4060,15 @@ function Zi() {
|
|
|
4058
4060
|
return "disabledTransports" in n && (t.disabledTransports = n.disabledTransports), "enabledTransports" in n && (t.enabledTransports = n.enabledTransports), "ignoreNullOrigin" in n && (t.ignoreNullOrigin = n.ignoreNullOrigin), "timelineParams" in n && (t.timelineParams = n.timelineParams), "nacl" in n && (t.nacl = n.nacl), t;
|
|
4059
4061
|
}
|
|
4060
4062
|
function wi(n) {
|
|
4061
|
-
return n.httpHost ? n.httpHost : n.cluster ? `sockjs-${n.cluster}.pusher.com` :
|
|
4063
|
+
return n.httpHost ? n.httpHost : n.cluster ? `sockjs-${n.cluster}.pusher.com` : S.httpHost;
|
|
4062
4064
|
}
|
|
4063
4065
|
function Ci(n) {
|
|
4064
|
-
return n.wsHost ? n.wsHost :
|
|
4066
|
+
return n.wsHost ? n.wsHost : ki(n.cluster);
|
|
4065
4067
|
}
|
|
4066
|
-
function
|
|
4068
|
+
function ki(n) {
|
|
4067
4069
|
return `ws-${n}.pusher.com`;
|
|
4068
4070
|
}
|
|
4069
|
-
function
|
|
4071
|
+
function Si(n) {
|
|
4070
4072
|
return w.getProtocol() === "https:" ? !0 : n.forceTLS !== !1;
|
|
4071
4073
|
}
|
|
4072
4074
|
function xi(n) {
|
|
@@ -4074,25 +4076,25 @@ function Zi() {
|
|
|
4074
4076
|
}
|
|
4075
4077
|
const st = (n) => "customHandler" in n && n.customHandler != null;
|
|
4076
4078
|
function Ei(n) {
|
|
4077
|
-
const e = Object.assign(Object.assign({},
|
|
4079
|
+
const e = Object.assign(Object.assign({}, S.userAuthentication), n.userAuthentication);
|
|
4078
4080
|
return st(e) ? e.customHandler : gi(e);
|
|
4079
4081
|
}
|
|
4080
4082
|
function Ti(n, e) {
|
|
4081
4083
|
let t;
|
|
4082
4084
|
if ("channelAuthorization" in n)
|
|
4083
|
-
t = Object.assign(Object.assign({},
|
|
4085
|
+
t = Object.assign(Object.assign({}, S.channelAuthorization), n.channelAuthorization);
|
|
4084
4086
|
else if (t = {
|
|
4085
|
-
transport: n.authTransport ||
|
|
4086
|
-
endpoint: n.authEndpoint ||
|
|
4087
|
+
transport: n.authTransport || S.authTransport,
|
|
4088
|
+
endpoint: n.authEndpoint || S.authEndpoint
|
|
4087
4089
|
}, "auth" in n && ("params" in n.auth && (t.params = n.auth.params), "headers" in n.auth && (t.headers = n.auth.headers)), "authorizer" in n)
|
|
4088
4090
|
return {
|
|
4089
|
-
customHandler:
|
|
4091
|
+
customHandler: yi(e, t, n.authorizer)
|
|
4090
4092
|
};
|
|
4091
4093
|
return t;
|
|
4092
4094
|
}
|
|
4093
4095
|
function _i(n, e) {
|
|
4094
4096
|
const t = Ti(n, e);
|
|
4095
|
-
return st(t) ? t.customHandler :
|
|
4097
|
+
return st(t) ? t.customHandler : bi(t);
|
|
4096
4098
|
}
|
|
4097
4099
|
class Ai extends G {
|
|
4098
4100
|
constructor(e) {
|
|
@@ -4194,19 +4196,19 @@ function Zi() {
|
|
|
4194
4196
|
}));
|
|
4195
4197
|
}
|
|
4196
4198
|
constructor(e, t) {
|
|
4197
|
-
ji(e), fi(t), this.key = e, this.options = t, this.config = rt(this.options, this), this.channels =
|
|
4199
|
+
ji(e), fi(t), this.key = e, this.options = t, this.config = rt(this.options, this), this.channels = K.createChannels(), this.global_emitter = new G(), this.sessionID = w.randomInt(1e9), this.timeline = new di(this.key, this.sessionID, {
|
|
4198
4200
|
cluster: this.config.cluster,
|
|
4199
4201
|
features: j.getClientFeatures(),
|
|
4200
4202
|
params: this.config.timelineParams || {},
|
|
4201
4203
|
limit: 50,
|
|
4202
|
-
level:
|
|
4203
|
-
version:
|
|
4204
|
-
}), this.config.enableStats && (this.timelineSender =
|
|
4204
|
+
level: le.INFO,
|
|
4205
|
+
version: S.VERSION
|
|
4206
|
+
}), this.config.enableStats && (this.timelineSender = K.createTimelineSender(this.timeline, {
|
|
4205
4207
|
host: this.config.statsHost,
|
|
4206
4208
|
path: "/timeline/v2/" + w.TimelineTransport.name
|
|
4207
4209
|
}));
|
|
4208
4210
|
var r = (o) => w.getDefaultStrategy(this.config, o, ui);
|
|
4209
|
-
this.connection =
|
|
4211
|
+
this.connection = K.createConnectionManager(this.key, {
|
|
4210
4212
|
getStrategy: r,
|
|
4211
4213
|
timeline: this.timeline,
|
|
4212
4214
|
activityTimeout: this.config.activityTimeout,
|
|
@@ -4216,12 +4218,12 @@ function Zi() {
|
|
|
4216
4218
|
}), this.connection.bind("connected", () => {
|
|
4217
4219
|
this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
|
|
4218
4220
|
}), this.connection.bind("message", (o) => {
|
|
4219
|
-
var c = o.event,
|
|
4221
|
+
var c = o.event, l = c.indexOf("pusher_internal:") === 0;
|
|
4220
4222
|
if (o.channel) {
|
|
4221
4223
|
var f = this.channel(o.channel);
|
|
4222
4224
|
f && f.handleEvent(o);
|
|
4223
4225
|
}
|
|
4224
|
-
|
|
4226
|
+
l || this.global_emitter.emit(o.event, o.data);
|
|
4225
4227
|
}), this.connection.bind("connecting", () => {
|
|
4226
4228
|
this.channels.disconnect();
|
|
4227
4229
|
}), this.connection.bind("disconnected", () => {
|
|
@@ -4290,7 +4292,7 @@ function Zi() {
|
|
|
4290
4292
|
}
|
|
4291
4293
|
}
|
|
4292
4294
|
j.instances = [], j.isReady = !1, j.logToConsole = !1, j.Runtime = w, j.ScriptReceivers = w.ScriptReceivers, j.DependenciesReceivers = w.DependenciesReceivers, j.auth_callbacks = w.auth_callbacks;
|
|
4293
|
-
const
|
|
4295
|
+
const he = j;
|
|
4294
4296
|
function ji(n) {
|
|
4295
4297
|
if (n == null)
|
|
4296
4298
|
throw "You must pass your app key when you instantiate Pusher.";
|
|
@@ -4303,7 +4305,7 @@ function Zi() {
|
|
|
4303
4305
|
var v = a[m];
|
|
4304
4306
|
if (v !== void 0)
|
|
4305
4307
|
return v.exports;
|
|
4306
|
-
var
|
|
4308
|
+
var b = a[m] = {
|
|
4307
4309
|
/******/
|
|
4308
4310
|
// no module.id needed
|
|
4309
4311
|
/******/
|
|
@@ -4312,14 +4314,14 @@ function Zi() {
|
|
|
4312
4314
|
exports: {}
|
|
4313
4315
|
/******/
|
|
4314
4316
|
};
|
|
4315
|
-
return s[m].call(
|
|
4317
|
+
return s[m].call(b.exports, b, b.exports, d), b.exports;
|
|
4316
4318
|
}
|
|
4317
4319
|
d.d = (m, v) => {
|
|
4318
|
-
for (var
|
|
4319
|
-
d.o(v,
|
|
4320
|
+
for (var b in v)
|
|
4321
|
+
d.o(v, b) && !d.o(m, b) && Object.defineProperty(m, b, { enumerable: !0, get: v[b] });
|
|
4320
4322
|
}, d.o = (m, v) => Object.prototype.hasOwnProperty.call(m, v);
|
|
4321
|
-
var
|
|
4322
|
-
return
|
|
4323
|
+
var h = d(721);
|
|
4324
|
+
return h;
|
|
4323
4325
|
})()
|
|
4324
4326
|
));
|
|
4325
4327
|
})(Le)), Le.exports;
|
|
@@ -4555,7 +4557,7 @@ Code: (Code)`,
|
|
|
4555
4557
|
Kod: (Code)`,
|
|
4556
4558
|
whatsappText: "Prijavi me u (Host) ovim kodom: (Code)"
|
|
4557
4559
|
}
|
|
4558
|
-
},
|
|
4560
|
+
}, lr = {
|
|
4559
4561
|
labels: {
|
|
4560
4562
|
email: "Ηλεκτρονικό ταχυδρομείο",
|
|
4561
4563
|
whatsapp: "WhatsApp"
|
|
@@ -4578,7 +4580,7 @@ Kod: (Code)`,
|
|
|
4578
4580
|
Κωδικός: (Code)`,
|
|
4579
4581
|
whatsappText: "Σύνδεσέ με στο (Host) με αυτόν τον κωδικό: (Code)"
|
|
4580
4582
|
}
|
|
4581
|
-
},
|
|
4583
|
+
}, hr = {
|
|
4582
4584
|
labels: {
|
|
4583
4585
|
email: "E-posta",
|
|
4584
4586
|
whatsapp: "WhatsApp"
|
|
@@ -4739,7 +4741,7 @@ Koda: (Code)`,
|
|
|
4739
4741
|
Kód: (Code)`,
|
|
4740
4742
|
whatsappText: "Prihlás ma do (Host) týmto kódom: (Code)"
|
|
4741
4743
|
}
|
|
4742
|
-
},
|
|
4744
|
+
}, br = {
|
|
4743
4745
|
labels: {
|
|
4744
4746
|
email: "E-mail",
|
|
4745
4747
|
whatsapp: "WhatsApp"
|
|
@@ -4762,7 +4764,7 @@ Kód: (Code)`,
|
|
|
4762
4764
|
Kodi: (Code)`,
|
|
4763
4765
|
whatsappText: "Më identifiko në (Host) me këtë kod: (Code)"
|
|
4764
4766
|
}
|
|
4765
|
-
},
|
|
4767
|
+
}, yr = {
|
|
4766
4768
|
labels: {
|
|
4767
4769
|
email: "Էլ. փոստ",
|
|
4768
4770
|
whatsapp: "WhatsApp"
|
|
@@ -4831,7 +4833,7 @@ Kod: (Code)`,
|
|
|
4831
4833
|
Kodas: (Code)`,
|
|
4832
4834
|
whatsappText: "Prisijungti prie (Host) šiuo kodu: (Code)"
|
|
4833
4835
|
}
|
|
4834
|
-
},
|
|
4836
|
+
}, kr = {
|
|
4835
4837
|
labels: {
|
|
4836
4838
|
email: "E-pasts",
|
|
4837
4839
|
whatsapp: "WhatsApp"
|
|
@@ -4854,7 +4856,7 @@ Kodas: (Code)`,
|
|
|
4854
4856
|
Kods: (Code)`,
|
|
4855
4857
|
whatsappText: "Pierakstīties (Host) ar šo kodu: (Code)"
|
|
4856
4858
|
}
|
|
4857
|
-
},
|
|
4859
|
+
}, Sr = {
|
|
4858
4860
|
labels: {
|
|
4859
4861
|
email: "E-post",
|
|
4860
4862
|
whatsapp: "WhatsApp"
|
|
@@ -4901,6 +4903,236 @@ Koodi: (Code)`,
|
|
|
4901
4903
|
whatsappText: "Kirjaa minut palveluun (Host) tällä koodilla: (Code)"
|
|
4902
4904
|
}
|
|
4903
4905
|
}, Er = {
|
|
4906
|
+
labels: {
|
|
4907
|
+
email: "Email",
|
|
4908
|
+
whatsapp: "WhatsApp"
|
|
4909
|
+
},
|
|
4910
|
+
ui: {
|
|
4911
|
+
sendCodePrompt: "Trimite acest cod pentru a continua",
|
|
4912
|
+
successGreeting: "Salut, (Name)",
|
|
4913
|
+
by: "prin",
|
|
4914
|
+
toPrefix: "către",
|
|
4915
|
+
footerWaiting: "Gata să primească codul tău…",
|
|
4916
|
+
footerWaitingUntil: "Gata să primească codul tău…",
|
|
4917
|
+
footerReturnedWaiting: "Așteptăm să sosească mesajul tău…",
|
|
4918
|
+
codeExpired: "Codul a expirat, solicită unul nou.",
|
|
4919
|
+
getNewCode: "Obține un cod nou"
|
|
4920
|
+
},
|
|
4921
|
+
templates: {
|
|
4922
|
+
emailSubject: "Conectează-mă la (Host) cu acest cod: (Code)",
|
|
4923
|
+
emailBody: `Pentru a te autentifica la (Host), trimite acest email fără modificări.
|
|
4924
|
+
|
|
4925
|
+
Cod: (Code)`,
|
|
4926
|
+
whatsappText: "Conectează-mă la (Host) cu acest cod: (Code)"
|
|
4927
|
+
}
|
|
4928
|
+
}, Tr = {
|
|
4929
|
+
labels: {
|
|
4930
|
+
email: "Имейл",
|
|
4931
|
+
whatsapp: "WhatsApp"
|
|
4932
|
+
},
|
|
4933
|
+
ui: {
|
|
4934
|
+
sendCodePrompt: "Изпратете този код, за да продължите",
|
|
4935
|
+
successGreeting: "Здравейте, (Name)",
|
|
4936
|
+
by: "чрез",
|
|
4937
|
+
toPrefix: "до",
|
|
4938
|
+
footerWaiting: "Готово за получаване на вашия код…",
|
|
4939
|
+
footerWaitingUntil: "Готово за получаване на вашия код…",
|
|
4940
|
+
footerReturnedWaiting: "Изчакваме съобщението ви да пристигне…",
|
|
4941
|
+
codeExpired: "Кодът изтече, поискайте нов.",
|
|
4942
|
+
getNewCode: "Получете нов код"
|
|
4943
|
+
},
|
|
4944
|
+
templates: {
|
|
4945
|
+
emailSubject: "Впиши ме в (Host) с този код: (Code)",
|
|
4946
|
+
emailBody: `За да се удостоверите в (Host), изпратете този имейл без промени.
|
|
4947
|
+
|
|
4948
|
+
Код: (Code)`,
|
|
4949
|
+
whatsappText: "Впиши ме в (Host) с този код: (Code)"
|
|
4950
|
+
}
|
|
4951
|
+
}, _r = {
|
|
4952
|
+
labels: {
|
|
4953
|
+
email: "E-mail",
|
|
4954
|
+
whatsapp: "WhatsApp"
|
|
4955
|
+
},
|
|
4956
|
+
ui: {
|
|
4957
|
+
sendCodePrompt: "Küldd el ezt a kódot a folytatáshoz",
|
|
4958
|
+
successGreeting: "Szia, (Name)",
|
|
4959
|
+
by: "ezen keresztül",
|
|
4960
|
+
toPrefix: "ide",
|
|
4961
|
+
footerWaiting: "Készen áll a kód fogadására…",
|
|
4962
|
+
footerWaitingUntil: "Készen áll a kód fogadására…",
|
|
4963
|
+
footerReturnedWaiting: "Várjuk, hogy megérkezzen az üzeneted…",
|
|
4964
|
+
codeExpired: "A kód lejárt, kérj újat.",
|
|
4965
|
+
getNewCode: "Új kód kérése"
|
|
4966
|
+
},
|
|
4967
|
+
templates: {
|
|
4968
|
+
emailSubject: "Jelentkeztess be ide: (Host) ezzel a kóddal: (Code)",
|
|
4969
|
+
emailBody: `A (Host) hitelesítéséhez küldd el ezt az e-mailt módosítás nélkül.
|
|
4970
|
+
|
|
4971
|
+
Kód: (Code)`,
|
|
4972
|
+
whatsappText: "Jelentkeztess be ide: (Host) ezzel a kóddal: (Code)"
|
|
4973
|
+
}
|
|
4974
|
+
}, Ar = {
|
|
4975
|
+
labels: {
|
|
4976
|
+
email: "E-post",
|
|
4977
|
+
whatsapp: "WhatsApp"
|
|
4978
|
+
},
|
|
4979
|
+
ui: {
|
|
4980
|
+
sendCodePrompt: "Send denne koden for å fortsette",
|
|
4981
|
+
successGreeting: "Hei, (Name)",
|
|
4982
|
+
by: "via",
|
|
4983
|
+
toPrefix: "til",
|
|
4984
|
+
footerWaiting: "Klar til å motta koden din…",
|
|
4985
|
+
footerWaitingUntil: "Klar til å motta koden din…",
|
|
4986
|
+
footerReturnedWaiting: "Venter på at meldingen din skal komme fram…",
|
|
4987
|
+
codeExpired: "Koden er utløpt, be om en ny.",
|
|
4988
|
+
getNewCode: "Få ny kode"
|
|
4989
|
+
},
|
|
4990
|
+
templates: {
|
|
4991
|
+
emailSubject: "Logg meg inn på (Host) med denne koden: (Code)",
|
|
4992
|
+
emailBody: `For å autentisere deg hos (Host), send denne e-posten uten endringer.
|
|
4993
|
+
|
|
4994
|
+
Kode: (Code)`,
|
|
4995
|
+
whatsappText: "Logg meg inn på (Host) med denne koden: (Code)"
|
|
4996
|
+
}
|
|
4997
|
+
}, Pr = {
|
|
4998
|
+
labels: {
|
|
4999
|
+
email: "Електронна пошта",
|
|
5000
|
+
whatsapp: "WhatsApp"
|
|
5001
|
+
},
|
|
5002
|
+
ui: {
|
|
5003
|
+
sendCodePrompt: "Надішліть цей код, щоб продовжити",
|
|
5004
|
+
successGreeting: "Вітаємо, (Name)",
|
|
5005
|
+
by: "через",
|
|
5006
|
+
toPrefix: "на",
|
|
5007
|
+
footerWaiting: "Готово до отримання вашого коду…",
|
|
5008
|
+
footerWaitingUntil: "Готово до отримання вашого коду…",
|
|
5009
|
+
footerReturnedWaiting: "Очікуємо, доки ваше повідомлення надійде…",
|
|
5010
|
+
codeExpired: "Термін дії коду минув, запросіть новий.",
|
|
5011
|
+
getNewCode: "Отримати новий код"
|
|
5012
|
+
},
|
|
5013
|
+
templates: {
|
|
5014
|
+
emailSubject: "Увійти в (Host) з цим кодом: (Code)",
|
|
5015
|
+
emailBody: `Щоб автентифікуватися в (Host), надішліть цей лист без змін.
|
|
5016
|
+
|
|
5017
|
+
Код: (Code)`,
|
|
5018
|
+
whatsappText: "Увійти в (Host) з цим кодом: (Code)"
|
|
5019
|
+
}
|
|
5020
|
+
}, Lr = {
|
|
5021
|
+
labels: {
|
|
5022
|
+
email: "Email",
|
|
5023
|
+
whatsapp: "WhatsApp"
|
|
5024
|
+
},
|
|
5025
|
+
ui: {
|
|
5026
|
+
sendCodePrompt: "Pošalji ovaj kod za nastavak",
|
|
5027
|
+
successGreeting: "Zdravo, (Name)",
|
|
5028
|
+
by: "putem",
|
|
5029
|
+
toPrefix: "na",
|
|
5030
|
+
footerWaiting: "Spremno za prijem tvog koda…",
|
|
5031
|
+
footerWaitingUntil: "Spremno za prijem tvog koda…",
|
|
5032
|
+
footerReturnedWaiting: "Čekamo da tvoja poruka stigne…",
|
|
5033
|
+
codeExpired: "Kod je istekao, zatraži novi.",
|
|
5034
|
+
getNewCode: "Dobij novi kod"
|
|
5035
|
+
},
|
|
5036
|
+
templates: {
|
|
5037
|
+
emailSubject: "Prijavi me na (Host) ovim kodom: (Code)",
|
|
5038
|
+
emailBody: `Za autentifikaciju na (Host), pošalji ovaj email bez izmjena.
|
|
5039
|
+
|
|
5040
|
+
Kod: (Code)`,
|
|
5041
|
+
whatsappText: "Prijavi me na (Host) ovim kodom: (Code)"
|
|
5042
|
+
}
|
|
5043
|
+
}, Rr = {
|
|
5044
|
+
labels: {
|
|
5045
|
+
email: "Е-пошта",
|
|
5046
|
+
whatsapp: "WhatsApp"
|
|
5047
|
+
},
|
|
5048
|
+
ui: {
|
|
5049
|
+
sendCodePrompt: "Испратете го овој код за да продолжите",
|
|
5050
|
+
successGreeting: "Здраво, (Name)",
|
|
5051
|
+
by: "преку",
|
|
5052
|
+
toPrefix: "до",
|
|
5053
|
+
footerWaiting: "Подготвено за прием на вашиот код…",
|
|
5054
|
+
footerWaitingUntil: "Подготвено за прием на вашиот код…",
|
|
5055
|
+
footerReturnedWaiting: "Чекаме да пристигне вашата порака…",
|
|
5056
|
+
codeExpired: "Кодот истече, побарајте нов.",
|
|
5057
|
+
getNewCode: "Добиј нов код"
|
|
5058
|
+
},
|
|
5059
|
+
templates: {
|
|
5060
|
+
emailSubject: "Најави ме во (Host) со овој код: (Code)",
|
|
5061
|
+
emailBody: `За автентикација во (Host), испратете ја оваа е-пошта без измени.
|
|
5062
|
+
|
|
5063
|
+
Код: (Code)`,
|
|
5064
|
+
whatsappText: "Најави ме во (Host) со овој код: (Code)"
|
|
5065
|
+
}
|
|
5066
|
+
}, jr = {
|
|
5067
|
+
labels: {
|
|
5068
|
+
email: "Netfang",
|
|
5069
|
+
whatsapp: "WhatsApp"
|
|
5070
|
+
},
|
|
5071
|
+
ui: {
|
|
5072
|
+
sendCodePrompt: "Sendu þennan kóða til að halda áfram",
|
|
5073
|
+
successGreeting: "Halló, (Name)",
|
|
5074
|
+
by: "með",
|
|
5075
|
+
toPrefix: "til",
|
|
5076
|
+
footerWaiting: "Tilbúið að taka á móti kóðanum þínum…",
|
|
5077
|
+
footerWaitingUntil: "Tilbúið að taka á móti kóðanum þínum…",
|
|
5078
|
+
footerReturnedWaiting: "Bíðum eftir að skilaboðin þín berist…",
|
|
5079
|
+
codeExpired: "Kóðinn er útrunninn, fáðu nýjan.",
|
|
5080
|
+
getNewCode: "Fá nýjan kóða"
|
|
5081
|
+
},
|
|
5082
|
+
templates: {
|
|
5083
|
+
emailSubject: "Skráðu mig inn á (Host) með þessum kóða: (Code)",
|
|
5084
|
+
emailBody: `Til að auðkenna þig hjá (Host), sendu þennan tölvupóst án breytinga.
|
|
5085
|
+
|
|
5086
|
+
Kóði: (Code)`,
|
|
5087
|
+
whatsappText: "Skráðu mig inn á (Host) með þessum kóða: (Code)"
|
|
5088
|
+
}
|
|
5089
|
+
}, Wr = {
|
|
5090
|
+
labels: {
|
|
5091
|
+
email: "Ríomhphost",
|
|
5092
|
+
whatsapp: "WhatsApp"
|
|
5093
|
+
},
|
|
5094
|
+
ui: {
|
|
5095
|
+
sendCodePrompt: "Seol an cód seo chun leanúint ar aghaidh",
|
|
5096
|
+
successGreeting: "Dia dhuit, (Name)",
|
|
5097
|
+
by: "trí",
|
|
5098
|
+
toPrefix: "chuig",
|
|
5099
|
+
footerWaiting: "Réidh chun do chód a fháil…",
|
|
5100
|
+
footerWaitingUntil: "Réidh chun do chód a fháil…",
|
|
5101
|
+
footerReturnedWaiting: "Ag fanacht go dtiocfaidh do theachtaireacht…",
|
|
5102
|
+
codeExpired: "Tá an cód imithe in éag, iarr ceann nua.",
|
|
5103
|
+
getNewCode: "Faigh cód nua"
|
|
5104
|
+
},
|
|
5105
|
+
templates: {
|
|
5106
|
+
emailSubject: "Logáil isteach mé i (Host) leis an gcód seo: (Code)",
|
|
5107
|
+
emailBody: `Chun fíordheimhniú le (Host), seol an ríomhphost seo gan athruithe.
|
|
5108
|
+
|
|
5109
|
+
Cód: (Code)`,
|
|
5110
|
+
whatsappText: "Logáil isteach mé i (Host) leis an gcód seo: (Code)"
|
|
5111
|
+
}
|
|
5112
|
+
}, Hr = {
|
|
5113
|
+
labels: {
|
|
5114
|
+
email: "Email",
|
|
5115
|
+
whatsapp: "WhatsApp"
|
|
5116
|
+
},
|
|
5117
|
+
ui: {
|
|
5118
|
+
sendCodePrompt: "Ibgħat dan il-kodiċi biex tkompli",
|
|
5119
|
+
successGreeting: "Bonġu, (Name)",
|
|
5120
|
+
by: "permezz ta’",
|
|
5121
|
+
toPrefix: "lil",
|
|
5122
|
+
footerWaiting: "Lest biex jirċievi l-kodiċi tiegħek…",
|
|
5123
|
+
footerWaitingUntil: "Lest biex jirċievi l-kodiċi tiegħek…",
|
|
5124
|
+
footerReturnedWaiting: "Qed nistennew il-messaġġ tiegħek jasal…",
|
|
5125
|
+
codeExpired: "Il-kodiċi skada, itlob wieħed ġdid.",
|
|
5126
|
+
getNewCode: "Ikseb kodiċi ġdid"
|
|
5127
|
+
},
|
|
5128
|
+
templates: {
|
|
5129
|
+
emailSubject: "Daħħalni f’(Host) b’dan il-kodiċi: (Code)",
|
|
5130
|
+
emailBody: `Biex tawtentika ma’ (Host), ibgħat dan l-email mingħajr tibdil.
|
|
5131
|
+
|
|
5132
|
+
Kodiċi: (Code)`,
|
|
5133
|
+
whatsappText: "Daħħalni f’(Host) b’dan il-kodiċi: (Code)"
|
|
5134
|
+
}
|
|
5135
|
+
}, Nr = {
|
|
4904
5136
|
labels: {
|
|
4905
5137
|
email: "البريد الإلكتروني",
|
|
4906
5138
|
whatsapp: "WhatsApp"
|
|
@@ -4923,7 +5155,7 @@ Koodi: (Code)`,
|
|
|
4923
5155
|
الرمز: (Code)`,
|
|
4924
5156
|
whatsappText: "سجّل دخولي إلى (Host) بهذا الرمز: (Code)"
|
|
4925
5157
|
}
|
|
4926
|
-
},
|
|
5158
|
+
}, Ir = {
|
|
4927
5159
|
labels: {
|
|
4928
5160
|
email: "אימייל",
|
|
4929
5161
|
whatsapp: "WhatsApp"
|
|
@@ -4946,7 +5178,7 @@ Koodi: (Code)`,
|
|
|
4946
5178
|
קוד: (Code)`,
|
|
4947
5179
|
whatsappText: "היכנס אותי אל (Host) עם הקוד הזה: (Code)"
|
|
4948
5180
|
}
|
|
4949
|
-
},
|
|
5181
|
+
}, zr = {
|
|
4950
5182
|
labels: {
|
|
4951
5183
|
email: "メール",
|
|
4952
5184
|
whatsapp: "WhatsApp"
|
|
@@ -4969,7 +5201,7 @@ Koodi: (Code)`,
|
|
|
4969
5201
|
コード: (Code)`,
|
|
4970
5202
|
whatsappText: "このコードで (Host) にサインインします: (Code)"
|
|
4971
5203
|
}
|
|
4972
|
-
},
|
|
5204
|
+
}, Ur = {
|
|
4973
5205
|
labels: {
|
|
4974
5206
|
email: "이메일",
|
|
4975
5207
|
whatsapp: "WhatsApp"
|
|
@@ -4992,7 +5224,7 @@ Koodi: (Code)`,
|
|
|
4992
5224
|
코드: (Code)`,
|
|
4993
5225
|
whatsappText: "이 코드로 (Host)에 로그인합니다: (Code)"
|
|
4994
5226
|
}
|
|
4995
|
-
},
|
|
5227
|
+
}, Or = {
|
|
4996
5228
|
labels: {
|
|
4997
5229
|
email: "电子邮件",
|
|
4998
5230
|
whatsapp: "WhatsApp"
|
|
@@ -5015,7 +5247,145 @@ Koodi: (Code)`,
|
|
|
5015
5247
|
代码:(Code)`,
|
|
5016
5248
|
whatsappText: "使用此代码登录 (Host):(Code)"
|
|
5017
5249
|
}
|
|
5018
|
-
},
|
|
5250
|
+
}, qr = {
|
|
5251
|
+
labels: {
|
|
5252
|
+
email: "Email",
|
|
5253
|
+
whatsapp: "WhatsApp"
|
|
5254
|
+
},
|
|
5255
|
+
ui: {
|
|
5256
|
+
sendCodePrompt: "Gửi mã này để tiếp tục",
|
|
5257
|
+
successGreeting: "Xin chào, (Name)",
|
|
5258
|
+
by: "qua",
|
|
5259
|
+
toPrefix: "đến",
|
|
5260
|
+
footerWaiting: "Sẵn sàng nhận mã của bạn…",
|
|
5261
|
+
footerWaitingUntil: "Sẵn sàng nhận mã của bạn…",
|
|
5262
|
+
footerReturnedWaiting: "Đang chờ tin nhắn của bạn đến…",
|
|
5263
|
+
codeExpired: "Mã đã hết hạn, hãy yêu cầu mã mới.",
|
|
5264
|
+
getNewCode: "Lấy mã mới"
|
|
5265
|
+
},
|
|
5266
|
+
templates: {
|
|
5267
|
+
emailSubject: "Đăng nhập tôi vào (Host) bằng mã này: (Code)",
|
|
5268
|
+
emailBody: `Để xác thực với (Host), hãy gửi email này mà không thay đổi.
|
|
5269
|
+
|
|
5270
|
+
Mã: (Code)`,
|
|
5271
|
+
whatsappText: "Đăng nhập tôi vào (Host) bằng mã này: (Code)"
|
|
5272
|
+
}
|
|
5273
|
+
}, Mr = {
|
|
5274
|
+
labels: {
|
|
5275
|
+
email: "ईमेल",
|
|
5276
|
+
whatsapp: "WhatsApp"
|
|
5277
|
+
},
|
|
5278
|
+
ui: {
|
|
5279
|
+
sendCodePrompt: "जारी रखने के लिए यह कोड भेजें",
|
|
5280
|
+
successGreeting: "नमस्ते, (Name)",
|
|
5281
|
+
by: "के माध्यम से",
|
|
5282
|
+
toPrefix: "को",
|
|
5283
|
+
footerWaiting: "आपका कोड प्राप्त करने के लिए तैयार…",
|
|
5284
|
+
footerWaitingUntil: "आपका कोड प्राप्त करने के लिए तैयार…",
|
|
5285
|
+
footerReturnedWaiting: "आपके संदेश के पहुँचने की प्रतीक्षा कर रहे हैं…",
|
|
5286
|
+
codeExpired: "कोड समाप्त हो गया है, नया कोड माँगें।",
|
|
5287
|
+
getNewCode: "नया कोड प्राप्त करें"
|
|
5288
|
+
},
|
|
5289
|
+
templates: {
|
|
5290
|
+
emailSubject: "इस कोड से मुझे (Host) में साइन इन करें: (Code)",
|
|
5291
|
+
emailBody: `(Host) के साथ प्रमाणीकरण करने के लिए, यह ईमेल बिना किसी बदलाव के भेजें।
|
|
5292
|
+
|
|
5293
|
+
कोड: (Code)`,
|
|
5294
|
+
whatsappText: "इस कोड से मुझे (Host) में साइन इन करें: (Code)"
|
|
5295
|
+
}
|
|
5296
|
+
}, Br = {
|
|
5297
|
+
labels: {
|
|
5298
|
+
email: "Email",
|
|
5299
|
+
whatsapp: "WhatsApp"
|
|
5300
|
+
},
|
|
5301
|
+
ui: {
|
|
5302
|
+
sendCodePrompt: "Kirim kode ini untuk melanjutkan",
|
|
5303
|
+
successGreeting: "Halo, (Name)",
|
|
5304
|
+
by: "melalui",
|
|
5305
|
+
toPrefix: "ke",
|
|
5306
|
+
footerWaiting: "Siap menerima kode Anda…",
|
|
5307
|
+
footerWaitingUntil: "Siap menerima kode Anda…",
|
|
5308
|
+
footerReturnedWaiting: "Menunggu pesan Anda tiba…",
|
|
5309
|
+
codeExpired: "Kode kedaluwarsa, minta yang baru.",
|
|
5310
|
+
getNewCode: "Dapatkan kode baru"
|
|
5311
|
+
},
|
|
5312
|
+
templates: {
|
|
5313
|
+
emailSubject: "Masukkan saya ke (Host) dengan kode ini: (Code)",
|
|
5314
|
+
emailBody: `Untuk autentikasi dengan (Host), kirim email ini tanpa perubahan.
|
|
5315
|
+
|
|
5316
|
+
Kode: (Code)`,
|
|
5317
|
+
whatsappText: "Masukkan saya ke (Host) dengan kode ini: (Code)"
|
|
5318
|
+
}
|
|
5319
|
+
}, Dr = {
|
|
5320
|
+
labels: {
|
|
5321
|
+
email: "E-mel",
|
|
5322
|
+
whatsapp: "WhatsApp"
|
|
5323
|
+
},
|
|
5324
|
+
ui: {
|
|
5325
|
+
sendCodePrompt: "Hantar kod ini untuk meneruskan",
|
|
5326
|
+
successGreeting: "Hai, (Name)",
|
|
5327
|
+
by: "melalui",
|
|
5328
|
+
toPrefix: "kepada",
|
|
5329
|
+
footerWaiting: "Sedia menerima kod anda…",
|
|
5330
|
+
footerWaitingUntil: "Sedia menerima kod anda…",
|
|
5331
|
+
footerReturnedWaiting: "Menunggu mesej anda tiba…",
|
|
5332
|
+
codeExpired: "Kod telah tamat tempoh, minta yang baharu.",
|
|
5333
|
+
getNewCode: "Dapatkan kod baharu"
|
|
5334
|
+
},
|
|
5335
|
+
templates: {
|
|
5336
|
+
emailSubject: "Log masuk saya ke (Host) dengan kod ini: (Code)",
|
|
5337
|
+
emailBody: `Untuk mengesahkan dengan (Host), hantar e-mel ini tanpa sebarang perubahan.
|
|
5338
|
+
|
|
5339
|
+
Kod: (Code)`,
|
|
5340
|
+
whatsappText: "Log masuk saya ke (Host) dengan kod ini: (Code)"
|
|
5341
|
+
}
|
|
5342
|
+
}, Fr = {
|
|
5343
|
+
labels: {
|
|
5344
|
+
email: "ইমেইল",
|
|
5345
|
+
whatsapp: "WhatsApp"
|
|
5346
|
+
},
|
|
5347
|
+
ui: {
|
|
5348
|
+
sendCodePrompt: "চালিয়ে যেতে এই কোডটি পাঠান",
|
|
5349
|
+
successGreeting: "হ্যালো, (Name)",
|
|
5350
|
+
by: "এর মাধ্যমে",
|
|
5351
|
+
toPrefix: "প্রতি",
|
|
5352
|
+
footerWaiting: "আপনার কোড গ্রহণের জন্য প্রস্তুত…",
|
|
5353
|
+
footerWaitingUntil: "আপনার কোড গ্রহণের জন্য প্রস্তুত…",
|
|
5354
|
+
footerReturnedWaiting: "আপনার বার্তা পৌঁছানোর অপেক্ষায়…",
|
|
5355
|
+
codeExpired: "কোডের মেয়াদ শেষ, নতুন কোড নিন।",
|
|
5356
|
+
getNewCode: "নতুন কোড নিন"
|
|
5357
|
+
},
|
|
5358
|
+
templates: {
|
|
5359
|
+
emailSubject: "এই কোড দিয়ে আমাকে (Host)-এ সাইন ইন করুন: (Code)",
|
|
5360
|
+
emailBody: `(Host)-এর সঙ্গে প্রমাণীকরণের জন্য, কোনো পরিবর্তন ছাড়াই এই ইমেইলটি পাঠান।
|
|
5361
|
+
|
|
5362
|
+
কোড: (Code)`,
|
|
5363
|
+
whatsappText: "এই কোড দিয়ে আমাকে (Host)-এ সাইন ইন করুন: (Code)"
|
|
5364
|
+
}
|
|
5365
|
+
}, $r = {
|
|
5366
|
+
labels: {
|
|
5367
|
+
email: "อีเมล",
|
|
5368
|
+
whatsapp: "WhatsApp"
|
|
5369
|
+
},
|
|
5370
|
+
ui: {
|
|
5371
|
+
sendCodePrompt: "ส่งรหัสนี้เพื่อดำเนินการต่อ",
|
|
5372
|
+
successGreeting: "สวัสดี, (Name)",
|
|
5373
|
+
by: "ผ่าน",
|
|
5374
|
+
toPrefix: "ถึง",
|
|
5375
|
+
footerWaiting: "พร้อมรับรหัสของคุณ…",
|
|
5376
|
+
footerWaitingUntil: "พร้อมรับรหัสของคุณ…",
|
|
5377
|
+
footerReturnedWaiting: "กำลังรอให้ข้อความของคุณมาถึง…",
|
|
5378
|
+
codeExpired: "รหัสหมดอายุแล้ว โปรดขอรหัสใหม่",
|
|
5379
|
+
getNewCode: "รับรหัสใหม่"
|
|
5380
|
+
},
|
|
5381
|
+
templates: {
|
|
5382
|
+
emailSubject: "ลงชื่อเข้าใช้ (Host) ด้วยรหัสนี้: (Code)",
|
|
5383
|
+
emailBody: `เพื่อยืนยันตัวตนกับ (Host) ให้ส่งอีเมลนี้โดยไม่แก้ไขใด ๆ
|
|
5384
|
+
|
|
5385
|
+
รหัส: (Code)`,
|
|
5386
|
+
whatsappText: "ลงชื่อเข้าใช้ (Host) ด้วยรหัสนี้: (Code)"
|
|
5387
|
+
}
|
|
5388
|
+
}, Gr = [
|
|
5019
5389
|
"en",
|
|
5020
5390
|
"de",
|
|
5021
5391
|
"fr",
|
|
@@ -5041,12 +5411,32 @@ Koodi: (Code)`,
|
|
|
5041
5411
|
"lv",
|
|
5042
5412
|
"et",
|
|
5043
5413
|
"fi",
|
|
5414
|
+
"ro",
|
|
5415
|
+
"bg",
|
|
5416
|
+
"hu",
|
|
5417
|
+
"no",
|
|
5418
|
+
"uk",
|
|
5419
|
+
"bs",
|
|
5420
|
+
"mk",
|
|
5421
|
+
"is",
|
|
5422
|
+
"ga",
|
|
5423
|
+
"mt",
|
|
5044
5424
|
"ar",
|
|
5045
5425
|
"he",
|
|
5046
5426
|
"ja",
|
|
5047
5427
|
"ko",
|
|
5048
|
-
"zh"
|
|
5049
|
-
|
|
5428
|
+
"zh",
|
|
5429
|
+
"vi",
|
|
5430
|
+
"hi",
|
|
5431
|
+
"id",
|
|
5432
|
+
"ms",
|
|
5433
|
+
"bn",
|
|
5434
|
+
"th"
|
|
5435
|
+
], Kr = ["ar", "he"];
|
|
5436
|
+
function Vr(g) {
|
|
5437
|
+
return Kr.includes(g);
|
|
5438
|
+
}
|
|
5439
|
+
const Xr = {
|
|
5050
5440
|
en: Lt,
|
|
5051
5441
|
de: tr,
|
|
5052
5442
|
fr: nr,
|
|
@@ -5057,31 +5447,47 @@ Koodi: (Code)`,
|
|
|
5057
5447
|
da: ar,
|
|
5058
5448
|
nl: cr,
|
|
5059
5449
|
hr: dr,
|
|
5060
|
-
el:
|
|
5061
|
-
tr:
|
|
5450
|
+
el: lr,
|
|
5451
|
+
tr: hr,
|
|
5062
5452
|
"de-he": ur,
|
|
5063
5453
|
ru: pr,
|
|
5064
5454
|
sv: fr,
|
|
5065
5455
|
pt: mr,
|
|
5066
5456
|
sl: gr,
|
|
5067
5457
|
sk: vr,
|
|
5068
|
-
sq:
|
|
5069
|
-
hy:
|
|
5458
|
+
sq: br,
|
|
5459
|
+
hy: yr,
|
|
5070
5460
|
sr: wr,
|
|
5071
5461
|
lt: Cr,
|
|
5072
|
-
lv:
|
|
5073
|
-
et:
|
|
5462
|
+
lv: kr,
|
|
5463
|
+
et: Sr,
|
|
5074
5464
|
fi: xr,
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5465
|
+
ro: Er,
|
|
5466
|
+
bg: Tr,
|
|
5467
|
+
hu: _r,
|
|
5468
|
+
no: Ar,
|
|
5469
|
+
uk: Pr,
|
|
5470
|
+
bs: Lr,
|
|
5471
|
+
mk: Rr,
|
|
5472
|
+
is: jr,
|
|
5473
|
+
ga: Wr,
|
|
5474
|
+
mt: Hr,
|
|
5475
|
+
ar: Nr,
|
|
5476
|
+
he: Ir,
|
|
5477
|
+
ja: zr,
|
|
5478
|
+
ko: Ur,
|
|
5479
|
+
zh: Or,
|
|
5480
|
+
vi: qr,
|
|
5481
|
+
hi: Mr,
|
|
5482
|
+
id: Br,
|
|
5483
|
+
ms: Dr,
|
|
5484
|
+
bn: Fr,
|
|
5485
|
+
th: $r
|
|
5080
5486
|
};
|
|
5081
5487
|
function vt(g) {
|
|
5082
|
-
return
|
|
5488
|
+
return Gr.includes(g);
|
|
5083
5489
|
}
|
|
5084
|
-
function
|
|
5490
|
+
function bt(g) {
|
|
5085
5491
|
if (!g) return null;
|
|
5086
5492
|
const i = g.trim().toLowerCase().replace("_", "-");
|
|
5087
5493
|
if (vt(i)) return i;
|
|
@@ -5089,39 +5495,39 @@ function yt(g) {
|
|
|
5089
5495
|
return vt(s) ? s : null;
|
|
5090
5496
|
}
|
|
5091
5497
|
function F(g) {
|
|
5092
|
-
return
|
|
5498
|
+
return Xr[g] ?? Lt;
|
|
5093
5499
|
}
|
|
5094
|
-
const
|
|
5095
|
-
`, wt = '<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>',
|
|
5096
|
-
function
|
|
5500
|
+
const yt = `<svg role="img" viewBox="0 0 512 512" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>Email</title><path d="M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"/></svg>
|
|
5501
|
+
`, wt = '<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>', Jr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M4.998 9.332A5.002 5.002 0 0 1 13.2 5.5H11a1 1 0 1 0 0 2h4.5a1 1 0 0 0 1-1V2a1 1 0 1 0-2 0v1.74A7.002 7.002 0 0 0 3 9.332a1 1 0 1 0 1.998 0ZM15.002 10.668A5.002 5.002 0 0 1 6.8 14.5H9a1 1 0 1 0 0-2H4.5a1 1 0 0 0-1 1V18a1 1 0 1 0 2 0v-1.74a7.002 7.002 0 0 0 11.5-5.592 1 1 0 1 0-1.998 0Z" clip-rule="evenodd" /></svg>', Yr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM7.22 6.22a.75.75 0 0 0-1.06 1.06L8.88 10l-2.72 2.72a.75.75 0 1 0 1.06 1.06L9.94 11.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11 10l2.72-2.72a.75.75 0 0 0-1.06-1.06L9.94 8.94 7.22 6.22Z" clip-rule="evenodd" /></svg>', ze = "sendityAuthRequest", Zr = "https://sendity.io/api/sendity", Qr = 600 * 1e3, es = 5e3, ts = 15e3, ns = 1e3, je = 2e3, fe = 220, Rt = 0;
|
|
5502
|
+
function Ue(g, i) {
|
|
5097
5503
|
return `sendity:auth-request:${encodeURIComponent(g)}:${encodeURIComponent(i)}`;
|
|
5098
5504
|
}
|
|
5099
5505
|
function Ct(g, i, s, a = Date.now()) {
|
|
5100
5506
|
g.removeItem(ze);
|
|
5101
|
-
const d =
|
|
5102
|
-
if (!
|
|
5507
|
+
const d = Ue(i, s), h = g.getItem(d);
|
|
5508
|
+
if (!h) return null;
|
|
5103
5509
|
try {
|
|
5104
|
-
const m = JSON.parse(
|
|
5510
|
+
const m = JSON.parse(h);
|
|
5105
5511
|
if (typeof m.id != "string" || typeof m.clientSecret != "string" || typeof m.createdAt != "number")
|
|
5106
5512
|
throw new Error("invalid stored auth request");
|
|
5107
|
-
return a - m.createdAt >=
|
|
5513
|
+
return a - m.createdAt >= Qr ? (g.removeItem(d), null) : { id: m.id, clientSecret: m.clientSecret };
|
|
5108
5514
|
} catch {
|
|
5109
5515
|
return g.removeItem(d), null;
|
|
5110
5516
|
}
|
|
5111
5517
|
}
|
|
5112
|
-
function
|
|
5113
|
-
g.setItem(
|
|
5518
|
+
function is(g, i, s, a, d = Date.now()) {
|
|
5519
|
+
g.setItem(Ue(i, s), JSON.stringify({ ...a, createdAt: d }));
|
|
5114
5520
|
}
|
|
5115
|
-
function
|
|
5116
|
-
g.removeItem(
|
|
5521
|
+
function kt(g, i, s) {
|
|
5522
|
+
g.removeItem(Ue(i, s)), g.removeItem(ze);
|
|
5117
5523
|
}
|
|
5118
5524
|
function me() {
|
|
5119
5525
|
return window.localStorage.removeItem(ze), window.sessionStorage;
|
|
5120
5526
|
}
|
|
5121
|
-
function
|
|
5122
|
-
return g.filter((s) =>
|
|
5527
|
+
function rs(g, i = window.location.origin) {
|
|
5528
|
+
return g.filter((s) => ss(s, i));
|
|
5123
5529
|
}
|
|
5124
|
-
function
|
|
5530
|
+
function ss(g, i) {
|
|
5125
5531
|
try {
|
|
5126
5532
|
const s = new URL(g, i);
|
|
5127
5533
|
return ["http:", "https:", "mailto:", "whatsapp:"].includes(s.protocol);
|
|
@@ -5129,7 +5535,7 @@ function Mr(g, i) {
|
|
|
5129
5535
|
return !1;
|
|
5130
5536
|
}
|
|
5131
5537
|
}
|
|
5132
|
-
function
|
|
5538
|
+
function os(g, i, s) {
|
|
5133
5539
|
return g === "push" ? { start: !1, delayMs: 0 } : g === "polling" || !i || !s ? { start: !0, delayMs: 0 } : { start: !0, delayMs: Rt };
|
|
5134
5540
|
}
|
|
5135
5541
|
const ve = class ve extends HTMLElement {
|
|
@@ -5141,8 +5547,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5141
5547
|
this.injectTailwind(i);
|
|
5142
5548
|
const s = document.createElement("div");
|
|
5143
5549
|
s.innerHTML = ft;
|
|
5144
|
-
const a = s.querySelector("template"), d = a ? a.content.cloneNode(!0) : document.createRange().createContextualFragment(ft),
|
|
5145
|
-
|
|
5550
|
+
const a = s.querySelector("template"), d = a ? a.content.cloneNode(!0) : document.createRange().createContextualFragment(ft), h = document.createElement("style");
|
|
5551
|
+
h.textContent = Bi, i.appendChild(h), i.appendChild(d);
|
|
5146
5552
|
}
|
|
5147
5553
|
static get observedAttributes() {
|
|
5148
5554
|
return ["server-url", "public-key", "lang", "transport", "hide-footer", "footer", "authenticated-event-delay-ms", "variant", "no-card"];
|
|
@@ -5155,7 +5561,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5155
5561
|
this.handleInitialError(i);
|
|
5156
5562
|
return;
|
|
5157
5563
|
}
|
|
5158
|
-
this.configureFooter(), this.bindBrowserReturnListeners(), this.dispatchPublicEvent("sendity:ready", {
|
|
5564
|
+
this.configureLanguageDirection(), this.configureFooter(), this.bindBrowserReturnListeners(), this.dispatchPublicEvent("sendity:ready", {
|
|
5159
5565
|
transport: this.currentConfig.transport,
|
|
5160
5566
|
channel: this.primaryChannel(this.activeVerifyUrls)
|
|
5161
5567
|
}), this.showPlaceholderCode(), this.startWhenVisible();
|
|
@@ -5164,7 +5570,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5164
5570
|
this.stop(), this.destroyed = !0;
|
|
5165
5571
|
}
|
|
5166
5572
|
attributeChangedCallback() {
|
|
5167
|
-
this.isConnected && (this.syncLayoutVariant(), this.currentConfig = this.resolveConfig(), this.configureFooter());
|
|
5573
|
+
this.isConnected && (this.syncLayoutVariant(), this.currentConfig = this.resolveConfig(), this.configureLanguageDirection(), this.configureFooter());
|
|
5168
5574
|
}
|
|
5169
5575
|
isNoCardVariant() {
|
|
5170
5576
|
return this.getAttribute("variant") === "no-card" || this.hasAttribute("no-card");
|
|
@@ -5172,6 +5578,11 @@ const ve = class ve extends HTMLElement {
|
|
|
5172
5578
|
syncLayoutVariant() {
|
|
5173
5579
|
this.rootEl?.classList.toggle("sendity--no-card", this.isNoCardVariant());
|
|
5174
5580
|
}
|
|
5581
|
+
configureLanguageDirection() {
|
|
5582
|
+
if (!this.currentConfig || !this.rootEl) return;
|
|
5583
|
+
const i = Vr(this.currentConfig.lang) ? "rtl" : "ltr";
|
|
5584
|
+
this.rootEl.setAttribute("lang", this.currentConfig.lang), this.rootEl.setAttribute("dir", i), this.codeContainerEl?.setAttribute("dir", "ltr"), this.codeEl?.setAttribute("dir", "ltr");
|
|
5585
|
+
}
|
|
5175
5586
|
startWhenVisible() {
|
|
5176
5587
|
if (!(this.authFlowStarted || this.destroyed)) {
|
|
5177
5588
|
if (!("IntersectionObserver" in window)) {
|
|
@@ -5243,7 +5654,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5243
5654
|
scheduleBrowserReturnCheck() {
|
|
5244
5655
|
this.destroyed || this.authenticated || !this.activeAuthRequestId || !this.activeAuthRequestSecret || document.visibilityState && document.visibilityState !== "visible" || (this.returnWaitTimer !== null && clearTimeout(this.returnWaitTimer), this.returnWaitTimer = window.setTimeout(() => {
|
|
5245
5656
|
this.returnWaitTimer = null, !(this.destroyed || this.authenticated) && (this.showFooterWaitingState({ returnedFromClient: !0 }), this.step().catch((i) => console.warn("[sendity-auth] return check failed", i)));
|
|
5246
|
-
},
|
|
5657
|
+
}, ns));
|
|
5247
5658
|
}
|
|
5248
5659
|
isFooterHidden() {
|
|
5249
5660
|
const i = (this.getAttribute("footer") ?? "").trim().toLowerCase();
|
|
@@ -5257,13 +5668,13 @@ const ve = class ve extends HTMLElement {
|
|
|
5257
5668
|
scheduleFooterWaitingState() {
|
|
5258
5669
|
this.footerWaitTimer !== null || this.isFooterHidden() || (this.footerWaitTimer = window.setTimeout(() => {
|
|
5259
5670
|
this.footerWaitTimer = null, this.showFooterWaitingState();
|
|
5260
|
-
},
|
|
5671
|
+
}, ts));
|
|
5261
5672
|
}
|
|
5262
5673
|
setFooterIndicatorWaiting() {
|
|
5263
5674
|
this.footerIndicatorEl && (this.footerIndicatorEl.classList.remove("footer-indicator--error"), this.footerIndicatorEl.innerHTML = "", this.footerIndicatorEl.removeAttribute("hidden"));
|
|
5264
5675
|
}
|
|
5265
5676
|
setFooterIndicatorError() {
|
|
5266
|
-
this.footerIndicatorEl && (this.footerIndicatorEl.classList.add("footer-indicator--error"), this.footerIndicatorEl.innerHTML =
|
|
5677
|
+
this.footerIndicatorEl && (this.footerIndicatorEl.classList.add("footer-indicator--error"), this.footerIndicatorEl.innerHTML = Yr, this.footerIndicatorEl.removeAttribute("hidden"));
|
|
5267
5678
|
}
|
|
5268
5679
|
showFooterWaitingState(i = {}) {
|
|
5269
5680
|
this.isFooterHidden() || (this.currentConfig && this.footerMessageEl && (this.footerMessageEl.textContent = i.returnedFromClient ? F(this.currentConfig.lang).ui.footerReturnedWaiting : this.waitingFooterMessage()), this.setFooterIndicatorWaiting(), this.footerEl?.classList.add("footer--waiting", "footer--transitioning"), this.footerBrandEl?.removeAttribute("hidden"), this.footerStatusEl?.removeAttribute("hidden"), this.footerTransitionTimer !== null && clearTimeout(this.footerTransitionTimer), this.footerTransitionTimer = window.setTimeout(() => {
|
|
@@ -5283,8 +5694,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5283
5694
|
this.footerTimerEl.setAttribute("hidden", "");
|
|
5284
5695
|
return;
|
|
5285
5696
|
}
|
|
5286
|
-
const a = Math.max(0, Math.floor((s - Date.now()) / 1e3)), d = Math.floor(a / 60),
|
|
5287
|
-
this.footerTimerEl.textContent = `${d}:${
|
|
5697
|
+
const a = Math.max(0, Math.floor((s - Date.now()) / 1e3)), d = Math.floor(a / 60), h = String(a % 60).padStart(2, "0");
|
|
5698
|
+
this.footerTimerEl.textContent = `${d}:${h}`, this.footerTimerEl.classList.toggle("low", a > 0 && a <= 60), this.footerTimerEl.removeAttribute("hidden"), a <= 0 && this.timerInterval !== null && (clearInterval(this.timerInterval), this.timerInterval = null, this.showExpiredState());
|
|
5288
5699
|
};
|
|
5289
5700
|
i(), this.timerInterval = window.setInterval(i, 1e3);
|
|
5290
5701
|
}
|
|
@@ -5308,12 +5719,12 @@ const ve = class ve extends HTMLElement {
|
|
|
5308
5719
|
this.verifiersEl.innerHTML = "", this.verifiersEl.classList.remove("is-two", "verifiers--exiting"), this.verifiersEl.removeAttribute("aria-hidden");
|
|
5309
5720
|
const s = document.createElement("button");
|
|
5310
5721
|
s.type = "button", s.className = "chan error", s.addEventListener("click", () => {
|
|
5311
|
-
s.disabled = !0, this.requestNewAuthRequest().catch((
|
|
5312
|
-
console.warn("[sendity-auth] failed to request a new code",
|
|
5722
|
+
s.disabled = !0, this.requestNewAuthRequest().catch((h) => {
|
|
5723
|
+
console.warn("[sendity-auth] failed to request a new code", h), s.disabled = !1;
|
|
5313
5724
|
});
|
|
5314
5725
|
});
|
|
5315
5726
|
const a = document.createElement("span");
|
|
5316
|
-
a.className = "icon", a.setAttribute("aria-hidden", "true"), a.innerHTML =
|
|
5727
|
+
a.className = "icon", a.setAttribute("aria-hidden", "true"), a.innerHTML = Jr, s.appendChild(a);
|
|
5317
5728
|
const d = document.createElement("span");
|
|
5318
5729
|
d.className = "label", d.textContent = i.ui.getNewCode, s.appendChild(d), this.verifiersEl.appendChild(s);
|
|
5319
5730
|
}
|
|
@@ -5335,13 +5746,13 @@ const ve = class ve extends HTMLElement {
|
|
|
5335
5746
|
}
|
|
5336
5747
|
resolveConfig() {
|
|
5337
5748
|
const i = {
|
|
5338
|
-
lang:
|
|
5749
|
+
lang: bt(navigator.language) ?? "en",
|
|
5339
5750
|
transport: "auto"
|
|
5340
|
-
}, s = (E) => this.getAttribute(E) ?? void 0, a = s("server-url")?.trim() ||
|
|
5751
|
+
}, s = (E) => this.getAttribute(E) ?? void 0, a = s("server-url")?.trim() || Zr, d = s("public-key")?.trim();
|
|
5341
5752
|
if (!d)
|
|
5342
5753
|
throw new Error("Missing required sendity-auth attribute: public-key");
|
|
5343
|
-
const
|
|
5344
|
-
return { serverUrl: a, publicKey: d, lang:
|
|
5754
|
+
const h = bt(s("lang")) ?? i.lang, m = s("transport"), v = m === "push" || m === "polling" ? m : i.transport, b = this.parseAuthenticatedEventDelayMs(s("authenticated-event-delay-ms"));
|
|
5755
|
+
return { serverUrl: a, publicKey: d, lang: h, transport: v, authenticatedEventDelayMs: b };
|
|
5345
5756
|
}
|
|
5346
5757
|
parseAuthenticatedEventDelayMs(i) {
|
|
5347
5758
|
if (i === void 0 || i.trim() === "") return je;
|
|
@@ -5359,43 +5770,43 @@ const ve = class ve extends HTMLElement {
|
|
|
5359
5770
|
body: JSON.stringify({ public_key: s })
|
|
5360
5771
|
});
|
|
5361
5772
|
if (!d.ok) throw new Error(`Auth request creation failed: ${d.status}`);
|
|
5362
|
-
const
|
|
5363
|
-
if (!
|
|
5364
|
-
const m = this.extractClientSecret(
|
|
5773
|
+
const h = await d.json();
|
|
5774
|
+
if (!h.id) throw new Error("Missing id from server response");
|
|
5775
|
+
const m = this.extractClientSecret(h);
|
|
5365
5776
|
if (!m) throw new Error("Missing client secret from server response");
|
|
5366
|
-
return
|
|
5367
|
-
verificationId: String(
|
|
5368
|
-
code:
|
|
5777
|
+
return is(a, i, s, { id: String(h.id), clientSecret: m }), this.activeAuthRequestId = String(h.id), this.activeAuthRequestSecret = m, this.updateActiveAuthRequestExpiry(h), this.applyVerifyUrlsFromResponse(h), this.updateCode(h.formattedCode ?? h.code), this.dispatchPublicEvent("sendity:challenge-created", {
|
|
5778
|
+
verificationId: String(h.id),
|
|
5779
|
+
code: h.formattedCode ?? h.code ?? "",
|
|
5369
5780
|
channel: this.primaryChannel(this.activeVerifyUrls)
|
|
5370
|
-
}),
|
|
5781
|
+
}), h;
|
|
5371
5782
|
}
|
|
5372
5783
|
async step() {
|
|
5373
5784
|
this.currentConfig || (this.currentConfig = this.resolveConfig());
|
|
5374
|
-
const { serverUrl: i, publicKey: s } = this.currentConfig, a = me(), d = Ct(a, i, s),
|
|
5375
|
-
if (!
|
|
5785
|
+
const { serverUrl: i, publicKey: s } = this.currentConfig, a = me(), d = Ct(a, i, s), h = d?.id;
|
|
5786
|
+
if (!h)
|
|
5376
5787
|
return await this.createAuthRequest(i, s, a);
|
|
5377
|
-
this.activeAuthRequestId =
|
|
5788
|
+
this.activeAuthRequestId = h, this.activeAuthRequestSecret = d.clientSecret;
|
|
5378
5789
|
const m = await fetch(
|
|
5379
|
-
this.authRequestStatusUrl(i,
|
|
5790
|
+
this.authRequestStatusUrl(i, h),
|
|
5380
5791
|
this.authRequestStatusInit(d.clientSecret)
|
|
5381
5792
|
);
|
|
5382
5793
|
if (m.status !== 200)
|
|
5383
|
-
return
|
|
5794
|
+
return kt(a, i, s), await this.step();
|
|
5384
5795
|
const v = await m.json();
|
|
5385
5796
|
if (this.applyVerifyUrlsFromResponse(v), v.status === "verified")
|
|
5386
5797
|
return this.handleAuthenticated(v), v;
|
|
5387
5798
|
if (v.status === "expired")
|
|
5388
5799
|
return this.updateActiveAuthRequestExpiry(v), this.updateCode(v.formattedCode ?? v.code), this.showExpiredState(), v;
|
|
5389
5800
|
v.id && (this.activeAuthRequestId = String(v.id));
|
|
5390
|
-
const
|
|
5391
|
-
return
|
|
5801
|
+
const b = this.extractClientSecret(v);
|
|
5802
|
+
return b && (this.activeAuthRequestSecret = b), this.updateActiveAuthRequestExpiry(v), this.updateCode(v.formattedCode ?? v.code), v;
|
|
5392
5803
|
}
|
|
5393
5804
|
configureRealtime(i) {
|
|
5394
5805
|
this.currentConfig || (this.currentConfig = this.resolveConfig());
|
|
5395
5806
|
const { transport: s } = this.currentConfig, a = i?.broadcasting, d = !!(a?.key && a.channel && a.authEndpoint);
|
|
5396
|
-
let
|
|
5397
|
-
s !== "polling" && d && a ?
|
|
5398
|
-
const m =
|
|
5807
|
+
let h = !1;
|
|
5808
|
+
s !== "polling" && d && a ? h = this.subscribeToBroadcasting(a) : s === "push" && console.warn("[sendity-auth] Push transport requested, but server response does not contain broadcasting metadata");
|
|
5809
|
+
const m = os(s, d, h);
|
|
5399
5810
|
m.start && this.startPolling(m.delayMs);
|
|
5400
5811
|
}
|
|
5401
5812
|
subscribeToBroadcasting(i) {
|
|
@@ -5434,7 +5845,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5434
5845
|
const s = () => {
|
|
5435
5846
|
this.pollTimer !== null || this.authenticated || this.destroyed || (this.pollTimer = window.setInterval(() => {
|
|
5436
5847
|
this.step().catch((a) => console.warn("[sendity-auth] poll failed", a));
|
|
5437
|
-
},
|
|
5848
|
+
}, es));
|
|
5438
5849
|
};
|
|
5439
5850
|
i > 0 ? this.fallbackPollTimer = window.setTimeout(() => {
|
|
5440
5851
|
this.fallbackPollTimer = null, s();
|
|
@@ -5448,7 +5859,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5448
5859
|
});
|
|
5449
5860
|
return;
|
|
5450
5861
|
}
|
|
5451
|
-
this.authenticated = !0, this.currentConfig &&
|
|
5862
|
+
this.authenticated = !0, this.currentConfig && kt(me(), this.currentConfig.serverUrl, this.currentConfig.publicKey), this.stopAuthTransports(), this.showSuccess(i);
|
|
5452
5863
|
const s = this.toPublicAuthenticatedDetail(i), a = this.currentConfig?.authenticatedEventDelayMs ?? je;
|
|
5453
5864
|
this.authenticatedEventTimer = window.setTimeout(() => {
|
|
5454
5865
|
this.authenticatedEventTimer = null, !this.destroyed && this.dispatchPublicEvent("sendity:authenticated", s);
|
|
@@ -5476,7 +5887,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5476
5887
|
return s.startsWith("mailto:") ? "email" : s.startsWith("whatsapp:") || s.startsWith("whatsapp://") ? "whatsapp" : "unknown";
|
|
5477
5888
|
}
|
|
5478
5889
|
applyVerifyUrlsFromResponse(i) {
|
|
5479
|
-
const s = Array.isArray(i.verify_urls) ? i.verify_urls : Array.isArray(i.verifyUrls) ? i.verifyUrls : [], a = Array.isArray(i.verification_endpoints) ? i.verification_endpoints.map((
|
|
5890
|
+
const s = Array.isArray(i.verify_urls) ? i.verify_urls : Array.isArray(i.verifyUrls) ? i.verifyUrls : [], a = Array.isArray(i.verification_endpoints) ? i.verification_endpoints.map((h) => typeof h.url == "string" ? h.url : typeof h.scheme == "string" && typeof h.recipient == "string" ? `${h.scheme}:${h.recipient}` : "") : [], d = rs([...s, ...a].map(String));
|
|
5480
5891
|
d.length !== 0 && (this.activeVerifyUrls = [...new Set(d)], this.renderVerifiers(this.activeVerifyUrls));
|
|
5481
5892
|
}
|
|
5482
5893
|
authRequestStatusUrl(i, s) {
|
|
@@ -5558,6 +5969,26 @@ const ve = class ve extends HTMLElement {
|
|
|
5558
5969
|
return "et-EE";
|
|
5559
5970
|
case "fi":
|
|
5560
5971
|
return "fi-FI";
|
|
5972
|
+
case "ro":
|
|
5973
|
+
return "ro-RO";
|
|
5974
|
+
case "bg":
|
|
5975
|
+
return "bg-BG";
|
|
5976
|
+
case "hu":
|
|
5977
|
+
return "hu-HU";
|
|
5978
|
+
case "no":
|
|
5979
|
+
return "nb-NO";
|
|
5980
|
+
case "uk":
|
|
5981
|
+
return "uk-UA";
|
|
5982
|
+
case "bs":
|
|
5983
|
+
return "bs-BA";
|
|
5984
|
+
case "mk":
|
|
5985
|
+
return "mk-MK";
|
|
5986
|
+
case "is":
|
|
5987
|
+
return "is-IS";
|
|
5988
|
+
case "ga":
|
|
5989
|
+
return "ga-IE";
|
|
5990
|
+
case "mt":
|
|
5991
|
+
return "mt-MT";
|
|
5561
5992
|
case "ar":
|
|
5562
5993
|
return "ar-SA";
|
|
5563
5994
|
case "he":
|
|
@@ -5568,6 +5999,18 @@ const ve = class ve extends HTMLElement {
|
|
|
5568
5999
|
return "ko-KR";
|
|
5569
6000
|
case "zh":
|
|
5570
6001
|
return "zh-CN";
|
|
6002
|
+
case "vi":
|
|
6003
|
+
return "vi-VN";
|
|
6004
|
+
case "hi":
|
|
6005
|
+
return "hi-IN";
|
|
6006
|
+
case "id":
|
|
6007
|
+
return "id-ID";
|
|
6008
|
+
case "ms":
|
|
6009
|
+
return "ms-MY";
|
|
6010
|
+
case "bn":
|
|
6011
|
+
return "bn-BD";
|
|
6012
|
+
case "th":
|
|
6013
|
+
return "th-TH";
|
|
5571
6014
|
default:
|
|
5572
6015
|
return "en-US";
|
|
5573
6016
|
}
|
|
@@ -5583,9 +6026,9 @@ const ve = class ve extends HTMLElement {
|
|
|
5583
6026
|
);
|
|
5584
6027
|
if (!d.ok)
|
|
5585
6028
|
throw new Error(`Authorization fetch failed: ${d.status}`);
|
|
5586
|
-
const
|
|
5587
|
-
if (
|
|
5588
|
-
this.handleAuthenticated(
|
|
6029
|
+
const h = await d.json();
|
|
6030
|
+
if (h.status === "verified" && h.authorization) {
|
|
6031
|
+
this.handleAuthenticated(h);
|
|
5589
6032
|
return;
|
|
5590
6033
|
}
|
|
5591
6034
|
throw new Error("Verified auth request did not include authorization");
|
|
@@ -5652,8 +6095,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5652
6095
|
if (d.protocol === "mailto:")
|
|
5653
6096
|
return decodeURIComponent(d.pathname || d.href.replace(/^mailto:/, "").split("?")[0]) || null;
|
|
5654
6097
|
if (d.protocol === "whatsapp:" || d.protocol === "whatsapp://") {
|
|
5655
|
-
const
|
|
5656
|
-
return
|
|
6098
|
+
const h = d.searchParams.get("phone") || d.pathname.replace(/^\/+/, "");
|
|
6099
|
+
return h ? `+${h.replace(/^\+/, "")}` : null;
|
|
5657
6100
|
}
|
|
5658
6101
|
} catch {
|
|
5659
6102
|
if (a.startsWith("mailto:")) return a.replace(/^mailto:/, "").split("?")[0] || null;
|
|
@@ -5689,6 +6132,41 @@ const ve = class ve extends HTMLElement {
|
|
|
5689
6132
|
return "ή";
|
|
5690
6133
|
case "tr":
|
|
5691
6134
|
return "veya";
|
|
6135
|
+
case "ro":
|
|
6136
|
+
return "sau";
|
|
6137
|
+
case "bg":
|
|
6138
|
+
return "или";
|
|
6139
|
+
case "hu":
|
|
6140
|
+
return "vagy";
|
|
6141
|
+
case "no":
|
|
6142
|
+
return "eller";
|
|
6143
|
+
case "uk":
|
|
6144
|
+
return "або";
|
|
6145
|
+
case "bs":
|
|
6146
|
+
return "ili";
|
|
6147
|
+
case "mk":
|
|
6148
|
+
return "или";
|
|
6149
|
+
case "is":
|
|
6150
|
+
return "eða";
|
|
6151
|
+
case "ga":
|
|
6152
|
+
return "nó";
|
|
6153
|
+
case "mt":
|
|
6154
|
+
return "jew";
|
|
6155
|
+
case "ar":
|
|
6156
|
+
return "أو";
|
|
6157
|
+
case "he":
|
|
6158
|
+
return "או";
|
|
6159
|
+
case "vi":
|
|
6160
|
+
return "hoặc";
|
|
6161
|
+
case "hi":
|
|
6162
|
+
return "या";
|
|
6163
|
+
case "id":
|
|
6164
|
+
case "ms":
|
|
6165
|
+
return "atau";
|
|
6166
|
+
case "bn":
|
|
6167
|
+
return "অথবা";
|
|
6168
|
+
case "th":
|
|
6169
|
+
return "หรือ";
|
|
5692
6170
|
default:
|
|
5693
6171
|
return "or";
|
|
5694
6172
|
}
|
|
@@ -5699,30 +6177,30 @@ const ve = class ve extends HTMLElement {
|
|
|
5699
6177
|
const s = this.currentConfig;
|
|
5700
6178
|
i.forEach((a, d) => {
|
|
5701
6179
|
if (d > 0 && i.length === 2) {
|
|
5702
|
-
const
|
|
5703
|
-
|
|
5704
|
-
const
|
|
5705
|
-
|
|
6180
|
+
const k = document.createElement("div");
|
|
6181
|
+
k.className = "divider", k.setAttribute("aria-hidden", "true");
|
|
6182
|
+
const W = document.createElement("span");
|
|
6183
|
+
W.textContent = this.orLabel(s.lang), k.appendChild(W), this.verifiersEl.appendChild(k);
|
|
5706
6184
|
}
|
|
5707
|
-
const
|
|
5708
|
-
|
|
6185
|
+
const h = document.createElement("div");
|
|
6186
|
+
h.className = "opt";
|
|
5709
6187
|
const m = document.createElement("a");
|
|
5710
6188
|
m.className = "chan " + this.channelClass(a), m.href = this.buildLink(a, s.lang), m.target = "_blank", m.rel = "noopener noreferrer", m.addEventListener("click", () => {
|
|
5711
6189
|
this.footerWaitTimer !== null && (clearTimeout(this.footerWaitTimer), this.footerWaitTimer = null), this.showFooterWaitingState();
|
|
5712
6190
|
});
|
|
5713
6191
|
const v = this.iconForUrl(a);
|
|
5714
6192
|
if (v) {
|
|
5715
|
-
const
|
|
5716
|
-
|
|
6193
|
+
const k = document.createElement("span");
|
|
6194
|
+
k.className = "icon", k.setAttribute("aria-hidden", "true"), k.innerHTML = v, m.appendChild(k);
|
|
5717
6195
|
}
|
|
5718
|
-
const
|
|
5719
|
-
|
|
6196
|
+
const b = document.createElement("span");
|
|
6197
|
+
b.className = "label", b.textContent = this.channelLabel(a, s.lang), m.appendChild(b), h.appendChild(m);
|
|
5720
6198
|
const E = this.destinationText(a, s.lang);
|
|
5721
6199
|
if (E) {
|
|
5722
|
-
const
|
|
5723
|
-
|
|
6200
|
+
const k = document.createElement("a");
|
|
6201
|
+
k.className = "dest", k.href = m.href, k.target = "_blank", k.rel = "noopener noreferrer", k.textContent = E, h.appendChild(k);
|
|
5724
6202
|
}
|
|
5725
|
-
this.verifiersEl.appendChild(
|
|
6203
|
+
this.verifiersEl.appendChild(h);
|
|
5726
6204
|
});
|
|
5727
6205
|
}
|
|
5728
6206
|
channelClass(i) {
|
|
@@ -5741,8 +6219,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5741
6219
|
if (d === "email") return a.labels.email;
|
|
5742
6220
|
if (d === "whatsapp") return a.labels.whatsapp;
|
|
5743
6221
|
try {
|
|
5744
|
-
const
|
|
5745
|
-
return
|
|
6222
|
+
const h = new URL(i, window.location.origin);
|
|
6223
|
+
return h.protocol.startsWith("http") ? h.hostname : h.protocol.replace(":", "");
|
|
5746
6224
|
} catch {
|
|
5747
6225
|
return i;
|
|
5748
6226
|
}
|
|
@@ -5750,17 +6228,17 @@ const ve = class ve extends HTMLElement {
|
|
|
5750
6228
|
destinationText(i, s) {
|
|
5751
6229
|
const d = F(s).ui.toPrefix ?? "to";
|
|
5752
6230
|
try {
|
|
5753
|
-
const
|
|
5754
|
-
if (
|
|
5755
|
-
const m = decodeURIComponent(
|
|
6231
|
+
const h = new URL(i, window.location.origin);
|
|
6232
|
+
if (h.protocol === "mailto:") {
|
|
6233
|
+
const m = decodeURIComponent(h.pathname || h.href.replace(/^mailto:/, "").split("?")[0]);
|
|
5756
6234
|
return m ? `${d} ${m}` : null;
|
|
5757
6235
|
}
|
|
5758
|
-
if (
|
|
5759
|
-
const m =
|
|
6236
|
+
if (h.protocol === "whatsapp:" || h.protocol === "whatsapp://") {
|
|
6237
|
+
const m = h.searchParams.get("phone") || h.pathname.replace(/^\/+/, "");
|
|
5760
6238
|
return m ? `${d} +${m.replace(/^\+/, "")}` : null;
|
|
5761
6239
|
}
|
|
5762
|
-
if (
|
|
5763
|
-
const m =
|
|
6240
|
+
if (h.protocol.startsWith("http") && (h.hostname === "wa.me" || h.hostname === "api.whatsapp.com")) {
|
|
6241
|
+
const m = h.pathname.replace(/^\/+/, "").replace(/[^0-9]/g, "");
|
|
5764
6242
|
return m ? `${d} +${m}` : null;
|
|
5765
6243
|
}
|
|
5766
6244
|
} catch {
|
|
@@ -5770,10 +6248,10 @@ const ve = class ve extends HTMLElement {
|
|
|
5770
6248
|
iconForUrl(i) {
|
|
5771
6249
|
try {
|
|
5772
6250
|
const s = new URL(i, window.location.origin);
|
|
5773
|
-
if (s.protocol === "mailto:") return
|
|
6251
|
+
if (s.protocol === "mailto:") return yt;
|
|
5774
6252
|
if (s.protocol === "whatsapp:" || s.protocol === "whatsapp://") return wt;
|
|
5775
6253
|
} catch {
|
|
5776
|
-
if (i.startsWith("mailto:")) return
|
|
6254
|
+
if (i.startsWith("mailto:")) return yt;
|
|
5777
6255
|
if (i.startsWith("whatsapp:") || i.startsWith("whatsapp://")) return wt;
|
|
5778
6256
|
}
|
|
5779
6257
|
return null;
|
|
@@ -5788,19 +6266,19 @@ const ve = class ve extends HTMLElement {
|
|
|
5788
6266
|
}
|
|
5789
6267
|
}
|
|
5790
6268
|
buildLink(i, s) {
|
|
5791
|
-
const a = this.lastCode, d = F(s),
|
|
6269
|
+
const a = this.lastCode, d = F(s), h = window.location.host;
|
|
5792
6270
|
if (!a) return i;
|
|
5793
6271
|
if (i.startsWith("mailto:")) {
|
|
5794
|
-
const [m, v = ""] = i.split("?"),
|
|
5795
|
-
|
|
5796
|
-
const
|
|
5797
|
-
return `${m}?${
|
|
6272
|
+
const [m, v = ""] = i.split("?"), b = new URLSearchParams(v), E = this.applyTemplate(d.templates.emailSubject, h, a), k = this.applyTemplate(d.templates.emailBody, h, a);
|
|
6273
|
+
b.set("subject", E), b.set("body", k);
|
|
6274
|
+
const W = this.toQuery(b);
|
|
6275
|
+
return `${m}?${W}`;
|
|
5798
6276
|
}
|
|
5799
6277
|
if (i.startsWith("whatsapp:") || i.startsWith("whatsapp://")) {
|
|
5800
|
-
const [m, v = ""] = i.split("?"),
|
|
5801
|
-
|
|
5802
|
-
const
|
|
5803
|
-
return `${m}?${
|
|
6278
|
+
const [m, v = ""] = i.split("?"), b = new URLSearchParams(v), E = this.applyTemplate(d.templates.whatsappText, h, a);
|
|
6279
|
+
b.set("text", E);
|
|
6280
|
+
const k = this.toQuery(b);
|
|
6281
|
+
return `${m}?${k}`;
|
|
5804
6282
|
}
|
|
5805
6283
|
return i;
|
|
5806
6284
|
}
|
|
@@ -5813,8 +6291,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5813
6291
|
toQuery(i) {
|
|
5814
6292
|
const s = [];
|
|
5815
6293
|
return i.forEach((a, d) => {
|
|
5816
|
-
const
|
|
5817
|
-
s.push(`${
|
|
6294
|
+
const h = encodeURIComponent(d), m = encodeURIComponent(a);
|
|
6295
|
+
s.push(`${h}=${m}`);
|
|
5818
6296
|
}), s.join("&");
|
|
5819
6297
|
}
|
|
5820
6298
|
joinUrl(i, s) {
|
|
@@ -5822,8 +6300,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5822
6300
|
}
|
|
5823
6301
|
};
|
|
5824
6302
|
ve.tailwindCssText = null, ve.tailwindLoading = null;
|
|
5825
|
-
let
|
|
5826
|
-
customElements.get("sendity-auth") || customElements.define("sendity-auth",
|
|
6303
|
+
let We = ve;
|
|
6304
|
+
customElements.get("sendity-auth") || customElements.define("sendity-auth", We);
|
|
5827
6305
|
export {
|
|
5828
|
-
|
|
6306
|
+
We as Sendity
|
|
5829
6307
|
};
|