@firebase/webchannel-wrapper 0.6.2-canary.b6c231a28 → 0.6.2-canary.ba8d1dbeb

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 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 da(a) { return Object.prototype.hasOwnProperty.call(a, ea) && a[ea] || (a[ea] = ++fa); }
53
- var ea = "closure_uid_" + (1E9 * Math.random() >>> 0), fa = 0;
54
- function ha(a, b, c) { return a.call.apply(a.bind, arguments); }
55
- function ia(a, b, c) { if (!a)
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 = ha : q = ia; return q.apply(null, arguments); }
61
- function ja(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); }; }
62
- function t(a, b) { function c() { } c.prototype = b.prototype; a.Z = 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++)
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 ka = 0, la = {};
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 != ka)) {
68
- var a = da(this);
69
- delete la[a];
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 ma = Array.prototype.indexOf ? function (a, b) { return Array.prototype.indexOf.call(a, b, void 0); } : function (a, b) { if ("string" === typeof a)
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; }, na = Array.prototype.forEach ? function (a, b, c) { Array.prototype.forEach.call(a, b, c); } : function (a, b, c) { var d = a.length, e = "string" === typeof a ? a.split("") : a; for (var f = 0; f < d; f++)
78
- f in e && b.call(c, e[f], f, a); };
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 sa(a) { return /^[\s\xa0]*$/.test(a); }
97
- var ta = String.prototype.trim ? function (a) { return a.trim(); } : function (a) { return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]; };
98
- function w(a, b) { return -1 != a.indexOf(b); }
99
- function ua(a, b) { return a < b ? -1 : a > b ? 1 : 0; }
100
- var x;
101
- a: {
102
- var va = l.navigator;
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
- x = "";
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 Ca(a) { Ca[" "](a); return a; }
125
- Ca[" "] = aa;
126
- function Fa(a) { var b = Ga; return Object.prototype.hasOwnProperty.call(b, 9) ? b[9] : b[9] = a(9); }
127
- var Ha = w(x, "Opera"), y = w(x, "Trident") || w(x, "MSIE"), Ia = w(x, "Edge"), Ja = Ia || y, Ka = w(x, "Gecko") && !(w(x.toLowerCase(), "webkit") && !w(x, "Edge")) && !(w(x, "Trident") || w(x, "MSIE")) && !w(x, "Edge"), La = w(x.toLowerCase(), "webkit") && !w(x, "Edge");
128
- function Ma() { var a = l.document; return a ? a.documentMode : void 0; }
129
- var Na;
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 Oa = "", Pa = function () { var a = x; if (Ka)
132
- return /rv:([^\);]+)(\)|;)/.exec(a); if (Ia)
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 (La)
135
- return /WebKit\/(\S+)/.exec(a); if (Ha)
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
- Pa && (Oa = Pa ? Pa[1] : "");
137
+ Ga && (Fa = Ga ? Ga[1] : "");
138
138
  if (y) {
139
- var Qa = Ma();
140
- if (null != Qa && Qa > parseFloat(Oa)) {
141
- Na = String(Qa);
139
+ var Ha = Ba();
140
+ if (null != Ha && Ha > parseFloat(Fa)) {
141
+ Ea = String(Ha);
142
142
  break a;
143
143
  }
144
144
  }
145
- Na = Oa;
145
+ Ea = Fa;
146
146
  }
