@vkontakte/videoplayer-shared 1.0.32-dev.5a93139a.0 → 1.0.32-dev.7aff7041.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es5.umd.js DELETED
@@ -1,3175 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VKShared = {}));
5
- })(this, (function (exports) { 'use strict';
6
-
7
- var VERSION = '1.0.32-dev.5a93139a.0';
8
-
9
- /******************************************************************************
10
- Copyright (c) Microsoft Corporation.
11
-
12
- Permission to use, copy, modify, and/or distribute this software for any
13
- purpose with or without fee is hereby granted.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
- PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */
23
- /* global Reflect, Promise */
24
-
25
- var extendStatics = function(d, b) {
26
- extendStatics = Object.setPrototypeOf ||
27
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
29
- return extendStatics(d, b);
30
- };
31
-
32
- function __extends(d, b) {
33
- if (typeof b !== "function" && b !== null)
34
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
35
- extendStatics(d, b);
36
- function __() { this.constructor = d; }
37
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38
- }
39
-
40
- var __assign = function() {
41
- __assign = Object.assign || function __assign(t) {
42
- for (var s, i = 1, n = arguments.length; i < n; i++) {
43
- s = arguments[i];
44
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
45
- }
46
- return t;
47
- };
48
- return __assign.apply(this, arguments);
49
- };
50
-
51
- function __awaiter(thisArg, _arguments, P, generator) {
52
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
53
- return new (P || (P = Promise))(function (resolve, reject) {
54
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
55
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
56
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
57
- step((generator = generator.apply(thisArg, _arguments || [])).next());
58
- });
59
- }
60
-
61
- function __generator(thisArg, body) {
62
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
63
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
64
- function verb(n) { return function (v) { return step([n, v]); }; }
65
- function step(op) {
66
- if (f) throw new TypeError("Generator is already executing.");
67
- while (_) try {
68
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
69
- if (y = 0, t) op = [op[0] & 2, t.value];
70
- switch (op[0]) {
71
- case 0: case 1: t = op; break;
72
- case 4: _.label++; return { value: op[1], done: false };
73
- case 5: _.label++; y = op[1]; op = [0]; continue;
74
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
75
- default:
76
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
77
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
78
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
79
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
80
- if (t[2]) _.ops.pop();
81
- _.trys.pop(); continue;
82
- }
83
- op = body.call(thisArg, _);
84
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
85
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
86
- }
87
- }
88
-
89
- function __values(o) {
90
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
91
- if (m) return m.call(o);
92
- if (o && typeof o.length === "number") return {
93
- next: function () {
94
- if (o && i >= o.length) o = void 0;
95
- return { value: o && o[i++], done: !o };
96
- }
97
- };
98
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
99
- }
100
-
101
- function __read(o, n) {
102
- var m = typeof Symbol === "function" && o[Symbol.iterator];
103
- if (!m) return o;
104
- var i = m.call(o), r, ar = [], e;
105
- try {
106
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
107
- }
108
- catch (error) { e = { error: error }; }
109
- finally {
110
- try {
111
- if (r && !r.done && (m = i["return"])) m.call(i);
112
- }
113
- finally { if (e) throw e.error; }
114
- }
115
- return ar;
116
- }
117
-
118
- function __spreadArray(to, from, pack) {
119
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
120
- if (ar || !(i in from)) {
121
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
122
- ar[i] = from[i];
123
- }
124
- }
125
- return to.concat(ar || Array.prototype.slice.call(from));
126
- }
127
-
128
- var Subscription = /** @class */ (function () {
129
- function Subscription() {
130
- this.subscriptions = [];
131
- }
132
- Subscription.prototype.unsubscribe = function () {
133
- var subscriptions = this.subscriptions;
134
- this.subscriptions = [];
135
- subscriptions.forEach(function (it) { return typeof it === 'function' ? it() : it.unsubscribe(); });
136
- };
137
- Subscription.prototype.add = function (item) {
138
- this.subscriptions.push(item);
139
- return this;
140
- };
141
- return Subscription;
142
- }());
143
-
144
- var assertNever = function (x) {
145
- throw new Error("".concat(x, " is value of unexpected type"));
146
- };
147
- // eslint-disable-next-line @typescript-eslint/no-empty-function
148
- var checkNever = function (_x) {
149
- };
150
-
151
- var noop = function () {
152
- /* no op */
153
- };
154
-
155
- var Observable = /** @class */ (function () {
156
- function Observable(subscribe) {
157
- if (subscribe) {
158
- this._subscribe = subscribe;
159
- }
160
- }
161
- Observable.prototype.subscribe = function (listener, error) {
162
- var _a;
163
- var errorEmitter;
164
- if (!error) {
165
- errorEmitter = { next: noop, error: noop };
166
- }
167
- else if (typeof error === 'function') {
168
- errorEmitter = { next: error, error: noop };
169
- }
170
- else {
171
- errorEmitter = {
172
- next: function (value) { return error.next(value); },
173
- error: function (value) { var _a; return (_a = error.error) === null || _a === void 0 ? void 0 : _a.call(error, value); },
174
- };
175
- }
176
- var emitter = typeof listener === 'function' ? {
177
- next: function (value) {
178
- try {
179
- listener(value);
180
- }
181
- catch (e) {
182
- errorEmitter.next(e);
183
- }
184
- },
185
- error: function (value) { return errorEmitter.next(value); },
186
- } : {
187
- next: function (value) { return listener.next(value); },
188
- error: function (value) { return listener.error ? listener.error(value) : errorEmitter.next(value); },
189
- };
190
- var unsubscriber;
191
- try {
192
- unsubscriber = this._subscribe(emitter);
193
- }
194
- catch (e) {
195
- (_a = emitter.error) === null || _a === void 0 ? void 0 : _a.call(emitter, e);
196
- }
197
- return new Subscription().add(function () {
198
- emitter.next = noop;
199
- emitter.error = noop;
200
- switch (typeof unsubscriber) {
201
- case 'function':
202
- unsubscriber();
203
- return;
204
- case 'object':
205
- unsubscriber.unsubscribe();
206
- return;
207
- case 'undefined':
208
- return;
209
- default:
210
- return assertNever(unsubscriber);
211
- }
212
- });
213
- };
214
- Observable.prototype.pipe = function () {
215
- var operators = [];
216
- for (var _i = 0; _i < arguments.length; _i++) {
217
- operators[_i] = arguments[_i];
218
- }
219
- return operators.reduce(function (prev, op) { return op(prev); }, this);
220
- };
221
- Observable.prototype._subscribe = function (_emitter) {
222
- /* empty */
223
- };
224
- return Observable;
225
- }());
226
-
227
- var Subject = /** @class */ (function (_super) {
228
- __extends(Subject, _super);
229
- function Subject() {
230
- var _this = _super.call(this) || this;
231
- _this.keyCounter = 0;
232
- _this.subscribers = new Map();
233
- return _this;
234
- }
235
- Subject.prototype.next = function (value) {
236
- this.subscribers.forEach(function (it) { return it.next(value); });
237
- };
238
- Subject.prototype.error = function (value) {
239
- this.subscribers.forEach(function (it) { var _a; return (_a = it.error) === null || _a === void 0 ? void 0 : _a.call(it, value); });
240
- };
241
- Subject.prototype._subscribe = function (emitter) {
242
- var _this = this;
243
- var key = this.keyCounter++;
244
- this.subscribers.set(key, emitter);
245
- return new Subscription().add(function () { return _this.subscribers.delete(key); });
246
- };
247
- return Subject;
248
- }(Observable));
249
-
250
- var Logger = /** @class */ (function () {
251
- function Logger() {
252
- var _this = this;
253
- this.log$ = new Subject();
254
- this.logs = [];
255
- this.log = function (inputEntry) {
256
- var entry = __assign(__assign({}, inputEntry), { timestamp: Date.now() });
257
- _this.logs.push(entry);
258
- _this.log$.next(entry);
259
- };
260
- this.getAllLogs = function () { return _this.logs; };
261
- }
262
- Logger.prototype.createCustomLog = function (transform) {
263
- var _this = this;
264
- return function () {
265
- var args = [];
266
- for (var _i = 0; _i < arguments.length; _i++) {
267
- args[_i] = arguments[_i];
268
- }
269
- var entry;
270
- try {
271
- entry = transform.apply(void 0, __spreadArray([], __read(args), false));
272
- }
273
- catch (_a) {
274
- entry = {
275
- message: 'error in `createCustomLog`',
276
- component: 'Logger',
277
- };
278
- }
279
- _this.log(entry);
280
- };
281
- };
282
- Logger.prototype.createComponentLog = function (component) {
283
- return this.createCustomLog(function (entry) { return (__assign({ component: component }, entry)); });
284
- };
285
- return Logger;
286
- }());
287
-
288
- function assertNonNullable(value, failMessage) {
289
- if (failMessage === void 0) { failMessage = "Assertion \"value is not nullable\" failed"; }
290
- if (value === undefined || value === null) {
291
- throw new Error(failMessage);
292
- }
293
- }
294
- function assertNullable(value, failMessage) {
295
- if (failMessage === void 0) { failMessage = "Assertion \"value is nullable\" failed"; }
296
- if (value !== undefined && value !== null) {
297
- throw new Error(failMessage);
298
- }
299
- }
300
- function isNonNullable(value) {
301
- return typeof value !== 'undefined' && value !== null;
302
- }
303
- function isNullable(value) {
304
- return value === undefined || value === null;
305
- }
306
-
307
- function assertNotEmptyArray(value, failMessage) {
308
- if (!(value === null || value === void 0 ? void 0 : value.length)) {
309
- throw new Error(failMessage);
310
- }
311
- }
312
- function assertEmptyArray(value, failMessage) {
313
- if (value === null || value === void 0 ? void 0 : value.length) {
314
- throw new Error(failMessage);
315
- }
316
- }
317
-
318
- var addScript = function (scriptSrc, abortSignal, timeout) { return new Promise(function (resolve, reject) {
319
- abortSignal.addEventListener('abort', function () {
320
- removeListeners();
321
- script.remove();
322
- });
323
- var onLoadFail = function () {
324
- removeListeners();
325
- reject();
326
- };
327
- var onLoadSuccess = function () {
328
- removeListeners();
329
- resolve();
330
- };
331
- var removeListeners = function () {
332
- failTimeout && clearTimeout(failTimeout);
333
- script.removeEventListener('load', onLoadSuccess);
334
- script.removeEventListener('error', onLoadFail);
335
- };
336
- var failTimeout;
337
- if (timeout) {
338
- failTimeout = window.setTimeout(onLoadFail, timeout);
339
- }
340
- var script = document.createElement('script');
341
- script.addEventListener('load', onLoadSuccess);
342
- script.addEventListener('error', onLoadFail);
343
- script.src = scriptSrc;
344
- document.head.appendChild(script);
345
- }); };
346
-
347
- var _a$1;
348
- var now = typeof ((_a$1 = window.performance) === null || _a$1 === void 0 ? void 0 : _a$1.now) === 'function' ?
349
- function () { return window.performance.now(); } :
350
- function () { return Date.now(); };
351
-
352
- // Декоратор оборачивающий async функции в генераторы
353
- // В этих async функциях await заменяем на yield, он передаёт контроль этой утилите
354
- // Декоратор проверяет состояние сигнала и если тот не абортнут передаёт контроль внутрь функции обратно
355
- // Если сигнал абортнут, целевая функция останавливается на точке вызова yield и не продолжает исполнение
356
- // Таким образом её можно уничтожать не боясь что какой-то асинхронный код выстрелит после уничтожения
357
- var abortable = function (signal, createGenerator) { return function () {
358
- var params = [];
359
- for (var _i = 0; _i < arguments.length; _i++) {
360
- params[_i] = arguments[_i];
361
- }
362
- return __awaiter(void 0, void 0, void 0, function () {
363
- var generator, done, value, result;
364
- var _a;
365
- return __generator(this, function (_b) {
366
- switch (_b.label) {
367
- case 0:
368
- generator = createGenerator.apply(void 0, __spreadArray([], __read(params), false));
369
- done = signal.aborted;
370
- value = undefined;
371
- _b.label = 1;
372
- case 1:
373
- if (!(!done && !signal.aborted)) return [3 /*break*/, 3];
374
- return [4 /*yield*/, generator.next(value)];
375
- case 2:
376
- result = _b.sent();
377
- done = (_a = result.done) !== null && _a !== void 0 ? _a : false;
378
- value = result.value;
379
- return [3 /*break*/, 1];
380
- case 3: return [2 /*return*/, value];
381
- }
382
- });
383
- });
384
- }; };
385
-
386
- exports.CurrentClientBrowser = void 0;
387
- (function (CurrentClientBrowser) {
388
- CurrentClientBrowser["Unknown"] = "Unknown";
389
- CurrentClientBrowser["Yandex"] = "Yandex";
390
- CurrentClientBrowser["Chrome"] = "Chrome";
391
- CurrentClientBrowser["Chromium"] = "Chromium";
392
- CurrentClientBrowser["Firefox"] = "Firefox";
393
- CurrentClientBrowser["Safari"] = "Safari";
394
- CurrentClientBrowser["Opera"] = "Opera";
395
- CurrentClientBrowser["Edge"] = "Edge";
396
- CurrentClientBrowser["Rest"] = "Rest";
397
- })(exports.CurrentClientBrowser || (exports.CurrentClientBrowser = {}));
398
- exports.CurrentClientDevice = void 0;
399
- (function (CurrentClientDevice) {
400
- CurrentClientDevice["Unknown"] = "Unknown";
401
- CurrentClientDevice["Android"] = "Android";
402
- CurrentClientDevice["iPhone"] = "iPhone";
403
- CurrentClientDevice["iPad"] = "iPad";
404
- CurrentClientDevice["iPod"] = "iPod";
405
- CurrentClientDevice["RestMobile"] = "RestMobile";
406
- CurrentClientDevice["Mac"] = "Mac";
407
- CurrentClientDevice["Desktop"] = "Desktop";
408
- })(exports.CurrentClientDevice || (exports.CurrentClientDevice = {}));
409
- var getCurrentBrowser = function () {
410
- var userAgent = window.navigator.userAgent;
411
- var isYandex = /yabrowser/i.test(userAgent) ? exports.CurrentClientBrowser.Yandex : undefined;
412
- var isChrome = /chrome|crios/i.test(userAgent) ? exports.CurrentClientBrowser.Chrome : undefined;
413
- var isChromium = /chromium/i.test(userAgent) ? exports.CurrentClientBrowser.Chromium : undefined;
414
- var isFirefox = /firefox|fxios/i.test(userAgent) ? exports.CurrentClientBrowser.Firefox : undefined;
415
- var isSafari = /webkit|safari|khtml/i.test(userAgent) ? exports.CurrentClientBrowser.Safari : undefined;
416
- var isOpera = /opr\//i.test(userAgent) ? exports.CurrentClientBrowser.Opera : undefined;
417
- var isEdge = /edg/i.test(userAgent) ? exports.CurrentClientBrowser.Edge : undefined;
418
- var isAndroid = /android/i.test(userAgent) ? exports.CurrentClientDevice.Android : undefined;
419
- var isiPhone = /iphone/i.test(userAgent) ? exports.CurrentClientDevice.iPhone : undefined;
420
- var isiPad = /ipad/i.test(userAgent) ? exports.CurrentClientDevice.iPad : undefined;
421
- var isiPod = /ipod/i.test(userAgent) ? exports.CurrentClientDevice.iPod : undefined;
422
- var isMac = /mac/i.test(userAgent) ? exports.CurrentClientDevice.Mac : undefined;
423
- var isRestMobile = /webOS|BlackBerry|IEMobile|Opera Mini/i.test(userAgent) ? exports.CurrentClientDevice.RestMobile : undefined;
424
- // Порядок браузеров важен для определения!
425
- return {
426
- browser: isYandex || isFirefox || isOpera || isEdge || isChrome || isChromium || isSafari || exports.CurrentClientBrowser.Rest,
427
- device: isAndroid || isiPhone || isiPad || isiPod || isRestMobile || isMac || exports.CurrentClientDevice.Desktop,
428
- };
429
- };
430
- // флаг нужен для того, чтобы проверить, включено ли у iOS-устройства полноразмерное открытие сайтов
431
- var isIOS = function (checkForceDesktop) {
432
- if (checkForceDesktop === void 0) { checkForceDesktop = false; }
433
- var iosDevices = [exports.CurrentClientDevice.iPhone, exports.CurrentClientDevice.iPad, exports.CurrentClientDevice.iPod];
434
- var isMobile = iosDevices.includes(getCurrentBrowser().device);
435
- if (!checkForceDesktop) {
436
- return isMobile;
437
- }
438
- var _a = window.navigator, userAgent = _a.userAgent, maxTouchPoints = _a.maxTouchPoints;
439
- return Boolean(isMobile || /macintosh/i.test(userAgent) && maxTouchPoints > 0);
440
- };
441
- var getIOSVersion = function () {
442
- var userAgent = window.navigator.userAgent;
443
- var iosVersionMatch = userAgent.match(/Version\/(\d+(\.\d+)?)/i);
444
- if (!iosVersionMatch) {
445
- return null;
446
- }
447
- var versionString = iosVersionMatch[1];
448
- var versionNumber = parseFloat(versionString);
449
- if (isNaN(versionNumber)) {
450
- return null;
451
- }
452
- return versionNumber;
453
- };
454
- var isMacLike = function () { return [exports.CurrentClientDevice.Mac, exports.CurrentClientDevice.iPhone, exports.CurrentClientDevice.iPad, exports.CurrentClientDevice.iPod].includes(getCurrentBrowser().device); };
455
-
456
- var getExponentialDelay = function (errorsCount, _a) {
457
- var _b = _a === void 0 ? {} : _a, _c = _b.start, start = _c === void 0 ? 0 : _c, _d = _b.factor, factor = _d === void 0 ? 2 : _d, _e = _b.max, max = _e === void 0 ? Infinity : _e, _f = _b.min, min = _f === void 0 ? start : _f, _g = _b.random, random = _g === void 0 ? 0 : _g;
458
- var delay = start;
459
- delay *= Math.pow(factor, errorsCount);
460
- delay *= 1 + (Math.random() * random * 2 - random);
461
- delay = Math.round(delay);
462
- delay = Math.min(delay, max);
463
- delay = Math.max(delay, min);
464
- return delay;
465
- };
466
-
467
- var Storage;
468
- (function (Storage) {
469
- Storage[Storage["LOCAL_STORAGE"] = 0] = "LOCAL_STORAGE";
470
- Storage[Storage["SESSION_STORAGE"] = 1] = "SESSION_STORAGE";
471
- Storage[Storage["RUNTIME"] = 2] = "RUNTIME";
472
- })(Storage || (Storage = {}));
473
- var runtimeStorage;
474
- var availableStorage;
475
- var key = "vk-videoplayer-dummy-key-".concat(Math.random());
476
- var getAvailable = function () {
477
- if (availableStorage !== undefined) {
478
- return availableStorage;
479
- }
480
- try {
481
- localStorage.setItem(key, 'test');
482
- localStorage.removeItem(key);
483
- availableStorage = Storage.LOCAL_STORAGE;
484
- }
485
- catch (error) {
486
- if (error instanceof DOMException || error instanceof TypeError) {
487
- try {
488
- sessionStorage.getItem(key);
489
- availableStorage = Storage.SESSION_STORAGE;
490
- }
491
- catch (error) {
492
- if (error instanceof DOMException || error instanceof TypeError) {
493
- availableStorage = Storage.RUNTIME;
494
- }
495
- else {
496
- throw error;
497
- }
498
- }
499
- }
500
- else {
501
- throw error;
502
- }
503
- }
504
- if (availableStorage === Storage.RUNTIME) {
505
- runtimeStorage = new Map();
506
- }
507
- return availableStorage;
508
- };
509
- var isPersistent = function () { return getAvailable() === Storage.LOCAL_STORAGE; };
510
- var get$1 = function (key) {
511
- var _a, _b;
512
- var storage = getAvailable();
513
- switch (storage) {
514
- case Storage.LOCAL_STORAGE:
515
- return (_a = localStorage.getItem(key)) !== null && _a !== void 0 ? _a : undefined;
516
- case Storage.SESSION_STORAGE:
517
- return (_b = sessionStorage.getItem(key)) !== null && _b !== void 0 ? _b : undefined;
518
- case Storage.RUNTIME:
519
- return runtimeStorage === null || runtimeStorage === void 0 ? void 0 : runtimeStorage.get(key);
520
- default:
521
- assertNever(storage);
522
- }
523
- };
524
- var set$1 = function (key, value) {
525
- var storage = getAvailable();
526
- switch (storage) {
527
- case Storage.LOCAL_STORAGE:
528
- try {
529
- localStorage.setItem(key, value);
530
- }
531
- catch (error) {
532
- if (error instanceof DOMException) {
533
- console.error(error); // eslint-disable-line no-console
534
- }
535
- else {
536
- throw error;
537
- }
538
- }
539
- break;
540
- case Storage.SESSION_STORAGE:
541
- try {
542
- sessionStorage.setItem(key, value);
543
- }
544
- catch (error) {
545
- if (error instanceof DOMException) {
546
- console.error(error); // eslint-disable-line no-console
547
- }
548
- else {
549
- throw error;
550
- }
551
- }
552
- break;
553
- case Storage.RUNTIME:
554
- return void (runtimeStorage === null || runtimeStorage === void 0 ? void 0 : runtimeStorage.set(key, value));
555
- default:
556
- assertNever(storage);
557
- }
558
- };
559
- var has$1 = function (key) {
560
- var _a;
561
- var storage = getAvailable();
562
- switch (storage) {
563
- case Storage.LOCAL_STORAGE:
564
- return key in localStorage;
565
- case Storage.SESSION_STORAGE:
566
- return key in sessionStorage;
567
- case Storage.RUNTIME:
568
- return (_a = runtimeStorage === null || runtimeStorage === void 0 ? void 0 : runtimeStorage.has(key)) !== null && _a !== void 0 ? _a : false;
569
- default:
570
- assertNever(storage);
571
- return false;
572
- }
573
- };
574
- var remove = function (key) {
575
- var storage = getAvailable();
576
- switch (storage) {
577
- case Storage.LOCAL_STORAGE:
578
- return localStorage.removeItem(key);
579
- case Storage.SESSION_STORAGE:
580
- return sessionStorage.removeItem(key);
581
- case Storage.RUNTIME:
582
- return void (runtimeStorage === null || runtimeStorage === void 0 ? void 0 : runtimeStorage.delete(key));
583
- default:
584
- assertNever(storage);
585
- }
586
- };
587
- var clear = function () {
588
- var storage = getAvailable();
589
- switch (storage) {
590
- case Storage.LOCAL_STORAGE:
591
- return localStorage.clear();
592
- case Storage.SESSION_STORAGE:
593
- return sessionStorage.clear();
594
- case Storage.RUNTIME:
595
- return runtimeStorage === null || runtimeStorage === void 0 ? void 0 : runtimeStorage.clear();
596
- default:
597
- assertNever(storage);
598
- }
599
- };
600
-
601
- var iframeSafeStorage = /*#__PURE__*/Object.freeze({
602
- __proto__: null,
603
- clear: clear,
604
- get: get$1,
605
- has: has$1,
606
- isPersistent: isPersistent,
607
- remove: remove,
608
- set: set$1
609
- });
610
-
611
- var detectEmbed = function () {
612
- var isEmbed;
613
- var parentUrl;
614
- try {
615
- isEmbed = window.self !== window.top;
616
- }
617
- catch (e) {
618
- if (e instanceof DOMException && e.name === 'SecurityError') {
619
- isEmbed = true;
620
- }
621
- else {
622
- isEmbed = false;
623
- // eslint-disable-next-line no-console
624
- console.error(e);
625
- }
626
- }
627
- try {
628
- if (window.location.ancestorOrigins) {
629
- parentUrl = window.location.ancestorOrigins[window.location.ancestorOrigins.length - 1];
630
- }
631
- }
632
- catch (e) {
633
- // eslint-disable-next-line no-console
634
- console.error(e);
635
- }
636
- try {
637
- if (!parentUrl && document.referrer) {
638
- // referrer это далеко не всегда домен эмбеда, поэтому это не точно
639
- parentUrl = document.referrer;
640
- }
641
- }
642
- catch (e) {
643
- // eslint-disable-next-line no-console
644
- console.error(e);
645
- }
646
- var host = parentUrl ? new URL(parentUrl).hostname : undefined;
647
- return {
648
- isEmbed: isEmbed,
649
- host: host,
650
- };
651
- };
652
-
653
- exports.VideoQuality = void 0;
654
- (function (VideoQuality) {
655
- // Служебный тип качества когда оно не известно (не путать с авто)
656
- VideoQuality["INVARIANT"] = "Invariant quality";
657
- VideoQuality["Q_144P"] = "144p";
658
- VideoQuality["Q_240P"] = "240p";
659
- VideoQuality["Q_360P"] = "360p";
660
- VideoQuality["Q_480P"] = "480p";
661
- VideoQuality["Q_720P"] = "720p";
662
- VideoQuality["Q_1080P"] = "1080p";
663
- VideoQuality["Q_1440P"] = "1440p";
664
- VideoQuality["Q_2160P"] = "2160p";
665
- VideoQuality["Q_4320P"] = "4320p";
666
- })(exports.VideoQuality || (exports.VideoQuality = {}));
667
-
668
- var _a;
669
- var videoQualitiesSizes = (_a = {},
670
- _a[exports.VideoQuality.Q_144P] = { width: 256, height: 144 },
671
- _a[exports.VideoQuality.Q_240P] = { width: 428, height: 240 },
672
- _a[exports.VideoQuality.Q_360P] = { width: 640, height: 360 },
673
- _a[exports.VideoQuality.Q_480P] = { width: 856, height: 480 },
674
- _a[exports.VideoQuality.Q_720P] = { width: 1280, height: 720 },
675
- _a[exports.VideoQuality.Q_1080P] = { width: 1920, height: 1080 },
676
- _a[exports.VideoQuality.Q_1440P] = { width: 2560, height: 1440 },
677
- _a[exports.VideoQuality.Q_2160P] = { width: 3840, height: 2160 },
678
- _a[exports.VideoQuality.Q_4320P] = { width: 7680, height: 4320 },
679
- _a);
680
- var isHigher = function (a, b) { return videoQualitiesSizes[a].height > videoQualitiesSizes[b].height; };
681
- var isHigherOrEqual = function (a, b) { return videoQualitiesSizes[a].height >= videoQualitiesSizes[b].height; };
682
- var isLower = function (a, b) { return videoQualitiesSizes[a].height < videoQualitiesSizes[b].height; };
683
- var isLowerOrEqual = function (a, b) { return videoQualitiesSizes[a].height <= videoQualitiesSizes[b].height; };
684
- var getHighestQuality = function (qualities) {
685
- return qualities.sort(function (a, b) {
686
- if (a === b) {
687
- return 0;
688
- }
689
- if (a === exports.VideoQuality.INVARIANT) {
690
- return 1;
691
- }
692
- if (b === exports.VideoQuality.INVARIANT) {
693
- return -1;
694
- }
695
- return isLower(a, b) ? 1 : -1;
696
- })[0];
697
- };
698
- var allExactAscending = Object.keys(videoQualitiesSizes).sort(function (a, b) { return isLower(a, b) ? -1 : 1; });
699
- /**
700
- * Выбирает качество, наиболее близкое к указанной высоте кадра, но не менее её.
701
- * @param tolerance позволяет выбрать качество менее заданной высоты на величину погрешности (в процентах)
702
- */
703
- var videoHeightToQuality = function (height, tolerance) {
704
- if (tolerance === void 0) { tolerance = 0.02; }
705
- var qualities = __spreadArray([], __read(allExactAscending), false);
706
- return qualities.find(function (quality) {
707
- return videoQualitiesSizes[quality].height * (1 + tolerance) >= height;
708
- });
709
- };
710
- /**
711
- * Выбирает качество описывающее заданные размеры видео потока, т.е. не меньше его.
712
- */
713
- var videoSizeToQuality = function (_a) {
714
- var width = _a.width, height = _a.height;
715
- var min = Math.min(width, height);
716
- var max = Math.max(width, height);
717
- return allExactAscending.find(function (testQuality) {
718
- var testSize = videoQualitiesSizes[testQuality];
719
- return testSize.width >= max &&
720
- testSize.height >= min;
721
- });
722
- };
723
- var videoQualityToHeight = function (quality) { return videoQualitiesSizes[quality].height; };
724
- var isInvariantQuality = function (quality) {
725
- return quality === exports.VideoQuality.INVARIANT;
726
- };
727
- var areQualitiesExact = function (qualities) {
728
- return qualities.every(function (q) { return !isInvariantQuality(q); });
729
- };
730
- function assertQualityIsExact(quality) {
731
- if (isInvariantQuality(quality)) {
732
- throw new Error('Expected exact quality');
733
- }
734
- }
735
-
736
- var fillWithDefault = function (partial, defaultConfig) {
737
- var e_1, _a;
738
- var fullConfig = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
739
- try {
740
- for (var _b = __values(Object.keys(defaultConfig)), _c = _b.next(); !_c.done; _c = _b.next()) {
741
- var topLevelKey = _c.value;
742
- var defaultValue = defaultConfig[topLevelKey];
743
- var givenValue = partial[topLevelKey];
744
- if (Array.isArray(defaultValue) && Array.isArray(givenValue)) {
745
- fullConfig[topLevelKey] = givenValue;
746
- }
747
- else if (typeof defaultValue === 'object' && typeof givenValue === 'object') {
748
- fullConfig[topLevelKey] = fillWithDefault(givenValue, defaultValue);
749
- }
750
- else {
751
- fullConfig[topLevelKey] = topLevelKey in partial ? givenValue : defaultValue;
752
- }
753
- }
754
- }
755
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
756
- finally {
757
- try {
758
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
759
- }
760
- finally { if (e_1) throw e_1.error; }
761
- }
762
- return fullConfig;
763
- };
764
-
765
- var timeCodeToString = function (t) {
766
- var str = '';
767
- if (t >= 3600) {
768
- str += Math.floor(t / 3600) + 'h';
769
- t = t % 3600;
770
- }
771
- if (t >= 60) {
772
- str += Math.floor(t / 60) + 'm';
773
- t = t % 60;
774
- }
775
- if (t > 0) {
776
- str += Math.floor(t) + 's';
777
- }
778
- return str;
779
- };
780
-
781
- var ValueSubject = /** @class */ (function (_super) {
782
- __extends(ValueSubject, _super);
783
- function ValueSubject(initialValue) {
784
- var _this = _super.call(this) || this;
785
- _this.value = initialValue;
786
- return _this;
787
- }
788
- ValueSubject.prototype.next = function (value) {
789
- _super.prototype.next.call(this, this.value = value);
790
- };
791
- ValueSubject.prototype.error = function (value) {
792
- // TODO: вынести запись ошибки в this.errorValue и сделать метод getError
793
- _super.prototype.error.call(this, this.value = value);
794
- };
795
- ValueSubject.prototype.getValue = function () {
796
- return this.value;
797
- };
798
- ValueSubject.prototype._subscribe = function (emitter) {
799
- var result = _super.prototype._subscribe.call(this, emitter);
800
- emitter.next(this.value);
801
- return result;
802
- };
803
- return ValueSubject;
804
- }(Subject));
805
-
806
- function combine(observables) {
807
- return new Observable(function (emitter) {
808
- var values = {};
809
- var missingValuesCount = Object.keys(observables).length;
810
- var createKeyListener = function (key) { return function (value) {
811
- if (!(key in values)) {
812
- missingValuesCount--;
813
- }
814
- values[key] = value;
815
- if (missingValuesCount === 0) {
816
- emitter.next(values);
817
- }
818
- }; };
819
- return Object.entries(observables).reduce(function (subscription, _a) {
820
- var _b = __read(_a, 2), key = _b[0], observable = _b[1];
821
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
822
- return subscription.add(observable.subscribe(createKeyListener(key)));
823
- }, new Subscription());
824
- });
825
- }
826
-
827
- /**
828
- * Создаёт Observable, в который попадают все события исходных Observable (синхронно в момент возникновения)
829
- */
830
- function merge() {
831
- var observables = [];
832
- for (var _i = 0; _i < arguments.length; _i++) {
833
- observables[_i] = arguments[_i];
834
- }
835
- return new Observable(function (emitter) {
836
- return observables.reduce(function (subscription, it) { return subscription.add(it.subscribe(emitter)); }, new Subscription());
837
- });
838
- }
839
-
840
- var timeout = (function (time) {
841
- return new Observable(function (emitter) {
842
- var id = window.setTimeout(function () {
843
- try {
844
- emitter.next();
845
- }
846
- catch (e) {
847
- if (emitter.error) {
848
- emitter.error(e);
849
- }
850
- else {
851
- throw e;
852
- }
853
- }
854
- }, time);
855
- return function () { return window.clearTimeout(id); };
856
- });
857
- });
858
-
859
- var interval = (function (time) {
860
- return new Observable(function (emitter) {
861
- var id = window.setInterval(function () { return emitter.next(); }, time);
862
- return function () { return window.clearInterval(id); };
863
- });
864
- });
865
-
866
- var observableFrom = (function (values) {
867
- return new Observable(function (emitter) {
868
- values.forEach(function (it) { return emitter.next(it); });
869
- });
870
- });
871
-
872
- var fromEvent = (function (target, eventName) {
873
- return new Observable(function (emitter) {
874
- var listener = function (e) { return emitter.next(e); }; // eslint-disable-line @typescript-eslint/no-explicit-any
875
- target.addEventListener(eventName, listener);
876
- return function () { return target.removeEventListener(eventName, listener); };
877
- });
878
- });
879
-
880
- function buffer(size) {
881
- return function (o) {
882
- return new Observable(function (emitter) { return o.subscribe(new BufferEmitter(emitter, size)); });
883
- };
884
- }
885
- var BufferEmitter = /** @class */ (function () {
886
- function BufferEmitter(destination, size) {
887
- this.destination = destination;
888
- this.size = size;
889
- this.lastValues = [];
890
- }
891
- BufferEmitter.prototype.next = function (value) {
892
- // TODO: вынести используеться ли где нибудь данный оператор или это мертвый код,
893
- // если используется прояснить кейс когда size = 0, на тек момент бесконечный буфер
894
- if (this.lastValues.length === this.size) {
895
- this.lastValues.shift();
896
- }
897
- this.lastValues.push(value);
898
- this.destination.next(this.lastValues);
899
- };
900
- BufferEmitter.prototype.error = function (e) {
901
- var _a, _b;
902
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, e);
903
- };
904
- return BufferEmitter;
905
- }());
906
-
907
- var defaultConfig$1 = {
908
- leading: false,
909
- trailing: true,
910
- };
911
- function debounce(time, config) {
912
- if (config === void 0) { config = defaultConfig$1; }
913
- return function (o) {
914
- return new Observable(function (emitter) { return o.subscribe(new DebounceEmitter(emitter, time, config)); });
915
- };
916
- }
917
- var DebounceEmitter = /** @class */ (function () {
918
- function DebounceEmitter(destination, time, config) {
919
- this.destination = destination;
920
- this.time = time;
921
- this.config = config;
922
- }
923
- DebounceEmitter.prototype.next = function (value) {
924
- var _this = this;
925
- this.lastValue = value;
926
- if (isNonNullable(this.timeout)) {
927
- window.clearTimeout(this.timeout);
928
- }
929
- else if (this.config.leading) {
930
- this.destination.next(value);
931
- }
932
- this.timeout = window.setTimeout(function () {
933
- if (_this.config.trailing) {
934
- try {
935
- _this.destination.next(_this.lastValue); // eslint-disable-line @typescript-eslint/no-non-null-assertion
936
- }
937
- catch (e) {
938
- if (_this.destination.error) {
939
- _this.destination.error(e);
940
- }
941
- else {
942
- throw e;
943
- }
944
- }
945
- }
946
- _this.timeout = undefined;
947
- }, this.time);
948
- };
949
- DebounceEmitter.prototype.error = function (e) {
950
- var _a, _b;
951
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, e);
952
- };
953
- return DebounceEmitter;
954
- }());
955
-
956
- var defaultConfig = {
957
- leading: true,
958
- trailing: false,
959
- };
960
- function throttle(time, config) {
961
- if (config === void 0) { config = defaultConfig; }
962
- return function (o) {
963
- return new Observable(function (emitter) { return o.subscribe(new ThrottleEmitter(emitter, time, config)); });
964
- };
965
- }
966
- var ThrottleEmitter = /** @class */ (function () {
967
- function ThrottleEmitter(destination, time, config) {
968
- this.destination = destination;
969
- this.time = time;
970
- this.config = config;
971
- }
972
- ThrottleEmitter.prototype.next = function (value) {
973
- var _this = this;
974
- this.lastValue = value;
975
- if (isNullable(this.timeout)) {
976
- if (this.config.leading) {
977
- this.destination.next(value);
978
- }
979
- this.timeout = window.setTimeout(function () {
980
- if (_this.config.trailing) {
981
- _this.destination.next(_this.lastValue); // eslint-disable-line @typescript-eslint/no-non-null-assertion
982
- }
983
- _this.timeout = undefined;
984
- }, this.time);
985
- }
986
- };
987
- ThrottleEmitter.prototype.error = function (e) {
988
- var _a, _b;
989
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, e);
990
- };
991
- return ThrottleEmitter;
992
- }());
993
-
994
- /**
995
- * Пропускает только те события, которые удовлетворяют предикату
996
- */
997
- function filter(predicate) {
998
- return function (o) { return new Observable(function (emitter) { return o.subscribe(new FilterEmitter(emitter, predicate)); }); };
999
- }
1000
- var FilterEmitter = /** @class */ (function () {
1001
- function FilterEmitter(destination, predicate) {
1002
- this.destination = destination;
1003
- this.predicate = predicate;
1004
- }
1005
- FilterEmitter.prototype.next = function (value) {
1006
- var suitable;
1007
- try {
1008
- suitable = this.predicate(value);
1009
- }
1010
- catch (e) {
1011
- this.error(e);
1012
- throw e;
1013
- }
1014
- if (suitable) {
1015
- this.destination.next(value);
1016
- }
1017
- };
1018
- FilterEmitter.prototype.error = function (e) {
1019
- var _a, _b;
1020
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, e);
1021
- };
1022
- return FilterEmitter;
1023
- }());
1024
-
1025
- /**
1026
- * Пропускает только события, содержащие значения, отличные от предыдущего
1027
- */
1028
- function filterChanged(equal) {
1029
- if (equal === void 0) { equal = function (a, b) { return a === b; }; }
1030
- return function (o) { return new Observable(function (emitter) { return o.subscribe(new FilterChangedEmitter(emitter, equal)); }); };
1031
- }
1032
- var NO_VALUE = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
1033
- var FilterChangedEmitter = /** @class */ (function () {
1034
- function FilterChangedEmitter(destination, predicate) {
1035
- this.destination = destination;
1036
- this.predicate = predicate;
1037
- this.lastValue = NO_VALUE;
1038
- }
1039
- FilterChangedEmitter.prototype.next = function (value) {
1040
- var changed;
1041
- try {
1042
- changed = this.lastValue === NO_VALUE || !this.predicate(this.lastValue, value);
1043
- this.lastValue = value;
1044
- }
1045
- catch (e) {
1046
- this.error(e);
1047
- throw e;
1048
- }
1049
- if (changed) {
1050
- this.destination.next(value);
1051
- }
1052
- };
1053
- FilterChangedEmitter.prototype.error = function (e) {
1054
- var _a, _b;
1055
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, e);
1056
- };
1057
- return FilterChangedEmitter;
1058
- }());
1059
-
1060
- function map(mapper) {
1061
- return function (o) { return new Observable(function (emitter) { return o.subscribe(new MapEmitter$1(emitter, mapper)); }); };
1062
- }
1063
- var MapEmitter$1 = /** @class */ (function () {
1064
- function MapEmitter(destination, mapper) {
1065
- this.destination = destination;
1066
- this.mapper = mapper;
1067
- }
1068
- MapEmitter.prototype.next = function (value) {
1069
- var result;
1070
- try {
1071
- result = this.mapper(value);
1072
- }
1073
- catch (e) {
1074
- this.error(e);
1075
- throw e;
1076
- }
1077
- this.destination.next(result);
1078
- };
1079
- MapEmitter.prototype.error = function (value) {
1080
- var _a, _b;
1081
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, value);
1082
- };
1083
- return MapEmitter;
1084
- }());
1085
-
1086
- function mapTo(value) {
1087
- return map(function () { return value; });
1088
- }
1089
-
1090
- /**
1091
- * Отписывается от исходного потока после получения первого события.
1092
- */
1093
- function once() {
1094
- return function (o) {
1095
- return new Observable(function (emitter) {
1096
- var eventFired = false;
1097
- var subscriptionReady = false;
1098
- var subscription = o.subscribe(function (event) {
1099
- if (!eventFired) {
1100
- eventFired = true;
1101
- emitter.next(event);
1102
- }
1103
- if (subscriptionReady) {
1104
- subscription.unsubscribe();
1105
- }
1106
- }, function (error) {
1107
- var _a;
1108
- eventFired = true;
1109
- (_a = emitter.error) === null || _a === void 0 ? void 0 : _a.call(emitter, error);
1110
- if (subscriptionReady) {
1111
- subscription.unsubscribe();
1112
- }
1113
- });
1114
- subscriptionReady = true;
1115
- if (eventFired) {
1116
- subscription.unsubscribe();
1117
- }
1118
- return subscription;
1119
- });
1120
- };
1121
- }
1122
-
1123
- function pairwise() {
1124
- return function (o) { return new Observable(function (emitter) { return o.subscribe(new PairwiseEmitter(emitter)); }); };
1125
- }
1126
- var PairwiseEmitter = /** @class */ (function () {
1127
- function PairwiseEmitter(destination) {
1128
- this.destination = destination;
1129
- this.hasLast = false;
1130
- }
1131
- PairwiseEmitter.prototype.next = function (value) {
1132
- var last = this.last;
1133
- this.last = value;
1134
- if (!this.hasLast) {
1135
- this.hasLast = true;
1136
- return;
1137
- }
1138
- this.destination.next([last, value]); // eslint-disable-line @typescript-eslint/no-non-null-assertion
1139
- };
1140
- PairwiseEmitter.prototype.error = function (value) {
1141
- var _a, _b;
1142
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, value);
1143
- };
1144
- return PairwiseEmitter;
1145
- }());
1146
-
1147
- function tap(effect) {
1148
- return function (o) { return new Observable(function (emitter) { return o.subscribe(new MapEmitter(emitter, effect)); }); };
1149
- }
1150
- var MapEmitter = /** @class */ (function () {
1151
- function MapEmitter(destination, effect) {
1152
- this.destination = destination;
1153
- this.effect = effect;
1154
- }
1155
- MapEmitter.prototype.next = function (value) {
1156
- try {
1157
- this.effect(value);
1158
- }
1159
- catch (e) {
1160
- this.error(e);
1161
- throw e;
1162
- }
1163
- this.destination.next(value);
1164
- };
1165
- MapEmitter.prototype.error = function (value) {
1166
- var _a, _b;
1167
- (_b = (_a = this.destination).error) === null || _b === void 0 ? void 0 : _b.call(_a, value);
1168
- };
1169
- return MapEmitter;
1170
- }());
1171
-
1172
- exports.ErrorCategory = void 0;
1173
- (function (ErrorCategory) {
1174
- ErrorCategory["NETWORK"] = "network";
1175
- ErrorCategory["VIDEO_PIPELINE"] = "video_pipeline";
1176
- ErrorCategory["EXTERNAL_API"] = "external_api";
1177
- ErrorCategory["PARSER"] = "parser";
1178
- ErrorCategory["DOM"] = "dom";
1179
- ErrorCategory["WTF"] = "wtf";
1180
- })(exports.ErrorCategory || (exports.ErrorCategory = {}));
1181
-
1182
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1183
- function _possibleConstructorReturn(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
1184
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1185
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1186
- function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
1187
- function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
1188
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1189
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
1190
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1191
- function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
1192
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1193
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
1194
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1195
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1196
- function _toPrimitive(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1197
- var Emitter = /*#__PURE__*/function () {
1198
- function Emitter() {
1199
- _classCallCheck(this, Emitter);
1200
- Object.defineProperty(this, 'listeners', {
1201
- value: {},
1202
- writable: true,
1203
- configurable: true
1204
- });
1205
- }
1206
- _createClass(Emitter, [{
1207
- key: "addEventListener",
1208
- value: function addEventListener(type, callback, options) {
1209
- if (!(type in this.listeners)) {
1210
- this.listeners[type] = [];
1211
- }
1212
- this.listeners[type].push({
1213
- callback: callback,
1214
- options: options
1215
- });
1216
- }
1217
- }, {
1218
- key: "removeEventListener",
1219
- value: function removeEventListener(type, callback) {
1220
- if (!(type in this.listeners)) {
1221
- return;
1222
- }
1223
- var stack = this.listeners[type];
1224
- for (var i = 0, l = stack.length; i < l; i++) {
1225
- if (stack[i].callback === callback) {
1226
- stack.splice(i, 1);
1227
- return;
1228
- }
1229
- }
1230
- }
1231
- }, {
1232
- key: "dispatchEvent",
1233
- value: function dispatchEvent(event) {
1234
- var _this = this;
1235
- if (!(event.type in this.listeners)) {
1236
- return;
1237
- }
1238
- var stack = this.listeners[event.type];
1239
- var stackToCall = stack.slice();
1240
- var _loop = function _loop() {
1241
- var listener = stackToCall[i];
1242
- try {
1243
- listener.callback.call(_this, event);
1244
- } catch (e) {
1245
- Promise.resolve().then(function () {
1246
- throw e;
1247
- });
1248
- }
1249
- if (listener.options && listener.options.once) {
1250
- _this.removeEventListener(event.type, listener.callback);
1251
- }
1252
- };
1253
- for (var i = 0, l = stackToCall.length; i < l; i++) {
1254
- _loop();
1255
- }
1256
- return !event.defaultPrevented;
1257
- }
1258
- }]);
1259
- return Emitter;
1260
- }();
1261
- var AbortSignal = /*#__PURE__*/function (_Emitter) {
1262
- _inherits(AbortSignal, _Emitter);
1263
- function AbortSignal() {
1264
- var _this2;
1265
- _classCallCheck(this, AbortSignal);
1266
- _this2 = _callSuper(this, AbortSignal);
1267
- // Some versions of babel does not transpile super() correctly for IE <= 10, if the parent
1268
- // constructor has failed to run, then "this.listeners" will still be undefined and then we call
1269
- // the parent constructor directly instead as a workaround. For general details, see babel bug:
1270
- // https://github.com/babel/babel/issues/3041
1271
- // This hack was added as a fix for the issue described here:
1272
- // https://github.com/Financial-Times/polyfill-library/pull/59#issuecomment-477558042
1273
- if (!_this2.listeners) {
1274
- Emitter.call(_assertThisInitialized(_this2));
1275
- }
1276
-
1277
- // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and
1278
- // we want Object.keys(new AbortController().signal) to be [] for compat with the native impl
1279
- Object.defineProperty(_assertThisInitialized(_this2), 'aborted', {
1280
- value: false,
1281
- writable: true,
1282
- configurable: true
1283
- });
1284
- Object.defineProperty(_assertThisInitialized(_this2), 'onabort', {
1285
- value: null,
1286
- writable: true,
1287
- configurable: true
1288
- });
1289
- Object.defineProperty(_assertThisInitialized(_this2), 'reason', {
1290
- value: undefined,
1291
- writable: true,
1292
- configurable: true
1293
- });
1294
- return _this2;
1295
- }
1296
- _createClass(AbortSignal, [{
1297
- key: "toString",
1298
- value: function toString() {
1299
- return '[object AbortSignal]';
1300
- }
1301
- }, {
1302
- key: "dispatchEvent",
1303
- value: function dispatchEvent(event) {
1304
- if (event.type === 'abort') {
1305
- this.aborted = true;
1306
- if (typeof this.onabort === 'function') {
1307
- this.onabort.call(this, event);
1308
- }
1309
- }
1310
- _get(_getPrototypeOf(AbortSignal.prototype), "dispatchEvent", this).call(this, event);
1311
- }
1312
- }]);
1313
- return AbortSignal;
1314
- }(Emitter);
1315
- var AbortController = /*#__PURE__*/function () {
1316
- function AbortController() {
1317
- _classCallCheck(this, AbortController);
1318
- // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and
1319
- // we want Object.keys(new AbortController()) to be [] for compat with the native impl
1320
- Object.defineProperty(this, 'signal', {
1321
- value: new AbortSignal(),
1322
- writable: true,
1323
- configurable: true
1324
- });
1325
- }
1326
- _createClass(AbortController, [{
1327
- key: "abort",
1328
- value: function abort(reason) {
1329
- var event;
1330
- try {
1331
- event = new Event('abort');
1332
- } catch (e) {
1333
- if (typeof document !== 'undefined') {
1334
- if (!document.createEvent) {
1335
- // For Internet Explorer 8:
1336
- event = document.createEventObject();
1337
- event.type = 'abort';
1338
- } else {
1339
- // For Internet Explorer 11:
1340
- event = document.createEvent('Event');
1341
- event.initEvent('abort', false, false);
1342
- }
1343
- } else {
1344
- // Fallback where document isn't available:
1345
- event = {
1346
- type: 'abort',
1347
- bubbles: false,
1348
- cancelable: false
1349
- };
1350
- }
1351
- }
1352
- var signalReason = reason;
1353
- if (signalReason === undefined) {
1354
- if (typeof document === 'undefined') {
1355
- signalReason = new Error('This operation was aborted');
1356
- signalReason.name = 'AbortError';
1357
- } else {
1358
- try {
1359
- signalReason = new DOMException('signal is aborted without reason');
1360
- } catch (err) {
1361
- // IE 11 does not support calling the DOMException constructor, use a
1362
- // regular error object on it instead.
1363
- signalReason = new Error('This operation was aborted');
1364
- signalReason.name = 'AbortError';
1365
- }
1366
- }
1367
- }
1368
- this.signal.reason = signalReason;
1369
- this.signal.dispatchEvent(event);
1370
- }
1371
- }, {
1372
- key: "toString",
1373
- value: function toString() {
1374
- return '[object AbortController]';
1375
- }
1376
- }]);
1377
- return AbortController;
1378
- }();
1379
- if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1380
- // These are necessary to make sure that we get correct output for:
1381
- // Object.prototype.toString.call(new AbortController())
1382
- AbortController.prototype[Symbol.toStringTag] = 'AbortController';
1383
- AbortSignal.prototype[Symbol.toStringTag] = 'AbortSignal';
1384
- }
1385
-
1386
- function polyfillNeeded(self) {
1387
- if (self.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL) {
1388
- console.log('__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill');
1389
- return true;
1390
- }
1391
-
1392
- // Note that the "unfetch" minimal fetch polyfill defines fetch() without
1393
- // defining window.Request, and this polyfill need to work on top of unfetch
1394
- // so the below feature detection needs the !self.AbortController part.
1395
- // The Request.prototype check is also needed because Safari versions 11.1.2
1396
- // up to and including 12.1.x has a window.AbortController present but still
1397
- // does NOT correctly implement abortable fetch:
1398
- // https://bugs.webkit.org/show_bug.cgi?id=174980#c2
1399
- return typeof self.Request === 'function' && !self.Request.prototype.hasOwnProperty('signal') || !self.AbortController;
1400
- }
1401
-
1402
- /**
1403
- * Note: the "fetch.Request" default value is available for fetch imported from
1404
- * the "node-fetch" package and not in browsers. This is OK since browsers
1405
- * will be importing umd-polyfill.js from that path "self" is passed the
1406
- * decorator so the default value will not be used (because browsers that define
1407
- * fetch also has Request). One quirky setup where self.fetch exists but
1408
- * self.Request does not is when the "unfetch" minimal fetch polyfill is used
1409
- * on top of IE11; for this case the browser will try to use the fetch.Request
1410
- * default value which in turn will be undefined but then then "if (Request)"
1411
- * will ensure that you get a patched fetch but still no Request (as expected).
1412
- * @param {fetch, Request = fetch.Request}
1413
- * @returns {fetch: abortableFetch, Request: AbortableRequest}
1414
- */
1415
- function abortableFetchDecorator(patchTargets) {
1416
- if ('function' === typeof patchTargets) {
1417
- patchTargets = {
1418
- fetch: patchTargets
1419
- };
1420
- }
1421
- var _patchTargets = patchTargets,
1422
- fetch = _patchTargets.fetch,
1423
- _patchTargets$Request = _patchTargets.Request,
1424
- NativeRequest = _patchTargets$Request === void 0 ? fetch.Request : _patchTargets$Request,
1425
- NativeAbortController = _patchTargets.AbortController,
1426
- _patchTargets$__FORCE = _patchTargets.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,
1427
- __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL = _patchTargets$__FORCE === void 0 ? false : _patchTargets$__FORCE;
1428
- if (!polyfillNeeded({
1429
- fetch: fetch,
1430
- Request: NativeRequest,
1431
- AbortController: NativeAbortController,
1432
- __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL: __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL
1433
- })) {
1434
- return {
1435
- fetch: fetch,
1436
- Request: Request
1437
- };
1438
- }
1439
- var Request = NativeRequest;
1440
- // Note that the "unfetch" minimal fetch polyfill defines fetch() without
1441
- // defining window.Request, and this polyfill need to work on top of unfetch
1442
- // hence we only patch it if it's available. Also we don't patch it if signal
1443
- // is already available on the Request prototype because in this case support
1444
- // is present and the patching below can cause a crash since it assigns to
1445
- // request.signal which is technically a read-only property. This latter error
1446
- // happens when you run the main5.js node-fetch example in the repo
1447
- // "abortcontroller-polyfill-examples". The exact error is:
1448
- // request.signal = init.signal;
1449
- // ^
1450
- // TypeError: Cannot set property signal of #<Request> which has only a getter
1451
- if (Request && !Request.prototype.hasOwnProperty('signal') || __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL) {
1452
- Request = function Request(input, init) {
1453
- var signal;
1454
- if (init && init.signal) {
1455
- signal = init.signal;
1456
- // Never pass init.signal to the native Request implementation when the polyfill has
1457
- // been installed because if we're running on top of a browser with a
1458
- // working native AbortController (i.e. the polyfill was installed due to
1459
- // __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL being set), then passing our
1460
- // fake AbortSignal to the native fetch will trigger:
1461
- // TypeError: Failed to construct 'Request': member signal is not of type AbortSignal.
1462
- delete init.signal;
1463
- }
1464
- var request = new NativeRequest(input, init);
1465
- if (signal) {
1466
- Object.defineProperty(request, 'signal', {
1467
- writable: false,
1468
- enumerable: false,
1469
- configurable: true,
1470
- value: signal
1471
- });
1472
- }
1473
- return request;
1474
- };
1475
- Request.prototype = NativeRequest.prototype;
1476
- }
1477
- var realFetch = fetch;
1478
- var abortableFetch = function abortableFetch(input, init) {
1479
- var signal = Request && Request.prototype.isPrototypeOf(input) ? input.signal : init ? init.signal : undefined;
1480
- if (signal) {
1481
- var abortError;
1482
- try {
1483
- abortError = new DOMException('Aborted', 'AbortError');
1484
- } catch (err) {
1485
- // IE 11 does not support calling the DOMException constructor, use a
1486
- // regular error object on it instead.
1487
- abortError = new Error('Aborted');
1488
- abortError.name = 'AbortError';
1489
- }
1490
-
1491
- // Return early if already aborted, thus avoiding making an HTTP request
1492
- if (signal.aborted) {
1493
- return Promise.reject(abortError);
1494
- }
1495
-
1496
- // Turn an event into a promise, reject it once `abort` is dispatched
1497
- var cancellation = new Promise(function (_, reject) {
1498
- signal.addEventListener('abort', function () {
1499
- return reject(abortError);
1500
- }, {
1501
- once: true
1502
- });
1503
- });
1504
- if (init && init.signal) {
1505
- // Never pass .signal to the native implementation when the polyfill has
1506
- // been installed because if we're running on top of a browser with a
1507
- // working native AbortController (i.e. the polyfill was installed due to
1508
- // __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL being set), then passing our
1509
- // fake AbortSignal to the native fetch will trigger:
1510
- // TypeError: Failed to execute 'fetch' on 'Window': member signal is not of type AbortSignal.
1511
- delete init.signal;
1512
- }
1513
- // Return the fastest promise (don't need to wait for request to finish)
1514
- return Promise.race([cancellation, realFetch(input, init)]);
1515
- }
1516
- return realFetch(input, init);
1517
- };
1518
- return {
1519
- fetch: abortableFetch,
1520
- Request: Request
1521
- };
1522
- }
1523
-
1524
- /* eslint-disable @typescript-eslint/ban-ts-comment */
1525
- // @ts-expect-error
1526
- var needed = polyfillNeeded({
1527
- fetch: window.fetch,
1528
- Request: window.Request,
1529
- AbortController: window.AbortController,
1530
- });
1531
- var polyfill = needed ? abortableFetchDecorator({
1532
- fetch: window.fetch,
1533
- Request: window.Request,
1534
- AbortController: window.AbortController,
1535
- }) : undefined;
1536
- var fetch = needed ? polyfill.fetch : window.fetch;
1537
- needed ? polyfill.Request : window.Request;
1538
-
1539
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1540
-
1541
- function getDefaultExportFromCjs (x) {
1542
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1543
- }
1544
-
1545
- var fails$9 = function fails(exec) {
1546
- try {
1547
- return !!exec();
1548
- } catch (error) {
1549
- return true;
1550
- }
1551
- };
1552
-
1553
- var fails$8 = fails$9;
1554
- var functionBindNative = !fails$8(function () {
1555
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
1556
- var test = function () {/* empty */}.bind();
1557
- // eslint-disable-next-line no-prototype-builtins -- safe
1558
- return typeof test != 'function' || test.hasOwnProperty('prototype');
1559
- });
1560
-
1561
- var NATIVE_BIND$3 = functionBindNative;
1562
- var FunctionPrototype$2 = Function.prototype;
1563
- var call$9 = FunctionPrototype$2.call;
1564
- var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$9, call$9);
1565
- var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
1566
- return function () {
1567
- return call$9.apply(fn, arguments);
1568
- };
1569
- };
1570
-
1571
- var uncurryThis$8 = functionUncurryThis;
1572
- var toString$2 = uncurryThis$8({}.toString);
1573
- var stringSlice = uncurryThis$8(''.slice);
1574
- var classofRaw$2 = function classofRaw(it) {
1575
- return stringSlice(toString$2(it), 8, -1);
1576
- };
1577
-
1578
- var uncurryThis$7 = functionUncurryThis;
1579
- var fails$7 = fails$9;
1580
- var classof$4 = classofRaw$2;
1581
- var $Object$4 = Object;
1582
- var split = uncurryThis$7(''.split);
1583
-
1584
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
1585
- var indexedObject = fails$7(function () {
1586
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1587
- // eslint-disable-next-line no-prototype-builtins -- safe
1588
- return !$Object$4('z').propertyIsEnumerable(0);
1589
- }) ? function (it) {
1590
- return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
1591
- } : $Object$4;
1592
-
1593
- // we can't use just `it == null` since of `document.all` special case
1594
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
1595
- var isNullOrUndefined$3 = function isNullOrUndefined(it) {
1596
- return it === null || it === undefined;
1597
- };
1598
-
1599
- var isNullOrUndefined$2 = isNullOrUndefined$3;
1600
- var $TypeError$7 = TypeError;
1601
-
1602
- // `RequireObjectCoercible` abstract operation
1603
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
1604
- var requireObjectCoercible$2 = function requireObjectCoercible(it) {
1605
- if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
1606
- return it;
1607
- };
1608
-
1609
- // toObject with fallback for non-array-like ES3 strings
1610
- var IndexedObject = indexedObject;
1611
- var requireObjectCoercible$1 = requireObjectCoercible$2;
1612
- var toIndexedObject$5 = function toIndexedObject(it) {
1613
- return IndexedObject(requireObjectCoercible$1(it));
1614
- };
1615
-
1616
- var iterators = {};
1617
-
1618
- function _typeof$7(o) { "@babel/helpers - typeof"; return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$7(o); }
1619
- var check = function check(it) {
1620
- return it && it.Math == Math && it;
1621
- };
1622
-
1623
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1624
- var global$c =
1625
- // eslint-disable-next-line es/no-global-this -- safe
1626
- check((typeof globalThis === "undefined" ? "undefined" : _typeof$7(globalThis)) == 'object' && globalThis) || check((typeof window === "undefined" ? "undefined" : _typeof$7(window)) == 'object' && window) ||
1627
- // eslint-disable-next-line no-restricted-globals -- safe
1628
- check((typeof self === "undefined" ? "undefined" : _typeof$7(self)) == 'object' && self) || check(_typeof$7(commonjsGlobal) == 'object' && commonjsGlobal) ||
1629
- // eslint-disable-next-line no-new-func -- fallback
1630
- function () {
1631
- return this;
1632
- }() || commonjsGlobal || Function('return this')();
1633
-
1634
- function _typeof$6(o) { "@babel/helpers - typeof"; return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$6(o); }
1635
- var documentAll$2 = (typeof document === "undefined" ? "undefined" : _typeof$6(document)) == 'object' && document.all;
1636
-
1637
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
1638
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
1639
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
1640
- var documentAll_1 = {
1641
- all: documentAll$2,
1642
- IS_HTMLDDA: IS_HTMLDDA
1643
- };
1644
-
1645
- var $documentAll$1 = documentAll_1;
1646
- var documentAll$1 = $documentAll$1.all;
1647
-
1648
- // `IsCallable` abstract operation
1649
- // https://tc39.es/ecma262/#sec-iscallable
1650
- var isCallable$b = $documentAll$1.IS_HTMLDDA ? function (argument) {
1651
- return typeof argument == 'function' || argument === documentAll$1;
1652
- } : function (argument) {
1653
- return typeof argument == 'function';
1654
- };
1655
-
1656
- var global$b = global$c;
1657
- var isCallable$a = isCallable$b;
1658
- var WeakMap$1 = global$b.WeakMap;
1659
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
1660
-
1661
- function _typeof$5(o) { "@babel/helpers - typeof"; return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$5(o); }
1662
- var isCallable$9 = isCallable$b;
1663
- var $documentAll = documentAll_1;
1664
- var documentAll = $documentAll.all;
1665
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
1666
- return _typeof$5(it) == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
1667
- } : function (it) {
1668
- return _typeof$5(it) == 'object' ? it !== null : isCallable$9(it);
1669
- };
1670
-
1671
- var fails$6 = fails$9;
1672
-
1673
- // Detect IE8's incomplete defineProperty implementation
1674
- var descriptors = !fails$6(function () {
1675
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1676
- return Object.defineProperty({}, 1, {
1677
- get: function get() {
1678
- return 7;
1679
- }
1680
- })[1] != 7;
1681
- });
1682
-
1683
- var objectDefineProperty = {};
1684
-
1685
- var global$a = global$c;
1686
- var isObject$5 = isObject$6;
1687
- var document$1 = global$a.document;
1688
- // typeof document.createElement is 'object' in old IE
1689
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
1690
- var documentCreateElement$1 = function documentCreateElement(it) {
1691
- return EXISTS$1 ? document$1.createElement(it) : {};
1692
- };
1693
-
1694
- var DESCRIPTORS$6 = descriptors;
1695
- var fails$5 = fails$9;
1696
- var createElement = documentCreateElement$1;
1697
-
1698
- // Thanks to IE8 for its funny defineProperty
1699
- var ie8DomDefine = !DESCRIPTORS$6 && !fails$5(function () {
1700
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1701
- return Object.defineProperty(createElement('div'), 'a', {
1702
- get: function get() {
1703
- return 7;
1704
- }
1705
- }).a != 7;
1706
- });
1707
-
1708
- var DESCRIPTORS$5 = descriptors;
1709
- var fails$4 = fails$9;
1710
-
1711
- // V8 ~ Chrome 36-
1712
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1713
- var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(function () {
1714
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1715
- return Object.defineProperty(function () {/* empty */}, 'prototype', {
1716
- value: 42,
1717
- writable: false
1718
- }).prototype != 42;
1719
- });
1720
-
1721
- var isObject$4 = isObject$6;
1722
- var $String$2 = String;
1723
- var $TypeError$6 = TypeError;
1724
-
1725
- // `Assert: Type(argument) is Object`
1726
- var anObject$6 = function anObject(argument) {
1727
- if (isObject$4(argument)) return argument;
1728
- throw $TypeError$6($String$2(argument) + ' is not an object');
1729
- };
1730
-
1731
- var NATIVE_BIND$2 = functionBindNative;
1732
- var call$8 = Function.prototype.call;
1733
- var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
1734
- return call$8.apply(call$8, arguments);
1735
- };
1736
-
1737
- var path$3 = {};
1738
-
1739
- var path$2 = path$3;
1740
- var global$9 = global$c;
1741
- var isCallable$8 = isCallable$b;
1742
- var aFunction = function aFunction(variable) {
1743
- return isCallable$8(variable) ? variable : undefined;
1744
- };
1745
- var getBuiltIn$2 = function getBuiltIn(namespace, method) {
1746
- return arguments.length < 2 ? aFunction(path$2[namespace]) || aFunction(global$9[namespace]) : path$2[namespace] && path$2[namespace][method] || global$9[namespace] && global$9[namespace][method];
1747
- };
1748
-
1749
- var uncurryThis$6 = functionUncurryThis;
1750
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
1751
-
1752
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
1753
-
1754
- var global$8 = global$c;
1755
- var userAgent = engineUserAgent;
1756
- var process = global$8.process;
1757
- var Deno = global$8.Deno;
1758
- var versions = process && process.versions || Deno && Deno.version;
1759
- var v8 = versions && versions.v8;
1760
- var match, version;
1761
- if (v8) {
1762
- match = v8.split('.');
1763
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
1764
- // but their correct versions are not interesting for us
1765
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
1766
- }
1767
-
1768
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
1769
- // so check `userAgent` even if `.v8` exists, but 0
1770
- if (!version && userAgent) {
1771
- match = userAgent.match(/Edge\/(\d+)/);
1772
- if (!match || match[1] >= 74) {
1773
- match = userAgent.match(/Chrome\/(\d+)/);
1774
- if (match) version = +match[1];
1775
- }
1776
- }
1777
- var engineV8Version = version;
1778
-
1779
- /* eslint-disable es/no-symbol -- required for testing */
1780
- var V8_VERSION = engineV8Version;
1781
- var fails$3 = fails$9;
1782
- var global$7 = global$c;
1783
- var $String$1 = global$7.String;
1784
-
1785
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1786
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$3(function () {
1787
- var symbol = Symbol();
1788
- // Chrome 38 Symbol has incorrect toString conversion
1789
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1790
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1791
- // of course, fail.
1792
- return !$String$1(symbol) || !(Object(symbol) instanceof Symbol) ||
1793
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1794
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
1795
- });
1796
-
1797
- function _typeof$4(o) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$4(o); }
1798
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
1799
- var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && _typeof$4(Symbol.iterator) == 'symbol';
1800
-
1801
- function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$3(o); }
1802
- var getBuiltIn$1 = getBuiltIn$2;
1803
- var isCallable$7 = isCallable$b;
1804
- var isPrototypeOf$1 = objectIsPrototypeOf;
1805
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
1806
- var $Object$3 = Object;
1807
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
1808
- return _typeof$3(it) == 'symbol';
1809
- } : function (it) {
1810
- var $Symbol = getBuiltIn$1('Symbol');
1811
- return isCallable$7($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
1812
- };
1813
-
1814
- var $String = String;
1815
- var tryToString$3 = function tryToString(argument) {
1816
- try {
1817
- return $String(argument);
1818
- } catch (error) {
1819
- return 'Object';
1820
- }
1821
- };
1822
-
1823
- var isCallable$6 = isCallable$b;
1824
- var tryToString$2 = tryToString$3;
1825
- var $TypeError$5 = TypeError;
1826
-
1827
- // `Assert: IsCallable(argument) is true`
1828
- var aCallable$3 = function aCallable(argument) {
1829
- if (isCallable$6(argument)) return argument;
1830
- throw $TypeError$5(tryToString$2(argument) + ' is not a function');
1831
- };
1832
-
1833
- var aCallable$2 = aCallable$3;
1834
- var isNullOrUndefined$1 = isNullOrUndefined$3;
1835
-
1836
- // `GetMethod` abstract operation
1837
- // https://tc39.es/ecma262/#sec-getmethod
1838
- var getMethod$3 = function getMethod(V, P) {
1839
- var func = V[P];
1840
- return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
1841
- };
1842
-
1843
- var call$7 = functionCall;
1844
- var isCallable$5 = isCallable$b;
1845
- var isObject$3 = isObject$6;
1846
- var $TypeError$4 = TypeError;
1847
-
1848
- // `OrdinaryToPrimitive` abstract operation
1849
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1850
- var ordinaryToPrimitive$1 = function ordinaryToPrimitive(input, pref) {
1851
- var fn, val;
1852
- if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
1853
- if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$7(fn, input))) return val;
1854
- if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
1855
- throw $TypeError$4("Can't convert object to primitive value");
1856
- };
1857
-
1858
- var shared$3 = {exports: {}};
1859
-
1860
- var global$6 = global$c;
1861
-
1862
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1863
- var defineProperty$1 = Object.defineProperty;
1864
- var defineGlobalProperty$1 = function defineGlobalProperty(key, value) {
1865
- try {
1866
- defineProperty$1(global$6, key, {
1867
- value: value,
1868
- configurable: true,
1869
- writable: true
1870
- });
1871
- } catch (error) {
1872
- global$6[key] = value;
1873
- }
1874
- return value;
1875
- };
1876
-
1877
- var global$5 = global$c;
1878
- var defineGlobalProperty = defineGlobalProperty$1;
1879
- var SHARED = '__core-js_shared__';
1880
- var store$2 = global$5[SHARED] || defineGlobalProperty(SHARED, {});
1881
- var sharedStore = store$2;
1882
-
1883
- var store$1 = sharedStore;
1884
- (shared$3.exports = function (key, value) {
1885
- return store$1[key] || (store$1[key] = value !== undefined ? value : {});
1886
- })('versions', []).push({
1887
- version: '3.31.0',
1888
- mode: 'pure' ,
1889
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1890
- license: 'https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE',
1891
- source: 'https://github.com/zloirock/core-js'
1892
- });
1893
- var sharedExports = shared$3.exports;
1894
-
1895
- var requireObjectCoercible = requireObjectCoercible$2;
1896
- var $Object$2 = Object;
1897
-
1898
- // `ToObject` abstract operation
1899
- // https://tc39.es/ecma262/#sec-toobject
1900
- var toObject$2 = function toObject(argument) {
1901
- return $Object$2(requireObjectCoercible(argument));
1902
- };
1903
-
1904
- var uncurryThis$5 = functionUncurryThis;
1905
- var toObject$1 = toObject$2;
1906
- var hasOwnProperty = uncurryThis$5({}.hasOwnProperty);
1907
-
1908
- // `HasOwnProperty` abstract operation
1909
- // https://tc39.es/ecma262/#sec-hasownproperty
1910
- // eslint-disable-next-line es/no-object-hasown -- safe
1911
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
1912
- return hasOwnProperty(toObject$1(it), key);
1913
- };
1914
-
1915
- var uncurryThis$4 = functionUncurryThis;
1916
- var id = 0;
1917
- var postfix = Math.random();
1918
- var toString$1 = uncurryThis$4(1.0.toString);
1919
- var uid$2 = function uid(key) {
1920
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
1921
- };
1922
-
1923
- var global$4 = global$c;
1924
- var shared$2 = sharedExports;
1925
- var hasOwn$7 = hasOwnProperty_1;
1926
- var uid$1 = uid$2;
1927
- var NATIVE_SYMBOL = symbolConstructorDetection;
1928
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
1929
- var _Symbol = global$4.Symbol;
1930
- var WellKnownSymbolsStore = shared$2('wks');
1931
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? _Symbol['for'] || _Symbol : _Symbol && _Symbol.withoutSetter || uid$1;
1932
- var wellKnownSymbol$9 = function wellKnownSymbol(name) {
1933
- if (!hasOwn$7(WellKnownSymbolsStore, name)) {
1934
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(_Symbol, name) ? _Symbol[name] : createWellKnownSymbol('Symbol.' + name);
1935
- }
1936
- return WellKnownSymbolsStore[name];
1937
- };
1938
-
1939
- var call$6 = functionCall;
1940
- var isObject$2 = isObject$6;
1941
- var isSymbol$1 = isSymbol$2;
1942
- var getMethod$2 = getMethod$3;
1943
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
1944
- var wellKnownSymbol$8 = wellKnownSymbol$9;
1945
- var $TypeError$3 = TypeError;
1946
- var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
1947
-
1948
- // `ToPrimitive` abstract operation
1949
- // https://tc39.es/ecma262/#sec-toprimitive
1950
- var toPrimitive$1 = function toPrimitive(input, pref) {
1951
- if (!isObject$2(input) || isSymbol$1(input)) return input;
1952
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
1953
- var result;
1954
- if (exoticToPrim) {
1955
- if (pref === undefined) pref = 'default';
1956
- result = call$6(exoticToPrim, input, pref);
1957
- if (!isObject$2(result) || isSymbol$1(result)) return result;
1958
- throw $TypeError$3("Can't convert object to primitive value");
1959
- }
1960
- if (pref === undefined) pref = 'number';
1961
- return ordinaryToPrimitive(input, pref);
1962
- };
1963
-
1964
- var toPrimitive = toPrimitive$1;
1965
- var isSymbol = isSymbol$2;
1966
-
1967
- // `ToPropertyKey` abstract operation
1968
- // https://tc39.es/ecma262/#sec-topropertykey
1969
- var toPropertyKey$3 = function toPropertyKey(argument) {
1970
- var key = toPrimitive(argument, 'string');
1971
- return isSymbol(key) ? key : key + '';
1972
- };
1973
-
1974
- var DESCRIPTORS$4 = descriptors;
1975
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
1976
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
1977
- var anObject$5 = anObject$6;
1978
- var toPropertyKey$2 = toPropertyKey$3;
1979
- var $TypeError$2 = TypeError;
1980
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1981
- var $defineProperty = Object.defineProperty;
1982
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1983
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
1984
- var ENUMERABLE = 'enumerable';
1985
- var CONFIGURABLE$1 = 'configurable';
1986
- var WRITABLE = 'writable';
1987
-
1988
- // `Object.defineProperty` method
1989
- // https://tc39.es/ecma262/#sec-object.defineproperty
1990
- objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
1991
- anObject$5(O);
1992
- P = toPropertyKey$2(P);
1993
- anObject$5(Attributes);
1994
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1995
- var current = $getOwnPropertyDescriptor$1(O, P);
1996
- if (current && current[WRITABLE]) {
1997
- O[P] = Attributes.value;
1998
- Attributes = {
1999
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
2000
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
2001
- writable: false
2002
- };
2003
- }
2004
- }
2005
- return $defineProperty(O, P, Attributes);
2006
- } : $defineProperty : function defineProperty(O, P, Attributes) {
2007
- anObject$5(O);
2008
- P = toPropertyKey$2(P);
2009
- anObject$5(Attributes);
2010
- if (IE8_DOM_DEFINE$1) try {
2011
- return $defineProperty(O, P, Attributes);
2012
- } catch (error) {/* empty */}
2013
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
2014
- if ('value' in Attributes) O[P] = Attributes.value;
2015
- return O;
2016
- };
2017
-
2018
- var createPropertyDescriptor$4 = function createPropertyDescriptor(bitmap, value) {
2019
- return {
2020
- enumerable: !(bitmap & 1),
2021
- configurable: !(bitmap & 2),
2022
- writable: !(bitmap & 4),
2023
- value: value
2024
- };
2025
- };
2026
-
2027
- var DESCRIPTORS$3 = descriptors;
2028
- var definePropertyModule$2 = objectDefineProperty;
2029
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
2030
- var createNonEnumerableProperty$5 = DESCRIPTORS$3 ? function (object, key, value) {
2031
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
2032
- } : function (object, key, value) {
2033
- object[key] = value;
2034
- return object;
2035
- };
2036
-
2037
- var shared$1 = sharedExports;
2038
- var uid = uid$2;
2039
- var keys = shared$1('keys');
2040
- var sharedKey$3 = function sharedKey(key) {
2041
- return keys[key] || (keys[key] = uid(key));
2042
- };
2043
-
2044
- var hiddenKeys$3 = {};
2045
-
2046
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
2047
- var global$3 = global$c;
2048
- var isObject$1 = isObject$6;
2049
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
2050
- var hasOwn$6 = hasOwnProperty_1;
2051
- var shared = sharedStore;
2052
- var sharedKey$2 = sharedKey$3;
2053
- var hiddenKeys$2 = hiddenKeys$3;
2054
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
2055
- var TypeError$1 = global$3.TypeError;
2056
- var WeakMap = global$3.WeakMap;
2057
- var set, get, has;
2058
- var enforce = function enforce(it) {
2059
- return has(it) ? get(it) : set(it, {});
2060
- };
2061
- var getterFor = function getterFor(TYPE) {
2062
- return function (it) {
2063
- var state;
2064
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
2065
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
2066
- }
2067
- return state;
2068
- };
2069
- };
2070
- if (NATIVE_WEAK_MAP || shared.state) {
2071
- var store = shared.state || (shared.state = new WeakMap());
2072
- /* eslint-disable no-self-assign -- prototype methods protection */
2073
- store.get = store.get;
2074
- store.has = store.has;
2075
- store.set = store.set;
2076
- /* eslint-enable no-self-assign -- prototype methods protection */
2077
- set = function set(it, metadata) {
2078
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
2079
- metadata.facade = it;
2080
- store.set(it, metadata);
2081
- return metadata;
2082
- };
2083
- get = function get(it) {
2084
- return store.get(it) || {};
2085
- };
2086
- has = function has(it) {
2087
- return store.has(it);
2088
- };
2089
- } else {
2090
- var STATE = sharedKey$2('state');
2091
- hiddenKeys$2[STATE] = true;
2092
- set = function set(it, metadata) {
2093
- if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
2094
- metadata.facade = it;
2095
- createNonEnumerableProperty$4(it, STATE, metadata);
2096
- return metadata;
2097
- };
2098
- get = function get(it) {
2099
- return hasOwn$6(it, STATE) ? it[STATE] : {};
2100
- };
2101
- has = function has(it) {
2102
- return hasOwn$6(it, STATE);
2103
- };
2104
- }
2105
- var internalState = {
2106
- set: set,
2107
- get: get,
2108
- has: has,
2109
- enforce: enforce,
2110
- getterFor: getterFor
2111
- };
2112
-
2113
- function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
2114
- var NATIVE_BIND$1 = functionBindNative;
2115
- var FunctionPrototype$1 = Function.prototype;
2116
- var apply$1 = FunctionPrototype$1.apply;
2117
- var call$5 = FunctionPrototype$1.call;
2118
-
2119
- // eslint-disable-next-line es/no-reflect -- safe
2120
- var functionApply = (typeof Reflect === "undefined" ? "undefined" : _typeof$2(Reflect)) == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$5.bind(apply$1) : function () {
2121
- return call$5.apply(apply$1, arguments);
2122
- });
2123
-
2124
- var classofRaw$1 = classofRaw$2;
2125
- var uncurryThis$3 = functionUncurryThis;
2126
- var functionUncurryThisClause = function functionUncurryThisClause(fn) {
2127
- // Nashorn bug:
2128
- // https://github.com/zloirock/core-js/issues/1128
2129
- // https://github.com/zloirock/core-js/issues/1130
2130
- if (classofRaw$1(fn) === 'Function') return uncurryThis$3(fn);
2131
- };
2132
-
2133
- var objectGetOwnPropertyDescriptor = {};
2134
-
2135
- var objectPropertyIsEnumerable = {};
2136
-
2137
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
2138
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2139
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2140
-
2141
- // Nashorn ~ JDK8 bug
2142
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
2143
- 1: 2
2144
- }, 1);
2145
-
2146
- // `Object.prototype.propertyIsEnumerable` method implementation
2147
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
2148
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
2149
- var descriptor = getOwnPropertyDescriptor$1(this, V);
2150
- return !!descriptor && descriptor.enumerable;
2151
- } : $propertyIsEnumerable;
2152
-
2153
- var DESCRIPTORS$2 = descriptors;
2154
- var call$4 = functionCall;
2155
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2156
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
2157
- var toIndexedObject$4 = toIndexedObject$5;
2158
- var toPropertyKey$1 = toPropertyKey$3;
2159
- var hasOwn$5 = hasOwnProperty_1;
2160
- var IE8_DOM_DEFINE = ie8DomDefine;
2161
-
2162
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2163
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2164
-
2165
- // `Object.getOwnPropertyDescriptor` method
2166
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
2167
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$2 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
2168
- O = toIndexedObject$4(O);
2169
- P = toPropertyKey$1(P);
2170
- if (IE8_DOM_DEFINE) try {
2171
- return $getOwnPropertyDescriptor(O, P);
2172
- } catch (error) {/* empty */}
2173
- if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule.f, O, P), O[P]);
2174
- };
2175
-
2176
- var fails$2 = fails$9;
2177
- var isCallable$4 = isCallable$b;
2178
- var replacement = /#|\.prototype\./;
2179
- var isForced$1 = function isForced(feature, detection) {
2180
- var value = data[normalize(feature)];
2181
- return value == POLYFILL ? true : value == NATIVE ? false : isCallable$4(detection) ? fails$2(detection) : !!detection;
2182
- };
2183
- var normalize = isForced$1.normalize = function (string) {
2184
- return String(string).replace(replacement, '.').toLowerCase();
2185
- };
2186
- var data = isForced$1.data = {};
2187
- var NATIVE = isForced$1.NATIVE = 'N';
2188
- var POLYFILL = isForced$1.POLYFILL = 'P';
2189
- var isForced_1 = isForced$1;
2190
-
2191
- var uncurryThis$2 = functionUncurryThisClause;
2192
- var aCallable$1 = aCallable$3;
2193
- var NATIVE_BIND = functionBindNative;
2194
- var bind$2 = uncurryThis$2(uncurryThis$2.bind);
2195
-
2196
- // optional / simple context binding
2197
- var functionBindContext = function functionBindContext(fn, that) {
2198
- aCallable$1(fn);
2199
- return that === undefined ? fn : NATIVE_BIND ? bind$2(fn, that) : function /* ...args */
2200
- () {
2201
- return fn.apply(that, arguments);
2202
- };
2203
- };
2204
-
2205
- function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
2206
- var global$2 = global$c;
2207
- var apply = functionApply;
2208
- var uncurryThis$1 = functionUncurryThisClause;
2209
- var isCallable$3 = isCallable$b;
2210
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2211
- var isForced = isForced_1;
2212
- var path$1 = path$3;
2213
- var bind$1 = functionBindContext;
2214
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
2215
- var hasOwn$4 = hasOwnProperty_1;
2216
- var wrapConstructor = function wrapConstructor(NativeConstructor) {
2217
- var Wrapper = function Wrapper(a, b, c) {
2218
- if (this instanceof Wrapper) {
2219
- switch (arguments.length) {
2220
- case 0:
2221
- return new NativeConstructor();
2222
- case 1:
2223
- return new NativeConstructor(a);
2224
- case 2:
2225
- return new NativeConstructor(a, b);
2226
- }
2227
- return new NativeConstructor(a, b, c);
2228
- }
2229
- return apply(NativeConstructor, this, arguments);
2230
- };
2231
- Wrapper.prototype = NativeConstructor.prototype;
2232
- return Wrapper;
2233
- };
2234
-
2235
- /*
2236
- options.target - name of the target object
2237
- options.global - target is the global object
2238
- options.stat - export as static methods of target
2239
- options.proto - export as prototype methods of target
2240
- options.real - real prototype method for the `pure` version
2241
- options.forced - export even if the native feature is available
2242
- options.bind - bind methods to the target, required for the `pure` version
2243
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
2244
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
2245
- options.sham - add a flag to not completely full polyfills
2246
- options.enumerable - export as enumerable property
2247
- options.dontCallGetSet - prevent calling a getter on target
2248
- options.name - the .name of the function if it does not match the key
2249
- */
2250
- var _export = function _export(options, source) {
2251
- var TARGET = options.target;
2252
- var GLOBAL = options.global;
2253
- var STATIC = options.stat;
2254
- var PROTO = options.proto;
2255
- var nativeSource = GLOBAL ? global$2 : STATIC ? global$2[TARGET] : (global$2[TARGET] || {}).prototype;
2256
- var target = GLOBAL ? path$1 : path$1[TARGET] || createNonEnumerableProperty$3(path$1, TARGET, {})[TARGET];
2257
- var targetPrototype = target.prototype;
2258
- var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
2259
- var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
2260
- for (key in source) {
2261
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
2262
- // contains in native
2263
- USE_NATIVE = !FORCED && nativeSource && hasOwn$4(nativeSource, key);
2264
- targetProperty = target[key];
2265
- if (USE_NATIVE) if (options.dontCallGetSet) {
2266
- descriptor = getOwnPropertyDescriptor(nativeSource, key);
2267
- nativeProperty = descriptor && descriptor.value;
2268
- } else nativeProperty = nativeSource[key];
2269
-
2270
- // export native or implementation
2271
- sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
2272
- if (USE_NATIVE && _typeof$1(targetProperty) == _typeof$1(sourceProperty)) continue;
2273
-
2274
- // bind methods to global for calling from export context
2275
- if (options.bind && USE_NATIVE) resultProperty = bind$1(sourceProperty, global$2);
2276
- // wrap global constructors for prevent changes in this version
2277
- else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
2278
- // make static versions for prototype methods
2279
- else if (PROTO && isCallable$3(sourceProperty)) resultProperty = uncurryThis$1(sourceProperty);
2280
- // default case
2281
- else resultProperty = sourceProperty;
2282
-
2283
- // add a flag to not completely full polyfills
2284
- if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
2285
- createNonEnumerableProperty$3(resultProperty, 'sham', true);
2286
- }
2287
- createNonEnumerableProperty$3(target, key, resultProperty);
2288
- if (PROTO) {
2289
- VIRTUAL_PROTOTYPE = TARGET + 'Prototype';
2290
- if (!hasOwn$4(path$1, VIRTUAL_PROTOTYPE)) {
2291
- createNonEnumerableProperty$3(path$1, VIRTUAL_PROTOTYPE, {});
2292
- }
2293
- // export virtual prototype methods
2294
- createNonEnumerableProperty$3(path$1[VIRTUAL_PROTOTYPE], key, sourceProperty);
2295
- // export real prototype methods
2296
- if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
2297
- createNonEnumerableProperty$3(targetPrototype, key, sourceProperty);
2298
- }
2299
- }
2300
- }
2301
- };
2302
-
2303
- var DESCRIPTORS$1 = descriptors;
2304
- var hasOwn$3 = hasOwnProperty_1;
2305
- var FunctionPrototype = Function.prototype;
2306
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2307
- var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
2308
- var EXISTS = hasOwn$3(FunctionPrototype, 'name');
2309
- // additional protection from minified / mangled / dropped function names
2310
- var PROPER = EXISTS && function something() {/* empty */}.name === 'something';
2311
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable);
2312
- var functionName = {
2313
- EXISTS: EXISTS,
2314
- PROPER: PROPER,
2315
- CONFIGURABLE: CONFIGURABLE
2316
- };
2317
-
2318
- var objectDefineProperties = {};
2319
-
2320
- var ceil = Math.ceil;
2321
- var floor = Math.floor;
2322
-
2323
- // `Math.trunc` method
2324
- // https://tc39.es/ecma262/#sec-math.trunc
2325
- // eslint-disable-next-line es/no-math-trunc -- safe
2326
- var mathTrunc = Math.trunc || function trunc(x) {
2327
- var n = +x;
2328
- return (n > 0 ? floor : ceil)(n);
2329
- };
2330
-
2331
- var trunc = mathTrunc;
2332
-
2333
- // `ToIntegerOrInfinity` abstract operation
2334
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
2335
- var toIntegerOrInfinity$2 = function toIntegerOrInfinity(argument) {
2336
- var number = +argument;
2337
- // eslint-disable-next-line no-self-compare -- NaN check
2338
- return number !== number || number === 0 ? 0 : trunc(number);
2339
- };
2340
-
2341
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
2342
- var max = Math.max;
2343
- var min$1 = Math.min;
2344
-
2345
- // Helper for a popular repeating case of the spec:
2346
- // Let integer be ? ToInteger(index).
2347
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
2348
- var toAbsoluteIndex$1 = function toAbsoluteIndex(index, length) {
2349
- var integer = toIntegerOrInfinity$1(index);
2350
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
2351
- };
2352
-
2353
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
2354
- var min = Math.min;
2355
-
2356
- // `ToLength` abstract operation
2357
- // https://tc39.es/ecma262/#sec-tolength
2358
- var toLength$1 = function toLength(argument) {
2359
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
2360
- };
2361
-
2362
- var toLength = toLength$1;
2363
-
2364
- // `LengthOfArrayLike` abstract operation
2365
- // https://tc39.es/ecma262/#sec-lengthofarraylike
2366
- var lengthOfArrayLike$2 = function lengthOfArrayLike(obj) {
2367
- return toLength(obj.length);
2368
- };
2369
-
2370
- var toIndexedObject$3 = toIndexedObject$5;
2371
- var toAbsoluteIndex = toAbsoluteIndex$1;
2372
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
2373
-
2374
- // `Array.prototype.{ indexOf, includes }` methods implementation
2375
- var createMethod = function createMethod(IS_INCLUDES) {
2376
- return function ($this, el, fromIndex) {
2377
- var O = toIndexedObject$3($this);
2378
- var length = lengthOfArrayLike$1(O);
2379
- var index = toAbsoluteIndex(fromIndex, length);
2380
- var value;
2381
- // Array#includes uses SameValueZero equality algorithm
2382
- // eslint-disable-next-line no-self-compare -- NaN check
2383
- if (IS_INCLUDES && el != el) while (length > index) {
2384
- value = O[index++];
2385
- // eslint-disable-next-line no-self-compare -- NaN check
2386
- if (value != value) return true;
2387
- // Array#indexOf ignores holes, Array#includes - not
2388
- } else for (; length > index; index++) {
2389
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
2390
- }
2391
- return !IS_INCLUDES && -1;
2392
- };
2393
- };
2394
- var arrayIncludes = {
2395
- // `Array.prototype.includes` method
2396
- // https://tc39.es/ecma262/#sec-array.prototype.includes
2397
- includes: createMethod(true),
2398
- // `Array.prototype.indexOf` method
2399
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
2400
- indexOf: createMethod(false)
2401
- };
2402
-
2403
- var uncurryThis = functionUncurryThis;
2404
- var hasOwn$2 = hasOwnProperty_1;
2405
- var toIndexedObject$2 = toIndexedObject$5;
2406
- var indexOf = arrayIncludes.indexOf;
2407
- var hiddenKeys$1 = hiddenKeys$3;
2408
- var push = uncurryThis([].push);
2409
- var objectKeysInternal = function objectKeysInternal(object, names) {
2410
- var O = toIndexedObject$2(object);
2411
- var i = 0;
2412
- var result = [];
2413
- var key;
2414
- for (key in O) !hasOwn$2(hiddenKeys$1, key) && hasOwn$2(O, key) && push(result, key);
2415
- // Don't enum bug & hidden keys
2416
- while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
2417
- ~indexOf(result, key) || push(result, key);
2418
- }
2419
- return result;
2420
- };
2421
-
2422
- // IE8- don't enum bug keys
2423
- var enumBugKeys$2 = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'];
2424
-
2425
- var internalObjectKeys = objectKeysInternal;
2426
- var enumBugKeys$1 = enumBugKeys$2;
2427
-
2428
- // `Object.keys` method
2429
- // https://tc39.es/ecma262/#sec-object.keys
2430
- // eslint-disable-next-line es/no-object-keys -- safe
2431
- var objectKeys$1 = Object.keys || function keys(O) {
2432
- return internalObjectKeys(O, enumBugKeys$1);
2433
- };
2434
-
2435
- var DESCRIPTORS = descriptors;
2436
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2437
- var definePropertyModule$1 = objectDefineProperty;
2438
- var anObject$4 = anObject$6;
2439
- var toIndexedObject$1 = toIndexedObject$5;
2440
- var objectKeys = objectKeys$1;
2441
-
2442
- // `Object.defineProperties` method
2443
- // https://tc39.es/ecma262/#sec-object.defineproperties
2444
- // eslint-disable-next-line es/no-object-defineproperties -- safe
2445
- objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2446
- anObject$4(O);
2447
- var props = toIndexedObject$1(Properties);
2448
- var keys = objectKeys(Properties);
2449
- var length = keys.length;
2450
- var index = 0;
2451
- var key;
2452
- while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
2453
- return O;
2454
- };
2455
-
2456
- var getBuiltIn = getBuiltIn$2;
2457
- var html$1 = getBuiltIn('document', 'documentElement');
2458
-
2459
- /* global ActiveXObject -- old IE, WSH */
2460
- var anObject$3 = anObject$6;
2461
- var definePropertiesModule = objectDefineProperties;
2462
- var enumBugKeys = enumBugKeys$2;
2463
- var hiddenKeys = hiddenKeys$3;
2464
- var html = html$1;
2465
- var documentCreateElement = documentCreateElement$1;
2466
- var sharedKey$1 = sharedKey$3;
2467
- var GT = '>';
2468
- var LT = '<';
2469
- var PROTOTYPE = 'prototype';
2470
- var SCRIPT = 'script';
2471
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2472
- var EmptyConstructor = function EmptyConstructor() {/* empty */};
2473
- var scriptTag = function scriptTag(content) {
2474
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2475
- };
2476
-
2477
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2478
- var NullProtoObjectViaActiveX = function NullProtoObjectViaActiveX(activeXDocument) {
2479
- activeXDocument.write(scriptTag(''));
2480
- activeXDocument.close();
2481
- var temp = activeXDocument.parentWindow.Object;
2482
- activeXDocument = null; // avoid memory leak
2483
- return temp;
2484
- };
2485
-
2486
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
2487
- var NullProtoObjectViaIFrame = function NullProtoObjectViaIFrame() {
2488
- // Thrash, waste and sodomy: IE GC bug
2489
- var iframe = documentCreateElement('iframe');
2490
- var JS = 'java' + SCRIPT + ':';
2491
- var iframeDocument;
2492
- iframe.style.display = 'none';
2493
- html.appendChild(iframe);
2494
- // https://github.com/zloirock/core-js/issues/475
2495
- iframe.src = String(JS);
2496
- iframeDocument = iframe.contentWindow.document;
2497
- iframeDocument.open();
2498
- iframeDocument.write(scriptTag('document.F=Object'));
2499
- iframeDocument.close();
2500
- return iframeDocument.F;
2501
- };
2502
-
2503
- // Check for document.domain and active x support
2504
- // No need to use active x approach when document.domain is not set
2505
- // see https://github.com/es-shims/es5-shim/issues/150
2506
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2507
- // avoid IE GC bug
2508
- var activeXDocument;
2509
- var _NullProtoObject = function NullProtoObject() {
2510
- try {
2511
- activeXDocument = new ActiveXObject('htmlfile');
2512
- } catch (error) {/* ignore */}
2513
- _NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2514
- : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH
2515
- var length = enumBugKeys.length;
2516
- while (length--) delete _NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2517
- return _NullProtoObject();
2518
- };
2519
- hiddenKeys[IE_PROTO$1] = true;
2520
-
2521
- // `Object.create` method
2522
- // https://tc39.es/ecma262/#sec-object.create
2523
- // eslint-disable-next-line es/no-object-create -- safe
2524
- var objectCreate = Object.create || function create(O, Properties) {
2525
- var result;
2526
- if (O !== null) {
2527
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
2528
- result = new EmptyConstructor();
2529
- EmptyConstructor[PROTOTYPE] = null;
2530
- // add "__proto__" for Object.getPrototypeOf polyfill
2531
- result[IE_PROTO$1] = O;
2532
- } else result = _NullProtoObject();
2533
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2534
- };
2535
-
2536
- var fails$1 = fails$9;
2537
- var correctPrototypeGetter = !fails$1(function () {
2538
- function F() {/* empty */}
2539
- F.prototype.constructor = null;
2540
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2541
- return Object.getPrototypeOf(new F()) !== F.prototype;
2542
- });
2543
-
2544
- var hasOwn$1 = hasOwnProperty_1;
2545
- var isCallable$2 = isCallable$b;
2546
- var toObject = toObject$2;
2547
- var sharedKey = sharedKey$3;
2548
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2549
- var IE_PROTO = sharedKey('IE_PROTO');
2550
- var $Object$1 = Object;
2551
- var ObjectPrototype = $Object$1.prototype;
2552
-
2553
- // `Object.getPrototypeOf` method
2554
- // https://tc39.es/ecma262/#sec-object.getprototypeof
2555
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
2556
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
2557
- var object = toObject(O);
2558
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
2559
- var constructor = object.constructor;
2560
- if (isCallable$2(constructor) && object instanceof constructor) {
2561
- return constructor.prototype;
2562
- }
2563
- return object instanceof $Object$1 ? ObjectPrototype : null;
2564
- };
2565
-
2566
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
2567
- var defineBuiltIn$2 = function defineBuiltIn(target, key, value, options) {
2568
- if (options && options.enumerable) target[key] = value;else createNonEnumerableProperty$2(target, key, value);
2569
- return target;
2570
- };
2571
-
2572
- var fails = fails$9;
2573
- var isCallable$1 = isCallable$b;
2574
- var isObject = isObject$6;
2575
- var create$1 = objectCreate;
2576
- var getPrototypeOf$1 = objectGetPrototypeOf;
2577
- var defineBuiltIn$1 = defineBuiltIn$2;
2578
- var wellKnownSymbol$7 = wellKnownSymbol$9;
2579
- var ITERATOR$3 = wellKnownSymbol$7('iterator');
2580
- var BUGGY_SAFARI_ITERATORS$1 = false;
2581
-
2582
- // `%IteratorPrototype%` object
2583
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
2584
- var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
2585
-
2586
- /* eslint-disable es/no-array-prototype-keys -- safe */
2587
- if ([].keys) {
2588
- arrayIterator = [].keys();
2589
- // Safari 8 has buggy iterators w/o `next`
2590
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;else {
2591
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
2592
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
2593
- }
2594
- }
2595
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$1) || fails(function () {
2596
- var test = {};
2597
- // FF44- legacy iterators case
2598
- return IteratorPrototype$1[ITERATOR$3].call(test) !== test;
2599
- });
2600
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};else IteratorPrototype$1 = create$1(IteratorPrototype$1);
2601
-
2602
- // `%IteratorPrototype%[@@iterator]()` method
2603
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2604
- if (!isCallable$1(IteratorPrototype$1[ITERATOR$3])) {
2605
- defineBuiltIn$1(IteratorPrototype$1, ITERATOR$3, function () {
2606
- return this;
2607
- });
2608
- }
2609
- var iteratorsCore = {
2610
- IteratorPrototype: IteratorPrototype$1,
2611
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
2612
- };
2613
-
2614
- var wellKnownSymbol$6 = wellKnownSymbol$9;
2615
- var TO_STRING_TAG$3 = wellKnownSymbol$6('toStringTag');
2616
- var test = {};
2617
- test[TO_STRING_TAG$3] = 'z';
2618
- var toStringTagSupport = String(test) === '[object z]';
2619
-
2620
- var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
2621
- var isCallable = isCallable$b;
2622
- var classofRaw = classofRaw$2;
2623
- var wellKnownSymbol$5 = wellKnownSymbol$9;
2624
- var TO_STRING_TAG$2 = wellKnownSymbol$5('toStringTag');
2625
- var $Object = Object;
2626
-
2627
- // ES3 wrong here
2628
- var CORRECT_ARGUMENTS = classofRaw(function () {
2629
- return arguments;
2630
- }()) == 'Arguments';
2631
-
2632
- // fallback for IE11 Script Access Denied error
2633
- var tryGet = function tryGet(it, key) {
2634
- try {
2635
- return it[key];
2636
- } catch (error) {/* empty */}
2637
- };
2638
-
2639
- // getting tag from ES6+ `Object.prototype.toString`
2640
- var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
2641
- var O, tag, result;
2642
- return it === undefined ? 'Undefined' : it === null ? 'Null'
2643
- // @@toStringTag case
2644
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$2)) == 'string' ? tag
2645
- // builtinTag case
2646
- : CORRECT_ARGUMENTS ? classofRaw(O)
2647
- // ES3 arguments fallback
2648
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
2649
- };
2650
-
2651
- var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2652
- var classof$2 = classof$3;
2653
-
2654
- // `Object.prototype.toString` method implementation
2655
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
2656
- var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2657
- return '[object ' + classof$2(this) + ']';
2658
- };
2659
-
2660
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2661
- var defineProperty = objectDefineProperty.f;
2662
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
2663
- var hasOwn = hasOwnProperty_1;
2664
- var toString = objectToString;
2665
- var wellKnownSymbol$4 = wellKnownSymbol$9;
2666
- var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
2667
- var setToStringTag$2 = function setToStringTag(it, TAG, STATIC, SET_METHOD) {
2668
- if (it) {
2669
- var target = STATIC ? it : it.prototype;
2670
- if (!hasOwn(target, TO_STRING_TAG$1)) {
2671
- defineProperty(target, TO_STRING_TAG$1, {
2672
- configurable: true,
2673
- value: TAG
2674
- });
2675
- }
2676
- if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
2677
- createNonEnumerableProperty$1(target, 'toString', toString);
2678
- }
2679
- }
2680
- };
2681
-
2682
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
2683
- var create = objectCreate;
2684
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
2685
- var setToStringTag$1 = setToStringTag$2;
2686
- var Iterators$5 = iterators;
2687
- var returnThis$1 = function returnThis() {
2688
- return this;
2689
- };
2690
- var iteratorCreateConstructor = function iteratorCreateConstructor(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2691
- var TO_STRING_TAG = NAME + ' Iterator';
2692
- IteratorConstructor.prototype = create(IteratorPrototype, {
2693
- next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next)
2694
- });
2695
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false, true);
2696
- Iterators$5[TO_STRING_TAG] = returnThis$1;
2697
- return IteratorConstructor;
2698
- };
2699
-
2700
- var $$1 = _export;
2701
- var call$3 = functionCall;
2702
- var FunctionName = functionName;
2703
- var createIteratorConstructor = iteratorCreateConstructor;
2704
- var getPrototypeOf = objectGetPrototypeOf;
2705
- var setToStringTag = setToStringTag$2;
2706
- var defineBuiltIn = defineBuiltIn$2;
2707
- var wellKnownSymbol$3 = wellKnownSymbol$9;
2708
- var Iterators$4 = iterators;
2709
- var IteratorsCore = iteratorsCore;
2710
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2711
- FunctionName.CONFIGURABLE;
2712
- IteratorsCore.IteratorPrototype;
2713
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2714
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
2715
- var KEYS = 'keys';
2716
- var VALUES = 'values';
2717
- var ENTRIES = 'entries';
2718
- var returnThis = function returnThis() {
2719
- return this;
2720
- };
2721
- var iteratorDefine = function iteratorDefine(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2722
- createIteratorConstructor(IteratorConstructor, NAME, next);
2723
- var getIterationMethod = function getIterationMethod(KIND) {
2724
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2725
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
2726
- switch (KIND) {
2727
- case KEYS:
2728
- return function keys() {
2729
- return new IteratorConstructor(this, KIND);
2730
- };
2731
- case VALUES:
2732
- return function values() {
2733
- return new IteratorConstructor(this, KIND);
2734
- };
2735
- case ENTRIES:
2736
- return function entries() {
2737
- return new IteratorConstructor(this, KIND);
2738
- };
2739
- }
2740
- return function () {
2741
- return new IteratorConstructor(this);
2742
- };
2743
- };
2744
- var TO_STRING_TAG = NAME + ' Iterator';
2745
- var INCORRECT_VALUES_NAME = false;
2746
- var IterablePrototype = Iterable.prototype;
2747
- var nativeIterator = IterablePrototype[ITERATOR$2] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT];
2748
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2749
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2750
- var CurrentIteratorPrototype, methods, KEY;
2751
-
2752
- // fix native
2753
- if (anyNativeIterator) {
2754
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2755
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2756
- // Set @@toStringTag to native iterators
2757
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
2758
- Iterators$4[TO_STRING_TAG] = returnThis;
2759
- }
2760
- }
2761
-
2762
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
2763
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2764
- {
2765
- INCORRECT_VALUES_NAME = true;
2766
- defaultIterator = function values() {
2767
- return call$3(nativeIterator, this);
2768
- };
2769
- }
2770
- }
2771
-
2772
- // export additional methods
2773
- if (DEFAULT) {
2774
- methods = {
2775
- values: getIterationMethod(VALUES),
2776
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2777
- entries: getIterationMethod(ENTRIES)
2778
- };
2779
- if (FORCED) for (KEY in methods) {
2780
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2781
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2782
- }
2783
- } else $$1({
2784
- target: NAME,
2785
- proto: true,
2786
- forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
2787
- }, methods);
2788
- }
2789
-
2790
- // define iterator
2791
- if ((FORCED) && IterablePrototype[ITERATOR$2] !== defaultIterator) {
2792
- defineBuiltIn(IterablePrototype, ITERATOR$2, defaultIterator, {
2793
- name: DEFAULT
2794
- });
2795
- }
2796
- Iterators$4[NAME] = defaultIterator;
2797
- return methods;
2798
- };
2799
-
2800
- // `CreateIterResultObject` abstract operation
2801
- // https://tc39.es/ecma262/#sec-createiterresultobject
2802
- var createIterResultObject$1 = function createIterResultObject(value, done) {
2803
- return {
2804
- value: value,
2805
- done: done
2806
- };
2807
- };
2808
-
2809
- var toIndexedObject = toIndexedObject$5;
2810
- var Iterators$3 = iterators;
2811
- var InternalStateModule = internalState;
2812
- objectDefineProperty.f;
2813
- var defineIterator = iteratorDefine;
2814
- var createIterResultObject = createIterResultObject$1;
2815
- var ARRAY_ITERATOR = 'Array Iterator';
2816
- var setInternalState = InternalStateModule.set;
2817
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2818
-
2819
- // `Array.prototype.entries` method
2820
- // https://tc39.es/ecma262/#sec-array.prototype.entries
2821
- // `Array.prototype.keys` method
2822
- // https://tc39.es/ecma262/#sec-array.prototype.keys
2823
- // `Array.prototype.values` method
2824
- // https://tc39.es/ecma262/#sec-array.prototype.values
2825
- // `Array.prototype[@@iterator]` method
2826
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2827
- // `CreateArrayIterator` internal method
2828
- // https://tc39.es/ecma262/#sec-createarrayiterator
2829
- defineIterator(Array, 'Array', function (iterated, kind) {
2830
- setInternalState(this, {
2831
- type: ARRAY_ITERATOR,
2832
- target: toIndexedObject(iterated),
2833
- // target
2834
- index: 0,
2835
- // next index
2836
- kind: kind // kind
2837
- });
2838
- // `%ArrayIteratorPrototype%.next` method
2839
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2840
- }, function () {
2841
- var state = getInternalState(this);
2842
- var target = state.target;
2843
- var kind = state.kind;
2844
- var index = state.index++;
2845
- if (!target || index >= target.length) {
2846
- state.target = undefined;
2847
- return createIterResultObject(undefined, true);
2848
- }
2849
- if (kind == 'keys') return createIterResultObject(index, false);
2850
- if (kind == 'values') return createIterResultObject(target[index], false);
2851
- return createIterResultObject([index, target[index]], false);
2852
- }, 'values');
2853
-
2854
- // argumentsList[@@iterator] is %ArrayProto_values%
2855
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2856
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2857
- Iterators$3.Arguments = Iterators$3.Array;
2858
-
2859
- var wellKnownSymbol$2 = wellKnownSymbol$9;
2860
- var Iterators$2 = iterators;
2861
- var ITERATOR$1 = wellKnownSymbol$2('iterator');
2862
- var ArrayPrototype = Array.prototype;
2863
-
2864
- // check on default Array iterator
2865
- var isArrayIteratorMethod$1 = function isArrayIteratorMethod(it) {
2866
- return it !== undefined && (Iterators$2.Array === it || ArrayPrototype[ITERATOR$1] === it);
2867
- };
2868
-
2869
- var classof$1 = classof$3;
2870
- var getMethod$1 = getMethod$3;
2871
- var isNullOrUndefined = isNullOrUndefined$3;
2872
- var Iterators$1 = iterators;
2873
- var wellKnownSymbol$1 = wellKnownSymbol$9;
2874
- var ITERATOR = wellKnownSymbol$1('iterator');
2875
- var getIteratorMethod$2 = function getIteratorMethod(it) {
2876
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR) || getMethod$1(it, '@@iterator') || Iterators$1[classof$1(it)];
2877
- };
2878
-
2879
- var call$2 = functionCall;
2880
- var aCallable = aCallable$3;
2881
- var anObject$2 = anObject$6;
2882
- var tryToString$1 = tryToString$3;
2883
- var getIteratorMethod$1 = getIteratorMethod$2;
2884
- var $TypeError$1 = TypeError;
2885
- var getIterator$1 = function getIterator(argument, usingIterator) {
2886
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2887
- if (aCallable(iteratorMethod)) return anObject$2(call$2(iteratorMethod, argument));
2888
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
2889
- };
2890
-
2891
- var call$1 = functionCall;
2892
- var anObject$1 = anObject$6;
2893
- var getMethod = getMethod$3;
2894
- var iteratorClose$1 = function iteratorClose(iterator, kind, value) {
2895
- var innerResult, innerError;
2896
- anObject$1(iterator);
2897
- try {
2898
- innerResult = getMethod(iterator, 'return');
2899
- if (!innerResult) {
2900
- if (kind === 'throw') throw value;
2901
- return value;
2902
- }
2903
- innerResult = call$1(innerResult, iterator);
2904
- } catch (error) {
2905
- innerError = true;
2906
- innerResult = error;
2907
- }
2908
- if (kind === 'throw') throw value;
2909
- if (innerError) throw innerResult;
2910
- anObject$1(innerResult);
2911
- return value;
2912
- };
2913
-
2914
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2915
- var bind = functionBindContext;
2916
- var call = functionCall;
2917
- var anObject = anObject$6;
2918
- var tryToString = tryToString$3;
2919
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
2920
- var lengthOfArrayLike = lengthOfArrayLike$2;
2921
- var isPrototypeOf = objectIsPrototypeOf;
2922
- var getIterator = getIterator$1;
2923
- var getIteratorMethod = getIteratorMethod$2;
2924
- var iteratorClose = iteratorClose$1;
2925
- var $TypeError = TypeError;
2926
- var Result = function Result(stopped, result) {
2927
- this.stopped = stopped;
2928
- this.result = result;
2929
- };
2930
- var ResultPrototype = Result.prototype;
2931
- var iterate$1 = function iterate(iterable, unboundFunction, options) {
2932
- var that = options && options.that;
2933
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2934
- var IS_RECORD = !!(options && options.IS_RECORD);
2935
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2936
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2937
- var fn = bind(unboundFunction, that);
2938
- var iterator, iterFn, index, length, result, next, step;
2939
- var stop = function stop(condition) {
2940
- if (iterator) iteratorClose(iterator, 'normal', condition);
2941
- return new Result(true, condition);
2942
- };
2943
- var callFn = function callFn(value) {
2944
- if (AS_ENTRIES) {
2945
- anObject(value);
2946
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2947
- }
2948
- return INTERRUPTED ? fn(value, stop) : fn(value);
2949
- };
2950
- if (IS_RECORD) {
2951
- iterator = iterable.iterator;
2952
- } else if (IS_ITERATOR) {
2953
- iterator = iterable;
2954
- } else {
2955
- iterFn = getIteratorMethod(iterable);
2956
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2957
- // optimisation for array iterators
2958
- if (isArrayIteratorMethod(iterFn)) {
2959
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2960
- result = callFn(iterable[index]);
2961
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2962
- }
2963
- return new Result(false);
2964
- }
2965
- iterator = getIterator(iterable, iterFn);
2966
- }
2967
- next = IS_RECORD ? iterable.next : iterator.next;
2968
- while (!(step = call(next, iterator)).done) {
2969
- try {
2970
- result = callFn(step.value);
2971
- } catch (error) {
2972
- iteratorClose(iterator, 'throw', error);
2973
- }
2974
- if (_typeof(result) == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2975
- }
2976
- return new Result(false);
2977
- };
2978
-
2979
- var toPropertyKey = toPropertyKey$3;
2980
- var definePropertyModule = objectDefineProperty;
2981
- var createPropertyDescriptor = createPropertyDescriptor$4;
2982
- var createProperty$1 = function createProperty(object, key, value) {
2983
- var propertyKey = toPropertyKey(key);
2984
- if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value;
2985
- };
2986
-
2987
- var $ = _export;
2988
- var iterate = iterate$1;
2989
- var createProperty = createProperty$1;
2990
-
2991
- // `Object.fromEntries` method
2992
- // https://github.com/tc39/proposal-object-from-entries
2993
- $({
2994
- target: 'Object',
2995
- stat: true
2996
- }, {
2997
- fromEntries: function fromEntries(iterable) {
2998
- var obj = {};
2999
- iterate(iterable, function (k, v) {
3000
- createProperty(obj, k, v);
3001
- }, {
3002
- AS_ENTRIES: true
3003
- });
3004
- return obj;
3005
- }
3006
- });
3007
-
3008
- var path = path$3;
3009
- var fromEntries$2 = path.Object.fromEntries;
3010
-
3011
- // iterable DOM collections
3012
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
3013
- var domIterables = {
3014
- CSSRuleList: 0,
3015
- CSSStyleDeclaration: 0,
3016
- CSSValueList: 0,
3017
- ClientRectList: 0,
3018
- DOMRectList: 0,
3019
- DOMStringList: 0,
3020
- DOMTokenList: 1,
3021
- DataTransferItemList: 0,
3022
- FileList: 0,
3023
- HTMLAllCollection: 0,
3024
- HTMLCollection: 0,
3025
- HTMLFormElement: 0,
3026
- HTMLSelectElement: 0,
3027
- MediaList: 0,
3028
- MimeTypeArray: 0,
3029
- NamedNodeMap: 0,
3030
- NodeList: 1,
3031
- PaintRequestList: 0,
3032
- Plugin: 0,
3033
- PluginArray: 0,
3034
- SVGLengthList: 0,
3035
- SVGNumberList: 0,
3036
- SVGPathSegList: 0,
3037
- SVGPointList: 0,
3038
- SVGStringList: 0,
3039
- SVGTransformList: 0,
3040
- SourceBufferList: 0,
3041
- StyleSheetList: 0,
3042
- TextTrackCueList: 0,
3043
- TextTrackList: 0,
3044
- TouchList: 0
3045
- };
3046
-
3047
- var DOMIterables = domIterables;
3048
- var global$1 = global$c;
3049
- var classof = classof$3;
3050
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
3051
- var Iterators = iterators;
3052
- var wellKnownSymbol = wellKnownSymbol$9;
3053
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3054
- for (var COLLECTION_NAME in DOMIterables) {
3055
- var Collection = global$1[COLLECTION_NAME];
3056
- var CollectionPrototype = Collection && Collection.prototype;
3057
- if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {
3058
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
3059
- }
3060
- Iterators[COLLECTION_NAME] = Iterators.Array;
3061
- }
3062
-
3063
- var parent$1 = fromEntries$2;
3064
- var fromEntries$1 = parent$1;
3065
-
3066
- var parent = fromEntries$1;
3067
- var fromEntries = parent;
3068
- var __polyfill_Object_fromEntries_a2fm7k4hdkkn = /*@__PURE__*/getDefaultExportFromCjs(fromEntries);
3069
-
3070
- exports.VKNumericLanguage = void 0;
3071
- (function (VKNumericLanguage) {
3072
- VKNumericLanguage["Armenian"] = "58";
3073
- VKNumericLanguage["Azerbaijani"] = "57";
3074
- VKNumericLanguage["Belarusian"] = "114";
3075
- VKNumericLanguage["English"] = "3";
3076
- VKNumericLanguage["Kazakh"] = "97";
3077
- VKNumericLanguage["Portuguese"] = "73";
3078
- VKNumericLanguage["Russian"] = "0";
3079
- VKNumericLanguage["Spanish"] = "4";
3080
- VKNumericLanguage["Ukrainian"] = "1";
3081
- VKNumericLanguage["Uzbek"] = "65";
3082
- VKNumericLanguage["Vietnamese"] = "75";
3083
- })(exports.VKNumericLanguage || (exports.VKNumericLanguage = {}));
3084
- var VK_DOMAIN = 'vk.com';
3085
- var loadVKLangPack = function (language, packName, packPrefix) { return __awaiter(void 0, void 0, void 0, function () {
3086
- var url, response, data;
3087
- return __generator(this, function (_a) {
3088
- switch (_a.label) {
3089
- case 0:
3090
- url = new URL("https://".concat(VK_DOMAIN, "/js/lang-pack.js"));
3091
- url.searchParams.set('format', 'json');
3092
- url.searchParams.set('name', packName);
3093
- if (language !== undefined) {
3094
- url.searchParams.set('lang', language);
3095
- }
3096
- return [4 /*yield*/, fetch(url.toString())];
3097
- case 1:
3098
- response = _a.sent();
3099
- return [4 /*yield*/, response.json()];
3100
- case 2:
3101
- data = _a.sent();
3102
- return [2 /*return*/, mapVKResponse(data, packPrefix)];
3103
- }
3104
- });
3105
- }); };
3106
- var mapVKResponse = function (data, packPrefix) { return __polyfill_Object_fromEntries_a2fm7k4hdkkn(Object.entries(data.keys).map(function (_a) {
3107
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
3108
- return [key.substring("".concat(packPrefix, "_").length), mapToken(value)];
3109
- })); };
3110
- var mapToken = function (vkToken) { return Array.isArray(vkToken) ? vkToken[0] : vkToken; };
3111
-
3112
- exports.InterfaceLanguage = void 0;
3113
- (function (InterfaceLanguage) {
3114
- InterfaceLanguage["RU"] = "ru";
3115
- InterfaceLanguage["EN"] = "en";
3116
- })(exports.InterfaceLanguage || (exports.InterfaceLanguage = {}));
3117
-
3118
- exports.Logger = Logger;
3119
- exports.Observable = Observable;
3120
- exports.Subject = Subject;
3121
- exports.Subscription = Subscription;
3122
- exports.VERSION = VERSION;
3123
- exports.ValueSubject = ValueSubject;
3124
- exports.abortable = abortable;
3125
- exports.addScript = addScript;
3126
- exports.areQualitiesExact = areQualitiesExact;
3127
- exports.assertEmptyArray = assertEmptyArray;
3128
- exports.assertNever = assertNever;
3129
- exports.assertNonNullable = assertNonNullable;
3130
- exports.assertNotEmptyArray = assertNotEmptyArray;
3131
- exports.assertNullable = assertNullable;
3132
- exports.assertQualityIsExact = assertQualityIsExact;
3133
- exports.buffer = buffer;
3134
- exports.checkNever = checkNever;
3135
- exports.combine = combine;
3136
- exports.debounce = debounce;
3137
- exports.detectEmbed = detectEmbed;
3138
- exports.fillWithDefault = fillWithDefault;
3139
- exports.filter = filter;
3140
- exports.filterChanged = filterChanged;
3141
- exports.fromEvent = fromEvent;
3142
- exports.getCurrentBrowser = getCurrentBrowser;
3143
- exports.getExponentialDelay = getExponentialDelay;
3144
- exports.getHighestQuality = getHighestQuality;
3145
- exports.getIOSVersion = getIOSVersion;
3146
- exports.interval = interval;
3147
- exports.isHigher = isHigher;
3148
- exports.isHigherOrEqual = isHigherOrEqual;
3149
- exports.isIOS = isIOS;
3150
- exports.isInvariantQuality = isInvariantQuality;
3151
- exports.isLower = isLower;
3152
- exports.isLowerOrEqual = isLowerOrEqual;
3153
- exports.isMacLike = isMacLike;
3154
- exports.isNonNullable = isNonNullable;
3155
- exports.isNullable = isNullable;
3156
- exports.loadVKLangPack = loadVKLangPack;
3157
- exports.map = map;
3158
- exports.mapTo = mapTo;
3159
- exports.merge = merge;
3160
- exports.noop = noop;
3161
- exports.now = now;
3162
- exports.observableFrom = observableFrom;
3163
- exports.once = once;
3164
- exports.pairwise = pairwise;
3165
- exports.safeStorage = iframeSafeStorage;
3166
- exports.tap = tap;
3167
- exports.throttle = throttle;
3168
- exports.timeCodeToString = timeCodeToString;
3169
- exports.timeout = timeout;
3170
- exports.videoHeightToQuality = videoHeightToQuality;
3171
- exports.videoQualityToHeight = videoQualityToHeight;
3172
- exports.videoSizeToQuality = videoSizeToQuality;
3173
-
3174
- }));
3175
- //# sourceMappingURL=es5.umd.js.map