@firebase/webchannel-wrapper 0.6.2-canary.79df09b11 → 0.6.2-canary.7c0c640a4
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/index.esm.js +762 -751
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm2017.js +80 -79
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.js +102 -93
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -39,6 +39,23 @@ function __values(o) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function __read(o, n) {
|
|
45
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
46
|
+
if (!m) return o;
|
|
47
|
+
var i = m.call(o), r, ar = [], e;
|
|
48
|
+
try {
|
|
49
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
50
|
+
}
|
|
51
|
+
catch (error) { e = { error: error }; }
|
|
52
|
+
finally {
|
|
53
|
+
try {
|
|
54
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
55
|
+
}
|
|
56
|
+
finally { if (e) throw e.error; }
|
|
57
|
+
}
|
|
58
|
+
return ar;
|
|
42
59
|
}
|
|
43
60
|
|
|
44
61
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -49,131 +66,107 @@ var k, goog = goog || {}, l = commonjsGlobal || self;
|
|
|
49
66
|
function aa() { }
|
|
50
67
|
function ba(a) { var b = typeof a; b = "object" != b ? b : a ? Array.isArray(a) ? "array" : b : "null"; return "array" == b || "object" == b && "number" == typeof a.length; }
|
|
51
68
|
function p(a) { var b = typeof a; return "object" == b && null != a || "function" == b; }
|
|
52
|
-
function
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
function
|
|
69
|
+
function ca(a) { return Object.prototype.hasOwnProperty.call(a, da) && a[da] || (a[da] = ++ea); }
|
|
70
|
+
var da = "closure_uid_" + (1E9 * Math.random() >>> 0), ea = 0;
|
|
71
|
+
function fa(a, b, c) { return a.call.apply(a.bind, arguments); }
|
|
72
|
+
function ha(a, b, c) { if (!a)
|
|
56
73
|
throw Error(); if (2 < arguments.length) {
|
|
57
74
|
var d = Array.prototype.slice.call(arguments, 2);
|
|
58
75
|
return function () { var e = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(e, d); return a.apply(b, e); };
|
|
59
76
|
} return function () { return a.apply(b, arguments); }; }
|
|
60
|
-
function q(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? q =
|
|
61
|
-
function
|
|
62
|
-
function t(a, b) { function c() { } c.prototype = b.prototype; a.
|
|
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
|
+
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.Vb = function (d, e, f) { for (var h = Array(arguments.length - 2), n = 2; n < arguments.length; n++)
|
|
63
80
|
h[n - 2] = arguments[n]; return b.prototype[e].apply(d, h); }; }
|
|
64
81
|
function v() { this.s = this.s; this.o = this.o; }
|
|
65
|
-
var
|
|
82
|
+
var ja = 0, ka = {};
|
|
66
83
|
v.prototype.s = !1;
|
|
67
|
-
v.prototype.na = function () { if (!this.s && (this.s = !0, this.M(), 0 !=
|
|
68
|
-
var a =
|
|
69
|
-
delete
|
|
84
|
+
v.prototype.na = function () { if (!this.s && (this.s = !0, this.M(), 0 != ja)) {
|
|
85
|
+
var a = ca(this);
|
|
86
|
+
delete ka[a];
|
|
70
87
|
} };
|
|
71
88
|
v.prototype.M = function () { if (this.o)
|
|
72
89
|
for (; this.o.length;)
|
|
73
90
|
this.o.shift()(); };
|
|
74
|
-
var
|
|
91
|
+
var la = Array.prototype.indexOf ? function (a, b) { return Array.prototype.indexOf.call(a, b, void 0); } : function (a, b) { if ("string" === typeof a)
|
|
75
92
|
return "string" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, 0); for (var c = 0; c < a.length; c++)
|
|
76
93
|
if (c in a && a[c] === b)
|
|
77
|
-
return c; return -1; }
|
|
78
|
-
|
|
79
|
-
function oa(a) { a: {
|
|
80
|
-
var b = pa;
|
|
81
|
-
var c = a.length, d = "string" === typeof a ? a.split("") : a;
|
|
82
|
-
for (var e = 0; e < c; e++)
|
|
83
|
-
if (e in d && b.call(void 0, d[e], e, a)) {
|
|
84
|
-
b = e;
|
|
85
|
-
break a;
|
|
86
|
-
}
|
|
87
|
-
b = -1;
|
|
88
|
-
} return 0 > b ? null : "string" === typeof a ? a.charAt(b) : a[b]; }
|
|
89
|
-
function qa(a) { return Array.prototype.concat.apply([], arguments); }
|
|
90
|
-
function ra(a) { var b = a.length; if (0 < b) {
|
|
94
|
+
return c; return -1; };
|
|
95
|
+
function ma(a) { var b = a.length; if (0 < b) {
|
|
91
96
|
var c = Array(b);
|
|
92
97
|
for (var d = 0; d < b; d++)
|
|
93
98
|
c[d] = a[d];
|
|
94
99
|
return c;
|
|
95
100
|
} return []; }
|
|
96
|
-
function
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (va) {
|
|
104
|
-
var wa = va.userAgent;
|
|
105
|
-
if (wa) {
|
|
106
|
-
x = wa;
|
|
107
|
-
break a;
|
|
108
|
-
}
|
|
101
|
+
function na(a, b) { for (var c = 1; c < arguments.length; c++) {
|
|
102
|
+
var d = arguments[c];
|
|
103
|
+
if (ba(d)) {
|
|
104
|
+
var e = a.length || 0, f = d.length || 0;
|
|
105
|
+
a.length = e + f;
|
|
106
|
+
for (var h = 0; h < f; h++)
|
|
107
|
+
a[e + h] = d[h];
|
|
109
108
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
function xa(a, b, c) { for (var d in a)
|
|
113
|
-
b.call(c, a[d], d, a); }
|
|
114
|
-
function ya(a) { var b = {}; for (var c in a)
|
|
115
|
-
b[c] = a[c]; return b; }
|
|
116
|
-
var za = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
|
117
|
-
function Aa(a, b) { var c, d; for (var e = 1; e < arguments.length; e++) {
|
|
118
|
-
d = arguments[e];
|
|
119
|
-
for (c in d)
|
|
120
|
-
a[c] = d[c];
|
|
121
|
-
for (var f = 0; f < za.length; f++)
|
|
122
|
-
c = za[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);
|
|
109
|
+
else
|
|
110
|
+
a.push(d);
|
|
123
111
|
} }
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
function w(a, b) { this.type = a; this.g = this.target = b; this.defaultPrevented = !1; }
|
|
113
|
+
w.prototype.h = function () { this.defaultPrevented = !0; };
|
|
114
|
+
var oa = function () { if (!l.addEventListener || !Object.defineProperty)
|
|
115
|
+
return !1; var a = !1, b = Object.defineProperty({}, "passive", { get: function () { a = !0; } }); try {
|
|
116
|
+
l.addEventListener("test", aa, b), l.removeEventListener("test", aa, b);
|
|
117
|
+
}
|
|
118
|
+
catch (c) { } return a; }();
|
|
119
|
+
function pa(a) { return /^[\s\xa0]*$/.test(a); }
|
|
120
|
+
var qa = String.prototype.trim ? function (a) { return a.trim(); } : function (a) { return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]; };
|
|
121
|
+
function ra(a, b) { return a < b ? -1 : a > b ? 1 : 0; }
|
|
122
|
+
function sa() { var a = l.navigator; return a && (a = a.userAgent) ? a : ""; }
|
|
123
|
+
function x(a) { return -1 != sa().indexOf(a); }
|
|
124
|
+
function ta(a) { ta[" "](a); return a; }
|
|
125
|
+
ta[" "] = aa;
|
|
126
|
+
function ua(a) { var b = va; return Object.prototype.hasOwnProperty.call(b, 9) ? b[9] : b[9] = a(9); }
|
|
127
|
+
var wa = x("Opera"), y = x("Trident") || x("MSIE"), xa = x("Edge"), ya = xa || y, za = x("Gecko") && !(-1 != sa().toLowerCase().indexOf("webkit") && !x("Edge")) && !(x("Trident") || x("MSIE")) && !x("Edge"), Aa = -1 != sa().toLowerCase().indexOf("webkit") && !x("Edge");
|
|
128
|
+
function Ba() { var a = l.document; return a ? a.documentMode : void 0; }
|
|
129
|
+
var Ea;
|
|
130
130
|
a: {
|
|
131
|
-
var
|
|
132
|
-
return /rv:([^\);]+)(\)|;)/.exec(a); if (
|
|
131
|
+
var Fa = "", Ga = function () { var a = sa(); if (za)
|
|
132
|
+
return /rv:([^\);]+)(\)|;)/.exec(a); if (xa)
|
|
133
133
|
return /Edge\/([\d\.]+)/.exec(a); if (y)
|
|
134
|
-
return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a); if (
|
|
135
|
-
return /WebKit\/(\S+)/.exec(a); if (
|
|
134
|
+
return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a); if (Aa)
|
|
135
|
+
return /WebKit\/(\S+)/.exec(a); if (wa)
|
|
136
136
|
return /(?:Version)[ \/]?(\S+)/.exec(a); }();
|
|
137
|
-
|
|
137
|
+
Ga && (Fa = Ga ? Ga[1] : "");
|
|
138
138
|
if (y) {
|
|
139
|
-
var
|
|
140
|
-
if (null !=
|
|
141
|
-
|
|
139
|
+
var Ha = Ba();
|
|
140
|
+
if (null != Ha && Ha > parseFloat(Fa)) {
|
|
141
|
+
Ea = String(Ha);
|
|
142
142
|
break a;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
Ea = Fa;
|
|
146
146
|
}
|
|
147
|
-
var
|
|
148
|
-
function
|
|
147
|
+
var va = {};
|
|
148
|
+
function Ia() { return ua(function () { var a = 0; var b = qa(String(Ea)).split("."), c = qa("9").split("."), d = Math.max(b.length, c.length); for (var h = 0; 0 == a && h < d; h++) {
|
|
149
149
|
var e = b[h] || "", f = c[h] || "";
|
|
150
150
|
do {
|
|
151
151
|
e = /(\d*)(\D*)(.*)/.exec(e) || ["", "", "", ""];
|
|
152
152
|
f = /(\d*)(\D*)(.*)/.exec(f) || ["", "", "", ""];
|
|
153
153
|
if (0 == e[0].length && 0 == f[0].length)
|
|
154
154
|
break;
|
|
155
|
-
a =
|
|
155
|
+
a = ra(0 == e[1].length ? 0 : parseInt(e[1], 10), 0 == f[1].length ? 0 : parseInt(f[1], 10)) || ra(0 == e[2].length, 0 == f[2].length) || ra(e[2], f[2]);
|
|
156
156
|
e = e[3];
|
|
157
157
|
f = f[3];
|
|
158
158
|
} while (0 == a);
|
|
159
159
|
} return 0 <= a; }); }
|
|
160
|
-
var
|
|
160
|
+
var Ja;
|
|
161
161
|
if (l.document && y) {
|
|
162
|
-
var
|
|
163
|
-
|
|
162
|
+
var Ka = Ba();
|
|
163
|
+
Ja = Ka ? Ka : parseInt(Ea, 10) || void 0;
|
|
164
164
|
}
|
|
165
165
|
else
|
|
166
|
-
|
|
167
|
-
var
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
l.addEventListener("test", aa, b), l.removeEventListener("test", aa, b);
|
|
171
|
-
}
|
|
172
|
-
catch (c) { } return a; }();
|
|
173
|
-
function z(a, b) { this.type = a; this.g = this.target = b; this.defaultPrevented = !1; }
|
|
174
|
-
z.prototype.h = function () { this.defaultPrevented = !0; };
|
|
175
|
-
function A(a, b) {
|
|
176
|
-
z.call(this, a ? a.type : "");
|
|
166
|
+
Ja = void 0;
|
|
167
|
+
var La = Ja;
|
|
168
|
+
function z(a, b) {
|
|
169
|
+
w.call(this, a ? a.type : "");
|
|
177
170
|
this.relatedTarget = this.g = this.target = null;
|
|
178
171
|
this.button = this.screenY = this.screenX = this.clientY = this.clientX = 0;
|
|
179
172
|
this.key = "";
|
|
@@ -187,10 +180,10 @@ function A(a, b) {
|
|
|
187
180
|
this.target = a.target || a.srcElement;
|
|
188
181
|
this.g = b;
|
|
189
182
|
if (b = a.relatedTarget) {
|
|
190
|
-
if (
|
|
183
|
+
if (za) {
|
|
191
184
|
a: {
|
|
192
185
|
try {
|
|
193
|
-
|
|
186
|
+
ta(b.nodeName);
|
|
194
187
|
var e = !0;
|
|
195
188
|
break a;
|
|
196
189
|
}
|
|
@@ -213,188 +206,200 @@ function A(a, b) {
|
|
|
213
206
|
a.shiftKey;
|
|
214
207
|
this.metaKey = a.metaKey;
|
|
215
208
|
this.pointerId = a.pointerId || 0;
|
|
216
|
-
this.pointerType = "string" === typeof a.pointerType ? a.pointerType :
|
|
209
|
+
this.pointerType = "string" === typeof a.pointerType ? a.pointerType : Ma[a.pointerType] || "";
|
|
217
210
|
this.state = a.state;
|
|
218
211
|
this.i = a;
|
|
219
|
-
a.defaultPrevented &&
|
|
212
|
+
a.defaultPrevented && z.X.h.call(this);
|
|
220
213
|
}
|
|
221
214
|
}
|
|
222
|
-
t(
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
var
|
|
226
|
-
var
|
|
227
|
-
function
|
|
228
|
-
function
|
|
229
|
-
function
|
|
230
|
-
|
|
231
|
-
function
|
|
232
|
-
|
|
215
|
+
t(z, w);
|
|
216
|
+
var Ma = { 2: "touch", 3: "pen", 4: "mouse" };
|
|
217
|
+
z.prototype.h = function () { z.X.h.call(this); var a = this.i; a.preventDefault ? a.preventDefault() : a.returnValue = !1; };
|
|
218
|
+
var A = "closure_listenable_" + (1E6 * Math.random() | 0);
|
|
219
|
+
var Na = 0;
|
|
220
|
+
function Oa(a, b, c, d, e) { this.listener = a; this.proxy = null; this.src = b; this.type = c; this.capture = !!d; this.ha = e; this.key = ++Na; this.ba = this.ea = !1; }
|
|
221
|
+
function Pa(a) { a.ba = !0; a.listener = null; a.proxy = null; a.src = null; a.ha = null; }
|
|
222
|
+
function Qa(a, b, c) { for (var d in a)
|
|
223
|
+
b.call(c, a[d], d, a); }
|
|
224
|
+
function Ra(a) { var b = {}; for (var c in a)
|
|
225
|
+
b[c] = a[c]; return b; }
|
|
226
|
+
var Sa = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
|
227
|
+
function Ta(a, b) { var c, d; for (var e = 1; e < arguments.length; e++) {
|
|
228
|
+
d = arguments[e];
|
|
229
|
+
for (c in d)
|
|
230
|
+
a[c] = d[c];
|
|
231
|
+
for (var f = 0; f < Sa.length; f++)
|
|
232
|
+
c = Sa[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);
|
|
233
|
+
} }
|
|
234
|
+
function Ua(a) { this.src = a; this.g = {}; this.h = 0; }
|
|
235
|
+
Ua.prototype.add = function (a, b, c, d, e) { var f = a.toString(); a = this.g[f]; a || (a = this.g[f] = [], this.h++); var h = Va(a, b, d, e); -1 < h ? (b = a[h], c || (b.ea = !1)) : (b = new Oa(b, this.src, f, !!d, e), b.ea = c, a.push(b)); return b; };
|
|
236
|
+
function Wa(a, b) { var c = b.type; if (c in a.g) {
|
|
237
|
+
var d = a.g[c], e = la(d, b), f;
|
|
233
238
|
(f = 0 <= e) && Array.prototype.splice.call(d, e, 1);
|
|
234
|
-
f && (
|
|
239
|
+
f && (Pa(b), 0 == a.g[c].length && (delete a.g[c], a.h--));
|
|
235
240
|
} }
|
|
236
|
-
function
|
|
241
|
+
function Va(a, b, c, d) { for (var e = 0; e < a.length; ++e) {
|
|
237
242
|
var f = a[e];
|
|
238
|
-
if (!f.
|
|
243
|
+
if (!f.ba && f.listener == b && f.capture == !!c && f.ha == d)
|
|
239
244
|
return e;
|
|
240
245
|
} return -1; }
|
|
241
|
-
var
|
|
242
|
-
function
|
|
243
|
-
return
|
|
246
|
+
var Xa = "closure_lm_" + (1E6 * Math.random() | 0), Ya = {};
|
|
247
|
+
function $a(a, b, c, d, e) { if (d && d.once)
|
|
248
|
+
return ab(a, b, c, d, e); if (Array.isArray(b)) {
|
|
244
249
|
for (var f = 0; f < b.length; f++)
|
|
245
|
-
|
|
250
|
+
$a(a, b[f], c, d, e);
|
|
246
251
|
return null;
|
|
247
|
-
} c =
|
|
248
|
-
function
|
|
249
|
-
throw Error("Invalid event type"); var h = p(e) ? !!e.capture : !!e, n =
|
|
250
|
-
return c; d =
|
|
251
|
-
|
|
252
|
+
} c = bb(c); return a && a[A] ? a.N(b, c, p(d) ? !!d.capture : !!d, e) : cb(a, b, c, !1, d, e); }
|
|
253
|
+
function cb(a, b, c, d, e, f) { if (!b)
|
|
254
|
+
throw Error("Invalid event type"); var h = p(e) ? !!e.capture : !!e, n = db(a); n || (a[Xa] = n = new Ua(a)); c = n.add(b, c, d, h, f); if (c.proxy)
|
|
255
|
+
return c; d = eb(); c.proxy = d; d.src = a; d.listener = c; if (a.addEventListener)
|
|
256
|
+
oa || (e = h), void 0 === e && (e = !1), a.addEventListener(b.toString(), d, e);
|
|
252
257
|
else if (a.attachEvent)
|
|
253
|
-
a.attachEvent(
|
|
258
|
+
a.attachEvent(fb(b.toString()), d);
|
|
254
259
|
else if (a.addListener && a.removeListener)
|
|
255
260
|
a.addListener(d);
|
|
256
261
|
else
|
|
257
262
|
throw Error("addEventListener and attachEvent are unavailable."); return c; }
|
|
258
|
-
function
|
|
259
|
-
function
|
|
263
|
+
function eb() { function a(c) { return b.call(a.src, a.listener, c); } var b = gb; return a; }
|
|
264
|
+
function ab(a, b, c, d, e) { if (Array.isArray(b)) {
|
|
260
265
|
for (var f = 0; f < b.length; f++)
|
|
261
|
-
|
|
266
|
+
ab(a, b[f], c, d, e);
|
|
262
267
|
return null;
|
|
263
|
-
} c =
|
|
264
|
-
function
|
|
268
|
+
} c = bb(c); return a && a[A] ? a.O(b, c, p(d) ? !!d.capture : !!d, e) : cb(a, b, c, !0, d, e); }
|
|
269
|
+
function hb(a, b, c, d, e) { if (Array.isArray(b))
|
|
265
270
|
for (var f = 0; f < b.length; f++)
|
|
266
|
-
|
|
271
|
+
hb(a, b[f], c, d, e);
|
|
267
272
|
else
|
|
268
|
-
(d = p(d) ? !!d.capture : !!d, c =
|
|
269
|
-
function
|
|
273
|
+
(d = p(d) ? !!d.capture : !!d, c = bb(c), a && a[A]) ? (a = a.i, b = String(b).toString(), b in a.g && (f = a.g[b], c = Va(f, c, d, e), -1 < c && (Pa(f[c]), Array.prototype.splice.call(f, c, 1), 0 == f.length && (delete a.g[b], a.h--)))) : a && (a = db(a)) && (b = a.g[b.toString()], a = -1, b && (a = Va(b, c, d, e)), (c = -1 < a ? b[a] : null) && ib(c)); }
|
|
274
|
+
function ib(a) { if ("number" !== typeof a && a && !a.ba) {
|
|
270
275
|
var b = a.src;
|
|
271
|
-
if (b && b[
|
|
272
|
-
|
|
276
|
+
if (b && b[A])
|
|
277
|
+
Wa(b.i, a);
|
|
273
278
|
else {
|
|
274
279
|
var c = a.type, d = a.proxy;
|
|
275
|
-
b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent ? b.detachEvent(
|
|
276
|
-
(c =
|
|
280
|
+
b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent ? b.detachEvent(fb(c), d) : b.addListener && b.removeListener && b.removeListener(d);
|
|
281
|
+
(c = db(b)) ? (Wa(c, a), 0 == c.h && (c.src = null, b[Xa] = null)) : Pa(a);
|
|
277
282
|
}
|
|
278
283
|
} }
|
|
279
|
-
function
|
|
280
|
-
function
|
|
284
|
+
function fb(a) { return a in Ya ? Ya[a] : Ya[a] = "on" + a; }
|
|
285
|
+
function gb(a, b) { if (a.ba)
|
|
281
286
|
a = !0;
|
|
282
287
|
else {
|
|
283
|
-
b = new
|
|
284
|
-
var c = a.listener, d = a.
|
|
285
|
-
a.
|
|
288
|
+
b = new z(b, this);
|
|
289
|
+
var c = a.listener, d = a.ha || a.src;
|
|
290
|
+
a.ea && ib(a);
|
|
286
291
|
a = c.call(d, b);
|
|
287
292
|
} return a; }
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
function
|
|
291
|
-
return a; a[
|
|
292
|
-
function
|
|
293
|
-
t(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
function
|
|
293
|
+
function db(a) { a = a[Xa]; return a instanceof Ua ? a : null; }
|
|
294
|
+
var jb = "__closure_events_fn_" + (1E9 * Math.random() >>> 0);
|
|
295
|
+
function bb(a) { if ("function" === typeof a)
|
|
296
|
+
return a; a[jb] || (a[jb] = function (b) { return a.handleEvent(b); }); return a[jb]; }
|
|
297
|
+
function B() { v.call(this); this.i = new Ua(this); this.P = this; this.I = null; }
|
|
298
|
+
t(B, v);
|
|
299
|
+
B.prototype[A] = !0;
|
|
300
|
+
B.prototype.removeEventListener = function (a, b, c, d) { hb(this, a, b, c, d); };
|
|
301
|
+
function C(a, b) { var c, d = a.I; if (d)
|
|
297
302
|
for (c = []; d; d = d.I)
|
|
298
303
|
c.push(d); a = a.P; d = b.type || b; if ("string" === typeof b)
|
|
299
|
-
b = new
|
|
300
|
-
else if (b instanceof
|
|
304
|
+
b = new w(b, a);
|
|
305
|
+
else if (b instanceof w)
|
|
301
306
|
b.target = b.target || a;
|
|
302
307
|
else {
|
|
303
308
|
var e = b;
|
|
304
|
-
b = new
|
|
305
|
-
|
|
309
|
+
b = new w(d, a);
|
|
310
|
+
Ta(b, e);
|
|
306
311
|
} e = !0; if (c)
|
|
307
312
|
for (var f = c.length - 1; 0 <= f; f--) {
|
|
308
313
|
var h = b.g = c[f];
|
|
309
|
-
e =
|
|
310
|
-
} h = b.g = a; e =
|
|
314
|
+
e = kb(h, d, !0, b) && e;
|
|
315
|
+
} h = b.g = a; e = kb(h, d, !0, b) && e; e = kb(h, d, !1, b) && e; if (c)
|
|
311
316
|
for (f = 0; f < c.length; f++)
|
|
312
|
-
h = b.g = c[f], e =
|
|
313
|
-
|
|
317
|
+
h = b.g = c[f], e = kb(h, d, !1, b) && e; }
|
|
318
|
+
B.prototype.M = function () { B.X.M.call(this); if (this.i) {
|
|
314
319
|
var a = this.i, c;
|
|
315
320
|
for (c in a.g) {
|
|
316
321
|
for (var d = a.g[c], e = 0; e < d.length; e++)
|
|
317
|
-
|
|
322
|
+
Pa(d[e]);
|
|
318
323
|
delete a.g[c];
|
|
319
324
|
a.h--;
|
|
320
325
|
}
|
|
321
326
|
} this.I = null; };
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
function
|
|
327
|
+
B.prototype.N = function (a, b, c, d) { return this.i.add(String(a), b, !1, c, d); };
|
|
328
|
+
B.prototype.O = function (a, b, c, d) { return this.i.add(String(a), b, !0, c, d); };
|
|
329
|
+
function kb(a, b, c, d) { b = a.i.g[String(b)]; if (!b)
|
|
325
330
|
return !0; b = b.concat(); for (var e = !0, f = 0; f < b.length; ++f) {
|
|
326
331
|
var h = b[f];
|
|
327
|
-
if (h && !h.
|
|
328
|
-
var n = h.listener, u = h.
|
|
329
|
-
h.
|
|
332
|
+
if (h && !h.ba && h.capture == c) {
|
|
333
|
+
var n = h.listener, u = h.ha || h.src;
|
|
334
|
+
h.ea && Wa(a.i, h);
|
|
330
335
|
e = !1 !== n.call(u, d) && e;
|
|
331
336
|
}
|
|
332
337
|
} return e && !d.defaultPrevented; }
|
|
333
|
-
var
|
|
334
|
-
function
|
|
335
|
-
var
|
|
336
|
-
function
|
|
338
|
+
var lb = l.JSON.stringify;
|
|
339
|
+
function mb() { var a = nb; var b = null; a.g && (b = a.g, a.g = a.g.next, a.g || (a.h = null), b.next = null); return b; }
|
|
340
|
+
var ob = /** @class */ (function () {
|
|
341
|
+
function ob() {
|
|
337
342
|
this.h = this.g = null;
|
|
338
343
|
}
|
|
339
|
-
|
|
340
|
-
return
|
|
344
|
+
ob.prototype.add = function (a, b) { var c = pb.get(); c.set(a, b); this.h ? this.h.next = c : this.g = c; this.h = c; };
|
|
345
|
+
return ob;
|
|
341
346
|
}());
|
|
342
|
-
var
|
|
343
|
-
function
|
|
347
|
+
var pb = new /** @class */ (function () {
|
|
348
|
+
function class_1(a, b) {
|
|
344
349
|
this.i = a;
|
|
345
350
|
this.j = b;
|
|
346
351
|
this.h = 0;
|
|
347
352
|
this.g = null;
|
|
348
353
|
}
|
|
349
|
-
|
|
350
|
-
return
|
|
351
|
-
}())(function () { return new
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
+
class_1.prototype.get = function () { var a; 0 < this.h ? (this.h--, a = this.g, this.g = a.next, a.next = null) : a = this.i(); return a; };
|
|
355
|
+
return class_1;
|
|
356
|
+
}())(function () { return new qb; }, function (a) { return a.reset(); });
|
|
357
|
+
var qb = /** @class */ (function () {
|
|
358
|
+
function qb() {
|
|
354
359
|
this.next = this.g = this.h = null;
|
|
355
360
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
return
|
|
361
|
+
qb.prototype.set = function (a, b) { this.h = a; this.g = b; this.next = null; };
|
|
362
|
+
qb.prototype.reset = function () { this.next = this.g = this.h = null; };
|
|
363
|
+
return qb;
|
|
359
364
|
}());
|
|
360
|
-
function
|
|
361
|
-
function
|
|
362
|
-
var
|
|
363
|
-
function
|
|
364
|
-
var
|
|
365
|
-
function
|
|
365
|
+
function rb(a) { l.setTimeout(function () { throw a; }, 0); }
|
|
366
|
+
function sb(a, b) { ub || vb(); wb || (ub(), wb = !0); nb.add(a, b); }
|
|
367
|
+
var ub;
|
|
368
|
+
function vb() { var a = l.Promise.resolve(void 0); ub = function () { a.then(xb); }; }
|
|
369
|
+
var wb = !1, nb = new ob;
|
|
370
|
+
function xb() { for (var a; a = mb();) {
|
|
366
371
|
try {
|
|
367
372
|
a.h.call(a.g);
|
|
368
373
|
}
|
|
369
374
|
catch (c) {
|
|
370
|
-
|
|
375
|
+
rb(c);
|
|
371
376
|
}
|
|
372
|
-
var b =
|
|
377
|
+
var b = pb;
|
|
373
378
|
b.j(a);
|
|
374
379
|
100 > b.h && (b.h++, a.next = b.g, b.g = a);
|
|
375
|
-
}
|
|
376
|
-
function
|
|
377
|
-
t(
|
|
378
|
-
k =
|
|
379
|
-
k.
|
|
380
|
-
k.
|
|
381
|
-
k.kb = function () { if (this.
|
|
380
|
+
} wb = !1; }
|
|
381
|
+
function yb(a, b) { B.call(this); this.h = a || 1; this.g = b || l; this.j = q(this.kb, this); this.l = Date.now(); }
|
|
382
|
+
t(yb, B);
|
|
383
|
+
k = yb.prototype;
|
|
384
|
+
k.ca = !1;
|
|
385
|
+
k.R = null;
|
|
386
|
+
k.kb = function () { if (this.ca) {
|
|
382
387
|
var a = Date.now() - this.l;
|
|
383
|
-
0 < a && a < .8 * this.h ? this.
|
|
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()));
|
|
384
389
|
} };
|
|
385
|
-
k.start = function () { this.
|
|
386
|
-
function
|
|
387
|
-
k.M = function () {
|
|
388
|
-
function
|
|
390
|
+
k.start = function () { this.ca = !0; this.R || (this.R = this.g.setTimeout(this.j, this.h), this.l = Date.now()); };
|
|
391
|
+
function zb(a) { a.ca = !1; a.R && (a.g.clearTimeout(a.R), a.R = null); }
|
|
392
|
+
k.M = function () { yb.X.M.call(this); zb(this); delete this.g; };
|
|
393
|
+
function Ab(a, b, c) { if ("function" === typeof a)
|
|
389
394
|
c && (a = q(a, c));
|
|
390
395
|
else if (a && "function" == typeof a.handleEvent)
|
|
391
396
|
a = q(a.handleEvent, a);
|
|
392
397
|
else
|
|
393
398
|
throw Error("Invalid listener argument"); return 2147483647 < Number(b) ? -1 : l.setTimeout(a, b || 0); }
|
|
394
|
-
function
|
|
395
|
-
var
|
|
396
|
-
__extends(
|
|
397
|
-
function
|
|
399
|
+
function Bb(a) { a.g = Ab(function () { a.g = null; a.i && (a.i = !1, Bb(a)); }, a.j); var b = a.h; a.h = null; a.m.apply(null, b); }
|
|
400
|
+
var Cb = /** @class */ (function (_super) {
|
|
401
|
+
__extends(Cb, _super);
|
|
402
|
+
function Cb(a, b) {
|
|
398
403
|
var _this = _super.call(this) || this;
|
|
399
404
|
_this.m = a;
|
|
400
405
|
_this.j = b;
|
|
@@ -403,25 +408,25 @@ var Ib = /** @class */ (function (_super) {
|
|
|
403
408
|
_this.g = null;
|
|
404
409
|
return _this;
|
|
405
410
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
return
|
|
411
|
+
Cb.prototype.l = function (a) { this.h = arguments; this.g ? this.i = !0 : Bb(this); };
|
|
412
|
+
Cb.prototype.M = function () { _super.prototype.M.call(this); this.g && (l.clearTimeout(this.g), this.g = null, this.i = !1, this.h = null); };
|
|
413
|
+
return Cb;
|
|
409
414
|
}(v));
|
|
410
|
-
function
|
|
411
|
-
t(
|
|
412
|
-
var
|
|
413
|
-
function
|
|
414
|
-
var f =
|
|
415
|
+
function D(a) { v.call(this); this.h = a; this.g = {}; }
|
|
416
|
+
t(D, v);
|
|
417
|
+
var Db = [];
|
|
418
|
+
function Eb(a, b, c, d) { Array.isArray(c) || (c && (Db[0] = c.toString()), c = Db); for (var e = 0; e < c.length; e++) {
|
|
419
|
+
var f = $a(b, c[e], d || a.handleEvent, !1, a.h || a);
|
|
415
420
|
if (!f)
|
|
416
421
|
break;
|
|
417
422
|
a.g[f.key] = f;
|
|
418
423
|
} }
|
|
419
|
-
function
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
function
|
|
423
|
-
|
|
424
|
-
function
|
|
424
|
+
function Fb(a) { Qa(a.g, function (b, c) { this.g.hasOwnProperty(c) && ib(b); }, a); a.g = {}; }
|
|
425
|
+
D.prototype.M = function () { D.X.M.call(this); Fb(this); };
|
|
426
|
+
D.prototype.handleEvent = function () { throw Error("EventHandler.handleEvent not implemented"); };
|
|
427
|
+
function Gb() { this.g = !0; }
|
|
428
|
+
Gb.prototype.Aa = function () { this.g = !1; };
|
|
429
|
+
function Hb(a, b, c, d, e, f) { a.info(function () { if (a.g)
|
|
425
430
|
if (f) {
|
|
426
431
|
var h = "";
|
|
427
432
|
for (var n = f.split("&"), u = 0; u < n.length; u++) {
|
|
@@ -429,8 +434,8 @@ function Nb(a, b, c, d, e, f) { a.info(function () { if (a.g)
|
|
|
429
434
|
if (1 < m.length) {
|
|
430
435
|
var r = m[0];
|
|
431
436
|
m = m[1];
|
|
432
|
-
var
|
|
433
|
-
h = 2 <=
|
|
437
|
+
var F = r.split("_");
|
|
438
|
+
h = 2 <= F.length && "type" == F[1] ? h + (r + "=" + m + "&") : h + (r + "=redacted&");
|
|
434
439
|
}
|
|
435
440
|
}
|
|
436
441
|
}
|
|
@@ -438,11 +443,11 @@ function Nb(a, b, c, d, e, f) { a.info(function () { if (a.g)
|
|
|
438
443
|
h = null;
|
|
439
444
|
else
|
|
440
445
|
h = f; return "XMLHTTP REQ (" + d + ") [attempt " + e + "]: " + b + "\n" + c + "\n" + h; }); }
|
|
441
|
-
function
|
|
442
|
-
function
|
|
443
|
-
function
|
|
444
|
-
|
|
445
|
-
function
|
|
446
|
+
function Ib(a, b, c, d, e, f, h) { a.info(function () { return "XMLHTTP RESP (" + d + ") [ attempt " + e + "]: " + b + "\n" + c + "\n" + f + " " + h; }); }
|
|
447
|
+
function E(a, b, c, d) { a.info(function () { return "XMLHTTP TEXT (" + b + "): " + Jb(a, c) + (d ? " " + d : ""); }); }
|
|
448
|
+
function Kb(a, b) { a.info(function () { return "TIMEOUT: " + b; }); }
|
|
449
|
+
Gb.prototype.info = function () { };
|
|
450
|
+
function Jb(a, b) { if (!a.g)
|
|
446
451
|
return b; if (!b)
|
|
447
452
|
return null; try {
|
|
448
453
|
var c = JSON.parse(b);
|
|
@@ -460,71 +465,71 @@ function Pb(a, b) { if (!a.g)
|
|
|
460
465
|
}
|
|
461
466
|
}
|
|
462
467
|
}
|
|
463
|
-
return
|
|
468
|
+
return lb(c);
|
|
464
469
|
}
|
|
465
470
|
catch (n) {
|
|
466
471
|
return b;
|
|
467
472
|
} }
|
|
468
|
-
var
|
|
469
|
-
function
|
|
470
|
-
|
|
471
|
-
function
|
|
472
|
-
t(
|
|
473
|
-
function
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
t(
|
|
477
|
-
function
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
t(
|
|
481
|
-
function
|
|
473
|
+
var G = {}, Lb = null;
|
|
474
|
+
function Mb() { return Lb = Lb || new B; }
|
|
475
|
+
G.Oa = "serverreachability";
|
|
476
|
+
function Nb(a) { w.call(this, G.Oa, a); }
|
|
477
|
+
t(Nb, w);
|
|
478
|
+
function H(a) { var b = Mb(); C(b, new Nb(b, a)); }
|
|
479
|
+
G.STAT_EVENT = "statevent";
|
|
480
|
+
function Ob(a, b) { w.call(this, G.STAT_EVENT, a); this.stat = b; }
|
|
481
|
+
t(Ob, w);
|
|
482
|
+
function I(a) { var b = Mb(); C(b, new Ob(b, a)); }
|
|
483
|
+
G.Pa = "timingevent";
|
|
484
|
+
function Pb(a, b) { w.call(this, G.Pa, a); this.size = b; }
|
|
485
|
+
t(Pb, w);
|
|
486
|
+
function J(a, b) { if ("function" !== typeof a)
|
|
482
487
|
throw Error("Fn must not be null and must be a function"); return l.setTimeout(function () { a(); }, b); }
|
|
483
|
-
var
|
|
484
|
-
var
|
|
488
|
+
var Qb = { NO_ERROR: 0, lb: 1, yb: 2, xb: 3, sb: 4, wb: 5, zb: 6, La: 7, TIMEOUT: 8, Cb: 9 };
|
|
489
|
+
var Rb = { qb: "complete", Mb: "success", Ma: "error", La: "abort", Eb: "ready", Fb: "readystatechange", TIMEOUT: "timeout", Ab: "incrementaldata", Db: "progress", tb: "downloadprogress", Ub: "uploadprogress" };
|
|
490
|
+
function Sb() { }
|
|
491
|
+
Sb.prototype.h = null;
|
|
492
|
+
function Tb(a) { return a.h || (a.h = a.i()); }
|
|
493
|
+
function Ub() { }
|
|
494
|
+
var K = { OPEN: "a", pb: "b", Ma: "c", Bb: "d" };
|
|
495
|
+
function Vb() { w.call(this, "d"); }
|
|
496
|
+
t(Vb, w);
|
|
497
|
+
function Wb() { w.call(this, "c"); }
|
|
498
|
+
t(Wb, w);
|
|
499
|
+
var Xb;
|
|
485
500
|
function Yb() { }
|
|
486
|
-
Yb
|
|
487
|
-
function
|
|
488
|
-
function
|
|
489
|
-
|
|
490
|
-
function
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
function
|
|
496
|
-
t(
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
cc = new dc;
|
|
500
|
-
function M(a, b, c, d) { this.l = a; this.j = b; this.m = c; this.X = d || 1; this.V = new E(this); this.P = ec; a = Ja ? 125 : void 0; this.W = new Eb(a); this.H = null; this.i = !1; this.s = this.A = this.v = this.K = this.F = this.Y = this.B = null; this.D = []; this.g = null; this.C = 0; this.o = this.u = null; this.N = -1; this.I = !1; this.O = 0; this.L = null; this.aa = this.J = this.$ = this.U = !1; this.h = new fc; }
|
|
501
|
-
function fc() { this.i = null; this.g = ""; this.h = !1; }
|
|
502
|
-
var ec = 45E3, gc = {}, hc = {};
|
|
503
|
-
k = M.prototype;
|
|
504
|
-
k.setTimeout = function (a) { this.P = a; };
|
|
505
|
-
function ic(a, b, c) { a.K = 1; a.v = jc(N(b)); a.s = c; a.U = !0; kc(a, null); }
|
|
506
|
-
function kc(a, b) { a.F = Date.now(); lc(a); a.A = N(a.v); var c = a.A, d = a.X; Array.isArray(d) || (d = [String(d)]); mc(c.h, "t", d); a.C = 0; c = a.l.H; a.h = new fc; a.g = nc(a.l, c ? b : null, !a.s); 0 < a.O && (a.L = new Ib(q(a.Ia, a, a.g), a.O)); Kb(a.V, a.g, "readystatechange", a.gb); b = a.H ? ya(a.H) : {}; a.s ? (a.u || (a.u = "POST"), b["Content-Type"] = "application/x-www-form-urlencoded", a.g.ea(a.A, a.u, a.s, b)) : (a.u = "GET", a.g.ea(a.A, a.u, null, b)); I(1); Nb(a.j, a.u, a.A, a.m, a.X, a.s); }
|
|
507
|
-
k.gb = function (a) { a = a.target; var b = this.L; b && 3 == O(a) ? b.l() : this.Ia(a); };
|
|
508
|
-
k.Ia = function (a) {
|
|
501
|
+
t(Yb, Sb);
|
|
502
|
+
Yb.prototype.g = function () { return new XMLHttpRequest; };
|
|
503
|
+
Yb.prototype.i = function () { return {}; };
|
|
504
|
+
Xb = new Yb;
|
|
505
|
+
function L(a, b, c, d) { this.l = a; this.j = b; this.m = c; this.U = d || 1; this.S = new D(this); this.O = Zb; a = ya ? 125 : void 0; this.T = new yb(a); this.H = null; this.i = !1; this.s = this.A = this.v = this.K = this.F = this.V = this.B = null; this.D = []; this.g = null; this.C = 0; this.o = this.u = null; this.Y = -1; this.I = !1; this.N = 0; this.L = null; this.$ = this.J = this.Z = this.P = !1; this.h = new $b; }
|
|
506
|
+
function $b() { this.i = null; this.g = ""; this.h = !1; }
|
|
507
|
+
var Zb = 45E3, ac = {}, bc = {};
|
|
508
|
+
k = L.prototype;
|
|
509
|
+
k.setTimeout = function (a) { this.O = a; };
|
|
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.Ka, a, a.g), a.N)); Eb(a.S, a.g, "readystatechange", a.hb); 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.hb = function (a) { a = a.target; var b = this.L; b && 3 == O(a) ? b.l() : this.Ka(a); };
|
|
513
|
+
k.Ka = function (a) {
|
|
509
514
|
try {
|
|
510
515
|
if (a == this.g)
|
|
511
516
|
a: {
|
|
512
517
|
var r = O(this.g);
|
|
513
|
-
var b = this.g.
|
|
514
|
-
var
|
|
515
|
-
if (!(3 > r) && (3 != r ||
|
|
516
|
-
this.I || 4 != r || 7 == b || (8 == b || 0 >=
|
|
517
|
-
|
|
518
|
-
var c = this.g.
|
|
519
|
-
this.
|
|
520
|
-
b: if (
|
|
521
|
-
var d =
|
|
518
|
+
var b = this.g.Ea();
|
|
519
|
+
var F = this.g.aa();
|
|
520
|
+
if (!(3 > r) && (3 != r || ya || this.g && (this.h.h || this.g.fa() || hc(this.g)))) {
|
|
521
|
+
this.I || 4 != r || 7 == b || (8 == b || 0 >= F ? H(3) : H(2));
|
|
522
|
+
ic(this);
|
|
523
|
+
var c = this.g.aa();
|
|
524
|
+
this.Y = c;
|
|
525
|
+
b: if (jc(this)) {
|
|
526
|
+
var d = hc(this.g);
|
|
522
527
|
a = "";
|
|
523
528
|
var e = d.length, f = 4 == O(this.g);
|
|
524
529
|
if (!this.h.i) {
|
|
525
530
|
if ("undefined" === typeof TextDecoder) {
|
|
526
531
|
P(this);
|
|
527
|
-
|
|
532
|
+
Q(this);
|
|
528
533
|
var h = "";
|
|
529
534
|
break b;
|
|
530
535
|
}
|
|
@@ -538,15 +543,15 @@ k.Ia = function (a) {
|
|
|
538
543
|
h = this.h.g;
|
|
539
544
|
}
|
|
540
545
|
else
|
|
541
|
-
h = this.g.
|
|
546
|
+
h = this.g.fa();
|
|
542
547
|
this.i = 200 == c;
|
|
543
|
-
|
|
548
|
+
Ib(this.j, this.u, this.A, this.m, this.U, r, c);
|
|
544
549
|
if (this.i) {
|
|
545
|
-
if (this
|
|
550
|
+
if (this.Z && !this.J) {
|
|
546
551
|
b: {
|
|
547
552
|
if (this.g) {
|
|
548
553
|
var n, u = this.g;
|
|
549
|
-
if ((n = u.g ? u.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !
|
|
554
|
+
if ((n = u.g ? u.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !pa(n)) {
|
|
550
555
|
var m = n;
|
|
551
556
|
break b;
|
|
552
557
|
}
|
|
@@ -554,75 +559,75 @@ k.Ia = function (a) {
|
|
|
554
559
|
m = null;
|
|
555
560
|
}
|
|
556
561
|
if (c = m)
|
|
557
|
-
|
|
562
|
+
E(this.j, this.m, c, "Initial handshake response via X-HTTP-Initial-Response"), this.J = !0, kc(this, c);
|
|
558
563
|
else {
|
|
559
564
|
this.i = !1;
|
|
560
565
|
this.o = 3;
|
|
561
|
-
|
|
566
|
+
I(12);
|
|
562
567
|
P(this);
|
|
563
|
-
|
|
568
|
+
Q(this);
|
|
564
569
|
break a;
|
|
565
570
|
}
|
|
566
571
|
}
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
572
|
+
this.P ? (lc(this, r, h), ya && this.i && 3 == r && (Eb(this.S, this.T, "tick", this.gb),
|
|
573
|
+
this.T.start())) : (E(this.j, this.m, h, null), kc(this, h));
|
|
569
574
|
4 == r && P(this);
|
|
570
|
-
this.i && !this.I && (4 == r ?
|
|
575
|
+
this.i && !this.I && (4 == r ? mc(this.l, this) : (this.i = !1, N(this)));
|
|
571
576
|
}
|
|
572
577
|
else
|
|
573
|
-
400 == c && 0 < h.indexOf("Unknown SID") ? (this.o = 3,
|
|
578
|
+
400 == c && 0 < h.indexOf("Unknown SID") ? (this.o = 3, I(12)) : (this.o = 0, I(13)), P(this), Q(this);
|
|
574
579
|
}
|
|
575
580
|
}
|
|
576
581
|
}
|
|
577
582
|
catch (r) { }
|
|
578
583
|
finally { }
|
|
579
584
|
};
|
|
580
|
-
function
|
|
581
|
-
function
|
|
585
|
+
function jc(a) { return a.g ? "GET" == a.u && 2 != a.K && a.l.Da : !1; }
|
|
586
|
+
function lc(a, b, c) {
|
|
582
587
|
var d = !0, e;
|
|
583
588
|
for (; !a.I && a.C < c.length;)
|
|
584
|
-
if (e =
|
|
585
|
-
4 == b && (a.o = 4,
|
|
586
|
-
|
|
589
|
+
if (e = nc(a, c), e == bc) {
|
|
590
|
+
4 == b && (a.o = 4, I(14), d = !1);
|
|
591
|
+
E(a.j, a.m, null, "[Incomplete Response]");
|
|
587
592
|
break;
|
|
588
593
|
}
|
|
589
|
-
else if (e ==
|
|
594
|
+
else if (e == ac) {
|
|
590
595
|
a.o = 4;
|
|
591
|
-
|
|
592
|
-
|
|
596
|
+
I(15);
|
|
597
|
+
E(a.j, a.m, c, "[Invalid Chunk]");
|
|
593
598
|
d = !1;
|
|
594
599
|
break;
|
|
595
600
|
}
|
|
596
601
|
else
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
4 != b || 0 != c.length || a.h.h || (a.o = 1,
|
|
602
|
+
E(a.j, a.m, e, null), kc(a, e);
|
|
603
|
+
jc(a) && e != bc && e != ac && (a.h.g = "", a.C = 0);
|
|
604
|
+
4 != b || 0 != c.length || a.h.h || (a.o = 1, I(16), d = !1);
|
|
600
605
|
a.i = a.i && d;
|
|
601
|
-
d ? 0 < c.length && !a
|
|
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));
|
|
602
607
|
}
|
|
603
|
-
k.
|
|
604
|
-
var a = O(this.g), b = this.g.
|
|
605
|
-
this.C < b.length && (
|
|
608
|
+
k.gb = function () { if (this.g) {
|
|
609
|
+
var a = O(this.g), b = this.g.fa();
|
|
610
|
+
this.C < b.length && (ic(this), lc(this, a, b), this.i && 4 != a && N(this));
|
|
606
611
|
} };
|
|
607
|
-
function
|
|
608
|
-
return
|
|
609
|
-
return
|
|
610
|
-
return
|
|
612
|
+
function nc(a, b) { var c = a.C, d = b.indexOf("\n", c); if (-1 == d)
|
|
613
|
+
return bc; c = Number(b.substring(c, d)); if (isNaN(c))
|
|
614
|
+
return ac; d += 1; if (d + c > b.length)
|
|
615
|
+
return bc; b = b.substr(d, c); a.C = d + c; return b; }
|
|
611
616
|
k.cancel = function () { this.I = !0; P(this); };
|
|
612
|
-
function
|
|
613
|
-
function
|
|
614
|
-
throw Error("WatchDog timer not null"); a.B =
|
|
615
|
-
function
|
|
616
|
-
k.
|
|
617
|
-
function
|
|
618
|
-
function P(a) {
|
|
619
|
-
function
|
|
617
|
+
function N(a) { a.V = Date.now() + a.O; pc(a, a.O); }
|
|
618
|
+
function pc(a, b) { if (null != a.B)
|
|
619
|
+
throw Error("WatchDog timer not null"); a.B = J(q(a.fb, a), b); }
|
|
620
|
+
function ic(a) { a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
621
|
+
k.fb = 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
|
+
function Q(a) { 0 == a.l.G || a.I || mc(a.l, a); }
|
|
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
|
+
function kc(a, b) {
|
|
620
625
|
try {
|
|
621
626
|
var c = a.l;
|
|
622
|
-
if (0 != c.G && (c.g == a ||
|
|
623
|
-
if (
|
|
627
|
+
if (0 != c.G && (c.g == a || qc(c.h, a)))
|
|
628
|
+
if (!a.J && qc(c.h, a) && 3 == c.G) {
|
|
624
629
|
try {
|
|
625
|
-
var d = c.
|
|
630
|
+
var d = c.Fa.g.parse(b);
|
|
626
631
|
}
|
|
627
632
|
catch (m) {
|
|
628
633
|
d = null;
|
|
@@ -634,149 +639,118 @@ function sc(a, b) {
|
|
|
634
639
|
if (!c.u) {
|
|
635
640
|
if (c.g)
|
|
636
641
|
if (c.g.F + 3E3 < a.F)
|
|
637
|
-
|
|
642
|
+
rc(c), sc(c);
|
|
638
643
|
else
|
|
639
644
|
break a;
|
|
640
|
-
|
|
641
|
-
|
|
645
|
+
tc(c);
|
|
646
|
+
I(18);
|
|
642
647
|
}
|
|
643
648
|
}
|
|
644
649
|
else
|
|
645
|
-
c.
|
|
646
|
-
if (1 >=
|
|
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.bb, c), 6E3));
|
|
651
|
+
if (1 >= uc(c.h) && c.ja) {
|
|
647
652
|
try {
|
|
648
|
-
c.
|
|
653
|
+
c.ja();
|
|
649
654
|
}
|
|
650
655
|
catch (m) { }
|
|
651
|
-
c.
|
|
656
|
+
c.ja = void 0;
|
|
652
657
|
}
|
|
653
658
|
}
|
|
654
659
|
else
|
|
655
|
-
|
|
660
|
+
R(c, 11);
|
|
656
661
|
}
|
|
657
|
-
else if ((a.J || c.g == a) &&
|
|
658
|
-
for (e = c.
|
|
662
|
+
else if ((a.J || c.g == a) && rc(c), !pa(b))
|
|
663
|
+
for (e = c.Fa.g.parse(b), b = 0; b < e.length; b++) {
|
|
659
664
|
var m = e[b];
|
|
660
|
-
c.
|
|
665
|
+
c.T =
|
|
666
|
+
m[0];
|
|
661
667
|
m = m[1];
|
|
662
668
|
if (2 == c.G)
|
|
663
669
|
if ("c" == m[0]) {
|
|
664
|
-
c.
|
|
665
|
-
c.
|
|
670
|
+
c.I = m[1];
|
|
671
|
+
c.ka = m[2];
|
|
666
672
|
var r = m[3];
|
|
667
|
-
null != r && (c.ma = r, c.
|
|
668
|
-
var
|
|
669
|
-
null !=
|
|
670
|
-
var
|
|
671
|
-
null !=
|
|
673
|
+
null != r && (c.ma = r, c.j.info("VER=" + c.ma));
|
|
674
|
+
var F = m[4];
|
|
675
|
+
null != F && (c.Ca = F, c.j.info("SVER=" + c.Ca));
|
|
676
|
+
var Ca = m[5];
|
|
677
|
+
null != Ca && "number" === typeof Ca && 0 < Ca && (d = 1.5 * Ca, c.J = d, c.j.info("backChannelRequestTimeoutMs_=" + d));
|
|
672
678
|
d = c;
|
|
673
|
-
var
|
|
674
|
-
if (
|
|
675
|
-
var
|
|
676
|
-
if (
|
|
677
|
-
var f = d.
|
|
678
|
-
|
|
679
|
+
var Z = a.g;
|
|
680
|
+
if (Z) {
|
|
681
|
+
var Da = Z.g ? Z.g.getResponseHeader("X-Client-Wire-Protocol") : null;
|
|
682
|
+
if (Da) {
|
|
683
|
+
var f = d.h;
|
|
684
|
+
f.g || -1 == Da.indexOf("spdy") && -1 == Da.indexOf("quic") && -1 == Da.indexOf("h2") || (f.j = f.l, f.g = new Set, f.h && (vc(f, f.h), f.h = null));
|
|
679
685
|
}
|
|
680
686
|
if (d.D) {
|
|
681
|
-
var
|
|
682
|
-
|
|
687
|
+
var tb = Z.g ? Z.g.getResponseHeader("X-HTTP-Session-Id") : null;
|
|
688
|
+
tb && (d.za = tb, S(d.F, d.D, tb));
|
|
683
689
|
}
|
|
684
690
|
}
|
|
685
691
|
c.G = 3;
|
|
686
|
-
c.
|
|
687
|
-
c.$ && (c.
|
|
692
|
+
c.l && c.l.xa();
|
|
693
|
+
c.$ && (c.P = Date.now() - a.F, c.j.info("Handshake RTT: " + c.P + "ms"));
|
|
688
694
|
d = c;
|
|
689
695
|
var h = a;
|
|
690
|
-
d.
|
|
696
|
+
d.sa = wc(d, d.H ? d.ka : null, d.V);
|
|
691
697
|
if (h.J) {
|
|
692
|
-
|
|
693
|
-
var n = h, u = d.
|
|
698
|
+
xc(d.h, h);
|
|
699
|
+
var n = h, u = d.J;
|
|
694
700
|
u && n.setTimeout(u);
|
|
695
|
-
n.B && (
|
|
701
|
+
n.B && (ic(n), N(n));
|
|
696
702
|
d.g = h;
|
|
697
703
|
}
|
|
698
704
|
else
|
|
699
|
-
|
|
700
|
-
0 < c.
|
|
705
|
+
yc(d);
|
|
706
|
+
0 < c.i.length && zc(c);
|
|
701
707
|
}
|
|
702
708
|
else
|
|
703
|
-
"stop" != m[0] && "close" != m[0] ||
|
|
709
|
+
"stop" != m[0] && "close" != m[0] || R(c, 7);
|
|
704
710
|
else
|
|
705
|
-
3 == c.G && ("stop" == m[0] || "close" == m[0] ? "stop" == m[0] ?
|
|
711
|
+
3 == c.G && ("stop" == m[0] || "close" == m[0] ? "stop" == m[0] ? R(c, 7) : Ac(c) : "noop" != m[0] && c.l && c.l.wa(m), c.A = 0);
|
|
706
712
|
}
|
|
707
|
-
|
|
713
|
+
H(4);
|
|
708
714
|
}
|
|
709
715
|
catch (m) { }
|
|
710
716
|
}
|
|
711
|
-
function
|
|
712
|
-
return a.
|
|
717
|
+
function Bc(a) { if (a.W && "function" == typeof a.W)
|
|
718
|
+
return a.W(); if ("undefined" !== typeof Map && a instanceof Map || "undefined" !== typeof Set && a instanceof Set)
|
|
719
|
+
return Array.from(a.values()); if ("string" === typeof a)
|
|
713
720
|
return a.split(""); if (ba(a)) {
|
|
714
721
|
for (var b = [], c = a.length, d = 0; d < c; d++)
|
|
715
722
|
b.push(a[d]);
|
|
716
723
|
return b;
|
|
717
724
|
} b = []; c = 0; for (d in a)
|
|
718
725
|
b[c++] = a[d]; return b; }
|
|
719
|
-
function
|
|
720
|
-
a.
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
d = Jc(a);
|
|
737
|
-
e = d.length;
|
|
738
|
-
for (var f = 0; f < e; f++)
|
|
739
|
-
b.call(void 0, d[f], c && c[f], a);
|
|
740
|
-
} }
|
|
741
|
-
function S(a, b) { this.h = {}; this.g = []; this.i = 0; var c = arguments.length; if (1 < c) {
|
|
742
|
-
if (c % 2)
|
|
743
|
-
throw Error("Uneven number of arguments");
|
|
744
|
-
for (var d = 0; d < c; d += 2)
|
|
745
|
-
this.set(arguments[d], arguments[d + 1]);
|
|
746
|
-
}
|
|
747
|
-
else if (a)
|
|
748
|
-
if (a instanceof S)
|
|
749
|
-
for (c = a.T(), d = 0; d < c.length; d++)
|
|
750
|
-
this.set(c[d], a.get(c[d]));
|
|
751
|
-
else
|
|
752
|
-
for (d in a)
|
|
753
|
-
this.set(d, a[d]); }
|
|
754
|
-
k = S.prototype;
|
|
755
|
-
k.R = function () { Lc(this); for (var a = [], b = 0; b < this.g.length; b++)
|
|
756
|
-
a.push(this.h[this.g[b]]); return a; };
|
|
757
|
-
k.T = function () { Lc(this); return this.g.concat(); };
|
|
758
|
-
function Lc(a) { if (a.i != a.g.length) {
|
|
759
|
-
for (var b = 0, c = 0; b < a.g.length;) {
|
|
760
|
-
var d = a.g[b];
|
|
761
|
-
T(a.h, d) && (a.g[c++] = d);
|
|
762
|
-
b++;
|
|
726
|
+
function Cc(a) { if (a.oa && "function" == typeof a.oa)
|
|
727
|
+
return a.oa(); if (!a.W || "function" != typeof a.W) {
|
|
728
|
+
if ("undefined" !== typeof Map && a instanceof Map)
|
|
729
|
+
return Array.from(a.keys());
|
|
730
|
+
if (!("undefined" !== typeof Set && a instanceof Set)) {
|
|
731
|
+
if (ba(a) || "string" === typeof a) {
|
|
732
|
+
var b = [];
|
|
733
|
+
a = a.length;
|
|
734
|
+
for (var c = 0; c < a; c++)
|
|
735
|
+
b.push(c);
|
|
736
|
+
return b;
|
|
737
|
+
}
|
|
738
|
+
b = [];
|
|
739
|
+
c = 0;
|
|
740
|
+
for (var d in a)
|
|
741
|
+
b[c++] = d;
|
|
742
|
+
return b;
|
|
763
743
|
}
|
|
764
|
-
a.g.length = c;
|
|
765
|
-
} if (a.i != a.g.length) {
|
|
766
|
-
var e = {};
|
|
767
|
-
for (c = b = 0; b < a.g.length;)
|
|
768
|
-
d = a.g[b], T(e, d) || (a.g[c++] = d, e[d] = 1), b++;
|
|
769
|
-
a.g.length = c;
|
|
770
744
|
} }
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
var
|
|
779
|
-
function
|
|
745
|
+
function Dc(a, b) { if (a.forEach && "function" == typeof a.forEach)
|
|
746
|
+
a.forEach(b, void 0);
|
|
747
|
+
else if (ba(a) || "string" === typeof a)
|
|
748
|
+
Array.prototype.forEach.call(a, b, void 0);
|
|
749
|
+
else
|
|
750
|
+
for (var c = Cc(a), d = Bc(a), e = d.length, f = 0; f < e; f++)
|
|
751
|
+
b.call(void 0, d[f], c && c[f], a); }
|
|
752
|
+
var Ec = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");
|
|
753
|
+
function Fc(a, b) { if (a) {
|
|
780
754
|
a = a.split("&");
|
|
781
755
|
for (var c = 0; c < a.length; c++) {
|
|
782
756
|
var d = a[c].indexOf("="), e = null;
|
|
@@ -789,29 +763,28 @@ function Nc(a, b) { if (a) {
|
|
|
789
763
|
b(f, e ? decodeURIComponent(e.replace(/\+/g, " ")) : "");
|
|
790
764
|
}
|
|
791
765
|
} }
|
|
792
|
-
function
|
|
793
|
-
this.
|
|
794
|
-
|
|
766
|
+
function T(a, b) { this.g = this.s = this.j = ""; this.m = null; this.o = this.l = ""; this.h = !1; if (a instanceof T) {
|
|
767
|
+
this.h = void 0 !== b ? b : a.h;
|
|
768
|
+
Gc(this, a.j);
|
|
795
769
|
this.s = a.s;
|
|
796
|
-
|
|
797
|
-
|
|
770
|
+
this.g = a.g;
|
|
771
|
+
Hc(this, a.m);
|
|
798
772
|
this.l = a.l;
|
|
799
|
-
b = a.
|
|
800
|
-
var c = new
|
|
773
|
+
b = a.i;
|
|
774
|
+
var c = new Ic;
|
|
801
775
|
c.i = b.i;
|
|
802
|
-
b.g && (c.g = new
|
|
803
|
-
|
|
776
|
+
b.g && (c.g = new Map(b.g), c.h = b.h);
|
|
777
|
+
Jc(this, c);
|
|
804
778
|
this.o = a.o;
|
|
805
779
|
}
|
|
806
780
|
else
|
|
807
|
-
a && (c = String(a).match(
|
|
808
|
-
|
|
809
|
-
a.push("//"), (b = this.s) && a.push(
|
|
810
|
-
this.
|
|
811
|
-
function
|
|
812
|
-
function
|
|
813
|
-
function
|
|
814
|
-
function Qc(a, b) { if (b) {
|
|
781
|
+
a && (c = String(a).match(Ec)) ? (this.h = !!b, Gc(this, c[1] || "", !0), this.s = Kc(c[2] || ""), this.g = Kc(c[3] || "", !0), Hc(this, c[4]), this.l = Kc(c[5] || "", !0), Jc(this, c[6] || "", !0), this.o = Kc(c[7] || "")) : (this.h = !!b, this.i = new Ic(null, this.h)); }
|
|
782
|
+
T.prototype.toString = function () { var a = [], b = this.j; b && a.push(Lc(b, Mc, !0), ":"); var c = this.g; if (c || "file" == b)
|
|
783
|
+
a.push("//"), (b = this.s) && a.push(Lc(b, Mc, !0), "@"), a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g, "%$1")), c = this.m, null != c && a.push(":", String(c)); if (c = this.l)
|
|
784
|
+
this.g && "/" != c.charAt(0) && a.push("/"), a.push(Lc(c, "/" == c.charAt(0) ? Nc : Oc, !0)); (c = this.i.toString()) && a.push("?", c); (c = this.o) && a.push("#", Lc(c, Pc)); return a.join(""); };
|
|
785
|
+
function M(a) { return new T(a); }
|
|
786
|
+
function Gc(a, b, c) { a.j = c ? Kc(b, !0) : b; a.j && (a.j = a.j.replace(/:$/, "")); }
|
|
787
|
+
function Hc(a, b) { if (b) {
|
|
815
788
|
b = Number(b);
|
|
816
789
|
if (isNaN(b) || 0 > b)
|
|
817
790
|
throw Error("Bad port number " + b);
|
|
@@ -819,66 +792,66 @@ function Qc(a, b) { if (b) {
|
|
|
819
792
|
}
|
|
820
793
|
else
|
|
821
794
|
a.m = null; }
|
|
822
|
-
function
|
|
823
|
-
function
|
|
824
|
-
function
|
|
825
|
-
function
|
|
826
|
-
function
|
|
827
|
-
function
|
|
828
|
-
|
|
829
|
-
function
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
function
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
function
|
|
836
|
-
function
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
k.
|
|
842
|
-
|
|
795
|
+
function Jc(a, b, c) { b instanceof Ic ? (a.i = b, Qc(a.i, a.h)) : (c || (b = Lc(b, Rc)), a.i = new Ic(b, a.h)); }
|
|
796
|
+
function S(a, b, c) { a.i.set(b, c); }
|
|
797
|
+
function dc(a) { S(a, "zx", Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ Date.now()).toString(36)); return a; }
|
|
798
|
+
function Kc(a, b) { return a ? b ? decodeURI(a.replace(/%25/g, "%2525")) : decodeURIComponent(a) : ""; }
|
|
799
|
+
function Lc(a, b, c) { return "string" === typeof a ? (a = encodeURI(a).replace(b, Sc), c && (a = a.replace(/%25([0-9a-fA-F]{2})/g, "%$1")), a) : null; }
|
|
800
|
+
function Sc(a) { a = a.charCodeAt(0); return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16); }
|
|
801
|
+
var Mc = /[#\/\?@]/g, Oc = /[#\?:]/g, Nc = /[#\?]/g, Rc = /[#\?@]/g, Pc = /#/g;
|
|
802
|
+
function Ic(a, b) { this.h = this.g = null; this.i = a || null; this.j = !!b; }
|
|
803
|
+
function U(a) { a.g || (a.g = new Map, a.h = 0, a.i && Fc(a.i, function (b, c) { a.add(decodeURIComponent(b.replace(/\+/g, " ")), c); })); }
|
|
804
|
+
k = Ic.prototype;
|
|
805
|
+
k.add = function (a, b) { U(this); this.i = null; a = V(this, a); var c = this.g.get(a); c || this.g.set(a, c = []); c.push(b); this.h += 1; return this; };
|
|
806
|
+
function Tc(a, b) { U(a); b = V(a, b); a.g.has(b) && (a.i = null, a.h -= a.g.get(b).length, a.g.delete(b)); }
|
|
807
|
+
function Uc(a, b) { U(a); b = V(a, b); return a.g.has(b); }
|
|
808
|
+
k.forEach = function (a, b) { U(this); this.g.forEach(function (c, d) { c.forEach(function (e) { a.call(b, e, d, this); }, this); }, this); };
|
|
809
|
+
k.oa = function () { U(this); var a = Array.from(this.g.values()), b = Array.from(this.g.keys()), c = []; for (var d = 0; d < b.length; d++) {
|
|
810
|
+
var e = a[d];
|
|
811
|
+
for (var f = 0; f < e.length; f++)
|
|
812
|
+
c.push(b[d]);
|
|
813
|
+
} return c; };
|
|
814
|
+
k.W = function (a) { U(this); var b = []; if ("string" === typeof a)
|
|
815
|
+
Uc(this, a) && (b = b.concat(this.g.get(V(this, a))));
|
|
843
816
|
else {
|
|
844
|
-
a = this.g.
|
|
817
|
+
a = Array.from(this.g.values());
|
|
845
818
|
for (var c = 0; c < a.length; c++)
|
|
846
|
-
b =
|
|
819
|
+
b = b.concat(a[c]);
|
|
847
820
|
} return b; };
|
|
848
|
-
k.set = function (a, b) {
|
|
821
|
+
k.set = function (a, b) { U(this); this.i = null; a = V(this, a); Uc(this, a) && (this.h -= this.g.get(a).length); this.g.set(a, [b]); this.h += 1; return this; };
|
|
849
822
|
k.get = function (a, b) { if (!a)
|
|
850
|
-
return b; a = this.
|
|
851
|
-
function
|
|
823
|
+
return b; a = this.W(a); return 0 < a.length ? String(a[0]) : b; };
|
|
824
|
+
function fc(a, b, c) { Tc(a, b); 0 < c.length && (a.i = null, a.g.set(V(a, b), ma(c)), a.h += c.length); }
|
|
852
825
|
k.toString = function () { if (this.i)
|
|
853
826
|
return this.i; if (!this.g)
|
|
854
|
-
return "";
|
|
855
|
-
var d = b[c]
|
|
856
|
-
d = this.
|
|
857
|
-
for (
|
|
858
|
-
var
|
|
859
|
-
"" !== d
|
|
860
|
-
a.push(
|
|
827
|
+
return ""; var a = [], b = Array.from(this.g.keys()); for (var c = 0; c < b.length; c++) {
|
|
828
|
+
var d = b[c];
|
|
829
|
+
var f = encodeURIComponent(String(d)), h = this.W(d);
|
|
830
|
+
for (d = 0; d < h.length; d++) {
|
|
831
|
+
var e = f;
|
|
832
|
+
"" !== h[d] && (e += "=" + encodeURIComponent(String(h[d])));
|
|
833
|
+
a.push(e);
|
|
861
834
|
}
|
|
862
835
|
} return this.i = a.join("&"); };
|
|
863
|
-
function
|
|
864
|
-
function
|
|
865
|
-
var
|
|
866
|
-
function
|
|
836
|
+
function V(a, b) { b = String(b); a.j && (b = b.toLowerCase()); return b; }
|
|
837
|
+
function Qc(a, b) { b && !a.j && (U(a), a.i = null, a.g.forEach(function (c, d) { var e = d.toLowerCase(); d != e && (Tc(this, d), fc(this, e, c)); }, a)); a.j = b; }
|
|
838
|
+
var Vc = /** @class */ (function () {
|
|
839
|
+
function Vc(a, b) {
|
|
867
840
|
this.h = a;
|
|
868
841
|
this.g = b;
|
|
869
842
|
}
|
|
870
|
-
return
|
|
843
|
+
return Vc;
|
|
871
844
|
}());
|
|
872
|
-
function
|
|
873
|
-
var
|
|
874
|
-
function
|
|
875
|
-
function
|
|
876
|
-
function
|
|
877
|
-
function
|
|
878
|
-
function
|
|
879
|
-
|
|
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().Zb); this.j = a ? this.l : 1; this.g = null; 1 < this.j && (this.g = new Set); this.h = null; this.i = []; }
|
|
846
|
+
var Xc = 10;
|
|
847
|
+
function Yc(a) { return a.h ? !0 : a.g ? a.g.size >= a.j : !1; }
|
|
848
|
+
function uc(a) { return a.h ? 1 : a.g ? a.g.size : 0; }
|
|
849
|
+
function qc(a, b) { return a.h ? a.h == b : a.g ? a.g.has(b) : !1; }
|
|
850
|
+
function vc(a, b) { a.g ? a.g.add(b) : a.h = b; }
|
|
851
|
+
function xc(a, b) { a.h && a.h == b ? a.h = null : a.g && a.g.has(b) && a.g.delete(b); }
|
|
852
|
+
Wc.prototype.cancel = function () {
|
|
880
853
|
var e_1, _a;
|
|
881
|
-
this.i =
|
|
854
|
+
this.i = Zc(this);
|
|
882
855
|
if (this.h)
|
|
883
856
|
this.h.cancel(), this.h = null;
|
|
884
857
|
else if (this.g && 0 !== this.g.size) {
|
|
@@ -898,7 +871,7 @@ gd.prototype.cancel = function () {
|
|
|
898
871
|
this.g.clear();
|
|
899
872
|
}
|
|
900
873
|
};
|
|
901
|
-
function
|
|
874
|
+
function Zc(a) {
|
|
902
875
|
var e_2, _a;
|
|
903
876
|
if (null != a.h)
|
|
904
877
|
return a.i.concat(a.h.D);
|
|
@@ -919,51 +892,51 @@ function jd(a) {
|
|
|
919
892
|
}
|
|
920
893
|
return b;
|
|
921
894
|
}
|
|
922
|
-
return
|
|
895
|
+
return ma(a.i);
|
|
923
896
|
}
|
|
924
|
-
function
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
function
|
|
928
|
-
function
|
|
929
|
-
|
|
897
|
+
function $c() { }
|
|
898
|
+
$c.prototype.stringify = function (a) { return l.JSON.stringify(a, void 0); };
|
|
899
|
+
$c.prototype.parse = function (a) { return l.JSON.parse(a, void 0); };
|
|
900
|
+
function ad() { this.g = new $c; }
|
|
901
|
+
function bd(a, b, c) { var d = c || ""; try {
|
|
902
|
+
Dc(a, function (e, f) { var h = e; p(e) && (h = lb(e)); b.push(d + f + "=" + encodeURIComponent(h)); });
|
|
930
903
|
}
|
|
931
904
|
catch (e) {
|
|
932
905
|
throw b.push(d + "type=" + encodeURIComponent("_badmap")), e;
|
|
933
906
|
} }
|
|
934
|
-
function
|
|
907
|
+
function cd(a, b) { var c = new Gb; if (l.Image) {
|
|
935
908
|
var d_1 = new Image;
|
|
936
|
-
d_1.onload =
|
|
937
|
-
d_1.onerror =
|
|
938
|
-
d_1.onabort =
|
|
939
|
-
d_1.ontimeout =
|
|
909
|
+
d_1.onload = ia(dd, c, d_1, "TestLoadImage: loaded", !0, b);
|
|
910
|
+
d_1.onerror = ia(dd, c, d_1, "TestLoadImage: error", !1, b);
|
|
911
|
+
d_1.onabort = ia(dd, c, d_1, "TestLoadImage: abort", !1, b);
|
|
912
|
+
d_1.ontimeout = ia(dd, c, d_1, "TestLoadImage: timeout", !1, b);
|
|
940
913
|
l.setTimeout(function () { if (d_1.ontimeout)
|
|
941
914
|
d_1.ontimeout(); }, 1E4);
|
|
942
915
|
d_1.src = a;
|
|
943
916
|
}
|
|
944
917
|
else
|
|
945
918
|
b(!1); }
|
|
946
|
-
function
|
|
919
|
+
function dd(a, b, c, d, e) { try {
|
|
947
920
|
b.onload = null, b.onerror = null, b.onabort = null, b.ontimeout = null, e(d);
|
|
948
921
|
}
|
|
949
922
|
catch (f) { } }
|
|
950
|
-
function
|
|
951
|
-
t(
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
function
|
|
955
|
-
t(
|
|
956
|
-
var
|
|
957
|
-
k =
|
|
958
|
-
k.open = function (a, b) { if (this.readyState !=
|
|
959
|
-
throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1;
|
|
923
|
+
function ed(a) { this.l = a.$b || null; this.j = a.ib || !1; }
|
|
924
|
+
t(ed, Sb);
|
|
925
|
+
ed.prototype.g = function () { return new fd(this.l, this.j); };
|
|
926
|
+
ed.prototype.i = function (a) { return function () { return a; }; }({});
|
|
927
|
+
function fd(a, b) { B.call(this); this.D = a; this.u = b; this.m = void 0; this.readyState = gd; this.status = 0; this.responseType = this.responseText = this.response = this.statusText = ""; this.onreadystatechange = null; this.v = new Headers; this.h = null; this.C = "GET"; this.B = ""; this.g = !1; this.A = this.j = this.l = null; }
|
|
928
|
+
t(fd, B);
|
|
929
|
+
var gd = 0;
|
|
930
|
+
k = fd.prototype;
|
|
931
|
+
k.open = function (a, b) { if (this.readyState != gd)
|
|
932
|
+
throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1; hd(this); };
|
|
960
933
|
k.send = function (a) { if (1 != this.readyState)
|
|
961
|
-
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.Va.bind(this), this.
|
|
962
|
-
k.abort = function () { this.response = this.responseText = ""; this.v = new Headers; this.status = 0; this.j && this.j.cancel("Request was aborted."); 1 <= this.readyState && this.g && 4 != this.readyState && (this.g = !1,
|
|
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.Va.bind(this), this.ga.bind(this)); };
|
|
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; };
|
|
963
936
|
k.Va = function (a) {
|
|
964
|
-
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,
|
|
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)))
|
|
965
938
|
if ("arraybuffer" === this.responseType)
|
|
966
|
-
a.arrayBuffer().then(this.Ta.bind(this), this.
|
|
939
|
+
a.arrayBuffer().then(this.Ta.bind(this), this.ga.bind(this));
|
|
967
940
|
else if ("undefined" !== typeof l.ReadableStream && "body" in a) {
|
|
968
941
|
this.j = a.body.getReader();
|
|
969
942
|
if (this.u) {
|
|
@@ -974,12 +947,12 @@ k.Va = function (a) {
|
|
|
974
947
|
}
|
|
975
948
|
else
|
|
976
949
|
this.response = this.responseText = "", this.A = new TextDecoder;
|
|
977
|
-
|
|
950
|
+
jd(this);
|
|
978
951
|
}
|
|
979
952
|
else
|
|
980
|
-
a.text().then(this.Ua.bind(this), this.
|
|
953
|
+
a.text().then(this.Ua.bind(this), this.ga.bind(this));
|
|
981
954
|
};
|
|
982
|
-
function
|
|
955
|
+
function jd(a) { a.j.read().then(a.Sa.bind(a)).catch(a.ga.bind(a)); }
|
|
983
956
|
k.Sa = function (a) { if (this.g) {
|
|
984
957
|
if (this.u && a.value)
|
|
985
958
|
this.response.push(a.value);
|
|
@@ -988,26 +961,27 @@ k.Sa = function (a) { if (this.g) {
|
|
|
988
961
|
if (b = this.A.decode(b, { stream: !a.done }))
|
|
989
962
|
this.response = this.responseText += b;
|
|
990
963
|
}
|
|
991
|
-
a.done ?
|
|
992
|
-
3 == this.readyState &&
|
|
964
|
+
a.done ? id(this) : hd(this);
|
|
965
|
+
3 == this.readyState && jd(this);
|
|
993
966
|
} };
|
|
994
|
-
k.Ua = function (a) { this.g && (this.response = this.responseText = a,
|
|
995
|
-
k.Ta = function (a) { this.g && (this.response = a,
|
|
996
|
-
k.
|
|
997
|
-
function
|
|
967
|
+
k.Ua = function (a) { this.g && (this.response = this.responseText = a, id(this)); };
|
|
968
|
+
k.Ta = function (a) { this.g && (this.response = a, id(this)); };
|
|
969
|
+
k.ga = function () { this.g && id(this); };
|
|
970
|
+
function id(a) { a.readyState = 4; a.l = null; a.j = null; a.A = null; hd(a); }
|
|
998
971
|
k.setRequestHeader = function (a, b) { this.v.append(a, b); };
|
|
999
972
|
k.getResponseHeader = function (a) { return this.h ? this.h.get(a.toLowerCase()) || "" : ""; };
|
|
1000
973
|
k.getAllResponseHeaders = function () { if (!this.h)
|
|
1001
974
|
return ""; var a = [], b = this.h.entries(); for (var c = b.next(); !c.done;)
|
|
1002
975
|
c = c.value, a.push(c[0] + ": " + c[1]), c = b.next(); return a.join("\r\n"); };
|
|
1003
|
-
function
|
|
1004
|
-
Object.defineProperty(
|
|
1005
|
-
var
|
|
1006
|
-
function
|
|
1007
|
-
t(
|
|
1008
|
-
var
|
|
1009
|
-
k =
|
|
1010
|
-
k.
|
|
976
|
+
function hd(a) { a.onreadystatechange && a.onreadystatechange.call(a); }
|
|
977
|
+
Object.defineProperty(fd.prototype, "withCredentials", { get: function () { return "include" === this.m; }, set: function (a) { this.m = a ? "include" : "same-origin"; } });
|
|
978
|
+
var kd = l.JSON.parse;
|
|
979
|
+
function W(a) { B.call(this); this.headers = new Map; this.u = a || null; this.h = !1; this.C = this.g = null; this.H = ""; this.m = 0; this.j = ""; this.l = this.F = this.v = this.D = !1; this.B = 0; this.A = null; this.J = ld; this.K = this.L = !1; }
|
|
980
|
+
t(W, B);
|
|
981
|
+
var ld = "", md = /^https?$/i, nd = ["POST", "PUT"];
|
|
982
|
+
k = W.prototype;
|
|
983
|
+
k.da = function (a, b, c, d) {
|
|
984
|
+
var e_3, _a, e_4, _b;
|
|
1011
985
|
if (this.g)
|
|
1012
986
|
throw Error("[goog.net.XhrIo] Object is active with another request=" + this.H + "; newUri=" + a);
|
|
1013
987
|
b = b ? b.toUpperCase() : "GET";
|
|
@@ -1016,49 +990,81 @@ k.ea = function (a, b, c, d) {
|
|
|
1016
990
|
this.m = 0;
|
|
1017
991
|
this.D = !1;
|
|
1018
992
|
this.h = !0;
|
|
1019
|
-
this.g = this.u ? this.u.g() :
|
|
1020
|
-
this.C = this.u ?
|
|
1021
|
-
this.g.onreadystatechange = q(this.
|
|
993
|
+
this.g = this.u ? this.u.g() : Xb.g();
|
|
994
|
+
this.C = this.u ? Tb(this.u) : Tb(Xb);
|
|
995
|
+
this.g.onreadystatechange = q(this.Ha, this);
|
|
1022
996
|
try {
|
|
1023
997
|
this.F = !0, this.g.open(b, String(a), !0), this.F = !1;
|
|
1024
998
|
}
|
|
1025
999
|
catch (f) {
|
|
1026
|
-
|
|
1000
|
+
od(this, f);
|
|
1027
1001
|
return;
|
|
1028
1002
|
}
|
|
1029
1003
|
a = c || "";
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1004
|
+
c = new Map(this.headers);
|
|
1005
|
+
if (d)
|
|
1006
|
+
if (Object.getPrototypeOf(d) === Object.prototype)
|
|
1007
|
+
for (var e in d)
|
|
1008
|
+
c.set(e, d[e]);
|
|
1009
|
+
else if ("function" ===
|
|
1010
|
+
typeof d.keys && "function" === typeof d.get)
|
|
1011
|
+
try {
|
|
1012
|
+
for (var _c = __values(d.keys()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1013
|
+
var f = _d.value;
|
|
1014
|
+
c.set(f, d.get(f));
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1018
|
+
finally {
|
|
1019
|
+
try {
|
|
1020
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
1021
|
+
}
|
|
1022
|
+
finally { if (e_3) throw e_3.error; }
|
|
1023
|
+
}
|
|
1024
|
+
else
|
|
1025
|
+
throw Error("Unknown input type for opt_headers: " + String(d));
|
|
1026
|
+
d = Array.from(c.keys()).find(function (f) { return "content-type" == f.toLowerCase(); });
|
|
1027
|
+
e = l.FormData && a instanceof l.FormData;
|
|
1028
|
+
!(0 <= la(nd, b)) || d || e || c.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
|
|
1029
|
+
try {
|
|
1030
|
+
for (var c_1 = __values(c), c_1_1 = c_1.next(); !c_1_1.done; c_1_1 = c_1.next()) {
|
|
1031
|
+
var _e = __read(c_1_1.value, 2), f = _e[0], h = _e[1];
|
|
1032
|
+
this.g.setRequestHeader(f, h);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1036
|
+
finally {
|
|
1037
|
+
try {
|
|
1038
|
+
if (c_1_1 && !c_1_1.done && (_b = c_1.return)) _b.call(c_1);
|
|
1039
|
+
}
|
|
1040
|
+
finally { if (e_4) throw e_4.error; }
|
|
1041
|
+
}
|
|
1036
1042
|
this.J && (this.g.responseType = this.J);
|
|
1037
|
-
"withCredentials" in this.g && this.g.withCredentials !== this.L && (this.g.withCredentials =
|
|
1043
|
+
"withCredentials" in this.g && this.g.withCredentials !== this.L && (this.g.withCredentials =
|
|
1044
|
+
this.L);
|
|
1038
1045
|
try {
|
|
1039
|
-
|
|
1046
|
+
pd(this), 0 < this.B && ((this.K = qd(this.g)) ? (this.g.timeout = this.B, this.g.ontimeout = q(this.qa, this)) : this.A = Ab(this.qa, this.B, this)), this.v = !0, this.g.send(a), this.v = !1;
|
|
1040
1047
|
}
|
|
1041
1048
|
catch (f) {
|
|
1042
|
-
|
|
1049
|
+
od(this, f);
|
|
1043
1050
|
}
|
|
1044
1051
|
};
|
|
1045
|
-
function
|
|
1046
|
-
function
|
|
1047
|
-
|
|
1048
|
-
function
|
|
1049
|
-
function
|
|
1050
|
-
k.
|
|
1051
|
-
k.
|
|
1052
|
-
k.
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
if (a.h && "undefined" != typeof goog && (!a.C[1] || 4 != O(a) || 2 != a.ba()))
|
|
1052
|
+
function qd(a) { return y && Ia() && "number" === typeof a.timeout && void 0 !== a.ontimeout; }
|
|
1053
|
+
k.qa = function () { "undefined" != typeof goog && this.g && (this.j = "Timed out after " + this.B + "ms, aborting", this.m = 8, C(this, "timeout"), this.abort(8)); };
|
|
1054
|
+
function od(a, b) { a.h = !1; a.g && (a.l = !0, a.g.abort(), a.l = !1); a.j = b; a.m = 5; rd(a); sd(a); }
|
|
1055
|
+
function rd(a) { a.D || (a.D = !0, C(a, "complete"), C(a, "error")); }
|
|
1056
|
+
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
|
+
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.eb()); };
|
|
1059
|
+
k.eb = function () { td(this); };
|
|
1060
|
+
function td(a) {
|
|
1061
|
+
if (a.h && "undefined" != typeof goog && (!a.C[1] || 4 != O(a) || 2 != a.aa()))
|
|
1056
1062
|
if (a.v && 4 == O(a))
|
|
1057
|
-
|
|
1058
|
-
else if (
|
|
1063
|
+
Ab(a.Ha, 0, a);
|
|
1064
|
+
else if (C(a, "readystatechange"), 4 == O(a)) {
|
|
1059
1065
|
a.h = !1;
|
|
1060
1066
|
try {
|
|
1061
|
-
var n = a.
|
|
1067
|
+
var n = a.aa();
|
|
1062
1068
|
a: switch (n) {
|
|
1063
1069
|
case 200:
|
|
1064
1070
|
case 201:
|
|
@@ -1075,17 +1081,17 @@ function Ed(a) {
|
|
|
1075
1081
|
if (!(c = b)) {
|
|
1076
1082
|
var d;
|
|
1077
1083
|
if (d = 0 === n) {
|
|
1078
|
-
var e = String(a.H).match(
|
|
1084
|
+
var e = String(a.H).match(Ec)[1] || null;
|
|
1079
1085
|
if (!e && l.self && l.self.location) {
|
|
1080
1086
|
var f = l.self.location.protocol;
|
|
1081
1087
|
e = f.substr(0, f.length - 1);
|
|
1082
1088
|
}
|
|
1083
|
-
d = !
|
|
1089
|
+
d = !md.test(e ? e.toLowerCase() : "");
|
|
1084
1090
|
}
|
|
1085
1091
|
c = d;
|
|
1086
1092
|
}
|
|
1087
1093
|
if (c)
|
|
1088
|
-
|
|
1094
|
+
C(a, "complete"), C(a, "success");
|
|
1089
1095
|
else {
|
|
1090
1096
|
a.m = 6;
|
|
1091
1097
|
try {
|
|
@@ -1094,52 +1100,52 @@ function Ed(a) {
|
|
|
1094
1100
|
catch (u) {
|
|
1095
1101
|
h = "";
|
|
1096
1102
|
}
|
|
1097
|
-
a.j = h + " [" + a.
|
|
1098
|
-
|
|
1103
|
+
a.j = h + " [" + a.aa() + "]";
|
|
1104
|
+
rd(a);
|
|
1099
1105
|
}
|
|
1100
1106
|
}
|
|
1101
1107
|
finally {
|
|
1102
|
-
|
|
1108
|
+
sd(a);
|
|
1103
1109
|
}
|
|
1104
1110
|
}
|
|
1105
1111
|
}
|
|
1106
|
-
function
|
|
1107
|
-
|
|
1112
|
+
function sd(a, b) { if (a.g) {
|
|
1113
|
+
pd(a);
|
|
1108
1114
|
var c = a.g, d = a.C[0] ? aa : null;
|
|
1109
1115
|
a.g = null;
|
|
1110
1116
|
a.C = null;
|
|
1111
|
-
b ||
|
|
1117
|
+
b || C(a, "ready");
|
|
1112
1118
|
try {
|
|
1113
1119
|
c.onreadystatechange = d;
|
|
1114
1120
|
}
|
|
1115
1121
|
catch (e) { }
|
|
1116
1122
|
} }
|
|
1117
|
-
function
|
|
1123
|
+
function pd(a) { a.g && a.K && (a.g.ontimeout = null); a.A && (l.clearTimeout(a.A), a.A = null); }
|
|
1118
1124
|
function O(a) { return a.g ? a.g.readyState : 0; }
|
|
1119
|
-
k.
|
|
1125
|
+
k.aa = function () { try {
|
|
1120
1126
|
return 2 < O(this) ? this.g.status : -1;
|
|
1121
1127
|
}
|
|
1122
1128
|
catch (a) {
|
|
1123
1129
|
return -1;
|
|
1124
1130
|
} };
|
|
1125
|
-
k.
|
|
1131
|
+
k.fa = function () { try {
|
|
1126
1132
|
return this.g ? this.g.responseText : "";
|
|
1127
1133
|
}
|
|
1128
1134
|
catch (a) {
|
|
1129
1135
|
return "";
|
|
1130
1136
|
} };
|
|
1131
|
-
k.
|
|
1137
|
+
k.Ra = function (a) { if (this.g) {
|
|
1132
1138
|
var b = this.g.responseText;
|
|
1133
1139
|
a && 0 == b.indexOf(a) && (b = b.substring(a.length));
|
|
1134
|
-
return
|
|
1140
|
+
return kd(b);
|
|
1135
1141
|
} };
|
|
1136
|
-
function
|
|
1142
|
+
function hc(a) { try {
|
|
1137
1143
|
if (!a.g)
|
|
1138
1144
|
return null;
|
|
1139
1145
|
if ("response" in a.g)
|
|
1140
1146
|
return a.g.response;
|
|
1141
1147
|
switch (a.J) {
|
|
1142
|
-
case
|
|
1148
|
+
case ld:
|
|
1143
1149
|
case "text": return a.g.responseText;
|
|
1144
1150
|
case "arraybuffer": if ("mozResponseArrayBuffer" in a.g)
|
|
1145
1151
|
return a.g.mozResponseArrayBuffer;
|
|
@@ -1149,97 +1155,93 @@ function oc(a) { try {
|
|
|
1149
1155
|
catch (b) {
|
|
1150
1156
|
return null;
|
|
1151
1157
|
} }
|
|
1152
|
-
k.
|
|
1153
|
-
k.
|
|
1154
|
-
function
|
|
1155
|
-
function
|
|
1158
|
+
k.Ea = function () { return this.m; };
|
|
1159
|
+
k.Na = function () { return "string" === typeof this.j ? this.j : String(this.j); };
|
|
1160
|
+
function ud(a) { var b = ""; Qa(a, function (c, d) { b += d; b += ":"; b += c; b += "\r\n"; }); return b; }
|
|
1161
|
+
function vd(a, b, c) { a: {
|
|
1156
1162
|
for (d in c) {
|
|
1157
1163
|
var d = !1;
|
|
1158
1164
|
break a;
|
|
1159
1165
|
}
|
|
1160
1166
|
d = !0;
|
|
1161
|
-
} d || (c =
|
|
1162
|
-
function
|
|
1163
|
-
function
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1168
|
-
this
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this
|
|
1176
|
-
this.
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1167
|
+
} d || (c = ud(c), "string" === typeof a ? (null != c && encodeURIComponent(String(c))) : S(a, b, c)); }
|
|
1168
|
+
function wd(a, b, c) { return c && c.internalChannelParams ? c.internalChannelParams[a] || b : b; }
|
|
1169
|
+
function xd(a) {
|
|
1170
|
+
this.Ca = 0;
|
|
1171
|
+
this.i = [];
|
|
1172
|
+
this.j = new Gb;
|
|
1173
|
+
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.$a = this.U = 0;
|
|
1175
|
+
this.Ya = wd("failFast", !1, a);
|
|
1176
|
+
this.L = this.v = this.u = this.m = this.l = null;
|
|
1177
|
+
this.Y = !0;
|
|
1178
|
+
this.pa = this.Ba = this.T = -1;
|
|
1179
|
+
this.Z = this.A = this.C = 0;
|
|
1180
|
+
this.Wa = wd("baseRetryDelayMs", 5E3, a);
|
|
1181
|
+
this.ab = wd("retryDelaySeedMs", 1E4, a);
|
|
1182
|
+
this.Za = wd("forwardChannelMaxRetries", 2, a);
|
|
1183
|
+
this.ta = wd("forwardChannelRequestTimeoutMs", 2E4, a);
|
|
1184
|
+
this.ra = a && a.xmlHttpFactory || void 0;
|
|
1185
|
+
this.Da = a && a.Yb || !1;
|
|
1186
|
+
this.J = void 0;
|
|
1181
1187
|
this.H = a && a.supportsCrossDomainXhr || !1;
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
this.
|
|
1191
|
-
this.O
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1188
|
+
this.I = "";
|
|
1189
|
+
this.h = new Wc(a && a.concurrentRequestLimit);
|
|
1190
|
+
this.Fa = new ad;
|
|
1191
|
+
this.O = a && a.fastHandshake || !1;
|
|
1192
|
+
this.N = a && a.encodeInitMessageHeaders || !1;
|
|
1193
|
+
this.O && this.N && (this.N = !1);
|
|
1194
|
+
this.Xa = a && a.Wb || !1;
|
|
1195
|
+
a && a.Aa && this.j.Aa();
|
|
1196
|
+
a && a.forceLongPolling && (this.Y = !1);
|
|
1197
|
+
this.$ = !this.O && this.Y && a && a.detectBufferingProxy || !1;
|
|
1198
|
+
this.ja = void 0;
|
|
1199
|
+
this.P = 0;
|
|
1200
|
+
this.K = !1;
|
|
1201
|
+
this.la = this.B = null;
|
|
1195
1202
|
}
|
|
1196
|
-
k =
|
|
1203
|
+
k = xd.prototype;
|
|
1197
1204
|
k.ma = 8;
|
|
1198
1205
|
k.G = 1;
|
|
1199
|
-
function
|
|
1200
|
-
var b = a.
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
b = new
|
|
1206
|
+
function Ac(a) { yd(a); if (3 == a.G) {
|
|
1207
|
+
var b = a.U++, c = M(a.F);
|
|
1208
|
+
S(c, "SID", a.I);
|
|
1209
|
+
S(c, "RID", b);
|
|
1210
|
+
S(c, "TYPE", "terminate");
|
|
1211
|
+
zd(a, c);
|
|
1212
|
+
b = new L(a, a.j, b, void 0);
|
|
1206
1213
|
b.K = 2;
|
|
1207
|
-
b.v =
|
|
1214
|
+
b.v = dc(M(c));
|
|
1208
1215
|
c = !1;
|
|
1209
1216
|
l.navigator && l.navigator.sendBeacon && (c = l.navigator.sendBeacon(b.v.toString(), ""));
|
|
1210
1217
|
!c && l.Image && ((new Image).src = b.v, c = !0);
|
|
1211
|
-
c || (b.g =
|
|
1218
|
+
c || (b.g = gc(b.l, null), b.g.da(b.v));
|
|
1212
1219
|
b.F = Date.now();
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
function Ac(a) { a.g && (wc(a), a.g.cancel(), a.g = null); }
|
|
1220
|
-
function Jd(a) { Ac(a); a.u && (l.clearTimeout(a.u), a.u = null); zc(a); a.i.cancel(); a.m && ("number" === typeof a.m && l.clearTimeout(a.m), a.m = null); }
|
|
1221
|
-
function Md(a, b) { a.l.push(new fd(a.Za++, b)); 3 == a.G && Hc(a); }
|
|
1222
|
-
function Hc(a) { id(a.i) || a.m || (a.m = !0, zb(a.Ha, a), a.C = 0); }
|
|
1223
|
-
function Nd(a, b) { if (Cc(a.i) >= a.i.j - (a.m ? 1 : 0))
|
|
1220
|
+
N(b);
|
|
1221
|
+
} Ad(a); }
|
|
1222
|
+
function sc(a) { a.g && (oc(a), a.g.cancel(), a.g = null); }
|
|
1223
|
+
function yd(a) { sc(a); a.u && (l.clearTimeout(a.u), a.u = null); rc(a); a.h.cancel(); a.m && ("number" === typeof a.m && l.clearTimeout(a.m), a.m = null); }
|
|
1224
|
+
function zc(a) { Yc(a.h) || a.m || (a.m = !0, sb(a.Ja, a), a.C = 0); }
|
|
1225
|
+
function Bd(a, b) { if (uc(a.h) >= a.h.j - (a.m ? 1 : 0))
|
|
1224
1226
|
return !1; if (a.m)
|
|
1225
|
-
return a.
|
|
1226
|
-
return !1; a.m =
|
|
1227
|
-
k.
|
|
1227
|
+
return a.i = b.D.concat(a.i), !0; if (1 == a.G || 2 == a.G || a.C >= (a.Ya ? 0 : a.Za))
|
|
1228
|
+
return !1; a.m = J(q(a.Ja, a, b), Cd(a, a.C)); a.C++; return !0; }
|
|
1229
|
+
k.Ja = function (a) {
|
|
1228
1230
|
if (this.m)
|
|
1229
1231
|
if (this.m = null, 1 == this.G) {
|
|
1230
1232
|
if (!a) {
|
|
1231
|
-
this.
|
|
1232
|
-
a = this.
|
|
1233
|
-
var e = new
|
|
1233
|
+
this.U = Math.floor(1E5 * Math.random());
|
|
1234
|
+
a = this.U++;
|
|
1235
|
+
var e = new L(this, this.j, a, void 0);
|
|
1234
1236
|
var f = this.s;
|
|
1235
|
-
this.
|
|
1236
|
-
null
|
|
1237
|
-
if (this.
|
|
1237
|
+
this.S && (f ? (f = Ra(f), Ta(f, this.S)) : f = this.S);
|
|
1238
|
+
null !== this.o || this.N || (e.H = f, f = null);
|
|
1239
|
+
if (this.O)
|
|
1238
1240
|
a: {
|
|
1239
1241
|
var b = 0;
|
|
1240
|
-
for (var c = 0; c < this.
|
|
1242
|
+
for (var c = 0; c < this.i.length; c++) {
|
|
1241
1243
|
b: {
|
|
1242
|
-
var d = this.
|
|
1244
|
+
var d = this.i[c];
|
|
1243
1245
|
if ("__data__" in d.g && (d = d.g.__data__, "string" === typeof d)) {
|
|
1244
1246
|
d = d.length;
|
|
1245
1247
|
break b;
|
|
@@ -1253,7 +1255,7 @@ k.Ha = function (a) {
|
|
|
1253
1255
|
b = c;
|
|
1254
1256
|
break a;
|
|
1255
1257
|
}
|
|
1256
|
-
if (4096 === b || c === this.
|
|
1258
|
+
if (4096 === b || c === this.i.length - 1) {
|
|
1257
1259
|
b = c + 1;
|
|
1258
1260
|
break a;
|
|
1259
1261
|
}
|
|
@@ -1261,28 +1263,28 @@ k.Ha = function (a) {
|
|
|
1261
1263
|
b = 1E3;
|
|
1262
1264
|
}
|
|
1263
1265
|
else
|
|
1264
|
-
b =
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
c =
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
this.D &&
|
|
1271
|
-
|
|
1272
|
-
this.
|
|
1273
|
-
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1266
|
+
b =
|
|
1267
|
+
1E3;
|
|
1268
|
+
b = Dd(this, e, b);
|
|
1269
|
+
c = M(this.F);
|
|
1270
|
+
S(c, "RID", a);
|
|
1271
|
+
S(c, "CVER", 22);
|
|
1272
|
+
this.D && S(c, "X-HTTP-Session-Id", this.D);
|
|
1273
|
+
zd(this, c);
|
|
1274
|
+
f && (this.N ? b = "headers=" + encodeURIComponent(String(ud(f))) + "&" + b : this.o && vd(c, this.o, f));
|
|
1275
|
+
vc(this.h, e);
|
|
1276
|
+
this.Xa && S(c, "TYPE", "init");
|
|
1277
|
+
this.O ? (S(c, "$req", b), S(c, "SID", "null"), e.Z = !0, cc(e, c, null)) : cc(e, c, b);
|
|
1276
1278
|
this.G = 2;
|
|
1277
1279
|
}
|
|
1278
1280
|
}
|
|
1279
1281
|
else
|
|
1280
|
-
3 == this.G && (a ?
|
|
1282
|
+
3 == this.G && (a ? Ed(this, a) : 0 == this.i.length || Yc(this.h) || Ed(this));
|
|
1281
1283
|
};
|
|
1282
|
-
function
|
|
1283
|
-
function
|
|
1284
|
-
function
|
|
1285
|
-
var e = a.
|
|
1284
|
+
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
|
+
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.Qa, a.l, a) : null; a: {
|
|
1287
|
+
var e = a.i;
|
|
1286
1288
|
var f = -1;
|
|
1287
1289
|
for (;;) {
|
|
1288
1290
|
var h = ["count=" + c];
|
|
@@ -1296,9 +1298,9 @@ function Pd(a, b, c) { c = Math.min(a.l.length, c); var d = a.j ? q(a.j.Oa, a.j,
|
|
|
1296
1298
|
f = Math.max(0, e[u].h - 100), n = !1;
|
|
1297
1299
|
else
|
|
1298
1300
|
try {
|
|
1299
|
-
|
|
1301
|
+
bd(r, h, "req" + m + "_");
|
|
1300
1302
|
}
|
|
1301
|
-
catch (
|
|
1303
|
+
catch (F) {
|
|
1302
1304
|
d && d(r);
|
|
1303
1305
|
}
|
|
1304
1306
|
}
|
|
@@ -1307,91 +1309,100 @@ function Pd(a, b, c) { c = Math.min(a.l.length, c); var d = a.j ? q(a.j.Oa, a.j,
|
|
|
1307
1309
|
break a;
|
|
1308
1310
|
}
|
|
1309
1311
|
}
|
|
1310
|
-
} a = a.
|
|
1311
|
-
function
|
|
1312
|
-
function
|
|
1313
|
-
return !1; a.
|
|
1314
|
-
k.
|
|
1315
|
-
var a = 2 * this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.B =
|
|
1312
|
+
} a = a.i.splice(0, c); b.D = a; return d; }
|
|
1313
|
+
function yc(a) { a.g || a.u || (a.Z = 1, sb(a.Ia, a), a.A = 0); }
|
|
1314
|
+
function tc(a) { if (a.g || a.u || 3 <= a.A)
|
|
1315
|
+
return !1; a.Z++; a.u = J(q(a.Ia, a), Cd(a, a.A)); a.A++; return !0; }
|
|
1316
|
+
k.Ia = function () { this.u = null; Fd(this); if (this.$ && !(this.K || null == this.g || 0 >= this.P)) {
|
|
1317
|
+
var a = 2 * this.P;
|
|
1318
|
+
this.j.info("BP detection timer enabled: " + a);
|
|
1319
|
+
this.B = J(q(this.cb, this), a);
|
|
1318
1320
|
} };
|
|
1319
|
-
k.
|
|
1320
|
-
function
|
|
1321
|
-
function
|
|
1322
|
-
k.
|
|
1323
|
-
function
|
|
1324
|
-
function
|
|
1325
|
-
|
|
1326
|
-
|
|
1321
|
+
k.cb = 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
|
+
function oc(a) { null != a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
1323
|
+
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.bb = function () { null != this.v && (this.v = null, sc(this), tc(this), I(19)); };
|
|
1325
|
+
function rc(a) { null != a.v && (l.clearTimeout(a.v), a.v = null); }
|
|
1326
|
+
function mc(a, b) { var c = null; if (a.g == b) {
|
|
1327
|
+
rc(a);
|
|
1328
|
+
oc(a);
|
|
1327
1329
|
a.g = null;
|
|
1328
1330
|
var d = 2;
|
|
1329
1331
|
}
|
|
1330
|
-
else if (
|
|
1331
|
-
c = b.D,
|
|
1332
|
+
else if (qc(a.h, b))
|
|
1333
|
+
c = b.D, xc(a.h, b), d = 1;
|
|
1332
1334
|
else
|
|
1333
|
-
return;
|
|
1334
|
-
if (b.i)
|
|
1335
|
+
return; if (0 != a.G)
|
|
1336
|
+
if (a.pa = b.Y, b.i)
|
|
1335
1337
|
if (1 == d) {
|
|
1336
1338
|
c = b.s ? b.s.length : 0;
|
|
1337
1339
|
b = Date.now() - b.F;
|
|
1338
1340
|
var e = a.C;
|
|
1339
|
-
d =
|
|
1340
|
-
|
|
1341
|
-
|
|
1341
|
+
d = Mb();
|
|
1342
|
+
C(d, new Pb(d, c, b, e));
|
|
1343
|
+
zc(a);
|
|
1342
1344
|
}
|
|
1343
1345
|
else
|
|
1344
|
-
|
|
1345
|
-
else if (e = b.o, 3 == e || 0 == e && 0 < a.
|
|
1346
|
-
switch (c && 0 < c.length && (b = a.
|
|
1346
|
+
yc(a);
|
|
1347
|
+
else if (e = b.o, 3 == e || 0 == e && 0 < a.pa || !(1 == d && Bd(a, b) || 2 == d && tc(a)))
|
|
1348
|
+
switch (c && 0 < c.length && (b = a.h, b.i = b.i.concat(c)), e) {
|
|
1347
1349
|
case 1:
|
|
1348
|
-
|
|
1350
|
+
R(a, 5);
|
|
1349
1351
|
break;
|
|
1350
1352
|
case 4:
|
|
1351
|
-
|
|
1353
|
+
R(a, 10);
|
|
1352
1354
|
break;
|
|
1353
1355
|
case 3:
|
|
1354
|
-
|
|
1356
|
+
R(a, 6);
|
|
1355
1357
|
break;
|
|
1356
|
-
default:
|
|
1358
|
+
default: R(a, 2);
|
|
1357
1359
|
} }
|
|
1358
|
-
function
|
|
1359
|
-
function
|
|
1360
|
+
function Cd(a, b) { var c = a.Wa + Math.floor(Math.random() * a.ab); a.l || (c *= 2); return c * b; }
|
|
1361
|
+
function R(a, b) { a.j.info("Error code " + b); if (2 == b) {
|
|
1360
1362
|
var c = null;
|
|
1361
|
-
a.
|
|
1363
|
+
a.l && (c = null);
|
|
1362
1364
|
var d = q(a.jb, a);
|
|
1363
|
-
c || (c = new
|
|
1364
|
-
|
|
1365
|
+
c || (c = new T("//www.google.com/images/cleardot.gif"), l.location && "http" == l.location.protocol || Gc(c, "https"), dc(c));
|
|
1366
|
+
cd(c.toString(), d);
|
|
1365
1367
|
}
|
|
1366
1368
|
else
|
|
1367
|
-
|
|
1368
|
-
k.jb = function (a) { a ? (this.
|
|
1369
|
-
function
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1369
|
+
I(2); a.G = 0; a.l && a.l.va(b); Ad(a); yd(a); }
|
|
1370
|
+
k.jb = function (a) { a ? (this.j.info("Successfully pinged google.com"), I(2)) : (this.j.info("Failed to ping google.com"), I(1)); };
|
|
1371
|
+
function Ad(a) { a.G = 0; a.la = []; if (a.l) {
|
|
1372
|
+
var b = Zc(a.h);
|
|
1373
|
+
if (0 != b.length || 0 != a.i.length)
|
|
1374
|
+
na(a.la, b), na(a.la, a.i), a.h.i.length = 0, ma(a.i), a.i.length = 0;
|
|
1375
|
+
a.l.ua();
|
|
1373
1376
|
} }
|
|
1374
|
-
function
|
|
1375
|
-
b &&
|
|
1377
|
+
function wc(a, b, c) { var d = c instanceof T ? M(c) : new T(c, void 0); if ("" != d.g)
|
|
1378
|
+
b && (d.g = b + "." + d.g), Hc(d, d.m);
|
|
1376
1379
|
else {
|
|
1377
1380
|
var e = l.location;
|
|
1378
|
-
d =
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1381
|
+
d = e.protocol;
|
|
1382
|
+
b = b ? b + "." + e.hostname : e.hostname;
|
|
1383
|
+
e = +e.port;
|
|
1384
|
+
var f = new T(null, void 0);
|
|
1385
|
+
d && Gc(f, d);
|
|
1386
|
+
b && (f.g = b);
|
|
1387
|
+
e && Hc(f, e);
|
|
1388
|
+
c && (f.l = c);
|
|
1389
|
+
d = f;
|
|
1390
|
+
} c = a.D; b = a.za; c && b && S(d, c, b); S(d, "VER", a.ma); zd(a, d); return d; }
|
|
1391
|
+
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({ ib: !0 })) : new W(a.ra); b.L = a.H; return b; }
|
|
1393
|
+
function Gd() { }
|
|
1394
|
+
k = Gd.prototype;
|
|
1384
1395
|
k.xa = function () { };
|
|
1385
1396
|
k.wa = function () { };
|
|
1386
1397
|
k.va = function () { };
|
|
1387
1398
|
k.ua = function () { };
|
|
1388
|
-
k.
|
|
1389
|
-
function
|
|
1399
|
+
k.Qa = function () { };
|
|
1400
|
+
function Hd() { if (y && !(10 <= Number(La)))
|
|
1390
1401
|
throw Error("Environmental error: no available transport."); }
|
|
1391
|
-
|
|
1392
|
-
function
|
|
1393
|
-
|
|
1394
|
-
this.g = new
|
|
1402
|
+
Hd.prototype.g = function (a, b) { return new X(a, b); };
|
|
1403
|
+
function X(a, b) {
|
|
1404
|
+
B.call(this);
|
|
1405
|
+
this.g = new xd(b);
|
|
1395
1406
|
this.l = a;
|
|
1396
1407
|
this.h = b && b.messageUrlParams || null;
|
|
1397
1408
|
a = b && b.messageHeaders || null;
|
|
@@ -1400,26 +1411,26 @@ function Y(a, b) {
|
|
|
1400
1411
|
a = b && b.initMessageHeaders || null;
|
|
1401
1412
|
b && b.messageContentType && (a ? a["X-WebChannel-Content-Type"] = b.messageContentType : a = { "X-WebChannel-Content-Type": b.messageContentType });
|
|
1402
1413
|
b && b.ya && (a ? a["X-WebChannel-Client-Profile"] = b.ya : a = { "X-WebChannel-Client-Profile": b.ya });
|
|
1403
|
-
this.g.
|
|
1414
|
+
this.g.S =
|
|
1404
1415
|
a;
|
|
1405
|
-
(a = b && b.
|
|
1416
|
+
(a = b && b.Xb) && !pa(a) && (this.g.o = a);
|
|
1406
1417
|
this.A = b && b.supportsCrossDomainXhr || !1;
|
|
1407
1418
|
this.v = b && b.sendRawJson || !1;
|
|
1408
|
-
(b = b && b.httpSessionIdParam) && !
|
|
1409
|
-
this.j = new
|
|
1419
|
+
(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]));
|
|
1420
|
+
this.j = new Y(this);
|
|
1410
1421
|
}
|
|
1411
|
-
t(
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
var
|
|
1416
|
-
|
|
1417
|
-
|
|
1422
|
+
t(X, B);
|
|
1423
|
+
X.prototype.m = function () { this.g.l = this.j; this.A && (this.g.H = !0); var a = this.g, b = this.l, c = this.h || void 0; I(0); a.V = b; a.ia = c || {}; a.L = a.Y; a.F = wc(a, null, a.V); zc(a); };
|
|
1424
|
+
X.prototype.close = function () { Ac(this.g); };
|
|
1425
|
+
X.prototype.u = function (a) { var b = this.g; if ("string" === typeof a) {
|
|
1426
|
+
var c = {};
|
|
1427
|
+
c.__data__ = a;
|
|
1428
|
+
a = c;
|
|
1418
1429
|
}
|
|
1419
1430
|
else
|
|
1420
|
-
this.v
|
|
1421
|
-
|
|
1422
|
-
function
|
|
1431
|
+
this.v && (c = {}, c.__data__ = lb(a), a = c); b.i.push(new Vc(b.$a++, a)); 3 == b.G && zc(b); };
|
|
1432
|
+
X.prototype.M = function () { this.g.l = null; delete this.j; Ac(this.g); delete this.g; X.X.M.call(this); };
|
|
1433
|
+
function Id(a) { Vb.call(this); var b = a.__sm__; if (b) {
|
|
1423
1434
|
a: {
|
|
1424
1435
|
for (var c in b) {
|
|
1425
1436
|
a = c;
|
|
@@ -1433,15 +1444,15 @@ function Ud(a) { ac.call(this); var b = a.__sm__; if (b) {
|
|
|
1433
1444
|
}
|
|
1434
1445
|
else
|
|
1435
1446
|
this.data = a; }
|
|
1436
|
-
t(
|
|
1437
|
-
function
|
|
1438
|
-
t(
|
|
1439
|
-
function
|
|
1440
|
-
t(
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1447
|
+
t(Id, Vb);
|
|
1448
|
+
function Jd() { Wb.call(this); this.status = 1; }
|
|
1449
|
+
t(Jd, Wb);
|
|
1450
|
+
function Y(a) { this.g = a; }
|
|
1451
|
+
t(Y, Gd);
|
|
1452
|
+
Y.prototype.xa = function () { C(this.g, "a"); };
|
|
1453
|
+
Y.prototype.wa = function (a) { C(this.g, new Id(a)); };
|
|
1454
|
+
Y.prototype.va = function (a) { C(this.g, new Jd(a)); };
|
|
1455
|
+
Y.prototype.ua = function () { C(this.g, "b"); }; /*
|
|
1445
1456
|
|
|
1446
1457
|
Copyright 2017 Google LLC
|
|
1447
1458
|
|
|
@@ -1457,36 +1468,36 @@ Z.prototype.ua = function () { D(this.g, "b"); }; /*
|
|
|
1457
1468
|
See the License for the specific language governing permissions and
|
|
1458
1469
|
limitations under the License.
|
|
1459
1470
|
*/
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
var createWebChannelTransport = esm.createWebChannelTransport = function () { return new
|
|
1482
|
-
var getStatEventTarget = esm.getStatEventTarget = function () { return
|
|
1483
|
-
var ErrorCode = esm.ErrorCode =
|
|
1484
|
-
var EventType = esm.EventType =
|
|
1485
|
-
var Event = esm.Event =
|
|
1471
|
+
Hd.prototype.createWebChannel = Hd.prototype.g;
|
|
1472
|
+
X.prototype.send = X.prototype.u;
|
|
1473
|
+
X.prototype.open = X.prototype.m;
|
|
1474
|
+
X.prototype.close = X.prototype.close;
|
|
1475
|
+
Qb.NO_ERROR = 0;
|
|
1476
|
+
Qb.TIMEOUT = 8;
|
|
1477
|
+
Qb.HTTP_ERROR = 6;
|
|
1478
|
+
Rb.COMPLETE = "complete";
|
|
1479
|
+
Ub.EventType = K;
|
|
1480
|
+
K.OPEN = "a";
|
|
1481
|
+
K.CLOSE = "b";
|
|
1482
|
+
K.ERROR = "c";
|
|
1483
|
+
K.MESSAGE = "d";
|
|
1484
|
+
B.prototype.listen = B.prototype.N;
|
|
1485
|
+
W.prototype.listenOnce = W.prototype.O;
|
|
1486
|
+
W.prototype.getLastError = W.prototype.Na;
|
|
1487
|
+
W.prototype.getLastErrorCode = W.prototype.Ea;
|
|
1488
|
+
W.prototype.getStatus = W.prototype.aa;
|
|
1489
|
+
W.prototype.getResponseJson = W.prototype.Ra;
|
|
1490
|
+
W.prototype.getResponseText = W.prototype.fa;
|
|
1491
|
+
W.prototype.send = W.prototype.da;
|
|
1492
|
+
var createWebChannelTransport = esm.createWebChannelTransport = function () { return new Hd; };
|
|
1493
|
+
var getStatEventTarget = esm.getStatEventTarget = function () { return Mb(); };
|
|
1494
|
+
var ErrorCode = esm.ErrorCode = Qb;
|
|
1495
|
+
var EventType = esm.EventType = Rb;
|
|
1496
|
+
var Event = esm.Event = G;
|
|
1486
1497
|
var Stat = esm.Stat = { rb: 0, ub: 1, vb: 2, Ob: 3, Tb: 4, Qb: 5, Rb: 6, Pb: 7, Nb: 8, Sb: 9, PROXY: 10, NOPROXY: 11, Lb: 12, Hb: 13, Ib: 14, Gb: 15, Jb: 16, Kb: 17, nb: 18, mb: 19, ob: 20 };
|
|
1487
|
-
var FetchXmlHttpFactory = esm.FetchXmlHttpFactory =
|
|
1488
|
-
var WebChannel = esm.WebChannel =
|
|
1489
|
-
var XhrIo = esm.XhrIo =
|
|
1498
|
+
var FetchXmlHttpFactory = esm.FetchXmlHttpFactory = ed;
|
|
1499
|
+
var WebChannel = esm.WebChannel = Ub;
|
|
1500
|
+
var XhrIo = esm.XhrIo = W;
|
|
1490
1501
|
|
|
1491
1502
|
export { ErrorCode, Event, EventType, FetchXmlHttpFactory, Stat, WebChannel, XhrIo, createWebChannelTransport, esm as default, getStatEventTarget };
|
|
1492
1503
|
//# sourceMappingURL=index.esm.js.map
|