@amazon-devices/kepler-media-account-login 1.1.12

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.
@@ -0,0 +1,1279 @@
1
+ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production";
2
+ (function (global) {
3
+ /**
4
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ *
9
+ * @polyfill
10
+ * @nolint
11
+ * @format
12
+ */
13
+
14
+ /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */
15
+
16
+ /**
17
+ * This pipes all of our console logging functions to native logging so that
18
+ * JavaScript errors in required modules show up in Xcode via NSLog.
19
+ */
20
+ var inspect = function () {
21
+ // Copyright Joyent, Inc. and other Node contributors.
22
+ //
23
+ // Permission is hereby granted, free of charge, to any person obtaining a
24
+ // copy of this software and associated documentation files (the
25
+ // "Software"), to deal in the Software without restriction, including
26
+ // without limitation the rights to use, copy, modify, merge, publish,
27
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
28
+ // persons to whom the Software is furnished to do so, subject to the
29
+ // following conditions:
30
+ //
31
+ // The above copyright notice and this permission notice shall be included
32
+ // in all copies or substantial portions of the Software.
33
+ //
34
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
35
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
37
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
38
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
39
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
40
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
41
+ //
42
+ // https://github.com/joyent/node/blob/master/lib/util.js
43
+
44
+ function inspect(obj, opts) {
45
+ var ctx = {
46
+ seen: [],
47
+ formatValueCalls: 0,
48
+ stylize: stylizeNoColor
49
+ };
50
+ return formatValue(ctx, obj, opts.depth);
51
+ }
52
+ function stylizeNoColor(str, styleType) {
53
+ return str;
54
+ }
55
+ function arrayToHash(array) {
56
+ var hash = {};
57
+ array.forEach(function (val, idx) {
58
+ hash[val] = true;
59
+ });
60
+ return hash;
61
+ }
62
+ function formatValue(ctx, value, recurseTimes) {
63
+ ctx.formatValueCalls++;
64
+ if (ctx.formatValueCalls > 200) {
65
+ return `[TOO BIG formatValueCalls ${ctx.formatValueCalls} exceeded limit of 200]`;
66
+ }
67
+
68
+ // Primitive types cannot have properties
69
+ var primitive = formatPrimitive(ctx, value);
70
+ if (primitive) {
71
+ return primitive;
72
+ }
73
+
74
+ // Look up the keys of the object.
75
+ var keys = Object.keys(value);
76
+ var visibleKeys = arrayToHash(keys);
77
+
78
+ // IE doesn't make error fields non-enumerable
79
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
80
+ if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
81
+ return formatError(value);
82
+ }
83
+
84
+ // Some type of object without properties can be shortcutted.
85
+ if (keys.length === 0) {
86
+ if (isFunction(value)) {
87
+ var name = value.name ? ': ' + value.name : '';
88
+ return ctx.stylize('[Function' + name + ']', 'special');
89
+ }
90
+ if (isRegExp(value)) {
91
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
92
+ }
93
+ if (isDate(value)) {
94
+ return ctx.stylize(Date.prototype.toString.call(value), 'date');
95
+ }
96
+ if (isError(value)) {
97
+ return formatError(value);
98
+ }
99
+ }
100
+ var base = '',
101
+ array = false,
102
+ braces = ['{', '}'];
103
+
104
+ // Make Array say that they are Array
105
+ if (isArray(value)) {
106
+ array = true;
107
+ braces = ['[', ']'];
108
+ }
109
+
110
+ // Make functions say that they are functions
111
+ if (isFunction(value)) {
112
+ var n = value.name ? ': ' + value.name : '';
113
+ base = ' [Function' + n + ']';
114
+ }
115
+
116
+ // Make RegExps say that they are RegExps
117
+ if (isRegExp(value)) {
118
+ base = ' ' + RegExp.prototype.toString.call(value);
119
+ }
120
+
121
+ // Make dates with properties first say the date
122
+ if (isDate(value)) {
123
+ base = ' ' + Date.prototype.toUTCString.call(value);
124
+ }
125
+
126
+ // Make error with message first say the error
127
+ if (isError(value)) {
128
+ base = ' ' + formatError(value);
129
+ }
130
+ if (keys.length === 0 && (!array || value.length == 0)) {
131
+ return braces[0] + base + braces[1];
132
+ }
133
+ if (recurseTimes < 0) {
134
+ if (isRegExp(value)) {
135
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
136
+ } else {
137
+ return ctx.stylize('[Object]', 'special');
138
+ }
139
+ }
140
+ ctx.seen.push(value);
141
+ var output;
142
+ if (array) {
143
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
144
+ } else {
145
+ output = keys.map(function (key) {
146
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
147
+ });
148
+ }
149
+ ctx.seen.pop();
150
+ return reduceToSingleString(output, base, braces);
151
+ }
152
+ function formatPrimitive(ctx, value) {
153
+ if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');
154
+ if (isString(value)) {
155
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
156
+ return ctx.stylize(simple, 'string');
157
+ }
158
+ if (isNumber(value)) return ctx.stylize('' + value, 'number');
159
+ if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');
160
+ // For some reason typeof null is "object", so special case here.
161
+ if (isNull(value)) return ctx.stylize('null', 'null');
162
+ }
163
+ function formatError(value) {
164
+ return '[' + Error.prototype.toString.call(value) + ']';
165
+ }
166
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
167
+ var output = [];
168
+ for (var i = 0, l = value.length; i < l; ++i) {
169
+ if (hasOwnProperty(value, String(i))) {
170
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
171
+ } else {
172
+ output.push('');
173
+ }
174
+ }
175
+ keys.forEach(function (key) {
176
+ if (!key.match(/^\d+$/)) {
177
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
178
+ }
179
+ });
180
+ return output;
181
+ }
182
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
183
+ var name, str, desc;
184
+ desc = Object.getOwnPropertyDescriptor(value, key) || {
185
+ value: value[key]
186
+ };
187
+ if (desc.get) {
188
+ if (desc.set) {
189
+ str = ctx.stylize('[Getter/Setter]', 'special');
190
+ } else {
191
+ str = ctx.stylize('[Getter]', 'special');
192
+ }
193
+ } else {
194
+ if (desc.set) {
195
+ str = ctx.stylize('[Setter]', 'special');
196
+ }
197
+ }
198
+ if (!hasOwnProperty(visibleKeys, key)) {
199
+ name = '[' + key + ']';
200
+ }
201
+ if (!str) {
202
+ if (ctx.seen.indexOf(desc.value) < 0) {
203
+ if (isNull(recurseTimes)) {
204
+ str = formatValue(ctx, desc.value, null);
205
+ } else {
206
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
207
+ }
208
+ if (str.indexOf('\n') > -1) {
209
+ if (array) {
210
+ str = str.split('\n').map(function (line) {
211
+ return ' ' + line;
212
+ }).join('\n').substr(2);
213
+ } else {
214
+ str = '\n' + str.split('\n').map(function (line) {
215
+ return ' ' + line;
216
+ }).join('\n');
217
+ }
218
+ }
219
+ } else {
220
+ str = ctx.stylize('[Circular]', 'special');
221
+ }
222
+ }
223
+ if (isUndefined(name)) {
224
+ if (array && key.match(/^\d+$/)) {
225
+ return str;
226
+ }
227
+ name = JSON.stringify('' + key);
228
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
229
+ name = name.substr(1, name.length - 2);
230
+ name = ctx.stylize(name, 'name');
231
+ } else {
232
+ name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
233
+ name = ctx.stylize(name, 'string');
234
+ }
235
+ }
236
+ return name + ': ' + str;
237
+ }
238
+ function reduceToSingleString(output, base, braces) {
239
+ var numLinesEst = 0;
240
+ var length = output.reduce(function (prev, cur) {
241
+ numLinesEst++;
242
+ if (cur.indexOf('\n') >= 0) numLinesEst++;
243
+ return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
244
+ }, 0);
245
+ if (length > 60) {
246
+ return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1];
247
+ }
248
+ return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
249
+ }
250
+
251
+ // NOTE: These type checking functions intentionally don't use `instanceof`
252
+ // because it is fragile and can be easily faked with `Object.create()`.
253
+ function isArray(ar) {
254
+ return Array.isArray(ar);
255
+ }
256
+ function isBoolean(arg) {
257
+ return typeof arg === 'boolean';
258
+ }
259
+ function isNull(arg) {
260
+ return arg === null;
261
+ }
262
+ function isNumber(arg) {
263
+ return typeof arg === 'number';
264
+ }
265
+ function isString(arg) {
266
+ return typeof arg === 'string';
267
+ }
268
+ function isUndefined(arg) {
269
+ return arg === undefined;
270
+ }
271
+ function isRegExp(re) {
272
+ return isObject(re) && objectToString(re) === '[object RegExp]';
273
+ }
274
+ function isObject(arg) {
275
+ return typeof arg === 'object' && arg !== null;
276
+ }
277
+ function isDate(d) {
278
+ return isObject(d) && objectToString(d) === '[object Date]';
279
+ }
280
+ function isError(e) {
281
+ return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);
282
+ }
283
+ function isFunction(arg) {
284
+ return typeof arg === 'function';
285
+ }
286
+ function objectToString(o) {
287
+ return Object.prototype.toString.call(o);
288
+ }
289
+ function hasOwnProperty(obj, prop) {
290
+ return Object.prototype.hasOwnProperty.call(obj, prop);
291
+ }
292
+ return inspect;
293
+ }();
294
+ var OBJECT_COLUMN_NAME = '(index)';
295
+ var LOG_LEVELS = {
296
+ trace: 0,
297
+ info: 1,
298
+ warn: 2,
299
+ error: 3
300
+ };
301
+ var INSPECTOR_LEVELS = [];
302
+ INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';
303
+ INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';
304
+ INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';
305
+ INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';
306
+
307
+ // Strip the inner function in getNativeLogFunction(), if in dev also
308
+ // strip method printing to originalConsole.
309
+ var INSPECTOR_FRAMES_TO_SKIP = 1;
310
+ function getNativeLogFunction(level) {
311
+ return function () {
312
+ var str;
313
+ if (arguments.length === 1 && typeof arguments[0] === 'string') {
314
+ str = arguments[0];
315
+ } else {
316
+ str = Array.prototype.map.call(arguments, function (arg) {
317
+ return inspect(arg, {
318
+ depth: 10
319
+ });
320
+ }).join(', ');
321
+ }
322
+
323
+ // TRICKY
324
+ // If more than one argument is provided, the code above collapses them all
325
+ // into a single formatted string. This transform wraps string arguments in
326
+ // single quotes (e.g. "foo" -> "'foo'") which then breaks the "Warning:"
327
+ // check below. So it's important that we look at the first argument, rather
328
+ // than the formatted argument string.
329
+ var firstArg = arguments[0];
330
+ var logLevel = level;
331
+ if (typeof firstArg === 'string' && firstArg.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) {
332
+ // React warnings use console.error so that a stack trace is shown,
333
+ // but we don't (currently) want these to show a redbox
334
+ // (Note: Logic duplicated in ExceptionsManager.js.)
335
+ logLevel = LOG_LEVELS.warn;
336
+ }
337
+ if (global.__inspectorLog) {
338
+ global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP);
339
+ }
340
+ if (groupStack.length) {
341
+ str = groupFormat('', str);
342
+ }
343
+ global.nativeLoggingHook(str, logLevel);
344
+ };
345
+ }
346
+ function repeat(element, n) {
347
+ return Array.apply(null, Array(n)).map(function () {
348
+ return element;
349
+ });
350
+ }
351
+ function consoleTablePolyfill(rows) {
352
+ // convert object -> array
353
+ if (!Array.isArray(rows)) {
354
+ var data = rows;
355
+ rows = [];
356
+ for (var key in data) {
357
+ if (data.hasOwnProperty(key)) {
358
+ var row = data[key];
359
+ row[OBJECT_COLUMN_NAME] = key;
360
+ rows.push(row);
361
+ }
362
+ }
363
+ }
364
+ if (rows.length === 0) {
365
+ global.nativeLoggingHook('', LOG_LEVELS.info);
366
+ return;
367
+ }
368
+ var columns = Object.keys(rows[0]).sort();
369
+ var stringRows = [];
370
+ var columnWidths = [];
371
+
372
+ // Convert each cell to a string. Also
373
+ // figure out max cell width for each column
374
+ columns.forEach(function (k, i) {
375
+ columnWidths[i] = k.length;
376
+ for (var j = 0; j < rows.length; j++) {
377
+ var cellStr = (rows[j][k] || '?').toString();
378
+ stringRows[j] = stringRows[j] || [];
379
+ stringRows[j][i] = cellStr;
380
+ columnWidths[i] = Math.max(columnWidths[i], cellStr.length);
381
+ }
382
+ });
383
+
384
+ // Join all elements in the row into a single string with | separators
385
+ // (appends extra spaces to each cell to make separators | aligned)
386
+ function joinRow(row, space) {
387
+ var cells = row.map(function (cell, i) {
388
+ var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');
389
+ return cell + extraSpaces;
390
+ });
391
+ space = space || ' ';
392
+ return cells.join(space + '|' + space);
393
+ }
394
+ var separators = columnWidths.map(function (columnWidth) {
395
+ return repeat('-', columnWidth).join('');
396
+ });
397
+ var separatorRow = joinRow(separators, '-');
398
+ var header = joinRow(columns);
399
+ var table = [header, separatorRow];
400
+ for (var i = 0; i < rows.length; i++) {
401
+ table.push(joinRow(stringRows[i]));
402
+ }
403
+
404
+ // Notice extra empty line at the beginning.
405
+ // Native logging hook adds "RCTLog >" at the front of every
406
+ // logged string, which would shift the header and screw up
407
+ // the table
408
+ global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info);
409
+ }
410
+ var GROUP_PAD = "\u2502"; // Box light vertical
411
+ var GROUP_OPEN = "\u2510"; // Box light down+left
412
+ var GROUP_CLOSE = "\u2518"; // Box light up+left
413
+
414
+ var groupStack = [];
415
+ function groupFormat(prefix, msg) {
416
+ // Insert group formatting before the console message
417
+ return groupStack.join('') + prefix + ' ' + (msg || '');
418
+ }
419
+ function consoleGroupPolyfill(label) {
420
+ global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);
421
+ groupStack.push(GROUP_PAD);
422
+ }
423
+ function consoleGroupCollapsedPolyfill(label) {
424
+ global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info);
425
+ groupStack.push(GROUP_PAD);
426
+ }
427
+ function consoleGroupEndPolyfill() {
428
+ groupStack.pop();
429
+ global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);
430
+ }
431
+ function consoleAssertPolyfill(expression, label) {
432
+ if (!expression) {
433
+ global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);
434
+ }
435
+ }
436
+ if (global.nativeLoggingHook) {
437
+ var originalConsole = global.console;
438
+ // Preserve the original `console` as `originalConsole`
439
+
440
+ global.console = {
441
+ error: getNativeLogFunction(LOG_LEVELS.error),
442
+ info: getNativeLogFunction(LOG_LEVELS.info),
443
+ log: getNativeLogFunction(LOG_LEVELS.info),
444
+ warn: getNativeLogFunction(LOG_LEVELS.warn),
445
+ trace: getNativeLogFunction(LOG_LEVELS.trace),
446
+ debug: getNativeLogFunction(LOG_LEVELS.trace),
447
+ table: consoleTablePolyfill,
448
+ group: consoleGroupPolyfill,
449
+ groupEnd: consoleGroupEndPolyfill,
450
+ groupCollapsed: consoleGroupCollapsedPolyfill,
451
+ assert: consoleAssertPolyfill
452
+ };
453
+ Object.defineProperty(console, '_isPolyfilled', {
454
+ value: true,
455
+ enumerable: false
456
+ });
457
+
458
+ // If available, also call the original `console` method since that is
459
+ // sometimes useful. Ex: on OS X, this will let you see rich output in
460
+ // the Safari Web Inspector console.
461
+ } else if (!global.console) {
462
+ var stub = function stub() {};
463
+ var log = global.print || stub;
464
+ global.console = {
465
+ debug: log,
466
+ error: log,
467
+ info: log,
468
+ log: log,
469
+ trace: log,
470
+ warn: log,
471
+ assert: function assert(expression, label) {
472
+ if (!expression) {
473
+ log('Assertion failed: ' + label);
474
+ }
475
+ },
476
+ clear: stub,
477
+ dir: stub,
478
+ dirxml: stub,
479
+ group: stub,
480
+ groupCollapsed: stub,
481
+ groupEnd: stub,
482
+ profile: stub,
483
+ profileEnd: stub,
484
+ table: stub
485
+ };
486
+ Object.defineProperty(console, '_isPolyfilled', {
487
+ value: true,
488
+ enumerable: false
489
+ });
490
+ }
491
+ })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
492
+ (function (global) {
493
+ /**
494
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
495
+ *
496
+ * This source code is licensed under the MIT license found in the
497
+ * LICENSE file in the root directory of this source tree.
498
+ *
499
+ * @format
500
+ *
501
+ * @polyfill
502
+ */
503
+
504
+ var _inGuard = 0;
505
+ /**
506
+ * This is the error handler that is called when we encounter an exception
507
+ * when loading a module. This will report any errors encountered before
508
+ * ExceptionsManager is configured.
509
+ */
510
+ var _globalHandler = function onError(e, isFatal) {
511
+ throw e;
512
+ };
513
+
514
+ /**
515
+ * The particular require runtime that we are using looks for a global
516
+ * `ErrorUtils` object and if it exists, then it requires modules with the
517
+ * error handler specified via ErrorUtils.setGlobalHandler by calling the
518
+ * require function with applyWithGuard. Since the require module is loaded
519
+ * before any of the modules, this ErrorUtils must be defined (and the handler
520
+ * set) globally before requiring anything.
521
+ */
522
+ var ErrorUtils = {
523
+ setGlobalHandler: function setGlobalHandler(fun) {
524
+ _globalHandler = fun;
525
+ },
526
+ getGlobalHandler: function getGlobalHandler() {
527
+ return _globalHandler;
528
+ },
529
+ reportError: function reportError(error) {
530
+ _globalHandler && _globalHandler(error, false);
531
+ },
532
+ reportFatalError: function reportFatalError(error) {
533
+ // NOTE: This has an untyped call site in Metro.
534
+ _globalHandler && _globalHandler(error, true);
535
+ },
536
+ applyWithGuard: function applyWithGuard(fun, context, args,
537
+ // Unused, but some code synced from www sets it to null.
538
+ unused_onError,
539
+ // Some callers pass a name here, which we ignore.
540
+ unused_name) {
541
+ try {
542
+ _inGuard++;
543
+ /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
544
+ * null) is fine. (2) array -> rest array should work */
545
+ /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
546
+ * null) is fine. (2) array -> rest array should work */
547
+ return fun.apply(context, args);
548
+ } catch (e) {
549
+ ErrorUtils.reportError(e);
550
+ } finally {
551
+ _inGuard--;
552
+ }
553
+ return null;
554
+ },
555
+ applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) {
556
+ if (ErrorUtils.inGuard()) {
557
+ /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
558
+ * null) is fine. (2) array -> rest array should work */
559
+ /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
560
+ * null) is fine. (2) array -> rest array should work */
561
+ return fun.apply(context, args);
562
+ } else {
563
+ ErrorUtils.applyWithGuard(fun, context, args);
564
+ }
565
+ return null;
566
+ },
567
+ inGuard: function inGuard() {
568
+ return !!_inGuard;
569
+ },
570
+ guard: function guard(fun, name, context) {
571
+ var _ref;
572
+ // TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types
573
+ // should be sufficient.
574
+ if (typeof fun !== 'function') {
575
+ console.warn('A function must be passed to ErrorUtils.guard, got ', fun);
576
+ return null;
577
+ }
578
+ var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : '<generated guard>';
579
+ /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by
580
+ * Flow's LTI update could not be added via codemod */
581
+ function guarded() {
582
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
583
+ args[_key] = arguments[_key];
584
+ }
585
+ return ErrorUtils.applyWithGuard(fun, context != null ? context : this, args, null, guardName);
586
+ }
587
+ return guarded;
588
+ }
589
+ };
590
+ global.ErrorUtils = ErrorUtils;
591
+ })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
592
+ (function (global) {
593
+ /**
594
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
595
+ *
596
+ * This source code is licensed under the MIT license found in the
597
+ * LICENSE file in the root directory of this source tree.
598
+ *
599
+ * @format
600
+ * @polyfill
601
+ * @nolint
602
+ */
603
+
604
+ (function () {
605
+ 'use strict';
606
+
607
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
608
+
609
+ /**
610
+ * Returns an array of the given object's own enumerable entries.
611
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
612
+ */
613
+ if (typeof Object.entries !== 'function') {
614
+ Object.entries = function (object) {
615
+ // `null` and `undefined` values are not allowed.
616
+ if (object == null) {
617
+ throw new TypeError('Object.entries called on non-object');
618
+ }
619
+ var entries = [];
620
+ for (var key in object) {
621
+ if (hasOwnProperty.call(object, key)) {
622
+ entries.push([key, object[key]]);
623
+ }
624
+ }
625
+ return entries;
626
+ };
627
+ }
628
+
629
+ /**
630
+ * Returns an array of the given object's own enumerable entries.
631
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values
632
+ */
633
+ if (typeof Object.values !== 'function') {
634
+ Object.values = function (object) {
635
+ // `null` and `undefined` values are not allowed.
636
+ if (object == null) {
637
+ throw new TypeError('Object.values called on non-object');
638
+ }
639
+ var values = [];
640
+ for (var key in object) {
641
+ if (hasOwnProperty.call(object, key)) {
642
+ values.push(object[key]);
643
+ }
644
+ }
645
+ return values;
646
+ };
647
+ }
648
+ })();
649
+ })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
650
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
651
+ "use strict";
652
+
653
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
654
+ if (k2 === undefined) k2 = k;
655
+ var desc = Object.getOwnPropertyDescriptor(m, k);
656
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
657
+ desc = {
658
+ enumerable: true,
659
+ get: function get() {
660
+ return m[k];
661
+ }
662
+ };
663
+ }
664
+ Object.defineProperty(o, k2, desc);
665
+ } : function (o, m, k, k2) {
666
+ if (k2 === undefined) k2 = k;
667
+ o[k2] = m[k];
668
+ });
669
+ var __exportStar = this && this.__exportStar || function (m, exports) {
670
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
671
+ };
672
+ Object.defineProperty(exports, "__esModule", {
673
+ value: true
674
+ });
675
+ /*
676
+ * Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
677
+ *
678
+ * PROPRIETARY/CONFIDENTIAL
679
+ * Use is subject to license terms.
680
+ */
681
+ __exportStar(_$$_REQUIRE(_dependencyMap[0]), exports);
682
+ __exportStar(_$$_REQUIRE(_dependencyMap[1]), exports);
683
+ },"06bbd09a613e08744366",["d40e0a8101520e7ac66a","bf2f04d1c07ea79e13b5"]);
684
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
685
+ "use strict";
686
+
687
+ /*
688
+ * Copyright (c) 2023-2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
689
+ *
690
+ * PROPRIETARY/CONFIDENTIAL
691
+ * Use is subject to license terms.
692
+ */
693
+ var __importDefault = this && this.__importDefault || function (mod) {
694
+ return mod && mod.__esModule ? mod : {
695
+ "default": mod
696
+ };
697
+ };
698
+ Object.defineProperty(exports, "__esModule", {
699
+ value: true
700
+ });
701
+ exports.AccountLoginServerComponent = undefined;
702
+ var KeplerScriptAccountLogin_1 = __importDefault(_$$_REQUIRE(_dependencyMap[0]));
703
+ // Error codes
704
+ var INTERNAL_ERROR = 1;
705
+ function throwErrorIfNecessary(obj, errorMessage) {
706
+ if (obj.isSuccess) {
707
+ return;
708
+ }
709
+ var message = errorMessage + ', error=' + obj.errorMessage;
710
+ if (obj.errorCode === INTERNAL_ERROR) {
711
+ throw new (_$$_REQUIRE(_dependencyMap[1]).InternalError)(message);
712
+ } else {
713
+ // Throw internal error if none of error codes match
714
+ throw new (_$$_REQUIRE(_dependencyMap[1]).InternalError)(message);
715
+ }
716
+ }
717
+ /**
718
+ * Provides factory methods for creating `IAccountLoginServerAsync` and `IStatusBuilder` instances .
719
+ */
720
+ var AccountLoginServerComponent = /*#__PURE__*/function () {
721
+ function AccountLoginServerComponent() {
722
+ _$$_REQUIRE(_dependencyMap[2])(this, AccountLoginServerComponent);
723
+ }
724
+ return _$$_REQUIRE(_dependencyMap[3])(AccountLoginServerComponent, [{
725
+ key: "getOrMakeServer",
726
+ value:
727
+ /**
728
+ * Gets or creates the singleton `IAccountLoginServerAsync` instance.
729
+ *
730
+ * @returns {IAccountLoginServerAsync} The `AccountLoginServer` instance.
731
+ * @throws {InternalError} When setup of the native account login server fails.
732
+ */
733
+ function getOrMakeServer() {
734
+ if (!AccountLoginServerComponent.server) {
735
+ AccountLoginServerComponent.server = new AccountLoginServer();
736
+ KeplerScriptAccountLogin_1.default.setupAccountLoginServer().then(function (obj) {
737
+ throwErrorIfNecessary(obj, 'AccountLoginServerComponent::getOrMakeServer failed to setup native account login server');
738
+ });
739
+ }
740
+ return AccountLoginServerComponent.server;
741
+ }
742
+ /**
743
+ * Make builder to build a {@link IStatus}
744
+ */
745
+ }, {
746
+ key: "makeStatusBuilder",
747
+ value: function makeStatusBuilder() {
748
+ return new StatusBuilder();
749
+ }
750
+ }]);
751
+ }();
752
+ exports.AccountLoginServerComponent = AccountLoginServerComponent;
753
+ exports.default = AccountLoginServerComponent;
754
+ /**
755
+ * Creates a new `IStatusBuilder` instance.
756
+ *
757
+ * @returns {IStatusBuilder} A new `StatusBuilder` instance.
758
+ */
759
+ var AccountLoginServer = /*#__PURE__*/function () {
760
+ function AccountLoginServer() {
761
+ _$$_REQUIRE(_dependencyMap[2])(this, AccountLoginServer);
762
+ this.isNativeHandlerSetup = false;
763
+ }
764
+ return _$$_REQUIRE(_dependencyMap[3])(AccountLoginServer, [{
765
+ key: "updateStatus",
766
+ value: function () {
767
+ var _updateStatus = _$$_REQUIRE(_dependencyMap[4])(function* (status) {
768
+ console.log('AccountLoginServer::updateStatus invoked. status: ', status.getStatus());
769
+ yield KeplerScriptAccountLogin_1.default.updateStatus(status.getStatus(), status.getAdditionalData()).then(function (obj) {
770
+ throwErrorIfNecessary(obj, 'AccountLoginServer::updateStatus failed to update status');
771
+ });
772
+ });
773
+ function updateStatus(_x) {
774
+ return _updateStatus.apply(this, arguments);
775
+ }
776
+ return updateStatus;
777
+ }()
778
+ /**
779
+ * Set the handler.
780
+ */
781
+ }, {
782
+ key: "setHandler",
783
+ value: function setHandler(handler) {
784
+ var _this = this;
785
+ console.log('AccountLoginServer::setHandler invoked.');
786
+ this.m_handler = handler;
787
+ if (!this.isNativeHandlerSetup && handler) {
788
+ var realHandler = function realHandler() {
789
+ var _this$m_handler;
790
+ console.log('AccountLoginServer::realHandler invoked.');
791
+ (_this$m_handler = _this.m_handler) == null ? undefined : _this$m_handler.handleReadStatus().then(function (status) {
792
+ KeplerScriptAccountLogin_1.default.onReadStatusResponse(status.getStatus(), status.getAdditionalData());
793
+ }); // Let the exception go back to caller
794
+ };
795
+ KeplerScriptAccountLogin_1.default.setReadStatusHandler(realHandler).then(function (obj) {
796
+ throwErrorIfNecessary(obj, 'AccountLoginServer::setHandler failed');
797
+ });
798
+ this.isNativeHandlerSetup = true;
799
+ }
800
+ }
801
+ /**
802
+ * Set the handler for a given component.
803
+ */
804
+ }, {
805
+ key: "setHandlerForComponent",
806
+ value: function setHandlerForComponent(handler, instance) {
807
+ var _this2 = this;
808
+ console.log('AccountLoginServer::setHandlerForComponent invoked.');
809
+ this.m_handler = handler;
810
+ if (!this.isNativeHandlerSetup && handler !== null && handler !== undefined) {
811
+ var realHandler = function realHandler() {
812
+ var _this2$m_handler;
813
+ console.log('AccountLoginServer::realHandler invoked.');
814
+ (_this2$m_handler = _this2.m_handler) == null ? undefined : _this2$m_handler.handleReadStatus().then(function (status) {
815
+ KeplerScriptAccountLogin_1.default.onReadStatusResponse(status.getStatus(), status.getAdditionalData());
816
+ }); // Let the exception go back to caller
817
+ };
818
+ if (instance === undefined || instance === null) {
819
+ throw new (_$$_REQUIRE(_dependencyMap[1]).InvalidArgumentError)('Instance is not set');
820
+ }
821
+ KeplerScriptAccountLogin_1.default.setHandlerForComponent(realHandler, instance).then(function (obj) {
822
+ throwErrorIfNecessary(obj, 'AccountLoginServer::setHandlerForComponent failed');
823
+ });
824
+ this.isNativeHandlerSetup = true;
825
+ }
826
+ }
827
+ }]);
828
+ }();
829
+ var Status = /*#__PURE__*/function () {
830
+ function Status(loginStatus, additionalData) {
831
+ _$$_REQUIRE(_dependencyMap[2])(this, Status);
832
+ this.loginStatus = loginStatus;
833
+ this.data = additionalData ? additionalData : '';
834
+ }
835
+ return _$$_REQUIRE(_dependencyMap[3])(Status, [{
836
+ key: "getStatus",
837
+ value:
838
+ /// Account Login Status
839
+ function getStatus() {
840
+ return this.loginStatus;
841
+ }
842
+ /// User-specific data
843
+ }, {
844
+ key: "getAdditionalData",
845
+ value: function getAdditionalData() {
846
+ return this.data;
847
+ }
848
+ }]);
849
+ }();
850
+ var ADDITIONAL_DATA_LIMIT = 65536;
851
+ var StatusBuilder = /*#__PURE__*/function () {
852
+ function StatusBuilder() {
853
+ _$$_REQUIRE(_dependencyMap[2])(this, StatusBuilder);
854
+ this.loginStatus = null;
855
+ this.data = null;
856
+ }
857
+ return _$$_REQUIRE(_dependencyMap[3])(StatusBuilder, [{
858
+ key: "status",
859
+ value:
860
+ /**
861
+ * @brief Add StatusType to builder.
862
+ *
863
+ * @param StatusType to add.
864
+ */
865
+ function status(statusType) {
866
+ this.loginStatus = statusType;
867
+ return this;
868
+ }
869
+ /**
870
+ * @brief Add value for the additional Data to builder.
871
+ *
872
+ * @details additionalData size is limited to 64k. build() method would throw
873
+ * `InvalidArgumentError` if additionalData size is more than 64k.
874
+ *
875
+ * @param additional Data to add.
876
+ */
877
+ }, {
878
+ key: "additionalData",
879
+ value: function additionalData(_additionalData) {
880
+ this.data = _additionalData;
881
+ return this;
882
+ }
883
+ /**
884
+ * @brief Build IStatus.
885
+ *
886
+ * @details Constructs IStatus if all required fields are provided.
887
+ *
888
+ * @return Returns IStatus if built successfully.
889
+ */
890
+ }, {
891
+ key: "build",
892
+ value: function build() {
893
+ if (this.loginStatus == null) {
894
+ throw new (_$$_REQUIRE(_dependencyMap[1]).InvalidArgumentError)('Status is not set');
895
+ }
896
+ if (this.data != null && this.data.length > ADDITIONAL_DATA_LIMIT) {
897
+ throw new (_$$_REQUIRE(_dependencyMap[1]).InvalidArgumentError)('Data is too large');
898
+ }
899
+ return new Status(this.loginStatus, this.data);
900
+ }
901
+ }]);
902
+ }();
903
+ },"d40e0a8101520e7ac66a",["b04d23355bb3271118a1","bf2f04d1c07ea79e13b5","3508abd8c6b891008c0d","5533cec96f6a88041c69","ff7d8d645536d793bbec"]);
904
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
905
+ "use strict";
906
+
907
+ Object.defineProperty(exports, "__esModule", {
908
+ value: true
909
+ });
910
+ exports.default = _$$_REQUIRE(_dependencyMap[0]).TurboModuleRegistry.getEnforcing('KeplerMediaAccountLogin');
911
+ },"b04d23355bb3271118a1",["8a35a86b7946c72e0207"]);
912
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
913
+ "use strict";
914
+
915
+ /**
916
+ * Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
917
+ *
918
+ * PROPRIETARY/CONFIDENTIAL
919
+ *
920
+ * Use is subject to license terms.
921
+ *
922
+ */
923
+ Object.defineProperty(exports, "__esModule", {
924
+ value: true
925
+ });
926
+ exports.TurboModuleRegistry = undefined;
927
+ exports.TurboModuleRegistry = _$$_REQUIRE(_dependencyMap[0]);
928
+ },"8a35a86b7946c72e0207",["33d6b98d6e39f6b0a8f9"]);
929
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
930
+ "use strict";
931
+
932
+ /**
933
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
934
+ *
935
+ * This source code is licensed under the MIT license found in the
936
+ * LICENSE file in the root directory of this source tree.
937
+ *
938
+ * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its
939
+ * affiliates. All rights reserved.
940
+ *
941
+ * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO
942
+ * LICENSE TERMS.
943
+ *
944
+ * Amazon modifications are indicated by [amznmod_* comments].
945
+ */
946
+ Object.defineProperty(exports, "__esModule", {
947
+ value: true
948
+ });
949
+ exports.getEnforcing = exports.get = undefined;
950
+ var turboModuleProxy = global.__turboModuleProxy;
951
+ function requireModule(name) {
952
+ if (turboModuleProxy != null) {
953
+ return turboModuleProxy(name);
954
+ }
955
+ return null;
956
+ }
957
+ function get(name) {
958
+ return requireModule(name);
959
+ }
960
+ exports.get = get;
961
+ function getEnforcing(name) {
962
+ var module = requireModule(name);
963
+ (0, _$$_REQUIRE(_dependencyMap[0]).default)(module != null, `TurboModuleRegistry.getEnforcing(...): '${name}' could not be found. ` + 'Verify that a module by this name is registered in the native binary.');
964
+ return module;
965
+ }
966
+ exports.getEnforcing = getEnforcing;
967
+ },"33d6b98d6e39f6b0a8f9",["8d9475a2cb77b53e450d"]);
968
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
969
+ /**
970
+ * Copyright (c) 2013-present, Facebook, Inc.
971
+ *
972
+ * This source code is licensed under the MIT license found in the
973
+ * LICENSE file in the root directory of this source tree.
974
+ *
975
+ * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its
976
+ * affiliates. All rights reserved.
977
+ *
978
+ * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO
979
+ * LICENSE TERMS.
980
+ *
981
+ * Amazon modifications are indicated by [amznmod_* comments].
982
+ */
983
+ /**
984
+ * amznmod_tmapi: Migrated to typescript
985
+ */
986
+ 'use strict';
987
+
988
+ Object.defineProperty(exports, "__esModule", {
989
+ value: true
990
+ });
991
+ /**
992
+ * Use invariant() to assert state which your program assumes to be true.
993
+ *
994
+ * Provide sprintf-style format (only %s is supported) and arguments
995
+ * to provide information about what broke and what you were
996
+ * expecting.
997
+ *
998
+ * The invariant message will be stripped in production, but the invariant
999
+ * will remain to ensure logic does not differ in production.
1000
+ */
1001
+ var NODE_ENV = "production";
1002
+ var invariant = function invariant(condition, format) {
1003
+ for (var _len = arguments.length, extraArgs = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1004
+ extraArgs[_key - 2] = arguments[_key];
1005
+ }
1006
+ if (!condition) {
1007
+ var error;
1008
+ if (format === undefined) {
1009
+ error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
1010
+ } else {
1011
+ var argIndex = 0;
1012
+ error = new Error(format.replace(/%s/g, function () {
1013
+ return extraArgs[argIndex++];
1014
+ }));
1015
+ error.name = 'Invariant Violation';
1016
+ }
1017
+ // @ts-ignore `framesToPop` is not part of Error type but something Meta (and maybe RN) uses.
1018
+ error.framesToPop = 1; // we don't care about invariant's own frame
1019
+ throw error;
1020
+ }
1021
+ };
1022
+ exports.default = invariant;
1023
+ },"8d9475a2cb77b53e450d",[]);
1024
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1025
+ "use strict";
1026
+
1027
+ function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); }
1028
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1029
+ var __importDefault = this && this.__importDefault || function (mod) {
1030
+ return mod && mod.__esModule ? mod : {
1031
+ "default": mod
1032
+ };
1033
+ };
1034
+ Object.defineProperty(exports, "__esModule", {
1035
+ value: true
1036
+ });
1037
+ exports.StatusType = exports.InternalError = exports.InvalidArgumentError = undefined;
1038
+ /*
1039
+ * Copyright (c) 2023-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1040
+ *
1041
+ * PROPRIETARY/CONFIDENTIAL
1042
+ * Use is subject to license terms.
1043
+ */
1044
+ var KeplerScriptAccountLogin_1 = __importDefault(_$$_REQUIRE(_dependencyMap[2]));
1045
+ if (!KeplerScriptAccountLogin_1.default) {
1046
+ throw new Error('KeplerScriptAccountLogin is null.');
1047
+ }
1048
+ /**
1049
+ * Error class for invalid argument exception.
1050
+ */
1051
+ var InvalidArgumentError = /*#__PURE__*/function (_Error) {
1052
+ /**
1053
+ * Creates an instance of `InvalidArgumentError`.
1054
+ * @param {string} msg - The error message.
1055
+ */
1056
+ function InvalidArgumentError(msg) {
1057
+ var _this;
1058
+ _$$_REQUIRE(_dependencyMap[3])(this, InvalidArgumentError);
1059
+ _this = _callSuper(this, InvalidArgumentError, [msg]);
1060
+ Object.setPrototypeOf(_this, InvalidArgumentError.prototype);
1061
+ return _this;
1062
+ }
1063
+ _$$_REQUIRE(_dependencyMap[4])(InvalidArgumentError, _Error);
1064
+ return _$$_REQUIRE(_dependencyMap[5])(InvalidArgumentError);
1065
+ }(/*#__PURE__*/_$$_REQUIRE(_dependencyMap[6])(Error));
1066
+ exports.InvalidArgumentError = InvalidArgumentError;
1067
+ /**
1068
+ * Error class for internal errors, such as setup failures.
1069
+ * For example, when you setup `AccountLoginServer`.
1070
+ */
1071
+ var InternalError = /*#__PURE__*/function (_Error2) {
1072
+ /**
1073
+ * Creates an instance of `InternalError`.
1074
+ * @param {string} msg - The error message.
1075
+ */
1076
+ function InternalError(msg) {
1077
+ var _this2;
1078
+ _$$_REQUIRE(_dependencyMap[3])(this, InternalError);
1079
+ _this2 = _callSuper(this, InternalError, [msg]);
1080
+ Object.setPrototypeOf(_this2, InternalError.prototype);
1081
+ return _this2;
1082
+ }
1083
+ _$$_REQUIRE(_dependencyMap[4])(InternalError, _Error2);
1084
+ return _$$_REQUIRE(_dependencyMap[5])(InternalError);
1085
+ }(/*#__PURE__*/_$$_REQUIRE(_dependencyMap[6])(Error));
1086
+ exports.InternalError = InternalError;
1087
+ /**
1088
+ * Enumeration representing possible login status types.
1089
+ */
1090
+ var StatusType;
1091
+ (function (StatusType) {
1092
+ /** User is signed in. */
1093
+ StatusType[StatusType["SIGNED_IN"] = 0] = "SIGNED_IN";
1094
+ /** User is signed out. */
1095
+ StatusType[StatusType["SIGNED_OUT"] = 1] = "SIGNED_OUT";
1096
+ })(StatusType = exports.StatusType || (exports.StatusType = {}));
1097
+ },"bf2f04d1c07ea79e13b5",["f391b9d534c3a6bc8659","4534eb96ece5e83c089a","b04d23355bb3271118a1","3508abd8c6b891008c0d","73afcd34a88a750f6d69","5533cec96f6a88041c69","c577b02e1e09b9cd815b"]);
1098
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1099
+ function _getPrototypeOf(t) {
1100
+ return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
1101
+ return t.__proto__ || Object.getPrototypeOf(t);
1102
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
1103
+ }
1104
+ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
1105
+ },"f391b9d534c3a6bc8659",[]);
1106
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1107
+ function _possibleConstructorReturn(t, e) {
1108
+ if (e && ("object" == _$$_REQUIRE(_dependencyMap[0])["default"](e) || "function" == typeof e)) return e;
1109
+ if (undefined !== e) throw new TypeError("Derived constructors may only return object or undefined");
1110
+ return _$$_REQUIRE(_dependencyMap[1])(t);
1111
+ }
1112
+ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
1113
+ },"4534eb96ece5e83c089a",["d8362e1f4a4e80eaa9d4","3711e54376de5c9b9466"]);
1114
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1115
+ function _typeof(o) {
1116
+ "@babel/helpers - typeof";
1117
+
1118
+ return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1119
+ return typeof o;
1120
+ } : function (o) {
1121
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1122
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
1123
+ }
1124
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1125
+ },"d8362e1f4a4e80eaa9d4",[]);
1126
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1127
+ function _assertThisInitialized(e) {
1128
+ if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1129
+ return e;
1130
+ }
1131
+ module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
1132
+ },"3711e54376de5c9b9466",[]);
1133
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1134
+ function _classCallCheck(a, n) {
1135
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1136
+ }
1137
+ module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1138
+ },"3508abd8c6b891008c0d",[]);
1139
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1140
+ function _inherits(t, e) {
1141
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
1142
+ t.prototype = Object.create(e && e.prototype, {
1143
+ constructor: {
1144
+ value: t,
1145
+ writable: true,
1146
+ configurable: true
1147
+ }
1148
+ }), Object.defineProperty(t, "prototype", {
1149
+ writable: false
1150
+ }), e && _$$_REQUIRE(_dependencyMap[0])(t, e);
1151
+ }
1152
+ module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
1153
+ },"73afcd34a88a750f6d69",["412b42f29118fbec0d03"]);
1154
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1155
+ function _setPrototypeOf(t, e) {
1156
+ return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
1157
+ return t.__proto__ = e, t;
1158
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
1159
+ }
1160
+ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
1161
+ },"412b42f29118fbec0d03",[]);
1162
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1163
+ function _defineProperties(e, r) {
1164
+ for (var t = 0; t < r.length; t++) {
1165
+ var o = r[t];
1166
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _$$_REQUIRE(_dependencyMap[0])(o.key), o);
1167
+ }
1168
+ }
1169
+ function _createClass(e, r, t) {
1170
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
1171
+ writable: false
1172
+ }), e;
1173
+ }
1174
+ module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1175
+ },"5533cec96f6a88041c69",["a8c8780df4560174ada7"]);
1176
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1177
+ function toPropertyKey(t) {
1178
+ var i = _$$_REQUIRE(_dependencyMap[0])(t, "string");
1179
+ return "symbol" == _$$_REQUIRE(_dependencyMap[1])["default"](i) ? i : i + "";
1180
+ }
1181
+ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
1182
+ },"a8c8780df4560174ada7",["ffc6df13d33bb305555d","d8362e1f4a4e80eaa9d4"]);
1183
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1184
+ function toPrimitive(t, r) {
1185
+ if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](t) || !t) return t;
1186
+ var e = t[Symbol.toPrimitive];
1187
+ if (undefined !== e) {
1188
+ var i = e.call(t, r || "default");
1189
+ if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](i)) return i;
1190
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1191
+ }
1192
+ return ("string" === r ? String : Number)(t);
1193
+ }
1194
+ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
1195
+ },"ffc6df13d33bb305555d",["d8362e1f4a4e80eaa9d4"]);
1196
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1197
+ function _wrapNativeSuper(t) {
1198
+ var r = "function" == typeof Map ? new Map() : undefined;
1199
+ return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
1200
+ if (null === t || !_$$_REQUIRE(_dependencyMap[0])(t)) return t;
1201
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
1202
+ if (undefined !== r) {
1203
+ if (r.has(t)) return r.get(t);
1204
+ r.set(t, Wrapper);
1205
+ }
1206
+ function Wrapper() {
1207
+ return _$$_REQUIRE(_dependencyMap[1])(t, arguments, _$$_REQUIRE(_dependencyMap[2])(this).constructor);
1208
+ }
1209
+ return Wrapper.prototype = Object.create(t.prototype, {
1210
+ constructor: {
1211
+ value: Wrapper,
1212
+ enumerable: false,
1213
+ writable: true,
1214
+ configurable: true
1215
+ }
1216
+ }), _$$_REQUIRE(_dependencyMap[3])(Wrapper, t);
1217
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
1218
+ }
1219
+ module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
1220
+ },"c577b02e1e09b9cd815b",["027ec73415f080702349","980562e5188f0e886758","f391b9d534c3a6bc8659","412b42f29118fbec0d03"]);
1221
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1222
+ function _isNativeFunction(t) {
1223
+ try {
1224
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
1225
+ } catch (n) {
1226
+ return "function" == typeof t;
1227
+ }
1228
+ }
1229
+ module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
1230
+ },"027ec73415f080702349",[]);
1231
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1232
+ function _construct(t, e, r) {
1233
+ if (_$$_REQUIRE(_dependencyMap[0])()) return Reflect.construct.apply(null, arguments);
1234
+ var o = [null];
1235
+ o.push.apply(o, e);
1236
+ var p = new (t.bind.apply(t, o))();
1237
+ return r && _$$_REQUIRE(_dependencyMap[1])(p, r.prototype), p;
1238
+ }
1239
+ module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
1240
+ },"980562e5188f0e886758",["d5efa6dd0bb9d4bf9bb4","412b42f29118fbec0d03"]);
1241
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1242
+ function _isNativeReflectConstruct() {
1243
+ try {
1244
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
1245
+ } catch (t) {}
1246
+ return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
1247
+ return !!t;
1248
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
1249
+ }
1250
+ module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
1251
+ },"d5efa6dd0bb9d4bf9bb4",[]);
1252
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1253
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
1254
+ try {
1255
+ var i = n[a](c),
1256
+ u = i.value;
1257
+ } catch (n) {
1258
+ return void e(n);
1259
+ }
1260
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
1261
+ }
1262
+ function _asyncToGenerator(n) {
1263
+ return function () {
1264
+ var t = this,
1265
+ e = arguments;
1266
+ return new Promise(function (r, o) {
1267
+ var a = n.apply(t, e);
1268
+ function _next(n) {
1269
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
1270
+ }
1271
+ function _throw(n) {
1272
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
1273
+ }
1274
+ _next(undefined);
1275
+ });
1276
+ };
1277
+ }
1278
+ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
1279
+ },"ff7d8d645536d793bbec",[]);