Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.esm.js 66KB

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