· 4 years ago · May 28, 2021, 10:34 PM
1(window.webpackJsonp = window.webpackJsonp || []).push([[267], {
2 509: function(e, n, t) {
3 "use strict";
4 var r = t(818)
5 , o = function() {};
6 o.prototype.start = function(e) {
7 if (!e.key && !e.targetUrl && !e.customReportingFunction)
8 throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");
9 if (!e.projectId && !e.targetUrl && !e.customReportingFunction)
10 throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");
11 this.customReportingFunction = e.customReportingFunction,
12 this.apiKey = e.key,
13 this.projectId = e.projectId,
14 this.targetUrl = e.targetUrl,
15 this.context = e.context || {},
16 this.serviceContext = {
17 service: e.service || "web"
18 },
19 e.version && (this.serviceContext.version = e.version),
20 this.reportUncaughtExceptions = !1 !== e.reportUncaughtExceptions,
21 this.reportUnhandledPromiseRejections = !1 !== e.reportUnhandledPromiseRejections,
22 this.disabled = !!e.disabled,
23 function(e) {
24 var n = function() {};
25 if (e.reportUncaughtExceptions) {
26 var t = window.onerror || n;
27 window.onerror = function(r, o, i, s, a) {
28 return a && e.report(a).catch(n),
29 t(r, o, i, s, a),
30 !0
31 }
32 }
33 if (e.reportUnhandledPromiseRejections) {
34 var r = window.onunhandledrejection || n;
35 window.onunhandledrejection = function(t) {
36 return t && e.report(t.reason).catch(n),
37 r(t.reason),
38 !0
39 }
40 }
41 }(this)
42 }
43 ,
44 o.prototype.report = function(e, n) {
45 if (this.disabled)
46 return Promise.resolve(null);
47 if (!e)
48 return Promise.reject(new Error("no error to report"));
49 n = n || {};
50 var t = {};
51 t.serviceContext = this.serviceContext,
52 t.context = this.context,
53 t.context.httpRequest = {
54 userAgent: window.navigator.userAgent,
55 url: window.location.href
56 };
57 var o = 0;
58 if ("string" == typeof e || e instanceof String) {
59 try {
60 throw new Error(e)
61 } catch (n) {
62 e = n
63 }
64 o = n.skipLocalFrames || 1
65 }
66 var i = this.targetUrl || "https://clouderrorreporting.googleapis.com/v1beta1/projects/" + this.projectId + "/events:report?key=" + this.apiKey
67 , s = this.customReportingFunction;
68 return function(e, n) {
69 return r.fromError(e).then((function(t) {
70 for (var r = [e.toString()], o = n; o < t.length; o++)
71 r.push([" at ", t[o].getFunctionName() || "<anonymous>", " (", t[o].getFileName(), ":", t[o].getLineNumber(), ":", t[o].getColumnNumber(), ")"].join(""));
72 return r.join("\n")
73 }
74 ), (function(n) {
75 return ["Error extracting stack trace: ", n, "\n", e.toString(), "\n", " (", e.file, ":", e.line, ":", e.column, ")"].join("")
76 }
77 ))
78 }(e, o).then((function(e) {
79 return t.message = e,
80 s ? s(t) : function(e, n) {
81 var t = new XMLHttpRequest;
82 return t.open("POST", e, !0),
83 t.setRequestHeader("Content-Type", "application/json; charset=UTF-8"),
84 new Promise((function(e, r) {
85 t.onreadystatechange = function() {
86 if (4 === t.readyState) {
87 var o = t.status;
88 if (o >= 200 && o < 300)
89 e({
90 message: n.message
91 });
92 else
93 r(new Error((o ? o + " http response" : "network error") + " on stackdriver report"))
94 }
95 }
96 ,
97 t.send(JSON.stringify(n))
98 }
99 ))
100 }(i, t)
101 }
102 ))
103 }
104 ,
105 o.prototype.setUser = function(e) {
106 this.context.user = e
107 }
108 ,
109 e.exports = o
110 },
111 594: function(e, n, t) {
112 "use strict";
113 n.getArg = function(e, n, t) {
114 if (n in e)
115 return e[n];
116 if (3 === arguments.length)
117 return t;
118 throw new Error('"' + n + '" is a required argument.')
119 }
120 ;
121 var r = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/
122 , o = /^data:.+\,.+$/;
123 function i(e) {
124 var n = e.match(r);
125 return n ? {
126 scheme: n[1],
127 auth: n[2],
128 host: n[3],
129 port: n[4],
130 path: n[5]
131 } : null
132 }
133 function s(e) {
134 var n = "";
135 return e.scheme && (n += e.scheme + ":"),
136 n += "//",
137 e.auth && (n += e.auth + "@"),
138 e.host && (n += e.host),
139 e.port && (n += ":" + e.port),
140 e.path && (n += e.path),
141 n
142 }
143 function a(e) {
144 var t = e
145 , r = i(e);
146 if (r) {
147 if (!r.path)
148 return e;
149 t = r.path
150 }
151 for (var o, a = n.isAbsolute(t), u = t.split(/\/+/), c = 0, l = u.length - 1; l >= 0; l--)
152 "." === (o = u[l]) ? u.splice(l, 1) : ".." === o ? c++ : c > 0 && ("" === o ? (u.splice(l + 1, c),
153 c = 0) : (u.splice(l, 2),
154 c--));
155 return "" === (t = u.join("/")) && (t = a ? "/" : "."),
156 r ? (r.path = t,
157 s(r)) : t
158 }
159 n.urlParse = i,
160 n.urlGenerate = s,
161 n.normalize = a,
162 n.join = function(e, n) {
163 "" === e && (e = "."),
164 "" === n && (n = ".");
165 var t = i(n)
166 , r = i(e);
167 if (r && (e = r.path || "/"),
168 t && !t.scheme)
169 return r && (t.scheme = r.scheme),
170 s(t);
171 if (t || n.match(o))
172 return n;
173 if (r && !r.host && !r.path)
174 return r.host = n,
175 s(r);
176 var u = "/" === n.charAt(0) ? n : a(e.replace(/\/+$/, "") + "/" + n);
177 return r ? (r.path = u,
178 s(r)) : u
179 }
180 ,
181 n.isAbsolute = function(e) {
182 return "/" === e.charAt(0) || !!e.match(r)
183 }
184 ,
185 n.relative = function(e, n) {
186 "" === e && (e = "."),
187 e = e.replace(/\/$/, "");
188 for (var t = 0; 0 !== n.indexOf(e + "/"); ) {
189 var r = e.lastIndexOf("/");
190 if (r < 0)
191 return n;
192 if ((e = e.slice(0, r)).match(/^([^\/]+:\/)?\/*$/))
193 return n;
194 ++t
195 }
196 return Array(t + 1).join("../") + n.substr(e.length + 1)
197 }
198 ;
199 var u = !("__proto__"in Object.create(null));
200 function c(e) {
201 return e
202 }
203 function l(e) {
204 if (!e)
205 return !1;
206 var n = e.length;
207 if (n < 9)
208 return !1;
209 if (95 !== e.charCodeAt(n - 1) || 95 !== e.charCodeAt(n - 2) || 111 !== e.charCodeAt(n - 3) || 116 !== e.charCodeAt(n - 4) || 111 !== e.charCodeAt(n - 5) || 114 !== e.charCodeAt(n - 6) || 112 !== e.charCodeAt(n - 7) || 95 !== e.charCodeAt(n - 8) || 95 !== e.charCodeAt(n - 9))
210 return !1;
211 for (var t = n - 10; t >= 0; t--)
212 if (36 !== e.charCodeAt(t))
213 return !1;
214 return !0
215 }
216 function p(e, n) {
217 return e === n ? 0 : e > n ? 1 : -1
218 }
219 n.toSetString = u ? c : function(e) {
220 return l(e) ? "$" + e : e
221 }
222 ,
223 n.fromSetString = u ? c : function(e) {
224 return l(e) ? e.slice(1) : e
225 }
226 ,
227 n.compareByOriginalPositions = function(e, n, t) {
228 var r = e.source - n.source;
229 return 0 !== r || 0 !== (r = e.originalLine - n.originalLine) || 0 !== (r = e.originalColumn - n.originalColumn) || t || 0 !== (r = e.generatedColumn - n.generatedColumn) || 0 !== (r = e.generatedLine - n.generatedLine) ? r : e.name - n.name
230 }
231 ,
232 n.compareByGeneratedPositionsDeflated = function(e, n, t) {
233 var r = e.generatedLine - n.generatedLine;
234 return 0 !== r || 0 !== (r = e.generatedColumn - n.generatedColumn) || t || 0 !== (r = e.source - n.source) || 0 !== (r = e.originalLine - n.originalLine) || 0 !== (r = e.originalColumn - n.originalColumn) ? r : e.name - n.name
235 }
236 ,
237 n.compareByGeneratedPositionsInflated = function(e, n) {
238 var t = e.generatedLine - n.generatedLine;
239 return 0 !== t || 0 !== (t = e.generatedColumn - n.generatedColumn) || 0 !== (t = p(e.source, n.source)) || 0 !== (t = e.originalLine - n.originalLine) || 0 !== (t = e.originalColumn - n.originalColumn) ? t : p(e.name, n.name)
240 }
241 },
242 673: function(e, n, t) {
243 "use strict";
244 var r, o, i;
245 o = [],
246 void 0 === (i = "function" == typeof (r = function() {
247 function e(e) {
248 return e.charAt(0).toUpperCase() + e.substring(1)
249 }
250 function n(e) {
251 return function() {
252 return this[e]
253 }
254 }
255 var t = ["isConstructor", "isEval", "isNative", "isToplevel"]
256 , r = ["columnNumber", "lineNumber"]
257 , o = ["fileName", "functionName", "source"]
258 , i = t.concat(r, o, ["args"], ["evalOrigin"]);
259 function s(n) {
260 if (n)
261 for (var t = 0; t < i.length; t++)
262 void 0 !== n[i[t]] && this["set" + e(i[t])](n[i[t]])
263 }
264 s.prototype = {
265 getArgs: function() {
266 return this.args
267 },
268 setArgs: function(e) {
269 if ("[object Array]" !== Object.prototype.toString.call(e))
270 throw new TypeError("Args must be an Array");
271 this.args = e
272 },
273 getEvalOrigin: function() {
274 return this.evalOrigin
275 },
276 setEvalOrigin: function(e) {
277 if (e instanceof s)
278 this.evalOrigin = e;
279 else {
280 if (!(e instanceof Object))
281 throw new TypeError("Eval Origin must be an Object or StackFrame");
282 this.evalOrigin = new s(e)
283 }
284 },
285 toString: function() {
286 var e = this.getFileName() || ""
287 , n = this.getLineNumber() || ""
288 , t = this.getColumnNumber() || ""
289 , r = this.getFunctionName() || "";
290 return this.getIsEval() ? e ? "[eval] (" + e + ":" + n + ":" + t + ")" : "[eval]:" + n + ":" + t : r ? r + " (" + e + ":" + n + ":" + t + ")" : e + ":" + n + ":" + t
291 }
292 },
293 s.fromString = function(e) {
294 var n = e.indexOf("(")
295 , t = e.lastIndexOf(")")
296 , r = e.substring(0, n)
297 , o = e.substring(n + 1, t).split(",")
298 , i = e.substring(t + 1);
299 if (0 === i.indexOf("@"))
300 var a = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i, "")
301 , u = a[1]
302 , c = a[2]
303 , l = a[3];
304 return new s({
305 functionName: r,
306 args: o || void 0,
307 fileName: u,
308 lineNumber: c || void 0,
309 columnNumber: l || void 0
310 })
311 }
312 ;
313 for (var a = 0; a < t.length; a++)
314 s.prototype["get" + e(t[a])] = n(t[a]),
315 s.prototype["set" + e(t[a])] = function(e) {
316 return function(n) {
317 this[e] = Boolean(n)
318 }
319 }(t[a]);
320 for (var u = 0; u < r.length; u++)
321 s.prototype["get" + e(r[u])] = n(r[u]),
322 s.prototype["set" + e(r[u])] = function(e) {
323 return function(n) {
324 if (t = n,
325 isNaN(parseFloat(t)) || !isFinite(t))
326 throw new TypeError(e + " must be a Number");
327 var t;
328 this[e] = Number(n)
329 }
330 }(r[u]);
331 for (var c = 0; c < o.length; c++)
332 s.prototype["get" + e(o[c])] = n(o[c]),
333 s.prototype["set" + e(o[c])] = function(e) {
334 return function(n) {
335 this[e] = String(n)
336 }
337 }(o[c]);
338 return s
339 }
340 ) ? r.apply(n, o) : r) || (e.exports = i)
341 },
342 687: function(e, n, t) {
343 "use strict";
344 var r = t(688)
345 , o = t(594)
346 , i = t(689).ArraySet
347 , s = t(824).MappingList;
348 function a(e) {
349 e || (e = {}),
350 this._file = o.getArg(e, "file", null),
351 this._sourceRoot = o.getArg(e, "sourceRoot", null),
352 this._skipValidation = o.getArg(e, "skipValidation", !1),
353 this._sources = new i,
354 this._names = new i,
355 this._mappings = new s,
356 this._sourcesContents = null
357 }
358 a.prototype._version = 3,
359 a.fromSourceMap = function(e) {
360 var n = e.sourceRoot
361 , t = new a({
362 file: e.file,
363 sourceRoot: n
364 });
365 return e.eachMapping((function(e) {
366 var r = {
367 generated: {
368 line: e.generatedLine,
369 column: e.generatedColumn
370 }
371 };
372 null != e.source && (r.source = e.source,
373 null != n && (r.source = o.relative(n, r.source)),
374 r.original = {
375 line: e.originalLine,
376 column: e.originalColumn
377 },
378 null != e.name && (r.name = e.name)),
379 t.addMapping(r)
380 }
381 )),
382 e.sources.forEach((function(n) {
383 var r = e.sourceContentFor(n);
384 null != r && t.setSourceContent(n, r)
385 }
386 )),
387 t
388 }
389 ,
390 a.prototype.addMapping = function(e) {
391 var n = o.getArg(e, "generated")
392 , t = o.getArg(e, "original", null)
393 , r = o.getArg(e, "source", null)
394 , i = o.getArg(e, "name", null);
395 this._skipValidation || this._validateMapping(n, t, r, i),
396 null != r && (r = String(r),
397 this._sources.has(r) || this._sources.add(r)),
398 null != i && (i = String(i),
399 this._names.has(i) || this._names.add(i)),
400 this._mappings.add({
401 generatedLine: n.line,
402 generatedColumn: n.column,
403 originalLine: null != t && t.line,
404 originalColumn: null != t && t.column,
405 source: r,
406 name: i
407 })
408 }
409 ,
410 a.prototype.setSourceContent = function(e, n) {
411 var t = e;
412 null != this._sourceRoot && (t = o.relative(this._sourceRoot, t)),
413 null != n ? (this._sourcesContents || (this._sourcesContents = Object.create(null)),
414 this._sourcesContents[o.toSetString(t)] = n) : this._sourcesContents && (delete this._sourcesContents[o.toSetString(t)],
415 0 === Object.keys(this._sourcesContents).length && (this._sourcesContents = null))
416 }
417 ,
418 a.prototype.applySourceMap = function(e, n, t) {
419 var r = n;
420 if (null == n) {
421 if (null == e.file)
422 throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');
423 r = e.file
424 }
425 var s = this._sourceRoot;
426 null != s && (r = o.relative(s, r));
427 var a = new i
428 , u = new i;
429 this._mappings.unsortedForEach((function(n) {
430 if (n.source === r && null != n.originalLine) {
431 var i = e.originalPositionFor({
432 line: n.originalLine,
433 column: n.originalColumn
434 });
435 null != i.source && (n.source = i.source,
436 null != t && (n.source = o.join(t, n.source)),
437 null != s && (n.source = o.relative(s, n.source)),
438 n.originalLine = i.line,
439 n.originalColumn = i.column,
440 null != i.name && (n.name = i.name))
441 }
442 var c = n.source;
443 null == c || a.has(c) || a.add(c);
444 var l = n.name;
445 null == l || u.has(l) || u.add(l)
446 }
447 ), this),
448 this._sources = a,
449 this._names = u,
450 e.sources.forEach((function(n) {
451 var r = e.sourceContentFor(n);
452 null != r && (null != t && (n = o.join(t, n)),
453 null != s && (n = o.relative(s, n)),
454 this.setSourceContent(n, r))
455 }
456 ), this)
457 }
458 ,
459 a.prototype._validateMapping = function(e, n, t, r) {
460 if ((!(e && "line"in e && "column"in e && e.line > 0 && e.column >= 0) || n || t || r) && !(e && "line"in e && "column"in e && n && "line"in n && "column"in n && e.line > 0 && e.column >= 0 && n.line > 0 && n.column >= 0 && t))
461 throw new Error("Invalid mapping: " + JSON.stringify({
462 generated: e,
463 source: t,
464 original: n,
465 name: r
466 }))
467 }
468 ,
469 a.prototype._serializeMappings = function() {
470 for (var e, n, t, i, s = 0, a = 1, u = 0, c = 0, l = 0, p = 0, h = "", f = this._mappings.toArray(), g = 0, m = f.length; g < m; g++) {
471 if (e = "",
472 (n = f[g]).generatedLine !== a)
473 for (s = 0; n.generatedLine !== a; )
474 e += ";",
475 a++;
476 else if (g > 0) {
477 if (!o.compareByGeneratedPositionsInflated(n, f[g - 1]))
478 continue;
479 e += ","
480 }
481 e += r.encode(n.generatedColumn - s),
482 s = n.generatedColumn,
483 null != n.source && (i = this._sources.indexOf(n.source),
484 e += r.encode(i - p),
485 p = i,
486 e += r.encode(n.originalLine - 1 - c),
487 c = n.originalLine - 1,
488 e += r.encode(n.originalColumn - u),
489 u = n.originalColumn,
490 null != n.name && (t = this._names.indexOf(n.name),
491 e += r.encode(t - l),
492 l = t)),
493 h += e
494 }
495 return h
496 }
497 ,
498 a.prototype._generateSourcesContent = function(e, n) {
499 return e.map((function(e) {
500 if (!this._sourcesContents)
501 return null;
502 null != n && (e = o.relative(n, e));
503 var t = o.toSetString(e);
504 return Object.prototype.hasOwnProperty.call(this._sourcesContents, t) ? this._sourcesContents[t] : null
505 }
506 ), this)
507 }
508 ,
509 a.prototype.toJSON = function() {
510 var e = {
511 version: this._version,
512 sources: this._sources.toArray(),
513 names: this._names.toArray(),
514 mappings: this._serializeMappings()
515 };
516 return null != this._file && (e.file = this._file),
517 null != this._sourceRoot && (e.sourceRoot = this._sourceRoot),
518 this._sourcesContents && (e.sourcesContent = this._generateSourcesContent(e.sources, e.sourceRoot)),
519 e
520 }
521 ,
522 a.prototype.toString = function() {
523 return JSON.stringify(this.toJSON())
524 }
525 ,
526 n.SourceMapGenerator = a
527 },
528 688: function(e, n, t) {
529 "use strict";
530 var r = t(823);
531 n.encode = function(e) {
532 var n, t = "", o = function(e) {
533 return e < 0 ? 1 + (-e << 1) : 0 + (e << 1)
534 }(e);
535 do {
536 n = 31 & o,
537 (o >>>= 5) > 0 && (n |= 32),
538 t += r.encode(n)
539 } while (o > 0);
540 return t
541 }
542 ,
543 n.decode = function(e, n, t) {
544 var o, i, s, a, u = e.length, c = 0, l = 0;
545 do {
546 if (n >= u)
547 throw new Error("Expected more digits in base 64 VLQ value.");
548 if (-1 === (i = r.decode(e.charCodeAt(n++))))
549 throw new Error("Invalid base64 digit: " + e.charAt(n - 1));
550 o = !!(32 & i),
551 c += (i &= 31) << l,
552 l += 5
553 } while (o);
554 t.value = (a = (s = c) >> 1,
555 1 == (1 & s) ? -a : a),
556 t.rest = n
557 }
558 },
559 689: function(e, n, t) {
560 "use strict";
561 var r = t(594)
562 , o = Object.prototype.hasOwnProperty;
563 function i() {
564 this._array = [],
565 this._set = Object.create(null)
566 }
567 i.fromArray = function(e, n) {
568 for (var t = new i, r = 0, o = e.length; r < o; r++)
569 t.add(e[r], n);
570 return t
571 }
572 ,
573 i.prototype.size = function() {
574 return Object.getOwnPropertyNames(this._set).length
575 }
576 ,
577 i.prototype.add = function(e, n) {
578 var t = r.toSetString(e)
579 , i = o.call(this._set, t)
580 , s = this._array.length;
581 i && !n || this._array.push(e),
582 i || (this._set[t] = s)
583 }
584 ,
585 i.prototype.has = function(e) {
586 var n = r.toSetString(e);
587 return o.call(this._set, n)
588 }
589 ,
590 i.prototype.indexOf = function(e) {
591 var n = r.toSetString(e);
592 if (o.call(this._set, n))
593 return this._set[n];
594 throw new Error('"' + e + '" is not in the set.')
595 }
596 ,
597 i.prototype.at = function(e) {
598 if (e >= 0 && e < this._array.length)
599 return this._array[e];
600 throw new Error("No element indexed by " + e)
601 }
602 ,
603 i.prototype.toArray = function() {
604 return this._array.slice()
605 }
606 ,
607 n.ArraySet = i
608 },
609 818: function(e, n, t) {
610 "use strict";
611 var r, o, i;
612 o = [t(819), t(820), t(821)],
613 void 0 === (i = "function" == typeof (r = function(e, n, t) {
614 var r = {
615 filter: function(e) {
616 return -1 === (e.functionName || "").indexOf("StackTrace$$") && -1 === (e.functionName || "").indexOf("ErrorStackParser$$") && -1 === (e.functionName || "").indexOf("StackTraceGPS$$") && -1 === (e.functionName || "").indexOf("StackGenerator$$")
617 },
618 sourceCache: {}
619 }
620 , o = function() {
621 try {
622 throw new Error
623 } catch (e) {
624 return e
625 }
626 };
627 function i(e, n) {
628 var t = {};
629 return [e, n].forEach((function(e) {
630 for (var n in e)
631 Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
632 return t
633 }
634 )),
635 t
636 }
637 function s(e) {
638 return e.stack || e["opera#sourceloc"]
639 }
640 function a(e, n) {
641 return "function" == typeof n ? e.filter(n) : e
642 }
643 return {
644 get: function(e) {
645 var n = o();
646 return s(n) ? this.fromError(n, e) : this.generateArtificially(e)
647 },
648 getSync: function(t) {
649 t = i(r, t);
650 var u = o();
651 return a(s(u) ? e.parse(u) : n.backtrace(t), t.filter)
652 },
653 fromError: function(n, o) {
654 o = i(r, o);
655 var s = new t(o);
656 return new Promise(function(t) {
657 var r = a(e.parse(n), o.filter);
658 t(Promise.all(r.map((function(e) {
659 return new Promise((function(n) {
660 function t() {
661 n(e)
662 }
663 s.pinpoint(e).then(n, t).catch(t)
664 }
665 ))
666 }
667 ))))
668 }
669 .bind(this))
670 },
671 generateArtificially: function(e) {
672 e = i(r, e);
673 var t = n.backtrace(e);
674 return "function" == typeof e.filter && (t = t.filter(e.filter)),
675 Promise.resolve(t)
676 },
677 instrument: function(e, n, t, r) {
678 if ("function" != typeof e)
679 throw new Error("Cannot instrument non-function object");
680 if ("function" == typeof e.__stacktraceOriginalFn)
681 return e;
682 var o = function() {
683 try {
684 return this.get().then(n, t).catch(t),
685 e.apply(r || this, arguments)
686 } catch (e) {
687 throw s(e) && this.fromError(e).then(n, t).catch(t),
688 e
689 }
690 }
691 .bind(this);
692 return o.__stacktraceOriginalFn = e,
693 o
694 },
695 deinstrument: function(e) {
696 if ("function" != typeof e)
697 throw new Error("Cannot de-instrument non-function object");
698 return "function" == typeof e.__stacktraceOriginalFn ? e.__stacktraceOriginalFn : e
699 },
700 report: function(e, n, t, r) {
701 return new Promise((function(o, i) {
702 var s = new XMLHttpRequest;
703 if (s.onerror = i,
704 s.onreadystatechange = function() {
705 4 === s.readyState && (s.status >= 200 && s.status < 400 ? o(s.responseText) : i(new Error("POST to " + n + " failed with status: " + s.status)))
706 }
707 ,
708 s.open("post", n),
709 s.setRequestHeader("Content-Type", "application/json"),
710 r && "object" == typeof r.headers) {
711 var a = r.headers;
712 for (var u in a)
713 Object.prototype.hasOwnProperty.call(a, u) && s.setRequestHeader(u, a[u])
714 }
715 var c = {
716 stack: e
717 };
718 null != t && (c.message = t),
719 s.send(JSON.stringify(c))
720 }
721 ))
722 }
723 }
724 }
725 ) ? r.apply(n, o) : r) || (e.exports = i)
726 },
727 819: function(e, n, t) {
728 "use strict";
729 var r, o, i;
730 o = [t(673)],
731 void 0 === (i = "function" == typeof (r = function(e) {
732 var n = /(^|@)\S+:\d+/
733 , t = /^\s*at .*(\S+:\d+|\(native\))/m
734 , r = /^(eval@)?(\[native code])?$/;
735 return {
736 parse: function(e) {
737 if (void 0 !== e.stacktrace || void 0 !== e["opera#sourceloc"])
738 return this.parseOpera(e);
739 if (e.stack && e.stack.match(t))
740 return this.parseV8OrIE(e);
741 if (e.stack)
742 return this.parseFFOrSafari(e);
743 throw new Error("Cannot parse given Error object")
744 },
745 extractLocation: function(e) {
746 if (-1 === e.indexOf(":"))
747 return [e];
748 var n = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
749 return [n[1], n[2] || void 0, n[3] || void 0]
750 },
751 parseV8OrIE: function(n) {
752 return n.stack.split("\n").filter((function(e) {
753 return !!e.match(t)
754 }
755 ), this).map((function(n) {
756 n.indexOf("(eval ") > -1 && (n = n.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
757 var t = n.replace(/^\s+/, "").replace(/\(eval code/g, "(")
758 , r = t.match(/ (\((.+):(\d+):(\d+)\)$)/)
759 , o = (t = r ? t.replace(r[0], "") : t).split(/\s+/).slice(1)
760 , i = this.extractLocation(r ? r[1] : o.pop())
761 , s = o.join(" ") || void 0
762 , a = ["eval", "<anonymous>"].indexOf(i[0]) > -1 ? void 0 : i[0];
763 return new e({
764 functionName: s,
765 fileName: a,
766 lineNumber: i[1],
767 columnNumber: i[2],
768 source: n
769 })
770 }
771 ), this)
772 },
773 parseFFOrSafari: function(n) {
774 return n.stack.split("\n").filter((function(e) {
775 return !e.match(r)
776 }
777 ), this).map((function(n) {
778 if (n.indexOf(" > eval") > -1 && (n = n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")),
779 -1 === n.indexOf("@") && -1 === n.indexOf(":"))
780 return new e({
781 functionName: n
782 });
783 var t = /((.*".+"[^@]*)?[^@]*)(?:@)/
784 , r = n.match(t)
785 , o = r && r[1] ? r[1] : void 0
786 , i = this.extractLocation(n.replace(t, ""));
787 return new e({
788 functionName: o,
789 fileName: i[0],
790 lineNumber: i[1],
791 columnNumber: i[2],
792 source: n
793 })
794 }
795 ), this)
796 },
797 parseOpera: function(e) {
798 return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e)
799 },
800 parseOpera9: function(n) {
801 for (var t = /Line (\d+).*script (?:in )?(\S+)/i, r = n.message.split("\n"), o = [], i = 2, s = r.length; i < s; i += 2) {
802 var a = t.exec(r[i]);
803 a && o.push(new e({
804 fileName: a[2],
805 lineNumber: a[1],
806 source: r[i]
807 }))
808 }
809 return o
810 },
811 parseOpera10: function(n) {
812 for (var t = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = n.stacktrace.split("\n"), o = [], i = 0, s = r.length; i < s; i += 2) {
813 var a = t.exec(r[i]);
814 a && o.push(new e({
815 functionName: a[3] || void 0,
816 fileName: a[2],
817 lineNumber: a[1],
818 source: r[i]
819 }))
820 }
821 return o
822 },
823 parseOpera11: function(t) {
824 return t.stack.split("\n").filter((function(e) {
825 return !!e.match(n) && !e.match(/^Error created at/)
826 }
827 ), this).map((function(n) {
828 var t, r = n.split("@"), o = this.extractLocation(r.pop()), i = r.shift() || "", s = i.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
829 i.match(/\(([^)]*)\)/) && (t = i.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
830 var a = void 0 === t || "[arguments not available]" === t ? void 0 : t.split(",");
831 return new e({
832 functionName: s,
833 args: a,
834 fileName: o[0],
835 lineNumber: o[1],
836 columnNumber: o[2],
837 source: n
838 })
839 }
840 ), this)
841 }
842 }
843 }
844 ) ? r.apply(n, o) : r) || (e.exports = i)
845 },
846 820: function(e, n, t) {
847 "use strict";
848 var r, o, i;
849 o = [t(673)],
850 void 0 === (i = "function" == typeof (r = function(e) {
851 return {
852 backtrace: function(n) {
853 var t = []
854 , r = 10;
855 "object" == typeof n && "number" == typeof n.maxStackSize && (r = n.maxStackSize);
856 for (var o = arguments.callee; o && t.length < r && o.arguments; ) {
857 for (var i = new Array(o.arguments.length), s = 0; s < i.length; ++s)
858 i[s] = o.arguments[s];
859 /function(?:\s+([\w$]+))+\s*\(/.test(o.toString()) ? t.push(new e({
860 functionName: RegExp.$1 || void 0,
861 args: i
862 })) : t.push(new e({
863 args: i
864 }));
865 try {
866 o = o.caller
867 } catch (e) {
868 break
869 }
870 }
871 return t
872 }
873 }
874 }
875 ) ? r.apply(n, o) : r) || (e.exports = i)
876 },
877 821: function(e, n, t) {
878 "use strict";
879 var r, o, i;
880 o = [t(822), t(673)],
881 void 0 === (i = "function" == typeof (r = function(e, n) {
882 function t(e) {
883 return new Promise((function(n, t) {
884 var r = new XMLHttpRequest;
885 r.open("get", e),
886 r.onerror = t,
887 r.onreadystatechange = function() {
888 4 === r.readyState && (r.status >= 200 && r.status < 300 || "file://" === e.substr(0, 7) && r.responseText ? n(r.responseText) : t(new Error("HTTP status: " + r.status + " retrieving " + e)))
889 }
890 ,
891 r.send()
892 }
893 ))
894 }
895 function r(e) {
896 if ("undefined" != typeof window && window.atob)
897 return window.atob(e);
898 throw new Error("You must supply a polyfill for window.atob in this environment")
899 }
900 function o(e) {
901 if ("object" != typeof e)
902 throw new TypeError("Given StackFrame is not an object");
903 if ("string" != typeof e.fileName)
904 throw new TypeError("Given file name is not a String");
905 if ("number" != typeof e.lineNumber || e.lineNumber % 1 != 0 || e.lineNumber < 1)
906 throw new TypeError("Given line number must be a positive integer");
907 if ("number" != typeof e.columnNumber || e.columnNumber % 1 != 0 || e.columnNumber < 0)
908 throw new TypeError("Given column number must be a non-negative integer");
909 return !0
910 }
911 return function i(s) {
912 if (!(this instanceof i))
913 return new i(s);
914 s = s || {},
915 this.sourceCache = s.sourceCache || {},
916 this.sourceMapConsumerCache = s.sourceMapConsumerCache || {},
917 this.ajax = s.ajax || t,
918 this._atob = s.atob || r,
919 this._get = function(e) {
920 return new Promise(function(n, t) {
921 var r = "data:" === e.substr(0, 5);
922 if (this.sourceCache[e])
923 n(this.sourceCache[e]);
924 else if (s.offline && !r)
925 t(new Error("Cannot make network requests in offline mode"));
926 else if (r) {
927 var o = e.match(/^data:application\/json;([\w=:"-]+;)*base64,/);
928 if (o) {
929 var i = o[0].length
930 , a = e.substr(i)
931 , u = this._atob(a);
932 this.sourceCache[e] = u,
933 n(u)
934 } else
935 t(new Error("The encoding of the inline sourcemap is not supported"))
936 } else {
937 var c = this.ajax(e, {
938 method: "get"
939 });
940 this.sourceCache[e] = c,
941 c.then(n, t)
942 }
943 }
944 .bind(this))
945 }
946 ,
947 this._getSourceMapConsumer = function(n, t) {
948 return new Promise(function(r) {
949 if (this.sourceMapConsumerCache[n])
950 r(this.sourceMapConsumerCache[n]);
951 else {
952 var o = new Promise(function(r, o) {
953 return this._get(n).then((function(n) {
954 "string" == typeof n && (n = function(e) {
955 if ("undefined" != typeof JSON && JSON.parse)
956 return JSON.parse(e);
957 throw new Error("You must supply a polyfill for JSON.parse in this environment")
958 }(n.replace(/^\)\]\}'/, ""))),
959 void 0 === n.sourceRoot && (n.sourceRoot = t),
960 r(new e.SourceMapConsumer(n))
961 }
962 ), o)
963 }
964 .bind(this));
965 this.sourceMapConsumerCache[n] = o,
966 r(o)
967 }
968 }
969 .bind(this))
970 }
971 ,
972 this.pinpoint = function(e) {
973 return new Promise(function(n, t) {
974 this.getMappedLocation(e).then(function(e) {
975 function t() {
976 n(e)
977 }
978 this.findFunctionName(e).then(n, t).catch(t)
979 }
980 .bind(this), t)
981 }
982 .bind(this))
983 }
984 ,
985 this.findFunctionName = function(e) {
986 return new Promise(function(t, r) {
987 o(e),
988 this._get(e.fileName).then((function(r) {
989 var o = e.lineNumber
990 , i = e.columnNumber
991 , s = function(e, n) {
992 for (var t = [/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/, /function\s+([^('"`]*?)\s*\(([^)]*)\)/, /['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/, /\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/, /['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/], r = e.split("\n"), o = "", i = Math.min(n, 20), s = 0; s < i; ++s) {
993 var a = r[n - s - 1]
994 , u = a.indexOf("//");
995 if (u >= 0 && (a = a.substr(0, u)),
996 a) {
997 o = a + o;
998 for (var c = t.length, l = 0; l < c; l++) {
999 var p = t[l].exec(o);
1000 if (p && p[1])
1001 return p[1]
1002 }
1003 }
1004 }
1005 }(r, o);
1006 t(s ? new n({
1007 functionName: s,
1008 args: e.args,
1009 fileName: e.fileName,
1010 lineNumber: o,
1011 columnNumber: i
1012 }) : e)
1013 }
1014 ), r).catch(r)
1015 }
1016 .bind(this))
1017 }
1018 ,
1019 this.getMappedLocation = function(e) {
1020 return new Promise(function(t, r) {
1021 !function() {
1022 if ("function" != typeof Object.defineProperty || "function" != typeof Object.create)
1023 throw new Error("Unable to consume source maps in older browsers")
1024 }(),
1025 o(e);
1026 var i = this.sourceCache
1027 , s = e.fileName;
1028 this._get(s).then(function(r) {
1029 var o = function(e) {
1030 for (var n, t, r = /\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm; t = r.exec(e); )
1031 n = t[1];
1032 if (n)
1033 return n;
1034 throw new Error("sourceMappingURL not found")
1035 }(r)
1036 , a = "data:" === o.substr(0, 5)
1037 , u = s.substring(0, s.lastIndexOf("/") + 1);
1038 return "/" === o[0] || a || /^https?:\/\/|^\/\//i.test(o) || (o = u + o),
1039 this._getSourceMapConsumer(o, u).then((function(r) {
1040 return function(e, t, r) {
1041 return new Promise((function(o, i) {
1042 var s = t.originalPositionFor({
1043 line: e.lineNumber,
1044 column: e.columnNumber
1045 });
1046 if (s.source) {
1047 var a = t.sourceContentFor(s.source);
1048 a && (r[s.source] = a),
1049 o(new n({
1050 functionName: s.name || e.functionName,
1051 args: e.args,
1052 fileName: s.source,
1053 lineNumber: s.line,
1054 columnNumber: s.column
1055 }))
1056 } else
1057 i(new Error("Could not get original source for given stackframe and source map"))
1058 }
1059 ))
1060 }(e, r, i).then(t).catch((function() {
1061 t(e)
1062 }
1063 ))
1064 }
1065 ))
1066 }
1067 .bind(this), r).catch(r)
1068 }
1069 .bind(this))
1070 }
1071 }
1072 }
1073 ) ? r.apply(n, o) : r) || (e.exports = i)
1074 },
1075 822: function(e, n, t) {
1076 "use strict";
1077 n.SourceMapGenerator = t(687).SourceMapGenerator,
1078 n.SourceMapConsumer = t(825).SourceMapConsumer,
1079 n.SourceNode = t(828).SourceNode
1080 },
1081 823: function(e, n, t) {
1082 "use strict";
1083 var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
1084 n.encode = function(e) {
1085 if (0 <= e && e < r.length)
1086 return r[e];
1087 throw new TypeError("Must be between 0 and 63: " + e)
1088 }
1089 ,
1090 n.decode = function(e) {
1091 return 65 <= e && e <= 90 ? e - 65 : 97 <= e && e <= 122 ? e - 97 + 26 : 48 <= e && e <= 57 ? e - 48 + 52 : 43 == e ? 62 : 47 == e ? 63 : -1
1092 }
1093 },
1094 824: function(e, n, t) {
1095 "use strict";
1096 var r = t(594);
1097 function o() {
1098 this._array = [],
1099 this._sorted = !0,
1100 this._last = {
1101 generatedLine: -1,
1102 generatedColumn: 0
1103 }
1104 }
1105 o.prototype.unsortedForEach = function(e, n) {
1106 this._array.forEach(e, n)
1107 }
1108 ,
1109 o.prototype.add = function(e) {
1110 var n, t, o, i, s, a;
1111 n = this._last,
1112 t = e,
1113 o = n.generatedLine,
1114 i = t.generatedLine,
1115 s = n.generatedColumn,
1116 a = t.generatedColumn,
1117 i > o || i == o && a >= s || r.compareByGeneratedPositionsInflated(n, t) <= 0 ? (this._last = e,
1118 this._array.push(e)) : (this._sorted = !1,
1119 this._array.push(e))
1120 }
1121 ,
1122 o.prototype.toArray = function() {
1123 return this._sorted || (this._array.sort(r.compareByGeneratedPositionsInflated),
1124 this._sorted = !0),
1125 this._array
1126 }
1127 ,
1128 n.MappingList = o
1129 },
1130 825: function(e, n, t) {
1131 "use strict";
1132 var r = t(594)
1133 , o = t(826)
1134 , i = t(689).ArraySet
1135 , s = t(688)
1136 , a = t(827).quickSort;
1137 function u(e) {
1138 var n = e;
1139 return "string" == typeof e && (n = JSON.parse(e.replace(/^\)\]\}'/, ""))),
1140 null != n.sections ? new p(n) : new c(n)
1141 }
1142 function c(e) {
1143 var n = e;
1144 "string" == typeof e && (n = JSON.parse(e.replace(/^\)\]\}'/, "")));
1145 var t = r.getArg(n, "version")
1146 , o = r.getArg(n, "sources")
1147 , s = r.getArg(n, "names", [])
1148 , a = r.getArg(n, "sourceRoot", null)
1149 , u = r.getArg(n, "sourcesContent", null)
1150 , c = r.getArg(n, "mappings")
1151 , l = r.getArg(n, "file", null);
1152 if (t != this._version)
1153 throw new Error("Unsupported version: " + t);
1154 o = o.map(String).map(r.normalize).map((function(e) {
1155 return a && r.isAbsolute(a) && r.isAbsolute(e) ? r.relative(a, e) : e
1156 }
1157 )),
1158 this._names = i.fromArray(s.map(String), !0),
1159 this._sources = i.fromArray(o, !0),
1160 this.sourceRoot = a,
1161 this.sourcesContent = u,
1162 this._mappings = c,
1163 this.file = l
1164 }
1165 function l() {
1166 this.generatedLine = 0,
1167 this.generatedColumn = 0,
1168 this.source = null,
1169 this.originalLine = null,
1170 this.originalColumn = null,
1171 this.name = null
1172 }
1173 function p(e) {
1174 var n = e;
1175 "string" == typeof e && (n = JSON.parse(e.replace(/^\)\]\}'/, "")));
1176 var t = r.getArg(n, "version")
1177 , o = r.getArg(n, "sections");
1178 if (t != this._version)
1179 throw new Error("Unsupported version: " + t);
1180 this._sources = new i,
1181 this._names = new i;
1182 var s = {
1183 line: -1,
1184 column: 0
1185 };
1186 this._sections = o.map((function(e) {
1187 if (e.url)
1188 throw new Error("Support for url field in sections not implemented.");
1189 var n = r.getArg(e, "offset")
1190 , t = r.getArg(n, "line")
1191 , o = r.getArg(n, "column");
1192 if (t < s.line || t === s.line && o < s.column)
1193 throw new Error("Section offsets must be ordered and non-overlapping.");
1194 return s = n,
1195 {
1196 generatedOffset: {
1197 generatedLine: t + 1,
1198 generatedColumn: o + 1
1199 },
1200 consumer: new u(r.getArg(e, "map"))
1201 }
1202 }
1203 ))
1204 }
1205 u.fromSourceMap = function(e) {
1206 return c.fromSourceMap(e)
1207 }
1208 ,
1209 u.prototype._version = 3,
1210 u.prototype.__generatedMappings = null,
1211 Object.defineProperty(u.prototype, "_generatedMappings", {
1212 get: function() {
1213 return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot),
1214 this.__generatedMappings
1215 }
1216 }),
1217 u.prototype.__originalMappings = null,
1218 Object.defineProperty(u.prototype, "_originalMappings", {
1219 get: function() {
1220 return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot),
1221 this.__originalMappings
1222 }
1223 }),
1224 u.prototype._charIsMappingSeparator = function(e, n) {
1225 var t = e.charAt(n);
1226 return ";" === t || "," === t
1227 }
1228 ,
1229 u.prototype._parseMappings = function(e, n) {
1230 throw new Error("Subclasses must implement _parseMappings")
1231 }
1232 ,
1233 u.GENERATED_ORDER = 1,
1234 u.ORIGINAL_ORDER = 2,
1235 u.GREATEST_LOWER_BOUND = 1,
1236 u.LEAST_UPPER_BOUND = 2,
1237 u.prototype.eachMapping = function(e, n, t) {
1238 var o, i = n || null;
1239 switch (t || u.GENERATED_ORDER) {
1240 case u.GENERATED_ORDER:
1241 o = this._generatedMappings;
1242 break;
1243 case u.ORIGINAL_ORDER:
1244 o = this._originalMappings;
1245 break;
1246 default:
1247 throw new Error("Unknown order of iteration.")
1248 }
1249 var s = this.sourceRoot;
1250 o.map((function(e) {
1251 var n = null === e.source ? null : this._sources.at(e.source);
1252 return null != n && null != s && (n = r.join(s, n)),
1253 {
1254 source: n,
1255 generatedLine: e.generatedLine,
1256 generatedColumn: e.generatedColumn,
1257 originalLine: e.originalLine,
1258 originalColumn: e.originalColumn,
1259 name: null === e.name ? null : this._names.at(e.name)
1260 }
1261 }
1262 ), this).forEach(e, i)
1263 }
1264 ,
1265 u.prototype.allGeneratedPositionsFor = function(e) {
1266 var n = r.getArg(e, "line")
1267 , t = {
1268 source: r.getArg(e, "source"),
1269 originalLine: n,
1270 originalColumn: r.getArg(e, "column", 0)
1271 };
1272 if (null != this.sourceRoot && (t.source = r.relative(this.sourceRoot, t.source)),
1273 !this._sources.has(t.source))
1274 return [];
1275 t.source = this._sources.indexOf(t.source);
1276 var i = []
1277 , s = this._findMapping(t, this._originalMappings, "originalLine", "originalColumn", r.compareByOriginalPositions, o.LEAST_UPPER_BOUND);
1278 if (s >= 0) {
1279 var a = this._originalMappings[s];
1280 if (void 0 === e.column)
1281 for (var u = a.originalLine; a && a.originalLine === u; )
1282 i.push({
1283 line: r.getArg(a, "generatedLine", null),
1284 column: r.getArg(a, "generatedColumn", null),
1285 lastColumn: r.getArg(a, "lastGeneratedColumn", null)
1286 }),
1287 a = this._originalMappings[++s];
1288 else
1289 for (var c = a.originalColumn; a && a.originalLine === n && a.originalColumn == c; )
1290 i.push({
1291 line: r.getArg(a, "generatedLine", null),
1292 column: r.getArg(a, "generatedColumn", null),
1293 lastColumn: r.getArg(a, "lastGeneratedColumn", null)
1294 }),
1295 a = this._originalMappings[++s]
1296 }
1297 return i
1298 }
1299 ,
1300 n.SourceMapConsumer = u,
1301 c.prototype = Object.create(u.prototype),
1302 c.prototype.consumer = u,
1303 c.fromSourceMap = function(e) {
1304 var n = Object.create(c.prototype)
1305 , t = n._names = i.fromArray(e._names.toArray(), !0)
1306 , o = n._sources = i.fromArray(e._sources.toArray(), !0);
1307 n.sourceRoot = e._sourceRoot,
1308 n.sourcesContent = e._generateSourcesContent(n._sources.toArray(), n.sourceRoot),
1309 n.file = e._file;
1310 for (var s = e._mappings.toArray().slice(), u = n.__generatedMappings = [], p = n.__originalMappings = [], h = 0, f = s.length; h < f; h++) {
1311 var g = s[h]
1312 , m = new l;
1313 m.generatedLine = g.generatedLine,
1314 m.generatedColumn = g.generatedColumn,
1315 g.source && (m.source = o.indexOf(g.source),
1316 m.originalLine = g.originalLine,
1317 m.originalColumn = g.originalColumn,
1318 g.name && (m.name = t.indexOf(g.name)),
1319 p.push(m)),
1320 u.push(m)
1321 }
1322 return a(n.__originalMappings, r.compareByOriginalPositions),
1323 n
1324 }
1325 ,
1326 c.prototype._version = 3,
1327 Object.defineProperty(c.prototype, "sources", {
1328 get: function() {
1329 return this._sources.toArray().map((function(e) {
1330 return null != this.sourceRoot ? r.join(this.sourceRoot, e) : e
1331 }
1332 ), this)
1333 }
1334 }),
1335 c.prototype._parseMappings = function(e, n) {
1336 for (var t, o, i, u, c, p = 1, h = 0, f = 0, g = 0, m = 0, d = 0, v = e.length, _ = 0, y = {}, w = {}, C = [], b = []; _ < v; )
1337 if (";" === e.charAt(_))
1338 p++,
1339 _++,
1340 h = 0;
1341 else if ("," === e.charAt(_))
1342 _++;
1343 else {
1344 for ((t = new l).generatedLine = p,
1345 u = _; u < v && !this._charIsMappingSeparator(e, u); u++)
1346 ;
1347 if (i = y[o = e.slice(_, u)])
1348 _ += o.length;
1349 else {
1350 for (i = []; _ < u; )
1351 s.decode(e, _, w),
1352 c = w.value,
1353 _ = w.rest,
1354 i.push(c);
1355 if (2 === i.length)
1356 throw new Error("Found a source, but no line and column");
1357 if (3 === i.length)
1358 throw new Error("Found a source and line, but no column");
1359 y[o] = i
1360 }
1361 t.generatedColumn = h + i[0],
1362 h = t.generatedColumn,
1363 i.length > 1 && (t.source = m + i[1],
1364 m += i[1],
1365 t.originalLine = f + i[2],
1366 f = t.originalLine,
1367 t.originalLine += 1,
1368 t.originalColumn = g + i[3],
1369 g = t.originalColumn,
1370 i.length > 4 && (t.name = d + i[4],
1371 d += i[4])),
1372 b.push(t),
1373 "number" == typeof t.originalLine && C.push(t)
1374 }
1375 a(b, r.compareByGeneratedPositionsDeflated),
1376 this.__generatedMappings = b,
1377 a(C, r.compareByOriginalPositions),
1378 this.__originalMappings = C
1379 }
1380 ,
1381 c.prototype._findMapping = function(e, n, t, r, i, s) {
1382 if (e[t] <= 0)
1383 throw new TypeError("Line must be greater than or equal to 1, got " + e[t]);
1384 if (e[r] < 0)
1385 throw new TypeError("Column must be greater than or equal to 0, got " + e[r]);
1386 return o.search(e, n, i, s)
1387 }
1388 ,
1389 c.prototype.computeColumnSpans = function() {
1390 for (var e = 0; e < this._generatedMappings.length; ++e) {
1391 var n = this._generatedMappings[e];
1392 if (e + 1 < this._generatedMappings.length) {
1393 var t = this._generatedMappings[e + 1];
1394 if (n.generatedLine === t.generatedLine) {
1395 n.lastGeneratedColumn = t.generatedColumn - 1;
1396 continue
1397 }
1398 }
1399 n.lastGeneratedColumn = 1 / 0
1400 }
1401 }
1402 ,
1403 c.prototype.originalPositionFor = function(e) {
1404 var n = {
1405 generatedLine: r.getArg(e, "line"),
1406 generatedColumn: r.getArg(e, "column")
1407 }
1408 , t = this._findMapping(n, this._generatedMappings, "generatedLine", "generatedColumn", r.compareByGeneratedPositionsDeflated, r.getArg(e, "bias", u.GREATEST_LOWER_BOUND));
1409 if (t >= 0) {
1410 var o = this._generatedMappings[t];
1411 if (o.generatedLine === n.generatedLine) {
1412 var i = r.getArg(o, "source", null);
1413 null !== i && (i = this._sources.at(i),
1414 null != this.sourceRoot && (i = r.join(this.sourceRoot, i)));
1415 var s = r.getArg(o, "name", null);
1416 return null !== s && (s = this._names.at(s)),
1417 {
1418 source: i,
1419 line: r.getArg(o, "originalLine", null),
1420 column: r.getArg(o, "originalColumn", null),
1421 name: s
1422 }
1423 }
1424 }
1425 return {
1426 source: null,
1427 line: null,
1428 column: null,
1429 name: null
1430 }
1431 }
1432 ,
1433 c.prototype.hasContentsOfAllSources = function() {
1434 return !!this.sourcesContent && (this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some((function(e) {
1435 return null == e
1436 }
1437 )))
1438 }
1439 ,
1440 c.prototype.sourceContentFor = function(e, n) {
1441 if (!this.sourcesContent)
1442 return null;
1443 if (null != this.sourceRoot && (e = r.relative(this.sourceRoot, e)),
1444 this._sources.has(e))
1445 return this.sourcesContent[this._sources.indexOf(e)];
1446 var t;
1447 if (null != this.sourceRoot && (t = r.urlParse(this.sourceRoot))) {
1448 var o = e.replace(/^file:\/\//, "");
1449 if ("file" == t.scheme && this._sources.has(o))
1450 return this.sourcesContent[this._sources.indexOf(o)];
1451 if ((!t.path || "/" == t.path) && this._sources.has("/" + e))
1452 return this.sourcesContent[this._sources.indexOf("/" + e)]
1453 }
1454 if (n)
1455 return null;
1456 throw new Error('"' + e + '" is not in the SourceMap.')
1457 }
1458 ,
1459 c.prototype.generatedPositionFor = function(e) {
1460 var n = r.getArg(e, "source");
1461 if (null != this.sourceRoot && (n = r.relative(this.sourceRoot, n)),
1462 !this._sources.has(n))
1463 return {
1464 line: null,
1465 column: null,
1466 lastColumn: null
1467 };
1468 var t = {
1469 source: n = this._sources.indexOf(n),
1470 originalLine: r.getArg(e, "line"),
1471 originalColumn: r.getArg(e, "column")
1472 }
1473 , o = this._findMapping(t, this._originalMappings, "originalLine", "originalColumn", r.compareByOriginalPositions, r.getArg(e, "bias", u.GREATEST_LOWER_BOUND));
1474 if (o >= 0) {
1475 var i = this._originalMappings[o];
1476 if (i.source === t.source)
1477 return {
1478 line: r.getArg(i, "generatedLine", null),
1479 column: r.getArg(i, "generatedColumn", null),
1480 lastColumn: r.getArg(i, "lastGeneratedColumn", null)
1481 }
1482 }
1483 return {
1484 line: null,
1485 column: null,
1486 lastColumn: null
1487 }
1488 }
1489 ,
1490 n.BasicSourceMapConsumer = c,
1491 p.prototype = Object.create(u.prototype),
1492 p.prototype.constructor = u,
1493 p.prototype._version = 3,
1494 Object.defineProperty(p.prototype, "sources", {
1495 get: function() {
1496 for (var e = [], n = 0; n < this._sections.length; n++)
1497 for (var t = 0; t < this._sections[n].consumer.sources.length; t++)
1498 e.push(this._sections[n].consumer.sources[t]);
1499 return e
1500 }
1501 }),
1502 p.prototype.originalPositionFor = function(e) {
1503 var n = {
1504 generatedLine: r.getArg(e, "line"),
1505 generatedColumn: r.getArg(e, "column")
1506 }
1507 , t = o.search(n, this._sections, (function(e, n) {
1508 var t = e.generatedLine - n.generatedOffset.generatedLine;
1509 return t || e.generatedColumn - n.generatedOffset.generatedColumn
1510 }
1511 ))
1512 , i = this._sections[t];
1513 return i ? i.consumer.originalPositionFor({
1514 line: n.generatedLine - (i.generatedOffset.generatedLine - 1),
1515 column: n.generatedColumn - (i.generatedOffset.generatedLine === n.generatedLine ? i.generatedOffset.generatedColumn - 1 : 0),
1516 bias: e.bias
1517 }) : {
1518 source: null,
1519 line: null,
1520 column: null,
1521 name: null
1522 }
1523 }
1524 ,
1525 p.prototype.hasContentsOfAllSources = function() {
1526 return this._sections.every((function(e) {
1527 return e.consumer.hasContentsOfAllSources()
1528 }
1529 ))
1530 }
1531 ,
1532 p.prototype.sourceContentFor = function(e, n) {
1533 for (var t = 0; t < this._sections.length; t++) {
1534 var r = this._sections[t].consumer.sourceContentFor(e, !0);
1535 if (r)
1536 return r
1537 }
1538 if (n)
1539 return null;
1540 throw new Error('"' + e + '" is not in the SourceMap.')
1541 }
1542 ,
1543 p.prototype.generatedPositionFor = function(e) {
1544 for (var n = 0; n < this._sections.length; n++) {
1545 var t = this._sections[n];
1546 if (-1 !== t.consumer.sources.indexOf(r.getArg(e, "source"))) {
1547 var o = t.consumer.generatedPositionFor(e);
1548 if (o)
1549 return {
1550 line: o.line + (t.generatedOffset.generatedLine - 1),
1551 column: o.column + (t.generatedOffset.generatedLine === o.line ? t.generatedOffset.generatedColumn - 1 : 0)
1552 }
1553 }
1554 }
1555 return {
1556 line: null,
1557 column: null
1558 }
1559 }
1560 ,
1561 p.prototype._parseMappings = function(e, n) {
1562 this.__generatedMappings = [],
1563 this.__originalMappings = [];
1564 for (var t = 0; t < this._sections.length; t++)
1565 for (var o = this._sections[t], i = o.consumer._generatedMappings, s = 0; s < i.length; s++) {
1566 var u = i[s]
1567 , c = o.consumer._sources.at(u.source);
1568 null !== o.consumer.sourceRoot && (c = r.join(o.consumer.sourceRoot, c)),
1569 this._sources.add(c),
1570 c = this._sources.indexOf(c);
1571 var l = o.consumer._names.at(u.name);
1572 this._names.add(l),
1573 l = this._names.indexOf(l);
1574 var p = {
1575 source: c,
1576 generatedLine: u.generatedLine + (o.generatedOffset.generatedLine - 1),
1577 generatedColumn: u.generatedColumn + (o.generatedOffset.generatedLine === u.generatedLine ? o.generatedOffset.generatedColumn - 1 : 0),
1578 originalLine: u.originalLine,
1579 originalColumn: u.originalColumn,
1580 name: l
1581 };
1582 this.__generatedMappings.push(p),
1583 "number" == typeof p.originalLine && this.__originalMappings.push(p)
1584 }
1585 a(this.__generatedMappings, r.compareByGeneratedPositionsDeflated),
1586 a(this.__originalMappings, r.compareByOriginalPositions)
1587 }
1588 ,
1589 n.IndexedSourceMapConsumer = p
1590 },
1591 826: function(e, n, t) {
1592 "use strict";
1593 n.GREATEST_LOWER_BOUND = 1,
1594 n.LEAST_UPPER_BOUND = 2,
1595 n.search = function(e, t, r, o) {
1596 if (0 === t.length)
1597 return -1;
1598 var i = function e(t, r, o, i, s, a) {
1599 var u = Math.floor((r - t) / 2) + t
1600 , c = s(o, i[u], !0);
1601 return 0 === c ? u : c > 0 ? r - u > 1 ? e(u, r, o, i, s, a) : a == n.LEAST_UPPER_BOUND ? r < i.length ? r : -1 : u : u - t > 1 ? e(t, u, o, i, s, a) : a == n.LEAST_UPPER_BOUND ? u : t < 0 ? -1 : t
1602 }(-1, t.length, e, t, r, o || n.GREATEST_LOWER_BOUND);
1603 if (i < 0)
1604 return -1;
1605 for (; i - 1 >= 0 && 0 === r(t[i], t[i - 1], !0); )
1606 --i;
1607 return i
1608 }
1609 },
1610 827: function(e, n, t) {
1611 "use strict";
1612 function r(e, n, t) {
1613 var r = e[n];
1614 e[n] = e[t],
1615 e[t] = r
1616 }
1617 function o(e, n, t, i) {
1618 if (t < i) {
1619 var s = t - 1;
1620 r(e, (l = t,
1621 p = i,
1622 Math.round(l + Math.random() * (p - l))), i);
1623 for (var a = e[i], u = t; u < i; u++)
1624 n(e[u], a) <= 0 && r(e, s += 1, u);
1625 r(e, s + 1, u);
1626 var c = s + 1;
1627 o(e, n, t, c - 1),
1628 o(e, n, c + 1, i)
1629 }
1630 var l, p
1631 }
1632 n.quickSort = function(e, n) {
1633 o(e, n, 0, e.length - 1)
1634 }
1635 },
1636 828: function(e, n, t) {
1637 "use strict";
1638 var r = t(687).SourceMapGenerator
1639 , o = t(594)
1640 , i = /(\r?\n)/
1641 , s = "$$$isSourceNode$$$";
1642 function a(e, n, t, r, o) {
1643 this.children = [],
1644 this.sourceContents = {},
1645 this.line = null == e ? null : e,
1646 this.column = null == n ? null : n,
1647 this.source = null == t ? null : t,
1648 this.name = null == o ? null : o,
1649 this[s] = !0,
1650 null != r && this.add(r)
1651 }
1652 a.fromStringWithSourceMap = function(e, n, t) {
1653 var r = new a
1654 , s = e.split(i)
1655 , u = function() {
1656 return s.shift() + (s.shift() || "")
1657 }
1658 , c = 1
1659 , l = 0
1660 , p = null;
1661 return n.eachMapping((function(e) {
1662 if (null !== p) {
1663 if (!(c < e.generatedLine)) {
1664 var n = (t = s[0]).substr(0, e.generatedColumn - l);
1665 return s[0] = t.substr(e.generatedColumn - l),
1666 l = e.generatedColumn,
1667 h(p, n),
1668 void (p = e)
1669 }
1670 h(p, u()),
1671 c++,
1672 l = 0
1673 }
1674 for (; c < e.generatedLine; )
1675 r.add(u()),
1676 c++;
1677 if (l < e.generatedColumn) {
1678 var t = s[0];
1679 r.add(t.substr(0, e.generatedColumn)),
1680 s[0] = t.substr(e.generatedColumn),
1681 l = e.generatedColumn
1682 }
1683 p = e
1684 }
1685 ), this),
1686 s.length > 0 && (p && h(p, u()),
1687 r.add(s.join(""))),
1688 n.sources.forEach((function(e) {
1689 var i = n.sourceContentFor(e);
1690 null != i && (null != t && (e = o.join(t, e)),
1691 r.setSourceContent(e, i))
1692 }
1693 )),
1694 r;
1695 function h(e, n) {
1696 if (null === e || void 0 === e.source)
1697 r.add(n);
1698 else {
1699 var i = t ? o.join(t, e.source) : e.source;
1700 r.add(new a(e.originalLine,e.originalColumn,i,n,e.name))
1701 }
1702 }
1703 }
1704 ,
1705 a.prototype.add = function(e) {
1706 if (Array.isArray(e))
1707 e.forEach((function(e) {
1708 this.add(e)
1709 }
1710 ), this);
1711 else {
1712 if (!e[s] && "string" != typeof e)
1713 throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + e);
1714 e && this.children.push(e)
1715 }
1716 return this
1717 }
1718 ,
1719 a.prototype.prepend = function(e) {
1720 if (Array.isArray(e))
1721 for (var n = e.length - 1; n >= 0; n--)
1722 this.prepend(e[n]);
1723 else {
1724 if (!e[s] && "string" != typeof e)
1725 throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + e);
1726 this.children.unshift(e)
1727 }
1728 return this
1729 }
1730 ,
1731 a.prototype.walk = function(e) {
1732 for (var n, t = 0, r = this.children.length; t < r; t++)
1733 (n = this.children[t])[s] ? n.walk(e) : "" !== n && e(n, {
1734 source: this.source,
1735 line: this.line,
1736 column: this.column,
1737 name: this.name
1738 })
1739 }
1740 ,
1741 a.prototype.join = function(e) {
1742 var n, t, r = this.children.length;
1743 if (r > 0) {
1744 for (n = [],
1745 t = 0; t < r - 1; t++)
1746 n.push(this.children[t]),
1747 n.push(e);
1748 n.push(this.children[t]),
1749 this.children = n
1750 }
1751 return this
1752 }
1753 ,
1754 a.prototype.replaceRight = function(e, n) {
1755 var t = this.children[this.children.length - 1];
1756 return t[s] ? t.replaceRight(e, n) : "string" == typeof t ? this.children[this.children.length - 1] = t.replace(e, n) : this.children.push("".replace(e, n)),
1757 this
1758 }
1759 ,
1760 a.prototype.setSourceContent = function(e, n) {
1761 this.sourceContents[o.toSetString(e)] = n
1762 }
1763 ,
1764 a.prototype.walkSourceContents = function(e) {
1765 for (var n = 0, t = this.children.length; n < t; n++)
1766 this.children[n][s] && this.children[n].walkSourceContents(e);
1767 var r = Object.keys(this.sourceContents);
1768 for (n = 0,
1769 t = r.length; n < t; n++)
1770 e(o.fromSetString(r[n]), this.sourceContents[r[n]])
1771 }
1772 ,
1773 a.prototype.toString = function() {
1774 var e = "";
1775 return this.walk((function(n) {
1776 e += n
1777 }
1778 )),
1779 e
1780 }
1781 ,
1782 a.prototype.toStringWithSourceMap = function(e) {
1783 var n = {
1784 code: "",
1785 line: 1,
1786 column: 0
1787 }
1788 , t = new r(e)
1789 , o = !1
1790 , i = null
1791 , s = null
1792 , a = null
1793 , u = null;
1794 return this.walk((function(e, r) {
1795 n.code += e,
1796 null !== r.source && null !== r.line && null !== r.column ? (i === r.source && s === r.line && a === r.column && u === r.name || t.addMapping({
1797 source: r.source,
1798 original: {
1799 line: r.line,
1800 column: r.column
1801 },
1802 generated: {
1803 line: n.line,
1804 column: n.column
1805 },
1806 name: r.name
1807 }),
1808 i = r.source,
1809 s = r.line,
1810 a = r.column,
1811 u = r.name,
1812 o = !0) : o && (t.addMapping({
1813 generated: {
1814 line: n.line,
1815 column: n.column
1816 }
1817 }),
1818 i = null,
1819 o = !1);
1820 for (var c = 0, l = e.length; c < l; c++)
1821 10 === e.charCodeAt(c) ? (n.line++,
1822 n.column = 0,
1823 c + 1 === l ? (i = null,
1824 o = !1) : o && t.addMapping({
1825 source: r.source,
1826 original: {
1827 line: r.line,
1828 column: r.column
1829 },
1830 generated: {
1831 line: n.line,
1832 column: n.column
1833 },
1834 name: r.name
1835 })) : n.column++
1836 }
1837 )),
1838 this.walkSourceContents((function(e, n) {
1839 t.setSourceContent(e, n)
1840 }
1841 )),
1842 {
1843 code: n.code,
1844 map: t
1845 }
1846 }
1847 ,
1848 n.SourceNode = a
1849 }
1850}]);
1851//# sourceMappingURL=vendors~stackdriver-errors.9d0a908aba8913442257.js.map
1852