· 5 years ago · Nov 02, 2020, 11:56 AM
1/*!
2 * version: 0.4.48
3 * build: Tue Oct 20 2020 01:50:09 GMT+0300 (Moscow Standard Time)
4 */ !(function (e) {
5 var t = {};
6 function n(r) {
7 if (t[r]) return t[r].exports;
8 var i = (t[r] = { i: r, l: !1, exports: {} });
9 return e[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports;
10 }
11 (n.m = e),
12 (n.c = t),
13 (n.d = function (e, t, r) {
14 n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
15 }),
16 (n.r = function (e) {
17 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
18 }),
19 (n.t = function (e, t) {
20 if ((1 & t && (e = n(e)), 8 & t)) return e;
21 if (4 & t && "object" == typeof e && e && e.__esModule) return e;
22 var r = Object.create(null);
23 if ((n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e))
24 for (var i in e)
25 n.d(
26 r,
27 i,
28 function (t) {
29 return e[t];
30 }.bind(null, i)
31 );
32 return r;
33 }),
34 (n.n = function (e) {
35 var t =
36 e && e.__esModule
37 ? function () {
38 return e.default;
39 }
40 : function () {
41 return e;
42 };
43 return n.d(t, "a", t), t;
44 }),
45 (n.o = function (e, t) {
46 return Object.prototype.hasOwnProperty.call(e, t);
47 }),
48 (n.p = "/"),
49 n((n.s = 41));
50})([
51 function (e, t, n) {
52 "use strict";
53 n.d(t, "b", function () {
54 return i;
55 }),
56 n.d(t, "a", function () {
57 return o;
58 }),
59 n.d(t, "c", function () {
60 return s;
61 }),
62 n.d(t, "d", function () {
63 return a;
64 });
65 /*! *****************************************************************************
66 Copyright (c) Microsoft Corporation. All rights reserved.
67 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
68 this file except in compliance with the License. You may obtain a copy of the
69 License at http://www.apache.org/licenses/LICENSE-2.0
70
71 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
72 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
73 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
74 MERCHANTABLITY OR NON-INFRINGEMENT.
75
76 See the Apache Version 2.0 License for specific language governing permissions
77 and limitations under the License.
78 ***************************************************************************** */
79 var r = function (e, t) {
80 return (r =
81 Object.setPrototypeOf ||
82 ({ __proto__: [] } instanceof Array &&
83 function (e, t) {
84 e.__proto__ = t;
85 }) ||
86 function (e, t) {
87 for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
88 })(e, t);
89 };
90 function i(e, t) {
91 function n() {
92 this.constructor = e;
93 }
94 r(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
95 }
96 var o = function () {
97 return (o =
98 Object.assign ||
99 function (e) {
100 for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
101 return e;
102 }).apply(this, arguments);
103 };
104 function s(e, t) {
105 var n = "function" == typeof Symbol && e[Symbol.iterator];
106 if (!n) return e;
107 var r,
108 i,
109 o = n.call(e),
110 s = [];
111 try {
112 for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) s.push(r.value);
113 } catch (e) {
114 i = { error: e };
115 } finally {
116 try {
117 r && !r.done && (n = o.return) && n.call(o);
118 } finally {
119 if (i) throw i.error;
120 }
121 }
122 return s;
123 }
124 function a() {
125 for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(s(arguments[t]));
126 return e;
127 }
128 },
129 ,
130 function (e, t, n) {
131 "use strict";
132 (function (e, r) {
133 function i(e, t) {
134 return e.require(t);
135 }
136 n.d(t, "c", function () {
137 return i;
138 }),
139 n.d(t, "e", function () {
140 return s;
141 }),
142 n.d(t, "g", function () {
143 return a;
144 }),
145 n.d(t, "f", function () {
146 return c;
147 }),
148 n.d(t, "d", function () {
149 return u;
150 }),
151 n.d(t, "b", function () {
152 return l;
153 }),
154 n.d(t, "a", function () {
155 return p;
156 });
157 var o = {};
158 function s() {
159 return "[object process]" === Object.prototype.toString.call(void 0 !== e ? e : 0) ? r : "undefined" != typeof window ? window : "undefined" != typeof self ? self : o;
160 }
161 function a() {
162 var e = s(),
163 t = e.crypto || e.msCrypto;
164 if (void 0 !== t && t.getRandomValues) {
165 var n = new Uint16Array(8);
166 t.getRandomValues(n), (n[3] = (4095 & n[3]) | 16384), (n[4] = (16383 & n[4]) | 32768);
167 var r = function (e) {
168 for (var t = e.toString(16); t.length < 4; ) t = "0" + t;
169 return t;
170 };
171 return r(n[0]) + r(n[1]) + r(n[2]) + r(n[3]) + r(n[4]) + r(n[5]) + r(n[6]) + r(n[7]);
172 }
173 return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function (e) {
174 var t = (16 * Math.random()) | 0;
175 return ("x" === e ? t : (3 & t) | 8).toString(16);
176 });
177 }
178 function c(e) {
179 if (!e) return {};
180 var t = e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
181 if (!t) return {};
182 var n = t[6] || "",
183 r = t[8] || "";
184 return { host: t[4], path: t[5], protocol: t[2], relative: t[5] + n + r };
185 }
186 function u(e) {
187 if (e.message) return e.message;
188 if (e.exception && e.exception.values && e.exception.values[0]) {
189 var t = e.exception.values[0];
190 return t.type && t.value ? t.type + ": " + t.value : t.type || t.value || e.event_id || "<unknown>";
191 }
192 return e.event_id || "<unknown>";
193 }
194 function l(e) {
195 var t = s();
196 if (!("console" in t)) return e();
197 var n = t.console,
198 r = {};
199 ["debug", "info", "warn", "error", "log", "assert"].forEach(function (e) {
200 e in t.console && n[e].__sentry__ && ((r[e] = n[e].__sentry_wrapped__), (n[e] = n[e].__sentry_original__));
201 });
202 var i = e();
203 return (
204 Object.keys(r).forEach(function (e) {
205 n[e] = r[e];
206 }),
207 i
208 );
209 }
210 function p(e, t, n, r) {
211 void 0 === r && (r = { handled: !0, type: "generic" }),
212 (e.exception = e.exception || {}),
213 (e.exception.values = e.exception.values || []),
214 (e.exception.values[0] = e.exception.values[0] || {}),
215 (e.exception.values[0].value = e.exception.values[0].value || t || ""),
216 (e.exception.values[0].type = e.exception.values[0].type || n || "Error"),
217 (e.exception.values[0].mechanism = e.exception.values[0].mechanism || r);
218 }
219 }.call(this, n(13), n(18)));
220 },
221 function (e, t, n) {
222 "use strict";
223 var r = n(12),
224 i = n(22),
225 o = Object.prototype.toString;
226 function s(e) {
227 return "[object Array]" === o.call(e);
228 }
229 function a(e) {
230 return null !== e && "object" == typeof e;
231 }
232 function c(e) {
233 return "[object Function]" === o.call(e);
234 }
235 function u(e, t) {
236 if (null != e)
237 if (("object" != typeof e && (e = [e]), s(e))) for (var n = 0, r = e.length; n < r; n++) t.call(null, e[n], n, e);
238 else for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && t.call(null, e[i], i, e);
239 }
240 e.exports = {
241 isArray: s,
242 isArrayBuffer: function (e) {
243 return "[object ArrayBuffer]" === o.call(e);
244 },
245 isBuffer: i,
246 isFormData: function (e) {
247 return "undefined" != typeof FormData && e instanceof FormData;
248 },
249 isArrayBufferView: function (e) {
250 return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer;
251 },
252 isString: function (e) {
253 return "string" == typeof e;
254 },
255 isNumber: function (e) {
256 return "number" == typeof e;
257 },
258 isObject: a,
259 isUndefined: function (e) {
260 return void 0 === e;
261 },
262 isDate: function (e) {
263 return "[object Date]" === o.call(e);
264 },
265 isFile: function (e) {
266 return "[object File]" === o.call(e);
267 },
268 isBlob: function (e) {
269 return "[object Blob]" === o.call(e);
270 },
271 isFunction: c,
272 isStream: function (e) {
273 return a(e) && c(e.pipe);
274 },
275 isURLSearchParams: function (e) {
276 return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams;
277 },
278 isStandardBrowserEnv: function () {
279 return ("undefined" == typeof navigator || "ReactNative" !== navigator.product) && "undefined" != typeof window && "undefined" != typeof document;
280 },
281 forEach: u,
282 merge: function e() {
283 var t = {};
284 function n(n, r) {
285 "object" == typeof t[r] && "object" == typeof n ? (t[r] = e(t[r], n)) : (t[r] = n);
286 }
287 for (var r = 0, i = arguments.length; r < i; r++) u(arguments[r], n);
288 return t;
289 },
290 extend: function (e, t, n) {
291 return (
292 u(t, function (t, i) {
293 e[i] = n && "function" == typeof t ? r(t, n) : t;
294 }),
295 e
296 );
297 },
298 trim: function (e) {
299 return e.replace(/^\s*/, "").replace(/\s*$/, "");
300 },
301 };
302 },
303 function (e, t, n) {
304 "use strict";
305 function r(e) {
306 switch (Object.prototype.toString.call(e)) {
307 case "[object Error]":
308 case "[object Exception]":
309 case "[object DOMException]":
310 return !0;
311 default:
312 return e instanceof Error;
313 }
314 }
315 function i(e) {
316 return "[object ErrorEvent]" === Object.prototype.toString.call(e);
317 }
318 function o(e) {
319 return "[object DOMError]" === Object.prototype.toString.call(e);
320 }
321 function s(e) {
322 return "[object DOMException]" === Object.prototype.toString.call(e);
323 }
324 function a(e) {
325 return "[object String]" === Object.prototype.toString.call(e);
326 }
327 function c(e) {
328 return null === e || ("object" != typeof e && "function" != typeof e);
329 }
330 function u(e) {
331 return "[object Object]" === Object.prototype.toString.call(e);
332 }
333 function l(e) {
334 return "[object RegExp]" === Object.prototype.toString.call(e);
335 }
336 function p(e) {
337 return Boolean(e && e.then && "function" == typeof e.then);
338 }
339 function d(e) {
340 return u(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
341 }
342 n.d(t, "c", function () {
343 return r;
344 }),
345 n.d(t, "d", function () {
346 return i;
347 }),
348 n.d(t, "a", function () {
349 return o;
350 }),
351 n.d(t, "b", function () {
352 return s;
353 }),
354 n.d(t, "h", function () {
355 return a;
356 }),
357 n.d(t, "f", function () {
358 return c;
359 }),
360 n.d(t, "e", function () {
361 return u;
362 }),
363 n.d(t, "g", function () {
364 return l;
365 }),
366 n.d(t, "j", function () {
367 return p;
368 }),
369 n.d(t, "i", function () {
370 return d;
371 });
372 },
373 function (e, t, n) {
374 "use strict";
375 (function (e) {
376 n.d(t, "a", function () {
377 return o;
378 }),
379 n.d(t, "d", function () {
380 return s;
381 }),
382 n.d(t, "c", function () {
383 return c;
384 }),
385 n.d(t, "b", function () {
386 return p;
387 });
388 var r = n(4),
389 i = n(19);
390 function o(e, t, n) {
391 if (t in e) {
392 var r = e[t],
393 i = n(r);
394 if ("function" == typeof i)
395 try {
396 (i.prototype = i.prototype || {}), Object.defineProperties(i, { __sentry__: { enumerable: !1, value: !0 }, __sentry_original__: { enumerable: !1, value: r }, __sentry_wrapped__: { enumerable: !1, value: i } });
397 } catch (e) {}
398 e[t] = i;
399 }
400 }
401 function s(e) {
402 return Object.keys(e)
403 .map(function (t) {
404 return encodeURIComponent(t) + "=" + encodeURIComponent(e[t]);
405 })
406 .join("&");
407 }
408 function a(e) {
409 return (function (e) {
410 return ~-encodeURI(e).split(/%..|./).length;
411 })(JSON.stringify(e));
412 }
413 function c(e, t, n) {
414 void 0 === t && (t = 3), void 0 === n && (n = 102400);
415 var r = p(e, t);
416 return a(r) > n ? c(e, t - 1, n) : r;
417 }
418 function u(t, n) {
419 return "domain" === n && "object" == typeof t && t._events
420 ? "[Domain]"
421 : "domainEmitter" === n
422 ? "[DomainEmitter]"
423 : void 0 !== e && t === e
424 ? "[Global]"
425 : "undefined" != typeof window && t === window
426 ? "[Window]"
427 : "undefined" != typeof document && t === document
428 ? "[Document]"
429 : "undefined" != typeof Event && t instanceof Event
430 ? Object.getPrototypeOf(t)
431 ? t.constructor.name
432 : "Event"
433 : Object(r.i)(t)
434 ? "[SyntheticEvent]"
435 : Number.isNaN(t)
436 ? "[NaN]"
437 : void 0 === t
438 ? "[undefined]"
439 : "function" == typeof t
440 ? "[Function: " + (t.name || "<unknown-function-name>") + "]"
441 : t;
442 }
443 function l(e, t, n, o) {
444 if ((void 0 === n && (n = 1 / 0), void 0 === o && (o = new i.a()), 0 === n))
445 return (function (e) {
446 var t = Object.prototype.toString.call(e);
447 if ("string" == typeof e) return e;
448 if ("[object Object]" === t) return "[Object]";
449 if ("[object Array]" === t) return "[Array]";
450 var n = u(e);
451 return Object(r.f)(n) ? n : t;
452 })(t);
453 if (null != t && "function" == typeof t.toJSON) return t.toJSON();
454 var s = u(t, e);
455 if (Object(r.f)(s)) return s;
456 var a = Object(r.c)(t)
457 ? (function (e) {
458 var t = { message: e.message, name: e.name, stack: e.stack };
459 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
460 return t;
461 })(t)
462 : t,
463 c = Array.isArray(t) ? [] : {};
464 if (o.memoize(t)) return "[Circular ~]";
465 for (var p in a) Object.prototype.hasOwnProperty.call(a, p) && (c[p] = l(p, a[p], n - 1, o));
466 return o.unmemoize(t), c;
467 }
468 function p(e, t) {
469 try {
470 return JSON.parse(
471 JSON.stringify(e, function (e, n) {
472 return l(e, n, t);
473 })
474 );
475 } catch (e) {
476 return "**non-serializable**";
477 }
478 }
479 }.call(this, n(18)));
480 },
481 ,
482 ,
483 function (e, t, n) {
484 "use strict";
485 n.d(t, "a", function () {
486 return u;
487 }),
488 n.d(t, "b", function () {
489 return p;
490 });
491 var r = n(0),
492 i = n(42),
493 o = n(4),
494 s = n(5),
495 a = n(2),
496 c = n(20),
497 u = (function () {
498 function e() {
499 (this._notifyingListeners = !1), (this._scopeListeners = []), (this._eventProcessors = []), (this._breadcrumbs = []), (this._user = {}), (this._tags = {}), (this._extra = {}), (this._context = {});
500 }
501 return (
502 (e.prototype.addScopeListener = function (e) {
503 this._scopeListeners.push(e);
504 }),
505 (e.prototype.addEventProcessor = function (e) {
506 return this._eventProcessors.push(e), this;
507 }),
508 (e.prototype._notifyScopeListeners = function () {
509 var e = this;
510 this._notifyingListeners ||
511 ((this._notifyingListeners = !0),
512 setTimeout(function () {
513 e._scopeListeners.forEach(function (t) {
514 t(e);
515 }),
516 (e._notifyingListeners = !1);
517 }));
518 }),
519 (e.prototype._notifyEventProcessors = function (e, t, n, s) {
520 var a = this;
521 return (
522 void 0 === s && (s = 0),
523 new i.a(function (i, c) {
524 var u = e[s];
525 if (null === t || "function" != typeof u) i(t);
526 else {
527 var l = u(r.a({}, t), n);
528 Object(o.j)(l)
529 ? l
530 .then(function (t) {
531 return a._notifyEventProcessors(e, t, n, s + 1).then(i);
532 })
533 .catch(c)
534 : a
535 ._notifyEventProcessors(e, l, n, s + 1)
536 .then(i)
537 .catch(c);
538 }
539 })
540 );
541 }),
542 (e.prototype.setUser = function (e) {
543 return (this._user = Object(s.b)(e)), this._notifyScopeListeners(), this;
544 }),
545 (e.prototype.setTags = function (e) {
546 return (this._tags = r.a({}, this._tags, Object(s.b)(e))), this._notifyScopeListeners(), this;
547 }),
548 (e.prototype.setTag = function (e, t) {
549 var n;
550 return (this._tags = r.a({}, this._tags, (((n = {})[e] = Object(s.b)(t)), n))), this._notifyScopeListeners(), this;
551 }),
552 (e.prototype.setExtras = function (e) {
553 return (this._extra = r.a({}, this._extra, Object(s.b)(e))), this._notifyScopeListeners(), this;
554 }),
555 (e.prototype.setExtra = function (e, t) {
556 var n;
557 return (this._extra = r.a({}, this._extra, (((n = {})[e] = Object(s.b)(t)), n))), this._notifyScopeListeners(), this;
558 }),
559 (e.prototype.setFingerprint = function (e) {
560 return (this._fingerprint = Object(s.b)(e)), this._notifyScopeListeners(), this;
561 }),
562 (e.prototype.setLevel = function (e) {
563 return (this._level = Object(s.b)(e)), this._notifyScopeListeners(), this;
564 }),
565 (e.prototype.setTransaction = function (e) {
566 return (this._transaction = e), this._notifyScopeListeners(), this;
567 }),
568 (e.prototype.setContext = function (e, t) {
569 return (this._context[e] = t ? Object(s.b)(t) : void 0), this._notifyScopeListeners(), this;
570 }),
571 (e.prototype.setSpan = function (e) {
572 return (this._span = e), this._notifyScopeListeners(), this;
573 }),
574 (e.prototype.startSpan = function (e) {
575 var t = new c.a();
576 return t.setParent(e), this.setSpan(t), t;
577 }),
578 (e.prototype.getSpan = function () {
579 return this._span;
580 }),
581 (e.clone = function (t) {
582 var n = new e();
583 return (
584 Object.assign(n, t, { _scopeListeners: [] }),
585 t &&
586 ((n._breadcrumbs = r.d(t._breadcrumbs)),
587 (n._tags = r.a({}, t._tags)),
588 (n._extra = r.a({}, t._extra)),
589 (n._context = r.a({}, t._context)),
590 (n._user = t._user),
591 (n._level = t._level),
592 (n._span = t._span),
593 (n._transaction = t._transaction),
594 (n._fingerprint = t._fingerprint),
595 (n._eventProcessors = r.d(t._eventProcessors))),
596 n
597 );
598 }),
599 (e.prototype.clear = function () {
600 return (
601 (this._breadcrumbs = []),
602 (this._tags = {}),
603 (this._extra = {}),
604 (this._user = {}),
605 (this._context = {}),
606 (this._level = void 0),
607 (this._transaction = void 0),
608 (this._fingerprint = void 0),
609 (this._span = void 0),
610 this._notifyScopeListeners(),
611 this
612 );
613 }),
614 (e.prototype.addBreadcrumb = function (e, t) {
615 var n = new Date().getTime() / 1e3,
616 i = r.a({ timestamp: n }, e);
617 return (this._breadcrumbs = void 0 !== t && t >= 0 ? r.d(this._breadcrumbs, [Object(s.b)(i)]).slice(-t) : r.d(this._breadcrumbs, [Object(s.b)(i)])), this._notifyScopeListeners(), this;
618 }),
619 (e.prototype.clearBreadcrumbs = function () {
620 return (this._breadcrumbs = []), this._notifyScopeListeners(), this;
621 }),
622 (e.prototype._applyFingerprint = function (e) {
623 (e.fingerprint = e.fingerprint ? (Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint]) : []),
624 this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)),
625 e.fingerprint && !e.fingerprint.length && delete e.fingerprint;
626 }),
627 (e.prototype.applyToEvent = function (e, t) {
628 return (
629 this._extra && Object.keys(this._extra).length && (e.extra = r.a({}, this._extra, e.extra)),
630 this._tags && Object.keys(this._tags).length && (e.tags = r.a({}, this._tags, e.tags)),
631 this._user && Object.keys(this._user).length && (e.user = r.a({}, this._user, e.user)),
632 this._context && Object.keys(this._context).length && (e.contexts = r.a({}, this._context, e.contexts)),
633 this._level && (e.level = this._level),
634 this._transaction && (e.transaction = this._transaction),
635 this._span && ((e.contexts = e.contexts || {}), (e.contexts.trace = this._span)),
636 this._applyFingerprint(e),
637 (e.breadcrumbs = r.d(e.breadcrumbs || [], this._breadcrumbs)),
638 (e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : void 0),
639 this._notifyEventProcessors(r.d(l(), this._eventProcessors), e, t)
640 );
641 }),
642 e
643 );
644 })();
645 function l() {
646 var e = Object(a.e)();
647 return (e.__SENTRY__ = e.__SENTRY__ || {}), (e.__SENTRY__.globalEventProcessors = e.__SENTRY__.globalEventProcessors || []), e.__SENTRY__.globalEventProcessors;
648 }
649 function p(e) {
650 l().push(e);
651 }
652 },
653 function (e, t, n) {
654 "use strict";
655 (function (t) {
656 var r = n(3),
657 i = n(24),
658 o = { "Content-Type": "application/x-www-form-urlencoded" };
659 function s(e, t) {
660 !r.isUndefined(e) && r.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t);
661 }
662 var a,
663 c = {
664 adapter: ("undefined" != typeof XMLHttpRequest ? (a = n(14)) : void 0 !== t && (a = n(14)), a),
665 transformRequest: [
666 function (e, t) {
667 return (
668 i(t, "Content-Type"),
669 r.isFormData(e) || r.isArrayBuffer(e) || r.isBuffer(e) || r.isStream(e) || r.isFile(e) || r.isBlob(e)
670 ? e
671 : r.isArrayBufferView(e)
672 ? e.buffer
673 : r.isURLSearchParams(e)
674 ? (s(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString())
675 : r.isObject(e)
676 ? (s(t, "application/json;charset=utf-8"), JSON.stringify(e))
677 : e
678 );
679 },
680 ],
681 transformResponse: [
682 function (e) {
683 if ("string" == typeof e)
684 try {
685 e = JSON.parse(e);
686 } catch (e) {}
687 return e;
688 },
689 ],
690 timeout: 0,
691 xsrfCookieName: "XSRF-TOKEN",
692 xsrfHeaderName: "X-XSRF-TOKEN",
693 maxContentLength: -1,
694 validateStatus: function (e) {
695 return e >= 200 && e < 300;
696 },
697 };
698 (c.headers = { common: { Accept: "application/json, text/plain, */*" } }),
699 r.forEach(["delete", "get", "head"], function (e) {
700 c.headers[e] = {};
701 }),
702 r.forEach(["post", "put", "patch"], function (e) {
703 c.headers[e] = r.merge(o);
704 }),
705 (e.exports = c);
706 }.call(this, n(13)));
707 },
708 function (e, t, n) {
709 e.exports = n(21);
710 },
711 function (e, t, n) {
712 "use strict";
713 n.d(t, "a", function () {
714 return a;
715 });
716 var r = n(2),
717 i = Object(r.e)(),
718 o = "Sentry Logger ",
719 s = (function () {
720 function e() {
721 this._enabled = !1;
722 }
723 return (
724 (e.prototype.disable = function () {
725 this._enabled = !1;
726 }),
727 (e.prototype.enable = function () {
728 this._enabled = !0;
729 }),
730 (e.prototype.log = function () {
731 for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
732 this._enabled &&
733 Object(r.b)(function () {
734 i.console.log(o + "[Log]: " + e.join(" "));
735 });
736 }),
737 (e.prototype.warn = function () {
738 for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
739 this._enabled &&
740 Object(r.b)(function () {
741 i.console.warn(o + "[Warn]: " + e.join(" "));
742 });
743 }),
744 (e.prototype.error = function () {
745 for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
746 this._enabled &&
747 Object(r.b)(function () {
748 i.console.error(o + "[Error]: " + e.join(" "));
749 });
750 }),
751 e
752 );
753 })();
754 i.__SENTRY__ = i.__SENTRY__ || {};
755 var a = i.__SENTRY__.logger || (i.__SENTRY__.logger = new s());
756 },
757 function (e, t, n) {
758 "use strict";
759 e.exports = function (e, t) {
760 return function () {
761 for (var n = new Array(arguments.length), r = 0; r < n.length; r++) n[r] = arguments[r];
762 return e.apply(t, n);
763 };
764 };
765 },
766 function (e, t) {
767 var n,
768 r,
769 i = (e.exports = {});
770 function o() {
771 throw new Error("setTimeout has not been defined");
772 }
773 function s() {
774 throw new Error("clearTimeout has not been defined");
775 }
776 function a(e) {
777 if (n === setTimeout) return setTimeout(e, 0);
778 if ((n === o || !n) && setTimeout) return (n = setTimeout), setTimeout(e, 0);
779 try {
780 return n(e, 0);
781 } catch (t) {
782 try {
783 return n.call(null, e, 0);
784 } catch (t) {
785 return n.call(this, e, 0);
786 }
787 }
788 }
789 !(function () {
790 try {
791 n = "function" == typeof setTimeout ? setTimeout : o;
792 } catch (e) {
793 n = o;
794 }
795 try {
796 r = "function" == typeof clearTimeout ? clearTimeout : s;
797 } catch (e) {
798 r = s;
799 }
800 })();
801 var c,
802 u = [],
803 l = !1,
804 p = -1;
805 function d() {
806 l && c && ((l = !1), c.length ? (u = c.concat(u)) : (p = -1), u.length && f());
807 }
808 function f() {
809 if (!l) {
810 var e = a(d);
811 l = !0;
812 for (var t = u.length; t; ) {
813 for (c = u, u = []; ++p < t; ) c && c[p].run();
814 (p = -1), (t = u.length);
815 }
816 (c = null),
817 (l = !1),
818 (function (e) {
819 if (r === clearTimeout) return clearTimeout(e);
820 if ((r === s || !r) && clearTimeout) return (r = clearTimeout), clearTimeout(e);
821 try {
822 r(e);
823 } catch (t) {
824 try {
825 return r.call(null, e);
826 } catch (t) {
827 return r.call(this, e);
828 }
829 }
830 })(e);
831 }
832 }
833 function h(e, t) {
834 (this.fun = e), (this.array = t);
835 }
836 function _() {}
837 (i.nextTick = function (e) {
838 var t = new Array(arguments.length - 1);
839 if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
840 u.push(new h(e, t)), 1 !== u.length || l || a(f);
841 }),
842 (h.prototype.run = function () {
843 this.fun.apply(null, this.array);
844 }),
845 (i.title = "browser"),
846 (i.browser = !0),
847 (i.env = {}),
848 (i.argv = []),
849 (i.version = ""),
850 (i.versions = {}),
851 (i.on = _),
852 (i.addListener = _),
853 (i.once = _),
854 (i.off = _),
855 (i.removeListener = _),
856 (i.removeAllListeners = _),
857 (i.emit = _),
858 (i.prependListener = _),
859 (i.prependOnceListener = _),
860 (i.listeners = function (e) {
861 return [];
862 }),
863 (i.binding = function (e) {
864 throw new Error("process.binding is not supported");
865 }),
866 (i.cwd = function () {
867 return "/";
868 }),
869 (i.chdir = function (e) {
870 throw new Error("process.chdir is not supported");
871 }),
872 (i.umask = function () {
873 return 0;
874 });
875 },
876 function (e, t, n) {
877 "use strict";
878 var r = n(3),
879 i = n(25),
880 o = n(27),
881 s = n(28),
882 a = n(29),
883 c = n(15);
884 e.exports = function (e) {
885 return new Promise(function (t, u) {
886 var l = e.data,
887 p = e.headers;
888 r.isFormData(l) && delete p["Content-Type"];
889 var d = new XMLHttpRequest();
890 if (e.auth) {
891 var f = e.auth.username || "",
892 h = e.auth.password || "";
893 p.Authorization = "Basic " + btoa(f + ":" + h);
894 }
895 if (
896 (d.open(e.method.toUpperCase(), o(e.url, e.params, e.paramsSerializer), !0),
897 (d.timeout = e.timeout),
898 (d.onreadystatechange = function () {
899 if (d && 4 === d.readyState && (0 !== d.status || (d.responseURL && 0 === d.responseURL.indexOf("file:")))) {
900 var n = "getAllResponseHeaders" in d ? s(d.getAllResponseHeaders()) : null,
901 r = { data: e.responseType && "text" !== e.responseType ? d.response : d.responseText, status: d.status, statusText: d.statusText, headers: n, config: e, request: d };
902 i(t, u, r), (d = null);
903 }
904 }),
905 (d.onerror = function () {
906 u(c("Network Error", e, null, d)), (d = null);
907 }),
908 (d.ontimeout = function () {
909 u(c("timeout of " + e.timeout + "ms exceeded", e, "ECONNABORTED", d)), (d = null);
910 }),
911 r.isStandardBrowserEnv())
912 ) {
913 var _ = n(30),
914 m = (e.withCredentials || a(e.url)) && e.xsrfCookieName ? _.read(e.xsrfCookieName) : void 0;
915 m && (p[e.xsrfHeaderName] = m);
916 }
917 if (
918 ("setRequestHeader" in d &&
919 r.forEach(p, function (e, t) {
920 void 0 === l && "content-type" === t.toLowerCase() ? delete p[t] : d.setRequestHeader(t, e);
921 }),
922 e.withCredentials && (d.withCredentials = !0),
923 e.responseType)
924 )
925 try {
926 d.responseType = e.responseType;
927 } catch (t) {
928 if ("json" !== e.responseType) throw t;
929 }
930 "function" == typeof e.onDownloadProgress && d.addEventListener("progress", e.onDownloadProgress),
931 "function" == typeof e.onUploadProgress && d.upload && d.upload.addEventListener("progress", e.onUploadProgress),
932 e.cancelToken &&
933 e.cancelToken.promise.then(function (e) {
934 d && (d.abort(), u(e), (d = null));
935 }),
936 void 0 === l && (l = null),
937 d.send(l);
938 });
939 };
940 },
941 function (e, t, n) {
942 "use strict";
943 var r = n(26);
944 e.exports = function (e, t, n, i, o) {
945 var s = new Error(e);
946 return r(s, t, n, i, o);
947 };
948 },
949 function (e, t, n) {
950 "use strict";
951 e.exports = function (e) {
952 return !(!e || !e.__CANCEL__);
953 };
954 },
955 function (e, t, n) {
956 "use strict";
957 function r(e) {
958 this.message = e;
959 }
960 (r.prototype.toString = function () {
961 return "Cancel" + (this.message ? ": " + this.message : "");
962 }),
963 (r.prototype.__CANCEL__ = !0),
964 (e.exports = r);
965 },
966 function (e, t) {
967 var n;
968 n = (function () {
969 return this;
970 })();
971 try {
972 n = n || new Function("return this")();
973 } catch (e) {
974 "object" == typeof window && (n = window);
975 }
976 e.exports = n;
977 },
978 function (e, t, n) {
979 "use strict";
980 n.d(t, "a", function () {
981 return r;
982 });
983 var r = (function () {
984 function e() {
985 (this._hasWeakSet = "function" == typeof WeakSet), (this._inner = this._hasWeakSet ? new WeakSet() : []);
986 }
987 return (
988 (e.prototype.memoize = function (e) {
989 if (this._hasWeakSet) return !!this._inner.has(e) || (this._inner.add(e), !1);
990 for (var t = 0; t < this._inner.length; t++) {
991 if (this._inner[t] === e) return !0;
992 }
993 return this._inner.push(e), !1;
994 }),
995 (e.prototype.unmemoize = function (e) {
996 if (this._hasWeakSet) this._inner.delete(e);
997 else
998 for (var t = 0; t < this._inner.length; t++)
999 if (this._inner[t] === e) {
1000 this._inner.splice(t, 1);
1001 break;
1002 }
1003 }),
1004 e
1005 );
1006 })();
1007 },
1008 function (e, t, n) {
1009 "use strict";
1010 n.d(t, "a", function () {
1011 return o;
1012 });
1013 var r = n(2),
1014 i = /^[ \t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \t]*$/,
1015 o = (function () {
1016 function e(e, t, n, i) {
1017 void 0 === e && (e = Object(r.g)()), void 0 === t && (t = Object(r.g)().substring(16)), (this._traceId = e), (this._spanId = t), (this._sampled = n), (this._parent = i);
1018 }
1019 return (
1020 (e.prototype.setParent = function (e) {
1021 return (this._parent = e), this;
1022 }),
1023 (e.prototype.setSampled = function (e) {
1024 return (this._sampled = e), this;
1025 }),
1026 (e.fromTraceparent = function (t) {
1027 var n = t.match(i);
1028 if (n) {
1029 var r = void 0;
1030 "1" === n[3] ? (r = !0) : "0" === n[3] && (r = !1);
1031 var o = new e(n[1], n[2], r);
1032 return new e(n[1], void 0, r, o);
1033 }
1034 }),
1035 (e.prototype.toTraceparent = function () {
1036 var e = "";
1037 return !0 === this._sampled ? (e = "-1") : !1 === this._sampled && (e = "-0"), this._traceId + "-" + this._spanId + e;
1038 }),
1039 (e.prototype.toJSON = function () {
1040 return { parent: (this._parent && this._parent.toJSON()) || void 0, sampled: this._sampled, span_id: this._spanId, trace_id: this._traceId };
1041 }),
1042 e
1043 );
1044 })();
1045 },
1046 function (e, t, n) {
1047 "use strict";
1048 var r = n(3),
1049 i = n(12),
1050 o = n(23),
1051 s = n(9);
1052 function a(e) {
1053 var t = new o(e),
1054 n = i(o.prototype.request, t);
1055 return r.extend(n, o.prototype, t), r.extend(n, t), n;
1056 }
1057 var c = a(s);
1058 (c.Axios = o),
1059 (c.create = function (e) {
1060 return a(r.merge(s, e));
1061 }),
1062 (c.Cancel = n(17)),
1063 (c.CancelToken = n(36)),
1064 (c.isCancel = n(16)),
1065 (c.all = function (e) {
1066 return Promise.all(e);
1067 }),
1068 (c.spread = n(37)),
1069 (e.exports = c),
1070 (e.exports.default = c);
1071 },
1072 function (e, t) {
1073 /*!
1074 * Determine if an object is a Buffer
1075 *
1076 * @author Feross Aboukhadijeh <https://feross.org>
1077 * @license MIT
1078 */
1079 e.exports = function (e) {
1080 return null != e && null != e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e);
1081 };
1082 },
1083 function (e, t, n) {
1084 "use strict";
1085 var r = n(9),
1086 i = n(3),
1087 o = n(31),
1088 s = n(32);
1089 function a(e) {
1090 (this.defaults = e), (this.interceptors = { request: new o(), response: new o() });
1091 }
1092 (a.prototype.request = function (e) {
1093 "string" == typeof e && (e = i.merge({ url: arguments[0] }, arguments[1])), ((e = i.merge(r, { method: "get" }, this.defaults, e)).method = e.method.toLowerCase());
1094 var t = [s, void 0],
1095 n = Promise.resolve(e);
1096 for (
1097 this.interceptors.request.forEach(function (e) {
1098 t.unshift(e.fulfilled, e.rejected);
1099 }),
1100 this.interceptors.response.forEach(function (e) {
1101 t.push(e.fulfilled, e.rejected);
1102 });
1103 t.length;
1104
1105 )
1106 n = n.then(t.shift(), t.shift());
1107 return n;
1108 }),
1109 i.forEach(["delete", "get", "head", "options"], function (e) {
1110 a.prototype[e] = function (t, n) {
1111 return this.request(i.merge(n || {}, { method: e, url: t }));
1112 };
1113 }),
1114 i.forEach(["post", "put", "patch"], function (e) {
1115 a.prototype[e] = function (t, n, r) {
1116 return this.request(i.merge(r || {}, { method: e, url: t, data: n }));
1117 };
1118 }),
1119 (e.exports = a);
1120 },
1121 function (e, t, n) {
1122 "use strict";
1123 var r = n(3);
1124 e.exports = function (e, t) {
1125 r.forEach(e, function (n, r) {
1126 r !== t && r.toUpperCase() === t.toUpperCase() && ((e[t] = n), delete e[r]);
1127 });
1128 };
1129 },
1130 function (e, t, n) {
1131 "use strict";
1132 var r = n(15);
1133 e.exports = function (e, t, n) {
1134 var i = n.config.validateStatus;
1135 n.status && i && !i(n.status) ? t(r("Request failed with status code " + n.status, n.config, null, n.request, n)) : e(n);
1136 };
1137 },
1138 function (e, t, n) {
1139 "use strict";
1140 e.exports = function (e, t, n, r, i) {
1141 return (e.config = t), n && (e.code = n), (e.request = r), (e.response = i), e;
1142 };
1143 },
1144 function (e, t, n) {
1145 "use strict";
1146 var r = n(3);
1147 function i(e) {
1148 return encodeURIComponent(e).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1149 }
1150 e.exports = function (e, t, n) {
1151 if (!t) return e;
1152 var o;
1153 if (n) o = n(t);
1154 else if (r.isURLSearchParams(t)) o = t.toString();
1155 else {
1156 var s = [];
1157 r.forEach(t, function (e, t) {
1158 null != e &&
1159 (r.isArray(e) ? (t += "[]") : (e = [e]),
1160 r.forEach(e, function (e) {
1161 r.isDate(e) ? (e = e.toISOString()) : r.isObject(e) && (e = JSON.stringify(e)), s.push(i(t) + "=" + i(e));
1162 }));
1163 }),
1164 (o = s.join("&"));
1165 }
1166 return o && (e += (-1 === e.indexOf("?") ? "?" : "&") + o), e;
1167 };
1168 },
1169 function (e, t, n) {
1170 "use strict";
1171 var r = n(3),
1172 i = [
1173 "age",
1174 "authorization",
1175 "content-length",
1176 "content-type",
1177 "etag",
1178 "expires",
1179 "from",
1180 "host",
1181 "if-modified-since",
1182 "if-unmodified-since",
1183 "last-modified",
1184 "location",
1185 "max-forwards",
1186 "proxy-authorization",
1187 "referer",
1188 "retry-after",
1189 "user-agent",
1190 ];
1191 e.exports = function (e) {
1192 var t,
1193 n,
1194 o,
1195 s = {};
1196 return e
1197 ? (r.forEach(e.split("\n"), function (e) {
1198 if (((o = e.indexOf(":")), (t = r.trim(e.substr(0, o)).toLowerCase()), (n = r.trim(e.substr(o + 1))), t)) {
1199 if (s[t] && i.indexOf(t) >= 0) return;
1200 s[t] = "set-cookie" === t ? (s[t] ? s[t] : []).concat([n]) : s[t] ? s[t] + ", " + n : n;
1201 }
1202 }),
1203 s)
1204 : s;
1205 };
1206 },
1207 function (e, t, n) {
1208 "use strict";
1209 var r = n(3);
1210 e.exports = r.isStandardBrowserEnv()
1211 ? (function () {
1212 var e,
1213 t = /(msie|trident)/i.test(navigator.userAgent),
1214 n = document.createElement("a");
1215 function i(e) {
1216 var r = e;
1217 return (
1218 t && (n.setAttribute("href", r), (r = n.href)),
1219 n.setAttribute("href", r),
1220 {
1221 href: n.href,
1222 protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
1223 host: n.host,
1224 search: n.search ? n.search.replace(/^\?/, "") : "",
1225 hash: n.hash ? n.hash.replace(/^#/, "") : "",
1226 hostname: n.hostname,
1227 port: n.port,
1228 pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname,
1229 }
1230 );
1231 }
1232 return (
1233 (e = i(window.location.href)),
1234 function (t) {
1235 var n = r.isString(t) ? i(t) : t;
1236 return n.protocol === e.protocol && n.host === e.host;
1237 }
1238 );
1239 })()
1240 : function () {
1241 return !0;
1242 };
1243 },
1244 function (e, t, n) {
1245 "use strict";
1246 var r = n(3);
1247 e.exports = r.isStandardBrowserEnv()
1248 ? {
1249 write: function (e, t, n, i, o, s) {
1250 var a = [];
1251 a.push(e + "=" + encodeURIComponent(t)),
1252 r.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()),
1253 r.isString(i) && a.push("path=" + i),
1254 r.isString(o) && a.push("domain=" + o),
1255 !0 === s && a.push("secure"),
1256 (document.cookie = a.join("; "));
1257 },
1258 read: function (e) {
1259 var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1260 return t ? decodeURIComponent(t[3]) : null;
1261 },
1262 remove: function (e) {
1263 this.write(e, "", Date.now() - 864e5);
1264 },
1265 }
1266 : {
1267 write: function () {},
1268 read: function () {
1269 return null;
1270 },
1271 remove: function () {},
1272 };
1273 },
1274 function (e, t, n) {
1275 "use strict";
1276 var r = n(3);
1277 function i() {
1278 this.handlers = [];
1279 }
1280 (i.prototype.use = function (e, t) {
1281 return this.handlers.push({ fulfilled: e, rejected: t }), this.handlers.length - 1;
1282 }),
1283 (i.prototype.eject = function (e) {
1284 this.handlers[e] && (this.handlers[e] = null);
1285 }),
1286 (i.prototype.forEach = function (e) {
1287 r.forEach(this.handlers, function (t) {
1288 null !== t && e(t);
1289 });
1290 }),
1291 (e.exports = i);
1292 },
1293 function (e, t, n) {
1294 "use strict";
1295 var r = n(3),
1296 i = n(33),
1297 o = n(16),
1298 s = n(9),
1299 a = n(34),
1300 c = n(35);
1301 function u(e) {
1302 e.cancelToken && e.cancelToken.throwIfRequested();
1303 }
1304 e.exports = function (e) {
1305 return (
1306 u(e),
1307 e.baseURL && !a(e.url) && (e.url = c(e.baseURL, e.url)),
1308 (e.headers = e.headers || {}),
1309 (e.data = i(e.data, e.headers, e.transformRequest)),
1310 (e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers || {})),
1311 r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function (t) {
1312 delete e.headers[t];
1313 }),
1314 (e.adapter || s.adapter)(e).then(
1315 function (t) {
1316 return u(e), (t.data = i(t.data, t.headers, e.transformResponse)), t;
1317 },
1318 function (t) {
1319 return o(t) || (u(e), t && t.response && (t.response.data = i(t.response.data, t.response.headers, e.transformResponse))), Promise.reject(t);
1320 }
1321 )
1322 );
1323 };
1324 },
1325 function (e, t, n) {
1326 "use strict";
1327 var r = n(3);
1328 e.exports = function (e, t, n) {
1329 return (
1330 r.forEach(n, function (n) {
1331 e = n(e, t);
1332 }),
1333 e
1334 );
1335 };
1336 },
1337 function (e, t, n) {
1338 "use strict";
1339 e.exports = function (e) {
1340 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e);
1341 };
1342 },
1343 function (e, t, n) {
1344 "use strict";
1345 e.exports = function (e, t) {
1346 return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
1347 };
1348 },
1349 function (e, t, n) {
1350 "use strict";
1351 var r = n(17);
1352 function i(e) {
1353 if ("function" != typeof e) throw new TypeError("executor must be a function.");
1354 var t;
1355 this.promise = new Promise(function (e) {
1356 t = e;
1357 });
1358 var n = this;
1359 e(function (e) {
1360 n.reason || ((n.reason = new r(e)), t(n.reason));
1361 });
1362 }
1363 (i.prototype.throwIfRequested = function () {
1364 if (this.reason) throw this.reason;
1365 }),
1366 (i.source = function () {
1367 var e;
1368 return {
1369 token: new i(function (t) {
1370 e = t;
1371 }),
1372 cancel: e,
1373 };
1374 }),
1375 (e.exports = i);
1376 },
1377 function (e, t, n) {
1378 "use strict";
1379 e.exports = function (e) {
1380 return function (t) {
1381 return e.apply(null, t);
1382 };
1383 };
1384 },
1385 function (e) {
1386 e.exports = JSON.parse(
1387 '{"prod":{"HOST":"static.kost.tv","SETTINGS_ENDPOINT":"https://v.kost.tv/r/"},"stage":{"HOST":"stage.static.kost.tv","SETTINGS_ENDPOINT":"https://stage.kost.tv/r/"},"sentry":{"sentryDsn":"https://1f831a1bd92f4337bb29f20f0f3b21da@sentry.kost.tv/5","filterOptions":{"maxBudgetMinute":3,"maxBudgetHour":10}}}'
1388 );
1389 },
1390 function (e, t) {
1391 e.exports = function (e) {
1392 if (!e.webpackPolyfill) {
1393 var t = Object.create(e);
1394 t.children || (t.children = []),
1395 Object.defineProperty(t, "loaded", {
1396 enumerable: !0,
1397 get: function () {
1398 return t.l;
1399 },
1400 }),
1401 Object.defineProperty(t, "id", {
1402 enumerable: !0,
1403 get: function () {
1404 return t.i;
1405 },
1406 }),
1407 Object.defineProperty(t, "exports", { enumerable: !0 }),
1408 (t.webpackPolyfill = 1);
1409 }
1410 return t;
1411 };
1412 },
1413 function (e) {
1414 e.exports = JSON.parse(
1415 '{"name":"manjusa","version":"0.4.48","description":"vertical vpaid-wrapper","main":"index.js","author":"vldfokin","license":"UNLICENSED","scripts":{"dev":"webpack-dev-server --mode development --open --config webpack.dev.js --env=dev","dev:embed":"webpack-dev-server --mode development --open --config webpack.dev.js --env.embed","build":"webpack --mode production --config webpack.prod.js --env=prod","build-stage":"webpack --mode production --config webpack.prod.js --env=stage","deploy":"scp -rp ./dist/* vertel@blaine.kost.tv:~/static.kost.tv/public_html/","deploy-stage":"scp -rp ./dist/* vertel@stage.kost.tv:~/stage.static.kost.tv/public_html/","deploy-sdn":"scp -rp ./dist/* kosttv@origin.sdn.kstdn.tech:~/static.kost.tv/","production":"npm ci && npm run build && npm run deploy","stage":"npm ci && npm run build-stage && npm run deploy-stage","sdn":"npm ci && npm run build && npm run deploy-sdn","test":"jest test"},"devDependencies":{"@babel/core":"^7.3.4","@babel/plugin-transform-regenerator":"^7.3.4","@babel/polyfill":"^7.2.5","@babel/preset-env":"^7.3.4","@sentry/browser":"^5.6.3","axios":"^0.18.0","babel-loader":"^8.0.5","clean-webpack-plugin":"^2.0.1","create-file-webpack":"^1.0.2","eslint":"^5.15.3","eslint-config-standard":"^12.0.0","eslint-friendly-formatter":"^4.0.1","eslint-loader":"^2.1.2","eslint-plugin-import":"^2.16.0","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","html-loader":"^0.5.5","html-webpack-plugin":"^3.2.0","intersection-observer-polyfill":"^0.1.0","jest":"^24.9.0","raw-loader":"^2.0.0","webpack":"^4.29.6","webpack-cli":"^3.3.0","webpack-dev-server":"^3.11.0","webpack-merge":"^4.2.1","xml-webpack-plugin":"^1.0.0"},"browserslist":{"production":["> 0.5% in RU","last 2 versions","Firefox ESR","not dead"],"development":["last 2 versions"]},"jest":{"moduleFileExtensions":["js","html"],"transform":{"^.+\\\\.js$":"babel-jest","^.+\\\\.html$":"<rootDir>/src/utils/htmlLoader.js"}}}'
1416 );
1417 },
1418 function (e, t, n) {
1419 "use strict";
1420 n.r(t);
1421 var r = {};
1422 n.r(r),
1423 n.d(r, "FunctionToString", function () {
1424 return d;
1425 }),
1426 n.d(r, "InboundFilters", function () {
1427 return S;
1428 });
1429 var i = n(10),
1430 o = n.n(i),
1431 s = { handshakeVersion: () => "2.0", getAdLinear: () => !0 };
1432 let a = {};
1433 ["getAdRemainingTime", "getAdDuration", "resizeAd", "pauseAd", "resumeAd", "expandAd", "getAdExpanded", "getAdSkippableState", "collapseAd", "skipAd", "getAdWidth", "getAdHeight", "getAdCompanions", "getAdIcons"].forEach((e) => {
1434 a[e] = () => {};
1435 });
1436 var c,
1437 u = a,
1438 l = {
1439 subscribe(e, t, n) {
1440 this._playerEvents[t] = e.bind(n);
1441 },
1442 unsubscribe(e) {
1443 this._playerEvents[e] = null;
1444 },
1445 },
1446 p =
1447 '<!DOCTYPE html>\n<html lang="ru">\n<head>\n <meta charset="utf-8"/>\n <title></title>\n <script\n type="text/javascript"\n src="//imasdk.googleapis.com/js/sdkloader/ima3.js"\n ></script>\n <script src="https://static.kost.tv/player/playerjs.js"></script>\n <style>\n html,\n body {\n height: 100%;\n margin: 0;\n }\n\n body {\n overflow: hidden;\n }\n\n #player {\n height: 100%;\n }\n </style>\n</head>\n<body>\n<div id="player"></div>\n\n<script>\n var origin = location.origin || "";\n var ancestorOrigins = location.ancestorOrigins || [];\n var ancestorOriginsArray = [];\n if (ancestorOrigins.length) {\n origin = ancestorOrigins[ancestorOrigins.length - 1];\n for (var i = 0; i < ancestorOrigins.length; i++) {\n ancestorOriginsArray.push(ancestorOrigins[i]);\n }\n }\n\n ancestorOriginsArray.unshift(location.origin);\n\n var player = new Playerjs({\n id: "player",\n file: "https://cdn.kost.tv/kintavr/blank.mp4",\n preroll: "js:getPreroll",\n autoplay: 0,\n volume: 0\n });\n\n var isPlayerReady = false;\n var shouldStartAfterInit = false;\n\n var target = parent;\n var config = {};\n\n var sentAdStarted = false;\n var adImp = false;\n var adStarted = false;\n\n var prerollsRequested = 0;\n var completes = 0;\n var attempts = 0;\n var views = 0;\n\n var sentLoaded = false;\n var sentReady = false;\n\n var vastArray = [];\n\n var visibility = null;\n\n window.addEventListener("message", function (e) {\n var event = e.data;\n console.log(event);\n if (event.target === "_ve_iframe") {\n switch (event.event) {\n case "config":\n if (!sentReady) {\n sentReady = true;\n config = event.info;\n sendMessage("gotConfig");\n }\n break;\n case "target":\n if (!sentLoaded) {\n sentLoaded = true;\n target = e.source;\n sendMessage("load");\n }\n break;\n case "start":\n if (isPlayerReady) {\n player.api("play");\n } else {\n shouldStartAfterInit = true;\n }\n break;\n case "changeVolume":\n player.api(\'volume\', event.info); // For change player volume through api\n break;\n }\n }\n });\n\n function PlayerjsEvents (event, type, value) {\n switch (event) {\n case "init":\n isPlayerReady = true;\n if (shouldStartAfterInit) {\n player.api("play");\n }\n break;\n case "play":\n console.log(\'Reached cont\');\n sendMessage("_ve_sequence_end");\n break;\n case "end":\n break;\n case "vast_load":\n adImp = false;\n break;\n case "vast_start":\n if (!sentAdStarted) {\n sendMessage("_ve_sequence_start");\n sentAdStarted = true;\n }\n sendMessage(\'_ve_ad_start\')\n case "vast_Impression":\n if (!adImp) {\n adStarted = true\n views++\n sendMessage("_ve_ad_imp", views);\n adImp = true;\n }\n break;\n case "vast_click":\n sendMessage("click");\n break;\n case "vast_complete":\n if (adImp) {\n completes++;\n sendMessage("complete", completes);\n }\n break;\n case \'visibility\':\n if (type === \'player\') {\n visibility = value\n }\n break;\n case \'vast_volume\':\n var playerValue = JSON.parse(value);\n var volume = playerValue.volume || 0;\n sendMessage("_ve_ad_volume", volume);\n }\n }\n\n function getPreroll () {\n console.log(\'Preroll lookup\');\n var firstPack = config.vastPacks[0];\n\n if (!firstPack) {\n console.log("no pack for current turn");\n sendMessage("_ve_sequence_end");\n return "";\n }\n\n if (!vastArray.length) {\n vastArray = firstPack;\n }\n\n if (adStarted) {\n adStarted = false;\n var nextPack = config.vastPacks[views];\n\n if (nextPack) {\n vastArray = vastArray.concat(nextPack)\n }\n }\n\n if (prerollsRequested >= vastArray.length) {\n prerollsRequested = 0;\n attempts++\n }\n\n prerollsRequested++;\n\n console.log("views:", views);\n console.log("attempts:", attempts);\n console.log("prerollsRequested:", prerollsRequested);\n\n if (views >= config.maxViews) {\n console.log("reached max views");\n sendMessage("_ve_sequence_end");\n return "";\n }\n\n if (attempts >= config.maxAttempts) {\n console.log("all attempts are used");\n sendMessage("_ve_sequence_end");\n return "";\n }\n\n var currentPreroll = vastArray[prerollsRequested - 1];\n console.log("currentPreroll:", currentPreroll);\n if (currentPreroll) {\n currentPreroll = updateUrlParameter(\n currentPreroll,\n "dc",\n btoa(JSON.stringify(ancestorOriginsArray))\n );\n currentPreroll = updateUrlParameter(currentPreroll, "dl", origin);\n currentPreroll = addSizeParams(currentPreroll);\n currentPreroll = addVisibilityParams(currentPreroll);\n\n console.log(\'Found PR:\' + currentPreroll || "");\n return currentPreroll || "";\n }\n console.log(\'Reached end\');\n sendMessage("_ve_sequence_end");\n return "";\n }\n\n function sendMessage (event, info) {\n console.log("sending message to parent");\n target.postMessage(\n {\n target: "_ve_vpaid",\n event: event,\n info: info\n },\n "*"\n );\n }\n\n function updateUrlParameter (uri, key, value) {\n value = encodeURIComponent(value);\n var i = uri.indexOf("#");\n var hash = i === -1 ? "" : uri.substr(i);\n uri = i === -1 ? uri : uri.substr(0, i);\n\n var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");\n var separator = uri.indexOf("?") !== -1 ? "&" : "?";\n if (uri.match(re)) {\n uri = uri.replace(re, "$1" + key + "=" + value + "$2");\n } else {\n uri = uri + separator + key + "=" + value;\n }\n return uri + hash;\n }\n\n function getCurrentSize () {\n var playerElement = document.getElementById(\'player\');\n\n if (playerElement) {\n var currentWidth = playerElement.clientWidth || "";\n var currentHeight = playerElement.clientHeight || "";\n\n return { width: currentWidth, height: currentHeight };\n }\n return null;\n }\n\n function addSizeParams (url) {\n if (url) {\n var currentSize = getCurrentSize();\n\n if (currentSize) {\n var updatedUrl = updateUrlParameter(url, "width", currentSize.width);\n updatedUrl = updateUrlParameter(updatedUrl, "height", currentSize.height);\n\n return updatedUrl;\n }\n }\n return url\n }\n\n function addVisibilityParams (url) {\n if (visibility !== null) {\n return updateUrlParameter(url, "vi", visibility);\n }\n return url;\n }\n\n // initSentry(\'Player.html\')\n // function initSentry (tag) {\n // Sentry.init({\n // dsn: "https://1f831a1bd92f4337bb29f20f0f3b21da@sentry.kost.tv/5",\n // environment: JSON.stringify("player"),\n // whitelistUrls: [/static\\/player/],\n // })\n //\n // Sentry.configureScope((scope) => {\n // scope.setTag(\'project-type\', tag)\n // })\n // }\n</script>\n\n\x3c!-- pixels --\x3e\n<img alt="" src="https://redirect.frontend.weborama.fr/rd?url=https%3A%2F%2Fpixel.kost.tv%2Fweborama%2F%3Fweborama_id%3D%7BWEBO_CID%7D" />\n\n</body>\n</html>\n',
1448 d = (function () {
1449 function e() {
1450 this.name = e.id;
1451 }
1452 return (
1453 (e.prototype.setupOnce = function () {
1454 (c = Function.prototype.toString),
1455 (Function.prototype.toString = function () {
1456 for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1457 var n = this.__sentry__ ? this.__sentry_original__ : this;
1458 return c.apply(n, e);
1459 });
1460 }),
1461 (e.id = "FunctionToString"),
1462 e
1463 );
1464 })(),
1465 f = n(0),
1466 h = n(8),
1467 _ = n(46),
1468 m = n(11),
1469 v = n(2),
1470 g = n(4);
1471 function y(e, t) {
1472 return void 0 === t && (t = 0), "string" != typeof e || 0 === t ? e : e.length <= t ? e : e.substr(0, t) + "...";
1473 }
1474 function b(e, t) {
1475 if (!Array.isArray(e)) return "";
1476 for (var n = [], r = 0; r < e.length; r++) {
1477 var i = e[r];
1478 try {
1479 n.push(String(i));
1480 } catch (e) {
1481 n.push("[value cannot be serialized]");
1482 }
1483 }
1484 return n.join(t);
1485 }
1486 function E(e, t) {
1487 if ((void 0 === t && (t = 40), !e.length)) return "[object has no keys]";
1488 if (e[0].length >= t) return y(e[0], t);
1489 for (var n = e.length; n > 0; n--) {
1490 var r = e.slice(0, n).join(", ");
1491 if (!(r.length > t)) return n === e.length ? r : y(r, t);
1492 }
1493 return "";
1494 }
1495 function w(e, t) {
1496 return Object(g.g)(t) ? t.test(e) : "string" == typeof t && e.includes(t);
1497 }
1498 var x = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/],
1499 S = (function () {
1500 function e(t) {
1501 void 0 === t && (t = {}), (this._options = t), (this.name = e.id);
1502 }
1503 return (
1504 (e.prototype.setupOnce = function () {
1505 Object(h.b)(function (t) {
1506 var n = Object(_.a)();
1507 if (!n) return t;
1508 var r = n.getIntegration(e);
1509 if (r) {
1510 var i = n.getClient(),
1511 o = i ? i.getOptions() : {},
1512 s = r._mergeOptions(o);
1513 if (r._shouldDropEvent(t, s)) return null;
1514 }
1515 return t;
1516 });
1517 }),
1518 (e.prototype._shouldDropEvent = function (e, t) {
1519 return this._isSentryError(e, t)
1520 ? (m.a.warn("Event dropped due to being internal Sentry Error.\nEvent: " + Object(v.d)(e)), !0)
1521 : this._isIgnoredError(e, t)
1522 ? (m.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: " + Object(v.d)(e)), !0)
1523 : this._isBlacklistedUrl(e, t)
1524 ? (m.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: " + Object(v.d)(e) + ".\nUrl: " + this._getEventFilterUrl(e)), !0)
1525 : !this._isWhitelistedUrl(e, t) && (m.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: " + Object(v.d)(e) + ".\nUrl: " + this._getEventFilterUrl(e)), !0);
1526 }),
1527 (e.prototype._isSentryError = function (e, t) {
1528 if ((void 0 === t && (t = {}), !t.ignoreInternal)) return !1;
1529 try {
1530 return "SentryError" === e.exception.values[0].type;
1531 } catch (e) {
1532 return !1;
1533 }
1534 }),
1535 (e.prototype._isIgnoredError = function (e, t) {
1536 return (
1537 void 0 === t && (t = {}),
1538 !(!t.ignoreErrors || !t.ignoreErrors.length) &&
1539 this._getPossibleEventMessages(e).some(function (e) {
1540 return t.ignoreErrors.some(function (t) {
1541 return w(e, t);
1542 });
1543 })
1544 );
1545 }),
1546 (e.prototype._isBlacklistedUrl = function (e, t) {
1547 if ((void 0 === t && (t = {}), !t.blacklistUrls || !t.blacklistUrls.length)) return !1;
1548 var n = this._getEventFilterUrl(e);
1549 return (
1550 !!n &&
1551 t.blacklistUrls.some(function (e) {
1552 return w(n, e);
1553 })
1554 );
1555 }),
1556 (e.prototype._isWhitelistedUrl = function (e, t) {
1557 if ((void 0 === t && (t = {}), !t.whitelistUrls || !t.whitelistUrls.length)) return !0;
1558 var n = this._getEventFilterUrl(e);
1559 return (
1560 !n ||
1561 t.whitelistUrls.some(function (e) {
1562 return w(n, e);
1563 })
1564 );
1565 }),
1566 (e.prototype._mergeOptions = function (e) {
1567 return (
1568 void 0 === e && (e = {}),
1569 {
1570 blacklistUrls: f.d(this._options.blacklistUrls || [], e.blacklistUrls || []),
1571 ignoreErrors: f.d(this._options.ignoreErrors || [], e.ignoreErrors || [], x),
1572 ignoreInternal: void 0 === this._options.ignoreInternal || this._options.ignoreInternal,
1573 whitelistUrls: f.d(this._options.whitelistUrls || [], e.whitelistUrls || []),
1574 }
1575 );
1576 }),
1577 (e.prototype._getPossibleEventMessages = function (e) {
1578 if (e.message) return [e.message];
1579 if (e.exception)
1580 try {
1581 var t = e.exception.values[0],
1582 n = t.type,
1583 r = t.value;
1584 return ["" + r, n + ": " + r];
1585 } catch (t) {
1586 return m.a.error("Cannot extract message for event " + Object(v.d)(e)), [];
1587 }
1588 return [];
1589 }),
1590 (e.prototype._getEventFilterUrl = function (e) {
1591 try {
1592 if (e.stacktrace) {
1593 var t = e.stacktrace.frames;
1594 return t[t.length - 1].filename;
1595 }
1596 if (e.exception) {
1597 var n = e.exception.values[0].stacktrace.frames;
1598 return n[n.length - 1].filename;
1599 }
1600 return null;
1601 } catch (t) {
1602 return m.a.error("Cannot extract url for event " + Object(v.d)(e)), null;
1603 }
1604 }),
1605 (e.id = "InboundFilters"),
1606 e
1607 );
1608 })();
1609 var O = n(5),
1610 j =
1611 Object.setPrototypeOf ||
1612 ({ __proto__: [] } instanceof Array
1613 ? function (e, t) {
1614 return (e.__proto__ = t), e;
1615 }
1616 : function (e, t) {
1617 for (var n in t) e.hasOwnProperty(n) || (e[n] = t[n]);
1618 return e;
1619 });
1620 var k = (function (e) {
1621 function t(t) {
1622 var n = this.constructor,
1623 r = e.call(this, t) || this;
1624 return (r.message = t), (r.name = n.prototype.constructor.name), j(r, n.prototype), r;
1625 }
1626 return f.b(t, e), t;
1627 })(Error),
1628 A = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,
1629 T = (function () {
1630 function e(e) {
1631 "string" == typeof e ? this._fromString(e) : this._fromComponents(e), this._validate();
1632 }
1633 return (
1634 (e.prototype.toString = function (e) {
1635 void 0 === e && (e = !1);
1636 var t = this,
1637 n = t.host,
1638 r = t.path,
1639 i = t.pass,
1640 o = t.port,
1641 s = t.projectId;
1642 return t.protocol + "://" + t.user + (e && i ? ":" + i : "") + "@" + n + (o ? ":" + o : "") + "/" + (r ? r + "/" : r) + s;
1643 }),
1644 (e.prototype._fromString = function (e) {
1645 var t = A.exec(e);
1646 if (!t) throw new k("Invalid Dsn");
1647 var n = f.c(t.slice(1), 6),
1648 r = n[0],
1649 i = n[1],
1650 o = n[2],
1651 s = void 0 === o ? "" : o,
1652 a = n[3],
1653 c = n[4],
1654 u = void 0 === c ? "" : c,
1655 l = "",
1656 p = n[5],
1657 d = p.split("/");
1658 d.length > 1 && ((l = d.slice(0, -1).join("/")), (p = d.pop())), Object.assign(this, { host: a, pass: s, path: l, projectId: p, port: u, protocol: r, user: i });
1659 }),
1660 (e.prototype._fromComponents = function (e) {
1661 (this.protocol = e.protocol), (this.user = e.user), (this.pass = e.pass || ""), (this.host = e.host), (this.port = e.port || ""), (this.path = e.path || ""), (this.projectId = e.projectId);
1662 }),
1663 (e.prototype._validate = function () {
1664 var e = this;
1665 if (
1666 (["protocol", "user", "host", "projectId"].forEach(function (t) {
1667 if (!e[t]) throw new k("Invalid Dsn");
1668 }),
1669 "http" !== this.protocol && "https" !== this.protocol)
1670 )
1671 throw new k("Invalid Dsn");
1672 if (this.port && Number.isNaN(parseInt(this.port, 10))) throw new k("Invalid Dsn");
1673 }),
1674 e
1675 );
1676 })(),
1677 P = (function () {
1678 function e(e) {
1679 (this.dsn = e), (this._dsnObject = new T(e));
1680 }
1681 return (
1682 (e.prototype.getDsn = function () {
1683 return this._dsnObject;
1684 }),
1685 (e.prototype.getStoreEndpoint = function () {
1686 return "" + this._getBaseUrl() + this.getStoreEndpointPath();
1687 }),
1688 (e.prototype.getStoreEndpointWithUrlEncodedAuth = function () {
1689 var e = { sentry_key: this._dsnObject.user, sentry_version: "7" };
1690 return this.getStoreEndpoint() + "?" + Object(O.d)(e);
1691 }),
1692 (e.prototype._getBaseUrl = function () {
1693 var e = this._dsnObject,
1694 t = e.protocol ? e.protocol + ":" : "",
1695 n = e.port ? ":" + e.port : "";
1696 return t + "//" + e.host + n;
1697 }),
1698 (e.prototype.getStoreEndpointPath = function () {
1699 var e = this._dsnObject;
1700 return (e.path ? "/" + e.path : "") + "/api/" + e.projectId + "/store/";
1701 }),
1702 (e.prototype.getRequestHeaders = function (e, t) {
1703 var n = this._dsnObject,
1704 r = ["Sentry sentry_version=7"];
1705 return (
1706 r.push("sentry_timestamp=" + new Date().getTime()),
1707 r.push("sentry_client=" + e + "/" + t),
1708 r.push("sentry_key=" + n.user),
1709 n.pass && r.push("sentry_secret=" + n.pass),
1710 { "Content-Type": "application/json", "X-Sentry-Auth": r.join(", ") }
1711 );
1712 }),
1713 (e.prototype.getReportDialogEndpoint = function (e) {
1714 void 0 === e && (e = {});
1715 var t = this._dsnObject,
1716 n = this._getBaseUrl() + (t.path ? "/" + t.path : "") + "/api/embed/error-page/",
1717 r = [];
1718 for (var i in (r.push("dsn=" + t.toString()), e))
1719 if ("user" === i) {
1720 if (!e.user) continue;
1721 e.user.name && r.push("name=" + encodeURIComponent(e.user.name)), e.user.email && r.push("email=" + encodeURIComponent(e.user.email));
1722 } else r.push(encodeURIComponent(i) + "=" + encodeURIComponent(e[i]));
1723 return r.length ? n + "?" + r.join("&") : n;
1724 }),
1725 e
1726 );
1727 })(),
1728 I = n(42),
1729 C = [];
1730 function R(e) {
1731 var t = {};
1732 return (
1733 (function (e) {
1734 var t = (e.defaultIntegrations && f.d(e.defaultIntegrations)) || [],
1735 n = e.integrations,
1736 r = [];
1737 if (Array.isArray(n)) {
1738 var i = n.map(function (e) {
1739 return e.name;
1740 }),
1741 o = [];
1742 t.forEach(function (e) {
1743 -1 === i.indexOf(e.name) && -1 === o.indexOf(e.name) && (r.push(e), o.push(e.name));
1744 }),
1745 n.forEach(function (e) {
1746 -1 === o.indexOf(e.name) && (r.push(e), o.push(e.name));
1747 });
1748 } else {
1749 if ("function" != typeof n) return f.d(t);
1750 (r = n(t)), (r = Array.isArray(r) ? r : [r]);
1751 }
1752 return r;
1753 })(e).forEach(function (e) {
1754 (t[e.name] = e),
1755 (function (e) {
1756 -1 === C.indexOf(e.name) && (e.setupOnce(h.b, _.a), C.push(e.name), m.a.log("Integration installed: " + e.name));
1757 })(e);
1758 }),
1759 t
1760 );
1761 }
1762 var N,
1763 L = (function () {
1764 function e(e, t) {
1765 (this._integrations = {}), (this._processing = !1), (this._backend = new e(t)), (this._options = t), t.dsn && (this._dsn = new T(t.dsn)), this._isEnabled() && (this._integrations = R(this._options));
1766 }
1767 return (
1768 (e.prototype.captureException = function (e, t, n) {
1769 var r = this,
1770 i = t && t.event_id;
1771 return (
1772 (this._processing = !0),
1773 this._getBackend()
1774 .eventFromException(e, t)
1775 .then(function (e) {
1776 return r._processEvent(e, t, n);
1777 })
1778 .then(function (e) {
1779 (i = e && e.event_id), (r._processing = !1);
1780 })
1781 .catch(function (e) {
1782 m.a.error(e), (r._processing = !1);
1783 }),
1784 i
1785 );
1786 }),
1787 (e.prototype.captureMessage = function (e, t, n, r) {
1788 var i = this,
1789 o = n && n.event_id;
1790 return (
1791 (this._processing = !0),
1792 (Object(g.f)(e) ? this._getBackend().eventFromMessage("" + e, t, n) : this._getBackend().eventFromException(e, n))
1793 .then(function (e) {
1794 return i._processEvent(e, n, r);
1795 })
1796 .then(function (e) {
1797 (o = e && e.event_id), (i._processing = !1);
1798 })
1799 .catch(function (e) {
1800 m.a.error(e), (i._processing = !1);
1801 }),
1802 o
1803 );
1804 }),
1805 (e.prototype.captureEvent = function (e, t, n) {
1806 var r = this,
1807 i = t && t.event_id;
1808 return (
1809 (this._processing = !0),
1810 this._processEvent(e, t, n)
1811 .then(function (e) {
1812 (i = e && e.event_id), (r._processing = !1);
1813 })
1814 .catch(function (e) {
1815 m.a.error(e), (r._processing = !1);
1816 }),
1817 i
1818 );
1819 }),
1820 (e.prototype.getDsn = function () {
1821 return this._dsn;
1822 }),
1823 (e.prototype.getOptions = function () {
1824 return this._options;
1825 }),
1826 (e.prototype.flush = function (e) {
1827 var t = this;
1828 return this._isClientProcessing(e).then(function (n) {
1829 return (
1830 clearInterval(n.interval),
1831 t
1832 ._getBackend()
1833 .getTransport()
1834 .close(e)
1835 .then(function (e) {
1836 return n.ready && e;
1837 })
1838 );
1839 });
1840 }),
1841 (e.prototype.close = function (e) {
1842 var t = this;
1843 return this.flush(e).then(function (e) {
1844 return (t.getOptions().enabled = !1), e;
1845 });
1846 }),
1847 (e.prototype.getIntegrations = function () {
1848 return this._integrations || {};
1849 }),
1850 (e.prototype.getIntegration = function (e) {
1851 try {
1852 return this._integrations[e.id] || null;
1853 } catch (t) {
1854 return m.a.warn("Cannot retrieve integration " + e.id + " from the current Client"), null;
1855 }
1856 }),
1857 (e.prototype._isClientProcessing = function (e) {
1858 var t = this;
1859 return new Promise(function (n) {
1860 var r = 0,
1861 i = 0;
1862 clearInterval(i),
1863 (i = setInterval(function () {
1864 t._processing ? ((r += 1), e && r >= e && n({ interval: i, ready: !1 })) : n({ interval: i, ready: !0 });
1865 }, 1));
1866 });
1867 }),
1868 (e.prototype._getBackend = function () {
1869 return this._backend;
1870 }),
1871 (e.prototype._isEnabled = function () {
1872 return !1 !== this.getOptions().enabled && void 0 !== this._dsn;
1873 }),
1874 (e.prototype._prepareEvent = function (e, t, n) {
1875 var r = this.getOptions(),
1876 i = r.environment,
1877 o = r.release,
1878 s = r.dist,
1879 a = r.maxValueLength,
1880 c = void 0 === a ? 250 : a,
1881 u = f.a({}, e);
1882 void 0 === u.environment && void 0 !== i && (u.environment = i), void 0 === u.release && void 0 !== o && (u.release = o), void 0 === u.dist && void 0 !== s && (u.dist = s), u.message && (u.message = y(u.message, c));
1883 var l = u.exception && u.exception.values && u.exception.values[0];
1884 l && l.value && (l.value = y(l.value, c));
1885 var p = u.request;
1886 p && p.url && (p.url = y(p.url, c)), void 0 === u.event_id && (u.event_id = Object(v.g)()), this._addIntegrations(u.sdk);
1887 var d = I.a.resolve(u);
1888 return t && (d = t.applyToEvent(u, n)), d;
1889 }),
1890 (e.prototype._addIntegrations = function (e) {
1891 var t = Object.keys(this._integrations);
1892 e && t.length > 0 && (e.integrations = t);
1893 }),
1894 (e.prototype._processEvent = function (e, t, n) {
1895 var r = this,
1896 i = this.getOptions(),
1897 o = i.beforeSend,
1898 s = i.sampleRate;
1899 return this._isEnabled()
1900 ? "number" == typeof s && Math.random() > s
1901 ? I.a.reject("This event has been sampled, will not send event.")
1902 : new I.a(function (i, s) {
1903 r._prepareEvent(e, n, t).then(function (e) {
1904 if (null !== e) {
1905 var n = e;
1906 try {
1907 if ((t && t.data && !0 === t.data.__sentry__) || !o) return r._getBackend().sendEvent(n), void i(n);
1908 var a = o(e, t);
1909 if (void 0 === a) m.a.error("`beforeSend` method has to return `null` or a valid event.");
1910 else if (Object(g.j)(a)) r._handleAsyncBeforeSend(a, i, s);
1911 else {
1912 if (null === (n = a)) return m.a.log("`beforeSend` returned `null`, will not send event."), void i(null);
1913 r._getBackend().sendEvent(n), i(n);
1914 }
1915 } catch (e) {
1916 r.captureException(e, { data: { __sentry__: !0 }, originalException: e }), s("`beforeSend` throw an error, will not send event.");
1917 }
1918 } else s("An event processor returned null, will not send event.");
1919 });
1920 })
1921 : I.a.reject("SDK not enabled, will not send event.");
1922 }),
1923 (e.prototype._handleAsyncBeforeSend = function (e, t, n) {
1924 var r = this;
1925 e.then(function (e) {
1926 null !== e ? (r._getBackend().sendEvent(e), t(e)) : n("`beforeSend` returned `null`, will not send event.");
1927 }).catch(function (e) {
1928 n("beforeSend rejected with " + e);
1929 });
1930 }),
1931 e
1932 );
1933 })();
1934 !(function (e) {
1935 (e.Unknown = "unknown"), (e.Skipped = "skipped"), (e.Success = "success"), (e.RateLimit = "rate_limit"), (e.Invalid = "invalid"), (e.Failed = "failed");
1936 })(N || (N = {})),
1937 (function (e) {
1938 e.fromHttpCode = function (t) {
1939 return t >= 200 && t < 300 ? e.Success : 429 === t ? e.RateLimit : t >= 400 && t < 500 ? e.Invalid : t >= 500 ? e.Failed : e.Unknown;
1940 };
1941 })(N || (N = {}));
1942 var U,
1943 V = (function () {
1944 function e() {}
1945 return (
1946 (e.prototype.sendEvent = function (e) {
1947 return Promise.resolve({ reason: "NoopTransport: Event has been skipped because no Dsn is configured.", status: N.Skipped });
1948 }),
1949 (e.prototype.close = function (e) {
1950 return Promise.resolve(!0);
1951 }),
1952 e
1953 );
1954 })(),
1955 F = (function () {
1956 function e(e) {
1957 (this._options = e), this._options.dsn || m.a.warn("No DSN provided, backend will not do anything."), (this._transport = this._setupTransport());
1958 }
1959 return (
1960 (e.prototype._setupTransport = function () {
1961 return new V();
1962 }),
1963 (e.prototype.eventFromException = function (e, t) {
1964 throw new k("Backend has to implement `eventFromException` method");
1965 }),
1966 (e.prototype.eventFromMessage = function (e, t, n) {
1967 throw new k("Backend has to implement `eventFromMessage` method");
1968 }),
1969 (e.prototype.sendEvent = function (e) {
1970 this._transport.sendEvent(e).catch(function (e) {
1971 m.a.error("Error while sending event: " + e);
1972 });
1973 }),
1974 (e.prototype.getTransport = function () {
1975 return this._transport;
1976 }),
1977 e
1978 );
1979 })();
1980 function D() {
1981 if (!("fetch" in Object(v.e)())) return !1;
1982 try {
1983 return new Headers(), new Request(""), new Response(), !0;
1984 } catch (e) {
1985 return !1;
1986 }
1987 }
1988 function M() {
1989 if (!D()) return !1;
1990 try {
1991 return new Request("_", { referrerPolicy: "origin" }), !0;
1992 } catch (e) {
1993 return !1;
1994 }
1995 }
1996 !(function (e) {
1997 (e.Fatal = "fatal"), (e.Error = "error"), (e.Warning = "warning"), (e.Log = "log"), (e.Info = "info"), (e.Debug = "debug"), (e.Critical = "critical");
1998 })(U || (U = {})),
1999 (function (e) {
2000 e.fromString = function (t) {
2001 switch (t) {
2002 case "debug":
2003 return e.Debug;
2004 case "info":
2005 return e.Info;
2006 case "warn":
2007 case "warning":
2008 return e.Warning;
2009 case "error":
2010 return e.Error;
2011 case "fatal":
2012 return e.Fatal;
2013 case "critical":
2014 return e.Critical;
2015 case "log":
2016 default:
2017 return e.Log;
2018 }
2019 };
2020 })(U || (U = {}));
2021 /**
2022 * TraceKit - Cross brower stack traces
2023 *
2024 * This was originally forked from github.com/occ/TraceKit, but has since been
2025 * largely modified and is now maintained as part of Sentry JS SDK.
2026 *
2027 * NOTE: Last merge with upstream repository
2028 * Jul 11,2018 - #f03357c
2029 *
2030 * https://github.com/csnover/TraceKit
2031 * @license MIT
2032 * @namespace TraceKit
2033 */
2034 var B = Object(v.e)(),
2035 q = { _report: !1, _collectWindowErrors: !1, _computeStackTrace: !1, _linesOfContext: !1 },
2036 H = "?",
2037 W = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;
2038 function J(e, t) {
2039 return Object.prototype.hasOwnProperty.call(e, t);
2040 }
2041 function $() {
2042 return "undefined" == typeof document || null == document.location ? "" : document.location.href;
2043 }
2044 (q._report = (function () {
2045 var e,
2046 t,
2047 n = [],
2048 r = null,
2049 i = null;
2050 function o(e, t, r) {
2051 var i = null;
2052 if (!t || q._collectWindowErrors) {
2053 for (var o in n)
2054 if (J(n, o))
2055 try {
2056 n[o](e, t, r);
2057 } catch (e) {
2058 i = e;
2059 }
2060 if (i) throw i;
2061 }
2062 }
2063 function s(t, n, r, s, a) {
2064 var u = null;
2065 if (((a = Object(g.d)(a) ? a.error : a), (t = Object(g.d)(t) ? t.message : t), i)) q._computeStackTrace._augmentStackTraceWithInitialElement(i, n, r, t), c();
2066 else if (a && Object(g.c)(a)) ((u = q._computeStackTrace(a)).mechanism = "onerror"), o(u, !0, a);
2067 else {
2068 var l,
2069 p = { url: n, line: r, column: s },
2070 d = t;
2071 if ("[object String]" === {}.toString.call(t)) {
2072 var h = t.match(W);
2073 h && ((l = h[1]), (d = h[2]));
2074 }
2075 (p.func = H), (p.context = null), o((u = { name: l, message: d, mode: "onerror", mechanism: "onerror", stack: [f.a({}, p, { url: p.url || $() })] }), !0, null);
2076 }
2077 return !!e && e.apply(this, arguments);
2078 }
2079 function a(e) {
2080 var t = e;
2081 try {
2082 t = e && "reason" in e ? e.reason : e;
2083 } catch (e) {}
2084 var n = q._computeStackTrace(t);
2085 (n.mechanism = "onunhandledrejection"), o(n, !0, t);
2086 }
2087 function c() {
2088 var e = i,
2089 t = r;
2090 (i = null), (r = null), o(e, !1, t);
2091 }
2092 function u(e) {
2093 if (i) {
2094 if (r === e) return;
2095 c();
2096 }
2097 var t = q._computeStackTrace(e);
2098 throw (
2099 ((i = t),
2100 (r = e),
2101 setTimeout(
2102 function () {
2103 r === e && c();
2104 },
2105 t.incomplete ? 2e3 : 0
2106 ),
2107 e)
2108 );
2109 }
2110 return (
2111 (u._subscribe = function (e) {
2112 n.push(e);
2113 }),
2114 (u._installGlobalHandler = function () {
2115 !0 !== t && ((e = B.onerror), (B.onerror = s), (t = !0));
2116 }),
2117 (u._installGlobalUnhandledRejectionHandler = function () {
2118 B.onunhandledrejection = a;
2119 }),
2120 u
2121 );
2122 })()),
2123 (q._computeStackTrace = (function () {
2124 function e(e) {
2125 if (!e || !e.stack) return null;
2126 for (
2127 var t,
2128 n,
2129 r,
2130 i = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[-a-z]+:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
2131 o = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,
2132 s = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
2133 a = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i,
2134 c = /\((\S*)(?::(\d+))(?::(\d+))\)/,
2135 u = e.stack.split("\n"),
2136 l = [],
2137 p = /^(.*) is undefined$/.exec(e.message),
2138 d = 0,
2139 f = u.length;
2140 d < f;
2141 ++d
2142 ) {
2143 if ((n = i.exec(u[d]))) {
2144 var h = n[2] && 0 === n[2].indexOf("native");
2145 n[2] && 0 === n[2].indexOf("eval") && (t = c.exec(n[2])) && ((n[2] = t[1]), (n[3] = t[2]), (n[4] = t[3])),
2146 (r = { url: n[2], func: n[1] || H, args: h ? [n[2]] : [], line: n[3] ? +n[3] : null, column: n[4] ? +n[4] : null });
2147 } else if ((n = s.exec(u[d]))) r = { url: n[2], func: n[1] || H, args: [], line: +n[3], column: n[4] ? +n[4] : null };
2148 else {
2149 if (!(n = o.exec(u[d]))) continue;
2150 n[3] && n[3].indexOf(" > eval") > -1 && (t = a.exec(n[3]))
2151 ? ((n[1] = n[1] || "eval"), (n[3] = t[1]), (n[4] = t[2]), (n[5] = ""))
2152 : 0 !== d || n[5] || void 0 === e.columnNumber || (l[0].column = e.columnNumber + 1),
2153 (r = { url: n[3], func: n[1] || H, args: n[2] ? n[2].split(",") : [], line: n[4] ? +n[4] : null, column: n[5] ? +n[5] : null });
2154 }
2155 !r.func && r.line && (r.func = H), (r.context = null), l.push(r);
2156 }
2157 return l.length ? (l[0] && l[0].line && !l[0].column && p && (l[0].column = null), { mode: "stack", name: e.name, message: e.message, stack: l }) : null;
2158 }
2159 function t(e, t, n, r) {
2160 var i = { url: t, line: n };
2161 if (i.url && i.line) {
2162 if (((e.incomplete = !1), i.func || (i.func = H), i.context || (i.context = null), / '([^']+)' /.exec(r) && (i.column = null), e.stack.length > 0 && e.stack[0].url === i.url)) {
2163 if (e.stack[0].line === i.line) return !1;
2164 if (!e.stack[0].line && e.stack[0].func === i.func) return (e.stack[0].line = i.line), (e.stack[0].context = i.context), !1;
2165 }
2166 return e.stack.unshift(i), (e.partial = !0), !0;
2167 }
2168 return (e.incomplete = !0), !1;
2169 }
2170 function n(e, r) {
2171 for (var i, o, s = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, a = [], c = {}, u = !1, l = n.caller; l && !u; l = l.caller)
2172 if (l !== X && l !== q._report) {
2173 if (((o = { url: null, func: H, args: [], line: null, column: null }), l.name ? (o.func = l.name) : (i = s.exec(l.toString())) && (o.func = i[1]), void 0 === o.func))
2174 try {
2175 o.func = i.input.substring(0, i.input.indexOf("{"));
2176 } catch (e) {}
2177 c["" + l] ? (u = !0) : (c["" + l] = !0), a.push(o);
2178 }
2179 r && a.splice(0, r);
2180 var p = { mode: "callers", name: e.name, message: e.message, stack: a };
2181 return t(p, e.sourceURL || e.fileName, e.line || e.lineNumber, e.message || e.description), p;
2182 }
2183 function r(t, r) {
2184 var o = null,
2185 s = t && t.framesToPop;
2186 r = null == r ? 0 : +r;
2187 try {
2188 if (
2189 (o = (function (e) {
2190 var t = e.stacktrace;
2191 if (t) {
2192 for (
2193 var n,
2194 r = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,
2195 i = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,
2196 o = t.split("\n"),
2197 s = [],
2198 a = 0;
2199 a < o.length;
2200 a += 2
2201 ) {
2202 var c = null;
2203 (n = r.exec(o[a]))
2204 ? (c = { url: n[2], line: +n[1], column: null, func: n[3], args: [] })
2205 : (n = i.exec(o[a])) && (c = { url: n[6], line: +n[1], column: +n[2], func: n[3] || n[4], args: n[5] ? n[5].split(",") : [] }),
2206 c && (!c.func && c.line && (c.func = H), c.line && (c.context = null), c.context || (c.context = [o[a + 1]]), s.push(c));
2207 }
2208 return s.length ? { mode: "stacktrace", name: e.name, message: e.message, stack: s } : null;
2209 }
2210 })(t))
2211 )
2212 return i(o, s);
2213 } catch (e) {}
2214 try {
2215 if ((o = e(t))) return i(o, s);
2216 } catch (e) {}
2217 try {
2218 if (
2219 (o = (function (e) {
2220 var t = e.message.split("\n");
2221 if (t.length < 4) return null;
2222 var n,
2223 r = /^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,
2224 i = /^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,
2225 o = /^\s*Line (\d+) of function script\s*$/i,
2226 s = [],
2227 a = B && B.document && B.document.getElementsByTagName("script"),
2228 c = [];
2229 for (var u in a) J(a, u) && !a[u].src && c.push(a[u]);
2230 for (var l = 2; l < t.length; l += 2) {
2231 var p = null;
2232 if ((n = r.exec(t[l]))) p = { url: n[2], func: n[3], args: [], line: +n[1], column: null };
2233 else if ((n = i.exec(t[l]))) p = { url: n[3], func: n[4], args: [], line: +n[1], column: null };
2234 else if ((n = o.exec(t[l]))) {
2235 p = { url: $().replace(/#.*$/, ""), func: "", args: [], line: n[1], column: null };
2236 }
2237 p && (p.func || (p.func = H), (p.context = [t[l + 1]]), s.push(p));
2238 }
2239 return s.length ? { mode: "multiline", name: e.name, message: t[0], stack: s } : null;
2240 })(t))
2241 )
2242 return i(o, s);
2243 } catch (e) {}
2244 try {
2245 if ((o = n(t, r + 1))) return i(o, s);
2246 } catch (e) {}
2247 return { original: t, name: t && t.name, message: t && t.message, mode: "failed" };
2248 }
2249 function i(e, t) {
2250 if (Number.isNaN(t)) return e;
2251 try {
2252 return f.a({}, e, { stack: e.stack.slice(t) });
2253 } catch (t) {
2254 return e;
2255 }
2256 }
2257 return (r._augmentStackTraceWithInitialElement = t), (r._computeStackTraceFromStackProp = e), r;
2258 })()),
2259 (q._collectWindowErrors = !0),
2260 (q._linesOfContext = 11);
2261 var z = q._report._subscribe,
2262 Y = q._report._installGlobalHandler,
2263 G = q._report._installGlobalUnhandledRejectionHandler,
2264 X = q._computeStackTrace,
2265 Q = 50;
2266 function K(e) {
2267 var t = ee(e.stack),
2268 n = { type: e.name, value: e.message };
2269 return t && t.length && (n.stacktrace = { frames: t }), void 0 === n.type && "" === n.value && (n.value = "Unrecoverable error caught"), n;
2270 }
2271 function Z(e) {
2272 return { exception: { values: [K(e)] } };
2273 }
2274 function ee(e) {
2275 if (!e || !e.length) return [];
2276 var t = e,
2277 n = t[0].func || "",
2278 r = t[t.length - 1].func || "";
2279 return (
2280 (n.includes("captureMessage") || n.includes("captureException")) && (t = t.slice(1)),
2281 r.includes("sentryWrapped") && (t = t.slice(0, -1)),
2282 t
2283 .map(function (e) {
2284 return { colno: e.column, filename: e.url || t[0].url, function: e.func || "?", in_app: !0, lineno: e.line };
2285 })
2286 .slice(0, Q)
2287 .reverse()
2288 );
2289 }
2290 var te = (function () {
2291 function e(e) {
2292 (this._limit = e), (this._buffer = []);
2293 }
2294 return (
2295 (e.prototype.isReady = function () {
2296 return void 0 === this._limit || this.length() < this._limit;
2297 }),
2298 (e.prototype.add = function (e) {
2299 var t = this;
2300 return this.isReady()
2301 ? (-1 === this._buffer.indexOf(e) && this._buffer.push(e),
2302 e
2303 .then(function () {
2304 return t.remove(e);
2305 })
2306 .catch(function () {
2307 return t.remove(e).catch(function () {});
2308 }),
2309 e)
2310 : Promise.reject(new k("Not adding Promise due to buffer limit reached."));
2311 }),
2312 (e.prototype.remove = function (e) {
2313 return this._buffer.splice(this._buffer.indexOf(e), 1)[0];
2314 }),
2315 (e.prototype.length = function () {
2316 return this._buffer.length;
2317 }),
2318 (e.prototype.drain = function (e) {
2319 var t = this;
2320 return new Promise(function (n) {
2321 var r = setTimeout(function () {
2322 e && e > 0 && n(!1);
2323 }, e);
2324 Promise.all(t._buffer)
2325 .then(function () {
2326 clearTimeout(r), n(!0);
2327 })
2328 .catch(function () {
2329 n(!0);
2330 });
2331 });
2332 }),
2333 e
2334 );
2335 })(),
2336 ne = (function () {
2337 function e(e) {
2338 (this.options = e), (this._buffer = new te(30)), (this.url = new P(this.options.dsn).getStoreEndpointWithUrlEncodedAuth());
2339 }
2340 return (
2341 (e.prototype.sendEvent = function (e) {
2342 throw new k("Transport Class has to implement `sendEvent` method");
2343 }),
2344 (e.prototype.close = function (e) {
2345 return this._buffer.drain(e);
2346 }),
2347 e
2348 );
2349 })(),
2350 re = Object(v.e)(),
2351 ie = (function (e) {
2352 function t() {
2353 return (null !== e && e.apply(this, arguments)) || this;
2354 }
2355 return (
2356 f.b(t, e),
2357 (t.prototype.sendEvent = function (e) {
2358 var t = { body: JSON.stringify(e), method: "POST", referrerPolicy: M() ? "origin" : "" };
2359 return this._buffer.add(
2360 re.fetch(this.url, t).then(function (e) {
2361 return { status: N.fromHttpCode(e.status) };
2362 })
2363 );
2364 }),
2365 t
2366 );
2367 })(ne),
2368 oe = (function (e) {
2369 function t() {
2370 return (null !== e && e.apply(this, arguments)) || this;
2371 }
2372 return (
2373 f.b(t, e),
2374 (t.prototype.sendEvent = function (e) {
2375 var t = this;
2376 return this._buffer.add(
2377 new Promise(function (n, r) {
2378 var i = new XMLHttpRequest();
2379 (i.onreadystatechange = function () {
2380 4 === i.readyState && (200 === i.status && n({ status: N.fromHttpCode(i.status) }), r(i));
2381 }),
2382 i.open("POST", t.url),
2383 i.send(JSON.stringify(e));
2384 })
2385 );
2386 }),
2387 t
2388 );
2389 })(ne),
2390 se = (function (e) {
2391 function t() {
2392 return (null !== e && e.apply(this, arguments)) || this;
2393 }
2394 return (
2395 f.b(t, e),
2396 (t.prototype._setupTransport = function () {
2397 if (!this._options.dsn) return e.prototype._setupTransport.call(this);
2398 var t = f.a({}, this._options.transportOptions, { dsn: this._options.dsn });
2399 return this._options.transport ? new this._options.transport(t) : D() ? new ie(t) : new oe(t);
2400 }),
2401 (t.prototype.eventFromException = function (e, t) {
2402 var n,
2403 r = this;
2404 if (Object(g.d)(e) && e.error) return (e = e.error), (n = Z(X(e))), I.a.resolve(this._buildEvent(n, t));
2405 if (Object(g.a)(e) || Object(g.b)(e)) {
2406 var i = e,
2407 o = i.name || (Object(g.a)(i) ? "DOMError" : "DOMException"),
2408 s = i.message ? o + ": " + i.message : o;
2409 return this.eventFromMessage(s, U.Error, t).then(function (e) {
2410 return Object(v.a)(e, s), I.a.resolve(r._buildEvent(e, t));
2411 });
2412 }
2413 if (Object(g.c)(e)) return (n = Z(X(e))), I.a.resolve(this._buildEvent(n, t));
2414 if (Object(g.e)(e) && t && t.syntheticException)
2415 return (
2416 (n = (function (e, t) {
2417 var n = Object.keys(e).sort(),
2418 r = { extra: { __serialized__: Object(O.c)(e) }, message: "Non-Error exception captured with keys: " + E(n) };
2419 if (t) {
2420 var i = ee(X(t).stack);
2421 r.stacktrace = { frames: i };
2422 }
2423 return r;
2424 })(e, t.syntheticException)),
2425 Object(v.a)(n, "Custom Object", void 0, { handled: !0, synthetic: !0, type: "generic" }),
2426 (n.level = U.Error),
2427 I.a.resolve(this._buildEvent(n, t))
2428 );
2429 var a = e;
2430 return this.eventFromMessage(a, void 0, t).then(function (e) {
2431 return Object(v.a)(e, "" + a, void 0, { handled: !0, synthetic: !0, type: "generic" }), (e.level = U.Error), I.a.resolve(r._buildEvent(e, t));
2432 });
2433 }),
2434 (t.prototype._buildEvent = function (e, t) {
2435 return f.a({}, e, { event_id: t && t.event_id });
2436 }),
2437 (t.prototype.eventFromMessage = function (e, t, n) {
2438 void 0 === t && (t = U.Info);
2439 var r = { event_id: n && n.event_id, level: t, message: e };
2440 if (this._options.attachStacktrace && n && n.syntheticException) {
2441 var i = ee(X(n.syntheticException).stack);
2442 r.stacktrace = { frames: i };
2443 }
2444 return I.a.resolve(r);
2445 }),
2446 t
2447 );
2448 })(F),
2449 ae = (function (e) {
2450 function t(t) {
2451 return void 0 === t && (t = {}), e.call(this, se, t) || this;
2452 }
2453 return (
2454 f.b(t, e),
2455 (t.prototype._prepareEvent = function (t, n, r) {
2456 return (
2457 (t.platform = t.platform || "javascript"),
2458 (t.sdk = f.a({}, t.sdk, { name: "sentry.javascript.browser", packages: f.d((t.sdk && t.sdk.packages) || [], [{ name: "npm:@sentry/browser", version: "5.6.3" }]), version: "5.6.3" })),
2459 e.prototype._prepareEvent.call(this, t, n, r)
2460 );
2461 }),
2462 (t.prototype.showReportDialog = function (e) {
2463 void 0 === e && (e = {});
2464 var t = Object(v.e)().document;
2465 if (t)
2466 if (this._isEnabled()) {
2467 var n = e.dsn || this.getDsn();
2468 if (e.eventId)
2469 if (n) {
2470 var r = t.createElement("script");
2471 (r.async = !0), (r.src = new P(n).getReportDialogEndpoint(e)), e.onLoad && (r.onload = e.onLoad), (t.head || t.body).appendChild(r);
2472 } else m.a.error("Missing `Dsn` option in showReportDialog call");
2473 else m.a.error("Missing `eventId` option in showReportDialog call");
2474 } else m.a.error("Trying to call showReportDialog with Sentry Client is disabled");
2475 }),
2476 t
2477 );
2478 })(L);
2479 function ce(e) {
2480 for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2481 var r = Object(_.a)();
2482 if (r && r[e]) return r[e].apply(r, f.d(t));
2483 throw new Error("No hub defined or " + e + " was not found on the hub, please open a bug report.");
2484 }
2485 function ue(e) {
2486 var t;
2487 try {
2488 throw new Error("Sentry syntheticException");
2489 } catch (e) {
2490 t = e;
2491 }
2492 return ce("captureException", e, { originalException: e, syntheticException: t });
2493 }
2494 function le(e) {
2495 ce("withScope", e);
2496 }
2497 var pe,
2498 de,
2499 fe = 1e3,
2500 he = 0;
2501 function _e() {
2502 (he += 1),
2503 setTimeout(function () {
2504 he -= 1;
2505 });
2506 }
2507 function me(e, t, n) {
2508 if ((void 0 === t && (t = {}), "function" != typeof e)) return e;
2509 try {
2510 if (e.__sentry__) return e;
2511 if (e.__sentry_wrapped__) return e.__sentry_wrapped__;
2512 } catch (t) {
2513 return e;
2514 }
2515 var r = function () {
2516 n && "function" == typeof n && n.apply(this, arguments);
2517 var r = Array.prototype.slice.call(arguments);
2518 try {
2519 var i = r.map(function (e) {
2520 return me(e, t);
2521 });
2522 return e.handleEvent ? e.handleEvent.apply(this, i) : e.apply(this, i);
2523 } catch (e) {
2524 throw (
2525 (_e(),
2526 le(function (n) {
2527 n.addEventProcessor(function (e) {
2528 var n = f.a({}, e);
2529 return t.mechanism && Object(v.a)(n, void 0, void 0, t.mechanism), (n.extra = f.a({}, n.extra, { arguments: Object(O.b)(r, 3) })), n;
2530 }),
2531 ue(e);
2532 }),
2533 e)
2534 );
2535 }
2536 };
2537 try {
2538 for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
2539 } catch (e) {}
2540 (e.prototype = e.prototype || {}),
2541 (r.prototype = e.prototype),
2542 Object.defineProperty(e, "__sentry_wrapped__", { enumerable: !1, value: r }),
2543 Object.defineProperties(r, { __sentry__: { enumerable: !1, value: !0 }, __sentry_original__: { enumerable: !1, value: e } });
2544 try {
2545 Object.getOwnPropertyDescriptor(r, "name").configurable &&
2546 Object.defineProperty(r, "name", {
2547 get: function () {
2548 return e.name;
2549 },
2550 });
2551 } catch (e) {}
2552 return r;
2553 }
2554 var ve = 0;
2555 function ge(e, t) {
2556 return (
2557 void 0 === t && (t = !1),
2558 function (n) {
2559 if (((pe = void 0), n && de !== n)) {
2560 de = n;
2561 var r = function () {
2562 var t;
2563 try {
2564 t = n.target ? be(n.target) : be(n);
2565 } catch (e) {
2566 t = "<unknown>";
2567 }
2568 0 !== t.length && Object(_.a)().addBreadcrumb({ category: "ui." + e, message: t }, { event: n, name: e });
2569 };
2570 ve && clearTimeout(ve), t ? (ve = setTimeout(r)) : r();
2571 }
2572 }
2573 );
2574 }
2575 function ye() {
2576 return function (e) {
2577 var t;
2578 try {
2579 t = e.target;
2580 } catch (e) {
2581 return;
2582 }
2583 var n = t && t.tagName;
2584 n &&
2585 ("INPUT" === n || "TEXTAREA" === n || t.isContentEditable) &&
2586 (pe || ge("input")(e),
2587 clearTimeout(pe),
2588 (pe = setTimeout(function () {
2589 pe = void 0;
2590 }, fe)));
2591 };
2592 }
2593 function be(e) {
2594 for (var t, n = e, r = [], i = 0, o = 0, s = " > ".length; n && i++ < 5 && !("html" === (t = Ee(n)) || (i > 1 && o + r.length * s + t.length >= 80)); ) r.push(t), (o += t.length), (n = n.parentNode);
2595 return r.reverse().join(" > ");
2596 }
2597 function Ee(e) {
2598 var t,
2599 n,
2600 r,
2601 i,
2602 o,
2603 s = [];
2604 if (!e || !e.tagName) return "";
2605 if ((s.push(e.tagName.toLowerCase()), e.id && s.push("#" + e.id), (t = e.className) && Object(g.h)(t))) for (n = t.split(/\s+/), o = 0; o < n.length; o++) s.push("." + n[o]);
2606 var a = ["type", "name", "title", "alt"];
2607 for (o = 0; o < a.length; o++) (r = a[o]), (i = e.getAttribute(r)) && s.push("[" + r + '="' + i + '"]');
2608 return s.join("");
2609 }
2610 var we = (function () {
2611 function e() {
2612 (this._ignoreOnError = 0), (this.name = e.id);
2613 }
2614 return (
2615 (e.prototype._wrapTimeFunction = function (e) {
2616 return function () {
2617 for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
2618 var r = t[0];
2619 return (t[0] = me(r, { mechanism: { data: { function: xe(e) }, handled: !0, type: "instrument" } })), e.apply(this, t);
2620 };
2621 }),
2622 (e.prototype._wrapRAF = function (e) {
2623 return function (t) {
2624 return e(me(t, { mechanism: { data: { function: "requestAnimationFrame", handler: xe(e) }, handled: !0, type: "instrument" } }));
2625 };
2626 }),
2627 (e.prototype._wrapEventTarget = function (e) {
2628 var t = Object(v.e)(),
2629 n = t[e] && t[e].prototype;
2630 n &&
2631 n.hasOwnProperty &&
2632 n.hasOwnProperty("addEventListener") &&
2633 (Object(O.a)(n, "addEventListener", function (t) {
2634 return function (n, r, i) {
2635 try {
2636 "function" == typeof r.handleEvent && (r.handleEvent = me(r.handleEvent.bind(r), { mechanism: { data: { function: "handleEvent", handler: xe(r), target: e }, handled: !0, type: "instrument" } }));
2637 } catch (e) {}
2638 return t.call(this, n, me(r, { mechanism: { data: { function: "addEventListener", handler: xe(r), target: e }, handled: !0, type: "instrument" } }), i);
2639 };
2640 }),
2641 Object(O.a)(n, "removeEventListener", function (e) {
2642 return function (t, n, r) {
2643 var i = n;
2644 try {
2645 i = i && (i.__sentry_wrapped__ || i);
2646 } catch (e) {}
2647 return e.call(this, t, i, r);
2648 };
2649 }));
2650 }),
2651 (e.prototype.setupOnce = function () {
2652 this._ignoreOnError = this._ignoreOnError;
2653 var e = Object(v.e)();
2654 Object(O.a)(e, "setTimeout", this._wrapTimeFunction.bind(this)),
2655 Object(O.a)(e, "setInterval", this._wrapTimeFunction.bind(this)),
2656 Object(O.a)(e, "requestAnimationFrame", this._wrapRAF.bind(this)),
2657 [
2658 "EventTarget",
2659 "Window",
2660 "Node",
2661 "ApplicationCache",
2662 "AudioTrackList",
2663 "ChannelMergerNode",
2664 "CryptoOperation",
2665 "EventSource",
2666 "FileReader",
2667 "HTMLUnknownElement",
2668 "IDBDatabase",
2669 "IDBRequest",
2670 "IDBTransaction",
2671 "KeyOperation",
2672 "MediaController",
2673 "MessagePort",
2674 "ModalWindow",
2675 "Notification",
2676 "SVGElementInstance",
2677 "Screen",
2678 "TextTrack",
2679 "TextTrackCue",
2680 "TextTrackList",
2681 "WebSocket",
2682 "WebSocketWorker",
2683 "Worker",
2684 "XMLHttpRequest",
2685 "XMLHttpRequestEventTarget",
2686 "XMLHttpRequestUpload",
2687 ].forEach(this._wrapEventTarget.bind(this));
2688 }),
2689 (e.id = "TryCatch"),
2690 e
2691 );
2692 })();
2693 function xe(e) {
2694 try {
2695 return (e && e.name) || "<anonymous>";
2696 } catch (e) {
2697 return "<anonymous>";
2698 }
2699 }
2700 var Se,
2701 Oe = Object(v.e)(),
2702 je = (function () {
2703 function e(t) {
2704 (this.name = e.id), (this._options = f.a({ console: !0, dom: !0, fetch: !0, history: !0, sentry: !0, xhr: !0 }, t));
2705 }
2706 return (
2707 (e.prototype._instrumentConsole = function () {
2708 "console" in Oe &&
2709 ["debug", "info", "warn", "error", "log", "assert"].forEach(function (t) {
2710 t in Oe.console &&
2711 Object(O.a)(Oe.console, t, function (n) {
2712 return function () {
2713 for (var r = [], i = 0; i < arguments.length; i++) r[i] = arguments[i];
2714 var o = { category: "console", data: { extra: { arguments: Object(O.b)(r, 3) }, logger: "console" }, level: U.fromString(t), message: b(r, " ") };
2715 "assert" === t && !1 === r[0] && ((o.message = "Assertion failed: " + (b(r.slice(1), " ") || "console.assert")), (o.data.extra.arguments = Object(O.b)(r.slice(1), 3))),
2716 e.addBreadcrumb(o, { input: r, level: t }),
2717 n && Function.prototype.apply.call(n, Oe.console, r);
2718 };
2719 });
2720 });
2721 }),
2722 (e.prototype._instrumentDOM = function () {
2723 "document" in Oe &&
2724 (Oe.document.addEventListener("click", ge("click"), !1),
2725 Oe.document.addEventListener("keypress", ye(), !1),
2726 ["EventTarget", "Node"].forEach(function (e) {
2727 var t = Oe[e] && Oe[e].prototype;
2728 t &&
2729 t.hasOwnProperty &&
2730 t.hasOwnProperty("addEventListener") &&
2731 (Object(O.a)(t, "addEventListener", function (e) {
2732 return function (t, n, r) {
2733 return (
2734 n && n.handleEvent
2735 ? ("click" === t &&
2736 Object(O.a)(n, "handleEvent", function (e) {
2737 return function (t) {
2738 return ge("click")(t), e.call(this, t);
2739 };
2740 }),
2741 "keypress" === t &&
2742 Object(O.a)(n, "handleEvent", function (e) {
2743 return function (t) {
2744 return ye()(t), e.call(this, t);
2745 };
2746 }))
2747 : ("click" === t && ge("click", !0)(this), "keypress" === t && ye()(this)),
2748 e.call(this, t, n, r)
2749 );
2750 };
2751 }),
2752 Object(O.a)(t, "removeEventListener", function (e) {
2753 return function (t, n, r) {
2754 var i = n;
2755 try {
2756 i = i && (i.__sentry_wrapped__ || i);
2757 } catch (e) {}
2758 return e.call(this, t, i, r);
2759 };
2760 }));
2761 }));
2762 }),
2763 (e.prototype._instrumentFetch = function () {
2764 (function () {
2765 if (!D()) return !1;
2766 var e = function (e) {
2767 return -1 !== e.toString().indexOf("native");
2768 },
2769 t = Object(v.e)(),
2770 n = null,
2771 r = t.document;
2772 if (r) {
2773 var i = r.createElement("iframe");
2774 i.hidden = !0;
2775 try {
2776 r.head.appendChild(i), i.contentWindow && i.contentWindow.fetch && (n = e(i.contentWindow.fetch)), r.head.removeChild(i);
2777 } catch (e) {
2778 m.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e);
2779 }
2780 }
2781 return null === n && (n = e(t.fetch)), n;
2782 })() &&
2783 Object(O.a)(Oe, "fetch", function (t) {
2784 return function () {
2785 for (var n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r];
2786 var i,
2787 o = n[0],
2788 s = "GET";
2789 "string" == typeof o ? (i = o) : "Request" in Oe && o instanceof Request ? ((i = o.url), o.method && (s = o.method)) : (i = String(o)), n[1] && n[1].method && (s = n[1].method);
2790 var a = Object(_.a)().getClient(),
2791 c = a && a.getDsn();
2792 if (c) {
2793 var u = new P(c).getStoreEndpoint();
2794 if (u && i.includes(u)) return "POST" === s && n[1] && n[1].body && ke(n[1].body), t.apply(Oe, n);
2795 }
2796 var l = { method: Object(g.h)(s) ? s.toUpperCase() : s, url: i };
2797 return t
2798 .apply(Oe, n)
2799 .then(function (t) {
2800 return (l.status_code = t.status), e.addBreadcrumb({ category: "fetch", data: l, type: "http" }, { input: n, response: t }), t;
2801 })
2802 .catch(function (t) {
2803 throw (e.addBreadcrumb({ category: "fetch", data: l, level: U.Error, type: "http" }, { error: t, input: n }), t);
2804 });
2805 };
2806 });
2807 }),
2808 (e.prototype._instrumentHistory = function () {
2809 var t = this;
2810 if (((n = Object(v.e)()), (r = n.chrome), (i = r && r.app && r.app.runtime), (o = "history" in n && !!n.history.pushState && !!n.history.replaceState), !i && o)) {
2811 var n,
2812 r,
2813 i,
2814 o,
2815 s = function (t, n) {
2816 var r = Object(v.f)(Oe.location.href),
2817 i = Object(v.f)(n),
2818 o = Object(v.f)(t);
2819 o.path || (o = r),
2820 (Se = n),
2821 r.protocol === i.protocol && r.host === i.host && (n = i.relative),
2822 r.protocol === o.protocol && r.host === o.host && (t = o.relative),
2823 e.addBreadcrumb({ category: "navigation", data: { from: t, to: n } });
2824 },
2825 a = Oe.onpopstate;
2826 (Oe.onpopstate = function () {
2827 for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
2828 var r = Oe.location.href;
2829 if ((s(Se, r), a)) return a.apply(t, e);
2830 }),
2831 Object(O.a)(Oe.history, "pushState", c),
2832 Object(O.a)(Oe.history, "replaceState", c);
2833 }
2834 function c(e) {
2835 return function () {
2836 for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
2837 var r = t.length > 2 ? t[2] : void 0;
2838 return r && s(Se, String(r)), e.apply(this, t);
2839 };
2840 }
2841 }),
2842 (e.prototype._instrumentXHR = function () {
2843 if ("XMLHttpRequest" in Oe) {
2844 var t = XMLHttpRequest.prototype;
2845 Object(O.a)(t, "open", function (e) {
2846 return function () {
2847 for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
2848 var r = t[1];
2849 this.__sentry_xhr__ = { method: Object(g.h)(t[0]) ? t[0].toUpperCase() : t[0], url: t[1] };
2850 var i = Object(_.a)().getClient(),
2851 o = i && i.getDsn();
2852 if (o) {
2853 var s = new P(o).getStoreEndpoint();
2854 Object(g.h)(r) && s && r.includes(s) && (this.__sentry_own_request__ = !0);
2855 }
2856 return e.apply(this, t);
2857 };
2858 }),
2859 Object(O.a)(t, "send", function (t) {
2860 return function () {
2861 for (var r = [], i = 0; i < arguments.length; i++) r[i] = arguments[i];
2862 var o = this;
2863 function s() {
2864 if (4 === o.readyState) {
2865 if (o.__sentry_own_request__) return;
2866 try {
2867 o.__sentry_xhr__ && (o.__sentry_xhr__.status_code = o.status);
2868 } catch (e) {}
2869 e.addBreadcrumb({ category: "xhr", data: o.__sentry_xhr__, type: "http" }, { xhr: o });
2870 }
2871 }
2872 return (
2873 o.__sentry_own_request__ && ke(r[0]),
2874 ["onload", "onerror", "onprogress"].forEach(function (e) {
2875 n(e, o);
2876 }),
2877 "onreadystatechange" in o && "function" == typeof o.onreadystatechange
2878 ? Object(O.a)(o, "onreadystatechange", function (e) {
2879 return me(e, { mechanism: { data: { function: "onreadystatechange", handler: (e && e.name) || "<anonymous>" }, handled: !0, type: "instrument" } }, s);
2880 })
2881 : (o.onreadystatechange = s),
2882 t.apply(this, r)
2883 );
2884 };
2885 });
2886 }
2887 function n(e, t) {
2888 e in t &&
2889 "function" == typeof t[e] &&
2890 Object(O.a)(t, e, function (t) {
2891 return me(t, { mechanism: { data: { function: e, handler: (t && t.name) || "<anonymous>" }, handled: !0, type: "instrument" } });
2892 });
2893 }
2894 }),
2895 (e.addBreadcrumb = function (t, n) {
2896 Object(_.a)().getIntegration(e) && Object(_.a)().addBreadcrumb(t, n);
2897 }),
2898 (e.prototype.setupOnce = function () {
2899 this._options.console && this._instrumentConsole(),
2900 this._options.dom && this._instrumentDOM(),
2901 this._options.xhr && this._instrumentXHR(),
2902 this._options.fetch && this._instrumentFetch(),
2903 this._options.history && this._instrumentHistory();
2904 }),
2905 (e.id = "Breadcrumbs"),
2906 e
2907 );
2908 })();
2909 function ke(e) {
2910 try {
2911 var t = JSON.parse(e);
2912 je.addBreadcrumb({ category: "sentry", event_id: t.event_id, level: t.level || U.fromString("error"), message: Object(v.d)(t) }, { event: t });
2913 } catch (e) {
2914 m.a.error("Error while adding sentry type breadcrumb");
2915 }
2916 }
2917 var Ae = (function () {
2918 function e(t) {
2919 (this.name = e.id), (this._options = f.a({ onerror: !0, onunhandledrejection: !0 }, t));
2920 }
2921 return (
2922 (e.prototype.setupOnce = function () {
2923 (Error.stackTraceLimit = 50),
2924 z(function (t, n, r) {
2925 var i = r && !0 === r.__sentry_own_request__;
2926 if (!(he > 0 || i)) {
2927 var o = Object(_.a)().getIntegration(e);
2928 o && Object(_.a)().captureEvent(o._eventFromGlobalHandler(t, r), { data: { stack: t }, originalException: r });
2929 }
2930 }),
2931 this._options.onerror && (m.a.log("Global Handler attached: onerror"), Y()),
2932 this._options.onunhandledrejection && (m.a.log("Global Handler attached: onunhandledrejection"), G());
2933 }),
2934 (e.prototype._eventFromGlobalHandler = function (e, t) {
2935 if (!Object(g.h)(e.message) && "onunhandledrejection" !== e.mechanism) {
2936 var n = e.message;
2937 e.message = n.error && Object(g.h)(n.error.message) ? n.error.message : "No error message";
2938 }
2939 if ("onunhandledrejection" === e.mechanism && (e.incomplete || "failed" === e.mode)) return this._eventFromIncompleteRejection(e, t);
2940 var r = Z(e),
2941 i = { mode: e.mode };
2942 e.message && (i.message = e.message), e.name && (i.name = e.name);
2943 var o = Object(_.a)().getClient(),
2944 s = (o && o.getOptions().maxValueLength) || 250,
2945 a = e.original ? y(JSON.stringify(Object(O.b)(e.original)), s) : "",
2946 c = "onunhandledrejection" === e.mechanism ? "UnhandledRejection" : "Error";
2947 return Object(v.a)(r, a, c, { data: i, handled: !1, type: e.mechanism }), r;
2948 }),
2949 (e.prototype._eventFromIncompleteRejection = function (e, t) {
2950 var n = { level: U.Error };
2951 return (
2952 Object(g.f)(t)
2953 ? (n.exception = { values: [{ type: "UnhandledRejection", value: "Non-Error promise rejection captured with value: " + t }] })
2954 : ((n.exception = { values: [{ type: "UnhandledRejection", value: "Non-Error promise rejection captured with keys: " + E(Object.keys(t).sort()) }] }), (n.extra = { __serialized__: Object(O.c)(t) })),
2955 n.exception.values &&
2956 n.exception.values[0] &&
2957 (n.exception.values[0].mechanism = {
2958 data: f.a({ mode: e.mode }, e.incomplete && { incomplete: e.incomplete }, e.message && { message: e.message }, e.name && { name: e.name }),
2959 handled: !1,
2960 type: e.mechanism,
2961 }),
2962 n
2963 );
2964 }),
2965 (e.id = "GlobalHandlers"),
2966 e
2967 );
2968 })(),
2969 Te = "cause",
2970 Pe = 5,
2971 Ie = (function () {
2972 function e(t) {
2973 void 0 === t && (t = {}), (this.name = e.id), (this._key = t.key || Te), (this._limit = t.limit || Pe);
2974 }
2975 return (
2976 (e.prototype.setupOnce = function () {
2977 Object(h.b)(function (t, n) {
2978 var r = Object(_.a)().getIntegration(e);
2979 return r ? r._handler(t, n) : t;
2980 });
2981 }),
2982 (e.prototype._handler = function (e, t) {
2983 if (!(e.exception && e.exception.values && t && t.originalException instanceof Error)) return e;
2984 var n = this._walkErrorTree(t.originalException, this._key);
2985 return (e.exception.values = f.d(n, e.exception.values)), e;
2986 }),
2987 (e.prototype._walkErrorTree = function (e, t, n) {
2988 if ((void 0 === n && (n = []), !(e[t] instanceof Error) || n.length + 1 >= this._limit)) return n;
2989 var r = K(X(e[t]));
2990 return this._walkErrorTree(e[t], t, f.d([r], n));
2991 }),
2992 (e.id = "LinkedErrors"),
2993 e
2994 );
2995 })(),
2996 Ce = Object(v.e)(),
2997 Re = (function () {
2998 function e() {
2999 this.name = e.id;
3000 }
3001 return (
3002 (e.prototype.setupOnce = function () {
3003 Object(h.b)(function (t) {
3004 if (Object(_.a)().getIntegration(e)) {
3005 if (!Ce.navigator || !Ce.location) return t;
3006 var n = t.request || {};
3007 return (n.url = n.url || Ce.location.href), (n.headers = n.headers || {}), (n.headers["User-Agent"] = Ce.navigator.userAgent), f.a({}, t, { request: n });
3008 }
3009 return t;
3010 });
3011 }),
3012 (e.id = "UserAgent"),
3013 e
3014 );
3015 })(),
3016 Ne = [new r.InboundFilters(), new r.FunctionToString(), new we(), new je(), new Ae(), new Ie(), new Re()];
3017 function Le(e) {
3018 if ((void 0 === e && (e = {}), void 0 === e.defaultIntegrations && (e.defaultIntegrations = Ne), void 0 === e.release)) {
3019 var t = Object(v.e)();
3020 t.SENTRY_RELEASE && t.SENTRY_RELEASE.id && (e.release = t.SENTRY_RELEASE.id);
3021 }
3022 !(function (e, t) {
3023 !0 === t.debug && m.a.enable(), Object(_.a)().bindClient(new e(t));
3024 })(ae, e);
3025 }
3026 const Ue = n(38),
3027 Ve = (e) => {
3028 const t = qe({ maxBudgetMinute: Ue.sentry.filterOptions.maxBudgetMinute, maxBudgetHour: Ue.sentry.filterOptions.maxBudgetHour });
3029 Le({
3030 dsn: Ue.sentry.sentryDsn,
3031 release: JSON.stringify(n(40).version),
3032 environment: JSON.stringify("prod"),
3033 whitelistUrls: [/vpaid\/bundle/, /vpaid-local/, /playerjs/, /src\/index/],
3034 blacklistUrls: [/vpaid_client/],
3035 beforeSend: (e) => (t() ? e : null),
3036 }),
3037 (function (e) {
3038 ce("configureScope", e);
3039 })((t) => {
3040 t.setTag("project-type", e);
3041 });
3042 },
3043 Fe = ({ category: e, message: t, level: n }) => {
3044 !(function (e) {
3045 ce("addBreadcrumb", e);
3046 })({ category: e, message: t, level: n });
3047 },
3048 De = (e, t = 1) => {
3049 Math.random() <= t && ue(e);
3050 };
3051 function Me() {
3052 return +new Date();
3053 }
3054 const Be = { minute: { slot: 0, budgetUsed: 0 }, hour: { slot: 0, budgetUsed: 0 } },
3055 qe = (e) => {
3056 const { maxBudgetMinute: t, maxBudgetHour: n, getDate: r = Me } = e;
3057 return () => {
3058 const e = r(),
3059 i = Math.round(e / 1e3 / 60),
3060 o = Math.round(e / 1e3 / 60 / 60);
3061 return (
3062 Be.minute.slot !== i && ((Be.minute.slot = i), (Be.minute.budgetUsed = 0)),
3063 Be.hour.slot !== o && ((Be.hour.slot = o), (Be.hour.budgetUsed = 0)),
3064 Be.minute.budgetUsed < t && (Be.minute.budgetUsed++, Be.hour.budgetUsed < n) && (Be.hour.budgetUsed++, !0)
3065 );
3066 };
3067 };
3068 class He {
3069 constructor({ context: e }) {
3070 (this._context = e), (this._internalLoadHandled = !1), (this._internalImpressionsCount = 0), (this._internalCompletesCount = 0);
3071 }
3072 internalLoad() {
3073 return this._internalLoadHandled ? [] : (clearInterval(this._context._pingInterval), this._context._sendMessageToIframe("settings", this._context._adParameters), (this._internalLoadHandled = !0), []);
3074 }
3075 internalAdImp() {
3076 return this._internalImpressionsCount++, this._context._impOn !== this._internalImpressionsCount || "start" !== this._context._pass ? [] : ["AdImpression"];
3077 }
3078 internalAdFullview() {
3079 this._internalCompletesCount++;
3080 let e = [];
3081 return (
3082 this._context._impOn === this._internalImpressionsCount && "complete" === this._context._pass && (e = ["AdImpression"]),
3083 !this._context._maxViews || this._internalCompletesCount < this._context._maxViews ? [...e] : [...e, "AdVideoComplete", "AdVideoCompleteAll", "AdStopped"]
3084 );
3085 }
3086 internalSequenceEnd() {
3087 return "last" === this._context._impOn && this._internalImpressionsCount > 0 ? ["AdImpression"] : [];
3088 }
3089 internalAdClick() {
3090 return ["AdClickThru"];
3091 }
3092 }
3093 class We extends He {
3094 internalGotSettings() {
3095 return clearTimeout(this._context._timeout), ["AdLoaded"];
3096 }
3097 internalSequenceStart() {
3098 return ["AdStarted"];
3099 }
3100 internalAdImp() {
3101 const e = super.internalAdImp();
3102 return 1 === this._internalImpressionsCount ? [...e, "AdVolumeChange", "AdVideoStart", { name: "AdVideoFirstQuartile", delay: 5e3 }] : [...e, "AdVolumeChange"];
3103 }
3104 internalSequenceEnd() {
3105 const e = super.internalSequenceEnd();
3106 return this._internalImpressionsCount > 0 ? [...e, "AdVideoComplete", "AdVideoCompleteAll", "AdStopped"] : [...e, "AdStopped", "AdError"];
3107 }
3108 externalStartAd() {
3109 return this._context._sendMessageToIframe("start"), [];
3110 }
3111 }
3112 class Je extends He {
3113 internalGotSettings() {
3114 return clearTimeout(this._context._timeout), this._context._sendMessageToIframe("start"), [];
3115 }
3116 internalAdImp() {
3117 if (0 === this._internalImpressionsCount) return ["AdLoaded"];
3118 return [...super.internalAdImp()];
3119 }
3120 internalSequenceEnd() {
3121 const e = super.internalSequenceEnd();
3122 return this._internalImpressionsCount > 0 ? [...e, "AdVideoComplete", "AdVideoCompleteAll", "AdStopped"] : [...e, "AdError"];
3123 }
3124 externalStartAd() {
3125 const e = ["AdStarted", "AdVolumeChange"],
3126 t = super.internalAdImp();
3127 return 1 === this._internalImpressionsCount ? [...e, "AdVideoStart", ...t, { name: "AdVideoFirstQuartile", delay: 5e3 }] : [...e];
3128 }
3129 }
3130 var $e = class {
3131 constructor({ context: e = this, strategy: t = "embedKost" }) {
3132 (this._context = e), this.setStrategy(t);
3133 }
3134 _process(e) {
3135 const t = this._strategy[e];
3136 if ("function" == typeof t) {
3137 const e = t.apply(this._strategy);
3138 this._emitExternalEvents(e);
3139 }
3140 }
3141 _emitExternalEvents(e) {
3142 Array.isArray(e) &&
3143 e.forEach((e) => {
3144 const t = e.name || e;
3145 e.delay
3146 ? setTimeout(() => {
3147 this._context._emit(t);
3148 }, e.delay)
3149 : this._context._emit(t);
3150 });
3151 }
3152 setStrategy(e) {
3153 const t = { context: this._context };
3154 switch (e) {
3155 case "embedKost":
3156 this._strategy = new We(t);
3157 break;
3158 case "embedClassic":
3159 this._strategy = new Je(t);
3160 }
3161 }
3162 get strategy() {
3163 return this._strategy;
3164 }
3165 handleInternalEvent(e) {
3166 if ("string" != typeof e) return;
3167 const t = e.match(/^_ve_(.+)/);
3168 if (!t) return;
3169 const n = ("internal_" + t[1]).toLowerCase().replace(/([-_][a-z])/g, (e) => e.toUpperCase().replace(/-|_/, ""));
3170 this._process(n);
3171 }
3172 handleExternalCommand(e) {
3173 const t = "external" + e[0].toUpperCase() + e.slice(1);
3174 this._process(t);
3175 }
3176 };
3177 n.d(t, "default", function () {
3178 return ze;
3179 });
3180 class ze {
3181 constructor() {
3182 (this._slot = null),
3183 (this._adParameters = null),
3184 (this._playerEvents = {}),
3185 (this._emittedEvents = []),
3186 (this._width = 0),
3187 (this._height = 0),
3188 (this._adInited = !1),
3189 (this._iframe = null),
3190 (this._impCounter = 0),
3191 (this._completeCounter = 0),
3192 (this._minViews = 0),
3193 (this._sentEvent = !1),
3194 (this._adEnd = !1),
3195 (this._unload = !1),
3196 (this._eventLink = "https://dev.null"),
3197 (this._pass = "start"),
3198 (this._impOn = 1),
3199 (this._AdImpressionCount = 0),
3200 (this._isAdStarted = !1),
3201 (this._needSendAdImpression = !1),
3202 (this._vpaidVolume = 0),
3203 (this._playerVolume = 0),
3204 (this._player = p),
3205 (this._generalVolume = 0),
3206 (this._pingInterval = null),
3207 (this._timeout = setTimeout(() => {
3208 this._emit("adError");
3209 }, 1e4)),
3210 Object.assign(this, s, u, l),
3211 Ve("VPAID class");
3212 }
3213 initAd(e, t, n, r, i, s) {
3214 if (!this._adInited) {
3215 this._addSentryAncestorOrigins(), s.videoSlot && (s.videoSlot.volume = 0), (this._slot = s.slot), (this._width = e), (this._height = t);
3216 try {
3217 this._adParameters = JSON.parse(i.AdParameters);
3218 } catch (e) {
3219 try {
3220 (this._adParameters = ""),
3221 atob(i.AdParameters)
3222 .split("")
3223 .forEach((e) => {
3224 this._adParameters += String.fromCharCode(e.charCodeAt(0) ^ "k".charCodeAt(0));
3225 }),
3226 (this._adParameters = JSON.parse(this._adParameters));
3227 } catch (e) {
3228 this._emit("adError");
3229 }
3230 }
3231 (this._eventsManager = new $e({ context: this, strategy: this._adParameters.strategy })),
3232 navigator.sendBeacon ||
3233 (navigator.sendBeacon = function (e) {
3234 let t = new XMLHttpRequest();
3235 t.open("GET", e, !1);
3236 try {
3237 t.send();
3238 } catch (e) {}
3239 }),
3240 this._adParameters.vastPacks
3241 ? this._initPlayer()
3242 : this._adParameters.endpoint
3243 ? o.a
3244 .get(this._adParameters.endpoint)
3245 .then((e) => {
3246 (e = e.data).vastPacks ? ((this._adParameters = { ...this._adParameters, ...e }), this._initPlayer()) : this._emit("adError");
3247 })
3248 .catch((e) => {
3249 this._emit("adError");
3250 })
3251 : this._adParameters.code
3252 ? o.a
3253 .get("https://v.kost.tv/r/" + this._adParameters.code, { withCredentials: !0 })
3254 .then((e) => {
3255 window.addEventListener("message", (e) => {
3256 this._listenToRotator(e);
3257 }),
3258 Fe({ category: "_adParameters", message: JSON.stringify({ _adParameters: this._adParameters }), level: "info" }),
3259 (this._maxViews = +this._adParameters.maxViews || 1),
3260 (this._adParameters = { ...this._adParameters, ...e.data.rotator, width: this._width, height: this._height }),
3261 this._insertIframe("https://infokinonovinki.com/is/");
3262 })
3263 .catch((e) => {
3264 this._emit("adError");
3265 })
3266 : this._emit("adError"),
3267 (this._adInited = !0);
3268 }
3269 }
3270 startAd() {
3271 this._eventsManager.handleExternalCommand("startAd");
3272 }
3273 stopAd() {
3274 this._clean(),
3275 setTimeout(() => {
3276 this._emit("AdStopped");
3277 }, 75);
3278 }
3279 _initPlayer() {
3280 this._setVolume(),
3281 this._adParameters.pass && (this._pass = this._adParameters.pass),
3282 this._adParameters.minViews && (this._minViews = this._adParameters.minViews),
3283 this._adParameters.impOn && (this._impOn = this._adParameters.impOn),
3284 window.addEventListener("message", (e) => {
3285 this._listenToPlayer(e);
3286 }),
3287 (window.onbeforeunload = window.onunload = () => {
3288 navigator.sendBeacon(this._eventLink), this._unload || ((this._unload = !0), !this._adEnd && this._sentEvent);
3289 }),
3290 this._insertIframe(null, this._player);
3291 }
3292 _clean() {
3293 Fe({ category: "Remove_Iframe", message: "", level: "info" }), this._iframe.remove();
3294 }
3295 set isAdStarted(e) {
3296 this._needSendAdImpression && (this._emit("AdImpression"), this._AdImpressionCount++, (this._needSendAdImpression = !1), console.log("AdImpression after AdStarted event")), (this._isAdStarted = e);
3297 }
3298 emitAdImpression(e, t) {
3299 this._AdImpressionCount || (this._isAdStarted ? (this._emit("AdImpression"), this._AdImpressionCount++, console.log(`AdImpression with ${e} event, ${t}`)) : (this._needSendAdImpression = !0));
3300 }
3301 checkAdImpressionCondition(e) {
3302 const t = e.event || e;
3303 "_ve_ad_imp" === t && this._impCounter++;
3304 const n = e.info || this._impCounter;
3305 if (this._impOn === n)
3306 this._pass === t ? this.emitAdImpression(t, n) : "start" === this._pass && "_ve_ad_imp" === t ? this.emitAdImpression(t, n) : "complete" === this._pass && "_ve_ad_fullview" === e && this.emitAdImpression(t, n);
3307 else if ("last" === this._impOn && ("end" === t || "_ve_sequence_end" === t)) {
3308 if (this._AdImpressionCount) return;
3309 this.emitAdImpression(t, n);
3310 }
3311 }
3312 _listenToRotator(e) {
3313 Fe({ category: "_listenToRotator", message: JSON.stringify({ event: e.data }), level: "info" }), this._eventsManager.handleInternalEvent(e.data);
3314 }
3315 getAdVolume() {
3316 return this._vpaidVolume;
3317 }
3318 setAdVolume(e) {
3319 (this._vpaidVolume = e), this._sendMessageToIframe("changeVolume", this._vpaidVolume);
3320 }
3321 _listenToPlayer(e) {
3322 if ("_ve_vpaid" === (e = e.data).target)
3323 switch ((Fe({ category: "_listenToPlayer", message: JSON.stringify({ event: e }), level: "info" }), console.log(e), this.checkAdImpressionCondition(e), e.event)) {
3324 case "load":
3325 clearInterval(this._pingInterval), this._sendMessageToIframe("config", this._adParameters);
3326 break;
3327 case "gotConfig":
3328 clearTimeout(this._timeout), this._emit("AdLoaded"), (this._loaded = !0);
3329 break;
3330 case "_ve_sequence_start":
3331 this._emit("AdStarted"),
3332 this._emit("AdVideoStart"),
3333 setTimeout(() => {
3334 this._emit("AdVideoFirstQuartile");
3335 }, 5e3),
3336 console.log(`AdStarted with ${e.event} event`),
3337 (this.isAdStarted = !0);
3338 break;
3339 case "_ve_ad_imp":
3340 if ("start" === this._pass) {
3341 let t;
3342 try {
3343 t = this._adParameters.vastEvents[e.info - 1];
3344 } catch (e) {}
3345 e.info > this._impCounter && (this._impCounter = e.info), t && (this._eventLink = t);
3346 }
3347 !this._adParameters.vastEvents && e.info > this._impCounter && (this._impCounter = e.info);
3348 break;
3349 case "click":
3350 this._emit("AdClickThru");
3351 break;
3352 case "complete":
3353 if ("complete" === this._pass) {
3354 let t;
3355 try {
3356 t = this._adParameters.vastEvents[e.info - 1];
3357 } catch (e) {}
3358 e.info >= this._minViews && e.info > this._completeCounter && t ? ((this._completeCounter = e.info), (this._eventLink = t)) : e.info > this._completeCounter && (this._completeCounter = e.info);
3359 }
3360 break;
3361 case "_ve_sequence_end":
3362 (this._adEnd = !0), this._impCounter > 0 || this._completeCounter > 0 ? this._sendEvent() : this._emit("AdError");
3363 break;
3364 case "_ve_ad_volume":
3365 (this._vpaidVolume = e.info), this._emit("AdVolumeChange");
3366 }
3367 }
3368 _sendEvent(e = !1) {
3369 const t = !!this._adParameters.vastEvents,
3370 n = this._impCounter > 0 || this._completeCounter > 0;
3371 if (!this._sentEvent && t && n && this._eventLink) {
3372 let t = new XMLHttpRequest();
3373 t.open("GET", this._eventLink, e), (t.withCredentials = !0);
3374 try {
3375 t.send();
3376 } catch (e) {}
3377 (this._sentEvent = !0), this._emit("AdVideoMidpoint"), this._emit("AdVideoThirdQuartile"), this._emit("AdVideoComplete"), this._emit("AdVideoCompleteAll"), this.stopAd();
3378 } else
3379 !t && n
3380 ? (this._emit("AdVideoMidpoint"), this._emit("AdVideoThirdQuartile"), this._emit("AdVideoComplete"), this._emit("AdVideoCompleteAll"), this.stopAd())
3381 : "complete" === this._pass && this._completeCounter < this._minViews && this._emit("AdError");
3382 }
3383 _insertIframe(e, t) {
3384 this._setVolume(), Fe({ category: "_insertIframe", message: JSON.stringify({ src: e, code: t }), level: "info" });
3385 let n = document.createElement("iframe");
3386 e && (n.src = e),
3387 (n.width = this._width ? this._width + "px" : "100%"),
3388 (n.height = this._height ? this._height + "px" : "100%"),
3389 (n.frameborder = "0"),
3390 (n.style.border = "0"),
3391 (n.style.position = "absolute"),
3392 (n.style.left = "0"),
3393 (n.style.top = "0"),
3394 this._slot.appendChild(n),
3395 e || n.contentWindow.document.write(t),
3396 this._setPingInterval(),
3397 (this._iframe = n);
3398 }
3399 _setPingInterval(e = !0) {
3400 this._pingInterval = setInterval(() => {
3401 e && this._sendMessageToIframe("target");
3402 }, 50);
3403 }
3404 _sendMessageToIframe(e, t) {
3405 this._iframe &&
3406 this._iframe.contentWindow &&
3407 (Fe({ category: "MessageToIframe", message: JSON.stringify({ event: e, info: t }), level: "info" }),
3408 this._iframe.contentWindow.postMessage({ target: "_ve_iframe", source: "_ve_vpaid", event: e, info: t, changedVPAID: !0 }, "*"));
3409 }
3410 _emit(e) {
3411 ["AdLoaded", "AdStarted", "AdStopped", "AdSkipped", "AdImpression", "AdVideoStart", "AdVideoFirstQuartile", "AdVideoMidpoint", "AdVideoThirdQuartile", "AdVideoComplete", "AdError"].includes(e) &&
3412 this._emittedEvents.includes(e)
3413 ? De(new Error(`Duplicated event: ${e}`), 0.01)
3414 : (this._emittedEvents.push(e), e in this._playerEvents && this._isFunction(this._playerEvents[e]) && this._playerEvents[e]());
3415 }
3416 _addSentryAncestorOrigins() {
3417 try {
3418 const e = location.ancestorOrigins || [];
3419 Fe({ category: "ancestorOrigins", message: JSON.stringify({ ancestorOrigins: e }), level: "info" });
3420 } catch (e) {}
3421 }
3422 _setVolume() {
3423 this._adParameters.volume && ((this._generalVolume = this._adParameters.volume), (this._vpaidVolume = this._adParameters.volume), (this._playerVolume = this._adParameters.volume)),
3424 this._adParameters.vpaidVolume && (this._vpaidVolume = this._adParameters.vpaidVolume),
3425 this._adParameters.playerVolume && (this._playerVolume = this._adParameters.playerVolume),
3426 this._setVPAIDVolume(),
3427 this._setPlayerVolume();
3428 }
3429 _setPlayerVolume(e = this._playerVolume) {
3430 this._player = p.replace("volume: 0", `volume: ${e}`);
3431 }
3432 _setVPAIDVolume(e = this._vpaidVolume) {
3433 this._vpaidVolume = e;
3434 }
3435 _isFunction(e) {
3436 return typeof e == typeof Function;
3437 }
3438 }
3439 window.getVPAIDAd = () => new ze();
3440 },
3441 function (e, t, n) {
3442 "use strict";
3443 n.d(t, "a", function () {
3444 return o;
3445 });
3446 var r,
3447 i = n(4);
3448 !(function (e) {
3449 (e.PENDING = "PENDING"), (e.RESOLVED = "RESOLVED"), (e.REJECTED = "REJECTED");
3450 })(r || (r = {}));
3451 var o = (function () {
3452 function e(e) {
3453 var t = this;
3454 (this._state = r.PENDING),
3455 (this._handlers = []),
3456 (this._resolve = function (e) {
3457 t._setResult(e, r.RESOLVED);
3458 }),
3459 (this._reject = function (e) {
3460 t._setResult(e, r.REJECTED);
3461 }),
3462 (this._setResult = function (e, n) {
3463 t._state === r.PENDING && (Object(i.j)(e) ? e.then(t._resolve, t._reject) : ((t._value = e), (t._state = n), t._executeHandlers()));
3464 }),
3465 (this._executeHandlers = function () {
3466 t._state !== r.PENDING &&
3467 (t._state === r.REJECTED
3468 ? t._handlers.forEach(function (e) {
3469 return e.onFail && e.onFail(t._value);
3470 })
3471 : t._handlers.forEach(function (e) {
3472 return e.onSuccess && e.onSuccess(t._value);
3473 }),
3474 (t._handlers = []));
3475 }),
3476 (this._attachHandler = function (e) {
3477 (t._handlers = t._handlers.concat(e)), t._executeHandlers();
3478 });
3479 try {
3480 e(this._resolve, this._reject);
3481 } catch (e) {
3482 this._reject(e);
3483 }
3484 }
3485 return (
3486 (e.prototype.then = function (t, n) {
3487 var r = this;
3488 return new e(function (e, i) {
3489 r._attachHandler({
3490 onFail: function (t) {
3491 if (n)
3492 try {
3493 return void e(n(t));
3494 } catch (e) {
3495 return void i(e);
3496 }
3497 else i(t);
3498 },
3499 onSuccess: function (n) {
3500 if (t)
3501 try {
3502 return void e(t(n));
3503 } catch (e) {
3504 return void i(e);
3505 }
3506 else e(n);
3507 },
3508 });
3509 });
3510 }),
3511 (e.prototype.catch = function (e) {
3512 return this.then(function (e) {
3513 return e;
3514 }, e);
3515 }),
3516 (e.prototype.toString = function () {
3517 return "[object SyncPromise]";
3518 }),
3519 (e.resolve = function (t) {
3520 return new e(function (e) {
3521 e(t);
3522 });
3523 }),
3524 (e.reject = function (t) {
3525 return new e(function (e, n) {
3526 n(t);
3527 });
3528 }),
3529 e
3530 );
3531 })();
3532 },
3533 ,
3534 ,
3535 ,
3536 function (e, t, n) {
3537 "use strict";
3538 (function (e) {
3539 n.d(t, "a", function () {
3540 return p;
3541 });
3542 var r = n(0),
3543 i = n(2),
3544 o = n(11),
3545 s = n(8),
3546 a = 3,
3547 c = (function () {
3548 function e(e, t, n) {
3549 void 0 === t && (t = new s.a()), void 0 === n && (n = a), (this._version = n), (this._stack = []), this._stack.push({ client: e, scope: t });
3550 }
3551 return (
3552 (e.prototype._invokeClient = function (e) {
3553 for (var t, n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i];
3554 var o = this.getStackTop();
3555 o && o.client && o.client[e] && (t = o.client)[e].apply(t, r.d(n, [o.scope]));
3556 }),
3557 (e.prototype.isOlderThan = function (e) {
3558 return this._version < e;
3559 }),
3560 (e.prototype.bindClient = function (e) {
3561 this.getStackTop().client = e;
3562 }),
3563 (e.prototype.pushScope = function () {
3564 var e = this.getStack(),
3565 t = e.length > 0 ? e[e.length - 1].scope : void 0,
3566 n = s.a.clone(t);
3567 return this.getStack().push({ client: this.getClient(), scope: n }), n;
3568 }),
3569 (e.prototype.popScope = function () {
3570 return void 0 !== this.getStack().pop();
3571 }),
3572 (e.prototype.withScope = function (e) {
3573 var t = this.pushScope();
3574 try {
3575 e(t);
3576 } finally {
3577 this.popScope();
3578 }
3579 }),
3580 (e.prototype.getClient = function () {
3581 return this.getStackTop().client;
3582 }),
3583 (e.prototype.getScope = function () {
3584 return this.getStackTop().scope;
3585 }),
3586 (e.prototype.getStack = function () {
3587 return this._stack;
3588 }),
3589 (e.prototype.getStackTop = function () {
3590 return this._stack[this._stack.length - 1];
3591 }),
3592 (e.prototype.captureException = function (e, t) {
3593 var n = (this._lastEventId = Object(i.g)()),
3594 o = t;
3595 if (!t) {
3596 var s = void 0;
3597 try {
3598 throw new Error("Sentry syntheticException");
3599 } catch (e) {
3600 s = e;
3601 }
3602 o = { originalException: e, syntheticException: s };
3603 }
3604 return this._invokeClient("captureException", e, r.a({}, o, { event_id: n })), n;
3605 }),
3606 (e.prototype.captureMessage = function (e, t, n) {
3607 var o = (this._lastEventId = Object(i.g)()),
3608 s = n;
3609 if (!n) {
3610 var a = void 0;
3611 try {
3612 throw new Error(e);
3613 } catch (e) {
3614 a = e;
3615 }
3616 s = { originalException: e, syntheticException: a };
3617 }
3618 return this._invokeClient("captureMessage", e, t, r.a({}, s, { event_id: o })), o;
3619 }),
3620 (e.prototype.captureEvent = function (e, t) {
3621 var n = (this._lastEventId = Object(i.g)());
3622 return this._invokeClient("captureEvent", e, r.a({}, t, { event_id: n })), n;
3623 }),
3624 (e.prototype.lastEventId = function () {
3625 return this._lastEventId;
3626 }),
3627 (e.prototype.addBreadcrumb = function (e, t) {
3628 var n = this.getStackTop();
3629 if (n.scope && n.client) {
3630 var o = (n.client.getOptions && n.client.getOptions()) || {},
3631 s = o.beforeBreadcrumb,
3632 a = void 0 === s ? null : s,
3633 c = o.maxBreadcrumbs,
3634 u = void 0 === c ? 30 : c;
3635 if (!(u <= 0)) {
3636 var l = new Date().getTime() / 1e3,
3637 p = r.a({ timestamp: l }, e),
3638 d = a
3639 ? Object(i.b)(function () {
3640 return a(p, t);
3641 })
3642 : p;
3643 null !== d && n.scope.addBreadcrumb(d, Math.min(u, 100));
3644 }
3645 }
3646 }),
3647 (e.prototype.setUser = function (e) {
3648 var t = this.getStackTop();
3649 t.scope && t.scope.setUser(e);
3650 }),
3651 (e.prototype.setTags = function (e) {
3652 var t = this.getStackTop();
3653 t.scope && t.scope.setTags(e);
3654 }),
3655 (e.prototype.setExtras = function (e) {
3656 var t = this.getStackTop();
3657 t.scope && t.scope.setExtras(e);
3658 }),
3659 (e.prototype.setTag = function (e, t) {
3660 var n = this.getStackTop();
3661 n.scope && n.scope.setTag(e, t);
3662 }),
3663 (e.prototype.setExtra = function (e, t) {
3664 var n = this.getStackTop();
3665 n.scope && n.scope.setExtra(e, t);
3666 }),
3667 (e.prototype.setContext = function (e, t) {
3668 var n = this.getStackTop();
3669 n.scope && n.scope.setContext(e, t);
3670 }),
3671 (e.prototype.configureScope = function (e) {
3672 var t = this.getStackTop();
3673 t.scope && t.client && e(t.scope);
3674 }),
3675 (e.prototype.run = function (e) {
3676 var t = l(this);
3677 try {
3678 e(this);
3679 } finally {
3680 l(t);
3681 }
3682 }),
3683 (e.prototype.getIntegration = function (e) {
3684 var t = this.getClient();
3685 if (!t) return null;
3686 try {
3687 return t.getIntegration(e);
3688 } catch (t) {
3689 return o.a.warn("Cannot retrieve integration " + e.id + " from the current Hub"), null;
3690 }
3691 }),
3692 (e.prototype.traceHeaders = function () {
3693 var e = this.getStackTop();
3694 if (e.scope && e.client) {
3695 var t = e.scope.getSpan();
3696 if (t) return { "sentry-trace": t.toTraceparent() };
3697 }
3698 return {};
3699 }),
3700 e
3701 );
3702 })();
3703 function u() {
3704 var e = Object(i.e)();
3705 return (e.__SENTRY__ = e.__SENTRY__ || { hub: void 0 }), e;
3706 }
3707 function l(e) {
3708 var t = u(),
3709 n = f(t);
3710 return h(t, e), n;
3711 }
3712 function p() {
3713 var t = u();
3714 (d(t) && !f(t).isOlderThan(a)) || h(t, new c());
3715 try {
3716 var n = Object(i.c)(e, "domain").active;
3717 if (!n) return f(t);
3718 if (!d(n) || f(n).isOlderThan(a)) {
3719 var r = f(t).getStackTop();
3720 h(n, new c(r.client, s.a.clone(r.scope)));
3721 }
3722 return f(n);
3723 } catch (e) {
3724 return f(t);
3725 }
3726 }
3727 function d(e) {
3728 return !!(e && e.__SENTRY__ && e.__SENTRY__.hub);
3729 }
3730 function f(e) {
3731 return e && e.__SENTRY__ && e.__SENTRY__.hub ? e.__SENTRY__.hub : ((e.__SENTRY__ = e.__SENTRY__ || {}), (e.__SENTRY__.hub = new c()), e.__SENTRY__.hub);
3732 }
3733 function h(e, t) {
3734 return !!e && ((e.__SENTRY__ = e.__SENTRY__ || {}), (e.__SENTRY__.hub = t), !0);
3735 }
3736 }.call(this, n(39)(e)));
3737 },
3738]);
3739