@firebase/webchannel-wrapper 0.7.0 → 0.8.0-20221010203322
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/CHANGELOG.md +6 -0
- package/dist/index.esm.js +57 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm2017.js +35 -35
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @firebase/webchannel-wrapper
|
|
2
2
|
|
|
3
|
+
## 0.8.0-20221010203322
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`397317b53`](https://github.com/firebase/firebase-js-sdk/commit/397317b53c4d9d8aee761f566adf3616aef844ed) [#6643](https://github.com/firebase/firebase-js-sdk/pull/6643) - Set withCredentials=true when making requests via non-streaming RPCs, like is done for streaming RPCs.
|
|
8
|
+
|
|
3
9
|
## 0.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -76,7 +76,7 @@ function ha(a, b, c) { if (!a)
|
|
|
76
76
|
} return function () { return a.apply(b, arguments); }; }
|
|
77
77
|
function q(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? q = fa : q = ha; return q.apply(null, arguments); }
|
|
78
78
|
function ia(a, b) { var c = Array.prototype.slice.call(arguments, 1); return function () { var d = c.slice(); d.push.apply(d, arguments); return a.apply(this, d); }; }
|
|
79
|
-
function t(a, b) { function c() { } c.prototype = b.prototype; a.X = b.prototype; a.prototype = new c; a.prototype.constructor = a; a.
|
|
79
|
+
function t(a, b) { function c() { } c.prototype = b.prototype; a.X = b.prototype; a.prototype = new c; a.prototype.constructor = a; a.Wb = function (d, e, f) { for (var h = Array(arguments.length - 2), n = 2; n < arguments.length; n++)
|
|
80
80
|
h[n - 2] = arguments[n]; return b.prototype[e].apply(d, h); }; }
|
|
81
81
|
function v() { this.s = this.s; this.o = this.o; }
|
|
82
82
|
var ja = 0, ka = {};
|
|
@@ -378,12 +378,12 @@ function xb() { for (var a; a = mb();) {
|
|
|
378
378
|
b.j(a);
|
|
379
379
|
100 > b.h && (b.h++, a.next = b.g, b.g = a);
|
|
380
380
|
} wb = !1; }
|
|
381
|
-
function yb(a, b) { B.call(this); this.h = a || 1; this.g = b || l; this.j = q(this.
|
|
381
|
+
function yb(a, b) { B.call(this); this.h = a || 1; this.g = b || l; this.j = q(this.lb, this); this.l = Date.now(); }
|
|
382
382
|
t(yb, B);
|
|
383
383
|
k = yb.prototype;
|
|
384
384
|
k.ca = !1;
|
|
385
385
|
k.R = null;
|
|
386
|
-
k.
|
|
386
|
+
k.lb = function () { if (this.ca) {
|
|
387
387
|
var a = Date.now() - this.l;
|
|
388
388
|
0 < a && a < .8 * this.h ? this.R = this.g.setTimeout(this.j, this.h - a) : (this.R && (this.g.clearTimeout(this.R), this.R = null), C(this, "tick"), this.ca && (zb(this), this.start()));
|
|
389
389
|
} };
|
|
@@ -472,26 +472,26 @@ catch (n) {
|
|
|
472
472
|
} }
|
|
473
473
|
var G = {}, Lb = null;
|
|
474
474
|
function Mb() { return Lb = Lb || new B; }
|
|
475
|
-
G.
|
|
476
|
-
function Nb(a) { w.call(this, G.
|
|
475
|
+
G.Pa = "serverreachability";
|
|
476
|
+
function Nb(a) { w.call(this, G.Pa, a); }
|
|
477
477
|
t(Nb, w);
|
|
478
478
|
function H(a) { var b = Mb(); C(b, new Nb(b, a)); }
|
|
479
479
|
G.STAT_EVENT = "statevent";
|
|
480
480
|
function Ob(a, b) { w.call(this, G.STAT_EVENT, a); this.stat = b; }
|
|
481
481
|
t(Ob, w);
|
|
482
482
|
function I(a) { var b = Mb(); C(b, new Ob(b, a)); }
|
|
483
|
-
G.
|
|
484
|
-
function Pb(a, b) { w.call(this, G.
|
|
483
|
+
G.Qa = "timingevent";
|
|
484
|
+
function Pb(a, b) { w.call(this, G.Qa, a); this.size = b; }
|
|
485
485
|
t(Pb, w);
|
|
486
486
|
function J(a, b) { if ("function" !== typeof a)
|
|
487
487
|
throw Error("Fn must not be null and must be a function"); return l.setTimeout(function () { a(); }, b); }
|
|
488
|
-
var Qb = { NO_ERROR: 0,
|
|
489
|
-
var Rb = {
|
|
488
|
+
var Qb = { NO_ERROR: 0, mb: 1, zb: 2, yb: 3, tb: 4, xb: 5, Ab: 6, Ma: 7, TIMEOUT: 8, Db: 9 };
|
|
489
|
+
var Rb = { rb: "complete", Nb: "success", Na: "error", Ma: "abort", Fb: "ready", Gb: "readystatechange", TIMEOUT: "timeout", Bb: "incrementaldata", Eb: "progress", ub: "downloadprogress", Vb: "uploadprogress" };
|
|
490
490
|
function Sb() { }
|
|
491
491
|
Sb.prototype.h = null;
|
|
492
492
|
function Tb(a) { return a.h || (a.h = a.i()); }
|
|
493
493
|
function Ub() { }
|
|
494
|
-
var K = { OPEN: "a",
|
|
494
|
+
var K = { OPEN: "a", qb: "b", Na: "c", Cb: "d" };
|
|
495
495
|
function Vb() { w.call(this, "d"); }
|
|
496
496
|
t(Vb, w);
|
|
497
497
|
function Wb() { w.call(this, "c"); }
|
|
@@ -508,9 +508,9 @@ var Zb = 45E3, ac = {}, bc = {};
|
|
|
508
508
|
k = L.prototype;
|
|
509
509
|
k.setTimeout = function (a) { this.O = a; };
|
|
510
510
|
function cc(a, b, c) { a.K = 1; a.v = dc(M(b)); a.s = c; a.P = !0; ec(a, null); }
|
|
511
|
-
function ec(a, b) { a.F = Date.now(); N(a); a.A = M(a.v); var c = a.A, d = a.U; Array.isArray(d) || (d = [String(d)]); fc(c.i, "t", d); a.C = 0; c = a.l.H; a.h = new $b; a.g = gc(a.l, c ? b : null, !a.s); 0 < a.N && (a.L = new Cb(q(a.
|
|
512
|
-
k.
|
|
513
|
-
k.
|
|
511
|
+
function ec(a, b) { a.F = Date.now(); N(a); a.A = M(a.v); var c = a.A, d = a.U; Array.isArray(d) || (d = [String(d)]); fc(c.i, "t", d); a.C = 0; c = a.l.H; a.h = new $b; a.g = gc(a.l, c ? b : null, !a.s); 0 < a.N && (a.L = new Cb(q(a.La, a, a.g), a.N)); Eb(a.S, a.g, "readystatechange", a.ib); b = a.H ? Ra(a.H) : {}; a.s ? (a.u || (a.u = "POST"), b["Content-Type"] = "application/x-www-form-urlencoded", a.g.da(a.A, a.u, a.s, b)) : (a.u = "GET", a.g.da(a.A, a.u, null, b)); H(1); Hb(a.j, a.u, a.A, a.m, a.U, a.s); }
|
|
512
|
+
k.ib = function (a) { a = a.target; var b = this.L; b && 3 == O(a) ? b.l() : this.La(a); };
|
|
513
|
+
k.La = function (a) {
|
|
514
514
|
try {
|
|
515
515
|
if (a == this.g)
|
|
516
516
|
a: {
|
|
@@ -569,7 +569,7 @@ k.Ka = function (a) {
|
|
|
569
569
|
break a;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
this.P ? (lc(this, r, h), ya && this.i && 3 == r && (Eb(this.S, this.T, "tick", this.
|
|
572
|
+
this.P ? (lc(this, r, h), ya && this.i && 3 == r && (Eb(this.S, this.T, "tick", this.hb),
|
|
573
573
|
this.T.start())) : (E(this.j, this.m, h, null), kc(this, h));
|
|
574
574
|
4 == r && P(this);
|
|
575
575
|
this.i && !this.I && (4 == r ? mc(this.l, this) : (this.i = !1, N(this)));
|
|
@@ -605,7 +605,7 @@ function lc(a, b, c) {
|
|
|
605
605
|
a.i = a.i && d;
|
|
606
606
|
d ? 0 < c.length && !a.$ && (a.$ = !0, b = a.l, b.g == a && b.$ && !b.K && (b.j.info("Great, no buffering proxy detected. Bytes received: " + c.length), oc(b), b.K = !0, I(11))) : (E(a.j, a.m, c, "[Invalid Chunked Response]"), P(a), Q(a));
|
|
607
607
|
}
|
|
608
|
-
k.
|
|
608
|
+
k.hb = function () { if (this.g) {
|
|
609
609
|
var a = O(this.g), b = this.g.fa();
|
|
610
610
|
this.C < b.length && (ic(this), lc(this, a, b), this.i && 4 != a && N(this));
|
|
611
611
|
} };
|
|
@@ -616,9 +616,9 @@ function nc(a, b) { var c = a.C, d = b.indexOf("\n", c); if (-1 == d)
|
|
|
616
616
|
k.cancel = function () { this.I = !0; P(this); };
|
|
617
617
|
function N(a) { a.V = Date.now() + a.O; pc(a, a.O); }
|
|
618
618
|
function pc(a, b) { if (null != a.B)
|
|
619
|
-
throw Error("WatchDog timer not null"); a.B = J(q(a.
|
|
619
|
+
throw Error("WatchDog timer not null"); a.B = J(q(a.gb, a), b); }
|
|
620
620
|
function ic(a) { a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
621
|
-
k.
|
|
621
|
+
k.gb = function () { this.B = null; var a = Date.now(); 0 <= a - this.V ? (Kb(this.j, this.A), 2 != this.K && (H(3), I(17)), P(this), this.o = 2, Q(this)) : pc(this, this.V - a); };
|
|
622
622
|
function Q(a) { 0 == a.l.G || a.I || mc(a.l, a); }
|
|
623
623
|
function P(a) { ic(a); var b = a.L; b && "function" == typeof b.na && b.na(); a.L = null; zb(a.T); Fb(a.S); a.g && (b = a.g, a.g = null, b.abort(), b.na()); }
|
|
624
624
|
function kc(a, b) {
|
|
@@ -647,7 +647,7 @@ function kc(a, b) {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
else
|
|
650
|
-
c.Ba = e[1], 0 < c.Ba - c.T && 37500 > e[2] && c.L && 0 == c.A && !c.v && (c.v = J(q(c.
|
|
650
|
+
c.Ba = e[1], 0 < c.Ba - c.T && 37500 > e[2] && c.L && 0 == c.A && !c.v && (c.v = J(q(c.cb, c), 6E3));
|
|
651
651
|
if (1 >= uc(c.h) && c.ja) {
|
|
652
652
|
try {
|
|
653
653
|
c.ja();
|
|
@@ -842,7 +842,7 @@ var Vc = /** @class */ (function () {
|
|
|
842
842
|
}
|
|
843
843
|
return Vc;
|
|
844
844
|
}());
|
|
845
|
-
function Wc(a) { this.l = a || Xc; l.PerformanceNavigationTiming ? (a = l.performance.getEntriesByType("navigation"), a = 0 < a.length && ("hq" == a[0].nextHopProtocol || "h2" == a[0].nextHopProtocol)) : a = !!(l.g && l.g.Ga && l.g.Ga() && l.g.Ga()
|
|
845
|
+
function Wc(a) { this.l = a || Xc; l.PerformanceNavigationTiming ? (a = l.performance.getEntriesByType("navigation"), a = 0 < a.length && ("hq" == a[0].nextHopProtocol || "h2" == a[0].nextHopProtocol)) : a = !!(l.g && l.g.Ga && l.g.Ga() && l.g.Ga().$b); this.j = a ? this.l : 1; this.g = null; 1 < this.j && (this.g = new Set); this.h = null; this.i = []; }
|
|
846
846
|
var Xc = 10;
|
|
847
847
|
function Yc(a) { return a.h ? !0 : a.g ? a.g.size >= a.j : !1; }
|
|
848
848
|
function uc(a) { return a.h ? 1 : a.g ? a.g.size : 0; }
|
|
@@ -920,7 +920,7 @@ function dd(a, b, c, d, e) { try {
|
|
|
920
920
|
b.onload = null, b.onerror = null, b.onabort = null, b.ontimeout = null, e(d);
|
|
921
921
|
}
|
|
922
922
|
catch (f) { } }
|
|
923
|
-
function ed(a) { this.l = a
|
|
923
|
+
function ed(a) { this.l = a.ac || null; this.j = a.jb || !1; }
|
|
924
924
|
t(ed, Sb);
|
|
925
925
|
ed.prototype.g = function () { return new fd(this.l, this.j); };
|
|
926
926
|
ed.prototype.i = function (a) { return function () { return a; }; }({});
|
|
@@ -931,12 +931,12 @@ k = fd.prototype;
|
|
|
931
931
|
k.open = function (a, b) { if (this.readyState != gd)
|
|
932
932
|
throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1; hd(this); };
|
|
933
933
|
k.send = function (a) { if (1 != this.readyState)
|
|
934
|
-
throw this.abort(), Error("need to call open() first. "); this.g = !0; var b = { headers: this.v, method: this.C, credentials: this.m, cache: void 0 }; a && (b.body = a); (this.D || l).fetch(new Request(this.B, b)).then(this.
|
|
934
|
+
throw this.abort(), Error("need to call open() first. "); this.g = !0; var b = { headers: this.v, method: this.C, credentials: this.m, cache: void 0 }; a && (b.body = a); (this.D || l).fetch(new Request(this.B, b)).then(this.Wa.bind(this), this.ga.bind(this)); };
|
|
935
935
|
k.abort = function () { this.response = this.responseText = ""; this.v = new Headers; this.status = 0; this.j && this.j.cancel("Request was aborted.").catch(function () { }); 1 <= this.readyState && this.g && 4 != this.readyState && (this.g = !1, id(this)); this.readyState = gd; };
|
|
936
|
-
k.
|
|
936
|
+
k.Wa = function (a) {
|
|
937
937
|
if (this.g && (this.l = a, this.h || (this.status = this.l.status, this.statusText = this.l.statusText, this.h = a.headers, this.readyState = 2, hd(this)), this.g && (this.readyState = 3, hd(this), this.g)))
|
|
938
938
|
if ("arraybuffer" === this.responseType)
|
|
939
|
-
a.arrayBuffer().then(this.
|
|
939
|
+
a.arrayBuffer().then(this.Ua.bind(this), this.ga.bind(this));
|
|
940
940
|
else if ("undefined" !== typeof l.ReadableStream && "body" in a) {
|
|
941
941
|
this.j = a.body.getReader();
|
|
942
942
|
if (this.u) {
|
|
@@ -950,10 +950,10 @@ k.Va = function (a) {
|
|
|
950
950
|
jd(this);
|
|
951
951
|
}
|
|
952
952
|
else
|
|
953
|
-
a.text().then(this.
|
|
953
|
+
a.text().then(this.Va.bind(this), this.ga.bind(this));
|
|
954
954
|
};
|
|
955
|
-
function jd(a) { a.j.read().then(a.
|
|
956
|
-
k.
|
|
955
|
+
function jd(a) { a.j.read().then(a.Ta.bind(a)).catch(a.ga.bind(a)); }
|
|
956
|
+
k.Ta = function (a) { if (this.g) {
|
|
957
957
|
if (this.u && a.value)
|
|
958
958
|
this.response.push(a.value);
|
|
959
959
|
else if (!this.u) {
|
|
@@ -964,8 +964,8 @@ k.Sa = function (a) { if (this.g) {
|
|
|
964
964
|
a.done ? id(this) : hd(this);
|
|
965
965
|
3 == this.readyState && jd(this);
|
|
966
966
|
} };
|
|
967
|
-
k.
|
|
968
|
-
k.
|
|
967
|
+
k.Va = function (a) { this.g && (this.response = this.responseText = a, id(this)); };
|
|
968
|
+
k.Ua = function (a) { this.g && (this.response = a, id(this)); };
|
|
969
969
|
k.ga = function () { this.g && id(this); };
|
|
970
970
|
function id(a) { a.readyState = 4; a.l = null; a.j = null; a.A = null; hd(a); }
|
|
971
971
|
k.setRequestHeader = function (a, b) { this.v.append(a, b); };
|
|
@@ -980,6 +980,7 @@ function W(a) { B.call(this); this.headers = new Map; this.u = a || null; this.h
|
|
|
980
980
|
t(W, B);
|
|
981
981
|
var ld = "", md = /^https?$/i, nd = ["POST", "PUT"];
|
|
982
982
|
k = W.prototype;
|
|
983
|
+
k.Ka = function (a) { this.L = a; };
|
|
983
984
|
k.da = function (a, b, c, d) {
|
|
984
985
|
var e_3, _a, e_4, _b;
|
|
985
986
|
if (this.g)
|
|
@@ -1055,8 +1056,8 @@ function od(a, b) { a.h = !1; a.g && (a.l = !0, a.g.abort(), a.l = !1); a.j = b;
|
|
|
1055
1056
|
function rd(a) { a.D || (a.D = !0, C(a, "complete"), C(a, "error")); }
|
|
1056
1057
|
k.abort = function (a) { this.g && this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1, this.m = a || 7, C(this, "complete"), C(this, "abort"), sd(this)); };
|
|
1057
1058
|
k.M = function () { this.g && (this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1), sd(this, !0)); W.X.M.call(this); };
|
|
1058
|
-
k.Ha = function () { this.s || (this.F || this.v || this.l ? td(this) : this.
|
|
1059
|
-
k.
|
|
1059
|
+
k.Ha = function () { this.s || (this.F || this.v || this.l ? td(this) : this.fb()); };
|
|
1060
|
+
k.fb = function () { td(this); };
|
|
1060
1061
|
function td(a) {
|
|
1061
1062
|
if (a.h && "undefined" != typeof goog && (!a.C[1] || 4 != O(a) || 2 != a.aa()))
|
|
1062
1063
|
if (a.v && 4 == O(a))
|
|
@@ -1134,7 +1135,7 @@ k.fa = function () { try {
|
|
|
1134
1135
|
catch (a) {
|
|
1135
1136
|
return "";
|
|
1136
1137
|
} };
|
|
1137
|
-
k.
|
|
1138
|
+
k.Sa = function (a) { if (this.g) {
|
|
1138
1139
|
var b = this.g.responseText;
|
|
1139
1140
|
a && 0 == b.indexOf(a) && (b = b.substring(a.length));
|
|
1140
1141
|
return kd(b);
|
|
@@ -1156,7 +1157,7 @@ catch (b) {
|
|
|
1156
1157
|
return null;
|
|
1157
1158
|
} }
|
|
1158
1159
|
k.Ea = function () { return this.m; };
|
|
1159
|
-
k.
|
|
1160
|
+
k.Oa = function () { return "string" === typeof this.j ? this.j : String(this.j); };
|
|
1160
1161
|
function ud(a) { var b = ""; Qa(a, function (c, d) { b += d; b += ":"; b += c; b += "\r\n"; }); return b; }
|
|
1161
1162
|
function vd(a, b, c) { a: {
|
|
1162
1163
|
for (d in c) {
|
|
@@ -1171,18 +1172,18 @@ function xd(a) {
|
|
|
1171
1172
|
this.i = [];
|
|
1172
1173
|
this.j = new Gb;
|
|
1173
1174
|
this.ka = this.sa = this.F = this.V = this.g = this.za = this.D = this.ia = this.o = this.S = this.s = null;
|
|
1174
|
-
this
|
|
1175
|
-
this.
|
|
1175
|
+
this.ab = this.U = 0;
|
|
1176
|
+
this.Za = wd("failFast", !1, a);
|
|
1176
1177
|
this.L = this.v = this.u = this.m = this.l = null;
|
|
1177
1178
|
this.Y = !0;
|
|
1178
1179
|
this.pa = this.Ba = this.T = -1;
|
|
1179
1180
|
this.Z = this.A = this.C = 0;
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this
|
|
1181
|
+
this.Xa = wd("baseRetryDelayMs", 5E3, a);
|
|
1182
|
+
this.bb = wd("retryDelaySeedMs", 1E4, a);
|
|
1183
|
+
this.$a = wd("forwardChannelMaxRetries", 2, a);
|
|
1183
1184
|
this.ta = wd("forwardChannelRequestTimeoutMs", 2E4, a);
|
|
1184
1185
|
this.ra = a && a.xmlHttpFactory || void 0;
|
|
1185
|
-
this.Da = a && a.
|
|
1186
|
+
this.Da = a && a.Zb || !1;
|
|
1186
1187
|
this.J = void 0;
|
|
1187
1188
|
this.H = a && a.supportsCrossDomainXhr || !1;
|
|
1188
1189
|
this.I = "";
|
|
@@ -1191,7 +1192,7 @@ function xd(a) {
|
|
|
1191
1192
|
this.O = a && a.fastHandshake || !1;
|
|
1192
1193
|
this.N = a && a.encodeInitMessageHeaders || !1;
|
|
1193
1194
|
this.O && this.N && (this.N = !1);
|
|
1194
|
-
this.
|
|
1195
|
+
this.Ya = a && a.Xb || !1;
|
|
1195
1196
|
a && a.Aa && this.j.Aa();
|
|
1196
1197
|
a && a.forceLongPolling && (this.Y = !1);
|
|
1197
1198
|
this.$ = !this.O && this.Y && a && a.detectBufferingProxy || !1;
|
|
@@ -1224,7 +1225,7 @@ function yd(a) { sc(a); a.u && (l.clearTimeout(a.u), a.u = null); rc(a); a.h.can
|
|
|
1224
1225
|
function zc(a) { Yc(a.h) || a.m || (a.m = !0, sb(a.Ja, a), a.C = 0); }
|
|
1225
1226
|
function Bd(a, b) { if (uc(a.h) >= a.h.j - (a.m ? 1 : 0))
|
|
1226
1227
|
return !1; if (a.m)
|
|
1227
|
-
return a.i = b.D.concat(a.i), !0; if (1 == a.G || 2 == a.G || a.C >= (a.
|
|
1228
|
+
return a.i = b.D.concat(a.i), !0; if (1 == a.G || 2 == a.G || a.C >= (a.Za ? 0 : a.$a))
|
|
1228
1229
|
return !1; a.m = J(q(a.Ja, a, b), Cd(a, a.C)); a.C++; return !0; }
|
|
1229
1230
|
k.Ja = function (a) {
|
|
1230
1231
|
if (this.m)
|
|
@@ -1273,7 +1274,7 @@ k.Ja = function (a) {
|
|
|
1273
1274
|
zd(this, c);
|
|
1274
1275
|
f && (this.N ? b = "headers=" + encodeURIComponent(String(ud(f))) + "&" + b : this.o && vd(c, this.o, f));
|
|
1275
1276
|
vc(this.h, e);
|
|
1276
|
-
this.
|
|
1277
|
+
this.Ya && S(c, "TYPE", "init");
|
|
1277
1278
|
this.O ? (S(c, "$req", b), S(c, "SID", "null"), e.Z = !0, cc(e, c, null)) : cc(e, c, b);
|
|
1278
1279
|
this.G = 2;
|
|
1279
1280
|
}
|
|
@@ -1283,7 +1284,7 @@ k.Ja = function (a) {
|
|
|
1283
1284
|
};
|
|
1284
1285
|
function Ed(a, b) { var c; b ? c = b.m : c = a.U++; var d = M(a.F); S(d, "SID", a.I); S(d, "RID", c); S(d, "AID", a.T); zd(a, d); a.o && a.s && vd(d, a.o, a.s); c = new L(a, a.j, c, a.C + 1); null === a.o && (c.H = a.s); b && (a.i = b.D.concat(a.i)); b = Dd(a, c, 1E3); c.setTimeout(Math.round(.5 * a.ta) + Math.round(.5 * a.ta * Math.random())); vc(a.h, c); cc(c, d, b); }
|
|
1285
1286
|
function zd(a, b) { a.ia && Qa(a.ia, function (c, d) { S(b, d, c); }); a.l && Dc({}, function (c, d) { S(b, d, c); }); }
|
|
1286
|
-
function Dd(a, b, c) { c = Math.min(a.i.length, c); var d = a.l ? q(a.l.
|
|
1287
|
+
function Dd(a, b, c) { c = Math.min(a.i.length, c); var d = a.l ? q(a.l.Ra, a.l, a) : null; a: {
|
|
1287
1288
|
var e = a.i;
|
|
1288
1289
|
var f = -1;
|
|
1289
1290
|
for (;;) {
|
|
@@ -1316,12 +1317,12 @@ function tc(a) { if (a.g || a.u || 3 <= a.A)
|
|
|
1316
1317
|
k.Ia = function () { this.u = null; Fd(this); if (this.$ && !(this.K || null == this.g || 0 >= this.P)) {
|
|
1317
1318
|
var a = 2 * this.P;
|
|
1318
1319
|
this.j.info("BP detection timer enabled: " + a);
|
|
1319
|
-
this.B = J(q(this.
|
|
1320
|
+
this.B = J(q(this.eb, this), a);
|
|
1320
1321
|
} };
|
|
1321
|
-
k.
|
|
1322
|
+
k.eb = function () { this.B && (this.B = null, this.j.info("BP detection timeout reached."), this.j.info("Buffering proxy detected and switch to long-polling!"), this.L = !1, this.K = !0, I(10), sc(this), Fd(this)); };
|
|
1322
1323
|
function oc(a) { null != a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
1323
1324
|
function Fd(a) { a.g = new L(a, a.j, "rpc", a.Z); null === a.o && (a.g.H = a.s); a.g.N = 0; var b = M(a.sa); S(b, "RID", "rpc"); S(b, "SID", a.I); S(b, "CI", a.L ? "0" : "1"); S(b, "AID", a.T); S(b, "TYPE", "xmlhttp"); zd(a, b); a.o && a.s && vd(b, a.o, a.s); a.J && a.g.setTimeout(a.J); var c = a.g; a = a.ka; c.K = 1; c.v = dc(M(b)); c.s = null; c.P = !0; ec(c, a); }
|
|
1324
|
-
k.
|
|
1325
|
+
k.cb = function () { null != this.v && (this.v = null, sc(this), tc(this), I(19)); };
|
|
1325
1326
|
function rc(a) { null != a.v && (l.clearTimeout(a.v), a.v = null); }
|
|
1326
1327
|
function mc(a, b) { var c = null; if (a.g == b) {
|
|
1327
1328
|
rc(a);
|
|
@@ -1357,17 +1358,17 @@ else
|
|
|
1357
1358
|
break;
|
|
1358
1359
|
default: R(a, 2);
|
|
1359
1360
|
} }
|
|
1360
|
-
function Cd(a, b) { var c = a.
|
|
1361
|
+
function Cd(a, b) { var c = a.Xa + Math.floor(Math.random() * a.bb); a.l || (c *= 2); return c * b; }
|
|
1361
1362
|
function R(a, b) { a.j.info("Error code " + b); if (2 == b) {
|
|
1362
1363
|
var c = null;
|
|
1363
1364
|
a.l && (c = null);
|
|
1364
|
-
var d = q(a.
|
|
1365
|
+
var d = q(a.kb, a);
|
|
1365
1366
|
c || (c = new T("//www.google.com/images/cleardot.gif"), l.location && "http" == l.location.protocol || Gc(c, "https"), dc(c));
|
|
1366
1367
|
cd(c.toString(), d);
|
|
1367
1368
|
}
|
|
1368
1369
|
else
|
|
1369
1370
|
I(2); a.G = 0; a.l && a.l.va(b); Ad(a); yd(a); }
|
|
1370
|
-
k.
|
|
1371
|
+
k.kb = function (a) { a ? (this.j.info("Successfully pinged google.com"), I(2)) : (this.j.info("Failed to ping google.com"), I(1)); };
|
|
1371
1372
|
function Ad(a) { a.G = 0; a.la = []; if (a.l) {
|
|
1372
1373
|
var b = Zc(a.h);
|
|
1373
1374
|
if (0 != b.length || 0 != a.i.length)
|
|
@@ -1389,14 +1390,14 @@ else {
|
|
|
1389
1390
|
d = f;
|
|
1390
1391
|
} c = a.D; b = a.za; c && b && S(d, c, b); S(d, "VER", a.ma); zd(a, d); return d; }
|
|
1391
1392
|
function gc(a, b, c) { if (b && !a.H)
|
|
1392
|
-
throw Error("Can't create secondary domain capable XhrIo object."); b = c && a.Da && !a.ra ? new W(new ed({
|
|
1393
|
+
throw Error("Can't create secondary domain capable XhrIo object."); b = c && a.Da && !a.ra ? new W(new ed({ jb: !0 })) : new W(a.ra); b.Ka(a.H); return b; }
|
|
1393
1394
|
function Gd() { }
|
|
1394
1395
|
k = Gd.prototype;
|
|
1395
1396
|
k.xa = function () { };
|
|
1396
1397
|
k.wa = function () { };
|
|
1397
1398
|
k.va = function () { };
|
|
1398
1399
|
k.ua = function () { };
|
|
1399
|
-
k.
|
|
1400
|
+
k.Ra = function () { };
|
|
1400
1401
|
function Hd() { if (y && !(10 <= Number(La)))
|
|
1401
1402
|
throw Error("Environmental error: no available transport."); }
|
|
1402
1403
|
Hd.prototype.g = function (a, b) { return new X(a, b); };
|
|
@@ -1413,7 +1414,7 @@ function X(a, b) {
|
|
|
1413
1414
|
b && b.ya && (a ? a["X-WebChannel-Client-Profile"] = b.ya : a = { "X-WebChannel-Client-Profile": b.ya });
|
|
1414
1415
|
this.g.S =
|
|
1415
1416
|
a;
|
|
1416
|
-
(a = b && b.
|
|
1417
|
+
(a = b && b.Yb) && !pa(a) && (this.g.o = a);
|
|
1417
1418
|
this.A = b && b.supportsCrossDomainXhr || !1;
|
|
1418
1419
|
this.v = b && b.sendRawJson || !1;
|
|
1419
1420
|
(b = b && b.httpSessionIdParam) && !pa(b) && (this.g.D = b, a = this.h, null !== a && b in a && (a = this.h, b in a && delete a[b]));
|
|
@@ -1428,7 +1429,7 @@ X.prototype.u = function (a) { var b = this.g; if ("string" === typeof a) {
|
|
|
1428
1429
|
a = c;
|
|
1429
1430
|
}
|
|
1430
1431
|
else
|
|
1431
|
-
this.v && (c = {}, c.__data__ = lb(a), a = c); b.i.push(new Vc(b
|
|
1432
|
+
this.v && (c = {}, c.__data__ = lb(a), a = c); b.i.push(new Vc(b.ab++, a)); 3 == b.G && zc(b); };
|
|
1432
1433
|
X.prototype.M = function () { this.g.l = null; delete this.j; Ac(this.g); delete this.g; X.X.M.call(this); };
|
|
1433
1434
|
function Id(a) { Vb.call(this); var b = a.__sm__; if (b) {
|
|
1434
1435
|
a: {
|
|
@@ -1483,18 +1484,19 @@ K.ERROR = "c";
|
|
|
1483
1484
|
K.MESSAGE = "d";
|
|
1484
1485
|
B.prototype.listen = B.prototype.N;
|
|
1485
1486
|
W.prototype.listenOnce = W.prototype.O;
|
|
1486
|
-
W.prototype.getLastError = W.prototype.
|
|
1487
|
+
W.prototype.getLastError = W.prototype.Oa;
|
|
1487
1488
|
W.prototype.getLastErrorCode = W.prototype.Ea;
|
|
1488
1489
|
W.prototype.getStatus = W.prototype.aa;
|
|
1489
|
-
W.prototype.getResponseJson = W.prototype.
|
|
1490
|
+
W.prototype.getResponseJson = W.prototype.Sa;
|
|
1490
1491
|
W.prototype.getResponseText = W.prototype.fa;
|
|
1491
1492
|
W.prototype.send = W.prototype.da;
|
|
1493
|
+
W.prototype.setWithCredentials = W.prototype.Ka;
|
|
1492
1494
|
var createWebChannelTransport = esm.createWebChannelTransport = function () { return new Hd; };
|
|
1493
1495
|
var getStatEventTarget = esm.getStatEventTarget = function () { return Mb(); };
|
|
1494
1496
|
var ErrorCode = esm.ErrorCode = Qb;
|
|
1495
1497
|
var EventType = esm.EventType = Rb;
|
|
1496
1498
|
var Event = esm.Event = G;
|
|
1497
|
-
var Stat = esm.Stat = {
|
|
1499
|
+
var Stat = esm.Stat = { sb: 0, vb: 1, wb: 2, Pb: 3, Ub: 4, Rb: 5, Sb: 6, Qb: 7, Ob: 8, Tb: 9, PROXY: 10, NOPROXY: 11, Mb: 12, Ib: 13, Jb: 14, Hb: 15, Kb: 16, Lb: 17, ob: 18, nb: 19, pb: 20 };
|
|
1498
1500
|
var FetchXmlHttpFactory = esm.FetchXmlHttpFactory = ed;
|
|
1499
1501
|
var WebChannel = esm.WebChannel = Ub;
|
|
1500
1502
|
var XhrIo = esm.XhrIo = W;
|