147
- var Ga = {};
148
- function Ra() { return Fa(function () { var a = 0; var b = ta(String(Na)).split("."), c = ta("9").split("."), d = Math.max(b.length, c.length); for (var h = 0; 0 == a && h < d; h++) {
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 = ua(0 == e[1].length ? 0 : parseInt(e[1], 10), 0 == f[1].length ? 0 : parseInt(f[1], 10)) || ua(0 == e[2].length, 0 == f[2].length) || ua(e[2], f[2]);
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 Sa;
160
+ var Ja;
161
161
  if (l.document && y) {
162
- var Ta = Ma();
163
- Sa = Ta ? Ta : parseInt(Na, 10) || void 0;
162
+ var Ka = Ba();
163
+ Ja = Ka ? Ka : parseInt(Ea, 10) || void 0;
164
164
  }
165
165
  else
166
- Sa = void 0;
167
- var Ua = Sa;
168
- var Va = function () { if (!l.addEventListener || !Object.defineProperty)
169
- return !1; var a = !1, b = Object.defineProperty({}, "passive", { get: function () { a = !0; } }); try {
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 (Ka) {
183
+ if (za) {
191
184
  a: {
192
185
  try {
193
- Ca(b.nodeName);
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 : Wa[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 && A.Z.h.call(this);
212
+ a.defaultPrevented && z.X.h.call(this);
220
213
  }
221
214
  }
222
- t(A, z);
223
- var Wa = { 2: "touch", 3: "pen", 4: "mouse" };
224
- A.prototype.h = function () { A.Z.h.call(this); var a = this.i; a.preventDefault ? a.preventDefault() : a.returnValue = !1; };
225
- var B = "closure_listenable_" + (1E6 * Math.random() | 0);
226
- var Xa = 0;
227
- function Ya(a, b, c, d, e) { this.listener = a; this.proxy = null; this.src = b; this.type = c; this.capture = !!d; this.ia = e; this.key = ++Xa; this.ca = this.fa = !1; }
228
- function Za(a) { a.ca = !0; a.listener = null; a.proxy = null; a.src = null; a.ia = null; }
229
- function $a(a) { this.src = a; this.g = {}; this.h = 0; }
230
- $a.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 = ab(a, b, d, e); -1 < h ? (b = a[h], c || (b.fa = !1)) : (b = new Ya(b, this.src, f, !!d, e), b.fa = c, a.push(b)); return b; };
231
- function bb(a, b) { var c = b.type; if (c in a.g) {
232
- var d = a.g[c], e = ma(d, b), f;
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 && (Za(b), 0 == a.g[c].length && (delete a.g[c], a.h--));
239
+ f && (Pa(b), 0 == a.g[c].length && (delete a.g[c], a.h--));
235
240
  } }
236
- function ab(a, b, c, d) { for (var e = 0; e < a.length; ++e) {
241
+ function Va(a, b, c, d) { for (var e = 0; e < a.length; ++e) {
237
242
  var f = a[e];
238
- if (!f.ca && f.listener == b && f.capture == !!c && f.ia == d)
243
+ if (!f.ba && f.listener == b && f.capture == !!c && f.ha == d)
239
244
  return e;
240
245
  } return -1; }
241
- var cb = "closure_lm_" + (1E6 * Math.random() | 0), db = {};
242
- function fb(a, b, c, d, e) { if (d && d.once)
243
- return gb(a, b, c, d, e); if (Array.isArray(b)) {
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
- fb(a, b[f], c, d, e);
250
+ $a(a, b[f], c, d, e);
246
251
  return null;
247
- } c = hb(c); return a && a[B] ? a.N(b, c, p(d) ? !!d.capture : !!d, e) : ib(a, b, c, !1, d, e); }
248
- function ib(a, b, c, d, e, f) { if (!b)
249
- throw Error("Invalid event type"); var h = p(e) ? !!e.capture : !!e, n = jb(a); n || (a[cb] = n = new $a(a)); c = n.add(b, c, d, h, f); if (c.proxy)
250
- return c; d = kb(); c.proxy = d; d.src = a; d.listener = c; if (a.addEventListener)
251
- Va || (e = h), void 0 === e && (e = !1), a.addEventListener(b.toString(), d, e);
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(lb(b.toString()), d);
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 kb() { function a(c) { return b.call(a.src, a.listener, c); } var b = mb; return a; }
259
- function gb(a, b, c, d, e) { if (Array.isArray(b)) {
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
- gb(a, b[f], c, d, e);
266
+ ab(a, b[f], c, d, e);
262
267
  return null;
263
- } c = hb(c); return a && a[B] ? a.O(b, c, p(d) ? !!d.capture : !!d, e) : ib(a, b, c, !0, d, e); }
264
- function nb(a, b, c, d, e) { if (Array.isArray(b))
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
- nb(a, b[f], c, d, e);
271
+ hb(a, b[f], c, d, e);
267
272
  else
268
- (d = p(d) ? !!d.capture : !!d, c = hb(c), a && a[B]) ? (a = a.i, b = String(b).toString(), b in a.g && (f = a.g[b], c = ab(f, c, d, e), -1 < c && (Za(f[c]), Array.prototype.splice.call(f, c, 1), 0 == f.length && (delete a.g[b], a.h--)))) : a && (a = jb(a)) && (b = a.g[b.toString()], a = -1, b && (a = ab(b, c, d, e)), (c = -1 < a ? b[a] : null) && ob(c)); }
269
- function ob(a) { if ("number" !== typeof a && a && !a.ca) {
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[B])
272
- bb(b.i, a);
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(lb(c), d) : b.addListener && b.removeListener && b.removeListener(d);
276
- (c = jb(b)) ? (bb(c, a), 0 == c.h && (c.src = null, b[cb] = null)) : Za(a);
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 lb(a) { return a in db ? db[a] : db[a] = "on" + a; }
280
- function mb(a, b) { if (a.ca)
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 A(b, this);
284
- var c = a.listener, d = a.ia || a.src;
285
- a.fa && ob(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 jb(a) { a = a[cb]; return a instanceof $a ? a : null; }
289
- var pb = "__closure_events_fn_" + (1E9 * Math.random() >>> 0);
290
- function hb(a) { if ("function" === typeof a)
291
- return a; a[pb] || (a[pb] = function (b) { return a.handleEvent(b); }); return a[pb]; }
292
- function C() { v.call(this); this.i = new $a(this); this.P = this; this.I = null; }
293
- t(C, v);
294
- C.prototype[B] = !0;
295
- C.prototype.removeEventListener = function (a, b, c, d) { nb(this, a, b, c, d); };
296
- function D(a, b) { var c, d = a.I; if (d)
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 z(b, a);
300
- else if (b instanceof z)
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 z(d, a);
305
- Aa(b, e);
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 = qb(h, d, !0, b) && e;
310
- } h = b.g = a; e = qb(h, d, !0, b) && e; e = qb(h, d, !1, b) && e; if (c)
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 = qb(h, d, !1, b) && e; }
313
- C.prototype.M = function () { C.Z.M.call(this); if (this.i) {
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
- Za(d[e]);
322
+ Pa(d[e]);
318
323
  delete a.g[c];
319
324
  a.h--;
320
325
  }
321
326
  } this.I = null; };
322
- C.prototype.N = function (a, b, c, d) { return this.i.add(String(a), b, !1, c, d); };
323
- C.prototype.O = function (a, b, c, d) { return this.i.add(String(a), b, !0, c, d); };
324
- function qb(a, b, c, d) { b = a.i.g[String(b)]; if (!b)
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.ca && h.capture == c) {
328
- var n = h.listener, u = h.ia || h.src;
329
- h.fa && bb(a.i, 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 rb = l.JSON.stringify;
334
- function sb() { var a = tb; var b = null; a.g && (b = a.g, a.g = a.g.next, a.g || (a.h = null), b.next = null); return b; }
335
- var ub = /** @class */ (function () {
336
- function ub() {
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
- ub.prototype.add = function (a, b) { var c = vb.get(); c.set(a, b); this.h ? this.h.next = c : this.g = c; this.h = c; };
340
- return ub;
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 vb = new /** @class */ (function () {
343
- function class_2(a, b) {
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
- class_2.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; };
350
- return class_2;
351
- }())(function () { return new wb; }, function (a) { return a.reset(); });
352
- var wb = /** @class */ (function () {
353
- function wb() {
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
- wb.prototype.set = function (a, b) { this.h = a; this.g = b; this.next = null; };
357
- wb.prototype.reset = function () { this.next = this.g = this.h = null; };
358
- return wb;
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 yb(a) { l.setTimeout(function () { throw a; }, 0); }
361
- function zb(a, b) { Ab || Bb(); Cb || (Ab(), Cb = !0); tb.add(a, b); }
362
- var Ab;
363
- function Bb() { var a = l.Promise.resolve(void 0); Ab = function () { a.then(Db); }; }
364
- var Cb = !1, tb = new ub;
365
- function Db() { for (var a; a = sb();) {
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
- yb(c);
375
+ rb(c);
371
376
  }
372
- var b = vb;
377
+ var b = pb;
373
378
  b.j(a);
374
379
  100 > b.h && (b.h++, a.next = b.g, b.g = a);
375
- } Cb = !1; }
376
- function Eb(a, b) { C.call(this); this.h = a || 1; this.g = b || l; this.j = q(this.kb, this); this.l = Date.now(); }
377
- t(Eb, C);
378
- k = Eb.prototype;
379
- k.da = !1;
380
- k.S = null;
381
- k.kb = function () { if (this.da) {
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.S = this.g.setTimeout(this.j, this.h - a) : (this.S && (this.g.clearTimeout(this.S), this.S = null), D(this, "tick"), this.da && (Fb(this), this.start()));
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.da = !0; this.S || (this.S = this.g.setTimeout(this.j, this.h), this.l = Date.now()); };
386
- function Fb(a) { a.da = !1; a.S && (a.g.clearTimeout(a.S), a.S = null); }
387
- k.M = function () { Eb.Z.M.call(this); Fb(this); delete this.g; };
388
- function Gb(a, b, c) { if ("function" === typeof a)
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 Hb(a) { a.g = Gb(function () { a.g = null; a.i && (a.i = !1, Hb(a)); }, a.j); var b = a.h; a.h = null; a.m.apply(null, b); }
395
- var Ib = /** @class */ (function (_super) {
396
- __extends(Ib, _super);
397
- function Ib(a, b) {
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
- Ib.prototype.l = function (a) { this.h = arguments; this.g ? this.i = !0 : Hb(this); };
407
- Ib.prototype.M = function () { _super.prototype.M.call(this); this.g && (l.clearTimeout(this.g), this.g = null, this.i = !1, this.h = null); };
408
- return Ib;
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 E(a) { v.call(this); this.h = a; this.g = {}; }
411
- t(E, v);
412
- var Jb = [];
413
- function Kb(a, b, c, d) { Array.isArray(c) || (c && (Jb[0] = c.toString()), c = Jb); for (var e = 0; e < c.length; e++) {
414
- var f = fb(b, c[e], d || a.handleEvent, !1, a.h || a);
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 Lb(a) { xa(a.g, function (b, c) { this.g.hasOwnProperty(c) && ob(b); }, a); a.g = {}; }
420
- E.prototype.M = function () { E.Z.M.call(this); Lb(this); };
421
- E.prototype.handleEvent = function () { throw Error("EventHandler.handleEvent not implemented"); };
422
- function Mb() { this.g = !0; }
423
- Mb.prototype.Aa = function () { this.g = !1; };
424
- function Nb(a, b, c, d, e, f) { a.info(function () { if (a.g)
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 G = r.split("_");
433
- h = 2 <= G.length && "type" == G[1] ? h + (r + "=" + m + "&") : h + (r + "=redacted&");
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 Ob(a, b, c, d, e, f, h) { a.info(function () { return "XMLHTTP RESP (" + d + ") [ attempt " + e + "]: " + b + "\n" + c + "\n" + f + " " + h; }); }
442
- function F(a, b, c, d) { a.info(function () { return "XMLHTTP TEXT (" + b + "): " + Pb(a, c) + (d ? " " + d : ""); }); }
443
- function Qb(a, b) { a.info(function () { return "TIMEOUT: " + b; }); }
444
- Mb.prototype.info = function () { };
445
- function Pb(a, b) { if (!a.g)
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 rb(c);
468
+ return lb(c);
464
469
  }
465
470
  catch (n) {
466
471
  return b;
467
472
  } }
468
- var H = {}, Rb = null;
469
- function Sb() { return Rb = Rb || new C; }
470
- H.Ma = "serverreachability";
471
- function Tb(a) { z.call(this, H.Ma, a); }
472
- t(Tb, z);
473
- function I(a) { var b = Sb(); D(b, new Tb(b, a)); }
474
- H.STAT_EVENT = "statevent";
475
- function Ub(a, b) { z.call(this, H.STAT_EVENT, a); this.stat = b; }
476
- t(Ub, z);
477
- function J(a) { var b = Sb(); D(b, new Ub(b, a)); }
478
- H.Na = "timingevent";
479
- function Vb(a, b) { z.call(this, H.Na, a); this.size = b; }
480
- t(Vb, z);
481
- function K(a, b) { if ("function" !== typeof a)
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 Wb = { NO_ERROR: 0, lb: 1, yb: 2, xb: 3, sb: 4, wb: 5, zb: 6, Ja: 7, TIMEOUT: 8, Cb: 9 };
484
- var Xb = { qb: "complete", Mb: "success", Ka: "error", Ja: "abort", Eb: "ready", Fb: "readystatechange", TIMEOUT: "timeout", Ab: "incrementaldata", Db: "progress", tb: "downloadprogress", Ub: "uploadprogress" };
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.prototype.h = null;
487
- function Zb(a) { return a.h || (a.h = a.i()); }
488
- function $b() { }
489
- var L = { OPEN: "a", pb: "b", Ka: "c", Bb: "d" };
490
- function ac() { z.call(this, "d"); }
491
- t(ac, z);
492
- function bc() { z.call(this, "c"); }
493
- t(bc, z);
494
- var cc;
495
- function dc() { }
496
- t(dc, Yb);
497
- dc.prototype.g = function () { return new XMLHttpRequest; };
498
- dc.prototype.i = function () { return {}; };
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.Da();
514
- var G = this.g.ba();
515
- if (!(3 > r) && (3 != r || Ja || this.g && (this.h.h || this.g.ga() || oc(this.g)))) {
516
- this.I || 4 != r || 7 == b || (8 == b || 0 >= G ? I(3) : I(2));
517
- pc(this);
518
- var c = this.g.ba();
519
- this.N = c;
520
- b: if (qc(this)) {
521
- var d = oc(this.g);
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
- rc(this);
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.ga();
546
+ h = this.g.fa();
542
547
  this.i = 200 == c;
543
- Ob(this.j, this.u, this.A, this.m, this.X, r, c);
548
+ Ib(this.j, this.u, this.A, this.m, this.U, r, c);
544
549
  if (this.i) {
545
- if (this.$ && !this.J) {
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) && !sa(n)) {
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
- F(this.j, this.m, c, "Initial handshake response via X-HTTP-Initial-Response"), this.J = !0, sc(this, c);
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
- J(12);
566
+ I(12);
562
567
  P(this);
563
- rc(this);
568
+ Q(this);
564
569
  break a;
565
570
  }
566
571
  }
567
- this.U ? (tc(this, r, h), Ja && this.i && 3 == r && (Kb(this.V, this.W, "tick", this.fb),
568
- this.W.start())) : (F(this.j, this.m, h, null), sc(this, h));
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 ? uc(this.l, this) : (this.i = !1, lc(this)));
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, J(12)) : (this.o = 0, J(13)), P(this), rc(this);
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 qc(a) { return a.g ? "GET" == a.u && 2 != a.K && a.l.Ba : !1; }
581
- function tc(a, b, c) {
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 = vc(a, c), e == hc) {
585
- 4 == b && (a.o = 4, J(14), d = !1);
586
- F(a.j, a.m, null, "[Incomplete Response]");
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 == gc) {
594
+ else if (e == ac) {
590
595
  a.o = 4;
591
- J(15);
592
- F(a.j, a.m, c, "[Invalid Chunk]");
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
- F(a.j, a.m, e, null), sc(a, e);
598
- qc(a) && e != hc && e != gc && (a.h.g = "", a.C = 0);
599
- 4 != b || 0 != c.length || a.h.h || (a.o = 1, J(16), d = !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.aa && (a.aa = !0, b = a.l, b.g == a && b.$ && !b.L && (b.h.info("Great, no buffering proxy detected. Bytes received: " + c.length), wc(b), b.L = !0, J(11))) : (F(a.j, a.m, c, "[Invalid Chunked Response]"), P(a), rc(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.fb = function () { if (this.g) {
604
- var a = O(this.g), b = this.g.ga();
605
- this.C < b.length && (pc(this), tc(this, a, b), this.i && 4 != a && lc(this));
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 vc(a, b) { var c = a.C, d = b.indexOf("\n", c); if (-1 == d)
608
- return hc; c = Number(b.substring(c, d)); if (isNaN(c))
609
- return gc; d += 1; if (d + c > b.length)
610
- return hc; b = b.substr(d, c); a.C = d + c; return b; }
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 lc(a) { a.Y = Date.now() + a.P; xc(a, a.P); }
613
- function xc(a, b) { if (null != a.B)
614
- throw Error("WatchDog timer not null"); a.B = K(q(a.eb, a), b); }
615
- function pc(a) { a.B && (l.clearTimeout(a.B), a.B = null); }
616
- k.eb = function () { this.B = null; var a = Date.now(); 0 <= a - this.Y ? (Qb(this.j, this.A), 2 != this.K && (I(3), J(17)), P(this), this.o = 2, rc(this)) : xc(this, this.Y - a); };
617
- function rc(a) { 0 == a.l.G || a.I || uc(a.l, a); }
618
- function P(a) { pc(a); var b = a.L; b && "function" == typeof b.na && b.na(); a.L = null; Fb(a.W); Lb(a.V); a.g && (b = a.g, a.g = null, b.abort(), b.na()); }
619
- function sc(a, b) {
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 || yc(c.i, a)))
623
- if (c.I = a.N, !a.J && yc(c.i, a) && 3 == c.G) {
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.Ca.g.parse(b);
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
- zc(c), Ac(c);
642
+ rc(c), sc(c);
638
643
  else
639
644
  break a;
640
- Bc(c);
641
- J(18);
645
+ tc(c);
646
+ I(18);
642
647
  }
643
648
  }
644
649
  else
645
- c.ta = e[1], 0 < c.ta - c.U && 37500 > e[2] && c.N && 0 == c.A && !c.v && (c.v = K(q(c.ab, c), 6E3));
646
- if (1 >= Cc(c.i) && c.ka) {
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.ka();
653
+ c.ja();
649
654
  }
650
655
  catch (m) { }
651
- c.ka = void 0;
656
+ c.ja = void 0;
652
657
  }
653
658
  }
654
659
  else
655
- Q(c, 11);
660
+ R(c, 11);
656
661
  }
657
- else if ((a.J || c.g == a) && zc(c), !sa(b))
658
- for (e = c.Ca.g.parse(b), b = 0; b < e.length; b++) {
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.U = m[0];
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.J = m[1];
665
- c.la = m[2];
670
+ c.I = m[1];
671
+ c.ka = m[2];
666
672
  var r = m[3];
667
- null != r && (c.ma = r, c.h.info("VER=" + c.ma));
668
- var G = m[4];
669
- null != G && (c.za = G, c.h.info("SVER=" + c.za));
670
- var Da = m[5];
671
- null != Da && "number" === typeof Da && 0 < Da && (d = 1.5 * Da, c.K = d, c.h.info("backChannelRequestTimeoutMs_=" + d));
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 ca = a.g;
674
- if (ca) {
675
- var Ea = ca.g ? ca.g.getResponseHeader("X-Client-Wire-Protocol") : null;
676
- if (Ea) {
677
- var f = d.i;
678
- !f.g && (w(Ea, "spdy") || w(Ea, "quic") || w(Ea, "h2")) && (f.j = f.l, f.g = new Set, f.h && (Dc(f, f.h), f.h = null));
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 xb = ca.g ? ca.g.getResponseHeader("X-HTTP-Session-Id") : null;
682
- xb && (d.sa = xb, R(d.F, d.D, xb));
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.j && c.j.xa();
687
- c.$ && (c.O = Date.now() - a.F, c.h.info("Handshake RTT: " + c.O + "ms"));
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.oa = Ec(d, d.H ? d.la : null, d.W);
696
+ d.sa = wc(d, d.H ? d.ka : null, d.V);
691
697
  if (h.J) {
692
- Fc(d.i, h);
693
- var n = h, u = d.K;
698
+ xc(d.h, h);
699
+ var n = h, u = d.J;
694
700
  u && n.setTimeout(u);
695
- n.B && (pc(n), lc(n));
701
+ n.B && (ic(n), N(n));
696
702
  d.g = h;
697
703
  }
698
704
  else
699
- Gc(d);
700
- 0 < c.l.length && Hc(c);
705
+ yc(d);
706
+ 0 < c.i.length && zc(c);
701
707
  }
702
708
  else
703
- "stop" != m[0] && "close" != m[0] || Q(c, 7);
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] ? Q(c, 7) : Ic(c) : "noop" != m[0] && c.j && c.j.wa(m), c.A = 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
- I(4);
713
+ H(4);
708
714
  }
709
715
  catch (m) { }
710
716
  }
711
- function Jc(a) { if (a.R && "function" == typeof a.R)
712
- return a.R(); if ("string" === typeof 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 Kc(a, b) { if (a.forEach && "function" == typeof a.forEach)
720
- a.forEach(b, void 0);
721
- else if (ba(a) || "string" === typeof a)
722
- na(a, b, void 0);
723
- else {
724
- if (a.T && "function" == typeof a.T)
725
- var c = a.T();
726
- else if (a.R && "function" == typeof a.R)
727
- c = void 0;
728
- else if (ba(a) || "string" === typeof a) {
729
- c = [];
730
- for (var d = a.length, e = 0; e < d; e++)
731
- c.push(e);
732
- }
733
- else
734
- for (e in c = [], d = 0, a)
735
- c[d++] = e;
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
- k.get = function (a, b) { return T(this.h, a) ? this.h[a] : b; };
772
- k.set = function (a, b) { T(this.h, a) || (this.i++, this.g.push(a)); this.h[a] = b; };
773
- k.forEach = function (a, b) { for (var c = this.T(), d = 0; d < c.length; d++) {
774
- var e = c[d], f = this.get(e);
775
- a.call(b, f, e, this);
776
- } };
777
- function T(a, b) { return Object.prototype.hasOwnProperty.call(a, b); }
778
- var Mc = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;
779
- function Nc(a, b) { if (a) {
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 U(a, b) { this.i = this.s = this.j = ""; this.m = null; this.o = this.l = ""; this.g = !1; if (a instanceof U) {
793
- this.g = void 0 !== b ? b : a.g;
794
- Oc(this, a.j);
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
- Pc(this, a.i);
797
- Qc(this, a.m);
770
+ this.g = a.g;
771
+ Hc(this, a.m);
798
772
  this.l = a.l;
799
- b = a.h;
800
- var c = new Rc;
773
+ b = a.i;
774
+ var c = new Ic;
801
775
  c.i = b.i;
802
- b.g && (c.g = new S(b.g), c.h = b.h);
803
- Sc(this, c);
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(Mc)) ? (this.g = !!b, Oc(this, c[1] || "", !0), this.s = Tc(c[2] || ""), Pc(this, c[3] || "", !0), Qc(this, c[4]), this.l = Tc(c[5] || "", !0), Sc(this, c[6] || "", !0), this.o = Tc(c[7] || "")) : (this.g = !!b, this.h = new Rc(null, this.g)); }
808
- U.prototype.toString = function () { var a = [], b = this.j; b && a.push(Uc(b, Vc, !0), ":"); var c = this.i; if (c || "file" == b)
809
- a.push("//"), (b = this.s) && a.push(Uc(b, Vc, !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)
810
- this.i && "/" != c.charAt(0) && a.push("/"), a.push(Uc(c, "/" == c.charAt(0) ? Wc : Xc, !0)); (c = this.h.toString()) && a.push("?", c); (c = this.o) && a.push("#", Uc(c, Yc)); return a.join(""); };
811
- function N(a) { return new U(a); }
812
- function Oc(a, b, c) { a.j = c ? Tc(b, !0) : b; a.j && (a.j = a.j.replace(/:$/, "")); }
813
- function Pc(a, b, c) { a.i = c ? Tc(b, !0) : b; }
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 Sc(a, b, c) { b instanceof Rc ? (a.h = b, Zc(a.h, a.g)) : (c || (b = Uc(b, $c)), a.h = new Rc(b, a.g)); }
823
- function R(a, b, c) { a.h.set(b, c); }
824
- function jc(a) { R(a, "zx", Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ Date.now()).toString(36)); return a; }
825
- function ad(a) { return a instanceof U ? N(a) : new U(a, void 0); }
826
- function bd(a, b, c, d) { var e = new U(null, void 0); a && Oc(e, a); b && Pc(e, b); c && Qc(e, c); d && (e.l = d); return e; }
827
- function Tc(a, b) { return a ? b ? decodeURI(a.replace(/%25/g, "%2525")) : decodeURIComponent(a) : ""; }
828
- function Uc(a, b, c) { return "string" === typeof a ? (a = encodeURI(a).replace(b, cd), c && (a = a.replace(/%25([0-9a-fA-F]{2})/g, "%$1")), a) : null; }
829
- function cd(a) { a = a.charCodeAt(0); return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16); }
830
- var Vc = /[#\/\?@]/g, Xc = /[#\?:]/g, Wc = /[#\?]/g, $c = /[#\?@]/g, Yc = /#/g;
831
- function Rc(a, b) { this.h = this.g = null; this.i = a || null; this.j = !!b; }
832
- function V(a) { a.g || (a.g = new S, a.h = 0, a.i && Nc(a.i, function (b, c) { a.add(decodeURIComponent(b.replace(/\+/g, " ")), c); })); }
833
- k = Rc.prototype;
834
- k.add = function (a, b) { V(this); this.i = null; a = W(this, a); var c = this.g.get(a); c || this.g.set(a, c = []); c.push(b); this.h += 1; return this; };
835
- function dd(a, b) { V(a); b = W(a, b); T(a.g.h, b) && (a.i = null, a.h -= a.g.get(b).length, a = a.g, T(a.h, b) && (delete a.h[b], a.i--, a.g.length > 2 * a.i && Lc(a))); }
836
- function ed(a, b) { V(a); b = W(a, b); return T(a.g.h, b); }
837
- k.forEach = function (a, b) { V(this); this.g.forEach(function (c, d) { na(c, function (e) { a.call(b, e, d, this); }, this); }, this); };
838
- k.T = function () { V(this); for (var a = this.g.R(), b = this.g.T(), c = [], d = 0; d < b.length; d++)
839
- for (var e = a[d], f = 0; f < e.length; f++)
840
- c.push(b[d]); return c; };
841
- k.R = function (a) { V(this); var b = []; if ("string" === typeof a)
842
- ed(this, a) && (b = qa(b, this.g.get(W(this, a))));
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.R();
817
+ a = Array.from(this.g.values());
845
818
  for (var c = 0; c < a.length; c++)
846
- b = qa(b, a[c]);
819
+ b = b.concat(a[c]);
847
820
  } return b; };
848
- k.set = function (a, b) { V(this); this.i = null; a = W(this, a); ed(this, a) && (this.h -= this.g.get(a).length); this.g.set(a, [b]); this.h += 1; return this; };
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.R(a); return 0 < a.length ? String(a[0]) : b; };
851
- function mc(a, b, c) { dd(a, b); 0 < c.length && (a.i = null, a.g.set(W(a, b), ra(c)), a.h += c.length); }
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 ""; for (var a = [], b = this.g.T(), c = 0; c < b.length; c++) {
855
- var d = b[c], e = encodeURIComponent(String(d));
856
- d = this.R(d);
857
- for (var f = 0; f < d.length; f++) {
858
- var h = e;
859
- "" !== d[f] && (h += "=" + encodeURIComponent(String(d[f])));
860
- a.push(h);
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 W(a, b) { b = String(b); a.j && (b = b.toLowerCase()); return b; }
864
- function Zc(a, b) { b && !a.j && (V(a), a.i = null, a.g.forEach(function (c, d) { var e = d.toLowerCase(); d != e && (dd(this, d), mc(this, e, c)); }, a)); a.j = b; }
865
- var fd = /** @class */ (function () {
866
- function fd(a, b) {
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 fd;
843
+ return Vc;
871
844
  }());
872
- function gd(a) { this.l = a || hd; l.PerformanceNavigationTiming ? (a = l.performance.getEntriesByType("navigation"), a = 0 < a.length && ("hq" == a[0].nextHopProtocol || "h2" == a[0].nextHopProtocol)) : a = !!(l.g && l.g.Ea && l.g.Ea() && l.g.Ea().Zb); this.j = a ? this.l : 1; this.g = null; 1 < this.j && (this.g = new Set); this.h = null; this.i = []; }
873
- var hd = 10;
874
- function id(a) { return a.h ? !0 : a.g ? a.g.size >= a.j : !1; }
875
- function Cc(a) { return a.h ? 1 : a.g ? a.g.size : 0; }
876
- function yc(a, b) { return a.h ? a.h == b : a.g ? a.g.has(b) : !1; }
877
- function Dc(a, b) { a.g ? a.g.add(b) : a.h = b; }
878
- function Fc(a, b) { a.h && a.h == b ? a.h = null : a.g && a.g.has(b) && a.g.delete(b); }
879
- gd.prototype.cancel = function () {
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 = jd(this);
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 jd(a) {
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 ra(a.i);
895
+ return ma(a.i);
923
896
  }
924
- function kd() { }
925
- kd.prototype.stringify = function (a) { return l.JSON.stringify(a, void 0); };
926
- kd.prototype.parse = function (a) { return l.JSON.parse(a, void 0); };
927
- function ld() { this.g = new kd; }
928
- function md(a, b, c) { var d = c || ""; try {
929
- Kc(a, function (e, f) { var h = e; p(e) && (h = rb(e)); b.push(d + f + "=" + encodeURIComponent(h)); });
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 nd(a, b) { var c = new Mb; if (l.Image) {
907
+ function cd(a, b) { var c = new Gb; if (l.Image) {
935
908
  var d_1 = new Image;
936
- d_1.onload = ja(od, c, d_1, "TestLoadImage: loaded", !0, b);
937
- d_1.onerror = ja(od, c, d_1, "TestLoadImage: error", !1, b);
938
- d_1.onabort = ja(od, c, d_1, "TestLoadImage: abort", !1, b);
939
- d_1.ontimeout = ja(od, c, d_1, "TestLoadImage: timeout", !1, b);
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 od(a, b, c, d, e) { try {
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 pd(a) { this.l = a.$b || null; this.j = a.ib || !1; }
951
- t(pd, Yb);
952
- pd.prototype.g = function () { return new qd(this.l, this.j); };
953
- pd.prototype.i = function (a) { return function () { return a; }; }({});
954
- function qd(a, b) { C.call(this); this.D = a; this.u = b; this.m = void 0; this.readyState = rd; 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; }
955
- t(qd, C);
956
- var rd = 0;
957
- k = qd.prototype;
958
- k.open = function (a, b) { if (this.readyState != rd)
959
- throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1; sd(this); };
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.ha.bind(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, td(this)); this.readyState = rd; };
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, sd(this)), this.g && (this.readyState = 3, sd(this), this.g)))
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.ha.bind(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
- ud(this);
950
+ jd(this);
978
951
  }
979
952
  else
980
- a.text().then(this.Ua.bind(this), this.ha.bind(this));
953
+ a.text().then(this.Ua.bind(this), this.ga.bind(this));
981
954
  };
982
- function ud(a) { a.j.read().then(a.Sa.bind(a)).catch(a.ha.bind(a)); }
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 ? td(this) : sd(this);
992
- 3 == this.readyState && ud(this);
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, td(this)); };
995
- k.Ta = function (a) { this.g && (this.response = a, td(this)); };
996
- k.ha = function () { this.g && td(this); };
997
- function td(a) { a.readyState = 4; a.l = null; a.j = null; a.A = null; sd(a); }
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 sd(a) { a.onreadystatechange && a.onreadystatechange.call(a); }
1004
- Object.defineProperty(qd.prototype, "withCredentials", { get: function () { return "include" === this.m; }, set: function (a) { this.m = a ? "include" : "same-origin"; } });
1005
- var vd = l.JSON.parse;
1006
- function X(a) { C.call(this); this.headers = new S; 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 = wd; this.K = this.L = !1; }
1007
- t(X, C);
1008
- var wd = "", xd = /^https?$/i, yd = ["POST", "PUT"];
1009
- k = X.prototype;
1010
- k.ea = function (a, b, c, d) {
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() : cc.g();
1020
- this.C = this.u ? Zb(this.u) : Zb(cc);
1021
- this.g.onreadystatechange = q(this.Fa, 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
- zd(this, f);
1000
+ od(this, f);
1027
1001
  return;
1028
1002
  }
1029
1003
  a = c || "";
1030
- var e = new S(this.headers);
1031
- d && Kc(d, function (f, h) { e.set(h, f); });
1032
- d = oa(e.T());
1033
- c = l.FormData && a instanceof l.FormData;
1034
- !(0 <= ma(yd, b)) || d || c || e.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
1035
- e.forEach(function (f, h) { this.g.setRequestHeader(h, f); }, this);
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 = this.L);
1043
+ "withCredentials" in this.g && this.g.withCredentials !== this.L && (this.g.withCredentials =
1044
+ this.L);
1038
1045
  try {
1039
- Ad(this), 0 < this.B && ((this.K = Bd(this.g)) ? (this.g.timeout = this.B, this.g.ontimeout = q(this.pa, this)) : this.A = Gb(this.pa, this.B, this)), this.v = !0, this.g.send(a), this.v = !1;
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
- zd(this, f);
1049
+ od(this, f);
1043
1050
  }
1044
1051
  };
1045
- function Bd(a) { return y && Ra() && "number" === typeof a.timeout && void 0 !== a.ontimeout; }
1046
- function pa(a) { return "content-type" == a.toLowerCase(); }
1047
- k.pa = function () { "undefined" != typeof goog && this.g && (this.j = "Timed out after " + this.B + "ms, aborting", this.m = 8, D(this, "timeout"), this.abort(8)); };
1048
- function zd(a, b) { a.h = !1; a.g && (a.l = !0, a.g.abort(), a.l = !1); a.j = b; a.m = 5; Cd(a); Dd(a); }
1049
- function Cd(a) { a.D || (a.D = !0, D(a, "complete"), D(a, "error")); }
1050
- k.abort = function (a) { this.g && this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1, this.m = a || 7, D(this, "complete"), D(this, "abort"), Dd(this)); };
1051
- k.M = function () { this.g && (this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1), Dd(this, !0)); X.Z.M.call(this); };
1052
- k.Fa = function () { this.s || (this.F || this.v || this.l ? Ed(this) : this.cb()); };
1053
- k.cb = function () { Ed(this); };
1054
- function Ed(a) {
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
- Gb(a.Fa, 0, a);
1058
- else if (D(a, "readystatechange"), 4 == O(a)) {
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.ba();
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(Mc)[1] || null;
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 = !xd.test(e ? e.toLowerCase() : "");
1089
+ d = !md.test(e ? e.toLowerCase() : "");
1084
1090
  }
1085
1091
  c = d;
1086
1092
  }
1087
1093
  if (c)
1088
- D(a, "complete"), D(a, "success");
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.ba() + "]";
1098
- Cd(a);
1103
+ a.j = h + " [" + a.aa() + "]";
1104
+ rd(a);
1099
1105
  }
1100
1106
  }
1101
1107
  finally {
1102
- Dd(a);
1108
+ sd(a);
1103
1109
  }
1104
1110
  }
1105
1111
  }
1106
- function Dd(a, b) { if (a.g) {
1107
- Ad(a);
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 || D(a, "ready");
1117
+ b || C(a, "ready");
1112
1118
  try {
1113
1119
  c.onreadystatechange = d;
1114
1120
  }
1115
1121
  catch (e) { }
1116
1122
  } }
1117
- function Ad(a) { a.g && a.K && (a.g.ontimeout = null); a.A && (l.clearTimeout(a.A), a.A = null); }
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.ba = function () { try {
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.ga = function () { try {
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.Qa = function (a) { if (this.g) {
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 vd(b);
1140
+ return kd(b);
1135
1141
  } };
1136
- function oc(a) { try {
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 wd:
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.Da = function () { return this.m; };
1153
- k.La = function () { return "string" === typeof this.j ? this.j : String(this.j); };
1154
- function Fd(a) { var b = ""; xa(a, function (c, d) { b += d; b += ":"; b += c; b += "\r\n"; }); return b; }
1155
- function Gd(a, b, c) { a: {
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 = Fd(c), "string" === typeof a ? (null != c && encodeURIComponent(String(c))) : R(a, b, c)); }
1162
- function Hd(a, b, c) { return c && c.internalChannelParams ? c.internalChannelParams[a] || b : b; }
1163
- function Id(a) {
1164
- this.za = 0;
1165
- this.l = [];
1166
- this.h = new Mb;
1167
- this.la = this.oa = this.F = this.W = this.g = this.sa = this.D = this.aa = this.o = this.P = this.s = null;
1168
- this.Za = this.V = 0;
1169
- this.Xa = Hd("failFast", !1, a);
1170
- this.N = this.v = this.u = this.m = this.j = null;
1171
- this.X = !0;
1172
- this.I = this.ta = this.U = -1;
1173
- this.Y = this.A = this.C = 0;
1174
- this.Pa = Hd("baseRetryDelayMs", 5E3, a);
1175
- this.$a = Hd("retryDelaySeedMs", 1E4, a);
1176
- this.Ya = Hd("forwardChannelMaxRetries", 2, a);
1177
- this.ra = Hd("forwardChannelRequestTimeoutMs", 2E4, a);
1178
- this.qa = a && a.xmlHttpFactory || void 0;
1179
- this.Ba = a && a.Yb || !1;
1180
- this.K = void 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.$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.J = "";
1183
- this.i = new gd(a && a.concurrentRequestLimit);
1184
- this.Ca = new ld;
1185
- this.ja = a && a.fastHandshake || !1;
1186
- this.Ra = a && a.Wb || !1;
1187
- a && a.Aa && this.h.Aa();
1188
- a && a.forceLongPolling && (this.X = !1);
1189
- this.$ = !this.ja && this.X && a && a.detectBufferingProxy || !1;
1190
- this.ka = void 0;
1191
- this.O = 0;
1192
- this.L = !1;
1193
- this.B = null;
1194
- this.Wa = !a || !1 !== a.Xb;
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 = Id.prototype;
1203
+ k = xd.prototype;
1197
1204
  k.ma = 8;
1198
1205
  k.G = 1;
1199
- function Ic(a) { Jd(a); if (3 == a.G) {
1200
- var b = a.V++, c = N(a.F);
1201
- R(c, "SID", a.J);
1202
- R(c, "RID", b);
1203
- R(c, "TYPE", "terminate");
1204
- Kd(a, c);
1205
- b = new M(a, a.h, b, void 0);
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 = jc(N(c));
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 = nc(b.l, null), b.g.ea(b.v));
1218
+ c || (b.g = gc(b.l, null), b.g.da(b.v));
1212
1219
  b.F = Date.now();
1213
- lc(b);
1214
- } Ld(a); }
1215
- k.hb = function (a) { try {
1216
- this.h.info("Origin Trials invoked: " + a);
1217
- }
1218
- catch (b) { } };
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.l = b.D.concat(a.l), !0; if (1 == a.G || 2 == a.G || a.C >= (a.Xa ? 0 : a.Ya))
1226
- return !1; a.m = K(q(a.Ha, a, b), Od(a, a.C)); a.C++; return !0; }
1227
- k.Ha = function (a) {
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.V = Math.floor(1E5 * Math.random());
1232
- a = this.V++;
1233
- var e = new M(this, this.h, a, void 0);
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.P && (f ? (f = ya(f), Aa(f, this.P)) : f = this.P);
1236
- null === this.o && (e.H = f);
1237
- if (this.ja)
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.l.length; c++) {
1242
+ for (var c = 0; c < this.i.length; c++) {
1241
1243
  b: {
1242
- var d = this.l[c];
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.l.length - 1) {
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 = 1E3;
1265
- b =
1266
- Pd(this, e, b);
1267
- c = N(this.F);
1268
- R(c, "RID", a);
1269
- R(c, "CVER", 22);
1270
- this.D && R(c, "X-HTTP-Session-Id", this.D);
1271
- Kd(this, c);
1272
- this.o && f && Gd(c, this.o, f);
1273
- Dc(this.i, e);
1274
- this.Ra && R(c, "TYPE", "init");
1275
- this.ja ? (R(c, "$req", b), R(c, "SID", "null"), e.$ = !0, ic(e, c, null)) : ic(e, c, b);
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 ? Qd(this, a) : 0 == this.l.length || id(this.i) || Qd(this));
1282
+ 3 == this.G && (a ? Ed(this, a) : 0 == this.i.length || Yc(this.h) || Ed(this));
1281
1283
  };
1282
- function Qd(a, b) { var c; b ? c = b.m : c = a.V++; var d = N(a.F); R(d, "SID", a.J); R(d, "RID", c); R(d, "AID", a.U); Kd(a, d); a.o && a.s && Gd(d, a.o, a.s); c = new M(a, a.h, c, a.C + 1); null === a.o && (c.H = a.s); b && (a.l = b.D.concat(a.l)); b = Pd(a, c, 1E3); c.setTimeout(Math.round(.5 * a.ra) + Math.round(.5 * a.ra * Math.random())); Dc(a.i, c); ic(c, d, b); }
1283
- function Kd(a, b) { a.j && Kc({}, function (c, d) { R(b, d, c); }); }
1284
- function Pd(a, b, c) { c = Math.min(a.l.length, c); var d = a.j ? q(a.j.Oa, a.j, a) : null; a: {
1285
- var e = a.l;
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
- md(r, h, "req" + m + "_");
1301
+ bd(r, h, "req" + m + "_");
1300
1302
  }
1301
- catch (G) {
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.l.splice(0, c); b.D = a; return d; }
1311
- function Gc(a) { a.g || a.u || (a.Y = 1, zb(a.Ga, a), a.A = 0); }
1312
- function Bc(a) { if (a.g || a.u || 3 <= a.A)
1313
- return !1; a.Y++; a.u = K(q(a.Ga, a), Od(a, a.A)); a.A++; return !0; }
1314
- k.Ga = function () { this.u = null; Rd(this); if (this.$ && !(this.L || null == this.g || 0 >= this.O)) {
1315
- var a = 2 * this.O;
1316
- this.h.info("BP detection timer enabled: " + a);
1317
- this.B = K(q(this.bb, this), a);
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.bb = function () { this.B && (this.B = null, this.h.info("BP detection timeout reached."), this.h.info("Buffering proxy detected and switch to long-polling!"), this.N = !1, this.L = !0, J(10), Ac(this), Rd(this)); };
1320
- function wc(a) { null != a.B && (l.clearTimeout(a.B), a.B = null); }
1321
- function Rd(a) { a.g = new M(a, a.h, "rpc", a.Y); null === a.o && (a.g.H = a.s); a.g.O = 0; var b = N(a.oa); R(b, "RID", "rpc"); R(b, "SID", a.J); R(b, "CI", a.N ? "0" : "1"); R(b, "AID", a.U); Kd(a, b); R(b, "TYPE", "xmlhttp"); a.o && a.s && Gd(b, a.o, a.s); a.K && a.g.setTimeout(a.K); var c = a.g; a = a.la; c.K = 1; c.v = jc(N(b)); c.s = null; c.U = !0; kc(c, a); }
1322
- k.ab = function () { null != this.v && (this.v = null, Ac(this), Bc(this), J(19)); };
1323
- function zc(a) { null != a.v && (l.clearTimeout(a.v), a.v = null); }
1324
- function uc(a, b) { var c = null; if (a.g == b) {
1325
- zc(a);
1326
- wc(a);
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 (yc(a.i, b))
1331
- c = b.D, Fc(a.i, b), d = 1;
1332
+ else if (qc(a.h, b))
1333
+ c = b.D, xc(a.h, b), d = 1;
1332
1334
  else
1333
- return; a.I = b.N; if (0 != a.G)
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 = Sb();
1340
- D(d, new Vb(d, c, b, e));
1341
- Hc(a);
1341
+ d = Mb();
1342
+ C(d, new Pb(d, c, b, e));
1343
+ zc(a);
1342
1344
  }
1343
1345
  else
1344
- Gc(a);
1345
- else if (e = b.o, 3 == e || 0 == e && 0 < a.I || !(1 == d && Nd(a, b) || 2 == d && Bc(a)))
1346
- switch (c && 0 < c.length && (b = a.i, b.i = b.i.concat(c)), e) {
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
- Q(a, 5);
1350
+ R(a, 5);
1349
1351
  break;
1350
1352
  case 4:
1351
- Q(a, 10);
1353
+ R(a, 10);
1352
1354
  break;
1353
1355
  case 3:
1354
- Q(a, 6);
1356
+ R(a, 6);
1355
1357
  break;
1356
- default: Q(a, 2);
1358
+ default: R(a, 2);
1357
1359
  } }
1358
- function Od(a, b) { var c = a.Pa + Math.floor(Math.random() * a.$a); a.j || (c *= 2); return c * b; }
1359
- function Q(a, b) { a.h.info("Error code " + b); if (2 == b) {
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.j && (c = null);
1363
+ a.l && (c = null);
1362
1364
  var d = q(a.jb, a);
1363
- c || (c = new U("//www.google.com/images/cleardot.gif"), l.location && "http" == l.location.protocol || Oc(c, "https"), jc(c));
1364
- nd(c.toString(), d);
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
- J(2); a.G = 0; a.j && a.j.va(b); Ld(a); Jd(a); }
1368
- k.jb = function (a) { a ? (this.h.info("Successfully pinged google.com"), J(2)) : (this.h.info("Failed to ping google.com"), J(1)); };
1369
- function Ld(a) { a.G = 0; a.I = -1; if (a.j) {
1370
- if (0 != jd(a.i).length || 0 != a.l.length)
1371
- a.i.i.length = 0, ra(a.l), a.l.length = 0;
1372
- a.j.ua();
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 Ec(a, b, c) { var d = ad(c); if ("" != d.i)
1375
- b && Pc(d, b + "." + d.i), Qc(d, d.m);
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 = bd(e.protocol, b ? b + "." + e.hostname : e.hostname, +e.port, c);
1379
- } a.aa && xa(a.aa, function (e, f) { R(d, f, e); }); b = a.D; c = a.sa; b && c && R(d, b, c); R(d, "VER", a.ma); Kd(a, d); return d; }
1380
- function nc(a, b, c) { if (b && !a.H)
1381
- throw Error("Can't create secondary domain capable XhrIo object."); b = c && a.Ba && !a.qa ? new X(new pd({ ib: !0 })) : new X(a.qa); b.L = a.H; return b; }
1382
- function Sd() { }
1383
- k = Sd.prototype;
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.Oa = function () { };
1389
- function Td() { if (y && !(10 <= Number(Ua)))
1399
+ k.Qa = function () { };
1400
+ function Hd() { if (y && !(10 <= Number(La)))
1390
1401
  throw Error("Environmental error: no available transport."); }
1391
- Td.prototype.g = function (a, b) { return new Y(a, b); };
1392
- function Y(a, b) {
1393
- C.call(this);
1394
- this.g = new Id(b);
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.P =
1414
+ this.g.S =
1404
1415
  a;
1405
- (a = b && b.httpHeadersOverwriteParam) && !sa(a) && (this.g.o = a);
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) && !sa(b) && (this.g.D = b, a = this.h, null !== a && b in a && (a = this.h, b in a && delete a[b]));
1409
- this.j = new Z(this);
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(Y, C);
1412
- Y.prototype.m = function () { this.g.j = this.j; this.A && (this.g.H = !0); var a = this.g, b = this.l, c = this.h || void 0; a.Wa && (a.h.info("Origin Trials enabled."), zb(q(a.hb, a, b))); J(0); a.W = b; a.aa = c || {}; a.N = a.X; a.F = Ec(a, null, a.W); Hc(a); };
1413
- Y.prototype.close = function () { Ic(this.g); };
1414
- Y.prototype.u = function (a) { if ("string" === typeof a) {
1415
- var b = {};
1416
- b.__data__ = a;
1417
- Md(this.g, b);
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 ? (b = {}, b.__data__ = rb(a), Md(this.g, b)) : Md(this.g, a); };
1421
- Y.prototype.M = function () { this.g.j = null; delete this.j; Ic(this.g); delete this.g; Y.Z.M.call(this); };
1422
- function Ud(a) { ac.call(this); var b = a.__sm__; if (b) {
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(Ud, ac);
1437
- function Vd() { bc.call(this); this.status = 1; }
1438
- t(Vd, bc);
1439
- function Z(a) { this.g = a; }
1440
- t(Z, Sd);
1441
- Z.prototype.xa = function () { D(this.g, "a"); };
1442
- Z.prototype.wa = function (a) { D(this.g, new Ud(a)); };
1443
- Z.prototype.va = function (a) { D(this.g, new Vd(a)); };
1444
- Z.prototype.ua = function () { D(this.g, "b"); }; /*
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
- Td.prototype.createWebChannel = Td.prototype.g;
1461
- Y.prototype.send = Y.prototype.u;
1462
- Y.prototype.open = Y.prototype.m;
1463
- Y.prototype.close = Y.prototype.close;
1464
- Wb.NO_ERROR = 0;
1465
- Wb.TIMEOUT = 8;
1466
- Wb.HTTP_ERROR = 6;
1467
- Xb.COMPLETE = "complete";
1468
- $b.EventType = L;
1469
- L.OPEN = "a";
1470
- L.CLOSE = "b";
1471
- L.ERROR = "c";
1472
- L.MESSAGE = "d";
1473
- C.prototype.listen = C.prototype.N;
1474
- X.prototype.listenOnce = X.prototype.O;
1475
- X.prototype.getLastError = X.prototype.La;
1476
- X.prototype.getLastErrorCode = X.prototype.Da;
1477
- X.prototype.getStatus = X.prototype.ba;
1478
- X.prototype.getResponseJson = X.prototype.Qa;
1479
- X.prototype.getResponseText = X.prototype.ga;
1480
- X.prototype.send = X.prototype.ea;
1481
- var createWebChannelTransport = esm.createWebChannelTransport = function () { return new Td; };
1482
- var getStatEventTarget = esm.getStatEventTarget = function () { return Sb(); };
1483
- var ErrorCode = esm.ErrorCode = Wb;
1484
- var EventType = esm.EventType = Xb;
1485
- var Event = esm.Event = H;
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 = pd;
1488
- var WebChannel = esm.WebChannel = $b;
1489
- var XhrIo = esm.XhrIo = X;
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