@firebase/webchannel-wrapper 0.9.0 → 0.10.0-canary.4a86f4eb0
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/esm/index.esm.js +1850 -0
- package/dist/esm/index.esm.js.map +1 -0
- package/dist/esm/index.esm2017.js +112 -0
- package/dist/esm/index.esm2017.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/index.js +125 -102
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/CHANGELOG.md +0 -84
- package/dist/index.esm.js +0 -1504
- package/dist/index.esm.js.map +0 -1
- package/dist/index.esm2017.js +0 -108
- package/dist/index.esm2017.js.map +0 -1
package/dist/index.esm.js
DELETED
|
@@ -1,1504 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise */
|
|
16
|
-
|
|
17
|
-
var extendStatics = function(d, b) {
|
|
18
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
-
return extendStatics(d, b);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function __extends(d, b) {
|
|
25
|
-
if (typeof b !== "function" && b !== null)
|
|
26
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27
|
-
extendStatics(d, b);
|
|
28
|
-
function __() { this.constructor = d; }
|
|
29
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function __values(o) {
|
|
33
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
34
|
-
if (m) return m.call(o);
|
|
35
|
-
if (o && typeof o.length === "number") return {
|
|
36
|
-
next: function () {
|
|
37
|
-
if (o && i >= o.length) o = void 0;
|
|
38
|
-
return { value: o && o[i++], done: !o };
|
|
39
|
-
}
|
|
40
|
-
};
|
|
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;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
62
|
-
|
|
63
|
-
var esm = {};
|
|
64
|
-
|
|
65
|
-
var k, goog = goog || {}, l = commonjsGlobal || self;
|
|
66
|
-
function aa() { }
|
|
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; }
|
|
68
|
-
function p(a) { var b = typeof a; return "object" == b && null != a || "function" == b; }
|
|
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)
|
|
73
|
-
throw Error(); if (2 < arguments.length) {
|
|
74
|
-
var d = Array.prototype.slice.call(arguments, 2);
|
|
75
|
-
return function () { var e = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(e, d); return a.apply(b, e); };
|
|
76
|
-
} return function () { return a.apply(b, arguments); }; }
|
|
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.Wb = function (d, e, f) { for (var h = Array(arguments.length - 2), n = 2; n < arguments.length; n++)
|
|
80
|
-
h[n - 2] = arguments[n]; return b.prototype[e].apply(d, h); }; }
|
|
81
|
-
function v() { this.s = this.s; this.o = this.o; }
|
|
82
|
-
var ja = 0;
|
|
83
|
-
v.prototype.s = !1;
|
|
84
|
-
v.prototype.na = function () { if (!this.s && (this.s = !0, this.M(), 0 != ja)) {
|
|
85
|
-
ca(this);
|
|
86
|
-
} };
|
|
87
|
-
v.prototype.M = function () { if (this.o)
|
|
88
|
-
for (; this.o.length;)
|
|
89
|
-
this.o.shift()(); };
|
|
90
|
-
var la = Array.prototype.indexOf ? function (a, b) { return Array.prototype.indexOf.call(a, b, void 0); } : function (a, b) { if ("string" === typeof a)
|
|
91
|
-
return "string" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, 0); for (var c = 0; c < a.length; c++)
|
|
92
|
-
if (c in a && a[c] === b)
|
|
93
|
-
return c; return -1; };
|
|
94
|
-
function ma(a) { var b = a.length; if (0 < b) {
|
|
95
|
-
var c = Array(b);
|
|
96
|
-
for (var d = 0; d < b; d++)
|
|
97
|
-
c[d] = a[d];
|
|
98
|
-
return c;
|
|
99
|
-
} return []; }
|
|
100
|
-
function na(a, b) { for (var c = 1; c < arguments.length; c++) {
|
|
101
|
-
var d = arguments[c];
|
|
102
|
-
if (ba(d)) {
|
|
103
|
-
var e = a.length || 0, f = d.length || 0;
|
|
104
|
-
a.length = e + f;
|
|
105
|
-
for (var h = 0; h < f; h++)
|
|
106
|
-
a[e + h] = d[h];
|
|
107
|
-
}
|
|
108
|
-
else
|
|
109
|
-
a.push(d);
|
|
110
|
-
} }
|
|
111
|
-
function w(a, b) { this.type = a; this.g = this.target = b; this.defaultPrevented = !1; }
|
|
112
|
-
w.prototype.h = function () { this.defaultPrevented = !0; };
|
|
113
|
-
var oa = function () { if (!l.addEventListener || !Object.defineProperty)
|
|
114
|
-
return !1; var a = !1, b = Object.defineProperty({}, "passive", { get: function () { a = !0; } }); try {
|
|
115
|
-
l.addEventListener("test", aa, b), l.removeEventListener("test", aa, b);
|
|
116
|
-
}
|
|
117
|
-
catch (c) { } return a; }();
|
|
118
|
-
function pa(a) { return /^[\s\xa0]*$/.test(a); }
|
|
119
|
-
var qa = String.prototype.trim ? function (a) { return a.trim(); } : function (a) { return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]; };
|
|
120
|
-
function ra(a, b) { return a < b ? -1 : a > b ? 1 : 0; }
|
|
121
|
-
function sa() { var a = l.navigator; return a && (a = a.userAgent) ? a : ""; }
|
|
122
|
-
function x(a) { return -1 != sa().indexOf(a); }
|
|
123
|
-
function ta(a) { ta[" "](a); return a; }
|
|
124
|
-
ta[" "] = aa;
|
|
125
|
-
function ua(a) { var b = va; return Object.prototype.hasOwnProperty.call(b, 9) ? b[9] : b[9] = a(9); }
|
|
126
|
-
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");
|
|
127
|
-
function Ba() { var a = l.document; return a ? a.documentMode : void 0; }
|
|
128
|
-
var Ea;
|
|
129
|
-
a: {
|
|
130
|
-
var Fa = "", Ga = function () { var a = sa(); if (za)
|
|
131
|
-
return /rv:([^\);]+)(\)|;)/.exec(a); if (xa)
|
|
132
|
-
return /Edge\/([\d\.]+)/.exec(a); if (y)
|
|
133
|
-
return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a); if (Aa)
|
|
134
|
-
return /WebKit\/(\S+)/.exec(a); if (wa)
|
|
135
|
-
return /(?:Version)[ \/]?(\S+)/.exec(a); }();
|
|
136
|
-
Ga && (Fa = Ga ? Ga[1] : "");
|
|
137
|
-
if (y) {
|
|
138
|
-
var Ha = Ba();
|
|
139
|
-
if (null != Ha && Ha > parseFloat(Fa)) {
|
|
140
|
-
Ea = String(Ha);
|
|
141
|
-
break a;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
Ea = Fa;
|
|
145
|
-
}
|
|
146
|
-
var va = {};
|
|
147
|
-
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++) {
|
|
148
|
-
var e = b[h] || "", f = c[h] || "";
|
|
149
|
-
do {
|
|
150
|
-
e = /(\d*)(\D*)(.*)/.exec(e) || ["", "", "", ""];
|
|
151
|
-
f = /(\d*)(\D*)(.*)/.exec(f) || ["", "", "", ""];
|
|
152
|
-
if (0 == e[0].length && 0 == f[0].length)
|
|
153
|
-
break;
|
|
154
|
-
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]);
|
|
155
|
-
e = e[3];
|
|
156
|
-
f = f[3];
|
|
157
|
-
} while (0 == a);
|
|
158
|
-
} return 0 <= a; }); }
|
|
159
|
-
var Ja;
|
|
160
|
-
if (l.document && y) {
|
|
161
|
-
var Ka = Ba();
|
|
162
|
-
Ja = Ka ? Ka : parseInt(Ea, 10) || void 0;
|
|
163
|
-
}
|
|
164
|
-
else
|
|
165
|
-
Ja = void 0;
|
|
166
|
-
var La = Ja;
|
|
167
|
-
function z(a, b) {
|
|
168
|
-
w.call(this, a ? a.type : "");
|
|
169
|
-
this.relatedTarget = this.g = this.target = null;
|
|
170
|
-
this.button = this.screenY = this.screenX = this.clientY = this.clientX = 0;
|
|
171
|
-
this.key = "";
|
|
172
|
-
this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1;
|
|
173
|
-
this.state = null;
|
|
174
|
-
this.pointerId = 0;
|
|
175
|
-
this.pointerType = "";
|
|
176
|
-
this.i = null;
|
|
177
|
-
if (a) {
|
|
178
|
-
var c = this.type = a.type, d = a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : null;
|
|
179
|
-
this.target = a.target || a.srcElement;
|
|
180
|
-
this.g = b;
|
|
181
|
-
if (b = a.relatedTarget) {
|
|
182
|
-
if (za) {
|
|
183
|
-
a: {
|
|
184
|
-
try {
|
|
185
|
-
ta(b.nodeName);
|
|
186
|
-
var e = !0;
|
|
187
|
-
break a;
|
|
188
|
-
}
|
|
189
|
-
catch (f) { }
|
|
190
|
-
e =
|
|
191
|
-
!1;
|
|
192
|
-
}
|
|
193
|
-
e || (b = null);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
else
|
|
197
|
-
"mouseover" == c ? b = a.fromElement : "mouseout" == c && (b = a.toElement);
|
|
198
|
-
this.relatedTarget = b;
|
|
199
|
-
d ? (this.clientX = void 0 !== d.clientX ? d.clientX : d.pageX, this.clientY = void 0 !== d.clientY ? d.clientY : d.pageY, this.screenX = d.screenX || 0, this.screenY = d.screenY || 0) : (this.clientX = void 0 !== a.clientX ? a.clientX : a.pageX, this.clientY = void 0 !== a.clientY ? a.clientY : a.pageY, this.screenX = a.screenX || 0, this.screenY = a.screenY || 0);
|
|
200
|
-
this.button = a.button;
|
|
201
|
-
this.key = a.key || "";
|
|
202
|
-
this.ctrlKey = a.ctrlKey;
|
|
203
|
-
this.altKey = a.altKey;
|
|
204
|
-
this.shiftKey =
|
|
205
|
-
a.shiftKey;
|
|
206
|
-
this.metaKey = a.metaKey;
|
|
207
|
-
this.pointerId = a.pointerId || 0;
|
|
208
|
-
this.pointerType = "string" === typeof a.pointerType ? a.pointerType : Ma[a.pointerType] || "";
|
|
209
|
-
this.state = a.state;
|
|
210
|
-
this.i = a;
|
|
211
|
-
a.defaultPrevented && z.X.h.call(this);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
t(z, w);
|
|
215
|
-
var Ma = { 2: "touch", 3: "pen", 4: "mouse" };
|
|
216
|
-
z.prototype.h = function () { z.X.h.call(this); var a = this.i; a.preventDefault ? a.preventDefault() : a.returnValue = !1; };
|
|
217
|
-
var A = "closure_listenable_" + (1E6 * Math.random() | 0);
|
|
218
|
-
var Na = 0;
|
|
219
|
-
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; }
|
|
220
|
-
function Pa(a) { a.ba = !0; a.listener = null; a.proxy = null; a.src = null; a.ha = null; }
|
|
221
|
-
function Qa(a, b, c) { for (var d in a)
|
|
222
|
-
b.call(c, a[d], d, a); }
|
|
223
|
-
function Ra(a) { var b = {}; for (var c in a)
|
|
224
|
-
b[c] = a[c]; return b; }
|
|
225
|
-
var Sa = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
|
226
|
-
function Ta(a, b) { var c, d; for (var e = 1; e < arguments.length; e++) {
|
|
227
|
-
d = arguments[e];
|
|
228
|
-
for (c in d)
|
|
229
|
-
a[c] = d[c];
|
|
230
|
-
for (var f = 0; f < Sa.length; f++)
|
|
231
|
-
c = Sa[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);
|
|
232
|
-
} }
|
|
233
|
-
function Ua(a) { this.src = a; this.g = {}; this.h = 0; }
|
|
234
|
-
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; };
|
|
235
|
-
function Wa(a, b) { var c = b.type; if (c in a.g) {
|
|
236
|
-
var d = a.g[c], e = la(d, b), f;
|
|
237
|
-
(f = 0 <= e) && Array.prototype.splice.call(d, e, 1);
|
|
238
|
-
f && (Pa(b), 0 == a.g[c].length && (delete a.g[c], a.h--));
|
|
239
|
-
} }
|
|
240
|
-
function Va(a, b, c, d) { for (var e = 0; e < a.length; ++e) {
|
|
241
|
-
var f = a[e];
|
|
242
|
-
if (!f.ba && f.listener == b && f.capture == !!c && f.ha == d)
|
|
243
|
-
return e;
|
|
244
|
-
} return -1; }
|
|
245
|
-
var Xa = "closure_lm_" + (1E6 * Math.random() | 0), Ya = {};
|
|
246
|
-
function $a(a, b, c, d, e) { if (d && d.once)
|
|
247
|
-
return ab(a, b, c, d, e); if (Array.isArray(b)) {
|
|
248
|
-
for (var f = 0; f < b.length; f++)
|
|
249
|
-
$a(a, b[f], c, d, e);
|
|
250
|
-
return null;
|
|
251
|
-
} c = bb(c); return a && a[A] ? a.N(b, c, p(d) ? !!d.capture : !!d, e) : cb(a, b, c, !1, d, e); }
|
|
252
|
-
function cb(a, b, c, d, e, f) { if (!b)
|
|
253
|
-
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)
|
|
254
|
-
return c; d = eb(); c.proxy = d; d.src = a; d.listener = c; if (a.addEventListener)
|
|
255
|
-
oa || (e = h), void 0 === e && (e = !1), a.addEventListener(b.toString(), d, e);
|
|
256
|
-
else if (a.attachEvent)
|
|
257
|
-
a.attachEvent(fb(b.toString()), d);
|
|
258
|
-
else if (a.addListener && a.removeListener)
|
|
259
|
-
a.addListener(d);
|
|
260
|
-
else
|
|
261
|
-
throw Error("addEventListener and attachEvent are unavailable."); return c; }
|
|
262
|
-
function eb() { function a(c) { return b.call(a.src, a.listener, c); } var b = gb; return a; }
|
|
263
|
-
function ab(a, b, c, d, e) { if (Array.isArray(b)) {
|
|
264
|
-
for (var f = 0; f < b.length; f++)
|
|
265
|
-
ab(a, b[f], c, d, e);
|
|
266
|
-
return null;
|
|
267
|
-
} c = bb(c); return a && a[A] ? a.O(b, c, p(d) ? !!d.capture : !!d, e) : cb(a, b, c, !0, d, e); }
|
|
268
|
-
function hb(a, b, c, d, e) { if (Array.isArray(b))
|
|
269
|
-
for (var f = 0; f < b.length; f++)
|
|
270
|
-
hb(a, b[f], c, d, e);
|
|
271
|
-
else
|
|
272
|
-
(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)); }
|
|
273
|
-
function ib(a) { if ("number" !== typeof a && a && !a.ba) {
|
|
274
|
-
var b = a.src;
|
|
275
|
-
if (b && b[A])
|
|
276
|
-
Wa(b.i, a);
|
|
277
|
-
else {
|
|
278
|
-
var c = a.type, d = a.proxy;
|
|
279
|
-
b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent ? b.detachEvent(fb(c), d) : b.addListener && b.removeListener && b.removeListener(d);
|
|
280
|
-
(c = db(b)) ? (Wa(c, a), 0 == c.h && (c.src = null, b[Xa] = null)) : Pa(a);
|
|
281
|
-
}
|
|
282
|
-
} }
|
|
283
|
-
function fb(a) { return a in Ya ? Ya[a] : Ya[a] = "on" + a; }
|
|
284
|
-
function gb(a, b) { if (a.ba)
|
|
285
|
-
a = !0;
|
|
286
|
-
else {
|
|
287
|
-
b = new z(b, this);
|
|
288
|
-
var c = a.listener, d = a.ha || a.src;
|
|
289
|
-
a.ea && ib(a);
|
|
290
|
-
a = c.call(d, b);
|
|
291
|
-
} return a; }
|
|
292
|
-
function db(a) { a = a[Xa]; return a instanceof Ua ? a : null; }
|
|
293
|
-
var jb = "__closure_events_fn_" + (1E9 * Math.random() >>> 0);
|
|
294
|
-
function bb(a) { if ("function" === typeof a)
|
|
295
|
-
return a; a[jb] || (a[jb] = function (b) { return a.handleEvent(b); }); return a[jb]; }
|
|
296
|
-
function B() { v.call(this); this.i = new Ua(this); this.P = this; this.I = null; }
|
|
297
|
-
t(B, v);
|
|
298
|
-
B.prototype[A] = !0;
|
|
299
|
-
B.prototype.removeEventListener = function (a, b, c, d) { hb(this, a, b, c, d); };
|
|
300
|
-
function C(a, b) { var c, d = a.I; if (d)
|
|
301
|
-
for (c = []; d; d = d.I)
|
|
302
|
-
c.push(d); a = a.P; d = b.type || b; if ("string" === typeof b)
|
|
303
|
-
b = new w(b, a);
|
|
304
|
-
else if (b instanceof w)
|
|
305
|
-
b.target = b.target || a;
|
|
306
|
-
else {
|
|
307
|
-
var e = b;
|
|
308
|
-
b = new w(d, a);
|
|
309
|
-
Ta(b, e);
|
|
310
|
-
} e = !0; if (c)
|
|
311
|
-
for (var f = c.length - 1; 0 <= f; f--) {
|
|
312
|
-
var h = b.g = c[f];
|
|
313
|
-
e = kb(h, d, !0, b) && e;
|
|
314
|
-
} h = b.g = a; e = kb(h, d, !0, b) && e; e = kb(h, d, !1, b) && e; if (c)
|
|
315
|
-
for (f = 0; f < c.length; f++)
|
|
316
|
-
h = b.g = c[f], e = kb(h, d, !1, b) && e; }
|
|
317
|
-
B.prototype.M = function () { B.X.M.call(this); if (this.i) {
|
|
318
|
-
var a = this.i, c;
|
|
319
|
-
for (c in a.g) {
|
|
320
|
-
for (var d = a.g[c], e = 0; e < d.length; e++)
|
|
321
|
-
Pa(d[e]);
|
|
322
|
-
delete a.g[c];
|
|
323
|
-
a.h--;
|
|
324
|
-
}
|
|
325
|
-
} this.I = null; };
|
|
326
|
-
B.prototype.N = function (a, b, c, d) { return this.i.add(String(a), b, !1, c, d); };
|
|
327
|
-
B.prototype.O = function (a, b, c, d) { return this.i.add(String(a), b, !0, c, d); };
|
|
328
|
-
function kb(a, b, c, d) { b = a.i.g[String(b)]; if (!b)
|
|
329
|
-
return !0; b = b.concat(); for (var e = !0, f = 0; f < b.length; ++f) {
|
|
330
|
-
var h = b[f];
|
|
331
|
-
if (h && !h.ba && h.capture == c) {
|
|
332
|
-
var n = h.listener, u = h.ha || h.src;
|
|
333
|
-
h.ea && Wa(a.i, h);
|
|
334
|
-
e = !1 !== n.call(u, d) && e;
|
|
335
|
-
}
|
|
336
|
-
} return e && !d.defaultPrevented; }
|
|
337
|
-
var lb = l.JSON.stringify;
|
|
338
|
-
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; }
|
|
339
|
-
var ob = /** @class */ (function () {
|
|
340
|
-
function ob() {
|
|
341
|
-
this.h = this.g = null;
|
|
342
|
-
}
|
|
343
|
-
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; };
|
|
344
|
-
return ob;
|
|
345
|
-
}());
|
|
346
|
-
var pb = new /** @class */ (function () {
|
|
347
|
-
function class_1(a, b) {
|
|
348
|
-
this.i = a;
|
|
349
|
-
this.j = b;
|
|
350
|
-
this.h = 0;
|
|
351
|
-
this.g = null;
|
|
352
|
-
}
|
|
353
|
-
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; };
|
|
354
|
-
return class_1;
|
|
355
|
-
}())(function () { return new qb; }, function (a) { return a.reset(); });
|
|
356
|
-
var qb = /** @class */ (function () {
|
|
357
|
-
function qb() {
|
|
358
|
-
this.next = this.g = this.h = null;
|
|
359
|
-
}
|
|
360
|
-
qb.prototype.set = function (a, b) { this.h = a; this.g = b; this.next = null; };
|
|
361
|
-
qb.prototype.reset = function () { this.next = this.g = this.h = null; };
|
|
362
|
-
return qb;
|
|
363
|
-
}());
|
|
364
|
-
function rb(a) { l.setTimeout(function () { throw a; }, 0); }
|
|
365
|
-
function sb(a, b) { ub || vb(); wb || (ub(), wb = !0); nb.add(a, b); }
|
|
366
|
-
var ub;
|
|
367
|
-
function vb() { var a = l.Promise.resolve(void 0); ub = function () { a.then(xb); }; }
|
|
368
|
-
var wb = !1, nb = new ob;
|
|
369
|
-
function xb() { for (var a; a = mb();) {
|
|
370
|
-
try {
|
|
371
|
-
a.h.call(a.g);
|
|
372
|
-
}
|
|
373
|
-
catch (c) {
|
|
374
|
-
rb(c);
|
|
375
|
-
}
|
|
376
|
-
var b = pb;
|
|
377
|
-
b.j(a);
|
|
378
|
-
100 > b.h && (b.h++, a.next = b.g, b.g = a);
|
|
379
|
-
} wb = !1; }
|
|
380
|
-
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(); }
|
|
381
|
-
t(yb, B);
|
|
382
|
-
k = yb.prototype;
|
|
383
|
-
k.ca = !1;
|
|
384
|
-
k.R = null;
|
|
385
|
-
k.lb = function () { if (this.ca) {
|
|
386
|
-
var a = Date.now() - this.l;
|
|
387
|
-
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()));
|
|
388
|
-
} };
|
|
389
|
-
k.start = function () { this.ca = !0; this.R || (this.R = this.g.setTimeout(this.j, this.h), this.l = Date.now()); };
|
|
390
|
-
function zb(a) { a.ca = !1; a.R && (a.g.clearTimeout(a.R), a.R = null); }
|
|
391
|
-
k.M = function () { yb.X.M.call(this); zb(this); delete this.g; };
|
|
392
|
-
function Ab(a, b, c) { if ("function" === typeof a)
|
|
393
|
-
c && (a = q(a, c));
|
|
394
|
-
else if (a && "function" == typeof a.handleEvent)
|
|
395
|
-
a = q(a.handleEvent, a);
|
|
396
|
-
else
|
|
397
|
-
throw Error("Invalid listener argument"); return 2147483647 < Number(b) ? -1 : l.setTimeout(a, b || 0); }
|
|
398
|
-
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); }
|
|
399
|
-
var Cb = /** @class */ (function (_super) {
|
|
400
|
-
__extends(Cb, _super);
|
|
401
|
-
function Cb(a, b) {
|
|
402
|
-
var _this = _super.call(this) || this;
|
|
403
|
-
_this.m = a;
|
|
404
|
-
_this.j = b;
|
|
405
|
-
_this.h = null;
|
|
406
|
-
_this.i = !1;
|
|
407
|
-
_this.g = null;
|
|
408
|
-
return _this;
|
|
409
|
-
}
|
|
410
|
-
Cb.prototype.l = function (a) { this.h = arguments; this.g ? this.i = !0 : Bb(this); };
|
|
411
|
-
Cb.prototype.M = function () { _super.prototype.M.call(this); this.g && (l.clearTimeout(this.g), this.g = null, this.i = !1, this.h = null); };
|
|
412
|
-
return Cb;
|
|
413
|
-
}(v));
|
|
414
|
-
function D(a) { v.call(this); this.h = a; this.g = {}; }
|
|
415
|
-
t(D, v);
|
|
416
|
-
var Db = [];
|
|
417
|
-
function Eb(a, b, c, d) { Array.isArray(c) || (c && (Db[0] = c.toString()), c = Db); for (var e = 0; e < c.length; e++) {
|
|
418
|
-
var f = $a(b, c[e], d || a.handleEvent, !1, a.h || a);
|
|
419
|
-
if (!f)
|
|
420
|
-
break;
|
|
421
|
-
a.g[f.key] = f;
|
|
422
|
-
} }
|
|
423
|
-
function Fb(a) { Qa(a.g, function (b, c) { this.g.hasOwnProperty(c) && ib(b); }, a); a.g = {}; }
|
|
424
|
-
D.prototype.M = function () { D.X.M.call(this); Fb(this); };
|
|
425
|
-
D.prototype.handleEvent = function () { throw Error("EventHandler.handleEvent not implemented"); };
|
|
426
|
-
function Gb() { this.g = !0; }
|
|
427
|
-
Gb.prototype.Aa = function () { this.g = !1; };
|
|
428
|
-
function Hb(a, b, c, d, e, f) { a.info(function () { if (a.g)
|
|
429
|
-
if (f) {
|
|
430
|
-
var h = "";
|
|
431
|
-
for (var n = f.split("&"), u = 0; u < n.length; u++) {
|
|
432
|
-
var m = n[u].split("=");
|
|
433
|
-
if (1 < m.length) {
|
|
434
|
-
var r = m[0];
|
|
435
|
-
m = m[1];
|
|
436
|
-
var F = r.split("_");
|
|
437
|
-
h = 2 <= F.length && "type" == F[1] ? h + (r + "=" + m + "&") : h + (r + "=redacted&");
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
else
|
|
442
|
-
h = null;
|
|
443
|
-
else
|
|
444
|
-
h = f; return "XMLHTTP REQ (" + d + ") [attempt " + e + "]: " + b + "\n" + c + "\n" + h; }); }
|
|
445
|
-
function Ib(a, b, c, d, e, f, h) { a.info(function () { return "XMLHTTP RESP (" + d + ") [ attempt " + e + "]: " + b + "\n" + c + "\n" + f + " " + h; }); }
|
|
446
|
-
function E(a, b, c, d) { a.info(function () { return "XMLHTTP TEXT (" + b + "): " + Jb(a, c) + (d ? " " + d : ""); }); }
|
|
447
|
-
function Kb(a, b) { a.info(function () { return "TIMEOUT: " + b; }); }
|
|
448
|
-
Gb.prototype.info = function () { };
|
|
449
|
-
function Jb(a, b) { if (!a.g)
|
|
450
|
-
return b; if (!b)
|
|
451
|
-
return null; try {
|
|
452
|
-
var c = JSON.parse(b);
|
|
453
|
-
if (c)
|
|
454
|
-
for (a = 0; a < c.length; a++)
|
|
455
|
-
if (Array.isArray(c[a])) {
|
|
456
|
-
var d = c[a];
|
|
457
|
-
if (!(2 > d.length)) {
|
|
458
|
-
var e = d[1];
|
|
459
|
-
if (Array.isArray(e) && !(1 > e.length)) {
|
|
460
|
-
var f = e[0];
|
|
461
|
-
if ("noop" != f && "stop" != f && "close" != f)
|
|
462
|
-
for (var h = 1; h < e.length; h++)
|
|
463
|
-
e[h] = "";
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
return lb(c);
|
|
468
|
-
}
|
|
469
|
-
catch (n) {
|
|
470
|
-
return b;
|
|
471
|
-
} }
|
|
472
|
-
var G = {}, Lb = null;
|
|
473
|
-
function Mb() { return Lb = Lb || new B; }
|
|
474
|
-
G.Pa = "serverreachability";
|
|
475
|
-
function Nb(a) { w.call(this, G.Pa, a); }
|
|
476
|
-
t(Nb, w);
|
|
477
|
-
function H(a) { var b = Mb(); C(b, new Nb(b)); }
|
|
478
|
-
G.STAT_EVENT = "statevent";
|
|
479
|
-
function Ob(a, b) { w.call(this, G.STAT_EVENT, a); this.stat = b; }
|
|
480
|
-
t(Ob, w);
|
|
481
|
-
function I(a) { var b = Mb(); C(b, new Ob(b, a)); }
|
|
482
|
-
G.Qa = "timingevent";
|
|
483
|
-
function Pb(a, b) { w.call(this, G.Qa, a); this.size = b; }
|
|
484
|
-
t(Pb, w);
|
|
485
|
-
function J(a, b) { if ("function" !== typeof a)
|
|
486
|
-
throw Error("Fn must not be null and must be a function"); return l.setTimeout(function () { a(); }, b); }
|
|
487
|
-
var Qb = { NO_ERROR: 0, mb: 1, zb: 2, yb: 3, tb: 4, xb: 5, Ab: 6, Ma: 7, TIMEOUT: 8, Db: 9 };
|
|
488
|
-
var Rb = { rb: "complete", Nb: "success", Na: "error", Ma: "abort", Fb: "ready", Gb: "readystatechange", TIMEOUT: "timeout", Bb: "incrementaldata", Eb: "progress", ub: "downloadprogress", Vb: "uploadprogress" };
|
|
489
|
-
function Sb() { }
|
|
490
|
-
Sb.prototype.h = null;
|
|
491
|
-
function Tb(a) { return a.h || (a.h = a.i()); }
|
|
492
|
-
function Ub() { }
|
|
493
|
-
var K = { OPEN: "a", qb: "b", Na: "c", Cb: "d" };
|
|
494
|
-
function Vb() { w.call(this, "d"); }
|
|
495
|
-
t(Vb, w);
|
|
496
|
-
function Wb() { w.call(this, "c"); }
|
|
497
|
-
t(Wb, w);
|
|
498
|
-
var Xb;
|
|
499
|
-
function Yb() { }
|
|
500
|
-
t(Yb, Sb);
|
|
501
|
-
Yb.prototype.g = function () { return new XMLHttpRequest; };
|
|
502
|
-
Yb.prototype.i = function () { return {}; };
|
|
503
|
-
Xb = new Yb;
|
|
504
|
-
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; }
|
|
505
|
-
function $b() { this.i = null; this.g = ""; this.h = !1; }
|
|
506
|
-
var Zb = 45E3, ac = {}, bc = {};
|
|
507
|
-
k = L.prototype;
|
|
508
|
-
k.setTimeout = function (a) { this.O = a; };
|
|
509
|
-
function cc(a, b, c) { a.K = 1; a.v = dc(M(b)); a.s = c; a.P = !0; ec(a, null); }
|
|
510
|
-
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(); Hb(a.j, a.u, a.A, a.m, a.U, a.s); }
|
|
511
|
-
k.ib = function (a) { a = a.target; var b = this.L; b && 3 == O(a) ? b.l() : this.La(a); };
|
|
512
|
-
k.La = function (a) {
|
|
513
|
-
try {
|
|
514
|
-
if (a == this.g)
|
|
515
|
-
a: {
|
|
516
|
-
var r = O(this.g);
|
|
517
|
-
var b = this.g.Ea();
|
|
518
|
-
var F = this.g.aa();
|
|
519
|
-
if (!(3 > r) && (3 != r || ya || this.g && (this.h.h || this.g.fa() || hc(this.g)))) {
|
|
520
|
-
this.I || 4 != r || 7 == b || (8 == b || 0 >= F ? H(3) : H(2));
|
|
521
|
-
ic(this);
|
|
522
|
-
var c = this.g.aa();
|
|
523
|
-
this.Y = c;
|
|
524
|
-
b: if (jc(this)) {
|
|
525
|
-
var d = hc(this.g);
|
|
526
|
-
a = "";
|
|
527
|
-
var e = d.length, f = 4 == O(this.g);
|
|
528
|
-
if (!this.h.i) {
|
|
529
|
-
if ("undefined" === typeof TextDecoder) {
|
|
530
|
-
P(this);
|
|
531
|
-
Q(this);
|
|
532
|
-
var h = "";
|
|
533
|
-
break b;
|
|
534
|
-
}
|
|
535
|
-
this.h.i = new l.TextDecoder;
|
|
536
|
-
}
|
|
537
|
-
for (b = 0; b < e; b++)
|
|
538
|
-
this.h.h = !0, a += this.h.i.decode(d[b], { stream: f && b == e - 1 });
|
|
539
|
-
d.splice(0, e);
|
|
540
|
-
this.h.g += a;
|
|
541
|
-
this.C = 0;
|
|
542
|
-
h = this.h.g;
|
|
543
|
-
}
|
|
544
|
-
else
|
|
545
|
-
h = this.g.fa();
|
|
546
|
-
this.i = 200 == c;
|
|
547
|
-
Ib(this.j, this.u, this.A, this.m, this.U, r, c);
|
|
548
|
-
if (this.i) {
|
|
549
|
-
if (this.Z && !this.J) {
|
|
550
|
-
b: {
|
|
551
|
-
if (this.g) {
|
|
552
|
-
var n, u = this.g;
|
|
553
|
-
if ((n = u.g ? u.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !pa(n)) {
|
|
554
|
-
var m = n;
|
|
555
|
-
break b;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
m = null;
|
|
559
|
-
}
|
|
560
|
-
if (c = m)
|
|
561
|
-
E(this.j, this.m, c, "Initial handshake response via X-HTTP-Initial-Response"), this.J = !0, kc(this, c);
|
|
562
|
-
else {
|
|
563
|
-
this.i = !1;
|
|
564
|
-
this.o = 3;
|
|
565
|
-
I(12);
|
|
566
|
-
P(this);
|
|
567
|
-
Q(this);
|
|
568
|
-
break a;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
this.P ? (lc(this, r, h), ya && this.i && 3 == r && (Eb(this.S, this.T, "tick", this.hb),
|
|
572
|
-
this.T.start())) : (E(this.j, this.m, h, null), kc(this, h));
|
|
573
|
-
4 == r && P(this);
|
|
574
|
-
this.i && !this.I && (4 == r ? mc(this.l, this) : (this.i = !1, N(this)));
|
|
575
|
-
}
|
|
576
|
-
else
|
|
577
|
-
400 == c && 0 < h.indexOf("Unknown SID") ? (this.o = 3, I(12)) : (this.o = 0, I(13)), P(this), Q(this);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
catch (r) { }
|
|
582
|
-
finally { }
|
|
583
|
-
};
|
|
584
|
-
function jc(a) { return a.g ? "GET" == a.u && 2 != a.K && a.l.Da : !1; }
|
|
585
|
-
function lc(a, b, c) {
|
|
586
|
-
var d = !0, e;
|
|
587
|
-
for (; !a.I && a.C < c.length;)
|
|
588
|
-
if (e = nc(a, c), e == bc) {
|
|
589
|
-
4 == b && (a.o = 4, I(14), d = !1);
|
|
590
|
-
E(a.j, a.m, null, "[Incomplete Response]");
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
else if (e == ac) {
|
|
594
|
-
a.o = 4;
|
|
595
|
-
I(15);
|
|
596
|
-
E(a.j, a.m, c, "[Invalid Chunk]");
|
|
597
|
-
d = !1;
|
|
598
|
-
break;
|
|
599
|
-
}
|
|
600
|
-
else
|
|
601
|
-
E(a.j, a.m, e, null), kc(a, e);
|
|
602
|
-
jc(a) && e != bc && e != ac && (a.h.g = "", a.C = 0);
|
|
603
|
-
4 != b || 0 != c.length || a.h.h || (a.o = 1, I(16), d = !1);
|
|
604
|
-
a.i = a.i && d;
|
|
605
|
-
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));
|
|
606
|
-
}
|
|
607
|
-
k.hb = function () { if (this.g) {
|
|
608
|
-
var a = O(this.g), b = this.g.fa();
|
|
609
|
-
this.C < b.length && (ic(this), lc(this, a, b), this.i && 4 != a && N(this));
|
|
610
|
-
} };
|
|
611
|
-
function nc(a, b) { var c = a.C, d = b.indexOf("\n", c); if (-1 == d)
|
|
612
|
-
return bc; c = Number(b.substring(c, d)); if (isNaN(c))
|
|
613
|
-
return ac; d += 1; if (d + c > b.length)
|
|
614
|
-
return bc; b = b.substr(d, c); a.C = d + c; return b; }
|
|
615
|
-
k.cancel = function () { this.I = !0; P(this); };
|
|
616
|
-
function N(a) { a.V = Date.now() + a.O; pc(a, a.O); }
|
|
617
|
-
function pc(a, b) { if (null != a.B)
|
|
618
|
-
throw Error("WatchDog timer not null"); a.B = J(q(a.gb, a), b); }
|
|
619
|
-
function ic(a) { a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
620
|
-
k.gb = function () { this.B = null; var a = Date.now(); 0 <= a - this.V ? (Kb(this.j, this.A), 2 != this.K && (H(), I(17)), P(this), this.o = 2, Q(this)) : pc(this, this.V - a); };
|
|
621
|
-
function Q(a) { 0 == a.l.G || a.I || mc(a.l, a); }
|
|
622
|
-
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()); }
|
|
623
|
-
function kc(a, b) {
|
|
624
|
-
try {
|
|
625
|
-
var c = a.l;
|
|
626
|
-
if (0 != c.G && (c.g == a || qc(c.h, a)))
|
|
627
|
-
if (!a.J && qc(c.h, a) && 3 == c.G) {
|
|
628
|
-
try {
|
|
629
|
-
var d = c.Fa.g.parse(b);
|
|
630
|
-
}
|
|
631
|
-
catch (m) {
|
|
632
|
-
d = null;
|
|
633
|
-
}
|
|
634
|
-
if (Array.isArray(d) && 3 == d.length) {
|
|
635
|
-
var e = d;
|
|
636
|
-
if (0 == e[0])
|
|
637
|
-
a: {
|
|
638
|
-
if (!c.u) {
|
|
639
|
-
if (c.g)
|
|
640
|
-
if (c.g.F + 3E3 < a.F)
|
|
641
|
-
rc(c), sc(c);
|
|
642
|
-
else
|
|
643
|
-
break a;
|
|
644
|
-
tc(c);
|
|
645
|
-
I(18);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
else
|
|
649
|
-
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));
|
|
650
|
-
if (1 >= uc(c.h) && c.ja) {
|
|
651
|
-
try {
|
|
652
|
-
c.ja();
|
|
653
|
-
}
|
|
654
|
-
catch (m) { }
|
|
655
|
-
c.ja = void 0;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
else
|
|
659
|
-
R(c, 11);
|
|
660
|
-
}
|
|
661
|
-
else if ((a.J || c.g == a) && rc(c), !pa(b))
|
|
662
|
-
for (e = c.Fa.g.parse(b), b = 0; b < e.length; b++) {
|
|
663
|
-
var m = e[b];
|
|
664
|
-
c.T =
|
|
665
|
-
m[0];
|
|
666
|
-
m = m[1];
|
|
667
|
-
if (2 == c.G)
|
|
668
|
-
if ("c" == m[0]) {
|
|
669
|
-
c.I = m[1];
|
|
670
|
-
c.ka = m[2];
|
|
671
|
-
var r = m[3];
|
|
672
|
-
null != r && (c.ma = r, c.j.info("VER=" + c.ma));
|
|
673
|
-
var F = m[4];
|
|
674
|
-
null != F && (c.Ca = F, c.j.info("SVER=" + c.Ca));
|
|
675
|
-
var Ca = m[5];
|
|
676
|
-
null != Ca && "number" === typeof Ca && 0 < Ca && (d = 1.5 * Ca, c.J = d, c.j.info("backChannelRequestTimeoutMs_=" + d));
|
|
677
|
-
d = c;
|
|
678
|
-
var Z = a.g;
|
|
679
|
-
if (Z) {
|
|
680
|
-
var Da = Z.g ? Z.g.getResponseHeader("X-Client-Wire-Protocol") : null;
|
|
681
|
-
if (Da) {
|
|
682
|
-
var f = d.h;
|
|
683
|
-
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));
|
|
684
|
-
}
|
|
685
|
-
if (d.D) {
|
|
686
|
-
var tb = Z.g ? Z.g.getResponseHeader("X-HTTP-Session-Id") : null;
|
|
687
|
-
tb && (d.za = tb, S(d.F, d.D, tb));
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
c.G = 3;
|
|
691
|
-
c.l && c.l.xa();
|
|
692
|
-
c.$ && (c.P = Date.now() - a.F, c.j.info("Handshake RTT: " + c.P + "ms"));
|
|
693
|
-
d = c;
|
|
694
|
-
var h = a;
|
|
695
|
-
d.sa = wc(d, d.H ? d.ka : null, d.V);
|
|
696
|
-
if (h.J) {
|
|
697
|
-
xc(d.h, h);
|
|
698
|
-
var n = h, u = d.J;
|
|
699
|
-
u && n.setTimeout(u);
|
|
700
|
-
n.B && (ic(n), N(n));
|
|
701
|
-
d.g = h;
|
|
702
|
-
}
|
|
703
|
-
else
|
|
704
|
-
yc(d);
|
|
705
|
-
0 < c.i.length && zc(c);
|
|
706
|
-
}
|
|
707
|
-
else
|
|
708
|
-
"stop" != m[0] && "close" != m[0] || R(c, 7);
|
|
709
|
-
else
|
|
710
|
-
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);
|
|
711
|
-
}
|
|
712
|
-
H(4);
|
|
713
|
-
}
|
|
714
|
-
catch (m) { }
|
|
715
|
-
}
|
|
716
|
-
function Bc(a) { if (a.W && "function" == typeof a.W)
|
|
717
|
-
return a.W(); if ("undefined" !== typeof Map && a instanceof Map || "undefined" !== typeof Set && a instanceof Set)
|
|
718
|
-
return Array.from(a.values()); if ("string" === typeof a)
|
|
719
|
-
return a.split(""); if (ba(a)) {
|
|
720
|
-
for (var b = [], c = a.length, d = 0; d < c; d++)
|
|
721
|
-
b.push(a[d]);
|
|
722
|
-
return b;
|
|
723
|
-
} b = []; c = 0; for (d in a)
|
|
724
|
-
b[c++] = a[d]; return b; }
|
|
725
|
-
function Cc(a) { if (a.oa && "function" == typeof a.oa)
|
|
726
|
-
return a.oa(); if (!a.W || "function" != typeof a.W) {
|
|
727
|
-
if ("undefined" !== typeof Map && a instanceof Map)
|
|
728
|
-
return Array.from(a.keys());
|
|
729
|
-
if (!("undefined" !== typeof Set && a instanceof Set)) {
|
|
730
|
-
if (ba(a) || "string" === typeof a) {
|
|
731
|
-
var b = [];
|
|
732
|
-
a = a.length;
|
|
733
|
-
for (var c = 0; c < a; c++)
|
|
734
|
-
b.push(c);
|
|
735
|
-
return b;
|
|
736
|
-
}
|
|
737
|
-
b = [];
|
|
738
|
-
c = 0;
|
|
739
|
-
for (var d in a)
|
|
740
|
-
b[c++] = d;
|
|
741
|
-
return b;
|
|
742
|
-
}
|
|
743
|
-
} }
|
|
744
|
-
function Dc(a, b) { if (a.forEach && "function" == typeof a.forEach)
|
|
745
|
-
a.forEach(b, void 0);
|
|
746
|
-
else if (ba(a) || "string" === typeof a)
|
|
747
|
-
Array.prototype.forEach.call(a, b, void 0);
|
|
748
|
-
else
|
|
749
|
-
for (var c = Cc(a), d = Bc(a), e = d.length, f = 0; f < e; f++)
|
|
750
|
-
b.call(void 0, d[f], c && c[f], a); }
|
|
751
|
-
var Ec = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");
|
|
752
|
-
function Fc(a, b) { if (a) {
|
|
753
|
-
a = a.split("&");
|
|
754
|
-
for (var c = 0; c < a.length; c++) {
|
|
755
|
-
var d = a[c].indexOf("="), e = null;
|
|
756
|
-
if (0 <= d) {
|
|
757
|
-
var f = a[c].substring(0, d);
|
|
758
|
-
e = a[c].substring(d + 1);
|
|
759
|
-
}
|
|
760
|
-
else
|
|
761
|
-
f = a[c];
|
|
762
|
-
b(f, e ? decodeURIComponent(e.replace(/\+/g, " ")) : "");
|
|
763
|
-
}
|
|
764
|
-
} }
|
|
765
|
-
function T(a, b) { this.g = this.s = this.j = ""; this.m = null; this.o = this.l = ""; this.h = !1; if (a instanceof T) {
|
|
766
|
-
this.h = void 0 !== b ? b : a.h;
|
|
767
|
-
Gc(this, a.j);
|
|
768
|
-
this.s = a.s;
|
|
769
|
-
this.g = a.g;
|
|
770
|
-
Hc(this, a.m);
|
|
771
|
-
this.l = a.l;
|
|
772
|
-
b = a.i;
|
|
773
|
-
var c = new Ic;
|
|
774
|
-
c.i = b.i;
|
|
775
|
-
b.g && (c.g = new Map(b.g), c.h = b.h);
|
|
776
|
-
Jc(this, c);
|
|
777
|
-
this.o = a.o;
|
|
778
|
-
}
|
|
779
|
-
else
|
|
780
|
-
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)); }
|
|
781
|
-
T.prototype.toString = function () { var a = [], b = this.j; b && a.push(Lc(b, Mc, !0), ":"); var c = this.g; if (c || "file" == b)
|
|
782
|
-
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)
|
|
783
|
-
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(""); };
|
|
784
|
-
function M(a) { return new T(a); }
|
|
785
|
-
function Gc(a, b, c) { a.j = c ? Kc(b, !0) : b; a.j && (a.j = a.j.replace(/:$/, "")); }
|
|
786
|
-
function Hc(a, b) { if (b) {
|
|
787
|
-
b = Number(b);
|
|
788
|
-
if (isNaN(b) || 0 > b)
|
|
789
|
-
throw Error("Bad port number " + b);
|
|
790
|
-
a.m = b;
|
|
791
|
-
}
|
|
792
|
-
else
|
|
793
|
-
a.m = null; }
|
|
794
|
-
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)); }
|
|
795
|
-
function S(a, b, c) { a.i.set(b, c); }
|
|
796
|
-
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; }
|
|
797
|
-
function Kc(a, b) { return a ? b ? decodeURI(a.replace(/%25/g, "%2525")) : decodeURIComponent(a) : ""; }
|
|
798
|
-
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; }
|
|
799
|
-
function Sc(a) { a = a.charCodeAt(0); return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16); }
|
|
800
|
-
var Mc = /[#\/\?@]/g, Oc = /[#\?:]/g, Nc = /[#\?]/g, Rc = /[#\?@]/g, Pc = /#/g;
|
|
801
|
-
function Ic(a, b) { this.h = this.g = null; this.i = a || null; this.j = !!b; }
|
|
802
|
-
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); })); }
|
|
803
|
-
k = Ic.prototype;
|
|
804
|
-
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; };
|
|
805
|
-
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)); }
|
|
806
|
-
function Uc(a, b) { U(a); b = V(a, b); return a.g.has(b); }
|
|
807
|
-
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); };
|
|
808
|
-
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++) {
|
|
809
|
-
var e = a[d];
|
|
810
|
-
for (var f = 0; f < e.length; f++)
|
|
811
|
-
c.push(b[d]);
|
|
812
|
-
} return c; };
|
|
813
|
-
k.W = function (a) { U(this); var b = []; if ("string" === typeof a)
|
|
814
|
-
Uc(this, a) && (b = b.concat(this.g.get(V(this, a))));
|
|
815
|
-
else {
|
|
816
|
-
a = Array.from(this.g.values());
|
|
817
|
-
for (var c = 0; c < a.length; c++)
|
|
818
|
-
b = b.concat(a[c]);
|
|
819
|
-
} return b; };
|
|
820
|
-
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; };
|
|
821
|
-
k.get = function (a, b) { if (!a)
|
|
822
|
-
return b; a = this.W(a); return 0 < a.length ? String(a[0]) : b; };
|
|
823
|
-
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); }
|
|
824
|
-
k.toString = function () { if (this.i)
|
|
825
|
-
return this.i; if (!this.g)
|
|
826
|
-
return ""; var a = [], b = Array.from(this.g.keys()); for (var c = 0; c < b.length; c++) {
|
|
827
|
-
var d = b[c];
|
|
828
|
-
var f = encodeURIComponent(String(d)), h = this.W(d);
|
|
829
|
-
for (d = 0; d < h.length; d++) {
|
|
830
|
-
var e = f;
|
|
831
|
-
"" !== h[d] && (e += "=" + encodeURIComponent(String(h[d])));
|
|
832
|
-
a.push(e);
|
|
833
|
-
}
|
|
834
|
-
} return this.i = a.join("&"); };
|
|
835
|
-
function V(a, b) { b = String(b); a.j && (b = b.toLowerCase()); return b; }
|
|
836
|
-
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; }
|
|
837
|
-
var Vc = /** @class */ (function () {
|
|
838
|
-
function Vc(a, b) {
|
|
839
|
-
this.h = a;
|
|
840
|
-
this.g = b;
|
|
841
|
-
}
|
|
842
|
-
return Vc;
|
|
843
|
-
}());
|
|
844
|
-
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 = []; }
|
|
845
|
-
var Xc = 10;
|
|
846
|
-
function Yc(a) { return a.h ? !0 : a.g ? a.g.size >= a.j : !1; }
|
|
847
|
-
function uc(a) { return a.h ? 1 : a.g ? a.g.size : 0; }
|
|
848
|
-
function qc(a, b) { return a.h ? a.h == b : a.g ? a.g.has(b) : !1; }
|
|
849
|
-
function vc(a, b) { a.g ? a.g.add(b) : a.h = b; }
|
|
850
|
-
function xc(a, b) { a.h && a.h == b ? a.h = null : a.g && a.g.has(b) && a.g.delete(b); }
|
|
851
|
-
Wc.prototype.cancel = function () {
|
|
852
|
-
var e_1, _a;
|
|
853
|
-
this.i = Zc(this);
|
|
854
|
-
if (this.h)
|
|
855
|
-
this.h.cancel(), this.h = null;
|
|
856
|
-
else if (this.g && 0 !== this.g.size) {
|
|
857
|
-
try {
|
|
858
|
-
for (var _b = __values(this.g.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
859
|
-
var a = _c.value;
|
|
860
|
-
a.cancel();
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
864
|
-
finally {
|
|
865
|
-
try {
|
|
866
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
867
|
-
}
|
|
868
|
-
finally { if (e_1) throw e_1.error; }
|
|
869
|
-
}
|
|
870
|
-
this.g.clear();
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
function Zc(a) {
|
|
874
|
-
var e_2, _a;
|
|
875
|
-
if (null != a.h)
|
|
876
|
-
return a.i.concat(a.h.D);
|
|
877
|
-
if (null != a.g && 0 !== a.g.size) {
|
|
878
|
-
var b = a.i;
|
|
879
|
-
try {
|
|
880
|
-
for (var _b = __values(a.g.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
881
|
-
var c = _c.value;
|
|
882
|
-
b = b.concat(c.D);
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
886
|
-
finally {
|
|
887
|
-
try {
|
|
888
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
889
|
-
}
|
|
890
|
-
finally { if (e_2) throw e_2.error; }
|
|
891
|
-
}
|
|
892
|
-
return b;
|
|
893
|
-
}
|
|
894
|
-
return ma(a.i);
|
|
895
|
-
}
|
|
896
|
-
function $c() { }
|
|
897
|
-
$c.prototype.stringify = function (a) { return l.JSON.stringify(a, void 0); };
|
|
898
|
-
$c.prototype.parse = function (a) { return l.JSON.parse(a, void 0); };
|
|
899
|
-
function ad() { this.g = new $c; }
|
|
900
|
-
function bd(a, b, c) { var d = c || ""; try {
|
|
901
|
-
Dc(a, function (e, f) { var h = e; p(e) && (h = lb(e)); b.push(d + f + "=" + encodeURIComponent(h)); });
|
|
902
|
-
}
|
|
903
|
-
catch (e) {
|
|
904
|
-
throw b.push(d + "type=" + encodeURIComponent("_badmap")), e;
|
|
905
|
-
} }
|
|
906
|
-
function cd(a, b) { var c = new Gb; if (l.Image) {
|
|
907
|
-
var d_1 = new Image;
|
|
908
|
-
d_1.onload = ia(dd, c, d_1, "TestLoadImage: loaded", !0, b);
|
|
909
|
-
d_1.onerror = ia(dd, c, d_1, "TestLoadImage: error", !1, b);
|
|
910
|
-
d_1.onabort = ia(dd, c, d_1, "TestLoadImage: abort", !1, b);
|
|
911
|
-
d_1.ontimeout = ia(dd, c, d_1, "TestLoadImage: timeout", !1, b);
|
|
912
|
-
l.setTimeout(function () { if (d_1.ontimeout)
|
|
913
|
-
d_1.ontimeout(); }, 1E4);
|
|
914
|
-
d_1.src = a;
|
|
915
|
-
}
|
|
916
|
-
else
|
|
917
|
-
b(!1); }
|
|
918
|
-
function dd(a, b, c, d, e) { try {
|
|
919
|
-
b.onload = null, b.onerror = null, b.onabort = null, b.ontimeout = null, e(d);
|
|
920
|
-
}
|
|
921
|
-
catch (f) { } }
|
|
922
|
-
function ed(a) { this.l = a.ac || null; this.j = a.jb || !1; }
|
|
923
|
-
t(ed, Sb);
|
|
924
|
-
ed.prototype.g = function () { return new fd(this.l, this.j); };
|
|
925
|
-
ed.prototype.i = function (a) { return function () { return a; }; }({});
|
|
926
|
-
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; }
|
|
927
|
-
t(fd, B);
|
|
928
|
-
var gd = 0;
|
|
929
|
-
k = fd.prototype;
|
|
930
|
-
k.open = function (a, b) { if (this.readyState != gd)
|
|
931
|
-
throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1; hd(this); };
|
|
932
|
-
k.send = function (a) { if (1 != this.readyState)
|
|
933
|
-
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)); };
|
|
934
|
-
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; };
|
|
935
|
-
k.Wa = function (a) {
|
|
936
|
-
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)))
|
|
937
|
-
if ("arraybuffer" === this.responseType)
|
|
938
|
-
a.arrayBuffer().then(this.Ua.bind(this), this.ga.bind(this));
|
|
939
|
-
else if ("undefined" !== typeof l.ReadableStream && "body" in a) {
|
|
940
|
-
this.j = a.body.getReader();
|
|
941
|
-
if (this.u) {
|
|
942
|
-
if (this.responseType)
|
|
943
|
-
throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
|
|
944
|
-
this.response =
|
|
945
|
-
[];
|
|
946
|
-
}
|
|
947
|
-
else
|
|
948
|
-
this.response = this.responseText = "", this.A = new TextDecoder;
|
|
949
|
-
jd(this);
|
|
950
|
-
}
|
|
951
|
-
else
|
|
952
|
-
a.text().then(this.Va.bind(this), this.ga.bind(this));
|
|
953
|
-
};
|
|
954
|
-
function jd(a) { a.j.read().then(a.Ta.bind(a)).catch(a.ga.bind(a)); }
|
|
955
|
-
k.Ta = function (a) { if (this.g) {
|
|
956
|
-
if (this.u && a.value)
|
|
957
|
-
this.response.push(a.value);
|
|
958
|
-
else if (!this.u) {
|
|
959
|
-
var b = a.value ? a.value : new Uint8Array(0);
|
|
960
|
-
if (b = this.A.decode(b, { stream: !a.done }))
|
|
961
|
-
this.response = this.responseText += b;
|
|
962
|
-
}
|
|
963
|
-
a.done ? id(this) : hd(this);
|
|
964
|
-
3 == this.readyState && jd(this);
|
|
965
|
-
} };
|
|
966
|
-
k.Va = function (a) { this.g && (this.response = this.responseText = a, id(this)); };
|
|
967
|
-
k.Ua = function (a) { this.g && (this.response = a, id(this)); };
|
|
968
|
-
k.ga = function () { this.g && id(this); };
|
|
969
|
-
function id(a) { a.readyState = 4; a.l = null; a.j = null; a.A = null; hd(a); }
|
|
970
|
-
k.setRequestHeader = function (a, b) { this.v.append(a, b); };
|
|
971
|
-
k.getResponseHeader = function (a) { return this.h ? this.h.get(a.toLowerCase()) || "" : ""; };
|
|
972
|
-
k.getAllResponseHeaders = function () { if (!this.h)
|
|
973
|
-
return ""; var a = [], b = this.h.entries(); for (var c = b.next(); !c.done;)
|
|
974
|
-
c = c.value, a.push(c[0] + ": " + c[1]), c = b.next(); return a.join("\r\n"); };
|
|
975
|
-
function hd(a) { a.onreadystatechange && a.onreadystatechange.call(a); }
|
|
976
|
-
Object.defineProperty(fd.prototype, "withCredentials", { get: function () { return "include" === this.m; }, set: function (a) { this.m = a ? "include" : "same-origin"; } });
|
|
977
|
-
var kd = l.JSON.parse;
|
|
978
|
-
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; }
|
|
979
|
-
t(W, B);
|
|
980
|
-
var ld = "", md = /^https?$/i, nd = ["POST", "PUT"];
|
|
981
|
-
k = W.prototype;
|
|
982
|
-
k.Ka = function (a) { this.L = a; };
|
|
983
|
-
k.da = function (a, b, c, d) {
|
|
984
|
-
var e_3, _a, e_4, _b;
|
|
985
|
-
if (this.g)
|
|
986
|
-
throw Error("[goog.net.XhrIo] Object is active with another request=" + this.H + "; newUri=" + a);
|
|
987
|
-
b = b ? b.toUpperCase() : "GET";
|
|
988
|
-
this.H = a;
|
|
989
|
-
this.j = "";
|
|
990
|
-
this.m = 0;
|
|
991
|
-
this.D = !1;
|
|
992
|
-
this.h = !0;
|
|
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);
|
|
996
|
-
try {
|
|
997
|
-
this.F = !0, this.g.open(b, String(a), !0), this.F = !1;
|
|
998
|
-
}
|
|
999
|
-
catch (f) {
|
|
1000
|
-
od(this, f);
|
|
1001
|
-
return;
|
|
1002
|
-
}
|
|
1003
|
-
a = c || "";
|
|
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
|
-
}
|
|
1042
|
-
this.J && (this.g.responseType = this.J);
|
|
1043
|
-
"withCredentials" in this.g && this.g.withCredentials !== this.L && (this.g.withCredentials =
|
|
1044
|
-
this.L);
|
|
1045
|
-
try {
|
|
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;
|
|
1047
|
-
}
|
|
1048
|
-
catch (f) {
|
|
1049
|
-
od(this, f);
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
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.fb()); };
|
|
1059
|
-
k.fb = function () { td(this); };
|
|
1060
|
-
function td(a) {
|
|
1061
|
-
if (a.h && "undefined" != typeof goog && (!a.C[1] || 4 != O(a) || 2 != a.aa()))
|
|
1062
|
-
if (a.v && 4 == O(a))
|
|
1063
|
-
Ab(a.Ha, 0, a);
|
|
1064
|
-
else if (C(a, "readystatechange"), 4 == O(a)) {
|
|
1065
|
-
a.h = !1;
|
|
1066
|
-
try {
|
|
1067
|
-
var n = a.aa();
|
|
1068
|
-
a: switch (n) {
|
|
1069
|
-
case 200:
|
|
1070
|
-
case 201:
|
|
1071
|
-
case 202:
|
|
1072
|
-
case 204:
|
|
1073
|
-
case 206:
|
|
1074
|
-
case 304:
|
|
1075
|
-
case 1223:
|
|
1076
|
-
var b = !0;
|
|
1077
|
-
break a;
|
|
1078
|
-
default: b = !1;
|
|
1079
|
-
}
|
|
1080
|
-
var c;
|
|
1081
|
-
if (!(c = b)) {
|
|
1082
|
-
var d;
|
|
1083
|
-
if (d = 0 === n) {
|
|
1084
|
-
var e = String(a.H).match(Ec)[1] || null;
|
|
1085
|
-
if (!e && l.self && l.self.location) {
|
|
1086
|
-
var f = l.self.location.protocol;
|
|
1087
|
-
e = f.substr(0, f.length - 1);
|
|
1088
|
-
}
|
|
1089
|
-
d = !md.test(e ? e.toLowerCase() : "");
|
|
1090
|
-
}
|
|
1091
|
-
c = d;
|
|
1092
|
-
}
|
|
1093
|
-
if (c)
|
|
1094
|
-
C(a, "complete"), C(a, "success");
|
|
1095
|
-
else {
|
|
1096
|
-
a.m = 6;
|
|
1097
|
-
try {
|
|
1098
|
-
var h = 2 < O(a) ? a.g.statusText : "";
|
|
1099
|
-
}
|
|
1100
|
-
catch (u) {
|
|
1101
|
-
h = "";
|
|
1102
|
-
}
|
|
1103
|
-
a.j = h + " [" + a.aa() + "]";
|
|
1104
|
-
rd(a);
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
finally {
|
|
1108
|
-
sd(a);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
function sd(a, b) { if (a.g) {
|
|
1113
|
-
pd(a);
|
|
1114
|
-
var c = a.g, d = a.C[0] ? aa : null;
|
|
1115
|
-
a.g = null;
|
|
1116
|
-
a.C = null;
|
|
1117
|
-
b || C(a, "ready");
|
|
1118
|
-
try {
|
|
1119
|
-
c.onreadystatechange = d;
|
|
1120
|
-
}
|
|
1121
|
-
catch (e) { }
|
|
1122
|
-
} }
|
|
1123
|
-
function pd(a) { a.g && a.K && (a.g.ontimeout = null); a.A && (l.clearTimeout(a.A), a.A = null); }
|
|
1124
|
-
function O(a) { return a.g ? a.g.readyState : 0; }
|
|
1125
|
-
k.aa = function () { try {
|
|
1126
|
-
return 2 < O(this) ? this.g.status : -1;
|
|
1127
|
-
}
|
|
1128
|
-
catch (a) {
|
|
1129
|
-
return -1;
|
|
1130
|
-
} };
|
|
1131
|
-
k.fa = function () { try {
|
|
1132
|
-
return this.g ? this.g.responseText : "";
|
|
1133
|
-
}
|
|
1134
|
-
catch (a) {
|
|
1135
|
-
return "";
|
|
1136
|
-
} };
|
|
1137
|
-
k.Sa = function (a) { if (this.g) {
|
|
1138
|
-
var b = this.g.responseText;
|
|
1139
|
-
a && 0 == b.indexOf(a) && (b = b.substring(a.length));
|
|
1140
|
-
return kd(b);
|
|
1141
|
-
} };
|
|
1142
|
-
function hc(a) { try {
|
|
1143
|
-
if (!a.g)
|
|
1144
|
-
return null;
|
|
1145
|
-
if ("response" in a.g)
|
|
1146
|
-
return a.g.response;
|
|
1147
|
-
switch (a.J) {
|
|
1148
|
-
case ld:
|
|
1149
|
-
case "text": return a.g.responseText;
|
|
1150
|
-
case "arraybuffer": if ("mozResponseArrayBuffer" in a.g)
|
|
1151
|
-
return a.g.mozResponseArrayBuffer;
|
|
1152
|
-
}
|
|
1153
|
-
return null;
|
|
1154
|
-
}
|
|
1155
|
-
catch (b) {
|
|
1156
|
-
return null;
|
|
1157
|
-
} }
|
|
1158
|
-
k.Ea = function () { return this.m; };
|
|
1159
|
-
k.Oa = 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: {
|
|
1162
|
-
for (d in c) {
|
|
1163
|
-
var d = !1;
|
|
1164
|
-
break a;
|
|
1165
|
-
}
|
|
1166
|
-
d = !0;
|
|
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.ab = this.U = 0;
|
|
1175
|
-
this.Za = 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.Xa = wd("baseRetryDelayMs", 5E3, a);
|
|
1181
|
-
this.bb = wd("retryDelaySeedMs", 1E4, a);
|
|
1182
|
-
this.$a = wd("forwardChannelMaxRetries", 2, a);
|
|
1183
|
-
this.ta = wd("forwardChannelRequestTimeoutMs", 2E4, a);
|
|
1184
|
-
this.ra = a && a.xmlHttpFactory || void 0;
|
|
1185
|
-
this.Da = a && a.Zb || !1;
|
|
1186
|
-
this.J = void 0;
|
|
1187
|
-
this.H = a && a.supportsCrossDomainXhr || !1;
|
|
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.Ya = a && a.Xb || !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;
|
|
1202
|
-
}
|
|
1203
|
-
k = xd.prototype;
|
|
1204
|
-
k.ma = 8;
|
|
1205
|
-
k.G = 1;
|
|
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);
|
|
1213
|
-
b.K = 2;
|
|
1214
|
-
b.v = dc(M(c));
|
|
1215
|
-
c = !1;
|
|
1216
|
-
l.navigator && l.navigator.sendBeacon && (c = l.navigator.sendBeacon(b.v.toString(), ""));
|
|
1217
|
-
!c && l.Image && ((new Image).src = b.v, c = !0);
|
|
1218
|
-
c || (b.g = gc(b.l, null), b.g.da(b.v));
|
|
1219
|
-
b.F = Date.now();
|
|
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))
|
|
1226
|
-
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.Za ? 0 : a.$a))
|
|
1228
|
-
return !1; a.m = J(q(a.Ja, a, b), Cd(a, a.C)); a.C++; return !0; }
|
|
1229
|
-
k.Ja = function (a) {
|
|
1230
|
-
if (this.m)
|
|
1231
|
-
if (this.m = null, 1 == this.G) {
|
|
1232
|
-
if (!a) {
|
|
1233
|
-
this.U = Math.floor(1E5 * Math.random());
|
|
1234
|
-
a = this.U++;
|
|
1235
|
-
var e = new L(this, this.j, a, void 0);
|
|
1236
|
-
var f = this.s;
|
|
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)
|
|
1240
|
-
a: {
|
|
1241
|
-
var b = 0;
|
|
1242
|
-
for (var c = 0; c < this.i.length; c++) {
|
|
1243
|
-
b: {
|
|
1244
|
-
var d = this.i[c];
|
|
1245
|
-
if ("__data__" in d.g && (d = d.g.__data__, "string" === typeof d)) {
|
|
1246
|
-
d = d.length;
|
|
1247
|
-
break b;
|
|
1248
|
-
}
|
|
1249
|
-
d = void 0;
|
|
1250
|
-
}
|
|
1251
|
-
if (void 0 === d)
|
|
1252
|
-
break;
|
|
1253
|
-
b += d;
|
|
1254
|
-
if (4096 < b) {
|
|
1255
|
-
b = c;
|
|
1256
|
-
break a;
|
|
1257
|
-
}
|
|
1258
|
-
if (4096 === b || c === this.i.length - 1) {
|
|
1259
|
-
b = c + 1;
|
|
1260
|
-
break a;
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
b = 1E3;
|
|
1264
|
-
}
|
|
1265
|
-
else
|
|
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.Ya && 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);
|
|
1278
|
-
this.G = 2;
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
else
|
|
1282
|
-
3 == this.G && (a ? Ed(this, a) : 0 == this.i.length || Yc(this.h) || Ed(this));
|
|
1283
|
-
};
|
|
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.Ra, a.l, a) : null; a: {
|
|
1287
|
-
var e = a.i;
|
|
1288
|
-
var f = -1;
|
|
1289
|
-
for (;;) {
|
|
1290
|
-
var h = ["count=" + c];
|
|
1291
|
-
-1 == f ? 0 < c ? (f = e[0].h, h.push("ofs=" + f)) : f = 0 : h.push("ofs=" + f);
|
|
1292
|
-
var n = !0;
|
|
1293
|
-
for (var u = 0; u < c; u++) {
|
|
1294
|
-
var m = e[u].h;
|
|
1295
|
-
var r = e[u].g;
|
|
1296
|
-
m -= f;
|
|
1297
|
-
if (0 > m)
|
|
1298
|
-
f = Math.max(0, e[u].h - 100), n = !1;
|
|
1299
|
-
else
|
|
1300
|
-
try {
|
|
1301
|
-
bd(r, h, "req" + m + "_");
|
|
1302
|
-
}
|
|
1303
|
-
catch (F) {
|
|
1304
|
-
d && d(r);
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
if (n) {
|
|
1308
|
-
d = h.join("&");
|
|
1309
|
-
break a;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
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.eb, this), a);
|
|
1320
|
-
} };
|
|
1321
|
-
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
|
-
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.cb = 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);
|
|
1329
|
-
a.g = null;
|
|
1330
|
-
var d = 2;
|
|
1331
|
-
}
|
|
1332
|
-
else if (qc(a.h, b))
|
|
1333
|
-
c = b.D, xc(a.h, b), d = 1;
|
|
1334
|
-
else
|
|
1335
|
-
return; if (0 != a.G)
|
|
1336
|
-
if (a.pa = b.Y, b.i)
|
|
1337
|
-
if (1 == d) {
|
|
1338
|
-
c = b.s ? b.s.length : 0;
|
|
1339
|
-
b = Date.now() - b.F;
|
|
1340
|
-
var e = a.C;
|
|
1341
|
-
d = Mb();
|
|
1342
|
-
C(d, new Pb(d, c));
|
|
1343
|
-
zc(a);
|
|
1344
|
-
}
|
|
1345
|
-
else
|
|
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) {
|
|
1349
|
-
case 1:
|
|
1350
|
-
R(a, 5);
|
|
1351
|
-
break;
|
|
1352
|
-
case 4:
|
|
1353
|
-
R(a, 10);
|
|
1354
|
-
break;
|
|
1355
|
-
case 3:
|
|
1356
|
-
R(a, 6);
|
|
1357
|
-
break;
|
|
1358
|
-
default: R(a, 2);
|
|
1359
|
-
} }
|
|
1360
|
-
function Cd(a, b) { var c = a.Xa + Math.floor(Math.random() * a.bb); a.l || (c *= 2); return c * b; }
|
|
1361
|
-
function R(a, b) { a.j.info("Error code " + b); if (2 == b) {
|
|
1362
|
-
var c = null;
|
|
1363
|
-
a.l && (c = null);
|
|
1364
|
-
var d = q(a.kb, a);
|
|
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);
|
|
1367
|
-
}
|
|
1368
|
-
else
|
|
1369
|
-
I(2); a.G = 0; a.l && a.l.va(b); Ad(a); yd(a); }
|
|
1370
|
-
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
|
-
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();
|
|
1376
|
-
} }
|
|
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);
|
|
1379
|
-
else {
|
|
1380
|
-
var e = l.location;
|
|
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({ jb: !0 })) : new W(a.ra); b.Ka(a.H); return b; }
|
|
1393
|
-
function Gd() { }
|
|
1394
|
-
k = Gd.prototype;
|
|
1395
|
-
k.xa = function () { };
|
|
1396
|
-
k.wa = function () { };
|
|
1397
|
-
k.va = function () { };
|
|
1398
|
-
k.ua = function () { };
|
|
1399
|
-
k.Ra = function () { };
|
|
1400
|
-
function Hd() { if (y && !(10 <= Number(La)))
|
|
1401
|
-
throw Error("Environmental error: no available transport."); }
|
|
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);
|
|
1406
|
-
this.l = a;
|
|
1407
|
-
this.h = b && b.messageUrlParams || null;
|
|
1408
|
-
a = b && b.messageHeaders || null;
|
|
1409
|
-
b && b.clientProtocolHeaderRequired && (a ? a["X-Client-Protocol"] = "webchannel" : a = { "X-Client-Protocol": "webchannel" });
|
|
1410
|
-
this.g.s = a;
|
|
1411
|
-
a = b && b.initMessageHeaders || null;
|
|
1412
|
-
b && b.messageContentType && (a ? a["X-WebChannel-Content-Type"] = b.messageContentType : a = { "X-WebChannel-Content-Type": b.messageContentType });
|
|
1413
|
-
b && b.ya && (a ? a["X-WebChannel-Client-Profile"] = b.ya : a = { "X-WebChannel-Client-Profile": b.ya });
|
|
1414
|
-
this.g.S =
|
|
1415
|
-
a;
|
|
1416
|
-
(a = b && b.Yb) && !pa(a) && (this.g.o = a);
|
|
1417
|
-
this.A = b && b.supportsCrossDomainXhr || !1;
|
|
1418
|
-
this.v = b && b.sendRawJson || !1;
|
|
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);
|
|
1421
|
-
}
|
|
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;
|
|
1429
|
-
}
|
|
1430
|
-
else
|
|
1431
|
-
this.v && (c = {}, c.__data__ = lb(a), a = c); b.i.push(new Vc(b.ab++, 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) {
|
|
1434
|
-
a: {
|
|
1435
|
-
for (var c in b) {
|
|
1436
|
-
a = c;
|
|
1437
|
-
break a;
|
|
1438
|
-
}
|
|
1439
|
-
a = void 0;
|
|
1440
|
-
}
|
|
1441
|
-
if (this.i = a)
|
|
1442
|
-
a = this.i, b = null !== b && a in b ? b[a] : void 0;
|
|
1443
|
-
this.data = b;
|
|
1444
|
-
}
|
|
1445
|
-
else
|
|
1446
|
-
this.data = a; }
|
|
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()); };
|
|
1455
|
-
Y.prototype.ua = function () { C(this.g, "b"); }; /*
|
|
1456
|
-
|
|
1457
|
-
Copyright 2017 Google LLC
|
|
1458
|
-
|
|
1459
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
1460
|
-
you may not use this file except in compliance with the License.
|
|
1461
|
-
You may obtain a copy of the License at
|
|
1462
|
-
|
|
1463
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
1464
|
-
|
|
1465
|
-
Unless required by applicable law or agreed to in writing, software
|
|
1466
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
1467
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1468
|
-
See the License for the specific language governing permissions and
|
|
1469
|
-
limitations under the License.
|
|
1470
|
-
*/
|
|
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.Oa;
|
|
1487
|
-
W.prototype.getLastErrorCode = W.prototype.Ea;
|
|
1488
|
-
W.prototype.getStatus = W.prototype.aa;
|
|
1489
|
-
W.prototype.getResponseJson = W.prototype.Sa;
|
|
1490
|
-
W.prototype.getResponseText = W.prototype.fa;
|
|
1491
|
-
W.prototype.send = W.prototype.da;
|
|
1492
|
-
W.prototype.setWithCredentials = W.prototype.Ka;
|
|
1493
|
-
var createWebChannelTransport = esm.createWebChannelTransport = function () { return new Hd; };
|
|
1494
|
-
var getStatEventTarget = esm.getStatEventTarget = function () { return Mb(); };
|
|
1495
|
-
var ErrorCode = esm.ErrorCode = Qb;
|
|
1496
|
-
var EventType = esm.EventType = Rb;
|
|
1497
|
-
var Event = esm.Event = G;
|
|
1498
|
-
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 };
|
|
1499
|
-
var FetchXmlHttpFactory = esm.FetchXmlHttpFactory = ed;
|
|
1500
|
-
var WebChannel = esm.WebChannel = Ub;
|
|
1501
|
-
var XhrIo = esm.XhrIo = W;
|
|
1502
|
-
|
|
1503
|
-
export { ErrorCode, Event, EventType, FetchXmlHttpFactory, Stat, WebChannel, XhrIo, createWebChannelTransport, esm as default, getStatEventTarget };
|
|
1504
|
-
//# sourceMappingURL=index.esm.js.map
|